From d64d13a7f7423fcd757b0198ff53bed152ad2b34 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 9 Jan 2018 13:52:14 -0500 Subject: [PATCH] portal nav bar --- build/bundle.js | 30 ++++----- src/components/example/Base.js | 52 +++++++++++++++ src/{ => components}/index.js | 49 +++++++------- src/components/portal/Base.js | 82 ++++++++++++------------ src/components/portal/Single/Creature.js | 10 --- src/css/portal.css | 56 +++++++++++++++- webpack.config.babel.js | 2 +- 7 files changed, 190 insertions(+), 91 deletions(-) create mode 100644 src/components/example/Base.js rename src/{ => components}/index.js (80%) diff --git a/build/bundle.js b/build/bundle.js index 828174b..c5ffb17 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -1,15 +1,15 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/build/",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1),a=r(o),i=n(41),u=n(6),l=n(53),s=r(l),c=n(9),f=r(c),d=n(12),p=r(d),h=n(54),m=r(h),y=n(55),v=r(y),g=n(66),b=(r(g),n(64)),E=r(b),w=n(65),x=r(w),k=n(56),O=r(k),_=n(67),C=r(_),P=n(74),S=r(P),T=n(68),N=r(T),A=n(75),I=r(A),M=n(69),j=r(M),R=n(76),D=r(R),L=n(70),$=r(L),F=n(77),U=r(F),B=n(71),H=r(B),V=n(78),z=r(V),q=n(72),W=r(q),K=n(79),Y=r(K),G=n(73),J=r(G),Q=a.default.createElement(u.Route,{path:"/",component:s.default},a.default.createElement(u.IndexRoute,{component:m.default}),a.default.createElement(u.Route,{path:"example",mapMenuTitle:"Example",component:E.default},a.default.createElement(u.Route,{path:"two-deep",mapMenuTitle:"Two Deep",component:x.default})),a.default.createElement(u.Route,{path:"Construction",component:p.default}),a.default.createElement(u.Route,{path:"EnterTheCode",component:v.default}),a.default.createElement(u.Route,{path:"collection"},a.default.createElement(u.IndexRoute,{component:O.default}),a.default.createElement(u.Route,{path:"*",component:O.default})),a.default.createElement(u.Route,{path:"portal",component:C.default,mapMenuTitle:"Portal"},a.default.createElement(u.IndexRoute,{component:S.default}),a.default.createElement(u.Route,{path:"/",component:S.default}),a.default.createElement(u.Route,{path:"Attacks",component:N.default,mapMenuTitle:"Attacks"},a.default.createElement(u.Route,{path:"*",component:I.default})),a.default.createElement(u.Route,{path:"Battlegear",component:j.default,mapMenuTitle:"Battlegear"},a.default.createElement(u.Route,{path:"*",component:D.default})),a.default.createElement(u.Route,{path:"Locations",component:H.default,mapMenuTitle:"Locations"},a.default.createElement(u.Route,{path:"*",component:z.default})),a.default.createElement(u.Route,{path:"Creatures",component:$.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"OverWorld",component:$.default,mapMenuTitle:"OverWorld"},a.default.createElement(u.Route,{path:"*",component:U.default})),a.default.createElement(u.Route,{path:"UnderWorld",component:$.default,mapMenuTitle:"UnderWorld"},a.default.createElement(u.Route,{path:"*",component:U.default})),a.default.createElement(u.Route,{path:"Mipedian",component:$.default,mapMenuTitle:"Mipedian"},a.default.createElement(u.Route,{path:"*",component:U.default})),a.default.createElement(u.Route,{path:"Danian",component:$.default,mapMenuTitle:"Danian"},a.default.createElement(u.Route,{path:"*",component:U.default}))),a.default.createElement(u.Route,{path:"Mugic",component:W.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"OverWorld",component:W.default,mapMenuTitle:"OverWorld"},a.default.createElement(u.Route,{path:"*",component:Y.default})),a.default.createElement(u.Route,{path:"UnderWorld",component:W.default,mapMenuTitle:"UnderWorld"},a.default.createElement(u.Route,{path:"*",component:Y.default})),a.default.createElement(u.Route,{path:"Mipedian",component:W.default,mapMenuTitle:"Mipedian"},a.default.createElement(u.Route,{path:"*",component:Y.default})),a.default.createElement(u.Route,{path:"Danian",component:W.default,mapMenuTitle:"Danian"},a.default.createElement(u.Route,{path:"*",component:Y.default})),a.default.createElement(u.Route,{path:"Generic",component:W.default,mapMenuTitle:"Generic"},a.default.createElement(u.Route,{path:"*",component:Y.default}))),a.default.createElement(u.Route,{path:"OverWorld",component:J.default,mapMenuTitle:"OverWorld"},a.default.createElement(u.Route,{path:"Creatures",component:$.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:U.default})),a.default.createElement(u.Route,{path:"Mugic",component:W.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:Y.default}))),a.default.createElement(u.Route,{path:"UnderWorld",component:J.default,mapMenuTitle:"UnderWorld"},a.default.createElement(u.Route,{path:"Creatures",component:$.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:U.default})),a.default.createElement(u.Route,{path:"Mugic",component:W.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:Y.default}))),a.default.createElement(u.Route,{path:"Mipedian",component:J.default,mapMenuTitle:"Mipedian"},a.default.createElement(u.Route,{path:"Creatures",component:$.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:U.default})),a.default.createElement(u.Route,{path:"Mugic",component:W.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:Y.default}))),a.default.createElement(u.Route,{path:"Danian",component:J.default,mapMenuTitle:"Danian"},a.default.createElement(u.Route,{path:"Creatures",component:$.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:U.default})),a.default.createElement(u.Route,{path:"Mugic",component:W.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:Y.default}))),a.default.createElement(u.Route,{path:"Marrillian",component:J.default,mapMenuTitle:"Marrillian"},a.default.createElement(u.Route,{path:"Creatures",component:$.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:U.default})),a.default.createElement(u.Route,{path:"Mugic",component:W.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:Y.default}))),a.default.createElement(u.Route,{path:"Generic",component:J.default,mapMenuTitle:"Generic"},a.default.createElement(u.Route,{path:"Creatures",component:$.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:U.default})),a.default.createElement(u.Route,{path:"Mugic",component:W.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:Y.default}))),a.default.createElement(u.Route,{path:"*",component:f.default})),a.default.createElement(u.Route,{path:"*",component:f.default}));(0,i.render)(a.default.createElement(u.Router,{history:u.browserHistory,routes:Q}),document.getElementById("root"))},function(e,t,n){"use strict";e.exports=n(135)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=t.left-1&&n<=t.right+1&&r>=t.top-1&&r<=t.bottom+1}if(!C.deviceHasMouse)return null;var n=e&&e.clientX||x.default.mouse.clientX,r=e&&e.clientY||x.default.mouse.clientY,o=!0;return o=!!x.default.mouse.mouseOnDocument&&(this.p.props.nonContainedChild?(0,E.default)(this.topNode,t):t(this.topNode)),o?"mouseOn":"mouseOff"}},{key:"manageFocus",value:function(e,t){var n=this;if(t&&(w.focusRegistry.focus===t||w.focusRegistry.blur===t))return"updateState";var r=!C.nonBlurrableTags[this.tagName]&&!this.p.props.focusToggleOff,o=this.p.props.tabIndex||C.knownRoleTags[this.tagName],a=function(e,a,i){return("force"===i||"focus"===e&&o||"blur"===e&&r)&&(t&&(w.focusRegistry[e]=t,n.manageSetTimeout("focusRegistry",function(){w.focusRegistry[e]=null},0)),n.track.focusTransition=a,n.topNode[e](),n.track.focusTransition!==a)?"terminate":(n.track.focusTransition="reset","updateState")},i=function(e,t){return n.track.state.focus?a("blur",e+"Blur",t):a("focus",e+"Focus",t)};switch(e){case"mousedown":return a("focus","mouseDownFocus");case"mouseup":return this.track.focusStateOnMouseDown?a("blur","mouseUpBlur"):(this.track.focusTransition="reset","updateState");case"touchclick":return i("touchClick");case"forceStateFocusTrue":return this.manageSetTimeout("forceStateFocusTrue",function(){!n.track.state.focus&&a("focus","forceStateFocus","force")},0),"terminate";case"forceStateFocusFalse":return this.manageSetTimeout("forceStateFocusFalse",function(){n.track.state.focus&&a("blur","forceStateBlur","force")},0),"terminate";case"refCallback":return this.track.state.focus?a("focus","refCallbackFocus","force"):(this.track.focusTransition="reset","terminate");case"focusForceBlur":return a("blur","focusForceBlur","force");default:return"updateState"}}},{key:"handleMouseEvent",value:function(e){switch(e.type){case"mouseenter":return(0,w.updateMouseFromRI)(e),this.p.props.onMouseEnter&&this.p.props.onMouseEnter(e),this.track.mouseOn=!0,this.track.buttonDown=1===e.buttons,"updateState";case"mouseleave":return(0,w.updateMouseFromRI)(e),this.p.props.onMouseLeave&&this.p.props.onMouseLeave(e),this.track.mouseOn=!1,this.track.buttonDown=!1,"updateState";case"mousemove":return this.p.props.onMouseMove&&this.p.props.onMouseMove(e),this.track.mouseOn&&this.track.buttonDown===(1===e.buttons)?"terminate":(this.track.mouseOn=!0,this.track.buttonDown=1===e.buttons,"updateState");case"mousedown":return this.p.props.onMouseDown&&this.p.props.onMouseDown(e),this.track.mouseOn=!0,this.track.buttonDown=!0,this.track.focusStateOnMouseDown=this.track.state.focus,this.manageFocus("mousedown",e);case"mouseup":this.p.props.onMouseUp&&this.p.props.onMouseUp(e),this.track.buttonDown=!1;var t=this.manageFocus("mouseup",e);return this.manageClick("mouseClick"),t;default:return"terminate"}}},{key:"handleTouchEvent",value:function(e){var t=this;this.track.mouseOn=!1,this.track.buttonDown=!1;var n=function(){t.track.touchDown=!1,t.track.touches={points:{},active:0},t.cancelTimeout("touchTapTimer")},r=function(){t.track.recentTouch=!0,t.manageSetTimeout("recentTouchTimer",function(){t.track.recentTouch=!1},C.queueTime)},o=function(){return t.p.props.extraTouchNoTap&&e.touches.length!==t.track.touches.active||t.track.touches.active>t.maxTapPoints},a=function(e,t,n){return Math.abs(e.clientX-t.startX)>=15+3*n||Math.abs(e.clientY-t.startY)>=15+3*n},i=function(n){for(var r=0;r0)return n(),"updateState";if(this.track.touches.touchend=!0,0===this.track.touches.active&&(this.track.touches.tapCanceled||o()))return n(),"updateState";if(this.track.touches.tapCanceled)return"terminate";if(o())return this.handleTouchEvent({type:"touchtapcancel"});if(i("client"),0===this.track.touches.active){var c=this.track.touches.points,f=Object.keys(c),d=f.length,p=f.every(function(e){return!a(c[e],c[e],d)})?d:0;switch(n(),p){case 1:var h="updateState";return(this.p.props.active||this.p.props.touchActive)&&(h=this.manageFocus("touchclick",e),this.manageClick("tapClick")),h;case 2:this.p.props.onTapTwo&&this.p.props.onTapTwo(e);break;case 3:this.p.props.onTapThree&&this.p.props.onTapThree(e);break;case 4:this.p.props.onTapFour&&this.p.props.onTapFour(e)}}return"updateState";case"touchcancel":return r(),this.p.props.onTouchCancel&&this.p.props.onTouchCancel(e),this.track.touches.active-=e.changedTouches.length,0===this.track.touches.active?(n(),"updateState"):this.handleTouchEvent({type:"touchtapcancel"});case"touchtapcancel":return this.cancelTimeout("touchTapTimer"),this.track.touchDown&&(this.track.touches.tapCanceled=!0,this.p.props.touchActiveTapOnly)?(this.track.touchDown=!1,"updateState"):"terminate";default:return"terminate"}}},{key:"manageClick",value:function(e){var t=this;this.cancelTimeout("clickType");var n=function(){t.manageSetTimeout("clickType",function(){t.track.clickType="reset"},C.queueTime)};switch(e){case"mouseClick":this.track.clickType="mouseClick",n();break;case"tapClick":this.track.clickType="tapClick",(0,_.default)(this.topNode),this.track.clickType="reset";break;case"keyClick":this.track.clickType="keyClick",C.knownRoleTags[this.tagName]?n():this.p.props.onClick&&(this.topNode.click(),this.track.clickType="reset")}}},{key:"handleClickEvent",value:function(e){this.cancelTimeout("clickType");var t="terminate";if("reset"===this.track.clickType){var n="input"===this.tagName&&"submit"===this.type&&x.default.key.recentEnterKeyDown;n?this.track.clickType="keyClick":x.default.touch.recentTouch||x.default.touch.touchOnScreen||"touchOnly"===C.deviceType?(t=this.manageFocus("touchclick",e),this.track.keyClick="tapClick"):this.track.keyClick="mouseClick"}return"_blank"!==this.p.props.target||"tapClick"!==this.track.clickType||this.track.notifyOfNext.focus||(this.track.previousFocus="touch",this.track.notifyOfNext.focus=(0,k.notifyOfNext)("focus",this.handleNotifyOfNext)),this.p.props.onClick&&this.p.props.onClick(e,this.track.clickType),this.track.clickType="reset",t}},{key:"handleOtherEvent",value:function(e){switch(e.type){case"focus":if(this.p.props.onFocus&&this.p.props.onFocus(e),e.target!==this.topNode)return"terminate";if("reset"!==this.track.focusTransition||!this.track.focus){var t=this.track.focusTransition.toLowerCase();/mouse/.test(t)?this.track.focus="mouse":/touch/.test(t)||this.track.touchDown?this.track.focus="touch":this.track.reinstateFocus?this.track.focus=this.track.previousFocus:/forcestate/.test(t)||(this.track.focus="tab")}return this.cancelTimeout("windowFocus"),this.track.reinstateFocus=!1,this.track.focusTransition="reset","updateState";case"blur":return this.p.props.onBlur&&this.p.props.onBlur(e),e.target!==this.topNode?"terminate":(this.track.focusTransition="reset",this.track.previousFocus=this.track.focus,this.track.focus=!1,this.track.spaceKeyDown=!1,this.track.enterKeyDown=!1,"updateState");case"keydown":if(this.p.props.onKeyDown&&this.p.props.onKeyDown(e),!this.track.focus)return"terminate";if(" "===e.key)this.track.spaceKeyDown=!0;else{if("Enter"!==e.key)return"terminate";this.track.enterKeyDown=!0,this.enterKeyTrigger&&this.manageClick("keyClick")}return"updateState";case"keyup":if(this.p.props.onKeyUp&&this.p.props.onKeyUp(e),!this.track.focus)return"terminate";if("Enter"===e.key)this.track.enterKeyDown=!1;else{if(" "!==e.key)return"terminate";this.track.spaceKeyDown=!1,this.spaceKeyTrigger&&this.manageClick("keyClick")}return"updateState";case"dragstart":return this.p.props.onDragStart&&this.p.props.onDragStart(e),this.track.drag=!0,"updateState";case"dragend":return this.p.props.onDragEnd&&this.p.props.onDragEnd(e),this.forceTrackIState("normal"),"updateState";default:return"terminate"}}},{key:"computeStyle",value:function(){var e={};this.p.props.useBrowserOutlineFocus||!this.p.props.focusFromTab&&("tab"===this.state.focus||C.nonBlurrableTags[this.tagName])||(e.outline=0,e.outlineOffset=0),(this.p.props.touchActive||this.p.props.active)&&C.deviceHasTouch&&(e.WebkitTapHighlightColor="rgba(0, 0, 0, 0)");var t="string"==typeof this.p.props.as&&this.p.props.as.toLowerCase();this.p.props.useBrowserCursor||!(this.p.props.onClick||"input"!==t&&this.p.props.tabIndex&&(this.p.mouseFocusStyle.style||this.p.mouseFocusStyle.className)||"input"===t&&("checkbox"===this.p.props.type||"radio"===this.p.props.type||"submit"===this.p.props.type)||"button"===t||"a"===t||"area"===t||"select"===t)||this.p.props.disabled||(e.cursor="pointer"),(0,d.default)(e,this.p.props.style);var n="keyActive"===this.state.iState||this.p.props.stylePriority&&this.p.props.stylePriority[this.state.iState],r=this.p[this.state.iState+"Style"].style,o=this.state.focus?this.p[this.state.focus+"FocusStyle"].style:null;return n?(0,d.default)(e,o,r):(0,d.default)(e,r,o),e}},{key:"computeClassName",value:function(){return(0,g.joinClasses)(this.p.props.className||"",this.p[this.state.iState+"Style"].className,this.state.focus?this.p[this.state.focus+"FocusStyle"].className:"")}},{key:"computeChildren",value:function(){var e=this,n=this.state.focus&&"focusFrom"+this.state.focus.charAt(0).toUpperCase()+this.state.focus.slice(1),r=this.p.props.stylePriority&&this.p.props.stylePriority[this.state.iState],o=function(t){var o=t.style?u({},t.style):{};(0,g.setActiveAndFocusProps)(t);var a=(0,g.extractStyle)(t,e.state.iState),i=e.state.focus&&(0,g.extractStyle)(t,n);return{className:(0,g.joinClasses)(t.className||"",a.className,i&&i.className||""),style:r&&(0,d.default)(o,i.style,a.style)||(0,d.default)(o,a.style,i.style)}},a=function r(a){return c.default.Children.map(a,function(a){if(!c.default.isValidElement(a))return a;if(a.props.showOnParent){var i=a.props.showOnParent.split(" ");if(!i.some(function(t){return t===e.state.iState||/Active/.test(e.state.iState)&&"active"===t||e.state.focus&&(t===n||"focus"===t)}))return null}var u=Object.keys(a.props);if(!u.some(function(e){return C.childInteractiveProps[e]}))return a.type===t?a:c.default.cloneElement(a,{},r(a.props.children));var l={},s={};u.forEach(function(e){C.childInteractiveProps[e]?"showOnParent"!==e&&(s[""+e.slice(8).charAt(0).toLowerCase()+e.slice(9)]=a.props[e]):l[e]=a.props[e]}),s.style=a.props.style,s.className=a.props.className;var f=o(s),d=f.style,p=f.className;return l.style=d,p&&(l.className=p),c.default.createElement(a.type,l,a.type===t?a.props.children:r(a.props.children))})};return a(this.p.props.children)}},{key:"render",value:function(){this.p.passThroughProps.style=this.computeStyle();var e=this.computeClassName();e&&(this.p.passThroughProps.className=e);var t=this.p.props.interactiveChild?this.computeChildren():this.p.props.children;return"string"==typeof this.p.props.as?(this.p.passThroughProps.ref=this.refCallback,c.default.createElement(this.p.props.as,this.p.passThroughProps,t)):c.default.createElement("span",{ref:this.refCallback,style:this.p.props.wrapperStyle,className:this.p.props.wrapperClassName},c.default.createElement(this.p.props.as,this.p.passThroughProps,t))}}]),t}(c.default.Component);P.propTypes=p.propTypes,P.defaultProps=p.defaultProps,t.default=P,e.exports=t.default},function(e,t,n){!function(e,r){r(t,n(10),n(1),n(41))}(this,function(e,t,n,r){"use strict";function o(e){function n(n,r,o,a,i,u){for(var l=arguments.length,s=Array(l>6?l-6:0),c=6;c>",u=u||o,null==r[o]){if(n){var t=null===r[o]?"null":"undefined";return new Error("The "+i+" `"+u+"` is marked as required in `"+a+"`, but its value is `"+t+"`.")}return null}return e.apply(void 0,[r,o,a,i,u].concat(s))})}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function a(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function i(e){var t="undefined"==typeof e?"undefined":k(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":a(t,e)?"symbol":t}function u(e){var t=i(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function l(e,n){return o(function(r,o,a,l,s){return t.untracked(function(){if(e&&i(r[o])===n.toLowerCase())return null;var l=void 0;switch(n){case"Array":l=t.isObservableArray;break;case"Object":l=t.isObservableObject;break;case"Map":l=t.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+n)}var c=r[o];if(!l(c)){var f=u(c),d=e?" or javascript `"+n.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+f+"` supplied to `"+a+"`, expected `mobx.Observable"+n+"`"+d+".")}return null})})}function s(e,n){return o(function(r,o,a,i,u){for(var s=arguments.length,c=Array(s>5?s-5:0),f=5;f2&&void 0!==arguments[2]&&arguments[2],r=e[t],o=ee[t],a=r?n===!0?function(){o.apply(this,arguments),r.apply(this,arguments)}:function(){r.apply(this,arguments),o.apply(this,arguments)}:o;e[t]=a}function b(e,t){if(null==e||null==t||"object"!==("undefined"==typeof e?"undefined":k(e))||"object"!==("undefined"==typeof t?"undefined":k(t)))return e!==t;var n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(var r=void 0,o=n.length-1;r=n[o];o--)if(t[r]!==e[r])return!0;return!1}function E(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return J||(J=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?p.apply(null,e)(E(t)):function(t){return E(e,t)};var r=e;if(r.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof r||r.prototype&&r.prototype.render||r.isReactClass||n.Component.isPrototypeOf(r))){var o,a;return E((a=o=function(e){function t(){return O(this,t),P(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return C(t,e),_(t,[{key:"render",value:function(){return r.call(this,this.props,this.context)}}]),t}(n.Component),o.displayName=r.displayName||r.name,o.contextTypes=r.contextTypes,o.propTypes=r.propTypes,o.defaultProps=r.defaultProps,a))}if(!r)throw new Error("Please pass a valid component to 'observer'");var i=r.prototype||r;return w(i),r.isMobXReactObserver=!0,r}function w(e){g(e,"componentWillMount",!0),["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach(function(t){g(e,t)}),e.shouldComponentUpdate||(e.shouldComponentUpdate=ee.shouldComponentUpdate)}var x=void 0,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,o){var u={key:e,arg:t,resolve:n,reject:o,next:null};i?i=i.next=u:(a=i=u,r(e,t))})}function r(n,a){try{var i=t[n](a),u=i.value;u instanceof e?Promise.resolve(u.value).then(function(e){r("next",e)},function(e){r("throw",e)}):o(i.done?"return":"normal",i.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":a.resolve({value:t,done:!0});break;case"throw":a.reject(t);break;default:a.resolve({value:t,done:!1})}a=a.next,a?r(a.key,a.arg):i=null}var a,i;this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),_=function(){function e(e,t){for(var n=0;n",a=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID,i=!1,u=!1;e.call(this,"props"),e.call(this,"state");var l=this.render.bind(this),s=null,c=!1,f=function(){return s=new t.Reaction(o+"#"+a+".render()",function(){if(!c&&(c=!0,"function"==typeof r.componentWillReact&&r.componentWillReact(),r.__$mobxIsUnmounted!==!0)){var e=!0;try{u=!0,i||n.Component.prototype.forceUpdate.call(r),e=!1}finally{u=!1,e&&s.dispose()}}}),s.reactComponent=r,d.$mobx=s,r.render=d,d()},d=function(){c=!1;var e=void 0,n=void 0;if(s.track(function(){Y&&(r.__$mobRenderStart=Date.now());try{n=t.extras.allowStateChanges(!1,l)}catch(t){e=t}Y&&(r.__$mobRenderEnd=Date.now())}),e)throw Z.emit(e),e;return n};this.render=f}},componentWillUnmount:function(){if(G!==!0&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,Y)){var e=h(this);e&&Q&&Q.delete(e),X.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){Y&&m(this)},componentDidUpdate:function(){Y&&m(this)},shouldComponentUpdate:function(e,t){return G&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||b(this.props,e)}},te=E(function(e){var t=e.children;return t()});te.propTypes={children:function(e,t,n,r,o){if("function"!=typeof e[t])return new Error("Invalid prop `"+o+"` of type `"+k(e[t])+"` supplied to `"+n+"`, expected `function`.")}};var ne,re,oe={children:!0,key:!0,ref:!0},ae=(re=ne=function(e){function t(){return O(this,t),P(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return C(t,e),_(t,[{key:"render",value:function(){return n.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={},t=this.context.mobxStores;if(t)for(var n in t)e[n]=t[n];for(var r in this.props)oe[r]||"suppressChangedStoreWarning"===r||(e[r]=this.props[r]);return{mobxStores:e}}},{key:"componentWillReceiveProps",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var t in e)oe[t]||this.props[t]===e[t]||console.warn("MobX Provider: Provided store '"+t+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t}(n.Component),ne.contextTypes={mobxStores:z},ne.childContextTypes={mobxStores:z.isRequired},re);if(!n.Component)throw new Error("mobx-react requires React to be available");if(!t.extras)throw new Error("mobx-react requires mobx to be available");"function"==typeof r.unstable_batchedUpdates?t.extras.setReactionScheduler(r.unstable_batchedUpdates):"function"==typeof x&&t.extras.setReactionScheduler(x);var ie=function(e){return Z.on(e)};if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":k(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var ue={spy:t.spy,extras:t.extras},le={renderReporter:X,componentByNodeRegistery:Q,trackComponents:y};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(le,ue)}e.propTypes=q,e.PropTypes=q,e.onError=ie,e.observer=E,e.Observer=te,e.renderReporter=X,e.componentByNodeRegistery=Q,e.trackComponents=y,e.useStaticRendering=v,e.Provider=ae,e.inject=p,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(t,"__esModule",{value:!0});var u,l,s,c,f,d,p,h,m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Attacks[t],"Attack",function(n){e.attacks.insert(n),e.built.push("attacks_"+t)})}},{key:"setupBattlegear",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Battlegear[t],"Battlegear",function(n){e.battlegear.insert(n),e.built.push("battlegear_"+t)})}},{key:"setupCreatures",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Creatures[t],"Creature",function(n){e.creatures.insert(n),e.built.push("creatures_"+t)})}},{key:"setupLocations",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Locations[t],"Location",function(n){e.locations.insert(n),e.built.push("locations_"+t)})}},{key:"setupMugic",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Mugic[t],"Mugic",function(n){e.mugic.insert(n),e.built.push("mugic_"+t)})}}]),e}(),h=i(p.prototype,"built",[g.observable],{enumerable:!0,initializer:function(){return[]}}),p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),i=Object.create(a.default);i.root={backgroundColor:"#F0F0F0",fontFamily:"helvetica neue, helvetica, sans-serif",fontWeight:"300",fontSize:"16px",letterSpacing:"0.025em",padding:"3vh 0 12vh 0",width:"500px",maxWidth:"calc(100vw - 40px)",position:"relative",left:"50vw",WebkitTransform:"translate(-50%, 0)",MozTransform:"translate(-50%, 0)",msTransform:"translate(-50%, 0)",OTransform:"translate(-50%, 0)",transform:"translate(-50%, 0)",WebkitTextSizeAdjust:"none",MozTextSizeAdjust:"none",msTextSizeAdjust:"none",textSizeAdjust:"none"},i.title={fontSize:"20px",marginBottom:"0.5vh"},i.repoLink={fontSize:"14px"},i.mapMenu={margin:"3vh 0"},i.creditLine={color:"#A0A0A0",fontSize:"14px",marginTop:"50px"},t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.createMemoryHistory=t.hashHistory=t.browserHistory=t.applyRouterMiddleware=t.formatPattern=t.useRouterHistory=t.match=t.routerShape=t.locationShape=t.RouterContext=t.createRoutes=t.Route=t.Redirect=t.IndexRoute=t.IndexRedirect=t.withRouter=t.IndexLink=t.Link=t.Router=void 0;var o=n(13);Object.defineProperty(t,"createRoutes",{enumerable:!0,get:function(){return o.createRoutes}});var a=n(33);Object.defineProperty(t,"locationShape",{enumerable:!0,get:function(){return a.locationShape}}),Object.defineProperty(t,"routerShape",{enumerable:!0,get:function(){return a.routerShape}});var i=n(18);Object.defineProperty(t,"formatPattern",{enumerable:!0,get:function(){return i.formatPattern}});var u=n(116),l=r(u),s=n(42),c=r(s),f=n(112),d=r(f),p=n(127),h=r(p),m=n(113),y=r(m),v=n(114),g=r(v),b=n(44),E=r(b),w=n(115),x=r(w),k=n(34),O=r(k),_=n(125),C=r(_),P=n(49),S=r(P),T=n(118),N=r(T),A=n(119),I=r(A),M=n(123),j=r(M),R=n(46),D=r(R);t.Router=l.default,t.Link=c.default,t.IndexLink=d.default,t.withRouter=h.default,t.IndexRedirect=y.default,t.IndexRoute=g.default,t.Redirect=E.default,t.Route=x.default,t.RouterContext=O.default,t.match=C.default,t.useRouterHistory=S.default,t.applyRouterMiddleware=N.default,t.browserHistory=I.default,t.hashHistory=j.default,t.createMemoryHistory=D.default},function(e,t,n){e.exports=n(99)()},function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,i,u){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,u],c=0;l=new Error(t.replace(/%s/g,function(){return s[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.location;return i.default.createElement("p",{style:c.default.p},"Page not found - the path, ",c.default.code(t.pathname),", did not match any React Router routes.")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),u=n(7),l=r(u),s=n(39),c=r(s),f={location:l.default.object.isRequired};o.propTypes=f,t.default=o},function(e,t){(function(e){"use strict";function n(e,t){function n(){this.constructor=e}Kt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function r(e){return e.interceptors&&e.interceptors.length>0}function o(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),Oe(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function a(e,t){var n=pt();try{var r=e.interceptors;if(r)for(var o=0,a=r.length;o0}function u(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),Oe(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function l(e,t){var n=pt(),r=e.changeListeners;if(r){r=r.slice();for(var o=0,a=r.length;o=this.length,value:t0,"actions should have valid names, got: '"+e+"'");var n=function(){return O(e,t,this,arguments)};return n.originalFn=t,n.isMobxAction=!0,n}function O(e,t,n,r){var o=_(e,t,n,r);try{return t.apply(n,r)}finally{C(o)}}function _(e,t,n,r){var o=s()&&!!e,a=0;if(o){a=Date.now();var i=r&&r.length||0,u=new Array(i);if(i>0)for(var l=0;l",o="function"==typeof e?e:t,a="function"==typeof e?t:n;return xe("function"==typeof o,x("m002")),xe(0===o.length,x("m003")),xe("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),O(r,o,a,void 0)}function $(e){return"function"==typeof e&&e.isMobxAction===!0}function F(e,t,n){var r=function(){return O(t,n,e,arguments)};r.isMobxAction=!0,Ie(e,t,r)}function U(e,t){return e===t}function B(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||Le(e,t)}function H(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||U(e,t)}function V(e,t,n){function r(){a(u)}var o,a,i;"string"==typeof e?(o=e,a=t,i=n):(o=e.name||"Autorun@"+Ee(),a=e,i=t),xe("function"==typeof a,x("m004")),xe($(a)===!1,x("m005")),i&&(a=a.bind(i));var u=new zn(o,function(){this.track(r)});return u.schedule(),u.getDisposer()}function z(e,t,n,r){var o,a,i,u;"string"==typeof e?(o=e,a=t,i=n,u=r):(o="When@"+Ee(),a=e,i=t,u=n);var l=V(o,function(e){if(a.call(u)){e.dispose();var t=pt();i.call(u),ht(t)}});return l}function q(e,t,n,r){function o(){i(c)}var a,i,u,l;"string"==typeof e?(a=e,i=t,u=n,l=r):(a=e.name||"AutorunAsync@"+Ee(),i=e,u=t,l=n),xe($(i)===!1,x("m006")),void 0===u&&(u=1),l&&(i=i.bind(l));var s=!1,c=new zn(a,function(){s||(s=!0,setTimeout(function(){s=!1,c.isDisposed||c.track(o)},u))});return c.schedule(),c.getDisposer()}function W(e,t,n){function r(){if(!s.isDisposed){var n=!1;s.track(function(){var t=e(s);n=i||!l(a,t),a=t}),i&&o.fireImmediately&&t(a,s),i||n!==!0||t(a,s),i&&(i=!1)}}arguments.length>3&&we(x("m007")),ce(e)&&we(x("m008"));var o;o="object"==typeof n?n:{},o.name=o.name||e.name||t.name||"Reaction@"+Ee(),o.fireImmediately=n===!0||o.fireImmediately===!0,o.delay=o.delay||0,o.compareStructural=o.compareStructural||o.struct||!1,t=hn(o.name,o.context?t.bind(o.context):t),o.context&&(e=e.bind(o.context));var a,i=!0,u=!1,l=o.equals?o.equals:o.compareStructural||o.struct?mn.structural:mn.default,s=new zn(o.name,function(){i||o.delay<1?r():u||(u=!0,setTimeout(function(){u=!1,r()},o.delay))});return s.schedule(),s.getDisposer()}function K(e,t){if(ne(e)&&e.hasOwnProperty("$mobx"))return e.$mobx;xe(Object.isExtensible(e),x("m035")),Se(e)||(t=(e.constructor.name||"ObservableObject")+"@"+Ee()),t||(t="ObservableObject@"+Ee());var n=new gn(e,t);return Me(e,"$mobx",n),n}function Y(e,t,n,r){if(e.values[t]&&!vn(e.values[t]))return xe("value"in n,"The property "+t+" in "+e.name+" is already observable, cannot redefine it as computed property"),void(e.target[t]=n.value);if("value"in n)if(ce(n.value)){var o=n.value;G(e,t,o.initialValue,o.enhancer)}else $(n.value)&&n.value.autoBind===!0?F(e.target,t,n.value.originalFn):vn(n.value)?Q(e,t,n.value):G(e,t,n.value,r);else J(e,t,n.get,n.set,mn.default,!0)}function G(e,t,n,o){if(Re(e.target,t),r(e)){var i=a(e,{object:e.target,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}var u=e.values[t]=new sn(n,o,e.name+"."+t,!1);n=u.value,Object.defineProperty(e.target,t,X(t)),te(e,e.target,t,n)}function J(e,t,n,r,o,a){a&&Re(e.target,t),e.values[t]=new yn(n,e.target,o,e.name+"."+t,r),a&&Object.defineProperty(e.target,t,Z(t))}function Q(e,t,n){var r=e.name+"."+t;n.name=r,n.scope||(n.scope=e.target),e.values[t]=n,Object.defineProperty(e.target,t,Z(t))}function X(e){return bn[e]||(bn[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){ee(this,e,t)}})}function Z(e){return En[e]||(En[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:function(t){return this.$mobx.values[e].set(t)}})}function ee(e,t,n){var o=e.$mobx,u=o.values[t];if(r(o)){var c=a(o,{type:"update",object:e,name:t,newValue:n});if(!c)return;n=c.newValue}if(n=u.prepareNewValue(n),n!==ln){var p=i(o),h=s(),c=p||h?{type:"update",object:e,oldValue:u.value,name:t,newValue:n}:null;h&&f(c),u.setNewValue(n),p&&l(o,c),h&&d()}}function te(e,t,n,r){var o=i(e),a=s(),u=o||a?{type:"add",object:t,name:n,newValue:r}:null;a&&f(u),o&&l(e,u),a&&d()}function ne(e){return!!Pe(e)&&(j(e),wn(e.$mobx))}function re(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(w(e)||An(e))throw new Error(x("m019"));if(ne(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return ne(e)||!!e.$mobx||Jt(e)||Kn(e)||vn(e)}function oe(e){return xe(!!e,":("),I(function(t,n,r,o,a){Re(t,n),xe(!a||!a.get,x("m022"));var i=K(t,void 0);G(i,n,r,e)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){ee(this,e,t)},!0,!1)}function ae(e){for(var t=[],n=1;n=2,x("m014")),xe("object"==typeof e,x("m015")),xe(!An(e),x("m016")),n.forEach(function(e){xe("object"==typeof e,x("m017")),xe(!re(e),x("m018"))});for(var r=K(e),o={},a=n.length-1;a>=0;a--){var i=n[a];for(var u in i)if(o[u]!==!0&&Ne(i,u)){if(o[u]=!0,e===i&&!je(e,u))continue;var l=Object.getOwnPropertyDescriptor(i,u);Y(r,u,l,t)}}return e}function le(e){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return xn.apply(null,arguments);if(xe(arguments.length<=1,x("m021")),xe(!ce(e),x("m020")),re(e))return e;var t=de(e,void 0,void 0);return t!==e?t:Sn.box(e)}function se(e){we("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function ce(e){return"object"==typeof e&&null!==e&&e.isMobxModifierDescriptor===!0}function fe(e,t){return xe(!ce(t),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function de(e,t,n){return ce(e)&&we("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),re(e)?e:Array.isArray(e)?Sn.array(e,n):Se(e)?Sn.object(e,n):Be(e)?Sn.map(e,n):e}function pe(e,t,n){return ce(e)&&we("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),void 0===e||null===e?e:ne(e)||w(e)||An(e)?e:Array.isArray(e)?Sn.shallowArray(e,n):Se(e)?Sn.shallowObject(e,n):Be(e)?Sn.shallowMap(e,n):we("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function he(e){return e}function me(e,t,n){if(Le(e,t))return t;if(re(e))return e;if(Array.isArray(e))return new on(e,me,n);if(Be(e))return new Nn(e,me,n);if(Se(e)){var r={};return K(r,n),ue(r,me,[e]),r}return e}function ye(e,t,n){return Le(e,t)?t:e}function ve(e,t){void 0===t&&(t=void 0),Ze();try{return e.apply(t)}finally{et()}}function ge(e){return ke("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),Sn.map(e)}function be(){return"undefined"!=typeof window?window:e}function Ee(){return++$n.mobxGuid}function we(e,t){throw xe(!1,e,t),"X"}function xe(e,t,n){if(!e)throw new Error("[mobx] Invariant failed: "+t+(n?" in '"+n+"'":""))}function ke(e){return Mn.indexOf(e)===-1&&(Mn.push(e),console.error("[mobx] Deprecated: "+e),!0)}function Oe(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function _e(e){var t=[];return e.forEach(function(e){t.indexOf(e)===-1&&t.push(e)}),t}function Ce(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=" - "),!e)return"";var r=e.slice(0,t);return""+r.join(n)+(e.length>t?" (... and "+(e.length-t)+"more)":"")}function Pe(e){return null!==e&&"object"==typeof e}function Se(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Te(){for(var e=arguments[0],t=1,n=arguments.length;t=0;o--)if(!Le(e[o],t[o]))return!1;return!0}if(r){if(e.size!==t.size)return!1;var a=!0;return e.forEach(function(e,n){a=a&&Le(t.get(n),e)}),a}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(Ue(e)&&Ue(t))return e.size===t.size&&Le(Sn.shallowMap(e).entries(),Sn.shallowMap(t).entries());if(De(e).length!==De(t).length)return!1;for(var i in e){if(!(i in t))return!1;if(!Le(e[i],t[i]))return!1}return!0}return!1}function $e(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return Pe(e)&&e[n]===!0}}function Fe(e){return Array.isArray(e)||w(e)}function Ue(e){return Be(e)||An(e)}function Be(e){return void 0!==be().Map&&e instanceof be().Map}function He(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function Ve(e){return null===e?null:"object"==typeof e?""+e:e}function ze(){Un=!0,be().__mobxInstanceCount--}function qe(){ke("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),Fn=!0;var e=be(),t=$n;if(e.__mobservableTrackingStack||e.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(e.__mobxGlobal&&e.__mobxGlobal.version!==t.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");e.__mobxGlobal?$n=e.__mobxGlobal:e.__mobxGlobal=t}function We(){return $n}function Ke(){$n.resetId++;var e=new Ln;for(var t in e)Dn.indexOf(t)===-1&&($n[t]=e[t]);$n.allowStateChanges=!$n.strictMode}function Ye(e){return e.observers&&e.observers.length>0}function Ge(e){return e.observers}function Je(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Qe(e,t){if(1===e.observers.length)e.observers.length=0,Xe(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var a=r[t.__mapid]||0;a?r[o.__mapid]=a:delete r[o.__mapid],n[a]=o}delete r[t.__mapid]}}function Xe(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,$n.pendingUnobservations.push(e))}function Ze(){$n.inBatch++}function et(){if(0===--$n.inBatch){gt();for(var e=$n.pendingUnobservations,t=0;t0;$n.computationDepth>0&&t&&we(x("m031")+e.name),!$n.allowStateChanges&&t&&we(x($n.strictMode?"m030a":"m030b")+e.name)}function st(e,t,n){mt(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++$n.runId;var r=$n.trackingDerivation;$n.trackingDerivation=e;var o;try{o=t.call(n)}catch(e){o=new Vn(e)}return $n.trackingDerivation=r,ct(e),o}function ct(e){for(var n=e.observing,r=e.observing=e.newObserving,o=t.IDerivationState.UP_TO_DATE,a=0,i=e.unboundDepsCount,u=0;uo&&(o=l.dependenciesState)}for(r.length=a,e.newObserving=null,i=n.length;i--;){var l=n[i];0===l.diffValue&&Qe(l,e),l.diffValue=0}for(;a--;){var l=r[a];1===l.diffValue&&(l.diffValue=0,Je(l,e))}o!==t.IDerivationState.UP_TO_DATE&&(e.dependenciesState=o,e.onBecomeStale())}function ft(e){var n=e.observing;e.observing=[];for(var r=n.length;r--;)Qe(n[r],e);e.dependenciesState=t.IDerivationState.NOT_TRACKING}function dt(e){var t=pt(),n=e();return ht(t),n}function pt(){var e=$n.trackingDerivation;return $n.trackingDerivation=null,e}function ht(e){$n.trackingDerivation=e}function mt(e){if(e.dependenciesState!==t.IDerivationState.UP_TO_DATE){e.dependenciesState=t.IDerivationState.UP_TO_DATE;for(var n=e.observing,r=n.length;r--;)n[r].lowestObserverState=t.IDerivationState.UP_TO_DATE}}function yt(e){xe(this&&this.$mobx&&Kn(this.$mobx),"Invalid `this`"),xe(!this.$mobx.errorHandler,"Only one onErrorHandler can be registered"),this.$mobx.errorHandler=e}function vt(e){return $n.globalReactionErrorHandlers.push(e),function(){var t=$n.globalReactionErrorHandlers.indexOf(e);t>=0&&$n.globalReactionErrorHandlers.splice(t,1)}}function gt(){$n.inBatch>0||$n.isRunningReactions||Wn(bt)}function bt(){$n.isRunningReactions=!0;for(var e=$n.pendingReactions,t=0;e.length>0;){++t===qn&&(console.error("Reaction doesn't converge to a stable state after "+qn+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r0&&(t.dependencies=_e(e.observing).map(Vt)),t}function zt(e,t){return qt(Ct(e,t))}function qt(e){var t={name:e.name};return Ye(e)&&(t.observers=Ge(e).map(qt)),t}function Wt(e,t,n){var r;if(An(e)||w(e)||cn(e))r=Pt(e);else{if(!ne(e))return we("Expected observable map, object or array as first array");if("string"!=typeof t)return we("InterceptReads can only be used with a specific property, not with an object in general");r=Pt(e,t)}return void 0!==r.dehancer?we("An intercept reader was already established"):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})}Object.defineProperty(t,"__esModule",{value:!0});var Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Yt=function(){function e(e){void 0===e&&(e="Atom@"+Ee()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=t.IDerivationState.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){tt(this)},e.prototype.reportChanged=function(){Ze(),nt(this),et()},e.prototype.toString=function(){return this.name},e}(),Gt=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+Ee()),void 0===n&&(n=jn),void 0===r&&(r=jn);var o=e.call(this,t)||this;return o.name=t,o.onBecomeObservedHandler=n,o.onBecomeUnobservedHandler=r,o.isPendingUnobservation=!1,o.isBeingTracked=!1,o}return n(t,e),t.prototype.reportObserved=function(){return Ze(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),et(),!!$n.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(Yt),Jt=$e("Atom",Yt),Qt={spyReportEnd:!0},Xt="__$$iterating",Zt=1e4,en=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),tn=0,nn=function(){function e(){}return e}();v(nn,Array.prototype),Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(e){Object.defineProperty(nn.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})});var rn=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new Yt(e||"ObservableArray@"+Ee()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer?e.map(this.dehancer):e},e.prototype.intercept=function(e){return o(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),u(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r0&&e+t+1>tn&&E(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var o=this;lt(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:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=[]),r(this)){var u=a(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!u)return In;t=u.removedCount,n=u.added}n=n.map(function(e){return o.enhancer(e,void 0)});var l=n.length-t;this.updateArrayLength(i,l);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e",i=hn(a,n);Ie(e,t,i)},function(e){return this[e]},function(){xe(!1,x("m001"))},!1,!0),pn=I(function(e,t,n){F(e,t,n)},function(e){return this[e]},function(){xe(!1,x("m001"))},!1,!1),hn=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?k(e.name||"",e):2===arguments.length&&"function"==typeof t?k(e,t):1===arguments.length&&"string"==typeof e?D(e):D(t).apply(null,arguments)};hn.bound=function(e,t,n){if("function"==typeof e){var r=k("",e);return r.autoBind=!0,r}return pn.apply(null,arguments)};var mn={identity:U,structural:B,default:H},yn=function(){function e(e,n,r,o,a){this.derivation=e,this.scope=n,this.equals=r,this.dependenciesState=t.IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=t.IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+Ee(),this.value=new Vn(null),this.isComputing=!1,this.isRunningSetter=!1,this.name=o||"ComputedValue@"+Ee(),a&&(this.setter=k(o+"-setter",a))}return e.prototype.onBecomeStale=function(){ot(this)},e.prototype.onBecomeUnobserved=function(){ft(this),this.value=void 0},e.prototype.get=function(){xe(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===$n.inBatch?(Ze(),it(this)&&(this.value=this.computeValue(!1)),et()):(tt(this),it(this)&&this.trackAndCompute()&&rt(this));var e=this.value;if(at(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(at(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){xe(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else xe(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){s()&&c({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.value=this.computeValue(!0);return at(e)||at(t)||!this.equals(e,t)},e.prototype.computeValue=function(e){this.isComputing=!0,$n.computationDepth++;var t;if(e)t=st(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new Vn(e)}return $n.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return V(function(){var a=n.get();if(!r||t){var i=pt();e({type:"update",object:n,newValue:a,oldValue:o}),ht(i)}r=!1,o=a})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return Ve(this.get())},e.prototype.whyRun=function(){var e=Boolean($n.trackingDerivation),n=_e(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),r=_e(Ge(this).map(function(e){return e.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===t.IDerivationState.NOT_TRACKING?x("m032"):" * This computation will re-run if any of the following observables changes:\n "+Ce(n)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+x("m038")+"\n\n * If the outcome of this computation changes, the following observers will be re-run:\n "+Ce(r)+"\n")},e}();yn.prototype[He()]=yn.prototype.valueOf;var vn=$e("ComputedValue",yn),gn=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return xe(t!==!0,"`observe` doesn't support the fire immediately property for observable objects."),u(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}(),bn={},En={},wn=$e("ObservableObjectAdministration",gn),xn=oe(de),kn=oe(pe),On=oe(he),_n=oe(me),Cn=oe(ye),Pn=function(){function e(){}return e.prototype.box=function(e,t){return arguments.length>2&&se("box"),new sn(e,de,t)},e.prototype.shallowBox=function(e,t){return arguments.length>2&&se("shallowBox"),new sn(e,he,t)},e.prototype.array=function(e,t){return arguments.length>2&&se("array"),new on(e,de,t)},e.prototype.shallowArray=function(e,t){return arguments.length>2&&se("shallowArray"),new on(e,he,t)},e.prototype.map=function(e,t){return arguments.length>2&&se("map"),new Nn(e,de,t)},e.prototype.shallowMap=function(e,t){return arguments.length>2&&se("shallowMap"),new Nn(e,he,t)},e.prototype.object=function(e,t){arguments.length>2&&se("object");var n={};return K(n,t),ae(n,e),n},e.prototype.shallowObject=function(e,t){arguments.length>2&&se("shallowObject");var n={};return K(n,t),ie(n,e),n},e.prototype.ref=function(){return arguments.length<2?fe(he,arguments[0]):On.apply(null,arguments)},e.prototype.shallow=function(){return arguments.length<2?fe(pe,arguments[0]):kn.apply(null,arguments)},e.prototype.deep=function(){return arguments.length<2?fe(de,arguments[0]):xn.apply(null,arguments)},e.prototype.struct=function(){ -return arguments.length<2?fe(me,arguments[0]):_n.apply(null,arguments)},e}(),Sn=le;Object.getOwnPropertyNames(Pn.prototype).filter(function(e){return"constructor"!==e}).forEach(function(e){return Sn[e]=Pn.prototype[e]}),Sn.deep.struct=Sn.struct,Sn.ref.struct=function(){return arguments.length<2?fe(ye,arguments[0]):Cn.apply(null,arguments)};var Tn={},Nn=function(){function e(e,t,n){void 0===t&&(t=de),void 0===n&&(n="ObservableMap@"+Ee()),this.enhancer=t,this.name=n,this.$mobx=Tn,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new on(void 0,he,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return"undefined"!=typeof this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(r(this)){var o=a(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!o)return this;t=o.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,r(this)){var n=a(this,{type:"delete",object:this,name:e});if(!n)return!1}if(this._has(e)){var o=s(),u=i(this),n=u||o?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return o&&f(n),ve(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1);var n=t._data[e];n.setNewValue(void 0),t._data[e]=void 0}),u&&l(this,n),o&&d(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new sn(t,he,this.name+"."+e+"?",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if(t=n.prepareNewValue(t),t!==ln){var r=s(),o=i(this),a=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&f(a),n.setNewValue(t),o&&l(this,a),r&&d()}},e.prototype._addValue=function(e,t){var n=this;ve(function(){var r=n._data[e]=new sn(t,n.enhancer,n.name+"."+e,!1);t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var r=s(),o=i(this),a=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&f(a),o&&l(this,a),r&&d()},e.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return m(this._keys.slice())},e.prototype.values=function(){return m(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return m(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(r){return e.call(t,n.get(r),r,n)})},e.prototype.merge=function(e){var t=this;return An(e)&&(e=e.toJS()),ve(function(){Se(e)?Object.keys(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)}):Be(e)?e.forEach(function(e,n){return t.set(n,e)}):null!==e&&void 0!==e&&we("Cannot initialize map from "+e)}),this},e.prototype.clear=function(){var e=this;ve(function(){dt(function(){e.keys().forEach(e.delete,e)})})},e.prototype.replace=function(e){var t=this;return ve(function(){t.clear(),t.merge(e)}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return xe(t!==!0,x("m033")),u(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}();y(Nn.prototype,function(){return this.entries()});var An=$e("ObservableMap",Nn),In=[];Object.freeze(In);var Mn=[],jn=function(){},Rn=Object.prototype.hasOwnProperty,Dn=["mobxGuid","resetId","spyListeners","strictMode","runId"],Ln=function(){function e(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return e}(),$n=new Ln,Fn=!1,Un=!1,Bn=!1,Hn=be();Hn.__mobxInstanceCount?(Hn.__mobxInstanceCount++,setTimeout(function(){Fn||Un||Bn||(Bn=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))})):Hn.__mobxInstanceCount=1,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"}(t.IDerivationState||(t.IDerivationState={}));var Vn=function(){function e(e){this.cause=e}return e}(),zn=function(){function e(e,n){void 0===e&&(e="Reaction@"+Ee()),this.name=e,this.onInvalidate=n,this.observing=[],this.newObserving=[],this.dependenciesState=t.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+Ee(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,$n.pendingReactions.push(this),gt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(Ze(),this._isScheduled=!1,it(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&s()&&c({object:this,type:"scheduled-reaction"})),et())},e.prototype.track=function(e){Ze();var t,n=s();n&&(t=Date.now(),f({object:this,type:"reaction",fn:e})),this._isRunning=!0;var r=st(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ft(this),at(r)&&this.reportExceptionInDerivation(r.cause),n&&d({time:Date.now()-t}),et()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)return void this.errorHandler(e,this);var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,r=x("m037");console.error(n||r,e),s()&&c({type:"error",message:n,error:e,object:this}),$n.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Ze(),ft(this),et()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=yt,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=_e(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+Ce(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+x("m038")+"\n"},e}(),qn=100,Wn=function(e){return e()},Kn=$e("Reaction",zn),Yn=_t(mn.default),Gn=_t(mn.structural),Jn=function(e,t,n){if("string"==typeof t)return Yn.apply(null,arguments);xe("function"==typeof e,x("m011")),xe(arguments.length<3,x("m012"));var r="object"==typeof t?t:{};r.setter="function"==typeof t?t:r.setter;var o=r.equals?r.equals:r.compareStructural||r.struct?mn.structural:mn.default;return new yn(e,r.context,o,r.name||e.name||"",r.setter)};Jn.struct=Gn,Jn.equals=_t;var Qn={allowStateChanges:T,deepEqual:Le,getAtom:Ct,getDebugName:St,getDependencyTree:Ht,getAdministration:Pt,getGlobalState:We,getObserverTree:zt,interceptReads:Wt,isComputingDerivation:ut,isSpyEnabled:s,onReactionError:vt,reserveArrayBuffer:E,resetGlobalState:Ke,isolateGlobalState:ze,shareGlobalState:qe,spyReport:c,spyReportEnd:d,spyReportStart:f,setReactionScheduler:Et},Xn={Reaction:zn,untracked:dt,Atom:Gt,BaseAtom:Yt,useStrict:P,isStrictModeEnabled:S,spy:p,comparer:mn,asReference:wt,asFlat:kt,asStructure:xt,asMap:Ot,isModifierDescriptor:ce,isObservableObject:ne,isBoxedObservable:cn,isObservableArray:w,ObservableMap:Nn,isObservableMap:An,map:ge,transaction:ve,observable:Sn,computed:Jn,isObservable:re,isComputed:Tt,extendObservable:ae,extendShallowObservable:ie,observe:Nt,intercept:Mt,autorun:V,autorunAsync:q,when:z,reaction:W,action:hn,isAction:$,runInAction:L,expr:Dt,toJS:Lt,createTransformer:$t,whyRun:Bt,isArrayLike:Fe,extras:Qn},Zn=!1,er=function(e){var t=Xn[e];Object.defineProperty(Xn,e,{get:function(){return Zn||(Zn=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),t}})};for(var tr in Xn)er(tr);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:Qn}),t.extras=Qn,t.default=Xn,t.Reaction=zn,t.untracked=dt,t.Atom=Gt,t.BaseAtom=Yt,t.useStrict=P,t.isStrictModeEnabled=S,t.spy=p,t.comparer=mn,t.asReference=wt,t.asFlat=kt,t.asStructure=xt,t.asMap=Ot,t.isModifierDescriptor=ce,t.isObservableObject=ne,t.isBoxedObservable=cn,t.isObservableArray=w,t.ObservableMap=Nn,t.isObservableMap=An,t.map=ge,t.transaction=ve,t.observable=Sn,t.IObservableFactories=Pn,t.computed=Jn,t.isObservable=re,t.isComputed=Tt,t.extendObservable=ae,t.extendShallowObservable=ie,t.observe=Nt,t.intercept=Mt,t.autorun=V,t.autorunAsync=q,t.when=z,t.reaction=W,t.action=hn,t.isAction=$,t.runInAction=L,t.expr=Dt,t.toJS=Lt,t.createTransformer=$t,t.whyRun=Bt,t.isArrayLike=Fe}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),o=n(83);if("undefined"==typeof r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.location,i.default.createElement("p",{style:c.default.p},"This page is currently under construction")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),u=n(7),l=r(u),s=n(39),c=r(s),f={location:l.default.object.isRequired};o.propTypes=f,t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return null==e||d.default.isValidElement(e)}function a(e){return o(e)||Array.isArray(e)&&e.every(o)}function i(e,t){return c({},e,t)}function u(e){var t=e.type,n=i(t.defaultProps,e.props);if(n.children){var r=l(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function l(e,t){var n=[];return d.default.Children.forEach(e,function(e){if(d.default.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(u(e))}),n}function s(e){return a(e)?e=l(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t0?void 0:(0,d.default)(!1),null!=f&&(a+=encodeURI(f));else if("("===s)l[o]="",o+=1;else if(")"===s){var m=l.pop();o-=1,o?l[o-1]+=m:a+=m}else if("\\("===s)a+="(";else if("\\)"===s)a+=")";else if(":"===s.charAt(0))if(c=s.substring(1),f=t[c],null!=f||o>0?void 0:(0,d.default)(!1),null==f){if(o){l[o-1]="";for(var y=r.indexOf(s),v=r.slice(y,r.length),g=-1,b=0;b0?void 0:(0,d.default)(!1),p=y+g-1}}else o?l[o-1]+=encodeURIComponent(f):a+=encodeURIComponent(f);else o?l[o-1]+=s:a+=s;return o<=0?void 0:(0,d.default)(!1),a.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=u,t.getParamNames=l,t.getParams=s,t.formatPattern=c;var f=n(8),d=r(f),p=Object.create(null)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(t.indexOf("deprecated")!==-1){if(l[t])return;l[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.POP,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="string"==typeof e?(0,s.parsePath)(e):e,o=r.pathname||"/",a=r.search||"",i=r.hash||"",u=r.state;return{pathname:o,search:a,hash:i,state:u,action:t,key:n}},function(e){return"[object Date]"===Object.prototype.toString.call(e)}),d=t.statesAreEqual=function e(t,n){if(t===n)return!0;var r="undefined"==typeof t?"undefined":o(t),a="undefined"==typeof n?"undefined":o(n);if(r!==a)return!1;if("function"===r?(0,u.default)(!1):void 0,"object"===r){if(f(t)&&f(n)?(0,u.default)(!1):void 0,!Array.isArray(t)){var i=Object.keys(t),l=Object.keys(n);return i.length===l.length&&i.every(function(r){return e(t[r],n[r])})}return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&d(e.state,t.state)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return p.default.createElement("span",null,p.default.createElement("img",{className:e.size||"icon16",style:{verticalAlign:"middle"},src:("/src/img/icons/set/"+e.set+"/"+e.rarity+".png").toLowerCase()}),v.default.sets[e.set]," | ",e.rarity)}function a(e){var t="";return e.data.unique&&(t+="Unique, "),e.data.loyal&&(t+="Loyal","M'arrillian"==e.data.tribe&&(t+=" - M'arrillian or Minions"),"1"!=e.data.loyal&&(t+=" - "+e.data.loyal)),e.data.legendary&&(t+="Legendary"),t=t.replace(/,\s+$/,""),p.default.createElement("span",{style:{fontWeight:"Bold"}},t,t&&p.default.createElement("br",null))}function i(e){var t=e.name.split(",");return t.length>1?p.default.createElement("span",null,p.default.createElement("span",{className:"bigger"},t[0]),p.default.createElement("br",null),"  ",p.default.createElement("span",{style:{fontSize:"13px",paddingBottom:"4px",display:"inline-block"}},t[1])):p.default.createElement("span",null,p.default.createElement("span",{className:"bigger"},t[0]))}function u(e){return e.value?p.default.createElement("img",{className:e.size||"icon20",src:("/src/img/icons/elements/"+e.element+".png").toLowerCase()}):p.default.createElement("img",{className:e.size||"icon20",src:("/src/img/icons/elements/"+e.element+"-inactive.png").toLowerCase()})}function l(e){return p.default.createElement("img",{className:e.size||"icon20",src:("/src/img/icons/mugic/"+(e.tribe||"generic")+".png").toLowerCase(),alt:"MC"})}function s(e){return p.default.createElement("img",{className:e.size||"icon16",src:("/src/img/icons/disciplines/"+e.discipline+".png").toLowerCase()})}function c(e){return p.default.createElement("img",{className:e.size||"icon16",src:("/src/img/icons/tribes/"+e.tribe+".png").toLowerCase()})}function f(e){var t={regex:/{{mc}}/i,fn:function(t,n){return p.default.createElement(l,{key:t,tribe:e.tribe,size:"icon14"})}},n={regex:/(fire)|(air)|(earth)|(water)/i,fn:function(e,t){return p.default.createElement("span",{key:e},p.default.createElement(u,{element:t[0],value:"true",size:"icon14"}),t[0])}},r={regex:/(courage)|(power)|(wisdom)|(speed)/i,fn:function(e,t){return p.default.createElement("span",{key:e},p.default.createElement(s,{discipline:t[0],size:"icon14"}),t[0])}},o=[t,n,r];return p.default.createElement("div",{className:e.type||"ability"},(0,m.default)(o)(e.ability))}Object.defineProperty(t,"__esModule",{value:!0}),t.Rarity=o,t.Unique=a,t.Name=i,t.Element=u,t.Mugic=l,t.Discipline=s,t.Tribe=c,t.Ability=f;var d=n(1),p=r(d),h=(n(10),n(3),n(111)),m=r(h),y=n(4),v=r(y)},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,u,l=n(e),s=1;s should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var o=n(7),a=(t.history=(0,o.shape)({listen:o.func.isRequired,push:o.func.isRequired,replace:o.func.isRequired,go:o.func.isRequired,goBack:o.func.isRequired,goForward:o.func.isRequired}),t.component=(0,o.oneOfType)([o.func,o.string])),i=(t.components=(0,o.oneOfType)([a,o.object]),t.route=(0,o.oneOfType)([o.object,o.element]));t.routes=(0,o.oneOfType)([i,(0,o.arrayOf)(i)])},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,a,i,u,l){if(o(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,u,l],f=0;s=new Error(t.replace(/%s/g,function(){return c[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(e){};e.exports=r},function(e,t){"use strict";t.__esModule=!0,t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(e,t){"use strict";t.__esModule=!0,t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&window.history&&"pushState"in window.history},t.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},t.supportsPopstateOnHashchange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),i=Object.create(a.default);i.pageLinkContainer={margin:"1vh 0"},t.default=i},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){return m===Number.MAX_SAFE_INTEGER&&(m=0),m++,void 0===h[e][m]?m:r(e)}function o(e,t){var n=r(e);return h[e][n]=p[e].push({id:n,callback:t})-1,n}function a(e,t){"undefined"!==h[e][t]&&(p[e][h[e][t]].callback=y,delete h[e][t])}function i(e,t){e.forEach(function(e){d[e]=t})}function u(e){d[e.type](e)}function l(e){if(0!==p[e.type].length){e.persist=y;var t=[],n={};p[e.type].forEach(function(r){"reNotifyOfNext"===r.callback(e)&&(n[r.id]=t.push(r)-1)}),p[e.type]=t,h[e.type]=n}}function s(e){u(e),l(e)}function c(e,t,n,r){p[t]=[],h[t]={},e.addEventListener(t,n,f.passiveEventSupport?{capture:r,passive:"click"!==t}:r)}Object.defineProperty(t,"__esModule",{value:!0}),t.notifyOfNext=o,t.cancelNotifyOfNext=a,t.notifyOfAll=i;var f=n(16),d={},p={},h={},m=0,y=function(){};if(f.deviceHasTouch&&(c(window,"click",u,!0),Object.keys(f.touchEvents).forEach(function(e){c(document,e,"touchstart"===e?s:u,!0)})),f.deviceHasMouse){Object.keys(f.mouseEvents).forEach(function(e){c(document,e,"mouseenter"===e?s:u,!("mouseenter"===e||"mouseleave"===e))}),c(document,"dragstart",l,!0),f.passiveEventSupport&&c(document,"scroll",l,!0),p.mutation=[],h.mutation={};var v=(0,f.dummyEvent)("mutation"),g=new MutationObserver(l.bind(null,v));g.observe(document,{childList:!0,attributes:!0,subtree:!0,characterData:!0})}["focus","blur"].forEach(function(e){c(window,e,l,!1)}),c(document,"keydown",u,!0)},function(e,t){"use strict";function n(e,t,n){function r(){return i=!0,u?void(s=[].concat(Array.prototype.slice.call(arguments))):void n.apply(this,arguments)}function o(){if(!i&&(l=!0,!u)){for(u=!0;!i&&a=e&&l&&(i=!0,n()))}}var a=0,i=!1,u=!1,l=!1,s=void 0;o()}function r(e,t,n){function r(e,t,r){i||(t?(i=!0,n(t)):(a[e]=r,i=++u===o,i&&n(null,a)))}var o=e.length,a=[];if(0===o)return n(null,a);var i=!1,u=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return"@@contextSubscriber/"+e}function a(e){var t,n,r=o(e),a=r+"/listeners",i=r+"/eventIndex",u=r+"/subscribe";return n={childContextTypes:(t={},t[r]=s.isRequired,t),getChildContext:function(){var e;return e={},e[r]={eventIndex:this[i],subscribe:this[u]},e},componentWillMount:function(){this[a]=[],this[i]=0},componentWillReceiveProps:function(){this[i]++},componentDidUpdate:function(){var e=this;this[a].forEach(function(t){return t(e[i])})}},n[u]=function(e){var t=this;return this[a].push(e),function(){t[a]=t[a].filter(function(t){return t!==e})}},n}function i(e){var t,n,r=o(e),a=r+"/lastRenderedEventIndex",i=r+"/handleContextUpdate",u=r+"/unsubscribe";return n={contextTypes:(t={},t[r]=s,t),getInitialState:function(){var e;return this.context[r]?(e={},e[a]=this.context[r].eventIndex,e):{}},componentDidMount:function(){this.context[r]&&(this[u]=this.context[r].subscribe(this[i]))},componentWillReceiveProps:function(){var e;this.context[r]&&this.setState((e={},e[a]=this.context[r].eventIndex,e))},componentWillUnmount:function(){this[u]&&(this[u](),this[u]=null)}},n[i]=function(e){if(e!==this.state[a]){var t;this.setState((t={},t[a]=e,t))}},n}t.__esModule=!0,t.ContextProvider=a,t.ContextSubscriber=i;var u=n(7),l=r(u),s=l.default.shape({subscribe:l.default.func.isRequired,eventIndex:l.default.number.isRequired})},function(e,t,n){"use strict";t.__esModule=!0,t.locationShape=t.routerShape=void 0;var r=n(7);t.routerShape=(0,r.shape)({push:r.func.isRequired,replace:r.func.isRequired,go:r.func.isRequired,goBack:r.func.isRequired,goForward:r.func.isRequired,setRouteLeaveHook:r.func.isRequired,isActive:r.func.isRequired}),t.locationShape=(0,r.shape)({pathname:r.string.isRequired,search:r.string.isRequired,state:r.object,action:r.string.isRequired,key:r.string})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,n=e.getUserConfirmation,r=e.pushLocation,i=e.replaceLocation,c=e.go,f=e.keyLength,d=void 0,p=void 0,h=[],m=[],y=[],v=function(){return p&&p.action===l.POP?y.indexOf(p.key):d?y.indexOf(d.key):-1},g=function(e){var t=v();d=e,d.action===l.PUSH?y=[].concat(y.slice(0,t+1),[d.key]):d.action===l.REPLACE&&(y[t]=d.key),m.forEach(function(e){return e(d)})},b=function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},E=function(e){return m.push(e),function(){return m=m.filter(function(t){return t!==e})}},w=function(e,t){(0,o.loopAsync)(h.length,function(t,n,r){(0,u.default)(h[t],e,function(e){return null!=e?r(e):n()})},function(e){n&&"string"==typeof e?n(e,function(e){return t(e!==!1)}):t(e!==!1)})},x=function(e){d&&(0,s.locationsAreEqual)(d,e)||p&&(0,s.locationsAreEqual)(p,e)||(p=e,w(e,function(t){if(p===e)if(p=null,t){if(e.action===l.PUSH){var n=(0,a.createPath)(d),o=(0,a.createPath)(e);o===n&&(0,s.statesAreEqual)(d.state,e.state)&&(e.action=l.REPLACE)}e.action===l.POP?g(e):e.action===l.PUSH?r(e)!==!1&&g(e):e.action===l.REPLACE&&i(e)!==!1&&g(e)}else if(d&&e.action===l.POP){var u=y.indexOf(d.key),f=y.indexOf(e.key);u!==-1&&f!==-1&&c(u-f)}}))},k=function(e){return x(T(e,l.PUSH))},O=function(e){return x(T(e,l.REPLACE))},_=function(){return c(-1)},C=function(){return c(1)},P=function(){return Math.random().toString(36).substr(2,f||6)},S=function(e){return(0,a.createPath)(e)},T=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P();return(0,s.createLocation)(e,t,n)};return{getCurrentLocation:t,listenBefore:b,listen:E,transitionTo:x,push:k,replace:O,go:c,goBack:_,goForward:C,createKey:P,createPath:a.createPath,createHref:S,createLocation:T}};t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(15),a=(r(o),function(e,t,n){var r=e(t,n);e.length<2&&n(r)});t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),i=Object.create(a.default);t.default=i},function(e,t,n){var r,o,a;(function(i){!function(n,i){o=[],r=i,a="function"==typeof r?r.apply(t,o):r,!(void 0!==a&&(e.exports=a))}(this,function(){return function(){"use strict";function e(e,t){var n,r,o,a;if(e===t)return!0;if(!e||!t||e===!0||t===!0||e!==e||t!==t){switch(e){case void 0:o=1;break;case null:o=1;break;case!1:o=3;break;case!0:o=4;break;case"":o=5;break;default:o=e===e?9:0}switch(t){case void 0:a=1;break;case null:a=1;break;case!1:a=3;break;case!0:a=4;break;case"":a=5;break;default:a=t===t?9:0}if(9!==o||9!==a)return o===a}return n=Number(e),r=Number(t),n===n||r===r?n===r:(n=e.toString(),r=t.toString(),n==r)}function t(e,t,n){var r,o,a,i;if(!e||!t||e===!0||t===!0||e!==e||t!==t){switch(e){case void 0:a=1;break;case null:a=1;break;case!1:a=3;break;case!0:a=4;break;case"":a=5;break;default:a=e===e?9:0}switch(t){case void 0:i=1;break;case null:i=1;break;case!1:i=3;break;case!0:i=4;break;case"":i=5;break;default:i=t===t?9:0}if(9!==a||9!==i)return a===i?n:ao)&&n:r===r&&o!==o||(o!==o||r===r)&&(et)&&(e==t?n:(r=e.toString(),o=t.toString(),ri}return r=Number(e),o=Number(t),r===r&&o===o?r>o||!(rt||!(eo||r==o&&n)))}function o(n,o,a){return e(n,o)?0:t(n,o,!1)?a?1:-1:r(n,o,!1)?a?-1:1:0}function a(e,t,n){for(var r,a,i,u,l,s=0,c=0,f=e.length;c=t.length)l=n(s,r);else if(Array.isArray(s))for(var c=0,f=s.length;c=0||"$loki"==i||"meta"==i)r[i]=t[i];else{var u=a(e[i],t[i]);"undefined"!=typeof u&&u!={}&&(r[i]=u)}}return 0===Object.keys(r).length?void 0:r}return e===t?void 0:t}function i(){h.changes=[]}function u(e){var t,n;if(e)if(Array.isArray(e))for(t=e.length,n=0;n0;)o=o[r.shift()];return o}function S(e,t,n){for(var r,o,a=0,i=e.length;a>1,r=n.apply(null,[t,e[o]]),0===r)return{found:!0,index:o};r<0?i=o:a=o+1}return{found:!1,index:i}}function T(e){return function(t,n){return S(t,n,e)}}function N(){}function A(e){this.field=e,this.keyMap={},this.lokiMap={}}function I(e){this.index={},this.field=e}function M(e){this.field=e}var j=Object.prototype.hasOwnProperty,R={copyProperties:function(e,t){var n;for(n in e)t[n]=e[n]},resolveTransformObject:function(e,t,n){var r,o;if("number"!=typeof n&&(n=0),++n>=10)return e;for(r in e)"string"==typeof e[r]&&0===e[r].indexOf("[%lktxp]")?(o=e[r].substring(8),t.hasOwnProperty(o)&&(e[r]=t[o])):"object"==typeof e[r]&&(e[r]=R.resolveTransformObject(e[r],t,n));return e},resolveTransformParams:function(e,t){var n,r,o=[];if("undefined"==typeof t)return e;for(n=0;n=0)return this.serializeCollection({delimited:e.delimited,delimiter:e.delimiter,collectionIndex:e.partition});for(a=new p(this.filename),a.loadJSONObject(this),t=0;to&&(c=!0):(i=JSON.parse(u[s]),r.collections[l].data.push(i)),u[s++]=null;return r},p.prototype.deserializeCollection=function(e,t){var n,r,o=[];for(t=t||{},t.hasOwnProperty("partitioned")||(t.partitioned=!1),t.hasOwnProperty("delimited")||(t.delimited=!0),t.hasOwnProperty("delimiter")||(t.delimiter=this.options.destructureDelimiter),t.delimited?(o=e.split(t.delimiter),o.pop()):o=e,r=o.length,n=0;n=a&&(s=!0)),o>=this.options.pageSize&&(c=!0),c&&!s||(l+=this.options.delimiter,o+=i),s||c)return void this.adapter.saveDatabase(r,l,f)},y.prototype.loadDatabase=function(e,t){var n=this;this.fs.stat(e,function(r,o){!r&&o.isFile()?n.fs.readFile(e,{encoding:"utf8"},function(e,n){t(e?new Error(e):n)}):t(null)})},y.prototype.saveDatabase=function(e,t,n){var r=this,o=e+"~";this.fs.writeFile(o,t,function(t){t?n(new Error(t)):r.fs.rename(o,e,n)})},y.prototype.deleteDatabase=function(e,t){this.fs.unlink(e,function(e){e?t(new Error(e)):t()})},v.prototype.loadDatabase=function(e,t){t(f()?localStorage.getItem(e):new Error("localStorage is not available"))},v.prototype.saveDatabase=function(e,t,n){f()?(localStorage.setItem(e,t),n(null)):n(new Error("localStorage is not available"))},v.prototype.deleteDatabase=function(e,t){f()?(localStorage.removeItem(e),t(null)):t(new Error("localStorage is not available"))},p.prototype.throttledSaveDrain=function(e,t){var n=this,r=(new Date).getTime();if(this.throttledSaves||e(!0),t=t||{},t.hasOwnProperty("recursiveWait")||(t.recursiveWait=!0),t.hasOwnProperty("recursiveWaitLimit")||(t.recursiveWaitLimit=!1),t.hasOwnProperty("recursiveWaitLimitDuration")||(t.recursiveWaitLimitDuration=2e3),t.hasOwnProperty("started")||(t.started=(new Date).getTime()),this.throttledSaves&&this.throttledSavePending){if(!t.recursiveWait)return void this.throttledCallbacks.push(e);this.throttledCallbacks.push(function(){return n.throttledSavePending?t.recursiveWaitLimit&&r-t.started>t.recursiveWaitLimitDuration?void e(!1):void n.throttledSaveDrain(e,t):void e(!0)})}else e(!0)},p.prototype.loadDatabaseInternal=function(e,t){var n=t||function(e,t){if(e)throw e},r=this;null!==this.persistenceAdapter?this.persistenceAdapter.loadDatabase(this.filename,function(t){if("string"==typeof t){ -var o=!1;try{r.loadJSON(t,e||{}),o=!0}catch(e){n(e)}o&&(n(null),r.emit("loaded","database "+r.filename+" loaded"))}else{if(!t)return n(null),void r.emit("loaded","empty database "+r.filename+" loaded");if(t instanceof Error)return void n(t);if("object"==typeof t)return r.loadJSONObject(t,e||{}),n(null),void r.emit("loaded","database "+r.filename+" loaded");n("unexpected adapter response : "+t)}}):n(new Error("persistenceAdapter not configured"))},p.prototype.loadDatabase=function(e,t){var n=this;return this.throttledSaves?void this.throttledSaveDrain(function(r){return r?(n.throttledSavePending=!0,void n.loadDatabaseInternal(e,function(e){0===n.throttledCallbacks.length?n.throttledSavePending=!1:n.saveDatabase(),"function"==typeof t&&t(e)})):void("function"==typeof t&&t(new Error("Unable to pause save throttling long enough to read database")))},e):void this.loadDatabaseInternal(e,t)},p.prototype.saveDatabaseInternal=function(e){var t=e||function(e){if(e)throw e},n=this;null!==this.persistenceAdapter?"reference"===this.persistenceAdapter.mode&&"function"==typeof this.persistenceAdapter.exportDatabase?this.persistenceAdapter.exportDatabase(this.filename,this.copy({removeNonSerializable:!0}),function(e){n.autosaveClearFlags(),t(e)}):this.persistenceAdapter.saveDatabase(this.filename,n.serialize(),function(e){n.autosaveClearFlags(),t(e)}):t(new Error("persistenceAdapter not configured"))},p.prototype.saveDatabase=function(e){if(!this.throttledSaves)return void this.saveDatabaseInternal(e);if(this.throttledSavePending)return void this.throttledCallbacks.push(e);var t=this.throttledCallbacks;this.throttledCallbacks=[],t.unshift(e),this.throttledSavePending=!0;var n=this;this.saveDatabaseInternal(function(e){n.throttledSavePending=!1,t.forEach(function(t){"function"==typeof t&&setTimeout(function(){t(e)},1)}),n.throttledCallbacks.length>0&&n.saveDatabase()})},p.prototype.save=p.prototype.saveDatabase,p.prototype.deleteDatabase=function(e,t){var n=t||function(e,t){if(e)throw e};"function"!=typeof e||t||(n=e),null!==this.persistenceAdapter?this.persistenceAdapter.deleteDatabase(this.filename,function(e){n(e)}):n(new Error("persistenceAdapter not configured"))},p.prototype.autosaveDirty=function(){for(var e=0;e0&&(this.filteredrows=[]),this.filterInitialized=!1,this},g.prototype.toJSON=function(){var e=this.copy();return e.collection=null,e},g.prototype.limit=function(e){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var t=new g(this.collection);return t.filteredrows=this.filteredrows.slice(0,e),t.filterInitialized=!0,t},g.prototype.offset=function(e){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var t=new g(this.collection);return t.filteredrows=this.filteredrows.slice(e),t.filterInitialized=!0,t},g.prototype.copy=function(){var e=new g(this.collection);return this.filteredrows.length>0&&(e.filteredrows=this.filteredrows.slice()),e.filterInitialized=this.filterInitialized,e},g.prototype.branch=g.prototype.copy,g.prototype.transform=function(e,t){var n,r,o=this;if("string"==typeof e&&this.collection.transforms.hasOwnProperty(e)&&(e=this.collection.transforms[e]),"object"!=typeof e||!Array.isArray(e))throw new Error("Invalid transform");for("undefined"!=typeof t&&(e=R.resolveTransformParams(e,t)),n=0;n1)return this.find({$and:p},t)}if(!r||"getAll"===c)return t&&(this.filteredrows=this.collection.data.length>0?[0]:[],this.filterInitialized=!0),this;if("$and"===r||"$or"===r)return this[r](o),t&&this.filteredrows.length>1&&(this.filteredrows=this.filteredrows.slice(0,1)),this;if(null===o||"object"!=typeof o||o instanceof Date)i="$eq",l=o;else{if("object"!=typeof o)throw new Error("Do not know what you want to do.");for(s in o)if(j.call(o,s)){i=s,l=o[s];break}}"$regex"===i&&(Array.isArray(l)?l=new RegExp(l[0],l[1]):l instanceof RegExp||(l=new RegExp(l)));var m=r.indexOf(".")!==-1,y=!m&&!this.filterInitialized;y&&this.collection.binaryIndices[r]&&L[i]&&(this.collection.adaptiveBinaryIndices!==!0&&this.collection.ensureIndex(r),f=!0,h=this.collection.binaryIndices[r]);var v,g=D[i],b=this.collection.data,E=0,w=0,x=0;if(this.filterInitialized)if(v=this.filteredrows,w=v.length,m)for(r=r.split("."),E=0;E=0?(this.filterPipeline[t]=e,this.reapplyFilters()):(this.cachedresultset=null,this.options.persistent&&(this.resultdata=[],this.resultsdirty=!0),this._addFilter(e),this.sortFunction||this.sortCriteria?this.queueSortPhase():this.queueRebuildEvent(),this)},b.prototype.applyFind=function(e,t){return this.applyFilter({type:"find",val:e,uid:t}),this},b.prototype.applyWhere=function(e,t){return this.applyFilter({type:"where",val:e,uid:t}),this},b.prototype.removeFilter=function(e){var t=this._indexOfFilterWithId(e);if(t<0)throw new Error("Dynamic view does not contain a filter with ID: "+e);return this.filterPipeline.splice(t,1),this.reapplyFilters(),this},b.prototype.count=function(){return this.resultsdirty&&(this.resultdata=this.resultset.data()),this.resultset.count()},b.prototype.data=function(e){return(this.sortDirty||this.resultsdirty)&&this.performSortPhase({suppressRebuildEvent:!0}),this.options.persistent?this.resultdata:this.resultset.data(e)},b.prototype.queueRebuildEvent=function(){if(!this.rebuildPending){this.rebuildPending=!0;var e=this;setTimeout(function(){e.rebuildPending&&(e.rebuildPending=!1,e.emit("rebuild",e))},this.options.minRebuildInterval)}},b.prototype.queueSortPhase=function(){if(!this.sortDirty){this.sortDirty=!0;var e=this;"active"===this.options.sortPriority?setTimeout(function(){e.performSortPhase()},this.options.minRebuildInterval):this.queueRebuildEvent()}},b.prototype.performSortPhase=function(e){(this.sortDirty||this.resultsdirty)&&(e=e||{},this.sortDirty&&(this.sortFunction?this.resultset.sort(this.sortFunction):this.sortCriteria&&this.resultset.compoundsort(this.sortCriteria),this.sortDirty=!1),this.options.persistent&&(this.resultdata=this.resultset.data(),this.resultsdirty=!1),e.suppressRebuildEvent||this.emit("rebuild",this))},b.prototype.evaluateDocument=function(e,t){if(!this.resultset.filterInitialized)return this.options.persistent&&(this.resultdata=this.resultset.data()),void(this.sortFunction||this.sortCriteria?this.queueSortPhase():this.queueRebuildEvent());var n=this.resultset.filteredrows,r=t?-1:n.indexOf(+e),o=n.length,a=new g(this.collection);a.filteredrows=[e],a.filterInitialized=!0;for(var i,u=0,l=this.filterPipeline.length;ue&&n[t]--},b.prototype.mapReduce=function(e,t){try{return t(this.data().map(e))}catch(e){throw e}},E.prototype=new d,E.prototype.console={log:function(){},warn:function(){},error:function(){}},E.prototype.addAutoUpdateObserver=function(e){this.autoupdate&&"function"==typeof Object.observe&&Object.observe(e,this.observerCallback,["add","update","delete","reconfigure","setPrototype"])},E.prototype.removeAutoUpdateObserver=function(e){this.autoupdate&&"function"==typeof Object.observe&&Object.unobserve(e,this.observerCallback)},E.prototype.addTransform=function(e,t){if(this.transforms.hasOwnProperty(e))throw new Error("a transform by that name already exists");this.transforms[e]=t},E.prototype.getTransform=function(e){return this.transforms[e]},E.prototype.setTransform=function(e,t){this.transforms[e]=t},E.prototype.removeTransform=function(e){delete this.transforms[e]},E.prototype.byExample=function(e){var t,n,r;r=[];for(t in e)e.hasOwnProperty(t)&&r.push((n={},n[t]=e[t],n));return{$and:r}},E.prototype.findObject=function(e){return this.findOne(this.byExample(e))},E.prototype.findObjects=function(e){return this.find(this.byExample(e))},E.prototype.ttlDaemonFuncGen=function(){var e=this,t=this.ttl.age;return function(){var n=Date.now(),r=e.chain().where(function(e){var r=e.meta.updated||e.meta.created,o=n-r;return t>1;if(e="number"==typeof e?e:parseInt(e,10),isNaN(e))throw new TypeError("Passed id is not an integer");for(;r[a]>1,r[i]e&&i[o]--},E.prototype.calculateRangeStart=function(n,r,o){var a=this.data,i=this.binaryIndices[n].values,u=0,l=i.length-1,s=0;if(0===i.length)return-1;for(a[i[u]][n],a[i[l]][n];u>1,t(a[i[s]][n],r,!1)?u=s+1:l=s;var c=u;return e(r,a[i[c]][n])?c:t(r,a[i[c]][n],!1)?o?c:c-1:o?c+1:c},E.prototype.calculateRangeEnd=function(n,o){var a=this.data,i=this.binaryIndices[n].values,u=0,l=i.length-1,s=0;if(0===i.length)return-1;for(a[i[u]][n],a[i[l]][n];u>1,t(o,a[i[s]][n],!1)?l=s:u=s+1;var c=l;return e(o,a[i[c]][n])?c:r(o,a[i[c]][n],!1)?c+1:e(o,a[i[c-1]][n])?c-1:c},E.prototype.calculateRange=function(n,o,a){var i,u,l,s,c=this.data,f=this.binaryIndices[o].values,d=0,p=f.length-1;if(0===c.length)return[0,-1];var h=c[f[d]][o],m=c[f[p]][o];switch(n){case"$eq":case"$aeq":if(t(a,h,!1)||r(a,m,!1))return[0,-1];break;case"$dteq":if(t(a,h,!1)||r(a,m,!1))return[0,-1];break;case"$gt":if(r(a,m,!0))return[0,-1];if(r(h,a,!1))return[d,p];break;case"$gte":if(r(a,m,!1))return[0,-1];if(r(h,a,!0))return[d,p];break;case"$lt":if(t(a,h,!0))return[0,-1];if(t(m,a,!1))return[d,p];break;case"$lte":if(t(a,h,!1))return[0,-1];if(t(m,a,!0))return[d,p];break;case"$between":return r(a[0],m,!1)?[0,-1]:t(a[1],h,!1)?[0,-1]:(i=this.calculateRangeStart(o,a[0]),l=this.calculateRangeEnd(o,a[1]),i<0&&i++,l>p&&l--,r(c[f[i]][o],a[0],!0)||i++,t(c[f[l]][o],a[1],!0)||l--,lP(this.data[n],e,o)&&(t=P(this.data[n],e,o),a.index=this.data[n].$loki):(t=P(this.data[n],e,o),a.index=this.data[n].$loki);return a.value=t,a},E.prototype.extractNumerical=function(e){return this.extract(e).map(x).filter(Number).filter(function(e){return!isNaN(e)})},E.prototype.avg=function(e){return _(this.extractNumerical(e))},E.prototype.stdDev=function(e){return C(this.extractNumerical(e))},E.prototype.mode=function(e){var t={},n=this.extract(e);n.forEach(function(e){t[e]?t[e]+=1:t[e]=1});var r,o,a;for(o in t)r?rt?1:0},setSort:function(e){this.bs=new T(e)},bs:function(){return new T(this.sort)},set:function(e,t){var n=this.bs(this.keys,e);n.found?this.values[n.index]=t:(this.keys.splice(n.index,0,e),this.values.splice(n.index,0,t))},get:function(e){return this.values[S(this.keys,e,this.sort).index]}},A.prototype.keyMap={},A.prototype.lokiMap={},A.prototype.set=function(e){var t=e[this.field];if(null!==t&&"undefined"!=typeof t){if(this.keyMap[t])throw new Error("Duplicate key for property "+this.field+": "+t);this.keyMap[t]=e,this.lokiMap[e.$loki]=t}},A.prototype.get=function(e){return this.keyMap[e]},A.prototype.byId=function(e){return this.keyMap[this.lokiMap[e]]},A.prototype.update=function(e,t){if(this.lokiMap[e.$loki]!==t[this.field]){var n=this.lokiMap[e.$loki];this.set(t),this.keyMap[n]=void 0}else this.keyMap[e[this.field]]=t},A.prototype.remove=function(e){var t=this.keyMap[e];if(null===t||"undefined"==typeof t)throw new Error("Key is not in unique index: "+this.field);this.keyMap[e]=void 0,this.lokiMap[t.$loki]=void 0},A.prototype.clear=function(){this.keyMap={},this.lokiMap={}},I.prototype={set:function(e,t){this.index[e]?this.index[e].push(t):this.index[e]=[t]},remove:function(e,t){var n=this.index[e];for(var r in n)n[r]==t&&n.splice(r,1);n.length<1&&(this.index[e]=void 0)},get:function(e){return this.index[e]},clear:function(e){this.index={}}},M.prototype={keys:[],values:[],sort:function(e,t){return et?1:0},bs:function(){return new T(this.sort)},setSort:function(e){this.bs=new T(e)},set:function(e,t){var n=S(this.keys,e,this.sort);n.found?this.values[n.index].push(t):(this.keys.splice(n.index,0,e),this.values.splice(n.index,0,[t]))},get:function(e){var t=S(this.keys,e,this.sort);return t.found?this.values[t.index]:[]},getLt:function(e){var t=S(this.keys,e,this.sort),n=t.index;return t.found&&n--,this.getAll(e,0,n)},getGt:function(e){var t=S(this.keys,e,this.sort),n=t.index;return t.found&&n++,this.getAll(e,n,this.keys.length)},getAll:function(e,t,n){for(var r=[],o=t;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return 0===e.button}function i(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function l(e,t){return"function"==typeof e?e(t.location):e}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t=0;r--){var o=e[r],a=o.path||"";if(n=a.replace(/\/*$/,"/")+n,0===a.indexOf("/"))break}return"/"+n}},propTypes:{path:i.string,from:i.string,to:i.string.isRequired,query:i.object,state:i.object,onEnter:f.falsy,children:f.falsy},render:function(){(0,l.default)(!1)}});t.default=d,e.exports=t.default},function(e,t){"use strict";function n(e,t,n){var a=o({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive});return r(a,n)}function r(e,t){var n=t.location,r=t.params,o=t.routes;return e.location=n,e.params=r,e.routes=o,e}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=_++)}function l(e){return e.map(function(e){return C[u(e)]}).filter(function(e){return e})}function c(e,n){(0,v.default)(t,e,function(t,r){if(null==r)return void n();O=i({},r,{location:e});for(var o=l((0,s.default)(b,O).leaveRoutes),a=void 0,u=0,c=o.length;null==a&&u0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.basename,a=function(e){return e?(r&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(r.toLowerCase())?(e.pathname=e.pathname.substring(r.length),e.basename=r,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},l=function(e){if(!r)return e;var t="string"==typeof e?(0,u.parsePath)(e):e,n=t.pathname,a="/"===r.slice(-1)?r:r+"/",i="/"===n.charAt(0)?n.slice(1):n,l=a+i;return o({},t,{pathname:l})},s=function(){return a(n.getCurrentLocation())},c=function(e){return n.listenBefore(function(t,n){return(0,i.default)(e,a(t),n)})},f=function(e){return n.listen(function(t){return e(a(t))})},d=function(e){return n.push(l(e))},p=function(e){return n.replace(l(e))},h=function(e){return n.createPath(l(e))},m=function(e){return n.createHref(l(e))},y=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.stringifyQuery,a=t.parseQueryString;"function"!=typeof r&&(r=c),"function"!=typeof a&&(a=f);var i=function(e){return e?(null==e.query&&(e.query=a(e.search.substring(1))),e):e},d=function(e,t){if(null==t)return e;var n="string"==typeof e?(0,s.parsePath)(e):e,a=r(t),i=a?"?"+a:"";return o({},n,{search:i})},p=function(){return i(n.getCurrentLocation())},h=function(e){return n.listenBefore(function(t,n){return(0,u.default)(e,i(t),n)})},m=function(e){return n.listen(function(t){return e(i(t))})},y=function(e){return n.push(d(e,e.query))},v=function(e){return n.replace(d(e,e.query))},g=function(e){return n.createPath(d(e,e.query))},b=function(e){return n.createHref(d(e,e.query))},E=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o1?g.default.createElement("button",{onClick:function(){e.p--}},"prev"):g.default.createElement("button",{disabled:!0},"prev")};return g.default.createElement("div",{style:{textAlign:"left"}},g.default.createElement("p",null,"Showing page ",this.p," of ",t," ",r()," ",n()),g.default.createElement("p",null,"Entries per page: ",g.default.createElement("input",{type:"button",value:"5",disabled:"5"==this.n,onClick:function(t){return e.n=t.target.value}})," ",g.default.createElement("input",{type:"button",value:"10",disabled:"10"==this.n,onClick:function(t){return e.n=t.target.value}})," ",g.default.createElement("input",{type:"button",value:"20",disabled:"20"==this.n,onClick:function(t){return e.n=t.target.value}})," ",g.default.createElement("input",{type:"button",value:"50",disabled:"50"==this.n,onClick:function(t){return e.n=t.target.value}})))}}]),t}(g.default.Component),d=l(f.prototype,"n",[x.observable],{enumerable:!0,initializer:function(){return 10}}),p=l(f.prototype,"p",[x.observable],{enumerable:!0,initializer:function(){return 1}}),h=l(f.prototype,"content",[x.observable],{enumerable:!0,initializer:function(){return[]}}),m=l(f.prototype,"card_img",[x.observable],{enumerable:!0,initializer:function(){return E.default.card_back}}),c=f))||c)||c);t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,l,s=function(){function e(e,t){for(var n=0;n0&&(u=u.find({gsx$tribe:{$or:f}}),s=s.find({gsx$tribe:{$or:f}}),a=a.limit(0),i=i.limit(0),l=l.limit(0)),e.stones.noElements.checked)u=u.where(function(e){return""==e.gsx$elements}),a=a.where(function(e){return""==e.gsx$fire}).where(function(e){return""==e.gsx$air}).where(function(e){return""==e.gsx$earth}).where(function(e){return""==e.gsx$water}),i=i.limit(0),l=l.limit(0),s=s.limit(0);else{var p=[],h=[];for(var m in e.elements)e.elements[m].checked&&(p.push({$regex:new RegExp(m,"i")}),h.push(o({},"gsx$"+m,{$gte:0})));p.length>0&&("or"==e.swamp&&(u=u.find({gsx$elements:{$or:p}}),a=a.find({$or:h})),"and"==e.swamp&&(u=u.find({gsx$elements:{$and:p}}),a=a.find({$and:h})),i=i.limit(0),l=l.limit(0),s=s.limit(0))}var y=[];for(var v in e.rarity)e.rarity[v].checked&&y.push({$eq:v});y.length>0&&(a=a.find({gsx$rarity:{$or:y}}),i=i.find({gsx$rarity:{$or:y}}),u=u.find({gsx$rarity:{$or:y}}),l=l.find({gsx$rarity:{$or:y}}),s=s.find({gsx$rarity:{$or:y}}));var b=[];for(var E in e.sets)e.sets[E].checked&&b.push({$eq:E});if(b.length>0&&(a=a.find({gsx$set:{$or:b}}),i=i.find({gsx$set:{$or:b}}),u=u.find({gsx$set:{$or:b}}),l=l.find({gsx$set:{$or:b}}),s=s.find({gsx$set:{$or:b}})),e.stones.subtypes.value){var w=e.stones.subtypes.value.split(",").filter(Boolean).map(function(e){return{$regex:new RegExp(e.trim(),"i")}});u=u.find({gsx$types:{$or:w}}),l=l.find({gsx$initiative:{$or:w}}),a=a.limit(0),i=i.limit(0),s=s.limit(0)}""!==e.mc.min.value&&e.mc.min.value>=0&&(u=u.find({gsx$mugicability:{$gte:e.mc.min.value}}),s=s.find({gsx$cost:{$gte:e.mc.min.value}})),""!==e.mc.max.value&&e.mc.max.value>=0&&e.mc.max.value>=e.mc.min.value&&(u=u.find({gsx$mugicability:{$lte:e.mc.max.value}}),s=s.find({gsx$cost:{$lte:e.mc.max.value}})),""===e.mc.max.value&&""===e.mc.min.value||(a=a.limit(0),i=i.limit(0),l=l.limit(0)),e.energy.min.value>0&&(u=u.find({gsx$energy:{$gte:e.energy.min.value}})),e.energy.max.value>0&&e.energy.max.value>=e.energy.min.value&&(u=u.find({gsx$energy:{$lte:e.energy.max.value}})),e.stones.courage.value>0&&(u=u.find({gsx$courage:{$gte:e.stones.courage.value}})),e.stones.power.value>0&&(u=u.find({gsx$power:{$gte:e.stones.power.value}})),e.stones.wisdom.value>0&&(u=u.find({gsx$wisdom:{$gte:e.stones.wisdom.value}})),e.stones.speed.value>0&&(u=u.find({gsx$speed:{$gte:e.stones.speed.value}})),(e.energy.min.value>0||e.energy.max.value>0||""!==e.stones.courage.value||""!==e.stones.power.value||""!==e.stones.wisdom.value||""!==e.stones.speed.value)&&(a=a.limit(0),i=i.limit(0),l=l.limit(0),s=s.limit(0)),""!==e.bp.min.value&&e.bp.min.value>=0&&(a=a.find({gsx$bp:{$gte:e.bp.min.value}})),""!==e.bp.max.value&&e.bp.max.value>=0&&e.bp.max.value>=e.bp.min.value&&(a=a.find({gsx$bp:{$lte:e.bp.max.value}})),""===e.bp.min.value&&""===e.bp.max.value||(i=i.limit(0),u=u.limit(0),l=l.limit(0),s=s.limit(0)),e.stones.unique.checked&&(a=a.find({gsx$unique:{$gt:0}}),i=i.find({gsx$unique:{$gt:0}}),u=u.find({gsx$unique:{$gt:0}}),l=l.find({gsx$unique:{$gt:0}}),s=s.find({gsx$unique:{$gt:0}})),e.stones.loyal.checked&&(a=a.find({gsx$loyal:{$gt:0}}),i=i.find({gsx$loyal:{$gt:0}}),u=u.find({gsx$loyal:{$gt:0}}),s=s.find({gsx$loyal:{$gt:0}})),e.stones.legendary.checked&&(a=a.find({gsx$legendary:{$gt:0}}),i=i.find({gsx$legendary:{$gt:0}}),u=u.find({gsx$legendary:{$gt:0}}),l=l.find({gsx$legendary:{$gt:0}}),s=s.find({gsx$legendary:{$gt:0}})),e.stones.past.checked&&(a=a.find({gsx$past:{$gt:0}}),i=i.find({gsx$past:{$gt:0}}),u=u.find({gsx$types:{$regex:new RegExp("past","i")}}),l=l.find({gsx$past:{$gt:0}}),s=s.find({gsx$past:{$gt:0}})),e.stones.mirage.checked&&(l=l.find({gsx$mirage:{$gt:0}}),a=a.limit(0),i=i.limit(0),u=u.limit(0),s=s.limit(0));var x=[];for(var k in e.gender)e.gender[k].checked&&x.push({$regex:new RegExp(k,"i")});if(x.length>0&&(u=u.find({gsx$gender:{$or:x}}),a=a.limit(0),i=i.limit(0),l=l.limit(0),s=s.limit(0)),!e.type||"Attack"==e.type){var O=a.data();O.forEach(function(e){delete e.$loki}),n.insert(O)}if(!e.type||"Battlegear"==e.type){var _=i.data();_.forEach(function(e){delete e.$loki}),n.insert(_)}if(!e.type||"Creature"==e.type){var C=u.data();C.forEach(function(e){delete e.$loki}),n.insert(C)}if(!e.type||"Location"==e.type){var P=l.data();P.forEach(function(e){delete e.$loki}),n.insert(P)}if(!e.type||"Mugic"==e.type){var S=s.data();S.forEach(function(e){delete e.$loki}),n.insert(S)}var T=r.data();e.filter.removeCollection("filter"),T.length>0?e.props.handleContent(T):e.props.handleContent([{text:"No Results Found"}])},e.reset(),e.filter=new x.default("filter.db"),e}return l(t,e),h(t,[{key:"componentDidMount",value:function(){this.search()}},{key:"render",value:function(){var e=this,t=[],n=function(n){t.push(y.default.createElement("label",{style:{display:"block"},key:n},y.default.createElement("input",{type:"checkbox",ref:function(t){return e.sets[n]=t}}),g.default.sets[n]))};for(var r in g.default.sets)n(r);var o=y.default.createElement("label",null,"Type: ",y.default.createElement("select",{onChange:function(t){e.type=t.target.value}},y.default.createElement("option",{value:""}),y.default.createElement("option",{value:"Attack"},"Attack"),y.default.createElement("option",{value:"Battlegear"},"Battlegear"),y.default.createElement("option",{value:"Creature"},"Creature"),y.default.createElement("option",{value:"Location"},"Location"),y.default.createElement("option",{value:"Mugic"},"Mugic"))),a=y.default.createElement("div",null,y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity.Common=t}}),"Common"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity.Uncommon=t}}),"Uncommon"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity.Rare=t}}),"Rare"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity["Super Rare"]=t}}),"Super Rare"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity["Ultra Rare"]=t}}),"Ultra Rare"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity.Promo=t}}),"Promo")),i=y.default.createElement("div",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.danian=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/danian.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.mipedian=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/mipedian.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.overworld=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/overworld.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.underworld=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/underworld.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes["m'arrillian"]=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/m'arrillian.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.generic=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/generic.png"})),u=y.default.createElement("div",null,y.default.createElement("input",{type:"button",value:"or",disabled:"or"==this.swamp,onClick:function(t){return e.swamp="or"}}),y.default.createElement("input",{type:"button",value:"and",disabled:"and"==this.swamp,onClick:function(t){return e.swamp="and"}}),y.default.createElement("input",{type:"checkbox",ref:function(t){return e.elements.fire=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/elements/fire.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.elements.air=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/elements/air.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.elements.earth=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/elements/earth.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.elements.water=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/elements/water.png"}),y.default.createElement("br",null),y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.noElements=t}}),y.default.createElement("span",null,"No Elements")),l=y.default.createElement("div",{className:"disciplines"},y.default.createElement("input",{type:"text",ref:function(t){return e.stones.courage=t}}),y.default.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/courage.png"})," ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.power=t}}),y.default.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/power.png"})," ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.wisdom=t}}),y.default.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/wisdom.png"})," ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.speed=t}}),y.default.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/speed.png"}));return y.default.createElement("div",{className:"SearchForm"},y.default.createElement("form",{onSubmit:this.search},y.default.createElement("br",null),y.default.createElement("label",null,"Name: ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.name=t}})),y.default.createElement("br",null),y.default.createElement("label",null,"Text: ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.text=t}})),y.default.createElement("br",null),o,y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("label",null,"Subtypes | Initiative:",y.default.createElement("br",null),y.default.createElement("input",{type:"text",ref:function(t){return e.stones.subtypes=t}})),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.past=t}}),"Past")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.mirage=t}}),"Mirage")),y.default.createElement("br",null),y.default.createElement("div",null,t),y.default.createElement("br",null),a,y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.unique=t}}),"Unique")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.loyal=t}}),"Loyal")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.legendary=t}}),"Legendary")),y.default.createElement("br",null),i,y.default.createElement("br",null),u,y.default.createElement("br",null),l,y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("span",null,"Energy")," ",y.default.createElement("label",null,"Min: ",y.default.createElement("input",{type:"text",style:{width:"30px"},ref:function(t){return e.energy.min=t}}))," ",y.default.createElement("label",null,"Max: ",y.default.createElement("input",{type:"text",style:{width:"30px"},ref:function(t){return e.energy.max=t}}))),y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("span",null,"Mugic Counters/Cost")," ",y.default.createElement("label",null,"Min: ",y.default.createElement("input",{type:"text",style:{width:"20px"},ref:function(t){return e.mc.min=t}}))," ",y.default.createElement("label",null,"Max: ",y.default.createElement("input",{type:"text",style:{width:"20px"},ref:function(t){return e.mc.max=t}}))),y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("span",null,"Build Points")," ",y.default.createElement("label",null,"Min: ",y.default.createElement("input",{type:"text",style:{width:"20px"},ref:function(t){return e.bp.min=t}}))," ",y.default.createElement("label",null,"Max: ",y.default.createElement("input",{type:"text",style:{width:"20px"},ref:function(t){return e.bp.max=t}}))),y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("span",null,"Gender (fan content):"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.gender.Ambiguous=t}}),"Ambiguous")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.gender.Female=t}}),"Female")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.gender.Male=t}}),"Male")),y.default.createElement("br",null),y.default.createElement("input",{type:"submit",value:"Search"}),"  ",y.default.createElement("input",{type:"button",value:"Reset",disabled:!0,onClick:this.reset})))}}]),t}(y.default.Component),p=s(d.prototype,"swamp",[b.observable],{enumerable:!0,initializer:function(){return"or"}}),f=d))||f)||f);t.default=k},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,l,s=function(){function e(e,t){for(var n=0;n=0})," ",f.default.createElement(v.Element,{element:"air",value:t.gsx$elements.toLowerCase().indexOf("air")>=0})," ",f.default.createElement(v.Element,{element:"earth",value:t.gsx$elements.toLowerCase().indexOf("earth")>=0})," ",f.default.createElement(v.Element,{element:"water",value:t.gsx$elements.toLowerCase().indexOf("water")>=0})),f.default.createElement("span",null,n)),f.default.createElement("br",null),f.default.createElement("div",{className:"right",style:{width:"calc(100% - (100px + 230px + 50px))",whiteSpace:"pre-line"}},f.default.createElement(v.Ability,{ability:t.gsx$ability,tribe:t.gsx$tribe}),f.default.createElement(v.Ability,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed}),f.default.createElement(v.Unique,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),f.default.createElement("span",{className:"flavortext"},t.gsx$flavortext)),f.default.createElement("br",null),f.default.createElement("div",{style:{verticalAlign:"text-top",float:"left",width:"50px",textAlign:"right"}},f.default.createElement("span",null,t.gsx$courage," ",f.default.createElement("img",{className:"icon16",src:"/src/img/icons/disciplines/courage.png"})),f.default.createElement("br",null),f.default.createElement("span",null,t.gsx$power," ",f.default.createElement("img",{className:"icon16",src:"/src/img/icons/disciplines/power.png"})),f.default.createElement("br",null),f.default.createElement("span",null,t.gsx$wisdom," ",f.default.createElement("img",{className:"icon16",src:"/src/img/icons/disciplines/wisdom.png"})),f.default.createElement("br",null),f.default.createElement("span",null,t.gsx$speed," ",f.default.createElement("img",{className:"icon16",src:"/src/img/icons/disciplines/speed.png"})),f.default.createElement("br",null),f.default.createElement("span",{style:{fontWeight:"bold"}},t.gsx$energy)))}}]),t}(f.default.Component))||l)||l);t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){var t=e.initiative,n=null;return["Danian","Generic","Mipedian","OverWorld","UnderWorld","M'arrillian"].indexOf(t)>-1?n=d.default.createElement("img",{className:"icon16",style:{verticalAlign:"middle"},src:("/src/img/icons/tribes/"+t+".png").toLowerCase()}):["courage","power","speed","wisdom"].indexOf(t.toLowerCase())>-1?n=d.default.createElement("img",{className:"icon16",style:{verticalAlign:"middle"},src:("/src/img/icons/disciplines/"+t+".png").toLowerCase()}):["fire","air","earth","water"].indexOf(t.toLowerCase())>-1?n=d.default.createElement("img",{className:"icon16",style:{verticalAlign:"middle"},src:("/src/img/icons/elements/"+t+".png").toLowerCase()}):"mugic counter"==t.toLowerCase()&&(n=d.default.createElement("img",{className:"icon16",style:{verticalAlign:"middle"},src:"/src/img/icons/mugic/generic.png".toLowerCase()})),d.default.createElement("span",null,"Initiative: ",n," ",t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l,s,c=function(){function e(e,t){for(var n=0;n=59;e&&p.hasTouch&&(p.deviceType="hybrid",p.hasMouse=!0,p.primaryInput="mouse")}}};p.updateOnlyOwnProperties(),t.default=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};window.addEventListener("testPassiveEventSupport",r,t),window.removeEventListener("testPassiveEventSupport",r,t),n.hasSupport=e}}};n.update(),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(n.fine=window.matchMedia("(pointer: fine)").matches,n.coarse=window.matchMedia("(pointer: coarse)").matches,n.none=window.matchMedia("(pointer: none)").matches,n.anyFine=window.matchMedia("(any-pointer: fine)").matches,n.anyCoarse=window.matchMedia("(any-pointer: coarse)").matches,n.anyNone=window.matchMedia("(any-pointer: none)").matches)}};n.update(),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&(n.hasSupport="ontouchstart"in window,n.browserSupportsApi=Boolean(window.TouchEvent))}};n.update(),t.default=n},function(e,t,n){"use strict";var r=n(24),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(95);e.exports=r},function(e,t){"use strict";function n(e){try{e.focus()}catch(e){}}e.exports=n},function(e,t){"use strict";function n(e){if(e=e||("undefined"!=typeof document?document:void 0),"undefined"==typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=n},function(e,t){"use strict";function n(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(94);e.exports=r},function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var i=0;i0){e.props.onChange(t.substring(0,r-1)+" "+t.substring(r));var a=e._inputs[r-1];a&&a.focus()}}else e.props.onChange(t.substring(0,r)+" "+t.substring(r+1));break;case"ArrowLeft":if(r>0){var i=e._inputs[r-1];i&&(i.focus(),window.requestAnimationFrame(function(){i.setSelectionRange(1,1)}))}break;case"ArrowRight":if(r+1=q(e.last.priorityLevel,t))n=e.last;else for(e=e.first;null!==e&&0>=q(e.priorityLevel,t);)n=e,e=e.next;return n}function G(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=W()),null!==n?(e=n.updateQueue,null===e&&(e=n.updateQueue=W())):e=null,Dr=r,Lr=e!==r?e:null;var o=Dr;n=Lr;var a=Y(o,t),i=null!==a?a.next:o.first;return null===n?(K(o,t,a,i),null):(r=Y(n,t),e=null!==r?r.next:n.first,K(o,t,a,i),i===e&&null!==i||a===r&&null!==a?(null===r&&(n.first=t),null===e&&(n.last=null),null):(t={priorityLevel:t.priorityLevel,partialState:t.partialState,callback:t.callback,isReplace:t.isReplace,isForced:t.isForced,isTopLevelUnmount:t.isTopLevelUnmount,next:null},K(n,t,r,e),t))}function J(e,t,n,r){return e=e.partialState,"function"==typeof e?e.call(t,n,r):e}function Q(e,t,n){e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n}function X(e){return e.tag===Vr&&null!=e.type.childContextTypes}function Z(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;n=n.getChildContext();for(var a in n)a in o?void 0:r("108",d(e)||"Unknown",a);return vt({},t,n)}function ee(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=co,this.lastEffect=this.firstEffect=this.nextEffect=null,this.pendingWorkPriority=lo,this.alternate=null}function te(e,t,n){var o=void 0;return"function"==typeof e?(o=e.prototype&&e.prototype.isReactComponent?new ee(eo,t,n):new ee(Zr,t,n),o.type=e):"string"==typeof e?(o=new ee(no,t,n),o.type=e):"object"==typeof e&&null!==e&&"number"==typeof e.tag?o=e:r("130",null==e?e:typeof e,""),o}function ne(e){return null===e||"undefined"==typeof e?null:(e=Ho&&e[Ho]||e["@@iterator"],"function"==typeof e?e:null)}function re(e,t){var n=t.ref;if(null!==n&&"function"!=typeof n){if(t._owner){t=t._owner;var o=void 0;t&&("number"==typeof t.tag?(t.tag!==Mo?r("110"):void 0,o=t.stateNode):o=t.getPublicInstance()),o?void 0:r("147",n);var a=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===a?e.ref:(e=function(e){var t=o.refs===Et?o.refs={}:o.refs;null===e?delete t[a]:t[a]=e},e._stringRef=a,e)}"string"!=typeof n?r("148"):void 0,t._owner?void 0:r("149",n)}return n}function oe(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ae(e,t){function n(n,r){if(t){if(!e){if(null===r.alternate)return;r=r.alternate}var o=n.lastEffect;null!==o?(o.nextEffect=r,n.lastEffect=r):n.firstEffect=n.lastEffect=r,r.nextEffect=null,r.effectTag=Bo}}function o(e,r){if(!t)return null;for(;null!==r;)n(e,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(t,n){return e?(t=Oo(t,n),t.index=0,t.sibling=null,t):(t.pendingWorkPriority=n,t.effectTag=Fo,t.index=0,t.sibling=null,t)}function u(e,n,r){return e.index=r,t?(r=e.alternate,null!==r?(r=r.index,rd?(p=f,f=null):p=f.sibling;var h=y(e,f,i[d],l);if(null===h){null===f&&(f=p);break}t&&f&&null===h.alternate&&n(e,f),r=u(h,r,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===i.length)return o(e,f),s;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(e,d,g.value,s);if(null===b){d||(d=h);break}t&&d&&null===b.alternate&&n(e,d),i=u(b,i,p),null===f?c=b:f.sibling=b,f=b,d=h}if(g.done)return o(e,d),c;if(null===d){for(;!g.done;p++,g=l.next())g=m(e,g.value,s),null!==g&&(i=u(g,i,p),null===f?c=g:f.sibling=g,f=g);return c}for(d=a(e,d);!g.done;p++,g=l.next())g=v(d,e,p,g.value,s),null!==g&&(t&&null!==g.alternate&&d.delete(null===g.key?p:g.key),i=u(g,i,p),null===f?c=g:f.sibling=g,f=g);return t&&d.forEach(function(t){return n(e,t)}),c}return function(e,t,a,u){var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case Vo:e:{var c=a.key;for(s=t;null!==s;){if(s.key===c){if(s.type===a.type){o(e,s.sibling),t=i(s,u),t.ref=re(s,a),t.pendingProps=a.props,t.return=e,e=t;break e}o(e,s);break}n(e,s),s=s.sibling}u=_o(a,e.internalContextTag,u),u.ref=re(t,a),u.return=e,e=u}return l(e);case wo:e:{for(s=a.key;null!==t;){if(t.key===s){if(t.tag===Do){o(e,t.sibling),t=i(t,u),t.pendingProps=a,t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}a=So(a,e.internalContextTag,u),a.return=e,e=a}return l(e);case xo:e:{if(null!==t){if(t.tag===Lo){o(e,t.sibling),t=i(t,u),t.type=a.value,t.return=e,e=t;break e}o(e,t)}t=To(a,e.internalContextTag,u),t.type=a.value,t.return=e,e=t}return l(e);case ko:e:{for(s=a.key;null!==t;){if(t.key===s){if(t.tag===Ro&&t.stateNode.containerInfo===a.containerInfo&&t.stateNode.implementation===a.implementation){o(e,t.sibling),t=i(t,u),t.pendingProps=a.children||[],t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}a=No(a,e.internalContextTag,u),a.return=e,e=a}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==t&&t.tag===jo?(o(e,t.sibling),t=i(t,u),t.pendingProps=a,t.return=e,e=t):(o(e,t),a=Po(a,e.internalContextTag,u),a.return=e,e=a),l(e);if(Ao(a))return g(e,t,a,u);if(ne(a))return b(e,t,a,u);if(s&&oe(e,a),"undefined"==typeof a)switch(e.tag){case Mo:case Io:a=e.type,r("152",a.displayName||a.name||"Component")}return o(e,t)}}function ie(e,t,n,o){function a(e,t){t.updater=i,e.stateNode=t,Yt.set(t,e)}var i={isMounted:aa,enqueueSetState:function(n,r,o){n=Yt.get(n);var a=t(n,!1);ea(n,r,void 0===o?null:o,a),e(n,a)},enqueueReplaceState:function(n,r,o){n=Yt.get(n);var a=t(n,!1);ta(n,r,void 0===o?null:o,a),e(n,a)},enqueueForceUpdate:function(n,r){n=Yt.get(n);var o=t(n,!1);na(n,void 0===r?null:r,o),e(n,o)}};return{adoptClassInstance:a,constructClassInstance:function(e,t){var n=e.type,r=Xo(e),o=Zo(e),i=o?Qo(e,r):Et;return t=new n(t,i),a(e,t),o&&Jo(e,r,i),t},mountClassInstance:function(e,t){var n=e.alternate,o=e.stateNode,a=o.state||null,u=e.pendingProps;u?void 0:r("158");var l=Xo(e);o.props=u,o.state=a,o.refs=Et,o.context=Qo(e,l),Sr.enableAsyncSubtreeAPI&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=Go),"function"==typeof o.componentWillMount&&(l=o.state,o.componentWillMount(),l!==o.state&&i.enqueueReplaceState(o,o.state,null),l=e.updateQueue,null!==l&&(o.state=ra(n,e,l,o,a,u,t))),"function"==typeof o.componentDidMount&&(e.effectTag|=Yo)},updateClassInstance:function(e,t,a){var u=t.stateNode;u.props=t.memoizedProps,u.state=t.memoizedState;var l=t.memoizedProps,s=t.pendingProps;s||(s=l,null==s?r("159"):void 0);var c=u.context,f=Xo(t);if(f=Qo(t,f),"function"!=typeof u.componentWillReceiveProps||l===s&&c===f||(c=u.state,u.componentWillReceiveProps(s,f),u.state!==c&&i.enqueueReplaceState(u,u.state,null)),c=t.memoizedState,a=null!==t.updateQueue?ra(e,t,t.updateQueue,u,c,s,a):c,!(l!==s||c!==a||oa()||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!=typeof u.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=Yo),!1;var d=s;if(null===l||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)d=!0;else{var p=t.stateNode,h=t.type;d="function"==typeof p.shouldComponentUpdate?p.shouldComponentUpdate(d,a,f):!(h.prototype&&h.prototype.isPureReactComponent&&wt(l,d)&&wt(c,a))}return d?("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(s,a,f),"function"==typeof u.componentDidUpdate&&(t.effectTag|=Yo)):("function"!=typeof u.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=Yo),n(t,s),o(t,a)),u.props=s,u.state=a,u.context=f,d}}}function ue(e,t,n,o,a){function i(e,t,n){u(e,t,n,t.pendingWorkPriority)}function u(e,t,n,r){t.child=null===e?ia(t,t.child,n,r):e.child===t.child?ua(t,t.child,n,r):la(t,t.child,n,r)}function l(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=ja)}function s(e,t,n,r){if(l(e,t),!n)return r&&ya(t,!1),f(e,t);n=t.stateNode,Ra.current=t;var o=n.render();return t.effectTag|=Na,i(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&ya(t,!0),t.child}function c(e){var t=e.stateNode;t.pendingContext?ma(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ma(e,t.context,!1),v(e,t.containerInfo)}function f(e,t){return sa(e,t),t.child}function d(e,t){switch(t.tag){case Ea:c(t);break;case ba:ha(t);break;case ka:v(t,t.stateNode.containerInfo)}return null}var p=e.shouldSetTextContent,h=e.useSyncScheduling,m=e.shouldDeprioritizeSubtree,y=t.pushHostContext,v=t.pushHostContainer,g=n.enterHydrationState,b=n.resetHydrationState,E=n.tryToClaimNextHydratableInstance;e=ie(o,a,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var w=e.adoptClassInstance,x=e.constructClassInstance,k=e.mountClassInstance,O=e.updateClassInstance;return{beginWork:function(e,t,n){if(t.pendingWorkPriority===Sa||t.pendingWorkPriority>n)return d(e,t);switch(t.tag){case va:null!==e?r("155"):void 0;var o=t.type,a=t.pendingProps,u=da(t);return u=fa(t,u),o=o(a,u),t.effectTag|=Na,"object"==typeof o&&null!==o&&"function"==typeof o.render?(t.tag=ba,a=ha(t),w(t,o),k(t,n),t=s(e,t,!0,a)):(t.tag=ga,i(e,t,o),t.memoizedProps=a,t=t.child),t;case ga:e:{if(a=t.type,n=t.pendingProps,o=t.memoizedProps,pa())null===n&&(n=o);else if(null===n||o===n){t=f(e,t);break e}o=da(t),o=fa(t,o),a=a(n,o),t.effectTag|=Na,i(e,t,a),t.memoizedProps=n,t=t.child}return t;case ba:return a=ha(t),o=void 0,null===e?t.stateNode?r("153"):(x(t,t.pendingProps),k(t,n),o=!0):o=O(e,t,n),s(e,t,o,a);case Ea:return c(t),o=t.updateQueue,null!==o?(a=t.memoizedState,o=ca(e,t,o,null,a,null,n),a===o?(b(),t=f(e,t)):(a=o.element,null!==e&&null!==e.child||!g(t)?(b(),i(e,t,a)):(t.effectTag|=Aa,t.child=ia(t,t.child,a,n)),t.memoizedState=o,t=t.child)):(b(),t=f(e,t)),t;case wa:y(t),null===e&&E(t),a=t.type;var _=t.memoizedProps;return o=t.pendingProps,null===o&&(o=_,null===o?r("154"):void 0),u=null!==e?e.memoizedProps:null,pa()||null!==o&&_!==o?(_=o.children,p(a,o)?_=null:u&&p(a,u)&&(t.effectTag|=Ia),l(e,t),n!==Ta&&!h&&m(a,o)?(t.pendingWorkPriority=Ta,t=null):(i(e,t,_),t.memoizedProps=o,t=t.child)):t=f(e,t),t;case xa:return null===e&&E(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case _a:t.tag=Oa;case Oa:return n=t.pendingProps,pa()?null===n&&(n=e&&e.memoizedProps,null===n?r("154"):void 0):null!==n&&t.memoizedProps!==n||(n=t.memoizedProps),a=n.children,o=t.pendingWorkPriority,t.stateNode=null===e?ia(t,t.stateNode,a,o):e.child===t.child?ua(t,t.stateNode,a,o):la(t,t.stateNode,a,o),t.memoizedProps=n,t.stateNode;case Ca:return null;case ka:e:{if(v(t,t.stateNode.containerInfo),n=t.pendingWorkPriority,a=t.pendingProps,pa())null===a&&(a=e&&e.memoizedProps,null==a?r("154"):void 0);else if(null===a||t.memoizedProps===a){t=f(e,t);break e}null===e?t.child=la(t,t.child,a,n):i(e,t,a),t.memoizedProps=a,t=t.child}return t;case Pa:e:{if(n=t.pendingProps,pa())null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=f(e,t);break e}i(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case ba:ha(t);break;case Ea:c(t);break;default:r("157")}return t.effectTag|=Ma,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),t.pendingWorkPriority===Sa||t.pendingWorkPriority>n?d(e,t):(t.firstEffect=null,t.lastEffect=null,u(e,t,null,n),t.tag===ba&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function le(e,t,n){var o=e.createInstance,a=e.createTextInstance,i=e.appendInitialChild,u=e.finalizeInitialChildren,l=e.prepareUpdate,s=t.getRootHostContainer,c=t.popHostContext,f=t.getHostContext,d=t.popHostContainer,p=n.prepareToHydrateHostInstance,h=n.prepareToHydrateHostTextInstance,m=n.popHydrationState;return{completeWork:function(e,t,n){var y=t.pendingProps;switch(null===y?y=t.memoizedProps:t.pendingWorkPriority===Za&&n!==Za||(t.pendingProps=null),t.tag){case Ua:return null;case Ba:return La(t),null;case Ha:return d(t),$a(t),y=t.stateNode,y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),null!==e&&null!==e.child||(m(t),t.effectTag&=~Ja),null;case Va:c(t),n=s();var v=t.type;if(null!==e&&null!=t.stateNode){var g=e.memoizedProps,b=t.stateNode,E=f();y=l(b,v,g,y,n,E),(t.updateQueue=y)&&(t.effectTag|=Xa),e.ref!==t.ref&&(t.effectTag|=Qa)}else{if(!y)return null===t.stateNode?r("166"):void 0,null;if(e=f(),m(t))p(t,n,e)&&(t.effectTag|=Xa);else{e=o(v,y,n,e,t);e:for(g=t.child;null!==g;){if(g.tag===Va||g.tag===za)i(e,g.stateNode);else if(g.tag!==qa&&null!==g.child){g=g.child;continue}if(g===t)break e;for(;null===g.sibling;){if(null===g.return||g.return===t)break e;g=g.return}g=g.sibling}u(e,v,y,n)&&(t.effectTag|=Xa),t.stateNode=e}null!==t.ref&&(t.effectTag|=Qa)}return null;case za:if(e&&null!=t.stateNode)e.memoizedProps!==y&&(t.effectTag|=Xa);else{if("string"!=typeof y)return null===t.stateNode?r("166"):void 0,null;e=s(),n=f(),m(t)?h(t)&&(t.effectTag|=Xa):t.stateNode=a(y,e,n,t)}return null;case Wa:(y=t.memoizedProps)?void 0:r("165"),t.tag=Ka,n=[];e:for((v=t.stateNode)&&(v.return=t);null!==v;){if(v.tag===Va||v.tag===za||v.tag===qa)r("164");else if(v.tag===Ya)n.push(v.type);else if(null!==v.child){v.child.return=v,v=v.child;continue}for(;null===v.sibling;){if(null===v.return||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}return v=y.handler,y=v(y.props,n),t.child=Da(t,null!==e?e.child:null,y,t.pendingWorkPriority),t.child;case Ka:return t.tag=Wa,null;case Ya:return null;case Ga:return null;case qa:return t.effectTag|=Xa,d(t),null;case Fa:r("167");default:r("156")}}}}function se(e){return function(t){try{return e(t)}catch(e){}}}function ce(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){return e.tag===ai||e.tag===oi||e.tag===ui}function a(e){for(var t=e;;)if(u(t),null!==t.child&&t.tag!==ui)t.child.return=t,t=t.child;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function i(e){for(var t=e,n=!1,o=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n?r("160"):void 0,n.tag){case ai:o=n.stateNode,i=!1;break e;case oi:o=n.stateNode.containerInfo,i=!0;break e;case ui:o=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(t.tag===ai||t.tag===ii)a(t),i?v(o,t.stateNode):y(o,t.stateNode);else if(t.tag===ui?o=t.stateNode.containerInfo:u(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,t.tag===ui&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function u(e){switch("function"==typeof ci&&ci(e),e.tag){case ri:n(e);var r=e.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case ai:n(e);break;case li:a(e.stateNode);break;case ui:i(e)}}var l=e.commitMount,s=e.commitUpdate,c=e.resetTextContent,f=e.commitTextUpdate,d=e.appendChild,p=e.appendChildToContainer,h=e.insertBefore,m=e.insertInContainerBefore,y=e.removeChild,v=e.removeChildFromContainer,g=e.getPublicInstance;return{commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(o(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var a=t=void 0;switch(n.tag){case ai:t=n.stateNode,a=!1;break;case oi:t=n.stateNode.containerInfo,a=!0;break;case ui:t=n.stateNode.containerInfo,a=!0;break;default:r("161")}n.effectTag&hi&&(c(t),n.effectTag&=~hi);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||o(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==ai&&n.tag!==ii;){if(n.effectTag&fi)continue t;if(null===n.child||n.tag===ui)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&fi)){n=n.stateNode;break e}}for(var i=e;;){if(i.tag===ai||i.tag===ii)n?a?m(t,i.stateNode,n):h(t,i.stateNode,n):a?p(t,i.stateNode):d(t,i.stateNode);else if(i.tag!==ui&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){i(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case ri:break;case ai:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var a=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&s(n,i,a,e,o,t)}break;case ii:null===t.stateNode?r("162"):void 0,n=t.memoizedProps,f(t.stateNode,null!==e?e.memoizedProps:n,n);break;case oi:break;case ui:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case ri:var n=t.stateNode;if(t.effectTag&di)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t.effectTag&pi&&null!==t.updateQueue&&si(t,t.updateQueue,n);break;case oi:e=t.updateQueue,null!==e&&si(t,e,t.child&&t.child.stateNode);break;case ai:n=t.stateNode,null===e&&t.effectTag&di&&l(n,t.type,t.memoizedProps,t);break;case ii:break;case ui:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case ai:t(g(n));break;default:t(n)}}},commitDetachRef:function(e){e=e.ref,null!==e&&e(null)}}}function fe(e){function t(e){return e===gi?r("174"):void 0,e}var n=e.getChildHostContext,o=e.getRootHostContext,a=mi(gi),i=mi(gi),u=mi(gi);return{getHostContext:function(){return t(a.current)},getRootHostContainer:function(){return t(u.current)},popHostContainer:function(e){yi(a,e),yi(i,e),yi(u,e)},popHostContext:function(e){i.current===e&&(yi(a,e),yi(i,e))},pushHostContainer:function(e,t){vi(u,t,e),t=o(t),vi(i,e,e),vi(a,t,e)},pushHostContext:function(e){var r=t(u.current),o=t(a.current);r=n(o,e.type,r),o!==r&&(vi(i,e,e),vi(a,r,e))},resetHostContainer:function(){a.current=gi,u.current=gi}}}function de(e){function t(e,t){var n=Oi();n.stateNode=t,n.return=e,n.effectTag=xi,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case bi:return i(t,e.type,e.pendingProps);case Ei:return u(t,e.pendingProps);default:return!1}}function o(e){for(e=e.return;null!==e&&e.tag!==bi&&e.tag!==wi;)e=e.return;h=e}var a=e.shouldSetTextContent,i=e.canHydrateInstance,u=e.canHydrateTextInstance,l=e.getNextHydratableSibling,s=e.getFirstHydratableChild,c=e.hydrateInstance,f=e.hydrateTextInstance,d=e.didNotHydrateInstance,p=e.didNotFindHydratableInstance;if(e=e.didNotFindHydratableTextInstance,!(i&&u&&l&&s&&c&&f&&d&&p&&e))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){ -r("176")},popHydrationState:function(){return!1}};var h=null,m=null,y=!1;return{enterHydrationState:function(e){return m=s(e.stateNode.containerInfo),h=e,y=!0},resetHydrationState:function(){m=h=null,y=!1},tryToClaimNextHydratableInstance:function(e){if(y){var r=m;if(r){if(!n(e,r)){if(r=l(r),!r||!n(e,r))return e.effectTag|=ki,y=!1,void(h=e);t(h,m)}e.stateNode=r,h=e,m=s(r)}else e.effectTag|=ki,y=!1,h=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return f(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==h)return!1;if(!y)return o(e),y=!0,!1;var n=e.type;if(e.tag!==bi||"head"!==n&&"body"!==n&&!a(n,e.memoizedProps))for(n=m;n;)t(e,n),n=l(n);return o(e),m=h?l(e.stateNode):null,!0}}}function pe(e){function t(){for(;null!==W&&W.current.pendingWorkPriority===Ai;){W.isScheduled=!1;var e=W.nextScheduledRoot;if(W.nextScheduledRoot=null,W===K)return K=W=null,V=Ai,null;W=e}e=W;for(var t=null,n=Ai;null!==e;)e.current.pendingWorkPriority!==Ai&&(n===Ai||n>e.current.pendingWorkPriority)&&(n=e.current.pendingWorkPriority,t=e),e=e.nextScheduledRoot;null!==t?(V=n,Ci(),Xi(),x(),H=Si(t.current,n),t!==oe&&(re=0,oe=t)):(V=Ai,oe=H=null)}function n(n){ee=!0,q=null;var o=n.stateNode;if(o.current===n?r("177"):void 0,V!==Ii&&V!==Mi||re++,Pi.current=null,n.effectTag>$i)if(null!==n.lastEffect){n.lastEffect.nextEffect=n;var a=n.firstEffect}else a=n;else a=n.firstEffect;for(R(),z=a;null!==z;){var i=!1,u=void 0;try{for(;null!==z;){var l=z.effectTag;if(l&Vi&&e.resetTextContent(z.stateNode),l&Wi){var s=z.alternate;null!==s&&I(s)}switch(l&~(zi|qi|Vi|Wi|$i)){case Fi:P(z),z.effectTag&=~Fi;break;case Bi:P(z),z.effectTag&=~Fi,T(z.alternate,z);break;case Ui:T(z.alternate,z);break;case Hi:te=!0,S(z),te=!1}z=z.nextEffect}}catch(e){i=!0,u=e}i&&(null===z?r("178"):void 0,f(z,u),null!==z&&(z=z.nextEffect))}for(D(),o.current=n,z=a;null!==z;){o=!1,a=void 0;try{for(;null!==z;){var c=z.effectTag;if(c&(Ui|zi)&&N(z.alternate,z),c&Wi&&A(z),c&qi)switch(i=z,u=void 0,null!==G&&(u=G.get(i),G.delete(i),null==u&&null!==i.alternate&&(i=i.alternate,u=G.get(i),G.delete(i))),null==u?r("184"):void 0,i.tag){case Ji:i.stateNode.componentDidCatch(u.error,{componentStack:u.componentStack});break;case Ki:null===X&&(X=u.error);break;default:r("157")}var d=z.nextEffect;z.nextEffect=null,z=d}}catch(e){o=!0,a=e}o&&(null===z?r("178"):void 0,f(z,a),null!==z&&(z=z.nextEffect))}ee=!1,"function"==typeof Ni&&Ni(n.stateNode),Q&&(Q.forEach(v),Q=null),t()}function o(e){for(;;){var t=C(e.alternate,e,V),n=e.return,r=e.sibling,o=e;if(!(o.pendingWorkPriority!==Ai&&o.pendingWorkPriority>V)){for(var a=Qi(o),i=o.child;null!==i;)a=Ti(a,i.pendingWorkPriority),i=i.sibling;o.pendingWorkPriority=a}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),e.effectTag>$i&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){q=e;break}e=n}return null}function a(e){var t=O(e.alternate,e,V);return null===t&&(t=o(e)),Pi.current=null,t}function i(e){var t=_(e.alternate,e,V);return null===t&&(t=o(e)),Pi.current=null,t}function u(e){c(Di,e)}function l(){if(null!==G&&0e)){L=V;e:for(;;){if(V<=Mi)for(;null!==H&&(H=a(H),!(null===H&&(null===q?r("179"):void 0,L=Mi,n(q),L=V,l(),V===Ai||V>e||V>Mi))););else if(null!==o)for(;null!==H&&!F;)if(1e||VMi&&!Y&&(M(u),Y=!0),e=X,Z=F=$=!1,oe=J=G=X=null,re=0,null!==e)throw e}function f(e,t){var n=Pi.current=null,r=!1,o=!1,a=null;if(e.tag===Ki)n=e,p(e)&&(Z=!0);else for(var i=e.return;null!==i&&null===n;){if(i.tag===Ji?"function"==typeof i.stateNode.componentDidCatch&&(r=!0,a=d(i),n=i,o=!0):i.tag===Ki&&(n=i),p(i)){if(te||null!==Q&&(Q.has(i)||null!==i.alternate&&Q.has(i.alternate)))return null;n=null,o=!1}i=i.return}if(null!==n){null===J&&(J=new Set),J.add(n);var u="";i=e;do{e:switch(i.tag){case ho:case mo:case yo:case vo:var l=i._debugOwner,s=i._debugSource,c=d(i),f=null;l&&(f=d(l)),l=s,c="\n in "+(c||"Unknown")+(l?" (at "+l.fileName.replace(/^.*[\\\/]/,"")+":"+l.lineNumber+")":f?" (created by "+f+")":"");break e;default:c=""}u+=c,i=i.return}while(i);i=u,e=d(e),null===G&&(G=new Map),t={componentName:e,componentStack:i,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:a,willRetry:o},G.set(n,t);try{console.error(t.error)}catch(e){console.error(e)}return ee?(null===Q&&(Q=new Set),Q.add(n)):v(n),n}return null===X&&(X=t),null}function p(e){return null!==J&&(J.has(e)||null!==e.alternate&&J.has(e.alternate))}function h(e,t){return m(e,t,!1)}function m(e,t){re>ne&&(Z=!0,r("185")),!$&&t<=V&&(H=null);for(var n=!0;null!==e&&n;){if(n=!1,(e.pendingWorkPriority===Ai||e.pendingWorkPriority>t)&&(n=!0,e.pendingWorkPriority=t),null!==e.alternate&&(e.alternate.pendingWorkPriority===Ai||e.alternate.pendingWorkPriority>t)&&(n=!0,e.alternate.pendingWorkPriority=t),null===e.return){if(e.tag!==Ki)break;var o=e.stateNode;if(t===Ai||o.isScheduled||(o.isScheduled=!0,K?K.nextScheduledRoot=o:W=o,K=o),!$)switch(t){case Ii:B?c(Ii,null):c(Mi,null);break;case Mi:U?void 0:r("186");break;default:Y||(M(u),Y=!0)}}e=e.return}}function y(e,t){var n=L;return n===Ai&&(n=!j||e.internalContextTag&Li||t?Ri:Ii),n===Ii&&($||U)?Mi:n}function v(e){m(e,Mi,!0)}var g=fe(e),b=de(e),E=g.popHostContainer,w=g.popHostContext,x=g.resetHostContainer,k=ue(e,g,b,h,y),O=k.beginWork,_=k.beginFailedWork,C=le(e,g,b).completeWork;g=ce(e,f);var P=g.commitPlacement,S=g.commitDeletion,T=g.commitWork,N=g.commitLifeCycles,A=g.commitAttachRef,I=g.commitDetachRef,M=e.scheduleDeferredCallback,j=e.useSyncScheduling,R=e.prepareForCommit,D=e.resetAfterCommit,L=Ai,$=!1,F=!1,U=!1,B=!1,H=null,V=Ai,z=null,q=null,W=null,K=null,Y=!1,G=null,J=null,Q=null,X=null,Z=!1,ee=!1,te=!1,ne=1e3,re=0,oe=null;return{scheduleUpdate:h,getPriorityContext:y,batchedUpdates:function(e,t){var n=U;U=!0;try{return e(t)}finally{U=n,$||U||c(Mi,null)}},unbatchedUpdates:function(e){var t=B,n=U;B=U,U=!1;try{return e()}finally{U=n,B=t}},flushSync:function(e){var t=U,n=L;U=!0,L=Ii;try{return e()}finally{U=t,L=n,$?r("187"):void 0,c(Mi,null)}},deferredUpdates:function(e){var t=L;L=Ri;try{return e()}finally{L=t}}}}function he(){r("196")}function me(e){return e?(e=Yt.get(e),"number"==typeof e.tag?he(e):e._processChildContext(e._context)):Et}function ye(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ve(e,t){var n=ye(e);e=0;for(var r;n;){if(n.nodeType===iu){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ye(n)}}function ge(){return!uu&&yt.canUseDOM&&(uu="textContent"in document.documentElement?"textContent":"innerText"),uu}function be(){r("211")}function Ee(){r("212")}function we(e){if(null==e)return null;if(e.nodeType===du)return e;var t=Yt.get(e);return t?"number"==typeof t.tag?be(t):Ee(t):void("function"==typeof e.render?r("188"):r("213",Object.keys(e)))}function xe(e){if(void 0!==e._hostParent)return e._hostParent;if("number"==typeof e.tag){do e=e.return;while(e&&e.tag!==pu);if(e)return e}return null}function ke(e,t){for(var n=0,r=e;r;r=xe(r))n++;r=0;for(var o=t;o;o=xe(o))r++;for(;0this.eventPool.length&&this.eventPool.push(e)}function Ie(e){e.eventPool=[],e.getPooled=Ne,e.release=Ae}function Me(e,t,n,r){return Te.call(this,e,t,n,r)}function je(e,t,n,r){return Te.call(this,e,t,n,r)}function Re(e,t){switch(e){case"topKeyUp":return-1!==xu.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function De(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function Le(e,t){switch(e){case"topCompositionEnd":return De(t);case"topKeyPress":return 32!==t.which?null:(Au=!0,Tu);case"topTextInput":return e=t.data,e===Tu&&Au?null:e;default:return null}}function $e(e,t){if(Iu)return"topCompositionEnd"===e||!ku&&Re(e,t)?(e=bu.getData(),bu.reset(),Iu=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=l.hasBooleanValue+l.hasNumericValue+l.hasOverloadedBooleanValue?void 0:r("50",i),a.hasOwnProperty(i)&&(l.attributeName=a[i]),o.hasOwnProperty(i)&&(l.attributeNamespace=o[i]),e.hasOwnProperty(i)&&(l.mutationMethod=e[i]),jt.properties[i]=l}}},jt={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ATTRIBUTE_NAME_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},shouldSetAttribute:function(e,t){if(jt.isReservedProp(e)||!("o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return jt.shouldAttributeAcceptBooleanValue(e);case"undefined":case"number":case"string":case"object":return!0;default:return!1}},getPropertyInfo:function(e){return jt.properties.hasOwnProperty(e)?jt.properties[e]:null},shouldAttributeAcceptBooleanValue:function(e){if(jt.isReservedProp(e))return!0;var t=jt.getPropertyInfo(e);return t?t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:(e=e.toLowerCase().slice(0,5),"data-"===e||"aria-"===e)},isReservedProp:function(e){return It.hasOwnProperty(e)},injection:Mt},Rt=jt,Dt={IndeterminateComponent:0,FunctionalComponent:1,ClassComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,CoroutineComponent:7,CoroutineHandlerPhase:8,YieldComponent:9,Fragment:10},Lt={ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11},$t=Dt.HostComponent,Ft=Dt.HostText,Ut=Lt.ELEMENT_NODE,Bt=Lt.COMMENT_NODE,Ht=Rt.ID_ATTRIBUTE_NAME,Vt={hasCachedChildNodes:1},zt=Math.random().toString(36).slice(2),qt="__reactInternalInstance$"+zt,Wt="__reactEventHandlers$"+zt,Kt={getClosestInstanceFromNode:f,getInstanceFromNode:function(e){var t=e[qt];return t?t.tag===$t||t.tag===Ft?t:t._hostNode===e?t:null:(t=f(e),null!=t&&t._hostNode===e?t:null)},getNodeFromInstance:function(e){if(e.tag===$t||e.tag===Ft)return e.stateNode;if(void 0===e._hostNode?r("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:r("34"),e=e._hostParent;for(;t.length;e=t.pop())c(e,e._hostNode);return e._hostNode},precacheChildNodes:c,precacheNode:s,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[qt],e._hostNode=null)},precacheFiberNode:function(e,t){t[qt]=e},getFiberCurrentPropsFromNode:function(e){return e[Wt]||null},updateFiberProps:function(e,t){e[Wt]=t}},Yt={remove:function(e){e._reactInternalFiber=void 0},get:function(e){return e._reactInternalFiber},has:function(e){return void 0!==e._reactInternalFiber},set:function(e,t){e._reactInternalFiber=t}},Gt={ReactCurrentOwner:mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},Jt={NoEffect:0,PerformedWork:1,Placement:2,Update:4,PlacementAndUpdate:6,Deletion:8,ContentReset:16,Callback:32,Err:64,Ref:128},Qt=Dt.HostComponent,Xt=Dt.HostRoot,Zt=Dt.HostPortal,en=Dt.HostText,tn=Jt.NoEffect,nn=Jt.Placement,rn={isFiberMounted:function(e){return 2===p(e)},isMounted:function(e){return!!(e=Yt.get(e))&&2===p(e)},findCurrentFiberUsingSlowPath:m,findCurrentHostFiber:function(e){if(e=m(e),!e)return null;for(var t=e;;){if(t.tag===Qt||t.tag===en)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null},findCurrentHostFiberWithNoPortals:function(e){if(e=m(e),!e)return null;for(var t=e;;){if(t.tag===Qt||t.tag===en)return t;if(t.child&&t.tag!==Zt)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}},on={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback?r("197"):void 0,y=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,a,i,u,l){y.apply(on,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,a,i,u,l){if(on.invokeGuardedCallback.apply(this,arguments),on.hasCaughtError()){var s=on.clearCaughtError();on._hasRethrowError||(on._hasRethrowError=!0,on._rethrowError=s)}},rethrowCaughtError:function(){return v.apply(on,arguments)},hasCaughtError:function(){return on._hasCaughtError},clearCaughtError:function(){if(on._hasCaughtError){var e=on._caughtError;return on._caughtError=null,on._hasCaughtError=!1,e}r("198")}},an=on,un={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;return Array.isArray(t)?r("103"):void 0,e.currentTarget=t?un.getNodeFromInstance(n):null,t=t?t(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,t},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;ovn.length&&vn.push(e)}}}},bn=gn,En=null,wn={injection:{injectEventPluginOrder:At.injectEventPluginOrder,injectEventPluginsByName:At.injectEventPluginsByName},getListener:function(e,t){if("number"==typeof e.tag){var n=e.stateNode;if(!n)return null;var o=ln.getFiberCurrentPropsFromNode(n);if(!o)return null;if(n=o[t],N(t,e.type,o))return null}else{if(o=e._currentElement,"string"==typeof o||"number"==typeof o||!e._rootNodeID)return null;if(e=o.props,n=e[t],N(t,o.type,e))return null}return n&&"function"!=typeof n?r("231",t,typeof n):void 0,n},extractEvents:function(e,t,n,r){for(var o,a=At.plugins,i=0;in||r.hasOverloadedBooleanValue&&!1===n?Bn.deleteValueForProperty(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else Bn.setValueForAttribute(e,t,Rt.shouldSetAttribute(t,n)?n:null)},setValueForAttribute:function(e,t,n){R(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=Rt.getPropertyInfo(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}},Hn=Bn,Vn=Gt.ReactDebugCurrentFrame,zn={current:null,phase:null,resetCurrentFiber:function(){Vn.getCurrentStack=null,zn.current=null,zn.phase=null},setCurrentFiber:function(e,t){Vn.getCurrentStack=D,zn.current=e,zn.phase=t},getCurrentFiberOwnerName:function(){return null},getCurrentFiberStackAddendum:D},qn=zn,Wn={getHostProps:function(e,t){var n=t.value,r=t.checked;return vt({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})},initWrapperState:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}},updateWrapper:function(e,t){var n=t.checked;null!=n&&Hn.setValueForProperty(e,"checked",n||!1),n=t.value,null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(t=parseFloat(e.value)||0,(n!=t||n==t&&e.value!=n)&&(e.value=""+n)):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))},postMountWrapper:function(e,t){ -switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)},restoreControlledState:function(e,t){Wn.updateWrapper(e,t);var n=t.name;if("radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(n=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),t=0;t=t.length?void 0:r("93"),t=t[0]),n=""+t),null==n&&(n=""),o=n),e._wrapperState={initialValue:""+o}},updateWrapper:function(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)},restoreControlledState:function(e,t){Jn.updateWrapper(e,t)}},Qn=Jn,Xn=vt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Zn={_getTrackerFromNode:function(e){return e._valueTracker},track:function(e){e._valueTracker||(e._valueTracker=B(e))},updateValueIfChanged:function(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)},stopTracking:function(e){(e=e._valueTracker)&&e.stopTracking()}},er=Pt.Namespaces,tr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!==er.svg||"innerHTML"in e)e.innerHTML=t;else for(Dn=Dn||document.createElement("div"),Dn.innerHTML=""+t+"",t=Dn.firstChild;t.firstChild;)e.appendChild(t.firstChild)}),nr=/["'&<>]/,rr=Lt.TEXT_NODE;yt.canUseDOM&&("textContent"in document.documentElement||(V=function(e,t){if(e.nodeType===rr)e.nodeValue=t;else{if("boolean"==typeof t||"number"==typeof t)t=""+t;else{t=""+t;var n=nr.exec(t);if(n){var r,o="",a=0;for(r=n.index;r",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e},createTextNode:function(e,t){return(t.nodeType===ir?t:t.ownerDocument).createTextNode(e)},setInitialProperties:function(e,t,n,r){var o=H(t,n);switch(t){case"iframe":case"object":Tn.trapBubbledEvent("topLoad","load",e);var a=n;break;case"video":case"audio":for(a in dr)dr.hasOwnProperty(a)&&Tn.trapBubbledEvent(a,dr[a],e);a=n;break;case"source":Tn.trapBubbledEvent("topError","error",e),a=n;break;case"img":case"image":Tn.trapBubbledEvent("topError","error",e),Tn.trapBubbledEvent("topLoad","load",e),a=n;break;case"form":Tn.trapBubbledEvent("topReset","reset",e),Tn.trapBubbledEvent("topSubmit","submit",e),a=n;break;case"details":Tn.trapBubbledEvent("topToggle","toggle",e),a=n;break;case"input":Kn.initWrapperState(e,n),a=Kn.getHostProps(e,n),Tn.trapBubbledEvent("topInvalid","invalid",e),z(r,"onChange");break;case"option":Yn.validateProps(e,n),a=Yn.getHostProps(e,n);break;case"select":Gn.initWrapperState(e,n),a=Gn.getHostProps(e,n),Tn.trapBubbledEvent("topInvalid","invalid",e),z(r,"onChange");break;case"textarea":Qn.initWrapperState(e,n),a=Qn.getHostProps(e,n),Tn.trapBubbledEvent("topInvalid","invalid",e),z(r,"onChange");break;default:a=n}F(t,a,ar);var i,u=a;for(i in u)if(u.hasOwnProperty(i)){var l=u[i];"style"===i?Ln.setValueForStyles(e,l):"dangerouslySetInnerHTML"===i?(l=l?l.__html:void 0,null!=l&&tr(e,l)):"children"===i?"string"==typeof l?or(e,l):"number"==typeof l&&or(e,""+l):"suppressContentEditableWarning"!==i&&(sr.hasOwnProperty(i)?null!=l&&z(r,i):o?Hn.setValueForAttribute(e,i,l):null!=l&&Hn.setValueForProperty(e,i,l))}switch(t){case"input":Zn.track(e),Kn.postMountWrapper(e,n);break;case"textarea":Zn.track(e),Qn.postMountWrapper(e,n);break;case"option":Yn.postMountWrapper(e,n);break;case"select":Gn.postMountWrapper(e,n);break;default:"function"==typeof a.onClick&&(e.onclick=bt)}},diffProperties:function(e,t,n,r,o){var a=null;switch(t){case"input":n=Kn.getHostProps(e,n),r=Kn.getHostProps(e,r),a=[];break;case"option":n=Yn.getHostProps(e,n),r=Yn.getHostProps(e,r),a=[];break;case"select":n=Gn.getHostProps(e,n),r=Gn.getHostProps(e,r),a=[];break;case"textarea":n=Qn.getHostProps(e,n),r=Qn.getHostProps(e,r),a=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=bt)}F(t,r,ar);var i,u;e=null;for(i in n)if(!r.hasOwnProperty(i)&&n.hasOwnProperty(i)&&null!=n[i])if("style"===i)for(u in t=n[i])t.hasOwnProperty(u)&&(e||(e={}),e[u]="");else"dangerouslySetInnerHTML"!==i&&"children"!==i&&"suppressContentEditableWarning"!==i&&(sr.hasOwnProperty(i)?a||(a=[]):(a=a||[]).push(i,null));for(i in r){var l=r[i];if(t=null!=n?n[i]:void 0,r.hasOwnProperty(i)&&l!==t&&(null!=l||null!=t))if("style"===i)if(t){for(u in t)!t.hasOwnProperty(u)||l&&l.hasOwnProperty(u)||(e||(e={}),e[u]="");for(u in l)l.hasOwnProperty(u)&&t[u]!==l[u]&&(e||(e={}),e[u]=l[u])}else e||(a||(a=[]),a.push(i,e)),e=l;else"dangerouslySetInnerHTML"===i?(l=l?l.__html:void 0,t=t?t.__html:void 0,null!=l&&t!==l&&(a=a||[]).push(i,""+l)):"children"===i?t===l||"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(i,""+l):"suppressContentEditableWarning"!==i&&(sr.hasOwnProperty(i)?(null!=l&&z(o,i),a||t===l||(a=[])):(a=a||[]).push(i,l))}return e&&(a=a||[]).push("style",e),a},updateProperties:function(e,t,n,r,o){H(n,r),r=H(n,o);for(var a=0;at&&(t=8),wr=t=q(s.priorityLevel,i);){n.first=s.next,null===n.first&&(n.last=null);var c;s.isReplace?(o=J(s,r,o,a),l=!0):(c=J(s,r,o,a))&&(o=l?vt({},o,c):vt(o,c),l=!1),s.isForced&&(u=!0),null===s.callback||s.isTopLevelUnmount&&null!==s.next||(e=null!==e?e:[],e.push(s.callback),t.effectTag|=Nr),s=s.next}return n.callbackList=e,n.hasForceUpdate=u,null!==n.first||null!==e||u||(t.updateQueue=null),o},commitCallbacks:function(e,t,n){if(e=t.callbackList,null!==e)for(t.callbackList=null,t=0;tUr||(e.current=Fr[Ur],Fr[Ur]=null,Ur--)},push:function(e,t){Ur++,Fr[Ur]=e.current,e.current=t},reset:function(){for(;-1e)?e:t}},po=fo.createHostRootFiber,ho=Dt.IndeterminateComponent,mo=Dt.FunctionalComponent,yo=Dt.ClassComponent,vo=Dt.HostComponent;"function"==typeof Symbol&&Symbol.for?(_r=Symbol.for("react.coroutine"),Cr=Symbol.for("react.yield")):(_r=60104,Cr=60105);var go={createCoroutine:function(e,t,n){var r=3t&&(r=t,t=o,o=r),r=ve(e,o),e=ve(e,t),r&&e){var a=document.createRange();a.setStart(r.node,r.offset),n.removeAllRanges(),o>t?(n.addRange(a),n.extend(e.node,e.offset)):(a.setEnd(e.node,e.offset),n.addRange(a))}}}},su=Lt.ELEMENT_NODE,cu={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=Ot();return{focusedElem:e,selectionRange:cu.hasSelectionCapabilities(e)?cu.getSelection(e):null}},restoreSelection:function(e){var t=Ot(),n=e.focusedElem;if(e=e.selectionRange,t!==n&&xt(document.documentElement,n)){for(cu.hasSelectionCapabilities(n)&&cu.setSelection(n,e),t=[],e=n;e=e.parentNode;)e.nodeType===su&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(kt(n),n=0;n=parseInt(Cu.version(),10))}var Pu=_u,Su=yt.canUseDOM&&(!ku||Ou&&8=Ou),Tu=String.fromCharCode(32),Nu={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Au=!1,Iu=!1,Mu={eventTypes:Nu,extractEvents:function(e,t,n,r){var o;if(ku)e:{switch(e){case"topCompositionStart":var a=Nu.compositionStart;break e;case"topCompositionEnd":a=Nu.compositionEnd;break e;case"topCompositionUpdate":a=Nu.compositionUpdate;break e}a=void 0}else Iu?Re(e,n)&&(a=Nu.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(a=Nu.compositionStart);return a?(Su&&(Iu||a!==Nu.compositionStart?a===Nu.compositionEnd&&Iu&&(o=bu.getData()):Iu=bu.initialize(r)),a=Me.getPooled(a,t,n,r),o?a.data=o:(o=De(n),null!==o&&(a.data=o)),yu.accumulateTwoPhaseDispatches(a),o=a):o=null,(e=Pu?Le(e,n):$e(e,n))?(t=je.getPooled(Nu.beforeInput,t,n,r),t.data=e,yu.accumulateTwoPhaseDispatches(t)):t=null,[o,t]}},ju={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Ru={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Du=null,Lu=null,$u=!1;yt.canUseDOM&&($u=A("input")&&(!document.documentMode||9=document.documentMode,qu={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},Wu=null,Ku=null,Yu=null,Gu=!1,Ju=Tn.isListeningToAllDependencies,Qu={eventTypes:qu,extractEvents:function(e,t,n,r){var o=r.window===r?r.document:r.nodeType===Vu?r:r.ownerDocument;if(!o||!Ju("onSelect",o))return null;switch(o=t?Kt.getNodeFromInstance(t):window,e){case"topFocus":(Fe(o)||"true"===o.contentEditable)&&(Wu=o,Ku=t,Yu=null);break;case"topBlur":Yu=Ku=Wu=null;break;case"topMouseDown":Gu=!0;break;case"topContextMenu":case"topMouseUp":return Gu=!1,et(n,r);case"topSelectionChange":if(zu)break;case"topKeyDown":case"topKeyUp":return et(n,r)}return null}};Te.augmentClass(tt,{animationName:null,elapsedTime:null,pseudoElement:null}),Te.augmentClass(nt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Je.augmentClass(rt,{relatedTarget:null});var Xu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp", -34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};Je.augmentClass(at,{key:function(e){if(e.key){var t=Xu[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=ot(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?Zu[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Xe,charCode:function(e){return"keypress"===e.type?ot(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ot(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ze.augmentClass(it,{dataTransfer:null}),Je.augmentClass(ut,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Xe}),Te.augmentClass(lt,{propertyName:null,elapsedTime:null,pseudoElement:null}),Ze.augmentClass(st,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var el={},tl={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;t="top"+t,n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t]},el[e]=n,tl[t]=n});var nl={eventTypes:el,extractEvents:function(e,t,n,o){var a=tl[e];if(!a)return null;switch(e){case"topAbort":case"topCancel":case"topCanPlay":case"topCanPlayThrough":case"topClose":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topToggle":case"topVolumeChange":case"topWaiting":var i=Te;break;case"topKeyPress":if(0===ot(n))return null;case"topKeyDown":case"topKeyUp":i=at;break;case"topBlur":case"topFocus":i=rt;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=Ze;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=it;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=ut;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=tt;break;case"topTransitionEnd":i=lt;break;case"topScroll":i=Je;break;case"topWheel":i=st;break;case"topCopy":case"topCut":case"topPaste":i=nt}return i?void 0:r("86",e),e=i.getPooled(a,t,n,o),yu.accumulateTwoPhaseDispatches(e),e}};bn.setHandleTopLevel(Tn.handleTopLevel),wn.injection.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),ln.injection.injectComponentTree(Kt),wn.injection.injectEventPluginsByName({SimpleEventPlugin:nl,EnterLeaveEventPlugin:Hu,ChangeEventPlugin:Fu,SelectEventPlugin:Qu,BeforeInputEventPlugin:Mu});var rl=Rt.injection.MUST_USE_PROPERTY,ol=Rt.injection.HAS_BOOLEAN_VALUE,al=Rt.injection.HAS_NUMERIC_VALUE,il=Rt.injection.HAS_POSITIVE_NUMERIC_VALUE,ul=Rt.injection.HAS_STRING_BOOLEAN_VALUE,ll={Properties:{allowFullScreen:ol,allowTransparency:ul,async:ol,autoPlay:ol,capture:ol,checked:rl|ol,cols:il,contentEditable:ul,controls:ol,default:ol,defer:ol,disabled:ol,download:Rt.injection.HAS_OVERLOADED_BOOLEAN_VALUE,draggable:ul,formNoValidate:ol,hidden:ol,loop:ol,multiple:rl|ol,muted:rl|ol,noValidate:ol,open:ol,playsInline:ol,readOnly:ol,required:ol,reversed:ol,rows:il,rowSpan:al,scoped:ol,seamless:ol,selected:rl|ol,size:il,start:al,span:il,spellCheck:ul,style:0,itemScope:ol,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:ul},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){return null==t?e.removeAttribute("value"):void("number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t))}}},sl=Rt.injection.HAS_STRING_BOOLEAN_VALUE,cl={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},fl={Properties:{autoReverse:sl,externalResourcesRequired:sl,preserveAlpha:sl},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:cl.xlink,xlinkArcrole:cl.xlink,xlinkHref:cl.xlink,xlinkRole:cl.xlink,xlinkShow:cl.xlink,xlinkTitle:cl.xlink,xlinkType:cl.xlink,xmlBase:cl.xml,xmlLang:cl.xml,xmlSpace:cl.xml}},dl=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(dl,ct);fl.Properties[t]=0,fl.DOMAttributeNames[t]=e}),Rt.injection.injectDOMPropertyConfig(ll),Rt.injection.injectDOMPropertyConfig(fl);var pl=ni.injectInternals,hl=Lt.ELEMENT_NODE,ml=Lt.TEXT_NODE,yl=Lt.COMMENT_NODE,vl=Lt.DOCUMENT_NODE,gl=Lt.DOCUMENT_FRAGMENT_NODE,bl=Rt.ROOT_ATTRIBUTE_NAME,El=Pt.getChildNamespace,wl=pr.createElement,xl=pr.createTextNode,kl=pr.setInitialProperties,Ol=pr.diffProperties,_l=pr.updateProperties,Cl=pr.diffHydratedProperties,Pl=pr.diffHydratedText,Sl=pr.warnForDeletedHydratableElement,Tl=pr.warnForDeletedHydratableText,Nl=pr.warnForInsertedHydratedElement,Al=pr.warnForInsertedHydratedText,Il=Kt.precacheFiberNode,Ml=Kt.updateFiberProps;dn.injection.injectFiberControlledHostComponent(pr),we._injectFiber(function(e){return Dl.findHostInstance(e)});var jl=null,Rl=null,Dl=function(e){var t=e.getPublicInstance;e=pe(e);var n=e.scheduleUpdate,r=e.getPriorityContext;return{createContainer:function(e){var t=po();return e={current:t,containerInfo:e,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null},t.stateNode=e},updateContainer:function(e,t,o,a){var i=t.current;o=me(o),null===t.context?t.context=o:t.pendingContext=o,t=a,a=r(i,Sr.enableAsyncSubtreeAPI&&null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent),e={element:e},Zi(i,e,void 0===t?null:t,a),n(i,a)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case ru:return t(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:function(e){return e=ou(e),null===e?null:e.stateNode},findHostInstanceWithNoPortals:function(e){return e=au(e),null===e?null:e.stateNode}}}({getRootHostContext:function(e){if(e.nodeType===vl)e=(e=e.documentElement)?e.namespaceURI:El(null,"");else{var t=e.nodeType===yl?e.parentNode:e;e=t.namespaceURI||null,t=t.tagName,e=El(e,t)}return e},getChildHostContext:function(e,t){return El(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){jl=Tn.isEnabled(),Rl=fu.getSelectionInformation(),Tn.setEnabled(!1)},resetAfterCommit:function(){fu.restoreSelection(Rl),Rl=null,Tn.setEnabled(jl),jl=null},createInstance:function(e,t,n,r,o){return e=wl(e,t,n,r),Il(o,e),Ml(e,t),e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){kl(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,o){return Ol(e,t,n,r,o)},commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,o){Ml(e,o),_l(e,t,n,r,o)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html},resetTextContent:function(e){e.textContent=""},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=xl(e,t),Il(r,e),e},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){e.nodeType===yl?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){e.nodeType===yl?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.nodeType===yl?e.parentNode.removeChild(t):e.removeChild(t)},canHydrateInstance:function(e,t){return e.nodeType===hl&&t===e.nodeName.toLowerCase()},canHydrateTextInstance:function(e,t){return""!==t&&e.nodeType===ml},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&e.nodeType!==hl&&e.nodeType!==ml;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&e.nodeType!==hl&&e.nodeType!==ml;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,o,a){return Il(a,e),Ml(e,n),Cl(e,t,n,o,r)},hydrateTextInstance:function(e,t,n){return Il(n,e),Pl(e,t)},didNotHydrateInstance:function(e,t){1===t.nodeType?Sl(e,t):Tl(e,t)},didNotFindHydratableInstance:function(e,t,n){Nl(e,t,n)},didNotFindHydratableTextInstance:function(e,t){Al(e,t)},scheduleDeferredCallback:Pr.rIC,useSyncScheduling:!0});hn.injection.injectFiberBatchedUpdates(Dl.batchedUpdates);var Ll={createPortal:ht,hydrate:function(e,t,n){return pt(null,e,t,!0,n)},render:function(e,t,n){return pt(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return null!=e&&Yt.has(e)?void 0:r("38"),pt(e,t,n,!1,o)},unmountComponentAtNode:function(e){return ft(e)?void 0:r("40"),!!e._reactRootContainer&&(Dl.unbatchedUpdates(function(){pt(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},findDOMNode:we,unstable_createPortal:ht,unstable_batchedUpdates:hn.batchedUpdates,unstable_deferredUpdates:Dl.deferredUpdates,flushSync:Dl.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:wn,EventPluginRegistry:At,EventPropagators:yu,ReactControlledComponent:dn,ReactDOMComponentTree:Kt,ReactDOMEventListener:bn}};pl({findFiberByHostInstance:Kt.getClosestInstanceFromNode,findHostInstanceByFiber:Dl.findHostInstance,bundleType:0,version:"16.0.0",rendererPackageName:"react-dom"}),e.exports=Ll},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(e.children!==t.children)return!1;var n=Object.keys(t),r=t.forceState?-1:0,a=e.forceState?-1:0;if(n.length+r!==Object.keys(e).length+a)return!1;for(var l=function(n){return!!u.statePropOptionKeys.some(function(e){return t[n][e]})&&u.statePropOptionKeys.every(function(r){return t[n][r]===e[n][r]})},s=0;s=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a.createElement;return function(t,n){return u.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return r.reduceRight(function(t,n){return n(t,e)},i.default.createElement(l.default,o({},e,{createElement:s(e.createElement)})))}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(131),a=r(o),i=n(47),u=r(i);t.default=(0,u.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=(0,a.getParamNames)(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,a=void 0,i=void 0,u=void 0;if(n){var l=!1;a=n.filter(function(n){if(l)return!0;var a=o.indexOf(n)===-1||r(n,e,t);return a&&(l=!0),a}),a.reverse(),u=[],i=[],o.forEach(function(e){var t=n.indexOf(e)===-1,r=a.indexOf(e)!==-1;t||r?u.push(e):i.push(e)})}else a=[],i=[],u=o;return{leaveRoutes:a,changeRoutes:i,enterRoutes:u}}t.__esModule=!0;var a=n(18);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(r){var o=r.call(t,e,n);(0,i.isPromise)(o)&&o.then(function(e){return n(null,e)},n)}else n()}function o(e,t){(0,a.mapAsync)(e.routes,function(t,n,o){r(e,t,o)},t)}t.__esModule=!0;var a=n(31),i=n(43);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n={};return e.path?((0,o.getParamNames)(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}),n):n}t.__esModule=!0;var o=n(18);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(132),a=r(o),i=n(47),u=r(i);t.default=(0,u.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"===("undefined"==typeof e?"undefined":l(e))){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}function a(e,t,n){for(var r=e,o=[],a=[],i=0,u=t.length;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){var n=e.history,r=e.routes,a=e.location,l=o(e,["history","routes","location"]);n||a?void 0:(0,s.default)(!1),n=n?n:(0,f.default)(l);var c=(0,p.default)(n,(0,h.createRoutes)(r));a=a?n.createLocation(a):n.getCurrentLocation(),c.match(a,function(e,r,o){var a=void 0;if(o){var l=(0,m.createRouterObject)(n,c,o);a=i({},o,{router:l,matchContext:{transitionManager:c,router:l}})}t(e,r&&n.createLocation(r,u.REPLACE),a)})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=c({},t,{pathname:"/"+t.pathname})),r=t.pathname),(0,f.loopAsync)(e.length,function(n,i,u){l(e[n],t,r,o,a,function(e,t){e||t?u(e,t):i()})},n)}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t=e&&i&&(o=!0,n()))}};s()}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var o=n(35);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return o.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}});var a=n(15),i=(r(a),n(20)),u=n(27),l=n(50),s=n(14),c="hashchange",f=function(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)},d=function(e){return window.location.hash=e},p=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},h=t.getCurrentLocation=function(e,t){var n=e.decodePath(f()),r=(0,s.getQueryStringValueFromPath)(n,t),o=void 0;r&&(n=(0,s.stripQueryStringValueFromPath)(n,t),o=(0,l.readState)(r));var a=(0,s.parsePath)(n);return a.state=o,(0,i.createLocation)(a,void 0,r)},m=void 0,y=(t.startListener=function(e,t,n){var r=function(){var r=f(),o=t.encodePath(r);if(r!==o)p(o);else{var a=h(t,n);if(m&&a.key&&m.key===a.key)return;m=a,e(a)}},o=f(),a=t.encodePath(o);return o!==a&&p(a),(0,u.addEventListener)(window,c,r),function(){return(0,u.removeEventListener)(window,c,r)}},function(e,t,n,r){var o=e.state,a=e.key,i=t.encodePath((0,s.createPath)(e));void 0!==o&&(i=(0,s.addQueryStringValueToPath)(i,n,a),(0,l.saveState)(a,o)),m=e,r(i)});t.pushLocation=function(e,t,n){return y(e,t,n,function(e){f()!==e&&d(e)})},t.replaceLocation=function(e,t,n){return y(e,t,n,function(e){f()!==e&&p(e)})}},function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(35);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(20),a=n(14);t.getCurrentLocation=function(){return(0,o.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,a.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,a.createPath)(e)),!1}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};l.canUseDOM?void 0:(0,u.default)(!1);var t=e.forceRefresh||!(0,p.supportsHistory)(),n=t?d:c,r=n.getUserConfirmation,o=n.getCurrentLocation,i=n.pushLocation,s=n.replaceLocation,f=n.go,h=(0,m.default)(a({getUserConfirmation:r},e,{getCurrentLocation:o,pushLocation:i,replaceLocation:s,go:f})),y=0,v=void 0,g=function(e,t){1===++y&&(v=c.startListener(h.transitionTo));var n=t?h.listenBefore(e):h.listen(e);return function(){n(),0===--y&&v()}},b=function(e){return g(e,!0)},E=function(e){return g(e,!1)};return a({},h,{listenBefore:b,listen:E})};t.default=y},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};s.canUseDOM?void 0:(0,l.default)(!1);var t=e.queryKey,n=e.hashType;"string"!=typeof t&&(t=m),null==n&&(n="slash"),n in v||(n="slash");var r=v[n],o=d.getUserConfirmation,i=function(){return d.getCurrentLocation(r,t)},u=function(e){return d.pushLocation(e,r,t)},f=function(e){return d.replaceLocation(e,r,t)},p=(0,h.default)(a({getUserConfirmation:o},e,{getCurrentLocation:i,pushLocation:u,replaceLocation:f,go:d.go})),y=0,g=void 0,b=function(e,n){1===++y&&(g=d.startListener(p.transitionTo,r,t));var o=n?p.listenBefore(e):p.listen(e);return function(){o(),0===--y&&g()}},E=function(e){return b(e,!0)},w=function(e){return b(e,!1)},x=((0,c.supportsGoWithoutReloadUsingHash)(),function(e){p.go(e)}),k=function(e){return"#"+r.encodePath(p.createHref(e))};return a({},p,{listenBefore:E,listen:w,go:x,createHref:k})};t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)?e={entries:e}:"string"==typeof e&&(e={entries:[e]});var t=function(){var e=m[y],t=(0,s.createPath)(e),n=void 0,r=void 0;e.key&&(n=e.key,r=b(n));var a=(0,s.parsePath)(t);return(0,l.createLocation)(o({},a,{state:r}),void 0,n)},n=function(e){var t=y+e;return t>=0&&t=0&&yA.length&&A.push(e)}function d(e,t,n,o){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===T)return n(o,e,""===t?"."+p(e,0):t),1;var i=0;if(t=""===t?".":t+":",Array.isArray(e))for(var u=0;u-1?t:e}function p(e,t){t=t||{};var n=t.body;if(e instanceof p){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=d(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function m(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function y(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var v={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(v.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},E=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},v.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},f.call(p.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];y.redirect=function(e,t){if(x.indexOf(t)===-1)throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=p,e.Response=y,e.fetch=function(e,t){return new Promise(function(n,r){var o=new p(e,t),a=new XMLHttpRequest;a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:m(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;n(new y(t,e))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&v.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)}]); \ No newline at end of file +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/build/",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1),a=r(o),i=n(41),u=n(6),l=n(53),s=r(l),c=n(10),f=r(c),d=n(12),p=r(d),h=n(54),m=r(h),y=n(55),v=r(y),g=n(67),b=(r(g),n(64)),E=r(b),w=n(65),x=r(w),k=n(66),O=r(k),_=n(56),C=r(_),P=n(68),S=r(P),T=n(75),N=r(T),A=n(69),M=r(A),I=n(76),j=r(I),R=n(70),D=r(R),L=n(77),$=r(L),F=n(71),U=r(F),B=n(78),H=r(B),V=n(72),z=r(V),q=n(79),W=r(q),K=n(73),Y=r(K),G=n(80),J=r(G),Q=n(74),X=r(Q),Z=a.default.createElement(u.Route,{path:"/",component:s.default},a.default.createElement(u.IndexRoute,{component:m.default}),a.default.createElement(u.Route,{path:"example",mapMenuTitle:"Example",component:E.default},a.default.createElement(u.IndexRoute,{component:x.default}),a.default.createElement(u.Route,{path:"two-deep",mapMenuTitle:"Two Deep",component:O.default})),a.default.createElement(u.Route,{path:"Construction",component:p.default}),a.default.createElement(u.Route,{path:"EnterTheCode",component:v.default}),a.default.createElement(u.Route,{path:"collection"},a.default.createElement(u.IndexRoute,{component:C.default}),a.default.createElement(u.Route,{path:"*",component:C.default})),a.default.createElement(u.Route,{path:"portal",component:S.default,mapMenuTitle:"Portal"},a.default.createElement(u.IndexRoute,{component:N.default}),a.default.createElement(u.Route,{path:"Attacks",component:M.default,mapMenuTitle:"Attacks"},a.default.createElement(u.Route,{path:"*",component:j.default})),a.default.createElement(u.Route,{path:"Battlegear",component:D.default,mapMenuTitle:"Battlegear"},a.default.createElement(u.Route,{path:"*",component:$.default})),a.default.createElement(u.Route,{path:"Locations",component:z.default,mapMenuTitle:"Locations"},a.default.createElement(u.Route,{path:"*",component:W.default})),a.default.createElement(u.Route,{path:"Creatures",component:U.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"OverWorld",component:U.default,mapMenuTitle:"OverWorld"},a.default.createElement(u.Route,{path:"*",component:H.default})),a.default.createElement(u.Route,{path:"UnderWorld",component:U.default,mapMenuTitle:"UnderWorld"},a.default.createElement(u.Route,{path:"*",component:H.default})),a.default.createElement(u.Route,{path:"Mipedian",component:U.default,mapMenuTitle:"Mipedian"},a.default.createElement(u.Route,{path:"*",component:H.default})),a.default.createElement(u.Route,{path:"Danian",component:U.default,mapMenuTitle:"Danian"},a.default.createElement(u.Route,{path:"*",component:H.default}))),a.default.createElement(u.Route,{path:"Mugic",component:Y.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"OverWorld",component:Y.default,mapMenuTitle:"OverWorld"},a.default.createElement(u.Route,{path:"*",component:J.default})),a.default.createElement(u.Route,{path:"UnderWorld",component:Y.default,mapMenuTitle:"UnderWorld"},a.default.createElement(u.Route,{path:"*",component:J.default})),a.default.createElement(u.Route,{path:"Mipedian",component:Y.default,mapMenuTitle:"Mipedian"},a.default.createElement(u.Route,{path:"*",component:J.default})),a.default.createElement(u.Route,{path:"Danian",component:Y.default,mapMenuTitle:"Danian"},a.default.createElement(u.Route,{path:"*",component:J.default})),a.default.createElement(u.Route,{path:"Generic",component:Y.default,mapMenuTitle:"Generic"},a.default.createElement(u.Route,{path:"*",component:J.default}))),a.default.createElement(u.Route,{path:"OverWorld",component:X.default,mapMenuTitle:"OverWorld"},a.default.createElement(u.Route,{path:"Creatures",component:U.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:H.default})),a.default.createElement(u.Route,{path:"Mugic",component:Y.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:J.default}))),a.default.createElement(u.Route,{path:"UnderWorld",component:X.default,mapMenuTitle:"UnderWorld"},a.default.createElement(u.Route,{path:"Creatures",component:U.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:H.default})),a.default.createElement(u.Route,{path:"Mugic",component:Y.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:J.default}))),a.default.createElement(u.Route,{path:"Mipedian",component:X.default,mapMenuTitle:"Mipedian"},a.default.createElement(u.Route,{path:"Creatures",component:U.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:H.default})),a.default.createElement(u.Route,{path:"Mugic",component:Y.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:J.default}))),a.default.createElement(u.Route,{path:"Danian",component:X.default,mapMenuTitle:"Danian"},a.default.createElement(u.Route,{path:"Creatures",component:U.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:H.default})),a.default.createElement(u.Route,{path:"Mugic",component:Y.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:J.default}))),a.default.createElement(u.Route,{path:"Marrillian",component:X.default,mapMenuTitle:"Marrillian"},a.default.createElement(u.Route,{path:"Creatures",component:U.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:H.default})),a.default.createElement(u.Route,{path:"Mugic",component:Y.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:J.default}))),a.default.createElement(u.Route,{path:"Generic",component:X.default,mapMenuTitle:"Generic"},a.default.createElement(u.Route,{path:"Creatures",component:U.default,mapMenuTitle:"Creatures"},a.default.createElement(u.Route,{path:"*",component:H.default})),a.default.createElement(u.Route,{path:"Mugic",component:Y.default,mapMenuTitle:"Mugic"},a.default.createElement(u.Route,{path:"*",component:J.default}))),a.default.createElement(u.Route,{path:"*",component:f.default})),a.default.createElement(u.Route,{path:"*",component:f.default}));(0,i.render)(a.default.createElement(u.Router,{history:u.browserHistory,routes:Z}),document.getElementById("root"))},function(e,t,n){"use strict";e.exports=n(136)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=t.left-1&&n<=t.right+1&&r>=t.top-1&&r<=t.bottom+1}if(!C.deviceHasMouse)return null;var n=e&&e.clientX||x.default.mouse.clientX,r=e&&e.clientY||x.default.mouse.clientY,o=!0;return o=!!x.default.mouse.mouseOnDocument&&(this.p.props.nonContainedChild?(0,E.default)(this.topNode,t):t(this.topNode)),o?"mouseOn":"mouseOff"}},{key:"manageFocus",value:function(e,t){var n=this;if(t&&(w.focusRegistry.focus===t||w.focusRegistry.blur===t))return"updateState";var r=!C.nonBlurrableTags[this.tagName]&&!this.p.props.focusToggleOff,o=this.p.props.tabIndex||C.knownRoleTags[this.tagName],a=function(e,a,i){return("force"===i||"focus"===e&&o||"blur"===e&&r)&&(t&&(w.focusRegistry[e]=t,n.manageSetTimeout("focusRegistry",function(){w.focusRegistry[e]=null},0)),n.track.focusTransition=a,n.topNode[e](),n.track.focusTransition!==a)?"terminate":(n.track.focusTransition="reset","updateState")},i=function(e,t){return n.track.state.focus?a("blur",e+"Blur",t):a("focus",e+"Focus",t)};switch(e){case"mousedown":return a("focus","mouseDownFocus");case"mouseup":return this.track.focusStateOnMouseDown?a("blur","mouseUpBlur"):(this.track.focusTransition="reset","updateState");case"touchclick":return i("touchClick");case"forceStateFocusTrue":return this.manageSetTimeout("forceStateFocusTrue",function(){!n.track.state.focus&&a("focus","forceStateFocus","force")},0),"terminate";case"forceStateFocusFalse":return this.manageSetTimeout("forceStateFocusFalse",function(){n.track.state.focus&&a("blur","forceStateBlur","force")},0),"terminate";case"refCallback":return this.track.state.focus?a("focus","refCallbackFocus","force"):(this.track.focusTransition="reset","terminate");case"focusForceBlur":return a("blur","focusForceBlur","force");default:return"updateState"}}},{key:"handleMouseEvent",value:function(e){switch(e.type){case"mouseenter":return(0,w.updateMouseFromRI)(e),this.p.props.onMouseEnter&&this.p.props.onMouseEnter(e),this.track.mouseOn=!0,this.track.buttonDown=1===e.buttons,"updateState";case"mouseleave":return(0,w.updateMouseFromRI)(e),this.p.props.onMouseLeave&&this.p.props.onMouseLeave(e),this.track.mouseOn=!1,this.track.buttonDown=!1,"updateState";case"mousemove":return this.p.props.onMouseMove&&this.p.props.onMouseMove(e),this.track.mouseOn&&this.track.buttonDown===(1===e.buttons)?"terminate":(this.track.mouseOn=!0,this.track.buttonDown=1===e.buttons,"updateState");case"mousedown":return this.p.props.onMouseDown&&this.p.props.onMouseDown(e),this.track.mouseOn=!0,this.track.buttonDown=!0,this.track.focusStateOnMouseDown=this.track.state.focus,this.manageFocus("mousedown",e);case"mouseup":this.p.props.onMouseUp&&this.p.props.onMouseUp(e),this.track.buttonDown=!1;var t=this.manageFocus("mouseup",e);return this.manageClick("mouseClick"),t;default:return"terminate"}}},{key:"handleTouchEvent",value:function(e){var t=this;this.track.mouseOn=!1,this.track.buttonDown=!1;var n=function(){t.track.touchDown=!1,t.track.touches={points:{},active:0},t.cancelTimeout("touchTapTimer")},r=function(){t.track.recentTouch=!0,t.manageSetTimeout("recentTouchTimer",function(){t.track.recentTouch=!1},C.queueTime)},o=function(){return t.p.props.extraTouchNoTap&&e.touches.length!==t.track.touches.active||t.track.touches.active>t.maxTapPoints},a=function(e,t,n){return Math.abs(e.clientX-t.startX)>=15+3*n||Math.abs(e.clientY-t.startY)>=15+3*n},i=function(n){for(var r=0;r0)return n(),"updateState";if(this.track.touches.touchend=!0,0===this.track.touches.active&&(this.track.touches.tapCanceled||o()))return n(),"updateState";if(this.track.touches.tapCanceled)return"terminate";if(o())return this.handleTouchEvent({type:"touchtapcancel"});if(i("client"),0===this.track.touches.active){var c=this.track.touches.points,f=Object.keys(c),d=f.length,p=f.every(function(e){return!a(c[e],c[e],d)})?d:0;switch(n(),p){case 1:var h="updateState";return(this.p.props.active||this.p.props.touchActive)&&(h=this.manageFocus("touchclick",e),this.manageClick("tapClick")),h;case 2:this.p.props.onTapTwo&&this.p.props.onTapTwo(e);break;case 3:this.p.props.onTapThree&&this.p.props.onTapThree(e);break;case 4:this.p.props.onTapFour&&this.p.props.onTapFour(e)}}return"updateState";case"touchcancel":return r(),this.p.props.onTouchCancel&&this.p.props.onTouchCancel(e),this.track.touches.active-=e.changedTouches.length,0===this.track.touches.active?(n(),"updateState"):this.handleTouchEvent({type:"touchtapcancel"});case"touchtapcancel":return this.cancelTimeout("touchTapTimer"),this.track.touchDown&&(this.track.touches.tapCanceled=!0,this.p.props.touchActiveTapOnly)?(this.track.touchDown=!1,"updateState"):"terminate";default:return"terminate"}}},{key:"manageClick",value:function(e){var t=this;this.cancelTimeout("clickType");var n=function(){t.manageSetTimeout("clickType",function(){t.track.clickType="reset"},C.queueTime)};switch(e){case"mouseClick":this.track.clickType="mouseClick",n();break;case"tapClick":this.track.clickType="tapClick",(0,_.default)(this.topNode),this.track.clickType="reset";break;case"keyClick":this.track.clickType="keyClick",C.knownRoleTags[this.tagName]?n():this.p.props.onClick&&(this.topNode.click(),this.track.clickType="reset")}}},{key:"handleClickEvent",value:function(e){this.cancelTimeout("clickType");var t="terminate";if("reset"===this.track.clickType){var n="input"===this.tagName&&"submit"===this.type&&x.default.key.recentEnterKeyDown;n?this.track.clickType="keyClick":x.default.touch.recentTouch||x.default.touch.touchOnScreen||"touchOnly"===C.deviceType?(t=this.manageFocus("touchclick",e),this.track.keyClick="tapClick"):this.track.keyClick="mouseClick"}return"_blank"!==this.p.props.target||"tapClick"!==this.track.clickType||this.track.notifyOfNext.focus||(this.track.previousFocus="touch",this.track.notifyOfNext.focus=(0,k.notifyOfNext)("focus",this.handleNotifyOfNext)),this.p.props.onClick&&this.p.props.onClick(e,this.track.clickType),this.track.clickType="reset",t}},{key:"handleOtherEvent",value:function(e){switch(e.type){case"focus":if(this.p.props.onFocus&&this.p.props.onFocus(e),e.target!==this.topNode)return"terminate";if("reset"!==this.track.focusTransition||!this.track.focus){var t=this.track.focusTransition.toLowerCase();/mouse/.test(t)?this.track.focus="mouse":/touch/.test(t)||this.track.touchDown?this.track.focus="touch":this.track.reinstateFocus?this.track.focus=this.track.previousFocus:/forcestate/.test(t)||(this.track.focus="tab")}return this.cancelTimeout("windowFocus"),this.track.reinstateFocus=!1,this.track.focusTransition="reset","updateState";case"blur":return this.p.props.onBlur&&this.p.props.onBlur(e),e.target!==this.topNode?"terminate":(this.track.focusTransition="reset",this.track.previousFocus=this.track.focus,this.track.focus=!1,this.track.spaceKeyDown=!1,this.track.enterKeyDown=!1,"updateState");case"keydown":if(this.p.props.onKeyDown&&this.p.props.onKeyDown(e),!this.track.focus)return"terminate";if(" "===e.key)this.track.spaceKeyDown=!0;else{if("Enter"!==e.key)return"terminate";this.track.enterKeyDown=!0,this.enterKeyTrigger&&this.manageClick("keyClick")}return"updateState";case"keyup":if(this.p.props.onKeyUp&&this.p.props.onKeyUp(e),!this.track.focus)return"terminate";if("Enter"===e.key)this.track.enterKeyDown=!1;else{if(" "!==e.key)return"terminate";this.track.spaceKeyDown=!1,this.spaceKeyTrigger&&this.manageClick("keyClick")}return"updateState";case"dragstart":return this.p.props.onDragStart&&this.p.props.onDragStart(e),this.track.drag=!0,"updateState";case"dragend":return this.p.props.onDragEnd&&this.p.props.onDragEnd(e),this.forceTrackIState("normal"),"updateState";default:return"terminate"}}},{key:"computeStyle",value:function(){var e={};this.p.props.useBrowserOutlineFocus||!this.p.props.focusFromTab&&("tab"===this.state.focus||C.nonBlurrableTags[this.tagName])||(e.outline=0,e.outlineOffset=0),(this.p.props.touchActive||this.p.props.active)&&C.deviceHasTouch&&(e.WebkitTapHighlightColor="rgba(0, 0, 0, 0)");var t="string"==typeof this.p.props.as&&this.p.props.as.toLowerCase();this.p.props.useBrowserCursor||!(this.p.props.onClick||"input"!==t&&this.p.props.tabIndex&&(this.p.mouseFocusStyle.style||this.p.mouseFocusStyle.className)||"input"===t&&("checkbox"===this.p.props.type||"radio"===this.p.props.type||"submit"===this.p.props.type)||"button"===t||"a"===t||"area"===t||"select"===t)||this.p.props.disabled||(e.cursor="pointer"),(0,d.default)(e,this.p.props.style);var n="keyActive"===this.state.iState||this.p.props.stylePriority&&this.p.props.stylePriority[this.state.iState],r=this.p[this.state.iState+"Style"].style,o=this.state.focus?this.p[this.state.focus+"FocusStyle"].style:null;return n?(0,d.default)(e,o,r):(0,d.default)(e,r,o),e}},{key:"computeClassName",value:function(){return(0,g.joinClasses)(this.p.props.className||"",this.p[this.state.iState+"Style"].className,this.state.focus?this.p[this.state.focus+"FocusStyle"].className:"")}},{key:"computeChildren",value:function(){var e=this,n=this.state.focus&&"focusFrom"+this.state.focus.charAt(0).toUpperCase()+this.state.focus.slice(1),r=this.p.props.stylePriority&&this.p.props.stylePriority[this.state.iState],o=function(t){var o=t.style?u({},t.style):{};(0,g.setActiveAndFocusProps)(t);var a=(0,g.extractStyle)(t,e.state.iState),i=e.state.focus&&(0,g.extractStyle)(t,n);return{className:(0,g.joinClasses)(t.className||"",a.className,i&&i.className||""),style:r&&(0,d.default)(o,i.style,a.style)||(0,d.default)(o,a.style,i.style)}},a=function r(a){return c.default.Children.map(a,function(a){if(!c.default.isValidElement(a))return a;if(a.props.showOnParent){var i=a.props.showOnParent.split(" ");if(!i.some(function(t){return t===e.state.iState||/Active/.test(e.state.iState)&&"active"===t||e.state.focus&&(t===n||"focus"===t)}))return null}var u=Object.keys(a.props);if(!u.some(function(e){return C.childInteractiveProps[e]}))return a.type===t?a:c.default.cloneElement(a,{},r(a.props.children));var l={},s={};u.forEach(function(e){C.childInteractiveProps[e]?"showOnParent"!==e&&(s[""+e.slice(8).charAt(0).toLowerCase()+e.slice(9)]=a.props[e]):l[e]=a.props[e]}),s.style=a.props.style,s.className=a.props.className;var f=o(s),d=f.style,p=f.className;return l.style=d,p&&(l.className=p),c.default.createElement(a.type,l,a.type===t?a.props.children:r(a.props.children))})};return a(this.p.props.children)}},{key:"render",value:function(){this.p.passThroughProps.style=this.computeStyle();var e=this.computeClassName();e&&(this.p.passThroughProps.className=e);var t=this.p.props.interactiveChild?this.computeChildren():this.p.props.children;return"string"==typeof this.p.props.as?(this.p.passThroughProps.ref=this.refCallback,c.default.createElement(this.p.props.as,this.p.passThroughProps,t)):c.default.createElement("span",{ref:this.refCallback,style:this.p.props.wrapperStyle,className:this.p.props.wrapperClassName},c.default.createElement(this.p.props.as,this.p.passThroughProps,t))}}]),t}(c.default.Component);P.propTypes=p.propTypes,P.defaultProps=p.defaultProps,t.default=P,e.exports=t.default},function(e,t,n){!function(e,r){r(t,n(9),n(1),n(41))}(this,function(e,t,n,r){"use strict";function o(e){function n(n,r,o,a,i,u){for(var l=arguments.length,s=Array(l>6?l-6:0),c=6;c>",u=u||o,null==r[o]){if(n){var t=null===r[o]?"null":"undefined";return new Error("The "+i+" `"+u+"` is marked as required in `"+a+"`, but its value is `"+t+"`.")}return null}return e.apply(void 0,[r,o,a,i,u].concat(s))})}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function a(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function i(e){var t="undefined"==typeof e?"undefined":k(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":a(t,e)?"symbol":t}function u(e){var t=i(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function l(e,n){return o(function(r,o,a,l,s){return t.untracked(function(){if(e&&i(r[o])===n.toLowerCase())return null;var l=void 0;switch(n){case"Array":l=t.isObservableArray;break;case"Object":l=t.isObservableObject;break;case"Map":l=t.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+n)}var c=r[o];if(!l(c)){var f=u(c),d=e?" or javascript `"+n.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+f+"` supplied to `"+a+"`, expected `mobx.Observable"+n+"`"+d+".")}return null})})}function s(e,n){return o(function(r,o,a,i,u){for(var s=arguments.length,c=Array(s>5?s-5:0),f=5;f2&&void 0!==arguments[2]&&arguments[2],r=e[t],o=ee[t],a=r?n===!0?function(){o.apply(this,arguments),r.apply(this,arguments)}:function(){r.apply(this,arguments),o.apply(this,arguments)}:o;e[t]=a}function b(e,t){if(null==e||null==t||"object"!==("undefined"==typeof e?"undefined":k(e))||"object"!==("undefined"==typeof t?"undefined":k(t)))return e!==t;var n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(var r=void 0,o=n.length-1;r=n[o];o--)if(t[r]!==e[r])return!0;return!1}function E(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return J||(J=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?p.apply(null,e)(E(t)):function(t){return E(e,t)};var r=e;if(r.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof r||r.prototype&&r.prototype.render||r.isReactClass||n.Component.isPrototypeOf(r))){var o,a;return E((a=o=function(e){function t(){return O(this,t),P(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return C(t,e),_(t,[{key:"render",value:function(){return r.call(this,this.props,this.context)}}]),t}(n.Component),o.displayName=r.displayName||r.name,o.contextTypes=r.contextTypes,o.propTypes=r.propTypes,o.defaultProps=r.defaultProps,a))}if(!r)throw new Error("Please pass a valid component to 'observer'");var i=r.prototype||r;return w(i),r.isMobXReactObserver=!0,r}function w(e){g(e,"componentWillMount",!0),["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach(function(t){g(e,t)}),e.shouldComponentUpdate||(e.shouldComponentUpdate=ee.shouldComponentUpdate)}var x=void 0,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,o){var u={key:e,arg:t,resolve:n,reject:o,next:null};i?i=i.next=u:(a=i=u,r(e,t))})}function r(n,a){try{var i=t[n](a),u=i.value;u instanceof e?Promise.resolve(u.value).then(function(e){r("next",e)},function(e){r("throw",e)}):o(i.done?"return":"normal",i.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":a.resolve({value:t,done:!0});break;case"throw":a.reject(t);break;default:a.resolve({value:t,done:!1})}a=a.next,a?r(a.key,a.arg):i=null}var a,i;this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),_=function(){function e(e,t){for(var n=0;n",a=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID,i=!1,u=!1;e.call(this,"props"),e.call(this,"state");var l=this.render.bind(this),s=null,c=!1,f=function(){return s=new t.Reaction(o+"#"+a+".render()",function(){if(!c&&(c=!0,"function"==typeof r.componentWillReact&&r.componentWillReact(),r.__$mobxIsUnmounted!==!0)){var e=!0;try{u=!0,i||n.Component.prototype.forceUpdate.call(r),e=!1}finally{u=!1,e&&s.dispose()}}}),s.reactComponent=r,d.$mobx=s,r.render=d,d()},d=function(){c=!1;var e=void 0,n=void 0;if(s.track(function(){Y&&(r.__$mobRenderStart=Date.now());try{n=t.extras.allowStateChanges(!1,l)}catch(t){e=t}Y&&(r.__$mobRenderEnd=Date.now())}),e)throw Z.emit(e),e;return n};this.render=f}},componentWillUnmount:function(){if(G!==!0&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,Y)){var e=h(this);e&&Q&&Q.delete(e),X.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){Y&&m(this)},componentDidUpdate:function(){Y&&m(this)},shouldComponentUpdate:function(e,t){return G&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||b(this.props,e)}},te=E(function(e){var t=e.children;return t()});te.propTypes={children:function(e,t,n,r,o){if("function"!=typeof e[t])return new Error("Invalid prop `"+o+"` of type `"+k(e[t])+"` supplied to `"+n+"`, expected `function`.")}};var ne,re,oe={children:!0,key:!0,ref:!0},ae=(re=ne=function(e){function t(){return O(this,t),P(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return C(t,e),_(t,[{key:"render",value:function(){return n.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={},t=this.context.mobxStores;if(t)for(var n in t)e[n]=t[n];for(var r in this.props)oe[r]||"suppressChangedStoreWarning"===r||(e[r]=this.props[r]);return{mobxStores:e}}},{key:"componentWillReceiveProps",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var t in e)oe[t]||this.props[t]===e[t]||console.warn("MobX Provider: Provided store '"+t+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t}(n.Component),ne.contextTypes={mobxStores:z},ne.childContextTypes={mobxStores:z.isRequired},re);if(!n.Component)throw new Error("mobx-react requires React to be available");if(!t.extras)throw new Error("mobx-react requires mobx to be available");"function"==typeof r.unstable_batchedUpdates?t.extras.setReactionScheduler(r.unstable_batchedUpdates):"function"==typeof x&&t.extras.setReactionScheduler(x);var ie=function(e){return Z.on(e)};if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":k(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var ue={spy:t.spy,extras:t.extras},le={renderReporter:X,componentByNodeRegistery:Q,trackComponents:y};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(le,ue)}e.propTypes=q,e.PropTypes=q,e.onError=ie,e.observer=E,e.Observer=te,e.renderReporter=X,e.componentByNodeRegistery=Q,e.trackComponents=y,e.useStaticRendering=v,e.Provider=ae,e.inject=p,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(t,"__esModule",{value:!0});var u,l,s,c,f,d,p,h,m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Attacks[t],"Attack",function(n){e.attacks.insert(n),e.built.push("attacks_"+t)})}},{key:"setupBattlegear",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Battlegear[t],"Battlegear",function(n){e.battlegear.insert(n),e.built.push("battlegear_"+t)})}},{key:"setupCreatures",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Creatures[t],"Creature",function(n){e.creatures.insert(n),e.built.push("creatures_"+t)})}},{key:"setupLocations",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Locations[t],"Location",function(n){e.locations.insert(n),e.built.push("locations_"+t)})}},{key:"setupMugic",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"portal";this.setup(this.api.urls.Mugic[t],"Mugic",function(n){e.mugic.insert(n),e.built.push("mugic_"+t)})}}]),e}(),h=i(p.prototype,"built",[g.observable],{enumerable:!0,initializer:function(){return[]}}),p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),i=Object.create(a.default);i.root={backgroundColor:"#F0F0F0",fontFamily:"helvetica neue, helvetica, sans-serif",fontWeight:"300",fontSize:"16px",letterSpacing:"0.025em",padding:"3vh 0 12vh 0",width:"500px",maxWidth:"calc(100vw - 40px)",position:"relative",left:"50vw",WebkitTransform:"translate(-50%, 0)",MozTransform:"translate(-50%, 0)",msTransform:"translate(-50%, 0)",OTransform:"translate(-50%, 0)",transform:"translate(-50%, 0)",WebkitTextSizeAdjust:"none",MozTextSizeAdjust:"none",msTextSizeAdjust:"none",textSizeAdjust:"none"},i.title={fontSize:"20px",marginBottom:"0.5vh"},i.repoLink={fontSize:"14px"},i.mapMenu={margin:"3vh 0"},i.creditLine={color:"#A0A0A0",fontSize:"14px",marginTop:"50px"},t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.createMemoryHistory=t.hashHistory=t.browserHistory=t.applyRouterMiddleware=t.formatPattern=t.useRouterHistory=t.match=t.routerShape=t.locationShape=t.RouterContext=t.createRoutes=t.Route=t.Redirect=t.IndexRoute=t.IndexRedirect=t.withRouter=t.IndexLink=t.Link=t.Router=void 0;var o=n(13);Object.defineProperty(t,"createRoutes",{enumerable:!0,get:function(){return o.createRoutes}});var a=n(33);Object.defineProperty(t,"locationShape",{enumerable:!0,get:function(){return a.locationShape}}),Object.defineProperty(t,"routerShape",{enumerable:!0,get:function(){return a.routerShape}});var i=n(18);Object.defineProperty(t,"formatPattern",{enumerable:!0,get:function(){return i.formatPattern}});var u=n(117),l=r(u),s=n(42),c=r(s),f=n(113),d=r(f),p=n(128),h=r(p),m=n(114),y=r(m),v=n(115),g=r(v),b=n(44),E=r(b),w=n(116),x=r(w),k=n(34),O=r(k),_=n(126),C=r(_),P=n(49),S=r(P),T=n(119),N=r(T),A=n(120),M=r(A),I=n(124),j=r(I),R=n(46),D=r(R);t.Router=l.default,t.Link=c.default,t.IndexLink=d.default,t.withRouter=h.default,t.IndexRedirect=y.default,t.IndexRoute=g.default,t.Redirect=E.default,t.Route=x.default,t.RouterContext=O.default,t.match=C.default,t.useRouterHistory=S.default,t.applyRouterMiddleware=N.default,t.browserHistory=M.default,t.hashHistory=j.default,t.createMemoryHistory=D.default},function(e,t,n){e.exports=n(100)()},function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,i,u){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,u],c=0;l=new Error(t.replace(/%s/g,function(){return s[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t){(function(e){"use strict";function n(e,t){function n(){this.constructor=e}Kt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function r(e){return e.interceptors&&e.interceptors.length>0}function o(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),Oe(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function a(e,t){var n=pt();try{var r=e.interceptors;if(r)for(var o=0,a=r.length;o0}function u(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),Oe(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function l(e,t){var n=pt(),r=e.changeListeners;if(r){r=r.slice();for(var o=0,a=r.length;o=this.length,value:t0,"actions should have valid names, got: '"+e+"'");var n=function(){return O(e,t,this,arguments)};return n.originalFn=t,n.isMobxAction=!0,n}function O(e,t,n,r){var o=_(e,t,n,r);try{return t.apply(n,r)}finally{C(o)}}function _(e,t,n,r){var o=s()&&!!e,a=0;if(o){a=Date.now();var i=r&&r.length||0,u=new Array(i);if(i>0)for(var l=0;l",o="function"==typeof e?e:t,a="function"==typeof e?t:n;return xe("function"==typeof o,x("m002")),xe(0===o.length,x("m003")),xe("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),O(r,o,a,void 0)}function $(e){return"function"==typeof e&&e.isMobxAction===!0}function F(e,t,n){var r=function(){return O(t,n,e,arguments)};r.isMobxAction=!0,Me(e,t,r)}function U(e,t){return e===t}function B(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||Le(e,t)}function H(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||U(e,t)}function V(e,t,n){function r(){a(u)}var o,a,i;"string"==typeof e?(o=e,a=t,i=n):(o=e.name||"Autorun@"+Ee(),a=e,i=t),xe("function"==typeof a,x("m004")),xe($(a)===!1,x("m005")),i&&(a=a.bind(i));var u=new zn(o,function(){this.track(r)});return u.schedule(),u.getDisposer()}function z(e,t,n,r){var o,a,i,u;"string"==typeof e?(o=e,a=t,i=n,u=r):(o="When@"+Ee(),a=e,i=t,u=n);var l=V(o,function(e){if(a.call(u)){e.dispose();var t=pt();i.call(u),ht(t)}});return l}function q(e,t,n,r){function o(){i(c)}var a,i,u,l;"string"==typeof e?(a=e,i=t,u=n,l=r):(a=e.name||"AutorunAsync@"+Ee(),i=e,u=t,l=n),xe($(i)===!1,x("m006")),void 0===u&&(u=1),l&&(i=i.bind(l));var s=!1,c=new zn(a,function(){s||(s=!0,setTimeout(function(){s=!1,c.isDisposed||c.track(o)},u))});return c.schedule(),c.getDisposer()}function W(e,t,n){function r(){if(!s.isDisposed){var n=!1;s.track(function(){var t=e(s);n=i||!l(a,t),a=t}),i&&o.fireImmediately&&t(a,s),i||n!==!0||t(a,s),i&&(i=!1)}}arguments.length>3&&we(x("m007")),ce(e)&&we(x("m008"));var o;o="object"==typeof n?n:{},o.name=o.name||e.name||t.name||"Reaction@"+Ee(),o.fireImmediately=n===!0||o.fireImmediately===!0,o.delay=o.delay||0,o.compareStructural=o.compareStructural||o.struct||!1,t=hn(o.name,o.context?t.bind(o.context):t),o.context&&(e=e.bind(o.context));var a,i=!0,u=!1,l=o.equals?o.equals:o.compareStructural||o.struct?mn.structural:mn.default,s=new zn(o.name,function(){i||o.delay<1?r():u||(u=!0,setTimeout(function(){u=!1,r()},o.delay))});return s.schedule(),s.getDisposer()}function K(e,t){if(ne(e)&&e.hasOwnProperty("$mobx"))return e.$mobx;xe(Object.isExtensible(e),x("m035")),Se(e)||(t=(e.constructor.name||"ObservableObject")+"@"+Ee()),t||(t="ObservableObject@"+Ee());var n=new gn(e,t);return Ie(e,"$mobx",n),n}function Y(e,t,n,r){if(e.values[t]&&!vn(e.values[t]))return xe("value"in n,"The property "+t+" in "+e.name+" is already observable, cannot redefine it as computed property"),void(e.target[t]=n.value);if("value"in n)if(ce(n.value)){var o=n.value;G(e,t,o.initialValue,o.enhancer)}else $(n.value)&&n.value.autoBind===!0?F(e.target,t,n.value.originalFn):vn(n.value)?Q(e,t,n.value):G(e,t,n.value,r);else J(e,t,n.get,n.set,mn.default,!0)}function G(e,t,n,o){if(Re(e.target,t),r(e)){var i=a(e,{object:e.target,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}var u=e.values[t]=new sn(n,o,e.name+"."+t,!1);n=u.value,Object.defineProperty(e.target,t,X(t)),te(e,e.target,t,n)}function J(e,t,n,r,o,a){a&&Re(e.target,t),e.values[t]=new yn(n,e.target,o,e.name+"."+t,r),a&&Object.defineProperty(e.target,t,Z(t))}function Q(e,t,n){var r=e.name+"."+t;n.name=r,n.scope||(n.scope=e.target),e.values[t]=n,Object.defineProperty(e.target,t,Z(t))}function X(e){return bn[e]||(bn[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){ee(this,e,t)}})}function Z(e){return En[e]||(En[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:function(t){return this.$mobx.values[e].set(t)}})}function ee(e,t,n){var o=e.$mobx,u=o.values[t];if(r(o)){var c=a(o,{type:"update",object:e,name:t,newValue:n});if(!c)return;n=c.newValue}if(n=u.prepareNewValue(n),n!==ln){var p=i(o),h=s(),c=p||h?{type:"update",object:e,oldValue:u.value,name:t,newValue:n}:null;h&&f(c),u.setNewValue(n),p&&l(o,c),h&&d()}}function te(e,t,n,r){var o=i(e),a=s(),u=o||a?{type:"add",object:t,name:n,newValue:r}:null;a&&f(u),o&&l(e,u),a&&d()}function ne(e){return!!Pe(e)&&(j(e),wn(e.$mobx))}function re(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(w(e)||An(e))throw new Error(x("m019"));if(ne(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return ne(e)||!!e.$mobx||Jt(e)||Kn(e)||vn(e)}function oe(e){return xe(!!e,":("),M(function(t,n,r,o,a){Re(t,n),xe(!a||!a.get,x("m022"));var i=K(t,void 0);G(i,n,r,e)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){ee(this,e,t)},!0,!1)}function ae(e){for(var t=[],n=1;n=2,x("m014")),xe("object"==typeof e,x("m015")),xe(!An(e),x("m016")),n.forEach(function(e){xe("object"==typeof e,x("m017")),xe(!re(e),x("m018"))});for(var r=K(e),o={},a=n.length-1;a>=0;a--){var i=n[a];for(var u in i)if(o[u]!==!0&&Ne(i,u)){if(o[u]=!0,e===i&&!je(e,u))continue;var l=Object.getOwnPropertyDescriptor(i,u);Y(r,u,l,t)}}return e}function le(e){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return xn.apply(null,arguments);if(xe(arguments.length<=1,x("m021")),xe(!ce(e),x("m020")),re(e))return e;var t=de(e,void 0,void 0);return t!==e?t:Sn.box(e)}function se(e){we("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function ce(e){return"object"==typeof e&&null!==e&&e.isMobxModifierDescriptor===!0}function fe(e,t){return xe(!ce(t),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function de(e,t,n){return ce(e)&&we("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),re(e)?e:Array.isArray(e)?Sn.array(e,n):Se(e)?Sn.object(e,n):Be(e)?Sn.map(e,n):e}function pe(e,t,n){return ce(e)&&we("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),void 0===e||null===e?e:ne(e)||w(e)||An(e)?e:Array.isArray(e)?Sn.shallowArray(e,n):Se(e)?Sn.shallowObject(e,n):Be(e)?Sn.shallowMap(e,n):we("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function he(e){return e}function me(e,t,n){if(Le(e,t))return t;if(re(e))return e;if(Array.isArray(e))return new on(e,me,n);if(Be(e))return new Nn(e,me,n);if(Se(e)){var r={};return K(r,n),ue(r,me,[e]),r}return e}function ye(e,t,n){return Le(e,t)?t:e}function ve(e,t){void 0===t&&(t=void 0),Ze();try{return e.apply(t)}finally{et()}}function ge(e){return ke("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),Sn.map(e)}function be(){return"undefined"!=typeof window?window:e}function Ee(){return++$n.mobxGuid}function we(e,t){throw xe(!1,e,t),"X"}function xe(e,t,n){if(!e)throw new Error("[mobx] Invariant failed: "+t+(n?" in '"+n+"'":""))}function ke(e){return In.indexOf(e)===-1&&(In.push(e),console.error("[mobx] Deprecated: "+e),!0)}function Oe(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function _e(e){var t=[];return e.forEach(function(e){t.indexOf(e)===-1&&t.push(e)}),t}function Ce(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=" - "),!e)return"";var r=e.slice(0,t);return""+r.join(n)+(e.length>t?" (... and "+(e.length-t)+"more)":"")}function Pe(e){return null!==e&&"object"==typeof e}function Se(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Te(){for(var e=arguments[0],t=1,n=arguments.length;t=0;o--)if(!Le(e[o],t[o]))return!1;return!0}if(r){if(e.size!==t.size)return!1;var a=!0; +return e.forEach(function(e,n){a=a&&Le(t.get(n),e)}),a}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(Ue(e)&&Ue(t))return e.size===t.size&&Le(Sn.shallowMap(e).entries(),Sn.shallowMap(t).entries());if(De(e).length!==De(t).length)return!1;for(var i in e){if(!(i in t))return!1;if(!Le(e[i],t[i]))return!1}return!0}return!1}function $e(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return Pe(e)&&e[n]===!0}}function Fe(e){return Array.isArray(e)||w(e)}function Ue(e){return Be(e)||An(e)}function Be(e){return void 0!==be().Map&&e instanceof be().Map}function He(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function Ve(e){return null===e?null:"object"==typeof e?""+e:e}function ze(){Un=!0,be().__mobxInstanceCount--}function qe(){ke("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),Fn=!0;var e=be(),t=$n;if(e.__mobservableTrackingStack||e.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(e.__mobxGlobal&&e.__mobxGlobal.version!==t.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");e.__mobxGlobal?$n=e.__mobxGlobal:e.__mobxGlobal=t}function We(){return $n}function Ke(){$n.resetId++;var e=new Ln;for(var t in e)Dn.indexOf(t)===-1&&($n[t]=e[t]);$n.allowStateChanges=!$n.strictMode}function Ye(e){return e.observers&&e.observers.length>0}function Ge(e){return e.observers}function Je(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Qe(e,t){if(1===e.observers.length)e.observers.length=0,Xe(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var a=r[t.__mapid]||0;a?r[o.__mapid]=a:delete r[o.__mapid],n[a]=o}delete r[t.__mapid]}}function Xe(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,$n.pendingUnobservations.push(e))}function Ze(){$n.inBatch++}function et(){if(0===--$n.inBatch){gt();for(var e=$n.pendingUnobservations,t=0;t0;$n.computationDepth>0&&t&&we(x("m031")+e.name),!$n.allowStateChanges&&t&&we(x($n.strictMode?"m030a":"m030b")+e.name)}function st(e,t,n){mt(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++$n.runId;var r=$n.trackingDerivation;$n.trackingDerivation=e;var o;try{o=t.call(n)}catch(e){o=new Vn(e)}return $n.trackingDerivation=r,ct(e),o}function ct(e){for(var n=e.observing,r=e.observing=e.newObserving,o=t.IDerivationState.UP_TO_DATE,a=0,i=e.unboundDepsCount,u=0;uo&&(o=l.dependenciesState)}for(r.length=a,e.newObserving=null,i=n.length;i--;){var l=n[i];0===l.diffValue&&Qe(l,e),l.diffValue=0}for(;a--;){var l=r[a];1===l.diffValue&&(l.diffValue=0,Je(l,e))}o!==t.IDerivationState.UP_TO_DATE&&(e.dependenciesState=o,e.onBecomeStale())}function ft(e){var n=e.observing;e.observing=[];for(var r=n.length;r--;)Qe(n[r],e);e.dependenciesState=t.IDerivationState.NOT_TRACKING}function dt(e){var t=pt(),n=e();return ht(t),n}function pt(){var e=$n.trackingDerivation;return $n.trackingDerivation=null,e}function ht(e){$n.trackingDerivation=e}function mt(e){if(e.dependenciesState!==t.IDerivationState.UP_TO_DATE){e.dependenciesState=t.IDerivationState.UP_TO_DATE;for(var n=e.observing,r=n.length;r--;)n[r].lowestObserverState=t.IDerivationState.UP_TO_DATE}}function yt(e){xe(this&&this.$mobx&&Kn(this.$mobx),"Invalid `this`"),xe(!this.$mobx.errorHandler,"Only one onErrorHandler can be registered"),this.$mobx.errorHandler=e}function vt(e){return $n.globalReactionErrorHandlers.push(e),function(){var t=$n.globalReactionErrorHandlers.indexOf(e);t>=0&&$n.globalReactionErrorHandlers.splice(t,1)}}function gt(){$n.inBatch>0||$n.isRunningReactions||Wn(bt)}function bt(){$n.isRunningReactions=!0;for(var e=$n.pendingReactions,t=0;e.length>0;){++t===qn&&(console.error("Reaction doesn't converge to a stable state after "+qn+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r0&&(t.dependencies=_e(e.observing).map(Vt)),t}function zt(e,t){return qt(Ct(e,t))}function qt(e){var t={name:e.name};return Ye(e)&&(t.observers=Ge(e).map(qt)),t}function Wt(e,t,n){var r;if(An(e)||w(e)||cn(e))r=Pt(e);else{if(!ne(e))return we("Expected observable map, object or array as first array");if("string"!=typeof t)return we("InterceptReads can only be used with a specific property, not with an object in general");r=Pt(e,t)}return void 0!==r.dehancer?we("An intercept reader was already established"):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})}Object.defineProperty(t,"__esModule",{value:!0});var Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Yt=function(){function e(e){void 0===e&&(e="Atom@"+Ee()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=t.IDerivationState.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){tt(this)},e.prototype.reportChanged=function(){Ze(),nt(this),et()},e.prototype.toString=function(){return this.name},e}(),Gt=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+Ee()),void 0===n&&(n=jn),void 0===r&&(r=jn);var o=e.call(this,t)||this;return o.name=t,o.onBecomeObservedHandler=n,o.onBecomeUnobservedHandler=r,o.isPendingUnobservation=!1,o.isBeingTracked=!1,o}return n(t,e),t.prototype.reportObserved=function(){return Ze(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),et(),!!$n.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(Yt),Jt=$e("Atom",Yt),Qt={spyReportEnd:!0},Xt="__$$iterating",Zt=1e4,en=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),tn=0,nn=function(){function e(){}return e}();v(nn,Array.prototype),Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(e){Object.defineProperty(nn.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})});var rn=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new Yt(e||"ObservableArray@"+Ee()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer?e.map(this.dehancer):e},e.prototype.intercept=function(e){return o(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),u(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r0&&e+t+1>tn&&E(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var o=this;lt(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:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=[]),r(this)){var u=a(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!u)return Mn;t=u.removedCount,n=u.added}n=n.map(function(e){return o.enhancer(e,void 0)});var l=n.length-t;this.updateArrayLength(i,l);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e",i=hn(a,n);Me(e,t,i)},function(e){return this[e]},function(){xe(!1,x("m001"))},!1,!0),pn=M(function(e,t,n){F(e,t,n)},function(e){return this[e]},function(){xe(!1,x("m001"))},!1,!1),hn=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?k(e.name||"",e):2===arguments.length&&"function"==typeof t?k(e,t):1===arguments.length&&"string"==typeof e?D(e):D(t).apply(null,arguments)};hn.bound=function(e,t,n){if("function"==typeof e){var r=k("",e);return r.autoBind=!0,r}return pn.apply(null,arguments)};var mn={identity:U,structural:B,default:H},yn=function(){function e(e,n,r,o,a){this.derivation=e,this.scope=n,this.equals=r,this.dependenciesState=t.IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=t.IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+Ee(),this.value=new Vn(null),this.isComputing=!1,this.isRunningSetter=!1,this.name=o||"ComputedValue@"+Ee(),a&&(this.setter=k(o+"-setter",a))}return e.prototype.onBecomeStale=function(){ot(this)},e.prototype.onBecomeUnobserved=function(){ft(this),this.value=void 0},e.prototype.get=function(){xe(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===$n.inBatch?(Ze(),it(this)&&(this.value=this.computeValue(!1)),et()):(tt(this),it(this)&&this.trackAndCompute()&&rt(this));var e=this.value;if(at(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(at(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){xe(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else xe(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){s()&&c({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.value=this.computeValue(!0);return at(e)||at(t)||!this.equals(e,t)},e.prototype.computeValue=function(e){this.isComputing=!0,$n.computationDepth++;var t;if(e)t=st(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new Vn(e)}return $n.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return V(function(){var a=n.get();if(!r||t){var i=pt();e({type:"update",object:n,newValue:a,oldValue:o}),ht(i)}r=!1,o=a})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return Ve(this.get())},e.prototype.whyRun=function(){var e=Boolean($n.trackingDerivation),n=_e(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),r=_e(Ge(this).map(function(e){return e.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===t.IDerivationState.NOT_TRACKING?x("m032"):" * This computation will re-run if any of the following observables changes:\n "+Ce(n)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+x("m038")+"\n\n * If the outcome of this computation changes, the following observers will be re-run:\n "+Ce(r)+"\n")},e}();yn.prototype[He()]=yn.prototype.valueOf;var vn=$e("ComputedValue",yn),gn=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return xe(t!==!0,"`observe` doesn't support the fire immediately property for observable objects."),u(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}(),bn={},En={},wn=$e("ObservableObjectAdministration",gn),xn=oe(de),kn=oe(pe),On=oe(he),_n=oe(me),Cn=oe(ye),Pn=function(){function e(){}return e.prototype.box=function(e,t){return arguments.length>2&&se("box"),new sn(e,de,t)},e.prototype.shallowBox=function(e,t){return arguments.length>2&&se("shallowBox"),new sn(e,he,t)},e.prototype.array=function(e,t){return arguments.length>2&&se("array"),new on(e,de,t)},e.prototype.shallowArray=function(e,t){return arguments.length>2&&se("shallowArray"),new on(e,he,t)},e.prototype.map=function(e,t){return arguments.length>2&&se("map"),new Nn(e,de,t)},e.prototype.shallowMap=function(e,t){return arguments.length>2&&se("shallowMap"),new Nn(e,he,t)},e.prototype.object=function(e,t){arguments.length>2&&se("object");var n={};return K(n,t),ae(n,e),n},e.prototype.shallowObject=function(e,t){arguments.length>2&&se("shallowObject");var n={};return K(n,t),ie(n,e),n},e.prototype.ref=function(){return arguments.length<2?fe(he,arguments[0]):On.apply(null,arguments)},e.prototype.shallow=function(){return arguments.length<2?fe(pe,arguments[0]):kn.apply(null,arguments)},e.prototype.deep=function(){return arguments.length<2?fe(de,arguments[0]):xn.apply(null,arguments)},e.prototype.struct=function(){return arguments.length<2?fe(me,arguments[0]):_n.apply(null,arguments)},e}(),Sn=le;Object.getOwnPropertyNames(Pn.prototype).filter(function(e){return"constructor"!==e}).forEach(function(e){return Sn[e]=Pn.prototype[e]}),Sn.deep.struct=Sn.struct,Sn.ref.struct=function(){return arguments.length<2?fe(ye,arguments[0]):Cn.apply(null,arguments)};var Tn={},Nn=function(){function e(e,t,n){void 0===t&&(t=de), +void 0===n&&(n="ObservableMap@"+Ee()),this.enhancer=t,this.name=n,this.$mobx=Tn,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new on(void 0,he,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return"undefined"!=typeof this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(r(this)){var o=a(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!o)return this;t=o.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,r(this)){var n=a(this,{type:"delete",object:this,name:e});if(!n)return!1}if(this._has(e)){var o=s(),u=i(this),n=u||o?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return o&&f(n),ve(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1);var n=t._data[e];n.setNewValue(void 0),t._data[e]=void 0}),u&&l(this,n),o&&d(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new sn(t,he,this.name+"."+e+"?",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if(t=n.prepareNewValue(t),t!==ln){var r=s(),o=i(this),a=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&f(a),n.setNewValue(t),o&&l(this,a),r&&d()}},e.prototype._addValue=function(e,t){var n=this;ve(function(){var r=n._data[e]=new sn(t,n.enhancer,n.name+"."+e,!1);t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var r=s(),o=i(this),a=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&f(a),o&&l(this,a),r&&d()},e.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return m(this._keys.slice())},e.prototype.values=function(){return m(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return m(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(r){return e.call(t,n.get(r),r,n)})},e.prototype.merge=function(e){var t=this;return An(e)&&(e=e.toJS()),ve(function(){Se(e)?Object.keys(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)}):Be(e)?e.forEach(function(e,n){return t.set(n,e)}):null!==e&&void 0!==e&&we("Cannot initialize map from "+e)}),this},e.prototype.clear=function(){var e=this;ve(function(){dt(function(){e.keys().forEach(e.delete,e)})})},e.prototype.replace=function(e){var t=this;return ve(function(){t.clear(),t.merge(e)}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return xe(t!==!0,x("m033")),u(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}();y(Nn.prototype,function(){return this.entries()});var An=$e("ObservableMap",Nn),Mn=[];Object.freeze(Mn);var In=[],jn=function(){},Rn=Object.prototype.hasOwnProperty,Dn=["mobxGuid","resetId","spyListeners","strictMode","runId"],Ln=function(){function e(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return e}(),$n=new Ln,Fn=!1,Un=!1,Bn=!1,Hn=be();Hn.__mobxInstanceCount?(Hn.__mobxInstanceCount++,setTimeout(function(){Fn||Un||Bn||(Bn=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))})):Hn.__mobxInstanceCount=1,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"}(t.IDerivationState||(t.IDerivationState={}));var Vn=function(){function e(e){this.cause=e}return e}(),zn=function(){function e(e,n){void 0===e&&(e="Reaction@"+Ee()),this.name=e,this.onInvalidate=n,this.observing=[],this.newObserving=[],this.dependenciesState=t.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+Ee(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,$n.pendingReactions.push(this),gt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(Ze(),this._isScheduled=!1,it(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&s()&&c({object:this,type:"scheduled-reaction"})),et())},e.prototype.track=function(e){Ze();var t,n=s();n&&(t=Date.now(),f({object:this,type:"reaction",fn:e})),this._isRunning=!0;var r=st(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ft(this),at(r)&&this.reportExceptionInDerivation(r.cause),n&&d({time:Date.now()-t}),et()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)return void this.errorHandler(e,this);var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,r=x("m037");console.error(n||r,e),s()&&c({type:"error",message:n,error:e,object:this}),$n.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Ze(),ft(this),et()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=yt,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=_e(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+Ce(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+x("m038")+"\n"},e}(),qn=100,Wn=function(e){return e()},Kn=$e("Reaction",zn),Yn=_t(mn.default),Gn=_t(mn.structural),Jn=function(e,t,n){if("string"==typeof t)return Yn.apply(null,arguments);xe("function"==typeof e,x("m011")),xe(arguments.length<3,x("m012"));var r="object"==typeof t?t:{};r.setter="function"==typeof t?t:r.setter;var o=r.equals?r.equals:r.compareStructural||r.struct?mn.structural:mn.default;return new yn(e,r.context,o,r.name||e.name||"",r.setter)};Jn.struct=Gn,Jn.equals=_t;var Qn={allowStateChanges:T,deepEqual:Le,getAtom:Ct,getDebugName:St,getDependencyTree:Ht,getAdministration:Pt,getGlobalState:We,getObserverTree:zt,interceptReads:Wt,isComputingDerivation:ut,isSpyEnabled:s,onReactionError:vt,reserveArrayBuffer:E,resetGlobalState:Ke,isolateGlobalState:ze,shareGlobalState:qe,spyReport:c,spyReportEnd:d,spyReportStart:f,setReactionScheduler:Et},Xn={Reaction:zn,untracked:dt,Atom:Gt,BaseAtom:Yt,useStrict:P,isStrictModeEnabled:S,spy:p,comparer:mn,asReference:wt,asFlat:kt,asStructure:xt,asMap:Ot,isModifierDescriptor:ce,isObservableObject:ne,isBoxedObservable:cn,isObservableArray:w,ObservableMap:Nn,isObservableMap:An,map:ge,transaction:ve,observable:Sn,computed:Jn,isObservable:re,isComputed:Tt,extendObservable:ae,extendShallowObservable:ie,observe:Nt,intercept:It,autorun:V,autorunAsync:q,when:z,reaction:W,action:hn,isAction:$,runInAction:L,expr:Dt,toJS:Lt,createTransformer:$t,whyRun:Bt,isArrayLike:Fe,extras:Qn},Zn=!1,er=function(e){var t=Xn[e];Object.defineProperty(Xn,e,{get:function(){return Zn||(Zn=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),t}})};for(var tr in Xn)er(tr);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:Qn}),t.extras=Qn,t.default=Xn,t.Reaction=zn,t.untracked=dt,t.Atom=Gt,t.BaseAtom=Yt,t.useStrict=P,t.isStrictModeEnabled=S,t.spy=p,t.comparer=mn,t.asReference=wt,t.asFlat=kt,t.asStructure=xt,t.asMap=Ot,t.isModifierDescriptor=ce,t.isObservableObject=ne,t.isBoxedObservable=cn,t.isObservableArray=w,t.ObservableMap=Nn,t.isObservableMap=An,t.map=ge,t.transaction=ve,t.observable=Sn,t.IObservableFactories=Pn,t.computed=Jn,t.isObservable=re,t.isComputed=Tt,t.extendObservable=ae,t.extendShallowObservable=ie,t.observe=Nt,t.intercept=It,t.autorun=V,t.autorunAsync=q,t.when=z,t.reaction=W,t.action=hn,t.isAction=$,t.runInAction=L,t.expr=Dt,t.toJS=Lt,t.createTransformer=$t,t.whyRun=Bt,t.isArrayLike=Fe}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.location;return i.default.createElement("p",{style:c.default.p},"Page not found - the path, ",c.default.code(t.pathname),", did not match any React Router routes.")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),u=n(7),l=r(u),s=n(39),c=r(s),f={location:l.default.object.isRequired};o.propTypes=f,t.default=o},function(e,t,n){"use strict";var r=n(1),o=n(84);if("undefined"==typeof r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.location,i.default.createElement("p",{style:c.default.p},"This page is currently under construction")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),u=n(7),l=r(u),s=n(39),c=r(s),f={location:l.default.object.isRequired};o.propTypes=f,t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return null==e||d.default.isValidElement(e)}function a(e){return o(e)||Array.isArray(e)&&e.every(o)}function i(e,t){return c({},e,t)}function u(e){var t=e.type,n=i(t.defaultProps,e.props);if(n.children){var r=l(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function l(e,t){var n=[];return d.default.Children.forEach(e,function(e){if(d.default.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(u(e))}),n}function s(e){return a(e)?e=l(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t0?void 0:(0,d.default)(!1),null!=f&&(a+=encodeURI(f));else if("("===s)l[o]="",o+=1;else if(")"===s){var m=l.pop();o-=1,o?l[o-1]+=m:a+=m}else if("\\("===s)a+="(";else if("\\)"===s)a+=")";else if(":"===s.charAt(0))if(c=s.substring(1),f=t[c],null!=f||o>0?void 0:(0,d.default)(!1),null==f){if(o){l[o-1]="";for(var y=r.indexOf(s),v=r.slice(y,r.length),g=-1,b=0;b0?void 0:(0,d.default)(!1),p=y+g-1}}else o?l[o-1]+=encodeURIComponent(f):a+=encodeURIComponent(f);else o?l[o-1]+=s:a+=s;return o<=0?void 0:(0,d.default)(!1),a.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=u,t.getParamNames=l,t.getParams=s,t.formatPattern=c;var f=n(8),d=r(f),p=Object.create(null)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(t.indexOf("deprecated")!==-1){if(l[t])return;l[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.POP,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="string"==typeof e?(0,s.parsePath)(e):e,o=r.pathname||"/",a=r.search||"",i=r.hash||"",u=r.state;return{pathname:o,search:a,hash:i,state:u,action:t,key:n}},function(e){return"[object Date]"===Object.prototype.toString.call(e)}),d=t.statesAreEqual=function e(t,n){if(t===n)return!0;var r="undefined"==typeof t?"undefined":o(t),a="undefined"==typeof n?"undefined":o(n);if(r!==a)return!1;if("function"===r?(0,u.default)(!1):void 0,"object"===r){if(f(t)&&f(n)?(0,u.default)(!1):void 0,!Array.isArray(t)){var i=Object.keys(t),l=Object.keys(n);return i.length===l.length&&i.every(function(r){return e(t[r],n[r])})}return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&d(e.state,t.state)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return p.default.createElement("span",null,p.default.createElement("img",{className:e.size||"icon16",style:{verticalAlign:"middle"},src:("/src/img/icons/set/"+e.set+"/"+e.rarity+".png").toLowerCase()}),v.default.sets[e.set]," | ",e.rarity)}function a(e){var t="";return e.data.unique&&(t+="Unique, "),e.data.loyal&&(t+="Loyal","M'arrillian"==e.data.tribe&&(t+=" - M'arrillian or Minions"),"1"!=e.data.loyal&&(t+=" - "+e.data.loyal)),e.data.legendary&&(t+="Legendary"),t=t.replace(/,\s+$/,""),p.default.createElement("span",{style:{fontWeight:"Bold"}},t,t&&p.default.createElement("br",null))}function i(e){var t=e.name.split(",");return t.length>1?p.default.createElement("span",null,p.default.createElement("span",{className:"bigger"},t[0]),p.default.createElement("br",null),"  ",p.default.createElement("span",{style:{fontSize:"13px",paddingBottom:"4px",display:"inline-block"}},t[1])):p.default.createElement("span",null,p.default.createElement("span",{className:"bigger"},t[0]))}function u(e){return e.value?p.default.createElement("img",{className:e.size||"icon20",src:("/src/img/icons/elements/"+e.element+".png").toLowerCase()}):p.default.createElement("img",{className:e.size||"icon20",src:("/src/img/icons/elements/"+e.element+"-inactive.png").toLowerCase()})}function l(e){return p.default.createElement("img",{className:e.size||"icon20",src:("/src/img/icons/mugic/"+(e.tribe||"generic")+".png").toLowerCase(),alt:"MC"})}function s(e){return p.default.createElement("img",{className:e.size||"icon16",src:("/src/img/icons/disciplines/"+e.discipline+".png").toLowerCase()})}function c(e){return p.default.createElement("img",{className:e.size||"icon16",src:("/src/img/icons/tribes/"+e.tribe+".png").toLowerCase()})}function f(e){var t={regex:/{{mc}}/i,fn:function(t,n){return p.default.createElement(l,{key:t,tribe:e.tribe,size:"icon14"})}},n={regex:/(fire)|(air)|(earth)|(water)/i,fn:function(e,t){return p.default.createElement("span",{key:e},p.default.createElement(u,{element:t[0],value:"true",size:"icon14"}),t[0])}},r={regex:/(courage)|(power)|(wisdom)|(speed)/i,fn:function(e,t){return p.default.createElement("span",{key:e},p.default.createElement(s,{discipline:t[0],size:"icon14"}),t[0])}},o=[t,n,r];return p.default.createElement("div",{className:e.type||"ability"},(0,m.default)(o)(e.ability))}Object.defineProperty(t,"__esModule",{value:!0}),t.Rarity=o,t.Unique=a,t.Name=i,t.Element=u,t.Mugic=l,t.Discipline=s,t.Tribe=c,t.Ability=f;var d=n(1),p=r(d),h=(n(9),n(3),n(112)),m=r(h),y=n(4),v=r(y)},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,u,l=n(e),s=1;s should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var o=n(7),a=(t.history=(0,o.shape)({listen:o.func.isRequired,push:o.func.isRequired,replace:o.func.isRequired,go:o.func.isRequired,goBack:o.func.isRequired,goForward:o.func.isRequired}),t.component=(0,o.oneOfType)([o.func,o.string])),i=(t.components=(0,o.oneOfType)([a,o.object]),t.route=(0,o.oneOfType)([o.object,o.element]));t.routes=(0,o.oneOfType)([i,(0,o.arrayOf)(i)])},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,a,i,u,l){if(o(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,u,l],f=0;s=new Error(t.replace(/%s/g,function(){return c[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(e){};e.exports=r},function(e,t){"use strict";t.__esModule=!0,t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(e,t){"use strict";t.__esModule=!0,t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&window.history&&"pushState"in window.history},t.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},t.supportsPopstateOnHashchange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),i=Object.create(a.default);i.pageLinkContainer={margin:"1vh 0"},t.default=i},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){return m===Number.MAX_SAFE_INTEGER&&(m=0),m++,void 0===h[e][m]?m:r(e)}function o(e,t){var n=r(e);return h[e][n]=p[e].push({id:n,callback:t})-1,n}function a(e,t){"undefined"!==h[e][t]&&(p[e][h[e][t]].callback=y,delete h[e][t])}function i(e,t){e.forEach(function(e){d[e]=t})}function u(e){d[e.type](e)}function l(e){if(0!==p[e.type].length){e.persist=y;var t=[],n={};p[e.type].forEach(function(r){"reNotifyOfNext"===r.callback(e)&&(n[r.id]=t.push(r)-1)}),p[e.type]=t,h[e.type]=n}}function s(e){u(e),l(e)}function c(e,t,n,r){p[t]=[],h[t]={},e.addEventListener(t,n,f.passiveEventSupport?{capture:r,passive:"click"!==t}:r)}Object.defineProperty(t,"__esModule",{value:!0}),t.notifyOfNext=o,t.cancelNotifyOfNext=a,t.notifyOfAll=i;var f=n(16),d={},p={},h={},m=0,y=function(){};if(f.deviceHasTouch&&(c(window,"click",u,!0),Object.keys(f.touchEvents).forEach(function(e){c(document,e,"touchstart"===e?s:u,!0)})),f.deviceHasMouse){Object.keys(f.mouseEvents).forEach(function(e){c(document,e,"mouseenter"===e?s:u,!("mouseenter"===e||"mouseleave"===e))}),c(document,"dragstart",l,!0),f.passiveEventSupport&&c(document,"scroll",l,!0),p.mutation=[],h.mutation={};var v=(0,f.dummyEvent)("mutation"),g=new MutationObserver(l.bind(null,v));g.observe(document,{childList:!0,attributes:!0,subtree:!0,characterData:!0})}["focus","blur"].forEach(function(e){c(window,e,l,!1)}),c(document,"keydown",u,!0)},function(e,t){"use strict";function n(e,t,n){function r(){return i=!0,u?void(s=[].concat(Array.prototype.slice.call(arguments))):void n.apply(this,arguments)}function o(){if(!i&&(l=!0,!u)){for(u=!0;!i&&a=e&&l&&(i=!0,n()))}}var a=0,i=!1,u=!1,l=!1,s=void 0;o()}function r(e,t,n){function r(e,t,r){i||(t?(i=!0,n(t)):(a[e]=r,i=++u===o,i&&n(null,a)))}var o=e.length,a=[];if(0===o)return n(null,a);var i=!1,u=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return"@@contextSubscriber/"+e}function a(e){var t,n,r=o(e),a=r+"/listeners",i=r+"/eventIndex",u=r+"/subscribe";return n={childContextTypes:(t={},t[r]=s.isRequired,t),getChildContext:function(){var e;return e={},e[r]={eventIndex:this[i],subscribe:this[u]},e},componentWillMount:function(){this[a]=[],this[i]=0},componentWillReceiveProps:function(){this[i]++},componentDidUpdate:function(){var e=this;this[a].forEach(function(t){return t(e[i])})}},n[u]=function(e){var t=this;return this[a].push(e),function(){t[a]=t[a].filter(function(t){return t!==e})}},n}function i(e){var t,n,r=o(e),a=r+"/lastRenderedEventIndex",i=r+"/handleContextUpdate",u=r+"/unsubscribe";return n={contextTypes:(t={},t[r]=s,t),getInitialState:function(){var e;return this.context[r]?(e={},e[a]=this.context[r].eventIndex,e):{}},componentDidMount:function(){this.context[r]&&(this[u]=this.context[r].subscribe(this[i]))},componentWillReceiveProps:function(){var e;this.context[r]&&this.setState((e={},e[a]=this.context[r].eventIndex,e))},componentWillUnmount:function(){this[u]&&(this[u](),this[u]=null)}},n[i]=function(e){if(e!==this.state[a]){var t;this.setState((t={},t[a]=e,t))}},n}t.__esModule=!0,t.ContextProvider=a,t.ContextSubscriber=i;var u=n(7),l=r(u),s=l.default.shape({subscribe:l.default.func.isRequired,eventIndex:l.default.number.isRequired})},function(e,t,n){"use strict";t.__esModule=!0,t.locationShape=t.routerShape=void 0;var r=n(7);t.routerShape=(0,r.shape)({push:r.func.isRequired,replace:r.func.isRequired,go:r.func.isRequired,goBack:r.func.isRequired,goForward:r.func.isRequired,setRouteLeaveHook:r.func.isRequired,isActive:r.func.isRequired}),t.locationShape=(0,r.shape)({pathname:r.string.isRequired,search:r.string.isRequired,state:r.object,action:r.string.isRequired,key:r.string})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,n=e.getUserConfirmation,r=e.pushLocation,i=e.replaceLocation,c=e.go,f=e.keyLength,d=void 0,p=void 0,h=[],m=[],y=[],v=function(){return p&&p.action===l.POP?y.indexOf(p.key):d?y.indexOf(d.key):-1},g=function(e){var t=v();d=e,d.action===l.PUSH?y=[].concat(y.slice(0,t+1),[d.key]):d.action===l.REPLACE&&(y[t]=d.key),m.forEach(function(e){return e(d)})},b=function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},E=function(e){return m.push(e),function(){return m=m.filter(function(t){return t!==e})}},w=function(e,t){(0,o.loopAsync)(h.length,function(t,n,r){(0,u.default)(h[t],e,function(e){return null!=e?r(e):n()})},function(e){n&&"string"==typeof e?n(e,function(e){return t(e!==!1)}):t(e!==!1)})},x=function(e){d&&(0,s.locationsAreEqual)(d,e)||p&&(0,s.locationsAreEqual)(p,e)||(p=e,w(e,function(t){if(p===e)if(p=null,t){if(e.action===l.PUSH){var n=(0,a.createPath)(d),o=(0,a.createPath)(e);o===n&&(0,s.statesAreEqual)(d.state,e.state)&&(e.action=l.REPLACE)}e.action===l.POP?g(e):e.action===l.PUSH?r(e)!==!1&&g(e):e.action===l.REPLACE&&i(e)!==!1&&g(e)}else if(d&&e.action===l.POP){var u=y.indexOf(d.key),f=y.indexOf(e.key);u!==-1&&f!==-1&&c(u-f)}}))},k=function(e){return x(T(e,l.PUSH))},O=function(e){return x(T(e,l.REPLACE))},_=function(){return c(-1)},C=function(){return c(1)},P=function(){return Math.random().toString(36).substr(2,f||6)},S=function(e){return(0,a.createPath)(e)},T=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P();return(0,s.createLocation)(e,t,n)};return{getCurrentLocation:t,listenBefore:b,listen:E,transitionTo:x,push:k,replace:O,go:c,goBack:_,goForward:C,createKey:P,createPath:a.createPath,createHref:S,createLocation:T}};t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(15),a=(r(o),function(e,t,n){var r=e(t,n);e.length<2&&n(r)});t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),i=Object.create(a.default);t.default=i},function(e,t,n){var r,o,a;(function(i){!function(n,i){o=[],r=i,a="function"==typeof r?r.apply(t,o):r,!(void 0!==a&&(e.exports=a))}(this,function(){return function(){"use strict";function e(e,t){var n,r,o,a;if(e===t)return!0;if(!e||!t||e===!0||t===!0||e!==e||t!==t){switch(e){case void 0:o=1;break;case null:o=1;break;case!1:o=3;break;case!0:o=4;break;case"":o=5;break;default:o=e===e?9:0}switch(t){case void 0:a=1;break;case null:a=1;break;case!1:a=3;break;case!0:a=4;break;case"":a=5;break;default:a=t===t?9:0}if(9!==o||9!==a)return o===a}return n=Number(e),r=Number(t),n===n||r===r?n===r:(n=e.toString(),r=t.toString(),n==r)}function t(e,t,n){var r,o,a,i;if(!e||!t||e===!0||t===!0||e!==e||t!==t){switch(e){case void 0:a=1;break;case null:a=1;break;case!1:a=3;break;case!0:a=4;break;case"":a=5;break;default:a=e===e?9:0}switch(t){case void 0:i=1;break;case null:i=1;break;case!1:i=3;break;case!0:i=4;break;case"":i=5;break;default:i=t===t?9:0}if(9!==a||9!==i)return a===i?n:ao)&&n:r===r&&o!==o||(o!==o||r===r)&&(et)&&(e==t?n:(r=e.toString(),o=t.toString(),ri}return r=Number(e),o=Number(t),r===r&&o===o?r>o||!(rt||!(eo||r==o&&n)))}function o(n,o,a){return e(n,o)?0:t(n,o,!1)?a?1:-1:r(n,o,!1)?a?-1:1:0}function a(e,t,n){for(var r,a,i,u,l,s=0,c=0,f=e.length;c=t.length)l=n(s,r);else if(Array.isArray(s))for(var c=0,f=s.length;c=0||"$loki"==i||"meta"==i)r[i]=t[i];else{var u=a(e[i],t[i]);"undefined"!=typeof u&&u!={}&&(r[i]=u)}}return 0===Object.keys(r).length?void 0:r}return e===t?void 0:t}function i(){h.changes=[]}function u(e){var t,n;if(e)if(Array.isArray(e))for(t=e.length,n=0;n0;)o=o[r.shift()];return o}function S(e,t,n){for(var r,o,a=0,i=e.length;a>1,r=n.apply(null,[t,e[o]]),0===r)return{found:!0,index:o};r<0?i=o:a=o+1}return{found:!1,index:i}}function T(e){return function(t,n){return S(t,n,e)}}function N(){}function A(e){this.field=e,this.keyMap={},this.lokiMap={}}function M(e){this.index={},this.field=e}function I(e){this.field=e}var j=Object.prototype.hasOwnProperty,R={copyProperties:function(e,t){var n;for(n in e)t[n]=e[n]},resolveTransformObject:function(e,t,n){var r,o;if("number"!=typeof n&&(n=0),++n>=10)return e;for(r in e)"string"==typeof e[r]&&0===e[r].indexOf("[%lktxp]")?(o=e[r].substring(8),t.hasOwnProperty(o)&&(e[r]=t[o])):"object"==typeof e[r]&&(e[r]=R.resolveTransformObject(e[r],t,n));return e},resolveTransformParams:function(e,t){var n,r,o=[];if("undefined"==typeof t)return e;for(n=0;n=0)return this.serializeCollection({delimited:e.delimited,delimiter:e.delimiter,collectionIndex:e.partition});for(a=new p(this.filename),a.loadJSONObject(this),t=0;to&&(c=!0):(i=JSON.parse(u[s]),r.collections[l].data.push(i)),u[s++]=null;return r},p.prototype.deserializeCollection=function(e,t){var n,r,o=[];for(t=t||{},t.hasOwnProperty("partitioned")||(t.partitioned=!1),t.hasOwnProperty("delimited")||(t.delimited=!0),t.hasOwnProperty("delimiter")||(t.delimiter=this.options.destructureDelimiter),t.delimited?(o=e.split(t.delimiter),o.pop()):o=e,r=o.length,n=0;n=a&&(s=!0)),o>=this.options.pageSize&&(c=!0),c&&!s||(l+=this.options.delimiter,o+=i),s||c)return void this.adapter.saveDatabase(r,l,f)},y.prototype.loadDatabase=function(e,t){var n=this;this.fs.stat(e,function(r,o){!r&&o.isFile()?n.fs.readFile(e,{encoding:"utf8"},function(e,n){t(e?new Error(e):n)}):t(null)})},y.prototype.saveDatabase=function(e,t,n){var r=this,o=e+"~";this.fs.writeFile(o,t,function(t){t?n(new Error(t)):r.fs.rename(o,e,n)})},y.prototype.deleteDatabase=function(e,t){this.fs.unlink(e,function(e){e?t(new Error(e)):t()})},v.prototype.loadDatabase=function(e,t){t(f()?localStorage.getItem(e):new Error("localStorage is not available"))},v.prototype.saveDatabase=function(e,t,n){f()?(localStorage.setItem(e,t),n(null)):n(new Error("localStorage is not available"))},v.prototype.deleteDatabase=function(e,t){f()?(localStorage.removeItem(e),t(null)):t(new Error("localStorage is not available"))},p.prototype.throttledSaveDrain=function(e,t){var n=this,r=(new Date).getTime();if(this.throttledSaves||e(!0),t=t||{},t.hasOwnProperty("recursiveWait")||(t.recursiveWait=!0),t.hasOwnProperty("recursiveWaitLimit")||(t.recursiveWaitLimit=!1),t.hasOwnProperty("recursiveWaitLimitDuration")||(t.recursiveWaitLimitDuration=2e3),t.hasOwnProperty("started")||(t.started=(new Date).getTime()),this.throttledSaves&&this.throttledSavePending){if(!t.recursiveWait)return void this.throttledCallbacks.push(e);this.throttledCallbacks.push(function(){return n.throttledSavePending?t.recursiveWaitLimit&&r-t.started>t.recursiveWaitLimitDuration?void e(!1):void n.throttledSaveDrain(e,t):void e(!0)})}else e(!0)},p.prototype.loadDatabaseInternal=function(e,t){var n=t||function(e,t){if(e)throw e},r=this;null!==this.persistenceAdapter?this.persistenceAdapter.loadDatabase(this.filename,function(t){ +if("string"==typeof t){var o=!1;try{r.loadJSON(t,e||{}),o=!0}catch(e){n(e)}o&&(n(null),r.emit("loaded","database "+r.filename+" loaded"))}else{if(!t)return n(null),void r.emit("loaded","empty database "+r.filename+" loaded");if(t instanceof Error)return void n(t);if("object"==typeof t)return r.loadJSONObject(t,e||{}),n(null),void r.emit("loaded","database "+r.filename+" loaded");n("unexpected adapter response : "+t)}}):n(new Error("persistenceAdapter not configured"))},p.prototype.loadDatabase=function(e,t){var n=this;return this.throttledSaves?void this.throttledSaveDrain(function(r){return r?(n.throttledSavePending=!0,void n.loadDatabaseInternal(e,function(e){0===n.throttledCallbacks.length?n.throttledSavePending=!1:n.saveDatabase(),"function"==typeof t&&t(e)})):void("function"==typeof t&&t(new Error("Unable to pause save throttling long enough to read database")))},e):void this.loadDatabaseInternal(e,t)},p.prototype.saveDatabaseInternal=function(e){var t=e||function(e){if(e)throw e},n=this;null!==this.persistenceAdapter?"reference"===this.persistenceAdapter.mode&&"function"==typeof this.persistenceAdapter.exportDatabase?this.persistenceAdapter.exportDatabase(this.filename,this.copy({removeNonSerializable:!0}),function(e){n.autosaveClearFlags(),t(e)}):this.persistenceAdapter.saveDatabase(this.filename,n.serialize(),function(e){n.autosaveClearFlags(),t(e)}):t(new Error("persistenceAdapter not configured"))},p.prototype.saveDatabase=function(e){if(!this.throttledSaves)return void this.saveDatabaseInternal(e);if(this.throttledSavePending)return void this.throttledCallbacks.push(e);var t=this.throttledCallbacks;this.throttledCallbacks=[],t.unshift(e),this.throttledSavePending=!0;var n=this;this.saveDatabaseInternal(function(e){n.throttledSavePending=!1,t.forEach(function(t){"function"==typeof t&&setTimeout(function(){t(e)},1)}),n.throttledCallbacks.length>0&&n.saveDatabase()})},p.prototype.save=p.prototype.saveDatabase,p.prototype.deleteDatabase=function(e,t){var n=t||function(e,t){if(e)throw e};"function"!=typeof e||t||(n=e),null!==this.persistenceAdapter?this.persistenceAdapter.deleteDatabase(this.filename,function(e){n(e)}):n(new Error("persistenceAdapter not configured"))},p.prototype.autosaveDirty=function(){for(var e=0;e0&&(this.filteredrows=[]),this.filterInitialized=!1,this},g.prototype.toJSON=function(){var e=this.copy();return e.collection=null,e},g.prototype.limit=function(e){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var t=new g(this.collection);return t.filteredrows=this.filteredrows.slice(0,e),t.filterInitialized=!0,t},g.prototype.offset=function(e){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var t=new g(this.collection);return t.filteredrows=this.filteredrows.slice(e),t.filterInitialized=!0,t},g.prototype.copy=function(){var e=new g(this.collection);return this.filteredrows.length>0&&(e.filteredrows=this.filteredrows.slice()),e.filterInitialized=this.filterInitialized,e},g.prototype.branch=g.prototype.copy,g.prototype.transform=function(e,t){var n,r,o=this;if("string"==typeof e&&this.collection.transforms.hasOwnProperty(e)&&(e=this.collection.transforms[e]),"object"!=typeof e||!Array.isArray(e))throw new Error("Invalid transform");for("undefined"!=typeof t&&(e=R.resolveTransformParams(e,t)),n=0;n1)return this.find({$and:p},t)}if(!r||"getAll"===c)return t&&(this.filteredrows=this.collection.data.length>0?[0]:[],this.filterInitialized=!0),this;if("$and"===r||"$or"===r)return this[r](o),t&&this.filteredrows.length>1&&(this.filteredrows=this.filteredrows.slice(0,1)),this;if(null===o||"object"!=typeof o||o instanceof Date)i="$eq",l=o;else{if("object"!=typeof o)throw new Error("Do not know what you want to do.");for(s in o)if(j.call(o,s)){i=s,l=o[s];break}}"$regex"===i&&(Array.isArray(l)?l=new RegExp(l[0],l[1]):l instanceof RegExp||(l=new RegExp(l)));var m=r.indexOf(".")!==-1,y=!m&&!this.filterInitialized;y&&this.collection.binaryIndices[r]&&L[i]&&(this.collection.adaptiveBinaryIndices!==!0&&this.collection.ensureIndex(r),f=!0,h=this.collection.binaryIndices[r]);var v,g=D[i],b=this.collection.data,E=0,w=0,x=0;if(this.filterInitialized)if(v=this.filteredrows,w=v.length,m)for(r=r.split("."),E=0;E=0?(this.filterPipeline[t]=e,this.reapplyFilters()):(this.cachedresultset=null,this.options.persistent&&(this.resultdata=[],this.resultsdirty=!0),this._addFilter(e),this.sortFunction||this.sortCriteria?this.queueSortPhase():this.queueRebuildEvent(),this)},b.prototype.applyFind=function(e,t){return this.applyFilter({type:"find",val:e,uid:t}),this},b.prototype.applyWhere=function(e,t){return this.applyFilter({type:"where",val:e,uid:t}),this},b.prototype.removeFilter=function(e){var t=this._indexOfFilterWithId(e);if(t<0)throw new Error("Dynamic view does not contain a filter with ID: "+e);return this.filterPipeline.splice(t,1),this.reapplyFilters(),this},b.prototype.count=function(){return this.resultsdirty&&(this.resultdata=this.resultset.data()),this.resultset.count()},b.prototype.data=function(e){return(this.sortDirty||this.resultsdirty)&&this.performSortPhase({suppressRebuildEvent:!0}),this.options.persistent?this.resultdata:this.resultset.data(e)},b.prototype.queueRebuildEvent=function(){if(!this.rebuildPending){this.rebuildPending=!0;var e=this;setTimeout(function(){e.rebuildPending&&(e.rebuildPending=!1,e.emit("rebuild",e))},this.options.minRebuildInterval)}},b.prototype.queueSortPhase=function(){if(!this.sortDirty){this.sortDirty=!0;var e=this;"active"===this.options.sortPriority?setTimeout(function(){e.performSortPhase()},this.options.minRebuildInterval):this.queueRebuildEvent()}},b.prototype.performSortPhase=function(e){(this.sortDirty||this.resultsdirty)&&(e=e||{},this.sortDirty&&(this.sortFunction?this.resultset.sort(this.sortFunction):this.sortCriteria&&this.resultset.compoundsort(this.sortCriteria),this.sortDirty=!1),this.options.persistent&&(this.resultdata=this.resultset.data(),this.resultsdirty=!1),e.suppressRebuildEvent||this.emit("rebuild",this))},b.prototype.evaluateDocument=function(e,t){if(!this.resultset.filterInitialized)return this.options.persistent&&(this.resultdata=this.resultset.data()),void(this.sortFunction||this.sortCriteria?this.queueSortPhase():this.queueRebuildEvent());var n=this.resultset.filteredrows,r=t?-1:n.indexOf(+e),o=n.length,a=new g(this.collection);a.filteredrows=[e],a.filterInitialized=!0;for(var i,u=0,l=this.filterPipeline.length;ue&&n[t]--},b.prototype.mapReduce=function(e,t){try{return t(this.data().map(e))}catch(e){throw e}},E.prototype=new d,E.prototype.console={log:function(){},warn:function(){},error:function(){}},E.prototype.addAutoUpdateObserver=function(e){this.autoupdate&&"function"==typeof Object.observe&&Object.observe(e,this.observerCallback,["add","update","delete","reconfigure","setPrototype"])},E.prototype.removeAutoUpdateObserver=function(e){this.autoupdate&&"function"==typeof Object.observe&&Object.unobserve(e,this.observerCallback)},E.prototype.addTransform=function(e,t){if(this.transforms.hasOwnProperty(e))throw new Error("a transform by that name already exists");this.transforms[e]=t},E.prototype.getTransform=function(e){return this.transforms[e]},E.prototype.setTransform=function(e,t){this.transforms[e]=t},E.prototype.removeTransform=function(e){delete this.transforms[e]},E.prototype.byExample=function(e){var t,n,r;r=[];for(t in e)e.hasOwnProperty(t)&&r.push((n={},n[t]=e[t],n));return{$and:r}},E.prototype.findObject=function(e){return this.findOne(this.byExample(e))},E.prototype.findObjects=function(e){return this.find(this.byExample(e))},E.prototype.ttlDaemonFuncGen=function(){var e=this,t=this.ttl.age;return function(){var n=Date.now(),r=e.chain().where(function(e){var r=e.meta.updated||e.meta.created,o=n-r;return t>1;if(e="number"==typeof e?e:parseInt(e,10),isNaN(e))throw new TypeError("Passed id is not an integer");for(;r[a]>1,r[i]e&&i[o]--},E.prototype.calculateRangeStart=function(n,r,o){var a=this.data,i=this.binaryIndices[n].values,u=0,l=i.length-1,s=0;if(0===i.length)return-1;for(a[i[u]][n],a[i[l]][n];u>1,t(a[i[s]][n],r,!1)?u=s+1:l=s;var c=u;return e(r,a[i[c]][n])?c:t(r,a[i[c]][n],!1)?o?c:c-1:o?c+1:c},E.prototype.calculateRangeEnd=function(n,o){var a=this.data,i=this.binaryIndices[n].values,u=0,l=i.length-1,s=0;if(0===i.length)return-1;for(a[i[u]][n],a[i[l]][n];u>1,t(o,a[i[s]][n],!1)?l=s:u=s+1;var c=l;return e(o,a[i[c]][n])?c:r(o,a[i[c]][n],!1)?c+1:e(o,a[i[c-1]][n])?c-1:c},E.prototype.calculateRange=function(n,o,a){var i,u,l,s,c=this.data,f=this.binaryIndices[o].values,d=0,p=f.length-1;if(0===c.length)return[0,-1];var h=c[f[d]][o],m=c[f[p]][o];switch(n){case"$eq":case"$aeq":if(t(a,h,!1)||r(a,m,!1))return[0,-1];break;case"$dteq":if(t(a,h,!1)||r(a,m,!1))return[0,-1];break;case"$gt":if(r(a,m,!0))return[0,-1];if(r(h,a,!1))return[d,p];break;case"$gte":if(r(a,m,!1))return[0,-1];if(r(h,a,!0))return[d,p];break;case"$lt":if(t(a,h,!0))return[0,-1];if(t(m,a,!1))return[d,p];break;case"$lte":if(t(a,h,!1))return[0,-1];if(t(m,a,!0))return[d,p];break;case"$between":return r(a[0],m,!1)?[0,-1]:t(a[1],h,!1)?[0,-1]:(i=this.calculateRangeStart(o,a[0]),l=this.calculateRangeEnd(o,a[1]),i<0&&i++,l>p&&l--,r(c[f[i]][o],a[0],!0)||i++,t(c[f[l]][o],a[1],!0)||l--,lP(this.data[n],e,o)&&(t=P(this.data[n],e,o),a.index=this.data[n].$loki):(t=P(this.data[n],e,o),a.index=this.data[n].$loki);return a.value=t,a},E.prototype.extractNumerical=function(e){return this.extract(e).map(x).filter(Number).filter(function(e){return!isNaN(e)})},E.prototype.avg=function(e){return _(this.extractNumerical(e))},E.prototype.stdDev=function(e){return C(this.extractNumerical(e))},E.prototype.mode=function(e){var t={},n=this.extract(e);n.forEach(function(e){t[e]?t[e]+=1:t[e]=1});var r,o,a;for(o in t)r?rt?1:0},setSort:function(e){this.bs=new T(e)},bs:function(){return new T(this.sort)},set:function(e,t){var n=this.bs(this.keys,e);n.found?this.values[n.index]=t:(this.keys.splice(n.index,0,e),this.values.splice(n.index,0,t))},get:function(e){return this.values[S(this.keys,e,this.sort).index]}},A.prototype.keyMap={},A.prototype.lokiMap={},A.prototype.set=function(e){var t=e[this.field];if(null!==t&&"undefined"!=typeof t){if(this.keyMap[t])throw new Error("Duplicate key for property "+this.field+": "+t);this.keyMap[t]=e,this.lokiMap[e.$loki]=t}},A.prototype.get=function(e){return this.keyMap[e]},A.prototype.byId=function(e){return this.keyMap[this.lokiMap[e]]},A.prototype.update=function(e,t){if(this.lokiMap[e.$loki]!==t[this.field]){var n=this.lokiMap[e.$loki];this.set(t),this.keyMap[n]=void 0}else this.keyMap[e[this.field]]=t},A.prototype.remove=function(e){var t=this.keyMap[e];if(null===t||"undefined"==typeof t)throw new Error("Key is not in unique index: "+this.field);this.keyMap[e]=void 0,this.lokiMap[t.$loki]=void 0},A.prototype.clear=function(){this.keyMap={},this.lokiMap={}},M.prototype={set:function(e,t){this.index[e]?this.index[e].push(t):this.index[e]=[t]},remove:function(e,t){var n=this.index[e];for(var r in n)n[r]==t&&n.splice(r,1);n.length<1&&(this.index[e]=void 0)},get:function(e){return this.index[e]},clear:function(e){this.index={}}},I.prototype={keys:[],values:[],sort:function(e,t){return et?1:0},bs:function(){return new T(this.sort)},setSort:function(e){this.bs=new T(e)},set:function(e,t){var n=S(this.keys,e,this.sort);n.found?this.values[n.index].push(t):(this.keys.splice(n.index,0,e),this.values.splice(n.index,0,[t]))},get:function(e){var t=S(this.keys,e,this.sort);return t.found?this.values[t.index]:[]},getLt:function(e){var t=S(this.keys,e,this.sort),n=t.index;return t.found&&n--,this.getAll(e,0,n)},getGt:function(e){var t=S(this.keys,e,this.sort),n=t.index;return t.found&&n++,this.getAll(e,n,this.keys.length)},getAll:function(e,t,n){for(var r=[],o=t;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return 0===e.button}function i(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function l(e,t){return"function"==typeof e?e(t.location):e}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t=0;r--){var o=e[r],a=o.path||"";if(n=a.replace(/\/*$/,"/")+n,0===a.indexOf("/"))break}return"/"+n}},propTypes:{path:i.string,from:i.string,to:i.string.isRequired,query:i.object,state:i.object,onEnter:f.falsy,children:f.falsy},render:function(){(0,l.default)(!1)}});t.default=d,e.exports=t.default},function(e,t){"use strict";function n(e,t,n){var a=o({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive});return r(a,n)}function r(e,t){var n=t.location,r=t.params,o=t.routes;return e.location=n,e.params=r,e.routes=o,e}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=_++)}function l(e){return e.map(function(e){return C[u(e)]}).filter(function(e){return e})}function c(e,n){(0,v.default)(t,e,function(t,r){if(null==r)return void n();O=i({},r,{location:e});for(var o=l((0,s.default)(b,O).leaveRoutes),a=void 0,u=0,c=o.length;null==a&&u0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.basename,a=function(e){return e?(r&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(r.toLowerCase())?(e.pathname=e.pathname.substring(r.length),e.basename=r,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},l=function(e){if(!r)return e;var t="string"==typeof e?(0,u.parsePath)(e):e,n=t.pathname,a="/"===r.slice(-1)?r:r+"/",i="/"===n.charAt(0)?n.slice(1):n,l=a+i;return o({},t,{pathname:l})},s=function(){return a(n.getCurrentLocation())},c=function(e){return n.listenBefore(function(t,n){return(0,i.default)(e,a(t),n)})},f=function(e){return n.listen(function(t){return e(a(t))})},d=function(e){return n.push(l(e))},p=function(e){return n.replace(l(e))},h=function(e){return n.createPath(l(e))},m=function(e){return n.createHref(l(e))},y=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.stringifyQuery,a=t.parseQueryString;"function"!=typeof r&&(r=c),"function"!=typeof a&&(a=f);var i=function(e){return e?(null==e.query&&(e.query=a(e.search.substring(1))),e):e},d=function(e,t){if(null==t)return e;var n="string"==typeof e?(0,s.parsePath)(e):e,a=r(t),i=a?"?"+a:"";return o({},n,{search:i})},p=function(){return i(n.getCurrentLocation())},h=function(e){return n.listenBefore(function(t,n){return(0,u.default)(e,i(t),n)})},m=function(e){return n.listen(function(t){return e(i(t))})},y=function(e){return n.push(d(e,e.query))},v=function(e){return n.replace(d(e,e.query))},g=function(e){return n.createPath(d(e,e.query))},b=function(e){return n.createHref(d(e,e.query))},E=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o1?g.default.createElement("button",{onClick:function(){e.p--}},"prev"):g.default.createElement("button",{disabled:!0},"prev")};return g.default.createElement("div",{style:{textAlign:"left"}},g.default.createElement("p",null,"Showing page ",this.p," of ",t," ",r()," ",n()),g.default.createElement("p",null,"Entries per page: ",g.default.createElement("input",{type:"button",value:"5",disabled:"5"==this.n,onClick:function(t){return e.n=t.target.value}})," ",g.default.createElement("input",{type:"button",value:"10",disabled:"10"==this.n,onClick:function(t){return e.n=t.target.value}})," ",g.default.createElement("input",{type:"button",value:"20",disabled:"20"==this.n,onClick:function(t){return e.n=t.target.value}})," ",g.default.createElement("input",{type:"button",value:"50",disabled:"50"==this.n,onClick:function(t){return e.n=t.target.value}})))}}]),t}(g.default.Component),d=l(f.prototype,"n",[x.observable],{enumerable:!0,initializer:function(){return 10}}),p=l(f.prototype,"p",[x.observable],{enumerable:!0,initializer:function(){return 1}}),h=l(f.prototype,"content",[x.observable],{enumerable:!0,initializer:function(){return[]}}),m=l(f.prototype,"card_img",[x.observable],{enumerable:!0,initializer:function(){return E.default.card_back}}),c=f))||c)||c);t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,l,s=function(){function e(e,t){for(var n=0;n0&&(u=u.find({gsx$tribe:{$or:f}}),s=s.find({gsx$tribe:{$or:f}}),a=a.limit(0),i=i.limit(0),l=l.limit(0)),e.stones.noElements.checked)u=u.where(function(e){return""==e.gsx$elements}),a=a.where(function(e){return""==e.gsx$fire}).where(function(e){return""==e.gsx$air}).where(function(e){return""==e.gsx$earth}).where(function(e){return""==e.gsx$water}),i=i.limit(0),l=l.limit(0),s=s.limit(0);else{var p=[],h=[];for(var m in e.elements)e.elements[m].checked&&(p.push({$regex:new RegExp(m,"i")}),h.push(o({},"gsx$"+m,{$gte:0})));p.length>0&&("or"==e.swamp&&(u=u.find({gsx$elements:{$or:p}}),a=a.find({$or:h})),"and"==e.swamp&&(u=u.find({gsx$elements:{$and:p}}),a=a.find({$and:h})),i=i.limit(0),l=l.limit(0),s=s.limit(0))}var y=[];for(var v in e.rarity)e.rarity[v].checked&&y.push({$eq:v});y.length>0&&(a=a.find({gsx$rarity:{$or:y}}),i=i.find({gsx$rarity:{$or:y}}),u=u.find({gsx$rarity:{$or:y}}),l=l.find({gsx$rarity:{$or:y}}),s=s.find({gsx$rarity:{$or:y}}));var b=[];for(var E in e.sets)e.sets[E].checked&&b.push({$eq:E});if(b.length>0&&(a=a.find({gsx$set:{$or:b}}),i=i.find({gsx$set:{$or:b}}),u=u.find({gsx$set:{$or:b}}),l=l.find({gsx$set:{$or:b}}),s=s.find({gsx$set:{$or:b}})),e.stones.subtypes.value){var w=e.stones.subtypes.value.split(",").filter(Boolean).map(function(e){return{$regex:new RegExp(e.trim(),"i")}});u=u.find({gsx$types:{$or:w}}),l=l.find({gsx$initiative:{$or:w}}),a=a.limit(0),i=i.limit(0),s=s.limit(0)}""!==e.mc.min.value&&e.mc.min.value>=0&&(u=u.find({gsx$mugicability:{$gte:e.mc.min.value}}),s=s.find({gsx$cost:{$gte:e.mc.min.value}})),""!==e.mc.max.value&&e.mc.max.value>=0&&e.mc.max.value>=e.mc.min.value&&(u=u.find({gsx$mugicability:{$lte:e.mc.max.value}}),s=s.find({gsx$cost:{$lte:e.mc.max.value}})),""===e.mc.max.value&&""===e.mc.min.value||(a=a.limit(0),i=i.limit(0),l=l.limit(0)),e.energy.min.value>0&&(u=u.find({gsx$energy:{$gte:e.energy.min.value}})),e.energy.max.value>0&&e.energy.max.value>=e.energy.min.value&&(u=u.find({gsx$energy:{$lte:e.energy.max.value}})),e.stones.courage.value>0&&(u=u.find({gsx$courage:{$gte:e.stones.courage.value}})),e.stones.power.value>0&&(u=u.find({gsx$power:{$gte:e.stones.power.value}})),e.stones.wisdom.value>0&&(u=u.find({gsx$wisdom:{$gte:e.stones.wisdom.value}})),e.stones.speed.value>0&&(u=u.find({gsx$speed:{$gte:e.stones.speed.value}})),(e.energy.min.value>0||e.energy.max.value>0||""!==e.stones.courage.value||""!==e.stones.power.value||""!==e.stones.wisdom.value||""!==e.stones.speed.value)&&(a=a.limit(0),i=i.limit(0),l=l.limit(0),s=s.limit(0)),""!==e.bp.min.value&&e.bp.min.value>=0&&(a=a.find({gsx$bp:{$gte:e.bp.min.value}})),""!==e.bp.max.value&&e.bp.max.value>=0&&e.bp.max.value>=e.bp.min.value&&(a=a.find({gsx$bp:{$lte:e.bp.max.value}})),""===e.bp.min.value&&""===e.bp.max.value||(i=i.limit(0),u=u.limit(0),l=l.limit(0),s=s.limit(0)),e.stones.unique.checked&&(a=a.find({gsx$unique:{$gt:0}}),i=i.find({gsx$unique:{$gt:0}}),u=u.find({gsx$unique:{$gt:0}}),l=l.find({gsx$unique:{$gt:0}}),s=s.find({gsx$unique:{$gt:0}})),e.stones.loyal.checked&&(a=a.find({gsx$loyal:{$gt:0}}),i=i.find({gsx$loyal:{$gt:0}}),u=u.find({gsx$loyal:{$gt:0}}),s=s.find({gsx$loyal:{$gt:0}})),e.stones.legendary.checked&&(a=a.find({gsx$legendary:{$gt:0}}),i=i.find({gsx$legendary:{$gt:0}}),u=u.find({gsx$legendary:{$gt:0}}),l=l.find({gsx$legendary:{$gt:0}}),s=s.find({gsx$legendary:{$gt:0}})),e.stones.past.checked&&(a=a.find({gsx$past:{$gt:0}}),i=i.find({gsx$past:{$gt:0}}),u=u.find({gsx$types:{$regex:new RegExp("past","i")}}),l=l.find({gsx$past:{$gt:0}}),s=s.find({gsx$past:{$gt:0}})),e.stones.mirage.checked&&(l=l.find({gsx$mirage:{$gt:0}}),a=a.limit(0),i=i.limit(0),u=u.limit(0),s=s.limit(0));var x=[];for(var k in e.gender)e.gender[k].checked&&x.push({$regex:new RegExp(k,"i")});if(x.length>0&&(u=u.find({gsx$gender:{$or:x}}),a=a.limit(0),i=i.limit(0),l=l.limit(0),s=s.limit(0)),!e.type||"Attack"==e.type){var O=a.data();O.forEach(function(e){delete e.$loki}),n.insert(O)}if(!e.type||"Battlegear"==e.type){var _=i.data();_.forEach(function(e){delete e.$loki}),n.insert(_)}if(!e.type||"Creature"==e.type){var C=u.data();C.forEach(function(e){delete e.$loki}),n.insert(C)}if(!e.type||"Location"==e.type){var P=l.data();P.forEach(function(e){delete e.$loki}),n.insert(P)}if(!e.type||"Mugic"==e.type){var S=s.data();S.forEach(function(e){delete e.$loki}),n.insert(S)}var T=r.data();e.filter.removeCollection("filter"),T.length>0?e.props.handleContent(T):e.props.handleContent([{text:"No Results Found"}])},e.reset(),e.filter=new x.default("filter.db"),e}return l(t,e),h(t,[{key:"componentDidMount",value:function(){this.search()}},{key:"render",value:function(){var e=this,t=[],n=function(n){t.push(y.default.createElement("label",{style:{display:"block"},key:n},y.default.createElement("input",{type:"checkbox",ref:function(t){return e.sets[n]=t}}),g.default.sets[n]))};for(var r in g.default.sets)n(r);var o=y.default.createElement("label",null,"Type: ",y.default.createElement("select",{onChange:function(t){e.type=t.target.value}},y.default.createElement("option",{value:""}),y.default.createElement("option",{value:"Attack"},"Attack"),y.default.createElement("option",{value:"Battlegear"},"Battlegear"),y.default.createElement("option",{value:"Creature"},"Creature"),y.default.createElement("option",{value:"Location"},"Location"),y.default.createElement("option",{value:"Mugic"},"Mugic"))),a=y.default.createElement("div",null,y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity.Common=t}}),"Common"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity.Uncommon=t}}),"Uncommon"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity.Rare=t}}),"Rare"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity["Super Rare"]=t}}),"Super Rare"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity["Ultra Rare"]=t}}),"Ultra Rare"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.rarity.Promo=t}}),"Promo")),i=y.default.createElement("div",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.danian=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/danian.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.mipedian=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/mipedian.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.overworld=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/overworld.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.underworld=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/underworld.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes["m'arrillian"]=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/m'arrillian.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.tribes.generic=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/generic.png"})),u=y.default.createElement("div",null,y.default.createElement("input",{type:"button",value:"or",disabled:"or"==this.swamp,onClick:function(t){return e.swamp="or"}}),y.default.createElement("input",{type:"button",value:"and",disabled:"and"==this.swamp,onClick:function(t){return e.swamp="and"}}),y.default.createElement("input",{type:"checkbox",ref:function(t){return e.elements.fire=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/elements/fire.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.elements.air=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/elements/air.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.elements.earth=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/elements/earth.png"})," ",y.default.createElement("input",{type:"checkbox",ref:function(t){return e.elements.water=t}}),y.default.createElement("img",{className:"icon16",src:"/src/img/icons/elements/water.png"}),y.default.createElement("br",null),y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.noElements=t}}),y.default.createElement("span",null,"No Elements")),l=y.default.createElement("div",{className:"disciplines"},y.default.createElement("input",{type:"text",ref:function(t){return e.stones.courage=t}}),y.default.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/courage.png"})," ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.power=t}}),y.default.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/power.png"})," ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.wisdom=t}}),y.default.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/wisdom.png"})," ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.speed=t}}),y.default.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/speed.png"}));return y.default.createElement("div",{className:"SearchForm"},y.default.createElement("form",{onSubmit:this.search},y.default.createElement("br",null),y.default.createElement("label",null,"Name: ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.name=t}})),y.default.createElement("br",null),y.default.createElement("label",null,"Text: ",y.default.createElement("input",{type:"text",ref:function(t){return e.stones.text=t}})),y.default.createElement("br",null),o,y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("label",null,"Subtypes | Initiative:",y.default.createElement("br",null),y.default.createElement("input",{type:"text",ref:function(t){return e.stones.subtypes=t}})),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.past=t}}),"Past")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.mirage=t}}),"Mirage")),y.default.createElement("br",null),y.default.createElement("div",null,t),y.default.createElement("br",null),a,y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.unique=t}}),"Unique")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.loyal=t}}),"Loyal")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.stones.legendary=t}}),"Legendary")),y.default.createElement("br",null),i,y.default.createElement("br",null),u,y.default.createElement("br",null),l,y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("span",null,"Energy")," ",y.default.createElement("label",null,"Min: ",y.default.createElement("input",{type:"text",style:{width:"30px"},ref:function(t){return e.energy.min=t}}))," ",y.default.createElement("label",null,"Max: ",y.default.createElement("input",{type:"text",style:{width:"30px"},ref:function(t){return e.energy.max=t}}))),y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("span",null,"Mugic Counters/Cost")," ",y.default.createElement("label",null,"Min: ",y.default.createElement("input",{type:"text",style:{width:"20px"},ref:function(t){return e.mc.min=t}}))," ",y.default.createElement("label",null,"Max: ",y.default.createElement("input",{type:"text",style:{width:"20px"},ref:function(t){return e.mc.max=t}}))),y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("span",null,"Build Points")," ",y.default.createElement("label",null,"Min: ",y.default.createElement("input",{type:"text",style:{width:"20px"},ref:function(t){return e.bp.min=t}}))," ",y.default.createElement("label",null,"Max: ",y.default.createElement("input",{type:"text",style:{width:"20px"},ref:function(t){return e.bp.max=t}}))),y.default.createElement("br",null),y.default.createElement("div",null,y.default.createElement("span",null,"Gender (fan content):"),y.default.createElement("br",null),y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.gender.Ambiguous=t}}),"Ambiguous")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.gender.Female=t}}),"Female")," ",y.default.createElement("label",null,y.default.createElement("input",{type:"checkbox",ref:function(t){return e.gender.Male=t}}),"Male")),y.default.createElement("br",null),y.default.createElement("input",{type:"submit",value:"Search"}),"  ",y.default.createElement("input",{type:"button",value:"Reset",disabled:!0,onClick:this.reset})))}}]),t}(y.default.Component),p=s(d.prototype,"swamp",[b.observable],{enumerable:!0,initializer:function(){return"or"}}),f=d))||f)||f);t.default=k},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,l,s=function(){function e(e,t){for(var n=0;n=0})," ",f.default.createElement(v.Element,{element:"air",value:t.gsx$elements.toLowerCase().indexOf("air")>=0})," ",f.default.createElement(v.Element,{element:"earth",value:t.gsx$elements.toLowerCase().indexOf("earth")>=0})," ",f.default.createElement(v.Element,{element:"water",value:t.gsx$elements.toLowerCase().indexOf("water")>=0})),f.default.createElement("span",null,n)),f.default.createElement("br",null),f.default.createElement("div",{className:"right",style:{width:"calc(100% - (100px + 230px + 50px))",whiteSpace:"pre-line"}},f.default.createElement(v.Ability,{ability:t.gsx$ability,tribe:t.gsx$tribe}),f.default.createElement(v.Ability,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed}),f.default.createElement(v.Unique,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),f.default.createElement("span",{className:"flavortext"},t.gsx$flavortext)),f.default.createElement("br",null),f.default.createElement("div",{style:{verticalAlign:"text-top",float:"left",width:"50px",textAlign:"right"}},f.default.createElement("span",null,t.gsx$courage," ",f.default.createElement("img",{className:"icon16",src:"/src/img/icons/disciplines/courage.png"})),f.default.createElement("br",null),f.default.createElement("span",null,t.gsx$power," ",f.default.createElement("img",{className:"icon16",src:"/src/img/icons/disciplines/power.png"})),f.default.createElement("br",null),f.default.createElement("span",null,t.gsx$wisdom," ",f.default.createElement("img",{className:"icon16",src:"/src/img/icons/disciplines/wisdom.png"})),f.default.createElement("br",null),f.default.createElement("span",null,t.gsx$speed," ",f.default.createElement("img",{className:"icon16",src:"/src/img/icons/disciplines/speed.png"})),f.default.createElement("br",null),f.default.createElement("span",{style:{fontWeight:"bold"}},t.gsx$energy)))}}]),t}(f.default.Component))||l)||l);t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){var t=e.initiative,n=null;return["Danian","Generic","Mipedian","OverWorld","UnderWorld","M'arrillian"].indexOf(t)>-1?n=d.default.createElement("img",{className:"icon16",style:{verticalAlign:"middle"},src:("/src/img/icons/tribes/"+t+".png").toLowerCase()}):["courage","power","speed","wisdom"].indexOf(t.toLowerCase())>-1?n=d.default.createElement("img",{className:"icon16",style:{verticalAlign:"middle"},src:("/src/img/icons/disciplines/"+t+".png").toLowerCase()}):["fire","air","earth","water"].indexOf(t.toLowerCase())>-1?n=d.default.createElement("img",{className:"icon16",style:{verticalAlign:"middle"},src:("/src/img/icons/elements/"+t+".png").toLowerCase()}):"mugic counter"==t.toLowerCase()&&(n=d.default.createElement("img",{className:"icon16",style:{verticalAlign:"middle"},src:"/src/img/icons/mugic/generic.png".toLowerCase()})),d.default.createElement("span",null,"Initiative: ",n," ",t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l,s,c=function(){function e(e,t){for(var n=0;n=59;e&&p.hasTouch&&(p.deviceType="hybrid",p.hasMouse=!0,p.primaryInput="mouse")}}};p.updateOnlyOwnProperties(),t.default=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};window.addEventListener("testPassiveEventSupport",r,t),window.removeEventListener("testPassiveEventSupport",r,t),n.hasSupport=e}}};n.update(),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(n.fine=window.matchMedia("(pointer: fine)").matches,n.coarse=window.matchMedia("(pointer: coarse)").matches,n.none=window.matchMedia("(pointer: none)").matches,n.anyFine=window.matchMedia("(any-pointer: fine)").matches,n.anyCoarse=window.matchMedia("(any-pointer: coarse)").matches,n.anyNone=window.matchMedia("(any-pointer: none)").matches)}};n.update(),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&(n.hasSupport="ontouchstart"in window,n.browserSupportsApi=Boolean(window.TouchEvent))}};n.update(),t.default=n},function(e,t,n){"use strict";var r=n(24),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(96);e.exports=r},function(e,t){"use strict";function n(e){try{e.focus()}catch(e){}}e.exports=n},function(e,t){"use strict";function n(e){if(e=e||("undefined"!=typeof document?document:void 0),"undefined"==typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=n},function(e,t){"use strict";function n(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(95);e.exports=r},function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var i=0;i0){e.props.onChange(t.substring(0,r-1)+" "+t.substring(r));var a=e._inputs[r-1];a&&a.focus()}}else e.props.onChange(t.substring(0,r)+" "+t.substring(r+1));break;case"ArrowLeft":if(r>0){var i=e._inputs[r-1];i&&(i.focus(),window.requestAnimationFrame(function(){i.setSelectionRange(1,1)}))}break;case"ArrowRight":if(r+1=q(e.last.priorityLevel,t))n=e.last;else for(e=e.first;null!==e&&0>=q(e.priorityLevel,t);)n=e,e=e.next;return n}function G(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=W()),null!==n?(e=n.updateQueue,null===e&&(e=n.updateQueue=W())):e=null,Dr=r,Lr=e!==r?e:null;var o=Dr;n=Lr;var a=Y(o,t),i=null!==a?a.next:o.first;return null===n?(K(o,t,a,i),null):(r=Y(n,t),e=null!==r?r.next:n.first,K(o,t,a,i),i===e&&null!==i||a===r&&null!==a?(null===r&&(n.first=t),null===e&&(n.last=null),null):(t={priorityLevel:t.priorityLevel,partialState:t.partialState,callback:t.callback,isReplace:t.isReplace,isForced:t.isForced,isTopLevelUnmount:t.isTopLevelUnmount,next:null},K(n,t,r,e),t))}function J(e,t,n,r){return e=e.partialState,"function"==typeof e?e.call(t,n,r):e}function Q(e,t,n){e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n}function X(e){return e.tag===Vr&&null!=e.type.childContextTypes}function Z(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;n=n.getChildContext();for(var a in n)a in o?void 0:r("108",d(e)||"Unknown",a);return vt({},t,n)}function ee(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=co,this.lastEffect=this.firstEffect=this.nextEffect=null,this.pendingWorkPriority=lo,this.alternate=null}function te(e,t,n){var o=void 0;return"function"==typeof e?(o=e.prototype&&e.prototype.isReactComponent?new ee(eo,t,n):new ee(Zr,t,n),o.type=e):"string"==typeof e?(o=new ee(no,t,n),o.type=e):"object"==typeof e&&null!==e&&"number"==typeof e.tag?o=e:r("130",null==e?e:typeof e,""),o}function ne(e){return null===e||"undefined"==typeof e?null:(e=Ho&&e[Ho]||e["@@iterator"],"function"==typeof e?e:null)}function re(e,t){var n=t.ref;if(null!==n&&"function"!=typeof n){if(t._owner){t=t._owner;var o=void 0;t&&("number"==typeof t.tag?(t.tag!==Io?r("110"):void 0,o=t.stateNode):o=t.getPublicInstance()),o?void 0:r("147",n);var a=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===a?e.ref:(e=function(e){var t=o.refs===Et?o.refs={}:o.refs;null===e?delete t[a]:t[a]=e},e._stringRef=a,e)}"string"!=typeof n?r("148"):void 0,t._owner?void 0:r("149",n)}return n}function oe(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ae(e,t){function n(n,r){if(t){if(!e){if(null===r.alternate)return;r=r.alternate}var o=n.lastEffect;null!==o?(o.nextEffect=r,n.lastEffect=r):n.firstEffect=n.lastEffect=r,r.nextEffect=null,r.effectTag=Bo}}function o(e,r){if(!t)return null;for(;null!==r;)n(e,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(t,n){return e?(t=Oo(t,n),t.index=0,t.sibling=null,t):(t.pendingWorkPriority=n,t.effectTag=Fo,t.index=0,t.sibling=null,t)}function u(e,n,r){return e.index=r,t?(r=e.alternate,null!==r?(r=r.index,rd?(p=f,f=null):p=f.sibling;var h=y(e,f,i[d],l);if(null===h){null===f&&(f=p);break}t&&f&&null===h.alternate&&n(e,f),r=u(h,r,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===i.length)return o(e,f),s;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(e,d,g.value,s);if(null===b){d||(d=h);break}t&&d&&null===b.alternate&&n(e,d),i=u(b,i,p),null===f?c=b:f.sibling=b,f=b,d=h}if(g.done)return o(e,d),c;if(null===d){for(;!g.done;p++,g=l.next())g=m(e,g.value,s),null!==g&&(i=u(g,i,p),null===f?c=g:f.sibling=g,f=g);return c}for(d=a(e,d);!g.done;p++,g=l.next())g=v(d,e,p,g.value,s),null!==g&&(t&&null!==g.alternate&&d.delete(null===g.key?p:g.key),i=u(g,i,p),null===f?c=g:f.sibling=g,f=g);return t&&d.forEach(function(t){return n(e,t)}),c}return function(e,t,a,u){var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case Vo:e:{var c=a.key;for(s=t;null!==s;){if(s.key===c){if(s.type===a.type){o(e,s.sibling),t=i(s,u),t.ref=re(s,a),t.pendingProps=a.props,t.return=e,e=t;break e}o(e,s);break}n(e,s),s=s.sibling}u=_o(a,e.internalContextTag,u),u.ref=re(t,a),u.return=e,e=u}return l(e);case wo:e:{for(s=a.key;null!==t;){if(t.key===s){if(t.tag===Do){o(e,t.sibling),t=i(t,u),t.pendingProps=a,t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}a=So(a,e.internalContextTag,u),a.return=e,e=a}return l(e);case xo:e:{if(null!==t){if(t.tag===Lo){o(e,t.sibling),t=i(t,u),t.type=a.value,t.return=e,e=t;break e}o(e,t)}t=To(a,e.internalContextTag,u),t.type=a.value,t.return=e,e=t}return l(e);case ko:e:{for(s=a.key;null!==t;){if(t.key===s){if(t.tag===Ro&&t.stateNode.containerInfo===a.containerInfo&&t.stateNode.implementation===a.implementation){o(e,t.sibling),t=i(t,u),t.pendingProps=a.children||[],t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}a=No(a,e.internalContextTag,u),a.return=e,e=a}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==t&&t.tag===jo?(o(e,t.sibling),t=i(t,u),t.pendingProps=a,t.return=e,e=t):(o(e,t),a=Po(a,e.internalContextTag,u),a.return=e,e=a),l(e);if(Ao(a))return g(e,t,a,u);if(ne(a))return b(e,t,a,u);if(s&&oe(e,a),"undefined"==typeof a)switch(e.tag){case Io:case Mo:a=e.type,r("152",a.displayName||a.name||"Component")}return o(e,t)}}function ie(e,t,n,o){function a(e,t){t.updater=i,e.stateNode=t,Yt.set(t,e)}var i={isMounted:aa,enqueueSetState:function(n,r,o){n=Yt.get(n);var a=t(n,!1);ea(n,r,void 0===o?null:o,a),e(n,a)},enqueueReplaceState:function(n,r,o){n=Yt.get(n);var a=t(n,!1);ta(n,r,void 0===o?null:o,a),e(n,a)},enqueueForceUpdate:function(n,r){n=Yt.get(n);var o=t(n,!1);na(n,void 0===r?null:r,o),e(n,o)}};return{adoptClassInstance:a,constructClassInstance:function(e,t){var n=e.type,r=Xo(e),o=Zo(e),i=o?Qo(e,r):Et;return t=new n(t,i),a(e,t),o&&Jo(e,r,i),t},mountClassInstance:function(e,t){var n=e.alternate,o=e.stateNode,a=o.state||null,u=e.pendingProps;u?void 0:r("158");var l=Xo(e);o.props=u,o.state=a,o.refs=Et,o.context=Qo(e,l),Sr.enableAsyncSubtreeAPI&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=Go),"function"==typeof o.componentWillMount&&(l=o.state,o.componentWillMount(),l!==o.state&&i.enqueueReplaceState(o,o.state,null),l=e.updateQueue,null!==l&&(o.state=ra(n,e,l,o,a,u,t))),"function"==typeof o.componentDidMount&&(e.effectTag|=Yo)},updateClassInstance:function(e,t,a){var u=t.stateNode;u.props=t.memoizedProps,u.state=t.memoizedState;var l=t.memoizedProps,s=t.pendingProps;s||(s=l,null==s?r("159"):void 0);var c=u.context,f=Xo(t);if(f=Qo(t,f),"function"!=typeof u.componentWillReceiveProps||l===s&&c===f||(c=u.state,u.componentWillReceiveProps(s,f),u.state!==c&&i.enqueueReplaceState(u,u.state,null)),c=t.memoizedState,a=null!==t.updateQueue?ra(e,t,t.updateQueue,u,c,s,a):c,!(l!==s||c!==a||oa()||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!=typeof u.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=Yo),!1;var d=s;if(null===l||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)d=!0;else{var p=t.stateNode,h=t.type;d="function"==typeof p.shouldComponentUpdate?p.shouldComponentUpdate(d,a,f):!(h.prototype&&h.prototype.isPureReactComponent&&wt(l,d)&&wt(c,a))}return d?("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(s,a,f),"function"==typeof u.componentDidUpdate&&(t.effectTag|=Yo)):("function"!=typeof u.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=Yo),n(t,s),o(t,a)),u.props=s,u.state=a,u.context=f,d}}}function ue(e,t,n,o,a){function i(e,t,n){u(e,t,n,t.pendingWorkPriority)}function u(e,t,n,r){t.child=null===e?ia(t,t.child,n,r):e.child===t.child?ua(t,t.child,n,r):la(t,t.child,n,r)}function l(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=ja)}function s(e,t,n,r){if(l(e,t),!n)return r&&ya(t,!1),f(e,t);n=t.stateNode,Ra.current=t;var o=n.render();return t.effectTag|=Na,i(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&ya(t,!0),t.child}function c(e){var t=e.stateNode;t.pendingContext?ma(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ma(e,t.context,!1),v(e,t.containerInfo)}function f(e,t){return sa(e,t),t.child}function d(e,t){switch(t.tag){case Ea:c(t);break;case ba:ha(t);break;case ka:v(t,t.stateNode.containerInfo)}return null}var p=e.shouldSetTextContent,h=e.useSyncScheduling,m=e.shouldDeprioritizeSubtree,y=t.pushHostContext,v=t.pushHostContainer,g=n.enterHydrationState,b=n.resetHydrationState,E=n.tryToClaimNextHydratableInstance;e=ie(o,a,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var w=e.adoptClassInstance,x=e.constructClassInstance,k=e.mountClassInstance,O=e.updateClassInstance;return{beginWork:function(e,t,n){if(t.pendingWorkPriority===Sa||t.pendingWorkPriority>n)return d(e,t);switch(t.tag){case va:null!==e?r("155"):void 0;var o=t.type,a=t.pendingProps,u=da(t);return u=fa(t,u),o=o(a,u),t.effectTag|=Na,"object"==typeof o&&null!==o&&"function"==typeof o.render?(t.tag=ba,a=ha(t),w(t,o),k(t,n),t=s(e,t,!0,a)):(t.tag=ga,i(e,t,o),t.memoizedProps=a,t=t.child),t;case ga:e:{if(a=t.type,n=t.pendingProps,o=t.memoizedProps,pa())null===n&&(n=o);else if(null===n||o===n){t=f(e,t);break e}o=da(t),o=fa(t,o),a=a(n,o),t.effectTag|=Na,i(e,t,a),t.memoizedProps=n,t=t.child}return t;case ba:return a=ha(t),o=void 0,null===e?t.stateNode?r("153"):(x(t,t.pendingProps),k(t,n),o=!0):o=O(e,t,n),s(e,t,o,a);case Ea:return c(t),o=t.updateQueue,null!==o?(a=t.memoizedState,o=ca(e,t,o,null,a,null,n),a===o?(b(),t=f(e,t)):(a=o.element,null!==e&&null!==e.child||!g(t)?(b(),i(e,t,a)):(t.effectTag|=Aa,t.child=ia(t,t.child,a,n)),t.memoizedState=o,t=t.child)):(b(),t=f(e,t)),t;case wa:y(t),null===e&&E(t),a=t.type;var _=t.memoizedProps;return o=t.pendingProps,null===o&&(o=_,null===o?r("154"):void 0),u=null!==e?e.memoizedProps:null,pa()||null!==o&&_!==o?(_=o.children,p(a,o)?_=null:u&&p(a,u)&&(t.effectTag|=Ma),l(e,t),n!==Ta&&!h&&m(a,o)?(t.pendingWorkPriority=Ta,t=null):(i(e,t,_),t.memoizedProps=o,t=t.child)):t=f(e,t),t;case xa:return null===e&&E(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case _a:t.tag=Oa;case Oa:return n=t.pendingProps,pa()?null===n&&(n=e&&e.memoizedProps,null===n?r("154"):void 0):null!==n&&t.memoizedProps!==n||(n=t.memoizedProps),a=n.children,o=t.pendingWorkPriority,t.stateNode=null===e?ia(t,t.stateNode,a,o):e.child===t.child?ua(t,t.stateNode,a,o):la(t,t.stateNode,a,o),t.memoizedProps=n,t.stateNode;case Ca:return null;case ka:e:{if(v(t,t.stateNode.containerInfo),n=t.pendingWorkPriority,a=t.pendingProps,pa())null===a&&(a=e&&e.memoizedProps,null==a?r("154"):void 0);else if(null===a||t.memoizedProps===a){t=f(e,t);break e}null===e?t.child=la(t,t.child,a,n):i(e,t,a),t.memoizedProps=a,t=t.child}return t;case Pa:e:{if(n=t.pendingProps,pa())null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=f(e,t);break e}i(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case ba:ha(t);break;case Ea:c(t);break;default:r("157")}return t.effectTag|=Ia,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),t.pendingWorkPriority===Sa||t.pendingWorkPriority>n?d(e,t):(t.firstEffect=null,t.lastEffect=null,u(e,t,null,n),t.tag===ba&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function le(e,t,n){var o=e.createInstance,a=e.createTextInstance,i=e.appendInitialChild,u=e.finalizeInitialChildren,l=e.prepareUpdate,s=t.getRootHostContainer,c=t.popHostContext,f=t.getHostContext,d=t.popHostContainer,p=n.prepareToHydrateHostInstance,h=n.prepareToHydrateHostTextInstance,m=n.popHydrationState;return{completeWork:function(e,t,n){var y=t.pendingProps;switch(null===y?y=t.memoizedProps:t.pendingWorkPriority===Za&&n!==Za||(t.pendingProps=null),t.tag){case Ua:return null;case Ba:return La(t),null;case Ha:return d(t),$a(t),y=t.stateNode,y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),null!==e&&null!==e.child||(m(t),t.effectTag&=~Ja),null;case Va:c(t),n=s();var v=t.type;if(null!==e&&null!=t.stateNode){var g=e.memoizedProps,b=t.stateNode,E=f();y=l(b,v,g,y,n,E),(t.updateQueue=y)&&(t.effectTag|=Xa),e.ref!==t.ref&&(t.effectTag|=Qa)}else{if(!y)return null===t.stateNode?r("166"):void 0,null;if(e=f(),m(t))p(t,n,e)&&(t.effectTag|=Xa);else{e=o(v,y,n,e,t);e:for(g=t.child;null!==g;){if(g.tag===Va||g.tag===za)i(e,g.stateNode);else if(g.tag!==qa&&null!==g.child){g=g.child;continue}if(g===t)break e;for(;null===g.sibling;){if(null===g.return||g.return===t)break e;g=g.return}g=g.sibling}u(e,v,y,n)&&(t.effectTag|=Xa),t.stateNode=e}null!==t.ref&&(t.effectTag|=Qa)}return null;case za:if(e&&null!=t.stateNode)e.memoizedProps!==y&&(t.effectTag|=Xa);else{if("string"!=typeof y)return null===t.stateNode?r("166"):void 0,null;e=s(),n=f(),m(t)?h(t)&&(t.effectTag|=Xa):t.stateNode=a(y,e,n,t)}return null;case Wa:(y=t.memoizedProps)?void 0:r("165"),t.tag=Ka,n=[];e:for((v=t.stateNode)&&(v.return=t);null!==v;){if(v.tag===Va||v.tag===za||v.tag===qa)r("164");else if(v.tag===Ya)n.push(v.type);else if(null!==v.child){v.child.return=v,v=v.child;continue}for(;null===v.sibling;){if(null===v.return||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}return v=y.handler,y=v(y.props,n),t.child=Da(t,null!==e?e.child:null,y,t.pendingWorkPriority),t.child;case Ka:return t.tag=Wa,null;case Ya:return null;case Ga:return null;case qa:return t.effectTag|=Xa,d(t),null;case Fa:r("167");default:r("156")}}}}function se(e){return function(t){try{return e(t)}catch(e){}}}function ce(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){return e.tag===ai||e.tag===oi||e.tag===ui}function a(e){for(var t=e;;)if(u(t),null!==t.child&&t.tag!==ui)t.child.return=t,t=t.child;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function i(e){for(var t=e,n=!1,o=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n?r("160"):void 0,n.tag){case ai:o=n.stateNode,i=!1;break e;case oi:o=n.stateNode.containerInfo,i=!0;break e;case ui:o=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(t.tag===ai||t.tag===ii)a(t),i?v(o,t.stateNode):y(o,t.stateNode);else if(t.tag===ui?o=t.stateNode.containerInfo:u(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,t.tag===ui&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function u(e){switch("function"==typeof ci&&ci(e),e.tag){case ri:n(e);var r=e.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case ai:n(e);break;case li:a(e.stateNode);break;case ui:i(e)}}var l=e.commitMount,s=e.commitUpdate,c=e.resetTextContent,f=e.commitTextUpdate,d=e.appendChild,p=e.appendChildToContainer,h=e.insertBefore,m=e.insertInContainerBefore,y=e.removeChild,v=e.removeChildFromContainer,g=e.getPublicInstance;return{commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(o(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var a=t=void 0;switch(n.tag){case ai:t=n.stateNode,a=!1;break;case oi:t=n.stateNode.containerInfo,a=!0;break;case ui:t=n.stateNode.containerInfo,a=!0;break;default:r("161")}n.effectTag&hi&&(c(t),n.effectTag&=~hi);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||o(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==ai&&n.tag!==ii;){if(n.effectTag&fi)continue t;if(null===n.child||n.tag===ui)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&fi)){n=n.stateNode;break e}}for(var i=e;;){if(i.tag===ai||i.tag===ii)n?a?m(t,i.stateNode,n):h(t,i.stateNode,n):a?p(t,i.stateNode):d(t,i.stateNode);else if(i.tag!==ui&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){i(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case ri:break;case ai:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var a=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&s(n,i,a,e,o,t)}break;case ii:null===t.stateNode?r("162"):void 0,n=t.memoizedProps,f(t.stateNode,null!==e?e.memoizedProps:n,n); +break;case oi:break;case ui:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case ri:var n=t.stateNode;if(t.effectTag&di)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t.effectTag&pi&&null!==t.updateQueue&&si(t,t.updateQueue,n);break;case oi:e=t.updateQueue,null!==e&&si(t,e,t.child&&t.child.stateNode);break;case ai:n=t.stateNode,null===e&&t.effectTag&di&&l(n,t.type,t.memoizedProps,t);break;case ii:break;case ui:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case ai:t(g(n));break;default:t(n)}}},commitDetachRef:function(e){e=e.ref,null!==e&&e(null)}}}function fe(e){function t(e){return e===gi?r("174"):void 0,e}var n=e.getChildHostContext,o=e.getRootHostContext,a=mi(gi),i=mi(gi),u=mi(gi);return{getHostContext:function(){return t(a.current)},getRootHostContainer:function(){return t(u.current)},popHostContainer:function(e){yi(a,e),yi(i,e),yi(u,e)},popHostContext:function(e){i.current===e&&(yi(a,e),yi(i,e))},pushHostContainer:function(e,t){vi(u,t,e),t=o(t),vi(i,e,e),vi(a,t,e)},pushHostContext:function(e){var r=t(u.current),o=t(a.current);r=n(o,e.type,r),o!==r&&(vi(i,e,e),vi(a,r,e))},resetHostContainer:function(){a.current=gi,u.current=gi}}}function de(e){function t(e,t){var n=Oi();n.stateNode=t,n.return=e,n.effectTag=xi,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case bi:return i(t,e.type,e.pendingProps);case Ei:return u(t,e.pendingProps);default:return!1}}function o(e){for(e=e.return;null!==e&&e.tag!==bi&&e.tag!==wi;)e=e.return;h=e}var a=e.shouldSetTextContent,i=e.canHydrateInstance,u=e.canHydrateTextInstance,l=e.getNextHydratableSibling,s=e.getFirstHydratableChild,c=e.hydrateInstance,f=e.hydrateTextInstance,d=e.didNotHydrateInstance,p=e.didNotFindHydratableInstance;if(e=e.didNotFindHydratableTextInstance,!(i&&u&&l&&s&&c&&f&&d&&p&&e))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var h=null,m=null,y=!1;return{enterHydrationState:function(e){return m=s(e.stateNode.containerInfo),h=e,y=!0},resetHydrationState:function(){m=h=null,y=!1},tryToClaimNextHydratableInstance:function(e){if(y){var r=m;if(r){if(!n(e,r)){if(r=l(r),!r||!n(e,r))return e.effectTag|=ki,y=!1,void(h=e);t(h,m)}e.stateNode=r,h=e,m=s(r)}else e.effectTag|=ki,y=!1,h=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return f(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==h)return!1;if(!y)return o(e),y=!0,!1;var n=e.type;if(e.tag!==bi||"head"!==n&&"body"!==n&&!a(n,e.memoizedProps))for(n=m;n;)t(e,n),n=l(n);return o(e),m=h?l(e.stateNode):null,!0}}}function pe(e){function t(){for(;null!==W&&W.current.pendingWorkPriority===Ai;){W.isScheduled=!1;var e=W.nextScheduledRoot;if(W.nextScheduledRoot=null,W===K)return K=W=null,V=Ai,null;W=e}e=W;for(var t=null,n=Ai;null!==e;)e.current.pendingWorkPriority!==Ai&&(n===Ai||n>e.current.pendingWorkPriority)&&(n=e.current.pendingWorkPriority,t=e),e=e.nextScheduledRoot;null!==t?(V=n,Ci(),Xi(),x(),H=Si(t.current,n),t!==oe&&(re=0,oe=t)):(V=Ai,oe=H=null)}function n(n){ee=!0,q=null;var o=n.stateNode;if(o.current===n?r("177"):void 0,V!==Mi&&V!==Ii||re++,Pi.current=null,n.effectTag>$i)if(null!==n.lastEffect){n.lastEffect.nextEffect=n;var a=n.firstEffect}else a=n;else a=n.firstEffect;for(R(),z=a;null!==z;){var i=!1,u=void 0;try{for(;null!==z;){var l=z.effectTag;if(l&Vi&&e.resetTextContent(z.stateNode),l&Wi){var s=z.alternate;null!==s&&M(s)}switch(l&~(zi|qi|Vi|Wi|$i)){case Fi:P(z),z.effectTag&=~Fi;break;case Bi:P(z),z.effectTag&=~Fi,T(z.alternate,z);break;case Ui:T(z.alternate,z);break;case Hi:te=!0,S(z),te=!1}z=z.nextEffect}}catch(e){i=!0,u=e}i&&(null===z?r("178"):void 0,f(z,u),null!==z&&(z=z.nextEffect))}for(D(),o.current=n,z=a;null!==z;){o=!1,a=void 0;try{for(;null!==z;){var c=z.effectTag;if(c&(Ui|zi)&&N(z.alternate,z),c&Wi&&A(z),c&qi)switch(i=z,u=void 0,null!==G&&(u=G.get(i),G.delete(i),null==u&&null!==i.alternate&&(i=i.alternate,u=G.get(i),G.delete(i))),null==u?r("184"):void 0,i.tag){case Ji:i.stateNode.componentDidCatch(u.error,{componentStack:u.componentStack});break;case Ki:null===X&&(X=u.error);break;default:r("157")}var d=z.nextEffect;z.nextEffect=null,z=d}}catch(e){o=!0,a=e}o&&(null===z?r("178"):void 0,f(z,a),null!==z&&(z=z.nextEffect))}ee=!1,"function"==typeof Ni&&Ni(n.stateNode),Q&&(Q.forEach(v),Q=null),t()}function o(e){for(;;){var t=C(e.alternate,e,V),n=e.return,r=e.sibling,o=e;if(!(o.pendingWorkPriority!==Ai&&o.pendingWorkPriority>V)){for(var a=Qi(o),i=o.child;null!==i;)a=Ti(a,i.pendingWorkPriority),i=i.sibling;o.pendingWorkPriority=a}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),e.effectTag>$i&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){q=e;break}e=n}return null}function a(e){var t=O(e.alternate,e,V);return null===t&&(t=o(e)),Pi.current=null,t}function i(e){var t=_(e.alternate,e,V);return null===t&&(t=o(e)),Pi.current=null,t}function u(e){c(Di,e)}function l(){if(null!==G&&0e)){L=V;e:for(;;){if(V<=Ii)for(;null!==H&&(H=a(H),!(null===H&&(null===q?r("179"):void 0,L=Ii,n(q),L=V,l(),V===Ai||V>e||V>Ii))););else if(null!==o)for(;null!==H&&!F;)if(1e||VIi&&!Y&&(I(u),Y=!0),e=X,Z=F=$=!1,oe=J=G=X=null,re=0,null!==e)throw e}function f(e,t){var n=Pi.current=null,r=!1,o=!1,a=null;if(e.tag===Ki)n=e,p(e)&&(Z=!0);else for(var i=e.return;null!==i&&null===n;){if(i.tag===Ji?"function"==typeof i.stateNode.componentDidCatch&&(r=!0,a=d(i),n=i,o=!0):i.tag===Ki&&(n=i),p(i)){if(te||null!==Q&&(Q.has(i)||null!==i.alternate&&Q.has(i.alternate)))return null;n=null,o=!1}i=i.return}if(null!==n){null===J&&(J=new Set),J.add(n);var u="";i=e;do{e:switch(i.tag){case ho:case mo:case yo:case vo:var l=i._debugOwner,s=i._debugSource,c=d(i),f=null;l&&(f=d(l)),l=s,c="\n in "+(c||"Unknown")+(l?" (at "+l.fileName.replace(/^.*[\\\/]/,"")+":"+l.lineNumber+")":f?" (created by "+f+")":"");break e;default:c=""}u+=c,i=i.return}while(i);i=u,e=d(e),null===G&&(G=new Map),t={componentName:e,componentStack:i,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:a,willRetry:o},G.set(n,t);try{console.error(t.error)}catch(e){console.error(e)}return ee?(null===Q&&(Q=new Set),Q.add(n)):v(n),n}return null===X&&(X=t),null}function p(e){return null!==J&&(J.has(e)||null!==e.alternate&&J.has(e.alternate))}function h(e,t){return m(e,t,!1)}function m(e,t){re>ne&&(Z=!0,r("185")),!$&&t<=V&&(H=null);for(var n=!0;null!==e&&n;){if(n=!1,(e.pendingWorkPriority===Ai||e.pendingWorkPriority>t)&&(n=!0,e.pendingWorkPriority=t),null!==e.alternate&&(e.alternate.pendingWorkPriority===Ai||e.alternate.pendingWorkPriority>t)&&(n=!0,e.alternate.pendingWorkPriority=t),null===e.return){if(e.tag!==Ki)break;var o=e.stateNode;if(t===Ai||o.isScheduled||(o.isScheduled=!0,K?K.nextScheduledRoot=o:W=o,K=o),!$)switch(t){case Mi:B?c(Mi,null):c(Ii,null);break;case Ii:U?void 0:r("186");break;default:Y||(I(u),Y=!0)}}e=e.return}}function y(e,t){var n=L;return n===Ai&&(n=!j||e.internalContextTag&Li||t?Ri:Mi),n===Mi&&($||U)?Ii:n}function v(e){m(e,Ii,!0)}var g=fe(e),b=de(e),E=g.popHostContainer,w=g.popHostContext,x=g.resetHostContainer,k=ue(e,g,b,h,y),O=k.beginWork,_=k.beginFailedWork,C=le(e,g,b).completeWork;g=ce(e,f);var P=g.commitPlacement,S=g.commitDeletion,T=g.commitWork,N=g.commitLifeCycles,A=g.commitAttachRef,M=g.commitDetachRef,I=e.scheduleDeferredCallback,j=e.useSyncScheduling,R=e.prepareForCommit,D=e.resetAfterCommit,L=Ai,$=!1,F=!1,U=!1,B=!1,H=null,V=Ai,z=null,q=null,W=null,K=null,Y=!1,G=null,J=null,Q=null,X=null,Z=!1,ee=!1,te=!1,ne=1e3,re=0,oe=null;return{scheduleUpdate:h,getPriorityContext:y,batchedUpdates:function(e,t){var n=U;U=!0;try{return e(t)}finally{U=n,$||U||c(Ii,null)}},unbatchedUpdates:function(e){var t=B,n=U;B=U,U=!1;try{return e()}finally{U=n,B=t}},flushSync:function(e){var t=U,n=L;U=!0,L=Mi;try{return e()}finally{U=t,L=n,$?r("187"):void 0,c(Ii,null)}},deferredUpdates:function(e){var t=L;L=Ri;try{return e()}finally{L=t}}}}function he(){r("196")}function me(e){return e?(e=Yt.get(e),"number"==typeof e.tag?he(e):e._processChildContext(e._context)):Et}function ye(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ve(e,t){var n=ye(e);e=0;for(var r;n;){if(n.nodeType===iu){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ye(n)}}function ge(){return!uu&&yt.canUseDOM&&(uu="textContent"in document.documentElement?"textContent":"innerText"),uu}function be(){r("211")}function Ee(){r("212")}function we(e){if(null==e)return null;if(e.nodeType===du)return e;var t=Yt.get(e);return t?"number"==typeof t.tag?be(t):Ee(t):void("function"==typeof e.render?r("188"):r("213",Object.keys(e)))}function xe(e){if(void 0!==e._hostParent)return e._hostParent;if("number"==typeof e.tag){do e=e.return;while(e&&e.tag!==pu);if(e)return e}return null}function ke(e,t){for(var n=0,r=e;r;r=xe(r))n++;r=0;for(var o=t;o;o=xe(o))r++;for(;0this.eventPool.length&&this.eventPool.push(e)}function Me(e){e.eventPool=[],e.getPooled=Ne,e.release=Ae}function Ie(e,t,n,r){return Te.call(this,e,t,n,r)}function je(e,t,n,r){return Te.call(this,e,t,n,r)}function Re(e,t){switch(e){case"topKeyUp":return-1!==xu.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function De(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function Le(e,t){switch(e){case"topCompositionEnd":return De(t);case"topKeyPress":return 32!==t.which?null:(Au=!0,Tu);case"topTextInput":return e=t.data,e===Tu&&Au?null:e;default:return null}}function $e(e,t){if(Mu)return"topCompositionEnd"===e||!ku&&Re(e,t)?(e=bu.getData(),bu.reset(),Mu=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=l.hasBooleanValue+l.hasNumericValue+l.hasOverloadedBooleanValue?void 0:r("50",i),a.hasOwnProperty(i)&&(l.attributeName=a[i]),o.hasOwnProperty(i)&&(l.attributeNamespace=o[i]),e.hasOwnProperty(i)&&(l.mutationMethod=e[i]),jt.properties[i]=l}}},jt={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ATTRIBUTE_NAME_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},shouldSetAttribute:function(e,t){if(jt.isReservedProp(e)||!("o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return jt.shouldAttributeAcceptBooleanValue(e);case"undefined":case"number":case"string":case"object":return!0;default:return!1}},getPropertyInfo:function(e){return jt.properties.hasOwnProperty(e)?jt.properties[e]:null},shouldAttributeAcceptBooleanValue:function(e){if(jt.isReservedProp(e))return!0;var t=jt.getPropertyInfo(e);return t?t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:(e=e.toLowerCase().slice(0,5),"data-"===e||"aria-"===e)},isReservedProp:function(e){return Mt.hasOwnProperty(e)},injection:It},Rt=jt,Dt={IndeterminateComponent:0,FunctionalComponent:1,ClassComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,CoroutineComponent:7,CoroutineHandlerPhase:8,YieldComponent:9,Fragment:10},Lt={ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11},$t=Dt.HostComponent,Ft=Dt.HostText,Ut=Lt.ELEMENT_NODE,Bt=Lt.COMMENT_NODE,Ht=Rt.ID_ATTRIBUTE_NAME,Vt={hasCachedChildNodes:1},zt=Math.random().toString(36).slice(2),qt="__reactInternalInstance$"+zt,Wt="__reactEventHandlers$"+zt,Kt={getClosestInstanceFromNode:f,getInstanceFromNode:function(e){var t=e[qt];return t?t.tag===$t||t.tag===Ft?t:t._hostNode===e?t:null:(t=f(e),null!=t&&t._hostNode===e?t:null)},getNodeFromInstance:function(e){if(e.tag===$t||e.tag===Ft)return e.stateNode;if(void 0===e._hostNode?r("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:r("34"),e=e._hostParent;for(;t.length;e=t.pop())c(e,e._hostNode);return e._hostNode},precacheChildNodes:c,precacheNode:s,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[qt],e._hostNode=null)},precacheFiberNode:function(e,t){t[qt]=e},getFiberCurrentPropsFromNode:function(e){return e[Wt]||null},updateFiberProps:function(e,t){e[Wt]=t}},Yt={remove:function(e){e._reactInternalFiber=void 0},get:function(e){return e._reactInternalFiber},has:function(e){return void 0!==e._reactInternalFiber},set:function(e,t){e._reactInternalFiber=t}},Gt={ReactCurrentOwner:mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},Jt={NoEffect:0,PerformedWork:1,Placement:2,Update:4,PlacementAndUpdate:6,Deletion:8,ContentReset:16,Callback:32,Err:64,Ref:128},Qt=Dt.HostComponent,Xt=Dt.HostRoot,Zt=Dt.HostPortal,en=Dt.HostText,tn=Jt.NoEffect,nn=Jt.Placement,rn={isFiberMounted:function(e){return 2===p(e)},isMounted:function(e){return!!(e=Yt.get(e))&&2===p(e)},findCurrentFiberUsingSlowPath:m,findCurrentHostFiber:function(e){if(e=m(e),!e)return null;for(var t=e;;){if(t.tag===Qt||t.tag===en)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null},findCurrentHostFiberWithNoPortals:function(e){if(e=m(e),!e)return null;for(var t=e;;){if(t.tag===Qt||t.tag===en)return t;if(t.child&&t.tag!==Zt)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}},on={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback?r("197"):void 0,y=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,a,i,u,l){y.apply(on,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,a,i,u,l){if(on.invokeGuardedCallback.apply(this,arguments),on.hasCaughtError()){var s=on.clearCaughtError();on._hasRethrowError||(on._hasRethrowError=!0,on._rethrowError=s)}},rethrowCaughtError:function(){return v.apply(on,arguments)},hasCaughtError:function(){return on._hasCaughtError},clearCaughtError:function(){if(on._hasCaughtError){var e=on._caughtError;return on._caughtError=null,on._hasCaughtError=!1,e}r("198")}},an=on,un={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;return Array.isArray(t)?r("103"):void 0,e.currentTarget=t?un.getNodeFromInstance(n):null,t=t?t(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,t},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;ovn.length&&vn.push(e)}}}},bn=gn,En=null,wn={injection:{injectEventPluginOrder:At.injectEventPluginOrder,injectEventPluginsByName:At.injectEventPluginsByName},getListener:function(e,t){if("number"==typeof e.tag){var n=e.stateNode;if(!n)return null;var o=ln.getFiberCurrentPropsFromNode(n);if(!o)return null;if(n=o[t],N(t,e.type,o))return null}else{if(o=e._currentElement,"string"==typeof o||"number"==typeof o||!e._rootNodeID)return null;if(e=o.props,n=e[t],N(t,o.type,e))return null}return n&&"function"!=typeof n?r("231",t,typeof n):void 0,n},extractEvents:function(e,t,n,r){for(var o,a=At.plugins,i=0;in||r.hasOverloadedBooleanValue&&!1===n?Bn.deleteValueForProperty(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else Bn.setValueForAttribute(e,t,Rt.shouldSetAttribute(t,n)?n:null)},setValueForAttribute:function(e,t,n){R(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=Rt.getPropertyInfo(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}},Hn=Bn,Vn=Gt.ReactDebugCurrentFrame,zn={current:null,phase:null,resetCurrentFiber:function(){Vn.getCurrentStack=null,zn.current=null,zn.phase=null},setCurrentFiber:function(e,t){Vn.getCurrentStack=D,zn.current=e,zn.phase=t},getCurrentFiberOwnerName:function(){return null},getCurrentFiberStackAddendum:D},qn=zn,Wn={getHostProps:function(e,t){var n=t.value,r=t.checked;return vt({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})},initWrapperState:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}},updateWrapper:function(e,t){var n=t.checked;null!=n&&Hn.setValueForProperty(e,"checked",n||!1),n=t.value,null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(t=parseFloat(e.value)||0,(n!=t||n==t&&e.value!=n)&&(e.value=""+n)):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))},postMountWrapper:function(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)},restoreControlledState:function(e,t){Wn.updateWrapper(e,t);var n=t.name;if("radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(n=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),t=0;t=t.length?void 0:r("93"),t=t[0]),n=""+t),null==n&&(n=""),o=n),e._wrapperState={initialValue:""+o}},updateWrapper:function(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)},restoreControlledState:function(e,t){Jn.updateWrapper(e,t)}},Qn=Jn,Xn=vt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Zn={_getTrackerFromNode:function(e){return e._valueTracker},track:function(e){e._valueTracker||(e._valueTracker=B(e))},updateValueIfChanged:function(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)},stopTracking:function(e){(e=e._valueTracker)&&e.stopTracking()}},er=Pt.Namespaces,tr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!==er.svg||"innerHTML"in e)e.innerHTML=t;else for(Dn=Dn||document.createElement("div"),Dn.innerHTML=""+t+"",t=Dn.firstChild;t.firstChild;)e.appendChild(t.firstChild)}),nr=/["'&<>]/,rr=Lt.TEXT_NODE;yt.canUseDOM&&("textContent"in document.documentElement||(V=function(e,t){if(e.nodeType===rr)e.nodeValue=t;else{if("boolean"==typeof t||"number"==typeof t)t=""+t;else{t=""+t;var n=nr.exec(t);if(n){var r,o="",a=0;for(r=n.index;r",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e},createTextNode:function(e,t){return(t.nodeType===ir?t:t.ownerDocument).createTextNode(e)},setInitialProperties:function(e,t,n,r){var o=H(t,n);switch(t){case"iframe":case"object":Tn.trapBubbledEvent("topLoad","load",e);var a=n;break;case"video":case"audio":for(a in dr)dr.hasOwnProperty(a)&&Tn.trapBubbledEvent(a,dr[a],e);a=n;break;case"source":Tn.trapBubbledEvent("topError","error",e),a=n;break;case"img":case"image":Tn.trapBubbledEvent("topError","error",e),Tn.trapBubbledEvent("topLoad","load",e),a=n;break;case"form":Tn.trapBubbledEvent("topReset","reset",e),Tn.trapBubbledEvent("topSubmit","submit",e),a=n;break;case"details":Tn.trapBubbledEvent("topToggle","toggle",e),a=n;break;case"input":Kn.initWrapperState(e,n),a=Kn.getHostProps(e,n),Tn.trapBubbledEvent("topInvalid","invalid",e),z(r,"onChange");break;case"option":Yn.validateProps(e,n),a=Yn.getHostProps(e,n);break;case"select":Gn.initWrapperState(e,n),a=Gn.getHostProps(e,n),Tn.trapBubbledEvent("topInvalid","invalid",e),z(r,"onChange");break;case"textarea":Qn.initWrapperState(e,n),a=Qn.getHostProps(e,n),Tn.trapBubbledEvent("topInvalid","invalid",e),z(r,"onChange");break;default:a=n}F(t,a,ar);var i,u=a;for(i in u)if(u.hasOwnProperty(i)){var l=u[i];"style"===i?Ln.setValueForStyles(e,l):"dangerouslySetInnerHTML"===i?(l=l?l.__html:void 0,null!=l&&tr(e,l)):"children"===i?"string"==typeof l?or(e,l):"number"==typeof l&&or(e,""+l):"suppressContentEditableWarning"!==i&&(sr.hasOwnProperty(i)?null!=l&&z(r,i):o?Hn.setValueForAttribute(e,i,l):null!=l&&Hn.setValueForProperty(e,i,l))}switch(t){case"input":Zn.track(e),Kn.postMountWrapper(e,n);break;case"textarea":Zn.track(e),Qn.postMountWrapper(e,n);break;case"option":Yn.postMountWrapper(e,n);break;case"select":Gn.postMountWrapper(e,n);break;default:"function"==typeof a.onClick&&(e.onclick=bt)}},diffProperties:function(e,t,n,r,o){var a=null;switch(t){case"input":n=Kn.getHostProps(e,n),r=Kn.getHostProps(e,r),a=[];break;case"option":n=Yn.getHostProps(e,n),r=Yn.getHostProps(e,r),a=[];break;case"select":n=Gn.getHostProps(e,n),r=Gn.getHostProps(e,r),a=[];break;case"textarea":n=Qn.getHostProps(e,n),r=Qn.getHostProps(e,r),a=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=bt)}F(t,r,ar);var i,u;e=null;for(i in n)if(!r.hasOwnProperty(i)&&n.hasOwnProperty(i)&&null!=n[i])if("style"===i)for(u in t=n[i])t.hasOwnProperty(u)&&(e||(e={}),e[u]="");else"dangerouslySetInnerHTML"!==i&&"children"!==i&&"suppressContentEditableWarning"!==i&&(sr.hasOwnProperty(i)?a||(a=[]):(a=a||[]).push(i,null));for(i in r){var l=r[i];if(t=null!=n?n[i]:void 0,r.hasOwnProperty(i)&&l!==t&&(null!=l||null!=t))if("style"===i)if(t){for(u in t)!t.hasOwnProperty(u)||l&&l.hasOwnProperty(u)||(e||(e={}),e[u]="");for(u in l)l.hasOwnProperty(u)&&t[u]!==l[u]&&(e||(e={}),e[u]=l[u])}else e||(a||(a=[]),a.push(i,e)),e=l;else"dangerouslySetInnerHTML"===i?(l=l?l.__html:void 0,t=t?t.__html:void 0,null!=l&&t!==l&&(a=a||[]).push(i,""+l)):"children"===i?t===l||"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(i,""+l):"suppressContentEditableWarning"!==i&&(sr.hasOwnProperty(i)?(null!=l&&z(o,i),a||t===l||(a=[])):(a=a||[]).push(i,l))}return e&&(a=a||[]).push("style",e),a},updateProperties:function(e,t,n,r,o){H(n,r),r=H(n,o);for(var a=0;at&&(t=8),wr=t=q(s.priorityLevel,i);){n.first=s.next,null===n.first&&(n.last=null);var c;s.isReplace?(o=J(s,r,o,a),l=!0):(c=J(s,r,o,a))&&(o=l?vt({},o,c):vt(o,c),l=!1),s.isForced&&(u=!0),null===s.callback||s.isTopLevelUnmount&&null!==s.next||(e=null!==e?e:[],e.push(s.callback),t.effectTag|=Nr),s=s.next}return n.callbackList=e,n.hasForceUpdate=u,null!==n.first||null!==e||u||(t.updateQueue=null),o},commitCallbacks:function(e,t,n){if(e=t.callbackList,null!==e)for(t.callbackList=null,t=0;tUr||(e.current=Fr[Ur],Fr[Ur]=null,Ur--)},push:function(e,t){Ur++,Fr[Ur]=e.current,e.current=t},reset:function(){for(;-1e)?e:t}},po=fo.createHostRootFiber,ho=Dt.IndeterminateComponent,mo=Dt.FunctionalComponent,yo=Dt.ClassComponent,vo=Dt.HostComponent;"function"==typeof Symbol&&Symbol.for?(_r=Symbol.for("react.coroutine"),Cr=Symbol.for("react.yield")):(_r=60104,Cr=60105);var go={createCoroutine:function(e,t,n){var r=3t&&(r=t,t=o,o=r),r=ve(e,o),e=ve(e,t),r&&e){var a=document.createRange();a.setStart(r.node,r.offset),n.removeAllRanges(),o>t?(n.addRange(a),n.extend(e.node,e.offset)):(a.setEnd(e.node,e.offset),n.addRange(a))}}}},su=Lt.ELEMENT_NODE,cu={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=Ot();return{focusedElem:e,selectionRange:cu.hasSelectionCapabilities(e)?cu.getSelection(e):null}},restoreSelection:function(e){var t=Ot(),n=e.focusedElem;if(e=e.selectionRange,t!==n&&xt(document.documentElement,n)){for(cu.hasSelectionCapabilities(n)&&cu.setSelection(n,e),t=[],e=n;e=e.parentNode;)e.nodeType===su&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(kt(n),n=0;n=parseInt(Cu.version(),10))}var Pu=_u,Su=yt.canUseDOM&&(!ku||Ou&&8=Ou),Tu=String.fromCharCode(32),Nu={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Au=!1,Mu=!1,Iu={eventTypes:Nu,extractEvents:function(e,t,n,r){var o;if(ku)e:{switch(e){case"topCompositionStart":var a=Nu.compositionStart;break e;case"topCompositionEnd":a=Nu.compositionEnd;break e;case"topCompositionUpdate":a=Nu.compositionUpdate;break e}a=void 0}else Mu?Re(e,n)&&(a=Nu.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(a=Nu.compositionStart);return a?(Su&&(Mu||a!==Nu.compositionStart?a===Nu.compositionEnd&&Mu&&(o=bu.getData()):Mu=bu.initialize(r)),a=Ie.getPooled(a,t,n,r),o?a.data=o:(o=De(n),null!==o&&(a.data=o)),yu.accumulateTwoPhaseDispatches(a),o=a):o=null,(e=Pu?Le(e,n):$e(e,n))?(t=je.getPooled(Nu.beforeInput,t,n,r),t.data=e,yu.accumulateTwoPhaseDispatches(t)):t=null,[o,t]}},ju={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Ru={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Du=null,Lu=null,$u=!1;yt.canUseDOM&&($u=A("input")&&(!document.documentMode||9=document.documentMode,qu={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},Wu=null,Ku=null,Yu=null,Gu=!1,Ju=Tn.isListeningToAllDependencies,Qu={eventTypes:qu,extractEvents:function(e,t,n,r){var o=r.window===r?r.document:r.nodeType===Vu?r:r.ownerDocument;if(!o||!Ju("onSelect",o))return null;switch(o=t?Kt.getNodeFromInstance(t):window,e){case"topFocus":(Fe(o)||"true"===o.contentEditable)&&(Wu=o,Ku=t,Yu=null);break;case"topBlur":Yu=Ku=Wu=null;break;case"topMouseDown":Gu=!0;break;case"topContextMenu":case"topMouseUp":return Gu=!1,et(n,r);case"topSelectionChange":if(zu)break;case"topKeyDown":case"topKeyUp":return et(n,r)}return null}};Te.augmentClass(tt,{animationName:null,elapsedTime:null,pseudoElement:null}),Te.augmentClass(nt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Je.augmentClass(rt,{relatedTarget:null});var Xu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};Je.augmentClass(at,{key:function(e){if(e.key){var t=Xu[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=ot(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?Zu[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Xe,charCode:function(e){return"keypress"===e.type?ot(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ot(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ze.augmentClass(it,{dataTransfer:null}),Je.augmentClass(ut,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Xe}),Te.augmentClass(lt,{propertyName:null,elapsedTime:null,pseudoElement:null}),Ze.augmentClass(st,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var el={},tl={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;t="top"+t,n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t]},el[e]=n,tl[t]=n});var nl={eventTypes:el,extractEvents:function(e,t,n,o){var a=tl[e];if(!a)return null;switch(e){case"topAbort":case"topCancel":case"topCanPlay":case"topCanPlayThrough":case"topClose":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topToggle":case"topVolumeChange":case"topWaiting":var i=Te;break;case"topKeyPress":if(0===ot(n))return null;case"topKeyDown":case"topKeyUp":i=at;break;case"topBlur":case"topFocus":i=rt;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=Ze;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=it;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=ut;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=tt;break;case"topTransitionEnd":i=lt;break;case"topScroll":i=Je;break;case"topWheel":i=st;break;case"topCopy":case"topCut":case"topPaste":i=nt}return i?void 0:r("86",e),e=i.getPooled(a,t,n,o),yu.accumulateTwoPhaseDispatches(e),e}};bn.setHandleTopLevel(Tn.handleTopLevel),wn.injection.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),ln.injection.injectComponentTree(Kt),wn.injection.injectEventPluginsByName({SimpleEventPlugin:nl,EnterLeaveEventPlugin:Hu,ChangeEventPlugin:Fu,SelectEventPlugin:Qu,BeforeInputEventPlugin:Iu});var rl=Rt.injection.MUST_USE_PROPERTY,ol=Rt.injection.HAS_BOOLEAN_VALUE,al=Rt.injection.HAS_NUMERIC_VALUE,il=Rt.injection.HAS_POSITIVE_NUMERIC_VALUE,ul=Rt.injection.HAS_STRING_BOOLEAN_VALUE,ll={Properties:{allowFullScreen:ol,allowTransparency:ul,async:ol,autoPlay:ol,capture:ol,checked:rl|ol,cols:il,contentEditable:ul,controls:ol,default:ol,defer:ol,disabled:ol,download:Rt.injection.HAS_OVERLOADED_BOOLEAN_VALUE,draggable:ul,formNoValidate:ol,hidden:ol,loop:ol,multiple:rl|ol,muted:rl|ol,noValidate:ol,open:ol,playsInline:ol,readOnly:ol,required:ol,reversed:ol,rows:il,rowSpan:al,scoped:ol,seamless:ol,selected:rl|ol,size:il,start:al,span:il,spellCheck:ul,style:0,itemScope:ol,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:ul},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){return null==t?e.removeAttribute("value"):void("number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t))}}},sl=Rt.injection.HAS_STRING_BOOLEAN_VALUE,cl={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},fl={Properties:{autoReverse:sl,externalResourcesRequired:sl,preserveAlpha:sl},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:cl.xlink,xlinkArcrole:cl.xlink,xlinkHref:cl.xlink,xlinkRole:cl.xlink,xlinkShow:cl.xlink,xlinkTitle:cl.xlink,xlinkType:cl.xlink,xmlBase:cl.xml,xmlLang:cl.xml,xmlSpace:cl.xml}},dl=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(dl,ct);fl.Properties[t]=0,fl.DOMAttributeNames[t]=e}),Rt.injection.injectDOMPropertyConfig(ll),Rt.injection.injectDOMPropertyConfig(fl);var pl=ni.injectInternals,hl=Lt.ELEMENT_NODE,ml=Lt.TEXT_NODE,yl=Lt.COMMENT_NODE,vl=Lt.DOCUMENT_NODE,gl=Lt.DOCUMENT_FRAGMENT_NODE,bl=Rt.ROOT_ATTRIBUTE_NAME,El=Pt.getChildNamespace,wl=pr.createElement,xl=pr.createTextNode,kl=pr.setInitialProperties,Ol=pr.diffProperties,_l=pr.updateProperties,Cl=pr.diffHydratedProperties,Pl=pr.diffHydratedText,Sl=pr.warnForDeletedHydratableElement,Tl=pr.warnForDeletedHydratableText,Nl=pr.warnForInsertedHydratedElement,Al=pr.warnForInsertedHydratedText,Ml=Kt.precacheFiberNode,Il=Kt.updateFiberProps;dn.injection.injectFiberControlledHostComponent(pr),we._injectFiber(function(e){return Dl.findHostInstance(e)});var jl=null,Rl=null,Dl=function(e){var t=e.getPublicInstance;e=pe(e);var n=e.scheduleUpdate,r=e.getPriorityContext;return{createContainer:function(e){var t=po();return e={current:t,containerInfo:e,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null},t.stateNode=e},updateContainer:function(e,t,o,a){var i=t.current;o=me(o),null===t.context?t.context=o:t.pendingContext=o,t=a,a=r(i,Sr.enableAsyncSubtreeAPI&&null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent),e={element:e},Zi(i,e,void 0===t?null:t,a),n(i,a)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case ru:return t(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:function(e){return e=ou(e),null===e?null:e.stateNode},findHostInstanceWithNoPortals:function(e){return e=au(e),null===e?null:e.stateNode}}}({getRootHostContext:function(e){if(e.nodeType===vl)e=(e=e.documentElement)?e.namespaceURI:El(null,"");else{var t=e.nodeType===yl?e.parentNode:e;e=t.namespaceURI||null,t=t.tagName,e=El(e,t)}return e},getChildHostContext:function(e,t){return El(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){jl=Tn.isEnabled(),Rl=fu.getSelectionInformation(),Tn.setEnabled(!1)},resetAfterCommit:function(){fu.restoreSelection(Rl),Rl=null,Tn.setEnabled(jl),jl=null},createInstance:function(e,t,n,r,o){return e=wl(e,t,n,r),Ml(o,e),Il(e,t),e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){kl(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,o){return Ol(e,t,n,r,o)},commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,o){Il(e,o),_l(e,t,n,r,o)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html},resetTextContent:function(e){e.textContent=""},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=xl(e,t),Ml(r,e),e},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){e.nodeType===yl?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){e.nodeType===yl?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.nodeType===yl?e.parentNode.removeChild(t):e.removeChild(t)},canHydrateInstance:function(e,t){return e.nodeType===hl&&t===e.nodeName.toLowerCase()},canHydrateTextInstance:function(e,t){return""!==t&&e.nodeType===ml},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&e.nodeType!==hl&&e.nodeType!==ml;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&e.nodeType!==hl&&e.nodeType!==ml;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,o,a){return Ml(a,e),Il(e,n),Cl(e,t,n,o,r)},hydrateTextInstance:function(e,t,n){return Ml(n,e),Pl(e,t)},didNotHydrateInstance:function(e,t){1===t.nodeType?Sl(e,t):Tl(e,t)},didNotFindHydratableInstance:function(e,t,n){Nl(e,t,n)},didNotFindHydratableTextInstance:function(e,t){Al(e,t)},scheduleDeferredCallback:Pr.rIC,useSyncScheduling:!0});hn.injection.injectFiberBatchedUpdates(Dl.batchedUpdates);var Ll={createPortal:ht,hydrate:function(e,t,n){return pt(null,e,t,!0,n)},render:function(e,t,n){return pt(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return null!=e&&Yt.has(e)?void 0:r("38"),pt(e,t,n,!1,o)},unmountComponentAtNode:function(e){return ft(e)?void 0:r("40"),!!e._reactRootContainer&&(Dl.unbatchedUpdates(function(){pt(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},findDOMNode:we,unstable_createPortal:ht,unstable_batchedUpdates:hn.batchedUpdates,unstable_deferredUpdates:Dl.deferredUpdates,flushSync:Dl.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:wn,EventPluginRegistry:At,EventPropagators:yu,ReactControlledComponent:dn,ReactDOMComponentTree:Kt,ReactDOMEventListener:bn}};pl({findFiberByHostInstance:Kt.getClosestInstanceFromNode,findHostInstanceByFiber:Dl.findHostInstance,bundleType:0,version:"16.0.0",rendererPackageName:"react-dom"}),e.exports=Ll},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(e.children!==t.children)return!1;var n=Object.keys(t),r=t.forceState?-1:0,a=e.forceState?-1:0;if(n.length+r!==Object.keys(e).length+a)return!1;for(var l=function(n){return!!u.statePropOptionKeys.some(function(e){return t[n][e]})&&u.statePropOptionKeys.every(function(r){return t[n][r]===e[n][r]})},s=0;s=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a.createElement;return function(t,n){return u.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return r.reduceRight(function(t,n){return n(t,e)},i.default.createElement(l.default,o({},e,{createElement:s(e.createElement)})))}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(132),a=r(o),i=n(47),u=r(i);t.default=(0,u.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=(0,a.getParamNames)(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,a=void 0,i=void 0,u=void 0;if(n){var l=!1;a=n.filter(function(n){if(l)return!0;var a=o.indexOf(n)===-1||r(n,e,t);return a&&(l=!0),a}),a.reverse(),u=[],i=[],o.forEach(function(e){var t=n.indexOf(e)===-1,r=a.indexOf(e)!==-1;t||r?u.push(e):i.push(e)})}else a=[],i=[],u=o;return{leaveRoutes:a,changeRoutes:i,enterRoutes:u}}t.__esModule=!0;var a=n(18);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(r){var o=r.call(t,e,n);(0,i.isPromise)(o)&&o.then(function(e){return n(null,e)},n)}else n()}function o(e,t){(0,a.mapAsync)(e.routes,function(t,n,o){r(e,t,o)},t)}t.__esModule=!0;var a=n(31),i=n(43);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n={};return e.path?((0,o.getParamNames)(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}),n):n}t.__esModule=!0;var o=n(18);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(133),a=r(o),i=n(47),u=r(i);t.default=(0,u.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"===("undefined"==typeof e?"undefined":l(e))){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}function a(e,t,n){for(var r=e,o=[],a=[],i=0,u=t.length;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){var n=e.history,r=e.routes,a=e.location,l=o(e,["history","routes","location"]); +n||a?void 0:(0,s.default)(!1),n=n?n:(0,f.default)(l);var c=(0,p.default)(n,(0,h.createRoutes)(r));a=a?n.createLocation(a):n.getCurrentLocation(),c.match(a,function(e,r,o){var a=void 0;if(o){var l=(0,m.createRouterObject)(n,c,o);a=i({},o,{router:l,matchContext:{transitionManager:c,router:l}})}t(e,r&&n.createLocation(r,u.REPLACE),a)})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=c({},t,{pathname:"/"+t.pathname})),r=t.pathname),(0,f.loopAsync)(e.length,function(n,i,u){l(e[n],t,r,o,a,function(e,t){e||t?u(e,t):i()})},n)}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t=e&&i&&(o=!0,n()))}};s()}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var o=n(35);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return o.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}});var a=n(15),i=(r(a),n(20)),u=n(27),l=n(50),s=n(14),c="hashchange",f=function(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)},d=function(e){return window.location.hash=e},p=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},h=t.getCurrentLocation=function(e,t){var n=e.decodePath(f()),r=(0,s.getQueryStringValueFromPath)(n,t),o=void 0;r&&(n=(0,s.stripQueryStringValueFromPath)(n,t),o=(0,l.readState)(r));var a=(0,s.parsePath)(n);return a.state=o,(0,i.createLocation)(a,void 0,r)},m=void 0,y=(t.startListener=function(e,t,n){var r=function(){var r=f(),o=t.encodePath(r);if(r!==o)p(o);else{var a=h(t,n);if(m&&a.key&&m.key===a.key)return;m=a,e(a)}},o=f(),a=t.encodePath(o);return o!==a&&p(a),(0,u.addEventListener)(window,c,r),function(){return(0,u.removeEventListener)(window,c,r)}},function(e,t,n,r){var o=e.state,a=e.key,i=t.encodePath((0,s.createPath)(e));void 0!==o&&(i=(0,s.addQueryStringValueToPath)(i,n,a),(0,l.saveState)(a,o)),m=e,r(i)});t.pushLocation=function(e,t,n){return y(e,t,n,function(e){f()!==e&&d(e)})},t.replaceLocation=function(e,t,n){return y(e,t,n,function(e){f()!==e&&p(e)})}},function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(35);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(20),a=n(14);t.getCurrentLocation=function(){return(0,o.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,a.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,a.createPath)(e)),!1}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};l.canUseDOM?void 0:(0,u.default)(!1);var t=e.forceRefresh||!(0,p.supportsHistory)(),n=t?d:c,r=n.getUserConfirmation,o=n.getCurrentLocation,i=n.pushLocation,s=n.replaceLocation,f=n.go,h=(0,m.default)(a({getUserConfirmation:r},e,{getCurrentLocation:o,pushLocation:i,replaceLocation:s,go:f})),y=0,v=void 0,g=function(e,t){1===++y&&(v=c.startListener(h.transitionTo));var n=t?h.listenBefore(e):h.listen(e);return function(){n(),0===--y&&v()}},b=function(e){return g(e,!0)},E=function(e){return g(e,!1)};return a({},h,{listenBefore:b,listen:E})};t.default=y},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};s.canUseDOM?void 0:(0,l.default)(!1);var t=e.queryKey,n=e.hashType;"string"!=typeof t&&(t=m),null==n&&(n="slash"),n in v||(n="slash");var r=v[n],o=d.getUserConfirmation,i=function(){return d.getCurrentLocation(r,t)},u=function(e){return d.pushLocation(e,r,t)},f=function(e){return d.replaceLocation(e,r,t)},p=(0,h.default)(a({getUserConfirmation:o},e,{getCurrentLocation:i,pushLocation:u,replaceLocation:f,go:d.go})),y=0,g=void 0,b=function(e,n){1===++y&&(g=d.startListener(p.transitionTo,r,t));var o=n?p.listenBefore(e):p.listen(e);return function(){o(),0===--y&&g()}},E=function(e){return b(e,!0)},w=function(e){return b(e,!1)},x=((0,c.supportsGoWithoutReloadUsingHash)(),function(e){p.go(e)}),k=function(e){return"#"+r.encodePath(p.createHref(e))};return a({},p,{listenBefore:E,listen:w,go:x,createHref:k})};t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)?e={entries:e}:"string"==typeof e&&(e={entries:[e]});var t=function(){var e=m[y],t=(0,s.createPath)(e),n=void 0,r=void 0;e.key&&(n=e.key,r=b(n));var a=(0,s.parsePath)(t);return(0,l.createLocation)(o({},a,{state:r}),void 0,n)},n=function(e){var t=y+e;return t>=0&&t=0&&yA.length&&A.push(e)}function d(e,t,n,o){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===T)return n(o,e,""===t?"."+p(e,0):t),1;var i=0;if(t=""===t?".":t+":",Array.isArray(e))for(var u=0;u-1?t:e}function p(e,t){t=t||{};var n=t.body;if(e instanceof p){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=d(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function m(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function y(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var v={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(v.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},E=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},v.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},f.call(p.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];y.redirect=function(e,t){if(x.indexOf(t)===-1)throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=p,e.Response=y,e.fetch=function(e,t){return new Promise(function(n,r){var o=new p(e,t),a=new XMLHttpRequest;a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:m(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;n(new y(t,e))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&v.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)}]); \ No newline at end of file diff --git a/src/components/example/Base.js b/src/components/example/Base.js new file mode 100644 index 0000000..31ee78f --- /dev/null +++ b/src/components/example/Base.js @@ -0,0 +1,52 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import Interactive from 'react-interactive'; +import { Link } from 'react-router'; +import s from '../../styles/app.style'; + +const propTypes = { + children: PropTypes.element.isRequired, + routes: PropTypes.array.isRequired, +}; + +function ExampleBase({ children, routes }) { + + function generateMapMenu() { + let path = ''; + + function nextPath(route) { + path += ( + (path.slice(-1) === '/' ? '' : '/') + + (route.path === '/' ? '' : route.path) + ); + return path; + } + + return ( + routes.filter(route => route.mapMenuTitle) + .map((route, index, array) => ( + + {route.mapMenuTitle} + {(index + 1) < array.length && ' / '} + + )) + ); + } + + return ( +
+ + {children} +
+ ); +} + +ExampleBase.propTypes = propTypes; + +export default ExampleBase; diff --git a/src/index.js b/src/components/index.js similarity index 80% rename from src/index.js rename to src/components/index.js index c6c3535..60e1ae4 100644 --- a/src/index.js +++ b/src/components/index.js @@ -3,36 +3,37 @@ import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; /* Common Components */ -import App from './components/Base'; -import PageNotFound from './components/PageNotFound'; -import UnderConstruction from './components/UnderConstruction'; +import App from './Base'; +import PageNotFound from './PageNotFound'; +import UnderConstruction from './UnderConstruction'; /* Home Component */ -import Home from './components/Home'; -import EnterTheCode from './components/account/EnterTheCode'; +import Home from './Home'; +import EnterTheCode from './account/EnterTheCode'; /* Test Components */ -import ExampleHome from './components/example/Home'; -import ExampleComponent from './components/example/ExampleComponent'; -import ExampleTwoDeepComponent from './components/example/ExampleTwoDeepComponent'; +import ExampleHome from './example/Home'; +import ExampleBase from './example/Base'; +import ExampleComponent from './example/ExampleComponent'; +import ExampleTwoDeepComponent from './example/ExampleTwoDeepComponent'; /* Collection */ -import CollectionHome from './components/collection/Home'; +import CollectionHome from './collection/Home'; /* Portal */ -import PortalBase from './components/portal/Base'; -import PortalHome from './components/portal/Home'; -import Attacks from './components/portal/Category/Attacks'; -import SingleAttack from './components/portal/Single/Attack'; -import Battlegear from './components/portal/Category/Battlegear'; -import SingleBattlegear from './components/portal/Single/Battlegear'; -import Creatures from './components/portal/Category/Creatures'; -import SingleCreature from './components/portal/Single/Creature'; -import Locations from './components/portal/Category/Locations'; -import SingleLocation from './components/portal/Single/Location'; -import Mugic from './components/portal/Category/Mugic'; -import SingleMugic from './components/portal/Single/Mugic'; -import Tribes from './components/portal/Category/Tribes'; +import PortalBase from './portal/Base'; +import PortalHome from './portal/Home'; +import Attacks from './portal/Category/Attacks'; +import SingleAttack from './portal/Single/Attack'; +import Battlegear from './portal/Category/Battlegear'; +import SingleBattlegear from './portal/Single/Battlegear'; +import Creatures from './portal/Category/Creatures'; +import SingleCreature from './portal/Single/Creature'; +import Locations from './portal/Category/Locations'; +import SingleLocation from './portal/Single/Location'; +import Mugic from './portal/Category/Mugic'; +import SingleMugic from './portal/Single/Mugic'; +import Tribes from './portal/Category/Tribes'; const routes = ( @@ -40,7 +41,8 @@ const routes = ( {/* Test */} - + + @@ -59,7 +61,6 @@ const routes = ( {/* Portal */} - {/* Attacks */} diff --git a/src/components/portal/Base.js b/src/components/portal/Base.js index b6d4f12..4eddc02 100644 --- a/src/components/portal/Base.js +++ b/src/components/portal/Base.js @@ -1,53 +1,55 @@ import React from 'react'; import PropTypes from 'prop-types'; -import Interactive from 'react-interactive'; -import { Link } from 'react-router'; import s from '../../styles/app.style'; +import Interactive from 'react-interactive'; +import {observable} from "mobx"; +import {observer, inject} from 'mobx-react'; +import { Link } from 'react-router'; -const propTypes = { - children: PropTypes.element.isRequired, - routes: PropTypes.array.isRequired, -}; - -function PortalBase({ children, routes }) { - - function generateMapMenu() { - let path = ''; - - function nextPath(route) { - path += ( - (path.slice(-1) === '/' ? '' : '/') + - (route.path === '/' ? '' : route.path) - ); - return path; - } +@inject((stores, props, context) => props) @observer +export default class PortalBase extends React.Component { + render() { return ( - routes.filter(route => route.mapMenuTitle) - .map((route, index, array) => ( - - {route.mapMenuTitle} - {(index + 1) < array.length && ' / '} - - )) +
+ +
+
+ {this.props.children} +
); } +} + +function Header(props) { + const tribes = ["Danian", "Mipedian", "OverWorld", "UnderWorld"].map((tribe, i) => { + return ( +
  • + {tribe} +
    + Creatures + Mugic +
    +
  • + ); + }); return ( -
    - - - {children} +
    +
      +
    • Home
    • +
    • + Types +
      + Attacks + Battlegear + Creatures + Mugic + Locations +
      +
    • + {tribes} +
    ); } - -PortalBase.propTypes = propTypes; - -export default PortalBase; diff --git a/src/components/portal/Single/Creature.js b/src/components/portal/Single/Creature.js index ddf2ff5..0842215 100644 --- a/src/components/portal/Single/Creature.js +++ b/src/components/portal/Single/Creature.js @@ -116,16 +116,6 @@ export default class SingleCreature extends React.Component { {creature.gsx$weight}

    -
    - Special Abilities:
    - {creature.gsx$specialabilities} -
    -
    -
    - Weight (lb):
    - {creature.gsx$weight} -
    -
    Card ID: {card_data.gsx$id} diff --git a/src/css/portal.css b/src/css/portal.css index b13feac..de2a220 100644 --- a/src/css/portal.css +++ b/src/css/portal.css @@ -23,6 +23,60 @@ display: block; } -h1 { +.navbar h1 { font-size: 16px; } + +.navbar ul { + list-style-type: none; + margin: 0; + padding: 0; + overflow: hidden; + background-color: #333; +} + +.navbar li { + float: left; +} + +.navbar li a, .dropbtn { + display: inline-block; + color: white; + text-align: center; + padding: 14px 16px; + text-decoration: none; +} + +.navbar li a:hover, .dropdown:hover .dropbtn { + background-color: red; +} + +.navbar li.dropdown { + display: inline-block; +} + +.dropdown-content { + display: none; + position: absolute; + /*background-color: #f9f9f9;*/ + background-color: inherit; + min-width: 160px; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.9); + z-index: 1; +} + +.dropdown-content a { + color: black; + padding: 12px 16px; + text-decoration: none; + display: block; + text-align: left; +} + +.dropdown-content a:hover { + background-color: #f1f1f1 +} + +.dropdown:hover .dropdown-content { + display: block; +} diff --git a/webpack.config.babel.js b/webpack.config.babel.js index 0b45362..074783a 100644 --- a/webpack.config.babel.js +++ b/webpack.config.babel.js @@ -2,7 +2,7 @@ import webpack from 'webpack'; import path from 'path'; export default { - entry: `${__dirname}/src/index.js`, + entry: `${__dirname}/src/components/index.js`, output: { path: `${__dirname}/build`, publicPath: '/build/',