Skip to content

Instantly share code, notes, and snippets.

@gaearon
Created August 24, 2017 01:27
Show Gist options
  • Save gaearon/2d67d4fa6c77509dfc6760251d119574 to your computer and use it in GitHub Desktop.
Save gaearon/2d67d4fa6c77509dfc6760251d119574 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
diff --git a/dist/react-art.development.js b/dist/react-art.development.js
index f11edd2..a10d99f 100644
--- a/dist/react-art.development.js
+++ b/dist/react-art.development.js
@@ -802,23 +802,14 @@ var ReactFiberUpdateQueue = {
*
*/
-function getComponentName$1(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName$1(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -878,7 +869,6 @@ var ReactGlobalSharedState = {
{
index(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
});
}
@@ -2829,14 +2819,9 @@ function coerceRef(current, element) {
var owner = element._owner;
var inst = void 0;
if (owner) {
- if (typeof owner.tag === 'number') {
- var ownerFiber = owner;
- !(ownerFiber.tag === ClassComponent$7) ? invariant_1(false, 'Stateless function components cannot have refs.') : void 0;
- inst = ownerFiber.stateNode;
- } else {
- // Stack
- inst = owner.getPublicInstance();
- }
+ var ownerFiber = owner;
+ !(ownerFiber.tag === ClassComponent$7) ? invariant_1(false, 'Stateless function components cannot have refs.') : void 0;
+ inst = ownerFiber.stateNode;
}
!inst ? invariant_1(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;
var stringRef = '' + mixedRef;
@@ -7684,46 +7669,6 @@ var ReactFiberScheduler = function (config) {
};
};
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule getContextForSubtree
- *
- */
-
-
-
-
-
-
-var getContextFiber = function (arg) {
- invariant_1(false, 'Missing injection for fiber getContextForSubtree');
-};
-
-function getContextForSubtree(parentComponent) {
- if (!parentComponent) {
- return emptyObject_1;
- }
-
- var instance = ReactInstanceMap_1.get(parentComponent);
- if (typeof instance.tag === 'number') {
- return getContextFiber(instance);
- } else {
- return instance._processChildContext(instance._context);
- }
-}
-
-getContextForSubtree._injectFiber = function (fn) {
- getContextFiber = fn;
-};
-
-var getContextForSubtree_1 = getContextForSubtree;
-
var addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate;
var findCurrentUnmaskedContext = ReactFiberContext.findCurrentUnmaskedContext;
@@ -7734,8 +7679,11 @@ var createFiberRoot = ReactFiberRoot.createFiberRoot;
+
var HostComponent = ReactTypeOfWork.HostComponent;
+
+
{
var warning = warning_1;
var ReactFiberInstrumentation = ReactFiberInstrumentation_1;
@@ -7746,12 +7694,15 @@ var HostComponent = ReactTypeOfWork.HostComponent;
var findCurrentHostFiber = ReactFiberTreeReflection.findCurrentHostFiber;
var findCurrentHostFiberWithNoPortals = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
+function getContextForSubtree(parentComponent) {
+ if (!parentComponent) {
+ return emptyObject_1;
+ }
-
-getContextForSubtree_1._injectFiber(function (fiber) {
+ var fiber = ReactInstanceMap_1.get(parentComponent);
var parentContext = findCurrentUnmaskedContext(fiber);
return isContextProvider(fiber) ? processChildContext(fiber, parentContext, false) : parentContext;
-});
+}
var ReactFiberReconciler = function (config) {
var getPublicInstance = config.getPublicInstance;
@@ -7806,7 +7757,7 @@ var ReactFiberReconciler = function (config) {
}
}
- var context = getContextForSubtree_1(parentComponent);
+ var context = getContextForSubtree(parentComponent);
if (container.context === null) {
container.context = context;
} else {
diff --git a/dist/react-art.production.min.js b/dist/react-art.production.min.js
index d474fec..448d698 100644
--- a/dist/react-art.production.min.js
+++ b/dist/react-art.production.min.js
@@ -1,165 +1,164 @@
-function Ta(kd,ld,md,ia){function ub(a){ya&&(vb[a]=ya.addRule("av\\:"+a,"behavior:url(#default#VML);display:inline-block;position:absolute;left:0px;top:0px;"))}function Ua(a,b){1!=b[3]?a+="a":b.pop();return a+"("+b.join(", ")+")"}function r(a,b){if(a.isColor)this.red=a.red,this.green=a.green,this.blue=a.blue,this.alpha=a.alpha;else{var c=mc[a];c&&(a=c,b="hex");switch(typeof a){case "string":b||(b=(b=a.match(/^rgb|^hsb|^hsl/))?b[0]:"hex");break;case "object":b=b||"rgb";a=a.toString();break;case "number":b=
-"hex",a=a.toString(16)}a=r["parse"+b.toUpperCase()](a);this.red=a[0];this.green=a[1];this.blue=a[2];this.alpha=a[3]}this.isColor=!0}function ja(a,b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b(a[d],d);return c}function wb(){clearTimeout(ka);ka=null;var a=Va;Va=[];for(var b=0,c=a.length;b<c;b++){var d=a[b];d._valid=!0;d.render()}}function z(a){for(var b={},c=0,d=arguments.length;c<d;c++){var e=arguments[c];"function"==typeof e&&(e=e.prototype);for(var f in e)b[f]=e[f]}b.initialize||(b.initialize=function(){});
-b.constructor=function(a,c,d,e,f,v,l,q){return new b.initialize(a,c,d,e,f,v,l,q)};b.constructor.prototype=b.initialize.prototype=b;return b.constructor}function nc(a){a=xb(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child&&4!==b.tag)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null}function oc(a){a=xb(a);if(!a)return null;for(var b=a;;){if(5===
-b.tag||6===b.tag)return b;if(b.child)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null}function yb(){p("196")}function pc(a){function b(){for(;null!==E&&0===E.current.pendingWorkPriority;){E.isScheduled=!1;var a=E.nextScheduledRoot;E.nextScheduledRoot=null;if(E===P)return P=E=null,A=0,null;E=a}a=E;for(var b=null,c=0;null!==a;)0!==a.current.pendingWorkPriority&&(0===
-c||c>a.current.pendingWorkPriority)&&(c=a.current.pendingWorkPriority,b=a),a=a.nextScheduledRoot;if(null!==b){for(A=c;-1<Z;)za[Z]=null,Z--;Aa=U;aa.current=U;S.current=!1;la();F=zb(b.current,c)}else A=0,F=null}function c(c){W=!0;D=null;var d=c.stateNode;d.current===c?p("177"):void 0;1!==A&&2!==A||Y++;ma.current=null;if(1<c.effectTag)if(null!==c.lastEffect){c.lastEffect.nextEffect=c;var e=c.firstEffect}else e=c;else e=c.firstEffect;H();for(y=e;null!==y;){var f=!1,g=void 0;try{for(;null!==y;){var h=
-y.effectTag;h&16&&a.resetTextContent(y.stateNode);if(h&128){var M=y.alternate;null!==M&&qc(M)}switch(h&-242){case 2:Ab(y);y.effectTag&=-3;break;case 6:Ab(y);y.effectTag&=-3;Bb(y.alternate,y);break;case 4:Bb(y.alternate,y);break;case 8:X=!0,rc(y),X=!1}y=y.nextEffect}}catch(Wa){f=!0,g=Wa}f&&(null===y?p("178"):void 0,n(y,g),null!==y&&(y=y.nextEffect))}J();d.current=c;for(y=e;null!==y;){c=!1;d=void 0;try{for(;null!==y;){var x=y.effectTag;x&36&&sc(y.alternate,y);x&128&&tc(y);if(x&64)switch(e=y,f=void 0,
-null!==L&&(f=L.get(e),L["delete"](e),null==f&&null!==e.alternate&&(e=e.alternate,f=L.get(e),L["delete"](e))),null==f?p("184"):void 0,e.tag){case 2:e.stateNode.componentDidCatch(f.error,{componentStack:f.componentStack});break;case 3:null===O&&(O=f.error);break;default:p("157")}var w=y.nextEffect;y.nextEffect=null;y=w}}catch(Wa){c=!0,d=Wa}c&&(null===y?p("178"):void 0,n(y,d),null!==y&&(y=y.nextEffect))}W=!1;ba&&(ba.forEach(t),ba=null);b()}function d(a){for(;;){var b=M(a.alternate,a,A),c=a["return"],
-d=a.sibling;var e=a;if(!(0!==e.pendingWorkPriority&&e.pendingWorkPriority>A)){var f=e.updateQueue;f=null===f||2!==e.tag&&3!==e.tag?0:null!==f.first?f.first.priorityLevel:0;for(var g=e.child;null!==g;){var h=g.pendingWorkPriority;f=0!==f&&(0===h||h>f)?f:h;g=g.sibling}e.pendingWorkPriority=f}if(null!==b)return b;null!==c&&(null===c.firstEffect&&(c.firstEffect=a.firstEffect),null!==a.lastEffect&&(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect),1<a.effectTag&&(null!==
-c.lastEffect?c.lastEffect.nextEffect=a:c.firstEffect=a,c.lastEffect=a));if(null!==d)return d;if(null!==c)a=c;else{D=a;break}}return null}function e(a){var b=x(a.alternate,a,A);null===b&&(b=d(a));ma.current=null;return b}function f(a){var b=w(a.alternate,a,A);null===b&&(b=d(a));ma.current=null;return b}function h(a){k(5,a)}function g(){if(null!==L&&0<L.size&&2===A)for(;null!==F;){var a=F;F=null!==L&&(L.has(a)||null!==a.alternate&&L.has(a.alternate))?f(F):e(F);if(null===F&&(null===D?p("179"):void 0,
-G=2,c(D),G=A,null===L||0===L.size||2!==A))break}}function m(a,d){null!==D?(G=2,c(D),g()):null===F&&b();if(!(0===A||A>a)){G=A;a:do{if(2>=A)for(;null!==F&&!(F=e(F),null===F&&(null===D?p("179"):void 0,G=2,c(D),G=A,g(),0===A||A>a||2<A)););else if(null!==d)for(;null!==F&&!I;)if(1<d.timeRemaining()){if(F=e(F),null===F)if(null===D?p("179"):void 0,1<d.timeRemaining()){if(G=2,c(D),G=A,g(),0===A||A>a||3>A)break}else I=!0}else I=!0;switch(A){case 1:case 2:if(A<=a)continue a;break a;case 3:case 4:case 5:if(null===
-d)break a;if(!I&&A<=a)continue a;break a;case 0:break a;default:p("181")}}while(1)}}function k(a,b){C?p("182"):void 0;C=!0;Y=0;var c=G,d=!1,e=null;try{m(a,b)}catch(Xa){d=!0,e=Xa}for(;d;){if(Q){O=e;break}var g=F;if(null===g)Q=!0;else{var M=n(g,e);null===M?p("183"):void 0;if(!Q){try{d=M;e=a;M=b;for(var x=d;null!==g;){switch(g.tag){case 2:Cb(g);break;case 5:uc(g);break;case 3:Db(g);break;case 4:Db(g)}if(g===x||g.alternate===x)break;g=g["return"]}F=f(d);m(e,M)}catch(Xa){d=!0;e=Xa;continue}break}}}G=c;
-null!==b&&(R=!1);2<A&&!R&&(r(h),R=!0);a=O;Q=I=C=!1;K=L=O=null;if(null!==a)throw a;}function n(a,b){var c=ma.current=null,d=!1,e=!1,f=null;if(3===a.tag)c=a,v(a)&&(Q=!0);else for(var g=a["return"];null!==g&&null===c;){2===g.tag?"function"===typeof g.stateNode.componentDidCatch&&(d=!0,f=na(g),c=g,e=!0):3===g.tag&&(c=g);if(v(g)){if(X||null!==ba&&(ba.has(g)||null!==g.alternate&&ba.has(g.alternate)))return null;c=null;e=!1}g=g["return"]}if(null!==c){null===K&&(K=new Set);K.add(c);var h="";g=a;do{a:switch(g.tag){case 0:case 1:case 2:case 5:var M=
-g._debugOwner,x=g._debugSource;var w=na(g);var V=null;M&&(V=na(M));M=x;w="\n in "+(w||"Unknown")+(M?" (at "+M.fileName.replace(/^.*[\\\/]/,"")+":"+M.lineNumber+")":V?" (created by "+V+")":"");break a;default:w=""}h+=w;g=g["return"]}while(g);g=h;a=na(a);null===L&&(L=new Map);b={componentName:a,componentStack:g,error:b,errorBoundary:d?c.stateNode:null,errorBoundaryFound:d,errorBoundaryName:f,willRetry:e};L.set(c,b);try{console.error(b.error)}catch(vc){console.error(vc)}W?(null===ba&&(ba=new Set),
-ba.add(c)):t(c);return c}null===O&&(O=b);return null}function v(a){return null!==K&&(K.has(a)||null!==a.alternate&&K.has(a.alternate))}function l(a,b){return q(a,b,!1)}function q(a,b){Y>ca&&(Q=!0,p("185"));!C&&b<=A&&(F=null);for(var c=!0;null!==a&&c;){c=!1;if(0===a.pendingWorkPriority||a.pendingWorkPriority>b)c=!0,a.pendingWorkPriority=b;null!==a.alternate&&(0===a.alternate.pendingWorkPriority||a.alternate.pendingWorkPriority>b)&&(c=!0,a.alternate.pendingWorkPriority=b);if(null===a["return"])if(3===
-a.tag){var d=a.stateNode;0===b||d.isScheduled||(d.isScheduled=!0,P?P.nextScheduledRoot=d:E=d,P=d);if(!C)switch(b){case 1:N?k(1,null):k(2,null);break;case 2:T?void 0:p("186");break;default:R||(r(h),R=!0)}}else break;a=a["return"]}}function B(a,b){var c=G;0===c&&(c=!z||a.internalContextTag&1||b?4:1);return 1===c&&(C||T)?2:c}function t(a){q(a,2,!0)}var u=wc(a),Eb=xc(a),Db=u.popHostContainer,uc=u.popHostContext,la=u.resetHostContainer,V=yc(a,u,Eb,l,B),x=V.beginWork,w=V.beginFailedWork,M=zc(a,u,Eb).completeWork;
-u=Ac(a,n);var Ab=u.commitPlacement,rc=u.commitDeletion,Bb=u.commitWork,sc=u.commitLifeCycles,tc=u.commitAttachRef,qc=u.commitDetachRef,r=a.scheduleDeferredCallback,z=a.useSyncScheduling,H=a.prepareForCommit,J=a.resetAfterCommit,G=0,C=!1,I=!1,T=!1,N=!1,F=null,A=0,y=null,D=null,E=null,P=null,R=!1,L=null,K=null,ba=null,O=null,Q=!1,W=!1,X=!1,ca=1E3,Y=0;return{scheduleUpdate:l,getPriorityContext:B,performWithPriority:function(a,b){var c=G;G=a;try{b()}finally{G=c}},batchedUpdates:function(a,b){var c=T;
-T=!0;try{return a(b)}finally{T=c,C||T||k(2,null)}},unbatchedUpdates:function(a){var b=N,c=T;N=T;T=!1;try{return a()}finally{T=c,N=b}},flushSync:function(a){var b=T,c=G;T=!0;G=1;try{return a()}finally{T=b,G=c,C?p("187"):void 0,k(2,null)}},deferredUpdates:function(a){var b=G;G=4;try{return a()}finally{G=b}}}}function xc(a){function b(a,b){var c=new I(5,null,0);c.type="DELETED";c.stateNode=b;c["return"]=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=
-c}function c(a,b){switch(a.tag){case 5:return f(b,a.type,a.pendingProps);case 6:return h(b,a.pendingProps);default:return!1}}function d(a){for(a=a["return"];null!==a&&5!==a.tag&&3!==a.tag;)a=a["return"];q=a}var e=a.shouldSetTextContent,f=a.canHydrateInstance,h=a.canHydrateTextInstance,g=a.getNextHydratableSibling,m=a.getFirstHydratableChild,k=a.hydrateInstance,n=a.hydrateTextInstance,v=a.didNotHydrateInstance,l=a.didNotFindHydratableInstance;a=a.didNotFindHydratableTextInstance;if(!(f&&h&&g&&m&&k&&
-n&&v&&l&&a))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){p("175")},prepareToHydrateHostTextInstance:function(){p("176")},popHydrationState:function(){return!1}};var q=null,B=null,t=!1;return{enterHydrationState:function(a){B=m(a.stateNode.containerInfo);q=a;return t=!0},resetHydrationState:function(){B=q=null;t=!1},tryToClaimNextHydratableInstance:function(a){if(t){var d=B;if(d){if(!c(a,
-d)){d=g(d);if(!d||!c(a,d)){a.effectTag|=2;t=!1;q=a;return}b(q,B)}a.stateNode=d;q=a;B=m(d)}else a.effectTag|=2,t=!1,q=a}},prepareToHydrateHostInstance:function(a,b){b=k(a.stateNode,a.type,a.memoizedProps,b,a);a.updateQueue=b;return null!==b?!0:!1},prepareToHydrateHostTextInstance:function(a){return n(a.stateNode,a.memoizedProps,a)},popHydrationState:function(a){if(a!==q)return!1;if(!t)return d(a),t=!0,!1;var c=a.type;if(5!==a.tag||"head"!==c&&"body"!==c&&!e(c,a.memoizedProps))for(c=B;c;)b(a,c),c=g(c);
-d(a);B=q?g(a.stateNode):null;return!0}}}function wc(a){function b(a){a===ca?p("174"):void 0;return a}var c=a.getChildHostContext,d=a.getRootHostContext,e={current:ca},f={current:ca},h={current:ca};return{getHostContext:function(){return b(e.current)},getRootHostContainer:function(){return b(h.current)},popHostContainer:function(a){D(e,a);D(f,a);D(h,a)},popHostContext:function(a){f.current===a&&(D(e,a),D(f,a))},pushHostContainer:function(a,b){N(h,b,a);b=d(b);N(f,a,a);N(e,b,a)},pushHostContext:function(a){var d=
-b(h.current),g=b(e.current);d=c(g,a.type,d);g!==d&&(N(f,a,a),N(e,d,a))},resetHostContainer:function(){e.current=ca;h.current=ca}}}function Ac(a,b){function c(a){var c=a.ref;if(null!==c)try{c(null)}catch(la){b(a,la)}}function d(a){return 5===a.tag||3===a.tag||4===a.tag}function e(a){for(var b=a;;)if(h(b),null!==b.child&&4!==b.tag)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||b["return"]===a)return;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}
+function Ta(id,jd,kd,ia){function tb(a){ya&&(ub[a]=ya.addRule("av\\:"+a,"behavior:url(#default#VML);display:inline-block;position:absolute;left:0px;top:0px;"))}function Ua(a,b){1!=b[3]?a+="a":b.pop();return a+"("+b.join(", ")+")"}function r(a,b){if(a.isColor)this.red=a.red,this.green=a.green,this.blue=a.blue,this.alpha=a.alpha;else{var c=kc[a];c&&(a=c,b="hex");switch(typeof a){case "string":b||(b=(b=a.match(/^rgb|^hsb|^hsl/))?b[0]:"hex");break;case "object":b=b||"rgb";a=a.toString();break;case "number":b=
+"hex",a=a.toString(16)}a=r["parse"+b.toUpperCase()](a);this.red=a[0];this.green=a[1];this.blue=a[2];this.alpha=a[3]}this.isColor=!0}function ja(a,b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b(a[d],d);return c}function vb(){clearTimeout(ka);ka=null;var a=Va;Va=[];for(var b=0,c=a.length;b<c;b++){var d=a[b];d._valid=!0;d.render()}}function z(a){for(var b={},c=0,d=arguments.length;c<d;c++){var e=arguments[c];"function"==typeof e&&(e=e.prototype);for(var f in e)b[f]=e[f]}b.initialize||(b.initialize=function(){});
+b.constructor=function(a,c,d,e,f,v,l,q){return new b.initialize(a,c,d,e,f,v,l,q)};b.constructor.prototype=b.initialize.prototype=b;return b.constructor}function lc(a){a=wb(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child&&4!==b.tag)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null}function mc(a){a=wb(a);if(!a)return null;for(var b=a;;){if(5===
+b.tag||6===b.tag)return b;if(b.child)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null}function nc(a){function b(){for(;null!==E&&0===E.current.pendingWorkPriority;){E.isScheduled=!1;var a=E.nextScheduledRoot;E.nextScheduledRoot=null;if(E===P)return P=E=null,A=0,null;E=a}a=E;for(var b=null,c=0;null!==a;)0!==a.current.pendingWorkPriority&&(0===c||c>a.current.pendingWorkPriority)&&
+(c=a.current.pendingWorkPriority,b=a),a=a.nextScheduledRoot;if(null!==b){for(A=c;-1<Z;)za[Z]=null,Z--;Aa=U;aa.current=U;S.current=!1;la();F=xb(b.current,c)}else A=0,F=null}function c(c){W=!0;D=null;var d=c.stateNode;d.current===c?p("177"):void 0;1!==A&&2!==A||Y++;ma.current=null;if(1<c.effectTag)if(null!==c.lastEffect){c.lastEffect.nextEffect=c;var e=c.firstEffect}else e=c;else e=c.firstEffect;H();for(y=e;null!==y;){var f=!1,h=void 0;try{for(;null!==y;){var g=y.effectTag;g&16&&a.resetTextContent(y.stateNode);
+if(g&128){var M=y.alternate;null!==M&&oc(M)}switch(g&-242){case 2:yb(y);y.effectTag&=-3;break;case 6:yb(y);y.effectTag&=-3;zb(y.alternate,y);break;case 4:zb(y.alternate,y);break;case 8:X=!0,pc(y),X=!1}y=y.nextEffect}}catch(Wa){f=!0,h=Wa}f&&(null===y?p("178"):void 0,n(y,h),null!==y&&(y=y.nextEffect))}J();d.current=c;for(y=e;null!==y;){c=!1;d=void 0;try{for(;null!==y;){var x=y.effectTag;x&36&&qc(y.alternate,y);x&128&&rc(y);if(x&64)switch(e=y,f=void 0,null!==L&&(f=L.get(e),L["delete"](e),null==f&&null!==
+e.alternate&&(e=e.alternate,f=L.get(e),L["delete"](e))),null==f?p("184"):void 0,e.tag){case 2:e.stateNode.componentDidCatch(f.error,{componentStack:f.componentStack});break;case 3:null===O&&(O=f.error);break;default:p("157")}var w=y.nextEffect;y.nextEffect=null;y=w}}catch(Wa){c=!0,d=Wa}c&&(null===y?p("178"):void 0,n(y,d),null!==y&&(y=y.nextEffect))}W=!1;ba&&(ba.forEach(t),ba=null);b()}function d(a){for(;;){var b=M(a.alternate,a,A),c=a["return"],d=a.sibling;var e=a;if(!(0!==e.pendingWorkPriority&&
+e.pendingWorkPriority>A)){var f=e.updateQueue;f=null===f||2!==e.tag&&3!==e.tag?0:null!==f.first?f.first.priorityLevel:0;for(var h=e.child;null!==h;){var g=h.pendingWorkPriority;f=0!==f&&(0===g||g>f)?f:g;h=h.sibling}e.pendingWorkPriority=f}if(null!==b)return b;null!==c&&(null===c.firstEffect&&(c.firstEffect=a.firstEffect),null!==a.lastEffect&&(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect),1<a.effectTag&&(null!==c.lastEffect?c.lastEffect.nextEffect=a:c.firstEffect=
+a,c.lastEffect=a));if(null!==d)return d;if(null!==c)a=c;else{D=a;break}}return null}function e(a){var b=x(a.alternate,a,A);null===b&&(b=d(a));ma.current=null;return b}function f(a){var b=w(a.alternate,a,A);null===b&&(b=d(a));ma.current=null;return b}function h(a){m(5,a)}function g(){if(null!==L&&0<L.size&&2===A)for(;null!==F;){var a=F;F=null!==L&&(L.has(a)||null!==a.alternate&&L.has(a.alternate))?f(F):e(F);if(null===F&&(null===D?p("179"):void 0,G=2,c(D),G=A,null===L||0===L.size||2!==A))break}}function k(a,
+d){null!==D?(G=2,c(D),g()):null===F&&b();if(!(0===A||A>a)){G=A;a:do{if(2>=A)for(;null!==F&&!(F=e(F),null===F&&(null===D?p("179"):void 0,G=2,c(D),G=A,g(),0===A||A>a||2<A)););else if(null!==d)for(;null!==F&&!I;)if(1<d.timeRemaining()){if(F=e(F),null===F)if(null===D?p("179"):void 0,1<d.timeRemaining()){if(G=2,c(D),G=A,g(),0===A||A>a||3>A)break}else I=!0}else I=!0;switch(A){case 1:case 2:if(A<=a)continue a;break a;case 3:case 4:case 5:if(null===d)break a;if(!I&&A<=a)continue a;break a;case 0:break a;
+default:p("181")}}while(1)}}function m(a,b){C?p("182"):void 0;C=!0;Y=0;var c=G,d=!1,e=null;try{k(a,b)}catch(Xa){d=!0,e=Xa}for(;d;){if(Q){O=e;break}var g=F;if(null===g)Q=!0;else{var M=n(g,e);null===M?p("183"):void 0;if(!Q){try{d=M;e=a;M=b;for(var x=d;null!==g;){switch(g.tag){case 2:Ab(g);break;case 5:sc(g);break;case 3:Bb(g);break;case 4:Bb(g)}if(g===x||g.alternate===x)break;g=g["return"]}F=f(d);k(e,M)}catch(Xa){d=!0;e=Xa;continue}break}}}G=c;null!==b&&(R=!1);2<A&&!R&&(r(h),R=!0);a=O;Q=I=C=!1;K=L=
+O=null;if(null!==a)throw a;}function n(a,b){var c=ma.current=null,d=!1,e=!1,f=null;if(3===a.tag)c=a,v(a)&&(Q=!0);else for(var g=a["return"];null!==g&&null===c;){2===g.tag?"function"===typeof g.stateNode.componentDidCatch&&(d=!0,f=na(g),c=g,e=!0):3===g.tag&&(c=g);if(v(g)){if(X||null!==ba&&(ba.has(g)||null!==g.alternate&&ba.has(g.alternate)))return null;c=null;e=!1}g=g["return"]}if(null!==c){null===K&&(K=new Set);K.add(c);var h="";g=a;do{a:switch(g.tag){case 0:case 1:case 2:case 5:var M=g._debugOwner,
+x=g._debugSource;var w=na(g);var V=null;M&&(V=na(M));M=x;w="\n in "+(w||"Unknown")+(M?" (at "+M.fileName.replace(/^.*[\\\/]/,"")+":"+M.lineNumber+")":V?" (created by "+V+")":"");break a;default:w=""}h+=w;g=g["return"]}while(g);g=h;a=na(a);null===L&&(L=new Map);b={componentName:a,componentStack:g,error:b,errorBoundary:d?c.stateNode:null,errorBoundaryFound:d,errorBoundaryName:f,willRetry:e};L.set(c,b);try{console.error(b.error)}catch(tc){console.error(tc)}W?(null===ba&&(ba=new Set),ba.add(c)):t(c);
+return c}null===O&&(O=b);return null}function v(a){return null!==K&&(K.has(a)||null!==a.alternate&&K.has(a.alternate))}function l(a,b){return q(a,b,!1)}function q(a,b){Y>ca&&(Q=!0,p("185"));!C&&b<=A&&(F=null);for(var c=!0;null!==a&&c;){c=!1;if(0===a.pendingWorkPriority||a.pendingWorkPriority>b)c=!0,a.pendingWorkPriority=b;null!==a.alternate&&(0===a.alternate.pendingWorkPriority||a.alternate.pendingWorkPriority>b)&&(c=!0,a.alternate.pendingWorkPriority=b);if(null===a["return"])if(3===a.tag){var d=
+a.stateNode;0===b||d.isScheduled||(d.isScheduled=!0,P?P.nextScheduledRoot=d:E=d,P=d);if(!C)switch(b){case 1:N?m(1,null):m(2,null);break;case 2:T?void 0:p("186");break;default:R||(r(h),R=!0)}}else break;a=a["return"]}}function B(a,b){var c=G;0===c&&(c=!z||a.internalContextTag&1||b?4:1);return 1===c&&(C||T)?2:c}function t(a){q(a,2,!0)}var u=uc(a),Cb=vc(a),Bb=u.popHostContainer,sc=u.popHostContext,la=u.resetHostContainer,V=wc(a,u,Cb,l,B),x=V.beginWork,w=V.beginFailedWork,M=xc(a,u,Cb).completeWork;u=
+yc(a,n);var yb=u.commitPlacement,pc=u.commitDeletion,zb=u.commitWork,qc=u.commitLifeCycles,rc=u.commitAttachRef,oc=u.commitDetachRef,r=a.scheduleDeferredCallback,z=a.useSyncScheduling,H=a.prepareForCommit,J=a.resetAfterCommit,G=0,C=!1,I=!1,T=!1,N=!1,F=null,A=0,y=null,D=null,E=null,P=null,R=!1,L=null,K=null,ba=null,O=null,Q=!1,W=!1,X=!1,ca=1E3,Y=0;return{scheduleUpdate:l,getPriorityContext:B,performWithPriority:function(a,b){var c=G;G=a;try{b()}finally{G=c}},batchedUpdates:function(a,b){var c=T;T=
+!0;try{return a(b)}finally{T=c,C||T||m(2,null)}},unbatchedUpdates:function(a){var b=N,c=T;N=T;T=!1;try{return a()}finally{T=c,N=b}},flushSync:function(a){var b=T,c=G;T=!0;G=1;try{return a()}finally{T=b,G=c,C?p("187"):void 0,m(2,null)}},deferredUpdates:function(a){var b=G;G=4;try{return a()}finally{G=b}}}}function vc(a){function b(a,b){var c=new I(5,null,0);c.type="DELETED";c.stateNode=b;c["return"]=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=
+c}function c(a,b){switch(a.tag){case 5:return f(b,a.type,a.pendingProps);case 6:return h(b,a.pendingProps);default:return!1}}function d(a){for(a=a["return"];null!==a&&5!==a.tag&&3!==a.tag;)a=a["return"];q=a}var e=a.shouldSetTextContent,f=a.canHydrateInstance,h=a.canHydrateTextInstance,g=a.getNextHydratableSibling,k=a.getFirstHydratableChild,m=a.hydrateInstance,n=a.hydrateTextInstance,v=a.didNotHydrateInstance,l=a.didNotFindHydratableInstance;a=a.didNotFindHydratableTextInstance;if(!(f&&h&&g&&k&&m&&
+n&&v&&l&&a))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){p("175")},prepareToHydrateHostTextInstance:function(){p("176")},popHydrationState:function(){return!1}};var q=null,B=null,t=!1;return{enterHydrationState:function(a){B=k(a.stateNode.containerInfo);q=a;return t=!0},resetHydrationState:function(){B=q=null;t=!1},tryToClaimNextHydratableInstance:function(a){if(t){var d=B;if(d){if(!c(a,
+d)){d=g(d);if(!d||!c(a,d)){a.effectTag|=2;t=!1;q=a;return}b(q,B)}a.stateNode=d;q=a;B=k(d)}else a.effectTag|=2,t=!1,q=a}},prepareToHydrateHostInstance:function(a,b){b=m(a.stateNode,a.type,a.memoizedProps,b,a);a.updateQueue=b;return null!==b?!0:!1},prepareToHydrateHostTextInstance:function(a){return n(a.stateNode,a.memoizedProps,a)},popHydrationState:function(a){if(a!==q)return!1;if(!t)return d(a),t=!0,!1;var c=a.type;if(5!==a.tag||"head"!==c&&"body"!==c&&!e(c,a.memoizedProps))for(c=B;c;)b(a,c),c=g(c);
+d(a);B=q?g(a.stateNode):null;return!0}}}function uc(a){function b(a){a===ca?p("174"):void 0;return a}var c=a.getChildHostContext,d=a.getRootHostContext,e={current:ca},f={current:ca},h={current:ca};return{getHostContext:function(){return b(e.current)},getRootHostContainer:function(){return b(h.current)},popHostContainer:function(a){D(e,a);D(f,a);D(h,a)},popHostContext:function(a){f.current===a&&(D(e,a),D(f,a))},pushHostContainer:function(a,b){N(h,b,a);b=d(b);N(f,a,a);N(e,b,a)},pushHostContext:function(a){var d=
+b(h.current),g=b(e.current);d=c(g,a.type,d);g!==d&&(N(f,a,a),N(e,d,a))},resetHostContainer:function(){e.current=ca;h.current=ca}}}function yc(a,b){function c(a){var c=a.ref;if(null!==c)try{c(null)}catch(la){b(a,la)}}function d(a){return 5===a.tag||3===a.tag||4===a.tag}function e(a){for(var b=a;;)if(h(b),null!==b.child&&4!==b.tag)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||b["return"]===a)return;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}
function f(a){for(var b=a,c=!1,d=void 0,f=void 0;;){if(!c){c=b["return"];a:for(;;){null===c?p("160"):void 0;switch(c.tag){case 5:d=c.stateNode;f=!1;break a;case 3:d=c.stateNode.containerInfo;f=!0;break a;case 4:d=c.stateNode.containerInfo;f=!0;break a}c=c["return"]}c=!0}if(5===b.tag||6===b.tag)e(b),f?u(d,b.stateNode):t(d,b.stateNode);else if(4===b.tag?d=b.stateNode.containerInfo:h(b),null!==b.child){b.child["return"]=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||
-b["return"]===a)return;b=b["return"];4===b.tag&&(c=!1)}b.sibling["return"]=b["return"];b=b.sibling}}function h(a){switch(a.tag){case 2:c(a);var d=a.stateNode;if("function"===typeof d.componentWillUnmount)try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(la){b(a,la)}break;case 5:c(a);break;case 7:e(a.stateNode);break;case 4:f(a)}}var g=a.commitMount,m=a.commitUpdate,k=a.resetTextContent,n=a.commitTextUpdate,v=a.appendChild,l=a.appendChildToContainer,q=a.insertBefore,
-B=a.insertInContainerBefore,t=a.removeChild,u=a.removeChildFromContainer,r=a.getPublicInstance;return{commitPlacement:function(a){a:{for(var b=a["return"];null!==b;){if(d(b)){var c=b;break a}b=b["return"]}p("160");c=void 0}var e=b=void 0;switch(c.tag){case 5:b=c.stateNode;e=!1;break;case 3:b=c.stateNode.containerInfo;e=!0;break;case 4:b=c.stateNode.containerInfo;e=!0;break;default:p("161")}c.effectTag&16&&(k(b),c.effectTag&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c["return"]||d(c["return"])){c=
+b["return"]===a)return;b=b["return"];4===b.tag&&(c=!1)}b.sibling["return"]=b["return"];b=b.sibling}}function h(a){switch(a.tag){case 2:c(a);var d=a.stateNode;if("function"===typeof d.componentWillUnmount)try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(la){b(a,la)}break;case 5:c(a);break;case 7:e(a.stateNode);break;case 4:f(a)}}var g=a.commitMount,k=a.commitUpdate,m=a.resetTextContent,n=a.commitTextUpdate,v=a.appendChild,l=a.appendChildToContainer,q=a.insertBefore,
+B=a.insertInContainerBefore,t=a.removeChild,u=a.removeChildFromContainer,r=a.getPublicInstance;return{commitPlacement:function(a){a:{for(var b=a["return"];null!==b;){if(d(b)){var c=b;break a}b=b["return"]}p("160");c=void 0}var e=b=void 0;switch(c.tag){case 5:b=c.stateNode;e=!1;break;case 3:b=c.stateNode.containerInfo;e=!0;break;case 4:b=c.stateNode.containerInfo;e=!0;break;default:p("161")}c.effectTag&16&&(m(b),c.effectTag&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c["return"]||d(c["return"])){c=
null;break a}c=c["return"]}c.sibling["return"]=c["return"];for(c=c.sibling;5!==c.tag&&6!==c.tag;){if(c.effectTag&2)continue b;if(null===c.child||4===c.tag)continue b;else c.child["return"]=c,c=c.child}if(!(c.effectTag&2)){c=c.stateNode;break a}}for(var f=a;;){if(5===f.tag||6===f.tag)c?e?B(b,f.stateNode,c):q(b,f.stateNode,c):e?l(b,f.stateNode):v(b,f.stateNode);else if(4!==f.tag&&null!==f.child){f.child["return"]=f;f=f.child;continue}if(f===a)break;for(;null===f.sibling;){if(null===f["return"]||f["return"]===
-a)return;f=f["return"]}f.sibling["return"]=f["return"];f=f.sibling}},commitDeletion:function(a){f(a);a["return"]=null;a.child=null;a.alternate&&(a.alternate.child=null,a.alternate["return"]=null)},commitWork:function(a,b){switch(b.tag){case 2:break;case 5:var c=b.stateNode;if(null!=c){var d=b.memoizedProps;a=null!==a?a.memoizedProps:d;var e=b.type,f=b.updateQueue;b.updateQueue=null;null!==f&&m(c,f,e,a,d,b)}break;case 6:null===b.stateNode?p("162"):void 0;c=b.memoizedProps;n(b.stateNode,null!==a?a.memoizedProps:
-c,c);break;case 3:break;case 4:break;default:p("163")}},commitLifeCycles:function(a,b){switch(b.tag){case 2:var c=b.stateNode;if(b.effectTag&4)if(null===a)c.props=b.memoizedProps,c.state=b.memoizedState,c.componentDidMount();else{var d=a.memoizedProps;a=a.memoizedState;c.props=b.memoizedProps;c.state=b.memoizedState;c.componentDidUpdate(d,a)}b.effectTag&32&&null!==b.updateQueue&&Fb(b,b.updateQueue,c);break;case 3:a=b.updateQueue;null!==a&&Fb(b,a,b.child&&b.child.stateNode);break;case 5:c=b.stateNode;
-null===a&&b.effectTag&4&&g(c,b.type,b.memoizedProps,b);break;case 6:break;case 4:break;default:p("163")}},commitAttachRef:function(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:b(r(c));break;default:b(c)}}},commitDetachRef:function(a){a=a.ref;null!==a&&a(null)}}}function Fb(a,b,c){a=b.callbackList;if(null!==a)for(b.callbackList=null,b=0;b<a.length;b++){var d=a[b];"function"!==typeof d?p("191",d):void 0;d.call(c)}}function zc(a,b,c){var d=a.createInstance,e=a.createTextInstance,
-f=a.appendInitialChild,h=a.finalizeInitialChildren,g=a.prepareUpdate,m=b.getRootHostContainer,k=b.popHostContext,n=b.getHostContext,v=b.popHostContainer,l=c.prepareToHydrateHostInstance,q=c.prepareToHydrateHostTextInstance,B=c.popHydrationState;return{completeWork:function(a,b,c){var u=b.pendingProps;if(null===u)u=b.memoizedProps;else if(5!==b.pendingWorkPriority||5===c)b.pendingProps=null;switch(b.tag){case 1:return null;case 2:return Cb(b),null;case 3:u=b.stateNode;u.pendingContext&&(u.context=
-u.pendingContext,u.pendingContext=null);if(null===a||null===a.child)B(b),b.effectTag&=-3;return null;case 5:k(b);c=m();var t=b.type;if(null!==a&&null!=b.stateNode){var r=a.memoizedProps,V=b.stateNode,x=n();u=g(V,t,r,u,c,x);if(b.updateQueue=u)b.effectTag|=4;a.ref!==b.ref&&(b.effectTag|=128)}else{if(!u)return null===b.stateNode?p("166"):void 0,null;a=n();if(B(b))l(b,c)&&(b.effectTag|=4);else{a=d(t,u,c,a,b);a:for(r=b.child;null!==r;){if(5===r.tag||6===r.tag)f(a,r.stateNode);else if(4!==r.tag&&null!==
-r.child){r=r.child;continue}if(r===b)break a;for(;null===r.sibling;){if(null===r["return"]||r["return"]===b)break a;r=r["return"]}r=r.sibling}h(a,t,u,c)&&(b.effectTag|=4);b.stateNode=a}null!==b.ref&&(b.effectTag|=128)}return null;case 6:if(a&&null!=b.stateNode)a.memoizedProps!==u&&(b.effectTag|=4);else{if("string"!==typeof u)return null===b.stateNode?p("166"):void 0,null;a=m();c=n();B(b)?q(b)&&(b.effectTag|=4):b.stateNode=e(u,a,c,b)}return null;case 7:(u=b.memoizedProps)?void 0:p("165");b.tag=8;c=
+a)return;f=f["return"]}f.sibling["return"]=f["return"];f=f.sibling}},commitDeletion:function(a){f(a);a["return"]=null;a.child=null;a.alternate&&(a.alternate.child=null,a.alternate["return"]=null)},commitWork:function(a,b){switch(b.tag){case 2:break;case 5:var c=b.stateNode;if(null!=c){var d=b.memoizedProps;a=null!==a?a.memoizedProps:d;var e=b.type,f=b.updateQueue;b.updateQueue=null;null!==f&&k(c,f,e,a,d,b)}break;case 6:null===b.stateNode?p("162"):void 0;c=b.memoizedProps;n(b.stateNode,null!==a?a.memoizedProps:
+c,c);break;case 3:break;case 4:break;default:p("163")}},commitLifeCycles:function(a,b){switch(b.tag){case 2:var c=b.stateNode;if(b.effectTag&4)if(null===a)c.props=b.memoizedProps,c.state=b.memoizedState,c.componentDidMount();else{var d=a.memoizedProps;a=a.memoizedState;c.props=b.memoizedProps;c.state=b.memoizedState;c.componentDidUpdate(d,a)}b.effectTag&32&&null!==b.updateQueue&&Db(b,b.updateQueue,c);break;case 3:a=b.updateQueue;null!==a&&Db(b,a,b.child&&b.child.stateNode);break;case 5:c=b.stateNode;
+null===a&&b.effectTag&4&&g(c,b.type,b.memoizedProps,b);break;case 6:break;case 4:break;default:p("163")}},commitAttachRef:function(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:b(r(c));break;default:b(c)}}},commitDetachRef:function(a){a=a.ref;null!==a&&a(null)}}}function Db(a,b,c){a=b.callbackList;if(null!==a)for(b.callbackList=null,b=0;b<a.length;b++){var d=a[b];"function"!==typeof d?p("191",d):void 0;d.call(c)}}function xc(a,b,c){var d=a.createInstance,e=a.createTextInstance,
+f=a.appendInitialChild,h=a.finalizeInitialChildren,g=a.prepareUpdate,k=b.getRootHostContainer,m=b.popHostContext,n=b.getHostContext,v=b.popHostContainer,l=c.prepareToHydrateHostInstance,q=c.prepareToHydrateHostTextInstance,B=c.popHydrationState;return{completeWork:function(a,b,c){var u=b.pendingProps;if(null===u)u=b.memoizedProps;else if(5!==b.pendingWorkPriority||5===c)b.pendingProps=null;switch(b.tag){case 1:return null;case 2:return Ab(b),null;case 3:u=b.stateNode;u.pendingContext&&(u.context=
+u.pendingContext,u.pendingContext=null);if(null===a||null===a.child)B(b),b.effectTag&=-3;return null;case 5:m(b);c=k();var t=b.type;if(null!==a&&null!=b.stateNode){var r=a.memoizedProps,V=b.stateNode,x=n();u=g(V,t,r,u,c,x);if(b.updateQueue=u)b.effectTag|=4;a.ref!==b.ref&&(b.effectTag|=128)}else{if(!u)return null===b.stateNode?p("166"):void 0,null;a=n();if(B(b))l(b,c)&&(b.effectTag|=4);else{a=d(t,u,c,a,b);a:for(r=b.child;null!==r;){if(5===r.tag||6===r.tag)f(a,r.stateNode);else if(4!==r.tag&&null!==
+r.child){r=r.child;continue}if(r===b)break a;for(;null===r.sibling;){if(null===r["return"]||r["return"]===b)break a;r=r["return"]}r=r.sibling}h(a,t,u,c)&&(b.effectTag|=4);b.stateNode=a}null!==b.ref&&(b.effectTag|=128)}return null;case 6:if(a&&null!=b.stateNode)a.memoizedProps!==u&&(b.effectTag|=4);else{if("string"!==typeof u)return null===b.stateNode?p("166"):void 0,null;a=k();c=n();B(b)?q(b)&&(b.effectTag|=4):b.stateNode=e(u,a,c,b)}return null;case 7:(u=b.memoizedProps)?void 0:p("165");b.tag=8;c=
[];a:for((t=b.stateNode)&&(t["return"]=b);null!==t;){if(5===t.tag||6===t.tag||4===t.tag)p("164");else if(9===t.tag)c.push(t.type);else if(null!==t.child){t.child["return"]=t;t=t.child;continue}for(;null===t.sibling;){if(null===t["return"]||t["return"]===b)break a;t=t["return"]}t.sibling["return"]=t["return"];t=t.sibling}t=u.handler;u=t(u.props,c);b.child=Ya(b,null!==a?a.child:null,u,b.pendingWorkPriority);return b.child;case 8:return b.tag=7,null;case 9:return null;case 10:return null;case 4:return b.effectTag|=
-4,v(b),null;case 0:p("167");default:p("156")}}}}function yc(a,b,c,d,e){function f(a,b,c){h(a,b,c,b.pendingWorkPriority)}function h(a,b,c,d){b.child=null===a?Za(b,b.child,c,d):a.child===b.child?Ya(b,b.child,c,d):$a(b,b.child,c,d)}function g(a,b){var c=b.ref;null===c||a&&a.ref===c||(b.effectTag|=128)}function m(a,b,c,d){g(a,b);if(!c)return d&&Gb(b,!1),k(a,b);c=b.stateNode;ma.current=b;var e=c.render();b.effectTag|=1;f(a,b,e);b.memoizedState=c.state;b.memoizedProps=c.props;d&&Gb(b,!0);return b.child}
-function k(a,b){null!==a&&b.child!==a.child?p("153"):void 0;if(null!==b.child){a=b.child;var c=ab(a,a.pendingWorkPriority);c.pendingProps=a.pendingProps;b.child=c;for(c["return"]=b;null!==a.sibling;)a=a.sibling,c=c.sibling=ab(a,a.pendingWorkPriority),c.pendingProps=a.pendingProps,c["return"]=b;c.sibling=null}return b.child}function n(a,b){switch(b.tag){case 2:Ba(b);break;case 4:t(b,b.stateNode.containerInfo)}return null}var v=a.shouldSetTextContent,l=a.useSyncScheduling,q=a.shouldDeprioritizeSubtree,
-B=b.pushHostContext,t=b.pushHostContainer,u=c.enterHydrationState,r=c.resetHydrationState,z=c.tryToClaimNextHydratableInstance;a=Bc(d,e,function(a,b){a.memoizedProps=b},function(a,b){a.memoizedState=b});var C=a.adoptClassInstance,D=a.constructClassInstance,V=a.mountClassInstance,x=a.updateClassInstance;return{beginWork:function(a,b,c){if(0===b.pendingWorkPriority||b.pendingWorkPriority>c)return n(a,b);switch(b.tag){case 0:null!==a?p("155"):void 0;var d=b.type,e=b.pendingProps,h=oa(b);h=pa(b,h);d=
-d(e,h);b.effectTag|=1;"object"===typeof d&&null!==d&&"function"===typeof d.render?(b.tag=2,e=Ba(b),C(b,d),V(b,c),b=m(a,b,!0,e)):(b.tag=1,f(a,b,d),b.memoizedProps=e,b=b.child);return b;case 1:a:{e=b.type;c=b.pendingProps;d=b.memoizedProps;if(S.current)null===c&&(c=d);else if(null===c||d===c){b=k(a,b);break a}d=oa(b);d=pa(b,d);e=e(c,d);b.effectTag|=1;f(a,b,e);b.memoizedProps=c;b=b.child}return b;case 2:return e=Ba(b),d=void 0,null===a?b.stateNode?p("153"):(D(b,b.pendingProps),V(b,c),d=!0):d=x(a,b,c),
-m(a,b,d,e);case 3:return e=b.stateNode,e.pendingContext?Hb(b,e.pendingContext,e.pendingContext!==e.context):e.context&&Hb(b,e.context,!1),t(b,e.containerInfo),d=b.updateQueue,null!==d?(e=b.memoizedState,d=bb(a,b,d,null,e,null,c),e===d?(r(),b=k(a,b)):(e=d.element,null!==a&&null!==a.child||!u(b)?(r(),f(a,b,e)):(b.effectTag|=2,b.child=Za(b,b.child,e,c)),b.memoizedState=d,b=b.child)):(r(),b=k(a,b)),b;case 5:B(b);null===a&&z(b);e=b.type;var w=b.memoizedProps;d=b.pendingProps;null===d&&(d=w,null===d?p("154"):
-void 0);h=null!==a?a.memoizedProps:null;S.current||null!==d&&w!==d?(w=d.children,v(e,d)?w=null:h&&v(e,h)&&(b.effectTag|=16),g(a,b),5!==c&&!l&&q(e,d)?(b.pendingWorkPriority=5,b=null):(f(a,b,w),b.memoizedProps=d,b=b.child)):b=k(a,b);return b;case 6:return null===a&&z(b),a=b.pendingProps,null===a&&(a=b.memoizedProps),b.memoizedProps=a,null;case 8:b.tag=7;case 7:c=b.pendingProps;if(S.current)null===c&&(c=a&&a.memoizedProps,null===c?p("154"):void 0);else if(null===c||b.memoizedProps===c)c=b.memoizedProps;
-e=c.children;d=b.pendingWorkPriority;b.stateNode=null===a?Za(b,b.stateNode,e,d):a.child===b.child?Ya(b,b.stateNode,e,d):$a(b,b.stateNode,e,d);b.memoizedProps=c;return b.stateNode;case 9:return null;case 4:a:{t(b,b.stateNode.containerInfo);c=b.pendingWorkPriority;e=b.pendingProps;if(S.current)null===e&&(e=a&&a.memoizedProps,null==e?p("154"):void 0);else if(null===e||b.memoizedProps===e){b=k(a,b);break a}null===a?b.child=$a(b,b.child,e,c):f(a,b,e);b.memoizedProps=e;b=b.child}return b;case 10:a:{c=b.pendingProps;
-if(S.current)null===c&&(c=b.memoizedProps);else if(null===c||b.memoizedProps===c){b=k(a,b);break a}f(a,b,c);b.memoizedProps=c;b=b.child}return b;default:p("156")}},beginFailedWork:function(a,b,c){switch(b.tag){case 2:Ba(b);break;case 3:t(b,b.stateNode.containerInfo);break;default:p("157")}b.effectTag|=64;null===a?b.child=null:b.child!==a.child&&(b.child=a.child);if(0===b.pendingWorkPriority||b.pendingWorkPriority>c)return n(a,b);b.firstEffect=null;b.lastEffect=null;h(a,b,null,c);2===b.tag&&(a=b.stateNode,
-b.memoizedProps=a.props,b.memoizedState=a.state);return b.child}}}function Gb(a,b){var c=a.stateNode;c?void 0:p("169");if(b){var d=Ib(a,Aa,!0);c.__reactInternalMemoizedMergedChildContext=d;D(S,a);D(aa,a);N(aa,d,a)}else D(S,a);N(S,b,a)}function Hb(a,b,c){null!=aa.cursor?p("168"):void 0;N(aa,b,a);N(S,c,a)}function Ba(a){if(!qa(a))return!1;var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||U;Aa=aa.current;N(aa,b,a);N(S,S.current,a);return!0}function Bc(a,b,c,d){function e(a,b){b.updater=
-f;a.stateNode=b;Y.set(b,a)}var f={isMounted:Cc,enqueueSetState:function(c,d,e){c=Y.get(c);var f=b(c,!1);Ca(c,{priorityLevel:f,partialState:d,callback:void 0===e?null:e,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null});a(c,f)},enqueueReplaceState:function(c,d,e){c=Y.get(c);var f=b(c,!1);Ca(c,{priorityLevel:f,partialState:d,callback:void 0===e?null:e,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null});a(c,f)},enqueueForceUpdate:function(c,d){c=Y.get(c);var e=b(c,!1);Ca(c,{priorityLevel:e,
+4,v(b),null;case 0:p("167");default:p("156")}}}}function wc(a,b,c,d,e){function f(a,b,c){h(a,b,c,b.pendingWorkPriority)}function h(a,b,c,d){b.child=null===a?Za(b,b.child,c,d):a.child===b.child?Ya(b,b.child,c,d):$a(b,b.child,c,d)}function g(a,b){var c=b.ref;null===c||a&&a.ref===c||(b.effectTag|=128)}function k(a,b,c,d){g(a,b);if(!c)return d&&Eb(b,!1),m(a,b);c=b.stateNode;ma.current=b;var e=c.render();b.effectTag|=1;f(a,b,e);b.memoizedState=c.state;b.memoizedProps=c.props;d&&Eb(b,!0);return b.child}
+function m(a,b){null!==a&&b.child!==a.child?p("153"):void 0;if(null!==b.child){a=b.child;var c=ab(a,a.pendingWorkPriority);c.pendingProps=a.pendingProps;b.child=c;for(c["return"]=b;null!==a.sibling;)a=a.sibling,c=c.sibling=ab(a,a.pendingWorkPriority),c.pendingProps=a.pendingProps,c["return"]=b;c.sibling=null}return b.child}function n(a,b){switch(b.tag){case 2:Ba(b);break;case 4:t(b,b.stateNode.containerInfo)}return null}var v=a.shouldSetTextContent,l=a.useSyncScheduling,q=a.shouldDeprioritizeSubtree,
+B=b.pushHostContext,t=b.pushHostContainer,u=c.enterHydrationState,r=c.resetHydrationState,z=c.tryToClaimNextHydratableInstance;a=zc(d,e,function(a,b){a.memoizedProps=b},function(a,b){a.memoizedState=b});var C=a.adoptClassInstance,D=a.constructClassInstance,V=a.mountClassInstance,x=a.updateClassInstance;return{beginWork:function(a,b,c){if(0===b.pendingWorkPriority||b.pendingWorkPriority>c)return n(a,b);switch(b.tag){case 0:null!==a?p("155"):void 0;var d=b.type,e=b.pendingProps,h=oa(b);h=pa(b,h);d=
+d(e,h);b.effectTag|=1;"object"===typeof d&&null!==d&&"function"===typeof d.render?(b.tag=2,e=Ba(b),C(b,d),V(b,c),b=k(a,b,!0,e)):(b.tag=1,f(a,b,d),b.memoizedProps=e,b=b.child);return b;case 1:a:{e=b.type;c=b.pendingProps;d=b.memoizedProps;if(S.current)null===c&&(c=d);else if(null===c||d===c){b=m(a,b);break a}d=oa(b);d=pa(b,d);e=e(c,d);b.effectTag|=1;f(a,b,e);b.memoizedProps=c;b=b.child}return b;case 2:return e=Ba(b),d=void 0,null===a?b.stateNode?p("153"):(D(b,b.pendingProps),V(b,c),d=!0):d=x(a,b,c),
+k(a,b,d,e);case 3:return e=b.stateNode,e.pendingContext?Fb(b,e.pendingContext,e.pendingContext!==e.context):e.context&&Fb(b,e.context,!1),t(b,e.containerInfo),d=b.updateQueue,null!==d?(e=b.memoizedState,d=bb(a,b,d,null,e,null,c),e===d?(r(),b=m(a,b)):(e=d.element,null!==a&&null!==a.child||!u(b)?(r(),f(a,b,e)):(b.effectTag|=2,b.child=Za(b,b.child,e,c)),b.memoizedState=d,b=b.child)):(r(),b=m(a,b)),b;case 5:B(b);null===a&&z(b);e=b.type;var w=b.memoizedProps;d=b.pendingProps;null===d&&(d=w,null===d?p("154"):
+void 0);h=null!==a?a.memoizedProps:null;S.current||null!==d&&w!==d?(w=d.children,v(e,d)?w=null:h&&v(e,h)&&(b.effectTag|=16),g(a,b),5!==c&&!l&&q(e,d)?(b.pendingWorkPriority=5,b=null):(f(a,b,w),b.memoizedProps=d,b=b.child)):b=m(a,b);return b;case 6:return null===a&&z(b),a=b.pendingProps,null===a&&(a=b.memoizedProps),b.memoizedProps=a,null;case 8:b.tag=7;case 7:c=b.pendingProps;if(S.current)null===c&&(c=a&&a.memoizedProps,null===c?p("154"):void 0);else if(null===c||b.memoizedProps===c)c=b.memoizedProps;
+e=c.children;d=b.pendingWorkPriority;b.stateNode=null===a?Za(b,b.stateNode,e,d):a.child===b.child?Ya(b,b.stateNode,e,d):$a(b,b.stateNode,e,d);b.memoizedProps=c;return b.stateNode;case 9:return null;case 4:a:{t(b,b.stateNode.containerInfo);c=b.pendingWorkPriority;e=b.pendingProps;if(S.current)null===e&&(e=a&&a.memoizedProps,null==e?p("154"):void 0);else if(null===e||b.memoizedProps===e){b=m(a,b);break a}null===a?b.child=$a(b,b.child,e,c):f(a,b,e);b.memoizedProps=e;b=b.child}return b;case 10:a:{c=b.pendingProps;
+if(S.current)null===c&&(c=b.memoizedProps);else if(null===c||b.memoizedProps===c){b=m(a,b);break a}f(a,b,c);b.memoizedProps=c;b=b.child}return b;default:p("156")}},beginFailedWork:function(a,b,c){switch(b.tag){case 2:Ba(b);break;case 3:t(b,b.stateNode.containerInfo);break;default:p("157")}b.effectTag|=64;null===a?b.child=null:b.child!==a.child&&(b.child=a.child);if(0===b.pendingWorkPriority||b.pendingWorkPriority>c)return n(a,b);b.firstEffect=null;b.lastEffect=null;h(a,b,null,c);2===b.tag&&(a=b.stateNode,
+b.memoizedProps=a.props,b.memoizedState=a.state);return b.child}}}function Eb(a,b){var c=a.stateNode;c?void 0:p("169");if(b){var d=Gb(a,Aa,!0);c.__reactInternalMemoizedMergedChildContext=d;D(S,a);D(aa,a);N(aa,d,a)}else D(S,a);N(S,b,a)}function Fb(a,b,c){null!=aa.cursor?p("168"):void 0;N(aa,b,a);N(S,c,a)}function Ba(a){if(!qa(a))return!1;var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||U;Aa=aa.current;N(aa,b,a);N(S,S.current,a);return!0}function zc(a,b,c,d){function e(a,b){b.updater=
+f;a.stateNode=b;Y.set(b,a)}var f={isMounted:Ac,enqueueSetState:function(c,d,e){c=Y.get(c);var f=b(c,!1);Ca(c,{priorityLevel:f,partialState:d,callback:void 0===e?null:e,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null});a(c,f)},enqueueReplaceState:function(c,d,e){c=Y.get(c);var f=b(c,!1);Ca(c,{priorityLevel:f,partialState:d,callback:void 0===e?null:e,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null});a(c,f)},enqueueForceUpdate:function(c,d){c=Y.get(c);var e=b(c,!1);Ca(c,{priorityLevel:e,
partialState:null,callback:void 0===d?null:d,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null});a(c,e)}};return{adoptClassInstance:e,constructClassInstance:function(a,b){var c=a.type,d=oa(a),f=2===a.tag&&null!=a.type.contextTypes,g=f?pa(a,d):U;b=new c(b,g);e(a,b);f&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=d,a.__reactInternalMemoizedMaskedChildContext=g);return b},mountClassInstance:function(a,b){var c=a.alternate,d=a.stateNode,e=d.state||null,g=a.pendingProps;g?void 0:
p("158");var h=oa(a);d.props=g;d.state=e;d.refs=U;d.context=pa(a,h);cb.enableAsyncSubtreeAPI&&null!=a.type&&null!=a.type.prototype&&!0===a.type.prototype.unstable_isAsyncReactComponent&&(a.internalContextTag|=1);"function"===typeof d.componentWillMount&&(h=d.state,d.componentWillMount(),h!==d.state&&f.enqueueReplaceState(d,d.state,null),h=a.updateQueue,null!==h&&(d.state=bb(c,a,h,d,e,g,b)));"function"===typeof d.componentDidMount&&(a.effectTag|=4)},updateClassInstance:function(a,b,e){var g=b.stateNode;
-g.props=b.memoizedProps;g.state=b.memoizedState;var h=b.memoizedProps,m=b.pendingProps;m||(m=h,null==m?p("159"):void 0);var l=g.context,q=oa(b);q=pa(b,q);"function"!==typeof g.componentWillReceiveProps||h===m&&l===q||(l=g.state,g.componentWillReceiveProps(m,q),g.state!==l&&f.enqueueReplaceState(g,g.state,null));l=b.memoizedState;e=null!==b.updateQueue?bb(a,b,b.updateQueue,g,l,m,e):l;if(!(h!==m||l!==e||S.current||null!==b.updateQueue&&b.updateQueue.hasForceUpdate))return"function"!==typeof g.componentDidUpdate||
-h===a.memoizedProps&&l===a.memoizedState||(b.effectTag|=4),!1;var B=m;if(null===h||null!==b.updateQueue&&b.updateQueue.hasForceUpdate)B=!0;else{var t=b.stateNode,u=b.type;B="function"===typeof t.shouldComponentUpdate?t.shouldComponentUpdate(B,e,q):u.prototype&&u.prototype.isPureReactComponent?!Jb(h,B)||!Jb(l,e):!0}B?("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(m,e,q),"function"===typeof g.componentDidUpdate&&(b.effectTag|=4)):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&
-l===a.memoizedState||(b.effectTag|=4),c(b,m),d(b,e));g.props=m;g.state=e;g.context=q;return B}}}function Cc(a){return(a=Y.get(a))?2===Da(a):!1}function Jb(a,b){if(Kb(a,b))return!0;if("object"!==typeof a||null===a||"object"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++)if(!Dc.call(b,c[d])||!Kb(a[c[d]],b[c[d]]))return!1;return!0}function db(a,b,c){b=new I(4,a.key,b);b.pendingProps=a.children||[];b.pendingWorkPriority=c;b.stateNode=
-{containerInfo:a.containerInfo,implementation:a.implementation};return b}function eb(a,b,c){b=new I(7,a.key,b);b.type=a.handler;b.pendingProps=a;b.pendingWorkPriority=c;return b}function fb(a,b,c){b=new I(6,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b}function Lb(a,b,c){b=new I(10,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b}function gb(a,b,c){var d=a.type,e=a.key,f=void 0;"function"===typeof d?(f=d.prototype&&d.prototype.isReactComponent?new I(2,e,b):new I(0,e,b),f.type=
-d):"string"===typeof d?(f=new I(5,e,b),f.type=d):"object"===typeof d&&null!==d&&"number"===typeof d.tag?f=d:p("130",null==d?d:typeof d,"");b=f;b.pendingProps=a.props;b.pendingWorkPriority=c;return b}function zb(a,b){var c=a.alternate;null===c?(c=new I(a.tag,a.key,a.internalContextTag),c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.effectTag=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.pendingWorkPriority=b;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=
-a.memoizedState;c.updateQueue=a.updateQueue;c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}function Cb(a){qa(a)&&(D(S,a),D(aa,a))}function pa(a,b){var c=a.type.contextTypes;if(!c)return U;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function oa(a){return qa(a)?
-Aa:aa.current}function N(a,b){Z++;za[Z]=a.current;a.current=b}function D(a){0>Z||(a.current=za[Z],za[Z]=null,Z--)}function na(a){if("function"===typeof a.getName)return a.getName();if("number"===typeof a.tag){a=a.type;if("string"===typeof a)return a;if("function"===typeof a)return a.displayName||a.name}return null}function bb(a,b,c,d,e,f,h){null!==a&&a.updateQueue===c&&(c=b.updateQueue={first:c.first,last:c.last,callbackList:null,hasForceUpdate:!1});a=c.callbackList;for(var g=c.hasForceUpdate,m=!0,
-k=c.first;null!==k&&0>=hb(k.priorityLevel,h);){c.first=k.next;null===c.first&&(c.last=null);var n;if(k.isReplace)e=Mb(k,d,e,f),m=!0;else if(n=Mb(k,d,e,f))e=m?Ea({},e,n):Ea(e,n),m=!1;k.isForced&&(g=!0);null===k.callback||k.isTopLevelUnmount&&null!==k.next||(a=null!==a?a:[],a.push(k.callback),b.effectTag|=32);k=k.next}c.callbackList=a;c.hasForceUpdate=g;null!==c.first||null!==a||g||(b.updateQueue=null);return e}function p(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+
-a,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}function hb(a,b){return 2!==a&&1!==a||2!==b&&1!==b?0===a&&0!==b?-255:0!==a&&0===b?255:a-b:0}function Nb(){return{first:null,last:null,hasForceUpdate:!1,callbackList:null}}function ib(a,b,c,d){null!==c?c.next=b:(b.next=a.first,a.first=b);null!==d?b.next=d:
-a.last=b}function Ob(a,b){b=b.priorityLevel;var c=null;if(null!==a.last&&0>=hb(a.last.priorityLevel,b))c=a.last;else for(a=a.first;null!==a&&0>=hb(a.priorityLevel,b);)c=a,a=a.next;return c}function Pb(a){var b=a.alternate,c=a.updateQueue;null===c&&(c=a.updateQueue=Nb());null!==b?(a=b.updateQueue,null===a&&(a=b.updateQueue=Nb())):a=null;return[c,a!==c?a:null]}function Ca(a,b){var c=Pb(a);a=c[0];c=c[1];var d=Ob(a,b),e=null!==d?d.next:a.first;if(null===c)return ib(a,b,d,e),null;var f=Ob(c,b),h=null!==
-f?f.next:c.first;ib(a,b,d,e);if(e===h&&null!==e||d===f&&null!==d)return null===f&&(c.first=b),null===h&&(c.last=null),null;b={priorityLevel:b.priorityLevel,partialState:b.partialState,callback:b.callback,isReplace:b.isReplace,isForced:b.isForced,isTopLevelUnmount:b.isTopLevelUnmount,next:null};ib(c,b,f,h);return b}function Mb(a,b,c,d){a=a.partialState;return"function"===typeof a?a.call(b,c,d):a}function Da(a){var b=a;if(a.alternate)for(;b["return"];)b=b["return"];else{if(0!==(b.effectTag&2))return 1;
-for(;b["return"];)if(b=b["return"],0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function Qb(a){2!==Da(a)?p("188"):void 0}function xb(a){var b=a.alternate;if(!b)return b=Da(a),3===b?p("188"):void 0,1===b?null:a;for(var c=a,d=b;;){var e=c["return"],f=e?e.alternate:null;if(!e||!f)break;if(e.child===f.child){for(var h=e.child;h;){if(h===c)return Qb(e),a;if(h===d)return Qb(e),b;h=h.sibling}p("188")}if(c["return"]!==d["return"])c=e,d=f;else{h=!1;for(var g=e.child;g;){if(g===c){h=!0;c=e;d=f;break}if(g===
-d){h=!0;d=e;c=f;break}g=g.sibling}if(!h){for(g=f.child;g;){if(g===c){h=!0;c=f;d=e;break}if(g===d){h=!0;d=f;c=e;break}g=g.sibling}h?void 0:p("189")}}c.alternate!==d?p("190"):void 0}3!==c.tag?p("188"):void 0;return c.stateNode.current===c?a:b}function qa(a){return 2===a.tag&&null!=a.type.childContextTypes}function Ib(a,b){var c=a.stateNode,d=a.type.childContextTypes;if("function"!==typeof c.getChildContext)return b;c=c.getChildContext();for(var e in c)e in d?void 0:p("108",na(a)||"Unknown",e);return Ea({},
-b,c)}function I(a,b,c){this.tag=a;this.key=b;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=c;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.pendingWorkPriority=0;this.alternate=null}function ra(a){if(null===a||"undefined"===typeof a)return null;a=Rb&&a[Rb]||a["@@iterator"];return"function"===typeof a?a:null}function sa(a,
-b){var c=b.ref;if(null!==c&&"function"!==typeof c){if(b._owner){b=b._owner;var d=void 0;b&&("number"===typeof b.tag?(2!==b.tag?p("110"):void 0,d=b.stateNode):d=b.getPublicInstance());d?void 0:p("147",c);var e=""+c;if(null!==a&&null!==a.ref&&a.ref._stringRef===e)return a.ref;a=function(a){var b=d.refs===U?d.refs={}:d.refs;null===a?delete b[e]:b[e]=a};a._stringRef=e;return a}"string"!==typeof c?p("148"):void 0;b._owner?void 0:p("149",c)}return c}function Fa(a,b){"textarea"!==a.type&&p("31","[object Object]"===
-Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b,"")}function jb(a,b){function c(c,d){if(b){if(!a){if(null===d.alternate)return;d=d.alternate}var e=c.lastEffect;null!==e?(e.nextEffect=d,c.lastEffect=d):c.firstEffect=c.lastEffect=d;d.nextEffect=null;d.effectTag=8}}function d(a,d){if(!b)return null;for(;null!==d;)c(a,d),d=d.sibling;return null}function e(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function f(b,
-c){if(a)return b=ab(b,c),b.index=0,b.sibling=null,b;b.pendingWorkPriority=c;b.effectTag=0;b.index=0;b.sibling=null;return b}function h(a,c,d){a.index=d;if(!b)return c;d=a.alternate;if(null!==d)return d=d.index,d<c?(a.effectTag=2,c):d;a.effectTag=2;return c}function g(a){b&&null===a.alternate&&(a.effectTag=2);return a}function m(a,b,c,d){if(null===b||6!==b.tag)return c=fb(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function k(a,b,c,d){if(null===b||b.type!==
-c.type)return d=gb(c,a.internalContextTag,d),d.ref=sa(b,c),d["return"]=a,d;d=f(b,d);d.ref=sa(b,c);d.pendingProps=c.props;d["return"]=a;return d}function n(a,b,c,d){if(null===b||7!==b.tag)return c=eb(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function v(a,b,c,d){if(null===b||9!==b.tag)return b=new I(9,null,a.internalContextTag),b.type=c.value,b["return"]=a,b;b=f(b,d);b.type=c.value;b["return"]=a;return b}function l(a,b,c,d){if(null===b||4!==b.tag||b.stateNode.containerInfo!==
-c.containerInfo||b.stateNode.implementation!==c.implementation)return c=db(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c.children||[];b["return"]=a;return b}function q(b,a,c,d){if(null===a||10!==a.tag)return c=Lb(c,b.internalContextTag,d),c["return"]=b,c;a=f(a,d);a.pendingProps=c;a["return"]=b;return a}function B(b,a,c){if("string"===typeof a||"number"===typeof a)return a=fb(""+a,b.internalContextTag,c),a["return"]=b,a;if("object"===typeof a&&null!==a){switch(a.$$typeof){case ta:return c=
-gb(a,b.internalContextTag,c),c.ref=sa(null,a),c["return"]=b,c;case Ga:return a=eb(a,b.internalContextTag,c),a["return"]=b,a;case Ha:return c=new I(9,null,b.internalContextTag),c.type=a.value,c["return"]=b,c;case ua:return a=db(a,b.internalContextTag,c),a["return"]=b,a}if(Ia(a)||ra(a))return a=Lb(a,b.internalContextTag,c),a["return"]=b,a;Fa(b,a)}return null}function t(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c||"number"===typeof c)return null!==e?null:m(a,b,""+c,d);if("object"===typeof c&&
-null!==c){switch(c.$$typeof){case ta:return c.key===e?k(a,b,c,d):null;case Ga:return c.key===e?n(a,b,c,d):null;case Ha:return null===e?v(a,b,c,d):null;case ua:return c.key===e?l(a,b,c,d):null}if(Ia(c)||ra(c))return null!==e?null:q(a,b,c,d);Fa(a,c)}return null}function u(a,b,c,d,e){if("string"===typeof d||"number"===typeof d)return a=a.get(c)||null,m(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case ta:return a=a.get(null===d.key?c:d.key)||null,k(b,a,d,e);case Ga:return a=a.get(null===
-d.key?c:d.key)||null,n(b,a,d,e);case Ha:return a=a.get(c)||null,v(b,a,d,e);case ua:return a=a.get(null===d.key?c:d.key)||null,l(b,a,d,e)}if(Ia(d)||ra(d))return a=a.get(c)||null,q(b,a,d,e);Fa(b,d)}return null}function r(a,f,g,m){for(var k=null,l=null,x=f,n=f=0,w=null;null!==x&&n<g.length;n++){x.index>n?(w=x,x=null):w=x.sibling;var q=t(a,x,g[n],m);if(null===q){null===x&&(x=w);break}b&&x&&null===q.alternate&&c(a,x);f=h(q,f,n);null===l?k=q:l.sibling=q;l=q;x=w}if(n===g.length)return d(a,x),k;if(null===
-x){for(;n<g.length;n++)if(x=B(a,g[n],m))f=h(x,f,n),null===l?k=x:l.sibling=x,l=x;return k}for(x=e(a,x);n<g.length;n++)if(w=u(x,a,n,g[n],m)){if(b&&null!==w.alternate)x["delete"](null===w.key?n:w.key);f=h(w,f,n);null===l?k=w:l.sibling=w;l=w}b&&x.forEach(function(b){return c(a,b)});return k}function z(a,f,g,m){var k=ra(g);"function"!==typeof k?p("150"):void 0;g=k.call(g);null==g?p("151"):void 0;for(var x=k=null,l=f,n=f=0,q=null,w=g.next();null!==l&&!w.done;n++,w=g.next()){l.index>n?(q=l,l=null):q=l.sibling;
-var v=t(a,l,w.value,m);if(null===v){l||(l=q);break}b&&l&&null===v.alternate&&c(a,l);f=h(v,f,n);null===x?k=v:x.sibling=v;x=v;l=q}if(w.done)return d(a,l),k;if(null===l){for(;!w.done;n++,w=g.next())w=B(a,w.value,m),null!==w&&(f=h(w,f,n),null===x?k=w:x.sibling=w,x=w);return k}for(l=e(a,l);!w.done;n++,w=g.next())if(w=u(l,a,n,w.value,m),null!==w){if(b&&null!==w.alternate)l["delete"](null===w.key?n:w.key);f=h(w,f,n);null===x?k=w:x.sibling=w;x=w}b&&l.forEach(function(b){return c(a,b)});return k}function C(a,
-b,e,g){for(var h=e.key,k=b;null!==k;){if(k.key===h){if(k.type===e.type)return d(a,k.sibling),b=f(k,g),b.ref=sa(k,e),b.pendingProps=e.props,b["return"]=a,b;d(a,k);break}else c(a,k);k=k.sibling}k=gb(e,a.internalContextTag,g);k.ref=sa(b,e);k["return"]=a;return k}function D(a,b,e,g){for(var h=e.key;null!==b;){if(b.key===h){if(4===b.tag&&b.stateNode.containerInfo===e.containerInfo&&b.stateNode.implementation===e.implementation)return d(a,b.sibling),g=f(b,g),g.pendingProps=e.children||[],g["return"]=a,
-g;d(a,b);break}else c(a,b);b=b.sibling}e=db(e,a.internalContextTag,g);e["return"]=a;return e}return function(a,b,e,h){var k=cb.disableNewFiberFeatures,m="object"===typeof e&&null!==e;if(m)if(k)switch(e.$$typeof){case ta:return g(C(a,b,e,h));case ua:return g(D(a,b,e,h))}else switch(e.$$typeof){case ta:return g(C(a,b,e,h));case Ga:a:{for(k=e.key;null!==b;){if(b.key===k)if(7===b.tag){d(a,b.sibling);b=f(b,h);b.pendingProps=e;b["return"]=a;a=b;break a}else{d(a,b);break}else c(a,b);b=b.sibling}e=eb(e,a.internalContextTag,
-h);e["return"]=a;a=e}return g(a);case Ha:a:{if(null!==b)if(9===b.tag){d(a,b.sibling);b=f(b,h);b.type=e.value;b["return"]=a;a=b;break a}else d(a,b);b=new I(9,null,a.internalContextTag);b.type=e.value;b["return"]=a;a=b}return g(a);case ua:return g(D(a,b,e,h))}if(k)switch(a.tag){case 2:var l=a.type;null!==e&&!1!==e?p("109",l.displayName||l.name||"Component"):void 0;break;case 1:l=a.type,null!==e&&!1!==e?p("105",l.displayName||l.name||"Component"):void 0}if("string"===typeof e||"number"===typeof e)return e=
-""+e,null!==b&&6===b.tag?(d(a,b.sibling),b=f(b,h),b.pendingProps=e,b["return"]=a,a=b):(d(a,b),e=fb(e,a.internalContextTag,h),e["return"]=a,a=e),g(a);if(Ia(e))return r(a,b,e,h);if(ra(e))return z(a,b,e,h);m&&Fa(a,e);if(!k&&"undefined"===typeof e)switch(a.tag){case 2:case 1:e=a.type,p("152",e.displayName||e.name||"Component")}return d(a,b)}}function Kb(a,b){return a===b?0!==a||0!==b||1/a===1/b:a!==a&&b!==b}function kb(a){if(!a)return U;a=Y.get(a);return"number"===typeof a.tag?yb(a):a._processChildContext(a._context)}
-function Sb(a,b){return b={exports:{}},a(b,b.exports),b.exports}function Tb(a){return a.toElement?a.toElement():a.getDOMNode?a.getDOMNode():a.getNode?a.getNode():a}function Ub(a,b,c,d,e,f){a&&"object"==typeof a&&(b=a.yx,d=a.yy,f=a.y,c=a.xy,e=a.x,a=a.xx);this.xx=null==a?1:a;this.yx=b||0;this.xy=c||0;this.yy=null==d?1:d;this.x=(null==e?this.x:e)||0;this.y=(null==f?this.y:f)||0;this._transform();return this}function Vb(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
-return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function Wb(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function va(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function Xb(a){return a?"string"===
-typeof a?a:a.length?a.join(""):"":""}function Ec(a){return function(b){var c=a._listeners[b.type];c&&("function"===typeof c?c.call(a,b):c.handleEvent&&c.handleEvent(b))}}function Yb(a){if(a._subscriptions)for(var b in a._subscriptions)a._subscriptions[b]();a._subscriptions=null;a._listeners=null}function Fc(a,b){lb(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});a.width=b.width;a.height=b.height}function Gc(a,b){lb(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});a.width=
-b.width;a.height=b.height}function lb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};var d=null!=b.scaleX?b.scaleX:null!=b.scale?b.scale:1;var e=null!=b.scaleY?b.scaleY:null!=b.scale?b.scale:1;P.transformTo(1,0,0,1,0,0).move(b.x||0,b.y||0).rotate(b.rotation||0,b.originX,b.originY).scale(d,e,b.originX,b.originY);null!=b.transform&&P.transform(b.transform);a.xx===P.xx&&a.yx===P.yx&&a.xy===P.xy&&a.yy===P.yy&&a.x===P.x&&a.y===P.y||a.transformTo(P);b.cursor===c.cursor&&b.title===
-c.title||a.indicate(b.cursor,b.title);a.blend&&b.opacity!==c.opacity&&a.blend(null==b.opacity?1:b.opacity);b.visible!==c.visible&&(null==b.visible||b.visible?a.show():a.hide());for(var f in Zb)c=a,d=Zb[f],e=b[f],c._listeners||(c._listeners={},c._subscriptions={}),(c._listeners[d]=e)?c._subscriptions[d]||(c._subscriptions[d]=c.subscribe(d,Ec(c),c)):c._subscriptions[d]&&(c._subscriptions[d](),delete c._subscriptions[d])}function $b(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};
-lb(a,b,c);c.fill!==b.fill&&(b.fill&&b.fill.applyFill?b.fill.applyFill(a):a.fill(b.fill));c.stroke===b.stroke&&c.strokeWidth===b.strokeWidth&&c.strokeCap===b.strokeCap&&c.strokeJoin===b.strokeJoin&&c.strokeDash===b.strokeDash||a.stroke(b.stroke,b.strokeWidth,b.strokeCap,b.strokeJoin,b.strokeDash)}function Hc(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};$b(a,b,c);var d=b.d||Xb(b.children),e=a._prevDelta;if(d!==a._prevPath||d.delta!==e||c.height!==b.height||c.width!==b.width)a.draw(d,
-b.width,b.height),a._prevDelta=d.delta,a._prevPath=d}function Ic(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};$b(a,b,c);var d=b.children,e;if(!(e=a._currentString!==d)){e=b.font;var f=c.font;e=e===f?!0:"string"===typeof f||"string"===typeof e?!1:f.fontSize===e.fontSize&&f.fontStyle===e.fontStyle&&f.fontVariant===e.fontVariant&&f.fontWeight===e.fontWeight&&f.fontFamily===e.fontFamily;e=!e}if(e||b.alignment!==c.alignment||b.path!==c.path)a.draw(d,b.font,b.alignment,b.path),a._currentString=
-d}var ac=Object.getOwnPropertySymbols,Jc=Object.prototype.hasOwnProperty,Kc=Object.prototype.propertyIsEnumerable,Ea=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},
-c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var h in f)Jc.call(f,h)&&(c[h]=f[h]);if(ac){d=ac(f);for(var g=0;g<d.length;g++)Kc.call(f,d[g])&&(c[d[g]]=f[d[g]])}}return c},U={},cb={disableNewFiberFeatures:!1,enableAsyncSubtreeAPI:!1},Y={remove:function(a){a._reactInternalFiber=void 0},get:function(a){return a._reactInternalFiber},
-has:function(a){return void 0!==a._reactInternalFiber},set:function(a,b){a._reactInternalFiber=b}},ma=ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,za=[],Z=-1,aa={current:U},S={current:!1},Aa=U;if("function"===typeof Symbol&&Symbol["for"]){var bc=Symbol["for"]("react.coroutine");var cc=Symbol["for"]("react.yield")}else bc=60104,cc=60105;var Lc=cc,Mc=bc,Nc="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106,Ga=Mc,Ha=Lc,ua=Nc,ab=zb,Ia=Array.isArray,
-Rb="function"===typeof Symbol&&Symbol.iterator,ta="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,Ya=jb(!0,!0),$a=jb(!1,!0),Za=jb(!1,!1),Dc=Object.prototype.hasOwnProperty,ca={};kb._injectFiber=function(a){yb=a};kb._injectFiber(function(a){var b;a:{2===Da(a)&&2===a.tag?void 0:p("170");for(b=a;3!==b.tag;){if(qa(b)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}(b=b["return"])?void 0:p("171")}b=b.stateNode.context}return qa(a)?Ib(a,b,!1):b});var Ja=
-void 0;if("undefined"!==typeof window&&window.document&&window.document.createElement)if("function"!==typeof requestIdleCallback){var dc=null,mb=null,nb=!1,ob=!1,Ka=0,La=33,wa=33,Oc={timeRemaining:"object"===typeof performance&&"function"===typeof performance.now?function(){return Ka-performance.now()}:function(){return Ka-Date.now()}},ec="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){a.source===window&&a.data===ec&&(nb=!1,a=mb,mb=null,null!==
-a&&a(Oc))},!1);var Pc=function(a){ob=!1;var b=a-Ka+wa;b<wa&&La<wa?(8>b&&(b=8),wa=b<La?La:b):La=b;Ka=a+wa;nb||(nb=!0,window.postMessage(ec,"*"));b=dc;dc=null;null!==b&&b(a)};Ja=function(a){mb=a;ob||(ob=!0,requestAnimationFrame(Pc));return 0}}else Ja=requestIdleCallback;else Ja=function(a){setTimeout(function(){a({timeRemaining:function(){return Infinity}})});return 0};var Qc=Ja,O="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},E=Sb(function(a,
-b){function c(){throw Error("You must require a mode before requiring anything else.");}b.Surface=c;b.Path=c;b.Shape=c;b.Group=c;b.ClippingRectangle=c;b.Text=c;b.setCurrent=function(a){for(var c in a)b[c]=a[c]}}),fc=Object.freeze({default:E,__moduleExports:E,Surface:E.Surface,Path:E.Path,Shape:E.Shape,Group:E.Group,ClippingRectangle:E.ClippingRectangle,Text:E.Text,setCurrent:E.setCurrent}),Q=fc&&E||fc,da=z({grab:function(){for(var a=0;a<arguments.length;a++)arguments[a].inject(this);return this},
-empty:function(){for(var a;a=this.firstChild;)a.eject();return this}}),ea=z({toElement:function(){return this.element},getDOMNode:function(){return this.toElement()},getNode:function(){return this.toElement()},inject:function(a){(a.containerElement||Tb(a)).appendChild(this.element);return this},injectBefore:function(a){a=Tb(a);a.parentNode.insertBefore(this.element,a);return this},eject:function(){var a=this.element,b=a.parentNode;b&&b.removeChild(a);return this},subscribe:function(a,b,c){if("string"!=
-typeof a){var d=[],e;for(e in a)d.push(this.subscribe(e,a[e]));return function(){for(var a=0,b=d.length;a<b;a++)d[a]();return this}}c||(c=this);var f="function"===typeof b?b.bind?b.bind(c):function(){return b.apply(c,arguments)}:b;var h=this.element;if(h.addEventListener)return h.addEventListener(a,f,!1),function(){h.removeEventListener(a,f,!1);return this};h.attachEvent("on"+a,f);return function(){h.detachEvent("on"+a,f);return this}}}),Rc=1E3/60,Va=[],ka,fa="undefined"!==typeof window&&window.devicePixelRatio||
-1,W=null,gc=null,hc=z(ea,da,{initialize:function(a,b,c){c=this.element=c||document.createElement("canvas");this.context=c.getContext("2d");this._valid=!0;null!=a&&null!=b&&this.resize(a,b);c.addEventListener("mousemove",this,!1);c.addEventListener("mouseout",this,!1);c.addEventListener("mouseover",this,!1);c.addEventListener("mouseup",this,!1);c.addEventListener("mousedown",this,!1);c.addEventListener("click",this,!1)},handleEvent:function(a){if(null!=a.clientX){var b=this.element,c=b.getBoundingClientRect();
-b=this.hitTest(a.clientX-c.left-b.clientLeft,a.clientY-c.top-b.clientTop);b!==W&&(W&&W.dispatch({type:"mouseout",target:W,relatedTarget:b,sourceEvent:a}),b&&b.dispatch({type:"mouseover",target:b,relatedTarget:W,sourceEvent:a}),W=b,gc=this,this.refreshCursor());b&&b.dispatch(a)}},refreshCursor:function(){if(gc===this){for(var a=W,b="",c="";!(!a||!b&&a._cursor&&(b=a._cursor,c)||!c&&a._tooltip&&(c=a._tooltip,b));)a=a.parentNode;this.element.style.cursor=b;this.element.title=c}},resize:function(a,b){var c=
-this.element;c.setAttribute("width",a*fa);c.setAttribute("height",b*fa);c.style.width=a+"px";c.style.height=b+"px";this.width=a;this.height=b;return this},invalidate:function(){this._valid&&(this._valid=!1,Va.push(this),ka||(window.mozRequestAnimationFrame?(ka=!0,window.mozRequestAnimationFrame(wb)):ka=setTimeout(wb,Rc)));return this},hitTest:function(a,b){if(0>a||0>b||a>this.width||b>this.height)return null;for(var c=this.lastChild;c;){var d=c.hitTest(a,b);if(d)return d;c=c.previousSibling}return null},
-render:function(){var a=this.firstChild,b=this.context;b.setTransform(fa,0,0,fa,0,0);for(b.clearRect(0,0,this.width,this.height);a;)a.renderTo(b,fa,0,0,fa,0,0),a=a.nextSibling;this.refreshCursor()}});hc.tagName="canvas";var Ma=z({initialize:function(a){this.reset().push(a)},push:function(){var a=Array.prototype.join.call(arguments," ").match(/[a-df-z]|[\-+]?(?:[\d\.]e[\-+]?|[^\s\-+,a-z])+/ig);if(!a)return this;for(var b,c=a[0],d=1;c;){switch(c){case "m":this.move(a[d++],a[d++]);break;case "l":this.line(a[d++],
+g.props=b.memoizedProps;g.state=b.memoizedState;var h=b.memoizedProps,k=b.pendingProps;k||(k=h,null==k?p("159"):void 0);var l=g.context,q=oa(b);q=pa(b,q);"function"!==typeof g.componentWillReceiveProps||h===k&&l===q||(l=g.state,g.componentWillReceiveProps(k,q),g.state!==l&&f.enqueueReplaceState(g,g.state,null));l=b.memoizedState;e=null!==b.updateQueue?bb(a,b,b.updateQueue,g,l,k,e):l;if(!(h!==k||l!==e||S.current||null!==b.updateQueue&&b.updateQueue.hasForceUpdate))return"function"!==typeof g.componentDidUpdate||
+h===a.memoizedProps&&l===a.memoizedState||(b.effectTag|=4),!1;var B=k;if(null===h||null!==b.updateQueue&&b.updateQueue.hasForceUpdate)B=!0;else{var t=b.stateNode,u=b.type;B="function"===typeof t.shouldComponentUpdate?t.shouldComponentUpdate(B,e,q):u.prototype&&u.prototype.isPureReactComponent?!Hb(h,B)||!Hb(l,e):!0}B?("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(k,e,q),"function"===typeof g.componentDidUpdate&&(b.effectTag|=4)):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&
+l===a.memoizedState||(b.effectTag|=4),c(b,k),d(b,e));g.props=k;g.state=e;g.context=q;return B}}}function Ac(a){return(a=Y.get(a))?2===Da(a):!1}function Hb(a,b){if(Ib(a,b))return!0;if("object"!==typeof a||null===a||"object"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++)if(!Bc.call(b,c[d])||!Ib(a[c[d]],b[c[d]]))return!1;return!0}function db(a,b,c){b=new I(4,a.key,b);b.pendingProps=a.children||[];b.pendingWorkPriority=c;b.stateNode=
+{containerInfo:a.containerInfo,implementation:a.implementation};return b}function eb(a,b,c){b=new I(7,a.key,b);b.type=a.handler;b.pendingProps=a;b.pendingWorkPriority=c;return b}function fb(a,b,c){b=new I(6,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b}function Jb(a,b,c){b=new I(10,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b}function gb(a,b,c){var d=a.type,e=a.key,f=void 0;"function"===typeof d?(f=d.prototype&&d.prototype.isReactComponent?new I(2,e,b):new I(0,e,b),f.type=
+d):"string"===typeof d?(f=new I(5,e,b),f.type=d):"object"===typeof d&&null!==d&&"number"===typeof d.tag?f=d:p("130",null==d?d:typeof d,"");b=f;b.pendingProps=a.props;b.pendingWorkPriority=c;return b}function xb(a,b){var c=a.alternate;null===c?(c=new I(a.tag,a.key,a.internalContextTag),c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.effectTag=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.pendingWorkPriority=b;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=
+a.memoizedState;c.updateQueue=a.updateQueue;c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}function Ab(a){qa(a)&&(D(S,a),D(aa,a))}function pa(a,b){var c=a.type.contextTypes;if(!c)return U;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function oa(a){return qa(a)?
+Aa:aa.current}function N(a,b){Z++;za[Z]=a.current;a.current=b}function D(a){0>Z||(a.current=za[Z],za[Z]=null,Z--)}function na(a){a=a.type;return"string"===typeof a?a:"function"===typeof a?a.displayName||a.name:null}function bb(a,b,c,d,e,f,h){null!==a&&a.updateQueue===c&&(c=b.updateQueue={first:c.first,last:c.last,callbackList:null,hasForceUpdate:!1});a=c.callbackList;for(var g=c.hasForceUpdate,k=!0,m=c.first;null!==m&&0>=hb(m.priorityLevel,h);){c.first=m.next;null===c.first&&(c.last=null);var n;if(m.isReplace)e=
+Kb(m,d,e,f),k=!0;else if(n=Kb(m,d,e,f))e=k?Ea({},e,n):Ea(e,n),k=!1;m.isForced&&(g=!0);null===m.callback||m.isTopLevelUnmount&&null!==m.next||(a=null!==a?a:[],a.push(m.callback),b.effectTag|=32);m=m.next}c.callbackList=a;c.hasForceUpdate=g;null!==c.first||null!==a||g||(b.updateQueue=null);return e}function p(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+
+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}function hb(a,b){return 2!==a&&1!==a||2!==b&&1!==b?0===a&&0!==b?-255:0!==a&&0===b?255:a-b:0}function Lb(){return{first:null,last:null,hasForceUpdate:!1,callbackList:null}}function ib(a,b,c,d){null!==c?c.next=b:(b.next=a.first,a.first=b);null!==d?b.next=d:a.last=b}function Mb(a,b){b=b.priorityLevel;var c=null;if(null!==
+a.last&&0>=hb(a.last.priorityLevel,b))c=a.last;else for(a=a.first;null!==a&&0>=hb(a.priorityLevel,b);)c=a,a=a.next;return c}function Nb(a){var b=a.alternate,c=a.updateQueue;null===c&&(c=a.updateQueue=Lb());null!==b?(a=b.updateQueue,null===a&&(a=b.updateQueue=Lb())):a=null;return[c,a!==c?a:null]}function Ca(a,b){var c=Nb(a);a=c[0];c=c[1];var d=Mb(a,b),e=null!==d?d.next:a.first;if(null===c)return ib(a,b,d,e),null;var f=Mb(c,b),h=null!==f?f.next:c.first;ib(a,b,d,e);if(e===h&&null!==e||d===f&&null!==
+d)return null===f&&(c.first=b),null===h&&(c.last=null),null;b={priorityLevel:b.priorityLevel,partialState:b.partialState,callback:b.callback,isReplace:b.isReplace,isForced:b.isForced,isTopLevelUnmount:b.isTopLevelUnmount,next:null};ib(c,b,f,h);return b}function Kb(a,b,c,d){a=a.partialState;return"function"===typeof a?a.call(b,c,d):a}function Da(a){var b=a;if(a.alternate)for(;b["return"];)b=b["return"];else{if(0!==(b.effectTag&2))return 1;for(;b["return"];)if(b=b["return"],0!==(b.effectTag&2))return 1}return 3===
+b.tag?2:3}function Ob(a){2!==Da(a)?p("188"):void 0}function wb(a){var b=a.alternate;if(!b)return b=Da(a),3===b?p("188"):void 0,1===b?null:a;for(var c=a,d=b;;){var e=c["return"],f=e?e.alternate:null;if(!e||!f)break;if(e.child===f.child){for(var h=e.child;h;){if(h===c)return Ob(e),a;if(h===d)return Ob(e),b;h=h.sibling}p("188")}if(c["return"]!==d["return"])c=e,d=f;else{h=!1;for(var g=e.child;g;){if(g===c){h=!0;c=e;d=f;break}if(g===d){h=!0;d=e;c=f;break}g=g.sibling}if(!h){for(g=f.child;g;){if(g===c){h=
+!0;c=f;d=e;break}if(g===d){h=!0;d=f;c=e;break}g=g.sibling}h?void 0:p("189")}}c.alternate!==d?p("190"):void 0}3!==c.tag?p("188"):void 0;return c.stateNode.current===c?a:b}function qa(a){return 2===a.tag&&null!=a.type.childContextTypes}function Gb(a,b){var c=a.stateNode,d=a.type.childContextTypes;if("function"!==typeof c.getChildContext)return b;c=c.getChildContext();for(var e in c)e in d?void 0:p("108",na(a)||"Unknown",e);return Ea({},b,c)}function I(a,b,c){this.tag=a;this.key=b;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=c;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.pendingWorkPriority=0;this.alternate=null}function ra(a){if(null===a||"undefined"===typeof a)return null;a=Pb&&a[Pb]||a["@@iterator"];return"function"===typeof a?a:null}function sa(a,b){var c=b.ref;if(null!==c&&"function"!==typeof c){if(b._owner){b=b._owner;
+var d=void 0;b&&(2!==b.tag?p("110"):void 0,d=b.stateNode);d?void 0:p("147",c);var e=""+c;if(null!==a&&null!==a.ref&&a.ref._stringRef===e)return a.ref;a=function(a){var b=d.refs===U?d.refs={}:d.refs;null===a?delete b[e]:b[e]=a};a._stringRef=e;return a}"string"!==typeof c?p("148"):void 0;b._owner?void 0:p("149",c)}return c}function Fa(a,b){"textarea"!==a.type&&p("31","[object Object]"===Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b,"")}function jb(a,b){function c(c,
+d){if(b){if(!a){if(null===d.alternate)return;d=d.alternate}var e=c.lastEffect;null!==e?(e.nextEffect=d,c.lastEffect=d):c.firstEffect=c.lastEffect=d;d.nextEffect=null;d.effectTag=8}}function d(a,d){if(!b)return null;for(;null!==d;)c(a,d),d=d.sibling;return null}function e(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function f(b,c){if(a)return b=ab(b,c),b.index=0,b.sibling=null,b;b.pendingWorkPriority=c;b.effectTag=0;b.index=0;b.sibling=null;return b}
+function h(a,c,d){a.index=d;if(!b)return c;d=a.alternate;if(null!==d)return d=d.index,d<c?(a.effectTag=2,c):d;a.effectTag=2;return c}function g(a){b&&null===a.alternate&&(a.effectTag=2);return a}function k(a,b,c,d){if(null===b||6!==b.tag)return c=fb(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function m(a,b,c,d){if(null===b||b.type!==c.type)return d=gb(c,a.internalContextTag,d),d.ref=sa(b,c),d["return"]=a,d;d=f(b,d);d.ref=sa(b,c);d.pendingProps=c.props;
+d["return"]=a;return d}function n(a,b,c,d){if(null===b||7!==b.tag)return c=eb(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function v(a,b,c,d){if(null===b||9!==b.tag)return b=new I(9,null,a.internalContextTag),b.type=c.value,b["return"]=a,b;b=f(b,d);b.type=c.value;b["return"]=a;return b}function l(b,a,c,d){if(null===a||4!==a.tag||a.stateNode.containerInfo!==c.containerInfo||a.stateNode.implementation!==c.implementation)return c=db(c,b.internalContextTag,
+d),c["return"]=b,c;a=f(a,d);a.pendingProps=c.children||[];a["return"]=b;return a}function q(a,b,c,d){if(null===b||10!==b.tag)return c=Jb(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function B(b,a,c){if("string"===typeof a||"number"===typeof a)return a=fb(""+a,b.internalContextTag,c),a["return"]=b,a;if("object"===typeof a&&null!==a){switch(a.$$typeof){case ta:return c=gb(a,b.internalContextTag,c),c.ref=sa(null,a),c["return"]=b,c;case Ga:return a=eb(a,
+b.internalContextTag,c),a["return"]=b,a;case Ha:return c=new I(9,null,b.internalContextTag),c.type=a.value,c["return"]=b,c;case ua:return a=db(a,b.internalContextTag,c),a["return"]=b,a}if(Ia(a)||ra(a))return a=Jb(a,b.internalContextTag,c),a["return"]=b,a;Fa(b,a)}return null}function t(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c||"number"===typeof c)return null!==e?null:k(a,b,""+c,d);if("object"===typeof c&&null!==c){switch(c.$$typeof){case ta:return c.key===e?m(a,b,c,d):null;case Ga:return c.key===
+e?n(a,b,c,d):null;case Ha:return null===e?v(a,b,c,d):null;case ua:return c.key===e?l(a,b,c,d):null}if(Ia(c)||ra(c))return null!==e?null:q(a,b,c,d);Fa(a,c)}return null}function u(a,b,c,d,e){if("string"===typeof d||"number"===typeof d)return a=a.get(c)||null,k(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case ta:return a=a.get(null===d.key?c:d.key)||null,m(b,a,d,e);case Ga:return a=a.get(null===d.key?c:d.key)||null,n(b,a,d,e);case Ha:return a=a.get(c)||null,v(b,a,d,e);case ua:return a=
+a.get(null===d.key?c:d.key)||null,l(b,a,d,e)}if(Ia(d)||ra(d))return a=a.get(c)||null,q(b,a,d,e);Fa(b,d)}return null}function r(a,f,g,m){for(var k=null,l=null,x=f,n=f=0,w=null;null!==x&&n<g.length;n++){x.index>n?(w=x,x=null):w=x.sibling;var q=t(a,x,g[n],m);if(null===q){null===x&&(x=w);break}b&&x&&null===q.alternate&&c(a,x);f=h(q,f,n);null===l?k=q:l.sibling=q;l=q;x=w}if(n===g.length)return d(a,x),k;if(null===x){for(;n<g.length;n++)if(x=B(a,g[n],m))f=h(x,f,n),null===l?k=x:l.sibling=x,l=x;return k}for(x=
+e(a,x);n<g.length;n++)if(w=u(x,a,n,g[n],m)){if(b&&null!==w.alternate)x["delete"](null===w.key?n:w.key);f=h(w,f,n);null===l?k=w:l.sibling=w;l=w}b&&x.forEach(function(b){return c(a,b)});return k}function z(a,f,g,m){var k=ra(g);"function"!==typeof k?p("150"):void 0;g=k.call(g);null==g?p("151"):void 0;for(var x=k=null,l=f,n=f=0,q=null,w=g.next();null!==l&&!w.done;n++,w=g.next()){l.index>n?(q=l,l=null):q=l.sibling;var v=t(a,l,w.value,m);if(null===v){l||(l=q);break}b&&l&&null===v.alternate&&c(a,l);f=h(v,
+f,n);null===x?k=v:x.sibling=v;x=v;l=q}if(w.done)return d(a,l),k;if(null===l){for(;!w.done;n++,w=g.next())w=B(a,w.value,m),null!==w&&(f=h(w,f,n),null===x?k=w:x.sibling=w,x=w);return k}for(l=e(a,l);!w.done;n++,w=g.next())if(w=u(l,a,n,w.value,m),null!==w){if(b&&null!==w.alternate)l["delete"](null===w.key?n:w.key);f=h(w,f,n);null===x?k=w:x.sibling=w;x=w}b&&l.forEach(function(b){return c(a,b)});return k}function C(a,b,e,g){for(var h=e.key,k=b;null!==k;){if(k.key===h){if(k.type===e.type)return d(a,k.sibling),
+b=f(k,g),b.ref=sa(k,e),b.pendingProps=e.props,b["return"]=a,b;d(a,k);break}else c(a,k);k=k.sibling}k=gb(e,a.internalContextTag,g);k.ref=sa(b,e);k["return"]=a;return k}function D(a,b,e,g){for(var h=e.key;null!==b;){if(b.key===h){if(4===b.tag&&b.stateNode.containerInfo===e.containerInfo&&b.stateNode.implementation===e.implementation)return d(a,b.sibling),g=f(b,g),g.pendingProps=e.children||[],g["return"]=a,g;d(a,b);break}else c(a,b);b=b.sibling}e=db(e,a.internalContextTag,g);e["return"]=a;return e}
+return function(a,b,e,h){var k=cb.disableNewFiberFeatures,m="object"===typeof e&&null!==e;if(m)if(k)switch(e.$$typeof){case ta:return g(C(a,b,e,h));case ua:return g(D(a,b,e,h))}else switch(e.$$typeof){case ta:return g(C(a,b,e,h));case Ga:a:{for(k=e.key;null!==b;){if(b.key===k)if(7===b.tag){d(a,b.sibling);b=f(b,h);b.pendingProps=e;b["return"]=a;a=b;break a}else{d(a,b);break}else c(a,b);b=b.sibling}e=eb(e,a.internalContextTag,h);e["return"]=a;a=e}return g(a);case Ha:a:{if(null!==b)if(9===b.tag){d(a,
+b.sibling);b=f(b,h);b.type=e.value;b["return"]=a;a=b;break a}else d(a,b);b=new I(9,null,a.internalContextTag);b.type=e.value;b["return"]=a;a=b}return g(a);case ua:return g(D(a,b,e,h))}if(k)switch(a.tag){case 2:var l=a.type;null!==e&&!1!==e?p("109",l.displayName||l.name||"Component"):void 0;break;case 1:l=a.type,null!==e&&!1!==e?p("105",l.displayName||l.name||"Component"):void 0}if("string"===typeof e||"number"===typeof e)return e=""+e,null!==b&&6===b.tag?(d(a,b.sibling),b=f(b,h),b.pendingProps=e,
+b["return"]=a,a=b):(d(a,b),e=fb(e,a.internalContextTag,h),e["return"]=a,a=e),g(a);if(Ia(e))return r(a,b,e,h);if(ra(e))return z(a,b,e,h);m&&Fa(a,e);if(!k&&"undefined"===typeof e)switch(a.tag){case 2:case 1:e=a.type,p("152",e.displayName||e.name||"Component")}return d(a,b)}}function Ib(a,b){return a===b?0!==a||0!==b||1/a===1/b:a!==a&&b!==b}function Qb(a,b){return b={exports:{}},a(b,b.exports),b.exports}function Rb(a){return a.toElement?a.toElement():a.getDOMNode?a.getDOMNode():a.getNode?a.getNode():
+a}function Sb(a,b,c,d,e,f){a&&"object"==typeof a&&(b=a.yx,d=a.yy,f=a.y,c=a.xy,e=a.x,a=a.xx);this.xx=null==a?1:a;this.yx=b||0;this.xy=c||0;this.yy=null==d?1:d;this.x=(null==e?this.x:e)||0;this.y=(null==f?this.y:f)||0;this._transform();return this}function Tb(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function Ub(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+
+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function va(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function Vb(a){return a?"string"===typeof a?a:a.length?a.join(""):"":""}function Cc(a){return function(b){var c=a._listeners[b.type];c&&("function"===typeof c?c.call(a,b):c.handleEvent&&c.handleEvent(b))}}function Wb(a){if(a._subscriptions)for(var b in a._subscriptions)a._subscriptions[b]();
+a._subscriptions=null;a._listeners=null}function Dc(a,b){kb(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});a.width=b.width;a.height=b.height}function Ec(a,b){kb(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});a.width=b.width;a.height=b.height}function kb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};var d=null!=b.scaleX?b.scaleX:null!=b.scale?b.scale:1;var e=null!=b.scaleY?b.scaleY:null!=b.scale?b.scale:1;P.transformTo(1,0,0,1,0,0).move(b.x||0,
+b.y||0).rotate(b.rotation||0,b.originX,b.originY).scale(d,e,b.originX,b.originY);null!=b.transform&&P.transform(b.transform);a.xx===P.xx&&a.yx===P.yx&&a.xy===P.xy&&a.yy===P.yy&&a.x===P.x&&a.y===P.y||a.transformTo(P);b.cursor===c.cursor&&b.title===c.title||a.indicate(b.cursor,b.title);a.blend&&b.opacity!==c.opacity&&a.blend(null==b.opacity?1:b.opacity);b.visible!==c.visible&&(null==b.visible||b.visible?a.show():a.hide());for(var f in Xb)c=a,d=Xb[f],e=b[f],c._listeners||(c._listeners={},c._subscriptions=
+{}),(c._listeners[d]=e)?c._subscriptions[d]||(c._subscriptions[d]=c.subscribe(d,Cc(c),c)):c._subscriptions[d]&&(c._subscriptions[d](),delete c._subscriptions[d])}function Yb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};kb(a,b,c);c.fill!==b.fill&&(b.fill&&b.fill.applyFill?b.fill.applyFill(a):a.fill(b.fill));c.stroke===b.stroke&&c.strokeWidth===b.strokeWidth&&c.strokeCap===b.strokeCap&&c.strokeJoin===b.strokeJoin&&c.strokeDash===b.strokeDash||a.stroke(b.stroke,b.strokeWidth,
+b.strokeCap,b.strokeJoin,b.strokeDash)}function Fc(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Yb(a,b,c);var d=b.d||Vb(b.children),e=a._prevDelta;if(d!==a._prevPath||d.delta!==e||c.height!==b.height||c.width!==b.width)a.draw(d,b.width,b.height),a._prevDelta=d.delta,a._prevPath=d}function Gc(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Yb(a,b,c);var d=b.children,e;if(!(e=a._currentString!==d)){e=b.font;var f=c.font;e=e===f?!0:"string"===typeof f||"string"===
+typeof e?!1:f.fontSize===e.fontSize&&f.fontStyle===e.fontStyle&&f.fontVariant===e.fontVariant&&f.fontWeight===e.fontWeight&&f.fontFamily===e.fontFamily;e=!e}if(e||b.alignment!==c.alignment||b.path!==c.path)a.draw(d,b.font,b.alignment,b.path),a._currentString=d}var Zb=Object.getOwnPropertySymbols,Hc=Object.prototype.hasOwnProperty,Ic=Object.prototype.propertyIsEnumerable,Ea=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;
+var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=
+Object(arguments[e]);for(var h in f)Hc.call(f,h)&&(c[h]=f[h]);if(Zb){d=Zb(f);for(var g=0;g<d.length;g++)Ic.call(f,d[g])&&(c[d[g]]=f[d[g]])}}return c},U={},cb={disableNewFiberFeatures:!1,enableAsyncSubtreeAPI:!1},Y={remove:function(a){a._reactInternalFiber=void 0},get:function(a){return a._reactInternalFiber},has:function(a){return void 0!==a._reactInternalFiber},set:function(a,b){a._reactInternalFiber=b}},ma=ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,za=[],Z=-1,aa={current:U},
+S={current:!1},Aa=U;if("function"===typeof Symbol&&Symbol["for"]){var $b=Symbol["for"]("react.coroutine");var ac=Symbol["for"]("react.yield")}else $b=60104,ac=60105;var Jc=ac,Kc=$b,Lc="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106,Ga=Kc,Ha=Jc,ua=Lc,ab=xb,Ia=Array.isArray,Pb="function"===typeof Symbol&&Symbol.iterator,ta="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,Ya=jb(!0,!0),$a=jb(!1,!0),Za=jb(!1,!1),Bc=Object.prototype.hasOwnProperty,
+ca={},Ja=void 0;if("undefined"!==typeof window&&window.document&&window.document.createElement)if("function"!==typeof requestIdleCallback){var bc=null,lb=null,mb=!1,nb=!1,Ka=0,La=33,wa=33,Mc={timeRemaining:"object"===typeof performance&&"function"===typeof performance.now?function(){return Ka-performance.now()}:function(){return Ka-Date.now()}},cc="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){a.source===window&&a.data===cc&&(mb=!1,a=lb,lb=
+null,null!==a&&a(Mc))},!1);var Nc=function(a){nb=!1;var b=a-Ka+wa;b<wa&&La<wa?(8>b&&(b=8),wa=b<La?La:b):La=b;Ka=a+wa;mb||(mb=!0,window.postMessage(cc,"*"));b=bc;bc=null;null!==b&&b(a)};Ja=function(a){lb=a;nb||(nb=!0,requestAnimationFrame(Nc));return 0}}else Ja=requestIdleCallback;else Ja=function(a){setTimeout(function(){a({timeRemaining:function(){return Infinity}})});return 0};var Oc=Ja,O="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},E=Qb(function(a,
+b){function c(){throw Error("You must require a mode before requiring anything else.");}b.Surface=c;b.Path=c;b.Shape=c;b.Group=c;b.ClippingRectangle=c;b.Text=c;b.setCurrent=function(a){for(var c in a)b[c]=a[c]}}),dc=Object.freeze({default:E,__moduleExports:E,Surface:E.Surface,Path:E.Path,Shape:E.Shape,Group:E.Group,ClippingRectangle:E.ClippingRectangle,Text:E.Text,setCurrent:E.setCurrent}),Q=dc&&E||dc,da=z({grab:function(){for(var a=0;a<arguments.length;a++)arguments[a].inject(this);return this},
+empty:function(){for(var a;a=this.firstChild;)a.eject();return this}}),ea=z({toElement:function(){return this.element},getDOMNode:function(){return this.toElement()},getNode:function(){return this.toElement()},inject:function(a){(a.containerElement||Rb(a)).appendChild(this.element);return this},injectBefore:function(a){a=Rb(a);a.parentNode.insertBefore(this.element,a);return this},eject:function(){var a=this.element,b=a.parentNode;b&&b.removeChild(a);return this},subscribe:function(a,b,c){if("string"!=
+typeof a){var d=[],e;for(e in a)d.push(this.subscribe(e,a[e]));return function(){for(var a=0,b=d.length;a<b;a++)d[a]();return this}}c||(c=this);var f="function"===typeof b?b.bind?b.bind(c):function(){return b.apply(c,arguments)}:b;var h=this.element;if(h.addEventListener)return h.addEventListener(a,f,!1),function(){h.removeEventListener(a,f,!1);return this};h.attachEvent("on"+a,f);return function(){h.detachEvent("on"+a,f);return this}}}),Pc=1E3/60,Va=[],ka,fa="undefined"!==typeof window&&window.devicePixelRatio||
+1,W=null,ec=null,fc=z(ea,da,{initialize:function(a,b,c){c=this.element=c||document.createElement("canvas");this.context=c.getContext("2d");this._valid=!0;null!=a&&null!=b&&this.resize(a,b);c.addEventListener("mousemove",this,!1);c.addEventListener("mouseout",this,!1);c.addEventListener("mouseover",this,!1);c.addEventListener("mouseup",this,!1);c.addEventListener("mousedown",this,!1);c.addEventListener("click",this,!1)},handleEvent:function(a){if(null!=a.clientX){var b=this.element,c=b.getBoundingClientRect();
+b=this.hitTest(a.clientX-c.left-b.clientLeft,a.clientY-c.top-b.clientTop);b!==W&&(W&&W.dispatch({type:"mouseout",target:W,relatedTarget:b,sourceEvent:a}),b&&b.dispatch({type:"mouseover",target:b,relatedTarget:W,sourceEvent:a}),W=b,ec=this,this.refreshCursor());b&&b.dispatch(a)}},refreshCursor:function(){if(ec===this){for(var a=W,b="",c="";!(!a||!b&&a._cursor&&(b=a._cursor,c)||!c&&a._tooltip&&(c=a._tooltip,b));)a=a.parentNode;this.element.style.cursor=b;this.element.title=c}},resize:function(a,b){var c=
+this.element;c.setAttribute("width",a*fa);c.setAttribute("height",b*fa);c.style.width=a+"px";c.style.height=b+"px";this.width=a;this.height=b;return this},invalidate:function(){this._valid&&(this._valid=!1,Va.push(this),ka||(window.mozRequestAnimationFrame?(ka=!0,window.mozRequestAnimationFrame(vb)):ka=setTimeout(vb,Pc)));return this},hitTest:function(a,b){if(0>a||0>b||a>this.width||b>this.height)return null;for(var c=this.lastChild;c;){var d=c.hitTest(a,b);if(d)return d;c=c.previousSibling}return null},
+render:function(){var a=this.firstChild,b=this.context;b.setTransform(fa,0,0,fa,0,0);for(b.clearRect(0,0,this.width,this.height);a;)a.renderTo(b,fa,0,0,fa,0,0),a=a.nextSibling;this.refreshCursor()}});fc.tagName="canvas";var Ma=z({initialize:function(a){this.reset().push(a)},push:function(){var a=Array.prototype.join.call(arguments," ").match(/[a-df-z]|[\-+]?(?:[\d\.]e[\-+]?|[^\s\-+,a-z])+/ig);if(!a)return this;for(var b,c=a[0],d=1;c;){switch(c){case "m":this.move(a[d++],a[d++]);break;case "l":this.line(a[d++],
a[d++]);break;case "c":this.curve(a[d++],a[d++],a[d++],a[d++],a[d++],a[d++]);break;case "s":this.curve(a[d++],a[d++],null,null,a[d++],a[d++]);break;case "q":this.curve(a[d++],a[d++],a[d++],a[d++]);break;case "t":this.curve(a[d++],a[d++]);break;case "a":this.arc(a[d+5],a[d+6],a[d],a[d+1],a[d+3],!+a[d+4],a[d+2]);d+=7;break;case "h":this.line(a[d++],0);break;case "v":this.line(0,a[d++]);break;case "M":this.moveTo(a[d++],a[d++]);break;case "L":this.lineTo(a[d++],a[d++]);break;case "C":this.curveTo(a[d++],
a[d++],a[d++],a[d++],a[d++],a[d++]);break;case "S":this.curveTo(a[d++],a[d++],null,null,a[d++],a[d++]);break;case "Q":this.curveTo(a[d++],a[d++],a[d++],a[d++]);break;case "T":this.curveTo(a[d++],a[d++]);break;case "A":this.arcTo(a[d+5],a[d+6],a[d],a[d+1],a[d+3],!+a[d+4],a[d+2]);d+=7;break;case "H":this.lineTo(a[d++],this.penY);break;case "V":this.lineTo(this.penX,a[d++]);break;case "Z":case "z":this.close();break;default:c=b;d--;continue}b=c;"m"==b?b="l":"M"==b&&(b="L");c=a[d++]}return this},reset:function(){this.penX=
this.penY=0;this.penDownX=this.penDownY=null;this._pivotX=this._pivotY=0;this.onReset();return this},move:function(a,b){this.onMove(this.penX,this.penY,this._pivotX=this.penX+=+a,this._pivotY=this.penY+=+b);return this},moveTo:function(a,b){this.onMove(this.penX,this.penY,this._pivotX=this.penX=+a,this._pivotY=this.penY=+b);return this},line:function(a,b){return this.lineTo(this.penX+ +a,this.penY+ +b)},lineTo:function(a,b){null==this.penDownX&&(this.penDownX=this.penX,this.penDownY=this.penY);this.onLine(this.penX,
this.penY,this._pivotX=this.penX=+a,this._pivotY=this.penY=+b);return this},curve:function(a,b,c,d,e,f){var h=this.penX,g=this.penY;return this.curveTo(h+ +a,g+ +b,null==c?null:h+ +c,null==d?null:g+ +d,null==e?null:h+ +e,null==f?null:g+ +f)},curveTo:function(a,b,c,d,e,f){var h=this.penX,g=this.penY;null==c&&(c=+a,d=+b,a=2*h-(this._pivotX||0),b=2*g-(this._pivotY||0));null==e?(this._pivotX=+a,this._pivotY=+b,e=+c,f=+d,c=(e+2*+a)/3,d=(f+2*+b)/3,a=(h+2*+a)/3,b=(g+2*+b)/3):(this._pivotX=+c,this._pivotY=
-+d);null==this.penDownX&&(this.penDownX=h,this.penDownY=g);this.onBezierCurve(h,g,+a,+b,+c,+d,this.penX=+e,this.penY=+f);return this},arc:function(a,b,c,d,e,f,h){return this.arcTo(this.penX+ +a,this.penY+ +b,c,d,e,f,h)},arcTo:function(a,b,c,d,e,f,h){d=Math.abs(+d||+c||+b-this.penY);c=Math.abs(+c||+a-this.penX);if(!c||!d||a==this.penX&&b==this.penY)return this.lineTo(a,b);var g=this.penX,m=this.penY;f=!+f;var k=!!+e;e=h?h*Math.PI/180:0;var n=Math.cos(e),v=Math.sin(e);a-=g;b-=m;e=n*a/2+v*b/2;var l=
--v*a/2+n*b/2,q=c*c*d*d,p=d*d*e*e,t=c*c*l*l,u=q-t-p;0>u?(u=Math.sqrt(1-u/q),c*=u,d*=u,e=a/2,l=b/2):(u=Math.sqrt(u/(t+p)),k==f&&(u=-u),l=-u*l*c/d,k=u*e*d/c,e=n*l-v*k+a/2,l=v*l+n*k+b/2);k=n/c;u=v/c;v=-v/d;q=n/d;n=Math.atan2(v*-e+q*-l,k*-e+u*-l);v=Math.atan2(v*(a-e)+q*(b-l),k*(a-e)+u*(b-l));null==this.penDownX&&(this.penDownX=this.penX,this.penDownY=this.penY);this.onArc(g,m,this._pivotX=this.penX=a+g,this._pivotY=this.penY=b+m,e+g,l+m,c,d,n,v,!f,h);return this},counterArc:function(a,b,c,d,e){return this.arc(a,
-b,c,d,e,!0)},counterArcTo:function(a,b,c,d,e){return this.arcTo(a,b,c,d,e,!0)},close:function(){null!=this.penDownX&&(this.onClose(this.penX,this.penY,this.penX=this.penDownX,this.penY=this.penDownY),this.penDownX=null);return this},onReset:function(){},onMove:function(){},onLine:function(a,b,c,d){this.onBezierCurve(a,b,a,b,c,d,c,d)},onBezierCurve:function(a,b,c,d,e,f,h,g){var m=h-a,k=g-b,n=m*m+k*k;var v=c-a;var l=d-b;var q=v*m+l*k;q>n?(v-=m,l-=k):0<q&&0!=n&&(v-=q/n*m,l-=q/n*k);var p=v*v+l*l;v=e-
-a;l=f-b;q=v*m+l*k;q>n?(v-=m,l-=k):0<q&&0!=n&&(v-=q/n*m,l-=q/n*k);m=v*v+l*l;if(.01>p&&.01>m)this.onLine(a,b,h,g);else{if(isNaN(p)||isNaN(m))throw Error("Bad input");n=.5*(c+e);k=.5*(d+f);c=.5*(c+a);d=.5*(d+b);p=.5*(c+n);m=.5*(d+k);e=.5*(h+e);f=.5*(g+f);n=.5*(e+n);k=.5*(f+k);v=.5*(p+n);l=.5*(m+k);this.onBezierCurve(a,b,c,d,p,m,v,l);this.onBezierCurve(v,l,n,k,e,f,h,g)}},onArc:function(a,b,c,d,e,f,h,g,m,k,n,v){c=v?v*Math.PI/180:0;v=Math.cos(c);var l=Math.sin(c);c=v*h;d=-l*g;h*=l;g*=v;k-=m;0>k&&!n?k+=
-2*Math.PI:0<k&&n&&(k-=2*Math.PI);n=Math.ceil(Math.abs(k/(Math.PI/2)));k/=n;v=4/3*Math.tan(k/4);l=Math.cos(m);for(var q=Math.sin(m),p=0;p<n;p++){var t=l-v*q,u=q+v*l;m+=k;l=Math.cos(m);q=Math.sin(m);var r=l+v*q,z=q-v*l;this.onBezierCurve(a,b,e+c*t+d*u,f+h*t+g*u,e+c*r+d*z,f+h*r+g*z,a=e+c*l+d*q,b=f+h*l+g*q)}},onClose:function(a,b,c,d){this.onLine(a,b,c,d)}}),ic=z(Ma,{initialize:function(a){this.reset();a instanceof ic?this.path=a.path.slice(0):a&&(a.applyToPath?a.applyToPath(this):this.push(a))},onReset:function(){this.path=
-[]},onMove:function(a,b,c,d){this.path.push(function(a){a.moveTo(c,d)})},onLine:function(a,b,c,d){this.path.push(function(a){a.lineTo(c,d)})},onBezierCurve:function(a,b,c,d,e,f,h,g){this.path.push(function(a){a.bezierCurveTo(c,d,e,f,h,g)})},_arcToBezier:Ma.prototype.onArc,onArc:function(a,b,c,d,e,f,h,g,m,k,n,p){if(h!=g||p)return this._arcToBezier(a,b,c,d,e,f,h,g,m,k,n,p);this.path.push(function(a){a.arc(e,f,h,m,k,n)})},onClose:function(){this.path.push(function(a){a.closePath()})},toCommands:function(){return this.path.slice(0)}}),
-pb=ic,mc={maroon:"#800000",red:"#ff0000",orange:"#ffA500",yellow:"#ffff00",olive:"#808000",purple:"#800080",fuchsia:"#ff00ff",white:"#ffffff",lime:"#00ff00",green:"#008000",navy:"#000080",blue:"#0000ff",aqua:"#00ffff",teal:"#008080",black:"#000000",silver:"#c0c0c0",gray:"#808080"},qb=/([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,?\s*([-.\d]*\%?)/,Sc=/^#?([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{0,2})$/i;r.parseRGB=function(a){return ja(a.match(qb).slice(1),function(a,c){a&&(a=
-parseFloat(a)*("%"==a[a.length-1]?2.55:1));return 3>c?Math.round(0>(a%=256)?a+256:a):Math.min(1,Math.max(0,""===a?1:Number(a)))})};r.parseHEX=function(a){1==a.length&&(a=a+a+a);return ja(a.match(Sc).slice(1),function(a,c){return 3==c?a?parseInt(a,16)/255:1:parseInt(1==a.length?a+a:a,16)})};r.parseHSB=function(a){var b=ja(a.match(qb).slice(1),function(a,b){a&&(a=parseFloat(a));return 0===b?Math.round(0>(a%=360)?a+360:a):3>b?Math.min(100,Math.max(0,Math.round(a))):Math.min(1,Math.max(0,""===a?1:Number(a)))});
-a=b[3];var c=Math.round(b[2]/100*255);if(0==b[1])return[c,c,c,a];var d=b[0],e=d%60,f=Math.round(b[2]*(100-b[1])/1E4*255),h=Math.round(b[2]*(6E3-b[1]*e)/6E5*255);b=Math.round(b[2]*(6E3-b[1]*(60-e))/6E5*255);switch(Math.floor(d/60)){case 0:return[c,b,f,a];case 1:return[h,c,f,a];case 2:return[f,c,b,a];case 3:return[f,h,c,a];case 4:return[b,f,c,a];default:return[c,f,h,a]}};r.parseHSL=function(a){var b=ja(a.match(qb).slice(1),function(a,b){a&&(a=parseFloat(a));return 0===b?Math.round(0>(a%=360)?a+360:
++d);null==this.penDownX&&(this.penDownX=h,this.penDownY=g);this.onBezierCurve(h,g,+a,+b,+c,+d,this.penX=+e,this.penY=+f);return this},arc:function(a,b,c,d,e,f,h){return this.arcTo(this.penX+ +a,this.penY+ +b,c,d,e,f,h)},arcTo:function(a,b,c,d,e,f,h){d=Math.abs(+d||+c||+b-this.penY);c=Math.abs(+c||+a-this.penX);if(!c||!d||a==this.penX&&b==this.penY)return this.lineTo(a,b);var g=this.penX,k=this.penY;f=!+f;var m=!!+e;e=h?h*Math.PI/180:0;var n=Math.cos(e),v=Math.sin(e);a-=g;b-=k;e=n*a/2+v*b/2;var l=
+-v*a/2+n*b/2,q=c*c*d*d,p=d*d*e*e,t=c*c*l*l,u=q-t-p;0>u?(u=Math.sqrt(1-u/q),c*=u,d*=u,e=a/2,l=b/2):(u=Math.sqrt(u/(t+p)),m==f&&(u=-u),l=-u*l*c/d,m=u*e*d/c,e=n*l-v*m+a/2,l=v*l+n*m+b/2);m=n/c;u=v/c;v=-v/d;q=n/d;n=Math.atan2(v*-e+q*-l,m*-e+u*-l);v=Math.atan2(v*(a-e)+q*(b-l),m*(a-e)+u*(b-l));null==this.penDownX&&(this.penDownX=this.penX,this.penDownY=this.penY);this.onArc(g,k,this._pivotX=this.penX=a+g,this._pivotY=this.penY=b+k,e+g,l+k,c,d,n,v,!f,h);return this},counterArc:function(a,b,c,d,e){return this.arc(a,
+b,c,d,e,!0)},counterArcTo:function(a,b,c,d,e){return this.arcTo(a,b,c,d,e,!0)},close:function(){null!=this.penDownX&&(this.onClose(this.penX,this.penY,this.penX=this.penDownX,this.penY=this.penDownY),this.penDownX=null);return this},onReset:function(){},onMove:function(){},onLine:function(a,b,c,d){this.onBezierCurve(a,b,a,b,c,d,c,d)},onBezierCurve:function(a,b,c,d,e,f,h,g){var k=h-a,m=g-b,n=k*k+m*m;var v=c-a;var l=d-b;var q=v*k+l*m;q>n?(v-=k,l-=m):0<q&&0!=n&&(v-=q/n*k,l-=q/n*m);var p=v*v+l*l;v=e-
+a;l=f-b;q=v*k+l*m;q>n?(v-=k,l-=m):0<q&&0!=n&&(v-=q/n*k,l-=q/n*m);k=v*v+l*l;if(.01>p&&.01>k)this.onLine(a,b,h,g);else{if(isNaN(p)||isNaN(k))throw Error("Bad input");n=.5*(c+e);m=.5*(d+f);c=.5*(c+a);d=.5*(d+b);p=.5*(c+n);k=.5*(d+m);e=.5*(h+e);f=.5*(g+f);n=.5*(e+n);m=.5*(f+m);v=.5*(p+n);l=.5*(k+m);this.onBezierCurve(a,b,c,d,p,k,v,l);this.onBezierCurve(v,l,n,m,e,f,h,g)}},onArc:function(a,b,c,d,e,f,h,g,k,m,n,v){c=v?v*Math.PI/180:0;v=Math.cos(c);var l=Math.sin(c);c=v*h;d=-l*g;h*=l;g*=v;m-=k;0>m&&!n?m+=
+2*Math.PI:0<m&&n&&(m-=2*Math.PI);n=Math.ceil(Math.abs(m/(Math.PI/2)));m/=n;v=4/3*Math.tan(m/4);l=Math.cos(k);for(var q=Math.sin(k),p=0;p<n;p++){var t=l-v*q,u=q+v*l;k+=m;l=Math.cos(k);q=Math.sin(k);var r=l+v*q,z=q-v*l;this.onBezierCurve(a,b,e+c*t+d*u,f+h*t+g*u,e+c*r+d*z,f+h*r+g*z,a=e+c*l+d*q,b=f+h*l+g*q)}},onClose:function(a,b,c,d){this.onLine(a,b,c,d)}}),gc=z(Ma,{initialize:function(a){this.reset();a instanceof gc?this.path=a.path.slice(0):a&&(a.applyToPath?a.applyToPath(this):this.push(a))},onReset:function(){this.path=
+[]},onMove:function(a,b,c,d){this.path.push(function(a){a.moveTo(c,d)})},onLine:function(a,b,c,d){this.path.push(function(a){a.lineTo(c,d)})},onBezierCurve:function(a,b,c,d,e,f,h,g){this.path.push(function(a){a.bezierCurveTo(c,d,e,f,h,g)})},_arcToBezier:Ma.prototype.onArc,onArc:function(a,b,c,d,e,f,h,g,k,m,n,p){if(h!=g||p)return this._arcToBezier(a,b,c,d,e,f,h,g,k,m,n,p);this.path.push(function(a){a.arc(e,f,h,k,m,n)})},onClose:function(){this.path.push(function(a){a.closePath()})},toCommands:function(){return this.path.slice(0)}}),
+ob=gc,kc={maroon:"#800000",red:"#ff0000",orange:"#ffA500",yellow:"#ffff00",olive:"#808000",purple:"#800080",fuchsia:"#ff00ff",white:"#ffffff",lime:"#00ff00",green:"#008000",navy:"#000080",blue:"#0000ff",aqua:"#00ffff",teal:"#008080",black:"#000000",silver:"#c0c0c0",gray:"#808080"},pb=/([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,?\s*([-.\d]*\%?)/,Qc=/^#?([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{0,2})$/i;r.parseRGB=function(a){return ja(a.match(pb).slice(1),function(a,c){a&&(a=
+parseFloat(a)*("%"==a[a.length-1]?2.55:1));return 3>c?Math.round(0>(a%=256)?a+256:a):Math.min(1,Math.max(0,""===a?1:Number(a)))})};r.parseHEX=function(a){1==a.length&&(a=a+a+a);return ja(a.match(Qc).slice(1),function(a,c){return 3==c?a?parseInt(a,16)/255:1:parseInt(1==a.length?a+a:a,16)})};r.parseHSB=function(a){var b=ja(a.match(pb).slice(1),function(a,b){a&&(a=parseFloat(a));return 0===b?Math.round(0>(a%=360)?a+360:a):3>b?Math.min(100,Math.max(0,Math.round(a))):Math.min(1,Math.max(0,""===a?1:Number(a)))});
+a=b[3];var c=Math.round(b[2]/100*255);if(0==b[1])return[c,c,c,a];var d=b[0],e=d%60,f=Math.round(b[2]*(100-b[1])/1E4*255),h=Math.round(b[2]*(6E3-b[1]*e)/6E5*255);b=Math.round(b[2]*(6E3-b[1]*(60-e))/6E5*255);switch(Math.floor(d/60)){case 0:return[c,b,f,a];case 1:return[h,c,f,a];case 2:return[f,c,b,a];case 3:return[f,h,c,a];case 4:return[b,f,c,a];default:return[c,f,h,a]}};r.parseHSL=function(a){var b=ja(a.match(pb).slice(1),function(a,b){a&&(a=parseFloat(a));return 0===b?Math.round(0>(a%=360)?a+360:
a):3>b?Math.min(100,Math.max(0,Math.round(a))):Math.min(1,Math.max(0,""===a?1:Number(a)))});a=b[0]/60;var c=b[2]/100,d=b[3];b=b[1]/100*(1-Math.abs(2*c-1));var e=c-b/2;c=Math.round(255*(b+e));b=Math.round(255*(b*(1-Math.abs(a%2-1))+e));e=Math.round(255*e);switch(Math.floor(a)){case 0:return[c,b,e,d];case 1:return[b,c,e,d];case 2:return[e,c,b,d];case 3:return[e,b,c,d];case 4:return[b,e,c,d];default:return[c,e,b,d]}};r.prototype={toHSB:function(a){var b=this.red,c=this.green,d=this.blue,e=this.alpha,
-f=Math.max(b,c,d),h=f-Math.min(b,c,d),g=0,m=0!=h?h/f:0;if(m){g=(f-b)/h;var k=(f-c)/h;d=(f-d)/h;g=b==f?d-k:c==f?2+g-d:4+k-g;0>(g/=6)&&g++}b=[Math.round(360*g),Math.round(100*m),Math.round(f/255*100),e];return a?b:Ua("hsb",b)},toHSL:function(a){var b=this.red,c=this.green,d=this.blue,e=this.alpha,f=Math.max(b,c,d),h=Math.min(b,c,d),g=f-h,m=0,k=0!=g?g/(255-Math.abs(f+h-255)):0;if(k){m=(f-b)/g;var n=(f-c)/g;d=(f-d)/g;m=b==f?d-n:c==f?2+m-d:4+n-m;0>(m/=6)&&m++}b=[Math.round(360*m),Math.round(100*k),Math.round((f+
+f=Math.max(b,c,d),h=f-Math.min(b,c,d),g=0,k=0!=h?h/f:0;if(k){g=(f-b)/h;var m=(f-c)/h;d=(f-d)/h;g=b==f?d-m:c==f?2+g-d:4+m-g;0>(g/=6)&&g++}b=[Math.round(360*g),Math.round(100*k),Math.round(f/255*100),e];return a?b:Ua("hsb",b)},toHSL:function(a){var b=this.red,c=this.green,d=this.blue,e=this.alpha,f=Math.max(b,c,d),h=Math.min(b,c,d),g=f-h,k=0,m=0!=g?g/(255-Math.abs(f+h-255)):0;if(m){k=(f-b)/g;var n=(f-c)/g;d=(f-d)/g;k=b==f?d-n:c==f?2+k-d:4+n-k;0>(k/=6)&&k++}b=[Math.round(360*k),Math.round(100*m),Math.round((f+
h)/512*100),e];return a?b:Ua("hsl",b)},toHEX:function(a){var b=this.alpha,c=1==(b=Math.round(255*b).toString(16)).length?b+b:b;b=ja([this.red,this.green,this.blue],function(a){a=a.toString(16);return 1==a.length?"0"+a:a});return a?b.concat(c):"#"+b.join("")+("ff"==c?"":c)},toRGB:function(a){var b=[this.red,this.green,this.blue,this.alpha];return a?b:Ua("rgb",b)}};r.prototype.toString=r.prototype.toRGB;r.hex=function(a){return new r(a,"hex")};null==O.hex&&(O.hex=r.hex);r.hsb=function(a,b,c,d){return new r([a||
-0,b||0,c||0,null==d?1:d],"hsb")};null==O.hsb&&(O.hsb=r.hsb);r.hsl=function(a,b,c,d){return new r([a||0,b||0,c||0,null==d?1:d],"hsl")};null==O.hsl&&(O.hsl=r.hsl);r.rgb=function(a,b,c,d){return new r([a||0,b||0,c||0,null==d?1:d],"rgb")};null==O.rgb&&(O.rgb=r.rgb);r.detach=function(a){a=new r(a);return[r.rgb(a.red,a.green,a.blue).toString(),a.alpha]};var C=r,J=z({initialize:Ub,_transform:function(){},xx:1,yx:0,x:0,xy:0,yy:1,y:0,transform:function(a,b,c,d,e,f){a&&"object"==typeof a&&(b=a.yx,d=a.yy,f=
-a.y,c=a.xy,e=a.x,a=a.xx);e||(e=0);f||(f=0);return this.transformTo(this.xx*a+this.xy*b,this.yx*a+this.yy*b,this.xx*c+this.xy*d,this.yx*c+this.yy*d,this.xx*e+this.xy*f+this.x,this.yx*e+this.yy*f+this.y)},transformTo:Ub,translate:function(a,b){return this.transform(1,0,0,1,a,b)},move:function(a,b){this.x+=a||0;this.y+=b||0;this._transform();return this},scale:function(a,b){null==b&&(b=a);return this.transform(a,0,0,b,0,0)},rotate:function(a,b,c){if(null==b||null==c)b=(this.left||0)+(this.width||0)/
+0,b||0,c||0,null==d?1:d],"hsb")};null==O.hsb&&(O.hsb=r.hsb);r.hsl=function(a,b,c,d){return new r([a||0,b||0,c||0,null==d?1:d],"hsl")};null==O.hsl&&(O.hsl=r.hsl);r.rgb=function(a,b,c,d){return new r([a||0,b||0,c||0,null==d?1:d],"rgb")};null==O.rgb&&(O.rgb=r.rgb);r.detach=function(a){a=new r(a);return[r.rgb(a.red,a.green,a.blue).toString(),a.alpha]};var C=r,J=z({initialize:Sb,_transform:function(){},xx:1,yx:0,x:0,xy:0,yy:1,y:0,transform:function(a,b,c,d,e,f){a&&"object"==typeof a&&(b=a.yx,d=a.yy,f=
+a.y,c=a.xy,e=a.x,a=a.xx);e||(e=0);f||(f=0);return this.transformTo(this.xx*a+this.xy*b,this.yx*a+this.yy*b,this.xx*c+this.xy*d,this.yx*c+this.yy*d,this.xx*e+this.xy*f+this.x,this.yx*e+this.yy*f+this.y)},transformTo:Sb,translate:function(a,b){return this.transform(1,0,0,1,a,b)},move:function(a,b){this.x+=a||0;this.y+=b||0;this._transform();return this},scale:function(a,b){null==b&&(b=a);return this.transform(a,0,0,b,0,0)},rotate:function(a,b,c){if(null==b||null==c)b=(this.left||0)+(this.width||0)/
2,c=(this.top||0)+(this.height||0)/2;var d=a*Math.PI/180;a=Math.sin(d);d=Math.cos(d);this.transform(1,0,0,1,b,c);return this.transformTo(d*this.xx-a*this.yx,a*this.xx+d*this.yx,d*this.xy-a*this.yy,a*this.xy+d*this.yy,this.x,this.y).transform(1,0,0,1,-b,-c)},moveTo:function(a,b){return this.transformTo(this.xx,this.yx,this.xy,this.yy,a,b)},rotateTo:function(a,b,c){var d=this.yx/this.xx>this.yy/this.xy?-1:1;if(0>this.xx?0<=this.xy:0>this.xy)d=-d;return this.rotate(a-180*Math.atan2(d*this.yx,d*this.xx)/
-Math.PI,b,c)},scaleTo:function(a,b){var c=Math.sqrt(this.xx*this.xx+this.yx*this.yx);this.xx/=c;this.yx/=c;c=Math.sqrt(this.yy*this.yy+this.xy*this.xy);this.yy/=c;this.xy/=c;return this.scale(a,b)},resizeTo:function(a,b){var c=this.width,d=this.height;return c&&d?this.scaleTo(a/c,b/d):this},inversePoint:function(a,b){var c=this.xx,d=this.yx,e=this.xy,f=this.yy,h=this.x,g=this.y,m=d*e-c*f;return 0==m?null:{x:(f*(h-a)+e*(b-g))/m,y:(c*(g-b)+d*(a-h))/m}},point:function(a,b){return{x:this.xx*a+this.xy*
+Math.PI,b,c)},scaleTo:function(a,b){var c=Math.sqrt(this.xx*this.xx+this.yx*this.yx);this.xx/=c;this.yx/=c;c=Math.sqrt(this.yy*this.yy+this.xy*this.xy);this.yy/=c;this.xy/=c;return this.scale(a,b)},resizeTo:function(a,b){var c=this.width,d=this.height;return c&&d?this.scaleTo(a/c,b/d):this},inversePoint:function(a,b){var c=this.xx,d=this.yx,e=this.xy,f=this.yy,h=this.x,g=this.y,k=d*e-c*f;return 0==k?null:{x:(f*(h-a)+e*(b-g))/k,y:(c*(g-b)+d*(a-h))/k}},point:function(a,b){return{x:this.xx*a+this.xy*
b+this.x,y:this.yx*a+this.yy*b+this.y}}}),xa=z({_resetPlacement:function(){var a=this.parentNode;if(a){var b=this.previousSibling,c=this.nextSibling;b?b.nextSibling=c:a.firstChild=c;c?c.previousSibling=b:a.lastChild=this.previousSibling}this.parentNode=this.nextSibling=this.previousSibling=null;return this},inject:function(a){this._resetPlacement();var b=a.lastChild;b?(b.nextSibling=this,this.previousSibling=b):a.firstChild=this;a.lastChild=this;this.parentNode=a;this._place();return this},injectBefore:function(a){this._resetPlacement();
var b=a.parentNode;if(!b)return this;var c=a.previousSibling;c?(c.nextSibling=this,this.previousSibling=c):b.firstChild=this;a.previousSibling=this;this.nextSibling=a;this.parentNode=b;this._place();return this},eject:function(){this._resetPlacement();this._place();return this},_place:function(){},dispatch:function(a){var b=this._events;if(b=b&&b[a.type]){b=b.slice(0);for(var c=0,d=b.length;c<d;c++){var e=b[c];!1===("function"==typeof e?e.call(this,a):e.handleEvent(a))&&a.preventDefault()}}this.parentNode&&
this.parentNode.dispatch&&this.parentNode.dispatch(a)},subscribe:function(a,b,c){if("string"!=typeof a){var d=[],e;for(e in a)d.push(this.subscribe(e,a[e]));return function(){for(var a=0,b=d.length;a<b;a++)d[a]();return this}}var f="function"===typeof b?b.bind(c||this):b;b=this._events||(this._events={});var h=b[a]||(b[a]=[]);h.push(f);return function(){for(var a=0,b=h.length;a<b;a++)if(h[a]===f){h.splice(a,1);break}}}}),Na=z(J,xa,{invalidate:function(){this.parentNode&&this.parentNode.invalidate();
this._layer&&(this._layerCache=null);return this},_place:function(){this.invalidate()},_transform:function(){this.invalidate()},blend:function(a){1<=a&&this._layer&&(this._layer=null);this._opacity=a;this.parentNode&&this.parentNode.invalidate();return this},hide:function(){this._invisible=!0;this.parentNode&&this.parentNode.invalidate();return this},show:function(){this._invisible=!1;this.parentNode&&this.parentNode.invalidate();return this},indicate:function(a,b){this._cursor=a;this._tooltip=b;
-return this.invalidate()},hitTest:function(a,b){return this._invisible?null:(a=this.inversePoint(a,b))?this.localHitTest(a.x,a.y):null},renderTo:function(a,b,c,d,e,f,h){var g=this._opacity;if(null==g||1<=g)return this.renderLayerTo(a,b,c,d,e,f,h);var m=this._layer,k=!0,n=a.canvas.width,p=a.canvas.height;if(m){m.setTransform(1,0,0,1,0,0);var l=m.canvas;if(l.width<n||l.height<p)l.width=n,l.height=p;else{var q=this._layerCache;q&&q.xx===b&&q.yx===c&&q.xy===d&&q.yy===e&&q.x===f&&q.y===h?k=!1:m.clearRect(0,
-0,n,p)}}else l=document.createElement("canvas"),l.width=n,l.height=p,this._layer=m=l.getContext("2d");k&&(this.renderLayerTo(m,b,c,d,e,f,h),this._layerCache={xx:b,yx:c,xy:d,yy:e,x:f,y:h});a.globalAlpha=g;a.setTransform(1,0,0,1,0,0);a.drawImage(l,0,0,n,p,0,0,n,p);a.globalAlpha=1}}),rb="undefined"!==typeof document&&document.createElement("canvas"),Oa=rb&&rb.getContext&&rb.getContext("2d"),X=z(Na,{initialize:function(){this._strokeWidth=this._strokeJoin=this._strokeDash=this._strokeCap=this._stroke=
+return this.invalidate()},hitTest:function(a,b){return this._invisible?null:(a=this.inversePoint(a,b))?this.localHitTest(a.x,a.y):null},renderTo:function(a,b,c,d,e,f,h){var g=this._opacity;if(null==g||1<=g)return this.renderLayerTo(a,b,c,d,e,f,h);var k=this._layer,m=!0,n=a.canvas.width,p=a.canvas.height;if(k){k.setTransform(1,0,0,1,0,0);var l=k.canvas;if(l.width<n||l.height<p)l.width=n,l.height=p;else{var q=this._layerCache;q&&q.xx===b&&q.yx===c&&q.xy===d&&q.yy===e&&q.x===f&&q.y===h?m=!1:k.clearRect(0,
+0,n,p)}}else l=document.createElement("canvas"),l.width=n,l.height=p,this._layer=k=l.getContext("2d");m&&(this.renderLayerTo(k,b,c,d,e,f,h),this._layerCache={xx:b,yx:c,xy:d,yy:e,x:f,y:h});a.globalAlpha=g;a.setTransform(1,0,0,1,0,0);a.drawImage(l,0,0,n,p,0,0,n,p);a.globalAlpha=1}}),qb="undefined"!==typeof document&&document.createElement("canvas"),Oa=qb&&qb.getContext&&qb.getContext("2d"),X=z(Na,{initialize:function(){this._strokeWidth=this._strokeJoin=this._strokeDash=this._strokeCap=this._stroke=
this._fillTransform=this._pendingFill=this._fill=null},_addColors:function(a,b){if("length"in b)for(var c=0,d=b.length-1;c<=d;c++)a.addColorStop(c/d,(new C(b[c])).toString());else for(c in b)a.addColorStop(c,(new C(b[c])).toString());return a},fill:function(a){if(1<arguments.length)return this.fillLinear(arguments);this._pendingFill&&this._pendingFill();this._fill=a?(new C(a)).toString():null;return this.invalidate()},fillRadial:function(a,b,c,d,e,f,h){null==b&&(b=(this.left||0)+.5*(this.width||0));
null==c&&(c=(this.top||0)+.5*(this.height||0));null==e&&(e=d||.5*this.height||0);null==d&&(d=.5*(this.width||0));null==f&&(f=b);null==h&&(h=c);f+=f-b;h+=h-c;if(0===d||"0"===d)return this.fillLinear(a);e/=d;this._pendingFill&&this._pendingFill();b=Oa.createRadialGradient(b,c/e,0,f,h/e,2*d);if("length"in a){var g=0;for(c=a.length-1;g<=c;g++)b.addColorStop(g/c/2,(new C(a[g])).toString()),b.addColorStop(1-g/c/2,(new C(a[g])).toString())}else for(g in a)b.addColorStop(g/2,(new C(a[g])).toString()),b.addColorStop(1-
-g/2,(new C(a[g])).toString());this._fill=b;this._fillTransform=new J(1,0,0,e);return this.invalidate()},fillLinear:function(a,b,c,d,e){if(5>arguments.length){var f=(null==b?270:b)*Math.PI/180,h=Math.cos(f);f=-Math.sin(f);var g=(Math.abs(h)+Math.abs(f))/2,m=this.width||1,k=this.height||1;h*=g;f*=g;b=.5-h;d=.5+h;c=.5-f;e=.5+f;this._fillTransform=new J(m,0,0,k)}else this._fillTransform=null;this._pendingFill&&this._pendingFill();h=Oa.createLinearGradient(b,c,d,e);this._addColors(h,a);this._fill=h;return this.invalidate()},
-fillImage:function(a,b,c,d,e,f,h){function g(){k.removeEventListener("load",m,!1);n._pendingFill=null}function m(){g();n._fillImage(k,b,c,d||0,e||0,f,h)}this._pendingFill&&this._pendingFill();var k=a;k instanceof Image||(k=new Image,k.src=a);if(k.width&&k.height)return this._fillImage(k,b,c,d||0,e||0,f,h);this._fill=null;var n=this;this._pendingFill=g;k.addEventListener("load",m,!1);return this},_fillImage:function(a,b,c,d,e,f,h){b=b?b/a.width:1;c=c?c/a.height:1;if(null!=f){C.detach(f);h=C.detach(h);
+g/2,(new C(a[g])).toString());this._fill=b;this._fillTransform=new J(1,0,0,e);return this.invalidate()},fillLinear:function(a,b,c,d,e){if(5>arguments.length){var f=(null==b?270:b)*Math.PI/180,h=Math.cos(f);f=-Math.sin(f);var g=(Math.abs(h)+Math.abs(f))/2,k=this.width||1,m=this.height||1;h*=g;f*=g;b=.5-h;d=.5+h;c=.5-f;e=.5+f;this._fillTransform=new J(k,0,0,m)}else this._fillTransform=null;this._pendingFill&&this._pendingFill();h=Oa.createLinearGradient(b,c,d,e);this._addColors(h,a);this._fill=h;return this.invalidate()},
+fillImage:function(a,b,c,d,e,f,h){function g(){m.removeEventListener("load",k,!1);n._pendingFill=null}function k(){g();n._fillImage(m,b,c,d||0,e||0,f,h)}this._pendingFill&&this._pendingFill();var m=a;m instanceof Image||(m=new Image,m.src=a);if(m.width&&m.height)return this._fillImage(m,b,c,d||0,e||0,f,h);this._fill=null;var n=this;this._pendingFill=g;m.addEventListener("load",k,!1);return this},_fillImage:function(a,b,c,d,e,f,h){b=b?b/a.width:1;c=c?c/a.height:1;if(null!=f){C.detach(f);h=C.detach(h);
f=document.createElement("canvas");var g=f.getContext("2d");f.width=a.width;f.height=a.height;g.fillStyle=h[0];g.fillRect(0,0,a.width,a.height);g.globalCompositeOperation="lighter";g.drawImage(a,0,0);a=f}this._fill=Oa.createPattern(a,"repeat");this._fillTransform=new J(b,0,0,c,d||0,e||0);return this.invalidate()},stroke:function(a,b,c,d,e){this._stroke=a?(new C(a)).toString():null;this._strokeWidth=null!=b?b:1;this._strokeCap=null!=c?c:"round";this._strokeJoin=null!=d?d:"round";this._strokeDash=e;
-return this.invalidate()},element_renderTo:Na.prototype.renderTo,renderTo:function(a,b,c,d,e,f,h){var g=this._opacity;if(null==g||1<=g)return this.renderLayerTo(a,b,c,d,e,f,h);if(this._fill&&this._stroke)return this.element_renderTo(a,b,c,d,e,f,h);a.globalAlpha=g;b=this.renderLayerTo(a,b,c,d,e,f,h);a.globalAlpha=1;return b},renderLayerTo:function(a,b,c,d,e,f,h){a.setTransform(b,c,d,e,f,h);this.renderShapeTo(a)}});X._genericContext=Oa;var Tc=z(X,{base_initialize:X.prototype.initialize,initialize:function(a,
-b,c){this.base_initialize();this.width=b;this.height=c;null!=a&&this.draw(a)},draw:function(a,b,c){a instanceof pb||(a=new pb(a));this.path=a;this._commands=a.toCommands();null!=b&&(this.width=b);null!=c&&(this.height=c);return this.invalidate()},localHitTest:function(a,b){if(!this._fill)return null;if(null==this.width||null==this.height){var c=X._genericContext,d=this._commands;if(!d)return null;c.beginPath();for(var e=0,f=d.length;e<f;e++)d[e](c);return c.isPointInPath(a,b)?this:null}return 0<a&&
+return this.invalidate()},element_renderTo:Na.prototype.renderTo,renderTo:function(a,b,c,d,e,f,h){var g=this._opacity;if(null==g||1<=g)return this.renderLayerTo(a,b,c,d,e,f,h);if(this._fill&&this._stroke)return this.element_renderTo(a,b,c,d,e,f,h);a.globalAlpha=g;b=this.renderLayerTo(a,b,c,d,e,f,h);a.globalAlpha=1;return b},renderLayerTo:function(a,b,c,d,e,f,h){a.setTransform(b,c,d,e,f,h);this.renderShapeTo(a)}});X._genericContext=Oa;var Rc=z(X,{base_initialize:X.prototype.initialize,initialize:function(a,
+b,c){this.base_initialize();this.width=b;this.height=c;null!=a&&this.draw(a)},draw:function(a,b,c){a instanceof ob||(a=new ob(a));this.path=a;this._commands=a.toCommands();null!=b&&(this.width=b);null!=c&&(this.height=c);return this.invalidate()},localHitTest:function(a,b){if(!this._fill)return null;if(null==this.width||null==this.height){var c=X._genericContext,d=this._commands;if(!d)return null;c.beginPath();for(var e=0,f=d.length;e<f;e++)d[e](c);return c.isPointInPath(a,b)?this:null}return 0<a&&
0<b&&a<this.width&&b<this.height?this:null},renderShapeTo:function(a){if(this._invisible||!this._commands||!this._fill&&!this._stroke)return null;a.transform(this.xx,this.yx,this.xy,this.yy,this.x,this.y);var b=this._commands,c=this._fill,d=this._stroke,e=this._strokeDash;a.beginPath();e?a.setLineDash?a.setLineDash(e):a.mozDash=e:a.setLineDash?a.setLineDash([]):a.mozDash=null;e=0;for(var f=b.length;e<f;e++)b[e](a);c&&((b=this._fillTransform)?(a.save(),a.transform(b.xx,b.yx,b.xy,b.yy,b.x,b.y),a.fillStyle=
-c,a.fill(),a.restore()):(a.fillStyle=c,a.fill()));d&&(a.strokeStyle=d,a.lineWidth=this._strokeWidth,a.lineCap=this._strokeCap,a.lineJoin=this._strokeJoin,a.stroke())}}),Uc=z(Na,da,{initialize:function(a,b){this.width=a;this.height=b},localHitTest:function(a,b){for(var c=this.lastChild;c;){var d=c.hitTest(a,b);if(d)return d;c=c.previousSibling}return null},renderLayerTo:function(a,b,c,d,e,f,h){if(!this._invisible){f=b*this.x+d*this.y+f;h=c*this.x+e*this.y+h;var g=b;b=g*this.xx+d*this.yx;d=g*this.xy+
-d*this.yy;g=c;c=g*this.xx+e*this.yx;e=g*this.xy+e*this.yy;for(g=this.firstChild;g;)g.renderTo(a,b,c,d,e,f,h),g=g.nextSibling}}}),Vc=z(Na,da,{initialize:function(a,b){this.width=a;this.height=b},localHitTest:function(a,b){for(var c=this.lastChild;c;){var d=c.hitTest(a,b);if(d)return d;c=c.previousSibling}return null},renderLayerTo:function(a,b,c,d,e,f,h){a.setTransform(b,c,d,e,f,h);a.save();a.beginPath();a.rect(this.x,this.y,this.width,this.height);a.clip();for(var g=this.firstChild;g;)g.renderTo(a,
-b,c,d,e,f,h),g=g.nextSibling;a.restore()}}),Wc={middle:"center"},Xc=z(X,{base_initialize:X.prototype.initialize,initialize:function(a,b,c,d){this.base_initialize();this.draw.apply(this,arguments)},draw:function(a,b,c){if("string"==typeof b)var d=Number(/(\d+)/.exec(b)[0]);else b?(d=parseFloat(b.fontSize||b["font-size"]||"12"),b=(b.fontStyle||b["font-style"]||"")+" "+(b.fontVariant||b["font-variant"]||"")+" "+(b.fontWeight||b["font-weight"]||"")+" "+d+"px "+(b.fontFamily||b["font-family"]||"Arial")):
-b=this._font;a=a&&a.split(/\r?\n/);this._font=b;this._fontSize=d;this._text=a;this._alignment=Wc[c]||c||"left";b=X._genericContext;b.font=this._font;b.textAlign=this._alignment;b.textBaseline="middle";a=this._text;c=a.length;for(var e=0,f=0;f<c;f++){var h=b.measureText(a[f]).width;h>e&&(e=h)}this.width=e;this.height=c?1.1*c*d:0;return this.invalidate()},localHitTest:function(a,b){return this._fill?0<a&&0<b&&a<this.width&&b<this.height?this:null:null},renderShapeTo:function(a){if(this._invisible||
+c,a.fill(),a.restore()):(a.fillStyle=c,a.fill()));d&&(a.strokeStyle=d,a.lineWidth=this._strokeWidth,a.lineCap=this._strokeCap,a.lineJoin=this._strokeJoin,a.stroke())}}),Sc=z(Na,da,{initialize:function(a,b){this.width=a;this.height=b},localHitTest:function(a,b){for(var c=this.lastChild;c;){var d=c.hitTest(a,b);if(d)return d;c=c.previousSibling}return null},renderLayerTo:function(a,b,c,d,e,f,h){if(!this._invisible){f=b*this.x+d*this.y+f;h=c*this.x+e*this.y+h;var g=b;b=g*this.xx+d*this.yx;d=g*this.xy+
+d*this.yy;g=c;c=g*this.xx+e*this.yx;e=g*this.xy+e*this.yy;for(g=this.firstChild;g;)g.renderTo(a,b,c,d,e,f,h),g=g.nextSibling}}}),Tc=z(Na,da,{initialize:function(a,b){this.width=a;this.height=b},localHitTest:function(a,b){for(var c=this.lastChild;c;){var d=c.hitTest(a,b);if(d)return d;c=c.previousSibling}return null},renderLayerTo:function(a,b,c,d,e,f,h){a.setTransform(b,c,d,e,f,h);a.save();a.beginPath();a.rect(this.x,this.y,this.width,this.height);a.clip();for(var g=this.firstChild;g;)g.renderTo(a,
+b,c,d,e,f,h),g=g.nextSibling;a.restore()}}),Uc={middle:"center"},Vc=z(X,{base_initialize:X.prototype.initialize,initialize:function(a,b,c,d){this.base_initialize();this.draw.apply(this,arguments)},draw:function(a,b,c){if("string"==typeof b)var d=Number(/(\d+)/.exec(b)[0]);else b?(d=parseFloat(b.fontSize||b["font-size"]||"12"),b=(b.fontStyle||b["font-style"]||"")+" "+(b.fontVariant||b["font-variant"]||"")+" "+(b.fontWeight||b["font-weight"]||"")+" "+d+"px "+(b.fontFamily||b["font-family"]||"Arial")):
+b=this._font;a=a&&a.split(/\r?\n/);this._font=b;this._fontSize=d;this._text=a;this._alignment=Uc[c]||c||"left";b=X._genericContext;b.font=this._font;b.textAlign=this._alignment;b.textBaseline="middle";a=this._text;c=a.length;for(var e=0,f=0;f<c;f++){var h=b.measureText(a[f]).width;h>e&&(e=h)}this.width=e;this.height=c?1.1*c*d:0;return this.invalidate()},localHitTest:function(a,b){return this._fill?0<a&&0<b&&a<this.width&&b<this.height?this:null:null},renderShapeTo:function(a){if(this._invisible||
!this._text||!this._fill&&!this._stroke)return null;a.transform(this.xx,this.yx,this.xy,this.yy,this.x,this.y);var b=this._fill,c=this._stroke,d=this._text,e=this._strokeDash;a.font=this._font;a.textAlign=this._alignment;a.textBaseline="middle";var f=this._fontSize,h=f/2;f*=1.1;var g=d.length;if(b)for(a.fillStyle=b,b=0;b<g;b++)a.fillText(d[b],0,h+b*f);if(c)for(e?a.setLineDash?a.setLineDash(e):a.mozDash=e:a.setLineDash?a.setLineDash([]):a.mozDash=null,a.strokeStyle=c,a.lineWidth=this._strokeWidth,
-a.lineCap=this._strokeCap,a.lineJoin=this._strokeJoin,b=0;b<g;b++)a.strokeText(d[b],0,h+b*f)}}),ya,vb={},R={init:function(a){try{var b=a.namespaces}catch(c){}if(!b)return!1;b.add("av","urn:schemas-microsoft-com:vml");b.add("ao","urn:schemas-microsoft-com:office:office");ya=a.createStyleSheet();ya.addRule("vml","display:inline-block;position:relative;overflow:hidden;");ub("vml");return!0},createElement:function(a){a in vb||ub(a);return document.createElement("av:"+a)}},sb=z(ea,da,{initialize:function(a,
-b,c){this.element=c||document.createElement("vml");this.containerElement=R.createElement("group");this.element.appendChild(this.containerElement);null!=a&&null!=b&&this.resize(a,b)},resize:function(a,b){this.width=a;this.height=b;var c=this.element.style;c.pixelWidth=a;c.pixelHeight=b;c=this.containerElement.style;c.width=a;c.height=b;this.containerElement.coordorigin="50,50";this.containerElement.coordsize=100*a+","+100*b;return this}});sb.tagName="av:vml";var H=Math.round,Pa=z(Ma,{initialize:function(a){this.reset();
-a instanceof Pa?this.path=[Array.prototype.join.call(a.path," ")]:a&&(a.applyToPath?a.applyToPath(this):this.push(a))},onReset:function(){this.path=[]},onMove:function(a,b,c,d){this.path.push("m",H(100*c),H(100*d))},onLine:function(a,b,c,d){this.path.push("l",H(100*c),H(100*d))},onBezierCurve:function(a,b,c,d,e,f,h,g){this.path.push("c",H(100*c),H(100*d),H(100*e),H(100*f),H(100*h),H(100*g))},_arcToBezier:Ma.prototype.onArc,onArc:function(a,b,c,d,e,f,h,g,m,k,n,p){if(h!=g||p)return this._arcToBezier(a,
-b,c,d,e,f,h,g,m,k,n,p);e*=100;f*=100;h*=100;this.path.push(n?"at":"wa",H(e-h),H(f-h),H(e+h),H(f+h),H(100*a),H(100*b),H(100*c),H(100*d))},onClose:function(){this.path.push("x")},toVML:function(){return this.path.join(" ")}});Pa.prototype.toString=Pa.prototype.toVML;var Qa=Pa,Yc=z(xa,ea,{dummy_inject:xa.prototype.inject,dummy_injectBefore:xa.prototype.injectBefore,dummy_eject:xa.prototype.eject,native_inject:ea.prototype.inject,native_injectBefore:ea.prototype.injectBefore,native_eject:ea.prototype.eject,
-inject:function(a){this.dummy_inject(a);this.native_inject(a);return this},injectBefore:function(a){this.dummy_injectBefore(a);this.native_injectBefore(a);return this},eject:function(){this.dummy_eject();this.native_eject();return this}}),ha=z(Yc,J,{initialize:function(a){this.element=R.createElement(a)},_place:function(){this.parentNode&&this._transform()},hide:function(){this.element.style.display="none";return this},show:function(){this.element.style.display="";return this},indicate:function(a,
-b){a&&(this.element.style.cursor=a);b&&(this.element.title=b);return this}}),jc={left:0,top:0,width:500,height:500},Ra=z(ha,{element_initialize:ha.prototype.initialize,initialize:function(a){this.element_initialize(a);a=this.element;var b=this.skewElement=R.createElement("skew");b.on=!0;a.appendChild(b);b=this.fillElement=R.createElement("fill");b.on=!1;a.appendChild(b);b=this.strokeElement=R.createElement("stroke");b.on=!1;a.appendChild(b)},_transform:function(){var a=this.parentNode,b=a?(new J(a._activeTransform)).transform(this):
-this,c=this._boxCoords||this._size||jc;a=c.left||0;var d=c.top||0,e=c.width||1;c=c.height||1;var f=b.yx/b.xx>b.yy/b.xy;if(0>b.xx?0<=b.xy:0>b.xy)f=!f;f=f?-1:1;b=(new J).scale(f,1).transform(b);var h=180*Math.atan2(-b.xy,b.yy)/Math.PI,g=h*Math.PI/180,m=Math.sin(g);g=Math.cos(g);m=new J(b.xx*g-b.xy*m,(b.yx*g-b.yy*m)*f,(b.xy*g+b.xx*m)*f,b.yy*g+b.yx*m);var k=(new J).rotate(h,0,0),n=(new J).rotate(-h,0,0).transform(b).moveTo(0,0);e*=Math.abs(n.xx);c*=Math.abs(n.yy);g=b.x;var p=b.y;var l=-e/2;var q=-c/2;
-var r=k.point(l,q);g-=r.x-l;p-=r.y-q;var t=(new J(b)).moveTo(0,0);r=t.point(a,d);g+=r.x;p+=r.y;0>f&&(g=-g-e);t=t.point(-a,-d);q=k.point(e,c);l=k.point(e,0);r=k.point(0,c);k=(t.x-q.x/2)/(Math.max(0,q.x,l.x,r.x)-Math.min(0,q.x,l.x,r.x))*f;t=(t.y-q.y/2)/(Math.max(0,q.y,l.y,r.y)-Math.min(0,q.y,l.y,r.y));r=n.point(a,d);a=r.x;d=r.y;if(n=this._strokeWidth)l=b.xx+b.xy,q=b.yy+b.yx,n*=Math.sqrt(l*l+q*q)/Math.sqrt(2);e*=100;c*=100;b=this.element;b.coordorigin=100*a+","+100*d;b.coordsize=e+","+c;b.style.left=
-100*g+"px";b.style.top=100*p+"px";b.style.width=e;b.style.height=c;b.style.rotation=h.toFixed(8);b.style.flip=0>f?"x":"";a=this.skewElement;a.matrix=[m.xx.toFixed(4),m.xy.toFixed(4),m.yx.toFixed(4),m.yy.toFixed(4),0,0];a.origin=k+","+t;this.strokeElement.weight=n+"px"},_createGradient:function(a,b){function c(a,b){b=C.detach(b);null==f?f=h=b:h=b;e.push(a+" "+b[0])}var d=this.fillElement;this.element.removeChild(d);d.type=a;d.method="none";d.rotate=!0;var e=[],f,h;if("length"in b){a=0;for(var g=b.length-
-1;a<=g;a++)c(a/g,b[a])}else for(g in b)c(g,b[g]);d.color=f[0];d.color2=h[0];d.colors=e;d.opacity=h[1];d["ao:opacity2"]=f[1];d.on=!0;this.element.appendChild(d);return d},_setColor:function(a,b){a="fill"==a?this.fillElement:this.strokeElement;null==b?a.on=!1:(b=C.detach(b),a.color=b[0],a.opacity=b[1],a.on=!0)},fill:function(a){if(1<arguments.length)this.fillLinear(arguments);else{this._boxCoords=jc;var b=this.fillElement;b.type="solid";b.color2="";b["ao:opacity2"]="";b.colors&&(b.colors.value="");
+a.lineCap=this._strokeCap,a.lineJoin=this._strokeJoin,b=0;b<g;b++)a.strokeText(d[b],0,h+b*f)}}),ya,ub={},R={init:function(a){try{var b=a.namespaces}catch(c){}if(!b)return!1;b.add("av","urn:schemas-microsoft-com:vml");b.add("ao","urn:schemas-microsoft-com:office:office");ya=a.createStyleSheet();ya.addRule("vml","display:inline-block;position:relative;overflow:hidden;");tb("vml");return!0},createElement:function(a){a in ub||tb(a);return document.createElement("av:"+a)}},rb=z(ea,da,{initialize:function(a,
+b,c){this.element=c||document.createElement("vml");this.containerElement=R.createElement("group");this.element.appendChild(this.containerElement);null!=a&&null!=b&&this.resize(a,b)},resize:function(a,b){this.width=a;this.height=b;var c=this.element.style;c.pixelWidth=a;c.pixelHeight=b;c=this.containerElement.style;c.width=a;c.height=b;this.containerElement.coordorigin="50,50";this.containerElement.coordsize=100*a+","+100*b;return this}});rb.tagName="av:vml";var H=Math.round,Pa=z(Ma,{initialize:function(a){this.reset();
+a instanceof Pa?this.path=[Array.prototype.join.call(a.path," ")]:a&&(a.applyToPath?a.applyToPath(this):this.push(a))},onReset:function(){this.path=[]},onMove:function(a,b,c,d){this.path.push("m",H(100*c),H(100*d))},onLine:function(a,b,c,d){this.path.push("l",H(100*c),H(100*d))},onBezierCurve:function(a,b,c,d,e,f,h,g){this.path.push("c",H(100*c),H(100*d),H(100*e),H(100*f),H(100*h),H(100*g))},_arcToBezier:Ma.prototype.onArc,onArc:function(a,b,c,d,e,f,h,g,k,m,n,p){if(h!=g||p)return this._arcToBezier(a,
+b,c,d,e,f,h,g,k,m,n,p);e*=100;f*=100;h*=100;this.path.push(n?"at":"wa",H(e-h),H(f-h),H(e+h),H(f+h),H(100*a),H(100*b),H(100*c),H(100*d))},onClose:function(){this.path.push("x")},toVML:function(){return this.path.join(" ")}});Pa.prototype.toString=Pa.prototype.toVML;var Qa=Pa,Wc=z(xa,ea,{dummy_inject:xa.prototype.inject,dummy_injectBefore:xa.prototype.injectBefore,dummy_eject:xa.prototype.eject,native_inject:ea.prototype.inject,native_injectBefore:ea.prototype.injectBefore,native_eject:ea.prototype.eject,
+inject:function(a){this.dummy_inject(a);this.native_inject(a);return this},injectBefore:function(a){this.dummy_injectBefore(a);this.native_injectBefore(a);return this},eject:function(){this.dummy_eject();this.native_eject();return this}}),ha=z(Wc,J,{initialize:function(a){this.element=R.createElement(a)},_place:function(){this.parentNode&&this._transform()},hide:function(){this.element.style.display="none";return this},show:function(){this.element.style.display="";return this},indicate:function(a,
+b){a&&(this.element.style.cursor=a);b&&(this.element.title=b);return this}}),hc={left:0,top:0,width:500,height:500},Ra=z(ha,{element_initialize:ha.prototype.initialize,initialize:function(a){this.element_initialize(a);a=this.element;var b=this.skewElement=R.createElement("skew");b.on=!0;a.appendChild(b);b=this.fillElement=R.createElement("fill");b.on=!1;a.appendChild(b);b=this.strokeElement=R.createElement("stroke");b.on=!1;a.appendChild(b)},_transform:function(){var a=this.parentNode,b=a?(new J(a._activeTransform)).transform(this):
+this,c=this._boxCoords||this._size||hc;a=c.left||0;var d=c.top||0,e=c.width||1;c=c.height||1;var f=b.yx/b.xx>b.yy/b.xy;if(0>b.xx?0<=b.xy:0>b.xy)f=!f;f=f?-1:1;b=(new J).scale(f,1).transform(b);var h=180*Math.atan2(-b.xy,b.yy)/Math.PI,g=h*Math.PI/180,k=Math.sin(g);g=Math.cos(g);k=new J(b.xx*g-b.xy*k,(b.yx*g-b.yy*k)*f,(b.xy*g+b.xx*k)*f,b.yy*g+b.yx*k);var m=(new J).rotate(h,0,0),n=(new J).rotate(-h,0,0).transform(b).moveTo(0,0);e*=Math.abs(n.xx);c*=Math.abs(n.yy);g=b.x;var p=b.y;var l=-e/2;var q=-c/2;
+var r=m.point(l,q);g-=r.x-l;p-=r.y-q;var t=(new J(b)).moveTo(0,0);r=t.point(a,d);g+=r.x;p+=r.y;0>f&&(g=-g-e);t=t.point(-a,-d);q=m.point(e,c);l=m.point(e,0);r=m.point(0,c);m=(t.x-q.x/2)/(Math.max(0,q.x,l.x,r.x)-Math.min(0,q.x,l.x,r.x))*f;t=(t.y-q.y/2)/(Math.max(0,q.y,l.y,r.y)-Math.min(0,q.y,l.y,r.y));r=n.point(a,d);a=r.x;d=r.y;if(n=this._strokeWidth)l=b.xx+b.xy,q=b.yy+b.yx,n*=Math.sqrt(l*l+q*q)/Math.sqrt(2);e*=100;c*=100;b=this.element;b.coordorigin=100*a+","+100*d;b.coordsize=e+","+c;b.style.left=
+100*g+"px";b.style.top=100*p+"px";b.style.width=e;b.style.height=c;b.style.rotation=h.toFixed(8);b.style.flip=0>f?"x":"";a=this.skewElement;a.matrix=[k.xx.toFixed(4),k.xy.toFixed(4),k.yx.toFixed(4),k.yy.toFixed(4),0,0];a.origin=m+","+t;this.strokeElement.weight=n+"px"},_createGradient:function(a,b){function c(a,b){b=C.detach(b);null==f?f=h=b:h=b;e.push(a+" "+b[0])}var d=this.fillElement;this.element.removeChild(d);d.type=a;d.method="none";d.rotate=!0;var e=[],f,h;if("length"in b){a=0;for(var g=b.length-
+1;a<=g;a++)c(a/g,b[a])}else for(g in b)c(g,b[g]);d.color=f[0];d.color2=h[0];d.colors=e;d.opacity=h[1];d["ao:opacity2"]=f[1];d.on=!0;this.element.appendChild(d);return d},_setColor:function(a,b){a="fill"==a?this.fillElement:this.strokeElement;null==b?a.on=!1:(b=C.detach(b),a.color=b[0],a.opacity=b[1],a.on=!0)},fill:function(a){if(1<arguments.length)this.fillLinear(arguments);else{this._boxCoords=hc;var b=this.fillElement;b.type="solid";b.color2="";b["ao:opacity2"]="";b.colors&&(b.colors.value="");
this._setColor("fill",a)}return this},fillRadial:function(a,b,c,d,e,f,h){a=this._createGradient("gradientradial",a);null==b&&(b=this.left+.5*this.width);null==c&&(c=this.top+.5*this.height);null==e&&(e=d||.5*this.height);null==d&&(d=.5*this.width);null==f&&(f=b);null==h&&(h=c);d=this._boxCoords={left:f+(f-b)-2*d,top:h+(h-c)-2*e,width:4*d,height:4*e};b-=d.left;c-=d.top;b/=d.width;c/=d.height;a.focussize="0 0";a.focusposition=b+","+c;a.focus="50%";this._transform();return this},fillLinear:function(a,
b,c,d,e){var f=this._createGradient("gradient",a);f.focus="100%";if(5==arguments.length){var h=Math.abs(d-b),g=Math.abs(e-c);this._boxCoords={left:Math.min(b,d),top:Math.min(c,e),width:1>h?g:h,height:1>g?h:g};f.angle=(360+180*Math.atan2((d-b)/g,(e-c)/h)/Math.PI)%360}else this._boxCoords=null,f.angle=null==b?0:(90+b)%360;this._transform();return this},fillImage:function(a,b,c,d,e,f,h){var g=this.fillElement;null!=f?(f=C.detach(f),null!=h&&(h=C.detach(h)),g.type="pattern",g.color=f[0],g.color2=null==
h?f[0]:h[0],g.opacity=null==h?0:h[1],g["ao:opacity2"]=f[1]):(g.type="tile",g.color="",g.color2="",g.opacity=1,g["ao:opacity2"]=1);g.colors&&(g.colors.value="");g.rotate=!0;g.src=a;g.size="1,1";g.position="0,0";g.origin="0,0";g.aspect="ignore";g.on=!0;d||(d=0);e||(e=0);this._boxCoords=b?{left:d+.5,top:e+.5,width:b,height:c}:null;this._transform();return this},stroke:function(a,b,c,d){var e=this.strokeElement;this._strokeWidth=null!=b?b:1;e.weight=null!=b?b+"px":1;e.endcap=null!=c?"butt"==c?"flat":
-c:"round";e.joinstyle=null!=d?d:"round";this._setColor("stroke",a);return this}}),Zc=z(Ra,{base_initialize:Ra.prototype.initialize,initialize:function(a,b,c){this.base_initialize("shape");var d=this.pathElement=R.createElement("path");d.gradientshapeok=!0;this.element.appendChild(d);this.width=b;this.height=c;null!=a&&this.draw(a)},draw:function(a,b,c){a instanceof Qa||(a=new Qa(a));this._vml=a.toVML();null!=b&&(this.width=b);null!=c&&(this.height=c);this._boxCoords||this._transform();this._redraw(this._prefix,
+c:"round";e.joinstyle=null!=d?d:"round";this._setColor("stroke",a);return this}}),Xc=z(Ra,{base_initialize:Ra.prototype.initialize,initialize:function(a,b,c){this.base_initialize("shape");var d=this.pathElement=R.createElement("path");d.gradientshapeok=!0;this.element.appendChild(d);this.width=b;this.height=c;null!=a&&this.draw(a)},draw:function(a,b,c){a instanceof Qa||(a=new Qa(a));this._vml=a.toVML();null!=b&&(this.width=b);null!=c&&(this.height=c);this._boxCoords||this._transform();this._redraw(this._prefix,
this._suffix);return this},_redraw:function(a,b){var c=this._vml||"";this._prefix=a;this._suffix=b;a&&(c=[a,c,b,"ns e",c,"nf"].join(" "));this.element.path=c+"e"},fillRadial:function(a,b,c,d,e,f,h){a=this._createGradient("gradientradial",a);null==b&&(b=(this.left||0)+.5*(this.width||0));null==c&&(c=(this.top||0)+.5*(this.height||0));null==e&&(e=d||.5*this.height||0);null==d&&(d=.5*(this.width||0));null==f&&(f=b);null==h&&(h=c);f=Math.round(100*(f+(f-b)));h=Math.round(100*(h+(h-c)));d=Math.round(200*
-d);e=Math.round(200*e);d=["wa",f-d,h-e,f+d,h+e].join(" ");this._redraw(["m",f,h-e,"l",f,h-e].join(" "),["m",f,h-e,d,f,h-e,f,h+e,d,f,h+e,f,h-e,d,f,h-e,f,h+e,d,f,h+e,f,h-e].join(" "));this._boxCoords={left:b-2,top:c-2,width:4,height:4};a.focusposition="0.5,0.5";a.focussize="0 0";a.focus="50%";this._transform();return this}}),kc=z(ha,da,{element_initialize:ha.prototype.initialize,initialize:function(a,b){this.element_initialize("group");this.width=a;this.height=b},_transform:function(){var a=this.element;
-a.coordorigin="0,0";a.coordsize="1000,1000";a.style.left=0;a.style.top=0;a.style.width=1E3;a.style.height=1E3;a.style.rotation=0;this._activeTransform=(a=this.parentNode)?(new J(a._activeTransform)).transform(this):this;for(a=this.firstChild;a;)a._transform(),a=a.nextSibling}}),$c=z(ha,da,{element_initialize:ha.prototype.initialize,initialize:function(a,b){this.element_initialize("clippingrectangle");this.width=a;this.height=b},_transform:function(){var a=this.element;a.clip=!0;a.coordorigin=-this.x+
-","+-1*this.y;a.coordsize=this.width+","+this.height;a.style.clipLeft=this.x;a.style.clipRight=this.width+this.x;a.style.clipTop=this.y;a.style.left=-this.x;a.style.top=-this.y;a.style.width=this.width+this.x;a.style.height=this.height+this.y;a.style.rotation=0;this._activeTransform=(a=this.parentNode)?(new J(a._activeTransform)).transform(this):this;for(a=this.firstChild;a;)a._transform(),a=a.nextSibling}}),ad={start:"left",middle:"center",end:"right"},bd=z(Ra,{base_initialize:Ra.prototype.initialize,
-initialize:function(a,b,c,d){this.base_initialize("shape");var e=this.pathElement=R.createElement("path");e.textpathok=!0;this.element.appendChild(e);e=this.textPathElement=R.createElement("textpath");e.on=!0;e.style["v-text-align"]="left";this.element.appendChild(e);this.draw.apply(this,arguments)},draw:function(a,b,c,d){var e=this.element,f=this.textPathElement,h=f.style;f.string=a;if(b)if("string"==typeof b)h.font=b;else for(var g in b){var m=g.camelCase?g.camelCase():g;h[m]="fontFamily"==m?"'"+
-b[g]+"'":b[g]}c&&(h["v-text-align"]=ad[c]||c);if(d)this.currentPath=d=new Qa(d),this.element.path=d.toVML();else if(!this.currentPath){b=-1;for(c="\n";-1<(b=a.indexOf("\n",b+1));)c+="\n";f.string=c+f.string;this.element.path="m0,0l1,0"}e=e.cloneNode(!0);h=e.style;e.coordorigin="0,0";e.coordsize="10000,10000";h.left="0px";h.top="0px";h.width="10000px";h.height="10000px";h.rotation=0;e.removeChild(e.firstChild);a=new sb(1,1);f=new kc;a.inject(e.ownerDocument.body);f.element.appendChild(e);f.inject(a);
-e=e.getBoundingClientRect();f=a.toElement().getBoundingClientRect();a.eject();this.left=e.left-f.left;this.top=e.top-f.top;this.width=e.right-e.left;this.height=e.bottom-e.top;this.right=e.right-f.left;this.bottom=e.bottom-f.top;this._transform();return this}}),K=Sb(function(a,b){(a=document.createElement("canvas"))&&a.getContext?(b.Surface=hc,b.Path=pb,b.Shape=Tc,b.Group=Uc,b.ClippingRectangle=Vc,b.Text=Xc):(b.Surface=sb,b.Path=Qa,b.Shape=Zc,b.Group=kc,b.ClippingRectangle=$c,b.Text=bd,"undefined"!==
-typeof document&&R.init(document))}),lc=Object.freeze({default:K,__moduleExports:K,Surface:K.Surface,Path:K.Path,Shape:K.Shape,Group:K.Group,ClippingRectangle:K.ClippingRectangle,Text:K.Text}),cd=Ea||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};Q.setCurrent(lc&&K||lc);var dd=ia.Component,P=new J,Zb={onClick:"click",onMouseMove:"mousemove",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",
-onMouseDown:"mousedown"},ed={},tb=Array.prototype.slice,fd=function(){function a(b,c,d,e,f){va(this,a);this._args=tb.call(arguments)}a.prototype.applyFill=function(a){a.fillLinear.apply(a,this._args)};return a}(),gd=function(){function a(b,c,d,e,f,h,g){va(this,a);this._args=tb.call(arguments)}a.prototype.applyFill=function(a){a.fillRadial.apply(a,this._args)};return a}(),hd=function(){function a(b,c,d,e,f){va(this,a);this._args=tb.call(arguments)}a.prototype.applyFill=function(a){a.fillImage.apply(a,
-this._args)};return a}(),id=function(a){function b(){va(this,b);return Vb(this,a.apply(this,arguments))}Wb(b,a);b.prototype.componentDidMount=function(){var a=this.props;this._surface=Q.Surface(+a.width,+a.height,this._tagRef);this._mountNode=Sa.createContainer(this._surface);Sa.updateContainer(this.props.children,this._mountNode,this)};b.prototype.componentDidUpdate=function(a){var b=this.props;b.height===a.height&&b.width===a.width||this._surface.resize(+b.width,+b.height);Sa.updateContainer(this.props.children,
-this._mountNode,this);this._surface.render&&this._surface.render()};b.prototype.componentWillUnmount=function(){Sa.updateContainer(null,this._mountNode,this)};b.prototype.render=function(){var a=this,b=this.props;return ia.createElement(Q.Surface.tagName,{ref:function(b){return a._tagRef=b},accessKey:b.accessKey,className:b.className,draggable:b.draggable,role:b.role,style:b.style,tabIndex:b.tabIndex,title:b.title})};return b}(dd),jd=function(a){function b(c){va(this,b);var d=Vb(this,a.call(this,
-c));["height","width","x","y"].forEach(function(a){Object.defineProperty(d,a,{get:function(){return this._text?this._text[a]:void 0}})});return d}Wb(b,a);b.prototype.render=function(){var a=this;return ia.createElement("Text",cd({},this.props,{ref:function(b){return a._text=b}}),Xb(this.props.children))};return b}(ia.Component),Sa=function(a){var b=a.getPublicInstance;a=pc(a);var c=a.scheduleUpdate,d=a.getPriorityContext;return{createContainer:function(a){var b=new I(3,null,0);a={current:b,containerInfo:a,
-isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null};return b.stateNode=a},updateContainer:function(a,b,h,g){var e=b.current;h=kb(h);null===b.context?b.context=h:b.pendingContext=h;b=d(e,cb.enableAsyncSubtreeAPI&&null!=a&&null!=a.type&&null!=a.type.prototype&&!0===a.type.prototype.unstable_isAsyncReactComponent);a={element:a};h=null===a.element;a={priorityLevel:b,partialState:a,callback:void 0===g?null:g,isReplace:!1,isForced:!1,isTopLevelUnmount:h,next:null};g=Ca(e,a);if(h){var f=
-Pb(e);h=f[0];f=f[1];null!==h&&null!==a.next&&(a.next=null,h.last=a);null!==f&&null!==g&&null!==g.next&&(g.next=null,f.last=a)}c(e,b)},performWithPriority:a.performWithPriority,batchedUpdates:a.batchedUpdates,unbatchedUpdates:a.unbatchedUpdates,deferredUpdates:a.deferredUpdates,flushSync:a.flushSync,getPublicRootInstance:function(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return b(a.child.stateNode);default:return a.child.stateNode}},findHostInstance:function(a){a=oc(a);return null===
-a?null:a.stateNode},findHostInstanceWithNoPortals:function(a){a=nc(a);return null===a?null:a.stateNode}}}({appendChild:function(a,b){b.parentNode===a&&b.eject();b.inject(a)},appendChildToContainer:function(a,b){b.parentNode===a&&b.eject();b.inject(a)},appendInitialChild:function(a,b){"string"===typeof b?p("216"):b.inject(a)},commitTextUpdate:function(){},commitMount:function(){},commitUpdate:function(a,b,c,d,e){a._applyProps(a,e,d)},createInstance:function(a,b){var c=void 0;switch(a){case "ClippingRectangle":c=
-Q.ClippingRectangle();c._applyProps=Fc;break;case "Group":c=Q.Group();c._applyProps=Gc;break;case "Shape":c=Q.Shape();c._applyProps=Hc;break;case "Text":c=Q.Text(b.children,b.font,b.alignment,b.path),c._applyProps=Ic}c?void 0:p("217",a);c._applyProps(c,b);return c},createTextInstance:function(a){return a},finalizeInitialChildren:function(){return!1},getPublicInstance:function(a){return a},insertBefore:function(a,b,c){b===c?p("218"):void 0;b.injectBefore(c)},insertInContainerBefore:function(a,b,c){b===
-c?p("218"):void 0;b.injectBefore(c)},prepareForCommit:function(){},prepareUpdate:function(){return ed},removeChild:function(a,b){Yb(b);b.eject()},removeChildFromContainer:function(a,b){Yb(b);b.eject()},resetAfterCommit:function(){},resetTextContent:function(){},shouldDeprioritizeSubtree:function(){return!1},getRootHostContext:function(){return U},getChildHostContext:function(){return U},scheduleDeferredCallback:Qc,shouldSetTextContent:function(a,b){return"string"===typeof b.children||"number"===typeof b.children},
-useSyncScheduling:!0});return{ClippingRectangle:"ClippingRectangle",Group:"Group",LinearGradient:fd,Path:Q.Path,Pattern:hd,RadialGradient:gd,Shape:"Shape",Surface:id,Text:jd,Transform:J}}
+d);e=Math.round(200*e);d=["wa",f-d,h-e,f+d,h+e].join(" ");this._redraw(["m",f,h-e,"l",f,h-e].join(" "),["m",f,h-e,d,f,h-e,f,h+e,d,f,h+e,f,h-e,d,f,h-e,f,h+e,d,f,h+e,f,h-e].join(" "));this._boxCoords={left:b-2,top:c-2,width:4,height:4};a.focusposition="0.5,0.5";a.focussize="0 0";a.focus="50%";this._transform();return this}}),ic=z(ha,da,{element_initialize:ha.prototype.initialize,initialize:function(a,b){this.element_initialize("group");this.width=a;this.height=b},_transform:function(){var a=this.element;
+a.coordorigin="0,0";a.coordsize="1000,1000";a.style.left=0;a.style.top=0;a.style.width=1E3;a.style.height=1E3;a.style.rotation=0;this._activeTransform=(a=this.parentNode)?(new J(a._activeTransform)).transform(this):this;for(a=this.firstChild;a;)a._transform(),a=a.nextSibling}}),Yc=z(ha,da,{element_initialize:ha.prototype.initialize,initialize:function(a,b){this.element_initialize("clippingrectangle");this.width=a;this.height=b},_transform:function(){var a=this.element;a.clip=!0;a.coordorigin=-this.x+
+","+-1*this.y;a.coordsize=this.width+","+this.height;a.style.clipLeft=this.x;a.style.clipRight=this.width+this.x;a.style.clipTop=this.y;a.style.left=-this.x;a.style.top=-this.y;a.style.width=this.width+this.x;a.style.height=this.height+this.y;a.style.rotation=0;this._activeTransform=(a=this.parentNode)?(new J(a._activeTransform)).transform(this):this;for(a=this.firstChild;a;)a._transform(),a=a.nextSibling}}),Zc={start:"left",middle:"center",end:"right"},$c=z(Ra,{base_initialize:Ra.prototype.initialize,
+initialize:function(a,b,c,d){this.base_initialize("shape");var e=this.pathElement=R.createElement("path");e.textpathok=!0;this.element.appendChild(e);e=this.textPathElement=R.createElement("textpath");e.on=!0;e.style["v-text-align"]="left";this.element.appendChild(e);this.draw.apply(this,arguments)},draw:function(a,b,c,d){var e=this.element,f=this.textPathElement,h=f.style;f.string=a;if(b)if("string"==typeof b)h.font=b;else for(var g in b){var k=g.camelCase?g.camelCase():g;h[k]="fontFamily"==k?"'"+
+b[g]+"'":b[g]}c&&(h["v-text-align"]=Zc[c]||c);if(d)this.currentPath=d=new Qa(d),this.element.path=d.toVML();else if(!this.currentPath){b=-1;for(c="\n";-1<(b=a.indexOf("\n",b+1));)c+="\n";f.string=c+f.string;this.element.path="m0,0l1,0"}e=e.cloneNode(!0);h=e.style;e.coordorigin="0,0";e.coordsize="10000,10000";h.left="0px";h.top="0px";h.width="10000px";h.height="10000px";h.rotation=0;e.removeChild(e.firstChild);a=new rb(1,1);f=new ic;a.inject(e.ownerDocument.body);f.element.appendChild(e);f.inject(a);
+e=e.getBoundingClientRect();f=a.toElement().getBoundingClientRect();a.eject();this.left=e.left-f.left;this.top=e.top-f.top;this.width=e.right-e.left;this.height=e.bottom-e.top;this.right=e.right-f.left;this.bottom=e.bottom-f.top;this._transform();return this}}),K=Qb(function(a,b){(a=document.createElement("canvas"))&&a.getContext?(b.Surface=fc,b.Path=ob,b.Shape=Rc,b.Group=Sc,b.ClippingRectangle=Tc,b.Text=Vc):(b.Surface=rb,b.Path=Qa,b.Shape=Xc,b.Group=ic,b.ClippingRectangle=Yc,b.Text=$c,"undefined"!==
+typeof document&&R.init(document))}),jc=Object.freeze({default:K,__moduleExports:K,Surface:K.Surface,Path:K.Path,Shape:K.Shape,Group:K.Group,ClippingRectangle:K.ClippingRectangle,Text:K.Text}),ad=Ea||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};Q.setCurrent(jc&&K||jc);var bd=ia.Component,P=new J,Xb={onClick:"click",onMouseMove:"mousemove",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",
+onMouseDown:"mousedown"},cd={},sb=Array.prototype.slice,dd=function(){function a(b,c,d,e,f){va(this,a);this._args=sb.call(arguments)}a.prototype.applyFill=function(a){a.fillLinear.apply(a,this._args)};return a}(),ed=function(){function a(b,c,d,e,f,h,g){va(this,a);this._args=sb.call(arguments)}a.prototype.applyFill=function(a){a.fillRadial.apply(a,this._args)};return a}(),fd=function(){function a(b,c,d,e,f){va(this,a);this._args=sb.call(arguments)}a.prototype.applyFill=function(a){a.fillImage.apply(a,
+this._args)};return a}(),gd=function(a){function b(){va(this,b);return Tb(this,a.apply(this,arguments))}Ub(b,a);b.prototype.componentDidMount=function(){var a=this.props;this._surface=Q.Surface(+a.width,+a.height,this._tagRef);this._mountNode=Sa.createContainer(this._surface);Sa.updateContainer(this.props.children,this._mountNode,this)};b.prototype.componentDidUpdate=function(a){var b=this.props;b.height===a.height&&b.width===a.width||this._surface.resize(+b.width,+b.height);Sa.updateContainer(this.props.children,
+this._mountNode,this);this._surface.render&&this._surface.render()};b.prototype.componentWillUnmount=function(){Sa.updateContainer(null,this._mountNode,this)};b.prototype.render=function(){var a=this,b=this.props;return ia.createElement(Q.Surface.tagName,{ref:function(b){return a._tagRef=b},accessKey:b.accessKey,className:b.className,draggable:b.draggable,role:b.role,style:b.style,tabIndex:b.tabIndex,title:b.title})};return b}(bd),hd=function(a){function b(c){va(this,b);var d=Tb(this,a.call(this,
+c));["height","width","x","y"].forEach(function(a){Object.defineProperty(d,a,{get:function(){return this._text?this._text[a]:void 0}})});return d}Ub(b,a);b.prototype.render=function(){var a=this;return ia.createElement("Text",ad({},this.props,{ref:function(b){return a._text=b}}),Vb(this.props.children))};return b}(ia.Component),Sa=function(a){var b=a.getPublicInstance;a=nc(a);var c=a.scheduleUpdate,d=a.getPriorityContext;return{createContainer:function(a){var b=new I(3,null,0);a={current:b,containerInfo:a,
+isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null};return b.stateNode=a},updateContainer:function(a,b,h,g){var e=b.current;if(h){h=Y.get(h);var f;b:{2===Da(h)&&2===h.tag?void 0:p("170");for(f=h;3!==f.tag;){if(qa(f)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break b}(f=f["return"])?void 0:p("171")}f=f.stateNode.context}h=qa(h)?Gb(h,f,!1):f}else h=U;null===b.context?b.context=h:b.pendingContext=h;b=d(e,cb.enableAsyncSubtreeAPI&&null!=a&&null!=a.type&&null!=a.type.prototype&&
+!0===a.type.prototype.unstable_isAsyncReactComponent);a={element:a};h=null===a.element;a={priorityLevel:b,partialState:a,callback:void 0===g?null:g,isReplace:!1,isForced:!1,isTopLevelUnmount:h,next:null};g=Ca(e,a);h&&(f=Nb(e),h=f[0],f=f[1],null!==h&&null!==a.next&&(a.next=null,h.last=a),null!==f&&null!==g&&null!==g.next&&(g.next=null,f.last=a));c(e,b)},performWithPriority:a.performWithPriority,batchedUpdates:a.batchedUpdates,unbatchedUpdates:a.unbatchedUpdates,deferredUpdates:a.deferredUpdates,flushSync:a.flushSync,
+getPublicRootInstance:function(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return b(a.child.stateNode);default:return a.child.stateNode}},findHostInstance:function(a){a=mc(a);return null===a?null:a.stateNode},findHostInstanceWithNoPortals:function(a){a=lc(a);return null===a?null:a.stateNode}}}({appendChild:function(a,b){b.parentNode===a&&b.eject();b.inject(a)},appendChildToContainer:function(a,b){b.parentNode===a&&b.eject();b.inject(a)},appendInitialChild:function(a,b){"string"===
+typeof b?p("216"):b.inject(a)},commitTextUpdate:function(){},commitMount:function(){},commitUpdate:function(a,b,c,d,e){a._applyProps(a,e,d)},createInstance:function(a,b){var c=void 0;switch(a){case "ClippingRectangle":c=Q.ClippingRectangle();c._applyProps=Dc;break;case "Group":c=Q.Group();c._applyProps=Ec;break;case "Shape":c=Q.Shape();c._applyProps=Fc;break;case "Text":c=Q.Text(b.children,b.font,b.alignment,b.path),c._applyProps=Gc}c?void 0:p("217",a);c._applyProps(c,b);return c},createTextInstance:function(a){return a},
+finalizeInitialChildren:function(){return!1},getPublicInstance:function(a){return a},insertBefore:function(a,b,c){b===c?p("218"):void 0;b.injectBefore(c)},insertInContainerBefore:function(a,b,c){b===c?p("218"):void 0;b.injectBefore(c)},prepareForCommit:function(){},prepareUpdate:function(){return cd},removeChild:function(a,b){Wb(b);b.eject()},removeChildFromContainer:function(a,b){Wb(b);b.eject()},resetAfterCommit:function(){},resetTextContent:function(){},shouldDeprioritizeSubtree:function(){return!1},
+getRootHostContext:function(){return U},getChildHostContext:function(){return U},scheduleDeferredCallback:Oc,shouldSetTextContent:function(a,b){return"string"===typeof b.children||"number"===typeof b.children},useSyncScheduling:!0});return{ClippingRectangle:"ClippingRectangle",Group:"Group",LinearGradient:dd,Path:Q.Path,Pattern:fd,RadialGradient:ed,Shape:"Shape",Surface:gd,Text:hd,Transform:J}}
"object"===typeof exports&&"undefined"!==typeof module?module.exports=Ta(require("art/modes/current"),require("art/modes/fast-noSideEffects"),require("art/core/transform"),require("react")):"function"===typeof define&&define.amd?define(["art/modes/current","art/modes/fast-noSideEffects","art/core/transform","react"],Ta):this.ReactART=Ta(null,null,null,this.React);
diff --git a/dist/react-dom-server.browser.development.js b/dist/react-dom-server.browser.development.js
index 30604d9..617dbc9 100644
--- a/dist/react-dom-server.browser.development.js
+++ b/dist/react-dom-server.browser.development.js
@@ -1800,6 +1800,20 @@ function camelizeStyleName$1(string) {
var camelizeStyleName_1 = camelizeStyleName$1;
+var ReactInternals = react.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
+
+var ReactGlobalSharedState = {
+ ReactCurrentOwner: ReactInternals.ReactCurrentOwner
+};
+
+{
+ index(ReactGlobalSharedState, {
+ ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
+ });
+}
+
+var ReactGlobalSharedState_1 = ReactGlobalSharedState;
+
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
@@ -1812,44 +1826,20 @@ var camelizeStyleName_1 = camelizeStyleName$1;
*
*/
-function getComponentName$2(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName$2(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
var getComponentName_1 = getComponentName$2;
-var ReactInternals = react.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
-
-var ReactGlobalSharedState = {
- ReactCurrentOwner: ReactInternals.ReactCurrentOwner
-};
-
-{
- index(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
- ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
- });
-}
-
-var ReactGlobalSharedState_1 = ReactGlobalSharedState;
-
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
@@ -1940,7 +1930,7 @@ var ReactFiberComponentTreeHook = {
var ReactDebugCurrentFrame$1 = ReactGlobalSharedState_1.ReactDebugCurrentFrame;
{
- var getComponentName$3 = getComponentName_1;
+ var getComponentName$1 = getComponentName_1;
var _require2$1 = ReactFiberComponentTreeHook,
getStackAddendumByWorkInProgressFiber = _require2$1.getStackAddendumByWorkInProgressFiber;
@@ -1953,7 +1943,7 @@ function getCurrentFiberOwnerName$1() {
return null;
}
if (fiber._debugOwner != null) {
- return getComponentName$3(fiber._debugOwner);
+ return getComponentName$1(fiber._debugOwner);
}
}
return null;
@@ -1999,7 +1989,6 @@ var warnValidStyle$1 = emptyFunction_1;
{
var camelizeStyleName = camelizeStyleName_1;
- var getComponentName$1 = getComponentName_1;
var warning$6 = warning_1;
var _require = ReactDebugCurrentFiber_1,
@@ -2018,62 +2007,57 @@ var warnValidStyle$1 = emptyFunction_1;
var warnedForNaNValue = false;
var warnedForInfinityValue = false;
- var warnHyphenatedStyleName = function (name, owner) {
+ var warnHyphenatedStyleName = function (name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
- warning$6(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage(owner));
+ warning$6(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage());
};
- var warnBadVendoredStyleName = function (name, owner) {
+ var warnBadVendoredStyleName = function (name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
- warning$6(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner));
+ warning$6(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage());
};
- var warnStyleValueWithSemicolon = function (name, value, owner) {
+ var warnStyleValueWithSemicolon = function (name, value) {
if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
return;
}
warnedStyleValues[value] = true;
- warning$6(false, "Style property values shouldn't contain a semicolon.%s " + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, ''));
+ warning$6(false, "Style property values shouldn't contain a semicolon.%s " + 'Try "%s: %s" instead.', checkRenderMessage(), name, value.replace(badStyleValueWithSemicolonPattern, ''));
};
- var warnStyleValueIsNaN = function (name, value, owner) {
+ var warnStyleValueIsNaN = function (name, value) {
if (warnedForNaNValue) {
return;
}
warnedForNaNValue = true;
- warning$6(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner));
+ warning$6(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage());
};
- var warnStyleValueIsInfinity = function (name, value, owner) {
+ var warnStyleValueIsInfinity = function (name, value) {
if (warnedForInfinityValue) {
return;
}
warnedForInfinityValue = true;
- warning$6(false, '`Infinity` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner));
+ warning$6(false, '`Infinity` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage());
};
- var checkRenderMessage = function (owner) {
+ var checkRenderMessage = function () {
var ownerName;
- if (owner != null) {
- // Stack passes the owner manually all the way to CSSPropertyOperations.
- ownerName = getComponentName$1(owner);
- } else {
- // Fiber doesn't pass it but uses ReactDebugCurrentFiber to track it.
- // It is only enabled in development and tracks host components too.
- ownerName = getCurrentFiberOwnerName();
- // TODO: also report the stack.
- }
+ // Fiber doesn't pass it but uses ReactDebugCurrentFiber to track it.
+ // It is only enabled in development and tracks host components too.
+ ownerName = getCurrentFiberOwnerName();
+ // TODO: also report the stack.
if (ownerName) {
return '\n\nCheck the render method of `' + ownerName + '`.';
}
@@ -2081,24 +2065,19 @@ var warnValidStyle$1 = emptyFunction_1;
};
warnValidStyle$1 = function (name, value, component) {
- var owner;
- if (component) {
- // TODO: this only works with Stack. Seems like we need to add unit tests?
- owner = component._currentElement._owner;
- }
if (name.indexOf('-') > -1) {
- warnHyphenatedStyleName(name, owner);
+ warnHyphenatedStyleName(name);
} else if (badVendoredStyleNamePattern.test(name)) {
- warnBadVendoredStyleName(name, owner);
+ warnBadVendoredStyleName(name);
} else if (badStyleValueWithSemicolonPattern.test(value)) {
- warnStyleValueWithSemicolon(name, value, owner);
+ warnStyleValueWithSemicolon(name, value);
}
if (typeof value === 'number') {
if (isNaN(value)) {
- warnStyleValueIsNaN(name, value, owner);
+ warnStyleValueIsNaN(name, value);
} else if (!isFinite(value)) {
- warnStyleValueIsInfinity(name, value, owner);
+ warnStyleValueIsInfinity(name, value);
}
}
};
@@ -2182,27 +2161,17 @@ var rARIACamel = new RegExp('^(aria)[A-Z][' + DOMProperty_1.ATTRIBUTE_NAME_CHAR
var warning$7 = warning_1;
var _require$1 = ReactGlobalSharedState_1,
- ReactComponentTreeHook = _require$1.ReactComponentTreeHook,
ReactDebugCurrentFrame$2 = _require$1.ReactDebugCurrentFrame;
- var getStackAddendumByID = ReactComponentTreeHook.getStackAddendumByID;
-
-
var validAriaProperties = validAriaProperties$1;
}
-function getStackAddendum$1(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$2.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$1() {
+ var stack = ReactDebugCurrentFrame$2.getStackAddendum();
+ return stack != null ? stack : '';
}
-function validateProperty(tagName, name, debugID) {
+function validateProperty(tagName, name) {
if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
return true;
}
@@ -2214,13 +2183,13 @@ function validateProperty(tagName, name, debugID) {
// If this is an aria-* attribute, but is not listed in the known DOM
// DOM properties, then it is an invalid aria-* attribute.
if (correctName == null) {
- warning$7(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s', name, getStackAddendum$1(debugID));
+ warning$7(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s', name, getStackAddendum$1());
warnedProperties[name] = true;
return true;
}
// aria-* attributes should be lowercase; suggest the lowercase version.
if (name !== correctName) {
- warning$7(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?%s', name, correctName, getStackAddendum$1(debugID));
+ warning$7(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?%s', name, correctName, getStackAddendum$1());
warnedProperties[name] = true;
return true;
}
@@ -2238,7 +2207,7 @@ function validateProperty(tagName, name, debugID) {
}
// aria-* attributes should be lowercase; suggest the lowercase version.
if (name !== standardName) {
- warning$7(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$1(debugID));
+ warning$7(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$1());
warnedProperties[name] = true;
return true;
}
@@ -2247,11 +2216,11 @@ function validateProperty(tagName, name, debugID) {
return true;
}
-function warnInvalidARIAProps(type, props, debugID) {
+function warnInvalidARIAProps(type, props) {
var invalidProps = [];
for (var key in props) {
- var isValid = validateProperty(type, key, debugID);
+ var isValid = validateProperty(type, key);
if (!isValid) {
invalidProps.push(key);
}
@@ -2262,33 +2231,21 @@ function warnInvalidARIAProps(type, props, debugID) {
}).join(', ');
if (invalidProps.length === 1) {
- warning$7(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1(debugID));
+ warning$7(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1());
} else if (invalidProps.length > 1) {
- warning$7(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1(debugID));
+ warning$7(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1());
}
}
-function validateProperties(type, props, debugID /* Stack only */) {
+function validateProperties(type, props) {
if (type.indexOf('-') >= 0 || props.is) {
return;
}
- warnInvalidARIAProps(type, props, debugID);
+ warnInvalidARIAProps(type, props);
}
var ReactDOMInvalidARIAHook = {
- // Fiber
- validateProperties: validateProperties,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties
};
var ReactDOMInvalidARIAHook_1 = ReactDOMInvalidARIAHook;
@@ -2297,50 +2254,29 @@ var ReactDOMInvalidARIAHook_1 = ReactDOMInvalidARIAHook;
var warning$8 = warning_1;
var _require$2 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$1 = _require$2.ReactComponentTreeHook,
ReactDebugCurrentFrame$3 = _require$2.ReactDebugCurrentFrame;
-
- var getStackAddendumByID$1 = ReactComponentTreeHook$1.getStackAddendumByID;
}
var didWarnValueNull = false;
-function getStackAddendum$2(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID$1(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$3.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$2() {
+ var stack = ReactDebugCurrentFrame$3.getStackAddendum();
+ return stack != null ? stack : '';
}
-function validateProperties$1(type, props, debugID /* Stack only */) {
+function validateProperties$1(type, props) {
if (type !== 'input' && type !== 'textarea' && type !== 'select') {
return;
}
if (props != null && props.value === null && !didWarnValueNull) {
- warning$8(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', type, getStackAddendum$2(debugID));
+ warning$8(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', type, getStackAddendum$2());
didWarnValueNull = true;
}
}
var ReactDOMNullInputValuePropHook = {
- // Fiber
- validateProperties: validateProperties$1,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$1(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$1(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties$1
};
var ReactDOMNullInputValuePropHook_1 = ReactDOMNullInputValuePropHook;
@@ -3018,21 +2954,12 @@ var possibleStandardNames_1 = possibleStandardNames$1;
var warning$9 = warning_1;
var _require$3 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$2 = _require$3.ReactComponentTreeHook,
ReactDebugCurrentFrame$4 = _require$3.ReactDebugCurrentFrame;
-
- var getStackAddendumByID$2 = ReactComponentTreeHook$2.getStackAddendumByID;
}
-function getStackAddendum$3(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID$2(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$4.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$3() {
+ var stack = ReactDebugCurrentFrame$4.getStackAddendum();
+ return stack != null ? stack : '';
}
{
@@ -3041,7 +2968,7 @@ function getStackAddendum$3(debugID) {
var ARIA_NAME_REGEX = /^aria-/i;
var possibleStandardNames = possibleStandardNames_1;
- var validateProperty$1 = function (tagName, name, value, debugID) {
+ var validateProperty$1 = function (tagName, name, value) {
if (warnedProperties$1.hasOwnProperty(name) && warnedProperties$1[name]) {
return true;
}
@@ -3060,7 +2987,7 @@ function getStackAddendum$3(debugID) {
var registrationName = EventPluginRegistry_1.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry_1.possibleRegistrationNames[lowerCasedName] : null;
if (registrationName != null) {
- warning$9(false, 'Unknown event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$3(debugID));
+ warning$9(false, 'Unknown event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$3());
warnedProperties$1[name] = true;
return true;
}
@@ -3083,7 +3010,7 @@ function getStackAddendum$3(debugID) {
}
if (typeof value === 'number' && isNaN(value)) {
- warning$9(false, 'Received NaN for numeric attribute `%s`. If this is expected, cast ' + 'the value to a string.%s', name, getStackAddendum$3(debugID));
+ warning$9(false, 'Received NaN for numeric attribute `%s`. If this is expected, cast ' + 'the value to a string.%s', name, getStackAddendum$3());
warnedProperties$1[name] = true;
return true;
}
@@ -3092,7 +3019,7 @@ function getStackAddendum$3(debugID) {
if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
var standardName = possibleStandardNames[lowerCasedName];
if (standardName !== name) {
- warning$9(false, 'Invalid DOM property `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$3(debugID));
+ warning$9(false, 'Invalid DOM property `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$3());
warnedProperties$1[name] = true;
return true;
}
@@ -3114,15 +3041,15 @@ function getStackAddendum$3(debugID) {
};
}
-var warnUnknownProperties = function (type, props, debugID) {
+var warnUnknownProperties = function (type, props) {
var unknownProps = [];
for (var key in props) {
- var isValid = validateProperty$1(type, key, props[key], debugID);
+ var isValid = validateProperty$1(type, key, props[key]);
if (!isValid) {
unknownProps.push(key);
var value = props[key];
if (typeof value === 'object' && value !== null) {
- warning$9(false, 'The %s prop on <%s> is not a known property, and was given an object.' + 'Remove it, or it will appear in the ' + 'DOM after a future React update.%s', key, type, getStackAddendum$3(debugID));
+ warning$9(false, 'The %s prop on <%s> is not a known property, and was given an object.' + 'Remove it, or it will appear in the ' + 'DOM after a future React update.%s', key, type, getStackAddendum$3());
}
}
}
@@ -3132,33 +3059,21 @@ var warnUnknownProperties = function (type, props, debugID) {
}).join(', ');
if (unknownProps.length === 1) {
- warning$9(false, 'Invalid prop %s on <%s> tag. Either remove this prop from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$3(debugID));
+ warning$9(false, 'Invalid prop %s on <%s> tag. Either remove this prop from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$3());
} else if (unknownProps.length > 1) {
- warning$9(false, 'Invalid props %s on <%s> tag. Either remove these props from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$3(debugID));
+ warning$9(false, 'Invalid props %s on <%s> tag. Either remove these props from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$3());
}
};
-function validateProperties$2(type, props, debugID /* Stack only */) {
+function validateProperties$2(type, props) {
if (type.indexOf('-') >= 0 || props.is) {
return;
}
- warnUnknownProperties(type, props, debugID);
+ warnUnknownProperties(type, props);
}
var ReactDOMUnknownPropertyHook = {
- // Fiber
- validateProperties: validateProperties$2,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$2(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$2(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties$2
};
var ReactDOMUnknownPropertyHook_1 = ReactDOMUnknownPropertyHook;
diff --git a/dist/react-dom-unstable-native-dependencies.development.js b/dist/react-dom-unstable-native-dependencies.development.js
index efef956..35e2f1d 100644
--- a/dist/react-dom-unstable-native-dependencies.development.js
+++ b/dist/react-dom-unstable-native-dependencies.development.js
@@ -901,38 +901,20 @@ var EventPluginHub = {
// TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
// live here; needs to be moved to a better place soon
- if (typeof inst.tag === 'number') {
- var stateNode = inst.stateNode;
- if (!stateNode) {
- // Work in progress (ex: onload events in incremental mode).
- return null;
- }
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
- if (!props) {
- // Work in progress.
- return null;
- }
- listener = props[registrationName];
- if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
- return null;
- }
- } else {
- var currentElement = inst._currentElement;
- if (typeof currentElement === 'string' || typeof currentElement === 'number') {
- // Text node, let it bubble through.
- return null;
- }
- if (!inst._rootNodeID) {
- // If the instance is already unmounted, we have no listeners.
- return null;
- }
- var _props = currentElement.props;
- listener = _props[registrationName];
- if (shouldPreventMouseEvent(registrationName, currentElement.type, _props)) {
- return null;
- }
+ var stateNode = inst.stateNode;
+ if (!stateNode) {
+ // Work in progress (ex: onload events in incremental mode).
+ return null;
+ }
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
+ if (!props) {
+ // Work in progress.
+ return null;
+ }
+ listener = props[registrationName];
+ if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
+ return null;
}
-
invariant_1(!listener || typeof listener === 'function', 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
return listener;
},
@@ -1025,21 +1007,16 @@ var ReactTypeOfWork = {
var HostComponent = ReactTypeOfWork.HostComponent;
function getParent(inst) {
- if (inst._hostParent !== undefined) {
- return inst._hostParent;
- }
- if (typeof inst.tag === 'number') {
- do {
- inst = inst['return'];
- // TODO: If this is a HostRoot we might want to bail out.
- // That is depending on if we want nested subtrees (layers) to bubble
- // events to their parent. We could also go through parentNode on the
- // host node but that wouldn't work for React Native and doesn't let us
- // do the portal feature.
- } while (inst && inst.tag !== HostComponent);
- if (inst) {
- return inst;
- }
+ do {
+ inst = inst['return'];
+ // TODO: If this is a HostRoot we might want to bail out.
+ // That is depending on if we want nested subtrees (layers) to bubble
+ // events to their parent. We could also go through parentNode on the
+ // host node but that wouldn't work for React Native and doesn't let us
+ // do the portal feature.
+ } while (inst && inst.tag !== HostComponent);
+ if (inst) {
+ return inst;
}
return null;
}
diff --git a/dist/react-dom-unstable-native-dependencies.production.min.js b/dist/react-dom-unstable-native-dependencies.production.min.js
index b8c4499..918eb50 100644
--- a/dist/react-dom-unstable-native-dependencies.production.min.js
+++ b/dist/react-dom-unstable-native-dependencies.production.min.js
@@ -1,30 +1,30 @@
-function K(ia){function L(a,b){var c=h;h=a;if(null!==x.GlobalResponderHandler)x.GlobalResponderHandler.onChange(c,a,b)}function B(a,b){null==b?y("29"):void 0;return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}function z(){}function S(a,b){if("number"===typeof a.tag){var c=a.stateNode;if(!c)return null;var d=n.getFiberCurrentPropsFromNode(c);if(!d)return null;c=d[b];if(T(b,a.type,d))return null}else{d=a._currentElement;if("string"===typeof d||"number"===typeof d||!a._rootNodeID)return null;
-a=d.props;c=a[b];if(T(b,d.type,a))return null}ja(!c||"function"===typeof c,"Expected `%s` listener to be a function, instead got a value of `%s` type.",b,typeof c);return c}function M(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function D(a,b){null==b?y("30"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function ka(){if(f._hasRethrowError){var a=f._rethrowError;f._rethrowError=
-null;f._hasRethrowError=!1;throw a;}}function U(a,b,c,d,e,g,E,h,l){f._hasCaughtError=!1;f._caughtError=null;var k=Array.prototype.slice.call(arguments,3);try{b.apply(c,k)}catch(la){f._caughtError=la,f._hasCaughtError=!0}}function ja(a,b,c,d,e,g,E,f){if(!a){if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[c,d,e,g,E,f],k=0;a=Error(b.replace(/%s/g,function(){return h[k++]}));a.name="Invariant Violation"}a.framesToPop=
-1;throw a;}}function y(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}function V(a,b,c,d){b=a.type||"unknown-event";a.currentTarget=N.getNodeFromInstance(d);ma.invokeGuardedCallbackAndCatchFirstError(b,
-c,void 0,a);a.currentTarget=null}function T(a,b,c){switch(a){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":return!(!c.disabled||"button"!==b&&"input"!==b&&"select"!==b&&"textarea"!==b);default:return!1}}function p(a){if(void 0!==a._hostParent)return a._hostParent;if("number"===typeof a.tag){do a=a["return"];while(a&&5!==a.tag);if(a)return a}return null}
-function W(a,b){for(var c=0,d=a;d;d=p(d))c++;d=0;for(var e=b;e;e=p(e))d++;for(;0<c-d;)a=p(a),c--;for(;0<d-c;)b=p(b),d--;for(;c--;){if(a===b||a===b.alternate)return a;a=p(a);b=p(b)}return null}function X(a,b,c){if(b=S(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=D(c._dispatchListeners,b),c._dispatchInstances=D(c._dispatchInstances,a)}function na(a){a&&a.dispatchConfig.phasedRegistrationNames&&A.traverseTwoPhase(a._targetInst,X,a)}function oa(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=
-a._targetInst;b=b?A.getParentInstance(b):null;A.traverseTwoPhase(b,X,a)}}function Y(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=S(a,c.dispatchConfig.registrationName))&&(c._dispatchListeners=D(c._dispatchListeners,b),c._dispatchInstances=D(c._dispatchInstances,a))}function pa(a){a&&a.dispatchConfig.registrationName&&Y(a._targetInst,null,a)}function F(a){return function(){return a}}function C(a,b,c,d){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&
-((b=a[e])?this[e]=b(c):"target"===e?this.target=d:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?u.thatReturnsTrue:u.thatReturnsFalse;this.isPropagationStopped=u.thatReturnsFalse;return this}function qa(a,b,c,d){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,d);return e}return new this(a,b,c,d)}function ra(a){a instanceof this?void 0:y("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function Z(a){a.eventPool=
-[];a.getPooled=qa;a.release=ra}function v(a,b,c,d){return aa.call(this,a,b,c,d)}function m(a){return a.timeStamp||a.timestamp}function O(a){a=a.identifier;null==a?y("138"):void 0;return a}function sa(a){var b=O(a),c=q[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=m(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=m(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=m(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,
-startTimeStamp:m(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:m(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:m(a)},q[b]=c);r.mostRecentTimeStamp=m(a)}function ta(a){var b=q[O(a)];b?(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=m(a),r.mostRecentTimeStamp=m(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n",
-"Touch Bank: %s",ba(a),ca())}function ua(a){var b=q[O(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=m(a),r.mostRecentTimeStamp=m(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",ba(a),ca())}function ba(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:m(a)})}function ca(){var a=
-JSON.stringify(q.slice(0,20));20<q.length&&(a+=" (original size: "+q.length+")");return a}var f={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(a){"function"!==typeof a.invokeGuardedCallback?y("197"):void 0;U=a.invokeGuardedCallback}},invokeGuardedCallback:function(a,b,c,d,e,g,E,h,k){U.apply(f,arguments)},invokeGuardedCallbackAndCatchFirstError:function(a,b,c,d,e,g,E,h,k){f.invokeGuardedCallback.apply(this,arguments);if(f.hasCaughtError()){var l=
-f.clearCaughtError();f._hasRethrowError||(f._hasRethrowError=!0,f._rethrowError=l)}},rethrowCaughtError:function(){return ka.apply(f,arguments)},hasCaughtError:function(){return f._hasCaughtError},clearCaughtError:function(){if(f._hasCaughtError){var a=f._caughtError;f._caughtError=null;f._hasCaughtError=!1;return a}y("198")}},ma=f,G,N={isEndish:function(a){return"topMouseUp"===a||"topTouchEnd"===a||"topTouchCancel"===a},isMoveish:function(a){return"topMouseMove"===a||"topTouchMove"===a},isStartish:function(a){return"topMouseDown"===
-a||"topTouchStart"===a},executeDirectDispatch:function(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?y("103"):void 0;a.currentTarget=b?N.getNodeFromInstance(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b},executeDispatchesInOrder:function(a,b){var c=a._dispatchListeners,d=a._dispatchInstances;if(Array.isArray(c))for(var e=0;e<c.length&&!a.isPropagationStopped();e++)V(a,b,c[e],d[e]);else c&&V(a,b,c,d);a._dispatchListeners=
-null;a._dispatchInstances=null},executeDispatchesInOrderStopAtTrue:function(a){a:{var b=a._dispatchListeners;var c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;d<b.length&&!a.isPropagationStopped();d++){if(b[d](a,c[d])){b=c[d];break a}}else if(b&&b(a,c)){b=c;break a}b=null}a._dispatchInstances=null;a._dispatchListeners=null;return b},hasDispatches:function(a){return!!a._dispatchListeners},getFiberCurrentPropsFromNode:function(a){return G.getFiberCurrentPropsFromNode(a)},getInstanceFromNode:function(a){return G.getInstanceFromNode(a)},
-getNodeFromInstance:function(a){return G.getNodeFromInstance(a)},injection:{injectComponentTree:function(a){G=a}}},n=N,A={isAncestor:function(a,b){for(;b;){if(a===b||a===b.alternate)return!0;b=p(b)}return!1},getLowestCommonAncestor:W,getParentInstance:function(a){return p(a)},traverseTwoPhase:function(a,b,c){for(var d=[];a;)d.push(a),a=p(a);for(a=d.length;0<a--;)b(d[a],"captured",c);for(a=0;a<d.length;a++)b(d[a],"bubbled",c)},traverseEnterLeave:function(a,b,c,d,e){for(var g=a&&b?W(a,b):null,f=[];a&&
-a!==g;)f.push(a),a=p(a);for(a=[];b&&b!==g;)a.push(b),b=p(b);for(b=0;b<f.length;b++)c(f[b],"bubbled",d);for(b=a.length;0<b--;)c(a[b],"captured",e)}},w={accumulateTwoPhaseDispatches:function(a){M(a,na)},accumulateTwoPhaseDispatchesSkipTarget:function(a){M(a,oa)},accumulateDirectDispatches:function(a){M(a,pa)},accumulateEnterLeaveDispatches:function(a,b,c,d){A.traverseEnterLeave(c,d,Y,a,b)}},da=Object.getOwnPropertySymbols,va=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,P=
-function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===
-a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var g=Object(arguments[e]);for(var f in g)va.call(g,f)&&(c[f]=g[f]);if(da){d=da(g);for(var h=0;h<d.length;h++)wa.call(g,d[h])&&(c[d[h]]=g[d[h]])}}return c};z.thatReturns=F;z.thatReturnsFalse=F(!1);z.thatReturnsTrue=F(!0);z.thatReturnsNull=F(null);z.thatReturnsThis=function(){return this};z.thatReturnsArgument=function(a){return a};var u=z,ea="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),
-H={type:null,target:null,currentTarget:u.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};P(C.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=u.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():
-"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=u.thatReturnsTrue)},persist:function(){this.isPersistent=u.thatReturnsTrue},isPersistent:u.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<ea.length;a++)this[ea[a]]=null}});C.Interface=H;C.augmentClass=function(a,b){function c(){}c.prototype=this.prototype;var d=new c;P(d,a.prototype);a.prototype=d;a.prototype.constructor=a;a.Interface=P({},this.Interface,b);
-a.augmentClass=this.augmentClass;Z(a)};Z(C);var aa=C;aa.augmentClass(v,{touchHistory:function(){return null}});var xa=n.isEndish,ya=n.isMoveish,za=n.isStartish,q=[],r={touchBank:q,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},t={recordTouchTrack:function(a,b){if(ya(a))b.changedTouches.forEach(ta);else if(za(a))b.changedTouches.forEach(sa),r.numberActiveTouches=b.touches.length,1===r.numberActiveTouches&&(r.indexOfSingleActiveTouch=b.touches[0].identifier);else if(xa(a)&&
-(b.changedTouches.forEach(ua),r.numberActiveTouches=b.touches.length,1===r.numberActiveTouches))for(a=0;a<q.length;a++)if(b=q[a],null!=b&&b.touchActive){r.indexOfSingleActiveTouch=a;break}},touchHistory:r},I=n.isStartish,Q=n.isMoveish,R=n.isEndish,fa=n.executeDirectDispatch,Aa=n.hasDispatches,Ba=n.executeDispatchesInOrderStopAtTrue,h=null,J=0,ha=0,k={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"}},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",
-captured:"onScrollShouldSetResponderCapture"}},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"}},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"}},responderStart:{registrationName:"onResponderStart"},responderMove:{registrationName:"onResponderMove"},responderEnd:{registrationName:"onResponderEnd"},responderRelease:{registrationName:"onResponderRelease"},
-responderTerminationRequest:{registrationName:"onResponderTerminationRequest"},responderGrant:{registrationName:"onResponderGrant"},responderReject:{registrationName:"onResponderReject"},responderTerminate:{registrationName:"onResponderTerminate"}},x={_getResponder:function(){return h},eventTypes:k,extractEvents:function(a,b,c,d){if(I(a))J+=1;else if(R(a))if(0<=J)--J;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;t.recordTouchTrack(a,c);if(b&&("topScroll"===
-a&&!c.responderIgnoreScroll||0<J&&"topSelectionChange"===a||I(a)||Q(a))){var e=I(a)?k.startShouldSetResponder:Q(a)?k.moveShouldSetResponder:"topSelectionChange"===a?k.selectionChangeShouldSetResponder:k.scrollShouldSetResponder,g=h?A.getLowestCommonAncestor(h,b):b;b=g===h;g=v.getPooled(e,g,c,d);g.touchHistory=t.touchHistory;b?w.accumulateTwoPhaseDispatchesSkipTarget(g):w.accumulateTwoPhaseDispatches(g);e=Ba(g);g.isPersistent()||g.constructor.release(g);if(e&&e!==h)if(b=v.getPooled(k.responderGrant,
-e,c,d),b.touchHistory=t.touchHistory,w.accumulateDirectDispatches(b),g=!0===fa(b),h){var f=v.getPooled(k.responderTerminationRequest,h,c,d);f.touchHistory=t.touchHistory;w.accumulateDirectDispatches(f);var m=!Aa(f)||fa(f);f.isPersistent()||f.constructor.release(f);if(m){f=v.getPooled(k.responderTerminate,h,c,d);f.touchHistory=t.touchHistory;w.accumulateDirectDispatches(f);var l=B(l,[b,f]);L(e,g)}else e=v.getPooled(k.responderReject,e,c,d),e.touchHistory=t.touchHistory,w.accumulateDirectDispatches(e),
-l=B(l,e)}else l=B(l,b),L(e,g);else l=null}else l=null;e=h&&I(a);b=h&&Q(a);g=h&&R(a);if(e=e?k.responderStart:b?k.responderMove:g?k.responderEnd:null)e=v.getPooled(e,h,c,d),e.touchHistory=t.touchHistory,w.accumulateDirectDispatches(e),l=B(l,e);e=h&&"topTouchCancel"===a;if(a=h&&!e&&R(a))a:{if((a=c.touches)&&0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target,null!==g&&void 0!==g&&0!==g&&(g=n.getInstanceFromNode(g),A.isAncestor(h,g))){a=!1;break a}a=!0}if(a=e?k.responderTerminate:a?k.responderRelease:
-null)c=v.getPooled(a,h,c,d),c.touchHistory=t.touchHistory,w.accumulateDirectDispatches(c),l=B(l,c),L(null);c=t.touchHistory.numberActiveTouches;if(x.GlobalInteractionHandler&&c!==ha)x.GlobalInteractionHandler.onChange(c);ha=c;return l},GlobalResponderHandler:null,GlobalInteractionHandler:null,injection:{injectGlobalResponderHandler:function(a){x.GlobalResponderHandler=a},injectGlobalInteractionHandler:function(a){x.GlobalInteractionHandler=a}}};H={injectComponentTree:n.injection.injectComponentTree,
-ResponderEventPlugin:x,ResponderTouchHistoryStore:t};H.injectComponentTree(ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMComponentTree);return H}"object"===typeof exports&&"undefined"!==typeof module?module.exports=K(require("react-dom")):"function"===typeof define&&define.amd?define(["react-dom"],K):this.ReactDOMUnstableNativeDependencies=K(this.ReactDOM);
+function K(ha){function L(a,b){var c=h;h=a;if(null!==x.GlobalResponderHandler)x.GlobalResponderHandler.onChange(c,a,b)}function B(a,b){null==b?y("29"):void 0;return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}function z(){}function S(a,b){var c=a.stateNode;if(!c)return null;var d=n.getFiberCurrentPropsFromNode(c);if(!d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":(d=
+!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;ia(!c||"function"===typeof c,"Expected `%s` listener to be a function, instead got a value of `%s` type.",b,typeof c);return c}function M(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function D(a,b){null==b?y("30"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):
+[a,b]}function ja(){if(f._hasRethrowError){var a=f._rethrowError;f._rethrowError=null;f._hasRethrowError=!1;throw a;}}function T(a,b,c,d,e,g,E,h,l){f._hasCaughtError=!1;f._caughtError=null;var k=Array.prototype.slice.call(arguments,3);try{b.apply(c,k)}catch(ka){f._caughtError=ka,f._hasCaughtError=!0}}function ia(a,b,c,d,e,g,E,f){if(!a){if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[c,
+d,e,g,E,f],k=0;a=Error(b.replace(/%s/g,function(){return h[k++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}function y(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=
+1;throw b;}function U(a,b,c,d){b=a.type||"unknown-event";a.currentTarget=N.getNodeFromInstance(d);la.invokeGuardedCallbackAndCatchFirstError(b,c,void 0,a);a.currentTarget=null}function p(a){do a=a["return"];while(a&&5!==a.tag);return a?a:null}function V(a,b){for(var c=0,d=a;d;d=p(d))c++;d=0;for(var e=b;e;e=p(e))d++;for(;0<c-d;)a=p(a),c--;for(;0<d-c;)b=p(b),d--;for(;c--;){if(a===b||a===b.alternate)return a;a=p(a);b=p(b)}return null}function W(a,b,c){if(b=S(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=
+D(c._dispatchListeners,b),c._dispatchInstances=D(c._dispatchInstances,a)}function ma(a){a&&a.dispatchConfig.phasedRegistrationNames&&A.traverseTwoPhase(a._targetInst,W,a)}function na(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?A.getParentInstance(b):null;A.traverseTwoPhase(b,W,a)}}function X(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=S(a,c.dispatchConfig.registrationName))&&(c._dispatchListeners=D(c._dispatchListeners,b),c._dispatchInstances=D(c._dispatchInstances,
+a))}function oa(a){a&&a.dispatchConfig.registrationName&&X(a._targetInst,null,a)}function F(a){return function(){return a}}function C(a,b,c,d){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=d:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?u.thatReturnsTrue:u.thatReturnsFalse;this.isPropagationStopped=u.thatReturnsFalse;
+return this}function pa(a,b,c,d){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,d);return e}return new this(a,b,c,d)}function qa(a){a instanceof this?void 0:y("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function Y(a){a.eventPool=[];a.getPooled=pa;a.release=qa}function v(a,b,c,d){return Z.call(this,a,b,c,d)}function m(a){return a.timeStamp||a.timestamp}function O(a){a=a.identifier;null==a?y("138"):void 0;return a}function ra(a){var b=O(a),c=q[b];c?
+(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=m(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=m(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=m(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:m(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:m(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:m(a)},q[b]=c);r.mostRecentTimeStamp=m(a)}function sa(a){var b=q[O(a)];b?
+(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=m(a),r.mostRecentTimeStamp=m(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s",aa(a),ba())}function ta(a){var b=q[O(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,
+b.currentPageY=a.pageY,b.currentTimeStamp=m(a),r.mostRecentTimeStamp=m(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",aa(a),ba())}function aa(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:m(a)})}function ba(){var a=JSON.stringify(q.slice(0,20));20<q.length&&(a+=" (original size: "+q.length+")");return a}var f={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(a){"function"!==
+typeof a.invokeGuardedCallback?y("197"):void 0;T=a.invokeGuardedCallback}},invokeGuardedCallback:function(a,b,c,d,e,g,E,h,k){T.apply(f,arguments)},invokeGuardedCallbackAndCatchFirstError:function(a,b,c,d,e,g,E,h,k){f.invokeGuardedCallback.apply(this,arguments);if(f.hasCaughtError()){var l=f.clearCaughtError();f._hasRethrowError||(f._hasRethrowError=!0,f._rethrowError=l)}},rethrowCaughtError:function(){return ja.apply(f,arguments)},hasCaughtError:function(){return f._hasCaughtError},clearCaughtError:function(){if(f._hasCaughtError){var a=
+f._caughtError;f._caughtError=null;f._hasCaughtError=!1;return a}y("198")}},la=f,G,N={isEndish:function(a){return"topMouseUp"===a||"topTouchEnd"===a||"topTouchCancel"===a},isMoveish:function(a){return"topMouseMove"===a||"topTouchMove"===a},isStartish:function(a){return"topMouseDown"===a||"topTouchStart"===a},executeDirectDispatch:function(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?y("103"):void 0;a.currentTarget=b?N.getNodeFromInstance(c):null;b=b?b(a):null;a.currentTarget=
+null;a._dispatchListeners=null;a._dispatchInstances=null;return b},executeDispatchesInOrder:function(a,b){var c=a._dispatchListeners,d=a._dispatchInstances;if(Array.isArray(c))for(var e=0;e<c.length&&!a.isPropagationStopped();e++)U(a,b,c[e],d[e]);else c&&U(a,b,c,d);a._dispatchListeners=null;a._dispatchInstances=null},executeDispatchesInOrderStopAtTrue:function(a){a:{var b=a._dispatchListeners;var c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;d<b.length&&!a.isPropagationStopped();d++){if(b[d](a,
+c[d])){b=c[d];break a}}else if(b&&b(a,c)){b=c;break a}b=null}a._dispatchInstances=null;a._dispatchListeners=null;return b},hasDispatches:function(a){return!!a._dispatchListeners},getFiberCurrentPropsFromNode:function(a){return G.getFiberCurrentPropsFromNode(a)},getInstanceFromNode:function(a){return G.getInstanceFromNode(a)},getNodeFromInstance:function(a){return G.getNodeFromInstance(a)},injection:{injectComponentTree:function(a){G=a}}},n=N,A={isAncestor:function(a,b){for(;b;){if(a===b||a===b.alternate)return!0;
+b=p(b)}return!1},getLowestCommonAncestor:V,getParentInstance:function(a){return p(a)},traverseTwoPhase:function(a,b,c){for(var d=[];a;)d.push(a),a=p(a);for(a=d.length;0<a--;)b(d[a],"captured",c);for(a=0;a<d.length;a++)b(d[a],"bubbled",c)},traverseEnterLeave:function(a,b,c,d,e){for(var g=a&&b?V(a,b):null,f=[];a&&a!==g;)f.push(a),a=p(a);for(a=[];b&&b!==g;)a.push(b),b=p(b);for(b=0;b<f.length;b++)c(f[b],"bubbled",d);for(b=a.length;0<b--;)c(a[b],"captured",e)}},w={accumulateTwoPhaseDispatches:function(a){M(a,
+ma)},accumulateTwoPhaseDispatchesSkipTarget:function(a){M(a,na)},accumulateDirectDispatches:function(a){M(a,oa)},accumulateEnterLeaveDispatches:function(a,b,c,d){A.traverseEnterLeave(c,d,X,a,b)}},ca=Object.getOwnPropertySymbols,ua=Object.prototype.hasOwnProperty,va=Object.prototype.propertyIsEnumerable,P=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==
+Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var g=Object(arguments[e]);for(var f in g)ua.call(g,f)&&(c[f]=g[f]);
+if(ca){d=ca(g);for(var h=0;h<d.length;h++)va.call(g,d[h])&&(c[d[h]]=g[d[h]])}}return c};z.thatReturns=F;z.thatReturnsFalse=F(!1);z.thatReturnsTrue=F(!0);z.thatReturnsNull=F(null);z.thatReturnsThis=function(){return this};z.thatReturnsArgument=function(a){return a};var u=z,da="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),H={type:null,target:null,currentTarget:u.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,
+timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};P(C.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=u.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=u.thatReturnsTrue)},
+persist:function(){this.isPersistent=u.thatReturnsTrue},isPersistent:u.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<da.length;a++)this[da[a]]=null}});C.Interface=H;C.augmentClass=function(a,b){function c(){}c.prototype=this.prototype;var d=new c;P(d,a.prototype);a.prototype=d;a.prototype.constructor=a;a.Interface=P({},this.Interface,b);a.augmentClass=this.augmentClass;Y(a)};Y(C);var Z=C;Z.augmentClass(v,{touchHistory:function(){return null}});
+var wa=n.isEndish,xa=n.isMoveish,ya=n.isStartish,q=[],r={touchBank:q,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},t={recordTouchTrack:function(a,b){if(xa(a))b.changedTouches.forEach(sa);else if(ya(a))b.changedTouches.forEach(ra),r.numberActiveTouches=b.touches.length,1===r.numberActiveTouches&&(r.indexOfSingleActiveTouch=b.touches[0].identifier);else if(wa(a)&&(b.changedTouches.forEach(ta),r.numberActiveTouches=b.touches.length,1===r.numberActiveTouches))for(a=0;a<q.length;a++)if(b=
+q[a],null!=b&&b.touchActive){r.indexOfSingleActiveTouch=a;break}},touchHistory:r},I=n.isStartish,Q=n.isMoveish,R=n.isEndish,ea=n.executeDirectDispatch,za=n.hasDispatches,Aa=n.executeDispatchesInOrderStopAtTrue,h=null,J=0,fa=0,k={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"}},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"}},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",
+captured:"onSelectionChangeShouldSetResponderCapture"}},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"}},responderStart:{registrationName:"onResponderStart"},responderMove:{registrationName:"onResponderMove"},responderEnd:{registrationName:"onResponderEnd"},responderRelease:{registrationName:"onResponderRelease"},responderTerminationRequest:{registrationName:"onResponderTerminationRequest"},responderGrant:{registrationName:"onResponderGrant"},
+responderReject:{registrationName:"onResponderReject"},responderTerminate:{registrationName:"onResponderTerminate"}},x={_getResponder:function(){return h},eventTypes:k,extractEvents:function(a,b,c,d){if(I(a))J+=1;else if(R(a))if(0<=J)--J;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;t.recordTouchTrack(a,c);if(b&&("topScroll"===a&&!c.responderIgnoreScroll||0<J&&"topSelectionChange"===a||I(a)||Q(a))){var e=I(a)?k.startShouldSetResponder:Q(a)?k.moveShouldSetResponder:
+"topSelectionChange"===a?k.selectionChangeShouldSetResponder:k.scrollShouldSetResponder,g=h?A.getLowestCommonAncestor(h,b):b;b=g===h;g=v.getPooled(e,g,c,d);g.touchHistory=t.touchHistory;b?w.accumulateTwoPhaseDispatchesSkipTarget(g):w.accumulateTwoPhaseDispatches(g);e=Aa(g);g.isPersistent()||g.constructor.release(g);if(e&&e!==h)if(b=v.getPooled(k.responderGrant,e,c,d),b.touchHistory=t.touchHistory,w.accumulateDirectDispatches(b),g=!0===ea(b),h){var f=v.getPooled(k.responderTerminationRequest,h,c,d);
+f.touchHistory=t.touchHistory;w.accumulateDirectDispatches(f);var m=!za(f)||ea(f);f.isPersistent()||f.constructor.release(f);if(m){f=v.getPooled(k.responderTerminate,h,c,d);f.touchHistory=t.touchHistory;w.accumulateDirectDispatches(f);var l=B(l,[b,f]);L(e,g)}else e=v.getPooled(k.responderReject,e,c,d),e.touchHistory=t.touchHistory,w.accumulateDirectDispatches(e),l=B(l,e)}else l=B(l,b),L(e,g);else l=null}else l=null;e=h&&I(a);b=h&&Q(a);g=h&&R(a);if(e=e?k.responderStart:b?k.responderMove:g?k.responderEnd:
+null)e=v.getPooled(e,h,c,d),e.touchHistory=t.touchHistory,w.accumulateDirectDispatches(e),l=B(l,e);e=h&&"topTouchCancel"===a;if(a=h&&!e&&R(a))a:{if((a=c.touches)&&0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target,null!==g&&void 0!==g&&0!==g&&(g=n.getInstanceFromNode(g),A.isAncestor(h,g))){a=!1;break a}a=!0}if(a=e?k.responderTerminate:a?k.responderRelease:null)c=v.getPooled(a,h,c,d),c.touchHistory=t.touchHistory,w.accumulateDirectDispatches(c),l=B(l,c),L(null);c=t.touchHistory.numberActiveTouches;
+if(x.GlobalInteractionHandler&&c!==fa)x.GlobalInteractionHandler.onChange(c);fa=c;return l},GlobalResponderHandler:null,GlobalInteractionHandler:null,injection:{injectGlobalResponderHandler:function(a){x.GlobalResponderHandler=a},injectGlobalInteractionHandler:function(a){x.GlobalInteractionHandler=a}}};H={injectComponentTree:n.injection.injectComponentTree,ResponderEventPlugin:x,ResponderTouchHistoryStore:t};H.injectComponentTree(ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMComponentTree);
+return H}"object"===typeof exports&&"undefined"!==typeof module?module.exports=K(require("react-dom")):"function"===typeof define&&define.amd?define(["react-dom"],K):this.ReactDOMUnstableNativeDependencies=K(this.ReactDOM);
diff --git a/dist/react-dom.development.js b/dist/react-dom.development.js
index 7e26232..3372ba9 100644
--- a/dist/react-dom.development.js
+++ b/dist/react-dom.development.js
@@ -558,240 +558,6 @@ var EventListener = {
var EventListener_1 = EventListener;
-// These attributes should be all lowercase to allow for
-// case insensitive checks
-var RESERVED_PROPS = {
- children: true,
- dangerouslysetinnerhtml: true,
- autofocus: true,
- defaultvalue: true,
- defaultchecked: true,
- innerhtml: true,
- suppresscontenteditablewarning: true,
- onfocusin: true,
- onfocusout: true,
- style: true
-};
-
-function checkMask(value, bitmask) {
- return (value & bitmask) === bitmask;
-}
-
-var DOMPropertyInjection = {
- /**
- * Mapping from normalized, camelcased property names to a configuration that
- * specifies how the associated DOM property should be accessed or rendered.
- */
- MUST_USE_PROPERTY: 0x1,
- HAS_BOOLEAN_VALUE: 0x4,
- HAS_NUMERIC_VALUE: 0x8,
- HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,
- HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,
-
- /**
- * Inject some specialized knowledge about the DOM. This takes a config object
- * with the following properties:
- *
- * Properties: object mapping DOM property name to one of the
- * DOMPropertyInjection constants or null. If your attribute isn't in here,
- * it won't get written to the DOM.
- *
- * DOMAttributeNames: object mapping React attribute name to the DOM
- * attribute name. Attribute names not specified use the **lowercase**
- * normalized name.
- *
- * DOMAttributeNamespaces: object mapping React attribute name to the DOM
- * attribute namespace URL. (Attribute names not specified use no namespace.)
- *
- * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
- * Property names not specified use the normalized name.
- *
- * DOMMutationMethods: Properties that require special mutation methods. If
- * `value` is undefined, the mutation method should unset the property.
- *
- * @param {object} domPropertyConfig the config as described above.
- */
- injectDOMPropertyConfig: function (domPropertyConfig) {
- var Injection = DOMPropertyInjection;
- var Properties = domPropertyConfig.Properties || {};
- var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};
- var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};
- var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
-
- for (var propName in Properties) {
- !!DOMProperty.properties.hasOwnProperty(propName) ? invariant_1(false, 'injectDOMPropertyConfig(...): You\'re trying to inject DOM property \'%s\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : void 0;
-
- var lowerCased = propName.toLowerCase();
- var propConfig = Properties[propName];
-
- var propertyInfo = {
- attributeName: lowerCased,
- attributeNamespace: null,
- propertyName: propName,
- mutationMethod: null,
-
- mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
- hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
- hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
- hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
- hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
- };
- !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? invariant_1(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : void 0;
-
- if (DOMAttributeNames.hasOwnProperty(propName)) {
- var attributeName = DOMAttributeNames[propName];
-
- propertyInfo.attributeName = attributeName;
- }
-
- if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
- propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];
- }
-
- if (DOMMutationMethods.hasOwnProperty(propName)) {
- propertyInfo.mutationMethod = DOMMutationMethods[propName];
- }
-
- // Downcase references to whitelist properties to check for membership
- // without case-sensitivity. This allows the whitelist to pick up
- // `allowfullscreen`, which should be written using the property configuration
- // for `allowFullscreen`
- DOMProperty.properties[propName] = propertyInfo;
- }
- }
-};
-
-/* eslint-disable max-len */
-var 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';
-/* eslint-enable max-len */
-
-/**
- * DOMProperty exports lookup objects that can be used like functions:
- *
- * > DOMProperty.isValid['id']
- * true
- * > DOMProperty.isValid['foobar']
- * undefined
- *
- * Although this may be confusing, it performs better in general.
- *
- * @see http://jsperf.com/key-exists
- * @see http://jsperf.com/key-missing
- */
-var DOMProperty = {
- ID_ATTRIBUTE_NAME: 'data-reactid',
- ROOT_ATTRIBUTE_NAME: 'data-reactroot',
-
- ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
- ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040',
-
- /**
- * Map from property "standard name" to an object with info about how to set
- * the property in the DOM. Each object contains:
- *
- * attributeName:
- * Used when rendering markup or with `*Attribute()`.
- * attributeNamespace
- * propertyName:
- * Used on DOM node instances. (This includes properties that mutate due to
- * external factors.)
- * mutationMethod:
- * If non-null, used instead of the property or `setAttribute()` after
- * initial render.
- * mustUseProperty:
- * Whether the property must be accessed and mutated as an object property.
- * hasBooleanValue:
- * Whether the property should be removed when set to a falsey value.
- * hasNumericValue:
- * Whether the property must be numeric or parse as a numeric and should be
- * removed when set to a falsey value.
- * hasPositiveNumericValue:
- * Whether the property must be positive numeric or parse as a positive
- * numeric and should be removed when set to a falsey value.
- * hasOverloadedBooleanValue:
- * Whether the property can be used as a flag as well as with a value.
- * Removed when strictly equal to false; present without a value when
- * strictly equal to true; present with a value otherwise.
- */
- properties: {},
-
- /**
- * Checks whether a property name is a writeable attribute.
- * @method
- */
- shouldSetAttribute: function (name, value) {
- if (DOMProperty.isReservedProp(name)) {
- return false;
- }
-
- if (value === null) {
- return true;
- }
-
- var lowerCased = name.toLowerCase();
-
- var propertyInfo = DOMProperty.properties[name];
-
- switch (typeof value) {
- case 'boolean':
- if (propertyInfo) {
- return true;
- }
- var prefix = lowerCased.slice(0, 5);
- return prefix === 'data-' || prefix === 'aria-';
- case 'undefined':
- case 'number':
- case 'string':
- return true;
- case 'object':
- return true;
- default:
- // function, symbol
- return false;
- }
- },
-
- getPropertyInfo: function (name) {
- return DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
- },
-
-
- /**
- * Checks to see if a property name is within the list of properties
- * reserved for internal React operations. These properties should
- * not be set on an HTML element.
- *
- * @private
- * @param {string} name
- * @return {boolean} If the name is within reserved props
- */
- isReservedProp: function (name) {
- return RESERVED_PROPS.hasOwnProperty(name.toLowerCase());
- },
-
-
- injection: DOMPropertyInjection
-};
-
-var DOMProperty_1 = DOMProperty;
-
-/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactDOMComponentFlags
- */
-
-var ReactDOMComponentFlags = {
- hasCachedChildNodes: 1 << 0
-};
-
-var ReactDOMComponentFlags_1 = ReactDOMComponentFlags;
-
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
@@ -818,135 +584,19 @@ var ReactTypeOfWork = {
Fragment: 10
};
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule HTMLNodeType
- */
-
-/**
- * HTML nodeType values that represent the type of the node
- */
-
-var HTMLNodeType = {
- ELEMENT_NODE: 1,
- TEXT_NODE: 3,
- COMMENT_NODE: 8,
- DOCUMENT_NODE: 9,
- DOCUMENT_FRAGMENT_NODE: 11
-};
-
-var HTMLNodeType_1 = HTMLNodeType;
-
var HostComponent = ReactTypeOfWork.HostComponent;
var HostText = ReactTypeOfWork.HostText;
-var ELEMENT_NODE$1 = HTMLNodeType_1.ELEMENT_NODE;
-var COMMENT_NODE$1 = HTMLNodeType_1.COMMENT_NODE;
-
-var ATTR_NAME = DOMProperty_1.ID_ATTRIBUTE_NAME;
-var Flags = ReactDOMComponentFlags_1;
-
var randomKey = Math.random().toString(36).slice(2);
-
var internalInstanceKey = '__reactInternalInstance$' + randomKey;
-
var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
-/**
- * Check if a given node should be cached.
- */
-function shouldPrecacheNode(node, nodeID) {
- return node.nodeType === ELEMENT_NODE$1 && node.getAttribute(ATTR_NAME) === '' + nodeID || node.nodeType === COMMENT_NODE$1 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === COMMENT_NODE$1 && node.nodeValue === ' react-empty: ' + nodeID + ' ';
-}
-
-/**
- * Drill down (through composites and empty components) until we get a host or
- * host text component.
- *
- * This is pretty polymorphic but unavoidable with the current structure we have
- * for `_renderedChildren`.
- */
-function getRenderedHostOrTextFromComponent(component) {
- var rendered;
- while (rendered = component._renderedComponent) {
- component = rendered;
- }
- return component;
-}
-
-/**
- * Populate `_hostNode` on the rendered host/text component with the given
- * DOM node. The passed `inst` can be a composite.
- */
-function precacheNode(inst, node) {
- var hostInst = getRenderedHostOrTextFromComponent(inst);
- hostInst._hostNode = node;
- node[internalInstanceKey] = hostInst;
-}
-
function precacheFiberNode$1(hostInst, node) {
node[internalInstanceKey] = hostInst;
}
-function uncacheNode(inst) {
- var node = inst._hostNode;
- if (node) {
- delete node[internalInstanceKey];
- inst._hostNode = null;
- }
-}
-
-/**
- * Populate `_hostNode` on each child of `inst`, assuming that the children
- * match up with the DOM (element) children of `node`.
- *
- * We cache entire levels at once to avoid an n^2 problem where we access the
- * children of a node sequentially and have to walk from the start to our target
- * node every time.
- *
- * Since we update `_renderedChildren` and the actual DOM at (slightly)
- * different times, we could race here and see a newer `_renderedChildren` than
- * the DOM nodes we see. To avoid this, ReactMultiChild calls
- * `prepareToManageChildren` before we change `_renderedChildren`, at which
- * time the container's child nodes are always cached (until it unmounts).
- */
-function precacheChildNodes(inst, node) {
- if (inst._flags & Flags.hasCachedChildNodes) {
- return;
- }
- var children = inst._renderedChildren;
- var childNode = node.firstChild;
- outer: for (var name in children) {
- if (!children.hasOwnProperty(name)) {
- continue;
- }
- var childInst = children[name];
- var childID = getRenderedHostOrTextFromComponent(childInst)._domID;
- if (childID === 0) {
- // We're currently unmounting this child in ReactMultiChild; skip it.
- continue;
- }
- // We assume the child nodes are in the same order as the child instances.
- for (; childNode !== null; childNode = childNode.nextSibling) {
- if (shouldPrecacheNode(childNode, childID)) {
- precacheNode(childInst, childNode);
- continue outer;
- }
- }
- // We reached the end of the DOM children without finding an ID match.
- invariant_1(false, 'Unable to find element with ID %s.', childID);
- }
- inst._flags |= Flags.hasCachedChildNodes;
-}
-
/**
* Given a DOM node, return the closest ReactDOMComponent or
* ReactDOMTextComponent instance ancestor.
@@ -977,9 +627,6 @@ function getClosestInstanceFromNode(node) {
}
for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) {
closest = inst;
- if (parents.length) {
- precacheChildNodes(inst, node);
- }
}
return closest;
@@ -994,18 +641,11 @@ function getInstanceFromNode(node) {
if (inst) {
if (inst.tag === HostComponent || inst.tag === HostText) {
return inst;
- } else if (inst._hostNode === node) {
- return inst;
} else {
return null;
}
}
- inst = getClosestInstanceFromNode(node);
- if (inst != null && inst._hostNode === node) {
- return inst;
- } else {
- return null;
- }
+ return null;
}
/**
@@ -1021,27 +661,7 @@ function getNodeFromInstance(inst) {
// Without this first invariant, passing a non-DOM-component triggers the next
// invariant for a missing parent, which is super confusing.
- !(inst._hostNode !== undefined) ? invariant_1(false, 'getNodeFromInstance: Invalid argument.') : void 0;
-
- if (inst._hostNode) {
- return inst._hostNode;
- }
-
- // Walk up the tree until we find an ancestor whose DOM node we have cached.
- var parents = [];
- while (!inst._hostNode) {
- parents.push(inst);
- !inst._hostParent ? invariant_1(false, 'React DOM tree root should always have a node reference.') : void 0;
- inst = inst._hostParent;
- }
-
- // Now parents contains each ancestor that does *not* have a cached native
- // node, and `inst` is the deepest ancestor that does.
- for (; parents.length; inst = parents.pop()) {
- precacheChildNodes(inst, inst._hostNode);
- }
-
- return inst._hostNode;
+ invariant_1(false, 'getNodeFromInstance: Invalid argument.');
}
function getFiberCurrentPropsFromNode(node) {
@@ -1056,9 +676,6 @@ var ReactDOMComponentTree = {
getClosestInstanceFromNode: getClosestInstanceFromNode,
getInstanceFromNode: getInstanceFromNode,
getNodeFromInstance: getNodeFromInstance,
- precacheChildNodes: precacheChildNodes,
- precacheNode: precacheNode,
- uncacheNode: uncacheNode,
precacheFiberNode: precacheFiberNode$1,
getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode,
updateFiberProps: updateFiberProps$1
@@ -1119,7 +736,6 @@ var ReactGlobalSharedState = {
{
index(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
});
}
@@ -1138,23 +754,14 @@ var ReactGlobalSharedState_1 = ReactGlobalSharedState;
*
*/
-function getComponentName(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -1240,7 +847,7 @@ var ReactTypeOfSideEffect = {
Err: 64, // 0b01000000
Ref: 128 };
-var ReactCurrentOwner = ReactGlobalSharedState_1.ReactCurrentOwner;
+var ReactCurrentOwner$1 = ReactGlobalSharedState_1.ReactCurrentOwner;
@@ -1296,7 +903,7 @@ var isFiberMounted = function (fiber) {
var isMounted = function (component) {
{
- var owner = ReactCurrentOwner.current;
+ var owner = ReactCurrentOwner$1.current;
if (owner !== null && owner.tag === ClassComponent) {
var ownerFiber = owner;
var instance = ownerFiber.stateNode;
@@ -1922,15 +1529,9 @@ function restoreStateOfTarget(target) {
// Unmounted
return;
}
- if (typeof internalInstance.tag === 'number') {
- !(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === 'function') ? invariant_1(false, 'Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(internalInstance.stateNode);
- fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props);
- return;
- }
- !(typeof internalInstance.restoreControlledState === 'function') ? invariant_1(false, 'The internal instance must be a React host component. This error is likely caused by a bug in React. Please file an issue.') : void 0;
- // If it is not a Fiber, we can just use dynamic dispatch.
- internalInstance.restoreControlledState();
+ !(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === 'function') ? invariant_1(false, 'Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(internalInstance.stateNode);
+ fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props);
}
var ReactControlledComponent = {
@@ -1967,30 +1568,22 @@ var ReactControlledComponent = {
var ReactControlledComponent_1 = ReactControlledComponent;
-// Used as a way to call batchedUpdates when we don't know if we're in a Fiber
-// or Stack context. Such as when we're dispatching events or if third party
+// Used as a way to call batchedUpdates when we don't have a reference to
+// the renderer. Such as when we're dispatching events or if third party
// libraries need to call batchedUpdates. Eventually, this API will go away when
// everything is batched by default. We'll then have a similar API to opt-out of
// scheduled work and instead do synchronous work.
// Defaults
-var stackBatchedUpdates = function (fn, a, b, c, d, e) {
- return fn(a, b, c, d, e);
-};
var fiberBatchedUpdates = function (fn, bookkeeping) {
return fn(bookkeeping);
};
-function performFiberBatchedUpdates(fn, bookkeeping) {
+function batchedUpdates(fn, bookkeeping) {
// If we have Fiber loaded, we need to wrap this in a batching call so that
// Fiber can apply its default priority for this call.
return fiberBatchedUpdates(fn, bookkeeping);
}
-function batchedUpdates(fn, bookkeeping) {
- // We first perform work with the stack batching strategy, by passing our
- // indirection to it.
- return stackBatchedUpdates(performFiberBatchedUpdates, fn, bookkeeping);
-}
var isNestingBatched = false;
function batchedUpdatesWithControlledComponents(fn, bookkeeping) {
@@ -2014,9 +1607,6 @@ function batchedUpdatesWithControlledComponents(fn, bookkeeping) {
}
var ReactGenericBatchingInjection = {
- injectStackBatchedUpdates: function (_batchedUpdates) {
- stackBatchedUpdates = _batchedUpdates;
- },
injectFiberBatchedUpdates: function (_batchedUpdates) {
fiberBatchedUpdates = _batchedUpdates;
}
@@ -2029,6 +1619,31 @@ var ReactGenericBatching = {
var ReactGenericBatching_1 = ReactGenericBatching;
+/**
+ * Copyright 2013-present, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ * @providesModule HTMLNodeType
+ */
+
+/**
+ * HTML nodeType values that represent the type of the node
+ */
+
+var HTMLNodeType = {
+ ELEMENT_NODE: 1,
+ TEXT_NODE: 3,
+ COMMENT_NODE: 8,
+ DOCUMENT_NODE: 9,
+ DOCUMENT_FRAGMENT_NODE: 11
+};
+
+var HTMLNodeType_1 = HTMLNodeType;
+
var TEXT_NODE$1 = HTMLNodeType_1.TEXT_NODE;
/**
@@ -2070,22 +1685,14 @@ function findRootContainerNode(inst) {
// TODO: It may be a good idea to cache this to prevent unnecessary DOM
// traversal, but caching is difficult to do correctly without using a
// mutation observer to listen for all DOM changes.
- if (typeof inst.tag === 'number') {
- while (inst['return']) {
- inst = inst['return'];
- }
- if (inst.tag !== HostRoot) {
- // This can happen if we're in a detached tree.
- return null;
- }
- return inst.stateNode.containerInfo;
- } else {
- while (inst._hostParent) {
- inst = inst._hostParent;
- }
- var rootNode = ReactDOMComponentTree_1.getNodeFromInstance(inst);
- return rootNode.parentNode;
+ while (inst['return']) {
+ inst = inst['return'];
+ }
+ if (inst.tag !== HostRoot) {
+ // This can happen if we're in a detached tree.
+ return null;
}
+ return inst.stateNode.containerInfo;
}
// Used to store ancestor hierarchy in top level callback
@@ -2394,38 +2001,20 @@ var EventPluginHub = {
// TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
// live here; needs to be moved to a better place soon
- if (typeof inst.tag === 'number') {
- var stateNode = inst.stateNode;
- if (!stateNode) {
- // Work in progress (ex: onload events in incremental mode).
- return null;
- }
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
- if (!props) {
- // Work in progress.
- return null;
- }
- listener = props[registrationName];
- if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
- return null;
- }
- } else {
- var currentElement = inst._currentElement;
- if (typeof currentElement === 'string' || typeof currentElement === 'number') {
- // Text node, let it bubble through.
- return null;
- }
- if (!inst._rootNodeID) {
- // If the instance is already unmounted, we have no listeners.
- return null;
- }
- var _props = currentElement.props;
- listener = _props[registrationName];
- if (shouldPreventMouseEvent(registrationName, currentElement.type, _props)) {
- return null;
- }
+ var stateNode = inst.stateNode;
+ if (!stateNode) {
+ // Work in progress (ex: onload events in incremental mode).
+ return null;
+ }
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
+ if (!props) {
+ // Work in progress.
+ return null;
+ }
+ listener = props[registrationName];
+ if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
+ return null;
}
-
invariant_1(!listener || typeof listener === 'function', 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
return listener;
},
@@ -2940,8 +2529,7 @@ var ReactFeatureFlags_1 = ReactFeatureFlags;
*/
var ReactDOMFeatureFlags = {
- fiberAsyncScheduling: false,
- useFiber: true
+ fiberAsyncScheduling: false
};
var ReactDOMFeatureFlags_1 = ReactDOMFeatureFlags;
@@ -3310,10 +2898,10 @@ var ReactFiberComponentTreeHook = {
var ReactDebugCurrentFrame = ReactGlobalSharedState_1.ReactDebugCurrentFrame;
{
- var getComponentName$3 = getComponentName_1;
+ var getComponentName$2 = getComponentName_1;
- var _require2$2 = ReactFiberComponentTreeHook,
- getStackAddendumByWorkInProgressFiber = _require2$2.getStackAddendumByWorkInProgressFiber;
+ var _require2$1 = ReactFiberComponentTreeHook,
+ getStackAddendumByWorkInProgressFiber = _require2$1.getStackAddendumByWorkInProgressFiber;
}
function getCurrentFiberOwnerName$2() {
@@ -3323,7 +2911,7 @@ function getCurrentFiberOwnerName$2() {
return null;
}
if (fiber._debugOwner != null) {
- return getComponentName$3(fiber._debugOwner);
+ return getComponentName$2(fiber._debugOwner);
}
}
return null;
@@ -3369,7 +2957,6 @@ var warnValidStyle$1 = emptyFunction_1;
{
var camelizeStyleName = camelizeStyleName_1;
- var getComponentName$2 = getComponentName_1;
var warning$5 = warning_1;
var _require$3 = ReactDebugCurrentFiber_1,
@@ -3388,62 +2975,57 @@ var warnValidStyle$1 = emptyFunction_1;
var warnedForNaNValue = false;
var warnedForInfinityValue = false;
- var warnHyphenatedStyleName = function (name, owner) {
+ var warnHyphenatedStyleName = function (name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
- warning$5(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage(owner));
+ warning$5(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage());
};
- var warnBadVendoredStyleName = function (name, owner) {
+ var warnBadVendoredStyleName = function (name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
- warning$5(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner));
+ warning$5(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage());
};
- var warnStyleValueWithSemicolon = function (name, value, owner) {
+ var warnStyleValueWithSemicolon = function (name, value) {
if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
return;
}
warnedStyleValues[value] = true;
- warning$5(false, "Style property values shouldn't contain a semicolon.%s " + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, ''));
+ warning$5(false, "Style property values shouldn't contain a semicolon.%s " + 'Try "%s: %s" instead.', checkRenderMessage(), name, value.replace(badStyleValueWithSemicolonPattern, ''));
};
- var warnStyleValueIsNaN = function (name, value, owner) {
+ var warnStyleValueIsNaN = function (name, value) {
if (warnedForNaNValue) {
return;
}
warnedForNaNValue = true;
- warning$5(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner));
+ warning$5(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage());
};
- var warnStyleValueIsInfinity = function (name, value, owner) {
+ var warnStyleValueIsInfinity = function (name, value) {
if (warnedForInfinityValue) {
return;
}
warnedForInfinityValue = true;
- warning$5(false, '`Infinity` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner));
+ warning$5(false, '`Infinity` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage());
};
- var checkRenderMessage = function (owner) {
+ var checkRenderMessage = function () {
var ownerName;
- if (owner != null) {
- // Stack passes the owner manually all the way to CSSPropertyOperations.
- ownerName = getComponentName$2(owner);
- } else {
- // Fiber doesn't pass it but uses ReactDebugCurrentFiber to track it.
- // It is only enabled in development and tracks host components too.
- ownerName = getCurrentFiberOwnerName$1();
- // TODO: also report the stack.
- }
+ // Fiber doesn't pass it but uses ReactDebugCurrentFiber to track it.
+ // It is only enabled in development and tracks host components too.
+ ownerName = getCurrentFiberOwnerName$1();
+ // TODO: also report the stack.
if (ownerName) {
return '\n\nCheck the render method of `' + ownerName + '`.';
}
@@ -3451,24 +3033,19 @@ var warnValidStyle$1 = emptyFunction_1;
};
warnValidStyle$1 = function (name, value, component) {
- var owner;
- if (component) {
- // TODO: this only works with Stack. Seems like we need to add unit tests?
- owner = component._currentElement._owner;
- }
if (name.indexOf('-') > -1) {
- warnHyphenatedStyleName(name, owner);
+ warnHyphenatedStyleName(name);
} else if (badVendoredStyleNamePattern.test(name)) {
- warnBadVendoredStyleName(name, owner);
+ warnBadVendoredStyleName(name);
} else if (badStyleValueWithSemicolonPattern.test(value)) {
- warnStyleValueWithSemicolon(name, value, owner);
+ warnStyleValueWithSemicolon(name, value);
}
if (typeof value === 'number') {
if (isNaN(value)) {
- warnStyleValueIsNaN(name, value, owner);
+ warnStyleValueIsNaN(name, value);
} else if (!isFinite(value)) {
- warnStyleValueIsInfinity(name, value, owner);
+ warnStyleValueIsInfinity(name, value);
}
}
};
@@ -3569,468 +3146,222 @@ var CSSPropertyOperations = {
var CSSPropertyOperations_1 = CSSPropertyOperations;
-var ReactInvalidSetStateWarningHook = {};
+// These attributes should be all lowercase to allow for
+// case insensitive checks
+var RESERVED_PROPS = {
+ children: true,
+ dangerouslysetinnerhtml: true,
+ autofocus: true,
+ defaultvalue: true,
+ defaultchecked: true,
+ innerhtml: true,
+ suppresscontenteditablewarning: true,
+ onfocusin: true,
+ onfocusout: true,
+ style: true
+};
-{
- var warning$8 = warning_1;
- var processingChildContext = false;
+function checkMask(value, bitmask) {
+ return (value & bitmask) === bitmask;
+}
- var warnInvalidSetState = function () {
- warning$8(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()');
- };
+var DOMPropertyInjection = {
+ /**
+ * Mapping from normalized, camelcased property names to a configuration that
+ * specifies how the associated DOM property should be accessed or rendered.
+ */
+ MUST_USE_PROPERTY: 0x1,
+ HAS_BOOLEAN_VALUE: 0x4,
+ HAS_NUMERIC_VALUE: 0x8,
+ HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,
+ HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,
- ReactInvalidSetStateWarningHook = {
- onBeginProcessingChildContext: function () {
- processingChildContext = true;
- },
- onEndProcessingChildContext: function () {
- processingChildContext = false;
- },
- onSetState: function () {
- warnInvalidSetState();
- }
- };
-}
+ /**
+ * Inject some specialized knowledge about the DOM. This takes a config object
+ * with the following properties:
+ *
+ * Properties: object mapping DOM property name to one of the
+ * DOMPropertyInjection constants or null. If your attribute isn't in here,
+ * it won't get written to the DOM.
+ *
+ * DOMAttributeNames: object mapping React attribute name to the DOM
+ * attribute name. Attribute names not specified use the **lowercase**
+ * normalized name.
+ *
+ * DOMAttributeNamespaces: object mapping React attribute name to the DOM
+ * attribute namespace URL. (Attribute names not specified use no namespace.)
+ *
+ * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
+ * Property names not specified use the normalized name.
+ *
+ * DOMMutationMethods: Properties that require special mutation methods. If
+ * `value` is undefined, the mutation method should unset the property.
+ *
+ * @param {object} domPropertyConfig the config as described above.
+ */
+ injectDOMPropertyConfig: function (domPropertyConfig) {
+ var Injection = DOMPropertyInjection;
+ var Properties = domPropertyConfig.Properties || {};
+ var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};
+ var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};
+ var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
-var ReactInvalidSetStateWarningHook_1 = ReactInvalidSetStateWarningHook;
+ for (var propName in Properties) {
+ !!DOMProperty.properties.hasOwnProperty(propName) ? invariant_1(false, 'injectDOMPropertyConfig(...): You\'re trying to inject DOM property \'%s\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : void 0;
-/**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactHostOperationHistoryHook
- *
- */
+ var lowerCased = propName.toLowerCase();
+ var propConfig = Properties[propName];
-// Trust the developer to only use this with a true check
-var ReactHostOperationHistoryHook = null;
+ var propertyInfo = {
+ attributeName: lowerCased,
+ attributeNamespace: null,
+ propertyName: propName,
+ mutationMethod: null,
-{
- var history = [];
+ mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
+ hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
+ hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
+ hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
+ hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
+ };
+ !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? invariant_1(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : void 0;
- ReactHostOperationHistoryHook = {
- onHostOperation: function (operation) {
- history.push(operation);
- },
- clearHistory: function () {
- if (ReactHostOperationHistoryHook._preventClearing) {
- // Should only be used for tests.
- return;
- }
+ if (DOMAttributeNames.hasOwnProperty(propName)) {
+ var attributeName = DOMAttributeNames[propName];
- history = [];
- },
- getHistory: function () {
- return history;
- }
- };
-}
+ propertyInfo.attributeName = attributeName;
+ }
-var ReactHostOperationHistoryHook_1 = ReactHostOperationHistoryHook;
+ if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
+ propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];
+ }
-var performance$1;
+ if (DOMMutationMethods.hasOwnProperty(propName)) {
+ propertyInfo.mutationMethod = DOMMutationMethods[propName];
+ }
-if (ExecutionEnvironment_1.canUseDOM) {
- performance$1 = window.performance || window.msPerformance || window.webkitPerformance;
-}
+ // Downcase references to whitelist properties to check for membership
+ // without case-sensitivity. This allows the whitelist to pick up
+ // `allowfullscreen`, which should be written using the property configuration
+ // for `allowFullscreen`
+ DOMProperty.properties[propName] = propertyInfo;
+ }
+ }
+};
-var performance_1 = performance$1 || {};
+/* eslint-disable max-len */
+var 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';
+/* eslint-enable max-len */
/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
+ * DOMProperty exports lookup objects that can be used like functions:
*
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
+ * > DOMProperty.isValid['id']
+ * true
+ * > DOMProperty.isValid['foobar']
+ * undefined
*
- * @typechecks
- */
-
-
-
-var performanceNow;
-
-/**
- * Detect if we can use `window.performance.now()` and gracefully fallback to
- * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now
- * because of Facebook's testing infrastructure.
+ * Although this may be confusing, it performs better in general.
+ *
+ * @see http://jsperf.com/key-exists
+ * @see http://jsperf.com/key-missing
*/
-if (performance_1.now) {
- performanceNow = function performanceNow() {
- return performance_1.now();
- };
-} else {
- performanceNow = function performanceNow() {
- return Date.now();
- };
-}
-
-var performanceNow_1 = performanceNow;
-
-var ReactComponentTreeHook = ReactGlobalSharedState_1.ReactComponentTreeHook;
-
-
-
-{
- var warning$7 = warning_1;
-}
-
-// Trust the developer to only use this with a true check
-var ReactDebugTool$1 = null;
-
-{
- var hooks = [];
- var didHookThrowForEvent = {};
-
- var callHook = function (event, fn, context, arg1, arg2, arg3, arg4, arg5) {
- try {
- fn.call(context, arg1, arg2, arg3, arg4, arg5);
- } catch (e) {
- warning$7(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\n' + e.stack);
- didHookThrowForEvent[event] = true;
- }
- };
-
- var emitEvent = function (event, arg1, arg2, arg3, arg4, arg5) {
- for (var i = 0; i < hooks.length; i++) {
- var hook = hooks[i];
- var fn = hook[event];
- if (fn) {
- callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);
- }
- }
- };
-
- var isProfiling = false;
- var flushHistory = [];
- var lifeCycleTimerStack = [];
- var currentFlushNesting = 0;
- var currentFlushMeasurements = [];
- var currentFlushStartTime = 0;
- var currentTimerDebugID = null;
- var currentTimerStartTime = 0;
- var currentTimerNestedFlushDuration = 0;
- var currentTimerType = null;
-
- var lifeCycleTimerHasWarned = false;
-
- var clearHistory = function () {
- ReactComponentTreeHook.purgeUnmountedComponents();
- ReactHostOperationHistoryHook_1.clearHistory();
- };
-
- var getTreeSnapshot = function (registeredIDs) {
- return registeredIDs.reduce(function (tree, id) {
- var ownerID = ReactComponentTreeHook.getOwnerID(id);
- var parentID = ReactComponentTreeHook.getParentID(id);
- tree[id] = {
- displayName: ReactComponentTreeHook.getDisplayName(id),
- text: ReactComponentTreeHook.getText(id),
- updateCount: ReactComponentTreeHook.getUpdateCount(id),
- childIDs: ReactComponentTreeHook.getChildIDs(id),
- // Text nodes don't have owners but this is close enough.
- ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0,
- parentID: parentID
- };
- return tree;
- }, {});
- };
-
- var resetMeasurements = function () {
- var previousStartTime = currentFlushStartTime;
- var previousMeasurements = currentFlushMeasurements;
- var previousOperations = ReactHostOperationHistoryHook_1.getHistory();
-
- if (currentFlushNesting === 0) {
- currentFlushStartTime = 0;
- currentFlushMeasurements = [];
- clearHistory();
- return;
- }
-
- if (previousMeasurements.length || previousOperations.length) {
- var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();
- flushHistory.push({
- duration: performanceNow_1() - previousStartTime,
- measurements: previousMeasurements || [],
- operations: previousOperations || [],
- treeSnapshot: getTreeSnapshot(registeredIDs)
- });
- }
-
- clearHistory();
- currentFlushStartTime = performanceNow_1();
- currentFlushMeasurements = [];
- };
-
- var checkDebugID = function (debugID) {
- var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
-
- if (allowRoot && debugID === 0) {
- return;
- }
- if (!debugID) {
- warning$7(false, 'ReactDebugTool: debugID may not be empty.');
- }
- };
-
- var beginLifeCycleTimer = function (debugID, timerType) {
- if (currentFlushNesting === 0) {
- return;
- }
- if (currentTimerType && !lifeCycleTimerHasWarned) {
- warning$7(false, 'There is an internal error in the React performance measurement code.' + '\n\nDid not expect %s timer to start while %s timer is still in ' + 'progress for %s instance.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another');
- lifeCycleTimerHasWarned = true;
- }
- currentTimerStartTime = performanceNow_1();
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = debugID;
- currentTimerType = timerType;
- };
-
- var endLifeCycleTimer = function (debugID, timerType) {
- if (currentFlushNesting === 0) {
- return;
- }
- if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) {
- warning$7(false, 'There is an internal error in the React performance measurement code. ' + 'We did not expect %s timer to stop while %s timer is still in ' + 'progress for %s instance. Please report this as a bug in React.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another');
- lifeCycleTimerHasWarned = true;
- }
- if (isProfiling) {
- currentFlushMeasurements.push({
- timerType: timerType,
- instanceID: debugID,
- duration: performanceNow_1() - currentTimerStartTime - currentTimerNestedFlushDuration
- });
- }
- currentTimerStartTime = 0;
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = null;
- currentTimerType = null;
- };
-
- var pauseCurrentLifeCycleTimer = function () {
- var currentTimer = {
- startTime: currentTimerStartTime,
- nestedFlushStartTime: performanceNow_1(),
- debugID: currentTimerDebugID,
- timerType: currentTimerType
- };
- lifeCycleTimerStack.push(currentTimer);
- currentTimerStartTime = 0;
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = null;
- currentTimerType = null;
- };
+var DOMProperty = {
+ ID_ATTRIBUTE_NAME: 'data-reactid',
+ ROOT_ATTRIBUTE_NAME: 'data-reactroot',
- var resumeCurrentLifeCycleTimer = function () {
- var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(),
- startTime = _lifeCycleTimerStack$.startTime,
- nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime,
- debugID = _lifeCycleTimerStack$.debugID,
- timerType = _lifeCycleTimerStack$.timerType;
-
- var nestedFlushDuration = performanceNow_1() - nestedFlushStartTime;
- currentTimerStartTime = startTime;
- currentTimerNestedFlushDuration += nestedFlushDuration;
- currentTimerDebugID = debugID;
- currentTimerType = timerType;
- };
+ ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
+ ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040',
- var lastMarkTimeStamp = 0;
- var canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
+ /**
+ * Map from property "standard name" to an object with info about how to set
+ * the property in the DOM. Each object contains:
+ *
+ * attributeName:
+ * Used when rendering markup or with `*Attribute()`.
+ * attributeNamespace
+ * propertyName:
+ * Used on DOM node instances. (This includes properties that mutate due to
+ * external factors.)
+ * mutationMethod:
+ * If non-null, used instead of the property or `setAttribute()` after
+ * initial render.
+ * mustUseProperty:
+ * Whether the property must be accessed and mutated as an object property.
+ * hasBooleanValue:
+ * Whether the property should be removed when set to a falsey value.
+ * hasNumericValue:
+ * Whether the property must be numeric or parse as a numeric and should be
+ * removed when set to a falsey value.
+ * hasPositiveNumericValue:
+ * Whether the property must be positive numeric or parse as a positive
+ * numeric and should be removed when set to a falsey value.
+ * hasOverloadedBooleanValue:
+ * Whether the property can be used as a flag as well as with a value.
+ * Removed when strictly equal to false; present without a value when
+ * strictly equal to true; present with a value otherwise.
+ */
+ properties: {},
- var shouldMark = function (debugID) {
- if (!isProfiling || !canUsePerformanceMeasure) {
- return false;
- }
- var element = ReactComponentTreeHook.getElement(debugID);
- if (element == null || typeof element !== 'object') {
- return false;
- }
- var isHostElement = typeof element.type === 'string';
- if (isHostElement) {
+ /**
+ * Checks whether a property name is a writeable attribute.
+ * @method
+ */
+ shouldSetAttribute: function (name, value) {
+ if (DOMProperty.isReservedProp(name)) {
return false;
}
- return true;
- };
-
- var markBegin = function (debugID, markType) {
- if (!shouldMark(debugID)) {
- return;
- }
- var markName = debugID + '::' + markType;
- lastMarkTimeStamp = performanceNow_1();
- performance.mark(markName);
- };
-
- var markEnd = function (debugID, markType) {
- if (!shouldMark(debugID)) {
- return;
+ if (value === null) {
+ return true;
}
- var markName = debugID + '::' + markType;
- var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown';
-
- // Chrome has an issue of dropping markers recorded too fast:
- // https://bugs.chromium.org/p/chromium/issues/detail?id=640652
- // To work around this, we will not report very small measurements.
- // I determined the magic number by tweaking it back and forth.
- // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe.
- // When the bug is fixed, we can `measure()` unconditionally if we want to.
- var timeStamp = performanceNow_1();
- if (timeStamp - lastMarkTimeStamp > 0.1) {
- var measurementName = displayName + ' [' + markType + ']';
- performance.measure(measurementName, markName);
- }
+ var lowerCased = name.toLowerCase();
- performance.clearMarks(markName);
- if (measurementName) {
- performance.clearMeasures(measurementName);
- }
- };
+ var propertyInfo = DOMProperty.properties[name];
- ReactDebugTool$1 = {
- addHook: function (hook) {
- hooks.push(hook);
- },
- removeHook: function (hook) {
- for (var i = 0; i < hooks.length; i++) {
- if (hooks[i] === hook) {
- hooks.splice(i, 1);
- i--;
+ switch (typeof value) {
+ case 'boolean':
+ if (propertyInfo) {
+ return true;
}
- }
- },
- isProfiling: function () {
- return isProfiling;
- },
- beginProfiling: function () {
- if (isProfiling) {
- return;
- }
-
- isProfiling = true;
- flushHistory.length = 0;
- resetMeasurements();
- ReactDebugTool$1.addHook(ReactHostOperationHistoryHook_1);
- },
- endProfiling: function () {
- if (!isProfiling) {
- return;
- }
-
- isProfiling = false;
- resetMeasurements();
- ReactDebugTool$1.removeHook(ReactHostOperationHistoryHook_1);
- },
- getFlushHistory: function () {
- return flushHistory;
- },
- onBeginFlush: function () {
- currentFlushNesting++;
- resetMeasurements();
- pauseCurrentLifeCycleTimer();
- emitEvent('onBeginFlush');
- },
- onEndFlush: function () {
- resetMeasurements();
- currentFlushNesting--;
- resumeCurrentLifeCycleTimer();
- emitEvent('onEndFlush');
- },
- onBeginLifeCycleTimer: function (debugID, timerType) {
- checkDebugID(debugID);
- emitEvent('onBeginLifeCycleTimer', debugID, timerType);
- markBegin(debugID, timerType);
- beginLifeCycleTimer(debugID, timerType);
- },
- onEndLifeCycleTimer: function (debugID, timerType) {
- checkDebugID(debugID);
- endLifeCycleTimer(debugID, timerType);
- markEnd(debugID, timerType);
- emitEvent('onEndLifeCycleTimer', debugID, timerType);
- },
- onBeginProcessingChildContext: function () {
- emitEvent('onBeginProcessingChildContext');
- },
- onEndProcessingChildContext: function () {
- emitEvent('onEndProcessingChildContext');
- },
- onHostOperation: function (operation) {
- checkDebugID(operation.instanceID);
- emitEvent('onHostOperation', operation);
- },
- onSetState: function () {
- emitEvent('onSetState');
- },
- onSetChildren: function (debugID, childDebugIDs) {
- checkDebugID(debugID);
- childDebugIDs.forEach(checkDebugID);
- emitEvent('onSetChildren', debugID, childDebugIDs);
- },
- onBeforeMountComponent: function (debugID, element, parentDebugID) {
- checkDebugID(debugID);
- checkDebugID(parentDebugID, true);
- emitEvent('onBeforeMountComponent', debugID, element, parentDebugID);
- markBegin(debugID, 'mount');
- },
- onMountComponent: function (debugID) {
- checkDebugID(debugID);
- markEnd(debugID, 'mount');
- emitEvent('onMountComponent', debugID);
- },
- onBeforeUpdateComponent: function (debugID, element) {
- checkDebugID(debugID);
- emitEvent('onBeforeUpdateComponent', debugID, element);
- markBegin(debugID, 'update');
- },
- onUpdateComponent: function (debugID) {
- checkDebugID(debugID);
- markEnd(debugID, 'update');
- emitEvent('onUpdateComponent', debugID);
- },
- onBeforeUnmountComponent: function (debugID) {
- checkDebugID(debugID);
- emitEvent('onBeforeUnmountComponent', debugID);
- markBegin(debugID, 'unmount');
- },
- onUnmountComponent: function (debugID) {
- checkDebugID(debugID);
- markEnd(debugID, 'unmount');
- emitEvent('onUnmountComponent', debugID);
- },
- onTestEvent: function () {
- emitEvent('onTestEvent');
+ var prefix = lowerCased.slice(0, 5);
+ return prefix === 'data-' || prefix === 'aria-';
+ case 'undefined':
+ case 'number':
+ case 'string':
+ return true;
+ case 'object':
+ return true;
+ default:
+ // function, symbol
+ return false;
}
- };
+ },
- ReactDebugTool$1.addHook(ReactInvalidSetStateWarningHook_1);
- ReactDebugTool$1.addHook(ReactComponentTreeHook);
- var url = ExecutionEnvironment_1.canUseDOM && window.location.href || '';
- if (/[?&]react_perf\b/.test(url)) {
- ReactDebugTool$1.beginProfiling();
- }
-}
+ getPropertyInfo: function (name) {
+ return DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
+ },
-var ReactDebugTool_1 = ReactDebugTool$1;
-// Trust the developer to only use ReactInstrumentation with a true check
+ /**
+ * Checks to see if a property name is within the list of properties
+ * reserved for internal React operations. These properties should
+ * not be set on an HTML element.
+ *
+ * @private
+ * @param {string} name
+ * @return {boolean} If the name is within reserved props
+ */
+ isReservedProp: function (name) {
+ return RESERVED_PROPS.hasOwnProperty(name.toLowerCase());
+ },
-var debugTool = null;
-{
- var ReactDebugTool = ReactDebugTool_1;
- debugTool = ReactDebugTool;
-}
+ injection: DOMPropertyInjection
+};
-var ReactInstrumentation = { debugTool: debugTool };
+var DOMProperty_1 = DOMProperty;
{
var warning$6 = warning_1;
@@ -4201,11 +3532,6 @@ var DOMPropertyOperations = {
{
var payload = {};
payload[name] = value;
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree_1.getInstanceFromNode(node)._debugID,
- type: 'update attribute',
- payload: payload
- });
}
},
@@ -4222,11 +3548,6 @@ var DOMPropertyOperations = {
{
var payload = {};
payload[name] = value;
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree_1.getInstanceFromNode(node)._debugID,
- type: 'update attribute',
- payload: payload
- });
}
},
@@ -4238,13 +3559,6 @@ var DOMPropertyOperations = {
*/
deleteValueForAttribute: function (node, name) {
node.removeAttribute(name);
- {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree_1.getInstanceFromNode(node)._debugID,
- type: 'remove attribute',
- payload: name
- });
- }
},
/**
@@ -4272,14 +3586,6 @@ var DOMPropertyOperations = {
} else {
node.removeAttribute(name);
}
-
- {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree_1.getInstanceFromNode(node)._debugID,
- type: 'remove attribute',
- payload: name
- });
- }
}
};
@@ -4304,7 +3610,7 @@ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
{
var invariant$2 = invariant_1;
- var warning$11 = warning_1;
+ var warning$9 = warning_1;
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
var loggedTypeFailures$1 = {};
}
@@ -4336,7 +3642,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
} catch (ex) {
error = ex;
}
- warning$11(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
+ warning$9(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
// Only monitor this failure once because there tends to be a lot of the
// same error.
@@ -4344,7 +3650,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
var stack = getStack ? getStack() : '';
- warning$11(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
+ warning$9(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
}
}
}
@@ -4848,7 +4154,7 @@ var ReactControlledValuePropTypes = {
};
{
- var warning$10 = warning_1;
+ var warning$8 = warning_1;
var emptyFunction$2 = emptyFunction_1;
var PropTypes = index$2;
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
@@ -4896,7 +4202,7 @@ var ReactControlledValuePropTypes = {
// same error.
loggedTypeFailures[error.message] = true;
- warning$10(false, 'Failed form propType: %s%s', error.message, getStack());
+ warning$8(false, 'Failed form propType: %s%s', error.message, getStack());
}
}
};
@@ -4907,10 +4213,10 @@ var ReactControlledValuePropTypes_1 = ReactControlledValuePropTypes;
var getCurrentFiberOwnerName$3 = ReactDebugCurrentFiber_1.getCurrentFiberOwnerName;
{
- var _require2$3 = ReactDebugCurrentFiber_1,
- getCurrentFiberStackAddendum$2 = _require2$3.getCurrentFiberStackAddendum;
+ var _require2$2 = ReactDebugCurrentFiber_1,
+ getCurrentFiberStackAddendum$2 = _require2$2.getCurrentFiberStackAddendum;
- var warning$9 = warning_1;
+ var warning$7 = warning_1;
}
@@ -4973,11 +4279,11 @@ var ReactDOMInput = {
ReactControlledValuePropTypes_1.checkPropTypes('input', props, getCurrentFiberStackAddendum$2);
if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
- warning$9(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerName$3() || 'A component', props.type);
+ warning$7(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerName$3() || 'A component', props.type);
didWarnCheckedDefaultChecked = true;
}
if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
- warning$9(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerName$3() || 'A component', props.type);
+ warning$7(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerName$3() || 'A component', props.type);
didWarnValueDefaultValue = true;
}
}
@@ -4997,11 +4303,11 @@ var ReactDOMInput = {
var controlled = isControlled(props);
if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
- warning$9(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s', props.type, getCurrentFiberStackAddendum$2());
+ warning$7(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s', props.type, getCurrentFiberStackAddendum$2());
didWarnUncontrolledToControlled = true;
}
if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
- warning$9(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s', props.type, getCurrentFiberStackAddendum$2());
+ warning$7(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s', props.type, getCurrentFiberStackAddendum$2());
didWarnControlledToUncontrolled = true;
}
}
@@ -5147,7 +4453,7 @@ function updateNamedCousins(rootNode, props) {
var ReactDOMFiberInput = ReactDOMInput;
{
- var warning$12 = warning_1;
+ var warning$10 = warning_1;
}
function flattenChildren(children) {
@@ -5176,7 +4482,7 @@ var ReactDOMOption = {
validateProps: function (element, props) {
// TODO (yungsters): Remove support for `selected` in <option>.
{
- warning$12(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
+ warning$10(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
}
},
@@ -5206,10 +4512,10 @@ var getCurrentFiberOwnerName$4 = ReactDebugCurrentFiber_1.getCurrentFiberOwnerNa
{
var didWarnValueDefaultValue$1 = false;
- var warning$13 = warning_1;
+ var warning$11 = warning_1;
- var _require2$4 = ReactDebugCurrentFiber_1,
- getCurrentFiberStackAddendum$3 = _require2$4.getCurrentFiberStackAddendum;
+ var _require2$3 = ReactDebugCurrentFiber_1,
+ getCurrentFiberStackAddendum$3 = _require2$3.getCurrentFiberStackAddendum;
}
function getDeclarationErrorAddendum() {
@@ -5235,9 +4541,9 @@ function checkSelectPropTypes(props) {
}
var isArray = Array.isArray(props[propName]);
if (props.multiple && !isArray) {
- warning$13(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
+ warning$11(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
} else if (!props.multiple && isArray) {
- warning$13(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
+ warning$11(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
}
}
}
@@ -5310,7 +4616,7 @@ var ReactDOMSelect = {
{
if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
- warning$13(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
+ warning$11(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
didWarnValueDefaultValue$1 = true;
}
}
@@ -5363,7 +4669,7 @@ var ReactDOMSelect = {
var ReactDOMFiberSelect = ReactDOMSelect;
{
- var warning$14 = warning_1;
+ var warning$12 = warning_1;
var _require$4 = ReactDebugCurrentFiber_1,
getCurrentFiberStackAddendum$4 = _require$4.getCurrentFiberStackAddendum;
@@ -5410,7 +4716,7 @@ var ReactDOMTextarea = {
{
ReactControlledValuePropTypes_1.checkPropTypes('textarea', props, getCurrentFiberStackAddendum$4);
if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
- warning$14(false, 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
+ warning$12(false, 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
didWarnValDefaultVal = true;
}
}
@@ -5425,7 +4731,7 @@ var ReactDOMTextarea = {
var children = props.children;
if (children != null) {
{
- warning$14(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
+ warning$12(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
}
!(defaultValue == null) ? invariant_1(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : void 0;
if (Array.isArray(children)) {
@@ -5534,7 +4840,7 @@ var voidElementTags = index({
var voidElementTags_1 = voidElementTags;
{
- var warning$15 = warning_1;
+ var warning$13 = warning_1;
}
var HTML$1 = '__html';
@@ -5563,7 +4869,7 @@ function assertValidProps(tag, props, getCurrentOwnerName) {
!(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML) ? invariant_1(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0;
}
{
- warning$15(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
+ warning$13(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
}
!(props.style == null || typeof props.style === 'object') ? invariant_1(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', getDeclarationErrorAddendum$1(getCurrentOwnerName)) : void 0;
}
@@ -6007,30 +5313,20 @@ var rARIA = new RegExp('^(aria)-[' + DOMProperty_1.ATTRIBUTE_NAME_CHAR + ']*$');
var rARIACamel = new RegExp('^(aria)[A-Z][' + DOMProperty_1.ATTRIBUTE_NAME_CHAR + ']*$');
{
- var warning$16 = warning_1;
+ var warning$14 = warning_1;
var _require$5 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$1 = _require$5.ReactComponentTreeHook,
ReactDebugCurrentFrame$1 = _require$5.ReactDebugCurrentFrame;
- var getStackAddendumByID = ReactComponentTreeHook$1.getStackAddendumByID;
-
-
var validAriaProperties = validAriaProperties$1;
}
-function getStackAddendum(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$1.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum() {
+ var stack = ReactDebugCurrentFrame$1.getStackAddendum();
+ return stack != null ? stack : '';
}
-function validateProperty(tagName, name, debugID) {
+function validateProperty(tagName, name) {
if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
return true;
}
@@ -6042,13 +5338,13 @@ function validateProperty(tagName, name, debugID) {
// If this is an aria-* attribute, but is not listed in the known DOM
// DOM properties, then it is an invalid aria-* attribute.
if (correctName == null) {
- warning$16(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s', name, getStackAddendum(debugID));
+ warning$14(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s', name, getStackAddendum());
warnedProperties[name] = true;
return true;
}
// aria-* attributes should be lowercase; suggest the lowercase version.
if (name !== correctName) {
- warning$16(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?%s', name, correctName, getStackAddendum(debugID));
+ warning$14(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?%s', name, correctName, getStackAddendum());
warnedProperties[name] = true;
return true;
}
@@ -6066,7 +5362,7 @@ function validateProperty(tagName, name, debugID) {
}
// aria-* attributes should be lowercase; suggest the lowercase version.
if (name !== standardName) {
- warning$16(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum(debugID));
+ warning$14(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum());
warnedProperties[name] = true;
return true;
}
@@ -6075,11 +5371,11 @@ function validateProperty(tagName, name, debugID) {
return true;
}
-function warnInvalidARIAProps(type, props, debugID) {
+function warnInvalidARIAProps(type, props) {
var invalidProps = [];
for (var key in props) {
- var isValid = validateProperty(type, key, debugID);
+ var isValid = validateProperty(type, key);
if (!isValid) {
invalidProps.push(key);
}
@@ -6090,85 +5386,52 @@ function warnInvalidARIAProps(type, props, debugID) {
}).join(', ');
if (invalidProps.length === 1) {
- warning$16(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum(debugID));
+ warning$14(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum());
} else if (invalidProps.length > 1) {
- warning$16(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum(debugID));
+ warning$14(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum());
}
}
-function validateProperties(type, props, debugID /* Stack only */) {
+function validateProperties(type, props) {
if (type.indexOf('-') >= 0 || props.is) {
return;
}
- warnInvalidARIAProps(type, props, debugID);
+ warnInvalidARIAProps(type, props);
}
var ReactDOMInvalidARIAHook$1 = {
- // Fiber
- validateProperties: validateProperties,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties
};
var ReactDOMInvalidARIAHook_1 = ReactDOMInvalidARIAHook$1;
{
- var warning$17 = warning_1;
+ var warning$15 = warning_1;
var _require$6 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$2 = _require$6.ReactComponentTreeHook,
ReactDebugCurrentFrame$2 = _require$6.ReactDebugCurrentFrame;
-
- var getStackAddendumByID$1 = ReactComponentTreeHook$2.getStackAddendumByID;
}
var didWarnValueNull = false;
-function getStackAddendum$1(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID$1(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$2.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$1() {
+ var stack = ReactDebugCurrentFrame$2.getStackAddendum();
+ return stack != null ? stack : '';
}
-function validateProperties$1(type, props, debugID /* Stack only */) {
+function validateProperties$1(type, props) {
if (type !== 'input' && type !== 'textarea' && type !== 'select') {
return;
}
if (props != null && props.value === null && !didWarnValueNull) {
- warning$17(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', type, getStackAddendum$1(debugID));
+ warning$15(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', type, getStackAddendum$1());
didWarnValueNull = true;
}
}
var ReactDOMNullInputValuePropHook$1 = {
- // Fiber
- validateProperties: validateProperties$1,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$1(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$1(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties$1
};
var ReactDOMNullInputValuePropHook_1 = ReactDOMNullInputValuePropHook$1;
@@ -6675,24 +5938,15 @@ var possibleStandardNames$1 = {
var possibleStandardNames_1 = possibleStandardNames$1;
{
- var warning$18 = warning_1;
+ var warning$16 = warning_1;
var _require$7 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$3 = _require$7.ReactComponentTreeHook,
ReactDebugCurrentFrame$3 = _require$7.ReactDebugCurrentFrame;
-
- var getStackAddendumByID$2 = ReactComponentTreeHook$3.getStackAddendumByID;
}
-function getStackAddendum$2(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID$2(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$3.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$2() {
+ var stack = ReactDebugCurrentFrame$3.getStackAddendum();
+ return stack != null ? stack : '';
}
{
@@ -6701,7 +5955,7 @@ function getStackAddendum$2(debugID) {
var ARIA_NAME_REGEX = /^aria-/i;
var possibleStandardNames = possibleStandardNames_1;
- var validateProperty$1 = function (tagName, name, value, debugID) {
+ var validateProperty$1 = function (tagName, name, value) {
if (warnedProperties$1.hasOwnProperty(name) && warnedProperties$1[name]) {
return true;
}
@@ -6720,7 +5974,7 @@ function getStackAddendum$2(debugID) {
var registrationName = EventPluginRegistry_1.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry_1.possibleRegistrationNames[lowerCasedName] : null;
if (registrationName != null) {
- warning$18(false, 'Unknown event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$2(debugID));
+ warning$16(false, 'Unknown event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$2());
warnedProperties$1[name] = true;
return true;
}
@@ -6731,19 +5985,19 @@ function getStackAddendum$2(debugID) {
}
if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
- warning$18(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
+ warning$16(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
warnedProperties$1[name] = true;
return true;
}
if (lowerCasedName === 'innerhtml') {
- warning$18(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
+ warning$16(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
warnedProperties$1[name] = true;
return true;
}
if (typeof value === 'number' && isNaN(value)) {
- warning$18(false, 'Received NaN for numeric attribute `%s`. If this is expected, cast ' + 'the value to a string.%s', name, getStackAddendum$2(debugID));
+ warning$16(false, 'Received NaN for numeric attribute `%s`. If this is expected, cast ' + 'the value to a string.%s', name, getStackAddendum$2());
warnedProperties$1[name] = true;
return true;
}
@@ -6752,7 +6006,7 @@ function getStackAddendum$2(debugID) {
if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
var standardName = possibleStandardNames[lowerCasedName];
if (standardName !== name) {
- warning$18(false, 'Invalid DOM property `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$2(debugID));
+ warning$16(false, 'Invalid DOM property `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$2());
warnedProperties$1[name] = true;
return true;
}
@@ -6774,15 +6028,15 @@ function getStackAddendum$2(debugID) {
};
}
-var warnUnknownProperties = function (type, props, debugID) {
+var warnUnknownProperties = function (type, props) {
var unknownProps = [];
for (var key in props) {
- var isValid = validateProperty$1(type, key, props[key], debugID);
+ var isValid = validateProperty$1(type, key, props[key]);
if (!isValid) {
unknownProps.push(key);
var value = props[key];
if (typeof value === 'object' && value !== null) {
- warning$18(false, 'The %s prop on <%s> is not a known property, and was given an object.' + 'Remove it, or it will appear in the ' + 'DOM after a future React update.%s', key, type, getStackAddendum$2(debugID));
+ warning$16(false, 'The %s prop on <%s> is not a known property, and was given an object.' + 'Remove it, or it will appear in the ' + 'DOM after a future React update.%s', key, type, getStackAddendum$2());
}
}
}
@@ -6792,33 +6046,21 @@ var warnUnknownProperties = function (type, props, debugID) {
}).join(', ');
if (unknownProps.length === 1) {
- warning$18(false, 'Invalid prop %s on <%s> tag. Either remove this prop from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$2(debugID));
+ warning$16(false, 'Invalid prop %s on <%s> tag. Either remove this prop from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$2());
} else if (unknownProps.length > 1) {
- warning$18(false, 'Invalid props %s on <%s> tag. Either remove these props from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$2(debugID));
+ warning$16(false, 'Invalid props %s on <%s> tag. Either remove these props from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$2());
}
};
-function validateProperties$2(type, props, debugID /* Stack only */) {
+function validateProperties$2(type, props) {
if (type.indexOf('-') >= 0 || props.is) {
return;
}
- warnUnknownProperties(type, props, debugID);
+ warnUnknownProperties(type, props);
}
var ReactDOMUnknownPropertyHook$1 = {
- // Fiber
- validateProperties: validateProperties$2,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$2(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$2(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties$2
};
var ReactDOMUnknownPropertyHook_1 = ReactDOMUnknownPropertyHook$1;
@@ -7702,10 +6944,10 @@ var ReactDOMFiberComponent_1 = ReactDOMFiberComponent;
{
- var warning$19 = warning_1;
+ var warning$17 = warning_1;
if (ExecutionEnvironment_1.canUseDOM && typeof requestAnimationFrame !== 'function') {
- warning$19(false, 'React depends on requestAnimationFrame. Make sure that you load a ' + 'polyfill in older browsers. http://fb.me/react-polyfills');
+ warning$17(false, 'React depends on requestAnimationFrame. Make sure that you load a ' + 'polyfill in older browsers. http://fb.me/react-polyfills');
}
}
@@ -7854,7 +7096,7 @@ var HostRoot$2 = ReactTypeOfWork.HostRoot;
{
- var warning$21 = warning_1;
+ var warning$19 = warning_1;
}
// Callbacks are not validated until invocation
@@ -8015,7 +7257,7 @@ function insertUpdate(fiber, update) {
{
if (queue1.isProcessing || queue2 !== null && queue2.isProcessing) {
- warning$21(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
+ warning$19(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
}
}
@@ -8289,7 +7531,7 @@ var emptyObject = {};
var emptyObject_1 = emptyObject;
{
- var warning$23 = warning_1;
+ var warning$21 = warning_1;
}
var valueStack = [];
@@ -8313,14 +7555,14 @@ var isEmpty = function () {
var pop$1 = function (cursor, fiber) {
if (index$4 < 0) {
{
- warning$23(false, 'Unexpected pop.');
+ warning$21(false, 'Unexpected pop.');
}
return;
}
{
if (fiber !== fiberStack[index$4]) {
- warning$23(false, 'Unexpected Fiber popped.');
+ warning$21(false, 'Unexpected Fiber popped.');
}
}
@@ -8391,7 +7633,7 @@ var ReactDebugFiberPerf = null;
YieldComponent = _require$8.YieldComponent,
Fragment = _require$8.Fragment;
- var getComponentName$5 = getComponentName_1;
+ var getComponentName$4 = getComponentName_1;
// Prefix measurements so that it's possible to filter them.
// Longer prefixes are hard to read in DevTools.
@@ -8468,7 +7710,7 @@ var ReactDebugFiberPerf = null;
};
var beginFiberMark = function (fiber, phase) {
- var componentName = getComponentName$5(fiber) || 'Unknown';
+ var componentName = getComponentName$4(fiber) || 'Unknown';
var debugID = fiber._debugID;
var isMounted = fiber.alternate !== null;
var label = getFiberLabel(componentName, isMounted, phase);
@@ -8487,7 +7729,7 @@ var ReactDebugFiberPerf = null;
};
var clearFiberMark = function (fiber, phase) {
- var componentName = getComponentName$5(fiber) || 'Unknown';
+ var componentName = getComponentName$4(fiber) || 'Unknown';
var debugID = fiber._debugID;
var isMounted = fiber.alternate !== null;
var label = getFiberLabel(componentName, isMounted, phase);
@@ -8496,7 +7738,7 @@ var ReactDebugFiberPerf = null;
};
var endFiberMark = function (fiber, phase, warning) {
- var componentName = getComponentName$5(fiber) || 'Unknown';
+ var componentName = getComponentName$4(fiber) || 'Unknown';
var debugID = fiber._debugID;
var isMounted = fiber.alternate !== null;
var label = getFiberLabel(componentName, isMounted, phase);
@@ -8729,7 +7971,7 @@ var pop = ReactFiberStack.pop;
var push = ReactFiberStack.push;
{
- var warning$22 = warning_1;
+ var warning$20 = warning_1;
var checkPropTypes$1 = checkPropTypes_1;
var ReactDebugCurrentFiber$2 = ReactDebugCurrentFiber_1;
@@ -8848,7 +8090,7 @@ function processChildContext$1(fiber, parentContext, isReconciling) {
if (!warnedAboutMissingGetChildContext[componentName]) {
warnedAboutMissingGetChildContext[componentName] = true;
- warning$22(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
+ warning$20(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
}
}
return parentContext;
@@ -9001,7 +8243,7 @@ var NoEffect$1 = ReactTypeOfSideEffect.NoEffect;
{
- var getComponentName$6 = getComponentName_1;
+ var getComponentName$5 = getComponentName_1;
var hasBadMapPolyfill = false;
try {
var nonExtensibleObject = Object.preventExtensions({});
@@ -9201,7 +8443,7 @@ function createFiberFromElementType(type, key, internalContextTag, debugOwner) {
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
info += ' You likely forgot to export your component from the file ' + "it's defined in.";
}
- var ownerName = debugOwner ? getComponentName$6(debugOwner) : null;
+ var ownerName = debugOwner ? getComponentName$5(debugOwner) : null;
if (ownerName) {
info += '\n\nCheck the render method of `' + ownerName + '`.';
}
@@ -9502,7 +8744,7 @@ var REACT_PORTAL_TYPE = ReactPortal.REACT_PORTAL_TYPE;
var _require3$4 = ReactDebugCurrentFiber_1,
getCurrentFiberStackAddendum$5 = _require3$4.getCurrentFiberStackAddendum;
- var warning$26 = warning_1;
+ var warning$24 = warning_1;
var didWarnAboutMaps = false;
/**
* Warn if there's no key explicitly set on dynamic arrays of children or
@@ -9527,7 +8769,7 @@ var REACT_PORTAL_TYPE = ReactPortal.REACT_PORTAL_TYPE;
}
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
- warning$26(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.%s', getCurrentFiberStackAddendum$5());
+ warning$24(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.%s', getCurrentFiberStackAddendum$5());
};
}
@@ -9578,14 +8820,9 @@ function coerceRef(current, element) {
var owner = element._owner;
var inst = void 0;
if (owner) {
- if (typeof owner.tag === 'number') {
- var ownerFiber = owner;
- !(ownerFiber.tag === ClassComponent$7) ? invariant_1(false, 'Stateless function components cannot have refs.') : void 0;
- inst = ownerFiber.stateNode;
- } else {
- // Stack
- inst = owner.getPublicInstance();
- }
+ var ownerFiber = owner;
+ !(ownerFiber.tag === ClassComponent$7) ? invariant_1(false, 'Stateless function components cannot have refs.') : void 0;
+ inst = ownerFiber.stateNode;
}
!inst ? invariant_1(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;
var stringRef = '' + mixedRef;
@@ -9622,7 +8859,7 @@ function throwOnInvalidObjectType(returnFiber, newChild) {
}
function warnOnFunctionType() {
- warning$26(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.%s', getCurrentFiberStackAddendum$5() || '');
+ warning$24(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.%s', getCurrentFiberStackAddendum$5() || '');
}
// This wrapper function exists because I expect to clone the code in each path
@@ -10066,7 +9303,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
knownKeys.add(key);
break;
}
- warning$26(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());
+ warning$24(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());
break;
default:
break;
@@ -10226,7 +9463,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
if (typeof newChildrenIterable.entries === 'function') {
var possibleMap = newChildrenIterable;
if (possibleMap.entries === iteratorFn) {
- warning$26(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', getCurrentFiberStackAddendum$5());
+ warning$24(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', getCurrentFiberStackAddendum$5());
didWarnAboutMaps = true;
}
}
@@ -10750,9 +9987,9 @@ var isArray$1 = Array.isArray;
startPhaseTimer$1 = _require7$1.startPhaseTimer,
stopPhaseTimer$1 = _require7$1.stopPhaseTimer;
- var warning$27 = warning_1;
+ var warning$25 = warning_1;
var warnOnInvalidCallback = function (callback, callerName) {
- warning$27(callback === null || typeof callback === 'function', '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
+ warning$25(callback === null || typeof callback === 'function', '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
};
// This is so gross but it's at least non-critical and can be removed if
@@ -10823,7 +10060,7 @@ var ReactFiberClassComponent = function (scheduleUpdate, getPriorityContext, mem
}
{
- warning$27(shouldUpdate !== undefined, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName_1(workInProgress) || 'Unknown');
+ warning$25(shouldUpdate !== undefined, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName_1(workInProgress) || 'Unknown');
}
return shouldUpdate;
@@ -10842,28 +10079,28 @@ var ReactFiberClassComponent = function (scheduleUpdate, getPriorityContext, mem
{
var name = getComponentName_1(workInProgress);
var renderPresent = instance.render;
- warning$27(renderPresent, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
+ warning$25(renderPresent, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
- warning$27(noGetInitialStateOnES6, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
+ warning$25(noGetInitialStateOnES6, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
- warning$27(noGetDefaultPropsOnES6, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
+ warning$25(noGetDefaultPropsOnES6, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
var noInstancePropTypes = !instance.propTypes;
- warning$27(noInstancePropTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
+ warning$25(noInstancePropTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
var noInstanceContextTypes = !instance.contextTypes;
- warning$27(noInstanceContextTypes, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
+ warning$25(noInstanceContextTypes, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
- warning$27(noComponentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
+ warning$25(noComponentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
if (type.prototype && type.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
- warning$27(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName_1(workInProgress) || 'A pure component');
+ warning$25(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName_1(workInProgress) || 'A pure component');
}
var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
- warning$27(noComponentDidUnmount, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
+ warning$25(noComponentDidUnmount, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
- warning$27(noComponentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
+ warning$25(noComponentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
var hasMutatedProps = instance.props !== workInProgress.pendingProps;
- warning$27(instance.props === undefined || !hasMutatedProps, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
+ warning$25(instance.props === undefined || !hasMutatedProps, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
var noInstanceDefaultProps = !instance.defaultProps;
- warning$27(noInstanceDefaultProps, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
+ warning$25(noInstanceDefaultProps, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
}
var state = instance.state;
@@ -10919,7 +10156,7 @@ var ReactFiberClassComponent = function (scheduleUpdate, getPriorityContext, mem
if (oldState !== instance.state) {
{
- warning$27(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName_1(workInProgress));
+ warning$25(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName_1(workInProgress));
}
updater.enqueueReplaceState(instance, instance.state, null);
}
@@ -10937,7 +10174,7 @@ var ReactFiberClassComponent = function (scheduleUpdate, getPriorityContext, mem
if (instance.state !== oldState) {
{
- warning$27(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName_1(workInProgress));
+ warning$25(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName_1(workInProgress));
}
updater.enqueueReplaceState(instance, instance.state, null);
}
@@ -11220,7 +10457,7 @@ var Ref$1 = ReactTypeOfSideEffect.Ref;
-var ReactCurrentOwner$2 = ReactGlobalSharedState_1.ReactCurrentOwner;
+var ReactCurrentOwner$3 = ReactGlobalSharedState_1.ReactCurrentOwner;
@@ -11230,7 +10467,7 @@ var ReactCurrentOwner$2 = ReactGlobalSharedState_1.ReactCurrentOwner;
var _require7 = ReactDebugFiberPerf_1,
cancelWorkTimer = _require7.cancelWorkTimer;
- var warning$25 = warning_1;
+ var warning$23 = warning_1;
var warnedAboutStatelessRefs = {};
}
@@ -11328,7 +10565,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
var nextChildren;
{
- ReactCurrentOwner$2.current = workInProgress;
+ ReactCurrentOwner$3.current = workInProgress;
ReactDebugCurrentFiber$4.setCurrentFiber(workInProgress, 'render');
nextChildren = fn(nextProps, context);
ReactDebugCurrentFiber$4.setCurrentFiber(workInProgress, null);
@@ -11380,7 +10617,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
var instance = workInProgress.stateNode;
// Rerender
- ReactCurrentOwner$2.current = workInProgress;
+ ReactCurrentOwner$3.current = workInProgress;
var nextChildren = void 0;
{
ReactDebugCurrentFiber$4.setCurrentFiber(workInProgress, 'render');
@@ -11532,7 +10769,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
var value;
{
- ReactCurrentOwner$2.current = workInProgress;
+ ReactCurrentOwner$3.current = workInProgress;
value = fn(props, context);
}
// React DevTools reads this flag.
@@ -11556,7 +10793,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
var Component = workInProgress.type;
if (Component) {
- warning$25(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component');
+ warning$23(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component');
}
if (workInProgress.ref !== null) {
var info = '';
@@ -11572,7 +10809,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
}
if (!warnedAboutStatelessRefs[warningKey]) {
warnedAboutStatelessRefs[warningKey] = true;
- warning$25(false, 'Stateless function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s%s', info, ReactDebugCurrentFiber$4.getCurrentFiberStackAddendum());
+ warning$23(false, 'Stateless function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s%s', info, ReactDebugCurrentFiber$4.getCurrentFiberStackAddendum());
}
}
}
@@ -12125,7 +11362,7 @@ var ReactFiberCompleteWork = function (config, hostContext, hydrationContext) {
};
{
- var warning$28 = warning_1;
+ var warning$26 = warning_1;
}
var onCommitFiberRoot = null;
@@ -12139,7 +11376,7 @@ function catchErrors(fn) {
} catch (err) {
if (true && !hasLoggedError) {
hasLoggedError = true;
- warning$28(false, 'React DevTools encountered an error: %s', err);
+ warning$26(false, 'React DevTools encountered an error: %s', err);
}
}
};
@@ -12153,7 +11390,7 @@ function injectInternals$1(internals) {
var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!hook.supportsFiber) {
{
- warning$28(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
+ warning$26(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
}
// DevTools exists, even though it doesn't support Fiber.
return true;
@@ -12170,7 +11407,7 @@ function injectInternals$1(internals) {
} catch (err) {
// Catch all errors because it is unsafe to throw during initialization.
{
- warning$28(false, 'React DevTools encountered an error: %s.', err);
+ warning$26(false, 'React DevTools encountered an error: %s.', err);
}
}
// DevTools exists
@@ -13114,7 +12351,7 @@ var clearCaughtError = ReactErrorUtils_1.clearCaughtError;
-var ReactCurrentOwner$1 = ReactGlobalSharedState_1.ReactCurrentOwner;
+var ReactCurrentOwner$2 = ReactGlobalSharedState_1.ReactCurrentOwner;
@@ -13155,7 +12392,7 @@ var resetContext$1 = _require14.resetContext;
{
- var warning$24 = warning_1;
+ var warning$22 = warning_1;
var ReactFiberInstrumentation$1 = ReactFiberInstrumentation_1;
var ReactDebugCurrentFiber$3 = ReactDebugCurrentFiber_1;
@@ -13176,16 +12413,16 @@ var resetContext$1 = _require14.resetContext;
var warnAboutUpdateOnUnmounted = function (instance) {
var ctor = instance.constructor;
- warning$24(false, 'Can only update a mounted or mounting component. This usually means ' + 'you called setState, replaceState, or forceUpdate on an unmounted ' + 'component. This is a no-op.\n\nPlease check the code for the ' + '%s component.', ctor && (ctor.displayName || ctor.name) || 'ReactClass');
+ warning$22(false, 'Can only update a mounted or mounting component. This usually means ' + 'you called setState, replaceState, or forceUpdate on an unmounted ' + 'component. This is a no-op.\n\nPlease check the code for the ' + '%s component.', ctor && (ctor.displayName || ctor.name) || 'ReactClass');
};
var warnAboutInvalidUpdates = function (instance) {
switch (ReactDebugCurrentFiber$3.phase) {
case 'getChildContext':
- warning$24(false, 'setState(...): Cannot call setState() inside getChildContext()');
+ warning$22(false, 'setState(...): Cannot call setState() inside getChildContext()');
break;
case 'render':
- warning$24(false, 'Cannot update during an existing state transition (such as within ' + "`render` or another component's constructor). Render methods should " + 'be a pure function of props and state; constructor side-effects are ' + 'an anti-pattern, but can be moved to `componentWillMount`.');
+ warning$22(false, 'Cannot update during an existing state transition (such as within ' + "`render` or another component's constructor). Render methods should " + 'be a pure function of props and state; constructor side-effects are ' + 'an anti-pattern, but can be moved to `componentWillMount`.');
break;
}
};
@@ -13468,7 +12705,7 @@ var ReactFiberScheduler = function (config) {
}
// Reset this to null before calling lifecycles
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
var firstEffect = void 0;
if (finishedWork.effectTag > PerformedWork) {
@@ -13707,7 +12944,7 @@ var ReactFiberScheduler = function (config) {
next = completeUnitOfWork(workInProgress);
}
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
{
ReactDebugCurrentFiber$3.resetCurrentFiber();
}
@@ -13736,7 +12973,7 @@ var ReactFiberScheduler = function (config) {
next = completeUnitOfWork(workInProgress);
}
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
{
ReactDebugCurrentFiber$3.resetCurrentFiber();
}
@@ -14009,7 +13246,7 @@ var ReactFiberScheduler = function (config) {
// Returns the boundary that captured the error, or null if the error is ignored
function captureError(failedWork, error) {
// It is no longer valid because we exited the user code.
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
{
ReactDebugCurrentFiber$3.resetCurrentFiber();
}
@@ -14433,46 +13670,6 @@ var ReactFiberScheduler = function (config) {
};
};
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule getContextForSubtree
- *
- */
-
-
-
-
-
-
-var getContextFiber = function (arg) {
- invariant_1(false, 'Missing injection for fiber getContextForSubtree');
-};
-
-function getContextForSubtree(parentComponent) {
- if (!parentComponent) {
- return emptyObject_1;
- }
-
- var instance = ReactInstanceMap_1.get(parentComponent);
- if (typeof instance.tag === 'number') {
- return getContextFiber(instance);
- } else {
- return instance._processChildContext(instance._context);
- }
-}
-
-getContextForSubtree._injectFiber = function (fn) {
- getContextFiber = fn;
-};
-
-var getContextForSubtree_1 = getContextForSubtree;
-
var addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate;
var findCurrentUnmaskedContext = ReactFiberContext.findCurrentUnmaskedContext;
@@ -14483,24 +13680,30 @@ var createFiberRoot = ReactFiberRoot.createFiberRoot;
+
var HostComponent$3 = ReactTypeOfWork.HostComponent;
+
+
{
- var warning$20 = warning_1;
+ var warning$18 = warning_1;
var ReactFiberInstrumentation = ReactFiberInstrumentation_1;
var ReactDebugCurrentFiber$1 = ReactDebugCurrentFiber_1;
- var getComponentName$4 = getComponentName_1;
+ var getComponentName$3 = getComponentName_1;
}
var findCurrentHostFiber$1 = ReactFiberTreeReflection.findCurrentHostFiber;
var findCurrentHostFiberWithNoPortals$1 = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
+function getContextForSubtree(parentComponent) {
+ if (!parentComponent) {
+ return emptyObject_1;
+ }
-
-getContextForSubtree_1._injectFiber(function (fiber) {
+ var fiber = ReactInstanceMap_1.get(parentComponent);
var parentContext = findCurrentUnmaskedContext(fiber);
return isContextProvider(fiber) ? processChildContext(fiber, parentContext, false) : parentContext;
-});
+}
var ReactFiberReconciler = function (config) {
var getPublicInstance = config.getPublicInstance;
@@ -14517,7 +13720,7 @@ var ReactFiberReconciler = function (config) {
function scheduleTopLevelUpdate(current, element, callback) {
{
if (ReactDebugCurrentFiber$1.phase === 'render' && ReactDebugCurrentFiber$1.current !== null) {
- warning$20(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName$4(ReactDebugCurrentFiber$1.current) || 'Unknown');
+ warning$18(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName$3(ReactDebugCurrentFiber$1.current) || 'Unknown');
}
}
@@ -14529,7 +13732,7 @@ var ReactFiberReconciler = function (config) {
var nextState = { element: element };
callback = callback === undefined ? null : callback;
{
- warning$20(callback === null || typeof callback === 'function', 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
+ warning$18(callback === null || typeof callback === 'function', 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
}
addTopLevelUpdate(current, nextState, callback, priorityLevel);
scheduleUpdate(current, priorityLevel);
@@ -14555,7 +13758,7 @@ var ReactFiberReconciler = function (config) {
}
}
- var context = getContextForSubtree_1(parentComponent);
+ var context = getContextForSubtree(parentComponent);
if (container.context === null) {
container.context = context;
} else {
@@ -14969,7 +14172,7 @@ function getActiveElement(doc) /*?DOMElement*/{
var getActiveElement_1 = getActiveElement;
-var ELEMENT_NODE$2 = HTMLNodeType_1.ELEMENT_NODE;
+var ELEMENT_NODE$1 = HTMLNodeType_1.ELEMENT_NODE;
@@ -15017,7 +14220,7 @@ var ReactInputSelection = {
var ancestors = [];
var ancestor = priorFocusedElem;
while (ancestor = ancestor.parentNode) {
- if (ancestor.nodeType === ELEMENT_NODE$2) {
+ if (ancestor.nodeType === ELEMENT_NODE$1) {
ancestors.push({
element: ancestor,
left: ancestor.scrollLeft,
@@ -15097,84 +14300,6 @@ var ReactInputSelection_1 = ReactInputSelection;
var ReactVersion = '16.0.0-beta.5';
/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule findDOMNode
- *
- */
-
-
-
-var ELEMENT_NODE$3 = HTMLNodeType_1.ELEMENT_NODE;
-
-var ReactCurrentOwner$3 = ReactGlobalSharedState_1.ReactCurrentOwner;
-
-
-
-
-{
- var warning$29 = warning_1;
-}
-
-var findFiber = function (arg) {
- invariant_1(false, 'Missing injection for fiber findDOMNode');
-};
-var findStack = function (arg) {
- invariant_1(false, 'Missing injection for stack findDOMNode');
-};
-
-var findDOMNode = function (componentOrElement) {
- {
- var owner = ReactCurrentOwner$3.current;
- if (owner !== null) {
- var isFiber = typeof owner.tag === 'number';
- var warnedAboutRefsInRender = isFiber ? owner.stateNode._warnedAboutRefsInRender : owner._warnedAboutRefsInRender;
- warning$29(warnedAboutRefsInRender, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName_1(owner) || 'A component');
- if (isFiber) {
- owner.stateNode._warnedAboutRefsInRender = true;
- } else {
- owner._warnedAboutRefsInRender = true;
- }
- }
- }
- if (componentOrElement == null) {
- return null;
- }
- if (componentOrElement.nodeType === ELEMENT_NODE$3) {
- return componentOrElement;
- }
-
- var inst = ReactInstanceMap_1.get(componentOrElement);
- if (inst) {
- if (typeof inst.tag === 'number') {
- return findFiber(inst);
- } else {
- return findStack(inst);
- }
- }
-
- if (typeof componentOrElement.render === 'function') {
- invariant_1(false, 'Unable to find node on an unmounted component.');
- } else {
- invariant_1(false, 'Element appears to be neither ReactComponent nor DOMNode. Keys: %s', Object.keys(componentOrElement));
- }
-};
-
-findDOMNode._injectFiber = function (fn) {
- findFiber = fn;
-};
-findDOMNode._injectStack = function (fn) {
- findStack = fn;
-};
-
-var findDOMNode_1 = findDOMNode;
-
-/**
* Copyright 2014-2015, Facebook, Inc.
* All rights reserved.
*
@@ -15241,7 +14366,7 @@ var lowPriorityWarning_1 = lowPriorityWarning$1;
var validateDOMNesting$1 = emptyFunction_1;
{
- var warning$30 = warning_1;
+ var warning$27 = warning_1;
var _require$13 = ReactDebugCurrentFiber_1,
getCurrentFiberStackAddendum$6 = _require$13.getCurrentFiberStackAddendum;
@@ -15486,68 +14611,15 @@ var validateDOMNesting$1 = emptyFunction_1;
return null;
};
- /**
- * Given a ReactCompositeComponent instance, return a list of its recursive
- * owners, starting at the root and ending with the instance itself.
- */
- var findOwnerStack = function (instance) {
- if (!instance) {
- return [];
- }
-
- var stack = [];
- do {
- stack.push(instance);
- } while (instance = instance._currentElement._owner);
- stack.reverse();
- return stack;
- };
-
- var getOwnerInfo = function (childInstance, childTag, ancestorInstance, ancestorTag, isParent) {
- var childOwner = childInstance && childInstance._currentElement._owner;
- var ancestorOwner = ancestorInstance && ancestorInstance._currentElement._owner;
-
- var childOwners = findOwnerStack(childOwner);
- var ancestorOwners = findOwnerStack(ancestorOwner);
-
- var minStackLen = Math.min(childOwners.length, ancestorOwners.length);
- var i;
-
- var deepestCommon = -1;
- for (i = 0; i < minStackLen; i++) {
- if (childOwners[i] === ancestorOwners[i]) {
- deepestCommon = i;
- } else {
- break;
- }
- }
-
- var UNKNOWN = '(unknown)';
- var childOwnerNames = childOwners.slice(deepestCommon + 1).map(function (inst) {
- return getComponentName_1(inst) || UNKNOWN;
- });
- var ancestorOwnerNames = ancestorOwners.slice(deepestCommon + 1).map(function (inst) {
- return getComponentName_1(inst) || UNKNOWN;
- });
- var ownerInfo = [].concat(
- // If the parent and child instances have a common owner ancestor, start
- // with that -- otherwise we just start with the parent's owners.
- deepestCommon !== -1 ? getComponentName_1(childOwners[deepestCommon]) || UNKNOWN : [], ancestorOwnerNames, ancestorTag,
- // If we're warning about an invalid (non-parent) ancestry, add '...'
- isParent ? [] : ['...'], childOwnerNames, childTag).join(' > ');
-
- return ownerInfo;
- };
-
var didWarn = {};
- validateDOMNesting$1 = function (childTag, childText, childInstance, ancestorInfo) {
+ validateDOMNesting$1 = function (childTag, childText, ancestorInfo) {
ancestorInfo = ancestorInfo || emptyAncestorInfo;
var parentInfo = ancestorInfo.current;
var parentTag = parentInfo && parentInfo.tag;
if (childText != null) {
- warning$30(childTag == null, 'validateDOMNesting: when childText is passed, childTag should be null');
+ warning$27(childTag == null, 'validateDOMNesting: when childText is passed, childTag should be null');
childTag = '#text';
}
@@ -15558,15 +14630,8 @@ var validateDOMNesting$1 = emptyFunction_1;
return;
}
- var ancestorInstance = invalidParentOrAncestor.instance;
var ancestorTag = invalidParentOrAncestor.tag;
- var addendum;
-
- if (childInstance != null) {
- addendum = ' See ' + getOwnerInfo(childInstance, childTag, ancestorInstance, ancestorTag, !!invalidParent) + '.';
- } else {
- addendum = getCurrentFiberStackAddendum$6();
- }
+ var addendum = getCurrentFiberStackAddendum$6();
var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
if (didWarn[warnKey]) {
@@ -15592,9 +14657,9 @@ var validateDOMNesting$1 = emptyFunction_1;
if (ancestorTag === 'table' && childTag === 'tr') {
info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
}
- warning$30(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
+ warning$27(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
} else {
- warning$30(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
+ warning$27(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
}
};
@@ -15614,21 +14679,16 @@ var validateDOMNesting_1 = validateDOMNesting$1;
var HostComponent$11 = ReactTypeOfWork.HostComponent;
function getParent(inst) {
- if (inst._hostParent !== undefined) {
- return inst._hostParent;
- }
- if (typeof inst.tag === 'number') {
- do {
- inst = inst['return'];
- // TODO: If this is a HostRoot we might want to bail out.
- // That is depending on if we want nested subtrees (layers) to bubble
- // events to their parent. We could also go through parentNode on the
- // host node but that wouldn't work for React Native and doesn't let us
- // do the portal feature.
- } while (inst && inst.tag !== HostComponent$11);
- if (inst) {
- return inst;
- }
+ do {
+ inst = inst['return'];
+ // TODO: If this is a HostRoot we might want to bail out.
+ // That is depending on if we want nested subtrees (layers) to bubble
+ // events to their parent. We could also go through parentNode on the
+ // host node but that wouldn't work for React Native and doesn't let us
+ // do the portal feature.
+ } while (inst && inst.tag !== HostComponent$11);
+ if (inst) {
+ return inst;
}
return null;
}
@@ -15748,7 +14808,7 @@ var ReactTreeTraversal = {
var getListener = EventPluginHub_1.getListener;
{
- var warning$31 = warning_1;
+ var warning$28 = warning_1;
}
/**
@@ -15768,7 +14828,7 @@ function listenerAtPhase(inst, event, propagationPhase) {
*/
function accumulateDirectionalDispatches(inst, phase, event) {
{
- warning$31(inst, 'Dispatching inst must not be null');
+ warning$28(inst, 'Dispatching inst must not be null');
}
var listener = listenerAtPhase(inst, event, phase);
if (listener) {
@@ -15936,7 +14996,7 @@ var isProxySupported = typeof Proxy === 'function';
var EVENT_POOL_SIZE = 10;
{
- var warning$32 = warning_1;
+ var warning$29 = warning_1;
}
var shouldBeReleasedProperties = ['dispatchConfig', '_targetInst', 'nativeEvent', 'isDefaultPrevented', 'isPropagationStopped', '_dispatchListeners', '_dispatchInstances'];
@@ -16132,7 +15192,7 @@ SyntheticEvent.augmentClass = function (Class, Interface) {
return new Proxy(constructor.apply(that, args), {
set: function (target, prop, value) {
if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
- warning$32(didWarnForAddedNewProperty || target.isPersistent(), "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.');
+ warning$29(didWarnForAddedNewProperty || target.isPersistent(), "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.');
didWarnForAddedNewProperty = true;
}
target[prop] = value;
@@ -16179,7 +15239,7 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
function warn(action, result) {
var warningCondition = false;
- warning$32(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result);
+ warning$29(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result);
}
}
@@ -18069,6 +17129,8 @@ var SVGDOMPropertyConfig_1 = SVGDOMPropertyConfig;
DOMProperty_1.injection.injectDOMPropertyConfig(HTMLDOMPropertyConfig_1);
DOMProperty_1.injection.injectDOMPropertyConfig(SVGDOMPropertyConfig_1);
+var ReactCurrentOwner = ReactGlobalSharedState_1.ReactCurrentOwner;
+
var isValidElement = react.isValidElement;
var injectInternals = ReactFiberDevToolsHook.injectInternals;
@@ -18114,9 +17176,6 @@ var updateFiberProps = ReactDOMComponentTree_1.updateFiberProps;
ReactControlledComponent_1.injection.injectFiberControlledHostComponent(ReactDOMFiberComponent_1);
-findDOMNode_1._injectFiber(function (fiber) {
- return DOMRenderer.findHostInstance(fiber);
-});
var eventsEnabled = null;
var selectionInformation = null;
@@ -18210,11 +17269,11 @@ var DOMRenderer = ReactFiberReconciler({
{
// TODO: take namespace into account when validating.
var hostContextDev = hostContext;
- validateDOMNesting(type, null, null, hostContextDev.ancestorInfo);
+ validateDOMNesting(type, null, hostContextDev.ancestorInfo);
if (typeof props.children === 'string' || typeof props.children === 'number') {
var string = '' + props.children;
var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type, null);
- validateDOMNesting(null, string, null, ownAncestorInfo);
+ validateDOMNesting(null, string, ownAncestorInfo);
}
parentNamespace = hostContextDev.namespace;
}
@@ -18236,7 +17295,7 @@ var DOMRenderer = ReactFiberReconciler({
if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
var string = '' + newProps.children;
var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type, null);
- validateDOMNesting(null, string, null, ownAncestorInfo);
+ validateDOMNesting(null, string, ownAncestorInfo);
}
}
return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
@@ -18263,7 +17322,7 @@ var DOMRenderer = ReactFiberReconciler({
createTextInstance: function (text, rootContainerInstance, hostContext, internalInstanceHandle) {
{
var hostContextDev = hostContext;
- validateDOMNesting(null, text, null, hostContextDev.ancestorInfo);
+ validateDOMNesting(null, text, hostContextDev.ancestorInfo);
}
var textNode = document.createTextNode(text);
precacheFiberNode(internalInstanceHandle, textNode);
@@ -18419,6 +17478,33 @@ function renderSubtreeIntoContainer(parentComponent, children, container, forceH
}
var ReactDOMFiber = {
+ findDOMNode: function (componentOrElement) {
+ {
+ var owner = ReactCurrentOwner.current;
+ if (owner !== null) {
+ var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
+ warning(warnedAboutRefsInRender, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName_1(owner) || 'A component');
+ owner.stateNode._warnedAboutRefsInRender = true;
+ }
+ }
+ if (componentOrElement == null) {
+ return null;
+ }
+ if (componentOrElement.nodeType === ELEMENT_NODE) {
+ return componentOrElement;
+ }
+
+ var inst = ReactInstanceMap_1.get(componentOrElement);
+ if (inst) {
+ return DOMRenderer.findHostInstance(inst);
+ }
+
+ if (typeof componentOrElement.render === 'function') {
+ invariant_1(false, 'Unable to find node on an unmounted component.');
+ } else {
+ invariant_1(false, 'Element appears to be neither ReactComponent nor DOMNode. Keys: %s', Object.keys(componentOrElement));
+ }
+ },
hydrate: function (element, container, callback) {
// TODO: throw or warn if we couldn't hydrate?
return renderSubtreeIntoContainer(null, element, container, true, callback);
@@ -18480,10 +17566,6 @@ var ReactDOMFiber = {
return false;
}
},
-
-
- findDOMNode: findDOMNode_1,
-
unstable_createPortal: function (children, container) {
var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
diff --git a/dist/react-dom.production.min.js b/dist/react-dom.production.min.js
index d6f13e9..c8c1f00 100644
--- a/dist/react-dom.production.min.js
+++ b/dist/react-dom.production.min.js
@@ -1,202 +1,197 @@
/*
Modernizr 3.0.0pre (Custom Build) | MIT
*/
-function Mb(ab){function Nb(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Mc(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}function Le(a){return a[1].toUpperCase()}function bb(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;return 32<=a||13===a?a:0}function Ob(){return Me}function Nc(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return"input"===b?!!Ne[a.type]:"textarea"===b?!0:!1}function cb(a){if(null==a)return null;
-if(1===a.nodeType)return a;var b=ha.get(a);if(b)return"number"===typeof b.tag?Oc(b):Pc(b);"function"===typeof a.render?k("188"):k("213",Object.keys(a))}function Pc(){k("212")}function Oc(){k("211")}function Pb(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}function Qc(a){var b=(a?a.ownerDocument||a:document).defaultView||window;return!!(a&&("function"===typeof b.Node?a instanceof b.Node:"object"===
-typeof a&&"number"===typeof a.nodeType&&"string"===typeof a.nodeName))&&3==a.nodeType}function Rc(){!Qb&&m&&(Qb="textContent"in document.documentElement?"textContent":"innerText");return Qb}function Sc(a,b){var c=Tc(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Tc(c)}}function Uc(){k("196")}function Oe(a){function b(){for(;null!==z&&0===z.current.pendingWorkPriority;){z.isScheduled=
-!1;var a=z.nextScheduledRoot;z.nextScheduledRoot=null;if(z===O)return O=z=null,A=0,null;z=a}a=z;for(var b=null,c=0;null!==a;)0!==a.current.pendingWorkPriority&&(0===c||c>a.current.pendingWorkPriority)&&(c=a.current.pendingWorkPriority,b=a),a=a.nextScheduledRoot;if(null!==b){for(A=c;-1<ca;)db[ca]=null,ca--;eb=ba;da.current=ba;T.current=!1;B();H=Vc(b.current,c)}else A=0,H=null}function c(c){W=!0;D=null;var d=c.stateNode;d.current===c?k("177"):void 0;1!==A&&2!==A||Y++;fb.current=null;if(1<c.effectTag)if(null!==
-c.lastEffect){c.lastEffect.nextEffect=c;var e=c.firstEffect}else e=c;else e=c.firstEffect;K();for(v=e;null!==v;){var t=!1,l=void 0;try{for(;null!==v;){var f=v.effectTag;f&16&&a.resetTextContent(v.stateNode);if(f&128){var r=v.alternate;null!==r&&Pe(r)}switch(f&-242){case 2:Wc(v);v.effectTag&=-3;break;case 6:Wc(v);v.effectTag&=-3;Xc(v.alternate,v);break;case 4:Xc(v.alternate,v);break;case 8:X=!0,Qe(v),X=!1}v=v.nextEffect}}catch(Rb){t=!0,l=Rb}t&&(null===v?k("178"):void 0,S(v,l),null!==v&&(v=v.nextEffect))}L();
-d.current=c;for(v=e;null!==v;){d=!1;e=void 0;try{for(;null!==v;){var g=v.effectTag;g&36&&Re(v.alternate,v);g&128&&Se(v);if(g&64)switch(t=v,l=void 0,null!==Q&&(l=Q.get(t),Q["delete"](t),null==l&&null!==t.alternate&&(t=t.alternate,l=Q.get(t),Q["delete"](t))),null==l?k("184"):void 0,t.tag){case 2:t.stateNode.componentDidCatch(l.error,{componentStack:l.componentStack});break;case 3:null===N&&(N=l.error);break;default:k("157")}var u=v.nextEffect;v.nextEffect=null;v=u}}catch(Rb){d=!0,e=Rb}d&&(null===v?
-k("178"):void 0,S(v,e),null!==v&&(v=v.nextEffect))}W=!1;"function"===typeof Yc&&Yc(c.stateNode);F&&(F.forEach(Z),F=null);b()}function d(a){for(;;){var b=t(a.alternate,a,A),c=a["return"],d=a.sibling;var e=a;if(!(0!==e.pendingWorkPriority&&e.pendingWorkPriority>A)){var l=e.updateQueue;l=null===l||2!==e.tag&&3!==e.tag?0:null!==l.first?l.first.priorityLevel:0;for(var f=e.child;null!==f;){var r=f.pendingWorkPriority;l=0!==l&&(0===r||r>l)?l:r;f=f.sibling}e.pendingWorkPriority=l}if(null!==b)return b;null!==
-c&&(null===c.firstEffect&&(c.firstEffect=a.firstEffect),null!==a.lastEffect&&(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect),1<a.effectTag&&(null!==c.lastEffect?c.lastEffect.nextEffect=a:c.firstEffect=a,c.lastEffect=a));if(null!==d)return d;if(null!==c)a=c;else{D=a;break}}return null}function e(a){var b=l(a.alternate,a,A);null===b&&(b=d(a));fb.current=null;return b}function f(a){var b=r(a.alternate,a,A);null===b&&(b=d(a));fb.current=null;return b}function g(a){I(5,
-a)}function h(){if(null!==Q&&0<Q.size&&2===A)for(;null!==H;){var a=H;H=null!==Q&&(Q.has(a)||null!==a.alternate&&Q.has(a.alternate))?f(H):e(H);if(null===H&&(null===D?k("179"):void 0,J=2,c(D),J=A,null===Q||0===Q.size||2!==A))break}}function p(a,d){null!==D?(J=2,c(D),h()):null===H&&b();if(!(0===A||A>a)){J=A;a:do{if(2>=A)for(;null!==H&&!(H=e(H),null===H&&(null===D?k("179"):void 0,J=2,c(D),J=A,h(),0===A||A>a||2<A)););else if(null!==d)for(;null!==H&&!E;)if(1<d.timeRemaining()){if(H=e(H),null===H)if(null===
-D?k("179"):void 0,1<d.timeRemaining()){if(J=2,c(D),J=A,h(),0===A||A>a||3>A)break}else E=!0}else E=!0;switch(A){case 1:case 2:if(A<=a)continue a;break a;case 3:case 4:case 5:if(null===d)break a;if(!E&&A<=a)continue a;break a;case 0:break a;default:k("181")}}while(1)}}function I(a,b){x?k("182"):void 0;x=!0;Y=0;var c=J,d=!1,e=null;try{p(a,b)}catch(Sb){d=!0,e=Sb}for(;d;){if(R){N=e;break}var t=H;if(null===t)R=!0;else{var l=S(t,e);null===l?k("183"):void 0;if(!R){try{d=l;e=a;l=b;for(var r=d;null!==t;){switch(t.tag){case 2:Zc(t);
-break;case 5:y(t);break;case 3:$c(t);break;case 4:$c(t)}if(t===r||t.alternate===r)break;t=t["return"]}H=f(d);p(e,l)}catch(Sb){d=!0;e=Sb;continue}break}}}J=c;null!==b&&(P=!1);2<A&&!P&&(q(g),P=!0);a=N;R=E=x=!1;G=Q=N=null;if(null!==a)throw a;}function S(a,b){var c=fb.current=null,d=!1,e=!1,t=null;if(3===a.tag)c=a,C(a)&&(R=!0);else for(var l=a["return"];null!==l&&null===c;){2===l.tag?"function"===typeof l.stateNode.componentDidCatch&&(d=!0,t=Ba(l),c=l,e=!0):3===l.tag&&(c=l);if(C(l)){if(X||null!==F&&(F.has(l)||
-null!==l.alternate&&F.has(l.alternate)))return null;c=null;e=!1}l=l["return"]}if(null!==c){null===G&&(G=new Set);G.add(c);var f="";l=a;do{a:switch(l.tag){case 0:case 1:case 2:case 5:var r=l._debugOwner,g=l._debugSource;var u=Ba(l);var h=null;r&&(h=Ba(r));r=g;u="\n in "+(u||"Unknown")+(r?" (at "+r.fileName.replace(/^.*[\\\/]/,"")+":"+r.lineNumber+")":h?" (created by "+h+")":"");break a;default:u=""}f+=u;l=l["return"]}while(l);l=f;a=Ba(a);null===Q&&(Q=new Map);b={componentName:a,componentStack:l,
-error:b,errorBoundary:d?c.stateNode:null,errorBoundaryFound:d,errorBoundaryName:t,willRetry:e};Q.set(c,b);try{console.error(b.error)}catch(Te){console.error(Te)}W?(null===F&&(F=new Set),F.add(c)):Z(c);return c}null===N&&(N=b);return null}function C(a){return null!==G&&(G.has(a)||null!==a.alternate&&G.has(a.alternate))}function ad(a,b){return U(a,b,!1)}function U(a,b){Y>aa&&(R=!0,k("185"));!x&&b<=A&&(H=null);for(var c=!0;null!==a&&c;){c=!1;if(0===a.pendingWorkPriority||a.pendingWorkPriority>b)c=!0,
-a.pendingWorkPriority=b;null!==a.alternate&&(0===a.alternate.pendingWorkPriority||a.alternate.pendingWorkPriority>b)&&(c=!0,a.alternate.pendingWorkPriority=b);if(null===a["return"])if(3===a.tag){var d=a.stateNode;0===b||d.isScheduled||(d.isScheduled=!0,O?O.nextScheduledRoot=d:z=d,O=d);if(!x)switch(b){case 1:M?I(1,null):I(2,null);break;case 2:m?void 0:k("186");break;default:P||(q(g),P=!0)}}else break;a=a["return"]}}function n(a,b){var c=J;0===c&&(c=!w||a.internalContextTag&1||b?4:1);return 1===c&&
-(x||m)?2:c}function Z(a){U(a,2,!0)}var V=Ue(a),bd=Ve(a),$c=V.popHostContainer,y=V.popHostContext,B=V.resetHostContainer,u=We(a,V,bd,ad,n),l=u.beginWork,r=u.beginFailedWork,t=Xe(a,V,bd).completeWork;V=Ye(a,S);var Wc=V.commitPlacement,Qe=V.commitDeletion,Xc=V.commitWork,Re=V.commitLifeCycles,Se=V.commitAttachRef,Pe=V.commitDetachRef,q=a.scheduleDeferredCallback,w=a.useSyncScheduling,K=a.prepareForCommit,L=a.resetAfterCommit,J=0,x=!1,E=!1,m=!1,M=!1,H=null,A=0,v=null,D=null,z=null,O=null,P=!1,Q=null,
-G=null,F=null,N=null,R=!1,W=!1,X=!1,aa=1E3,Y=0;return{scheduleUpdate:ad,getPriorityContext:n,performWithPriority:function(a,b){var c=J;J=a;try{b()}finally{J=c}},batchedUpdates:function(a,b){var c=m;m=!0;try{return a(b)}finally{m=c,x||m||I(2,null)}},unbatchedUpdates:function(a){var b=M,c=m;M=m;m=!1;try{return a()}finally{m=c,M=b}},flushSync:function(a){var b=m,c=J;m=!0;J=1;try{return a()}finally{m=b,J=c,x?k("187"):void 0,I(2,null)}},deferredUpdates:function(a){var b=J;J=4;try{return a()}finally{J=
-b}}}}function Yc(a){"function"===typeof Tb&&Tb(a)}function Ve(a){function b(a,b){var c=new M(5,null,0);c.type="DELETED";c.stateNode=b;c["return"]=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}function c(a,b){switch(a.tag){case 5:return f(b,a.type,a.pendingProps);case 6:return g(b,a.pendingProps);default:return!1}}function d(a){for(a=a["return"];null!==a&&5!==a.tag&&3!==a.tag;)a=a["return"];U=a}var e=a.shouldSetTextContent,f=a.canHydrateInstance,
-g=a.canHydrateTextInstance,h=a.getNextHydratableSibling,p=a.getFirstHydratableChild,I=a.hydrateInstance,S=a.hydrateTextInstance,C=a.didNotHydrateInstance,n=a.didNotFindHydratableInstance;a=a.didNotFindHydratableTextInstance;if(!(f&&g&&h&&p&&I&&S&&C&&n&&a))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){k("175")},prepareToHydrateHostTextInstance:function(){k("176")},popHydrationState:function(){return!1}};
-var U=null,m=null,Z=!1;return{enterHydrationState:function(a){m=p(a.stateNode.containerInfo);U=a;return Z=!0},resetHydrationState:function(){m=U=null;Z=!1},tryToClaimNextHydratableInstance:function(a){if(Z){var d=m;if(d){if(!c(a,d)){d=h(d);if(!d||!c(a,d)){a.effectTag|=2;Z=!1;U=a;return}b(U,m)}a.stateNode=d;U=a;m=p(d)}else a.effectTag|=2,Z=!1,U=a}},prepareToHydrateHostInstance:function(a,b){b=I(a.stateNode,a.type,a.memoizedProps,b,a);a.updateQueue=b;return null!==b?!0:!1},prepareToHydrateHostTextInstance:function(a){return S(a.stateNode,
-a.memoizedProps,a)},popHydrationState:function(a){if(a!==U)return!1;if(!Z)return d(a),Z=!0,!1;var c=a.type;if(5!==a.tag||"head"!==c&&"body"!==c&&!e(c,a.memoizedProps))for(c=m;c;)b(a,c),c=h(c);d(a);m=U?h(a.stateNode):null;return!0}}}function Ue(a){function b(a){a===ra?k("174"):void 0;return a}var c=a.getChildHostContext,d=a.getRootHostContext,e={current:ra},f={current:ra},g={current:ra};return{getHostContext:function(){return b(e.current)},getRootHostContainer:function(){return b(g.current)},popHostContainer:function(a){N(e,
-a);N(f,a);N(g,a)},popHostContext:function(a){f.current===a&&(N(e,a),N(f,a))},pushHostContainer:function(a,b){O(g,b,a);b=d(b);O(f,a,a);O(e,b,a)},pushHostContext:function(a){var d=b(g.current),h=b(e.current);d=c(h,a.type,d);h!==d&&(O(f,a,a),O(e,d,a))},resetHostContainer:function(){e.current=ra;g.current=ra}}}function Ye(a,b){function c(a){var c=a.ref;if(null!==c)try{c(null)}catch(B){b(a,B)}}function d(a){return 5===a.tag||3===a.tag||4===a.tag}function e(a){for(var b=a;;)if(g(b),null!==b.child&&4!==
-b.tag)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||b["return"]===a)return;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}function f(a){for(var b=a,c=!1,d=void 0,l=void 0;;){if(!c){c=b["return"];a:for(;;){null===c?k("160"):void 0;switch(c.tag){case 5:d=c.stateNode;l=!1;break a;case 3:d=c.stateNode.containerInfo;l=!0;break a;case 4:d=c.stateNode.containerInfo;l=!0;break a}c=c["return"]}c=!0}if(5===b.tag||6===b.tag)e(b),l?V(d,b.stateNode):
-Z(d,b.stateNode);else if(4===b.tag?d=b.stateNode.containerInfo:g(b),null!==b.child){b.child["return"]=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||b["return"]===a)return;b=b["return"];4===b.tag&&(c=!1)}b.sibling["return"]=b["return"];b=b.sibling}}function g(a){"function"===typeof cd&&cd(a);switch(a.tag){case 2:c(a);var d=a.stateNode;if("function"===typeof d.componentWillUnmount)try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(B){b(a,
-B)}break;case 5:c(a);break;case 7:e(a.stateNode);break;case 4:f(a)}}var h=a.commitMount,p=a.commitUpdate,I=a.resetTextContent,S=a.commitTextUpdate,m=a.appendChild,n=a.appendChildToContainer,U=a.insertBefore,q=a.insertInContainerBefore,Z=a.removeChild,V=a.removeChildFromContainer,w=a.getPublicInstance;return{commitPlacement:function(a){a:{for(var b=a["return"];null!==b;){if(d(b)){var c=b;break a}b=b["return"]}k("160");c=void 0}var e=b=void 0;switch(c.tag){case 5:b=c.stateNode;e=!1;break;case 3:b=c.stateNode.containerInfo;
-e=!0;break;case 4:b=c.stateNode.containerInfo;e=!0;break;default:k("161")}c.effectTag&16&&(I(b),c.effectTag&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c["return"]||d(c["return"])){c=null;break a}c=c["return"]}c.sibling["return"]=c["return"];for(c=c.sibling;5!==c.tag&&6!==c.tag;){if(c.effectTag&2)continue b;if(null===c.child||4===c.tag)continue b;else c.child["return"]=c,c=c.child}if(!(c.effectTag&2)){c=c.stateNode;break a}}for(var l=a;;){if(5===l.tag||6===l.tag)c?e?q(b,l.stateNode,c):
-U(b,l.stateNode,c):e?n(b,l.stateNode):m(b,l.stateNode);else if(4!==l.tag&&null!==l.child){l.child["return"]=l;l=l.child;continue}if(l===a)break;for(;null===l.sibling;){if(null===l["return"]||l["return"]===a)return;l=l["return"]}l.sibling["return"]=l["return"];l=l.sibling}},commitDeletion:function(a){f(a);a["return"]=null;a.child=null;a.alternate&&(a.alternate.child=null,a.alternate["return"]=null)},commitWork:function(a,b){switch(b.tag){case 2:break;case 5:var c=b.stateNode;if(null!=c){var d=b.memoizedProps;
-a=null!==a?a.memoizedProps:d;var e=b.type,f=b.updateQueue;b.updateQueue=null;null!==f&&p(c,f,e,a,d,b)}break;case 6:null===b.stateNode?k("162"):void 0;c=b.memoizedProps;S(b.stateNode,null!==a?a.memoizedProps:c,c);break;case 3:break;case 4:break;default:k("163")}},commitLifeCycles:function(a,b){switch(b.tag){case 2:var c=b.stateNode;if(b.effectTag&4)if(null===a)c.props=b.memoizedProps,c.state=b.memoizedState,c.componentDidMount();else{var d=a.memoizedProps;a=a.memoizedState;c.props=b.memoizedProps;
-c.state=b.memoizedState;c.componentDidUpdate(d,a)}b.effectTag&32&&null!==b.updateQueue&&dd(b,b.updateQueue,c);break;case 3:a=b.updateQueue;null!==a&&dd(b,a,b.child&&b.child.stateNode);break;case 5:c=b.stateNode;null===a&&b.effectTag&4&&h(c,b.type,b.memoizedProps,b);break;case 6:break;case 4:break;default:k("163")}},commitAttachRef:function(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:b(w(c));break;default:b(c)}}},commitDetachRef:function(a){a=a.ref;null!==a&&a(null)}}}function cd(a){"function"===
-typeof Ub&&Ub(a)}function dd(a,b,c){a=b.callbackList;if(null!==a)for(b.callbackList=null,b=0;b<a.length;b++){var d=a[b];"function"!==typeof d?k("191",d):void 0;d.call(c)}}function Xe(a,b,c){var d=a.createInstance,e=a.createTextInstance,f=a.appendInitialChild,g=a.finalizeInitialChildren,h=a.prepareUpdate,p=b.getRootHostContainer,I=b.popHostContext,S=b.getHostContext,m=b.popHostContainer,n=c.prepareToHydrateHostInstance,q=c.prepareToHydrateHostTextInstance,w=c.popHydrationState;return{completeWork:function(a,
-b,c){var C=b.pendingProps;if(null===C)C=b.memoizedProps;else if(5!==b.pendingWorkPriority||5===c)b.pendingProps=null;switch(b.tag){case 1:return null;case 2:return Zc(b),null;case 3:C=b.stateNode;C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null);if(null===a||null===a.child)w(b),b.effectTag&=-3;return null;case 5:I(b);c=p();var y=b.type;if(null!==a&&null!=b.stateNode){var B=a.memoizedProps,u=b.stateNode,l=S();C=h(u,y,B,C,c,l);if(b.updateQueue=C)b.effectTag|=4;a.ref!==b.ref&&(b.effectTag|=
-128)}else{if(!C)return null===b.stateNode?k("166"):void 0,null;a=S();if(w(b))n(b,c)&&(b.effectTag|=4);else{a=d(y,C,c,a,b);a:for(B=b.child;null!==B;){if(5===B.tag||6===B.tag)f(a,B.stateNode);else if(4!==B.tag&&null!==B.child){B=B.child;continue}if(B===b)break a;for(;null===B.sibling;){if(null===B["return"]||B["return"]===b)break a;B=B["return"]}B=B.sibling}g(a,y,C,c)&&(b.effectTag|=4);b.stateNode=a}null!==b.ref&&(b.effectTag|=128)}return null;case 6:if(a&&null!=b.stateNode)a.memoizedProps!==C&&(b.effectTag|=
-4);else{if("string"!==typeof C)return null===b.stateNode?k("166"):void 0,null;a=p();c=S();w(b)?q(b)&&(b.effectTag|=4):b.stateNode=e(C,a,c,b)}return null;case 7:(C=b.memoizedProps)?void 0:k("165");b.tag=8;c=[];a:for((y=b.stateNode)&&(y["return"]=b);null!==y;){if(5===y.tag||6===y.tag||4===y.tag)k("164");else if(9===y.tag)c.push(y.type);else if(null!==y.child){y.child["return"]=y;y=y.child;continue}for(;null===y.sibling;){if(null===y["return"]||y["return"]===b)break a;y=y["return"]}y.sibling["return"]=
-y["return"];y=y.sibling}y=C.handler;C=y(C.props,c);b.child=Vb(b,null!==a?a.child:null,C,b.pendingWorkPriority);return b.child;case 8:return b.tag=7,null;case 9:return null;case 10:return null;case 4:return b.effectTag|=4,m(b),null;case 0:k("167");default:k("156")}}}}function We(a,b,c,d,e){function f(a,b,c){g(a,b,c,b.pendingWorkPriority)}function g(a,b,c,d){b.child=null===a?Wb(b,b.child,c,d):a.child===b.child?Vb(b,b.child,c,d):Xb(b,b.child,c,d)}function h(a,b){var c=b.ref;null===c||a&&a.ref===c||(b.effectTag|=
-128)}function p(a,b,c,d){h(a,b);if(!c)return d&&ed(b,!1),I(a,b);c=b.stateNode;Ze.current=b;var e=c.render();b.effectTag|=1;f(a,b,e);b.memoizedState=c.state;b.memoizedProps=c.props;d&&ed(b,!0);return b.child}function I(a,b){null!==a&&b.child!==a.child?k("153"):void 0;if(null!==b.child){a=b.child;var c=Yb(a,a.pendingWorkPriority);c.pendingProps=a.pendingProps;b.child=c;for(c["return"]=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Yb(a,a.pendingWorkPriority),c.pendingProps=a.pendingProps,c["return"]=b;
-c.sibling=null}return b.child}function m(a,b){switch(b.tag){case 2:gb(b);break;case 4:x(b,b.stateNode.containerInfo)}return null}var C=a.shouldSetTextContent,n=a.useSyncScheduling,q=a.shouldDeprioritizeSubtree,w=b.pushHostContext,x=b.pushHostContainer,D=c.enterHydrationState,z=c.resetHydrationState,E=c.tryToClaimNextHydratableInstance;a=$e(d,e,function(a,b){a.memoizedProps=b},function(a,b){a.memoizedState=b});var y=a.adoptClassInstance,B=a.constructClassInstance,u=a.mountClassInstance,l=a.updateClassInstance;
-return{beginWork:function(a,b,c){if(0===b.pendingWorkPriority||b.pendingWorkPriority>c)return m(a,b);switch(b.tag){case 0:null!==a?k("155"):void 0;var d=b.type,e=b.pendingProps,g=Ca(b);g=Da(b,g);d=d(e,g);b.effectTag|=1;"object"===typeof d&&null!==d&&"function"===typeof d.render?(b.tag=2,e=gb(b),y(b,d),u(b,c),b=p(a,b,!0,e)):(b.tag=1,f(a,b,d),b.memoizedProps=e,b=b.child);return b;case 1:a:{e=b.type;c=b.pendingProps;d=b.memoizedProps;if(T.current)null===c&&(c=d);else if(null===c||d===c){b=I(a,b);break a}d=
-Ca(b);d=Da(b,d);e=e(c,d);b.effectTag|=1;f(a,b,e);b.memoizedProps=c;b=b.child}return b;case 2:return e=gb(b),d=void 0,null===a?b.stateNode?k("153"):(B(b,b.pendingProps),u(b,c),d=!0):d=l(a,b,c),p(a,b,d,e);case 3:return e=b.stateNode,e.pendingContext?fd(b,e.pendingContext,e.pendingContext!==e.context):e.context&&fd(b,e.context,!1),x(b,e.containerInfo),d=b.updateQueue,null!==d?(e=b.memoizedState,d=Zb(a,b,d,null,e,null,c),e===d?(z(),b=I(a,b)):(e=d.element,null!==a&&null!==a.child||!D(b)?(z(),f(a,b,e)):
-(b.effectTag|=2,b.child=Wb(b,b.child,e,c)),b.memoizedState=d,b=b.child)):(z(),b=I(a,b)),b;case 5:w(b);null===a&&E(b);e=b.type;var r=b.memoizedProps;d=b.pendingProps;null===d&&(d=r,null===d?k("154"):void 0);g=null!==a?a.memoizedProps:null;T.current||null!==d&&r!==d?(r=d.children,C(e,d)?r=null:g&&C(e,g)&&(b.effectTag|=16),h(a,b),5!==c&&!n&&q(e,d)?(b.pendingWorkPriority=5,b=null):(f(a,b,r),b.memoizedProps=d,b=b.child)):b=I(a,b);return b;case 6:return null===a&&E(b),a=b.pendingProps,null===a&&(a=b.memoizedProps),
-b.memoizedProps=a,null;case 8:b.tag=7;case 7:c=b.pendingProps;if(T.current)null===c&&(c=a&&a.memoizedProps,null===c?k("154"):void 0);else if(null===c||b.memoizedProps===c)c=b.memoizedProps;e=c.children;d=b.pendingWorkPriority;b.stateNode=null===a?Wb(b,b.stateNode,e,d):a.child===b.child?Vb(b,b.stateNode,e,d):Xb(b,b.stateNode,e,d);b.memoizedProps=c;return b.stateNode;case 9:return null;case 4:a:{x(b,b.stateNode.containerInfo);c=b.pendingWorkPriority;e=b.pendingProps;if(T.current)null===e&&(e=a&&a.memoizedProps,
-null==e?k("154"):void 0);else if(null===e||b.memoizedProps===e){b=I(a,b);break a}null===a?b.child=Xb(b,b.child,e,c):f(a,b,e);b.memoizedProps=e;b=b.child}return b;case 10:a:{c=b.pendingProps;if(T.current)null===c&&(c=b.memoizedProps);else if(null===c||b.memoizedProps===c){b=I(a,b);break a}f(a,b,c);b.memoizedProps=c;b=b.child}return b;default:k("156")}},beginFailedWork:function(a,b,c){switch(b.tag){case 2:gb(b);break;case 3:x(b,b.stateNode.containerInfo);break;default:k("157")}b.effectTag|=64;null===
-a?b.child=null:b.child!==a.child&&(b.child=a.child);if(0===b.pendingWorkPriority||b.pendingWorkPriority>c)return m(a,b);b.firstEffect=null;b.lastEffect=null;g(a,b,null,c);2===b.tag&&(a=b.stateNode,b.memoizedProps=a.props,b.memoizedState=a.state);return b.child}}}function ed(a,b){var c=a.stateNode;c?void 0:k("169");if(b){var d=gd(a,eb,!0);c.__reactInternalMemoizedMergedChildContext=d;N(T,a);N(da,a);O(da,d,a)}else N(T,a);O(T,b,a)}function fd(a,b,c){null!=da.cursor?k("168"):void 0;O(da,b,a);O(T,c,a)}
-function gb(a){if(!Ea(a))return!1;var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||ba;eb=da.current;O(da,b,a);O(T,T.current,a);return!0}function $e(a,b,c,d){function e(a,b){b.updater=f;a.stateNode=b;ha.set(b,a)}var f={isMounted:af,enqueueSetState:function(c,d,e){c=ha.get(c);var f=b(c,!1);hb(c,{priorityLevel:f,partialState:d,callback:void 0===e?null:e,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null});a(c,f)},enqueueReplaceState:function(c,d,e){c=ha.get(c);var f=b(c,!1);hb(c,
-{priorityLevel:f,partialState:d,callback:void 0===e?null:e,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null});a(c,f)},enqueueForceUpdate:function(c,d){c=ha.get(c);var e=b(c,!1);hb(c,{priorityLevel:e,partialState:null,callback:void 0===d?null:d,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null});a(c,e)}};return{adoptClassInstance:e,constructClassInstance:function(a,b){var c=a.type,d=Ca(a),f=2===a.tag&&null!=a.type.contextTypes,g=f?Da(a,d):ba;b=new c(b,g);e(a,b);f&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=
-d,a.__reactInternalMemoizedMaskedChildContext=g);return b},mountClassInstance:function(a,b){var c=a.alternate,d=a.stateNode,e=d.state||null,g=a.pendingProps;g?void 0:k("158");var h=Ca(a);d.props=g;d.state=e;d.refs=ba;d.context=Da(a,h);ib.enableAsyncSubtreeAPI&&null!=a.type&&null!=a.type.prototype&&!0===a.type.prototype.unstable_isAsyncReactComponent&&(a.internalContextTag|=1);"function"===typeof d.componentWillMount&&(h=d.state,d.componentWillMount(),h!==d.state&&f.enqueueReplaceState(d,d.state,null),
-h=a.updateQueue,null!==h&&(d.state=Zb(c,a,h,d,e,g,b)));"function"===typeof d.componentDidMount&&(a.effectTag|=4)},updateClassInstance:function(a,b,e){var g=b.stateNode;g.props=b.memoizedProps;g.state=b.memoizedState;var h=b.memoizedProps,p=b.pendingProps;p||(p=h,null==p?k("159"):void 0);var m=g.context,n=Ca(b);n=Da(b,n);"function"!==typeof g.componentWillReceiveProps||h===p&&m===n||(m=g.state,g.componentWillReceiveProps(p,n),g.state!==m&&f.enqueueReplaceState(g,g.state,null));m=b.memoizedState;e=
-null!==b.updateQueue?Zb(a,b,b.updateQueue,g,m,p,e):m;if(!(h!==p||m!==e||T.current||null!==b.updateQueue&&b.updateQueue.hasForceUpdate))return"function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&m===a.memoizedState||(b.effectTag|=4),!1;var q=p;if(null===h||null!==b.updateQueue&&b.updateQueue.hasForceUpdate)q=!0;else{var w=b.stateNode,x=b.type;q="function"===typeof w.shouldComponentUpdate?w.shouldComponentUpdate(q,e,n):x.prototype&&x.prototype.isPureReactComponent?!$b(h,q)||!$b(m,e):!0}q?
-("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(p,e,n),"function"===typeof g.componentDidUpdate&&(b.effectTag|=4)):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&m===a.memoizedState||(b.effectTag|=4),c(b,p),d(b,e));g.props=p;g.state=e;g.context=n;return q}}}function $b(a,b){if(hd(a,b))return!0;if("object"!==typeof a||null===a||"object"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++)if(!bf.call(b,
-c[d])||!hd(a[c[d]],b[c[d]]))return!1;return!0}function ac(a,b,c){b=new M(4,a.key,b);b.pendingProps=a.children||[];b.pendingWorkPriority=c;b.stateNode={containerInfo:a.containerInfo,implementation:a.implementation};return b}function bc(a,b,c){b=new M(7,a.key,b);b.type=a.handler;b.pendingProps=a;b.pendingWorkPriority=c;return b}function cc(a,b,c){b=new M(6,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b}function id(a,b,c){b=new M(10,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b}
-function dc(a,b,c){var d=a.type,e=a.key,f=void 0;"function"===typeof d?(f=d.prototype&&d.prototype.isReactComponent?new M(2,e,b):new M(0,e,b),f.type=d):"string"===typeof d?(f=new M(5,e,b),f.type=d):"object"===typeof d&&null!==d&&"number"===typeof d.tag?f=d:k("130",null==d?d:typeof d,"");b=f;b.pendingProps=a.props;b.pendingWorkPriority=c;return b}function Vc(a,b){var c=a.alternate;null===c?(c=new M(a.tag,a.key,a.internalContextTag),c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):
-(c.effectTag=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.pendingWorkPriority=b;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}function Zc(a){Ea(a)&&(N(T,a),N(da,a))}function Da(a,b){var c=a.type.contextTypes;if(!c)return ba;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=
-b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function Ca(a){return Ea(a)?eb:da.current}function O(a,b){ca++;db[ca]=a.current;a.current=b}function N(a){0>ca||(a.current=db[ca],db[ca]=null,ca--)}function Zb(a,b,c,d,e,f,g){null!==a&&a.updateQueue===c&&(c=b.updateQueue={first:c.first,last:c.last,callbackList:null,hasForceUpdate:!1});a=c.callbackList;for(var h=c.hasForceUpdate,k=!0,m=c.first;null!==m&&0>=ec(m.priorityLevel,
-g);){c.first=m.next;null===c.first&&(c.last=null);var n;if(m.isReplace)e=jd(m,d,e,f),k=!0;else if(n=jd(m,d,e,f))e=k?D({},e,n):D(e,n),k=!1;m.isForced&&(h=!0);null===m.callback||m.isTopLevelUnmount&&null!==m.next||(a=null!==a?a:[],a.push(m.callback),b.effectTag|=32);m=m.next}c.callbackList=a;c.hasForceUpdate=h;null!==c.first||null!==a||h||(b.updateQueue=null);return e}function kd(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function fc(a,
-b){return 0<=a.indexOf("-")||null!=b.is}function gc(a,b){b&&(cf[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML?k("137",a,""):void 0),null!=b.dangerouslySetInnerHTML&&(null!=b.children?k("60"):void 0,"object"===typeof b.dangerouslySetInnerHTML&&"__html"in b.dangerouslySetInnerHTML?void 0:k("61")),null!=b.style&&"object"!==typeof b.style?k("62",""):void 0)}function jb(a){if(hc[a])return hc[a];if(!sa[a])return a;var b=sa[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in ld)return hc[a]=b[c];return""}
-function Fa(a,b){if(!m||b&&!("addEventListener"in document))return!1;b="on"+a;var c=b in document;c||(c=document.createElement("div"),c.setAttribute(b,"return;"),c="function"===typeof c[b]);!c&&md&&"wheel"===a&&(c=document.implementation.hasFeature("Events.wheel","3.0"));return c}function df(a){return nd(a,!1)}function ef(a){return nd(a,!0)}function nd(a,b){a&&(Ga.executeDispatchesInOrder(a,b),a.isPersistent()||a.constructor.release(a))}function Ha(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,
-a)}function ta(a,b){null==b?k("30"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function kb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}function od(a,b){return a(b)}function ic(a,b,c,d,e,f){return a(b,c,d,e,f)}function ff(){if(w._hasRethrowError){var a=w._rethrowError;w._rethrowError=null;w._hasRethrowError=
-!1;throw a;}}function pd(a,b,c,d,e,f,g,h,k){w._hasCaughtError=!1;w._caughtError=null;var p=Array.prototype.slice.call(arguments,3);try{b.apply(c,p)}catch(S){w._caughtError=S,w._hasCaughtError=!0}}function Ba(a){if("function"===typeof a.getName)return a.getName();if("number"===typeof a.tag){a=a.type;if("string"===typeof a)return a;if("function"===typeof a)return a.displayName||a.name}return null}function la(){}function qd(a,b,c,d,e,f,g,h){if(!a){if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
-else{var k=[c,d,e,f,g,h],m=0;a=Error(b.replace(/%s/g,function(){return k[m++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}function k(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";
-b.framesToPop=1;throw b;}function Mc(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function rd(){if(lb)for(var a in ua){var b=ua[a],c=lb.indexOf(a);-1<c?void 0:k("96",a);if(!ia.plugins[c]){b.extractEvents?void 0:k("97",a);ia.plugins[c]=b;c=b.eventTypes;for(var d in c){var e=void 0;var f=c[d],g=b,h=d;ia.eventNameDispatchConfigs.hasOwnProperty(h)?k("99",h):void 0;ia.eventNameDispatchConfigs[h]=
-f;var p=f.phasedRegistrationNames;if(p){for(e in p)p.hasOwnProperty(e)&&sd(p[e],g,h);e=!0}else f.registrationName?(sd(f.registrationName,g,h),e=!0):e=!1;e?void 0:k("98",d,a)}}}}function sd(a,b,c){ia.registrationNameModules[a]?k("100",a):void 0;ia.registrationNameModules[a]=b;ia.registrationNameDependencies[a]=b.eventTypes[c].dependencies}function mb(a){return function(){return a}}function Ia(a,b){return(a&b)===b}function td(a){for(var b;b=a._renderedComponent;)a=b;return a}function ud(a,b){a=td(a);
-a._hostNode=b;b[R]=a}function jc(a,b){if(!(a._flags&vd.hasCachedChildNodes)){var c=a._renderedChildren;b=b.firstChild;var d;a:for(d in c)if(c.hasOwnProperty(d)){var e=c[d],f=td(e)._domID;if(0!==f){for(;null!==b;b=b.nextSibling){var g=b,h=f;if(1===g.nodeType&&g.getAttribute(gf)===""+h||8===g.nodeType&&g.nodeValue===" react-text: "+h+" "||8===g.nodeType&&g.nodeValue===" react-empty: "+h+" "){ud(e,b);continue a}}k("32",f)}}a._flags|=vd.hasCachedChildNodes}}function wd(a){if(a[R])return a[R];for(var b=
-[];!a[R];)if(b.push(a),a.parentNode)a=a.parentNode;else return null;var c=a[R];if(5===c.tag||6===c.tag)return c;for(;a&&(c=a[R]);a=b.pop()){var d=c;b.length&&jc(c,a)}return d}function nb(a){var b=a;if(a.alternate)for(;b["return"];)b=b["return"];else{if(0!==(b.effectTag&2))return 1;for(;b["return"];)if(b=b["return"],0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function xd(a){2!==nb(a)?k("188"):void 0}function kc(a){var b=a.alternate;if(!b)return b=nb(a),3===b?k("188"):void 0,1===b?null:a;for(var c=
-a,d=b;;){var e=c["return"],f=e?e.alternate:null;if(!e||!f)break;if(e.child===f.child){for(var g=e.child;g;){if(g===c)return xd(e),a;if(g===d)return xd(e),b;g=g.sibling}k("188")}if(c["return"]!==d["return"])c=e,d=f;else{g=!1;for(var h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}g?void 0:k("189")}}c.alternate!==d?k("190"):void 0}3!==c.tag?k("188"):void 0;return c.stateNode.current===
-c?a:b}function yd(a,b,c,d){b=a.type||"unknown-event";a.currentTarget=lc.getNodeFromInstance(d);zd.invokeGuardedCallbackAndCatchFirstError(b,c,void 0,a);a.currentTarget=null}function Ad(a){if(a=Ga.getInstanceFromNode(a))if("number"===typeof a.tag){ob&&"function"===typeof ob.restoreControlledState?void 0:k("194");var b=Ga.getFiberCurrentPropsFromNode(a.stateNode);ob.restoreControlledState(a.stateNode,a.type,b)}else"function"!==typeof a.restoreControlledState?k("195"):void 0,a.restoreControlledState()}
-function Bd(a,b){return od(a,b)}function hf(a){var b=a.targetInst;do{if(!b){a.ancestors.push(b);break}var c=b;if("number"===typeof c.tag){for(;c["return"];)c=c["return"];c=3!==c.tag?null:c.stateNode.containerInfo}else{for(;c._hostParent;)c=c._hostParent;c=x.getNodeFromInstance(c).parentNode}if(!c)break;a.ancestors.push(b);b=x.getClosestInstanceFromNode(c)}while(b);for(c=0;c<a.ancestors.length;c++)b=a.ancestors[c],ja._handleTopLevel(a.topLevelType,b,a.nativeEvent,kb(a.nativeEvent))}function Cd(a,b,
-c){switch(a){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":return!(!c.disabled||"button"!==b&&"input"!==b&&"select"!==b&&"textarea"!==b);default:return!1}}function pb(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;c["ms"+a]="MS"+b;c["O"+a]="o"+b.toLowerCase();return c}function Dd(a){Object.prototype.hasOwnProperty.call(a,
-qb)||(a[qb]=jf++,Ed[a[qb]]={});return Ed[a[qb]]}function kf(a){if(Fd.hasOwnProperty(a))return!0;if(Gd.hasOwnProperty(a))return!1;if(lf.test(a))return Fd[a]=!0;Gd[a]=!0;return!1}function Hd(){return null}function mf(a){var b="";ab.Children.forEach(a,function(a){null==a||"string"!==typeof a&&"number"!==typeof a||(b+=a)});return b}function va(a,b,c){a=a.options;if(b){b={};for(var d=0;d<c.length;d++)b["$"+c[d]]=!0;for(c=0;c<a.length;c++)d=b.hasOwnProperty("$"+a[c].value),a[c].selected!==d&&(a[c].selected=
-d)}else{c=""+c;for(b=0;b<a.length;b++)if(a[b].value===c){a[b].selected=!0;return}a.length&&(a[0].selected=!0)}}function Id(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}function nf(a){var b=Id(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&"function"===typeof c.get&&"function"===typeof c.set)return Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:!0,get:function(){return c.get.call(this)},
-set:function(a){d=""+a;c.set.call(this,a)}}),{getValue:function(){return d},setValue:function(a){d=""+a},stopTracking:function(){a._valueTracker=null;delete a[b]}}}function W(a,b){of(b,9===a.nodeType||11===a.nodeType?a:a.ownerDocument)}function ec(a,b){return 2!==a&&1!==a||2!==b&&1!==b?0===a&&0!==b?-255:0!==a&&0===b?255:a-b:0}function Jd(){return{first:null,last:null,hasForceUpdate:!1,callbackList:null}}function mc(a,b,c,d){null!==c?c.next=b:(b.next=a.first,a.first=b);null!==d?b.next=d:a.last=b}function Kd(a,
-b){b=b.priorityLevel;var c=null;if(null!==a.last&&0>=ec(a.last.priorityLevel,b))c=a.last;else for(a=a.first;null!==a&&0>=ec(a.priorityLevel,b);)c=a,a=a.next;return c}function Ld(a){var b=a.alternate,c=a.updateQueue;null===c&&(c=a.updateQueue=Jd());null!==b?(a=b.updateQueue,null===a&&(a=b.updateQueue=Jd())):a=null;return[c,a!==c?a:null]}function hb(a,b){var c=Ld(a);a=c[0];c=c[1];var d=Kd(a,b),e=null!==d?d.next:a.first;if(null===c)return mc(a,b,d,e),null;var f=Kd(c,b),g=null!==f?f.next:c.first;mc(a,
-b,d,e);if(e===g&&null!==e||d===f&&null!==d)return null===f&&(c.first=b),null===g&&(c.last=null),null;b={priorityLevel:b.priorityLevel,partialState:b.partialState,callback:b.callback,isReplace:b.isReplace,isForced:b.isForced,isTopLevelUnmount:b.isTopLevelUnmount,next:null};mc(c,b,f,g);return b}function jd(a,b,c,d){a=a.partialState;return"function"===typeof a?a.call(b,c,d):a}function Ea(a){return 2===a.tag&&null!=a.type.childContextTypes}function gd(a,b){var c=a.stateNode,d=a.type.childContextTypes;
-if("function"!==typeof c.getChildContext)return b;c=c.getChildContext();for(var e in c)e in d?void 0:k("108",Ba(a)||"Unknown",e);return D({},b,c)}function M(a,b,c){this.tag=a;this.key=b;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=c;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.pendingWorkPriority=0;this.alternate=null}
-function Ja(a){if(null===a||"undefined"===typeof a)return null;a=Md&&a[Md]||a["@@iterator"];return"function"===typeof a?a:null}function Ka(a,b){var c=b.ref;if(null!==c&&"function"!==typeof c){if(b._owner){b=b._owner;var d=void 0;b&&("number"===typeof b.tag?(2!==b.tag?k("110"):void 0,d=b.stateNode):d=b.getPublicInstance());d?void 0:k("147",c);var e=""+c;if(null!==a&&null!==a.ref&&a.ref._stringRef===e)return a.ref;a=function(a){var b=d.refs===ba?d.refs={}:d.refs;null===a?delete b[e]:b[e]=a};a._stringRef=
-e;return a}"string"!==typeof c?k("148"):void 0;b._owner?void 0:k("149",c)}return c}function rb(a,b){"textarea"!==a.type&&k("31","[object Object]"===Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b,"")}function nc(a,b){function c(c,d){if(b){if(!a){if(null===d.alternate)return;d=d.alternate}var e=c.lastEffect;null!==e?(e.nextEffect=d,c.lastEffect=d):c.firstEffect=c.lastEffect=d;d.nextEffect=null;d.effectTag=8}}function d(a,d){if(!b)return null;for(;null!==d;)c(a,
-d),d=d.sibling;return null}function e(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function f(b,c){if(a)return b=Yb(b,c),b.index=0,b.sibling=null,b;b.pendingWorkPriority=c;b.effectTag=0;b.index=0;b.sibling=null;return b}function g(a,c,d){a.index=d;if(!b)return c;d=a.alternate;if(null!==d)return d=d.index,d<c?(a.effectTag=2,c):d;a.effectTag=2;return c}function h(a){b&&null===a.alternate&&(a.effectTag=2);return a}function p(a,b,c,d){if(null===b||6!==
-b.tag)return c=cc(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function m(a,b,c,d){if(null===b||b.type!==c.type)return d=dc(c,a.internalContextTag,d),d.ref=Ka(b,c),d["return"]=a,d;d=f(b,d);d.ref=Ka(b,c);d.pendingProps=c.props;d["return"]=a;return d}function n(a,b,c,d){if(null===b||7!==b.tag)return c=bc(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function q(a,b,c,d){if(null===b||9!==b.tag)return b=new M(9,
-null,a.internalContextTag),b.type=c.value,b["return"]=a,b;b=f(b,d);b.type=c.value;b["return"]=a;return b}function w(a,b,c,d){if(null===b||4!==b.tag||b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return c=ac(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c.children||[];b["return"]=a;return b}function x(a,b,c,d){if(null===b||10!==b.tag)return c=id(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}
-function z(a,b,c){if("string"===typeof b||"number"===typeof b)return b=cc(""+b,a.internalContextTag,c),b["return"]=a,b;if("object"===typeof b&&null!==b){switch(b.$$typeof){case La:return c=dc(b,a.internalContextTag,c),c.ref=Ka(null,b),c["return"]=a,c;case sb:return b=bc(b,a.internalContextTag,c),b["return"]=a,b;case tb:return c=new M(9,null,a.internalContextTag),c.type=b.value,c["return"]=a,c;case Ma:return b=ac(b,a.internalContextTag,c),b["return"]=a,b}if(ub(b)||Ja(b))return b=id(b,a.internalContextTag,
-c),b["return"]=a,b;rb(a,b)}return null}function D(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c||"number"===typeof c)return null!==e?null:p(a,b,""+c,d);if("object"===typeof c&&null!==c){switch(c.$$typeof){case La:return c.key===e?m(a,b,c,d):null;case sb:return c.key===e?n(a,b,c,d):null;case tb:return null===e?q(a,b,c,d):null;case Ma:return c.key===e?w(a,b,c,d):null}if(ub(c)||Ja(c))return null!==e?null:x(a,b,c,d);rb(a,c)}return null}function E(a,b,c,d,e){if("string"===typeof d||"number"===
-typeof d)return a=a.get(c)||null,p(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case La:return a=a.get(null===d.key?c:d.key)||null,m(b,a,d,e);case sb:return a=a.get(null===d.key?c:d.key)||null,n(b,a,d,e);case tb:return a=a.get(c)||null,q(b,a,d,e);case Ma:return a=a.get(null===d.key?c:d.key)||null,w(b,a,d,e)}if(ub(d)||Ja(d))return a=a.get(c)||null,x(b,a,d,e);rb(b,d)}return null}function F(a,f,h,k){for(var l=null,r=null,p=f,u=f=0,m=null;null!==p&&u<h.length;u++){p.index>u?(m=p,p=
-null):m=p.sibling;var t=D(a,p,h[u],k);if(null===t){null===p&&(p=m);break}b&&p&&null===t.alternate&&c(a,p);f=g(t,f,u);null===r?l=t:r.sibling=t;r=t;p=m}if(u===h.length)return d(a,p),l;if(null===p){for(;u<h.length;u++)if(p=z(a,h[u],k))f=g(p,f,u),null===r?l=p:r.sibling=p,r=p;return l}for(p=e(a,p);u<h.length;u++)if(m=E(p,a,u,h[u],k)){if(b&&null!==m.alternate)p["delete"](null===m.key?u:m.key);f=g(m,f,u);null===r?l=m:r.sibling=m;r=m}b&&p.forEach(function(b){return c(a,b)});return l}function G(a,f,h,p){var l=
-Ja(h);"function"!==typeof l?k("150"):void 0;h=l.call(h);null==h?k("151"):void 0;for(var r=l=null,m=f,u=f=0,t=null,n=h.next();null!==m&&!n.done;u++,n=h.next()){m.index>u?(t=m,m=null):t=m.sibling;var q=D(a,m,n.value,p);if(null===q){m||(m=t);break}b&&m&&null===q.alternate&&c(a,m);f=g(q,f,u);null===r?l=q:r.sibling=q;r=q;m=t}if(n.done)return d(a,m),l;if(null===m){for(;!n.done;u++,n=h.next())n=z(a,n.value,p),null!==n&&(f=g(n,f,u),null===r?l=n:r.sibling=n,r=n);return l}for(m=e(a,m);!n.done;u++,n=h.next())if(n=
-E(m,a,u,n.value,p),null!==n){if(b&&null!==n.alternate)m["delete"](null===n.key?u:n.key);f=g(n,f,u);null===r?l=n:r.sibling=n;r=n}b&&m.forEach(function(b){return c(a,b)});return l}function y(a,b,e,g){for(var h=e.key,l=b;null!==l;){if(l.key===h){if(l.type===e.type)return d(a,l.sibling),b=f(l,g),b.ref=Ka(l,e),b.pendingProps=e.props,b["return"]=a,b;d(a,l);break}else c(a,l);l=l.sibling}l=dc(e,a.internalContextTag,g);l.ref=Ka(b,e);l["return"]=a;return l}function B(a,b,e,g){for(var h=e.key;null!==b;){if(b.key===
-h){if(4===b.tag&&b.stateNode.containerInfo===e.containerInfo&&b.stateNode.implementation===e.implementation)return d(a,b.sibling),g=f(b,g),g.pendingProps=e.children||[],g["return"]=a,g;d(a,b);break}else c(a,b);b=b.sibling}e=ac(e,a.internalContextTag,g);e["return"]=a;return e}return function(a,b,e,g){var l=ib.disableNewFiberFeatures,p="object"===typeof e&&null!==e;if(p)if(l)switch(e.$$typeof){case La:return h(y(a,b,e,g));case Ma:return h(B(a,b,e,g))}else switch(e.$$typeof){case La:return h(y(a,b,e,
-g));case sb:a:{for(l=e.key;null!==b;){if(b.key===l)if(7===b.tag){d(a,b.sibling);b=f(b,g);b.pendingProps=e;b["return"]=a;a=b;break a}else{d(a,b);break}else c(a,b);b=b.sibling}e=bc(e,a.internalContextTag,g);e["return"]=a;a=e}return h(a);case tb:a:{if(null!==b)if(9===b.tag){d(a,b.sibling);b=f(b,g);b.type=e.value;b["return"]=a;a=b;break a}else d(a,b);b=new M(9,null,a.internalContextTag);b.type=e.value;b["return"]=a;a=b}return h(a);case Ma:return h(B(a,b,e,g))}if(l)switch(a.tag){case 2:var m=a.type;null!==
-e&&!1!==e?k("109",m.displayName||m.name||"Component"):void 0;break;case 1:m=a.type,null!==e&&!1!==e?k("105",m.displayName||m.name||"Component"):void 0}if("string"===typeof e||"number"===typeof e)return e=""+e,null!==b&&6===b.tag?(d(a,b.sibling),b=f(b,g),b.pendingProps=e,b["return"]=a,a=b):(d(a,b),e=cc(e,a.internalContextTag,g),e["return"]=a,a=e),h(a);if(ub(e))return F(a,b,e,g);if(Ja(e))return G(a,b,e,g);p&&rb(a,e);if(!l&&"undefined"===typeof e)switch(a.tag){case 2:case 1:e=a.type,k("152",e.displayName||
-e.name||"Component")}return d(a,b)}}function hd(a,b){return a===b?0!==a||0!==b||1/a===1/b:a!==a&&b!==b}function Nd(a){return function(b){try{return a(b)}catch(c){}}}function oc(a){if(!a)return ba;a=ha.get(a);return"number"===typeof a.tag?Uc(a):a._processChildContext(a._context)}function Tc(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Od(a,b){return a&&b?a===b?!0:Qc(a)?!1:Qc(b)?Od(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):
-!1:!1}function P(a){if(void 0!==a._hostParent)return a._hostParent;if("number"===typeof a.tag){do a=a["return"];while(a&&5!==a.tag);if(a)return a}return null}function Pd(a,b){for(var c=0,d=a;d;d=P(d))c++;d=0;for(var e=b;e;e=P(e))d++;for(;0<c-d;)a=P(a),c--;for(;0<d-c;)b=P(b),d--;for(;c--;){if(a===b||a===b.alternate)return a;a=P(a);b=P(b)}return null}function Qd(a,b,c){if(b=Rd(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=ta(c._dispatchListeners,b),c._dispatchInstances=ta(c._dispatchInstances,
-a)}function pf(a){a&&a.dispatchConfig.phasedRegistrationNames&&vb.traverseTwoPhase(a._targetInst,Qd,a)}function qf(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?vb.getParentInstance(b):null;vb.traverseTwoPhase(b,Qd,a)}}function Sd(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=Rd(a,c.dispatchConfig.registrationName))&&(c._dispatchListeners=ta(c._dispatchListeners,b),c._dispatchInstances=ta(c._dispatchInstances,a))}function rf(a){a&&a.dispatchConfig.registrationName&&
-Sd(a._targetInst,null,a)}function Na(a,b,c,d){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=d:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?z.thatReturnsTrue:z.thatReturnsFalse;this.isPropagationStopped=z.thatReturnsFalse;return this}function sf(a,b,c,d){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,
-a,b,c,d);return e}return new this(a,b,c,d)}function tf(a){a instanceof this?void 0:k("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function Td(a){a.eventPool=[];a.getPooled=sf;a.release=tf}function Ud(a,b,c,d){return E.call(this,a,b,c,d)}function Vd(a,b,c,d){return E.call(this,a,b,c,d)}function uf(){var a=window.opera;return"object"===typeof a&&"function"===typeof a.version&&12>=parseInt(a.version(),10)}function Wd(a,b){switch(a){case "topKeyUp":return-1!==vf.indexOf(b.keyCode);
-case "topKeyDown":return 229!==b.keyCode;case "topKeyPress":case "topMouseDown":case "topBlur":return!0;default:return!1}}function Xd(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}function wf(a,b){switch(a){case "topCompositionEnd":return Xd(b);case "topKeyPress":if(32!==b.which)return null;Yd=!0;return Zd;case "topTextInput":return a=b.data,a===Zd&&Yd?null:a;default:return null}}function xf(a,b){if(wa)return"topCompositionEnd"===a||!pc&&Wd(a,b)?(a=wb.getData(),wb.reset(),wa=!1,
-a):null;switch(a){case "topPaste":return null;case "topKeyPress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case "topCompositionEnd":return $d?null:b.data;default:return null}}function ae(a,b,c){a=E.getPooled(be.change,a,b,c);a.type="change";xb.enqueueStateRestore(c);ma.accumulateTwoPhaseDispatches(a);return a}function yf(a){X.enqueueEvents(a);X.processEventQueue(!1)}function yb(a){var b=
-x.getNodeFromInstance(a);if(xa.updateValueIfChanged(b))return a}function zf(a,b){if("topChange"===a)return b}function ce(){Oa&&(Oa.detachEvent("onpropertychange",de),Pa=Oa=null)}function de(a){"value"===a.propertyName&&yb(Pa)&&(a=ae(Pa,a,kb(a)),zb.batchedUpdates(yf,a))}function Af(a,b,c){"topFocus"===a?(ce(),Oa=b,Pa=c,Oa.attachEvent("onpropertychange",de)):"topBlur"===a&&ce()}function Bf(a){if("topSelectionChange"===a||"topKeyUp"===a||"topKeyDown"===a)return yb(Pa)}function Cf(a,b){if("topClick"===
-a)return yb(b)}function Df(a,b){if("topInput"===a||"topChange"===a)return yb(b)}function ee(a,b,c,d){return E.call(this,a,b,c,d)}function Me(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=Ef[a])?!!b[a]:!1}function fe(a,b,c,d){return aa.call(this,a,b,c,d)}function ge(a,b){if(qc||null==ya||ya!==Pb())return null;var c=ya;"selectionStart"in c&&rc.hasSelectionCapabilities(c)?c={start:c.selectionStart,end:c.selectionEnd}:window.getSelection?(c=window.getSelection(),c={anchorNode:c.anchorNode,
-anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}):c=void 0;return Qa&&$b(Qa,c)?null:(Qa=c,a=E.getPooled(he.select,sc,a,b),a.type="select",a.target=ya,ma.accumulateTwoPhaseDispatches(a),a)}function ie(a,b,c,d){return E.call(this,a,b,c,d)}function je(a,b,c,d){return E.call(this,a,b,c,d)}function ke(a,b,c,d){return aa.call(this,a,b,c,d)}function le(a,b,c,d){return aa.call(this,a,b,c,d)}function me(a,b,c,d){return na.call(this,a,b,c,d)}function ne(a,b,c,d){return aa.call(this,
-a,b,c,d)}function oe(a,b,c,d){return E.call(this,a,b,c,d)}function pe(a,b,c,d){return na.call(this,a,b,c,d)}function qe(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function Ff(a){a=a?9===a.nodeType?a.documentElement:a.firstChild:null;return!(!a||1!==a.nodeType||!a.hasAttribute(Gf))}function Ab(a,b,c,d,e){qe(c)?void 0:k("200");var f=c._reactRootContainer;if(f)G.updateContainer(b,f,a,e);else{if(!d&&!Ff(c))for(d=void 0;d=
-c.lastChild;)c.removeChild(d);var g=G.createContainer(c);f=c._reactRootContainer=g;G.unbatchedUpdates(function(){G.updateContainer(b,g,a,e)})}return G.getPublicRootInstance(f)}qd(ab,"ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var m=!("undefined"===typeof window||!window.document||!window.document.createElement),re=Object.getOwnPropertySymbols,Hf=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable,D=function(){try{if(!Object.assign)return!1;
+function Lb(ab){function Mb(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Jc(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}function ye(a){return a[1].toUpperCase()}function bb(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;return 32<=a||13===a?a:0}function Nb(){return ze}function Kc(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return"input"===b?!!Ae[a.type]:"textarea"===b?!0:!1}function Ob(a){a=a||("undefined"!==
+typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}function Lc(a){var b=(a?a.ownerDocument||a:document).defaultView||window;return!!(a&&("function"===typeof b.Node?a instanceof b.Node:"object"===typeof a&&"number"===typeof a.nodeType&&"string"===typeof a.nodeName))&&3==a.nodeType}function Mc(){!Pb&&n&&(Pb="textContent"in document.documentElement?"textContent":"innerText");return Pb}function Nc(a,b){var c=Oc(a);a=0;for(var d;c;){if(3===
+c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Oc(c)}}function Be(a){function b(){for(;null!==A&&0===A.current.pendingWorkPriority;){A.isScheduled=!1;var a=A.nextScheduledRoot;A.nextScheduledRoot=null;if(A===O)return O=A=null,B=0,null;A=a}a=A;for(var b=null,c=0;null!==a;)0!==a.current.pendingWorkPriority&&(0===c||c>a.current.pendingWorkPriority)&&(c=a.current.pendingWorkPriority,b=a),
+a=a.nextScheduledRoot;if(null!==b){for(B=c;-1<ca;)cb[ca]=null,ca--;db=ba;da.current=ba;T.current=!1;C();H=Pc(b.current,c)}else B=0,H=null}function c(c){W=!0;E=null;var d=c.stateNode;d.current===c?l("177"):void 0;1!==B&&2!==B||Y++;eb.current=null;if(1<c.effectTag)if(null!==c.lastEffect){c.lastEffect.nextEffect=c;var e=c.firstEffect}else e=c;else e=c.firstEffect;K();for(w=e;null!==w;){var p=!1,k=void 0;try{for(;null!==w;){var u=w.effectTag;u&16&&a.resetTextContent(w.stateNode);if(u&128){var f=w.alternate;
+null!==f&&Ce(f)}switch(u&-242){case 2:Qc(w);w.effectTag&=-3;break;case 6:Qc(w);w.effectTag&=-3;Rc(w.alternate,w);break;case 4:Rc(w.alternate,w);break;case 8:X=!0,De(w),X=!1}w=w.nextEffect}}catch(Qb){p=!0,k=Qb}p&&(null===w?l("178"):void 0,S(w,k),null!==w&&(w=w.nextEffect))}N();d.current=c;for(w=e;null!==w;){d=!1;e=void 0;try{for(;null!==w;){var g=w.effectTag;g&36&&Ee(w.alternate,w);g&128&&Fe(w);if(g&64)switch(p=w,k=void 0,null!==Q&&(k=Q.get(p),Q["delete"](p),null==k&&null!==p.alternate&&(p=p.alternate,
+k=Q.get(p),Q["delete"](p))),null==k?l("184"):void 0,p.tag){case 2:p.stateNode.componentDidCatch(k.error,{componentStack:k.componentStack});break;case 3:null===M&&(M=k.error);break;default:l("157")}var t=w.nextEffect;w.nextEffect=null;w=t}}catch(Qb){d=!0,e=Qb}d&&(null===w?l("178"):void 0,S(w,e),null!==w&&(w=w.nextEffect))}W=!1;"function"===typeof Sc&&Sc(c.stateNode);F&&(F.forEach(Z),F=null);b()}function d(a){for(;;){var b=p(a.alternate,a,B),c=a["return"],d=a.sibling;var e=a;if(!(0!==e.pendingWorkPriority&&
+e.pendingWorkPriority>B)){var k=e.updateQueue;k=null===k||2!==e.tag&&3!==e.tag?0:null!==k.first?k.first.priorityLevel:0;for(var u=e.child;null!==u;){var f=u.pendingWorkPriority;k=0!==k&&(0===f||f>k)?k:f;u=u.sibling}e.pendingWorkPriority=k}if(null!==b)return b;null!==c&&(null===c.firstEffect&&(c.firstEffect=a.firstEffect),null!==a.lastEffect&&(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect),1<a.effectTag&&(null!==c.lastEffect?c.lastEffect.nextEffect=a:c.firstEffect=
+a,c.lastEffect=a));if(null!==d)return d;if(null!==c)a=c;else{E=a;break}}return null}function e(a){var b=k(a.alternate,a,B);null===b&&(b=d(a));eb.current=null;return b}function f(a){var b=u(a.alternate,a,B);null===b&&(b=d(a));eb.current=null;return b}function g(a){r(5,a)}function h(){if(null!==Q&&0<Q.size&&2===B)for(;null!==H;){var a=H;H=null!==Q&&(Q.has(a)||null!==a.alternate&&Q.has(a.alternate))?f(H):e(H);if(null===H&&(null===E?l("179"):void 0,I=2,c(E),I=B,null===Q||0===Q.size||2!==B))break}}function m(a,
+d){null!==E?(I=2,c(E),h()):null===H&&b();if(!(0===B||B>a)){I=B;a:do{if(2>=B)for(;null!==H&&!(H=e(H),null===H&&(null===E?l("179"):void 0,I=2,c(E),I=B,h(),0===B||B>a||2<B)););else if(null!==d)for(;null!==H&&!G;)if(1<d.timeRemaining()){if(H=e(H),null===H)if(null===E?l("179"):void 0,1<d.timeRemaining()){if(I=2,c(E),I=B,h(),0===B||B>a||3>B)break}else G=!0}else G=!0;switch(B){case 1:case 2:if(B<=a)continue a;break a;case 3:case 4:case 5:if(null===d)break a;if(!G&&B<=a)continue a;break a;case 0:break a;
+default:l("181")}}while(1)}}function r(a,b){y?l("182"):void 0;y=!0;Y=0;var c=I,d=!1,e=null;try{m(a,b)}catch(Rb){d=!0,e=Rb}for(;d;){if(R){M=e;break}var p=H;if(null===p)R=!0;else{var k=S(p,e);null===k?l("183"):void 0;if(!R){try{d=k;e=a;k=b;for(var u=d;null!==p;){switch(p.tag){case 2:Tc(p);break;case 5:z(p);break;case 3:Uc(p);break;case 4:Uc(p)}if(p===u||p.alternate===u)break;p=p["return"]}H=f(d);m(e,k)}catch(Rb){d=!0;e=Rb;continue}break}}}I=c;null!==b&&(P=!1);2<B&&!P&&(v(g),P=!0);a=M;R=G=y=!1;J=Q=M=
+null;if(null!==a)throw a;}function S(a,b){var c=eb.current=null,d=!1,p=!1,e=null;if(3===a.tag)c=a,D(a)&&(R=!0);else for(var k=a["return"];null!==k&&null===c;){2===k.tag?"function"===typeof k.stateNode.componentDidCatch&&(d=!0,e=Ba(k),c=k,p=!0):3===k.tag&&(c=k);if(D(k)){if(X||null!==F&&(F.has(k)||null!==k.alternate&&F.has(k.alternate)))return null;c=null;p=!1}k=k["return"]}if(null!==c){null===J&&(J=new Set);J.add(c);var u="";k=a;do{a:switch(k.tag){case 0:case 1:case 2:case 5:var f=k._debugOwner,g=
+k._debugSource;var t=Ba(k);var h=null;f&&(h=Ba(f));f=g;t="\n in "+(t||"Unknown")+(f?" (at "+f.fileName.replace(/^.*[\\\/]/,"")+":"+f.lineNumber+")":h?" (created by "+h+")":"");break a;default:t=""}u+=t;k=k["return"]}while(k);k=u;a=Ba(a);null===Q&&(Q=new Map);b={componentName:a,componentStack:k,error:b,errorBoundary:d?c.stateNode:null,errorBoundaryFound:d,errorBoundaryName:e,willRetry:p};Q.set(c,b);try{console.error(b.error)}catch(Ge){console.error(Ge)}W?(null===F&&(F=new Set),F.add(c)):Z(c);return c}null===
+M&&(M=b);return null}function D(a){return null!==J&&(J.has(a)||null!==a.alternate&&J.has(a.alternate))}function Vc(a,b){return U(a,b,!1)}function U(a,b){Y>aa&&(R=!0,l("185"));!y&&b<=B&&(H=null);for(var c=!0;null!==a&&c;){c=!1;if(0===a.pendingWorkPriority||a.pendingWorkPriority>b)c=!0,a.pendingWorkPriority=b;null!==a.alternate&&(0===a.alternate.pendingWorkPriority||a.alternate.pendingWorkPriority>b)&&(c=!0,a.alternate.pendingWorkPriority=b);if(null===a["return"])if(3===a.tag){var d=a.stateNode;0===
+b||d.isScheduled||(d.isScheduled=!0,O?O.nextScheduledRoot=d:A=d,O=d);if(!y)switch(b){case 1:L?r(1,null):r(2,null);break;case 2:n?void 0:l("186");break;default:P||(v(g),P=!0)}}else break;a=a["return"]}}function q(a,b){var c=I;0===c&&(c=!x||a.internalContextTag&1||b?4:1);return 1===c&&(y||n)?2:c}function Z(a){U(a,2,!0)}var V=He(a),Wc=Ie(a),Uc=V.popHostContainer,z=V.popHostContext,C=V.resetHostContainer,t=Je(a,V,Wc,Vc,q),k=t.beginWork,u=t.beginFailedWork,p=Ke(a,V,Wc).completeWork;V=Le(a,S);var Qc=V.commitPlacement,
+De=V.commitDeletion,Rc=V.commitWork,Ee=V.commitLifeCycles,Fe=V.commitAttachRef,Ce=V.commitDetachRef,v=a.scheduleDeferredCallback,x=a.useSyncScheduling,K=a.prepareForCommit,N=a.resetAfterCommit,I=0,y=!1,G=!1,n=!1,L=!1,H=null,B=0,w=null,E=null,A=null,O=null,P=!1,Q=null,J=null,F=null,M=null,R=!1,W=!1,X=!1,aa=1E3,Y=0;return{scheduleUpdate:Vc,getPriorityContext:q,performWithPriority:function(a,b){var c=I;I=a;try{b()}finally{I=c}},batchedUpdates:function(a,b){var c=n;n=!0;try{return a(b)}finally{n=c,y||
+n||r(2,null)}},unbatchedUpdates:function(a){var b=L,c=n;L=n;n=!1;try{return a()}finally{n=c,L=b}},flushSync:function(a){var b=n,c=I;n=!0;I=1;try{return a()}finally{n=b,I=c,y?l("187"):void 0,r(2,null)}},deferredUpdates:function(a){var b=I;I=4;try{return a()}finally{I=b}}}}function Sc(a){"function"===typeof Sb&&Sb(a)}function Ie(a){function b(a,b){var c=new L(5,null,0);c.type="DELETED";c.stateNode=b;c["return"]=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=
+a.lastEffect=c}function c(a,b){switch(a.tag){case 5:return f(b,a.type,a.pendingProps);case 6:return g(b,a.pendingProps);default:return!1}}function d(a){for(a=a["return"];null!==a&&5!==a.tag&&3!==a.tag;)a=a["return"];U=a}var e=a.shouldSetTextContent,f=a.canHydrateInstance,g=a.canHydrateTextInstance,h=a.getNextHydratableSibling,m=a.getFirstHydratableChild,r=a.hydrateInstance,S=a.hydrateTextInstance,D=a.didNotHydrateInstance,q=a.didNotFindHydratableInstance;a=a.didNotFindHydratableTextInstance;if(!(f&&
+g&&h&&m&&r&&S&&D&&q&&a))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){l("175")},prepareToHydrateHostTextInstance:function(){l("176")},popHydrationState:function(){return!1}};var U=null,n=null,Z=!1;return{enterHydrationState:function(a){n=m(a.stateNode.containerInfo);U=a;return Z=!0},resetHydrationState:function(){n=U=null;Z=!1},tryToClaimNextHydratableInstance:function(a){if(Z){var d=
+n;if(d){if(!c(a,d)){d=h(d);if(!d||!c(a,d)){a.effectTag|=2;Z=!1;U=a;return}b(U,n)}a.stateNode=d;U=a;n=m(d)}else a.effectTag|=2,Z=!1,U=a}},prepareToHydrateHostInstance:function(a,b){b=r(a.stateNode,a.type,a.memoizedProps,b,a);a.updateQueue=b;return null!==b?!0:!1},prepareToHydrateHostTextInstance:function(a){return S(a.stateNode,a.memoizedProps,a)},popHydrationState:function(a){if(a!==U)return!1;if(!Z)return d(a),Z=!0,!1;var c=a.type;if(5!==a.tag||"head"!==c&&"body"!==c&&!e(c,a.memoizedProps))for(c=
+n;c;)b(a,c),c=h(c);d(a);n=U?h(a.stateNode):null;return!0}}}function He(a){function b(a){a===ra?l("174"):void 0;return a}var c=a.getChildHostContext,d=a.getRootHostContext,e={current:ra},f={current:ra},g={current:ra};return{getHostContext:function(){return b(e.current)},getRootHostContainer:function(){return b(g.current)},popHostContainer:function(a){M(e,a);M(f,a);M(g,a)},popHostContext:function(a){f.current===a&&(M(e,a),M(f,a))},pushHostContainer:function(a,b){O(g,b,a);b=d(b);O(f,a,a);O(e,b,a)},pushHostContext:function(a){var d=
+b(g.current),h=b(e.current);d=c(h,a.type,d);h!==d&&(O(f,a,a),O(e,d,a))},resetHostContainer:function(){e.current=ra;g.current=ra}}}function Le(a,b){function c(a){var c=a.ref;if(null!==c)try{c(null)}catch(C){b(a,C)}}function d(a){return 5===a.tag||3===a.tag||4===a.tag}function e(a){for(var b=a;;)if(g(b),null!==b.child&&4!==b.tag)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||b["return"]===a)return;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}
+function f(a){for(var b=a,c=!1,d=void 0,k=void 0;;){if(!c){c=b["return"];a:for(;;){null===c?l("160"):void 0;switch(c.tag){case 5:d=c.stateNode;k=!1;break a;case 3:d=c.stateNode.containerInfo;k=!0;break a;case 4:d=c.stateNode.containerInfo;k=!0;break a}c=c["return"]}c=!0}if(5===b.tag||6===b.tag)e(b),k?V(d,b.stateNode):Z(d,b.stateNode);else if(4===b.tag?d=b.stateNode.containerInfo:g(b),null!==b.child){b.child["return"]=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||
+b["return"]===a)return;b=b["return"];4===b.tag&&(c=!1)}b.sibling["return"]=b["return"];b=b.sibling}}function g(a){"function"===typeof Xc&&Xc(a);switch(a.tag){case 2:c(a);var d=a.stateNode;if("function"===typeof d.componentWillUnmount)try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(C){b(a,C)}break;case 5:c(a);break;case 7:e(a.stateNode);break;case 4:f(a)}}var h=a.commitMount,m=a.commitUpdate,r=a.resetTextContent,S=a.commitTextUpdate,n=a.appendChild,q=a.appendChildToContainer,
+U=a.insertBefore,v=a.insertInContainerBefore,Z=a.removeChild,V=a.removeChildFromContainer,x=a.getPublicInstance;return{commitPlacement:function(a){a:{for(var b=a["return"];null!==b;){if(d(b)){var c=b;break a}b=b["return"]}l("160");c=void 0}var e=b=void 0;switch(c.tag){case 5:b=c.stateNode;e=!1;break;case 3:b=c.stateNode.containerInfo;e=!0;break;case 4:b=c.stateNode.containerInfo;e=!0;break;default:l("161")}c.effectTag&16&&(r(b),c.effectTag&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c["return"]||
+d(c["return"])){c=null;break a}c=c["return"]}c.sibling["return"]=c["return"];for(c=c.sibling;5!==c.tag&&6!==c.tag;){if(c.effectTag&2)continue b;if(null===c.child||4===c.tag)continue b;else c.child["return"]=c,c=c.child}if(!(c.effectTag&2)){c=c.stateNode;break a}}for(var k=a;;){if(5===k.tag||6===k.tag)c?e?v(b,k.stateNode,c):U(b,k.stateNode,c):e?q(b,k.stateNode):n(b,k.stateNode);else if(4!==k.tag&&null!==k.child){k.child["return"]=k;k=k.child;continue}if(k===a)break;for(;null===k.sibling;){if(null===
+k["return"]||k["return"]===a)return;k=k["return"]}k.sibling["return"]=k["return"];k=k.sibling}},commitDeletion:function(a){f(a);a["return"]=null;a.child=null;a.alternate&&(a.alternate.child=null,a.alternate["return"]=null)},commitWork:function(a,b){switch(b.tag){case 2:break;case 5:var c=b.stateNode;if(null!=c){var d=b.memoizedProps;a=null!==a?a.memoizedProps:d;var e=b.type,u=b.updateQueue;b.updateQueue=null;null!==u&&m(c,u,e,a,d,b)}break;case 6:null===b.stateNode?l("162"):void 0;c=b.memoizedProps;
+S(b.stateNode,null!==a?a.memoizedProps:c,c);break;case 3:break;case 4:break;default:l("163")}},commitLifeCycles:function(a,b){switch(b.tag){case 2:var c=b.stateNode;if(b.effectTag&4)if(null===a)c.props=b.memoizedProps,c.state=b.memoizedState,c.componentDidMount();else{var d=a.memoizedProps;a=a.memoizedState;c.props=b.memoizedProps;c.state=b.memoizedState;c.componentDidUpdate(d,a)}b.effectTag&32&&null!==b.updateQueue&&Yc(b,b.updateQueue,c);break;case 3:a=b.updateQueue;null!==a&&Yc(b,a,b.child&&b.child.stateNode);
+break;case 5:c=b.stateNode;null===a&&b.effectTag&4&&h(c,b.type,b.memoizedProps,b);break;case 6:break;case 4:break;default:l("163")}},commitAttachRef:function(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:b(x(c));break;default:b(c)}}},commitDetachRef:function(a){a=a.ref;null!==a&&a(null)}}}function Xc(a){"function"===typeof Tb&&Tb(a)}function Yc(a,b,c){a=b.callbackList;if(null!==a)for(b.callbackList=null,b=0;b<a.length;b++){var d=a[b];"function"!==typeof d?l("191",d):void 0;d.call(c)}}
+function Ke(a,b,c){var d=a.createInstance,e=a.createTextInstance,f=a.appendInitialChild,g=a.finalizeInitialChildren,h=a.prepareUpdate,m=b.getRootHostContainer,r=b.popHostContext,S=b.getHostContext,n=b.popHostContainer,q=c.prepareToHydrateHostInstance,v=c.prepareToHydrateHostTextInstance,x=c.popHydrationState;return{completeWork:function(a,b,c){var D=b.pendingProps;if(null===D)D=b.memoizedProps;else if(5!==b.pendingWorkPriority||5===c)b.pendingProps=null;switch(b.tag){case 1:return null;case 2:return Tc(b),
+null;case 3:D=b.stateNode;D.pendingContext&&(D.context=D.pendingContext,D.pendingContext=null);if(null===a||null===a.child)x(b),b.effectTag&=-3;return null;case 5:r(b);c=m();var z=b.type;if(null!==a&&null!=b.stateNode){var C=a.memoizedProps,t=b.stateNode,k=S();D=h(t,z,C,D,c,k);if(b.updateQueue=D)b.effectTag|=4;a.ref!==b.ref&&(b.effectTag|=128)}else{if(!D)return null===b.stateNode?l("166"):void 0,null;a=S();if(x(b))q(b,c)&&(b.effectTag|=4);else{a=d(z,D,c,a,b);a:for(C=b.child;null!==C;){if(5===C.tag||
+6===C.tag)f(a,C.stateNode);else if(4!==C.tag&&null!==C.child){C=C.child;continue}if(C===b)break a;for(;null===C.sibling;){if(null===C["return"]||C["return"]===b)break a;C=C["return"]}C=C.sibling}g(a,z,D,c)&&(b.effectTag|=4);b.stateNode=a}null!==b.ref&&(b.effectTag|=128)}return null;case 6:if(a&&null!=b.stateNode)a.memoizedProps!==D&&(b.effectTag|=4);else{if("string"!==typeof D)return null===b.stateNode?l("166"):void 0,null;a=m();c=S();x(b)?v(b)&&(b.effectTag|=4):b.stateNode=e(D,a,c,b)}return null;
+case 7:(D=b.memoizedProps)?void 0:l("165");b.tag=8;c=[];a:for((z=b.stateNode)&&(z["return"]=b);null!==z;){if(5===z.tag||6===z.tag||4===z.tag)l("164");else if(9===z.tag)c.push(z.type);else if(null!==z.child){z.child["return"]=z;z=z.child;continue}for(;null===z.sibling;){if(null===z["return"]||z["return"]===b)break a;z=z["return"]}z.sibling["return"]=z["return"];z=z.sibling}z=D.handler;D=z(D.props,c);b.child=Ub(b,null!==a?a.child:null,D,b.pendingWorkPriority);return b.child;case 8:return b.tag=7,null;
+case 9:return null;case 10:return null;case 4:return b.effectTag|=4,n(b),null;case 0:l("167");default:l("156")}}}}function Je(a,b,c,d,e){function f(a,b,c){g(a,b,c,b.pendingWorkPriority)}function g(a,b,c,d){b.child=null===a?Vb(b,b.child,c,d):a.child===b.child?Ub(b,b.child,c,d):Wb(b,b.child,c,d)}function h(a,b){var c=b.ref;null===c||a&&a.ref===c||(b.effectTag|=128)}function m(a,b,c,d){h(a,b);if(!c)return d&&Zc(b,!1),r(a,b);c=b.stateNode;Me.current=b;var e=c.render();b.effectTag|=1;f(a,b,e);b.memoizedState=
+c.state;b.memoizedProps=c.props;d&&Zc(b,!0);return b.child}function r(a,b){null!==a&&b.child!==a.child?l("153"):void 0;if(null!==b.child){a=b.child;var c=Xb(a,a.pendingWorkPriority);c.pendingProps=a.pendingProps;b.child=c;for(c["return"]=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Xb(a,a.pendingWorkPriority),c.pendingProps=a.pendingProps,c["return"]=b;c.sibling=null}return b.child}function n(a,b){switch(b.tag){case 2:fb(b);break;case 4:y(b,b.stateNode.containerInfo)}return null}var D=a.shouldSetTextContent,
+q=a.useSyncScheduling,v=a.shouldDeprioritizeSubtree,x=b.pushHostContext,y=b.pushHostContainer,E=c.enterHydrationState,A=c.resetHydrationState,F=c.tryToClaimNextHydratableInstance;a=Ne(d,e,function(a,b){a.memoizedProps=b},function(a,b){a.memoizedState=b});var z=a.adoptClassInstance,C=a.constructClassInstance,t=a.mountClassInstance,k=a.updateClassInstance;return{beginWork:function(a,b,c){if(0===b.pendingWorkPriority||b.pendingWorkPriority>c)return n(a,b);switch(b.tag){case 0:null!==a?l("155"):void 0;
+var d=b.type,e=b.pendingProps,g=Ca(b);g=Da(b,g);d=d(e,g);b.effectTag|=1;"object"===typeof d&&null!==d&&"function"===typeof d.render?(b.tag=2,e=fb(b),z(b,d),t(b,c),b=m(a,b,!0,e)):(b.tag=1,f(a,b,d),b.memoizedProps=e,b=b.child);return b;case 1:a:{e=b.type;c=b.pendingProps;d=b.memoizedProps;if(T.current)null===c&&(c=d);else if(null===c||d===c){b=r(a,b);break a}d=Ca(b);d=Da(b,d);e=e(c,d);b.effectTag|=1;f(a,b,e);b.memoizedProps=c;b=b.child}return b;case 2:return e=fb(b),d=void 0,null===a?b.stateNode?l("153"):
+(C(b,b.pendingProps),t(b,c),d=!0):d=k(a,b,c),m(a,b,d,e);case 3:return e=b.stateNode,e.pendingContext?$c(b,e.pendingContext,e.pendingContext!==e.context):e.context&&$c(b,e.context,!1),y(b,e.containerInfo),d=b.updateQueue,null!==d?(e=b.memoizedState,d=Yb(a,b,d,null,e,null,c),e===d?(A(),b=r(a,b)):(e=d.element,null!==a&&null!==a.child||!E(b)?(A(),f(a,b,e)):(b.effectTag|=2,b.child=Vb(b,b.child,e,c)),b.memoizedState=d,b=b.child)):(A(),b=r(a,b)),b;case 5:x(b);null===a&&F(b);e=b.type;var u=b.memoizedProps;
+d=b.pendingProps;null===d&&(d=u,null===d?l("154"):void 0);g=null!==a?a.memoizedProps:null;T.current||null!==d&&u!==d?(u=d.children,D(e,d)?u=null:g&&D(e,g)&&(b.effectTag|=16),h(a,b),5!==c&&!q&&v(e,d)?(b.pendingWorkPriority=5,b=null):(f(a,b,u),b.memoizedProps=d,b=b.child)):b=r(a,b);return b;case 6:return null===a&&F(b),a=b.pendingProps,null===a&&(a=b.memoizedProps),b.memoizedProps=a,null;case 8:b.tag=7;case 7:c=b.pendingProps;if(T.current)null===c&&(c=a&&a.memoizedProps,null===c?l("154"):void 0);else if(null===
+c||b.memoizedProps===c)c=b.memoizedProps;e=c.children;d=b.pendingWorkPriority;b.stateNode=null===a?Vb(b,b.stateNode,e,d):a.child===b.child?Ub(b,b.stateNode,e,d):Wb(b,b.stateNode,e,d);b.memoizedProps=c;return b.stateNode;case 9:return null;case 4:a:{y(b,b.stateNode.containerInfo);c=b.pendingWorkPriority;e=b.pendingProps;if(T.current)null===e&&(e=a&&a.memoizedProps,null==e?l("154"):void 0);else if(null===e||b.memoizedProps===e){b=r(a,b);break a}null===a?b.child=Wb(b,b.child,e,c):f(a,b,e);b.memoizedProps=
+e;b=b.child}return b;case 10:a:{c=b.pendingProps;if(T.current)null===c&&(c=b.memoizedProps);else if(null===c||b.memoizedProps===c){b=r(a,b);break a}f(a,b,c);b.memoizedProps=c;b=b.child}return b;default:l("156")}},beginFailedWork:function(a,b,c){switch(b.tag){case 2:fb(b);break;case 3:y(b,b.stateNode.containerInfo);break;default:l("157")}b.effectTag|=64;null===a?b.child=null:b.child!==a.child&&(b.child=a.child);if(0===b.pendingWorkPriority||b.pendingWorkPriority>c)return n(a,b);b.firstEffect=null;
+b.lastEffect=null;g(a,b,null,c);2===b.tag&&(a=b.stateNode,b.memoizedProps=a.props,b.memoizedState=a.state);return b.child}}}function Zc(a,b){var c=a.stateNode;c?void 0:l("169");if(b){var d=ad(a,db,!0);c.__reactInternalMemoizedMergedChildContext=d;M(T,a);M(da,a);O(da,d,a)}else M(T,a);O(T,b,a)}function $c(a,b,c){null!=da.cursor?l("168"):void 0;O(da,b,a);O(T,c,a)}function fb(a){if(!Ea(a))return!1;var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||ba;db=da.current;O(da,b,a);O(T,T.current,
+a);return!0}function Ne(a,b,c,d){function e(a,b){b.updater=f;a.stateNode=b;fa.set(b,a)}var f={isMounted:Oe,enqueueSetState:function(c,d,e){c=fa.get(c);var f=b(c,!1);gb(c,{priorityLevel:f,partialState:d,callback:void 0===e?null:e,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null});a(c,f)},enqueueReplaceState:function(c,d,e){c=fa.get(c);var f=b(c,!1);gb(c,{priorityLevel:f,partialState:d,callback:void 0===e?null:e,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null});a(c,f)},enqueueForceUpdate:function(c,
+d){c=fa.get(c);var e=b(c,!1);gb(c,{priorityLevel:e,partialState:null,callback:void 0===d?null:d,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null});a(c,e)}};return{adoptClassInstance:e,constructClassInstance:function(a,b){var c=a.type,d=Ca(a),f=2===a.tag&&null!=a.type.contextTypes,g=f?Da(a,d):ba;b=new c(b,g);e(a,b);f&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=d,a.__reactInternalMemoizedMaskedChildContext=g);return b},mountClassInstance:function(a,b){var c=a.alternate,d=a.stateNode,
+e=d.state||null,g=a.pendingProps;g?void 0:l("158");var h=Ca(a);d.props=g;d.state=e;d.refs=ba;d.context=Da(a,h);hb.enableAsyncSubtreeAPI&&null!=a.type&&null!=a.type.prototype&&!0===a.type.prototype.unstable_isAsyncReactComponent&&(a.internalContextTag|=1);"function"===typeof d.componentWillMount&&(h=d.state,d.componentWillMount(),h!==d.state&&f.enqueueReplaceState(d,d.state,null),h=a.updateQueue,null!==h&&(d.state=Yb(c,a,h,d,e,g,b)));"function"===typeof d.componentDidMount&&(a.effectTag|=4)},updateClassInstance:function(a,
+b,e){var g=b.stateNode;g.props=b.memoizedProps;g.state=b.memoizedState;var h=b.memoizedProps,m=b.pendingProps;m||(m=h,null==m?l("159"):void 0);var n=g.context,q=Ca(b);q=Da(b,q);"function"!==typeof g.componentWillReceiveProps||h===m&&n===q||(n=g.state,g.componentWillReceiveProps(m,q),g.state!==n&&f.enqueueReplaceState(g,g.state,null));n=b.memoizedState;e=null!==b.updateQueue?Yb(a,b,b.updateQueue,g,n,m,e):n;if(!(h!==m||n!==e||T.current||null!==b.updateQueue&&b.updateQueue.hasForceUpdate))return"function"!==
+typeof g.componentDidUpdate||h===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=4),!1;var v=m;if(null===h||null!==b.updateQueue&&b.updateQueue.hasForceUpdate)v=!0;else{var x=b.stateNode,y=b.type;v="function"===typeof x.shouldComponentUpdate?x.shouldComponentUpdate(v,e,q):y.prototype&&y.prototype.isPureReactComponent?!Zb(h,v)||!Zb(n,e):!0}v?("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(m,e,q),"function"===typeof g.componentDidUpdate&&(b.effectTag|=4)):("function"!==typeof g.componentDidUpdate||
+h===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=4),c(b,m),d(b,e));g.props=m;g.state=e;g.context=q;return v}}}function Zb(a,b){if(bd(a,b))return!0;if("object"!==typeof a||null===a||"object"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++)if(!Pe.call(b,c[d])||!bd(a[c[d]],b[c[d]]))return!1;return!0}function $b(a,b,c){b=new L(4,a.key,b);b.pendingProps=a.children||[];b.pendingWorkPriority=c;b.stateNode={containerInfo:a.containerInfo,
+implementation:a.implementation};return b}function ac(a,b,c){b=new L(7,a.key,b);b.type=a.handler;b.pendingProps=a;b.pendingWorkPriority=c;return b}function bc(a,b,c){b=new L(6,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b}function cd(a,b,c){b=new L(10,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b}function cc(a,b,c){var d=a.type,e=a.key,f=void 0;"function"===typeof d?(f=d.prototype&&d.prototype.isReactComponent?new L(2,e,b):new L(0,e,b),f.type=d):"string"===typeof d?(f=new L(5,
+e,b),f.type=d):"object"===typeof d&&null!==d&&"number"===typeof d.tag?f=d:l("130",null==d?d:typeof d,"");b=f;b.pendingProps=a.props;b.pendingWorkPriority=c;return b}function Pc(a,b){var c=a.alternate;null===c?(c=new L(a.tag,a.key,a.internalContextTag),c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.effectTag=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.pendingWorkPriority=b;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=
+a.updateQueue;c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}function Tc(a){Ea(a)&&(M(T,a),M(da,a))}function Da(a,b){var c=a.type.contextTypes;if(!c)return ba;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function Ca(a){return Ea(a)?db:da.current}function O(a,
+b){ca++;cb[ca]=a.current;a.current=b}function M(a){0>ca||(a.current=cb[ca],cb[ca]=null,ca--)}function Yb(a,b,c,d,e,f,g){null!==a&&a.updateQueue===c&&(c=b.updateQueue={first:c.first,last:c.last,callbackList:null,hasForceUpdate:!1});a=c.callbackList;for(var h=c.hasForceUpdate,l=!0,r=c.first;null!==r&&0>=dc(r.priorityLevel,g);){c.first=r.next;null===c.first&&(c.last=null);var n;if(r.isReplace)e=dd(r,d,e,f),l=!0;else if(n=dd(r,d,e,f))e=l?E({},e,n):E(e,n),l=!1;r.isForced&&(h=!0);null===r.callback||r.isTopLevelUnmount&&
+null!==r.next||(a=null!==a?a:[],a.push(r.callback),b.effectTag|=32);r=r.next}c.callbackList=a;c.hasForceUpdate=h;null!==c.first||null!==a||h||(b.updateQueue=null);return e}function ed(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function ec(a,b){return 0<=a.indexOf("-")||null!=b.is}function fc(a,b){b&&(Qe[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML?l("137",a,""):void 0),null!=b.dangerouslySetInnerHTML&&(null!=b.children?l("60"):
+void 0,"object"===typeof b.dangerouslySetInnerHTML&&"__html"in b.dangerouslySetInnerHTML?void 0:l("61")),null!=b.style&&"object"!==typeof b.style?l("62",""):void 0)}function ib(a){if(gc[a])return gc[a];if(!sa[a])return a;var b=sa[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in fd)return gc[a]=b[c];return""}function Fa(a,b){if(!n||b&&!("addEventListener"in document))return!1;b="on"+a;var c=b in document;c||(c=document.createElement("div"),c.setAttribute(b,"return;"),c="function"===typeof c[b]);!c&&gd&&
+"wheel"===a&&(c=document.implementation.hasFeature("Events.wheel","3.0"));return c}function Re(a){return hd(a,!1)}function Se(a){return hd(a,!0)}function hd(a,b){a&&(Ga.executeDispatchesInOrder(a,b),a.isPersistent()||a.constructor.release(a))}function Ha(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function ta(a,b){null==b?l("30"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function jb(a){a=
+a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}function hc(a,b){return a(b)}function Te(){if(x._hasRethrowError){var a=x._rethrowError;x._rethrowError=null;x._hasRethrowError=!1;throw a;}}function id(a,b,c,d,e,f,g,h,l){x._hasCaughtError=!1;x._caughtError=null;var m=Array.prototype.slice.call(arguments,3);try{b.apply(c,m)}catch(S){x._caughtError=S,x._hasCaughtError=!0}}function Ba(a){a=a.type;return"string"===typeof a?a:
+"function"===typeof a?a.displayName||a.name:null}function ka(){}function jd(a,b,c,d,e,f,g,h){if(!a){if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[c,d,e,f,g,h],r=0;a=Error(b.replace(/%s/g,function(){return l[r++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}function l(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+
+a,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}function Jc(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function kd(){if(kb)for(var a in ua){var b=ua[a],c=kb.indexOf(a);-1<c?void 0:l("96",
+a);if(!ha.plugins[c]){b.extractEvents?void 0:l("97",a);ha.plugins[c]=b;c=b.eventTypes;for(var d in c){var e=void 0;var f=c[d],g=b,h=d;ha.eventNameDispatchConfigs.hasOwnProperty(h)?l("99",h):void 0;ha.eventNameDispatchConfigs[h]=f;var m=f.phasedRegistrationNames;if(m){for(e in m)m.hasOwnProperty(e)&&ld(m[e],g,h);e=!0}else f.registrationName?(ld(f.registrationName,g,h),e=!0):e=!1;e?void 0:l("98",d,a)}}}}function ld(a,b,c){ha.registrationNameModules[a]?l("100",a):void 0;ha.registrationNameModules[a]=
+b;ha.registrationNameDependencies[a]=b.eventTypes[c].dependencies}function lb(a){return function(){return a}}function mb(a){var b=a;if(a.alternate)for(;b["return"];)b=b["return"];else{if(0!==(b.effectTag&2))return 1;for(;b["return"];)if(b=b["return"],0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function md(a){2!==mb(a)?l("188"):void 0}function ic(a){var b=a.alternate;if(!b)return b=mb(a),3===b?l("188"):void 0,1===b?null:a;for(var c=a,d=b;;){var e=c["return"],f=e?e.alternate:null;if(!e||!f)break;
+if(e.child===f.child){for(var g=e.child;g;){if(g===c)return md(e),a;if(g===d)return md(e),b;g=g.sibling}l("188")}if(c["return"]!==d["return"])c=e,d=f;else{g=!1;for(var h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}g?void 0:l("189")}}c.alternate!==d?l("190"):void 0}3!==c.tag?l("188"):void 0;return c.stateNode.current===c?a:b}function nd(a,b,c,d){b=a.type||"unknown-event";
+a.currentTarget=jc.getNodeFromInstance(d);od.invokeGuardedCallbackAndCatchFirstError(b,c,void 0,a);a.currentTarget=null}function pd(a){if(a=Ga.getInstanceFromNode(a)){nb&&"function"===typeof nb.restoreControlledState?void 0:l("194");var b=Ga.getFiberCurrentPropsFromNode(a.stateNode);nb.restoreControlledState(a.stateNode,a.type,b)}}function Ue(a){var b=a.targetInst;do{if(!b){a.ancestors.push(b);break}var c;for(c=b;c["return"];)c=c["return"];c=3!==c.tag?null:c.stateNode.containerInfo;if(!c)break;a.ancestors.push(b);
+b=G.getClosestInstanceFromNode(c)}while(b);for(c=0;c<a.ancestors.length;c++)b=a.ancestors[c],ia._handleTopLevel(a.topLevelType,b,a.nativeEvent,jb(a.nativeEvent))}function ob(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;c["ms"+a]="MS"+b;c["O"+a]="o"+b.toLowerCase();return c}function qd(a){Object.prototype.hasOwnProperty.call(a,pb)||(a[pb]=Ve++,rd[a[pb]]={});return rd[a[pb]]}function Ia(a,b){return(a&b)===b}function We(a){if(sd.hasOwnProperty(a))return!0;
+if(td.hasOwnProperty(a))return!1;if(Xe.test(a))return sd[a]=!0;td[a]=!0;return!1}function ud(){return null}function Ye(a){var b="";ab.Children.forEach(a,function(a){null==a||"string"!==typeof a&&"number"!==typeof a||(b+=a)});return b}function va(a,b,c){a=a.options;if(b){b={};for(var d=0;d<c.length;d++)b["$"+c[d]]=!0;for(c=0;c<a.length;c++)d=b.hasOwnProperty("$"+a[c].value),a[c].selected!==d&&(a[c].selected=d)}else{c=""+c;for(b=0;b<a.length;b++)if(a[b].value===c){a[b].selected=!0;return}a.length&&
+(a[0].selected=!0)}}function vd(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}function Ze(a){var b=vd(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&"function"===typeof c.get&&"function"===typeof c.set)return Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:!0,get:function(){return c.get.call(this)},set:function(a){d=""+a;c.set.call(this,a)}}),{getValue:function(){return d},
+setValue:function(a){d=""+a},stopTracking:function(){a._valueTracker=null;delete a[b]}}}function R(a,b){$e(b,9===a.nodeType||11===a.nodeType?a:a.ownerDocument)}function dc(a,b){return 2!==a&&1!==a||2!==b&&1!==b?0===a&&0!==b?-255:0!==a&&0===b?255:a-b:0}function wd(){return{first:null,last:null,hasForceUpdate:!1,callbackList:null}}function kc(a,b,c,d){null!==c?c.next=b:(b.next=a.first,a.first=b);null!==d?b.next=d:a.last=b}function xd(a,b){b=b.priorityLevel;var c=null;if(null!==a.last&&0>=dc(a.last.priorityLevel,
+b))c=a.last;else for(a=a.first;null!==a&&0>=dc(a.priorityLevel,b);)c=a,a=a.next;return c}function yd(a){var b=a.alternate,c=a.updateQueue;null===c&&(c=a.updateQueue=wd());null!==b?(a=b.updateQueue,null===a&&(a=b.updateQueue=wd())):a=null;return[c,a!==c?a:null]}function gb(a,b){var c=yd(a);a=c[0];c=c[1];var d=xd(a,b),e=null!==d?d.next:a.first;if(null===c)return kc(a,b,d,e),null;var f=xd(c,b),g=null!==f?f.next:c.first;kc(a,b,d,e);if(e===g&&null!==e||d===f&&null!==d)return null===f&&(c.first=b),null===
+g&&(c.last=null),null;b={priorityLevel:b.priorityLevel,partialState:b.partialState,callback:b.callback,isReplace:b.isReplace,isForced:b.isForced,isTopLevelUnmount:b.isTopLevelUnmount,next:null};kc(c,b,f,g);return b}function dd(a,b,c,d){a=a.partialState;return"function"===typeof a?a.call(b,c,d):a}function Ea(a){return 2===a.tag&&null!=a.type.childContextTypes}function ad(a,b){var c=a.stateNode,d=a.type.childContextTypes;if("function"!==typeof c.getChildContext)return b;c=c.getChildContext();for(var e in c)e in
+d?void 0:l("108",Ba(a)||"Unknown",e);return E({},b,c)}function L(a,b,c){this.tag=a;this.key=b;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=c;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.pendingWorkPriority=0;this.alternate=null}function Ja(a){if(null===a||"undefined"===typeof a)return null;a=zd&&a[zd]||a["@@iterator"];
+return"function"===typeof a?a:null}function Ka(a,b){var c=b.ref;if(null!==c&&"function"!==typeof c){if(b._owner){b=b._owner;var d=void 0;b&&(2!==b.tag?l("110"):void 0,d=b.stateNode);d?void 0:l("147",c);var e=""+c;if(null!==a&&null!==a.ref&&a.ref._stringRef===e)return a.ref;a=function(a){var b=d.refs===ba?d.refs={}:d.refs;null===a?delete b[e]:b[e]=a};a._stringRef=e;return a}"string"!==typeof c?l("148"):void 0;b._owner?void 0:l("149",c)}return c}function qb(a,b){"textarea"!==a.type&&l("31","[object Object]"===
+Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b,"")}function lc(a,b){function c(c,d){if(b){if(!a){if(null===d.alternate)return;d=d.alternate}var e=c.lastEffect;null!==e?(e.nextEffect=d,c.lastEffect=d):c.firstEffect=c.lastEffect=d;d.nextEffect=null;d.effectTag=8}}function d(a,d){if(!b)return null;for(;null!==d;)c(a,d),d=d.sibling;return null}function e(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function f(b,
+c){if(a)return b=Xb(b,c),b.index=0,b.sibling=null,b;b.pendingWorkPriority=c;b.effectTag=0;b.index=0;b.sibling=null;return b}function g(a,c,d){a.index=d;if(!b)return c;d=a.alternate;if(null!==d)return d=d.index,d<c?(a.effectTag=2,c):d;a.effectTag=2;return c}function h(a){b&&null===a.alternate&&(a.effectTag=2);return a}function m(a,b,c,d){if(null===b||6!==b.tag)return c=bc(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function r(a,b,c,d){if(null===b||b.type!==
+c.type)return d=cc(c,a.internalContextTag,d),d.ref=Ka(b,c),d["return"]=a,d;d=f(b,d);d.ref=Ka(b,c);d.pendingProps=c.props;d["return"]=a;return d}function n(a,b,c,d){if(null===b||7!==b.tag)return c=ac(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function q(a,b,c,d){if(null===b||9!==b.tag)return b=new L(9,null,a.internalContextTag),b.type=c.value,b["return"]=a,b;b=f(b,d);b.type=c.value;b["return"]=a;return b}function v(a,b,c,d){if(null===b||4!==b.tag||b.stateNode.containerInfo!==
+c.containerInfo||b.stateNode.implementation!==c.implementation)return c=$b(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c.children||[];b["return"]=a;return b}function x(a,b,c,d){if(null===b||10!==b.tag)return c=cd(c,a.internalContextTag,d),c["return"]=a,c;b=f(b,d);b.pendingProps=c;b["return"]=a;return b}function y(a,b,c){if("string"===typeof b||"number"===typeof b)return b=bc(""+b,a.internalContextTag,c),b["return"]=a,b;if("object"===typeof b&&null!==b){switch(b.$$typeof){case La:return c=
+cc(b,a.internalContextTag,c),c.ref=Ka(null,b),c["return"]=a,c;case rb:return b=ac(b,a.internalContextTag,c),b["return"]=a,b;case sb:return c=new L(9,null,a.internalContextTag),c.type=b.value,c["return"]=a,c;case Ma:return b=$b(b,a.internalContextTag,c),b["return"]=a,b}if(tb(b)||Ja(b))return b=cd(b,a.internalContextTag,c),b["return"]=a,b;qb(a,b)}return null}function A(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c||"number"===typeof c)return null!==e?null:m(a,b,""+c,d);if("object"===typeof c&&
+null!==c){switch(c.$$typeof){case La:return c.key===e?r(a,b,c,d):null;case rb:return c.key===e?n(a,b,c,d):null;case sb:return null===e?q(a,b,c,d):null;case Ma:return c.key===e?v(a,b,c,d):null}if(tb(c)||Ja(c))return null!==e?null:x(a,b,c,d);qb(a,c)}return null}function E(a,b,c,d,e){if("string"===typeof d||"number"===typeof d)return a=a.get(c)||null,m(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case La:return a=a.get(null===d.key?c:d.key)||null,r(b,a,d,e);case rb:return a=a.get(null===
+d.key?c:d.key)||null,n(b,a,d,e);case sb:return a=a.get(c)||null,q(b,a,d,e);case Ma:return a=a.get(null===d.key?c:d.key)||null,v(b,a,d,e)}if(tb(d)||Ja(d))return a=a.get(c)||null,x(b,a,d,e);qb(b,d)}return null}function F(a,f,h,l){for(var k=null,u=null,m=f,t=f=0,n=null;null!==m&&t<h.length;t++){m.index>t?(n=m,m=null):n=m.sibling;var r=A(a,m,h[t],l);if(null===r){null===m&&(m=n);break}b&&m&&null===r.alternate&&c(a,m);f=g(r,f,t);null===u?k=r:u.sibling=r;u=r;m=n}if(t===h.length)return d(a,m),k;if(null===
+m){for(;t<h.length;t++)if(m=y(a,h[t],l))f=g(m,f,t),null===u?k=m:u.sibling=m,u=m;return k}for(m=e(a,m);t<h.length;t++)if(n=E(m,a,t,h[t],l)){if(b&&null!==n.alternate)m["delete"](null===n.key?t:n.key);f=g(n,f,t);null===u?k=n:u.sibling=n;u=n}b&&m.forEach(function(b){return c(a,b)});return k}function G(a,f,h,m){var k=Ja(h);"function"!==typeof k?l("150"):void 0;h=k.call(h);null==h?l("151"):void 0;for(var u=k=null,t=f,n=f=0,r=null,p=h.next();null!==t&&!p.done;n++,p=h.next()){t.index>n?(r=t,t=null):r=t.sibling;
+var q=A(a,t,p.value,m);if(null===q){t||(t=r);break}b&&t&&null===q.alternate&&c(a,t);f=g(q,f,n);null===u?k=q:u.sibling=q;u=q;t=r}if(p.done)return d(a,t),k;if(null===t){for(;!p.done;n++,p=h.next())p=y(a,p.value,m),null!==p&&(f=g(p,f,n),null===u?k=p:u.sibling=p,u=p);return k}for(t=e(a,t);!p.done;n++,p=h.next())if(p=E(t,a,n,p.value,m),null!==p){if(b&&null!==p.alternate)t["delete"](null===p.key?n:p.key);f=g(p,f,n);null===u?k=p:u.sibling=p;u=p}b&&t.forEach(function(b){return c(a,b)});return k}function z(a,
+b,e,g){for(var h=e.key,k=b;null!==k;){if(k.key===h){if(k.type===e.type)return d(a,k.sibling),b=f(k,g),b.ref=Ka(k,e),b.pendingProps=e.props,b["return"]=a,b;d(a,k);break}else c(a,k);k=k.sibling}k=cc(e,a.internalContextTag,g);k.ref=Ka(b,e);k["return"]=a;return k}function C(a,b,e,g){for(var h=e.key;null!==b;){if(b.key===h){if(4===b.tag&&b.stateNode.containerInfo===e.containerInfo&&b.stateNode.implementation===e.implementation)return d(a,b.sibling),g=f(b,g),g.pendingProps=e.children||[],g["return"]=a,
+g;d(a,b);break}else c(a,b);b=b.sibling}e=$b(e,a.internalContextTag,g);e["return"]=a;return e}return function(a,b,e,g){var k=hb.disableNewFiberFeatures,m="object"===typeof e&&null!==e;if(m)if(k)switch(e.$$typeof){case La:return h(z(a,b,e,g));case Ma:return h(C(a,b,e,g))}else switch(e.$$typeof){case La:return h(z(a,b,e,g));case rb:a:{for(k=e.key;null!==b;){if(b.key===k)if(7===b.tag){d(a,b.sibling);b=f(b,g);b.pendingProps=e;b["return"]=a;a=b;break a}else{d(a,b);break}else c(a,b);b=b.sibling}e=ac(e,a.internalContextTag,
+g);e["return"]=a;a=e}return h(a);case sb:a:{if(null!==b)if(9===b.tag){d(a,b.sibling);b=f(b,g);b.type=e.value;b["return"]=a;a=b;break a}else d(a,b);b=new L(9,null,a.internalContextTag);b.type=e.value;b["return"]=a;a=b}return h(a);case Ma:return h(C(a,b,e,g))}if(k)switch(a.tag){case 2:var n=a.type;null!==e&&!1!==e?l("109",n.displayName||n.name||"Component"):void 0;break;case 1:n=a.type,null!==e&&!1!==e?l("105",n.displayName||n.name||"Component"):void 0}if("string"===typeof e||"number"===typeof e)return e=
+""+e,null!==b&&6===b.tag?(d(a,b.sibling),b=f(b,g),b.pendingProps=e,b["return"]=a,a=b):(d(a,b),e=bc(e,a.internalContextTag,g),e["return"]=a,a=e),h(a);if(tb(e))return F(a,b,e,g);if(Ja(e))return G(a,b,e,g);m&&qb(a,e);if(!k&&"undefined"===typeof e)switch(a.tag){case 2:case 1:e=a.type,l("152",e.displayName||e.name||"Component")}return d(a,b)}}function bd(a,b){return a===b?0!==a||0!==b||1/a===1/b:a!==a&&b!==b}function Ad(a){return function(b){try{return a(b)}catch(c){}}}function Oc(a){for(;a&&a.firstChild;)a=
+a.firstChild;return a}function Bd(a,b){return a&&b?a===b?!0:Lc(a)?!1:Lc(b)?Bd(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function P(a){do a=a["return"];while(a&&5!==a.tag);return a?a:null}function Cd(a,b){for(var c=0,d=a;d;d=P(d))c++;d=0;for(var e=b;e;e=P(e))d++;for(;0<c-d;)a=P(a),c--;for(;0<d-c;)b=P(b),d--;for(;c--;){if(a===b||a===b.alternate)return a;a=P(a);b=P(b)}return null}function Dd(a,b,c){if(b=Ed(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=
+ta(c._dispatchListeners,b),c._dispatchInstances=ta(c._dispatchInstances,a)}function af(a){a&&a.dispatchConfig.phasedRegistrationNames&&ub.traverseTwoPhase(a._targetInst,Dd,a)}function bf(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?ub.getParentInstance(b):null;ub.traverseTwoPhase(b,Dd,a)}}function Fd(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=Ed(a,c.dispatchConfig.registrationName))&&(c._dispatchListeners=ta(c._dispatchListeners,b),c._dispatchInstances=ta(c._dispatchInstances,
+a))}function cf(a){a&&a.dispatchConfig.registrationName&&Fd(a._targetInst,null,a)}function Na(a,b,c,d){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=d:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?A.thatReturnsTrue:A.thatReturnsFalse;this.isPropagationStopped=A.thatReturnsFalse;return this}function df(a,b,c,d){if(this.eventPool.length){var e=
+this.eventPool.pop();this.call(e,a,b,c,d);return e}return new this(a,b,c,d)}function ef(a){a instanceof this?void 0:l("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function Gd(a){a.eventPool=[];a.getPooled=df;a.release=ef}function Hd(a,b,c,d){return y.call(this,a,b,c,d)}function Id(a,b,c,d){return y.call(this,a,b,c,d)}function ff(){var a=window.opera;return"object"===typeof a&&"function"===typeof a.version&&12>=parseInt(a.version(),10)}function Jd(a,b){switch(a){case "topKeyUp":return-1!==
+gf.indexOf(b.keyCode);case "topKeyDown":return 229!==b.keyCode;case "topKeyPress":case "topMouseDown":case "topBlur":return!0;default:return!1}}function Kd(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}function hf(a,b){switch(a){case "topCompositionEnd":return Kd(b);case "topKeyPress":if(32!==b.which)return null;Ld=!0;return Md;case "topTextInput":return a=b.data,a===Md&&Ld?null:a;default:return null}}function jf(a,b){if(wa)return"topCompositionEnd"===a||!mc&&Jd(a,b)?(a=vb.getData(),
+vb.reset(),wa=!1,a):null;switch(a){case "topPaste":return null;case "topKeyPress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case "topCompositionEnd":return Nd?null:b.data;default:return null}}function Od(a,b,c){a=y.getPooled(Pd.change,a,b,c);a.type="change";wb.enqueueStateRestore(c);la.accumulateTwoPhaseDispatches(a);return a}function kf(a){W.enqueueEvents(a);W.processEventQueue(!1)}
+function xb(a){var b=G.getNodeFromInstance(a);if(xa.updateValueIfChanged(b))return a}function lf(a,b){if("topChange"===a)return b}function Qd(){Oa&&(Oa.detachEvent("onpropertychange",Rd),Pa=Oa=null)}function Rd(a){"value"===a.propertyName&&xb(Pa)&&(a=Od(Pa,a,jb(a)),yb.batchedUpdates(kf,a))}function mf(a,b,c){"topFocus"===a?(Qd(),Oa=b,Pa=c,Oa.attachEvent("onpropertychange",Rd)):"topBlur"===a&&Qd()}function nf(a){if("topSelectionChange"===a||"topKeyUp"===a||"topKeyDown"===a)return xb(Pa)}function of(a,
+b){if("topClick"===a)return xb(b)}function pf(a,b){if("topInput"===a||"topChange"===a)return xb(b)}function Sd(a,b,c,d){return y.call(this,a,b,c,d)}function ze(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=qf[a])?!!b[a]:!1}function Td(a,b,c,d){return X.call(this,a,b,c,d)}function Ud(a,b){if(nc||null==ya||ya!==Ob())return null;var c=ya;"selectionStart"in c&&oc.hasSelectionCapabilities(c)?c={start:c.selectionStart,end:c.selectionEnd}:window.getSelection?(c=window.getSelection(),
+c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}):c=void 0;return Qa&&Zb(Qa,c)?null:(Qa=c,a=y.getPooled(Vd.select,pc,a,b),a.type="select",a.target=ya,la.accumulateTwoPhaseDispatches(a),a)}function Wd(a,b,c,d){return y.call(this,a,b,c,d)}function Xd(a,b,c,d){return y.call(this,a,b,c,d)}function Yd(a,b,c,d){return X.call(this,a,b,c,d)}function Zd(a,b,c,d){return X.call(this,a,b,c,d)}function $d(a,b,c,d){return ma.call(this,a,b,c,d)}function ae(a,
+b,c,d){return X.call(this,a,b,c,d)}function be(a,b,c,d){return y.call(this,a,b,c,d)}function ce(a,b,c,d){return ma.call(this,a,b,c,d)}function de(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function rf(a){a=a?9===a.nodeType?a.documentElement:a.firstChild:null;return!(!a||1!==a.nodeType||!a.hasAttribute(sf))}function zb(a,b,c,d,e){de(c)?void 0:l("200");var f=c._reactRootContainer;if(f)J.updateContainer(b,f,a,e);else{if(!d&&
+!rf(c))for(d=void 0;d=c.lastChild;)c.removeChild(d);var g=J.createContainer(c);f=c._reactRootContainer=g;J.unbatchedUpdates(function(){J.updateContainer(b,g,a,e)})}return J.getPublicRootInstance(f)}jd(ab,"ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var n=!("undefined"===typeof window||!window.document||!window.document.createElement),ee=Object.getOwnPropertySymbols,tf=Object.prototype.hasOwnProperty,uf=Object.prototype.propertyIsEnumerable,E=function(){try{if(!Object.assign)return!1;
var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");
-var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var g in f)Hf.call(f,g)&&(c[g]=f[g]);if(re){d=re(f);for(var h=0;h<d.length;h++)If.call(f,d[h])&&(c[d[h]]=f[d[h]])}}return c},lb=null,ua={},ia={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(a){lb?k("101"):void 0;lb=Array.prototype.slice.call(a);rd()},injectEventPluginsByName:function(a){var b=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=
-a[c];ua.hasOwnProperty(c)&&ua[c]===d||(ua[c]?k("102",c):void 0,ua[c]=d,b=!0)}b&&rd()}},oa=ia;la.thatReturns=mb;la.thatReturnsFalse=mb(!1);la.thatReturnsTrue=mb(!0);la.thatReturnsNull=mb(null);la.thatReturnsThis=function(){return this};la.thatReturnsArgument=function(a){return a};var z=la,se={listen:function(a,b,c){if(a.addEventListener)return a.addEventListener(b,c,!1),{remove:function(){a.removeEventListener(b,c,!1)}};if(a.attachEvent)return a.attachEvent("on"+b,c),{remove:function(){a.detachEvent("on"+
-b,c)}}},capture:function(a,b,c){return a.addEventListener?(a.addEventListener(b,c,!0),{remove:function(){a.removeEventListener(b,c,!0)}}):{remove:z}},registerDefault:function(){}},Jf={children:!0,dangerouslysetinnerhtml:!0,autofocus:!0,defaultvalue:!0,defaultchecked:!0,innerhtml:!0,suppresscontenteditablewarning:!0,onfocusin:!0,onfocusout:!0,style:!0},te={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(a){var b=
-te,c=a.Properties||{},d=a.DOMAttributeNamespaces||{},e=a.DOMAttributeNames||{};a=a.DOMMutationMethods||{};for(var f in c){pa.properties.hasOwnProperty(f)?k("48",f):void 0;var g=f.toLowerCase(),h=c[f];g={attributeName:g,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseProperty:Ia(h,b.MUST_USE_PROPERTY),hasBooleanValue:Ia(h,b.HAS_BOOLEAN_VALUE),hasNumericValue:Ia(h,b.HAS_NUMERIC_VALUE),hasPositiveNumericValue:Ia(h,b.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:Ia(h,b.HAS_OVERLOADED_BOOLEAN_VALUE)};
-1>=g.hasBooleanValue+g.hasNumericValue+g.hasOverloadedBooleanValue?void 0:k("50",f);e.hasOwnProperty(f)&&(g.attributeName=e[f]);d.hasOwnProperty(f)&&(g.attributeNamespace=d[f]);a.hasOwnProperty(f)&&(g.mutationMethod=a[f]);pa.properties[f]=g}}},pa={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(a,b){if(pa.isReservedProp(a))return!1;if(null===b)return!0;var c=a.toLowerCase();a=pa.properties[a];switch(typeof b){case "boolean":if(a)return!0;b=c.slice(0,5);return"data-"===b||"aria-"===b;case "undefined":case "number":case "string":return!0;
-case "object":return!0;default:return!1}},getPropertyInfo:function(a){return pa.properties.hasOwnProperty(a)?pa.properties[a]:null},isReservedProp:function(a){return Jf.hasOwnProperty(a.toLowerCase())},injection:te},K=pa,gf=K.ID_ATTRIBUTE_NAME,vd={hasCachedChildNodes:1},ue=Math.random().toString(36).slice(2),R="__reactInternalInstance$"+ue,ve="__reactEventHandlers$"+ue,x={getClosestInstanceFromNode:wd,getInstanceFromNode:function(a){var b=a[R];if(b)return 5===b.tag||6===b.tag?b:b._hostNode===a?b:
-null;b=wd(a);return null!=b&&b._hostNode===a?b:null},getNodeFromInstance:function(a){if(5===a.tag||6===a.tag)return a.stateNode;void 0===a._hostNode?k("33"):void 0;if(a._hostNode)return a._hostNode;for(var b=[];!a._hostNode;)b.push(a),a._hostParent?void 0:k("34"),a=a._hostParent;for(;b.length;a=b.pop())jc(a,a._hostNode);return a._hostNode},precacheChildNodes:jc,precacheNode:ud,uncacheNode:function(a){var b=a._hostNode;b&&(delete b[R],a._hostNode=null)},precacheFiberNode:function(a,b){b[R]=a},getFiberCurrentPropsFromNode:function(a){return a[ve]||
-null},updateFiberProps:function(a,b){a[ve]=b}},ha={remove:function(a){a._reactInternalFiber=void 0},get:function(a){return a._reactInternalFiber},has:function(a){return void 0!==a._reactInternalFiber},set:function(a,b){a._reactInternalFiber=b}},tc={ReactCurrentOwner:ab.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},Ra={isFiberMounted:function(a){return 2===nb(a)},isMounted:function(a){return(a=ha.get(a))?2===nb(a):!1},findCurrentFiberUsingSlowPath:kc,findCurrentHostFiber:function(a){a=
-kc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null},findCurrentHostFiberWithNoPortals:function(a){a=kc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child&&4!==b.tag)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===
-a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null}},w={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(a){"function"!==typeof a.invokeGuardedCallback?k("197"):void 0;pd=a.invokeGuardedCallback}},invokeGuardedCallback:function(a,b,c,d,e,f,g,h,k){pd.apply(w,arguments)},invokeGuardedCallbackAndCatchFirstError:function(a,b,c,d,e,f,g,h,k){w.invokeGuardedCallback.apply(this,arguments);if(w.hasCaughtError()){var p=
-w.clearCaughtError();w._hasRethrowError||(w._hasRethrowError=!0,w._rethrowError=p)}},rethrowCaughtError:function(){return ff.apply(w,arguments)},hasCaughtError:function(){return w._hasCaughtError},clearCaughtError:function(){if(w._hasCaughtError){var a=w._caughtError;w._caughtError=null;w._hasCaughtError=!1;return a}k("198")}},zd=w,Bb,lc={isEndish:function(a){return"topMouseUp"===a||"topTouchEnd"===a||"topTouchCancel"===a},isMoveish:function(a){return"topMouseMove"===a||"topTouchMove"===a},isStartish:function(a){return"topMouseDown"===
-a||"topTouchStart"===a},executeDirectDispatch:function(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?k("103"):void 0;a.currentTarget=b?lc.getNodeFromInstance(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b},executeDispatchesInOrder:function(a,b){var c=a._dispatchListeners,d=a._dispatchInstances;if(Array.isArray(c))for(var e=0;e<c.length&&!a.isPropagationStopped();e++)yd(a,b,c[e],d[e]);else c&&yd(a,b,c,d);a._dispatchListeners=
-null;a._dispatchInstances=null},executeDispatchesInOrderStopAtTrue:function(a){a:{var b=a._dispatchListeners;var c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;d<b.length&&!a.isPropagationStopped();d++){if(b[d](a,c[d])){b=c[d];break a}}else if(b&&b(a,c)){b=c;break a}b=null}a._dispatchInstances=null;a._dispatchListeners=null;return b},hasDispatches:function(a){return!!a._dispatchListeners},getFiberCurrentPropsFromNode:function(a){return Bb.getFiberCurrentPropsFromNode(a)},getInstanceFromNode:function(a){return Bb.getInstanceFromNode(a)},
-getNodeFromInstance:function(a){return Bb.getNodeFromInstance(a)},injection:{injectComponentTree:function(a){Bb=a}}},Ga=lc,ob=null,Sa=null,Ta=null,xb={injection:{injectFiberControlledHostComponent:function(a){ob=a}},enqueueStateRestore:function(a){Sa?Ta?Ta.push(a):Ta=[a]:Sa=a},restoreStateIfNeeded:function(){if(Sa){var a=Sa,b=Ta;Ta=Sa=null;Ad(a);if(b)for(a=0;a<b.length;a++)Ad(b[a])}}},uc=!1,zb={batchedUpdates:function(a,b){if(uc)return ic(Bd,a,b);uc=!0;try{return ic(Bd,a,b)}finally{uc=!1,xb.restoreStateIfNeeded()}},
-injection:{injectStackBatchedUpdates:function(a){ic=a},injectFiberBatchedUpdates:function(a){od=a}}},Cb=[],ja={_enabled:!0,_handleTopLevel:null,setHandleTopLevel:function(a){ja._handleTopLevel=a},setEnabled:function(a){ja._enabled=!!a},isEnabled:function(){return ja._enabled},trapBubbledEvent:function(a,b,c){return c?se.listen(c,b,ja.dispatchEvent.bind(null,a)):null},trapCapturedEvent:function(a,b,c){return c?se.capture(c,b,ja.dispatchEvent.bind(null,a)):null},dispatchEvent:function(a,b){if(ja._enabled){var c=
-kb(b);c=x.getClosestInstanceFromNode(c);null===c||"number"!==typeof c.tag||Ra.isFiberMounted(c)||(c=null);if(Cb.length){var d=Cb.pop();d.topLevelType=a;d.nativeEvent=b;d.targetInst=c;a=d}else a={topLevelType:a,nativeEvent:b,targetInst:c,ancestors:[]};try{zb.batchedUpdates(hf,a)}finally{a.topLevelType=null,a.nativeEvent=null,a.targetInst=null,a.ancestors.length=0,10>Cb.length&&Cb.push(a)}}}},L=ja,Ua=null,X={injection:{injectEventPluginOrder:oa.injectEventPluginOrder,injectEventPluginsByName:oa.injectEventPluginsByName},
-getListener:function(a,b){if("number"===typeof a.tag){var c=a.stateNode;if(!c)return null;var d=Ga.getFiberCurrentPropsFromNode(c);if(!d)return null;c=d[b];if(Cd(b,a.type,d))return null}else{d=a._currentElement;if("string"===typeof d||"number"===typeof d||!a._rootNodeID)return null;a=d.props;c=a[b];if(Cd(b,d.type,a))return null}qd(!c||"function"===typeof c,"Expected `%s` listener to be a function, instead got a value of `%s` type.",b,typeof c);return c},extractEvents:function(a,b,c,d){for(var e,f=
-oa.plugins,g=0;g<f.length;g++){var h=f[g];h&&(h=h.extractEvents(a,b,c,d))&&(e=ta(e,h))}return e},enqueueEvents:function(a){a&&(Ua=ta(Ua,a))},processEventQueue:function(a){var b=Ua;Ua=null;a?Ha(b,ef):Ha(b,df);Ua?k("95"):void 0;zd.rethrowCaughtError()}},md;m&&(md=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var sa={animationend:pb("Animation","AnimationEnd"),animationiteration:pb("Animation","AnimationIteration"),animationstart:pb("Animation",
-"AnimationStart"),transitionend:pb("Transition","TransitionEnd")},hc={},ld={};m&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete sa.animationend.animation,delete sa.animationiteration.animation,delete sa.animationstart.animation),"TransitionEvent"in window||delete sa.transitionend.transition);var we={topAbort:"abort",topAnimationEnd:jb("animationend")||"animationend",topAnimationIteration:jb("animationiteration")||"animationiteration",topAnimationStart:jb("animationstart")||
-"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",
-topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",
-topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:jb("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},Ed={},jf=0,qb=
-"_reactListenersID"+(""+Math.random()).slice(2),n=D({},{handleTopLevel:function(a,b,c,d){a=X.extractEvents(a,b,c,d);X.enqueueEvents(a);X.processEventQueue(!1)}},{setEnabled:function(a){L&&L.setEnabled(a)},isEnabled:function(){return!(!L||!L.isEnabled())},listenTo:function(a,b){var c=Dd(b);a=oa.registrationNameDependencies[a];for(var d=0;d<a.length;d++){var e=a[d];c.hasOwnProperty(e)&&c[e]||("topWheel"===e?Fa("wheel")?L.trapBubbledEvent("topWheel","wheel",b):Fa("mousewheel")?L.trapBubbledEvent("topWheel",
-"mousewheel",b):L.trapBubbledEvent("topWheel","DOMMouseScroll",b):"topScroll"===e?L.trapCapturedEvent("topScroll","scroll",b):"topFocus"===e||"topBlur"===e?(L.trapCapturedEvent("topFocus","focus",b),L.trapCapturedEvent("topBlur","blur",b),c.topBlur=!0,c.topFocus=!0):"topCancel"===e?(Fa("cancel",!0)&&L.trapCapturedEvent("topCancel","cancel",b),c.topCancel=!0):"topClose"===e?(Fa("close",!0)&&L.trapCapturedEvent("topClose","close",b),c.topClose=!0):we.hasOwnProperty(e)&&L.trapBubbledEvent(e,we[e],b),
-c[e]=!0)}},isListeningToAllDependencies:function(a,b){b=Dd(b);a=oa.registrationNameDependencies[a];for(var c=0;c<a.length;c++){var d=a[c];if(!b.hasOwnProperty(d)||!b[d])return!1}return!0},trapBubbledEvent:function(a,b,c){return L.trapBubbledEvent(a,b,c)},trapCapturedEvent:function(a,b,c){return L.trapCapturedEvent(a,b,c)}}),ib={disableNewFiberFeatures:!1,enableAsyncSubtreeAPI:!1},Va={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,
-boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Kf=["Webkit",
-"ms","Moz","O"];Object.keys(Va).forEach(function(a){Kf.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Va[b]=Va[a]})});var Lf={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,
-borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},xe=!1;if(m){var Mf=document.createElement("div").style;try{Mf.font=""}catch(a){xe=!0}}var ye={createDangerousStringForStyles:function(){},setValueForStyles:function(a,b){a=a.style;
-for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--");var e=c;var f=b[c];e=null==f||"boolean"===typeof f||""===f?"":d||"number"!==typeof f||0===f||Va.hasOwnProperty(e)&&Va[e]?(""+f).trim():f+"px";"float"===c&&(c="cssFloat");if(d)a.setProperty(c,e);else if(e)a[c]=e;else if(d=xe&&Lf[c])for(var g in d)a[g]="";else a[c]=""}}},lf=new RegExp("^["+K.ATTRIBUTE_NAME_START_CHAR+"]["+K.ATTRIBUTE_NAME_CHAR+"]*$"),Gd={},Fd={},vc={setAttributeForID:function(a,b){a.setAttribute(K.ID_ATTRIBUTE_NAME,b)},
-setAttributeForRoot:function(a){a.setAttribute(K.ROOT_ATTRIBUTE_NAME,"")},getValueForProperty:function(){},getValueForAttribute:function(){},setValueForProperty:function(a,b,c){var d=K.getPropertyInfo(b);if(d&&K.shouldSetAttribute(b,c)){var e=d.mutationMethod;e?e(a,c):null==c||d.hasBooleanValue&&!c||d.hasNumericValue&&isNaN(c)||d.hasPositiveNumericValue&&1>c||d.hasOverloadedBooleanValue&&!1===c?vc.deleteValueForProperty(a,b):d.mustUseProperty?a[d.propertyName]=c:(b=d.attributeName,(e=d.attributeNamespace)?
-a.setAttributeNS(e,b,""+c):d.hasBooleanValue||d.hasOverloadedBooleanValue&&!0===c?a.setAttribute(b,""):a.setAttribute(b,""+c))}else vc.setValueForAttribute(a,b,K.shouldSetAttribute(b,c)?c:null)},setValueForAttribute:function(a,b,c){kf(b)&&(null==c?a.removeAttribute(b):a.setAttribute(b,""+c))},deleteValueForAttribute:function(a,b){a.removeAttribute(b)},deleteValueForProperty:function(a,b){var c=K.getPropertyInfo(b);c?(b=c.mutationMethod)?b(a,void 0):c.mustUseProperty?a[c.propertyName]=c.hasBooleanValue?
-!1:"":a.removeAttribute(c.attributeName):a.removeAttribute(b)}},qa=vc,ze=tc.ReactDebugCurrentFrame,Wa={current:null,phase:null,resetCurrentFiber:function(){ze.getCurrentStack=null;Wa.current=null;Wa.phase=null},setCurrentFiber:function(a,b){ze.getCurrentStack=Hd;Wa.current=a;Wa.phase=b},getCurrentFiberOwnerName:function(){return null},getCurrentFiberStackAddendum:Hd},Nf=Wa,wc={getHostProps:function(a,b){var c=b.value,d=b.checked;return D({type:void 0,step:void 0,min:void 0,max:void 0},b,{defaultChecked:void 0,
-defaultValue:void 0,value:null!=c?c:a._wrapperState.initialValue,checked:null!=d?d:a._wrapperState.initialChecked})},initWrapperState:function(a,b){var c=b.defaultValue;a._wrapperState={initialChecked:null!=b.checked?b.checked:b.defaultChecked,initialValue:null!=b.value?b.value:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value}},updateWrapper:function(a,b){var c=b.checked;null!=c&&qa.setValueForProperty(a,"checked",c||!1);c=b.value;if(null!=c)if(0===c&&""===a.value)a.value=
-"0";else if("number"===b.type){if(b=parseFloat(a.value)||0,c!=b||c==b&&a.value!=c)a.value=""+c}else a.value!==""+c&&(a.value=""+c);else null==b.value&&null!=b.defaultValue&&a.defaultValue!==""+b.defaultValue&&(a.defaultValue=""+b.defaultValue),null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)},postMountWrapper:function(a,b){switch(b.type){case "submit":case "reset":break;case "color":case "date":case "datetime":case "datetime-local":case "month":case "time":case "week":a.value=
-"";a.value=a.defaultValue;break;default:a.value=a.value}b=a.name;""!==b&&(a.name="");a.defaultChecked=!a.defaultChecked;a.defaultChecked=!a.defaultChecked;""!==b&&(a.name=b)},restoreControlledState:function(a,b){wc.updateWrapper(a,b);var c=b.name;if("radio"===b.type&&null!=c){for(b=a;b.parentNode;)b=b.parentNode;c=b.querySelectorAll("input[name\x3d"+JSON.stringify(""+c)+'][type\x3d"radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=x.getFiberCurrentPropsFromNode(d);e?void 0:
-k("90");wc.updateWrapper(d,e)}}}}},Y=wc,za={validateProps:function(){},postMountWrapper:function(a,b){null!=b.value&&a.setAttribute("value",b.value)},getHostProps:function(a,b){a=D({children:void 0},b);if(b=mf(b.children))a.children=b;return a}},ka={getHostProps:function(a,b){return D({},b,{value:void 0})},initWrapperState:function(a,b){var c=b.value;a._wrapperState={initialValue:null!=c?c:b.defaultValue,wasMultiple:!!b.multiple}},postMountWrapper:function(a,b){a.multiple=!!b.multiple;var c=b.value;
-null!=c?va(a,!!b.multiple,c):null!=b.defaultValue&&va(a,!!b.multiple,b.defaultValue)},postUpdateWrapper:function(a,b){a._wrapperState.initialValue=void 0;var c=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!b.multiple;var d=b.value;null!=d?va(a,!!b.multiple,d):c!==!!b.multiple&&(null!=b.defaultValue?va(a,!!b.multiple,b.defaultValue):va(a,!!b.multiple,b.multiple?[]:""))},restoreControlledState:function(a,b){var c=b.value;null!=c&&va(a,!!b.multiple,c)}},Ae={getHostProps:function(a,b){null!=
-b.dangerouslySetInnerHTML?k("91"):void 0;return D({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})},initWrapperState:function(a,b){var c=b.value,d=c;null==c&&(c=b.defaultValue,b=b.children,null!=b&&(null!=c?k("92"):void 0,Array.isArray(b)&&(1>=b.length?void 0:k("93"),b=b[0]),c=""+b),null==c&&(c=""),d=c);a._wrapperState={initialValue:""+d}},updateWrapper:function(a,b){var c=b.value;null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&(a.defaultValue=c));
-null!=b.defaultValue&&(a.defaultValue=b.defaultValue)},postMountWrapper:function(a){var b=a.textContent;b===a._wrapperState.initialValue&&(a.value=b)},restoreControlledState:function(a,b){Ae.updateWrapper(a,b)}},ea=Ae,cf=D({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}),xa={_getTrackerFromNode:function(a){return a._valueTracker},track:function(a){a._valueTracker||(a._valueTracker=nf(a))},updateValueIfChanged:function(a){if(!a)return!1;
-var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d="";a&&(d=Id(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1},stopTracking:function(a){(a=a._valueTracker)&&a.stopTracking()}},Db,xc=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if("http://www.w3.org/2000/svg"!==a.namespaceURI||"innerHTML"in a)a.innerHTML=b;else for(Db=Db||document.createElement("div"),
-Db.innerHTML="\x3csvg\x3e"+b+"\x3c/svg\x3e",b=Db.firstChild;b.firstChild;)a.appendChild(b.firstChild)}),Of=/["'&<>]/;m&&("textContent"in document.documentElement||(kd=function(a,b){if(3===a.nodeType)a.nodeValue=b;else{if("boolean"===typeof b||"number"===typeof b)b=""+b;else{b=""+b;var c=Of.exec(b);if(c){var d="",e,f=0;for(e=c.index;e<b.length;e++){switch(b.charCodeAt(e)){case 34:c="\x26quot;";break;case 38:c="\x26amp;";break;case 39:c="\x26#x27;";break;case 60:c="\x26lt;";break;case 62:c="\x26gt;";
-break;default:continue}f!==e&&(d+=b.substring(f,e));f=e+1;d+=c}b=f!==e?d+b.substring(f,e):d}}xc(a,b)}}));var yc=kd,zc=Nf.getCurrentFiberOwnerName,of=n.listenTo,Eb=oa.registrationNameModules,Aa={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",
-topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},F={createElement:function(a,b,c,d){c=9===c.nodeType?c:c.ownerDocument;"http://www.w3.org/1999/xhtml"===d&&(d=Mc(a));"http://www.w3.org/1999/xhtml"===d?"script"===a?(a=c.createElement("div"),a.innerHTML="\x3cscript\x3e\x3c/script\x3e",a=a.removeChild(a.firstChild)):a=b.is?
-c.createElement(a,{is:b.is}):c.createElement(a):a=c.createElementNS(d,a);return a},setInitialProperties:function(a,b,c,d){var e=fc(b,c);switch(b){case "iframe":case "object":n.trapBubbledEvent("topLoad","load",a);var f=c;break;case "video":case "audio":for(f in Aa)Aa.hasOwnProperty(f)&&n.trapBubbledEvent(f,Aa[f],a);f=c;break;case "source":n.trapBubbledEvent("topError","error",a);f=c;break;case "img":case "image":n.trapBubbledEvent("topError","error",a);n.trapBubbledEvent("topLoad","load",a);f=c;break;
-case "form":n.trapBubbledEvent("topReset","reset",a);n.trapBubbledEvent("topSubmit","submit",a);f=c;break;case "details":n.trapBubbledEvent("topToggle","toggle",a);f=c;break;case "input":Y.initWrapperState(a,c);f=Y.getHostProps(a,c);n.trapBubbledEvent("topInvalid","invalid",a);W(d,"onChange");break;case "option":za.validateProps(a,c);f=za.getHostProps(a,c);break;case "select":ka.initWrapperState(a,c);f=ka.getHostProps(a,c);n.trapBubbledEvent("topInvalid","invalid",a);W(d,"onChange");break;case "textarea":ea.initWrapperState(a,
-c);f=ea.getHostProps(a,c);n.trapBubbledEvent("topInvalid","invalid",a);W(d,"onChange");break;default:f=c}gc(b,f,zc);var g=f,h;for(h in g)if(g.hasOwnProperty(h)){var k=g[h];"style"===h?ye.setValueForStyles(a,k):"dangerouslySetInnerHTML"===h?(k=k?k.__html:void 0,null!=k&&xc(a,k)):"children"===h?"string"===typeof k?yc(a,k):"number"===typeof k&&yc(a,""+k):"suppressContentEditableWarning"!==h&&(Eb.hasOwnProperty(h)?k&&W(d,h):e?qa.setValueForAttribute(a,h,k):null!=k&&qa.setValueForProperty(a,h,k))}switch(b){case "input":xa.track(a);
-Y.postMountWrapper(a,c);break;case "textarea":xa.track(a);ea.postMountWrapper(a,c);break;case "option":za.postMountWrapper(a,c);break;case "select":ka.postMountWrapper(a,c);break;default:"function"===typeof f.onClick&&(a.onclick=z)}},diffProperties:function(a,b,c,d,e){var f=null;switch(b){case "input":c=Y.getHostProps(a,c);d=Y.getHostProps(a,d);f=[];break;case "option":c=za.getHostProps(a,c);d=za.getHostProps(a,d);f=[];break;case "select":c=ka.getHostProps(a,c);d=ka.getHostProps(a,d);f=[];break;case "textarea":c=
-ea.getHostProps(a,c);d=ea.getHostProps(a,d);f=[];break;default:"function"!==typeof c.onClick&&"function"===typeof d.onClick&&(a.onclick=z)}gc(b,d,zc);var g,h;a=null;for(g in c)if(!d.hasOwnProperty(g)&&c.hasOwnProperty(g)&&null!=c[g])if("style"===g)for(h in b=c[g],b)b.hasOwnProperty(h)&&(a||(a={}),a[h]="");else"dangerouslySetInnerHTML"!==g&&"children"!==g&&"suppressContentEditableWarning"!==g&&(Eb.hasOwnProperty(g)?f||(f=[]):(f=f||[]).push(g,null));for(g in d){var k=d[g];b=null!=c?c[g]:void 0;if(d.hasOwnProperty(g)&&
-k!==b&&(null!=k||null!=b))if("style"===g)if(b){for(h in b)!b.hasOwnProperty(h)||k&&k.hasOwnProperty(h)||(a||(a={}),a[h]="");for(h in k)k.hasOwnProperty(h)&&b[h]!==k[h]&&(a||(a={}),a[h]=k[h])}else a||(f||(f=[]),f.push(g,a)),a=k;else"dangerouslySetInnerHTML"===g?(k=k?k.__html:void 0,b=b?b.__html:void 0,null!=k&&b!==k&&(f=f||[]).push(g,""+k)):"children"===g?b===k||"string"!==typeof k&&"number"!==typeof k||(f=f||[]).push(g,""+k):"suppressContentEditableWarning"!==g&&(Eb.hasOwnProperty(g)?(k&&W(e,g),f||
-b===k||(f=[])):(f=f||[]).push(g,k))}a&&(f=f||[]).push("style",a);return f},updateProperties:function(a,b,c,d,e){fc(c,d);d=fc(c,e);for(var f=0;f<b.length;f+=2){var g=b[f],h=b[f+1];"style"===g?ye.setValueForStyles(a,h):"dangerouslySetInnerHTML"===g?xc(a,h):"children"===g?yc(a,h):d?null!=h?qa.setValueForAttribute(a,g,h):qa.deleteValueForAttribute(a,g):null!=h?qa.setValueForProperty(a,g,h):qa.deleteValueForProperty(a,g)}switch(c){case "input":Y.updateWrapper(a,e);xa.updateValueIfChanged(a);break;case "textarea":ea.updateWrapper(a,
-e);break;case "select":ka.postUpdateWrapper(a,e)}},diffHydratedProperties:function(a,b,c,d){switch(b){case "iframe":case "object":n.trapBubbledEvent("topLoad","load",a);break;case "video":case "audio":for(var e in Aa)Aa.hasOwnProperty(e)&&n.trapBubbledEvent(e,Aa[e],a);break;case "source":n.trapBubbledEvent("topError","error",a);break;case "img":case "image":n.trapBubbledEvent("topError","error",a);n.trapBubbledEvent("topLoad","load",a);break;case "form":n.trapBubbledEvent("topReset","reset",a);n.trapBubbledEvent("topSubmit",
-"submit",a);break;case "details":n.trapBubbledEvent("topToggle","toggle",a);break;case "input":Y.initWrapperState(a,c);n.trapBubbledEvent("topInvalid","invalid",a);W(d,"onChange");break;case "option":za.validateProps(a,c);break;case "select":ka.initWrapperState(a,c);n.trapBubbledEvent("topInvalid","invalid",a);W(d,"onChange");break;case "textarea":ea.initWrapperState(a,c),n.trapBubbledEvent("topInvalid","invalid",a),W(d,"onChange")}gc(b,c,zc);e=null;for(var f in c)if(c.hasOwnProperty(f)){var g=c[f];
-"children"===f?"string"===typeof g?a.textContent!==g&&(e=["children",g]):"number"===typeof g&&a.textContent!==""+g&&(e=["children",""+g]):Eb.hasOwnProperty(f)&&g&&W(d,f)}switch(b){case "input":xa.track(a);Y.postMountWrapper(a,c);break;case "textarea":xa.track(a);ea.postMountWrapper(a,c);break;case "select":case "option":break;default:"function"===typeof c.onClick&&(a.onclick=z)}return e},diffHydratedText:function(a,b){return a.nodeValue!==b},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},
-warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(a,b,c){switch(b){case "input":Y.restoreControlledState(a,c);break;case "textarea":ea.restoreControlledState(a,c);break;case "select":ka.restoreControlledState(a,c)}}},Fb=void 0;if(m)if("function"!==typeof requestIdleCallback){var Be=null,Ac=null,Bc=!1,Cc=!1,Gb=0,Hb=33,Xa=33,Pf={timeRemaining:"object"===typeof performance&&"function"===typeof performance.now?function(){return Gb-performance.now()}:
-function(){return Gb-Date.now()}},Ce="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){a.source===window&&a.data===Ce&&(Bc=!1,a=Ac,Ac=null,null!==a&&a(Pf))},!1);var Qf=function(a){Cc=!1;var b=a-Gb+Xa;b<Xa&&Hb<Xa?(8>b&&(b=8),Xa=b<Hb?Hb:b):Hb=b;Gb=a+Xa;Bc||(Bc=!0,window.postMessage(Ce,"*"));b=Be;Be=null;null!==b&&b(a)};Fb=function(a){Ac=a;Cc||(Cc=!0,requestAnimationFrame(Qf));return 0}}else Fb=requestIdleCallback;else Fb=function(a){setTimeout(function(){a({timeRemaining:function(){return Infinity}})});
-return 0};var Rf=Fb,ba={},db=[],ca=-1,Sf=Ra.isFiberMounted,da={current:ba},T={current:!1},eb=ba;if("function"===typeof Symbol&&Symbol["for"]){var De=Symbol["for"]("react.coroutine");var Ee=Symbol["for"]("react.yield")}else De=60104,Ee=60105;var Tf=Ee,Uf=De,Dc="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106,Fe={createPortal:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Dc,key:null==d?null:""+d,children:a,containerInfo:b,
-implementation:c}},isPortal:function(a){return"object"===typeof a&&null!==a&&a.$$typeof===Dc},REACT_PORTAL_TYPE:Dc},sb=Uf,tb=Tf,Ma=Fe.REACT_PORTAL_TYPE,Yb=Vc,ub=Array.isArray,Md="function"===typeof Symbol&&Symbol.iterator,La="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,Vb=nc(!0,!0),Xb=nc(!1,!0),Wb=nc(!1,!1),bf=Object.prototype.hasOwnProperty,af=Ra.isMounted,Ze=tc.ReactCurrentOwner,Tb=null,Ub=null,ra={},fb=tc.ReactCurrentOwner;oc._injectFiber=function(a){Uc=a};var Vf=
-Ra.findCurrentHostFiber,Wf=Ra.findCurrentHostFiberWithNoPortals;oc._injectFiber(function(a){var b;a:{Sf(a)&&2===a.tag?void 0:k("170");for(b=a;3!==b.tag;){if(Ea(b)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}(b=b["return"])?void 0:k("171")}b=b.stateNode.context}return Ea(a)?gd(a,b,!1):b});var Qb=null,Ge={getOffsets:function(a){var b=window.getSelection&&window.getSelection();if(!b||0===b.rangeCount)return null;var c=b.anchorNode,d=b.anchorOffset,e=b.focusNode,f=b.focusOffset,g=
-b.getRangeAt(0);try{g.startContainer.nodeType,g.endContainer.nodeType}catch(p){return null}b=b.anchorNode===b.focusNode&&b.anchorOffset===b.focusOffset?0:g.toString().length;var h=g.cloneRange();h.selectNodeContents(a);h.setEnd(g.startContainer,g.startOffset);a=h.startContainer===h.endContainer&&h.startOffset===h.endOffset?0:h.toString().length;g=a+b;b=document.createRange();b.setStart(c,d);b.setEnd(e,f);c=b.collapsed;return{start:c?g:a,end:c?a:g}},setOffsets:function(a,b){if(window.getSelection){var c=
-window.getSelection(),d=a[Rc()].length,e=Math.min(b.start,d);b=void 0===b.end?e:Math.min(b.end,d);!c.extend&&e>b&&(d=b,b=e,e=d);d=Sc(a,e);a=Sc(a,b);if(d&&a){var f=document.createRange();f.setStart(d.node,d.offset);c.removeAllRanges();e>b?(c.addRange(f),c.extend(a.node,a.offset)):(f.setEnd(a.node,a.offset),c.addRange(f))}}}},Ya={hasSelectionCapabilities:function(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&"text"===a.type||"textarea"===b||"true"===a.contentEditable)},getSelectionInformation:function(){var a=
-Pb();return{focusedElem:a,selectionRange:Ya.hasSelectionCapabilities(a)?Ya.getSelection(a):null}},restoreSelection:function(a){var b=Pb(),c=a.focusedElem;a=a.selectionRange;if(b!==c&&Od(document.documentElement,c)){Ya.hasSelectionCapabilities(c)&&Ya.setSelection(c,a);b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});try{c.focus()}catch(d){}for(c=0;c<b.length;c++)a=b[c],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}},getSelection:function(a){return("selectionStart"in
-a?{start:a.selectionStart,end:a.selectionEnd}:Ge.getOffsets(a))||{start:0,end:0}},setSelection:function(a,b){var c=b.start,d=b.end;void 0===d&&(d=c);"selectionStart"in a?(a.selectionStart=c,a.selectionEnd=Math.min(d,a.value.length)):Ge.setOffsets(a,b)}},rc=Ya;cb._injectFiber=function(a){Oc=a};cb._injectStack=function(a){Pc=a};var vb={isAncestor:function(a,b){for(;b;){if(a===b||a===b.alternate)return!0;b=P(b)}return!1},getLowestCommonAncestor:Pd,getParentInstance:function(a){return P(a)},traverseTwoPhase:function(a,
-b,c){for(var d=[];a;)d.push(a),a=P(a);for(a=d.length;0<a--;)b(d[a],"captured",c);for(a=0;a<d.length;a++)b(d[a],"bubbled",c)},traverseEnterLeave:function(a,b,c,d,e){for(var f=a&&b?Pd(a,b):null,g=[];a&&a!==f;)g.push(a),a=P(a);for(a=[];b&&b!==f;)a.push(b),b=P(b);for(b=0;b<g.length;b++)c(g[b],"bubbled",d);for(b=a.length;0<b--;)c(a[b],"captured",e)}},Rd=X.getListener,ma={accumulateTwoPhaseDispatches:function(a){Ha(a,pf)},accumulateTwoPhaseDispatchesSkipTarget:function(a){Ha(a,qf)},accumulateDirectDispatches:function(a){Ha(a,
-rf)},accumulateEnterLeaveDispatches:function(a,b,c,d){vb.traverseEnterLeave(c,d,Sd,a,b)}},Za=null,Ec=null,Ib=null,Fc={initialize:function(a){Za=a;Ec=Fc.getText();return!0},reset:function(){Ib=Ec=Za=null},getData:function(){if(Ib)return Ib;var a,b=Ec,c=b.length,d,e=Fc.getText(),f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return Ib=e.slice(a,1<d?1-d:void 0)},getText:function(){return"value"in Za?Za.value:Za[Rc()]}},wb=Fc,He="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),
-Xf={type:null,target:null,currentTarget:z.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};D(Na.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=z.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():
-"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=z.thatReturnsTrue)},persist:function(){this.isPersistent=z.thatReturnsTrue},isPersistent:z.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<He.length;a++)this[He[a]]=null}});Na.Interface=Xf;Na.augmentClass=function(a,b){function c(){}c.prototype=this.prototype;var d=new c;D(d,a.prototype);a.prototype=d;a.prototype.constructor=a;a.Interface=D({},this.Interface,
-b);a.augmentClass=this.augmentClass;Td(a)};Td(Na);var E=Na;E.augmentClass(Ud,{data:null});E.augmentClass(Vd,{data:null});var vf=[9,13,27,32],pc=m&&"CompositionEvent"in window,$a=null;m&&"documentMode"in document&&($a=document.documentMode);var Yf=m&&"TextEvent"in window&&!$a&&!uf(),$d=m&&(!pc||$a&&8<$a&&11>=$a),Zd=String.fromCharCode(32),fa={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(" ")}},Yd=!1,wa=!1,Zf={eventTypes:fa,extractEvents:function(a,b,c,d){var e;if(pc)b:{switch(a){case "topCompositionStart":var f=fa.compositionStart;break b;case "topCompositionEnd":f=fa.compositionEnd;break b;case "topCompositionUpdate":f=fa.compositionUpdate;break b}f=void 0}else wa?Wd(a,c)&&(f=fa.compositionEnd):"topKeyDown"===a&&229===c.keyCode&&(f=fa.compositionStart);f?($d&&(wa||f!==fa.compositionStart?
-f===fa.compositionEnd&&wa&&(e=wb.getData()):wa=wb.initialize(d)),f=Ud.getPooled(f,b,c,d),e?f.data=e:(e=Xd(c),null!==e&&(f.data=e)),ma.accumulateTwoPhaseDispatches(f),e=f):e=null;(a=Yf?wf(a,c):xf(a,c))?(b=Vd.getPooled(fa.beforeInput,b,c,d),b.data=a,ma.accumulateTwoPhaseDispatches(b)):b=null;return[e,b]}},Ne={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},be={change:{phasedRegistrationNames:{bubbled:"onChange",
-captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Oa=null,Pa=null,Gc=!1;m&&(Gc=Fa("input")&&(!document.documentMode||9<document.documentMode));var $f={eventTypes:be,_isInputEventSupported:Gc,extractEvents:function(a,b,c,d){var e=b?x.getNodeFromInstance(b):window,f=e.nodeName&&e.nodeName.toLowerCase();if("select"===f||"input"===f&&"file"===e.type)var g=zf;else if(Nc(e))if(Gc)g=Df;else{g=Bf;var h=Af}else f=e.nodeName,
-!f||"input"!==f.toLowerCase()||"checkbox"!==e.type&&"radio"!==e.type||(g=Cf);if(g&&(g=g(a,b)))return ae(g,c,d);h&&h(a,e,b);"topBlur"===a&&null!=b&&(a=b._wrapperState||e._wrapperState)&&a.controlled&&"number"===e.type&&(a=""+e.value,e.getAttribute("value")!==a&&e.setAttribute("value",a))}};E.augmentClass(ee,{view:function(a){if(a.view)return a.view;a=kb(a);return a.window===a?a:(a=a.ownerDocument)?a.defaultView||a.parentWindow:window},detail:function(a){return a.detail||0}});var aa=ee,Ef={Alt:"altKey",
-Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};aa.augmentClass(fe,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ob,button:null,buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)}});var na=fe,Hc={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut",
-"topMouseOver"]}},ag={eventTypes:Hc,extractEvents:function(a,b,c,d){if("topMouseOver"===a&&(c.relatedTarget||c.fromElement)||"topMouseOut"!==a&&"topMouseOver"!==a)return null;var e=d.window===d?d:(e=d.ownerDocument)?e.defaultView||e.parentWindow:window;"topMouseOut"===a?(a=b,b=(b=c.relatedTarget||c.toElement)?x.getClosestInstanceFromNode(b):null):a=null;if(a===b)return null;var f=null==a?e:x.getNodeFromInstance(a);e=null==b?e:x.getNodeFromInstance(b);var g=na.getPooled(Hc.mouseLeave,a,c,d);g.type=
-"mouseleave";g.target=f;g.relatedTarget=e;c=na.getPooled(Hc.mouseEnter,b,c,d);c.type="mouseenter";c.target=e;c.relatedTarget=f;ma.accumulateEnterLeaveDispatches(g,c,a,b);return[g,c]}},bg=m&&"documentMode"in document&&11>=document.documentMode,he={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},ya=null,sc=null,Qa=null,qc=!1,cg=n.isListeningToAllDependencies,
-dg={eventTypes:he,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument;if(!e||!cg("onSelect",e))return null;e=b?x.getNodeFromInstance(b):window;switch(a){case "topFocus":if(Nc(e)||"true"===e.contentEditable)ya=e,sc=b,Qa=null;break;case "topBlur":Qa=sc=ya=null;break;case "topMouseDown":qc=!0;break;case "topContextMenu":case "topMouseUp":return qc=!1,ge(c,d);case "topSelectionChange":if(bg)break;case "topKeyDown":case "topKeyUp":return ge(c,d)}return null}};
-E.augmentClass(ie,{animationName:null,elapsedTime:null,pseudoElement:null});E.augmentClass(je,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}});aa.augmentClass(ke,{relatedTarget:null});var eg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fg={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"};aa.augmentClass(le,{key:function(a){if(a.key){var b=eg[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===a.type?(a=bb(a),13===a?"Enter":String.fromCharCode(a)):
-"keydown"===a.type||"keyup"===a.type?fg[a.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ob,charCode:function(a){return"keypress"===a.type?bb(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===a.type?bb(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}});na.augmentClass(me,{dataTransfer:null});aa.augmentClass(ne,{touches:null,targetTouches:null,
-changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ob});E.augmentClass(oe,{propertyName:null,elapsedTime:null,pseudoElement:null});na.augmentClass(pe,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null});var Ie={},Je={};"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(a){var b=
-a[0].toUpperCase()+a.slice(1),c="on"+b;b="top"+b;c={phasedRegistrationNames:{bubbled:c,captured:c+"Capture"},dependencies:[b]};Ie[a]=c;Je[b]=c});var gg={eventTypes:Ie,extractEvents:function(a,b,c,d){var e=Je[a];if(!e)return null;switch(a){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 f=
-E;break;case "topKeyPress":if(0===bb(c))return null;case "topKeyDown":case "topKeyUp":f=le;break;case "topBlur":case "topFocus":f=ke;break;case "topClick":if(2===c.button)return null;case "topDoubleClick":case "topMouseDown":case "topMouseMove":case "topMouseUp":case "topMouseOut":case "topMouseOver":case "topContextMenu":f=na;break;case "topDrag":case "topDragEnd":case "topDragEnter":case "topDragExit":case "topDragLeave":case "topDragOver":case "topDragStart":case "topDrop":f=me;break;case "topTouchCancel":case "topTouchEnd":case "topTouchMove":case "topTouchStart":f=
-ne;break;case "topAnimationEnd":case "topAnimationIteration":case "topAnimationStart":f=ie;break;case "topTransitionEnd":f=oe;break;case "topScroll":f=aa;break;case "topWheel":f=pe;break;case "topCopy":case "topCut":case "topPaste":f=je}f?void 0:k("86",a);a=f.getPooled(e,b,c,d);ma.accumulateTwoPhaseDispatches(a);return a}};L.setHandleTopLevel(n.handleTopLevel);X.injection.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" "));
-Ga.injection.injectComponentTree(x);X.injection.injectEventPluginsByName({SimpleEventPlugin:gg,EnterLeaveEventPlugin:ag,ChangeEventPlugin:$f,SelectEventPlugin:dg,BeforeInputEventPlugin:Zf});var Jb=K.injection.MUST_USE_PROPERTY,q=K.injection.HAS_BOOLEAN_VALUE,Ke=K.injection.HAS_NUMERIC_VALUE,Kb=K.injection.HAS_POSITIVE_NUMERIC_VALUE,hg={Properties:{allowFullScreen:q,async:q,autoPlay:q,capture:q,checked:Jb|q,cols:Kb,controls:q,"default":q,defer:q,disabled:q,download:K.injection.HAS_OVERLOADED_BOOLEAN_VALUE,
-formNoValidate:q,hidden:q,loop:q,multiple:Jb|q,muted:Jb|q,noValidate:q,open:q,playsInline:q,readOnly:q,required:q,reversed:q,rows:Kb,rowSpan:Ke,scoped:q,seamless:q,selected:Jb|q,size:Kb,start:Ke,span:Kb,style:0,itemScope:q,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:0,autoComplete:0,allowTransparency:0,contentEditable:0,draggable:0,spellCheck:0,autoCapitalize:0,autoCorrect:0,autoSave:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},
-DOMMutationMethods:{value:function(a,b){if(null==b)return a.removeAttribute("value");"number"!==a.type||!1===a.hasAttribute("value")?a.setAttribute("value",""+b):a.validity&&!a.validity.badInput&&a.ownerDocument.activeElement!==a&&a.setAttribute("value",""+b)}}},Ic={Properties:{},DOMAttributeNamespaces:{xlinkActuate:"http://www.w3.org/1999/xlink",xlinkArcrole:"http://www.w3.org/1999/xlink",xlinkHref:"http://www.w3.org/1999/xlink",xlinkRole:"http://www.w3.org/1999/xlink",xlinkShow:"http://www.w3.org/1999/xlink",
-xlinkTitle:"http://www.w3.org/1999/xlink",xlinkType:"http://www.w3.org/1999/xlink",xmlBase:"http://www.w3.org/XML/1998/namespace",xmlLang:"http://www.w3.org/XML/1998/namespace",xmlSpace:"http://www.w3.org/XML/1998/namespace"},DOMAttributeNames:{}},ig=/[\-\:]([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 autoReverse externalResourcesRequired preserveAlpha".split(" ").forEach(function(a){var b=
-a.replace(ig,Le);Ic.Properties[b]=0;Ic.DOMAttributeNames[b]=a});K.injection.injectDOMPropertyConfig(hg);K.injection.injectDOMPropertyConfig(Ic);var jg=ab.isValidElement,Gf=K.ROOT_ATTRIBUTE_NAME,kg=F.createElement,lg=F.setInitialProperties,mg=F.diffProperties,ng=F.updateProperties,og=F.diffHydratedProperties,pg=F.diffHydratedText,qg=F.warnForDeletedHydratableElement,rg=F.warnForDeletedHydratableText,sg=F.warnForInsertedHydratedElement,tg=F.warnForInsertedHydratedText,Lb=x.precacheFiberNode,Jc=x.updateFiberProps;
-xb.injection.injectFiberControlledHostComponent(F);cb._injectFiber(function(a){return G.findHostInstance(a)});var Kc=null,Lc=null,G=function(a){var b=a.getPublicInstance;a=Oe(a);var c=a.scheduleUpdate,d=a.getPriorityContext;return{createContainer:function(a){var b=new M(3,null,0);a={current:b,containerInfo:a,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null};return b.stateNode=a},updateContainer:function(a,b,g,h){var e=b.current;g=oc(g);null===b.context?b.context=g:b.pendingContext=
-g;b=d(e,ib.enableAsyncSubtreeAPI&&null!=a&&null!=a.type&&null!=a.type.prototype&&!0===a.type.prototype.unstable_isAsyncReactComponent);a={element:a};g=null===a.element;a={priorityLevel:b,partialState:a,callback:void 0===h?null:h,isReplace:!1,isForced:!1,isTopLevelUnmount:g,next:null};h=hb(e,a);if(g){var f=Ld(e);g=f[0];f=f[1];null!==g&&null!==a.next&&(a.next=null,g.last=a);null!==f&&null!==h&&null!==h.next&&(h.next=null,f.last=a)}c(e,b)},performWithPriority:a.performWithPriority,batchedUpdates:a.batchedUpdates,
-unbatchedUpdates:a.unbatchedUpdates,deferredUpdates:a.deferredUpdates,flushSync:a.flushSync,getPublicRootInstance:function(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return b(a.child.stateNode);default:return a.child.stateNode}},findHostInstance:function(a){a=Vf(a);return null===a?null:a.stateNode},findHostInstanceWithNoPortals:function(a){a=Wf(a);return null===a?null:a.stateNode}}}({getRootHostContext:function(a){if(9===a.nodeType)a=(a=a.documentElement)?a.namespaceURI:Nb(null,
-"");else{var b=8===a.nodeType?a.parentNode:a;a=b.namespaceURI||null;b=b.tagName;a=Nb(a,b)}return a},getChildHostContext:function(a,b){return Nb(a,b)},getPublicInstance:function(a){return a},prepareForCommit:function(){Kc=n.isEnabled();Lc=rc.getSelectionInformation();n.setEnabled(!1)},resetAfterCommit:function(){rc.restoreSelection(Lc);Lc=null;n.setEnabled(Kc);Kc=null},createInstance:function(a,b,c,d,e){a=kg(a,b,c,d);Lb(e,a);Jc(a,b);return a},appendInitialChild:function(a,b){a.appendChild(b)},finalizeInitialChildren:function(a,
-b,c,d){lg(a,b,c,d);a:{switch(b){case "button":case "input":case "select":case "textarea":a=!!c.autoFocus;break a}a=!1}return a},prepareUpdate:function(a,b,c,d,e){return mg(a,b,c,d,e)},commitMount:function(a){a.focus()},commitUpdate:function(a,b,c,d,e){Jc(a,e);ng(a,b,c,d,e)},shouldSetTextContent:function(a,b){return"textarea"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&"string"===typeof b.dangerouslySetInnerHTML.__html},
-resetTextContent:function(a){a.textContent=""},shouldDeprioritizeSubtree:function(a,b){return!!b.hidden},createTextInstance:function(a,b,c,d){a=document.createTextNode(a);Lb(d,a);return a},commitTextUpdate:function(a,b,c){a.nodeValue=c},appendChild:function(a,b){a.appendChild(b)},appendChildToContainer:function(a,b){8===a.nodeType?a.parentNode.insertBefore(b,a):a.appendChild(b)},insertBefore:function(a,b,c){a.insertBefore(b,c)},insertInContainerBefore:function(a,b,c){8===a.nodeType?a.parentNode.insertBefore(b,
-c):a.insertBefore(b,c)},removeChild:function(a,b){a.removeChild(b)},removeChildFromContainer:function(a,b){8===a.nodeType?a.parentNode.removeChild(b):a.removeChild(b)},canHydrateInstance:function(a,b){return 1===a.nodeType&&b===a.nodeName.toLowerCase()},canHydrateTextInstance:function(a,b){return""===b?!1:3===a.nodeType},getNextHydratableSibling:function(a){for(a=a.nextSibling;a&&1!==a.nodeType&&3!==a.nodeType;)a=a.nextSibling;return a},getFirstHydratableChild:function(a){for(a=a.firstChild;a&&1!==
-a.nodeType&&3!==a.nodeType;)a=a.nextSibling;return a},hydrateInstance:function(a,b,c,d,e){Lb(e,a);Jc(a,c);return og(a,b,c,d)},hydrateTextInstance:function(a,b,c){Lb(c,a);return pg(a,b)},didNotHydrateInstance:function(a,b){1===b.nodeType?qg(a,b):rg(a,b)},didNotFindHydratableInstance:function(a,b,c){sg(a,b,c)},didNotFindHydratableTextInstance:function(a,b){tg(a,b)},scheduleDeferredCallback:Rf,useSyncScheduling:!0});zb.injection.injectFiberBatchedUpdates(G.batchedUpdates);var ug={hydrate:function(a,
-b,c){return Ab(null,a,b,!0,c)},render:function(a,b,c){ib.disableNewFiberFeatures&&(jg(a)||("string"===typeof a?k("201"):"function"===typeof a?k("202"):null!=a&&"undefined"!==typeof a.props?k("203"):k("204")));return Ab(null,a,b,!1,c)},unstable_renderSubtreeIntoContainer:function(a,b,c,d){null!=a&&ha.has(a)?void 0:k("38");return Ab(a,b,c,!1,d)},unmountComponentAtNode:function(a){qe(a)?void 0:k("40");return a._reactRootContainer?(G.unbatchedUpdates(function(){Ab(null,null,a,!1,function(){a._reactRootContainer=
-null})}),!0):!1},findDOMNode:cb,unstable_createPortal:function(a,b){return Fe.createPortal(a,b,null,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_batchedUpdates:zb.batchedUpdates,unstable_deferredUpdates:G.deferredUpdates,flushSync:G.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:X,EventPluginRegistry:oa,EventPropagators:ma,ReactControlledComponent:xb,ReactDOMComponentTree:x,ReactDOMEventListener:L}};(function(a){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;
-var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!b.supportsFiber)return!0;try{var c=b.inject(a);Tb=Nd(function(a){return b.onCommitFiberRoot(c,a)});Ub=Nd(function(a){return b.onCommitFiberUnmount(c,a)})}catch(d){}return!0})({findFiberByHostInstance:x.getClosestInstanceFromNode,findHostInstanceByFiber:G.findHostInstance,bundleType:0,version:"16.0.0-beta.5",rendererPackageName:"react-dom"});return ug}
-"object"===typeof exports&&"undefined"!==typeof module?module.exports=Mb(require("react")):"function"===typeof define&&define.amd?define(["react"],Mb):this.ReactDOM=Mb(this.React);
+var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var g in f)tf.call(f,g)&&(c[g]=f[g]);if(ee){d=ee(f);for(var h=0;h<d.length;h++)uf.call(f,d[h])&&(c[d[h]]=f[d[h]])}}return c},kb=null,ua={},ha={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(a){kb?l("101"):void 0;kb=Array.prototype.slice.call(a);kd()},injectEventPluginsByName:function(a){var b=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=
+a[c];ua.hasOwnProperty(c)&&ua[c]===d||(ua[c]?l("102",c):void 0,ua[c]=d,b=!0)}b&&kd()}},na=ha;ka.thatReturns=lb;ka.thatReturnsFalse=lb(!1);ka.thatReturnsTrue=lb(!0);ka.thatReturnsNull=lb(null);ka.thatReturnsThis=function(){return this};ka.thatReturnsArgument=function(a){return a};var A=ka,fe={listen:function(a,b,c){if(a.addEventListener)return a.addEventListener(b,c,!1),{remove:function(){a.removeEventListener(b,c,!1)}};if(a.attachEvent)return a.attachEvent("on"+b,c),{remove:function(){a.detachEvent("on"+
+b,c)}}},capture:function(a,b,c){return a.addEventListener?(a.addEventListener(b,c,!0),{remove:function(){a.removeEventListener(b,c,!0)}}):{remove:A}},registerDefault:function(){}},ge=Math.random().toString(36).slice(2),oa="__reactInternalInstance$"+ge,he="__reactEventHandlers$"+ge,G={getClosestInstanceFromNode:function(a){if(a[oa])return a[oa];for(var b=[];!a[oa];)if(b.push(a),a.parentNode)a=a.parentNode;else return null;var c=a[oa];if(5===c.tag||6===c.tag)return c;for(;a&&(c=a[oa]);a=b.pop())var d=
+c;return d},getInstanceFromNode:function(a){a=a[oa];return!a||5!==a.tag&&6!==a.tag?null:a},getNodeFromInstance:function(a){if(5===a.tag||6===a.tag)return a.stateNode;l("33")},precacheFiberNode:function(a,b){b[oa]=a},getFiberCurrentPropsFromNode:function(a){return a[he]||null},updateFiberProps:function(a,b){a[he]=b}},fa={remove:function(a){a._reactInternalFiber=void 0},get:function(a){return a._reactInternalFiber},has:function(a){return void 0!==a._reactInternalFiber},set:function(a,b){a._reactInternalFiber=
+b}},qc={ReactCurrentOwner:ab.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},Ra={isFiberMounted:function(a){return 2===mb(a)},isMounted:function(a){return(a=fa.get(a))?2===mb(a):!1},findCurrentFiberUsingSlowPath:ic,findCurrentHostFiber:function(a){a=ic(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=
+b["return"];b=b.sibling}}return null},findCurrentHostFiberWithNoPortals:function(a){a=ic(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child&&4!==b.tag)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null}},x={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(a){"function"!==typeof a.invokeGuardedCallback?
+l("197"):void 0;id=a.invokeGuardedCallback}},invokeGuardedCallback:function(a,b,c,d,e,f,g,h,m){id.apply(x,arguments)},invokeGuardedCallbackAndCatchFirstError:function(a,b,c,d,e,f,g,h,m){x.invokeGuardedCallback.apply(this,arguments);if(x.hasCaughtError()){var l=x.clearCaughtError();x._hasRethrowError||(x._hasRethrowError=!0,x._rethrowError=l)}},rethrowCaughtError:function(){return Te.apply(x,arguments)},hasCaughtError:function(){return x._hasCaughtError},clearCaughtError:function(){if(x._hasCaughtError){var a=
+x._caughtError;x._caughtError=null;x._hasCaughtError=!1;return a}l("198")}},od=x,Ab,jc={isEndish:function(a){return"topMouseUp"===a||"topTouchEnd"===a||"topTouchCancel"===a},isMoveish:function(a){return"topMouseMove"===a||"topTouchMove"===a},isStartish:function(a){return"topMouseDown"===a||"topTouchStart"===a},executeDirectDispatch:function(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?l("103"):void 0;a.currentTarget=b?jc.getNodeFromInstance(c):null;b=b?b(a):null;a.currentTarget=
+null;a._dispatchListeners=null;a._dispatchInstances=null;return b},executeDispatchesInOrder:function(a,b){var c=a._dispatchListeners,d=a._dispatchInstances;if(Array.isArray(c))for(var e=0;e<c.length&&!a.isPropagationStopped();e++)nd(a,b,c[e],d[e]);else c&&nd(a,b,c,d);a._dispatchListeners=null;a._dispatchInstances=null},executeDispatchesInOrderStopAtTrue:function(a){a:{var b=a._dispatchListeners;var c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;d<b.length&&!a.isPropagationStopped();d++){if(b[d](a,
+c[d])){b=c[d];break a}}else if(b&&b(a,c)){b=c;break a}b=null}a._dispatchInstances=null;a._dispatchListeners=null;return b},hasDispatches:function(a){return!!a._dispatchListeners},getFiberCurrentPropsFromNode:function(a){return Ab.getFiberCurrentPropsFromNode(a)},getInstanceFromNode:function(a){return Ab.getInstanceFromNode(a)},getNodeFromInstance:function(a){return Ab.getNodeFromInstance(a)},injection:{injectComponentTree:function(a){Ab=a}}},Ga=jc,nb=null,Sa=null,Ta=null,wb={injection:{injectFiberControlledHostComponent:function(a){nb=
+a}},enqueueStateRestore:function(a){Sa?Ta?Ta.push(a):Ta=[a]:Sa=a},restoreStateIfNeeded:function(){if(Sa){var a=Sa,b=Ta;Ta=Sa=null;pd(a);if(b)for(a=0;a<b.length;a++)pd(b[a])}}},rc=!1,yb={batchedUpdates:function(a,b){if(rc)return hc(a,b);rc=!0;try{return hc(a,b)}finally{rc=!1,wb.restoreStateIfNeeded()}},injection:{injectFiberBatchedUpdates:function(a){hc=a}}},Bb=[],ia={_enabled:!0,_handleTopLevel:null,setHandleTopLevel:function(a){ia._handleTopLevel=a},setEnabled:function(a){ia._enabled=!!a},isEnabled:function(){return ia._enabled},
+trapBubbledEvent:function(a,b,c){return c?fe.listen(c,b,ia.dispatchEvent.bind(null,a)):null},trapCapturedEvent:function(a,b,c){return c?fe.capture(c,b,ia.dispatchEvent.bind(null,a)):null},dispatchEvent:function(a,b){if(ia._enabled){var c=jb(b);c=G.getClosestInstanceFromNode(c);null===c||"number"!==typeof c.tag||Ra.isFiberMounted(c)||(c=null);if(Bb.length){var d=Bb.pop();d.topLevelType=a;d.nativeEvent=b;d.targetInst=c;a=d}else a={topLevelType:a,nativeEvent:b,targetInst:c,ancestors:[]};try{yb.batchedUpdates(Ue,
+a)}finally{a.topLevelType=null,a.nativeEvent=null,a.targetInst=null,a.ancestors.length=0,10>Bb.length&&Bb.push(a)}}}},K=ia,Ua=null,W={injection:{injectEventPluginOrder:na.injectEventPluginOrder,injectEventPluginsByName:na.injectEventPluginsByName},getListener:function(a,b){var c=a.stateNode;if(!c)return null;var d=Ga.getFiberCurrentPropsFromNode(c);if(!d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":(d=
+!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;jd(!c||"function"===typeof c,"Expected `%s` listener to be a function, instead got a value of `%s` type.",b,typeof c);return c},extractEvents:function(a,b,c,d){for(var e,f=na.plugins,g=0;g<f.length;g++){var h=f[g];h&&(h=h.extractEvents(a,b,c,d))&&(e=ta(e,h))}return e},enqueueEvents:function(a){a&&(Ua=ta(Ua,a))},processEventQueue:function(a){var b=Ua;Ua=null;a?Ha(b,Se):Ha(b,
+Re);Ua?l("95"):void 0;od.rethrowCaughtError()}},gd;n&&(gd=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var sa={animationend:ob("Animation","AnimationEnd"),animationiteration:ob("Animation","AnimationIteration"),animationstart:ob("Animation","AnimationStart"),transitionend:ob("Transition","TransitionEnd")},gc={},fd={};n&&(fd=document.createElement("div").style,"AnimationEvent"in window||(delete sa.animationend.animation,delete sa.animationiteration.animation,
+delete sa.animationstart.animation),"TransitionEvent"in window||delete sa.transitionend.transition);var ie={topAbort:"abort",topAnimationEnd:ib("animationend")||"animationend",topAnimationIteration:ib("animationiteration")||"animationiteration",topAnimationStart:ib("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",
+topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",
+topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",
+topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:ib("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},rd={},Ve=0,pb="_reactListenersID"+(""+Math.random()).slice(2),q=E({},{handleTopLevel:function(a,b,c,d){a=W.extractEvents(a,b,c,d);W.enqueueEvents(a);W.processEventQueue(!1)}},{setEnabled:function(a){K&&K.setEnabled(a)},isEnabled:function(){return!(!K||
+!K.isEnabled())},listenTo:function(a,b){var c=qd(b);a=na.registrationNameDependencies[a];for(var d=0;d<a.length;d++){var e=a[d];c.hasOwnProperty(e)&&c[e]||("topWheel"===e?Fa("wheel")?K.trapBubbledEvent("topWheel","wheel",b):Fa("mousewheel")?K.trapBubbledEvent("topWheel","mousewheel",b):K.trapBubbledEvent("topWheel","DOMMouseScroll",b):"topScroll"===e?K.trapCapturedEvent("topScroll","scroll",b):"topFocus"===e||"topBlur"===e?(K.trapCapturedEvent("topFocus","focus",b),K.trapCapturedEvent("topBlur","blur",
+b),c.topBlur=!0,c.topFocus=!0):"topCancel"===e?(Fa("cancel",!0)&&K.trapCapturedEvent("topCancel","cancel",b),c.topCancel=!0):"topClose"===e?(Fa("close",!0)&&K.trapCapturedEvent("topClose","close",b),c.topClose=!0):ie.hasOwnProperty(e)&&K.trapBubbledEvent(e,ie[e],b),c[e]=!0)}},isListeningToAllDependencies:function(a,b){b=qd(b);a=na.registrationNameDependencies[a];for(var c=0;c<a.length;c++){var d=a[c];if(!b.hasOwnProperty(d)||!b[d])return!1}return!0},trapBubbledEvent:function(a,b,c){return K.trapBubbledEvent(a,
+b,c)},trapCapturedEvent:function(a,b,c){return K.trapCapturedEvent(a,b,c)}}),hb={disableNewFiberFeatures:!1,enableAsyncSubtreeAPI:!1},Va={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,
+fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vf=["Webkit","ms","Moz","O"];Object.keys(Va).forEach(function(a){vf.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Va[b]=Va[a]})});var wf={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,
+backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,
+fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},je=!1;if(n){var xf=document.createElement("div").style;try{xf.font=""}catch(a){je=!0}}var ke={createDangerousStringForStyles:function(){},setValueForStyles:function(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--");var e=c;var f=b[c];e=null==f||"boolean"===typeof f||""===f?"":d||"number"!==typeof f||0===f||Va.hasOwnProperty(e)&&Va[e]?(""+f).trim():f+"px";"float"===c&&(c=
+"cssFloat");if(d)a.setProperty(c,e);else if(e)a[c]=e;else if(d=je&&wf[c])for(var g in d)a[g]="";else a[c]=""}}},yf={children:!0,dangerouslysetinnerhtml:!0,autofocus:!0,defaultvalue:!0,defaultchecked:!0,innerhtml:!0,suppresscontenteditablewarning:!0,onfocusin:!0,onfocusout:!0,style:!0},le={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(a){var b=le,c=a.Properties||{},d=a.DOMAttributeNamespaces||
+{},e=a.DOMAttributeNames||{};a=a.DOMMutationMethods||{};for(var f in c){pa.properties.hasOwnProperty(f)?l("48",f):void 0;var g=f.toLowerCase(),h=c[f];g={attributeName:g,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseProperty:Ia(h,b.MUST_USE_PROPERTY),hasBooleanValue:Ia(h,b.HAS_BOOLEAN_VALUE),hasNumericValue:Ia(h,b.HAS_NUMERIC_VALUE),hasPositiveNumericValue:Ia(h,b.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:Ia(h,b.HAS_OVERLOADED_BOOLEAN_VALUE)};1>=g.hasBooleanValue+g.hasNumericValue+
+g.hasOverloadedBooleanValue?void 0:l("50",f);e.hasOwnProperty(f)&&(g.attributeName=e[f]);d.hasOwnProperty(f)&&(g.attributeNamespace=d[f]);a.hasOwnProperty(f)&&(g.mutationMethod=a[f]);pa.properties[f]=g}}},pa={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(a,b){if(pa.isReservedProp(a))return!1;if(null===b)return!0;var c=a.toLowerCase();a=pa.properties[a];switch(typeof b){case "boolean":if(a)return!0;b=c.slice(0,5);return"data-"===b||"aria-"===b;case "undefined":case "number":case "string":return!0;case "object":return!0;default:return!1}},getPropertyInfo:function(a){return pa.properties.hasOwnProperty(a)?pa.properties[a]:null},isReservedProp:function(a){return yf.hasOwnProperty(a.toLowerCase())},injection:le},
+N=pa,Xe=new RegExp("^["+N.ATTRIBUTE_NAME_START_CHAR+"]["+N.ATTRIBUTE_NAME_CHAR+"]*$"),td={},sd={},sc={setAttributeForID:function(a,b){a.setAttribute(N.ID_ATTRIBUTE_NAME,b)},setAttributeForRoot:function(a){a.setAttribute(N.ROOT_ATTRIBUTE_NAME,"")},getValueForProperty:function(){},getValueForAttribute:function(){},setValueForProperty:function(a,b,c){var d=N.getPropertyInfo(b);if(d&&N.shouldSetAttribute(b,c)){var e=d.mutationMethod;e?e(a,c):null==c||d.hasBooleanValue&&!c||d.hasNumericValue&&isNaN(c)||
+d.hasPositiveNumericValue&&1>c||d.hasOverloadedBooleanValue&&!1===c?sc.deleteValueForProperty(a,b):d.mustUseProperty?a[d.propertyName]=c:(b=d.attributeName,(e=d.attributeNamespace)?a.setAttributeNS(e,b,""+c):d.hasBooleanValue||d.hasOverloadedBooleanValue&&!0===c?a.setAttribute(b,""):a.setAttribute(b,""+c))}else sc.setValueForAttribute(a,b,N.shouldSetAttribute(b,c)?c:null)},setValueForAttribute:function(a,b,c){We(b)&&(null==c?a.removeAttribute(b):a.setAttribute(b,""+c))},deleteValueForAttribute:function(a,
+b){a.removeAttribute(b)},deleteValueForProperty:function(a,b){var c=N.getPropertyInfo(b);c?(b=c.mutationMethod)?b(a,void 0):c.mustUseProperty?a[c.propertyName]=c.hasBooleanValue?!1:"":a.removeAttribute(c.attributeName):a.removeAttribute(b)}},qa=sc,me=qc.ReactDebugCurrentFrame,Wa={current:null,phase:null,resetCurrentFiber:function(){me.getCurrentStack=null;Wa.current=null;Wa.phase=null},setCurrentFiber:function(a,b){me.getCurrentStack=ud;Wa.current=a;Wa.phase=b},getCurrentFiberOwnerName:function(){return null},
+getCurrentFiberStackAddendum:ud},zf=Wa,tc={getHostProps:function(a,b){var c=b.value,d=b.checked;return E({type:void 0,step:void 0,min:void 0,max:void 0},b,{defaultChecked:void 0,defaultValue:void 0,value:null!=c?c:a._wrapperState.initialValue,checked:null!=d?d:a._wrapperState.initialChecked})},initWrapperState:function(a,b){var c=b.defaultValue;a._wrapperState={initialChecked:null!=b.checked?b.checked:b.defaultChecked,initialValue:null!=b.value?b.value:c,controlled:"checkbox"===b.type||"radio"===
+b.type?null!=b.checked:null!=b.value}},updateWrapper:function(a,b){var c=b.checked;null!=c&&qa.setValueForProperty(a,"checked",c||!1);c=b.value;if(null!=c)if(0===c&&""===a.value)a.value="0";else if("number"===b.type){if(b=parseFloat(a.value)||0,c!=b||c==b&&a.value!=c)a.value=""+c}else a.value!==""+c&&(a.value=""+c);else null==b.value&&null!=b.defaultValue&&a.defaultValue!==""+b.defaultValue&&(a.defaultValue=""+b.defaultValue),null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)},
+postMountWrapper:function(a,b){switch(b.type){case "submit":case "reset":break;case "color":case "date":case "datetime":case "datetime-local":case "month":case "time":case "week":a.value="";a.value=a.defaultValue;break;default:a.value=a.value}b=a.name;""!==b&&(a.name="");a.defaultChecked=!a.defaultChecked;a.defaultChecked=!a.defaultChecked;""!==b&&(a.name=b)},restoreControlledState:function(a,b){tc.updateWrapper(a,b);var c=b.name;if("radio"===b.type&&null!=c){for(b=a;b.parentNode;)b=b.parentNode;
+c=b.querySelectorAll("input[name\x3d"+JSON.stringify(""+c)+'][type\x3d"radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=G.getFiberCurrentPropsFromNode(d);e?void 0:l("90");tc.updateWrapper(d,e)}}}}},aa=tc,za={validateProps:function(){},postMountWrapper:function(a,b){null!=b.value&&a.setAttribute("value",b.value)},getHostProps:function(a,b){a=E({children:void 0},b);if(b=Ye(b.children))a.children=b;return a}},ja={getHostProps:function(a,b){return E({},b,{value:void 0})},
+initWrapperState:function(a,b){var c=b.value;a._wrapperState={initialValue:null!=c?c:b.defaultValue,wasMultiple:!!b.multiple}},postMountWrapper:function(a,b){a.multiple=!!b.multiple;var c=b.value;null!=c?va(a,!!b.multiple,c):null!=b.defaultValue&&va(a,!!b.multiple,b.defaultValue)},postUpdateWrapper:function(a,b){a._wrapperState.initialValue=void 0;var c=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!b.multiple;var d=b.value;null!=d?va(a,!!b.multiple,d):c!==!!b.multiple&&(null!=b.defaultValue?
+va(a,!!b.multiple,b.defaultValue):va(a,!!b.multiple,b.multiple?[]:""))},restoreControlledState:function(a,b){var c=b.value;null!=c&&va(a,!!b.multiple,c)}},ne={getHostProps:function(a,b){null!=b.dangerouslySetInnerHTML?l("91"):void 0;return E({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})},initWrapperState:function(a,b){var c=b.value,d=c;null==c&&(c=b.defaultValue,b=b.children,null!=b&&(null!=c?l("92"):void 0,Array.isArray(b)&&(1>=b.length?void 0:l("93"),b=b[0]),
+c=""+b),null==c&&(c=""),d=c);a._wrapperState={initialValue:""+d}},updateWrapper:function(a,b){var c=b.value;null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&(a.defaultValue=c));null!=b.defaultValue&&(a.defaultValue=b.defaultValue)},postMountWrapper:function(a){var b=a.textContent;b===a._wrapperState.initialValue&&(a.value=b)},restoreControlledState:function(a,b){ne.updateWrapper(a,b)}},Y=ne,Qe=E({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}),xa={_getTrackerFromNode:function(a){return a._valueTracker},track:function(a){a._valueTracker||(a._valueTracker=Ze(a))},updateValueIfChanged:function(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d="";a&&(d=vd(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1},stopTracking:function(a){(a=a._valueTracker)&&a.stopTracking()}},Cb,uc=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?
+function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if("http://www.w3.org/2000/svg"!==a.namespaceURI||"innerHTML"in a)a.innerHTML=b;else for(Cb=Cb||document.createElement("div"),Cb.innerHTML="\x3csvg\x3e"+b+"\x3c/svg\x3e",b=Cb.firstChild;b.firstChild;)a.appendChild(b.firstChild)}),Af=/["'&<>]/;n&&("textContent"in document.documentElement||(ed=function(a,b){if(3===a.nodeType)a.nodeValue=b;else{if("boolean"===typeof b||"number"===typeof b)b=""+b;else{b=""+
+b;var c=Af.exec(b);if(c){var d="",e,f=0;for(e=c.index;e<b.length;e++){switch(b.charCodeAt(e)){case 34:c="\x26quot;";break;case 38:c="\x26amp;";break;case 39:c="\x26#x27;";break;case 60:c="\x26lt;";break;case 62:c="\x26gt;";break;default:continue}f!==e&&(d+=b.substring(f,e));f=e+1;d+=c}b=f!==e?d+b.substring(f,e):d}}uc(a,b)}}));var vc=ed,wc=zf.getCurrentFiberOwnerName,$e=q.listenTo,Db=na.registrationNameModules,Aa={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",
+topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},F={createElement:function(a,b,c,d){c=9===c.nodeType?c:c.ownerDocument;
+"http://www.w3.org/1999/xhtml"===d&&(d=Jc(a));"http://www.w3.org/1999/xhtml"===d?"script"===a?(a=c.createElement("div"),a.innerHTML="\x3cscript\x3e\x3c/script\x3e",a=a.removeChild(a.firstChild)):a=b.is?c.createElement(a,{is:b.is}):c.createElement(a):a=c.createElementNS(d,a);return a},setInitialProperties:function(a,b,c,d){var e=ec(b,c);switch(b){case "iframe":case "object":q.trapBubbledEvent("topLoad","load",a);var f=c;break;case "video":case "audio":for(f in Aa)Aa.hasOwnProperty(f)&&q.trapBubbledEvent(f,
+Aa[f],a);f=c;break;case "source":q.trapBubbledEvent("topError","error",a);f=c;break;case "img":case "image":q.trapBubbledEvent("topError","error",a);q.trapBubbledEvent("topLoad","load",a);f=c;break;case "form":q.trapBubbledEvent("topReset","reset",a);q.trapBubbledEvent("topSubmit","submit",a);f=c;break;case "details":q.trapBubbledEvent("topToggle","toggle",a);f=c;break;case "input":aa.initWrapperState(a,c);f=aa.getHostProps(a,c);q.trapBubbledEvent("topInvalid","invalid",a);R(d,"onChange");break;case "option":za.validateProps(a,
+c);f=za.getHostProps(a,c);break;case "select":ja.initWrapperState(a,c);f=ja.getHostProps(a,c);q.trapBubbledEvent("topInvalid","invalid",a);R(d,"onChange");break;case "textarea":Y.initWrapperState(a,c);f=Y.getHostProps(a,c);q.trapBubbledEvent("topInvalid","invalid",a);R(d,"onChange");break;default:f=c}fc(b,f,wc);var g=f,h;for(h in g)if(g.hasOwnProperty(h)){var m=g[h];"style"===h?ke.setValueForStyles(a,m):"dangerouslySetInnerHTML"===h?(m=m?m.__html:void 0,null!=m&&uc(a,m)):"children"===h?"string"===
+typeof m?vc(a,m):"number"===typeof m&&vc(a,""+m):"suppressContentEditableWarning"!==h&&(Db.hasOwnProperty(h)?m&&R(d,h):e?qa.setValueForAttribute(a,h,m):null!=m&&qa.setValueForProperty(a,h,m))}switch(b){case "input":xa.track(a);aa.postMountWrapper(a,c);break;case "textarea":xa.track(a);Y.postMountWrapper(a,c);break;case "option":za.postMountWrapper(a,c);break;case "select":ja.postMountWrapper(a,c);break;default:"function"===typeof f.onClick&&(a.onclick=A)}},diffProperties:function(a,b,c,d,e){var f=
+null;switch(b){case "input":c=aa.getHostProps(a,c);d=aa.getHostProps(a,d);f=[];break;case "option":c=za.getHostProps(a,c);d=za.getHostProps(a,d);f=[];break;case "select":c=ja.getHostProps(a,c);d=ja.getHostProps(a,d);f=[];break;case "textarea":c=Y.getHostProps(a,c);d=Y.getHostProps(a,d);f=[];break;default:"function"!==typeof c.onClick&&"function"===typeof d.onClick&&(a.onclick=A)}fc(b,d,wc);var g,h;a=null;for(g in c)if(!d.hasOwnProperty(g)&&c.hasOwnProperty(g)&&null!=c[g])if("style"===g)for(h in b=
+c[g],b)b.hasOwnProperty(h)&&(a||(a={}),a[h]="");else"dangerouslySetInnerHTML"!==g&&"children"!==g&&"suppressContentEditableWarning"!==g&&(Db.hasOwnProperty(g)?f||(f=[]):(f=f||[]).push(g,null));for(g in d){var m=d[g];b=null!=c?c[g]:void 0;if(d.hasOwnProperty(g)&&m!==b&&(null!=m||null!=b))if("style"===g)if(b){for(h in b)!b.hasOwnProperty(h)||m&&m.hasOwnProperty(h)||(a||(a={}),a[h]="");for(h in m)m.hasOwnProperty(h)&&b[h]!==m[h]&&(a||(a={}),a[h]=m[h])}else a||(f||(f=[]),f.push(g,a)),a=m;else"dangerouslySetInnerHTML"===
+g?(m=m?m.__html:void 0,b=b?b.__html:void 0,null!=m&&b!==m&&(f=f||[]).push(g,""+m)):"children"===g?b===m||"string"!==typeof m&&"number"!==typeof m||(f=f||[]).push(g,""+m):"suppressContentEditableWarning"!==g&&(Db.hasOwnProperty(g)?(m&&R(e,g),f||b===m||(f=[])):(f=f||[]).push(g,m))}a&&(f=f||[]).push("style",a);return f},updateProperties:function(a,b,c,d,e){ec(c,d);d=ec(c,e);for(var f=0;f<b.length;f+=2){var g=b[f],h=b[f+1];"style"===g?ke.setValueForStyles(a,h):"dangerouslySetInnerHTML"===g?uc(a,h):"children"===
+g?vc(a,h):d?null!=h?qa.setValueForAttribute(a,g,h):qa.deleteValueForAttribute(a,g):null!=h?qa.setValueForProperty(a,g,h):qa.deleteValueForProperty(a,g)}switch(c){case "input":aa.updateWrapper(a,e);xa.updateValueIfChanged(a);break;case "textarea":Y.updateWrapper(a,e);break;case "select":ja.postUpdateWrapper(a,e)}},diffHydratedProperties:function(a,b,c,d){switch(b){case "iframe":case "object":q.trapBubbledEvent("topLoad","load",a);break;case "video":case "audio":for(var e in Aa)Aa.hasOwnProperty(e)&&
+q.trapBubbledEvent(e,Aa[e],a);break;case "source":q.trapBubbledEvent("topError","error",a);break;case "img":case "image":q.trapBubbledEvent("topError","error",a);q.trapBubbledEvent("topLoad","load",a);break;case "form":q.trapBubbledEvent("topReset","reset",a);q.trapBubbledEvent("topSubmit","submit",a);break;case "details":q.trapBubbledEvent("topToggle","toggle",a);break;case "input":aa.initWrapperState(a,c);q.trapBubbledEvent("topInvalid","invalid",a);R(d,"onChange");break;case "option":za.validateProps(a,
+c);break;case "select":ja.initWrapperState(a,c);q.trapBubbledEvent("topInvalid","invalid",a);R(d,"onChange");break;case "textarea":Y.initWrapperState(a,c),q.trapBubbledEvent("topInvalid","invalid",a),R(d,"onChange")}fc(b,c,wc);e=null;for(var f in c)if(c.hasOwnProperty(f)){var g=c[f];"children"===f?"string"===typeof g?a.textContent!==g&&(e=["children",g]):"number"===typeof g&&a.textContent!==""+g&&(e=["children",""+g]):Db.hasOwnProperty(f)&&g&&R(d,f)}switch(b){case "input":xa.track(a);aa.postMountWrapper(a,
+c);break;case "textarea":xa.track(a);Y.postMountWrapper(a,c);break;case "select":case "option":break;default:"function"===typeof c.onClick&&(a.onclick=A)}return e},diffHydratedText:function(a,b){return a.nodeValue!==b},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(a,b,c){switch(b){case "input":aa.restoreControlledState(a,c);break;case "textarea":Y.restoreControlledState(a,
+c);break;case "select":ja.restoreControlledState(a,c)}}},Eb=void 0;if(n)if("function"!==typeof requestIdleCallback){var oe=null,xc=null,yc=!1,zc=!1,Fb=0,Gb=33,Xa=33,Bf={timeRemaining:"object"===typeof performance&&"function"===typeof performance.now?function(){return Fb-performance.now()}:function(){return Fb-Date.now()}},pe="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){a.source===window&&a.data===pe&&(yc=!1,a=xc,xc=null,null!==a&&a(Bf))},
+!1);var Cf=function(a){zc=!1;var b=a-Fb+Xa;b<Xa&&Gb<Xa?(8>b&&(b=8),Xa=b<Gb?Gb:b):Gb=b;Fb=a+Xa;yc||(yc=!0,window.postMessage(pe,"*"));b=oe;oe=null;null!==b&&b(a)};Eb=function(a){xc=a;zc||(zc=!0,requestAnimationFrame(Cf));return 0}}else Eb=requestIdleCallback;else Eb=function(a){setTimeout(function(){a({timeRemaining:function(){return Infinity}})});return 0};var Df=Eb,ba={},cb=[],ca=-1,Ef=Ra.isFiberMounted,da={current:ba},T={current:!1},db=ba;if("function"===typeof Symbol&&Symbol["for"]){var qe=Symbol["for"]("react.coroutine");
+var re=Symbol["for"]("react.yield")}else qe=60104,re=60105;var Ff=re,Gf=qe,Ac="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106,se={createPortal:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ac,key:null==d?null:""+d,children:a,containerInfo:b,implementation:c}},isPortal:function(a){return"object"===typeof a&&null!==a&&a.$$typeof===Ac},REACT_PORTAL_TYPE:Ac},rb=Gf,sb=Ff,Ma=se.REACT_PORTAL_TYPE,Xb=Pc,tb=Array.isArray,zd=
+"function"===typeof Symbol&&Symbol.iterator,La="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,Ub=lc(!0,!0),Wb=lc(!1,!0),Vb=lc(!1,!1),Pe=Object.prototype.hasOwnProperty,Oe=Ra.isMounted,Me=qc.ReactCurrentOwner,Sb=null,Tb=null,ra={},eb=qc.ReactCurrentOwner,Hf=Ra.findCurrentHostFiber,If=Ra.findCurrentHostFiberWithNoPortals,Pb=null,te={getOffsets:function(a){var b=window.getSelection&&window.getSelection();if(!b||0===b.rangeCount)return null;var c=b.anchorNode,d=b.anchorOffset,
+e=b.focusNode,f=b.focusOffset,g=b.getRangeAt(0);try{g.startContainer.nodeType,g.endContainer.nodeType}catch(m){return null}b=b.anchorNode===b.focusNode&&b.anchorOffset===b.focusOffset?0:g.toString().length;var h=g.cloneRange();h.selectNodeContents(a);h.setEnd(g.startContainer,g.startOffset);a=h.startContainer===h.endContainer&&h.startOffset===h.endOffset?0:h.toString().length;g=a+b;b=document.createRange();b.setStart(c,d);b.setEnd(e,f);c=b.collapsed;return{start:c?g:a,end:c?a:g}},setOffsets:function(a,
+b){if(window.getSelection){var c=window.getSelection(),d=a[Mc()].length,e=Math.min(b.start,d);b=void 0===b.end?e:Math.min(b.end,d);!c.extend&&e>b&&(d=b,b=e,e=d);d=Nc(a,e);a=Nc(a,b);if(d&&a){var f=document.createRange();f.setStart(d.node,d.offset);c.removeAllRanges();e>b?(c.addRange(f),c.extend(a.node,a.offset)):(f.setEnd(a.node,a.offset),c.addRange(f))}}}},Ya={hasSelectionCapabilities:function(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&"text"===a.type||"textarea"===b||
+"true"===a.contentEditable)},getSelectionInformation:function(){var a=Ob();return{focusedElem:a,selectionRange:Ya.hasSelectionCapabilities(a)?Ya.getSelection(a):null}},restoreSelection:function(a){var b=Ob(),c=a.focusedElem;a=a.selectionRange;if(b!==c&&Bd(document.documentElement,c)){Ya.hasSelectionCapabilities(c)&&Ya.setSelection(c,a);b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});try{c.focus()}catch(d){}for(c=0;c<b.length;c++)a=b[c],a.element.scrollLeft=
+a.left,a.element.scrollTop=a.top}},getSelection:function(a){return("selectionStart"in a?{start:a.selectionStart,end:a.selectionEnd}:te.getOffsets(a))||{start:0,end:0}},setSelection:function(a,b){var c=b.start,d=b.end;void 0===d&&(d=c);"selectionStart"in a?(a.selectionStart=c,a.selectionEnd=Math.min(d,a.value.length)):te.setOffsets(a,b)}},oc=Ya,ub={isAncestor:function(a,b){for(;b;){if(a===b||a===b.alternate)return!0;b=P(b)}return!1},getLowestCommonAncestor:Cd,getParentInstance:function(a){return P(a)},
+traverseTwoPhase:function(a,b,c){for(var d=[];a;)d.push(a),a=P(a);for(a=d.length;0<a--;)b(d[a],"captured",c);for(a=0;a<d.length;a++)b(d[a],"bubbled",c)},traverseEnterLeave:function(a,b,c,d,e){for(var f=a&&b?Cd(a,b):null,g=[];a&&a!==f;)g.push(a),a=P(a);for(a=[];b&&b!==f;)a.push(b),b=P(b);for(b=0;b<g.length;b++)c(g[b],"bubbled",d);for(b=a.length;0<b--;)c(a[b],"captured",e)}},Ed=W.getListener,la={accumulateTwoPhaseDispatches:function(a){Ha(a,af)},accumulateTwoPhaseDispatchesSkipTarget:function(a){Ha(a,
+bf)},accumulateDirectDispatches:function(a){Ha(a,cf)},accumulateEnterLeaveDispatches:function(a,b,c,d){ub.traverseEnterLeave(c,d,Fd,a,b)}},Za=null,Bc=null,Hb=null,Cc={initialize:function(a){Za=a;Bc=Cc.getText();return!0},reset:function(){Hb=Bc=Za=null},getData:function(){if(Hb)return Hb;var a,b=Bc,c=b.length,d,e=Cc.getText(),f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return Hb=e.slice(a,1<d?1-d:void 0)},getText:function(){return"value"in Za?Za.value:Za[Mc()]}},
+vb=Cc,ue="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),Jf={type:null,target:null,currentTarget:A.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};E(Na.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=
+!1),this.isDefaultPrevented=A.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=A.thatReturnsTrue)},persist:function(){this.isPersistent=A.thatReturnsTrue},isPersistent:A.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<ue.length;a++)this[ue[a]]=null}});Na.Interface=Jf;Na.augmentClass=function(a,b){function c(){}
+c.prototype=this.prototype;var d=new c;E(d,a.prototype);a.prototype=d;a.prototype.constructor=a;a.Interface=E({},this.Interface,b);a.augmentClass=this.augmentClass;Gd(a)};Gd(Na);var y=Na;y.augmentClass(Hd,{data:null});y.augmentClass(Id,{data:null});var gf=[9,13,27,32],mc=n&&"CompositionEvent"in window,$a=null;n&&"documentMode"in document&&($a=document.documentMode);var Kf=n&&"TextEvent"in window&&!$a&&!ff(),Nd=n&&(!mc||$a&&8<$a&&11>=$a),Md=String.fromCharCode(32),ea={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(" ")}},Ld=!1,wa=!1,Lf={eventTypes:ea,extractEvents:function(a,b,c,d){var e;if(mc)b:{switch(a){case "topCompositionStart":var f=ea.compositionStart;break b;case "topCompositionEnd":f=ea.compositionEnd;break b;case "topCompositionUpdate":f=ea.compositionUpdate;break b}f=void 0}else wa?Jd(a,c)&&
+(f=ea.compositionEnd):"topKeyDown"===a&&229===c.keyCode&&(f=ea.compositionStart);f?(Nd&&(wa||f!==ea.compositionStart?f===ea.compositionEnd&&wa&&(e=vb.getData()):wa=vb.initialize(d)),f=Hd.getPooled(f,b,c,d),e?f.data=e:(e=Kd(c),null!==e&&(f.data=e)),la.accumulateTwoPhaseDispatches(f),e=f):e=null;(a=Kf?hf(a,c):jf(a,c))?(b=Id.getPooled(ea.beforeInput,b,c,d),b.data=a,la.accumulateTwoPhaseDispatches(b)):b=null;return[e,b]}},Ae={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},Pd={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Oa=null,Pa=null,Dc=!1;n&&(Dc=Fa("input")&&(!document.documentMode||9<document.documentMode));var Mf={eventTypes:Pd,_isInputEventSupported:Dc,extractEvents:function(a,b,c,d){var e=b?G.getNodeFromInstance(b):window,f=e.nodeName&&e.nodeName.toLowerCase();
+if("select"===f||"input"===f&&"file"===e.type)var g=lf;else if(Kc(e))if(Dc)g=pf;else{g=nf;var h=mf}else f=e.nodeName,!f||"input"!==f.toLowerCase()||"checkbox"!==e.type&&"radio"!==e.type||(g=of);if(g&&(g=g(a,b)))return Od(g,c,d);h&&h(a,e,b);"topBlur"===a&&null!=b&&(a=b._wrapperState||e._wrapperState)&&a.controlled&&"number"===e.type&&(a=""+e.value,e.getAttribute("value")!==a&&e.setAttribute("value",a))}};y.augmentClass(Sd,{view:function(a){if(a.view)return a.view;a=jb(a);return a.window===a?a:(a=a.ownerDocument)?
+a.defaultView||a.parentWindow:window},detail:function(a){return a.detail||0}});var X=Sd,qf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};X.augmentClass(Td,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Nb,button:null,buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)}});var ma=Td,Ec={mouseEnter:{registrationName:"onMouseEnter",
+dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Nf={eventTypes:Ec,extractEvents:function(a,b,c,d){if("topMouseOver"===a&&(c.relatedTarget||c.fromElement)||"topMouseOut"!==a&&"topMouseOver"!==a)return null;var e=d.window===d?d:(e=d.ownerDocument)?e.defaultView||e.parentWindow:window;"topMouseOut"===a?(a=b,b=(b=c.relatedTarget||c.toElement)?G.getClosestInstanceFromNode(b):null):a=null;if(a===b)return null;var f=null==
+a?e:G.getNodeFromInstance(a);e=null==b?e:G.getNodeFromInstance(b);var g=ma.getPooled(Ec.mouseLeave,a,c,d);g.type="mouseleave";g.target=f;g.relatedTarget=e;c=ma.getPooled(Ec.mouseEnter,b,c,d);c.type="mouseenter";c.target=e;c.relatedTarget=f;la.accumulateEnterLeaveDispatches(g,c,a,b);return[g,c]}},Of=n&&"documentMode"in document&&11>=document.documentMode,Vd={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},
+ya=null,pc=null,Qa=null,nc=!1,Pf=q.isListeningToAllDependencies,Qf={eventTypes:Vd,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument;if(!e||!Pf("onSelect",e))return null;e=b?G.getNodeFromInstance(b):window;switch(a){case "topFocus":if(Kc(e)||"true"===e.contentEditable)ya=e,pc=b,Qa=null;break;case "topBlur":Qa=pc=ya=null;break;case "topMouseDown":nc=!0;break;case "topContextMenu":case "topMouseUp":return nc=!1,Ud(c,d);case "topSelectionChange":if(Of)break;
+case "topKeyDown":case "topKeyUp":return Ud(c,d)}return null}};y.augmentClass(Wd,{animationName:null,elapsedTime:null,pseudoElement:null});y.augmentClass(Xd,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}});X.augmentClass(Yd,{relatedTarget:null});var Rf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},
+Sf={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"};X.augmentClass(Zd,{key:function(a){if(a.key){var b=Rf[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===
+a.type?(a=bb(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?Sf[a.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Nb,charCode:function(a){return"keypress"===a.type?bb(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===a.type?bb(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}});ma.augmentClass($d,{dataTransfer:null});
+X.augmentClass(ae,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Nb});y.augmentClass(be,{propertyName:null,elapsedTime:null,pseudoElement:null});ma.augmentClass(ce,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null});var ve={},we={};"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(a){var b=
+a[0].toUpperCase()+a.slice(1),c="on"+b;b="top"+b;c={phasedRegistrationNames:{bubbled:c,captured:c+"Capture"},dependencies:[b]};ve[a]=c;we[b]=c});var Tf={eventTypes:ve,extractEvents:function(a,b,c,d){var e=we[a];if(!e)return null;switch(a){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 f=
+y;break;case "topKeyPress":if(0===bb(c))return null;case "topKeyDown":case "topKeyUp":f=Zd;break;case "topBlur":case "topFocus":f=Yd;break;case "topClick":if(2===c.button)return null;case "topDoubleClick":case "topMouseDown":case "topMouseMove":case "topMouseUp":case "topMouseOut":case "topMouseOver":case "topContextMenu":f=ma;break;case "topDrag":case "topDragEnd":case "topDragEnter":case "topDragExit":case "topDragLeave":case "topDragOver":case "topDragStart":case "topDrop":f=$d;break;case "topTouchCancel":case "topTouchEnd":case "topTouchMove":case "topTouchStart":f=
+ae;break;case "topAnimationEnd":case "topAnimationIteration":case "topAnimationStart":f=Wd;break;case "topTransitionEnd":f=be;break;case "topScroll":f=X;break;case "topWheel":f=ce;break;case "topCopy":case "topCut":case "topPaste":f=Xd}f?void 0:l("86",a);a=f.getPooled(e,b,c,d);la.accumulateTwoPhaseDispatches(a);return a}};K.setHandleTopLevel(q.handleTopLevel);W.injection.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" "));
+Ga.injection.injectComponentTree(G);W.injection.injectEventPluginsByName({SimpleEventPlugin:Tf,EnterLeaveEventPlugin:Nf,ChangeEventPlugin:Mf,SelectEventPlugin:Qf,BeforeInputEventPlugin:Lf});var Ib=N.injection.MUST_USE_PROPERTY,v=N.injection.HAS_BOOLEAN_VALUE,xe=N.injection.HAS_NUMERIC_VALUE,Jb=N.injection.HAS_POSITIVE_NUMERIC_VALUE,Uf={Properties:{allowFullScreen:v,async:v,autoPlay:v,capture:v,checked:Ib|v,cols:Jb,controls:v,"default":v,defer:v,disabled:v,download:N.injection.HAS_OVERLOADED_BOOLEAN_VALUE,
+formNoValidate:v,hidden:v,loop:v,multiple:Ib|v,muted:Ib|v,noValidate:v,open:v,playsInline:v,readOnly:v,required:v,reversed:v,rows:Jb,rowSpan:xe,scoped:v,seamless:v,selected:Ib|v,size:Jb,start:xe,span:Jb,style:0,itemScope:v,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:0,autoComplete:0,allowTransparency:0,contentEditable:0,draggable:0,spellCheck:0,autoCapitalize:0,autoCorrect:0,autoSave:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},
+DOMMutationMethods:{value:function(a,b){if(null==b)return a.removeAttribute("value");"number"!==a.type||!1===a.hasAttribute("value")?a.setAttribute("value",""+b):a.validity&&!a.validity.badInput&&a.ownerDocument.activeElement!==a&&a.setAttribute("value",""+b)}}},Fc={Properties:{},DOMAttributeNamespaces:{xlinkActuate:"http://www.w3.org/1999/xlink",xlinkArcrole:"http://www.w3.org/1999/xlink",xlinkHref:"http://www.w3.org/1999/xlink",xlinkRole:"http://www.w3.org/1999/xlink",xlinkShow:"http://www.w3.org/1999/xlink",
+xlinkTitle:"http://www.w3.org/1999/xlink",xlinkType:"http://www.w3.org/1999/xlink",xmlBase:"http://www.w3.org/XML/1998/namespace",xmlLang:"http://www.w3.org/XML/1998/namespace",xmlSpace:"http://www.w3.org/XML/1998/namespace"},DOMAttributeNames:{}},Vf=/[\-\:]([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 autoReverse externalResourcesRequired preserveAlpha".split(" ").forEach(function(a){var b=
+a.replace(Vf,ye);Fc.Properties[b]=0;Fc.DOMAttributeNames[b]=a});N.injection.injectDOMPropertyConfig(Uf);N.injection.injectDOMPropertyConfig(Fc);var Wf=ab.isValidElement,sf=N.ROOT_ATTRIBUTE_NAME,Xf=F.createElement,Yf=F.setInitialProperties,Zf=F.diffProperties,$f=F.updateProperties,ag=F.diffHydratedProperties,bg=F.diffHydratedText,cg=F.warnForDeletedHydratableElement,dg=F.warnForDeletedHydratableText,eg=F.warnForInsertedHydratedElement,fg=F.warnForInsertedHydratedText,Kb=G.precacheFiberNode,Gc=G.updateFiberProps;
+wb.injection.injectFiberControlledHostComponent(F);var Hc=null,Ic=null,J=function(a){var b=a.getPublicInstance;a=Be(a);var c=a.scheduleUpdate,d=a.getPriorityContext;return{createContainer:function(a){var b=new L(3,null,0);a={current:b,containerInfo:a,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null};return b.stateNode=a},updateContainer:function(a,b,g,h){var e=b.current;if(g){g=fa.get(g);var f;b:{Ef(g)&&2===g.tag?void 0:l("170");for(f=g;3!==f.tag;){if(Ea(f)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;
+break b}(f=f["return"])?void 0:l("171")}f=f.stateNode.context}g=Ea(g)?ad(g,f,!1):f}else g=ba;null===b.context?b.context=g:b.pendingContext=g;b=d(e,hb.enableAsyncSubtreeAPI&&null!=a&&null!=a.type&&null!=a.type.prototype&&!0===a.type.prototype.unstable_isAsyncReactComponent);a={element:a};g=null===a.element;a={priorityLevel:b,partialState:a,callback:void 0===h?null:h,isReplace:!1,isForced:!1,isTopLevelUnmount:g,next:null};h=gb(e,a);g&&(f=yd(e),g=f[0],f=f[1],null!==g&&null!==a.next&&(a.next=null,g.last=
+a),null!==f&&null!==h&&null!==h.next&&(h.next=null,f.last=a));c(e,b)},performWithPriority:a.performWithPriority,batchedUpdates:a.batchedUpdates,unbatchedUpdates:a.unbatchedUpdates,deferredUpdates:a.deferredUpdates,flushSync:a.flushSync,getPublicRootInstance:function(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return b(a.child.stateNode);default:return a.child.stateNode}},findHostInstance:function(a){a=Hf(a);return null===a?null:a.stateNode},findHostInstanceWithNoPortals:function(a){a=
+If(a);return null===a?null:a.stateNode}}}({getRootHostContext:function(a){if(9===a.nodeType)a=(a=a.documentElement)?a.namespaceURI:Mb(null,"");else{var b=8===a.nodeType?a.parentNode:a;a=b.namespaceURI||null;b=b.tagName;a=Mb(a,b)}return a},getChildHostContext:function(a,b){return Mb(a,b)},getPublicInstance:function(a){return a},prepareForCommit:function(){Hc=q.isEnabled();Ic=oc.getSelectionInformation();q.setEnabled(!1)},resetAfterCommit:function(){oc.restoreSelection(Ic);Ic=null;q.setEnabled(Hc);
+Hc=null},createInstance:function(a,b,c,d,e){a=Xf(a,b,c,d);Kb(e,a);Gc(a,b);return a},appendInitialChild:function(a,b){a.appendChild(b)},finalizeInitialChildren:function(a,b,c,d){Yf(a,b,c,d);a:{switch(b){case "button":case "input":case "select":case "textarea":a=!!c.autoFocus;break a}a=!1}return a},prepareUpdate:function(a,b,c,d,e){return Zf(a,b,c,d,e)},commitMount:function(a){a.focus()},commitUpdate:function(a,b,c,d,e){Gc(a,e);$f(a,b,c,d,e)},shouldSetTextContent:function(a,b){return"textarea"===a||
+"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&"string"===typeof b.dangerouslySetInnerHTML.__html},resetTextContent:function(a){a.textContent=""},shouldDeprioritizeSubtree:function(a,b){return!!b.hidden},createTextInstance:function(a,b,c,d){a=document.createTextNode(a);Kb(d,a);return a},commitTextUpdate:function(a,b,c){a.nodeValue=c},appendChild:function(a,b){a.appendChild(b)},appendChildToContainer:function(a,
+b){8===a.nodeType?a.parentNode.insertBefore(b,a):a.appendChild(b)},insertBefore:function(a,b,c){a.insertBefore(b,c)},insertInContainerBefore:function(a,b,c){8===a.nodeType?a.parentNode.insertBefore(b,c):a.insertBefore(b,c)},removeChild:function(a,b){a.removeChild(b)},removeChildFromContainer:function(a,b){8===a.nodeType?a.parentNode.removeChild(b):a.removeChild(b)},canHydrateInstance:function(a,b){return 1===a.nodeType&&b===a.nodeName.toLowerCase()},canHydrateTextInstance:function(a,b){return""===
+b?!1:3===a.nodeType},getNextHydratableSibling:function(a){for(a=a.nextSibling;a&&1!==a.nodeType&&3!==a.nodeType;)a=a.nextSibling;return a},getFirstHydratableChild:function(a){for(a=a.firstChild;a&&1!==a.nodeType&&3!==a.nodeType;)a=a.nextSibling;return a},hydrateInstance:function(a,b,c,d,e){Kb(e,a);Gc(a,c);return ag(a,b,c,d)},hydrateTextInstance:function(a,b,c){Kb(c,a);return bg(a,b)},didNotHydrateInstance:function(a,b){1===b.nodeType?cg(a,b):dg(a,b)},didNotFindHydratableInstance:function(a,b,c){eg(a,
+b,c)},didNotFindHydratableTextInstance:function(a,b){fg(a,b)},scheduleDeferredCallback:Df,useSyncScheduling:!0});yb.injection.injectFiberBatchedUpdates(J.batchedUpdates);var gg={findDOMNode:function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=fa.get(a);if(b)return J.findHostInstance(b);"function"===typeof a.render?l("188"):l("213",Object.keys(a))},hydrate:function(a,b,c){return zb(null,a,b,!0,c)},render:function(a,b,c){hb.disableNewFiberFeatures&&(Wf(a)||("string"===typeof a?l("201"):
+"function"===typeof a?l("202"):null!=a&&"undefined"!==typeof a.props?l("203"):l("204")));return zb(null,a,b,!1,c)},unstable_renderSubtreeIntoContainer:function(a,b,c,d){null!=a&&fa.has(a)?void 0:l("38");return zb(a,b,c,!1,d)},unmountComponentAtNode:function(a){de(a)?void 0:l("40");return a._reactRootContainer?(J.unbatchedUpdates(function(){zb(null,null,a,!1,function(){a._reactRootContainer=null})}),!0):!1},unstable_createPortal:function(a,b){return se.createPortal(a,b,null,2<arguments.length&&void 0!==
+arguments[2]?arguments[2]:null)},unstable_batchedUpdates:yb.batchedUpdates,unstable_deferredUpdates:J.deferredUpdates,flushSync:J.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:W,EventPluginRegistry:na,EventPropagators:la,ReactControlledComponent:wb,ReactDOMComponentTree:G,ReactDOMEventListener:K}};(function(a){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!b.supportsFiber)return!0;try{var c=b.inject(a);Sb=Ad(function(a){return b.onCommitFiberRoot(c,
+a)});Tb=Ad(function(a){return b.onCommitFiberUnmount(c,a)})}catch(d){}return!0})({findFiberByHostInstance:G.getClosestInstanceFromNode,findHostInstanceByFiber:J.findHostInstance,bundleType:0,version:"16.0.0-beta.5",rendererPackageName:"react-dom"});return gg}"object"===typeof exports&&"undefined"!==typeof module?module.exports=Lb(require("react")):"function"===typeof define&&define.amd?define(["react"],Lb):this.ReactDOM=Lb(this.React);
diff --git a/dist/react.development.js b/dist/react.development.js
index f045e77..e2c68a6 100644
--- a/dist/react.development.js
+++ b/dist/react.development.js
@@ -1286,7 +1286,7 @@ var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
{
- var invariant$2 = invariant_1;
+ var invariant$1 = invariant_1;
var warning$5 = warning_1;
var ReactPropTypesSecret = ReactPropTypesSecret_1;
var loggedTypeFailures = {};
@@ -1314,7 +1314,7 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
try {
// This is intentionally an invariant that gets caught. It's the same
// behavior as without this statement except with a better message.
- invariant$2(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);
+ invariant$1(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
} catch (ex) {
error = ex;
@@ -1364,23 +1364,14 @@ var describeComponentFrame$1 = function (name, source, ownerName) {
*
*/
-function getComponentName$1(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName$1(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -1655,317 +1646,6 @@ var ReactElementValidator$1 = {
var ReactElementValidator_1 = ReactElementValidator$1;
-{
- var warning$6 = warning_1;
-}
-
-function isNative(fn) {
- // Based on isNative() from Lodash
- var funcToString = Function.prototype.toString;
- var reIsNative = RegExp('^' + funcToString
- // Take an example native function source for comparison
- .call(Object.prototype.hasOwnProperty)
- // Strip regex characters so we can use it for regex
- .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
- // Remove hasOwnProperty from the template to make it generic
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
- try {
- var source = funcToString.call(fn);
- return reIsNative.test(source);
- } catch (err) {
- return false;
- }
-}
-
-var canUseCollections =
-// Array.from
-typeof Array.from === 'function' &&
-// Map
-typeof Map === 'function' && isNative(Map) &&
-// Map.prototype.keys
-Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&
-// Set
-typeof Set === 'function' && isNative(Set) &&
-// Set.prototype.keys
-Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);
-
-var setItem;
-var getItem;
-var removeItem;
-var getItemIDs;
-var addRoot;
-var removeRoot;
-var getRootIDs;
-
-if (canUseCollections) {
- var itemMap = new Map();
- var rootIDSet = new Set();
-
- setItem = function (id, item) {
- itemMap.set(id, item);
- };
- getItem = function (id) {
- return itemMap.get(id);
- };
- removeItem = function (id) {
- itemMap['delete'](id);
- };
- getItemIDs = function () {
- return Array.from(itemMap.keys());
- };
-
- addRoot = function (id) {
- rootIDSet.add(id);
- };
- removeRoot = function (id) {
- rootIDSet['delete'](id);
- };
- getRootIDs = function () {
- return Array.from(rootIDSet.keys());
- };
-} else {
- var itemByKey = {};
- var rootByKey = {};
-
- // Use non-numeric keys to prevent V8 performance issues:
- // https://github.com/facebook/react/pull/7232
- var getKeyFromID = function (id) {
- return '.' + id;
- };
- var getIDFromKey = function (key) {
- return parseInt(key.substr(1), 10);
- };
-
- setItem = function (id, item) {
- var key = getKeyFromID(id);
- itemByKey[key] = item;
- };
- getItem = function (id) {
- var key = getKeyFromID(id);
- return itemByKey[key];
- };
- removeItem = function (id) {
- var key = getKeyFromID(id);
- delete itemByKey[key];
- };
- getItemIDs = function () {
- return Object.keys(itemByKey).map(getIDFromKey);
- };
-
- addRoot = function (id) {
- var key = getKeyFromID(id);
- rootByKey[key] = true;
- };
- removeRoot = function (id) {
- var key = getKeyFromID(id);
- delete rootByKey[key];
- };
- getRootIDs = function () {
- return Object.keys(rootByKey).map(getIDFromKey);
- };
-}
-
-var unmountedIDs = [];
-
-function purgeDeep(id) {
- var item = getItem(id);
- if (item) {
- var childIDs = item.childIDs;
-
- removeItem(id);
- childIDs.forEach(purgeDeep);
- }
-}
-
-function getDisplayName$1(element) {
- if (element == null) {
- return '#empty';
- } else if (typeof element === 'string' || typeof element === 'number') {
- return '#text';
- } else if (typeof element.type === 'string') {
- return element.type;
- } else {
- return element.type.displayName || element.type.name || 'Unknown';
- }
-}
-
-function describeID(id) {
- var name = ReactComponentTreeHook.getDisplayName(id);
- var element = ReactComponentTreeHook.getElement(id);
- var ownerID = ReactComponentTreeHook.getOwnerID(id);
- var ownerName = void 0;
-
- if (ownerID) {
- ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
- }
- warning$6(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id);
- return describeComponentFrame$1(name || '', element && element._source, ownerName || '');
-}
-
-var ReactComponentTreeHook = {
- onSetChildren: function (id, nextChildIDs) {
- var item = getItem(id);
- !item ? invariant_1(false, 'Item must have been set') : void 0;
- item.childIDs = nextChildIDs;
-
- for (var i = 0; i < nextChildIDs.length; i++) {
- var nextChildID = nextChildIDs[i];
- var nextChild = getItem(nextChildID);
- !nextChild ? invariant_1(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : void 0;
- !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? invariant_1(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : void 0;
- !nextChild.isMounted ? invariant_1(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : void 0;
- if (nextChild.parentID == null) {
- nextChild.parentID = id;
- // TODO: This shouldn't be necessary but mounting a new root during in
- // componentWillMount currently causes not-yet-mounted components to
- // be purged from our tree data so their parent id is missing.
- }
- !(nextChild.parentID === id) ? invariant_1(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : void 0;
- }
- },
- onBeforeMountComponent: function (id, element, parentID) {
- var item = {
- element: element,
- parentID: parentID,
- text: null,
- childIDs: [],
- isMounted: false,
- updateCount: 0
- };
- setItem(id, item);
- },
- onBeforeUpdateComponent: function (id, element) {
- var item = getItem(id);
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return;
- }
- item.element = element;
- },
- onMountComponent: function (id) {
- var item = getItem(id);
- !item ? invariant_1(false, 'Item must have been set') : void 0;
- item.isMounted = true;
- var isRoot = item.parentID === 0;
- if (isRoot) {
- addRoot(id);
- }
- },
- onUpdateComponent: function (id) {
- var item = getItem(id);
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return;
- }
- item.updateCount++;
- },
- onUnmountComponent: function (id) {
- var item = getItem(id);
- if (item) {
- // We need to check if it exists.
- // `item` might not exist if it is inside an error boundary, and a sibling
- // error boundary child threw while mounting. Then this instance never
- // got a chance to mount, but it still gets an unmounting event during
- // the error boundary cleanup.
- item.isMounted = false;
- var isRoot = item.parentID === 0;
- if (isRoot) {
- removeRoot(id);
- }
- }
- unmountedIDs.push(id);
- },
- purgeUnmountedComponents: function () {
- if (ReactComponentTreeHook._preventPurging) {
- // Should only be used for testing.
- return;
- }
-
- for (var i = 0; i < unmountedIDs.length; i++) {
- var id = unmountedIDs[i];
- purgeDeep(id);
- }
- unmountedIDs.length = 0;
- },
- isMounted: function (id) {
- var item = getItem(id);
- return item ? item.isMounted : false;
- },
- getCurrentStackAddendum: function () {
- var info = '';
- var currentOwner = ReactCurrentOwner_1.current;
- if (currentOwner) {
- !(typeof currentOwner.tag !== 'number') ? invariant_1(false, 'Fiber owners should not show up in Stack stack traces.') : void 0;
- if (typeof currentOwner._debugID === 'number') {
- info += ReactComponentTreeHook.getStackAddendumByID(currentOwner._debugID);
- }
- }
- return info;
- },
- getStackAddendumByID: function (id) {
- var info = '';
- while (id) {
- info += describeID(id);
- id = ReactComponentTreeHook.getParentID(id);
- }
- return info;
- },
- getChildIDs: function (id) {
- var item = getItem(id);
- return item ? item.childIDs : [];
- },
- getDisplayName: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (!element) {
- return null;
- }
- return getDisplayName$1(element);
- },
- getElement: function (id) {
- var item = getItem(id);
- return item ? item.element : null;
- },
- getOwnerID: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (!element || !element._owner) {
- return null;
- }
- return element._owner._debugID;
- },
- getParentID: function (id) {
- var item = getItem(id);
- return item ? item.parentID : null;
- },
- getSource: function (id) {
- var item = getItem(id);
- var element = item ? item.element : null;
- var source = element != null ? element._source : null;
- return source;
- },
- getText: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (typeof element === 'string') {
- return element;
- } else if (typeof element === 'number') {
- return '' + element;
- } else {
- return null;
- }
- },
- getUpdateCount: function (id) {
- var item = getItem(id);
- return item ? item.updateCount : 0;
- },
-
-
- getRootIDs: getRootIDs,
- getRegisteredIDs: getItemIDs
-};
-
-var ReactComponentTreeHook_1 = ReactComponentTreeHook;
-
var createElement = ReactElement_1.createElement;
var createFactory = ReactElement_1.createFactory;
var cloneElement = ReactElement_1.cloneElement;
@@ -2006,7 +1686,6 @@ var React = {
{
index(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
// These should not be included in production.
- ReactComponentTreeHook: ReactComponentTreeHook_1,
ReactDebugCurrentFrame: ReactDebugCurrentFrame_1
});
}
diff --git a/facebook-www/React-dev.js b/facebook-www/React-dev.js
index a9e6315..12cc0b2 100644
--- a/facebook-www/React-dev.js
+++ b/facebook-www/React-dev.js
@@ -964,23 +964,14 @@ var describeComponentFrame$1 = function (name, source, ownerName) {
*
*/
-function getComponentName$1(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName$1(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -1258,321 +1249,6 @@ var ReactElementValidator$1 = {
var ReactElementValidator_1 = ReactElementValidator$1;
-var ReactCurrentOwner$2 = require('ReactCurrentOwner');
-
-
-
-{
- var warning$4 = require$$0;
-}
-
-function isNative(fn) {
- // Based on isNative() from Lodash
- var funcToString = Function.prototype.toString;
- var reIsNative = RegExp('^' + funcToString
- // Take an example native function source for comparison
- .call(Object.prototype.hasOwnProperty)
- // Strip regex characters so we can use it for regex
- .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
- // Remove hasOwnProperty from the template to make it generic
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
- try {
- var source = funcToString.call(fn);
- return reIsNative.test(source);
- } catch (err) {
- return false;
- }
-}
-
-var canUseCollections =
-// Array.from
-typeof Array.from === 'function' &&
-// Map
-typeof Map === 'function' && isNative(Map) &&
-// Map.prototype.keys
-Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&
-// Set
-typeof Set === 'function' && isNative(Set) &&
-// Set.prototype.keys
-Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);
-
-var setItem;
-var getItem;
-var removeItem;
-var getItemIDs;
-var addRoot;
-var removeRoot;
-var getRootIDs;
-
-if (canUseCollections) {
- var itemMap = new Map();
- var rootIDSet = new Set();
-
- setItem = function (id, item) {
- itemMap.set(id, item);
- };
- getItem = function (id) {
- return itemMap.get(id);
- };
- removeItem = function (id) {
- itemMap['delete'](id);
- };
- getItemIDs = function () {
- return Array.from(itemMap.keys());
- };
-
- addRoot = function (id) {
- rootIDSet.add(id);
- };
- removeRoot = function (id) {
- rootIDSet['delete'](id);
- };
- getRootIDs = function () {
- return Array.from(rootIDSet.keys());
- };
-} else {
- var itemByKey = {};
- var rootByKey = {};
-
- // Use non-numeric keys to prevent V8 performance issues:
- // https://github.com/facebook/react/pull/7232
- var getKeyFromID = function (id) {
- return '.' + id;
- };
- var getIDFromKey = function (key) {
- return parseInt(key.substr(1), 10);
- };
-
- setItem = function (id, item) {
- var key = getKeyFromID(id);
- itemByKey[key] = item;
- };
- getItem = function (id) {
- var key = getKeyFromID(id);
- return itemByKey[key];
- };
- removeItem = function (id) {
- var key = getKeyFromID(id);
- delete itemByKey[key];
- };
- getItemIDs = function () {
- return Object.keys(itemByKey).map(getIDFromKey);
- };
-
- addRoot = function (id) {
- var key = getKeyFromID(id);
- rootByKey[key] = true;
- };
- removeRoot = function (id) {
- var key = getKeyFromID(id);
- delete rootByKey[key];
- };
- getRootIDs = function () {
- return Object.keys(rootByKey).map(getIDFromKey);
- };
-}
-
-var unmountedIDs = [];
-
-function purgeDeep(id) {
- var item = getItem(id);
- if (item) {
- var childIDs = item.childIDs;
-
- removeItem(id);
- childIDs.forEach(purgeDeep);
- }
-}
-
-function getDisplayName$1(element) {
- if (element == null) {
- return '#empty';
- } else if (typeof element === 'string' || typeof element === 'number') {
- return '#text';
- } else if (typeof element.type === 'string') {
- return element.type;
- } else {
- return element.type.displayName || element.type.name || 'Unknown';
- }
-}
-
-function describeID(id) {
- var name = ReactComponentTreeHook.getDisplayName(id);
- var element = ReactComponentTreeHook.getElement(id);
- var ownerID = ReactComponentTreeHook.getOwnerID(id);
- var ownerName = void 0;
-
- if (ownerID) {
- ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
- }
- warning$4(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id);
- return describeComponentFrame$1(name || '', element && element._source, ownerName || '');
-}
-
-var ReactComponentTreeHook = {
- onSetChildren: function (id, nextChildIDs) {
- var item = getItem(id);
- invariant(item, 'Item must have been set');
- item.childIDs = nextChildIDs;
-
- for (var i = 0; i < nextChildIDs.length; i++) {
- var nextChildID = nextChildIDs[i];
- var nextChild = getItem(nextChildID);
- invariant(nextChild, 'Expected hook events to fire for the child ' + 'before its parent includes it in onSetChildren().');
- invariant(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null, 'Expected onSetChildren() to fire for a container child ' + 'before its parent includes it in onSetChildren().');
- invariant(nextChild.isMounted, 'Expected onMountComponent() to fire for the child ' + 'before its parent includes it in onSetChildren().');
- if (nextChild.parentID == null) {
- nextChild.parentID = id;
- // TODO: This shouldn't be necessary but mounting a new root during in
- // componentWillMount currently causes not-yet-mounted components to
- // be purged from our tree data so their parent id is missing.
- }
- invariant(nextChild.parentID === id, 'Expected onBeforeMountComponent() parent and onSetChildren() to ' + 'be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id);
- }
- },
- onBeforeMountComponent: function (id, element, parentID) {
- var item = {
- element: element,
- parentID: parentID,
- text: null,
- childIDs: [],
- isMounted: false,
- updateCount: 0
- };
- setItem(id, item);
- },
- onBeforeUpdateComponent: function (id, element) {
- var item = getItem(id);
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return;
- }
- item.element = element;
- },
- onMountComponent: function (id) {
- var item = getItem(id);
- invariant(item, 'Item must have been set');
- item.isMounted = true;
- var isRoot = item.parentID === 0;
- if (isRoot) {
- addRoot(id);
- }
- },
- onUpdateComponent: function (id) {
- var item = getItem(id);
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return;
- }
- item.updateCount++;
- },
- onUnmountComponent: function (id) {
- var item = getItem(id);
- if (item) {
- // We need to check if it exists.
- // `item` might not exist if it is inside an error boundary, and a sibling
- // error boundary child threw while mounting. Then this instance never
- // got a chance to mount, but it still gets an unmounting event during
- // the error boundary cleanup.
- item.isMounted = false;
- var isRoot = item.parentID === 0;
- if (isRoot) {
- removeRoot(id);
- }
- }
- unmountedIDs.push(id);
- },
- purgeUnmountedComponents: function () {
- if (ReactComponentTreeHook._preventPurging) {
- // Should only be used for testing.
- return;
- }
-
- for (var i = 0; i < unmountedIDs.length; i++) {
- var id = unmountedIDs[i];
- purgeDeep(id);
- }
- unmountedIDs.length = 0;
- },
- isMounted: function (id) {
- var item = getItem(id);
- return item ? item.isMounted : false;
- },
- getCurrentStackAddendum: function () {
- var info = '';
- var currentOwner = ReactCurrentOwner$2.current;
- if (currentOwner) {
- invariant(typeof currentOwner.tag !== 'number', 'Fiber owners should not show up in Stack stack traces.');
- if (typeof currentOwner._debugID === 'number') {
- info += ReactComponentTreeHook.getStackAddendumByID(currentOwner._debugID);
- }
- }
- return info;
- },
- getStackAddendumByID: function (id) {
- var info = '';
- while (id) {
- info += describeID(id);
- id = ReactComponentTreeHook.getParentID(id);
- }
- return info;
- },
- getChildIDs: function (id) {
- var item = getItem(id);
- return item ? item.childIDs : [];
- },
- getDisplayName: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (!element) {
- return null;
- }
- return getDisplayName$1(element);
- },
- getElement: function (id) {
- var item = getItem(id);
- return item ? item.element : null;
- },
- getOwnerID: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (!element || !element._owner) {
- return null;
- }
- return element._owner._debugID;
- },
- getParentID: function (id) {
- var item = getItem(id);
- return item ? item.parentID : null;
- },
- getSource: function (id) {
- var item = getItem(id);
- var element = item ? item.element : null;
- var source = element != null ? element._source : null;
- return source;
- },
- getText: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (typeof element === 'string') {
- return element;
- } else if (typeof element === 'number') {
- return '' + element;
- } else {
- return null;
- }
- },
- getUpdateCount: function (id) {
- var item = getItem(id);
- return item ? item.updateCount : 0;
- },
-
-
- getRootIDs: getRootIDs,
- getRegisteredIDs: getItemIDs
-};
-
-var ReactComponentTreeHook_1 = ReactComponentTreeHook;
-
var createElement = ReactElement_1.createElement;
var createFactory = ReactElement_1.createFactory;
var cloneElement = ReactElement_1.cloneElement;
@@ -1613,7 +1289,6 @@ var React = {
{
Object.assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
// These should not be included in production.
- ReactComponentTreeHook: ReactComponentTreeHook_1,
ReactDebugCurrentFrame: ReactDebugCurrentFrame_1
});
}
diff --git a/facebook-www/ReactARTFiber-dev.js b/facebook-www/ReactARTFiber-dev.js
index ff9a1ac..e2d4aea 100644
--- a/facebook-www/ReactARTFiber-dev.js
+++ b/facebook-www/ReactARTFiber-dev.js
@@ -541,23 +541,14 @@ var ReactFiberUpdateQueue = {
*
*/
-function getComponentName$1(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName$1(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -617,7 +608,6 @@ var ReactGlobalSharedState = {
{
Object.assign(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
});
}
@@ -2504,14 +2494,9 @@ function coerceRef(current$$1, element) {
var owner = element._owner;
var inst = void 0;
if (owner) {
- if (typeof owner.tag === 'number') {
- var ownerFiber = owner;
- invariant(ownerFiber.tag === ClassComponent$7, 'Stateless function components cannot have refs.');
- inst = ownerFiber.stateNode;
- } else {
- // Stack
- inst = owner.getPublicInstance();
- }
+ var ownerFiber = owner;
+ invariant(ownerFiber.tag === ClassComponent$7, 'Stateless function components cannot have refs.');
+ inst = ownerFiber.stateNode;
}
invariant(inst, 'Missing owner for string ref %s. This error is likely caused by a ' + 'bug in React. Please file an issue.', mixedRef);
var stringRef = '' + mixedRef;
@@ -7293,46 +7278,6 @@ var ReactFiberScheduler = function (config) {
};
};
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule getContextForSubtree
- *
- */
-
-
-
-
-
-
-var getContextFiber = function (arg) {
- invariant(false, 'Missing injection for fiber getContextForSubtree');
-};
-
-function getContextForSubtree(parentComponent) {
- if (!parentComponent) {
- return emptyObject;
- }
-
- var instance = ReactInstanceMap_1.get(parentComponent);
- if (typeof instance.tag === 'number') {
- return getContextFiber(instance);
- } else {
- return instance._processChildContext(instance._context);
- }
-}
-
-getContextForSubtree._injectFiber = function (fn) {
- getContextFiber = fn;
-};
-
-var getContextForSubtree_1 = getContextForSubtree;
-
var ReactFeatureFlags = require('ReactFeatureFlags');
var addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate;
@@ -7345,8 +7290,11 @@ var createFiberRoot = ReactFiberRoot.createFiberRoot;
+
var HostComponent = ReactTypeOfWork.HostComponent;
+
+
{
var warning = require$$0;
var ReactFiberInstrumentation = ReactFiberInstrumentation_1;
@@ -7357,12 +7305,15 @@ var HostComponent = ReactTypeOfWork.HostComponent;
var findCurrentHostFiber = ReactFiberTreeReflection.findCurrentHostFiber;
var findCurrentHostFiberWithNoPortals = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
+function getContextForSubtree(parentComponent) {
+ if (!parentComponent) {
+ return emptyObject;
+ }
-
-getContextForSubtree_1._injectFiber(function (fiber) {
+ var fiber = ReactInstanceMap_1.get(parentComponent);
var parentContext = findCurrentUnmaskedContext(fiber);
return isContextProvider(fiber) ? processChildContext(fiber, parentContext, false) : parentContext;
-});
+}
var ReactFiberReconciler = function (config) {
var getPublicInstance = config.getPublicInstance;
@@ -7417,7 +7368,7 @@ var ReactFiberReconciler = function (config) {
}
}
- var context = getContextForSubtree_1(parentComponent);
+ var context = getContextForSubtree(parentComponent);
if (container.context === null) {
container.context = context;
} else {
diff --git a/facebook-www/ReactARTFiber-prod.js b/facebook-www/ReactARTFiber-prod.js
index ee4e3e4..5cbe6f8 100644
--- a/facebook-www/ReactARTFiber-prod.js
+++ b/facebook-www/ReactARTFiber-prod.js
@@ -333,17 +333,9 @@ var commitCallbacks_1 = commitCallbacks, ReactFiberUpdateQueue = {
* @providesModule getComponentName
*
*/
-function getComponentName$1(instanceOrFiber) {
- if ("function" == typeof instanceOrFiber.getName) {
- return instanceOrFiber.getName();
- }
- if ("number" == typeof instanceOrFiber.tag) {
- // Fiber reconciler
- var fiber = instanceOrFiber, type = fiber.type;
- if ("string" == typeof type) return type;
- if ("function" == typeof type) return type.displayName || type.name;
- }
- return null;
+function getComponentName$1(fiber) {
+ var type = fiber.type;
+ return "string" == typeof type ? type : "function" == typeof type ? type.displayName || type.name : null;
}
var getComponentName_1 = getComponentName$1, ReactInstanceMap = {
@@ -898,12 +890,11 @@ function coerceRef(current$$1, element) {
if (null !== mixedRef && "function" != typeof mixedRef) {
if (element._owner) {
var owner = element._owner, inst = void 0;
- if (owner) if ("number" == typeof owner.tag) {
+ if (owner) {
var ownerFiber = owner;
invariant(ownerFiber.tag === ClassComponent$7, "Stateless function components cannot have refs."),
inst = ownerFiber.stateNode;
- } else // Stack
- inst = owner.getPublicInstance();
+ }
invariant(inst, "Missing owner for string ref %s. This error is likely caused by a " + "bug in React. Please file an issue.", mixedRef);
var stringRef = "" + mixedRef;
// Check if previous string ref matches new string ref
@@ -3220,26 +3211,13 @@ var injectInternals_1 = injectInternals, onCommitRoot_1 = onCommitRoot$1, onComm
flushSync: flushSync,
deferredUpdates: deferredUpdates
};
-}, getContextFiber = function(arg) {
- invariant(!1, "Missing injection for fiber getContextForSubtree");
-};
+}, ReactFeatureFlags = require("ReactFeatureFlags"), addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate, findCurrentUnmaskedContext = ReactFiberContext.findCurrentUnmaskedContext, isContextProvider = ReactFiberContext.isContextProvider, processChildContext = ReactFiberContext.processChildContext, createFiberRoot = ReactFiberRoot.createFiberRoot, HostComponent = ReactTypeOfWork.HostComponent, findCurrentHostFiber = ReactFiberTreeReflection.findCurrentHostFiber, findCurrentHostFiberWithNoPortals = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
function getContextForSubtree(parentComponent) {
if (!parentComponent) return emptyObject;
- var instance = ReactInstanceMap_1.get(parentComponent);
- return "number" == typeof instance.tag ? getContextFiber(instance) : instance._processChildContext(instance._context);
-}
-
-getContextForSubtree._injectFiber = function(fn) {
- getContextFiber = fn;
-};
-
-var getContextForSubtree_1 = getContextForSubtree, ReactFeatureFlags = require("ReactFeatureFlags"), addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate, findCurrentUnmaskedContext = ReactFiberContext.findCurrentUnmaskedContext, isContextProvider = ReactFiberContext.isContextProvider, processChildContext = ReactFiberContext.processChildContext, createFiberRoot = ReactFiberRoot.createFiberRoot, HostComponent = ReactTypeOfWork.HostComponent, findCurrentHostFiber = ReactFiberTreeReflection.findCurrentHostFiber, findCurrentHostFiberWithNoPortals = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
-
-getContextForSubtree_1._injectFiber(function(fiber) {
- var parentContext = findCurrentUnmaskedContext(fiber);
+ var fiber = ReactInstanceMap_1.get(parentComponent), parentContext = findCurrentUnmaskedContext(fiber);
return isContextProvider(fiber) ? processChildContext(fiber, parentContext, !1) : parentContext;
-});
+}
var ReactFiberReconciler = function(config) {
var getPublicInstance = config.getPublicInstance, _ReactFiberScheduler = ReactFiberScheduler(config), scheduleUpdate = _ReactFiberScheduler.scheduleUpdate, getPriorityContext = _ReactFiberScheduler.getPriorityContext, performWithPriority = _ReactFiberScheduler.performWithPriority, batchedUpdates = _ReactFiberScheduler.batchedUpdates, unbatchedUpdates = _ReactFiberScheduler.unbatchedUpdates, flushSync = _ReactFiberScheduler.flushSync, deferredUpdates = _ReactFiberScheduler.deferredUpdates;
@@ -3256,7 +3234,7 @@ var ReactFiberReconciler = function(config) {
},
updateContainer: function(element, container, parentComponent, callback) {
// TODO: If this is a nested container, this won't be the root.
- var current$$1 = container.current, context = getContextForSubtree_1(parentComponent);
+ var current$$1 = container.current, context = getContextForSubtree(parentComponent);
null === container.context ? container.context = context : container.pendingContext = context,
scheduleTopLevelUpdate(current$$1, element, callback);
},
diff --git a/facebook-www/ReactDOMFiber-dev.js b/facebook-www/ReactDOMFiber-dev.js
index e004b1f..2daeffd 100644
--- a/facebook-www/ReactDOMFiber-dev.js
+++ b/facebook-www/ReactDOMFiber-dev.js
@@ -27,7 +27,6 @@ var require$$0 = require('fbjs/lib/warning');
var hyphenateStyleName = require('fbjs/lib/hyphenateStyleName');
var emptyFunction = require('fbjs/lib/emptyFunction');
var camelizeStyleName = require('fbjs/lib/camelizeStyleName');
-var performanceNow = require('fbjs/lib/performanceNow');
var propTypes = require('prop-types');
var emptyObject = require('fbjs/lib/emptyObject');
var checkPropTypes = require('prop-types/checkPropTypes');
@@ -277,240 +276,6 @@ var EventPluginRegistry = {
var EventPluginRegistry_1 = EventPluginRegistry;
-// These attributes should be all lowercase to allow for
-// case insensitive checks
-var RESERVED_PROPS = {
- children: true,
- dangerouslysetinnerhtml: true,
- autofocus: true,
- defaultvalue: true,
- defaultchecked: true,
- innerhtml: true,
- suppresscontenteditablewarning: true,
- onfocusin: true,
- onfocusout: true,
- style: true
-};
-
-function checkMask(value, bitmask) {
- return (value & bitmask) === bitmask;
-}
-
-var DOMPropertyInjection = {
- /**
- * Mapping from normalized, camelcased property names to a configuration that
- * specifies how the associated DOM property should be accessed or rendered.
- */
- MUST_USE_PROPERTY: 0x1,
- HAS_BOOLEAN_VALUE: 0x4,
- HAS_NUMERIC_VALUE: 0x8,
- HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,
- HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,
-
- /**
- * Inject some specialized knowledge about the DOM. This takes a config object
- * with the following properties:
- *
- * Properties: object mapping DOM property name to one of the
- * DOMPropertyInjection constants or null. If your attribute isn't in here,
- * it won't get written to the DOM.
- *
- * DOMAttributeNames: object mapping React attribute name to the DOM
- * attribute name. Attribute names not specified use the **lowercase**
- * normalized name.
- *
- * DOMAttributeNamespaces: object mapping React attribute name to the DOM
- * attribute namespace URL. (Attribute names not specified use no namespace.)
- *
- * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
- * Property names not specified use the normalized name.
- *
- * DOMMutationMethods: Properties that require special mutation methods. If
- * `value` is undefined, the mutation method should unset the property.
- *
- * @param {object} domPropertyConfig the config as described above.
- */
- injectDOMPropertyConfig: function (domPropertyConfig) {
- var Injection = DOMPropertyInjection;
- var Properties = domPropertyConfig.Properties || {};
- var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};
- var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};
- var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
-
- for (var propName in Properties) {
- invariant(!DOMProperty.properties.hasOwnProperty(propName), "injectDOMPropertyConfig(...): You're trying to inject DOM property " + "'%s' which has already been injected. You may be accidentally " + 'injecting the same DOM property config twice, or you may be ' + 'injecting two configs that have conflicting property names.', propName);
-
- var lowerCased = propName.toLowerCase();
- var propConfig = Properties[propName];
-
- var propertyInfo = {
- attributeName: lowerCased,
- attributeNamespace: null,
- propertyName: propName,
- mutationMethod: null,
-
- mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
- hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
- hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
- hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
- hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
- };
- invariant(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1, 'DOMProperty: Value can be one of boolean, overloaded boolean, or ' + 'numeric value, but not a combination: %s', propName);
-
- if (DOMAttributeNames.hasOwnProperty(propName)) {
- var attributeName = DOMAttributeNames[propName];
-
- propertyInfo.attributeName = attributeName;
- }
-
- if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
- propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];
- }
-
- if (DOMMutationMethods.hasOwnProperty(propName)) {
- propertyInfo.mutationMethod = DOMMutationMethods[propName];
- }
-
- // Downcase references to whitelist properties to check for membership
- // without case-sensitivity. This allows the whitelist to pick up
- // `allowfullscreen`, which should be written using the property configuration
- // for `allowFullscreen`
- DOMProperty.properties[propName] = propertyInfo;
- }
- }
-};
-
-/* eslint-disable max-len */
-var 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';
-/* eslint-enable max-len */
-
-/**
- * DOMProperty exports lookup objects that can be used like functions:
- *
- * > DOMProperty.isValid['id']
- * true
- * > DOMProperty.isValid['foobar']
- * undefined
- *
- * Although this may be confusing, it performs better in general.
- *
- * @see http://jsperf.com/key-exists
- * @see http://jsperf.com/key-missing
- */
-var DOMProperty = {
- ID_ATTRIBUTE_NAME: 'data-reactid',
- ROOT_ATTRIBUTE_NAME: 'data-reactroot',
-
- ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
- ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040',
-
- /**
- * Map from property "standard name" to an object with info about how to set
- * the property in the DOM. Each object contains:
- *
- * attributeName:
- * Used when rendering markup or with `*Attribute()`.
- * attributeNamespace
- * propertyName:
- * Used on DOM node instances. (This includes properties that mutate due to
- * external factors.)
- * mutationMethod:
- * If non-null, used instead of the property or `setAttribute()` after
- * initial render.
- * mustUseProperty:
- * Whether the property must be accessed and mutated as an object property.
- * hasBooleanValue:
- * Whether the property should be removed when set to a falsey value.
- * hasNumericValue:
- * Whether the property must be numeric or parse as a numeric and should be
- * removed when set to a falsey value.
- * hasPositiveNumericValue:
- * Whether the property must be positive numeric or parse as a positive
- * numeric and should be removed when set to a falsey value.
- * hasOverloadedBooleanValue:
- * Whether the property can be used as a flag as well as with a value.
- * Removed when strictly equal to false; present without a value when
- * strictly equal to true; present with a value otherwise.
- */
- properties: {},
-
- /**
- * Checks whether a property name is a writeable attribute.
- * @method
- */
- shouldSetAttribute: function (name, value) {
- if (DOMProperty.isReservedProp(name)) {
- return false;
- }
-
- if (value === null) {
- return true;
- }
-
- var lowerCased = name.toLowerCase();
-
- var propertyInfo = DOMProperty.properties[name];
-
- switch (typeof value) {
- case 'boolean':
- if (propertyInfo) {
- return true;
- }
- var prefix = lowerCased.slice(0, 5);
- return prefix === 'data-' || prefix === 'aria-';
- case 'undefined':
- case 'number':
- case 'string':
- return true;
- case 'object':
- return true;
- default:
- // function, symbol
- return false;
- }
- },
-
- getPropertyInfo: function (name) {
- return DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
- },
-
-
- /**
- * Checks to see if a property name is within the list of properties
- * reserved for internal React operations. These properties should
- * not be set on an HTML element.
- *
- * @private
- * @param {string} name
- * @return {boolean} If the name is within reserved props
- */
- isReservedProp: function (name) {
- return RESERVED_PROPS.hasOwnProperty(name.toLowerCase());
- },
-
-
- injection: DOMPropertyInjection
-};
-
-var DOMProperty_1 = DOMProperty;
-
-/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactDOMComponentFlags
- */
-
-var ReactDOMComponentFlags = {
- hasCachedChildNodes: 1 << 0
-};
-
-var ReactDOMComponentFlags_1 = ReactDOMComponentFlags;
-
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
@@ -537,135 +302,19 @@ var ReactTypeOfWork = {
Fragment: 10
};
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule HTMLNodeType
- */
-
-/**
- * HTML nodeType values that represent the type of the node
- */
-
-var HTMLNodeType = {
- ELEMENT_NODE: 1,
- TEXT_NODE: 3,
- COMMENT_NODE: 8,
- DOCUMENT_NODE: 9,
- DOCUMENT_FRAGMENT_NODE: 11
-};
-
-var HTMLNodeType_1 = HTMLNodeType;
-
var HostComponent = ReactTypeOfWork.HostComponent;
var HostText = ReactTypeOfWork.HostText;
-var ELEMENT_NODE$1 = HTMLNodeType_1.ELEMENT_NODE;
-var COMMENT_NODE$1 = HTMLNodeType_1.COMMENT_NODE;
-
-var ATTR_NAME = DOMProperty_1.ID_ATTRIBUTE_NAME;
-var Flags = ReactDOMComponentFlags_1;
-
var randomKey = Math.random().toString(36).slice(2);
-
var internalInstanceKey = '__reactInternalInstance$' + randomKey;
-
var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
-/**
- * Check if a given node should be cached.
- */
-function shouldPrecacheNode(node, nodeID) {
- return node.nodeType === ELEMENT_NODE$1 && node.getAttribute(ATTR_NAME) === '' + nodeID || node.nodeType === COMMENT_NODE$1 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === COMMENT_NODE$1 && node.nodeValue === ' react-empty: ' + nodeID + ' ';
-}
-
-/**
- * Drill down (through composites and empty components) until we get a host or
- * host text component.
- *
- * This is pretty polymorphic but unavoidable with the current structure we have
- * for `_renderedChildren`.
- */
-function getRenderedHostOrTextFromComponent(component) {
- var rendered;
- while (rendered = component._renderedComponent) {
- component = rendered;
- }
- return component;
-}
-
-/**
- * Populate `_hostNode` on the rendered host/text component with the given
- * DOM node. The passed `inst` can be a composite.
- */
-function precacheNode(inst, node) {
- var hostInst = getRenderedHostOrTextFromComponent(inst);
- hostInst._hostNode = node;
- node[internalInstanceKey] = hostInst;
-}
-
function precacheFiberNode$1(hostInst, node) {
node[internalInstanceKey] = hostInst;
}
-function uncacheNode(inst) {
- var node = inst._hostNode;
- if (node) {
- delete node[internalInstanceKey];
- inst._hostNode = null;
- }
-}
-
-/**
- * Populate `_hostNode` on each child of `inst`, assuming that the children
- * match up with the DOM (element) children of `node`.
- *
- * We cache entire levels at once to avoid an n^2 problem where we access the
- * children of a node sequentially and have to walk from the start to our target
- * node every time.
- *
- * Since we update `_renderedChildren` and the actual DOM at (slightly)
- * different times, we could race here and see a newer `_renderedChildren` than
- * the DOM nodes we see. To avoid this, ReactMultiChild calls
- * `prepareToManageChildren` before we change `_renderedChildren`, at which
- * time the container's child nodes are always cached (until it unmounts).
- */
-function precacheChildNodes(inst, node) {
- if (inst._flags & Flags.hasCachedChildNodes) {
- return;
- }
- var children = inst._renderedChildren;
- var childNode = node.firstChild;
- outer: for (var name in children) {
- if (!children.hasOwnProperty(name)) {
- continue;
- }
- var childInst = children[name];
- var childID = getRenderedHostOrTextFromComponent(childInst)._domID;
- if (childID === 0) {
- // We're currently unmounting this child in ReactMultiChild; skip it.
- continue;
- }
- // We assume the child nodes are in the same order as the child instances.
- for (; childNode !== null; childNode = childNode.nextSibling) {
- if (shouldPrecacheNode(childNode, childID)) {
- precacheNode(childInst, childNode);
- continue outer;
- }
- }
- // We reached the end of the DOM children without finding an ID match.
- invariant(false, 'Unable to find element with ID %s.', childID);
- }
- inst._flags |= Flags.hasCachedChildNodes;
-}
-
/**
* Given a DOM node, return the closest ReactDOMComponent or
* ReactDOMTextComponent instance ancestor.
@@ -696,9 +345,6 @@ function getClosestInstanceFromNode(node) {
}
for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) {
closest = inst;
- if (parents.length) {
- precacheChildNodes(inst, node);
- }
}
return closest;
@@ -713,18 +359,11 @@ function getInstanceFromNode(node) {
if (inst) {
if (inst.tag === HostComponent || inst.tag === HostText) {
return inst;
- } else if (inst._hostNode === node) {
- return inst;
} else {
return null;
}
}
- inst = getClosestInstanceFromNode(node);
- if (inst != null && inst._hostNode === node) {
- return inst;
- } else {
- return null;
- }
+ return null;
}
/**
@@ -740,27 +379,7 @@ function getNodeFromInstance(inst) {
// Without this first invariant, passing a non-DOM-component triggers the next
// invariant for a missing parent, which is super confusing.
- invariant(inst._hostNode !== undefined, 'getNodeFromInstance: Invalid argument.');
-
- if (inst._hostNode) {
- return inst._hostNode;
- }
-
- // Walk up the tree until we find an ancestor whose DOM node we have cached.
- var parents = [];
- while (!inst._hostNode) {
- parents.push(inst);
- invariant(inst._hostParent, 'React DOM tree root should always have a node reference.');
- inst = inst._hostParent;
- }
-
- // Now parents contains each ancestor that does *not* have a cached native
- // node, and `inst` is the deepest ancestor that does.
- for (; parents.length; inst = parents.pop()) {
- precacheChildNodes(inst, inst._hostNode);
- }
-
- return inst._hostNode;
+ invariant(false, 'getNodeFromInstance: Invalid argument.');
}
function getFiberCurrentPropsFromNode(node) {
@@ -775,9 +394,6 @@ var ReactDOMComponentTree = {
getClosestInstanceFromNode: getClosestInstanceFromNode,
getInstanceFromNode: getInstanceFromNode,
getNodeFromInstance: getNodeFromInstance,
- precacheChildNodes: precacheChildNodes,
- precacheNode: precacheNode,
- uncacheNode: uncacheNode,
precacheFiberNode: precacheFiberNode$1,
getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode,
updateFiberProps: updateFiberProps$1
@@ -838,7 +454,6 @@ var ReactGlobalSharedState = {
{
Object.assign(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
});
}
@@ -857,23 +472,14 @@ var ReactGlobalSharedState_1 = ReactGlobalSharedState;
*
*/
-function getComponentName(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -906,7 +512,7 @@ var ReactTypeOfSideEffect = {
Err: 64, // 0b01000000
Ref: 128 };
-var ReactCurrentOwner = ReactGlobalSharedState_1.ReactCurrentOwner;
+var ReactCurrentOwner$1 = ReactGlobalSharedState_1.ReactCurrentOwner;
@@ -962,7 +568,7 @@ var isFiberMounted = function (fiber) {
var isMounted = function (component) {
{
- var owner = ReactCurrentOwner.current;
+ var owner = ReactCurrentOwner$1.current;
if (owner !== null && owner.tag === ClassComponent) {
var ownerFiber = owner;
var instance = ownerFiber.stateNode;
@@ -1588,15 +1194,9 @@ function restoreStateOfTarget(target) {
// Unmounted
return;
}
- if (typeof internalInstance.tag === 'number') {
- invariant(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === 'function', 'Fiber needs to be injected to handle a fiber target for controlled ' + 'events. This error is likely caused by a bug in React. Please file an issue.');
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(internalInstance.stateNode);
- fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props);
- return;
- }
- invariant(typeof internalInstance.restoreControlledState === 'function', 'The internal instance must be a React host component. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- // If it is not a Fiber, we can just use dynamic dispatch.
- internalInstance.restoreControlledState();
+ invariant(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === 'function', 'Fiber needs to be injected to handle a fiber target for controlled ' + 'events. This error is likely caused by a bug in React. Please file an issue.');
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(internalInstance.stateNode);
+ fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props);
}
var ReactControlledComponent = {
@@ -1633,30 +1233,22 @@ var ReactControlledComponent = {
var ReactControlledComponent_1 = ReactControlledComponent;
-// Used as a way to call batchedUpdates when we don't know if we're in a Fiber
-// or Stack context. Such as when we're dispatching events or if third party
+// Used as a way to call batchedUpdates when we don't have a reference to
+// the renderer. Such as when we're dispatching events or if third party
// libraries need to call batchedUpdates. Eventually, this API will go away when
// everything is batched by default. We'll then have a similar API to opt-out of
// scheduled work and instead do synchronous work.
// Defaults
-var stackBatchedUpdates = function (fn, a, b, c, d, e) {
- return fn(a, b, c, d, e);
-};
var fiberBatchedUpdates = function (fn, bookkeeping) {
return fn(bookkeeping);
};
-function performFiberBatchedUpdates(fn, bookkeeping) {
+function batchedUpdates(fn, bookkeeping) {
// If we have Fiber loaded, we need to wrap this in a batching call so that
// Fiber can apply its default priority for this call.
return fiberBatchedUpdates(fn, bookkeeping);
}
-function batchedUpdates(fn, bookkeeping) {
- // We first perform work with the stack batching strategy, by passing our
- // indirection to it.
- return stackBatchedUpdates(performFiberBatchedUpdates, fn, bookkeeping);
-}
var isNestingBatched = false;
function batchedUpdatesWithControlledComponents(fn, bookkeeping) {
@@ -1680,9 +1272,6 @@ function batchedUpdatesWithControlledComponents(fn, bookkeeping) {
}
var ReactGenericBatchingInjection = {
- injectStackBatchedUpdates: function (_batchedUpdates) {
- stackBatchedUpdates = _batchedUpdates;
- },
injectFiberBatchedUpdates: function (_batchedUpdates) {
fiberBatchedUpdates = _batchedUpdates;
}
@@ -1695,6 +1284,31 @@ var ReactGenericBatching = {
var ReactGenericBatching_1 = ReactGenericBatching;
+/**
+ * Copyright 2013-present, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ * @providesModule HTMLNodeType
+ */
+
+/**
+ * HTML nodeType values that represent the type of the node
+ */
+
+var HTMLNodeType = {
+ ELEMENT_NODE: 1,
+ TEXT_NODE: 3,
+ COMMENT_NODE: 8,
+ DOCUMENT_NODE: 9,
+ DOCUMENT_FRAGMENT_NODE: 11
+};
+
+var HTMLNodeType_1 = HTMLNodeType;
+
var TEXT_NODE$1 = HTMLNodeType_1.TEXT_NODE;
/**
@@ -1736,22 +1350,14 @@ function findRootContainerNode(inst) {
// TODO: It may be a good idea to cache this to prevent unnecessary DOM
// traversal, but caching is difficult to do correctly without using a
// mutation observer to listen for all DOM changes.
- if (typeof inst.tag === 'number') {
- while (inst['return']) {
- inst = inst['return'];
- }
- if (inst.tag !== HostRoot) {
- // This can happen if we're in a detached tree.
- return null;
- }
- return inst.stateNode.containerInfo;
- } else {
- while (inst._hostParent) {
- inst = inst._hostParent;
- }
- var rootNode = ReactDOMComponentTree_1.getNodeFromInstance(inst);
- return rootNode.parentNode;
+ while (inst['return']) {
+ inst = inst['return'];
+ }
+ if (inst.tag !== HostRoot) {
+ // This can happen if we're in a detached tree.
+ return null;
}
+ return inst.stateNode.containerInfo;
}
// Used to store ancestor hierarchy in top level callback
@@ -2060,38 +1666,20 @@ var EventPluginHub = {
// TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
// live here; needs to be moved to a better place soon
- if (typeof inst.tag === 'number') {
- var stateNode = inst.stateNode;
- if (!stateNode) {
- // Work in progress (ex: onload events in incremental mode).
- return null;
- }
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
- if (!props) {
- // Work in progress.
- return null;
- }
- listener = props[registrationName];
- if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
- return null;
- }
- } else {
- var currentElement = inst._currentElement;
- if (typeof currentElement === 'string' || typeof currentElement === 'number') {
- // Text node, let it bubble through.
- return null;
- }
- if (!inst._rootNodeID) {
- // If the instance is already unmounted, we have no listeners.
- return null;
- }
- var _props = currentElement.props;
- listener = _props[registrationName];
- if (shouldPreventMouseEvent(registrationName, currentElement.type, _props)) {
- return null;
- }
+ var stateNode = inst.stateNode;
+ if (!stateNode) {
+ // Work in progress (ex: onload events in incremental mode).
+ return null;
+ }
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
+ if (!props) {
+ // Work in progress.
+ return null;
+ }
+ listener = props[registrationName];
+ if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
+ return null;
}
-
invariant(!listener || typeof listener === 'function', 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
return listener;
},
@@ -2829,10 +2417,10 @@ var ReactFiberComponentTreeHook = {
var ReactDebugCurrentFrame = ReactGlobalSharedState_1.ReactDebugCurrentFrame;
{
- var getComponentName$3 = getComponentName_1;
+ var getComponentName$2 = getComponentName_1;
- var _require2$2 = ReactFiberComponentTreeHook,
- getStackAddendumByWorkInProgressFiber = _require2$2.getStackAddendumByWorkInProgressFiber;
+ var _require2$1 = ReactFiberComponentTreeHook,
+ getStackAddendumByWorkInProgressFiber = _require2$1.getStackAddendumByWorkInProgressFiber;
}
function getCurrentFiberOwnerName$2() {
@@ -2842,7 +2430,7 @@ function getCurrentFiberOwnerName$2() {
return null;
}
if (fiber._debugOwner != null) {
- return getComponentName$3(fiber._debugOwner);
+ return getComponentName$2(fiber._debugOwner);
}
}
return null;
@@ -2888,7 +2476,6 @@ var warnValidStyle$1 = emptyFunction;
{
var camelizeStyleName$1 = camelizeStyleName;
- var getComponentName$2 = getComponentName_1;
var warning$4 = require$$0;
var _require$3 = ReactDebugCurrentFiber_1,
@@ -2907,62 +2494,57 @@ var warnValidStyle$1 = emptyFunction;
var warnedForNaNValue = false;
var warnedForInfinityValue = false;
- var warnHyphenatedStyleName = function (name, owner) {
+ var warnHyphenatedStyleName = function (name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
- warning$4(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName$1(name), checkRenderMessage(owner));
+ warning$4(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName$1(name), checkRenderMessage());
};
- var warnBadVendoredStyleName = function (name, owner) {
+ var warnBadVendoredStyleName = function (name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
- warning$4(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner));
+ warning$4(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage());
};
- var warnStyleValueWithSemicolon = function (name, value, owner) {
+ var warnStyleValueWithSemicolon = function (name, value) {
if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
return;
}
warnedStyleValues[value] = true;
- warning$4(false, "Style property values shouldn't contain a semicolon.%s " + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, ''));
+ warning$4(false, "Style property values shouldn't contain a semicolon.%s " + 'Try "%s: %s" instead.', checkRenderMessage(), name, value.replace(badStyleValueWithSemicolonPattern, ''));
};
- var warnStyleValueIsNaN = function (name, value, owner) {
+ var warnStyleValueIsNaN = function (name, value) {
if (warnedForNaNValue) {
return;
}
warnedForNaNValue = true;
- warning$4(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner));
+ warning$4(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage());
};
- var warnStyleValueIsInfinity = function (name, value, owner) {
+ var warnStyleValueIsInfinity = function (name, value) {
if (warnedForInfinityValue) {
return;
}
warnedForInfinityValue = true;
- warning$4(false, '`Infinity` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner));
+ warning$4(false, '`Infinity` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage());
};
- var checkRenderMessage = function (owner) {
+ var checkRenderMessage = function () {
var ownerName;
- if (owner != null) {
- // Stack passes the owner manually all the way to CSSPropertyOperations.
- ownerName = getComponentName$2(owner);
- } else {
- // Fiber doesn't pass it but uses ReactDebugCurrentFiber to track it.
- // It is only enabled in development and tracks host components too.
- ownerName = getCurrentFiberOwnerName$1();
- // TODO: also report the stack.
- }
+ // Fiber doesn't pass it but uses ReactDebugCurrentFiber to track it.
+ // It is only enabled in development and tracks host components too.
+ ownerName = getCurrentFiberOwnerName$1();
+ // TODO: also report the stack.
if (ownerName) {
return '\n\nCheck the render method of `' + ownerName + '`.';
}
@@ -2970,24 +2552,19 @@ var warnValidStyle$1 = emptyFunction;
};
warnValidStyle$1 = function (name, value, component) {
- var owner;
- if (component) {
- // TODO: this only works with Stack. Seems like we need to add unit tests?
- owner = component._currentElement._owner;
- }
if (name.indexOf('-') > -1) {
- warnHyphenatedStyleName(name, owner);
+ warnHyphenatedStyleName(name);
} else if (badVendoredStyleNamePattern.test(name)) {
- warnBadVendoredStyleName(name, owner);
+ warnBadVendoredStyleName(name);
} else if (badStyleValueWithSemicolonPattern.test(value)) {
- warnStyleValueWithSemicolon(name, value, owner);
+ warnStyleValueWithSemicolon(name, value);
}
if (typeof value === 'number') {
if (isNaN(value)) {
- warnStyleValueIsNaN(name, value, owner);
+ warnStyleValueIsNaN(name, value);
} else if (!isFinite(value)) {
- warnStyleValueIsInfinity(name, value, owner);
+ warnStyleValueIsInfinity(name, value);
}
}
};
@@ -3072,444 +2649,238 @@ var CSSPropertyOperations = {
style[styleName] = styleValue;
} else {
var expansion = hasShorthandPropertyBug && CSSProperty_1.shorthandPropertyExpansions[styleName];
- if (expansion) {
- // Shorthand property that IE8 won't like unsetting, so unset each
- // component to placate it
- for (var individualStyleName in expansion) {
- style[individualStyleName] = '';
- }
- } else {
- style[styleName] = '';
- }
- }
- }
- }
-};
-
-var CSSPropertyOperations_1 = CSSPropertyOperations;
-
-var ReactInvalidSetStateWarningHook = {};
-
-{
- var warning$7 = require$$0;
- var processingChildContext = false;
-
- var warnInvalidSetState = function () {
- warning$7(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()');
- };
-
- ReactInvalidSetStateWarningHook = {
- onBeginProcessingChildContext: function () {
- processingChildContext = true;
- },
- onEndProcessingChildContext: function () {
- processingChildContext = false;
- },
- onSetState: function () {
- warnInvalidSetState();
- }
- };
-}
-
-var ReactInvalidSetStateWarningHook_1 = ReactInvalidSetStateWarningHook;
-
-/**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactHostOperationHistoryHook
- *
- */
-
-// Trust the developer to only use this with a true check
-var ReactHostOperationHistoryHook = null;
-
-{
- var history = [];
-
- ReactHostOperationHistoryHook = {
- onHostOperation: function (operation) {
- history.push(operation);
- },
- clearHistory: function () {
- if (ReactHostOperationHistoryHook._preventClearing) {
- // Should only be used for tests.
- return;
+ if (expansion) {
+ // Shorthand property that IE8 won't like unsetting, so unset each
+ // component to placate it
+ for (var individualStyleName in expansion) {
+ style[individualStyleName] = '';
+ }
+ } else {
+ style[styleName] = '';
+ }
}
-
- history = [];
- },
- getHistory: function () {
- return history;
}
- };
-}
-
-var ReactHostOperationHistoryHook_1 = ReactHostOperationHistoryHook;
-
-var ReactComponentTreeHook = ReactGlobalSharedState_1.ReactComponentTreeHook;
+ }
+};
+var CSSPropertyOperations_1 = CSSPropertyOperations;
+// These attributes should be all lowercase to allow for
+// case insensitive checks
+var RESERVED_PROPS = {
+ children: true,
+ dangerouslysetinnerhtml: true,
+ autofocus: true,
+ defaultvalue: true,
+ defaultchecked: true,
+ innerhtml: true,
+ suppresscontenteditablewarning: true,
+ onfocusin: true,
+ onfocusout: true,
+ style: true
+};
-{
- var warning$6 = require$$0;
+function checkMask(value, bitmask) {
+ return (value & bitmask) === bitmask;
}
-// Trust the developer to only use this with a true check
-var ReactDebugTool$1 = null;
+var DOMPropertyInjection = {
+ /**
+ * Mapping from normalized, camelcased property names to a configuration that
+ * specifies how the associated DOM property should be accessed or rendered.
+ */
+ MUST_USE_PROPERTY: 0x1,
+ HAS_BOOLEAN_VALUE: 0x4,
+ HAS_NUMERIC_VALUE: 0x8,
+ HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,
+ HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,
-{
- var hooks = [];
- var didHookThrowForEvent = {};
+ /**
+ * Inject some specialized knowledge about the DOM. This takes a config object
+ * with the following properties:
+ *
+ * Properties: object mapping DOM property name to one of the
+ * DOMPropertyInjection constants or null. If your attribute isn't in here,
+ * it won't get written to the DOM.
+ *
+ * DOMAttributeNames: object mapping React attribute name to the DOM
+ * attribute name. Attribute names not specified use the **lowercase**
+ * normalized name.
+ *
+ * DOMAttributeNamespaces: object mapping React attribute name to the DOM
+ * attribute namespace URL. (Attribute names not specified use no namespace.)
+ *
+ * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
+ * Property names not specified use the normalized name.
+ *
+ * DOMMutationMethods: Properties that require special mutation methods. If
+ * `value` is undefined, the mutation method should unset the property.
+ *
+ * @param {object} domPropertyConfig the config as described above.
+ */
+ injectDOMPropertyConfig: function (domPropertyConfig) {
+ var Injection = DOMPropertyInjection;
+ var Properties = domPropertyConfig.Properties || {};
+ var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};
+ var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};
+ var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
- var callHook = function (event, fn, context, arg1, arg2, arg3, arg4, arg5) {
- try {
- fn.call(context, arg1, arg2, arg3, arg4, arg5);
- } catch (e) {
- warning$6(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\n' + e.stack);
- didHookThrowForEvent[event] = true;
- }
- };
+ for (var propName in Properties) {
+ invariant(!DOMProperty.properties.hasOwnProperty(propName), "injectDOMPropertyConfig(...): You're trying to inject DOM property " + "'%s' which has already been injected. You may be accidentally " + 'injecting the same DOM property config twice, or you may be ' + 'injecting two configs that have conflicting property names.', propName);
- var emitEvent = function (event, arg1, arg2, arg3, arg4, arg5) {
- for (var i = 0; i < hooks.length; i++) {
- var hook = hooks[i];
- var fn = hook[event];
- if (fn) {
- callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);
- }
- }
- };
+ var lowerCased = propName.toLowerCase();
+ var propConfig = Properties[propName];
- var isProfiling = false;
- var flushHistory = [];
- var lifeCycleTimerStack = [];
- var currentFlushNesting = 0;
- var currentFlushMeasurements = [];
- var currentFlushStartTime = 0;
- var currentTimerDebugID = null;
- var currentTimerStartTime = 0;
- var currentTimerNestedFlushDuration = 0;
- var currentTimerType = null;
-
- var lifeCycleTimerHasWarned = false;
-
- var clearHistory = function () {
- ReactComponentTreeHook.purgeUnmountedComponents();
- ReactHostOperationHistoryHook_1.clearHistory();
- };
+ var propertyInfo = {
+ attributeName: lowerCased,
+ attributeNamespace: null,
+ propertyName: propName,
+ mutationMethod: null,
- var getTreeSnapshot = function (registeredIDs) {
- return registeredIDs.reduce(function (tree, id) {
- var ownerID = ReactComponentTreeHook.getOwnerID(id);
- var parentID = ReactComponentTreeHook.getParentID(id);
- tree[id] = {
- displayName: ReactComponentTreeHook.getDisplayName(id),
- text: ReactComponentTreeHook.getText(id),
- updateCount: ReactComponentTreeHook.getUpdateCount(id),
- childIDs: ReactComponentTreeHook.getChildIDs(id),
- // Text nodes don't have owners but this is close enough.
- ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0,
- parentID: parentID
+ mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
+ hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
+ hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
+ hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
+ hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
};
- return tree;
- }, {});
- };
-
- var resetMeasurements = function () {
- var previousStartTime = currentFlushStartTime;
- var previousMeasurements = currentFlushMeasurements;
- var previousOperations = ReactHostOperationHistoryHook_1.getHistory();
-
- if (currentFlushNesting === 0) {
- currentFlushStartTime = 0;
- currentFlushMeasurements = [];
- clearHistory();
- return;
- }
+ invariant(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1, 'DOMProperty: Value can be one of boolean, overloaded boolean, or ' + 'numeric value, but not a combination: %s', propName);
- if (previousMeasurements.length || previousOperations.length) {
- var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();
- flushHistory.push({
- duration: performanceNow() - previousStartTime,
- measurements: previousMeasurements || [],
- operations: previousOperations || [],
- treeSnapshot: getTreeSnapshot(registeredIDs)
- });
- }
+ if (DOMAttributeNames.hasOwnProperty(propName)) {
+ var attributeName = DOMAttributeNames[propName];
- clearHistory();
- currentFlushStartTime = performanceNow();
- currentFlushMeasurements = [];
- };
+ propertyInfo.attributeName = attributeName;
+ }
- var checkDebugID = function (debugID) {
- var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+ if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
+ propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];
+ }
- if (allowRoot && debugID === 0) {
- return;
- }
- if (!debugID) {
- warning$6(false, 'ReactDebugTool: debugID may not be empty.');
- }
- };
+ if (DOMMutationMethods.hasOwnProperty(propName)) {
+ propertyInfo.mutationMethod = DOMMutationMethods[propName];
+ }
- var beginLifeCycleTimer = function (debugID, timerType) {
- if (currentFlushNesting === 0) {
- return;
- }
- if (currentTimerType && !lifeCycleTimerHasWarned) {
- warning$6(false, 'There is an internal error in the React performance measurement code.' + '\n\nDid not expect %s timer to start while %s timer is still in ' + 'progress for %s instance.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another');
- lifeCycleTimerHasWarned = true;
+ // Downcase references to whitelist properties to check for membership
+ // without case-sensitivity. This allows the whitelist to pick up
+ // `allowfullscreen`, which should be written using the property configuration
+ // for `allowFullscreen`
+ DOMProperty.properties[propName] = propertyInfo;
}
- currentTimerStartTime = performanceNow();
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = debugID;
- currentTimerType = timerType;
- };
+ }
+};
- var endLifeCycleTimer = function (debugID, timerType) {
- if (currentFlushNesting === 0) {
- return;
- }
- if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) {
- warning$6(false, 'There is an internal error in the React performance measurement code. ' + 'We did not expect %s timer to stop while %s timer is still in ' + 'progress for %s instance. Please report this as a bug in React.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another');
- lifeCycleTimerHasWarned = true;
- }
- if (isProfiling) {
- currentFlushMeasurements.push({
- timerType: timerType,
- instanceID: debugID,
- duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration
- });
- }
- currentTimerStartTime = 0;
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = null;
- currentTimerType = null;
- };
+/* eslint-disable max-len */
+var 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';
+/* eslint-enable max-len */
- var pauseCurrentLifeCycleTimer = function () {
- var currentTimer = {
- startTime: currentTimerStartTime,
- nestedFlushStartTime: performanceNow(),
- debugID: currentTimerDebugID,
- timerType: currentTimerType
- };
- lifeCycleTimerStack.push(currentTimer);
- currentTimerStartTime = 0;
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = null;
- currentTimerType = null;
- };
+/**
+ * DOMProperty exports lookup objects that can be used like functions:
+ *
+ * > DOMProperty.isValid['id']
+ * true
+ * > DOMProperty.isValid['foobar']
+ * undefined
+ *
+ * Although this may be confusing, it performs better in general.
+ *
+ * @see http://jsperf.com/key-exists
+ * @see http://jsperf.com/key-missing
+ */
+var DOMProperty = {
+ ID_ATTRIBUTE_NAME: 'data-reactid',
+ ROOT_ATTRIBUTE_NAME: 'data-reactroot',
- var resumeCurrentLifeCycleTimer = function () {
- var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(),
- startTime = _lifeCycleTimerStack$.startTime,
- nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime,
- debugID = _lifeCycleTimerStack$.debugID,
- timerType = _lifeCycleTimerStack$.timerType;
-
- var nestedFlushDuration = performanceNow() - nestedFlushStartTime;
- currentTimerStartTime = startTime;
- currentTimerNestedFlushDuration += nestedFlushDuration;
- currentTimerDebugID = debugID;
- currentTimerType = timerType;
- };
+ ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
+ ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040',
- var lastMarkTimeStamp = 0;
- var canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
+ /**
+ * Map from property "standard name" to an object with info about how to set
+ * the property in the DOM. Each object contains:
+ *
+ * attributeName:
+ * Used when rendering markup or with `*Attribute()`.
+ * attributeNamespace
+ * propertyName:
+ * Used on DOM node instances. (This includes properties that mutate due to
+ * external factors.)
+ * mutationMethod:
+ * If non-null, used instead of the property or `setAttribute()` after
+ * initial render.
+ * mustUseProperty:
+ * Whether the property must be accessed and mutated as an object property.
+ * hasBooleanValue:
+ * Whether the property should be removed when set to a falsey value.
+ * hasNumericValue:
+ * Whether the property must be numeric or parse as a numeric and should be
+ * removed when set to a falsey value.
+ * hasPositiveNumericValue:
+ * Whether the property must be positive numeric or parse as a positive
+ * numeric and should be removed when set to a falsey value.
+ * hasOverloadedBooleanValue:
+ * Whether the property can be used as a flag as well as with a value.
+ * Removed when strictly equal to false; present without a value when
+ * strictly equal to true; present with a value otherwise.
+ */
+ properties: {},
- var shouldMark = function (debugID) {
- if (!isProfiling || !canUsePerformanceMeasure) {
- return false;
- }
- var element = ReactComponentTreeHook.getElement(debugID);
- if (element == null || typeof element !== 'object') {
- return false;
- }
- var isHostElement = typeof element.type === 'string';
- if (isHostElement) {
+ /**
+ * Checks whether a property name is a writeable attribute.
+ * @method
+ */
+ shouldSetAttribute: function (name, value) {
+ if (DOMProperty.isReservedProp(name)) {
return false;
}
- return true;
- };
-
- var markBegin = function (debugID, markType) {
- if (!shouldMark(debugID)) {
- return;
- }
-
- var markName = debugID + '::' + markType;
- lastMarkTimeStamp = performanceNow();
- performance.mark(markName);
- };
- var markEnd = function (debugID, markType) {
- if (!shouldMark(debugID)) {
- return;
+ if (value === null) {
+ return true;
}
- var markName = debugID + '::' + markType;
- var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown';
-
- // Chrome has an issue of dropping markers recorded too fast:
- // https://bugs.chromium.org/p/chromium/issues/detail?id=640652
- // To work around this, we will not report very small measurements.
- // I determined the magic number by tweaking it back and forth.
- // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe.
- // When the bug is fixed, we can `measure()` unconditionally if we want to.
- var timeStamp = performanceNow();
- if (timeStamp - lastMarkTimeStamp > 0.1) {
- var measurementName = displayName + ' [' + markType + ']';
- performance.measure(measurementName, markName);
- }
+ var lowerCased = name.toLowerCase();
- performance.clearMarks(markName);
- if (measurementName) {
- performance.clearMeasures(measurementName);
- }
- };
+ var propertyInfo = DOMProperty.properties[name];
- ReactDebugTool$1 = {
- addHook: function (hook) {
- hooks.push(hook);
- },
- removeHook: function (hook) {
- for (var i = 0; i < hooks.length; i++) {
- if (hooks[i] === hook) {
- hooks.splice(i, 1);
- i--;
+ switch (typeof value) {
+ case 'boolean':
+ if (propertyInfo) {
+ return true;
}
- }
- },
- isProfiling: function () {
- return isProfiling;
- },
- beginProfiling: function () {
- if (isProfiling) {
- return;
- }
-
- isProfiling = true;
- flushHistory.length = 0;
- resetMeasurements();
- ReactDebugTool$1.addHook(ReactHostOperationHistoryHook_1);
- },
- endProfiling: function () {
- if (!isProfiling) {
- return;
- }
-
- isProfiling = false;
- resetMeasurements();
- ReactDebugTool$1.removeHook(ReactHostOperationHistoryHook_1);
- },
- getFlushHistory: function () {
- return flushHistory;
- },
- onBeginFlush: function () {
- currentFlushNesting++;
- resetMeasurements();
- pauseCurrentLifeCycleTimer();
- emitEvent('onBeginFlush');
- },
- onEndFlush: function () {
- resetMeasurements();
- currentFlushNesting--;
- resumeCurrentLifeCycleTimer();
- emitEvent('onEndFlush');
- },
- onBeginLifeCycleTimer: function (debugID, timerType) {
- checkDebugID(debugID);
- emitEvent('onBeginLifeCycleTimer', debugID, timerType);
- markBegin(debugID, timerType);
- beginLifeCycleTimer(debugID, timerType);
- },
- onEndLifeCycleTimer: function (debugID, timerType) {
- checkDebugID(debugID);
- endLifeCycleTimer(debugID, timerType);
- markEnd(debugID, timerType);
- emitEvent('onEndLifeCycleTimer', debugID, timerType);
- },
- onBeginProcessingChildContext: function () {
- emitEvent('onBeginProcessingChildContext');
- },
- onEndProcessingChildContext: function () {
- emitEvent('onEndProcessingChildContext');
- },
- onHostOperation: function (operation) {
- checkDebugID(operation.instanceID);
- emitEvent('onHostOperation', operation);
- },
- onSetState: function () {
- emitEvent('onSetState');
- },
- onSetChildren: function (debugID, childDebugIDs) {
- checkDebugID(debugID);
- childDebugIDs.forEach(checkDebugID);
- emitEvent('onSetChildren', debugID, childDebugIDs);
- },
- onBeforeMountComponent: function (debugID, element, parentDebugID) {
- checkDebugID(debugID);
- checkDebugID(parentDebugID, true);
- emitEvent('onBeforeMountComponent', debugID, element, parentDebugID);
- markBegin(debugID, 'mount');
- },
- onMountComponent: function (debugID) {
- checkDebugID(debugID);
- markEnd(debugID, 'mount');
- emitEvent('onMountComponent', debugID);
- },
- onBeforeUpdateComponent: function (debugID, element) {
- checkDebugID(debugID);
- emitEvent('onBeforeUpdateComponent', debugID, element);
- markBegin(debugID, 'update');
- },
- onUpdateComponent: function (debugID) {
- checkDebugID(debugID);
- markEnd(debugID, 'update');
- emitEvent('onUpdateComponent', debugID);
- },
- onBeforeUnmountComponent: function (debugID) {
- checkDebugID(debugID);
- emitEvent('onBeforeUnmountComponent', debugID);
- markBegin(debugID, 'unmount');
- },
- onUnmountComponent: function (debugID) {
- checkDebugID(debugID);
- markEnd(debugID, 'unmount');
- emitEvent('onUnmountComponent', debugID);
- },
- onTestEvent: function () {
- emitEvent('onTestEvent');
+ var prefix = lowerCased.slice(0, 5);
+ return prefix === 'data-' || prefix === 'aria-';
+ case 'undefined':
+ case 'number':
+ case 'string':
+ return true;
+ case 'object':
+ return true;
+ default:
+ // function, symbol
+ return false;
}
- };
+ },
- ReactDebugTool$1.addHook(ReactInvalidSetStateWarningHook_1);
- ReactDebugTool$1.addHook(ReactComponentTreeHook);
- var url = ExecutionEnvironment.canUseDOM && window.location.href || '';
- if (/[?&]react_perf\b/.test(url)) {
- ReactDebugTool$1.beginProfiling();
- }
-}
+ getPropertyInfo: function (name) {
+ return DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
+ },
-var ReactDebugTool_1 = ReactDebugTool$1;
-// Trust the developer to only use ReactInstrumentation with a true check
+ /**
+ * Checks to see if a property name is within the list of properties
+ * reserved for internal React operations. These properties should
+ * not be set on an HTML element.
+ *
+ * @private
+ * @param {string} name
+ * @return {boolean} If the name is within reserved props
+ */
+ isReservedProp: function (name) {
+ return RESERVED_PROPS.hasOwnProperty(name.toLowerCase());
+ },
-var debugTool = null;
-{
- var ReactDebugTool = ReactDebugTool_1;
- debugTool = ReactDebugTool;
-}
+ injection: DOMPropertyInjection
+};
-var ReactInstrumentation = { debugTool: debugTool };
+var DOMProperty_1 = DOMProperty;
{
var warning$5 = require$$0;
@@ -3680,11 +3051,6 @@ var DOMPropertyOperations = {
{
var payload = {};
payload[name] = value;
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree_1.getInstanceFromNode(node)._debugID,
- type: 'update attribute',
- payload: payload
- });
}
},
@@ -3701,11 +3067,6 @@ var DOMPropertyOperations = {
{
var payload = {};
payload[name] = value;
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree_1.getInstanceFromNode(node)._debugID,
- type: 'update attribute',
- payload: payload
- });
}
},
@@ -3717,13 +3078,6 @@ var DOMPropertyOperations = {
*/
deleteValueForAttribute: function (node, name) {
node.removeAttribute(name);
- {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree_1.getInstanceFromNode(node)._debugID,
- type: 'remove attribute',
- payload: name
- });
- }
},
/**
@@ -3751,14 +3105,6 @@ var DOMPropertyOperations = {
} else {
node.removeAttribute(name);
}
-
- {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree_1.getInstanceFromNode(node)._debugID,
- type: 'remove attribute',
- payload: name
- });
- }
}
};
@@ -3769,7 +3115,7 @@ var ReactControlledValuePropTypes = {
};
{
- var warning$9 = require$$0;
+ var warning$7 = require$$0;
var emptyFunction$2 = emptyFunction;
var PropTypes = propTypes;
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
@@ -3817,7 +3163,7 @@ var ReactControlledValuePropTypes = {
// same error.
loggedTypeFailures[error.message] = true;
- warning$9(false, 'Failed form propType: %s%s', error.message, getStack());
+ warning$7(false, 'Failed form propType: %s%s', error.message, getStack());
}
}
};
@@ -3828,10 +3174,10 @@ var ReactControlledValuePropTypes_1 = ReactControlledValuePropTypes;
var getCurrentFiberOwnerName$3 = ReactDebugCurrentFiber_1.getCurrentFiberOwnerName;
{
- var _require2$3 = ReactDebugCurrentFiber_1,
- getCurrentFiberStackAddendum$2 = _require2$3.getCurrentFiberStackAddendum;
+ var _require2$2 = ReactDebugCurrentFiber_1,
+ getCurrentFiberStackAddendum$2 = _require2$2.getCurrentFiberStackAddendum;
- var warning$8 = require$$0;
+ var warning$6 = require$$0;
}
@@ -3894,11 +3240,11 @@ var ReactDOMInput = {
ReactControlledValuePropTypes_1.checkPropTypes('input', props, getCurrentFiberStackAddendum$2);
if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
- warning$8(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerName$3() || 'A component', props.type);
+ warning$6(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerName$3() || 'A component', props.type);
didWarnCheckedDefaultChecked = true;
}
if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
- warning$8(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerName$3() || 'A component', props.type);
+ warning$6(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerName$3() || 'A component', props.type);
didWarnValueDefaultValue = true;
}
}
@@ -3918,11 +3264,11 @@ var ReactDOMInput = {
var controlled = isControlled(props);
if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
- warning$8(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s', props.type, getCurrentFiberStackAddendum$2());
+ warning$6(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s', props.type, getCurrentFiberStackAddendum$2());
didWarnUncontrolledToControlled = true;
}
if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
- warning$8(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s', props.type, getCurrentFiberStackAddendum$2());
+ warning$6(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s', props.type, getCurrentFiberStackAddendum$2());
didWarnControlledToUncontrolled = true;
}
}
@@ -4068,7 +3414,7 @@ function updateNamedCousins(rootNode, props) {
var ReactDOMFiberInput = ReactDOMInput;
{
- var warning$10 = require$$0;
+ var warning$8 = require$$0;
}
function flattenChildren(children) {
@@ -4097,7 +3443,7 @@ var ReactDOMOption = {
validateProps: function (element, props) {
// TODO (yungsters): Remove support for `selected` in <option>.
{
- warning$10(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
+ warning$8(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
}
},
@@ -4127,10 +3473,10 @@ var getCurrentFiberOwnerName$4 = ReactDebugCurrentFiber_1.getCurrentFiberOwnerNa
{
var didWarnValueDefaultValue$1 = false;
- var warning$11 = require$$0;
+ var warning$9 = require$$0;
- var _require2$4 = ReactDebugCurrentFiber_1,
- getCurrentFiberStackAddendum$3 = _require2$4.getCurrentFiberStackAddendum;
+ var _require2$3 = ReactDebugCurrentFiber_1,
+ getCurrentFiberStackAddendum$3 = _require2$3.getCurrentFiberStackAddendum;
}
function getDeclarationErrorAddendum() {
@@ -4156,9 +3502,9 @@ function checkSelectPropTypes(props) {
}
var isArray = Array.isArray(props[propName]);
if (props.multiple && !isArray) {
- warning$11(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
+ warning$9(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
} else if (!props.multiple && isArray) {
- warning$11(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
+ warning$9(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
}
}
}
@@ -4231,7 +3577,7 @@ var ReactDOMSelect = {
{
if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
- warning$11(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
+ warning$9(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
didWarnValueDefaultValue$1 = true;
}
}
@@ -4284,7 +3630,7 @@ var ReactDOMSelect = {
var ReactDOMFiberSelect = ReactDOMSelect;
{
- var warning$12 = require$$0;
+ var warning$10 = require$$0;
var _require$4 = ReactDebugCurrentFiber_1,
getCurrentFiberStackAddendum$4 = _require$4.getCurrentFiberStackAddendum;
@@ -4331,7 +3677,7 @@ var ReactDOMTextarea = {
{
ReactControlledValuePropTypes_1.checkPropTypes('textarea', props, getCurrentFiberStackAddendum$4);
if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
- warning$12(false, 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
+ warning$10(false, 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
didWarnValDefaultVal = true;
}
}
@@ -4346,7 +3692,7 @@ var ReactDOMTextarea = {
var children = props.children;
if (children != null) {
{
- warning$12(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
+ warning$10(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
}
invariant(defaultValue == null, 'If you supply `defaultValue` on a <textarea>, do not pass children.');
if (Array.isArray(children)) {
@@ -4455,7 +3801,7 @@ var voidElementTags = Object.assign({
var voidElementTags_1 = voidElementTags;
{
- var warning$13 = require$$0;
+ var warning$11 = require$$0;
}
var HTML$1 = '__html';
@@ -4484,7 +3830,7 @@ function assertValidProps(tag, props, getCurrentOwnerName) {
invariant(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://fb.me/react-invariant-dangerously-set-inner-html ' + 'for more information.');
}
{
- warning$13(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
+ warning$11(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
}
invariant(props.style == null || typeof props.style === 'object', 'The `style` prop expects a mapping from style properties to values, ' + "not a string. For example, style={{marginRight: spacing + 'em'}} when " + 'using JSX.%s', getDeclarationErrorAddendum$1(getCurrentOwnerName));
}
@@ -4928,30 +4274,20 @@ var rARIA = new RegExp('^(aria)-[' + DOMProperty_1.ATTRIBUTE_NAME_CHAR + ']*$');
var rARIACamel = new RegExp('^(aria)[A-Z][' + DOMProperty_1.ATTRIBUTE_NAME_CHAR + ']*$');
{
- var warning$14 = require$$0;
+ var warning$12 = require$$0;
var _require$5 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$1 = _require$5.ReactComponentTreeHook,
ReactDebugCurrentFrame$1 = _require$5.ReactDebugCurrentFrame;
- var getStackAddendumByID = ReactComponentTreeHook$1.getStackAddendumByID;
-
-
var validAriaProperties = validAriaProperties$1;
}
-function getStackAddendum(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$1.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum() {
+ var stack = ReactDebugCurrentFrame$1.getStackAddendum();
+ return stack != null ? stack : '';
}
-function validateProperty(tagName, name, debugID) {
+function validateProperty(tagName, name) {
if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
return true;
}
@@ -4963,13 +4299,13 @@ function validateProperty(tagName, name, debugID) {
// If this is an aria-* attribute, but is not listed in the known DOM
// DOM properties, then it is an invalid aria-* attribute.
if (correctName == null) {
- warning$14(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s', name, getStackAddendum(debugID));
+ warning$12(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s', name, getStackAddendum());
warnedProperties[name] = true;
return true;
}
// aria-* attributes should be lowercase; suggest the lowercase version.
if (name !== correctName) {
- warning$14(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?%s', name, correctName, getStackAddendum(debugID));
+ warning$12(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?%s', name, correctName, getStackAddendum());
warnedProperties[name] = true;
return true;
}
@@ -4987,7 +4323,7 @@ function validateProperty(tagName, name, debugID) {
}
// aria-* attributes should be lowercase; suggest the lowercase version.
if (name !== standardName) {
- warning$14(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum(debugID));
+ warning$12(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum());
warnedProperties[name] = true;
return true;
}
@@ -4996,11 +4332,11 @@ function validateProperty(tagName, name, debugID) {
return true;
}
-function warnInvalidARIAProps(type, props, debugID) {
+function warnInvalidARIAProps(type, props) {
var invalidProps = [];
for (var key in props) {
- var isValid = validateProperty(type, key, debugID);
+ var isValid = validateProperty(type, key);
if (!isValid) {
invalidProps.push(key);
}
@@ -5011,85 +4347,52 @@ function warnInvalidARIAProps(type, props, debugID) {
}).join(', ');
if (invalidProps.length === 1) {
- warning$14(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum(debugID));
+ warning$12(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum());
} else if (invalidProps.length > 1) {
- warning$14(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum(debugID));
+ warning$12(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum());
}
}
-function validateProperties(type, props, debugID /* Stack only */) {
+function validateProperties(type, props) {
if (type.indexOf('-') >= 0 || props.is) {
return;
}
- warnInvalidARIAProps(type, props, debugID);
+ warnInvalidARIAProps(type, props);
}
var ReactDOMInvalidARIAHook$1 = {
- // Fiber
- validateProperties: validateProperties,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties
};
var ReactDOMInvalidARIAHook_1 = ReactDOMInvalidARIAHook$1;
{
- var warning$15 = require$$0;
+ var warning$13 = require$$0;
var _require$6 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$2 = _require$6.ReactComponentTreeHook,
ReactDebugCurrentFrame$2 = _require$6.ReactDebugCurrentFrame;
-
- var getStackAddendumByID$1 = ReactComponentTreeHook$2.getStackAddendumByID;
}
var didWarnValueNull = false;
-function getStackAddendum$1(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID$1(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$2.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$1() {
+ var stack = ReactDebugCurrentFrame$2.getStackAddendum();
+ return stack != null ? stack : '';
}
-function validateProperties$1(type, props, debugID /* Stack only */) {
+function validateProperties$1(type, props) {
if (type !== 'input' && type !== 'textarea' && type !== 'select') {
return;
}
if (props != null && props.value === null && !didWarnValueNull) {
- warning$15(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', type, getStackAddendum$1(debugID));
+ warning$13(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', type, getStackAddendum$1());
didWarnValueNull = true;
}
}
var ReactDOMNullInputValuePropHook$1 = {
- // Fiber
- validateProperties: validateProperties$1,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$1(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$1(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties$1
};
var ReactDOMNullInputValuePropHook_1 = ReactDOMNullInputValuePropHook$1;
@@ -5596,24 +4899,15 @@ var possibleStandardNames$1 = {
var possibleStandardNames_1 = possibleStandardNames$1;
{
- var warning$16 = require$$0;
+ var warning$14 = require$$0;
var _require$7 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$3 = _require$7.ReactComponentTreeHook,
ReactDebugCurrentFrame$3 = _require$7.ReactDebugCurrentFrame;
-
- var getStackAddendumByID$2 = ReactComponentTreeHook$3.getStackAddendumByID;
}
-function getStackAddendum$2(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID$2(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$3.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$2() {
+ var stack = ReactDebugCurrentFrame$3.getStackAddendum();
+ return stack != null ? stack : '';
}
{
@@ -5622,7 +4916,7 @@ function getStackAddendum$2(debugID) {
var ARIA_NAME_REGEX = /^aria-/i;
var possibleStandardNames = possibleStandardNames_1;
- var validateProperty$1 = function (tagName, name, value, debugID) {
+ var validateProperty$1 = function (tagName, name, value) {
if (warnedProperties$1.hasOwnProperty(name) && warnedProperties$1[name]) {
return true;
}
@@ -5641,7 +4935,7 @@ function getStackAddendum$2(debugID) {
var registrationName = EventPluginRegistry_1.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry_1.possibleRegistrationNames[lowerCasedName] : null;
if (registrationName != null) {
- warning$16(false, 'Unknown event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$2(debugID));
+ warning$14(false, 'Unknown event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$2());
warnedProperties$1[name] = true;
return true;
}
@@ -5652,19 +4946,19 @@ function getStackAddendum$2(debugID) {
}
if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
- warning$16(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
+ warning$14(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
warnedProperties$1[name] = true;
return true;
}
if (lowerCasedName === 'innerhtml') {
- warning$16(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
+ warning$14(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
warnedProperties$1[name] = true;
return true;
}
if (typeof value === 'number' && isNaN(value)) {
- warning$16(false, 'Received NaN for numeric attribute `%s`. If this is expected, cast ' + 'the value to a string.%s', name, getStackAddendum$2(debugID));
+ warning$14(false, 'Received NaN for numeric attribute `%s`. If this is expected, cast ' + 'the value to a string.%s', name, getStackAddendum$2());
warnedProperties$1[name] = true;
return true;
}
@@ -5673,7 +4967,7 @@ function getStackAddendum$2(debugID) {
if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
var standardName = possibleStandardNames[lowerCasedName];
if (standardName !== name) {
- warning$16(false, 'Invalid DOM property `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$2(debugID));
+ warning$14(false, 'Invalid DOM property `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$2());
warnedProperties$1[name] = true;
return true;
}
@@ -5695,15 +4989,15 @@ function getStackAddendum$2(debugID) {
};
}
-var warnUnknownProperties = function (type, props, debugID) {
+var warnUnknownProperties = function (type, props) {
var unknownProps = [];
for (var key in props) {
- var isValid = validateProperty$1(type, key, props[key], debugID);
+ var isValid = validateProperty$1(type, key, props[key]);
if (!isValid) {
unknownProps.push(key);
var value = props[key];
if (typeof value === 'object' && value !== null) {
- warning$16(false, 'The %s prop on <%s> is not a known property, and was given an object.' + 'Remove it, or it will appear in the ' + 'DOM after a future React update.%s', key, type, getStackAddendum$2(debugID));
+ warning$14(false, 'The %s prop on <%s> is not a known property, and was given an object.' + 'Remove it, or it will appear in the ' + 'DOM after a future React update.%s', key, type, getStackAddendum$2());
}
}
}
@@ -5713,33 +5007,21 @@ var warnUnknownProperties = function (type, props, debugID) {
}).join(', ');
if (unknownProps.length === 1) {
- warning$16(false, 'Invalid prop %s on <%s> tag. Either remove this prop from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$2(debugID));
+ warning$14(false, 'Invalid prop %s on <%s> tag. Either remove this prop from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$2());
} else if (unknownProps.length > 1) {
- warning$16(false, 'Invalid props %s on <%s> tag. Either remove these props from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$2(debugID));
+ warning$14(false, 'Invalid props %s on <%s> tag. Either remove these props from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$2());
}
};
-function validateProperties$2(type, props, debugID /* Stack only */) {
+function validateProperties$2(type, props) {
if (type.indexOf('-') >= 0 || props.is) {
return;
}
- warnUnknownProperties(type, props, debugID);
+ warnUnknownProperties(type, props);
}
var ReactDOMUnknownPropertyHook$1 = {
- // Fiber
- validateProperties: validateProperties$2,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$2(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$2(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties$2
};
var ReactDOMUnknownPropertyHook_1 = ReactDOMUnknownPropertyHook$1;
@@ -6623,10 +5905,10 @@ var ReactDOMFiberComponent_1 = ReactDOMFiberComponent;
{
- var warning$17 = require$$0;
+ var warning$15 = require$$0;
if (ExecutionEnvironment.canUseDOM && typeof requestAnimationFrame !== 'function') {
- warning$17(false, 'React depends on requestAnimationFrame. Make sure that you load a ' + 'polyfill in older browsers. http://fb.me/react-polyfills');
+ warning$15(false, 'React depends on requestAnimationFrame. Make sure that you load a ' + 'polyfill in older browsers. http://fb.me/react-polyfills');
}
}
@@ -6775,7 +6057,7 @@ var HostRoot$2 = ReactTypeOfWork.HostRoot;
{
- var warning$19 = require$$0;
+ var warning$17 = require$$0;
}
// Callbacks are not validated until invocation
@@ -6936,7 +6218,7 @@ function insertUpdate(fiber, update) {
{
if (queue1.isProcessing || queue2 !== null && queue2.isProcessing) {
- warning$19(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
+ warning$17(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
}
}
@@ -7192,7 +6474,7 @@ var ReactFiberUpdateQueue = {
};
{
- var warning$21 = require$$0;
+ var warning$19 = require$$0;
}
var valueStack = [];
@@ -7216,14 +6498,14 @@ var isEmpty = function () {
var pop$1 = function (cursor, fiber) {
if (index < 0) {
{
- warning$21(false, 'Unexpected pop.');
+ warning$19(false, 'Unexpected pop.');
}
return;
}
{
if (fiber !== fiberStack[index]) {
- warning$21(false, 'Unexpected Fiber popped.');
+ warning$19(false, 'Unexpected Fiber popped.');
}
}
@@ -7294,7 +6576,7 @@ var ReactDebugFiberPerf = null;
YieldComponent = _require$8.YieldComponent,
Fragment = _require$8.Fragment;
- var getComponentName$5 = getComponentName_1;
+ var getComponentName$4 = getComponentName_1;
// Prefix measurements so that it's possible to filter them.
// Longer prefixes are hard to read in DevTools.
@@ -7371,7 +6653,7 @@ var ReactDebugFiberPerf = null;
};
var beginFiberMark = function (fiber, phase) {
- var componentName = getComponentName$5(fiber) || 'Unknown';
+ var componentName = getComponentName$4(fiber) || 'Unknown';
var debugID = fiber._debugID;
var isMounted = fiber.alternate !== null;
var label = getFiberLabel(componentName, isMounted, phase);
@@ -7390,7 +6672,7 @@ var ReactDebugFiberPerf = null;
};
var clearFiberMark = function (fiber, phase) {
- var componentName = getComponentName$5(fiber) || 'Unknown';
+ var componentName = getComponentName$4(fiber) || 'Unknown';
var debugID = fiber._debugID;
var isMounted = fiber.alternate !== null;
var label = getFiberLabel(componentName, isMounted, phase);
@@ -7399,7 +6681,7 @@ var ReactDebugFiberPerf = null;
};
var endFiberMark = function (fiber, phase, warning) {
- var componentName = getComponentName$5(fiber) || 'Unknown';
+ var componentName = getComponentName$4(fiber) || 'Unknown';
var debugID = fiber._debugID;
var isMounted = fiber.alternate !== null;
var label = getFiberLabel(componentName, isMounted, phase);
@@ -7632,7 +6914,7 @@ var pop = ReactFiberStack.pop;
var push = ReactFiberStack.push;
{
- var warning$20 = require$$0;
+ var warning$18 = require$$0;
var checkPropTypes$1 = checkPropTypes;
var ReactDebugCurrentFiber$2 = ReactDebugCurrentFiber_1;
@@ -7751,7 +7033,7 @@ function processChildContext$1(fiber, parentContext, isReconciling) {
if (!warnedAboutMissingGetChildContext[componentName]) {
warnedAboutMissingGetChildContext[componentName] = true;
- warning$20(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
+ warning$18(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
}
}
return parentContext;
@@ -7904,7 +7186,7 @@ var NoEffect$1 = ReactTypeOfSideEffect.NoEffect;
{
- var getComponentName$6 = getComponentName_1;
+ var getComponentName$5 = getComponentName_1;
var hasBadMapPolyfill = false;
try {
var nonExtensibleObject = Object.preventExtensions({});
@@ -8104,7 +7386,7 @@ function createFiberFromElementType(type, key, internalContextTag, debugOwner) {
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
info += ' You likely forgot to export your component from the file ' + "it's defined in.";
}
- var ownerName = debugOwner ? getComponentName$6(debugOwner) : null;
+ var ownerName = debugOwner ? getComponentName$5(debugOwner) : null;
if (ownerName) {
info += '\n\nCheck the render method of `' + ownerName + '`.';
}
@@ -8405,7 +7687,7 @@ var ReactFeatureFlags$2 = require('ReactFeatureFlags');
var _require3$4 = ReactDebugCurrentFiber_1,
getCurrentFiberStackAddendum$5 = _require3$4.getCurrentFiberStackAddendum;
- var warning$24 = require$$0;
+ var warning$22 = require$$0;
var didWarnAboutMaps = false;
/**
* Warn if there's no key explicitly set on dynamic arrays of children or
@@ -8430,7 +7712,7 @@ var ReactFeatureFlags$2 = require('ReactFeatureFlags');
}
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
- warning$24(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.%s', getCurrentFiberStackAddendum$5());
+ warning$22(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.%s', getCurrentFiberStackAddendum$5());
};
}
@@ -8481,14 +7763,9 @@ function coerceRef(current, element) {
var owner = element._owner;
var inst = void 0;
if (owner) {
- if (typeof owner.tag === 'number') {
- var ownerFiber = owner;
- invariant(ownerFiber.tag === ClassComponent$7, 'Stateless function components cannot have refs.');
- inst = ownerFiber.stateNode;
- } else {
- // Stack
- inst = owner.getPublicInstance();
- }
+ var ownerFiber = owner;
+ invariant(ownerFiber.tag === ClassComponent$7, 'Stateless function components cannot have refs.');
+ inst = ownerFiber.stateNode;
}
invariant(inst, 'Missing owner for string ref %s. This error is likely caused by a ' + 'bug in React. Please file an issue.', mixedRef);
var stringRef = '' + mixedRef;
@@ -8525,7 +7802,7 @@ function throwOnInvalidObjectType(returnFiber, newChild) {
}
function warnOnFunctionType() {
- warning$24(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.%s', getCurrentFiberStackAddendum$5() || '');
+ warning$22(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.%s', getCurrentFiberStackAddendum$5() || '');
}
// This wrapper function exists because I expect to clone the code in each path
@@ -8969,7 +8246,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
knownKeys.add(key);
break;
}
- warning$24(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());
+ warning$22(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());
break;
default:
break;
@@ -9129,7 +8406,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
if (typeof newChildrenIterable.entries === 'function') {
var possibleMap = newChildrenIterable;
if (possibleMap.entries === iteratorFn) {
- warning$24(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', getCurrentFiberStackAddendum$5());
+ warning$22(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', getCurrentFiberStackAddendum$5());
didWarnAboutMaps = true;
}
}
@@ -9587,9 +8864,9 @@ var isArray$1 = Array.isArray;
startPhaseTimer$1 = _require7$1.startPhaseTimer,
stopPhaseTimer$1 = _require7$1.stopPhaseTimer;
- var warning$25 = require$$0;
+ var warning$23 = require$$0;
var warnOnInvalidCallback = function (callback, callerName) {
- warning$25(callback === null || typeof callback === 'function', '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
+ warning$23(callback === null || typeof callback === 'function', '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
};
// This is so gross but it's at least non-critical and can be removed if
@@ -9660,7 +8937,7 @@ var ReactFiberClassComponent = function (scheduleUpdate, getPriorityContext, mem
}
{
- warning$25(shouldUpdate !== undefined, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName_1(workInProgress) || 'Unknown');
+ warning$23(shouldUpdate !== undefined, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName_1(workInProgress) || 'Unknown');
}
return shouldUpdate;
@@ -9679,28 +8956,28 @@ var ReactFiberClassComponent = function (scheduleUpdate, getPriorityContext, mem
{
var name = getComponentName_1(workInProgress);
var renderPresent = instance.render;
- warning$25(renderPresent, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
+ warning$23(renderPresent, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
- warning$25(noGetInitialStateOnES6, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
+ warning$23(noGetInitialStateOnES6, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
- warning$25(noGetDefaultPropsOnES6, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
+ warning$23(noGetDefaultPropsOnES6, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
var noInstancePropTypes = !instance.propTypes;
- warning$25(noInstancePropTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
+ warning$23(noInstancePropTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
var noInstanceContextTypes = !instance.contextTypes;
- warning$25(noInstanceContextTypes, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
+ warning$23(noInstanceContextTypes, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
- warning$25(noComponentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
+ warning$23(noComponentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
if (type.prototype && type.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
- warning$25(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName_1(workInProgress) || 'A pure component');
+ warning$23(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName_1(workInProgress) || 'A pure component');
}
var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
- warning$25(noComponentDidUnmount, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
+ warning$23(noComponentDidUnmount, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
- warning$25(noComponentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
+ warning$23(noComponentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
var hasMutatedProps = instance.props !== workInProgress.pendingProps;
- warning$25(instance.props === undefined || !hasMutatedProps, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
+ warning$23(instance.props === undefined || !hasMutatedProps, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
var noInstanceDefaultProps = !instance.defaultProps;
- warning$25(noInstanceDefaultProps, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
+ warning$23(noInstanceDefaultProps, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
}
var state = instance.state;
@@ -9756,7 +9033,7 @@ var ReactFiberClassComponent = function (scheduleUpdate, getPriorityContext, mem
if (oldState !== instance.state) {
{
- warning$25(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName_1(workInProgress));
+ warning$23(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName_1(workInProgress));
}
updater.enqueueReplaceState(instance, instance.state, null);
}
@@ -9774,7 +9051,7 @@ var ReactFiberClassComponent = function (scheduleUpdate, getPriorityContext, mem
if (instance.state !== oldState) {
{
- warning$25(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName_1(workInProgress));
+ warning$23(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName_1(workInProgress));
}
updater.enqueueReplaceState(instance, instance.state, null);
}
@@ -10057,7 +9334,7 @@ var Ref$1 = ReactTypeOfSideEffect.Ref;
-var ReactCurrentOwner$2 = ReactGlobalSharedState_1.ReactCurrentOwner;
+var ReactCurrentOwner$3 = ReactGlobalSharedState_1.ReactCurrentOwner;
@@ -10067,7 +9344,7 @@ var ReactCurrentOwner$2 = ReactGlobalSharedState_1.ReactCurrentOwner;
var _require7 = ReactDebugFiberPerf_1,
cancelWorkTimer = _require7.cancelWorkTimer;
- var warning$23 = require$$0;
+ var warning$21 = require$$0;
var warnedAboutStatelessRefs = {};
}
@@ -10165,7 +9442,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
var nextChildren;
{
- ReactCurrentOwner$2.current = workInProgress;
+ ReactCurrentOwner$3.current = workInProgress;
ReactDebugCurrentFiber$4.setCurrentFiber(workInProgress, 'render');
nextChildren = fn(nextProps, context);
ReactDebugCurrentFiber$4.setCurrentFiber(workInProgress, null);
@@ -10217,7 +9494,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
var instance = workInProgress.stateNode;
// Rerender
- ReactCurrentOwner$2.current = workInProgress;
+ ReactCurrentOwner$3.current = workInProgress;
var nextChildren = void 0;
{
ReactDebugCurrentFiber$4.setCurrentFiber(workInProgress, 'render');
@@ -10369,7 +9646,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
var value;
{
- ReactCurrentOwner$2.current = workInProgress;
+ ReactCurrentOwner$3.current = workInProgress;
value = fn(props, context);
}
// React DevTools reads this flag.
@@ -10393,7 +9670,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
var Component = workInProgress.type;
if (Component) {
- warning$23(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component');
+ warning$21(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component');
}
if (workInProgress.ref !== null) {
var info = '';
@@ -10409,7 +9686,7 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
}
if (!warnedAboutStatelessRefs[warningKey]) {
warnedAboutStatelessRefs[warningKey] = true;
- warning$23(false, 'Stateless function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s%s', info, ReactDebugCurrentFiber$4.getCurrentFiberStackAddendum());
+ warning$21(false, 'Stateless function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s%s', info, ReactDebugCurrentFiber$4.getCurrentFiberStackAddendum());
}
}
}
@@ -10962,7 +10239,7 @@ var ReactFiberCompleteWork = function (config, hostContext, hydrationContext) {
};
{
- var warning$26 = require$$0;
+ var warning$24 = require$$0;
}
var onCommitFiberRoot = null;
@@ -10976,7 +10253,7 @@ function catchErrors(fn) {
} catch (err) {
if (true && !hasLoggedError) {
hasLoggedError = true;
- warning$26(false, 'React DevTools encountered an error: %s', err);
+ warning$24(false, 'React DevTools encountered an error: %s', err);
}
}
};
@@ -10990,7 +10267,7 @@ function injectInternals$1(internals) {
var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!hook.supportsFiber) {
{
- warning$26(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
+ warning$24(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
}
// DevTools exists, even though it doesn't support Fiber.
return true;
@@ -11007,7 +10284,7 @@ function injectInternals$1(internals) {
} catch (err) {
// Catch all errors because it is unsafe to throw during initialization.
{
- warning$26(false, 'React DevTools encountered an error: %s.', err);
+ warning$24(false, 'React DevTools encountered an error: %s.', err);
}
}
// DevTools exists
@@ -11951,7 +11228,7 @@ var clearCaughtError = ReactErrorUtils_1.clearCaughtError;
-var ReactCurrentOwner$1 = ReactGlobalSharedState_1.ReactCurrentOwner;
+var ReactCurrentOwner$2 = ReactGlobalSharedState_1.ReactCurrentOwner;
@@ -11992,7 +11269,7 @@ var resetContext$1 = _require14.resetContext;
{
- var warning$22 = require$$0;
+ var warning$20 = require$$0;
var ReactFiberInstrumentation$1 = ReactFiberInstrumentation_1;
var ReactDebugCurrentFiber$3 = ReactDebugCurrentFiber_1;
@@ -12013,16 +11290,16 @@ var resetContext$1 = _require14.resetContext;
var warnAboutUpdateOnUnmounted = function (instance) {
var ctor = instance.constructor;
- warning$22(false, 'Can only update a mounted or mounting component. This usually means ' + 'you called setState, replaceState, or forceUpdate on an unmounted ' + 'component. This is a no-op.\n\nPlease check the code for the ' + '%s component.', ctor && (ctor.displayName || ctor.name) || 'ReactClass');
+ warning$20(false, 'Can only update a mounted or mounting component. This usually means ' + 'you called setState, replaceState, or forceUpdate on an unmounted ' + 'component. This is a no-op.\n\nPlease check the code for the ' + '%s component.', ctor && (ctor.displayName || ctor.name) || 'ReactClass');
};
var warnAboutInvalidUpdates = function (instance) {
switch (ReactDebugCurrentFiber$3.phase) {
case 'getChildContext':
- warning$22(false, 'setState(...): Cannot call setState() inside getChildContext()');
+ warning$20(false, 'setState(...): Cannot call setState() inside getChildContext()');
break;
case 'render':
- warning$22(false, 'Cannot update during an existing state transition (such as within ' + "`render` or another component's constructor). Render methods should " + 'be a pure function of props and state; constructor side-effects are ' + 'an anti-pattern, but can be moved to `componentWillMount`.');
+ warning$20(false, 'Cannot update during an existing state transition (such as within ' + "`render` or another component's constructor). Render methods should " + 'be a pure function of props and state; constructor side-effects are ' + 'an anti-pattern, but can be moved to `componentWillMount`.');
break;
}
};
@@ -12305,7 +11582,7 @@ var ReactFiberScheduler = function (config) {
}
// Reset this to null before calling lifecycles
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
var firstEffect = void 0;
if (finishedWork.effectTag > PerformedWork) {
@@ -12544,7 +11821,7 @@ var ReactFiberScheduler = function (config) {
next = completeUnitOfWork(workInProgress);
}
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
{
ReactDebugCurrentFiber$3.resetCurrentFiber();
}
@@ -12573,7 +11850,7 @@ var ReactFiberScheduler = function (config) {
next = completeUnitOfWork(workInProgress);
}
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
{
ReactDebugCurrentFiber$3.resetCurrentFiber();
}
@@ -12846,7 +12123,7 @@ var ReactFiberScheduler = function (config) {
// Returns the boundary that captured the error, or null if the error is ignored
function captureError(failedWork, error) {
// It is no longer valid because we exited the user code.
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
{
ReactDebugCurrentFiber$3.resetCurrentFiber();
}
@@ -13270,46 +12547,6 @@ var ReactFiberScheduler = function (config) {
};
};
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule getContextForSubtree
- *
- */
-
-
-
-
-
-
-var getContextFiber = function (arg) {
- invariant(false, 'Missing injection for fiber getContextForSubtree');
-};
-
-function getContextForSubtree(parentComponent) {
- if (!parentComponent) {
- return emptyObject;
- }
-
- var instance = ReactInstanceMap_1.get(parentComponent);
- if (typeof instance.tag === 'number') {
- return getContextFiber(instance);
- } else {
- return instance._processChildContext(instance._context);
- }
-}
-
-getContextForSubtree._injectFiber = function (fn) {
- getContextFiber = fn;
-};
-
-var getContextForSubtree_1 = getContextForSubtree;
-
var ReactFeatureFlags$1 = require('ReactFeatureFlags');
var addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate;
@@ -13322,24 +12559,30 @@ var createFiberRoot = ReactFiberRoot.createFiberRoot;
+
var HostComponent$3 = ReactTypeOfWork.HostComponent;
+
+
{
- var warning$18 = require$$0;
+ var warning$16 = require$$0;
var ReactFiberInstrumentation = ReactFiberInstrumentation_1;
var ReactDebugCurrentFiber$1 = ReactDebugCurrentFiber_1;
- var getComponentName$4 = getComponentName_1;
+ var getComponentName$3 = getComponentName_1;
}
var findCurrentHostFiber$1 = ReactFiberTreeReflection.findCurrentHostFiber;
var findCurrentHostFiberWithNoPortals$1 = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
+function getContextForSubtree(parentComponent) {
+ if (!parentComponent) {
+ return emptyObject;
+ }
-
-getContextForSubtree_1._injectFiber(function (fiber) {
+ var fiber = ReactInstanceMap_1.get(parentComponent);
var parentContext = findCurrentUnmaskedContext(fiber);
return isContextProvider(fiber) ? processChildContext(fiber, parentContext, false) : parentContext;
-});
+}
var ReactFiberReconciler = function (config) {
var getPublicInstance = config.getPublicInstance;
@@ -13356,7 +12599,7 @@ var ReactFiberReconciler = function (config) {
function scheduleTopLevelUpdate(current, element, callback) {
{
if (ReactDebugCurrentFiber$1.phase === 'render' && ReactDebugCurrentFiber$1.current !== null) {
- warning$18(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName$4(ReactDebugCurrentFiber$1.current) || 'Unknown');
+ warning$16(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName$3(ReactDebugCurrentFiber$1.current) || 'Unknown');
}
}
@@ -13368,7 +12611,7 @@ var ReactFiberReconciler = function (config) {
var nextState = { element: element };
callback = callback === undefined ? null : callback;
{
- warning$18(callback === null || typeof callback === 'function', 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
+ warning$16(callback === null || typeof callback === 'function', 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
}
addTopLevelUpdate(current, nextState, callback, priorityLevel);
scheduleUpdate(current, priorityLevel);
@@ -13394,7 +12637,7 @@ var ReactFiberReconciler = function (config) {
}
}
- var context = getContextForSubtree_1(parentComponent);
+ var context = getContextForSubtree(parentComponent);
if (container.context === null) {
container.context = context;
} else {
@@ -13662,7 +12905,7 @@ var ReactDOMSelection = {
var ReactDOMSelection_1 = ReactDOMSelection;
-var ELEMENT_NODE$2 = HTMLNodeType_1.ELEMENT_NODE;
+var ELEMENT_NODE$1 = HTMLNodeType_1.ELEMENT_NODE;
@@ -13710,7 +12953,7 @@ var ReactInputSelection = {
var ancestors = [];
var ancestor = priorFocusedElem;
while (ancestor = ancestor.parentNode) {
- if (ancestor.nodeType === ELEMENT_NODE$2) {
+ if (ancestor.nodeType === ELEMENT_NODE$1) {
ancestors.push({
element: ancestor,
left: ancestor.scrollLeft,
@@ -13789,88 +13032,10 @@ var ReactInputSelection_1 = ReactInputSelection;
var ReactVersion = '16.0.0-beta.5';
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule findDOMNode
- *
- */
-
-
-
-var ELEMENT_NODE$3 = HTMLNodeType_1.ELEMENT_NODE;
-
-var ReactCurrentOwner$3 = ReactGlobalSharedState_1.ReactCurrentOwner;
-
-
-
-
-{
- var warning$27 = require$$0;
-}
-
-var findFiber = function (arg) {
- invariant(false, 'Missing injection for fiber findDOMNode');
-};
-var findStack = function (arg) {
- invariant(false, 'Missing injection for stack findDOMNode');
-};
-
-var findDOMNode = function (componentOrElement) {
- {
- var owner = ReactCurrentOwner$3.current;
- if (owner !== null) {
- var isFiber = typeof owner.tag === 'number';
- var warnedAboutRefsInRender = isFiber ? owner.stateNode._warnedAboutRefsInRender : owner._warnedAboutRefsInRender;
- warning$27(warnedAboutRefsInRender, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName_1(owner) || 'A component');
- if (isFiber) {
- owner.stateNode._warnedAboutRefsInRender = true;
- } else {
- owner._warnedAboutRefsInRender = true;
- }
- }
- }
- if (componentOrElement == null) {
- return null;
- }
- if (componentOrElement.nodeType === ELEMENT_NODE$3) {
- return componentOrElement;
- }
-
- var inst = ReactInstanceMap_1.get(componentOrElement);
- if (inst) {
- if (typeof inst.tag === 'number') {
- return findFiber(inst);
- } else {
- return findStack(inst);
- }
- }
-
- if (typeof componentOrElement.render === 'function') {
- invariant(false, 'Unable to find node on an unmounted component.');
- } else {
- invariant(false, 'Element appears to be neither ReactComponent nor DOMNode. Keys: %s', Object.keys(componentOrElement));
- }
-};
-
-findDOMNode._injectFiber = function (fn) {
- findFiber = fn;
-};
-findDOMNode._injectStack = function (fn) {
- findStack = fn;
-};
-
-var findDOMNode_1 = findDOMNode;
-
var validateDOMNesting$1 = emptyFunction;
{
- var warning$28 = require$$0;
+ var warning$25 = require$$0;
var _require$13 = ReactDebugCurrentFiber_1,
getCurrentFiberStackAddendum$6 = _require$13.getCurrentFiberStackAddendum;
@@ -14115,68 +13280,15 @@ var validateDOMNesting$1 = emptyFunction;
return null;
};
- /**
- * Given a ReactCompositeComponent instance, return a list of its recursive
- * owners, starting at the root and ending with the instance itself.
- */
- var findOwnerStack = function (instance) {
- if (!instance) {
- return [];
- }
-
- var stack = [];
- do {
- stack.push(instance);
- } while (instance = instance._currentElement._owner);
- stack.reverse();
- return stack;
- };
-
- var getOwnerInfo = function (childInstance, childTag, ancestorInstance, ancestorTag, isParent) {
- var childOwner = childInstance && childInstance._currentElement._owner;
- var ancestorOwner = ancestorInstance && ancestorInstance._currentElement._owner;
-
- var childOwners = findOwnerStack(childOwner);
- var ancestorOwners = findOwnerStack(ancestorOwner);
-
- var minStackLen = Math.min(childOwners.length, ancestorOwners.length);
- var i;
-
- var deepestCommon = -1;
- for (i = 0; i < minStackLen; i++) {
- if (childOwners[i] === ancestorOwners[i]) {
- deepestCommon = i;
- } else {
- break;
- }
- }
-
- var UNKNOWN = '(unknown)';
- var childOwnerNames = childOwners.slice(deepestCommon + 1).map(function (inst) {
- return getComponentName_1(inst) || UNKNOWN;
- });
- var ancestorOwnerNames = ancestorOwners.slice(deepestCommon + 1).map(function (inst) {
- return getComponentName_1(inst) || UNKNOWN;
- });
- var ownerInfo = [].concat(
- // If the parent and child instances have a common owner ancestor, start
- // with that -- otherwise we just start with the parent's owners.
- deepestCommon !== -1 ? getComponentName_1(childOwners[deepestCommon]) || UNKNOWN : [], ancestorOwnerNames, ancestorTag,
- // If we're warning about an invalid (non-parent) ancestry, add '...'
- isParent ? [] : ['...'], childOwnerNames, childTag).join(' > ');
-
- return ownerInfo;
- };
-
var didWarn = {};
- validateDOMNesting$1 = function (childTag, childText, childInstance, ancestorInfo) {
+ validateDOMNesting$1 = function (childTag, childText, ancestorInfo) {
ancestorInfo = ancestorInfo || emptyAncestorInfo;
var parentInfo = ancestorInfo.current;
var parentTag = parentInfo && parentInfo.tag;
if (childText != null) {
- warning$28(childTag == null, 'validateDOMNesting: when childText is passed, childTag should be null');
+ warning$25(childTag == null, 'validateDOMNesting: when childText is passed, childTag should be null');
childTag = '#text';
}
@@ -14187,15 +13299,8 @@ var validateDOMNesting$1 = emptyFunction;
return;
}
- var ancestorInstance = invalidParentOrAncestor.instance;
var ancestorTag = invalidParentOrAncestor.tag;
- var addendum;
-
- if (childInstance != null) {
- addendum = ' See ' + getOwnerInfo(childInstance, childTag, ancestorInstance, ancestorTag, !!invalidParent) + '.';
- } else {
- addendum = getCurrentFiberStackAddendum$6();
- }
+ var addendum = getCurrentFiberStackAddendum$6();
var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
if (didWarn[warnKey]) {
@@ -14221,9 +13326,9 @@ var validateDOMNesting$1 = emptyFunction;
if (ancestorTag === 'table' && childTag === 'tr') {
info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
}
- warning$28(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
+ warning$25(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
} else {
- warning$28(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
+ warning$25(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
}
};
@@ -14243,21 +13348,16 @@ var validateDOMNesting_1 = validateDOMNesting$1;
var HostComponent$11 = ReactTypeOfWork.HostComponent;
function getParent(inst) {
- if (inst._hostParent !== undefined) {
- return inst._hostParent;
- }
- if (typeof inst.tag === 'number') {
- do {
- inst = inst['return'];
- // TODO: If this is a HostRoot we might want to bail out.
- // That is depending on if we want nested subtrees (layers) to bubble
- // events to their parent. We could also go through parentNode on the
- // host node but that wouldn't work for React Native and doesn't let us
- // do the portal feature.
- } while (inst && inst.tag !== HostComponent$11);
- if (inst) {
- return inst;
- }
+ do {
+ inst = inst['return'];
+ // TODO: If this is a HostRoot we might want to bail out.
+ // That is depending on if we want nested subtrees (layers) to bubble
+ // events to their parent. We could also go through parentNode on the
+ // host node but that wouldn't work for React Native and doesn't let us
+ // do the portal feature.
+ } while (inst && inst.tag !== HostComponent$11);
+ if (inst) {
+ return inst;
}
return null;
}
@@ -14377,7 +13477,7 @@ var ReactTreeTraversal = {
var getListener = EventPluginHub_1.getListener;
{
- var warning$29 = require$$0;
+ var warning$26 = require$$0;
}
/**
@@ -14397,7 +13497,7 @@ function listenerAtPhase(inst, event, propagationPhase) {
*/
function accumulateDirectionalDispatches(inst, phase, event) {
{
- warning$29(inst, 'Dispatching inst must not be null');
+ warning$26(inst, 'Dispatching inst must not be null');
}
var listener = listenerAtPhase(inst, event, phase);
if (listener) {
@@ -14565,7 +13665,7 @@ var isProxySupported = typeof Proxy === 'function';
var EVENT_POOL_SIZE = 10;
{
- var warning$30 = require$$0;
+ var warning$27 = require$$0;
}
var shouldBeReleasedProperties = ['dispatchConfig', '_targetInst', 'nativeEvent', 'isDefaultPrevented', 'isPropagationStopped', '_dispatchListeners', '_dispatchInstances'];
@@ -14761,7 +13861,7 @@ SyntheticEvent.augmentClass = function (Class, Interface) {
return new Proxy(constructor.apply(that, args), {
set: function (target, prop, value) {
if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
- warning$30(didWarnForAddedNewProperty || target.isPersistent(), "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.');
+ warning$27(didWarnForAddedNewProperty || target.isPersistent(), "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.');
didWarnForAddedNewProperty = true;
}
target[prop] = value;
@@ -14808,7 +13908,7 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
function warn(action, result) {
var warningCondition = false;
- warning$30(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result);
+ warning$27(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result);
}
}
@@ -16709,6 +15809,8 @@ var ReactDOMFeatureFlags = require('ReactDOMFeatureFlags');
+var ReactCurrentOwner = ReactGlobalSharedState_1.ReactCurrentOwner;
+
var isValidElement = React.isValidElement;
var injectInternals = ReactFiberDevToolsHook.injectInternals;
@@ -16754,9 +15856,6 @@ var updateFiberProps = ReactDOMComponentTree_1.updateFiberProps;
ReactControlledComponent_1.injection.injectFiberControlledHostComponent(ReactDOMFiberComponent_1);
-findDOMNode_1._injectFiber(function (fiber) {
- return DOMRenderer.findHostInstance(fiber);
-});
var eventsEnabled = null;
var selectionInformation = null;
@@ -16850,11 +15949,11 @@ var DOMRenderer = ReactFiberReconciler({
{
// TODO: take namespace into account when validating.
var hostContextDev = hostContext;
- validateDOMNesting(type, null, null, hostContextDev.ancestorInfo);
+ validateDOMNesting(type, null, hostContextDev.ancestorInfo);
if (typeof props.children === 'string' || typeof props.children === 'number') {
var string = '' + props.children;
var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type, null);
- validateDOMNesting(null, string, null, ownAncestorInfo);
+ validateDOMNesting(null, string, ownAncestorInfo);
}
parentNamespace = hostContextDev.namespace;
}
@@ -16876,7 +15975,7 @@ var DOMRenderer = ReactFiberReconciler({
if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
var string = '' + newProps.children;
var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type, null);
- validateDOMNesting(null, string, null, ownAncestorInfo);
+ validateDOMNesting(null, string, ownAncestorInfo);
}
}
return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
@@ -16903,7 +16002,7 @@ var DOMRenderer = ReactFiberReconciler({
createTextInstance: function (text, rootContainerInstance, hostContext, internalInstanceHandle) {
{
var hostContextDev = hostContext;
- validateDOMNesting(null, text, null, hostContextDev.ancestorInfo);
+ validateDOMNesting(null, text, hostContextDev.ancestorInfo);
}
var textNode = document.createTextNode(text);
precacheFiberNode(internalInstanceHandle, textNode);
@@ -17059,6 +16158,33 @@ function renderSubtreeIntoContainer(parentComponent, children, container, forceH
}
var ReactDOMFiber = {
+ findDOMNode: function (componentOrElement) {
+ {
+ var owner = ReactCurrentOwner.current;
+ if (owner !== null) {
+ var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
+ warning(warnedAboutRefsInRender, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName_1(owner) || 'A component');
+ owner.stateNode._warnedAboutRefsInRender = true;
+ }
+ }
+ if (componentOrElement == null) {
+ return null;
+ }
+ if (componentOrElement.nodeType === ELEMENT_NODE) {
+ return componentOrElement;
+ }
+
+ var inst = ReactInstanceMap_1.get(componentOrElement);
+ if (inst) {
+ return DOMRenderer.findHostInstance(inst);
+ }
+
+ if (typeof componentOrElement.render === 'function') {
+ invariant(false, 'Unable to find node on an unmounted component.');
+ } else {
+ invariant(false, 'Element appears to be neither ReactComponent nor DOMNode. Keys: %s', Object.keys(componentOrElement));
+ }
+ },
hydrate: function (element, container, callback) {
// TODO: throw or warn if we couldn't hydrate?
return renderSubtreeIntoContainer(null, element, container, true, callback);
@@ -17120,10 +16246,6 @@ var ReactDOMFiber = {
return false;
}
},
-
-
- findDOMNode: findDOMNode_1,
-
unstable_createPortal: function (children, container) {
var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
diff --git a/facebook-www/ReactDOMFiber-prod.js b/facebook-www/ReactDOMFiber-prod.js
index 251bb85..b3d22fb 100644
--- a/facebook-www/ReactDOMFiber-prod.js
+++ b/facebook-www/ReactDOMFiber-prod.js
@@ -182,163 +182,7 @@ var EventPluginRegistry = {
}
isOrderingDirty && recomputePluginOrdering();
}
-}, EventPluginRegistry_1 = EventPluginRegistry, RESERVED_PROPS = {
- children: !0,
- dangerouslysetinnerhtml: !0,
- autofocus: !0,
- defaultvalue: !0,
- defaultchecked: !0,
- innerhtml: !0,
- suppresscontenteditablewarning: !0,
- onfocusin: !0,
- onfocusout: !0,
- style: !0
-};
-
-function checkMask(value, bitmask) {
- return (value & bitmask) === bitmask;
-}
-
-var DOMPropertyInjection = {
- /**
- * Mapping from normalized, camelcased property names to a configuration that
- * specifies how the associated DOM property should be accessed or rendered.
- */
- MUST_USE_PROPERTY: 1,
- HAS_BOOLEAN_VALUE: 4,
- HAS_NUMERIC_VALUE: 8,
- HAS_POSITIVE_NUMERIC_VALUE: 16 | 8,
- HAS_OVERLOADED_BOOLEAN_VALUE: 32,
- /**
- * Inject some specialized knowledge about the DOM. This takes a config object
- * with the following properties:
- *
- * Properties: object mapping DOM property name to one of the
- * DOMPropertyInjection constants or null. If your attribute isn't in here,
- * it won't get written to the DOM.
- *
- * DOMAttributeNames: object mapping React attribute name to the DOM
- * attribute name. Attribute names not specified use the **lowercase**
- * normalized name.
- *
- * DOMAttributeNamespaces: object mapping React attribute name to the DOM
- * attribute namespace URL. (Attribute names not specified use no namespace.)
- *
- * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
- * Property names not specified use the normalized name.
- *
- * DOMMutationMethods: Properties that require special mutation methods. If
- * `value` is undefined, the mutation method should unset the property.
- *
- * @param {object} domPropertyConfig the config as described above.
- */
- injectDOMPropertyConfig: function(domPropertyConfig) {
- var Injection = DOMPropertyInjection, Properties = domPropertyConfig.Properties || {}, DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {}, DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {}, DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
- for (var propName in Properties) {
- invariant(!DOMProperty.properties.hasOwnProperty(propName), "injectDOMPropertyConfig(...): You're trying to inject DOM property " + "'%s' which has already been injected. You may be accidentally " + "injecting the same DOM property config twice, or you may be " + "injecting two configs that have conflicting property names.", propName);
- var lowerCased = propName.toLowerCase(), propConfig = Properties[propName], propertyInfo = {
- attributeName: lowerCased,
- attributeNamespace: null,
- propertyName: propName,
- mutationMethod: null,
- mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
- hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
- hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
- hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
- hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
- };
- if (invariant(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1, "DOMProperty: Value can be one of boolean, overloaded boolean, or " + "numeric value, but not a combination: %s", propName),
- DOMAttributeNames.hasOwnProperty(propName)) {
- var attributeName = DOMAttributeNames[propName];
- propertyInfo.attributeName = attributeName;
- }
- DOMAttributeNamespaces.hasOwnProperty(propName) && (propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName]),
- DOMMutationMethods.hasOwnProperty(propName) && (propertyInfo.mutationMethod = DOMMutationMethods[propName]),
- // Downcase references to whitelist properties to check for membership
- // without case-sensitivity. This allows the whitelist to pick up
- // `allowfullscreen`, which should be written using the property configuration
- // for `allowFullscreen`
- DOMProperty.properties[propName] = propertyInfo;
- }
- }
-}, 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", DOMProperty = {
- ID_ATTRIBUTE_NAME: "data-reactid",
- ROOT_ATTRIBUTE_NAME: "data-reactroot",
- ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
- ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",
- /**
- * Map from property "standard name" to an object with info about how to set
- * the property in the DOM. Each object contains:
- *
- * attributeName:
- * Used when rendering markup or with `*Attribute()`.
- * attributeNamespace
- * propertyName:
- * Used on DOM node instances. (This includes properties that mutate due to
- * external factors.)
- * mutationMethod:
- * If non-null, used instead of the property or `setAttribute()` after
- * initial render.
- * mustUseProperty:
- * Whether the property must be accessed and mutated as an object property.
- * hasBooleanValue:
- * Whether the property should be removed when set to a falsey value.
- * hasNumericValue:
- * Whether the property must be numeric or parse as a numeric and should be
- * removed when set to a falsey value.
- * hasPositiveNumericValue:
- * Whether the property must be positive numeric or parse as a positive
- * numeric and should be removed when set to a falsey value.
- * hasOverloadedBooleanValue:
- * Whether the property can be used as a flag as well as with a value.
- * Removed when strictly equal to false; present without a value when
- * strictly equal to true; present with a value otherwise.
- */
- properties: {},
- /**
- * Checks whether a property name is a writeable attribute.
- * @method
- */
- shouldSetAttribute: function(name, value) {
- if (DOMProperty.isReservedProp(name)) return !1;
- if (null === value) return !0;
- var lowerCased = name.toLowerCase(), propertyInfo = DOMProperty.properties[name];
- switch (typeof value) {
- case "boolean":
- if (propertyInfo) return !0;
- var prefix = lowerCased.slice(0, 5);
- return "data-" === prefix || "aria-" === prefix;
-
- case "undefined":
- case "number":
- case "string":
- case "object":
- return !0;
-
- default:
- // function, symbol
- return !1;
- }
- },
- getPropertyInfo: function(name) {
- return DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
- },
- /**
- * Checks to see if a property name is within the list of properties
- * reserved for internal React operations. These properties should
- * not be set on an HTML element.
- *
- * @private
- * @param {string} name
- * @return {boolean} If the name is within reserved props
- */
- isReservedProp: function(name) {
- return RESERVED_PROPS.hasOwnProperty(name.toLowerCase());
- },
- injection: DOMPropertyInjection
-}, DOMProperty_1 = DOMProperty, ReactDOMComponentFlags = {
- hasCachedChildNodes: 1 << 0
-}, ReactDOMComponentFlags_1 = ReactDOMComponentFlags, ReactTypeOfWork = {
+}, EventPluginRegistry_1 = EventPluginRegistry, ReactTypeOfWork = {
IndeterminateComponent: 0,
// Before we know whether it is functional or class
FunctionalComponent: 1,
@@ -353,84 +197,12 @@ var DOMPropertyInjection = {
CoroutineHandlerPhase: 8,
YieldComponent: 9,
Fragment: 10
-}, HTMLNodeType = {
- ELEMENT_NODE: 1,
- TEXT_NODE: 3,
- COMMENT_NODE: 8,
- DOCUMENT_NODE: 9,
- DOCUMENT_FRAGMENT_NODE: 11
-}, HTMLNodeType_1 = HTMLNodeType, HostComponent = ReactTypeOfWork.HostComponent, HostText = ReactTypeOfWork.HostText, ELEMENT_NODE$1 = HTMLNodeType_1.ELEMENT_NODE, COMMENT_NODE$1 = HTMLNodeType_1.COMMENT_NODE, ATTR_NAME = DOMProperty_1.ID_ATTRIBUTE_NAME, Flags = ReactDOMComponentFlags_1, randomKey = Math.random().toString(36).slice(2), internalInstanceKey = "__reactInternalInstance$" + randomKey, internalEventHandlersKey = "__reactEventHandlers$" + randomKey;
-
-/**
- * Check if a given node should be cached.
- */
-function shouldPrecacheNode(node, nodeID) {
- return node.nodeType === ELEMENT_NODE$1 && node.getAttribute(ATTR_NAME) === "" + nodeID || node.nodeType === COMMENT_NODE$1 && node.nodeValue === " react-text: " + nodeID + " " || node.nodeType === COMMENT_NODE$1 && node.nodeValue === " react-empty: " + nodeID + " ";
-}
-
-/**
- * Drill down (through composites and empty components) until we get a host or
- * host text component.
- *
- * This is pretty polymorphic but unavoidable with the current structure we have
- * for `_renderedChildren`.
- */
-function getRenderedHostOrTextFromComponent(component) {
- for (var rendered; rendered = component._renderedComponent; ) component = rendered;
- return component;
-}
-
-/**
- * Populate `_hostNode` on the rendered host/text component with the given
- * DOM node. The passed `inst` can be a composite.
- */
-function precacheNode(inst, node) {
- var hostInst = getRenderedHostOrTextFromComponent(inst);
- hostInst._hostNode = node, node[internalInstanceKey] = hostInst;
-}
+}, HostComponent = ReactTypeOfWork.HostComponent, HostText = ReactTypeOfWork.HostText, randomKey = Math.random().toString(36).slice(2), internalInstanceKey = "__reactInternalInstance$" + randomKey, internalEventHandlersKey = "__reactEventHandlers$" + randomKey;
function precacheFiberNode$1(hostInst, node) {
node[internalInstanceKey] = hostInst;
}
-function uncacheNode(inst) {
- var node = inst._hostNode;
- node && (delete node[internalInstanceKey], inst._hostNode = null);
-}
-
-/**
- * Populate `_hostNode` on each child of `inst`, assuming that the children
- * match up with the DOM (element) children of `node`.
- *
- * We cache entire levels at once to avoid an n^2 problem where we access the
- * children of a node sequentially and have to walk from the start to our target
- * node every time.
- *
- * Since we update `_renderedChildren` and the actual DOM at (slightly)
- * different times, we could race here and see a newer `_renderedChildren` than
- * the DOM nodes we see. To avoid this, ReactMultiChild calls
- * `prepareToManageChildren` before we change `_renderedChildren`, at which
- * time the container's child nodes are always cached (until it unmounts).
- */
-function precacheChildNodes(inst, node) {
- if (!(inst._flags & Flags.hasCachedChildNodes)) {
- var children = inst._renderedChildren, childNode = node.firstChild;
- outer: for (var name in children) if (children.hasOwnProperty(name)) {
- var childInst = children[name], childID = getRenderedHostOrTextFromComponent(childInst)._domID;
- if (0 !== childID) {
- // We assume the child nodes are in the same order as the child instances.
- for (;null !== childNode; childNode = childNode.nextSibling) if (shouldPrecacheNode(childNode, childID)) {
- precacheNode(childInst, childNode);
- continue outer;
- }
- // We reached the end of the DOM children without finding an ID match.
- invariant(!1, "Unable to find element with ID %s.", childID);
- }
- }
- inst._flags |= Flags.hasCachedChildNodes;
- }
-}
-
/**
* Given a DOM node, return the closest ReactDOMComponent or
* ReactDOMTextComponent instance ancestor.
@@ -447,8 +219,7 @@ function getClosestInstanceFromNode(node) {
var closest, inst = node[internalInstanceKey];
if (inst.tag === HostComponent || inst.tag === HostText) // In Fiber, this will always be the deepest root.
return inst;
- for (;node && (inst = node[internalInstanceKey]); node = parents.pop()) closest = inst,
- parents.length && precacheChildNodes(inst, node);
+ for (;node && (inst = node[internalInstanceKey]); node = parents.pop()) closest = inst;
return closest;
}
@@ -458,8 +229,7 @@ function getClosestInstanceFromNode(node) {
*/
function getInstanceFromNode(node) {
var inst = node[internalInstanceKey];
- return inst ? inst.tag === HostComponent || inst.tag === HostText ? inst : inst._hostNode === node ? inst : null : (inst = getClosestInstanceFromNode(node),
- null != inst && inst._hostNode === node ? inst : null);
+ return inst && (inst.tag === HostComponent || inst.tag === HostText) ? inst : null;
}
/**
@@ -470,17 +240,9 @@ function getNodeFromInstance(inst) {
if (inst.tag === HostComponent || inst.tag === HostText) // In Fiber this, is just the state node right now. We assume it will be
// a host component or host text.
return inst.stateNode;
- if (// Without this first invariant, passing a non-DOM-component triggers the next
+ // Without this first invariant, passing a non-DOM-component triggers the next
// invariant for a missing parent, which is super confusing.
- invariant(void 0 !== inst._hostNode, "getNodeFromInstance: Invalid argument."),
- inst._hostNode) return inst._hostNode;
- for (// Walk up the tree until we find an ancestor whose DOM node we have cached.
- var parents = []; !inst._hostNode; ) parents.push(inst), invariant(inst._hostParent, "React DOM tree root should always have a node reference."),
- inst = inst._hostParent;
- // Now parents contains each ancestor that does *not* have a cached native
- // node, and `inst` is the deepest ancestor that does.
- for (;parents.length; inst = parents.pop()) precacheChildNodes(inst, inst._hostNode);
- return inst._hostNode;
+ invariant(!1, "getNodeFromInstance: Invalid argument.");
}
function getFiberCurrentPropsFromNode(node) {
@@ -495,9 +257,6 @@ var ReactDOMComponentTree = {
getClosestInstanceFromNode: getClosestInstanceFromNode,
getInstanceFromNode: getInstanceFromNode,
getNodeFromInstance: getNodeFromInstance,
- precacheChildNodes: precacheChildNodes,
- precacheNode: precacheNode,
- uncacheNode: uncacheNode,
precacheFiberNode: precacheFiberNode$1,
getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode,
updateFiberProps: updateFiberProps$1
@@ -534,17 +293,9 @@ var ReactDOMComponentTree = {
* @providesModule getComponentName
*
*/
-function getComponentName(instanceOrFiber) {
- if ("function" == typeof instanceOrFiber.getName) {
- return instanceOrFiber.getName();
- }
- if ("number" == typeof instanceOrFiber.tag) {
- // Fiber reconciler
- var fiber = instanceOrFiber, type = fiber.type;
- if ("string" == typeof type) return type;
- if ("function" == typeof type) return type.displayName || type.name;
- }
- return null;
+function getComponentName(fiber) {
+ var type = fiber.type;
+ return "string" == typeof type ? type : "function" == typeof type ? type.displayName || type.name : null;
}
var getComponentName_1 = getComponentName, ReactTypeOfSideEffect = {
@@ -912,14 +663,9 @@ function restoreStateOfTarget(target) {
// always receive the correct fiber here
var internalInstance = EventPluginUtils_1.getInstanceFromNode(target);
if (internalInstance) {
- if ("number" == typeof internalInstance.tag) {
- invariant(fiberHostComponent && "function" == typeof fiberHostComponent.restoreControlledState, "Fiber needs to be injected to handle a fiber target for controlled " + "events. This error is likely caused by a bug in React. Please file an issue.");
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(internalInstance.stateNode);
- return void fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props);
- }
- invariant("function" == typeof internalInstance.restoreControlledState, "The internal instance must be a React host component. " + "This error is likely caused by a bug in React. Please file an issue."),
- // If it is not a Fiber, we can just use dynamic dispatch.
- internalInstance.restoreControlledState();
+ invariant(fiberHostComponent && "function" == typeof fiberHostComponent.restoreControlledState, "Fiber needs to be injected to handle a fiber target for controlled " + "events. This error is likely caused by a bug in React. Please file an issue.");
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(internalInstance.stateNode);
+ fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props);
}
}
@@ -934,24 +680,16 @@ var ReactControlledComponent = {
if (restoreTarget = null, restoreQueue = null, restoreStateOfTarget(target), queuedTargets) for (var i = 0; i < queuedTargets.length; i++) restoreStateOfTarget(queuedTargets[i]);
}
}
-}, ReactControlledComponent_1 = ReactControlledComponent, stackBatchedUpdates = function(fn, a, b, c, d, e) {
- return fn(a, b, c, d, e);
-}, fiberBatchedUpdates = function(fn, bookkeeping) {
+}, ReactControlledComponent_1 = ReactControlledComponent, fiberBatchedUpdates = function(fn, bookkeeping) {
return fn(bookkeeping);
};
-function performFiberBatchedUpdates(fn, bookkeeping) {
+function batchedUpdates(fn, bookkeeping) {
// If we have Fiber loaded, we need to wrap this in a batching call so that
// Fiber can apply its default priority for this call.
return fiberBatchedUpdates(fn, bookkeeping);
}
-function batchedUpdates(fn, bookkeeping) {
- // We first perform work with the stack batching strategy, by passing our
- // indirection to it.
- return stackBatchedUpdates(performFiberBatchedUpdates, fn, bookkeeping);
-}
-
var isNestingBatched = !1;
function batchedUpdatesWithControlledComponents(fn, bookkeeping) {
@@ -972,16 +710,19 @@ function batchedUpdatesWithControlledComponents(fn, bookkeeping) {
}
var ReactGenericBatchingInjection = {
- injectStackBatchedUpdates: function(_batchedUpdates) {
- stackBatchedUpdates = _batchedUpdates;
- },
injectFiberBatchedUpdates: function(_batchedUpdates) {
fiberBatchedUpdates = _batchedUpdates;
}
}, ReactGenericBatching = {
batchedUpdates: batchedUpdatesWithControlledComponents,
injection: ReactGenericBatchingInjection
-}, ReactGenericBatching_1 = ReactGenericBatching, TEXT_NODE$1 = HTMLNodeType_1.TEXT_NODE;
+}, ReactGenericBatching_1 = ReactGenericBatching, HTMLNodeType = {
+ ELEMENT_NODE: 1,
+ TEXT_NODE: 3,
+ COMMENT_NODE: 8,
+ DOCUMENT_NODE: 9,
+ DOCUMENT_FRAGMENT_NODE: 11
+}, HTMLNodeType_1 = HTMLNodeType, TEXT_NODE$1 = HTMLNodeType_1.TEXT_NODE;
/**
* Gets the target node from a native browser event by accounting for
@@ -1010,12 +751,8 @@ function findRootContainerNode(inst) {
// TODO: It may be a good idea to cache this to prevent unnecessary DOM
// traversal, but caching is difficult to do correctly without using a
// mutation observer to listen for all DOM changes.
- if ("number" == typeof inst.tag) {
- for (;inst.return; ) inst = inst.return;
- return inst.tag !== HostRoot ? null : inst.stateNode.containerInfo;
- }
- for (;inst._hostParent; ) inst = inst._hostParent;
- return ReactDOMComponentTree_1.getNodeFromInstance(inst).parentNode;
+ for (;inst.return; ) inst = inst.return;
+ return inst.tag !== HostRoot ? null : inst.stateNode.containerInfo;
}
// Used to store ancestor hierarchy in top level callback
@@ -1231,28 +968,12 @@ var EventPluginHub = {
* @return {?function} The stored callback.
*/
getListener: function(inst, registrationName) {
- var listener;
- // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
- // live here; needs to be moved to a better place soon
- if ("number" == typeof inst.tag) {
- var stateNode = inst.stateNode;
- if (!stateNode) // Work in progress (ex: onload events in incremental mode).
- return null;
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
- if (!props) // Work in progress.
- return null;
- if (listener = props[registrationName], shouldPreventMouseEvent(registrationName, inst.type, props)) return null;
- } else {
- var currentElement = inst._currentElement;
- if ("string" == typeof currentElement || "number" == typeof currentElement) // Text node, let it bubble through.
- return null;
- if (!inst._rootNodeID) // If the instance is already unmounted, we have no listeners.
- return null;
- var _props = currentElement.props;
- if (listener = _props[registrationName], shouldPreventMouseEvent(registrationName, currentElement.type, _props)) return null;
- }
- return invariant(!listener || "function" == typeof listener, "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener),
- listener;
+ var listener, stateNode = inst.stateNode;
+ if (!stateNode) // Work in progress (ex: onload events in incremental mode).
+ return null;
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
+ return props ? (listener = props[registrationName], shouldPreventMouseEvent(registrationName, inst.type, props) ? null : (invariant(!listener || "function" == typeof listener, "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener),
+ listener)) : null;
},
/**
* Allows registered plugins an opportunity to extract events from top-level
@@ -1726,7 +1447,161 @@ var CSSPropertyOperations = {
}
}
}
-}, CSSPropertyOperations_1 = CSSPropertyOperations, VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + DOMProperty_1.ATTRIBUTE_NAME_START_CHAR + "][" + DOMProperty_1.ATTRIBUTE_NAME_CHAR + "]*$"), illegalAttributeNameCache = {}, validatedAttributeNameCache = {};
+}, CSSPropertyOperations_1 = CSSPropertyOperations, RESERVED_PROPS = {
+ children: !0,
+ dangerouslysetinnerhtml: !0,
+ autofocus: !0,
+ defaultvalue: !0,
+ defaultchecked: !0,
+ innerhtml: !0,
+ suppresscontenteditablewarning: !0,
+ onfocusin: !0,
+ onfocusout: !0,
+ style: !0
+};
+
+function checkMask(value, bitmask) {
+ return (value & bitmask) === bitmask;
+}
+
+var DOMPropertyInjection = {
+ /**
+ * Mapping from normalized, camelcased property names to a configuration that
+ * specifies how the associated DOM property should be accessed or rendered.
+ */
+ MUST_USE_PROPERTY: 1,
+ HAS_BOOLEAN_VALUE: 4,
+ HAS_NUMERIC_VALUE: 8,
+ HAS_POSITIVE_NUMERIC_VALUE: 16 | 8,
+ HAS_OVERLOADED_BOOLEAN_VALUE: 32,
+ /**
+ * Inject some specialized knowledge about the DOM. This takes a config object
+ * with the following properties:
+ *
+ * Properties: object mapping DOM property name to one of the
+ * DOMPropertyInjection constants or null. If your attribute isn't in here,
+ * it won't get written to the DOM.
+ *
+ * DOMAttributeNames: object mapping React attribute name to the DOM
+ * attribute name. Attribute names not specified use the **lowercase**
+ * normalized name.
+ *
+ * DOMAttributeNamespaces: object mapping React attribute name to the DOM
+ * attribute namespace URL. (Attribute names not specified use no namespace.)
+ *
+ * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
+ * Property names not specified use the normalized name.
+ *
+ * DOMMutationMethods: Properties that require special mutation methods. If
+ * `value` is undefined, the mutation method should unset the property.
+ *
+ * @param {object} domPropertyConfig the config as described above.
+ */
+ injectDOMPropertyConfig: function(domPropertyConfig) {
+ var Injection = DOMPropertyInjection, Properties = domPropertyConfig.Properties || {}, DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {}, DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {}, DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
+ for (var propName in Properties) {
+ invariant(!DOMProperty.properties.hasOwnProperty(propName), "injectDOMPropertyConfig(...): You're trying to inject DOM property " + "'%s' which has already been injected. You may be accidentally " + "injecting the same DOM property config twice, or you may be " + "injecting two configs that have conflicting property names.", propName);
+ var lowerCased = propName.toLowerCase(), propConfig = Properties[propName], propertyInfo = {
+ attributeName: lowerCased,
+ attributeNamespace: null,
+ propertyName: propName,
+ mutationMethod: null,
+ mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
+ hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
+ hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
+ hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
+ hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
+ };
+ if (invariant(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1, "DOMProperty: Value can be one of boolean, overloaded boolean, or " + "numeric value, but not a combination: %s", propName),
+ DOMAttributeNames.hasOwnProperty(propName)) {
+ var attributeName = DOMAttributeNames[propName];
+ propertyInfo.attributeName = attributeName;
+ }
+ DOMAttributeNamespaces.hasOwnProperty(propName) && (propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName]),
+ DOMMutationMethods.hasOwnProperty(propName) && (propertyInfo.mutationMethod = DOMMutationMethods[propName]),
+ // Downcase references to whitelist properties to check for membership
+ // without case-sensitivity. This allows the whitelist to pick up
+ // `allowfullscreen`, which should be written using the property configuration
+ // for `allowFullscreen`
+ DOMProperty.properties[propName] = propertyInfo;
+ }
+ }
+}, 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", DOMProperty = {
+ ID_ATTRIBUTE_NAME: "data-reactid",
+ ROOT_ATTRIBUTE_NAME: "data-reactroot",
+ ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
+ ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",
+ /**
+ * Map from property "standard name" to an object with info about how to set
+ * the property in the DOM. Each object contains:
+ *
+ * attributeName:
+ * Used when rendering markup or with `*Attribute()`.
+ * attributeNamespace
+ * propertyName:
+ * Used on DOM node instances. (This includes properties that mutate due to
+ * external factors.)
+ * mutationMethod:
+ * If non-null, used instead of the property or `setAttribute()` after
+ * initial render.
+ * mustUseProperty:
+ * Whether the property must be accessed and mutated as an object property.
+ * hasBooleanValue:
+ * Whether the property should be removed when set to a falsey value.
+ * hasNumericValue:
+ * Whether the property must be numeric or parse as a numeric and should be
+ * removed when set to a falsey value.
+ * hasPositiveNumericValue:
+ * Whether the property must be positive numeric or parse as a positive
+ * numeric and should be removed when set to a falsey value.
+ * hasOverloadedBooleanValue:
+ * Whether the property can be used as a flag as well as with a value.
+ * Removed when strictly equal to false; present without a value when
+ * strictly equal to true; present with a value otherwise.
+ */
+ properties: {},
+ /**
+ * Checks whether a property name is a writeable attribute.
+ * @method
+ */
+ shouldSetAttribute: function(name, value) {
+ if (DOMProperty.isReservedProp(name)) return !1;
+ if (null === value) return !0;
+ var lowerCased = name.toLowerCase(), propertyInfo = DOMProperty.properties[name];
+ switch (typeof value) {
+ case "boolean":
+ if (propertyInfo) return !0;
+ var prefix = lowerCased.slice(0, 5);
+ return "data-" === prefix || "aria-" === prefix;
+
+ case "undefined":
+ case "number":
+ case "string":
+ case "object":
+ return !0;
+
+ default:
+ // function, symbol
+ return !1;
+ }
+ },
+ getPropertyInfo: function(name) {
+ return DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
+ },
+ /**
+ * Checks to see if a property name is within the list of properties
+ * reserved for internal React operations. These properties should
+ * not be set on an HTML element.
+ *
+ * @private
+ * @param {string} name
+ * @return {boolean} If the name is within reserved props
+ */
+ isReservedProp: function(name) {
+ return RESERVED_PROPS.hasOwnProperty(name.toLowerCase());
+ },
+ injection: DOMPropertyInjection
+}, DOMProperty_1 = DOMProperty, VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + DOMProperty_1.ATTRIBUTE_NAME_START_CHAR + "][" + DOMProperty_1.ATTRIBUTE_NAME_CHAR + "]*$"), illegalAttributeNameCache = {}, validatedAttributeNameCache = {};
function isAttributeNameSafe(attributeName) {
return !!validatedAttributeNameCache.hasOwnProperty(attributeName) || !illegalAttributeNameCache.hasOwnProperty(attributeName) && (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName) ? (validatedAttributeNameCache[attributeName] = !0,
@@ -3452,12 +3327,11 @@ function coerceRef(current, element) {
if (null !== mixedRef && "function" != typeof mixedRef) {
if (element._owner) {
var owner = element._owner, inst = void 0;
- if (owner) if ("number" == typeof owner.tag) {
+ if (owner) {
var ownerFiber = owner;
invariant(ownerFiber.tag === ClassComponent$7, "Stateless function components cannot have refs."),
inst = ownerFiber.stateNode;
- } else // Stack
- inst = owner.getPublicInstance();
+ }
invariant(inst, "Missing owner for string ref %s. This error is likely caused by a " + "bug in React. Please file an issue.", mixedRef);
var stringRef = "" + mixedRef;
// Check if previous string ref matches new string ref
@@ -4213,7 +4087,7 @@ var reconcileChildFibers$1 = ChildReconciler(!0, !0), reconcileChildFibersInPlac
// resumeMountClassInstance,
updateClassInstance: updateClassInstance
};
-}, mountChildFibersInPlace = ReactChildFiber.mountChildFibersInPlace, reconcileChildFibers = ReactChildFiber.reconcileChildFibers, reconcileChildFibersInPlace = ReactChildFiber.reconcileChildFibersInPlace, cloneChildFibers = ReactChildFiber.cloneChildFibers, beginUpdateQueue$1 = ReactFiberUpdateQueue.beginUpdateQueue, getMaskedContext$1 = ReactFiberContext.getMaskedContext, getUnmaskedContext$1 = ReactFiberContext.getUnmaskedContext, hasContextChanged$1 = ReactFiberContext.hasContextChanged, pushContextProvider$1 = ReactFiberContext.pushContextProvider, pushTopLevelContextObject$1 = ReactFiberContext.pushTopLevelContextObject, invalidateContextProvider$1 = ReactFiberContext.invalidateContextProvider, IndeterminateComponent$2 = ReactTypeOfWork.IndeterminateComponent, FunctionalComponent$1 = ReactTypeOfWork.FunctionalComponent, ClassComponent$6 = ReactTypeOfWork.ClassComponent, HostRoot$6 = ReactTypeOfWork.HostRoot, HostComponent$6 = ReactTypeOfWork.HostComponent, HostText$3 = ReactTypeOfWork.HostText, HostPortal$3 = ReactTypeOfWork.HostPortal, CoroutineComponent$1 = ReactTypeOfWork.CoroutineComponent, CoroutineHandlerPhase = ReactTypeOfWork.CoroutineHandlerPhase, YieldComponent$1 = ReactTypeOfWork.YieldComponent, Fragment$1 = ReactTypeOfWork.Fragment, NoWork$3 = ReactPriorityLevel.NoWork, OffscreenPriority$1 = ReactPriorityLevel.OffscreenPriority, PerformedWork$1 = ReactTypeOfSideEffect.PerformedWork, Placement$2 = ReactTypeOfSideEffect.Placement, ContentReset$1 = ReactTypeOfSideEffect.ContentReset, Err$1 = ReactTypeOfSideEffect.Err, Ref$1 = ReactTypeOfSideEffect.Ref, ReactCurrentOwner$2 = ReactGlobalSharedState_1.ReactCurrentOwner, ReactFiberBeginWork = function(config, hostContext, hydrationContext, scheduleUpdate, getPriorityContext) {
+}, mountChildFibersInPlace = ReactChildFiber.mountChildFibersInPlace, reconcileChildFibers = ReactChildFiber.reconcileChildFibers, reconcileChildFibersInPlace = ReactChildFiber.reconcileChildFibersInPlace, cloneChildFibers = ReactChildFiber.cloneChildFibers, beginUpdateQueue$1 = ReactFiberUpdateQueue.beginUpdateQueue, getMaskedContext$1 = ReactFiberContext.getMaskedContext, getUnmaskedContext$1 = ReactFiberContext.getUnmaskedContext, hasContextChanged$1 = ReactFiberContext.hasContextChanged, pushContextProvider$1 = ReactFiberContext.pushContextProvider, pushTopLevelContextObject$1 = ReactFiberContext.pushTopLevelContextObject, invalidateContextProvider$1 = ReactFiberContext.invalidateContextProvider, IndeterminateComponent$2 = ReactTypeOfWork.IndeterminateComponent, FunctionalComponent$1 = ReactTypeOfWork.FunctionalComponent, ClassComponent$6 = ReactTypeOfWork.ClassComponent, HostRoot$6 = ReactTypeOfWork.HostRoot, HostComponent$6 = ReactTypeOfWork.HostComponent, HostText$3 = ReactTypeOfWork.HostText, HostPortal$3 = ReactTypeOfWork.HostPortal, CoroutineComponent$1 = ReactTypeOfWork.CoroutineComponent, CoroutineHandlerPhase = ReactTypeOfWork.CoroutineHandlerPhase, YieldComponent$1 = ReactTypeOfWork.YieldComponent, Fragment$1 = ReactTypeOfWork.Fragment, NoWork$3 = ReactPriorityLevel.NoWork, OffscreenPriority$1 = ReactPriorityLevel.OffscreenPriority, PerformedWork$1 = ReactTypeOfSideEffect.PerformedWork, Placement$2 = ReactTypeOfSideEffect.Placement, ContentReset$1 = ReactTypeOfSideEffect.ContentReset, Err$1 = ReactTypeOfSideEffect.Err, Ref$1 = ReactTypeOfSideEffect.Ref, ReactCurrentOwner$3 = ReactGlobalSharedState_1.ReactCurrentOwner, ReactFiberBeginWork = function(config, hostContext, hydrationContext, scheduleUpdate, getPriorityContext) {
var shouldSetTextContent = config.shouldSetTextContent, useSyncScheduling = config.useSyncScheduling, shouldDeprioritizeSubtree = config.shouldDeprioritizeSubtree, pushHostContext = hostContext.pushHostContext, pushHostContainer = hostContext.pushHostContainer, enterHydrationState = hydrationContext.enterHydrationState, resetHydrationState = hydrationContext.resetHydrationState, tryToClaimNextHydratableInstance = hydrationContext.tryToClaimNextHydratableInstance, _ReactFiberClassCompo = ReactFiberClassComponent(scheduleUpdate, getPriorityContext, memoizeProps, memoizeState), adoptClassInstance = _ReactFiberClassCompo.adoptClassInstance, constructClassInstance = _ReactFiberClassCompo.constructClassInstance, mountClassInstance = _ReactFiberClassCompo.mountClassInstance, updateClassInstance = _ReactFiberClassCompo.updateClassInstance;
function reconcileChildren(current, workInProgress, nextChildren) {
reconcileChildrenAtPriority(current, workInProgress, nextChildren, workInProgress.pendingWorkPriority);
@@ -4273,7 +4147,7 @@ var reconcileChildFibers$1 = ChildReconciler(!0, !0), reconcileChildFibersInPlac
return hasContext && invalidateContextProvider$1(workInProgress, !1), bailoutOnAlreadyFinishedWork(current, workInProgress);
var instance = workInProgress.stateNode;
// Rerender
- ReactCurrentOwner$2.current = workInProgress;
+ ReactCurrentOwner$3.current = workInProgress;
var nextChildren = void 0;
// React DevTools reads this flag.
// Memoize props and state using the values we just used to render.
@@ -5162,7 +5036,7 @@ var injectInternals_1 = injectInternals$1, onCommitRoot_1 = onCommitRoot$1, onCo
prepareToHydrateHostTextInstance: prepareToHydrateHostTextInstance,
popHydrationState: popHydrationState
};
-}, popContextProvider$1 = ReactFiberContext.popContextProvider, reset$1 = ReactFiberStack.reset, getStackAddendumByWorkInProgressFiber$1 = ReactFiberComponentTreeHook.getStackAddendumByWorkInProgressFiber, logCapturedError = ReactFiberErrorLogger.logCapturedError, ReactCurrentOwner$1 = ReactGlobalSharedState_1.ReactCurrentOwner, createWorkInProgress$1 = ReactFiber.createWorkInProgress, largerPriority$1 = ReactFiber.largerPriority, onCommitRoot = ReactFiberDevToolsHook.onCommitRoot, NoWork$2 = ReactPriorityLevel.NoWork, SynchronousPriority$1 = ReactPriorityLevel.SynchronousPriority, TaskPriority$1 = ReactPriorityLevel.TaskPriority, HighPriority = ReactPriorityLevel.HighPriority, LowPriority = ReactPriorityLevel.LowPriority, OffscreenPriority = ReactPriorityLevel.OffscreenPriority, AsyncUpdates = ReactTypeOfInternalContext.AsyncUpdates, PerformedWork = ReactTypeOfSideEffect.PerformedWork, Placement$1 = ReactTypeOfSideEffect.Placement, Update = ReactTypeOfSideEffect.Update, PlacementAndUpdate = ReactTypeOfSideEffect.PlacementAndUpdate, Deletion = ReactTypeOfSideEffect.Deletion, ContentReset = ReactTypeOfSideEffect.ContentReset, Callback = ReactTypeOfSideEffect.Callback, Err = ReactTypeOfSideEffect.Err, Ref = ReactTypeOfSideEffect.Ref, HostRoot$5 = ReactTypeOfWork.HostRoot, HostComponent$4 = ReactTypeOfWork.HostComponent, HostPortal$2 = ReactTypeOfWork.HostPortal, ClassComponent$4 = ReactTypeOfWork.ClassComponent, getUpdatePriority$1 = ReactFiberUpdateQueue.getUpdatePriority, _require14 = ReactFiberContext, resetContext$1 = _require14.resetContext, ReactFiberInstrumentation$1, timeHeuristicForUnitOfWork = 1, ReactFiberScheduler = function(config) {
+}, popContextProvider$1 = ReactFiberContext.popContextProvider, reset$1 = ReactFiberStack.reset, getStackAddendumByWorkInProgressFiber$1 = ReactFiberComponentTreeHook.getStackAddendumByWorkInProgressFiber, logCapturedError = ReactFiberErrorLogger.logCapturedError, ReactCurrentOwner$2 = ReactGlobalSharedState_1.ReactCurrentOwner, createWorkInProgress$1 = ReactFiber.createWorkInProgress, largerPriority$1 = ReactFiber.largerPriority, onCommitRoot = ReactFiberDevToolsHook.onCommitRoot, NoWork$2 = ReactPriorityLevel.NoWork, SynchronousPriority$1 = ReactPriorityLevel.SynchronousPriority, TaskPriority$1 = ReactPriorityLevel.TaskPriority, HighPriority = ReactPriorityLevel.HighPriority, LowPriority = ReactPriorityLevel.LowPriority, OffscreenPriority = ReactPriorityLevel.OffscreenPriority, AsyncUpdates = ReactTypeOfInternalContext.AsyncUpdates, PerformedWork = ReactTypeOfSideEffect.PerformedWork, Placement$1 = ReactTypeOfSideEffect.Placement, Update = ReactTypeOfSideEffect.Update, PlacementAndUpdate = ReactTypeOfSideEffect.PlacementAndUpdate, Deletion = ReactTypeOfSideEffect.Deletion, ContentReset = ReactTypeOfSideEffect.ContentReset, Callback = ReactTypeOfSideEffect.Callback, Err = ReactTypeOfSideEffect.Err, Ref = ReactTypeOfSideEffect.Ref, HostRoot$5 = ReactTypeOfWork.HostRoot, HostComponent$4 = ReactTypeOfWork.HostComponent, HostPortal$2 = ReactTypeOfWork.HostPortal, ClassComponent$4 = ReactTypeOfWork.ClassComponent, getUpdatePriority$1 = ReactFiberUpdateQueue.getUpdatePriority, _require14 = ReactFiberContext, resetContext$1 = _require14.resetContext, ReactFiberInstrumentation$1, timeHeuristicForUnitOfWork = 1, ReactFiberScheduler = function(config) {
var hostContext = ReactFiberHostContext(config), hydrationContext = ReactFiberHydrationContext(config), popHostContainer = hostContext.popHostContainer, popHostContext = hostContext.popHostContext, resetHostContainer = hostContext.resetHostContainer, _ReactFiberBeginWork = ReactFiberBeginWork(config, hostContext, hydrationContext, scheduleUpdate, getPriorityContext), beginWork = _ReactFiberBeginWork.beginWork, beginFailedWork = _ReactFiberBeginWork.beginFailedWork, _ReactFiberCompleteWo = ReactFiberCompleteWork(config, hostContext, hydrationContext), completeWork = _ReactFiberCompleteWo.completeWork, _ReactFiberCommitWork = ReactFiberCommitWork(config, captureError), commitPlacement = _ReactFiberCommitWork.commitPlacement, commitDeletion = _ReactFiberCommitWork.commitDeletion, commitWork = _ReactFiberCommitWork.commitWork, commitLifeCycles = _ReactFiberCommitWork.commitLifeCycles, commitAttachRef = _ReactFiberCommitWork.commitAttachRef, commitDetachRef = _ReactFiberCommitWork.commitDetachRef, scheduleDeferredCallback = config.scheduleDeferredCallback, useSyncScheduling = config.useSyncScheduling, prepareForCommit = config.prepareForCommit, resetAfterCommit = config.resetAfterCommit, priorityContext = NoWork$2, isPerformingWork = !1, deadlineHasExpired = !1, isBatchingUpdates = !1, isUnbatchingUpdates = !1, nextUnitOfWork = null, nextPriorityLevel = NoWork$2, nextEffect = null, pendingCommit = null, nextScheduledRoot = null, lastScheduledRoot = null, isCallbackScheduled = !1, capturedErrors = null, failedBoundaries = null, commitPhaseBoundaries = null, firstUncaughtError = null, didFatal = !1, isCommitting = !1, isUnmounting = !1, NESTED_UPDATE_LIMIT = 1e3, nestedUpdateCount = 0;
function resetContextStack() {
// Reset the stack
@@ -5266,7 +5140,7 @@ var injectInternals_1 = injectInternals$1, onCommitRoot_1 = onCommitRoot$1, onCo
nextPriorityLevel !== SynchronousPriority$1 && nextPriorityLevel !== TaskPriority$1 || // Keep track of the number of iterations to prevent an infinite
// update loop.
nestedUpdateCount++, // Reset this to null before calling lifecycles
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
var firstEffect = void 0;
for (finishedWork.effectTag > PerformedWork ? // A fiber's effect list consists only of its children, not itself. So if
// the root has an effect, we need to add it to the end of the list. The
@@ -5369,7 +5243,7 @@ var injectInternals_1 = injectInternals$1, onCommitRoot_1 = onCommitRoot$1, onCo
var current = workInProgress.alternate, next = beginWork(current, workInProgress, nextPriorityLevel);
// If this doesn't spawn new work, complete the current work.
return !1 && ReactFiberInstrumentation$1.debugTool && ReactFiberInstrumentation$1.debugTool.onBeginWork(workInProgress),
- null === next && (next = completeUnitOfWork(workInProgress)), ReactCurrentOwner$1.current = null,
+ null === next && (next = completeUnitOfWork(workInProgress)), ReactCurrentOwner$2.current = null,
next;
}
function performFailedUnitOfWork(workInProgress) {
@@ -5380,7 +5254,7 @@ var injectInternals_1 = injectInternals$1, onCommitRoot_1 = onCommitRoot$1, onCo
var current = workInProgress.alternate, next = beginFailedWork(current, workInProgress, nextPriorityLevel);
// If this doesn't spawn new work, complete the current work.
return !1 && ReactFiberInstrumentation$1.debugTool && ReactFiberInstrumentation$1.debugTool.onBeginWork(workInProgress),
- null === next && (next = completeUnitOfWork(workInProgress)), ReactCurrentOwner$1.current = null,
+ null === next && (next = completeUnitOfWork(workInProgress)), ReactCurrentOwner$2.current = null,
next;
}
function performDeferredWork(deadline) {
@@ -5527,7 +5401,7 @@ var injectInternals_1 = injectInternals$1, onCommitRoot_1 = onCommitRoot$1, onCo
// Returns the boundary that captured the error, or null if the error is ignored
function captureError(failedWork, error) {
// It is no longer valid because we exited the user code.
- ReactCurrentOwner$1.current = null;
+ ReactCurrentOwner$2.current = null;
var boundary = null, errorBoundaryFound = !1, willRetry = !1, errorBoundaryName = null;
// Host containers are a special case. If the failed work itself is a host
// container, then it acts as its own boundary. In all other cases, we
@@ -5772,26 +5646,13 @@ var injectInternals_1 = injectInternals$1, onCommitRoot_1 = onCommitRoot$1, onCo
flushSync: flushSync,
deferredUpdates: deferredUpdates
};
-}, getContextFiber = function(arg) {
- invariant(!1, "Missing injection for fiber getContextForSubtree");
-};
+}, ReactFeatureFlags$1 = require("ReactFeatureFlags"), addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate, findCurrentUnmaskedContext = ReactFiberContext.findCurrentUnmaskedContext, isContextProvider = ReactFiberContext.isContextProvider, processChildContext = ReactFiberContext.processChildContext, createFiberRoot = ReactFiberRoot.createFiberRoot, HostComponent$2 = ReactTypeOfWork.HostComponent, findCurrentHostFiber$1 = ReactFiberTreeReflection.findCurrentHostFiber, findCurrentHostFiberWithNoPortals$1 = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
function getContextForSubtree(parentComponent) {
if (!parentComponent) return emptyObject;
- var instance = ReactInstanceMap_1.get(parentComponent);
- return "number" == typeof instance.tag ? getContextFiber(instance) : instance._processChildContext(instance._context);
-}
-
-getContextForSubtree._injectFiber = function(fn) {
- getContextFiber = fn;
-};
-
-var getContextForSubtree_1 = getContextForSubtree, ReactFeatureFlags$1 = require("ReactFeatureFlags"), addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate, findCurrentUnmaskedContext = ReactFiberContext.findCurrentUnmaskedContext, isContextProvider = ReactFiberContext.isContextProvider, processChildContext = ReactFiberContext.processChildContext, createFiberRoot = ReactFiberRoot.createFiberRoot, HostComponent$2 = ReactTypeOfWork.HostComponent, findCurrentHostFiber$1 = ReactFiberTreeReflection.findCurrentHostFiber, findCurrentHostFiberWithNoPortals$1 = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
-
-getContextForSubtree_1._injectFiber(function(fiber) {
- var parentContext = findCurrentUnmaskedContext(fiber);
+ var fiber = ReactInstanceMap_1.get(parentComponent), parentContext = findCurrentUnmaskedContext(fiber);
return isContextProvider(fiber) ? processChildContext(fiber, parentContext, !1) : parentContext;
-});
+}
var ReactFiberReconciler = function(config) {
var getPublicInstance = config.getPublicInstance, _ReactFiberScheduler = ReactFiberScheduler(config), scheduleUpdate = _ReactFiberScheduler.scheduleUpdate, getPriorityContext = _ReactFiberScheduler.getPriorityContext, performWithPriority = _ReactFiberScheduler.performWithPriority, batchedUpdates = _ReactFiberScheduler.batchedUpdates, unbatchedUpdates = _ReactFiberScheduler.unbatchedUpdates, flushSync = _ReactFiberScheduler.flushSync, deferredUpdates = _ReactFiberScheduler.deferredUpdates;
@@ -5808,7 +5669,7 @@ var ReactFiberReconciler = function(config) {
},
updateContainer: function(element, container, parentComponent, callback) {
// TODO: If this is a nested container, this won't be the root.
- var current = container.current, context = getContextForSubtree_1(parentComponent);
+ var current = container.current, context = getContextForSubtree(parentComponent);
null === container.context ? container.context = context : container.pendingContext = context,
scheduleTopLevelUpdate(current, element, callback);
},
@@ -5986,7 +5847,7 @@ var ReactDOMSelection = {
* @param {object} offsets
*/
setOffsets: setModernOffsets
-}, ReactDOMSelection_1 = ReactDOMSelection, ELEMENT_NODE$2 = HTMLNodeType_1.ELEMENT_NODE;
+}, ReactDOMSelection_1 = ReactDOMSelection, ELEMENT_NODE$1 = HTMLNodeType_1.ELEMENT_NODE;
function isInDocument(node) {
return containsNode(document.documentElement, node);
@@ -6020,7 +5881,7 @@ var ReactInputSelection = {
if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
ReactInputSelection.hasSelectionCapabilities(priorFocusedElem) && ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange);
for (// Focusing a node can change the scroll position, which is undesirable
- var ancestors = [], ancestor = priorFocusedElem; ancestor = ancestor.parentNode; ) ancestor.nodeType === ELEMENT_NODE$2 && ancestors.push({
+ var ancestors = [], ancestor = priorFocusedElem; ancestor = ancestor.parentNode; ) ancestor.nodeType === ELEMENT_NODE$1 && ancestors.push({
element: ancestor,
left: ancestor.scrollLeft,
top: ancestor.scrollTop
@@ -6058,35 +5919,13 @@ var ReactInputSelection = {
void 0 === end && (end = start), "selectionStart" in input ? (input.selectionStart = start,
input.selectionEnd = Math.min(end, input.value.length)) : ReactDOMSelection_1.setOffsets(input, offsets);
}
-}, ReactInputSelection_1 = ReactInputSelection, ReactVersion = "16.0.0-beta.5", ELEMENT_NODE$3 = HTMLNodeType_1.ELEMENT_NODE, findFiber = function(arg) {
- invariant(!1, "Missing injection for fiber findDOMNode");
-}, findStack = function(arg) {
- invariant(!1, "Missing injection for stack findDOMNode");
-}, findDOMNode = function(componentOrElement) {
- if (null == componentOrElement) return null;
- if (componentOrElement.nodeType === ELEMENT_NODE$3) return componentOrElement;
- var inst = ReactInstanceMap_1.get(componentOrElement);
- if (inst) return "number" == typeof inst.tag ? findFiber(inst) : findStack(inst);
- "function" == typeof componentOrElement.render ? invariant(!1, "Unable to find node on an unmounted component.") : invariant(!1, "Element appears to be neither ReactComponent nor DOMNode. Keys: %s", Object.keys(componentOrElement));
-};
-
-findDOMNode._injectFiber = function(fn) {
- findFiber = fn;
-}, findDOMNode._injectStack = function(fn) {
- findStack = fn;
-};
-
-var findDOMNode_1 = findDOMNode, HostComponent$10 = ReactTypeOfWork.HostComponent;
+}, ReactInputSelection_1 = ReactInputSelection, ReactVersion = "16.0.0-beta.5", HostComponent$10 = ReactTypeOfWork.HostComponent;
function getParent(inst) {
- if (void 0 !== inst._hostParent) return inst._hostParent;
- if ("number" == typeof inst.tag) {
- do {
- inst = inst.return;
- } while (inst && inst.tag !== HostComponent$10);
- if (inst) return inst;
- }
- return null;
+ do {
+ inst = inst.return;
+ } while (inst && inst.tag !== HostComponent$10);
+ return inst || null;
}
/**
@@ -7764,10 +7603,7 @@ DOMProperty_1.injection.injectDOMPropertyConfig(HTMLDOMPropertyConfig_1), DOMPro
var ReactFeatureFlags = require("ReactFeatureFlags"), ReactDOMFeatureFlags = require("ReactDOMFeatureFlags"), isValidElement = React.isValidElement, injectInternals = ReactFiberDevToolsHook.injectInternals, ELEMENT_NODE = HTMLNodeType_1.ELEMENT_NODE, TEXT_NODE = HTMLNodeType_1.TEXT_NODE, COMMENT_NODE = HTMLNodeType_1.COMMENT_NODE, DOCUMENT_NODE = HTMLNodeType_1.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = HTMLNodeType_1.DOCUMENT_FRAGMENT_NODE, ROOT_ATTRIBUTE_NAME = DOMProperty_1.ROOT_ATTRIBUTE_NAME, getChildNamespace = DOMNamespaces.getChildNamespace, createElement = ReactDOMFiberComponent_1.createElement, setInitialProperties = ReactDOMFiberComponent_1.setInitialProperties, diffProperties = ReactDOMFiberComponent_1.diffProperties, updateProperties = ReactDOMFiberComponent_1.updateProperties, diffHydratedProperties = ReactDOMFiberComponent_1.diffHydratedProperties, diffHydratedText = ReactDOMFiberComponent_1.diffHydratedText, warnForDeletedHydratableElement = ReactDOMFiberComponent_1.warnForDeletedHydratableElement, warnForDeletedHydratableText = ReactDOMFiberComponent_1.warnForDeletedHydratableText, warnForInsertedHydratedElement = ReactDOMFiberComponent_1.warnForInsertedHydratedElement, warnForInsertedHydratedText = ReactDOMFiberComponent_1.warnForInsertedHydratedText, precacheFiberNode = ReactDOMComponentTree_1.precacheFiberNode, updateFiberProps = ReactDOMComponentTree_1.updateFiberProps;
-ReactControlledComponent_1.injection.injectFiberControlledHostComponent(ReactDOMFiberComponent_1),
-findDOMNode_1._injectFiber(function(fiber) {
- return DOMRenderer.findHostInstance(fiber);
-});
+ReactControlledComponent_1.injection.injectFiberControlledHostComponent(ReactDOMFiberComponent_1);
var eventsEnabled = null, selectionInformation = null;
@@ -7944,6 +7780,13 @@ function renderSubtreeIntoContainer(parentComponent, children, container, forceH
}
var ReactDOMFiber = {
+ findDOMNode: function(componentOrElement) {
+ if (null == componentOrElement) return null;
+ if (componentOrElement.nodeType === ELEMENT_NODE) return componentOrElement;
+ var inst = ReactInstanceMap_1.get(componentOrElement);
+ if (inst) return DOMRenderer.findHostInstance(inst);
+ "function" == typeof componentOrElement.render ? invariant(!1, "Unable to find node on an unmounted component.") : invariant(!1, "Element appears to be neither ReactComponent nor DOMNode. Keys: %s", Object.keys(componentOrElement));
+ },
hydrate: function(element, container, callback) {
// TODO: throw or warn if we couldn't hydrate?
return renderSubtreeIntoContainer(null, element, container, !0, callback);
@@ -7968,7 +7811,6 @@ var ReactDOMFiber = {
});
}), !0);
},
- findDOMNode: findDOMNode_1,
unstable_createPortal: function(children, container) {
var key = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null;
// TODO: pass ReactDOM portal implementation as third argument
diff --git a/facebook-www/ReactDOMServer-dev.js b/facebook-www/ReactDOMServer-dev.js
index c6925f6..2b67a95 100644
--- a/facebook-www/ReactDOMServer-dev.js
+++ b/facebook-www/ReactDOMServer-dev.js
@@ -862,6 +862,20 @@ function dangerousStyleValue(name, value, isCustomProperty) {
var dangerousStyleValue_1 = dangerousStyleValue;
+var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
+
+var ReactGlobalSharedState = {
+ ReactCurrentOwner: ReactInternals.ReactCurrentOwner
+};
+
+{
+ Object.assign(ReactGlobalSharedState, {
+ ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
+ });
+}
+
+var ReactGlobalSharedState_1 = ReactGlobalSharedState;
+
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
@@ -874,44 +888,20 @@ var dangerousStyleValue_1 = dangerousStyleValue;
*
*/
-function getComponentName$2(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName$2(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
var getComponentName_1 = getComponentName$2;
-var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
-
-var ReactGlobalSharedState = {
- ReactCurrentOwner: ReactInternals.ReactCurrentOwner
-};
-
-{
- Object.assign(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
- ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
- });
-}
-
-var ReactGlobalSharedState_1 = ReactGlobalSharedState;
-
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
@@ -1002,7 +992,7 @@ var ReactFiberComponentTreeHook = {
var ReactDebugCurrentFrame$1 = ReactGlobalSharedState_1.ReactDebugCurrentFrame;
{
- var getComponentName$3 = getComponentName_1;
+ var getComponentName$1 = getComponentName_1;
var _require2$1 = ReactFiberComponentTreeHook,
getStackAddendumByWorkInProgressFiber = _require2$1.getStackAddendumByWorkInProgressFiber;
@@ -1015,7 +1005,7 @@ function getCurrentFiberOwnerName$1() {
return null;
}
if (fiber._debugOwner != null) {
- return getComponentName$3(fiber._debugOwner);
+ return getComponentName$1(fiber._debugOwner);
}
}
return null;
@@ -1061,7 +1051,6 @@ var warnValidStyle$1 = emptyFunction;
{
var camelizeStyleName$1 = camelizeStyleName;
- var getComponentName$1 = getComponentName_1;
var warning$4 = require$$0;
var _require = ReactDebugCurrentFiber_1,
@@ -1080,62 +1069,57 @@ var warnValidStyle$1 = emptyFunction;
var warnedForNaNValue = false;
var warnedForInfinityValue = false;
- var warnHyphenatedStyleName = function (name, owner) {
+ var warnHyphenatedStyleName = function (name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
- warning$4(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName$1(name), checkRenderMessage(owner));
+ warning$4(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName$1(name), checkRenderMessage());
};
- var warnBadVendoredStyleName = function (name, owner) {
+ var warnBadVendoredStyleName = function (name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
- warning$4(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner));
+ warning$4(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage());
};
- var warnStyleValueWithSemicolon = function (name, value, owner) {
+ var warnStyleValueWithSemicolon = function (name, value) {
if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
return;
}
warnedStyleValues[value] = true;
- warning$4(false, "Style property values shouldn't contain a semicolon.%s " + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, ''));
+ warning$4(false, "Style property values shouldn't contain a semicolon.%s " + 'Try "%s: %s" instead.', checkRenderMessage(), name, value.replace(badStyleValueWithSemicolonPattern, ''));
};
- var warnStyleValueIsNaN = function (name, value, owner) {
+ var warnStyleValueIsNaN = function (name, value) {
if (warnedForNaNValue) {
return;
}
warnedForNaNValue = true;
- warning$4(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner));
+ warning$4(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage());
};
- var warnStyleValueIsInfinity = function (name, value, owner) {
+ var warnStyleValueIsInfinity = function (name, value) {
if (warnedForInfinityValue) {
return;
}
warnedForInfinityValue = true;
- warning$4(false, '`Infinity` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner));
+ warning$4(false, '`Infinity` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage());
};
- var checkRenderMessage = function (owner) {
+ var checkRenderMessage = function () {
var ownerName;
- if (owner != null) {
- // Stack passes the owner manually all the way to CSSPropertyOperations.
- ownerName = getComponentName$1(owner);
- } else {
- // Fiber doesn't pass it but uses ReactDebugCurrentFiber to track it.
- // It is only enabled in development and tracks host components too.
- ownerName = getCurrentFiberOwnerName();
- // TODO: also report the stack.
- }
+ // Fiber doesn't pass it but uses ReactDebugCurrentFiber to track it.
+ // It is only enabled in development and tracks host components too.
+ ownerName = getCurrentFiberOwnerName();
+ // TODO: also report the stack.
if (ownerName) {
return '\n\nCheck the render method of `' + ownerName + '`.';
}
@@ -1143,24 +1127,19 @@ var warnValidStyle$1 = emptyFunction;
};
warnValidStyle$1 = function (name, value, component) {
- var owner;
- if (component) {
- // TODO: this only works with Stack. Seems like we need to add unit tests?
- owner = component._currentElement._owner;
- }
if (name.indexOf('-') > -1) {
- warnHyphenatedStyleName(name, owner);
+ warnHyphenatedStyleName(name);
} else if (badVendoredStyleNamePattern.test(name)) {
- warnBadVendoredStyleName(name, owner);
+ warnBadVendoredStyleName(name);
} else if (badStyleValueWithSemicolonPattern.test(value)) {
- warnStyleValueWithSemicolon(name, value, owner);
+ warnStyleValueWithSemicolon(name, value);
}
if (typeof value === 'number') {
if (isNaN(value)) {
- warnStyleValueIsNaN(name, value, owner);
+ warnStyleValueIsNaN(name, value);
} else if (!isFinite(value)) {
- warnStyleValueIsInfinity(name, value, owner);
+ warnStyleValueIsInfinity(name, value);
}
}
};
@@ -1244,27 +1223,17 @@ var rARIACamel = new RegExp('^(aria)[A-Z][' + DOMProperty_1.ATTRIBUTE_NAME_CHAR
var warning$5 = require$$0;
var _require$1 = ReactGlobalSharedState_1,
- ReactComponentTreeHook = _require$1.ReactComponentTreeHook,
ReactDebugCurrentFrame$2 = _require$1.ReactDebugCurrentFrame;
- var getStackAddendumByID = ReactComponentTreeHook.getStackAddendumByID;
-
-
var validAriaProperties = validAriaProperties$1;
}
-function getStackAddendum$1(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$2.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$1() {
+ var stack = ReactDebugCurrentFrame$2.getStackAddendum();
+ return stack != null ? stack : '';
}
-function validateProperty(tagName, name, debugID) {
+function validateProperty(tagName, name) {
if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
return true;
}
@@ -1276,13 +1245,13 @@ function validateProperty(tagName, name, debugID) {
// If this is an aria-* attribute, but is not listed in the known DOM
// DOM properties, then it is an invalid aria-* attribute.
if (correctName == null) {
- warning$5(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s', name, getStackAddendum$1(debugID));
+ warning$5(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s', name, getStackAddendum$1());
warnedProperties[name] = true;
return true;
}
// aria-* attributes should be lowercase; suggest the lowercase version.
if (name !== correctName) {
- warning$5(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?%s', name, correctName, getStackAddendum$1(debugID));
+ warning$5(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?%s', name, correctName, getStackAddendum$1());
warnedProperties[name] = true;
return true;
}
@@ -1300,7 +1269,7 @@ function validateProperty(tagName, name, debugID) {
}
// aria-* attributes should be lowercase; suggest the lowercase version.
if (name !== standardName) {
- warning$5(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$1(debugID));
+ warning$5(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$1());
warnedProperties[name] = true;
return true;
}
@@ -1309,11 +1278,11 @@ function validateProperty(tagName, name, debugID) {
return true;
}
-function warnInvalidARIAProps(type, props, debugID) {
+function warnInvalidARIAProps(type, props) {
var invalidProps = [];
for (var key in props) {
- var isValid = validateProperty(type, key, debugID);
+ var isValid = validateProperty(type, key);
if (!isValid) {
invalidProps.push(key);
}
@@ -1324,33 +1293,21 @@ function warnInvalidARIAProps(type, props, debugID) {
}).join(', ');
if (invalidProps.length === 1) {
- warning$5(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1(debugID));
+ warning$5(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1());
} else if (invalidProps.length > 1) {
- warning$5(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1(debugID));
+ warning$5(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1());
}
}
-function validateProperties(type, props, debugID /* Stack only */) {
+function validateProperties(type, props) {
if (type.indexOf('-') >= 0 || props.is) {
return;
}
- warnInvalidARIAProps(type, props, debugID);
+ warnInvalidARIAProps(type, props);
}
var ReactDOMInvalidARIAHook = {
- // Fiber
- validateProperties: validateProperties,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties
};
var ReactDOMInvalidARIAHook_1 = ReactDOMInvalidARIAHook;
@@ -1359,50 +1316,29 @@ var ReactDOMInvalidARIAHook_1 = ReactDOMInvalidARIAHook;
var warning$6 = require$$0;
var _require$2 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$1 = _require$2.ReactComponentTreeHook,
ReactDebugCurrentFrame$3 = _require$2.ReactDebugCurrentFrame;
-
- var getStackAddendumByID$1 = ReactComponentTreeHook$1.getStackAddendumByID;
}
var didWarnValueNull = false;
-function getStackAddendum$2(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID$1(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$3.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$2() {
+ var stack = ReactDebugCurrentFrame$3.getStackAddendum();
+ return stack != null ? stack : '';
}
-function validateProperties$1(type, props, debugID /* Stack only */) {
+function validateProperties$1(type, props) {
if (type !== 'input' && type !== 'textarea' && type !== 'select') {
return;
}
if (props != null && props.value === null && !didWarnValueNull) {
- warning$6(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', type, getStackAddendum$2(debugID));
+ warning$6(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', type, getStackAddendum$2());
didWarnValueNull = true;
}
}
var ReactDOMNullInputValuePropHook = {
- // Fiber
- validateProperties: validateProperties$1,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$1(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$1(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties$1
};
var ReactDOMNullInputValuePropHook_1 = ReactDOMNullInputValuePropHook;
@@ -2080,21 +2016,12 @@ var possibleStandardNames_1 = possibleStandardNames$1;
var warning$7 = require$$0;
var _require$3 = ReactGlobalSharedState_1,
- ReactComponentTreeHook$2 = _require$3.ReactComponentTreeHook,
ReactDebugCurrentFrame$4 = _require$3.ReactDebugCurrentFrame;
-
- var getStackAddendumByID$2 = ReactComponentTreeHook$2.getStackAddendumByID;
}
-function getStackAddendum$3(debugID) {
- if (debugID != null) {
- // This can only happen on Stack
- return getStackAddendumByID$2(debugID);
- } else {
- // This can only happen on Fiber / Server
- var stack = ReactDebugCurrentFrame$4.getStackAddendum();
- return stack != null ? stack : '';
- }
+function getStackAddendum$3() {
+ var stack = ReactDebugCurrentFrame$4.getStackAddendum();
+ return stack != null ? stack : '';
}
{
@@ -2103,7 +2030,7 @@ function getStackAddendum$3(debugID) {
var ARIA_NAME_REGEX = /^aria-/i;
var possibleStandardNames = possibleStandardNames_1;
- var validateProperty$1 = function (tagName, name, value, debugID) {
+ var validateProperty$1 = function (tagName, name, value) {
if (warnedProperties$1.hasOwnProperty(name) && warnedProperties$1[name]) {
return true;
}
@@ -2122,7 +2049,7 @@ function getStackAddendum$3(debugID) {
var registrationName = EventPluginRegistry_1.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry_1.possibleRegistrationNames[lowerCasedName] : null;
if (registrationName != null) {
- warning$7(false, 'Unknown event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$3(debugID));
+ warning$7(false, 'Unknown event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$3());
warnedProperties$1[name] = true;
return true;
}
@@ -2145,7 +2072,7 @@ function getStackAddendum$3(debugID) {
}
if (typeof value === 'number' && isNaN(value)) {
- warning$7(false, 'Received NaN for numeric attribute `%s`. If this is expected, cast ' + 'the value to a string.%s', name, getStackAddendum$3(debugID));
+ warning$7(false, 'Received NaN for numeric attribute `%s`. If this is expected, cast ' + 'the value to a string.%s', name, getStackAddendum$3());
warnedProperties$1[name] = true;
return true;
}
@@ -2154,7 +2081,7 @@ function getStackAddendum$3(debugID) {
if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
var standardName = possibleStandardNames[lowerCasedName];
if (standardName !== name) {
- warning$7(false, 'Invalid DOM property `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$3(debugID));
+ warning$7(false, 'Invalid DOM property `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$3());
warnedProperties$1[name] = true;
return true;
}
@@ -2176,15 +2103,15 @@ function getStackAddendum$3(debugID) {
};
}
-var warnUnknownProperties = function (type, props, debugID) {
+var warnUnknownProperties = function (type, props) {
var unknownProps = [];
for (var key in props) {
- var isValid = validateProperty$1(type, key, props[key], debugID);
+ var isValid = validateProperty$1(type, key, props[key]);
if (!isValid) {
unknownProps.push(key);
var value = props[key];
if (typeof value === 'object' && value !== null) {
- warning$7(false, 'The %s prop on <%s> is not a known property, and was given an object.' + 'Remove it, or it will appear in the ' + 'DOM after a future React update.%s', key, type, getStackAddendum$3(debugID));
+ warning$7(false, 'The %s prop on <%s> is not a known property, and was given an object.' + 'Remove it, or it will appear in the ' + 'DOM after a future React update.%s', key, type, getStackAddendum$3());
}
}
}
@@ -2194,33 +2121,21 @@ var warnUnknownProperties = function (type, props, debugID) {
}).join(', ');
if (unknownProps.length === 1) {
- warning$7(false, 'Invalid prop %s on <%s> tag. Either remove this prop from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$3(debugID));
+ warning$7(false, 'Invalid prop %s on <%s> tag. Either remove this prop from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$3());
} else if (unknownProps.length > 1) {
- warning$7(false, 'Invalid props %s on <%s> tag. Either remove these props from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$3(debugID));
+ warning$7(false, 'Invalid props %s on <%s> tag. Either remove these props from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, type, getStackAddendum$3());
}
};
-function validateProperties$2(type, props, debugID /* Stack only */) {
+function validateProperties$2(type, props) {
if (type.indexOf('-') >= 0 || props.is) {
return;
}
- warnUnknownProperties(type, props, debugID);
+ warnUnknownProperties(type, props);
}
var ReactDOMUnknownPropertyHook = {
- // Fiber
- validateProperties: validateProperties$2,
- // Stack
- onBeforeMountComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$2(element.type, element.props, debugID);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if (true && element != null && typeof element.type === 'string') {
- validateProperties$2(element.type, element.props, debugID);
- }
- }
+ validateProperties: validateProperties$2
};
var ReactDOMUnknownPropertyHook_1 = ReactDOMUnknownPropertyHook;
diff --git a/facebook-www/ReactDOMUnstableNativeDependencies-dev.js b/facebook-www/ReactDOMUnstableNativeDependencies-dev.js
index 086f93d..017c4c6 100644
--- a/facebook-www/ReactDOMUnstableNativeDependencies-dev.js
+++ b/facebook-www/ReactDOMUnstableNativeDependencies-dev.js
@@ -761,38 +761,20 @@ var EventPluginHub = {
// TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
// live here; needs to be moved to a better place soon
- if (typeof inst.tag === 'number') {
- var stateNode = inst.stateNode;
- if (!stateNode) {
- // Work in progress (ex: onload events in incremental mode).
- return null;
- }
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
- if (!props) {
- // Work in progress.
- return null;
- }
- listener = props[registrationName];
- if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
- return null;
- }
- } else {
- var currentElement = inst._currentElement;
- if (typeof currentElement === 'string' || typeof currentElement === 'number') {
- // Text node, let it bubble through.
- return null;
- }
- if (!inst._rootNodeID) {
- // If the instance is already unmounted, we have no listeners.
- return null;
- }
- var _props = currentElement.props;
- listener = _props[registrationName];
- if (shouldPreventMouseEvent(registrationName, currentElement.type, _props)) {
- return null;
- }
+ var stateNode = inst.stateNode;
+ if (!stateNode) {
+ // Work in progress (ex: onload events in incremental mode).
+ return null;
+ }
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
+ if (!props) {
+ // Work in progress.
+ return null;
+ }
+ listener = props[registrationName];
+ if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
+ return null;
}
-
invariant(!listener || typeof listener === 'function', 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
return listener;
},
@@ -885,21 +867,16 @@ var ReactTypeOfWork = {
var HostComponent = ReactTypeOfWork.HostComponent;
function getParent(inst) {
- if (inst._hostParent !== undefined) {
- return inst._hostParent;
- }
- if (typeof inst.tag === 'number') {
- do {
- inst = inst['return'];
- // TODO: If this is a HostRoot we might want to bail out.
- // That is depending on if we want nested subtrees (layers) to bubble
- // events to their parent. We could also go through parentNode on the
- // host node but that wouldn't work for React Native and doesn't let us
- // do the portal feature.
- } while (inst && inst.tag !== HostComponent);
- if (inst) {
- return inst;
- }
+ do {
+ inst = inst['return'];
+ // TODO: If this is a HostRoot we might want to bail out.
+ // That is depending on if we want nested subtrees (layers) to bubble
+ // events to their parent. We could also go through parentNode on the
+ // host node but that wouldn't work for React Native and doesn't let us
+ // do the portal feature.
+ } while (inst && inst.tag !== HostComponent);
+ if (inst) {
+ return inst;
}
return null;
}
diff --git a/facebook-www/ReactDOMUnstableNativeDependencies-prod.js b/facebook-www/ReactDOMUnstableNativeDependencies-prod.js
index 4f25346..0a74776 100644
--- a/facebook-www/ReactDOMUnstableNativeDependencies-prod.js
+++ b/facebook-www/ReactDOMUnstableNativeDependencies-prod.js
@@ -440,28 +440,12 @@ var EventPluginHub = {
* @return {?function} The stored callback.
*/
getListener: function(inst, registrationName) {
- var listener;
- // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
- // live here; needs to be moved to a better place soon
- if ("number" == typeof inst.tag) {
- var stateNode = inst.stateNode;
- if (!stateNode) // Work in progress (ex: onload events in incremental mode).
- return null;
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
- if (!props) // Work in progress.
- return null;
- if (listener = props[registrationName], shouldPreventMouseEvent(registrationName, inst.type, props)) return null;
- } else {
- var currentElement = inst._currentElement;
- if ("string" == typeof currentElement || "number" == typeof currentElement) // Text node, let it bubble through.
- return null;
- if (!inst._rootNodeID) // If the instance is already unmounted, we have no listeners.
- return null;
- var _props = currentElement.props;
- if (listener = _props[registrationName], shouldPreventMouseEvent(registrationName, currentElement.type, _props)) return null;
- }
- return invariant(!listener || "function" == typeof listener, "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener),
- listener;
+ var listener, stateNode = inst.stateNode;
+ if (!stateNode) // Work in progress (ex: onload events in incremental mode).
+ return null;
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(stateNode);
+ return props ? (listener = props[registrationName], shouldPreventMouseEvent(registrationName, inst.type, props) ? null : (invariant(!listener || "function" == typeof listener, "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener),
+ listener)) : null;
},
/**
* Allows registered plugins an opportunity to extract events from top-level
@@ -523,14 +507,10 @@ var EventPluginHub = {
}, HostComponent = ReactTypeOfWork.HostComponent;
function getParent(inst) {
- if (void 0 !== inst._hostParent) return inst._hostParent;
- if ("number" == typeof inst.tag) {
- do {
- inst = inst.return;
- } while (inst && inst.tag !== HostComponent);
- if (inst) return inst;
- }
- return null;
+ do {
+ inst = inst.return;
+ } while (inst && inst.tag !== HostComponent);
+ return inst || null;
}
/**
diff --git a/facebook-www/ReactShallowRenderer-dev.js b/facebook-www/ReactShallowRenderer-dev.js
index 8c6e2f6..2bc306f 100644
--- a/facebook-www/ReactShallowRenderer-dev.js
+++ b/facebook-www/ReactShallowRenderer-dev.js
@@ -52,23 +52,14 @@ var describeComponentFrame = function (name, source, ownerName) {
*
*/
-function getComponentName(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
diff --git a/facebook-www/ReactTestRendererFiber-dev.js b/facebook-www/ReactTestRendererFiber-dev.js
index 40d5d47..8ee4b6d 100644
--- a/facebook-www/ReactTestRendererFiber-dev.js
+++ b/facebook-www/ReactTestRendererFiber-dev.js
@@ -537,23 +537,14 @@ var ReactFiberUpdateQueue = {
*
*/
-function getComponentName$1(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName$1(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -613,7 +604,6 @@ var ReactGlobalSharedState = {
{
Object.assign(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
});
}
@@ -2500,14 +2490,9 @@ function coerceRef(current, element) {
var owner = element._owner;
var inst = void 0;
if (owner) {
- if (typeof owner.tag === 'number') {
- var ownerFiber = owner;
- invariant(ownerFiber.tag === ClassComponent$8, 'Stateless function components cannot have refs.');
- inst = ownerFiber.stateNode;
- } else {
- // Stack
- inst = owner.getPublicInstance();
- }
+ var ownerFiber = owner;
+ invariant(ownerFiber.tag === ClassComponent$8, 'Stateless function components cannot have refs.');
+ inst = ownerFiber.stateNode;
}
invariant(inst, 'Missing owner for string ref %s. This error is likely caused by a ' + 'bug in React. Please file an issue.', mixedRef);
var stringRef = '' + mixedRef;
@@ -7289,46 +7274,6 @@ var ReactFiberScheduler = function (config) {
};
};
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule getContextForSubtree
- *
- */
-
-
-
-
-
-
-var getContextFiber = function (arg) {
- invariant(false, 'Missing injection for fiber getContextForSubtree');
-};
-
-function getContextForSubtree(parentComponent) {
- if (!parentComponent) {
- return emptyObject;
- }
-
- var instance = ReactInstanceMap_1.get(parentComponent);
- if (typeof instance.tag === 'number') {
- return getContextFiber(instance);
- } else {
- return instance._processChildContext(instance._context);
- }
-}
-
-getContextForSubtree._injectFiber = function (fn) {
- getContextFiber = fn;
-};
-
-var getContextForSubtree_1 = getContextForSubtree;
-
var ReactFeatureFlags = require('ReactFeatureFlags');
var addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate;
@@ -7341,8 +7286,11 @@ var createFiberRoot = ReactFiberRoot.createFiberRoot;
+
var HostComponent$1 = ReactTypeOfWork.HostComponent;
+
+
{
var warning = require$$0;
var ReactFiberInstrumentation = ReactFiberInstrumentation_1;
@@ -7353,12 +7301,15 @@ var HostComponent$1 = ReactTypeOfWork.HostComponent;
var findCurrentHostFiber = ReactFiberTreeReflection.findCurrentHostFiber;
var findCurrentHostFiberWithNoPortals = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
+function getContextForSubtree(parentComponent) {
+ if (!parentComponent) {
+ return emptyObject;
+ }
-
-getContextForSubtree_1._injectFiber(function (fiber) {
+ var fiber = ReactInstanceMap_1.get(parentComponent);
var parentContext = findCurrentUnmaskedContext(fiber);
return isContextProvider(fiber) ? processChildContext(fiber, parentContext, false) : parentContext;
-});
+}
var ReactFiberReconciler = function (config) {
var getPublicInstance = config.getPublicInstance;
@@ -7413,7 +7364,7 @@ var ReactFiberReconciler = function (config) {
}
}
- var context = getContextForSubtree_1(parentComponent);
+ var context = getContextForSubtree(parentComponent);
if (container.context === null) {
container.context = context;
} else {
@@ -7674,15 +7625,9 @@ function restoreStateOfTarget(target) {
// Unmounted
return;
}
- if (typeof internalInstance.tag === 'number') {
- invariant(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === 'function', 'Fiber needs to be injected to handle a fiber target for controlled ' + 'events. This error is likely caused by a bug in React. Please file an issue.');
- var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(internalInstance.stateNode);
- fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props);
- return;
- }
- invariant(typeof internalInstance.restoreControlledState === 'function', 'The internal instance must be a React host component. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- // If it is not a Fiber, we can just use dynamic dispatch.
- internalInstance.restoreControlledState();
+ invariant(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === 'function', 'Fiber needs to be injected to handle a fiber target for controlled ' + 'events. This error is likely caused by a bug in React. Please file an issue.');
+ var props = EventPluginUtils_1.getFiberCurrentPropsFromNode(internalInstance.stateNode);
+ fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props);
}
var ReactControlledComponent = {
@@ -7719,30 +7664,22 @@ var ReactControlledComponent = {
var ReactControlledComponent_1 = ReactControlledComponent;
-// Used as a way to call batchedUpdates when we don't know if we're in a Fiber
-// or Stack context. Such as when we're dispatching events or if third party
+// Used as a way to call batchedUpdates when we don't have a reference to
+// the renderer. Such as when we're dispatching events or if third party
// libraries need to call batchedUpdates. Eventually, this API will go away when
// everything is batched by default. We'll then have a similar API to opt-out of
// scheduled work and instead do synchronous work.
// Defaults
-var stackBatchedUpdates = function (fn, a, b, c, d, e) {
- return fn(a, b, c, d, e);
-};
var fiberBatchedUpdates = function (fn, bookkeeping) {
return fn(bookkeeping);
};
-function performFiberBatchedUpdates(fn, bookkeeping) {
+function batchedUpdates(fn, bookkeeping) {
// If we have Fiber loaded, we need to wrap this in a batching call so that
// Fiber can apply its default priority for this call.
return fiberBatchedUpdates(fn, bookkeeping);
}
-function batchedUpdates(fn, bookkeeping) {
- // We first perform work with the stack batching strategy, by passing our
- // indirection to it.
- return stackBatchedUpdates(performFiberBatchedUpdates, fn, bookkeeping);
-}
var isNestingBatched = false;
function batchedUpdatesWithControlledComponents(fn, bookkeeping) {
@@ -7766,9 +7703,6 @@ function batchedUpdatesWithControlledComponents(fn, bookkeeping) {
}
var ReactGenericBatchingInjection = {
- injectStackBatchedUpdates: function (_batchedUpdates) {
- stackBatchedUpdates = _batchedUpdates;
- },
injectFiberBatchedUpdates: function (_batchedUpdates) {
fiberBatchedUpdates = _batchedUpdates;
}
diff --git a/facebook-www/ReactTestUtils-dev.js b/facebook-www/ReactTestUtils-dev.js
index 0bff352..4ac2d1a 100644
--- a/facebook-www/ReactTestUtils-dev.js
+++ b/facebook-www/ReactTestUtils-dev.js
@@ -252,7 +252,6 @@ var ReactGlobalSharedState = {
{
Object.assign(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
});
}
@@ -271,23 +270,14 @@ var ReactGlobalSharedState_1 = ReactGlobalSharedState;
*
*/
-function getComponentName(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -1172,28 +1162,6 @@ function Event(suffix) {}
* @class ReactTestUtils
*/
-function findAllInRenderedStackTreeInternal(inst, test) {
- if (!inst || !inst.getPublicInstance) {
- return [];
- }
- var publicInst = inst.getPublicInstance();
- var ret = test(publicInst) ? [publicInst] : [];
- var currentElement = inst._currentElement;
- if (ReactTestUtils.isDOMComponent(publicInst)) {
- var renderedChildren = inst._renderedChildren;
- var key;
- for (key in renderedChildren) {
- if (!renderedChildren.hasOwnProperty(key)) {
- continue;
- }
- ret = ret.concat(findAllInRenderedStackTreeInternal(renderedChildren[key], test));
- }
- } else if (React.isValidElement(currentElement) && typeof currentElement.type === 'function') {
- ret = ret.concat(findAllInRenderedStackTreeInternal(inst._renderedComponent, test));
- }
- return ret;
-}
-
function findAllInRenderedFiberTreeInternal(fiber, test) {
if (!fiber) {
return [];
@@ -1280,51 +1248,17 @@ var ReactTestUtils = {
return false;
}
var internalInstance = ReactInstanceMap_1.get(inst);
- var constructor = typeof internalInstance.tag === 'number' ? internalInstance.type // Fiber reconciler
- : internalInstance._currentElement.type; // Stack reconciler
-
+ var constructor = internalInstance.type;
return constructor === type;
},
- // TODO: deprecate? It's undocumented and unused.
- isCompositeComponentElement: function (inst) {
- if (!React.isValidElement(inst)) {
- return false;
- }
- // We check the prototype of the type that will get mounted, not the
- // instance itself. This is a future proof way of duck typing.
- var prototype = inst.type.prototype;
- return typeof prototype.render === 'function' && typeof prototype.setState === 'function';
- },
-
- // TODO: deprecate? It's undocumented and unused.
- isCompositeComponentElementWithType: function (inst, type) {
- var internalInstance = ReactInstanceMap_1.get(inst);
- var constructor = internalInstance._currentElement.type;
-
- return !!(ReactTestUtils.isCompositeComponentElement(inst) && constructor === type);
- },
-
- // TODO: deprecate? It's undocumented and unused.
- getRenderedChildOfCompositeComponent: function (inst) {
- if (!ReactTestUtils.isCompositeComponent(inst)) {
- return null;
- }
- var internalInstance = ReactInstanceMap_1.get(inst);
- return internalInstance._renderedComponent.getPublicInstance();
- },
-
findAllInRenderedTree: function (inst, test) {
if (!inst) {
return [];
}
invariant(ReactTestUtils.isCompositeComponent(inst), 'findAllInRenderedTree(...): instance must be a composite component');
var internalInstance = ReactInstanceMap_1.get(inst);
- if (internalInstance && typeof internalInstance.tag === 'number') {
- return findAllInRenderedFiberTreeInternal(internalInstance, test);
- } else {
- return findAllInRenderedStackTreeInternal(internalInstance, test);
- }
+ return findAllInRenderedFiberTreeInternal(internalInstance, test);
},
/**
diff --git a/packages/react-art/cjs/react-art.development.js b/packages/react-art/cjs/react-art.development.js
index d5dc136..be6f1da 100644
--- a/packages/react-art/cjs/react-art.development.js
+++ b/packages/react-art/cjs/react-art.development.js
@@ -560,23 +560,14 @@ var ReactFiberUpdateQueue = {
*
*/
-function getComponentName$1(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName$1(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -636,7 +627,6 @@ var ReactGlobalSharedState = {
{
_assign(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
});
}
@@ -2523,14 +2513,9 @@ function coerceRef(current$$1, element) {
var owner = element._owner;
var inst = void 0;
if (owner) {
- if (typeof owner.tag === 'number') {
- var ownerFiber = owner;
- !(ownerFiber.tag === ClassComponent$7) ? invariant(false, 'Stateless function components cannot have refs.') : void 0;
- inst = ownerFiber.stateNode;
- } else {
- // Stack
- inst = owner.getPublicInstance();
- }
+ var ownerFiber = owner;
+ !(ownerFiber.tag === ClassComponent$7) ? invariant(false, 'Stateless function components cannot have refs.') : void 0;
+ inst = ownerFiber.stateNode;
}
!inst ? invariant(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;
var stringRef = '' + mixedRef;
@@ -7312,46 +7297,6 @@ var ReactFiberScheduler = function (config) {
};
};
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule getContextForSubtree
- *
- */
-
-
-
-
-
-
-var getContextFiber = function (arg) {
- invariant(false, 'Missing injection for fiber getContextForSubtree');
-};
-
-function getContextForSubtree(parentComponent) {
- if (!parentComponent) {
- return emptyObject;
- }
-
- var instance = ReactInstanceMap_1.get(parentComponent);
- if (typeof instance.tag === 'number') {
- return getContextFiber(instance);
- } else {
- return instance._processChildContext(instance._context);
- }
-}
-
-getContextForSubtree._injectFiber = function (fn) {
- getContextFiber = fn;
-};
-
-var getContextForSubtree_1 = getContextForSubtree;
-
var addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate;
var findCurrentUnmaskedContext = ReactFiberContext.findCurrentUnmaskedContext;
@@ -7362,8 +7307,11 @@ var createFiberRoot = ReactFiberRoot.createFiberRoot;
+
var HostComponent = ReactTypeOfWork.HostComponent;
+
+
{
var warning = require$$0;
var ReactFiberInstrumentation = ReactFiberInstrumentation_1;
@@ -7374,12 +7322,15 @@ var HostComponent = ReactTypeOfWork.HostComponent;
var findCurrentHostFiber = ReactFiberTreeReflection.findCurrentHostFiber;
var findCurrentHostFiberWithNoPortals = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
+function getContextForSubtree(parentComponent) {
+ if (!parentComponent) {
+ return emptyObject;
+ }
-
-getContextForSubtree_1._injectFiber(function (fiber) {
+ var fiber = ReactInstanceMap_1.get(parentComponent);
var parentContext = findCurrentUnmaskedContext(fiber);
return isContextProvider(fiber) ? processChildContext(fiber, parentContext, false) : parentContext;
-});
+}
var ReactFiberReconciler = function (config) {
var getPublicInstance = config.getPublicInstance;
@@ -7434,7 +7385,7 @@ var ReactFiberReconciler = function (config) {
}
}
- var context = getContextForSubtree_1(parentComponent);
+ var context = getContextForSubtree(parentComponent);
if (container.context === null) {
container.context = context;
} else {
diff --git a/packages/react-art/cjs/react-art.production.min.js b/packages/react-art/cjs/react-art.production.min.js
index 4242776..bd1a7de 100644
--- a/packages/react-art/cjs/react-art.production.min.js
+++ b/packages/react-art/cjs/react-art.production.min.js
@@ -1,119 +1,119 @@
-var ba=require("object-assign"),ca=require("art/modes/current"),da=require("art/modes/fast-noSideEffects"),fa=require("art/core/transform");require("fbjs/lib/invariant");var n=require("fbjs/lib/emptyObject"),ha=require("react"),ia=require("fbjs/lib/shallowEqual"),la=require("fbjs/lib/ExecutionEnvironment");
-function p(b){for(var a=arguments.length-1,c="Minified React error #"+b+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+b,d=0;d<a;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);a=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");a.name="Invariant Violation";a.framesToPop=1;throw a;}
-var ma={disableNewFiberFeatures:!1,enableAsyncSubtreeAPI:!1},z={NoEffect:0,PerformedWork:1,Placement:2,Update:4,PlacementAndUpdate:6,Deletion:8,ContentReset:16,Callback:32,Err:64,Ref:128},I={NoWork:0,SynchronousPriority:1,TaskPriority:2,HighPriority:3,LowPriority:4,OffscreenPriority:5},J={IndeterminateComponent:0,FunctionalComponent:1,ClassComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,CoroutineComponent:7,CoroutineHandlerPhase:8,YieldComponent:9,Fragment:10},na=z.Callback,oa=I.NoWork,
-pa=I.SynchronousPriority,ra=I.TaskPriority,sa=J.ClassComponent,ta=J.HostRoot;function ua(b,a){return b!==ra&&b!==pa||a!==ra&&a!==pa?b===oa&&a!==oa?-255:b!==oa&&a===oa?255:b-a:0}function va(){return{first:null,last:null,hasForceUpdate:!1,callbackList:null}}function wa(b,a,c,d){null!==c?c.next=a:(a.next=b.first,b.first=a);null!==d?a.next=d:b.last=a}
-function xa(b,a){a=a.priorityLevel;var c=null;if(null!==b.last&&0>=ua(b.last.priorityLevel,a))c=b.last;else for(b=b.first;null!==b&&0>=ua(b.priorityLevel,a);)c=b,b=b.next;return c}function ya(b){var a=b.alternate,c=b.updateQueue;null===c&&(c=b.updateQueue=va());null!==a?(b=a.updateQueue,null===b&&(b=a.updateQueue=va())):b=null;return[c,b!==c?b:null]}
-function za(b,a){var c=ya(b);b=c[0];c=c[1];var d=xa(b,a),e=null!==d?d.next:b.first;if(null===c)return wa(b,a,d,e),null;var g=xa(c,a),l=null!==g?g.next:c.first;wa(b,a,d,e);if(e===l&&null!==e||d===g&&null!==d)return null===g&&(c.first=a),null===l&&(c.last=null),null;a={priorityLevel:a.priorityLevel,partialState:a.partialState,callback:a.callback,isReplace:a.isReplace,isForced:a.isForced,isTopLevelUnmount:a.isTopLevelUnmount,next:null};wa(c,a,g,l);return a}
-function Aa(b,a,c,d){b=b.partialState;return"function"===typeof b?b.call(a,c,d):b}
-var Ba={addUpdate:function(b,a,c,d){za(b,{priorityLevel:d,partialState:a,callback:c,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null})},addReplaceUpdate:function(b,a,c,d){za(b,{priorityLevel:d,partialState:a,callback:c,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null})},addForceUpdate:function(b,a,c){za(b,{priorityLevel:c,partialState:null,callback:a,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null})},getUpdatePriority:function(b){var a=b.updateQueue;return null===a||b.tag!==
-sa&&b.tag!==ta?oa:null!==a.first?a.first.priorityLevel:oa},addTopLevelUpdate:function(b,a,c,d){var e=null===a.element;a={priorityLevel:d,partialState:a,callback:c,isReplace:!1,isForced:!1,isTopLevelUnmount:e,next:null};c=za(b,a);e&&(e=ya(b),b=e[0],e=e[1],null!==b&&null!==a.next&&(a.next=null,b.last=a),null!==e&&null!==c&&null!==c.next&&(c.next=null,e.last=a))},beginUpdateQueue:function(b,a,c,d,e,g,l){null!==b&&b.updateQueue===c&&(c=a.updateQueue={first:c.first,last:c.last,callbackList:null,hasForceUpdate:!1});
-b=c.callbackList;for(var f=c.hasForceUpdate,y=!0,v=c.first;null!==v&&0>=ua(v.priorityLevel,l);){c.first=v.next;null===c.first&&(c.last=null);var E;if(v.isReplace)e=Aa(v,d,e,g),y=!0;else if(E=Aa(v,d,e,g))e=y?ba({},e,E):ba(e,E),y=!1;v.isForced&&(f=!0);null===v.callback||v.isTopLevelUnmount&&null!==v.next||(b=null!==b?b:[],b.push(v.callback),a.effectTag|=na);v=v.next}c.callbackList=b;c.hasForceUpdate=f;null!==c.first||null!==b||f||(a.updateQueue=null);return e},commitCallbacks:function(b,a,c){b=a.callbackList;
-if(null!==b)for(a.callbackList=null,a=0;a<b.length;a++){var d=b[a];"function"!==typeof d?p("191",d):void 0;d.call(c)}}};function Ca(b){if("function"===typeof b.getName)return b.getName();if("number"===typeof b.tag){b=b.type;if("string"===typeof b)return b;if("function"===typeof b)return b.displayName||b.name}return null}
-var Da={remove:function(b){b._reactInternalFiber=void 0},get:function(b){return b._reactInternalFiber},has:function(b){return void 0!==b._reactInternalFiber},set:function(b,a){b._reactInternalFiber=a}},Ea={ReactCurrentOwner:ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},Fa=J.HostComponent,Ga=J.HostRoot,Ha=J.HostPortal,Ia=J.HostText,Ma=z.NoEffect,Na=z.Placement;
-function Oa(b){var a=b;if(b.alternate)for(;a["return"];)a=a["return"];else{if((a.effectTag&Na)!==Ma)return 1;for(;a["return"];)if(a=a["return"],(a.effectTag&Na)!==Ma)return 1}return a.tag===Ga?2:3}function Pa(b){2!==Oa(b)?p("188"):void 0}
-function Qa(b){var a=b.alternate;if(!a)return a=Oa(b),3===a?p("188"):void 0,1===a?null:b;for(var c=b,d=a;;){var e=c["return"],g=e?e.alternate:null;if(!e||!g)break;if(e.child===g.child){for(var l=e.child;l;){if(l===c)return Pa(e),b;if(l===d)return Pa(e),a;l=l.sibling}p("188")}if(c["return"]!==d["return"])c=e,d=g;else{l=!1;for(var f=e.child;f;){if(f===c){l=!0;c=e;d=g;break}if(f===d){l=!0;d=e;c=g;break}f=f.sibling}if(!l){for(f=g.child;f;){if(f===c){l=!0;c=g;d=e;break}if(f===d){l=!0;d=g;c=e;break}f=f.sibling}l?
-void 0:p("189")}}c.alternate!==d?p("190"):void 0}c.tag!==Ga?p("188"):void 0;return c.stateNode.current===c?b:a}
-var Ra={isFiberMounted:function(b){return 2===Oa(b)},isMounted:function(b){return(b=Da.get(b))?2===Oa(b):!1},findCurrentFiberUsingSlowPath:Qa,findCurrentHostFiber:function(b){b=Qa(b);if(!b)return null;for(var a=b;;){if(a.tag===Fa||a.tag===Ia)return a;if(a.child)a.child["return"]=a,a=a.child;else{if(a===b)break;for(;!a.sibling;){if(!a["return"]||a["return"]===b)return null;a=a["return"]}a.sibling["return"]=a["return"];a=a.sibling}}return null},findCurrentHostFiberWithNoPortals:function(b){b=Qa(b);
-if(!b)return null;for(var a=b;;){if(a.tag===Fa||a.tag===Ia)return a;if(a.child&&a.tag!==Ha)a.child["return"]=a,a=a.child;else{if(a===b)break;for(;!a.sibling;){if(!a["return"]||a["return"]===b)return null;a=a["return"]}a.sibling["return"]=a["return"];a=a.sibling}}return null}},Sa=[],K=-1,Ta={createCursor:function(b){return{current:b}},isEmpty:function(){return-1===K},pop:function(b){0>K||(b.current=Sa[K],Sa[K]=null,K--)},push:function(b,a){K++;Sa[K]=b.current;b.current=a},reset:function(){for(;-1<
-K;)Sa[K]=null,K--}},Ua=Ra.isFiberMounted,Va=J.ClassComponent,Wa=J.HostRoot,Xa=Ta.createCursor,Ya=Ta.pop,Za=Ta.push,N=Xa(n),P=Xa(!1),$a=n;function ab(b,a,c){b=b.stateNode;b.__reactInternalMemoizedUnmaskedChildContext=a;b.__reactInternalMemoizedMaskedChildContext=c}function cb(b){return b.tag===Va&&null!=b.type.childContextTypes}
-function db(b,a){var c=b.stateNode,d=b.type.childContextTypes;if("function"!==typeof c.getChildContext)return a;c=c.getChildContext();for(var e in c)e in d?void 0:p("108",Ca(b)||"Unknown",e);return ba({},a,c)}
-var Q={getUnmaskedContext:function(b){return cb(b)?$a:N.current},cacheContext:ab,getMaskedContext:function(b,a){var c=b.type.contextTypes;if(!c)return n;var d=b.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===a)return d.__reactInternalMemoizedMaskedChildContext;var e={},g;for(g in c)e[g]=a[g];d&&ab(b,a,e);return e},hasContextChanged:function(){return P.current},isContextConsumer:function(b){return b.tag===Va&&null!=b.type.contextTypes},isContextProvider:cb,popContextProvider:function(b){cb(b)&&
-(Ya(P,b),Ya(N,b))},pushTopLevelContextObject:function(b,a,c){null!=N.cursor?p("168"):void 0;Za(N,a,b);Za(P,c,b)},processChildContext:db,pushContextProvider:function(b){if(!cb(b))return!1;var a=b.stateNode;a=a&&a.__reactInternalMemoizedMergedChildContext||n;$a=N.current;Za(N,a,b);Za(P,P.current,b);return!0},invalidateContextProvider:function(b,a){var c=b.stateNode;c?void 0:p("169");if(a){var d=db(b,$a,!0);c.__reactInternalMemoizedMergedChildContext=d;Ya(P,b);Ya(N,b);Za(N,d,b)}else Ya(P,b);Za(P,a,b)},
-resetContext:function(){$a=n;N.current=n;P.current=!1},findCurrentUnmaskedContext:function(b){for(Ua(b)&&b.tag===Va?void 0:p("170");b.tag!==Wa;){if(cb(b))return b.stateNode.__reactInternalMemoizedMergedChildContext;(b=b["return"])?void 0:p("171")}return b.stateNode.context}},eb={NoContext:0,AsyncUpdates:1},fb=J.IndeterminateComponent,gb=J.ClassComponent,hb=J.HostRoot,ib=J.HostComponent,jb=J.HostText,kb=J.HostPortal,lb=J.CoroutineComponent,mb=J.YieldComponent,nb=J.Fragment,ob=I.NoWork,pb=eb.NoContext,
-qb=z.NoEffect;function R(b,a,c){this.tag=b;this.key=a;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=c;this.effectTag=qb;this.lastEffect=this.firstEffect=this.nextEffect=null;this.pendingWorkPriority=ob;this.alternate=null}
-function rb(b,a,c){var d=void 0;"function"===typeof b?(d=b.prototype&&b.prototype.isReactComponent?new R(gb,a,c):new R(fb,a,c),d.type=b):"string"===typeof b?(d=new R(ib,a,c),d.type=b):"object"===typeof b&&null!==b&&"number"===typeof b.tag?d=b:p("130",null==b?b:typeof b,"");return d}
-var S={createWorkInProgress:function(b,a){var c=b.alternate;null===c?(c=new R(b.tag,b.key,b.internalContextTag),c.type=b.type,c.stateNode=b.stateNode,c.alternate=b,b.alternate=c):(c.effectTag=ob,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.pendingWorkPriority=a;c.child=b.child;c.memoizedProps=b.memoizedProps;c.memoizedState=b.memoizedState;c.updateQueue=b.updateQueue;c.sibling=b.sibling;c.index=b.index;c.ref=b.ref;return c},createHostRootFiber:function(){return new R(hb,null,pb)},createFiberFromElement:function(b,
-a,c){a=rb(b.type,b.key,a,null);a.pendingProps=b.props;a.pendingWorkPriority=c;return a},createFiberFromFragment:function(b,a,c){a=new R(nb,null,a);a.pendingProps=b;a.pendingWorkPriority=c;return a},createFiberFromText:function(b,a,c){a=new R(jb,null,a);a.pendingProps=b;a.pendingWorkPriority=c;return a},createFiberFromElementType:rb,createFiberFromHostInstanceForDeletion:function(){var b=new R(ib,null,pb);b.type="DELETED";return b},createFiberFromCoroutine:function(b,a,c){a=new R(lb,b.key,a);a.type=
-b.handler;a.pendingProps=b;a.pendingWorkPriority=c;return a},createFiberFromYield:function(b,a){return new R(mb,null,a)},createFiberFromPortal:function(b,a,c){a=new R(kb,b.key,a);a.pendingProps=b.children||[];a.pendingWorkPriority=c;a.stateNode={containerInfo:b.containerInfo,implementation:b.implementation};return a},largerPriority:function(b,a){return b!==ob&&(a===ob||a>b)?b:a}},sb=S.createHostRootFiber,tb=J.IndeterminateComponent,ub=J.FunctionalComponent,vb=J.ClassComponent,wb=J.HostComponent,xb,
+var ba=require("object-assign"),ca=require("art/modes/current"),da=require("art/modes/fast-noSideEffects"),fa=require("art/core/transform");require("fbjs/lib/invariant");var p=require("fbjs/lib/emptyObject"),ha=require("react"),ia=require("fbjs/lib/shallowEqual"),la=require("fbjs/lib/ExecutionEnvironment");
+function q(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}
+var ma={disableNewFiberFeatures:!1,enableAsyncSubtreeAPI:!1},y={NoEffect:0,PerformedWork:1,Placement:2,Update:4,PlacementAndUpdate:6,Deletion:8,ContentReset:16,Callback:32,Err:64,Ref:128},G={NoWork:0,SynchronousPriority:1,TaskPriority:2,HighPriority:3,LowPriority:4,OffscreenPriority:5},H={IndeterminateComponent:0,FunctionalComponent:1,ClassComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,CoroutineComponent:7,CoroutineHandlerPhase:8,YieldComponent:9,Fragment:10},na=y.Callback,oa=G.NoWork,
+pa=G.SynchronousPriority,ra=G.TaskPriority,sa=H.ClassComponent,ta=H.HostRoot;function ua(a,b){return a!==ra&&a!==pa||b!==ra&&b!==pa?a===oa&&b!==oa?-255:a!==oa&&b===oa?255:a-b:0}function va(){return{first:null,last:null,hasForceUpdate:!1,callbackList:null}}function wa(a,b,c,d){null!==c?c.next=b:(b.next=a.first,a.first=b);null!==d?b.next=d:a.last=b}
+function xa(a,b){b=b.priorityLevel;var c=null;if(null!==a.last&&0>=ua(a.last.priorityLevel,b))c=a.last;else for(a=a.first;null!==a&&0>=ua(a.priorityLevel,b);)c=a,a=a.next;return c}function ya(a){var b=a.alternate,c=a.updateQueue;null===c&&(c=a.updateQueue=va());null!==b?(a=b.updateQueue,null===a&&(a=b.updateQueue=va())):a=null;return[c,a!==c?a:null]}
+function za(a,b){var c=ya(a);a=c[0];c=c[1];var d=xa(a,b),e=null!==d?d.next:a.first;if(null===c)return wa(a,b,d,e),null;var g=xa(c,b),m=null!==g?g.next:c.first;wa(a,b,d,e);if(e===m&&null!==e||d===g&&null!==d)return null===g&&(c.first=b),null===m&&(c.last=null),null;b={priorityLevel:b.priorityLevel,partialState:b.partialState,callback:b.callback,isReplace:b.isReplace,isForced:b.isForced,isTopLevelUnmount:b.isTopLevelUnmount,next:null};wa(c,b,g,m);return b}
+function Aa(a,b,c,d){a=a.partialState;return"function"===typeof a?a.call(b,c,d):a}
+var Ba={addUpdate:function(a,b,c,d){za(a,{priorityLevel:d,partialState:b,callback:c,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null})},addReplaceUpdate:function(a,b,c,d){za(a,{priorityLevel:d,partialState:b,callback:c,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null})},addForceUpdate:function(a,b,c){za(a,{priorityLevel:c,partialState:null,callback:b,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null})},getUpdatePriority:function(a){var b=a.updateQueue;return null===b||a.tag!==
+sa&&a.tag!==ta?oa:null!==b.first?b.first.priorityLevel:oa},addTopLevelUpdate:function(a,b,c,d){var e=null===b.element;b={priorityLevel:d,partialState:b,callback:c,isReplace:!1,isForced:!1,isTopLevelUnmount:e,next:null};c=za(a,b);e&&(e=ya(a),a=e[0],e=e[1],null!==a&&null!==b.next&&(b.next=null,a.last=b),null!==e&&null!==c&&null!==c.next&&(c.next=null,e.last=b))},beginUpdateQueue:function(a,b,c,d,e,g,m){null!==a&&a.updateQueue===c&&(c=b.updateQueue={first:c.first,last:c.last,callbackList:null,hasForceUpdate:!1});
+a=c.callbackList;for(var l=c.hasForceUpdate,x=!0,f=c.first;null!==f&&0>=ua(f.priorityLevel,m);){c.first=f.next;null===c.first&&(c.last=null);var C;if(f.isReplace)e=Aa(f,d,e,g),x=!0;else if(C=Aa(f,d,e,g))e=x?ba({},e,C):ba(e,C),x=!1;f.isForced&&(l=!0);null===f.callback||f.isTopLevelUnmount&&null!==f.next||(a=null!==a?a:[],a.push(f.callback),b.effectTag|=na);f=f.next}c.callbackList=a;c.hasForceUpdate=l;null!==c.first||null!==a||l||(b.updateQueue=null);return e},commitCallbacks:function(a,b,c){a=b.callbackList;
+if(null!==a)for(b.callbackList=null,b=0;b<a.length;b++){var d=a[b];"function"!==typeof d?q("191",d):void 0;d.call(c)}}};function Ca(a){a=a.type;return"string"===typeof a?a:"function"===typeof a?a.displayName||a.name:null}
+var Da={remove:function(a){a._reactInternalFiber=void 0},get:function(a){return a._reactInternalFiber},has:function(a){return void 0!==a._reactInternalFiber},set:function(a,b){a._reactInternalFiber=b}},Ea={ReactCurrentOwner:ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},Fa=H.HostComponent,Ga=H.HostRoot,Ha=H.HostPortal,Ia=H.HostText,Ma=y.NoEffect,Na=y.Placement;
+function Oa(a){var b=a;if(a.alternate)for(;b["return"];)b=b["return"];else{if((b.effectTag&Na)!==Ma)return 1;for(;b["return"];)if(b=b["return"],(b.effectTag&Na)!==Ma)return 1}return b.tag===Ga?2:3}function Pa(a){2!==Oa(a)?q("188"):void 0}
+function Qa(a){var b=a.alternate;if(!b)return b=Oa(a),3===b?q("188"):void 0,1===b?null:a;for(var c=a,d=b;;){var e=c["return"],g=e?e.alternate:null;if(!e||!g)break;if(e.child===g.child){for(var m=e.child;m;){if(m===c)return Pa(e),a;if(m===d)return Pa(e),b;m=m.sibling}q("188")}if(c["return"]!==d["return"])c=e,d=g;else{m=!1;for(var l=e.child;l;){if(l===c){m=!0;c=e;d=g;break}if(l===d){m=!0;d=e;c=g;break}l=l.sibling}if(!m){for(l=g.child;l;){if(l===c){m=!0;c=g;d=e;break}if(l===d){m=!0;d=g;c=e;break}l=l.sibling}m?
+void 0:q("189")}}c.alternate!==d?q("190"):void 0}c.tag!==Ga?q("188"):void 0;return c.stateNode.current===c?a:b}
+var Ra={isFiberMounted:function(a){return 2===Oa(a)},isMounted:function(a){return(a=Da.get(a))?2===Oa(a):!1},findCurrentFiberUsingSlowPath:Qa,findCurrentHostFiber:function(a){a=Qa(a);if(!a)return null;for(var b=a;;){if(b.tag===Fa||b.tag===Ia)return b;if(b.child)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null},findCurrentHostFiberWithNoPortals:function(a){a=Qa(a);
+if(!a)return null;for(var b=a;;){if(b.tag===Fa||b.tag===Ia)return b;if(b.child&&b.tag!==Ha)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null}},Sa=[],I=-1,Ta={createCursor:function(a){return{current:a}},isEmpty:function(){return-1===I},pop:function(a){0>I||(a.current=Sa[I],Sa[I]=null,I--)},push:function(a,b){I++;Sa[I]=a.current;a.current=b},reset:function(){for(;-1<
+I;)Sa[I]=null,I--}},Ua=Ra.isFiberMounted,Va=H.ClassComponent,Wa=H.HostRoot,Xa=Ta.createCursor,Ya=Ta.pop,Za=Ta.push,L=Xa(p),O=Xa(!1),$a=p;function ab(a,b,c){a=a.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=b;a.__reactInternalMemoizedMaskedChildContext=c}function cb(a){return a.tag===Va&&null!=a.type.childContextTypes}
+function db(a,b){var c=a.stateNode,d=a.type.childContextTypes;if("function"!==typeof c.getChildContext)return b;c=c.getChildContext();for(var e in c)e in d?void 0:q("108",Ca(a)||"Unknown",e);return ba({},b,c)}
+var Q={getUnmaskedContext:function(a){return cb(a)?$a:L.current},cacheContext:ab,getMaskedContext:function(a,b){var c=a.type.contextTypes;if(!c)return p;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},g;for(g in c)e[g]=b[g];d&&ab(a,b,e);return e},hasContextChanged:function(){return O.current},isContextConsumer:function(a){return a.tag===Va&&null!=a.type.contextTypes},isContextProvider:cb,popContextProvider:function(a){cb(a)&&
+(Ya(O,a),Ya(L,a))},pushTopLevelContextObject:function(a,b,c){null!=L.cursor?q("168"):void 0;Za(L,b,a);Za(O,c,a)},processChildContext:db,pushContextProvider:function(a){if(!cb(a))return!1;var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||p;$a=L.current;Za(L,b,a);Za(O,O.current,a);return!0},invalidateContextProvider:function(a,b){var c=a.stateNode;c?void 0:q("169");if(b){var d=db(a,$a,!0);c.__reactInternalMemoizedMergedChildContext=d;Ya(O,a);Ya(L,a);Za(L,d,a)}else Ya(O,a);Za(O,b,a)},
+resetContext:function(){$a=p;L.current=p;O.current=!1},findCurrentUnmaskedContext:function(a){for(Ua(a)&&a.tag===Va?void 0:q("170");a.tag!==Wa;){if(cb(a))return a.stateNode.__reactInternalMemoizedMergedChildContext;(a=a["return"])?void 0:q("171")}return a.stateNode.context}},eb={NoContext:0,AsyncUpdates:1},fb=H.IndeterminateComponent,gb=H.ClassComponent,hb=H.HostRoot,ib=H.HostComponent,jb=H.HostText,kb=H.HostPortal,lb=H.CoroutineComponent,mb=H.YieldComponent,nb=H.Fragment,ob=G.NoWork,pb=eb.NoContext,
+qb=y.NoEffect;function R(a,b,c){this.tag=a;this.key=b;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=c;this.effectTag=qb;this.lastEffect=this.firstEffect=this.nextEffect=null;this.pendingWorkPriority=ob;this.alternate=null}
+function rb(a,b,c){var d=void 0;"function"===typeof a?(d=a.prototype&&a.prototype.isReactComponent?new R(gb,b,c):new R(fb,b,c),d.type=a):"string"===typeof a?(d=new R(ib,b,c),d.type=a):"object"===typeof a&&null!==a&&"number"===typeof a.tag?d=a:q("130",null==a?a:typeof a,"");return d}
+var S={createWorkInProgress:function(a,b){var c=a.alternate;null===c?(c=new R(a.tag,a.key,a.internalContextTag),c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.effectTag=ob,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.pendingWorkPriority=b;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c},createHostRootFiber:function(){return new R(hb,null,pb)},createFiberFromElement:function(a,
+b,c){b=rb(a.type,a.key,b,null);b.pendingProps=a.props;b.pendingWorkPriority=c;return b},createFiberFromFragment:function(a,b,c){b=new R(nb,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b},createFiberFromText:function(a,b,c){b=new R(jb,null,b);b.pendingProps=a;b.pendingWorkPriority=c;return b},createFiberFromElementType:rb,createFiberFromHostInstanceForDeletion:function(){var a=new R(ib,null,pb);a.type="DELETED";return a},createFiberFromCoroutine:function(a,b,c){b=new R(lb,a.key,b);b.type=
+a.handler;b.pendingProps=a;b.pendingWorkPriority=c;return b},createFiberFromYield:function(a,b){return new R(mb,null,b)},createFiberFromPortal:function(a,b,c){b=new R(kb,a.key,b);b.pendingProps=a.children||[];b.pendingWorkPriority=c;b.stateNode={containerInfo:a.containerInfo,implementation:a.implementation};return b},largerPriority:function(a,b){return a!==ob&&(b===ob||b>a)?a:b}},sb=S.createHostRootFiber,tb=H.IndeterminateComponent,ub=H.FunctionalComponent,vb=H.ClassComponent,wb=H.HostComponent,xb,
yb;"function"===typeof Symbol&&Symbol["for"]?(xb=Symbol["for"]("react.coroutine"),yb=Symbol["for"]("react.yield")):(xb=60104,yb=60105);
-var zb={createCoroutine:function(b,a,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:xb,key:null==d?null:""+d,children:b,handler:a,props:c}},createYield:function(b){return{$$typeof:yb,value:b}},isCoroutine:function(b){return"object"===typeof b&&null!==b&&b.$$typeof===xb},isYield:function(b){return"object"===typeof b&&null!==b&&b.$$typeof===yb},REACT_YIELD_TYPE:yb,REACT_COROUTINE_TYPE:xb},Ab="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||
-60106,Bb=zb.REACT_COROUTINE_TYPE,Cb=zb.REACT_YIELD_TYPE,Db=S.createWorkInProgress,Eb=S.createFiberFromElement,Fb=S.createFiberFromFragment,Gb=S.createFiberFromText,Hb=S.createFiberFromCoroutine,Ib=S.createFiberFromYield,Jb=S.createFiberFromPortal,Kb=Array.isArray,Lb=J.FunctionalComponent,Mb=J.ClassComponent,Tb=J.HostText,Ub=J.HostPortal,Vb=J.CoroutineComponent,Wb=J.YieldComponent,Xb=J.Fragment,Yb=z.NoEffect,Zb=z.Placement,$b=z.Deletion,ac="function"===typeof Symbol&&Symbol.iterator,bc="function"===
-typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;function cc(b){if(null===b||"undefined"===typeof b)return null;b=ac&&b[ac]||b["@@iterator"];return"function"===typeof b?b:null}
-function dc(b,a){var c=a.ref;if(null!==c&&"function"!==typeof c){if(a._owner){a=a._owner;var d=void 0;a&&("number"===typeof a.tag?(a.tag!==Mb?p("110"):void 0,d=a.stateNode):d=a.getPublicInstance());d?void 0:p("147",c);var e=""+c;if(null!==b&&null!==b.ref&&b.ref._stringRef===e)return b.ref;b=function(b){var a=d.refs===n?d.refs={}:d.refs;null===b?delete a[e]:a[e]=b};b._stringRef=e;return b}"string"!==typeof c?p("148"):void 0;a._owner?void 0:p("149",c)}return c}
-function ec(b,a){"textarea"!==b.type&&p("31","[object Object]"===Object.prototype.toString.call(a)?"object with keys {"+Object.keys(a).join(", ")+"}":a,"")}
-function fc(b,a){function c(c,t){if(a){if(!b){if(null===t.alternate)return;t=t.alternate}var h=c.lastEffect;null!==h?(h.nextEffect=t,c.lastEffect=t):c.firstEffect=c.lastEffect=t;t.nextEffect=null;t.effectTag=$b}}function d(b,t){if(!a)return null;for(;null!==t;)c(b,t),t=t.sibling;return null}function e(b,a){for(b=new Map;null!==a;)null!==a.key?b.set(a.key,a):b.set(a.index,a),a=a.sibling;return b}function g(a,c){if(b)return a=Db(a,c),a.index=0,a.sibling=null,a;a.pendingWorkPriority=c;a.effectTag=Yb;
-a.index=0;a.sibling=null;return a}function l(b,c,h){b.index=h;if(!a)return c;h=b.alternate;if(null!==h)return h=h.index,h<c?(b.effectTag=Zb,c):h;b.effectTag=Zb;return c}function f(b){a&&null===b.alternate&&(b.effectTag=Zb);return b}function y(b,a,c,k){if(null===a||a.tag!==Tb)return c=Gb(c,b.internalContextTag,k),c["return"]=b,c;a=g(a,k);a.pendingProps=c;a["return"]=b;return a}function v(b,a,c,k){if(null===a||a.type!==c.type)return k=Eb(c,b.internalContextTag,k),k.ref=dc(a,c),k["return"]=b,k;k=g(a,
-k);k.ref=dc(a,c);k.pendingProps=c.props;k["return"]=b;return k}function E(b,a,c,k){if(null===a||a.tag!==Vb)return c=Hb(c,b.internalContextTag,k),c["return"]=b,c;a=g(a,k);a.pendingProps=c;a["return"]=b;return a}function M(b,a,c,k){if(null===a||a.tag!==Wb)return a=Ib(c,b.internalContextTag,k),a.type=c.value,a["return"]=b,a;a=g(a,k);a.type=c.value;a["return"]=b;return a}function D(b,a,c,k){if(null===a||a.tag!==Ub||a.stateNode.containerInfo!==c.containerInfo||a.stateNode.implementation!==c.implementation)return c=
-Jb(c,b.internalContextTag,k),c["return"]=b,c;a=g(a,k);a.pendingProps=c.children||[];a["return"]=b;return a}function A(b,a,c,k){if(null===a||a.tag!==Xb)return c=Fb(c,b.internalContextTag,k),c["return"]=b,c;a=g(a,k);a.pendingProps=c;a["return"]=b;return a}function C(b,a,c){if("string"===typeof a||"number"===typeof a)return a=Gb(""+a,b.internalContextTag,c),a["return"]=b,a;if("object"===typeof a&&null!==a){switch(a.$$typeof){case bc:return c=Eb(a,b.internalContextTag,c),c.ref=dc(null,a),c["return"]=
-b,c;case Bb:return a=Hb(a,b.internalContextTag,c),a["return"]=b,a;case Cb:return c=Ib(a,b.internalContextTag,c),c.type=a.value,c["return"]=b,c;case Ab:return a=Jb(a,b.internalContextTag,c),a["return"]=b,a}if(Kb(a)||cc(a))return a=Fb(a,b.internalContextTag,c),a["return"]=b,a;ec(b,a)}return null}function F(b,a,c,k){var h=null!==a?a.key:null;if("string"===typeof c||"number"===typeof c)return null!==h?null:y(b,a,""+c,k);if("object"===typeof c&&null!==c){switch(c.$$typeof){case bc:return c.key===h?v(b,
-a,c,k):null;case Bb:return c.key===h?E(b,a,c,k):null;case Cb:return null===h?M(b,a,c,k):null;case Ab:return c.key===h?D(b,a,c,k):null}if(Kb(c)||cc(c))return null!==h?null:A(b,a,c,k);ec(b,c)}return null}function u(b,a,c,k,d){if("string"===typeof k||"number"===typeof k)return b=b.get(c)||null,y(a,b,""+k,d);if("object"===typeof k&&null!==k){switch(k.$$typeof){case bc:return b=b.get(null===k.key?c:k.key)||null,v(a,b,k,d);case Bb:return b=b.get(null===k.key?c:k.key)||null,E(a,b,k,d);case Cb:return b=b.get(c)||
-null,M(a,b,k,d);case Ab:return b=b.get(null===k.key?c:k.key)||null,D(a,b,k,d)}if(Kb(k)||cc(k))return b=b.get(c)||null,A(a,b,k,d);ec(a,k)}return null}function U(b,q,h,k){for(var t=null,f=null,m=q,r=q=0,g=null;null!==m&&r<h.length;r++){m.index>r?(g=m,m=null):g=m.sibling;var x=F(b,m,h[r],k);if(null===x){null===m&&(m=g);break}a&&m&&null===x.alternate&&c(b,m);q=l(x,q,r);null===f?t=x:f.sibling=x;f=x;m=g}if(r===h.length)return d(b,m),t;if(null===m){for(;r<h.length;r++)if(m=C(b,h[r],k))q=l(m,q,r),null===
-f?t=m:f.sibling=m,f=m;return t}for(m=e(b,m);r<h.length;r++)if(g=u(m,b,r,h[r],k)){if(a&&null!==g.alternate)m["delete"](null===g.key?r:g.key);q=l(g,q,r);null===f?t=g:f.sibling=g;f=g}a&&m.forEach(function(a){return c(b,a)});return t}function m(b,q,h,k){var m=cc(h);"function"!==typeof m?p("150"):void 0;h=m.call(h);null==h?p("151"):void 0;for(var f=m=null,t=q,r=q=0,g=null,x=h.next();null!==t&&!x.done;r++,x=h.next()){t.index>r?(g=t,t=null):g=t.sibling;var v=F(b,t,x.value,k);if(null===v){t||(t=g);break}a&&
-t&&null===v.alternate&&c(b,t);q=l(v,q,r);null===f?m=v:f.sibling=v;f=v;t=g}if(x.done)return d(b,t),m;if(null===t){for(;!x.done;r++,x=h.next())x=C(b,x.value,k),null!==x&&(q=l(x,q,r),null===f?m=x:f.sibling=x,f=x);return m}for(t=e(b,t);!x.done;r++,x=h.next())if(x=u(t,b,r,x.value,k),null!==x){if(a&&null!==x.alternate)t["delete"](null===x.key?r:x.key);q=l(x,q,r);null===f?m=x:f.sibling=x;f=x}a&&t.forEach(function(a){return c(b,a)});return m}function q(b,a,h,k){for(var q=h.key,u=a;null!==u;){if(u.key===q){if(u.type===
-h.type)return d(b,u.sibling),a=g(u,k),a.ref=dc(u,h),a.pendingProps=h.props,a["return"]=b,a;d(b,u);break}else c(b,u);u=u.sibling}u=Eb(h,b.internalContextTag,k);u.ref=dc(a,h);u["return"]=b;return u}function r(b,a,h,k){for(var q=h.key;null!==a;){if(a.key===q){if(a.tag===Ub&&a.stateNode.containerInfo===h.containerInfo&&a.stateNode.implementation===h.implementation)return d(b,a.sibling),k=g(a,k),k.pendingProps=h.children||[],k["return"]=b,k;d(b,a);break}else c(b,a);a=a.sibling}h=Jb(h,b.internalContextTag,
-k);h["return"]=b;return h}return function(b,a,h,k){var u=ma.disableNewFiberFeatures,e="object"===typeof h&&null!==h;if(e)if(u)switch(h.$$typeof){case bc:return f(q(b,a,h,k));case Ab:return f(r(b,a,h,k))}else switch(h.$$typeof){case bc:return f(q(b,a,h,k));case Bb:a:{for(u=h.key;null!==a;){if(a.key===u)if(a.tag===Vb){d(b,a.sibling);a=g(a,k);a.pendingProps=h;a["return"]=b;b=a;break a}else{d(b,a);break}else c(b,a);a=a.sibling}h=Hb(h,b.internalContextTag,k);h["return"]=b;b=h}return f(b);case Cb:a:{if(null!==
-a)if(a.tag===Wb){d(b,a.sibling);a=g(a,k);a.type=h.value;a["return"]=b;b=a;break a}else d(b,a);a=Ib(h,b.internalContextTag,k);a.type=h.value;a["return"]=b;b=a}return f(b);case Ab:return f(r(b,a,h,k))}if(u)switch(b.tag){case Mb:var l=b.type;null!==h&&!1!==h?p("109",l.displayName||l.name||"Component"):void 0;break;case Lb:l=b.type,null!==h&&!1!==h?p("105",l.displayName||l.name||"Component"):void 0}if("string"===typeof h||"number"===typeof h)return h=""+h,null!==a&&a.tag===Tb?(d(b,a.sibling),a=g(a,k),
-a.pendingProps=h,a["return"]=b,b=a):(d(b,a),h=Gb(h,b.internalContextTag,k),h["return"]=b,b=h),f(b);if(Kb(h))return U(b,a,h,k);if(cc(h))return m(b,a,h,k);e&&ec(b,h);if(!u&&"undefined"===typeof h)switch(b.tag){case Mb:case Lb:h=b.type,p("152",h.displayName||h.name||"Component")}return d(b,a)}}
-var gc=fc(!0,!0),hc=fc(!1,!0),ic=fc(!1,!1),jc={reconcileChildFibers:gc,reconcileChildFibersInPlace:hc,mountChildFibersInPlace:ic,cloneChildFibers:function(b,a){null!==b&&a.child!==b.child?p("153"):void 0;if(null!==a.child){b=a.child;var c=Db(b,b.pendingWorkPriority);c.pendingProps=b.pendingProps;a.child=c;for(c["return"]=a;null!==b.sibling;)b=b.sibling,c=c.sibling=Db(b,b.pendingWorkPriority),c.pendingProps=b.pendingProps,c["return"]=a;c.sibling=null}}},kc=z.Update,lc=eb.AsyncUpdates,mc=Q.cacheContext,
+var zb={createCoroutine:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:xb,key:null==d?null:""+d,children:a,handler:b,props:c}},createYield:function(a){return{$$typeof:yb,value:a}},isCoroutine:function(a){return"object"===typeof a&&null!==a&&a.$$typeof===xb},isYield:function(a){return"object"===typeof a&&null!==a&&a.$$typeof===yb},REACT_YIELD_TYPE:yb,REACT_COROUTINE_TYPE:xb},Ab="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||
+60106,Bb=zb.REACT_COROUTINE_TYPE,Cb=zb.REACT_YIELD_TYPE,Db=S.createWorkInProgress,Eb=S.createFiberFromElement,Fb=S.createFiberFromFragment,Gb=S.createFiberFromText,Hb=S.createFiberFromCoroutine,Ib=S.createFiberFromYield,Jb=S.createFiberFromPortal,Kb=Array.isArray,Lb=H.FunctionalComponent,Mb=H.ClassComponent,Tb=H.HostText,Ub=H.HostPortal,Vb=H.CoroutineComponent,Wb=H.YieldComponent,Xb=H.Fragment,Yb=y.NoEffect,Zb=y.Placement,$b=y.Deletion,ac="function"===typeof Symbol&&Symbol.iterator,bc="function"===
+typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;function cc(a){if(null===a||"undefined"===typeof a)return null;a=ac&&a[ac]||a["@@iterator"];return"function"===typeof a?a:null}
+function dc(a,b){var c=b.ref;if(null!==c&&"function"!==typeof c){if(b._owner){b=b._owner;var d=void 0;b&&(b.tag!==Mb?q("110"):void 0,d=b.stateNode);d?void 0:q("147",c);var e=""+c;if(null!==a&&null!==a.ref&&a.ref._stringRef===e)return a.ref;a=function(a){var b=d.refs===p?d.refs={}:d.refs;null===a?delete b[e]:b[e]=a};a._stringRef=e;return a}"string"!==typeof c?q("148"):void 0;b._owner?void 0:q("149",c)}return c}
+function ec(a,b){"textarea"!==a.type&&q("31","[object Object]"===Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b,"")}
+function fc(a,b){function c(c,u){if(b){if(!a){if(null===u.alternate)return;u=u.alternate}var h=c.lastEffect;null!==h?(h.nextEffect=u,c.lastEffect=u):c.firstEffect=c.lastEffect=u;u.nextEffect=null;u.effectTag=$b}}function d(a,u){if(!b)return null;for(;null!==u;)c(a,u),u=u.sibling;return null}function e(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function g(b,c){if(a)return b=Db(b,c),b.index=0,b.sibling=null,b;b.pendingWorkPriority=c;b.effectTag=Yb;
+b.index=0;b.sibling=null;return b}function m(a,c,h){a.index=h;if(!b)return c;h=a.alternate;if(null!==h)return h=h.index,h<c?(a.effectTag=Zb,c):h;a.effectTag=Zb;return c}function l(a){b&&null===a.alternate&&(a.effectTag=Zb);return a}function x(a,b,c,k){if(null===b||b.tag!==Tb)return c=Gb(c,a.internalContextTag,k),c["return"]=a,c;b=g(b,k);b.pendingProps=c;b["return"]=a;return b}function f(a,b,c,k){if(null===b||b.type!==c.type)return k=Eb(c,a.internalContextTag,k),k.ref=dc(b,c),k["return"]=a,k;k=g(b,
+k);k.ref=dc(b,c);k.pendingProps=c.props;k["return"]=a;return k}function C(a,b,c,k){if(null===b||b.tag!==Vb)return c=Hb(c,a.internalContextTag,k),c["return"]=a,c;b=g(b,k);b.pendingProps=c;b["return"]=a;return b}function K(a,b,c,k){if(null===b||b.tag!==Wb)return b=Ib(c,a.internalContextTag,k),b.type=c.value,b["return"]=a,b;b=g(b,k);b.type=c.value;b["return"]=a;return b}function M(a,b,c,k){if(null===b||b.tag!==Ub||b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return c=
+Jb(c,a.internalContextTag,k),c["return"]=a,c;b=g(b,k);b.pendingProps=c.children||[];b["return"]=a;return b}function z(a,b,c,k){if(null===b||b.tag!==Xb)return c=Fb(c,a.internalContextTag,k),c["return"]=a,c;b=g(b,k);b.pendingProps=c;b["return"]=a;return b}function B(a,b,c){if("string"===typeof b||"number"===typeof b)return b=Gb(""+b,a.internalContextTag,c),b["return"]=a,b;if("object"===typeof b&&null!==b){switch(b.$$typeof){case bc:return c=Eb(b,a.internalContextTag,c),c.ref=dc(null,b),c["return"]=
+a,c;case Bb:return b=Hb(b,a.internalContextTag,c),b["return"]=a,b;case Cb:return c=Ib(b,a.internalContextTag,c),c.type=b.value,c["return"]=a,c;case Ab:return b=Jb(b,a.internalContextTag,c),b["return"]=a,b}if(Kb(b)||cc(b))return b=Fb(b,a.internalContextTag,c),b["return"]=a,b;ec(a,b)}return null}function D(a,b,c,k){var h=null!==b?b.key:null;if("string"===typeof c||"number"===typeof c)return null!==h?null:x(a,b,""+c,k);if("object"===typeof c&&null!==c){switch(c.$$typeof){case bc:return c.key===h?f(a,
+b,c,k):null;case Bb:return c.key===h?C(a,b,c,k):null;case Cb:return null===h?K(a,b,c,k):null;case Ab:return c.key===h?M(a,b,c,k):null}if(Kb(c)||cc(c))return null!==h?null:z(a,b,c,k);ec(a,c)}return null}function v(a,b,c,k,d){if("string"===typeof k||"number"===typeof k)return a=a.get(c)||null,x(b,a,""+k,d);if("object"===typeof k&&null!==k){switch(k.$$typeof){case bc:return a=a.get(null===k.key?c:k.key)||null,f(b,a,k,d);case Bb:return a=a.get(null===k.key?c:k.key)||null,C(b,a,k,d);case Cb:return a=a.get(c)||
+null,K(b,a,k,d);case Ab:return a=a.get(null===k.key?c:k.key)||null,M(b,a,k,d)}if(Kb(k)||cc(k))return a=a.get(c)||null,z(b,a,k,d);ec(b,k)}return null}function U(a,r,h,k){for(var u=null,l=null,n=r,t=r=0,g=null;null!==n&&t<h.length;t++){n.index>t?(g=n,n=null):g=n.sibling;var f=D(a,n,h[t],k);if(null===f){null===n&&(n=g);break}b&&n&&null===f.alternate&&c(a,n);r=m(f,r,t);null===l?u=f:l.sibling=f;l=f;n=g}if(t===h.length)return d(a,n),u;if(null===n){for(;t<h.length;t++)if(n=B(a,h[t],k))r=m(n,r,t),null===
+l?u=n:l.sibling=n,l=n;return u}for(n=e(a,n);t<h.length;t++)if(g=v(n,a,t,h[t],k)){if(b&&null!==g.alternate)n["delete"](null===g.key?t:g.key);r=m(g,r,t);null===l?u=g:l.sibling=g;l=g}b&&n.forEach(function(b){return c(a,b)});return u}function n(a,r,h,k){var n=cc(h);"function"!==typeof n?q("150"):void 0;h=n.call(h);null==h?q("151"):void 0;for(var l=n=null,u=r,t=r=0,g=null,f=h.next();null!==u&&!f.done;t++,f=h.next()){u.index>t?(g=u,u=null):g=u.sibling;var P=D(a,u,f.value,k);if(null===P){u||(u=g);break}b&&
+u&&null===P.alternate&&c(a,u);r=m(P,r,t);null===l?n=P:l.sibling=P;l=P;u=g}if(f.done)return d(a,u),n;if(null===u){for(;!f.done;t++,f=h.next())f=B(a,f.value,k),null!==f&&(r=m(f,r,t),null===l?n=f:l.sibling=f,l=f);return n}for(u=e(a,u);!f.done;t++,f=h.next())if(f=v(u,a,t,f.value,k),null!==f){if(b&&null!==f.alternate)u["delete"](null===f.key?t:f.key);r=m(f,r,t);null===l?n=f:l.sibling=f;l=f}b&&u.forEach(function(b){return c(a,b)});return n}function r(a,b,h,k){for(var r=h.key,v=b;null!==v;){if(v.key===r){if(v.type===
+h.type)return d(a,v.sibling),b=g(v,k),b.ref=dc(v,h),b.pendingProps=h.props,b["return"]=a,b;d(a,v);break}else c(a,v);v=v.sibling}v=Eb(h,a.internalContextTag,k);v.ref=dc(b,h);v["return"]=a;return v}function t(a,b,h,k){for(var r=h.key;null!==b;){if(b.key===r){if(b.tag===Ub&&b.stateNode.containerInfo===h.containerInfo&&b.stateNode.implementation===h.implementation)return d(a,b.sibling),k=g(b,k),k.pendingProps=h.children||[],k["return"]=a,k;d(a,b);break}else c(a,b);b=b.sibling}h=Jb(h,a.internalContextTag,
+k);h["return"]=a;return h}return function(a,b,h,k){var v=ma.disableNewFiberFeatures,e="object"===typeof h&&null!==h;if(e)if(v)switch(h.$$typeof){case bc:return l(r(a,b,h,k));case Ab:return l(t(a,b,h,k))}else switch(h.$$typeof){case bc:return l(r(a,b,h,k));case Bb:a:{for(v=h.key;null!==b;){if(b.key===v)if(b.tag===Vb){d(a,b.sibling);b=g(b,k);b.pendingProps=h;b["return"]=a;a=b;break a}else{d(a,b);break}else c(a,b);b=b.sibling}h=Hb(h,a.internalContextTag,k);h["return"]=a;a=h}return l(a);case Cb:a:{if(null!==
+b)if(b.tag===Wb){d(a,b.sibling);b=g(b,k);b.type=h.value;b["return"]=a;a=b;break a}else d(a,b);b=Ib(h,a.internalContextTag,k);b.type=h.value;b["return"]=a;a=b}return l(a);case Ab:return l(t(a,b,h,k))}if(v)switch(a.tag){case Mb:var f=a.type;null!==h&&!1!==h?q("109",f.displayName||f.name||"Component"):void 0;break;case Lb:f=a.type,null!==h&&!1!==h?q("105",f.displayName||f.name||"Component"):void 0}if("string"===typeof h||"number"===typeof h)return h=""+h,null!==b&&b.tag===Tb?(d(a,b.sibling),b=g(b,k),
+b.pendingProps=h,b["return"]=a,a=b):(d(a,b),h=Gb(h,a.internalContextTag,k),h["return"]=a,a=h),l(a);if(Kb(h))return U(a,b,h,k);if(cc(h))return n(a,b,h,k);e&&ec(a,h);if(!v&&"undefined"===typeof h)switch(a.tag){case Mb:case Lb:h=a.type,q("152",h.displayName||h.name||"Component")}return d(a,b)}}
+var gc=fc(!0,!0),hc=fc(!1,!0),ic=fc(!1,!1),jc={reconcileChildFibers:gc,reconcileChildFibersInPlace:hc,mountChildFibersInPlace:ic,cloneChildFibers:function(a,b){null!==a&&b.child!==a.child?q("153"):void 0;if(null!==b.child){a=b.child;var c=Db(a,a.pendingWorkPriority);c.pendingProps=a.pendingProps;b.child=c;for(c["return"]=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Db(a,a.pendingWorkPriority),c.pendingProps=a.pendingProps,c["return"]=b;c.sibling=null}}},kc=y.Update,lc=eb.AsyncUpdates,mc=Q.cacheContext,
nc=Q.getMaskedContext,oc=Q.getUnmaskedContext,pc=Q.isContextConsumer,qc=Ba.addUpdate,rc=Ba.addReplaceUpdate,sc=Ba.addForceUpdate,tc=Ba.beginUpdateQueue,uc=Q.hasContextChanged,vc=Ra.isMounted;
-function wc(b,a,c,d){function e(b,a){a.updater=g;b.stateNode=a;Da.set(a,b)}var g={isMounted:vc,enqueueSetState:function(c,d,e){c=Da.get(c);var f=a(c,!1);qc(c,d,void 0===e?null:e,f);b(c,f)},enqueueReplaceState:function(c,d,e){c=Da.get(c);var f=a(c,!1);rc(c,d,void 0===e?null:e,f);b(c,f)},enqueueForceUpdate:function(c,d){c=Da.get(c);var e=a(c,!1);sc(c,void 0===d?null:d,e);b(c,e)}};return{adoptClassInstance:e,constructClassInstance:function(b,a){var c=b.type,d=oc(b),f=pc(b),g=f?nc(b,d):n;a=new c(a,g);
-e(b,a);f&&mc(b,d,g);return a},mountClassInstance:function(b,a){var c=b.alternate,d=b.stateNode,e=d.state||null,f=b.pendingProps;f?void 0:p("158");var l=oc(b);d.props=f;d.state=e;d.refs=n;d.context=nc(b,l);ma.enableAsyncSubtreeAPI&&null!=b.type&&null!=b.type.prototype&&!0===b.type.prototype.unstable_isAsyncReactComponent&&(b.internalContextTag|=lc);"function"===typeof d.componentWillMount&&(l=d.state,d.componentWillMount(),l!==d.state&&g.enqueueReplaceState(d,d.state,null),l=b.updateQueue,null!==l&&
-(d.state=tc(c,b,l,d,e,f,a)));"function"===typeof d.componentDidMount&&(b.effectTag|=kc)},updateClassInstance:function(b,a,e){var f=a.stateNode;f.props=a.memoizedProps;f.state=a.memoizedState;var l=a.memoizedProps,y=a.pendingProps;y||(y=l,null==y?p("159"):void 0);var D=f.context,A=oc(a);A=nc(a,A);"function"!==typeof f.componentWillReceiveProps||l===y&&D===A||(D=f.state,f.componentWillReceiveProps(y,A),f.state!==D&&g.enqueueReplaceState(f,f.state,null));D=a.memoizedState;e=null!==a.updateQueue?tc(b,
-a,a.updateQueue,f,D,y,e):D;if(!(l!==y||D!==e||uc()||null!==a.updateQueue&&a.updateQueue.hasForceUpdate))return"function"!==typeof f.componentDidUpdate||l===b.memoizedProps&&D===b.memoizedState||(a.effectTag|=kc),!1;var C=y;if(null===l||null!==a.updateQueue&&a.updateQueue.hasForceUpdate)C=!0;else{var F=a.stateNode,u=a.type;C="function"===typeof F.shouldComponentUpdate?F.shouldComponentUpdate(C,e,A):u.prototype&&u.prototype.isPureReactComponent?!ia(l,C)||!ia(D,e):!0}C?("function"===typeof f.componentWillUpdate&&
-f.componentWillUpdate(y,e,A),"function"===typeof f.componentDidUpdate&&(a.effectTag|=kc)):("function"!==typeof f.componentDidUpdate||l===b.memoizedProps&&D===b.memoizedState||(a.effectTag|=kc),c(a,y),d(a,e));f.props=y;f.state=e;f.context=A;return C}}}
-var xc=jc.mountChildFibersInPlace,yc=jc.reconcileChildFibers,zc=jc.reconcileChildFibersInPlace,Ac=jc.cloneChildFibers,Ec=Ba.beginUpdateQueue,Fc=Q.getMaskedContext,Gc=Q.getUnmaskedContext,Hc=Q.hasContextChanged,Ic=Q.pushContextProvider,Jc=Q.pushTopLevelContextObject,Kc=Q.invalidateContextProvider,Lc=J.IndeterminateComponent,Mc=J.FunctionalComponent,Nc=J.ClassComponent,Oc=J.HostRoot,Pc=J.HostComponent,Qc=J.HostText,Rc=J.HostPortal,Sc=J.CoroutineComponent,Tc=J.CoroutineHandlerPhase,Uc=J.YieldComponent,
-Vc=J.Fragment,Wc=I.NoWork,Xc=I.OffscreenPriority,Yc=z.PerformedWork,Zc=z.Placement,$c=z.ContentReset,ad=z.Err,bd=z.Ref,cd=Ea.ReactCurrentOwner;
-function dd(b,a,c,d,e){function g(b,a,c){l(b,a,c,a.pendingWorkPriority)}function l(b,a,c,d){a.child=null===b?xc(a,a.child,c,d):b.child===a.child?yc(a,a.child,c,d):zc(a,a.child,c,d)}function f(b,a){var c=a.ref;null===c||b&&b.ref===c||(a.effectTag|=bd)}function y(b,a,c,d){f(b,a);if(!c)return d&&Kc(a,!1),v(b,a);c=a.stateNode;cd.current=a;var k=c.render();a.effectTag|=Yc;g(b,a,k);a.memoizedState=c.state;a.memoizedProps=c.props;d&&Kc(a,!0);return a.child}function v(b,a){Ac(b,a);return a.child}function E(b,
-a){switch(a.tag){case Nc:Ic(a);break;case Rc:F(a,a.stateNode.containerInfo)}return null}var M=b.shouldSetTextContent,D=b.useSyncScheduling,A=b.shouldDeprioritizeSubtree,C=a.pushHostContext,F=a.pushHostContainer,u=c.enterHydrationState,U=c.resetHydrationState,m=c.tryToClaimNextHydratableInstance;b=wc(d,e,function(b,a){b.memoizedProps=a},function(b,a){b.memoizedState=a});var q=b.adoptClassInstance,r=b.constructClassInstance,x=b.mountClassInstance,t=b.updateClassInstance;return{beginWork:function(b,
-a,c){if(a.pendingWorkPriority===Wc||a.pendingWorkPriority>c)return E(b,a);switch(a.tag){case Lc:null!==b?p("155"):void 0;var d=a.type,e=a.pendingProps,k=Gc(a);k=Fc(a,k);d=d(e,k);a.effectTag|=Yc;"object"===typeof d&&null!==d&&"function"===typeof d.render?(a.tag=Nc,e=Ic(a),q(a,d),x(a,c),a=y(b,a,!0,e)):(a.tag=Mc,g(b,a,d),a.memoizedProps=e,a=a.child);return a;case Mc:a:{e=a.type;c=a.pendingProps;d=a.memoizedProps;if(Hc())null===c&&(c=d);else if(null===c||d===c){a=v(b,a);break a}d=Gc(a);d=Fc(a,d);e=e(c,
-d);a.effectTag|=Yc;g(b,a,e);a.memoizedProps=c;a=a.child}return a;case Nc:return e=Ic(a),d=void 0,null===b?a.stateNode?p("153"):(r(a,a.pendingProps),x(a,c),d=!0):d=t(b,a,c),y(b,a,d,e);case Oc:return e=a.stateNode,e.pendingContext?Jc(a,e.pendingContext,e.pendingContext!==e.context):e.context&&Jc(a,e.context,!1),F(a,e.containerInfo),d=a.updateQueue,null!==d?(e=a.memoizedState,d=Ec(b,a,d,null,e,null,c),e===d?(U(),a=v(b,a)):(e=d.element,null!==b&&null!==b.child||!u(a)?(U(),g(b,a,e)):(a.effectTag|=Zc,a.child=
-xc(a,a.child,e,c)),a.memoizedState=d,a=a.child)):(U(),a=v(b,a)),a;case Pc:C(a);null===b&&m(a);e=a.type;var h=a.memoizedProps;d=a.pendingProps;null===d&&(d=h,null===d?p("154"):void 0);k=null!==b?b.memoizedProps:null;Hc()||null!==d&&h!==d?(h=d.children,M(e,d)?h=null:k&&M(e,k)&&(a.effectTag|=$c),f(b,a),c!==Xc&&!D&&A(e,d)?(a.pendingWorkPriority=Xc,a=null):(g(b,a,h),a.memoizedProps=d,a=a.child)):a=v(b,a);return a;case Qc:return null===b&&m(a),b=a.pendingProps,null===b&&(b=a.memoizedProps),a.memoizedProps=
-b,null;case Tc:a.tag=Sc;case Sc:c=a.pendingProps;if(Hc())null===c&&(c=b&&b.memoizedProps,null===c?p("154"):void 0);else if(null===c||a.memoizedProps===c)c=a.memoizedProps;e=c.children;d=a.pendingWorkPriority;a.stateNode=null===b?xc(a,a.stateNode,e,d):b.child===a.child?yc(a,a.stateNode,e,d):zc(a,a.stateNode,e,d);a.memoizedProps=c;return a.stateNode;case Uc:return null;case Rc:a:{F(a,a.stateNode.containerInfo);c=a.pendingWorkPriority;e=a.pendingProps;if(Hc())null===e&&(e=b&&b.memoizedProps,null==e?
-p("154"):void 0);else if(null===e||a.memoizedProps===e){a=v(b,a);break a}null===b?a.child=zc(a,a.child,e,c):g(b,a,e);a.memoizedProps=e;a=a.child}return a;case Vc:a:{c=a.pendingProps;if(Hc())null===c&&(c=a.memoizedProps);else if(null===c||a.memoizedProps===c){a=v(b,a);break a}g(b,a,c);a.memoizedProps=c;a=a.child}return a;default:p("156")}},beginFailedWork:function(a,b,c){switch(b.tag){case Nc:Ic(b);break;case Oc:F(b,b.stateNode.containerInfo);break;default:p("157")}b.effectTag|=ad;null===a?b.child=
-null:b.child!==a.child&&(b.child=a.child);if(b.pendingWorkPriority===Wc||b.pendingWorkPriority>c)return E(a,b);b.firstEffect=null;b.lastEffect=null;l(a,b,null,c);b.tag===Nc&&(a=b.stateNode,b.memoizedProps=a.props,b.memoizedState=a.state);return b.child}}}
-var ed=jc.reconcileChildFibers,fd=Q.popContextProvider,gd=J.IndeterminateComponent,hd=J.FunctionalComponent,id=J.ClassComponent,jd=J.HostRoot,kd=J.HostComponent,ld=J.HostText,md=J.HostPortal,nd=J.CoroutineComponent,od=J.CoroutineHandlerPhase,pd=J.YieldComponent,qd=J.Fragment,rd=z.Placement,sd=z.Ref,td=z.Update,ud=I.OffscreenPriority;
-function vd(b,a,c){var d=b.createInstance,e=b.createTextInstance,g=b.appendInitialChild,l=b.finalizeInitialChildren,f=b.prepareUpdate,y=a.getRootHostContainer,v=a.popHostContext,E=a.getHostContext,M=a.popHostContainer,D=c.prepareToHydrateHostInstance,A=c.prepareToHydrateHostTextInstance,C=c.popHydrationState;return{completeWork:function(a,b,c){var m=b.pendingProps;if(null===m)m=b.memoizedProps;else if(b.pendingWorkPriority!==ud||c===ud)b.pendingProps=null;switch(b.tag){case hd:return null;case id:return fd(b),
-null;case jd:m=b.stateNode;m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null);if(null===a||null===a.child)C(b),b.effectTag&=~rd;return null;case kd:v(b);c=y();var q=b.type;if(null!==a&&null!=b.stateNode){var r=a.memoizedProps,u=b.stateNode,t=E();m=f(u,q,r,m,c,t);if(b.updateQueue=m)b.effectTag|=td;a.ref!==b.ref&&(b.effectTag|=sd)}else{if(!m)return null===b.stateNode?p("166"):void 0,null;a=E();if(C(b))D(b,c)&&(b.effectTag|=td);else{a=d(q,m,c,a,b);a:for(r=b.child;null!==r;){if(r.tag===
-kd||r.tag===ld)g(a,r.stateNode);else if(r.tag!==md&&null!==r.child){r=r.child;continue}if(r===b)break a;for(;null===r.sibling;){if(null===r["return"]||r["return"]===b)break a;r=r["return"]}r=r.sibling}l(a,q,m,c)&&(b.effectTag|=td);b.stateNode=a}null!==b.ref&&(b.effectTag|=sd)}return null;case ld:if(a&&null!=b.stateNode)a.memoizedProps!==m&&(b.effectTag|=td);else{if("string"!==typeof m)return null===b.stateNode?p("166"):void 0,null;a=y();c=E();C(b)?A(b)&&(b.effectTag|=td):b.stateNode=e(m,a,c,b)}return null;
-case nd:(m=b.memoizedProps)?void 0:p("165");b.tag=od;c=[];a:for((q=b.stateNode)&&(q["return"]=b);null!==q;){if(q.tag===kd||q.tag===ld||q.tag===md)p("164");else if(q.tag===pd)c.push(q.type);else if(null!==q.child){q.child["return"]=q;q=q.child;continue}for(;null===q.sibling;){if(null===q["return"]||q["return"]===b)break a;q=q["return"]}q.sibling["return"]=q["return"];q=q.sibling}q=m.handler;m=q(m.props,c);b.child=ed(b,null!==a?a.child:null,m,b.pendingWorkPriority);return b.child;case od:return b.tag=
-nd,null;case pd:return null;case qd:return null;case md:return b.effectTag|=td,M(b),null;case gd:p("167");default:p("156")}}}}var wd=null,xd=null;function yd(b){return function(a){try{return b(a)}catch(c){}}}
-var zd={injectInternals:function(b){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!a.supportsFiber)return!0;try{var c=a.inject(b);wd=yd(function(b){return a.onCommitFiberRoot(c,b)});xd=yd(function(b){return a.onCommitFiberUnmount(c,b)})}catch(d){}return!0},onCommitRoot:function(b){"function"===typeof wd&&wd(b)},onCommitUnmount:function(b){"function"===typeof xd&&xd(b)}},Ad=J.ClassComponent,Bd=J.HostRoot,T=J.HostComponent,Cd=J.HostText,V=J.HostPortal,
-Dd=J.CoroutineComponent,Ed=Ba.commitCallbacks,Fd=zd.onCommitUnmount,Gd=z.Placement,Hd=z.Update,Id=z.Callback,Jd=z.ContentReset;
-function Kd(b,a){function c(b){var c=b.ref;if(null!==c)try{c(null)}catch(r){a(b,r)}}function d(a){return a.tag===T||a.tag===Bd||a.tag===V}function e(a){for(var b=a;;)if(l(b),null!==b.child&&b.tag!==V)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||b["return"]===a)return;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}function g(a){for(var b=a,c=!1,d=void 0,m=void 0;;){if(!c){c=b["return"];a:for(;;){null===c?p("160"):void 0;switch(c.tag){case T:d=
-c.stateNode;m=!1;break a;case Bd:d=c.stateNode.containerInfo;m=!0;break a;case V:d=c.stateNode.containerInfo;m=!0;break a}c=c["return"]}c=!0}if(b.tag===T||b.tag===Cd)e(b),m?u(d,b.stateNode):F(d,b.stateNode);else if(b.tag===V?d=b.stateNode.containerInfo:l(b),null!==b.child){b.child["return"]=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||b["return"]===a)return;b=b["return"];b.tag===V&&(c=!1)}b.sibling["return"]=b["return"];b=b.sibling}}function l(b){"function"===
-typeof Fd&&Fd(b);switch(b.tag){case Ad:c(b);var d=b.stateNode;if("function"===typeof d.componentWillUnmount)try{d.props=b.memoizedProps,d.state=b.memoizedState,d.componentWillUnmount()}catch(r){a(b,r)}break;case T:c(b);break;case Dd:e(b.stateNode);break;case V:g(b)}}var f=b.commitMount,y=b.commitUpdate,v=b.resetTextContent,E=b.commitTextUpdate,M=b.appendChild,D=b.appendChildToContainer,A=b.insertBefore,C=b.insertInContainerBefore,F=b.removeChild,u=b.removeChildFromContainer,U=b.getPublicInstance;
-return{commitPlacement:function(b){a:{for(var a=b["return"];null!==a;){if(d(a)){var c=a;break a}a=a["return"]}p("160");c=void 0}var e=a=void 0;switch(c.tag){case T:a=c.stateNode;e=!1;break;case Bd:a=c.stateNode.containerInfo;e=!0;break;case V:a=c.stateNode.containerInfo;e=!0;break;default:p("161")}c.effectTag&Jd&&(v(a),c.effectTag&=~Jd);a:b:for(c=b;;){for(;null===c.sibling;){if(null===c["return"]||d(c["return"])){c=null;break a}c=c["return"]}c.sibling["return"]=c["return"];for(c=c.sibling;c.tag!==
-T&&c.tag!==Cd;){if(c.effectTag&Gd)continue b;if(null===c.child||c.tag===V)continue b;else c.child["return"]=c,c=c.child}if(!(c.effectTag&Gd)){c=c.stateNode;break a}}for(var f=b;;){if(f.tag===T||f.tag===Cd)c?e?C(a,f.stateNode,c):A(a,f.stateNode,c):e?D(a,f.stateNode):M(a,f.stateNode);else if(f.tag!==V&&null!==f.child){f.child["return"]=f;f=f.child;continue}if(f===b)break;for(;null===f.sibling;){if(null===f["return"]||f["return"]===b)return;f=f["return"]}f.sibling["return"]=f["return"];f=f.sibling}},
-commitDeletion:function(b){g(b);b["return"]=null;b.child=null;b.alternate&&(b.alternate.child=null,b.alternate["return"]=null)},commitWork:function(b,a){switch(a.tag){case Ad:break;case T:var c=a.stateNode;if(null!=c){var d=a.memoizedProps;b=null!==b?b.memoizedProps:d;var e=a.type,f=a.updateQueue;a.updateQueue=null;null!==f&&y(c,f,e,b,d,a)}break;case Cd:null===a.stateNode?p("162"):void 0;c=a.memoizedProps;E(a.stateNode,null!==b?b.memoizedProps:c,c);break;case Bd:break;case V:break;default:p("163")}},
-commitLifeCycles:function(b,a){switch(a.tag){case Ad:var c=a.stateNode;if(a.effectTag&Hd)if(null===b)c.props=a.memoizedProps,c.state=a.memoizedState,c.componentDidMount();else{var d=b.memoizedProps;b=b.memoizedState;c.props=a.memoizedProps;c.state=a.memoizedState;c.componentDidUpdate(d,b)}a.effectTag&Id&&null!==a.updateQueue&&Ed(a,a.updateQueue,c);break;case Bd:b=a.updateQueue;null!==b&&Ed(a,b,a.child&&a.child.stateNode);break;case T:c=a.stateNode;null===b&&a.effectTag&Hd&&f(c,a.type,a.memoizedProps,
-a);break;case Cd:break;case V:break;default:p("163")}},commitAttachRef:function(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case T:b(U(c));break;default:b(c)}}},commitDetachRef:function(a){a=a.ref;null!==a&&a(null)}}}var Ld=Ta.createCursor,Md=Ta.pop,Nd=Ta.push,Od={};
-function Pd(b){function a(a){a===Od?p("174"):void 0;return a}var c=b.getChildHostContext,d=b.getRootHostContext,e=Ld(Od),g=Ld(Od),l=Ld(Od);return{getHostContext:function(){return a(e.current)},getRootHostContainer:function(){return a(l.current)},popHostContainer:function(a){Md(e,a);Md(g,a);Md(l,a)},popHostContext:function(a){g.current===a&&(Md(e,a),Md(g,a))},pushHostContainer:function(a,b){Nd(l,b,a);b=d(b);Nd(g,a,a);Nd(e,b,a)},pushHostContext:function(b){var d=a(l.current),f=a(e.current);d=c(f,b.type,
-d);f!==d&&(Nd(g,b,b),Nd(e,d,b))},resetHostContainer:function(){e.current=Od;l.current=Od}}}var Qd=J.HostComponent,Wd=J.HostText,Xd=J.HostRoot,Yd=z.Deletion,Zd=z.Placement,$d=S.createFiberFromHostInstanceForDeletion;
-function ae(b){function a(a,b){var c=$d();c.stateNode=b;c["return"]=a;c.effectTag=Yd;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}function c(a,b){switch(a.tag){case Qd:return g(b,a.type,a.pendingProps);case Wd:return l(b,a.pendingProps);default:return!1}}function d(a){for(a=a["return"];null!==a&&a.tag!==Qd&&a.tag!==Xd;)a=a["return"];A=a}var e=b.shouldSetTextContent,g=b.canHydrateInstance,l=b.canHydrateTextInstance,f=b.getNextHydratableSibling,y=b.getFirstHydratableChild,
-v=b.hydrateInstance,E=b.hydrateTextInstance,M=b.didNotHydrateInstance,D=b.didNotFindHydratableInstance;b=b.didNotFindHydratableTextInstance;if(!(g&&l&&f&&y&&v&&E&&M&&D&&b))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){p("175")},prepareToHydrateHostTextInstance:function(){p("176")},popHydrationState:function(){return!1}};var A=null,C=null,F=!1;return{enterHydrationState:function(a){C=
-y(a.stateNode.containerInfo);A=a;return F=!0},resetHydrationState:function(){C=A=null;F=!1},tryToClaimNextHydratableInstance:function(b){if(F){var d=C;if(d){if(!c(b,d)){d=f(d);if(!d||!c(b,d)){b.effectTag|=Zd;F=!1;A=b;return}a(A,C)}b.stateNode=d;A=b;C=y(d)}else b.effectTag|=Zd,F=!1,A=b}},prepareToHydrateHostInstance:function(a,b){b=v(a.stateNode,a.type,a.memoizedProps,b,a);a.updateQueue=b;return null!==b?!0:!1},prepareToHydrateHostTextInstance:function(a){return E(a.stateNode,a.memoizedProps,a)},popHydrationState:function(b){if(b!==
-A)return!1;if(!F)return d(b),F=!0,!1;var c=b.type;if(b.tag!==Qd||"head"!==c&&"body"!==c&&!e(c,b.memoizedProps))for(c=C;c;)a(b,c),c=f(c);d(b);C=A?f(b.stateNode):null;return!0}}}
-var be=Q.popContextProvider,ce=Ta.reset,de=Ea.ReactCurrentOwner,ee=S.createWorkInProgress,fe=S.largerPriority,ge=zd.onCommitRoot,Y=I.NoWork,he=I.SynchronousPriority,Z=I.TaskPriority,ie=I.HighPriority,je=I.LowPriority,ke=I.OffscreenPriority,le=eb.AsyncUpdates,me=z.PerformedWork,ne=z.Placement,oe=z.Update,pe=z.PlacementAndUpdate,qe=z.Deletion,re=z.ContentReset,se=z.Callback,te=z.Err,ue=z.Ref,ve=J.HostRoot,we=J.HostComponent,xe=J.HostPortal,ye=J.ClassComponent,ze=Ba.getUpdatePriority,Ae=Q.resetContext;
-function Be(b){function a(){for(;null!==W&&W.current.pendingWorkPriority===Y;){W.isScheduled=!1;var a=W.nextScheduledRoot;W.nextScheduledRoot=null;if(W===Ja)return Ja=W=null,B=Y,null;W=a}a=W;for(var b=null,c=Y;null!==a;)a.current.pendingWorkPriority!==Y&&(c===Y||c>a.current.pendingWorkPriority)&&(c=a.current.pendingWorkPriority,b=a),a=a.nextScheduledRoot;null!==b?(B=c,ce(),Ae(),r(),G=ee(b.current,c)):(B=Y,G=null)}function c(c){Ob=!0;X=null;var d=c.stateNode;d.current===c?p("177"):void 0;B!==he&&B!==
-Z||Pb++;de.current=null;if(c.effectTag>me)if(null!==c.lastEffect){c.lastEffect.nextEffect=c;var e=c.firstEffect}else e=c;else e=c.firstEffect;Ze();for(w=e;null!==w;){var f=!1,g=void 0;try{for(;null!==w;){var h=w.effectTag;h&re&&b.resetTextContent(w.stateNode);if(h&ue){var k=w.alternate;null!==k&&Ud(k)}switch(h&~(se|te|re|ue|me)){case ne:Bc(w);w.effectTag&=~ne;break;case pe:Bc(w);w.effectTag&=~ne;Cc(w.alternate,w);break;case oe:Cc(w.alternate,w);break;case qe:Qb=!0,Rd(w),Qb=!1}w=w.nextEffect}}catch(Rb){f=
-!0,g=Rb}f&&(null===w?p("178"):void 0,E(w,g),null!==w&&(w=w.nextEffect))}$e();d.current=c;for(w=e;null!==w;){d=!1;e=void 0;try{for(;null!==w;){var Nb=w.effectTag;Nb&(oe|se)&&Sd(w.alternate,w);Nb&ue&&Td(w);if(Nb&te)switch(f=w,g=void 0,null!==L&&(g=L.get(f),L["delete"](f),null==g&&null!==f.alternate&&(f=f.alternate,g=L.get(f),L["delete"](f))),null==g?p("184"):void 0,f.tag){case ye:f.stateNode.componentDidCatch(g.error,{componentStack:g.componentStack});break;case ve:null===ja&&(ja=g.error);break;default:p("157")}var l=
-w.nextEffect;w.nextEffect=null;w=l}}catch(Rb){d=!0,e=Rb}d&&(null===w?p("178"):void 0,E(w,e),null!==w&&(w=w.nextEffect))}Ob=!1;"function"===typeof ge&&ge(c.stateNode);aa&&(aa.forEach(F),aa=null);a()}function d(a){for(;;){var b=k(a.alternate,a,B),c=a["return"],d=a.sibling;var e=a;if(!(e.pendingWorkPriority!==Y&&e.pendingWorkPriority>B)){for(var f=ze(e),g=e.child;null!==g;)f=fe(f,g.pendingWorkPriority),g=g.sibling;e.pendingWorkPriority=f}if(null!==b)return b;null!==c&&(null===c.firstEffect&&(c.firstEffect=
-a.firstEffect),null!==a.lastEffect&&(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect),a.effectTag>me&&(null!==c.lastEffect?c.lastEffect.nextEffect=a:c.firstEffect=a,c.lastEffect=a));if(null!==d)return d;if(null!==c)a=c;else{X=a;break}}return null}function e(a){var b=t(a.alternate,a,B);null===b&&(b=d(a));de.current=null;return b}function g(a){var b=h(a.alternate,a,B);null===b&&(b=d(a));de.current=null;return b}function l(a){v(ke,a)}function f(){if(null!==L&&0<
-L.size&&B===Z)for(;null!==G;){var a=G;G=null!==L&&(L.has(a)||null!==a.alternate&&L.has(a.alternate))?g(G):e(G);if(null===G&&(null===X?p("179"):void 0,H=Z,c(X),H=B,null===L||0===L.size||B!==Z))break}}function y(b,d){null!==X?(H=Z,c(X),f()):null===G&&a();if(!(B===Y||B>b)){H=B;a:do{if(B<=Z)for(;null!==G&&!(G=e(G),null===G&&(null===X?p("179"):void 0,H=Z,c(X),H=B,f(),B===Y||B>b||B>Z)););else if(null!==d)for(;null!==G&&!Ka;)if(1<d.timeRemaining()){if(G=e(G),null===G)if(null===X?p("179"):void 0,1<d.timeRemaining()){if(H=
-Z,c(X),H=B,f(),B===Y||B>b||B<ie)break}else Ka=!0}else Ka=!0;switch(B){case he:case Z:if(B<=b)continue a;break a;case ie:case je:case ke:if(null===d)break a;if(!Ka&&B<=b)continue a;break a;case Y:break a;default:p("181")}}while(1)}}function v(a,b){ea?p("182"):void 0;ea=!0;Pb=0;var c=H,d=!1,e=null;try{y(a,b)}catch(Sb){d=!0,e=Sb}for(;d;){if(qa){ja=e;break}var f=G;if(null===f)qa=!0;else{var h=E(f,e);null===h?p("183"):void 0;if(!qa){try{d=h;e=a;h=b;for(var k=d;null!==f;){switch(f.tag){case ye:be(f);break;
-case we:q(f);break;case ve:m(f);break;case xe:m(f)}if(f===k||f.alternate===k)break;f=f["return"]}G=g(d);y(e,h)}catch(Sb){d=!0;e=Sb;continue}break}}}H=c;null!==b&&(La=!1);B>Z&&!La&&(Dc(l),La=!0);a=ja;qa=Ka=ea=!1;ka=L=ja=null;if(null!==a)throw a;}function E(a,b){var c=de.current=null,d=!1,e=!1,f=null;if(a.tag===ve)c=a,M(a)&&(qa=!0);else for(var g=a["return"];null!==g&&null===c;){g.tag===ye?"function"===typeof g.stateNode.componentDidCatch&&(d=!0,f=Ca(g),c=g,e=!0):g.tag===ve&&(c=g);if(M(g)){if(Qb||null!==
-aa&&(aa.has(g)||null!==g.alternate&&aa.has(g.alternate)))return null;c=null;e=!1}g=g["return"]}if(null!==c){null===ka&&(ka=new Set);ka.add(c);var h="";g=a;do{a:switch(g.tag){case tb:case ub:case vb:case wb:var k=g._debugOwner,l=g._debugSource;var m=Ca(g);var q=null;k&&(q=Ca(k));k=l;m="\n in "+(m||"Unknown")+(k?" (at "+k.fileName.replace(/^.*[\\\/]/,"")+":"+k.lineNumber+")":q?" (created by "+q+")":"");break a;default:m=""}h+=m;g=g["return"]}while(g);g=h;a=Ca(a);null===L&&(L=new Map);b={componentName:a,
-componentStack:g,error:b,errorBoundary:d?c.stateNode:null,errorBoundaryFound:d,errorBoundaryName:f,willRetry:e};L.set(c,b);try{console.error(b.error)}catch(af){console.error(af)}Ob?(null===aa&&(aa=new Set),aa.add(c)):F(c);return c}null===ja&&(ja=b);return null}function M(a){return null!==ka&&(ka.has(a)||null!==a.alternate&&ka.has(a.alternate))}function D(a,b){return A(a,b,!1)}function A(a,b){Pb>bf&&(qa=!0,p("185"));!ea&&b<=B&&(G=null);for(var c=!0;null!==a&&c;){c=!1;if(a.pendingWorkPriority===Y||
-a.pendingWorkPriority>b)c=!0,a.pendingWorkPriority=b;null!==a.alternate&&(a.alternate.pendingWorkPriority===Y||a.alternate.pendingWorkPriority>b)&&(c=!0,a.alternate.pendingWorkPriority=b);if(null===a["return"])if(a.tag===ve){var d=a.stateNode;b===Y||d.isScheduled||(d.isScheduled=!0,Ja?Ja.nextScheduledRoot=d:W=d,Ja=d);if(!ea)switch(b){case he:bb?v(he,null):v(Z,null);break;case Z:O?void 0:p("186");break;default:La||(Dc(l),La=!0)}}else break;a=a["return"]}}function C(a,b){var c=H;c===Y&&(c=!Vd||a.internalContextTag&
-le||b?je:he);return c===he&&(ea||O)?Z:c}function F(a){A(a,Z,!0)}var u=Pd(b),U=ae(b),m=u.popHostContainer,q=u.popHostContext,r=u.resetHostContainer,x=dd(b,u,U,D,C),t=x.beginWork,h=x.beginFailedWork,k=vd(b,u,U).completeWork;u=Kd(b,E);var Bc=u.commitPlacement,Rd=u.commitDeletion,Cc=u.commitWork,Sd=u.commitLifeCycles,Td=u.commitAttachRef,Ud=u.commitDetachRef,Dc=b.scheduleDeferredCallback,Vd=b.useSyncScheduling,Ze=b.prepareForCommit,$e=b.resetAfterCommit,H=Y,ea=!1,Ka=!1,O=!1,bb=!1,G=null,B=Y,w=null,X=
-null,W=null,Ja=null,La=!1,L=null,ka=null,aa=null,ja=null,qa=!1,Ob=!1,Qb=!1,bf=1E3,Pb=0;return{scheduleUpdate:D,getPriorityContext:C,performWithPriority:function(a,b){var c=H;H=a;try{b()}finally{H=c}},batchedUpdates:function(a,b){var c=O;O=!0;try{return a(b)}finally{O=c,ea||O||v(Z,null)}},unbatchedUpdates:function(a){var b=bb,c=O;bb=O;O=!1;try{return a()}finally{O=c,bb=b}},flushSync:function(a){var b=O,c=H;O=!0;H=he;try{return a()}finally{O=b,H=c,ea?p("187"):void 0,v(Z,null)}},deferredUpdates:function(a){var b=
-H;H=je;try{return a()}finally{H=b}}}}function Ce(){p("196")}function De(b){if(!b)return n;b=Da.get(b);return"number"===typeof b.tag?Ce(b):b._processChildContext(b._context)}De._injectFiber=function(b){Ce=b};var Ee=Ba.addTopLevelUpdate,Fe=Q.findCurrentUnmaskedContext,Ge=Q.isContextProvider,He=Q.processChildContext,Ie=J.HostComponent,Je=Ra.findCurrentHostFiber,Ke=Ra.findCurrentHostFiberWithNoPortals;De._injectFiber(function(b){var a=Fe(b);return Ge(b)?He(b,a,!1):a});var Le=void 0;
-if(la.canUseDOM)if("function"!==typeof requestIdleCallback){var Me=null,Ne=null,Oe=!1,Pe=!1,Qe=0,Re=33,Se=33,Te={timeRemaining:"object"===typeof performance&&"function"===typeof performance.now?function(){return Qe-performance.now()}:function(){return Qe-Date.now()}},Ue="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(b){b.source===window&&b.data===Ue&&(Oe=!1,b=Ne,Ne=null,null!==b&&b(Te))},!1);var Ve=function(b){Pe=!1;var a=b-Qe+Se;a<Se&&Re<Se?
-(8>a&&(a=8),Se=a<Re?Re:a):Re=a;Qe=b+Se;Oe||(Oe=!0,window.postMessage(Ue,"*"));a=Me;Me=null;null!==a&&a(b)};Le=function(b){Ne=b;Pe||(Pe=!0,requestAnimationFrame(Ve));return 0}}else Le=requestIdleCallback;else Le=function(b){setTimeout(function(){b({timeRemaining:function(){return Infinity}})});return 0};var We={rIC:Le},Xe=ba||function(b){for(var a=1;a<arguments.length;a++){var c=arguments[a],d;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(b[d]=c[d])}return b};
-function Ye(b,a){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?b:a}function cf(b,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(b,a):b.__proto__=a)}
-function df(b,a){if(!(b instanceof a))throw new TypeError("Cannot call a class as a function");}ca.setCurrent(da);var ef=ha.Component,ff=new fa,gf={onClick:"click",onMouseMove:"mousemove",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown"},hf={CLIPPING_RECTANGLE:"ClippingRectangle",GROUP:"Group",SHAPE:"Shape",TEXT:"Text"},jf={};function kf(b){return b?"string"===typeof b?b:b.length?b.join(""):"":""}
-function lf(b){return function(a){var c=b._listeners[a.type];c&&("function"===typeof c?c.call(b,a):c.handleEvent&&c.handleEvent(a))}}function mf(b){if(b._subscriptions)for(var a in b._subscriptions)b._subscriptions[a]();b._subscriptions=null;b._listeners=null}function nf(b,a){of(b,a,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});b.width=a.width;b.height=a.height}function pf(b,a){of(b,a,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});b.width=a.width;b.height=a.height}
-function of(b,a){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};var d=null!=a.scaleX?a.scaleX:null!=a.scale?a.scale:1;var e=null!=a.scaleY?a.scaleY:null!=a.scale?a.scale:1;ff.transformTo(1,0,0,1,0,0).move(a.x||0,a.y||0).rotate(a.rotation||0,a.originX,a.originY).scale(d,e,a.originX,a.originY);null!=a.transform&&ff.transform(a.transform);b.xx===ff.xx&&b.yx===ff.yx&&b.xy===ff.xy&&b.yy===ff.yy&&b.x===ff.x&&b.y===ff.y||b.transformTo(ff);a.cursor===c.cursor&&a.title===c.title||b.indicate(a.cursor,
-a.title);b.blend&&a.opacity!==c.opacity&&b.blend(null==a.opacity?1:a.opacity);a.visible!==c.visible&&(null==a.visible||a.visible?b.show():b.hide());for(var g in gf)c=b,d=gf[g],e=a[g],c._listeners||(c._listeners={},c._subscriptions={}),(c._listeners[d]=e)?c._subscriptions[d]||(c._subscriptions[d]=c.subscribe(d,lf(c),c)):c._subscriptions[d]&&(c._subscriptions[d](),delete c._subscriptions[d])}
-function qf(b,a){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};of(b,a,c);c.fill!==a.fill&&(a.fill&&a.fill.applyFill?a.fill.applyFill(b):b.fill(a.fill));c.stroke===a.stroke&&c.strokeWidth===a.strokeWidth&&c.strokeCap===a.strokeCap&&c.strokeJoin===a.strokeJoin&&c.strokeDash===a.strokeDash||b.stroke(a.stroke,a.strokeWidth,a.strokeCap,a.strokeJoin,a.strokeDash)}
-function rf(b,a){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};qf(b,a,c);var d=a.d||kf(a.children),e=b._prevDelta;if(d!==b._prevPath||d.delta!==e||c.height!==a.height||c.width!==a.width)b.draw(d,a.width,a.height),b._prevDelta=d.delta,b._prevPath=d}
-function sf(b,a){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};qf(b,a,c);var d=a.children,e;if(!(e=b._currentString!==d)){e=a.font;var g=c.font;e=e===g?!0:"string"===typeof g||"string"===typeof e?!1:g.fontSize===e.fontSize&&g.fontStyle===e.fontStyle&&g.fontVariant===e.fontVariant&&g.fontWeight===e.fontWeight&&g.fontFamily===e.fontFamily;e=!e}if(e||a.alignment!==c.alignment||a.path!==c.path)b.draw(d,a.font,a.alignment,a.path),b._currentString=d}
-var tf=Array.prototype.slice,uf=function(){function b(a,c,d,e,g){df(this,b);this._args=tf.call(arguments)}b.prototype.applyFill=function(a){a.fillLinear.apply(a,this._args)};return b}(),vf=function(){function b(a,c,d,e,g,l,f){df(this,b);this._args=tf.call(arguments)}b.prototype.applyFill=function(a){a.fillRadial.apply(a,this._args)};return b}(),wf=function(){function b(a,c,d,e,g){df(this,b);this._args=tf.call(arguments)}b.prototype.applyFill=function(a){a.fillImage.apply(a,this._args)};return b}(),
-yf=function(b){function a(){df(this,a);return Ye(this,b.apply(this,arguments))}cf(a,b);a.prototype.componentDidMount=function(){var a=this.props;this._surface=ca.Surface(+a.width,+a.height,this._tagRef);this._mountNode=xf.createContainer(this._surface);xf.updateContainer(this.props.children,this._mountNode,this)};a.prototype.componentDidUpdate=function(a){var b=this.props;b.height===a.height&&b.width===a.width||this._surface.resize(+b.width,+b.height);xf.updateContainer(this.props.children,this._mountNode,
-this);this._surface.render&&this._surface.render()};a.prototype.componentWillUnmount=function(){xf.updateContainer(null,this._mountNode,this)};a.prototype.render=function(){var a=this,b=this.props;return ha.createElement(ca.Surface.tagName,{ref:function(b){return a._tagRef=b},accessKey:b.accessKey,className:b.className,draggable:b.draggable,role:b.role,style:b.style,tabIndex:b.tabIndex,title:b.title})};return a}(ef),zf=function(b){function a(c){df(this,a);var d=Ye(this,b.call(this,c));["height","width",
-"x","y"].forEach(function(a){Object.defineProperty(d,a,{get:function(){return this._text?this._text[a]:void 0}})});return d}cf(a,b);a.prototype.render=function(){var a=this;return ha.createElement(hf.TEXT,Xe({},this.props,{ref:function(b){return a._text=b}}),kf(this.props.children))};return a}(ha.Component),xf=function(b){var a=b.getPublicInstance;b=Be(b);var c=b.scheduleUpdate,d=b.getPriorityContext;return{createContainer:function(a){var b=sb();a={current:b,containerInfo:a,isScheduled:!1,nextScheduledRoot:null,
-context:null,pendingContext:null};return b.stateNode=a},updateContainer:function(a,b,l,f){var e=b.current;l=De(l);null===b.context?b.context=l:b.pendingContext=l;b=f;f=d(e,ma.enableAsyncSubtreeAPI&&null!=a&&null!=a.type&&null!=a.type.prototype&&!0===a.type.prototype.unstable_isAsyncReactComponent);a={element:a};Ee(e,a,void 0===b?null:b,f);c(e,f)},performWithPriority:b.performWithPriority,batchedUpdates:b.batchedUpdates,unbatchedUpdates:b.unbatchedUpdates,deferredUpdates:b.deferredUpdates,flushSync:b.flushSync,
-getPublicRootInstance:function(b){b=b.current;if(!b.child)return null;switch(b.child.tag){case Ie:return a(b.child.stateNode);default:return b.child.stateNode}},findHostInstance:function(a){a=Je(a);return null===a?null:a.stateNode},findHostInstanceWithNoPortals:function(a){a=Ke(a);return null===a?null:a.stateNode}}}({appendChild:function(b,a){a.parentNode===b&&a.eject();a.inject(b)},appendChildToContainer:function(b,a){a.parentNode===b&&a.eject();a.inject(b)},appendInitialChild:function(b,a){"string"===
-typeof a?p("216"):a.inject(b)},commitTextUpdate:function(){},commitMount:function(){},commitUpdate:function(b,a,c,d,e){b._applyProps(b,e,d)},createInstance:function(b,a){var c=void 0;switch(b){case hf.CLIPPING_RECTANGLE:c=ca.ClippingRectangle();c._applyProps=nf;break;case hf.GROUP:c=ca.Group();c._applyProps=pf;break;case hf.SHAPE:c=ca.Shape();c._applyProps=rf;break;case hf.TEXT:c=ca.Text(a.children,a.font,a.alignment,a.path),c._applyProps=sf}c?void 0:p("217",b);c._applyProps(c,a);return c},createTextInstance:function(b){return b},
-finalizeInitialChildren:function(){return!1},getPublicInstance:function(b){return b},insertBefore:function(b,a,c){a===c?p("218"):void 0;a.injectBefore(c)},insertInContainerBefore:function(b,a,c){a===c?p("218"):void 0;a.injectBefore(c)},prepareForCommit:function(){},prepareUpdate:function(){return jf},removeChild:function(b,a){mf(a);a.eject()},removeChildFromContainer:function(b,a){mf(a);a.eject()},resetAfterCommit:function(){},resetTextContent:function(){},shouldDeprioritizeSubtree:function(){return!1},
-getRootHostContext:function(){return n},getChildHostContext:function(){return n},scheduleDeferredCallback:We.rIC,shouldSetTextContent:function(b,a){return"string"===typeof a.children||"number"===typeof a.children},useSyncScheduling:!0});module.exports={ClippingRectangle:hf.CLIPPING_RECTANGLE,Group:hf.GROUP,LinearGradient:uf,Path:ca.Path,Pattern:wf,RadialGradient:vf,Shape:hf.SHAPE,Surface:yf,Text:zf,Transform:fa};
+function wc(a,b,c,d){function e(a,b){b.updater=g;a.stateNode=b;Da.set(b,a)}var g={isMounted:vc,enqueueSetState:function(c,d,e){c=Da.get(c);var f=b(c,!1);qc(c,d,void 0===e?null:e,f);a(c,f)},enqueueReplaceState:function(c,d,e){c=Da.get(c);var f=b(c,!1);rc(c,d,void 0===e?null:e,f);a(c,f)},enqueueForceUpdate:function(c,d){c=Da.get(c);var e=b(c,!1);sc(c,void 0===d?null:d,e);a(c,e)}};return{adoptClassInstance:e,constructClassInstance:function(a,b){var c=a.type,d=oc(a),l=pc(a),g=l?nc(a,d):p;b=new c(b,g);
+e(a,b);l&&mc(a,d,g);return b},mountClassInstance:function(a,b){var c=a.alternate,d=a.stateNode,e=d.state||null,l=a.pendingProps;l?void 0:q("158");var m=oc(a);d.props=l;d.state=e;d.refs=p;d.context=nc(a,m);ma.enableAsyncSubtreeAPI&&null!=a.type&&null!=a.type.prototype&&!0===a.type.prototype.unstable_isAsyncReactComponent&&(a.internalContextTag|=lc);"function"===typeof d.componentWillMount&&(m=d.state,d.componentWillMount(),m!==d.state&&g.enqueueReplaceState(d,d.state,null),m=a.updateQueue,null!==m&&
+(d.state=tc(c,a,m,d,e,l,b)));"function"===typeof d.componentDidMount&&(a.effectTag|=kc)},updateClassInstance:function(a,b,e){var f=b.stateNode;f.props=b.memoizedProps;f.state=b.memoizedState;var l=b.memoizedProps,m=b.pendingProps;m||(m=l,null==m?q("159"):void 0);var x=f.context,z=oc(b);z=nc(b,z);"function"!==typeof f.componentWillReceiveProps||l===m&&x===z||(x=f.state,f.componentWillReceiveProps(m,z),f.state!==x&&g.enqueueReplaceState(f,f.state,null));x=b.memoizedState;e=null!==b.updateQueue?tc(a,
+b,b.updateQueue,f,x,m,e):x;if(!(l!==m||x!==e||uc()||null!==b.updateQueue&&b.updateQueue.hasForceUpdate))return"function"!==typeof f.componentDidUpdate||l===a.memoizedProps&&x===a.memoizedState||(b.effectTag|=kc),!1;var B=m;if(null===l||null!==b.updateQueue&&b.updateQueue.hasForceUpdate)B=!0;else{var D=b.stateNode,v=b.type;B="function"===typeof D.shouldComponentUpdate?D.shouldComponentUpdate(B,e,z):v.prototype&&v.prototype.isPureReactComponent?!ia(l,B)||!ia(x,e):!0}B?("function"===typeof f.componentWillUpdate&&
+f.componentWillUpdate(m,e,z),"function"===typeof f.componentDidUpdate&&(b.effectTag|=kc)):("function"!==typeof f.componentDidUpdate||l===a.memoizedProps&&x===a.memoizedState||(b.effectTag|=kc),c(b,m),d(b,e));f.props=m;f.state=e;f.context=z;return B}}}
+var xc=jc.mountChildFibersInPlace,yc=jc.reconcileChildFibers,zc=jc.reconcileChildFibersInPlace,Dc=jc.cloneChildFibers,Ec=Ba.beginUpdateQueue,Fc=Q.getMaskedContext,Gc=Q.getUnmaskedContext,Hc=Q.hasContextChanged,Ic=Q.pushContextProvider,Jc=Q.pushTopLevelContextObject,Kc=Q.invalidateContextProvider,Lc=H.IndeterminateComponent,Mc=H.FunctionalComponent,Nc=H.ClassComponent,Oc=H.HostRoot,Pc=H.HostComponent,Qc=H.HostText,Rc=H.HostPortal,Sc=H.CoroutineComponent,Tc=H.CoroutineHandlerPhase,Uc=H.YieldComponent,
+Vc=H.Fragment,Wc=G.NoWork,Xc=G.OffscreenPriority,Yc=y.PerformedWork,Zc=y.Placement,$c=y.ContentReset,ad=y.Err,bd=y.Ref,cd=Ea.ReactCurrentOwner;
+function dd(a,b,c,d,e){function g(a,b,c){m(a,b,c,b.pendingWorkPriority)}function m(a,b,c,d){b.child=null===a?xc(b,b.child,c,d):a.child===b.child?yc(b,b.child,c,d):zc(b,b.child,c,d)}function l(a,b){var c=b.ref;null===c||a&&a.ref===c||(b.effectTag|=bd)}function x(a,b,c,d){l(a,b);if(!c)return d&&Kc(b,!1),f(a,b);c=b.stateNode;cd.current=b;var k=c.render();b.effectTag|=Yc;g(a,b,k);b.memoizedState=c.state;b.memoizedProps=c.props;d&&Kc(b,!0);return b.child}function f(b,a){Dc(b,a);return a.child}function C(b,
+a){switch(a.tag){case Nc:Ic(a);break;case Rc:D(a,a.stateNode.containerInfo)}return null}var K=a.shouldSetTextContent,M=a.useSyncScheduling,z=a.shouldDeprioritizeSubtree,B=b.pushHostContext,D=b.pushHostContainer,v=c.enterHydrationState,U=c.resetHydrationState,n=c.tryToClaimNextHydratableInstance;a=wc(d,e,function(b,a){b.memoizedProps=a},function(b,a){b.memoizedState=a});var r=a.adoptClassInstance,t=a.constructClassInstance,P=a.mountClassInstance,u=a.updateClassInstance;return{beginWork:function(b,
+a,c){if(a.pendingWorkPriority===Wc||a.pendingWorkPriority>c)return C(b,a);switch(a.tag){case Lc:null!==b?q("155"):void 0;var d=a.type,e=a.pendingProps,k=Gc(a);k=Fc(a,k);d=d(e,k);a.effectTag|=Yc;"object"===typeof d&&null!==d&&"function"===typeof d.render?(a.tag=Nc,e=Ic(a),r(a,d),P(a,c),a=x(b,a,!0,e)):(a.tag=Mc,g(b,a,d),a.memoizedProps=e,a=a.child);return a;case Mc:a:{e=a.type;c=a.pendingProps;d=a.memoizedProps;if(Hc())null===c&&(c=d);else if(null===c||d===c){a=f(b,a);break a}d=Gc(a);d=Fc(a,d);e=e(c,
+d);a.effectTag|=Yc;g(b,a,e);a.memoizedProps=c;a=a.child}return a;case Nc:return e=Ic(a),d=void 0,null===b?a.stateNode?q("153"):(t(a,a.pendingProps),P(a,c),d=!0):d=u(b,a,c),x(b,a,d,e);case Oc:return e=a.stateNode,e.pendingContext?Jc(a,e.pendingContext,e.pendingContext!==e.context):e.context&&Jc(a,e.context,!1),D(a,e.containerInfo),d=a.updateQueue,null!==d?(e=a.memoizedState,d=Ec(b,a,d,null,e,null,c),e===d?(U(),a=f(b,a)):(e=d.element,null!==b&&null!==b.child||!v(a)?(U(),g(b,a,e)):(a.effectTag|=Zc,a.child=
+xc(a,a.child,e,c)),a.memoizedState=d,a=a.child)):(U(),a=f(b,a)),a;case Pc:B(a);null===b&&n(a);e=a.type;var h=a.memoizedProps;d=a.pendingProps;null===d&&(d=h,null===d?q("154"):void 0);k=null!==b?b.memoizedProps:null;Hc()||null!==d&&h!==d?(h=d.children,K(e,d)?h=null:k&&K(e,k)&&(a.effectTag|=$c),l(b,a),c!==Xc&&!M&&z(e,d)?(a.pendingWorkPriority=Xc,a=null):(g(b,a,h),a.memoizedProps=d,a=a.child)):a=f(b,a);return a;case Qc:return null===b&&n(a),b=a.pendingProps,null===b&&(b=a.memoizedProps),a.memoizedProps=
+b,null;case Tc:a.tag=Sc;case Sc:c=a.pendingProps;if(Hc())null===c&&(c=b&&b.memoizedProps,null===c?q("154"):void 0);else if(null===c||a.memoizedProps===c)c=a.memoizedProps;e=c.children;d=a.pendingWorkPriority;a.stateNode=null===b?xc(a,a.stateNode,e,d):b.child===a.child?yc(a,a.stateNode,e,d):zc(a,a.stateNode,e,d);a.memoizedProps=c;return a.stateNode;case Uc:return null;case Rc:a:{D(a,a.stateNode.containerInfo);c=a.pendingWorkPriority;e=a.pendingProps;if(Hc())null===e&&(e=b&&b.memoizedProps,null==e?
+q("154"):void 0);else if(null===e||a.memoizedProps===e){a=f(b,a);break a}null===b?a.child=zc(a,a.child,e,c):g(b,a,e);a.memoizedProps=e;a=a.child}return a;case Vc:a:{c=a.pendingProps;if(Hc())null===c&&(c=a.memoizedProps);else if(null===c||a.memoizedProps===c){a=f(b,a);break a}g(b,a,c);a.memoizedProps=c;a=a.child}return a;default:q("156")}},beginFailedWork:function(a,b,c){switch(b.tag){case Nc:Ic(b);break;case Oc:D(b,b.stateNode.containerInfo);break;default:q("157")}b.effectTag|=ad;null===a?b.child=
+null:b.child!==a.child&&(b.child=a.child);if(b.pendingWorkPriority===Wc||b.pendingWorkPriority>c)return C(a,b);b.firstEffect=null;b.lastEffect=null;m(a,b,null,c);b.tag===Nc&&(a=b.stateNode,b.memoizedProps=a.props,b.memoizedState=a.state);return b.child}}}
+var ed=jc.reconcileChildFibers,fd=Q.popContextProvider,gd=H.IndeterminateComponent,hd=H.FunctionalComponent,id=H.ClassComponent,jd=H.HostRoot,kd=H.HostComponent,ld=H.HostText,md=H.HostPortal,nd=H.CoroutineComponent,od=H.CoroutineHandlerPhase,pd=H.YieldComponent,qd=H.Fragment,rd=y.Placement,sd=y.Ref,td=y.Update,ud=G.OffscreenPriority;
+function vd(a,b,c){var d=a.createInstance,e=a.createTextInstance,g=a.appendInitialChild,m=a.finalizeInitialChildren,l=a.prepareUpdate,x=b.getRootHostContainer,f=b.popHostContext,C=b.getHostContext,K=b.popHostContainer,M=c.prepareToHydrateHostInstance,z=c.prepareToHydrateHostTextInstance,B=c.popHydrationState;return{completeWork:function(a,b,c){var n=b.pendingProps;if(null===n)n=b.memoizedProps;else if(b.pendingWorkPriority!==ud||c===ud)b.pendingProps=null;switch(b.tag){case hd:return null;case id:return fd(b),
+null;case jd:n=b.stateNode;n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null);if(null===a||null===a.child)B(b),b.effectTag&=~rd;return null;case kd:f(b);c=x();var r=b.type;if(null!==a&&null!=b.stateNode){var t=a.memoizedProps,v=b.stateNode,u=C();n=l(v,r,t,n,c,u);if(b.updateQueue=n)b.effectTag|=td;a.ref!==b.ref&&(b.effectTag|=sd)}else{if(!n)return null===b.stateNode?q("166"):void 0,null;a=C();if(B(b))M(b,c)&&(b.effectTag|=td);else{a=d(r,n,c,a,b);a:for(t=b.child;null!==t;){if(t.tag===
+kd||t.tag===ld)g(a,t.stateNode);else if(t.tag!==md&&null!==t.child){t=t.child;continue}if(t===b)break a;for(;null===t.sibling;){if(null===t["return"]||t["return"]===b)break a;t=t["return"]}t=t.sibling}m(a,r,n,c)&&(b.effectTag|=td);b.stateNode=a}null!==b.ref&&(b.effectTag|=sd)}return null;case ld:if(a&&null!=b.stateNode)a.memoizedProps!==n&&(b.effectTag|=td);else{if("string"!==typeof n)return null===b.stateNode?q("166"):void 0,null;a=x();c=C();B(b)?z(b)&&(b.effectTag|=td):b.stateNode=e(n,a,c,b)}return null;
+case nd:(n=b.memoizedProps)?void 0:q("165");b.tag=od;c=[];a:for((r=b.stateNode)&&(r["return"]=b);null!==r;){if(r.tag===kd||r.tag===ld||r.tag===md)q("164");else if(r.tag===pd)c.push(r.type);else if(null!==r.child){r.child["return"]=r;r=r.child;continue}for(;null===r.sibling;){if(null===r["return"]||r["return"]===b)break a;r=r["return"]}r.sibling["return"]=r["return"];r=r.sibling}r=n.handler;n=r(n.props,c);b.child=ed(b,null!==a?a.child:null,n,b.pendingWorkPriority);return b.child;case od:return b.tag=
+nd,null;case pd:return null;case qd:return null;case md:return b.effectTag|=td,K(b),null;case gd:q("167");default:q("156")}}}}var wd=null,xd=null;function yd(a){return function(b){try{return a(b)}catch(c){}}}
+var zd={injectInternals:function(a){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!b.supportsFiber)return!0;try{var c=b.inject(a);wd=yd(function(a){return b.onCommitFiberRoot(c,a)});xd=yd(function(a){return b.onCommitFiberUnmount(c,a)})}catch(d){}return!0},onCommitRoot:function(a){"function"===typeof wd&&wd(a)},onCommitUnmount:function(a){"function"===typeof xd&&xd(a)}},Ad=H.ClassComponent,Bd=H.HostRoot,T=H.HostComponent,Cd=H.HostText,V=H.HostPortal,
+Dd=H.CoroutineComponent,Ed=Ba.commitCallbacks,Fd=zd.onCommitUnmount,Gd=y.Placement,Hd=y.Update,Id=y.Callback,Jd=y.ContentReset;
+function Kd(a,b){function c(a){var c=a.ref;if(null!==c)try{c(null)}catch(t){b(a,t)}}function d(a){return a.tag===T||a.tag===Bd||a.tag===V}function e(a){for(var b=a;;)if(m(b),null!==b.child&&b.tag!==V)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||b["return"]===a)return;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}function g(a){for(var b=a,c=!1,d=void 0,n=void 0;;){if(!c){c=b["return"];a:for(;;){null===c?q("160"):void 0;switch(c.tag){case T:d=
+c.stateNode;n=!1;break a;case Bd:d=c.stateNode.containerInfo;n=!0;break a;case V:d=c.stateNode.containerInfo;n=!0;break a}c=c["return"]}c=!0}if(b.tag===T||b.tag===Cd)e(b),n?v(d,b.stateNode):D(d,b.stateNode);else if(b.tag===V?d=b.stateNode.containerInfo:m(b),null!==b.child){b.child["return"]=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b["return"]||b["return"]===a)return;b=b["return"];b.tag===V&&(c=!1)}b.sibling["return"]=b["return"];b=b.sibling}}function m(a){"function"===
+typeof Fd&&Fd(a);switch(a.tag){case Ad:c(a);var d=a.stateNode;if("function"===typeof d.componentWillUnmount)try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(t){b(a,t)}break;case T:c(a);break;case Dd:e(a.stateNode);break;case V:g(a)}}var l=a.commitMount,x=a.commitUpdate,f=a.resetTextContent,C=a.commitTextUpdate,K=a.appendChild,M=a.appendChildToContainer,z=a.insertBefore,B=a.insertInContainerBefore,D=a.removeChild,v=a.removeChildFromContainer,U=a.getPublicInstance;
+return{commitPlacement:function(a){a:{for(var b=a["return"];null!==b;){if(d(b)){var c=b;break a}b=b["return"]}q("160");c=void 0}var e=b=void 0;switch(c.tag){case T:b=c.stateNode;e=!1;break;case Bd:b=c.stateNode.containerInfo;e=!0;break;case V:b=c.stateNode.containerInfo;e=!0;break;default:q("161")}c.effectTag&Jd&&(f(b),c.effectTag&=~Jd);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c["return"]||d(c["return"])){c=null;break a}c=c["return"]}c.sibling["return"]=c["return"];for(c=c.sibling;c.tag!==
+T&&c.tag!==Cd;){if(c.effectTag&Gd)continue b;if(null===c.child||c.tag===V)continue b;else c.child["return"]=c,c=c.child}if(!(c.effectTag&Gd)){c=c.stateNode;break a}}for(var g=a;;){if(g.tag===T||g.tag===Cd)c?e?B(b,g.stateNode,c):z(b,g.stateNode,c):e?M(b,g.stateNode):K(b,g.stateNode);else if(g.tag!==V&&null!==g.child){g.child["return"]=g;g=g.child;continue}if(g===a)break;for(;null===g.sibling;){if(null===g["return"]||g["return"]===a)return;g=g["return"]}g.sibling["return"]=g["return"];g=g.sibling}},
+commitDeletion:function(a){g(a);a["return"]=null;a.child=null;a.alternate&&(a.alternate.child=null,a.alternate["return"]=null)},commitWork:function(a,b){switch(b.tag){case Ad:break;case T:var c=b.stateNode;if(null!=c){var d=b.memoizedProps;a=null!==a?a.memoizedProps:d;var e=b.type,g=b.updateQueue;b.updateQueue=null;null!==g&&x(c,g,e,a,d,b)}break;case Cd:null===b.stateNode?q("162"):void 0;c=b.memoizedProps;C(b.stateNode,null!==a?a.memoizedProps:c,c);break;case Bd:break;case V:break;default:q("163")}},
+commitLifeCycles:function(a,b){switch(b.tag){case Ad:var c=b.stateNode;if(b.effectTag&Hd)if(null===a)c.props=b.memoizedProps,c.state=b.memoizedState,c.componentDidMount();else{var d=a.memoizedProps;a=a.memoizedState;c.props=b.memoizedProps;c.state=b.memoizedState;c.componentDidUpdate(d,a)}b.effectTag&Id&&null!==b.updateQueue&&Ed(b,b.updateQueue,c);break;case Bd:a=b.updateQueue;null!==a&&Ed(b,a,b.child&&b.child.stateNode);break;case T:c=b.stateNode;null===a&&b.effectTag&Hd&&l(c,b.type,b.memoizedProps,
+b);break;case Cd:break;case V:break;default:q("163")}},commitAttachRef:function(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case T:b(U(c));break;default:b(c)}}},commitDetachRef:function(a){a=a.ref;null!==a&&a(null)}}}var Ld=Ta.createCursor,Md=Ta.pop,Nd=Ta.push,Od={};
+function Ud(a){function b(a){a===Od?q("174"):void 0;return a}var c=a.getChildHostContext,d=a.getRootHostContext,e=Ld(Od),g=Ld(Od),m=Ld(Od);return{getHostContext:function(){return b(e.current)},getRootHostContainer:function(){return b(m.current)},popHostContainer:function(a){Md(e,a);Md(g,a);Md(m,a)},popHostContext:function(a){g.current===a&&(Md(e,a),Md(g,a))},pushHostContainer:function(a,b){Nd(m,b,a);b=d(b);Nd(g,a,a);Nd(e,b,a)},pushHostContext:function(a){var d=b(m.current),f=b(e.current);d=c(f,a.type,
+d);f!==d&&(Nd(g,a,a),Nd(e,d,a))},resetHostContainer:function(){e.current=Od;m.current=Od}}}var Vd=H.HostComponent,Wd=H.HostText,Xd=H.HostRoot,Yd=y.Deletion,Zd=y.Placement,$d=S.createFiberFromHostInstanceForDeletion;
+function ae(a){function b(a,b){var c=$d();c.stateNode=b;c["return"]=a;c.effectTag=Yd;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}function c(a,b){switch(a.tag){case Vd:return g(b,a.type,a.pendingProps);case Wd:return m(b,a.pendingProps);default:return!1}}function d(a){for(a=a["return"];null!==a&&a.tag!==Vd&&a.tag!==Xd;)a=a["return"];z=a}var e=a.shouldSetTextContent,g=a.canHydrateInstance,m=a.canHydrateTextInstance,l=a.getNextHydratableSibling,x=a.getFirstHydratableChild,
+f=a.hydrateInstance,C=a.hydrateTextInstance,K=a.didNotHydrateInstance,M=a.didNotFindHydratableInstance;a=a.didNotFindHydratableTextInstance;if(!(g&&m&&l&&x&&f&&C&&K&&M&&a))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){q("175")},prepareToHydrateHostTextInstance:function(){q("176")},popHydrationState:function(){return!1}};var z=null,B=null,D=!1;return{enterHydrationState:function(a){B=
+x(a.stateNode.containerInfo);z=a;return D=!0},resetHydrationState:function(){B=z=null;D=!1},tryToClaimNextHydratableInstance:function(a){if(D){var d=B;if(d){if(!c(a,d)){d=l(d);if(!d||!c(a,d)){a.effectTag|=Zd;D=!1;z=a;return}b(z,B)}a.stateNode=d;z=a;B=x(d)}else a.effectTag|=Zd,D=!1,z=a}},prepareToHydrateHostInstance:function(a,b){b=f(a.stateNode,a.type,a.memoizedProps,b,a);a.updateQueue=b;return null!==b?!0:!1},prepareToHydrateHostTextInstance:function(a){return C(a.stateNode,a.memoizedProps,a)},popHydrationState:function(a){if(a!==
+z)return!1;if(!D)return d(a),D=!0,!1;var c=a.type;if(a.tag!==Vd||"head"!==c&&"body"!==c&&!e(c,a.memoizedProps))for(c=B;c;)b(a,c),c=l(c);d(a);B=z?l(a.stateNode):null;return!0}}}
+var be=Q.popContextProvider,ce=Ta.reset,de=Ea.ReactCurrentOwner,ee=S.createWorkInProgress,fe=S.largerPriority,ge=zd.onCommitRoot,Y=G.NoWork,he=G.SynchronousPriority,Z=G.TaskPriority,ie=G.HighPriority,je=G.LowPriority,ke=G.OffscreenPriority,le=eb.AsyncUpdates,me=y.PerformedWork,ne=y.Placement,oe=y.Update,pe=y.PlacementAndUpdate,qe=y.Deletion,re=y.ContentReset,se=y.Callback,te=y.Err,ue=y.Ref,ve=H.HostRoot,we=H.HostComponent,xe=H.HostPortal,ye=H.ClassComponent,ze=Ba.getUpdatePriority,Ae=Q.resetContext;
+function Be(a){function b(){for(;null!==W&&W.current.pendingWorkPriority===Y;){W.isScheduled=!1;var a=W.nextScheduledRoot;W.nextScheduledRoot=null;if(W===Ja)return Ja=W=null,A=Y,null;W=a}a=W;for(var b=null,c=Y;null!==a;)a.current.pendingWorkPriority!==Y&&(c===Y||c>a.current.pendingWorkPriority)&&(c=a.current.pendingWorkPriority,b=a),a=a.nextScheduledRoot;null!==b?(A=c,ce(),Ae(),t(),E=ee(b.current,c)):(A=Y,E=null)}function c(c){Ob=!0;X=null;var d=c.stateNode;d.current===c?q("177"):void 0;A!==he&&A!==
+Z||Pb++;de.current=null;if(c.effectTag>me)if(null!==c.lastEffect){c.lastEffect.nextEffect=c;var e=c.firstEffect}else e=c;else e=c.firstEffect;Xe();for(w=e;null!==w;){var g=!1,f=void 0;try{for(;null!==w;){var h=w.effectTag;h&re&&a.resetTextContent(w.stateNode);if(h&ue){var k=w.alternate;null!==k&&Sd(k)}switch(h&~(se|te|re|ue|me)){case ne:Ac(w);w.effectTag&=~ne;break;case pe:Ac(w);w.effectTag&=~ne;Bc(w.alternate,w);break;case oe:Bc(w.alternate,w);break;case qe:Qb=!0,Pd(w),Qb=!1}w=w.nextEffect}}catch(Rb){g=
+!0,f=Rb}g&&(null===w?q("178"):void 0,C(w,f),null!==w&&(w=w.nextEffect))}Ye();d.current=c;for(w=e;null!==w;){d=!1;e=void 0;try{for(;null!==w;){var Nb=w.effectTag;Nb&(oe|se)&&Qd(w.alternate,w);Nb&ue&&Rd(w);if(Nb&te)switch(g=w,f=void 0,null!==J&&(f=J.get(g),J["delete"](g),null==f&&null!==g.alternate&&(g=g.alternate,f=J.get(g),J["delete"](g))),null==f?q("184"):void 0,g.tag){case ye:g.stateNode.componentDidCatch(f.error,{componentStack:f.componentStack});break;case ve:null===ja&&(ja=f.error);break;default:q("157")}var l=
+w.nextEffect;w.nextEffect=null;w=l}}catch(Rb){d=!0,e=Rb}d&&(null===w?q("178"):void 0,C(w,e),null!==w&&(w=w.nextEffect))}Ob=!1;"function"===typeof ge&&ge(c.stateNode);aa&&(aa.forEach(D),aa=null);b()}function d(a){for(;;){var b=k(a.alternate,a,A),c=a["return"],d=a.sibling;var e=a;if(!(e.pendingWorkPriority!==Y&&e.pendingWorkPriority>A)){for(var g=ze(e),f=e.child;null!==f;)g=fe(g,f.pendingWorkPriority),f=f.sibling;e.pendingWorkPriority=g}if(null!==b)return b;null!==c&&(null===c.firstEffect&&(c.firstEffect=
+a.firstEffect),null!==a.lastEffect&&(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect),a.effectTag>me&&(null!==c.lastEffect?c.lastEffect.nextEffect=a:c.firstEffect=a,c.lastEffect=a));if(null!==d)return d;if(null!==c)a=c;else{X=a;break}}return null}function e(a){var b=u(a.alternate,a,A);null===b&&(b=d(a));de.current=null;return b}function g(a){var b=h(a.alternate,a,A);null===b&&(b=d(a));de.current=null;return b}function m(a){f(ke,a)}function l(){if(null!==J&&0<
+J.size&&A===Z)for(;null!==E;){var a=E;E=null!==J&&(J.has(a)||null!==a.alternate&&J.has(a.alternate))?g(E):e(E);if(null===E&&(null===X?q("179"):void 0,F=Z,c(X),F=A,null===J||0===J.size||A!==Z))break}}function x(a,d){null!==X?(F=Z,c(X),l()):null===E&&b();if(!(A===Y||A>a)){F=A;a:do{if(A<=Z)for(;null!==E&&!(E=e(E),null===E&&(null===X?q("179"):void 0,F=Z,c(X),F=A,l(),A===Y||A>a||A>Z)););else if(null!==d)for(;null!==E&&!Ka;)if(1<d.timeRemaining()){if(E=e(E),null===E)if(null===X?q("179"):void 0,1<d.timeRemaining()){if(F=
+Z,c(X),F=A,l(),A===Y||A>a||A<ie)break}else Ka=!0}else Ka=!0;switch(A){case he:case Z:if(A<=a)continue a;break a;case ie:case je:case ke:if(null===d)break a;if(!Ka&&A<=a)continue a;break a;case Y:break a;default:q("181")}}while(1)}}function f(a,b){ea?q("182"):void 0;ea=!0;Pb=0;var c=F,d=!1,e=null;try{x(a,b)}catch(Sb){d=!0,e=Sb}for(;d;){if(qa){ja=e;break}var f=E;if(null===f)qa=!0;else{var h=C(f,e);null===h?q("183"):void 0;if(!qa){try{d=h;e=a;h=b;for(var k=d;null!==f;){switch(f.tag){case ye:be(f);break;
+case we:r(f);break;case ve:n(f);break;case xe:n(f)}if(f===k||f.alternate===k)break;f=f["return"]}E=g(d);x(e,h)}catch(Sb){d=!0;e=Sb;continue}break}}}F=c;null!==b&&(La=!1);A>Z&&!La&&(Cc(m),La=!0);a=ja;qa=Ka=ea=!1;ka=J=ja=null;if(null!==a)throw a;}function C(a,b){var c=de.current=null,d=!1,e=!1,g=null;if(a.tag===ve)c=a,K(a)&&(qa=!0);else for(var f=a["return"];null!==f&&null===c;){f.tag===ye?"function"===typeof f.stateNode.componentDidCatch&&(d=!0,g=Ca(f),c=f,e=!0):f.tag===ve&&(c=f);if(K(f)){if(Qb||null!==
+aa&&(aa.has(f)||null!==f.alternate&&aa.has(f.alternate)))return null;c=null;e=!1}f=f["return"]}if(null!==c){null===ka&&(ka=new Set);ka.add(c);var h="";f=a;do{a:switch(f.tag){case tb:case ub:case vb:case wb:var k=f._debugOwner,l=f._debugSource;var m=Ca(f);var n=null;k&&(n=Ca(k));k=l;m="\n in "+(m||"Unknown")+(k?" (at "+k.fileName.replace(/^.*[\\\/]/,"")+":"+k.lineNumber+")":n?" (created by "+n+")":"");break a;default:m=""}h+=m;f=f["return"]}while(f);f=h;a=Ca(a);null===J&&(J=new Map);b={componentName:a,
+componentStack:f,error:b,errorBoundary:d?c.stateNode:null,errorBoundaryFound:d,errorBoundaryName:g,willRetry:e};J.set(c,b);try{console.error(b.error)}catch(Ze){console.error(Ze)}Ob?(null===aa&&(aa=new Set),aa.add(c)):D(c);return c}null===ja&&(ja=b);return null}function K(a){return null!==ka&&(ka.has(a)||null!==a.alternate&&ka.has(a.alternate))}function M(a,b){return z(a,b,!1)}function z(a,b){Pb>$e&&(qa=!0,q("185"));!ea&&b<=A&&(E=null);for(var c=!0;null!==a&&c;){c=!1;if(a.pendingWorkPriority===Y||
+a.pendingWorkPriority>b)c=!0,a.pendingWorkPriority=b;null!==a.alternate&&(a.alternate.pendingWorkPriority===Y||a.alternate.pendingWorkPriority>b)&&(c=!0,a.alternate.pendingWorkPriority=b);if(null===a["return"])if(a.tag===ve){var d=a.stateNode;b===Y||d.isScheduled||(d.isScheduled=!0,Ja?Ja.nextScheduledRoot=d:W=d,Ja=d);if(!ea)switch(b){case he:bb?f(he,null):f(Z,null);break;case Z:N?void 0:q("186");break;default:La||(Cc(m),La=!0)}}else break;a=a["return"]}}function B(a,b){var c=F;c===Y&&(c=!Td||a.internalContextTag&
+le||b?je:he);return c===he&&(ea||N)?Z:c}function D(a){z(a,Z,!0)}var v=Ud(a),U=ae(a),n=v.popHostContainer,r=v.popHostContext,t=v.resetHostContainer,P=dd(a,v,U,M,B),u=P.beginWork,h=P.beginFailedWork,k=vd(a,v,U).completeWork;v=Kd(a,C);var Ac=v.commitPlacement,Pd=v.commitDeletion,Bc=v.commitWork,Qd=v.commitLifeCycles,Rd=v.commitAttachRef,Sd=v.commitDetachRef,Cc=a.scheduleDeferredCallback,Td=a.useSyncScheduling,Xe=a.prepareForCommit,Ye=a.resetAfterCommit,F=Y,ea=!1,Ka=!1,N=!1,bb=!1,E=null,A=Y,w=null,X=
+null,W=null,Ja=null,La=!1,J=null,ka=null,aa=null,ja=null,qa=!1,Ob=!1,Qb=!1,$e=1E3,Pb=0;return{scheduleUpdate:M,getPriorityContext:B,performWithPriority:function(a,b){var c=F;F=a;try{b()}finally{F=c}},batchedUpdates:function(a,b){var c=N;N=!0;try{return a(b)}finally{N=c,ea||N||f(Z,null)}},unbatchedUpdates:function(a){var b=bb,c=N;bb=N;N=!1;try{return a()}finally{N=c,bb=b}},flushSync:function(a){var b=N,c=F;N=!0;F=he;try{return a()}finally{N=b,F=c,ea?q("187"):void 0,f(Z,null)}},deferredUpdates:function(a){var b=
+F;F=je;try{return a()}finally{F=b}}}}var Ce=Ba.addTopLevelUpdate,De=Q.findCurrentUnmaskedContext,Ee=Q.isContextProvider,Fe=Q.processChildContext,Ge=H.HostComponent,He=Ra.findCurrentHostFiber,Ie=Ra.findCurrentHostFiberWithNoPortals,Je=void 0;
+if(la.canUseDOM)if("function"!==typeof requestIdleCallback){var Ke=null,Le=null,Me=!1,Ne=!1,Oe=0,Pe=33,Qe=33,Re={timeRemaining:"object"===typeof performance&&"function"===typeof performance.now?function(){return Oe-performance.now()}:function(){return Oe-Date.now()}},Se="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){a.source===window&&a.data===Se&&(Me=!1,a=Le,Le=null,null!==a&&a(Re))},!1);var Te=function(a){Ne=!1;var b=a-Oe+Qe;b<Qe&&Pe<Qe?
+(8>b&&(b=8),Qe=b<Pe?Pe:b):Pe=b;Oe=a+Qe;Me||(Me=!0,window.postMessage(Se,"*"));b=Ke;Ke=null;null!==b&&b(a)};Je=function(a){Le=a;Ne||(Ne=!0,requestAnimationFrame(Te));return 0}}else Je=requestIdleCallback;else Je=function(a){setTimeout(function(){a({timeRemaining:function(){return Infinity}})});return 0};var Ue={rIC:Je},Ve=ba||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};
+function We(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function af(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}
+function bf(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}ca.setCurrent(da);var cf=ha.Component,df=new fa,ef={onClick:"click",onMouseMove:"mousemove",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown"},ff={CLIPPING_RECTANGLE:"ClippingRectangle",GROUP:"Group",SHAPE:"Shape",TEXT:"Text"},gf={};function hf(a){return a?"string"===typeof a?a:a.length?a.join(""):"":""}
+function jf(a){return function(b){var c=a._listeners[b.type];c&&("function"===typeof c?c.call(a,b):c.handleEvent&&c.handleEvent(b))}}function kf(a){if(a._subscriptions)for(var b in a._subscriptions)a._subscriptions[b]();a._subscriptions=null;a._listeners=null}function lf(a,b){mf(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});a.width=b.width;a.height=b.height}function nf(a,b){mf(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});a.width=b.width;a.height=b.height}
+function mf(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};var d=null!=b.scaleX?b.scaleX:null!=b.scale?b.scale:1;var e=null!=b.scaleY?b.scaleY:null!=b.scale?b.scale:1;df.transformTo(1,0,0,1,0,0).move(b.x||0,b.y||0).rotate(b.rotation||0,b.originX,b.originY).scale(d,e,b.originX,b.originY);null!=b.transform&&df.transform(b.transform);a.xx===df.xx&&a.yx===df.yx&&a.xy===df.xy&&a.yy===df.yy&&a.x===df.x&&a.y===df.y||a.transformTo(df);b.cursor===c.cursor&&b.title===c.title||a.indicate(b.cursor,
+b.title);a.blend&&b.opacity!==c.opacity&&a.blend(null==b.opacity?1:b.opacity);b.visible!==c.visible&&(null==b.visible||b.visible?a.show():a.hide());for(var g in ef)c=a,d=ef[g],e=b[g],c._listeners||(c._listeners={},c._subscriptions={}),(c._listeners[d]=e)?c._subscriptions[d]||(c._subscriptions[d]=c.subscribe(d,jf(c),c)):c._subscriptions[d]&&(c._subscriptions[d](),delete c._subscriptions[d])}
+function of(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};mf(a,b,c);c.fill!==b.fill&&(b.fill&&b.fill.applyFill?b.fill.applyFill(a):a.fill(b.fill));c.stroke===b.stroke&&c.strokeWidth===b.strokeWidth&&c.strokeCap===b.strokeCap&&c.strokeJoin===b.strokeJoin&&c.strokeDash===b.strokeDash||a.stroke(b.stroke,b.strokeWidth,b.strokeCap,b.strokeJoin,b.strokeDash)}
+function pf(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};of(a,b,c);var d=b.d||hf(b.children),e=a._prevDelta;if(d!==a._prevPath||d.delta!==e||c.height!==b.height||c.width!==b.width)a.draw(d,b.width,b.height),a._prevDelta=d.delta,a._prevPath=d}
+function qf(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};of(a,b,c);var d=b.children,e;if(!(e=a._currentString!==d)){e=b.font;var g=c.font;e=e===g?!0:"string"===typeof g||"string"===typeof e?!1:g.fontSize===e.fontSize&&g.fontStyle===e.fontStyle&&g.fontVariant===e.fontVariant&&g.fontWeight===e.fontWeight&&g.fontFamily===e.fontFamily;e=!e}if(e||b.alignment!==c.alignment||b.path!==c.path)a.draw(d,b.font,b.alignment,b.path),a._currentString=d}
+var rf=Array.prototype.slice,sf=function(){function a(b,c,d,e,g){bf(this,a);this._args=rf.call(arguments)}a.prototype.applyFill=function(a){a.fillLinear.apply(a,this._args)};return a}(),tf=function(){function a(b,c,d,e,g,m,l){bf(this,a);this._args=rf.call(arguments)}a.prototype.applyFill=function(a){a.fillRadial.apply(a,this._args)};return a}(),uf=function(){function a(b,c,d,e,g){bf(this,a);this._args=rf.call(arguments)}a.prototype.applyFill=function(a){a.fillImage.apply(a,this._args)};return a}(),
+wf=function(a){function b(){bf(this,b);return We(this,a.apply(this,arguments))}af(b,a);b.prototype.componentDidMount=function(){var a=this.props;this._surface=ca.Surface(+a.width,+a.height,this._tagRef);this._mountNode=vf.createContainer(this._surface);vf.updateContainer(this.props.children,this._mountNode,this)};b.prototype.componentDidUpdate=function(a){var b=this.props;b.height===a.height&&b.width===a.width||this._surface.resize(+b.width,+b.height);vf.updateContainer(this.props.children,this._mountNode,
+this);this._surface.render&&this._surface.render()};b.prototype.componentWillUnmount=function(){vf.updateContainer(null,this._mountNode,this)};b.prototype.render=function(){var a=this,b=this.props;return ha.createElement(ca.Surface.tagName,{ref:function(b){return a._tagRef=b},accessKey:b.accessKey,className:b.className,draggable:b.draggable,role:b.role,style:b.style,tabIndex:b.tabIndex,title:b.title})};return b}(cf),xf=function(a){function b(c){bf(this,b);var d=We(this,a.call(this,c));["height","width",
+"x","y"].forEach(function(a){Object.defineProperty(d,a,{get:function(){return this._text?this._text[a]:void 0}})});return d}af(b,a);b.prototype.render=function(){var a=this;return ha.createElement(ff.TEXT,Ve({},this.props,{ref:function(b){return a._text=b}}),hf(this.props.children))};return b}(ha.Component),vf=function(a){var b=a.getPublicInstance;a=Be(a);var c=a.scheduleUpdate,d=a.getPriorityContext;return{createContainer:function(a){var b=sb();a={current:b,containerInfo:a,isScheduled:!1,nextScheduledRoot:null,
+context:null,pendingContext:null};return b.stateNode=a},updateContainer:function(a,b,m,l){var e=b.current;if(m){m=Da.get(m);var f=De(m);m=Ee(m)?Fe(m,f,!1):f}else m=p;null===b.context?b.context=m:b.pendingContext=m;b=l;l=d(e,ma.enableAsyncSubtreeAPI&&null!=a&&null!=a.type&&null!=a.type.prototype&&!0===a.type.prototype.unstable_isAsyncReactComponent);a={element:a};Ce(e,a,void 0===b?null:b,l);c(e,l)},performWithPriority:a.performWithPriority,batchedUpdates:a.batchedUpdates,unbatchedUpdates:a.unbatchedUpdates,
+deferredUpdates:a.deferredUpdates,flushSync:a.flushSync,getPublicRootInstance:function(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case Ge:return b(a.child.stateNode);default:return a.child.stateNode}},findHostInstance:function(a){a=He(a);return null===a?null:a.stateNode},findHostInstanceWithNoPortals:function(a){a=Ie(a);return null===a?null:a.stateNode}}}({appendChild:function(a,b){b.parentNode===a&&b.eject();b.inject(a)},appendChildToContainer:function(a,b){b.parentNode===a&&b.eject();
+b.inject(a)},appendInitialChild:function(a,b){"string"===typeof b?q("216"):b.inject(a)},commitTextUpdate:function(){},commitMount:function(){},commitUpdate:function(a,b,c,d,e){a._applyProps(a,e,d)},createInstance:function(a,b){var c=void 0;switch(a){case ff.CLIPPING_RECTANGLE:c=ca.ClippingRectangle();c._applyProps=lf;break;case ff.GROUP:c=ca.Group();c._applyProps=nf;break;case ff.SHAPE:c=ca.Shape();c._applyProps=pf;break;case ff.TEXT:c=ca.Text(b.children,b.font,b.alignment,b.path),c._applyProps=qf}c?
+void 0:q("217",a);c._applyProps(c,b);return c},createTextInstance:function(a){return a},finalizeInitialChildren:function(){return!1},getPublicInstance:function(a){return a},insertBefore:function(a,b,c){b===c?q("218"):void 0;b.injectBefore(c)},insertInContainerBefore:function(a,b,c){b===c?q("218"):void 0;b.injectBefore(c)},prepareForCommit:function(){},prepareUpdate:function(){return gf},removeChild:function(a,b){kf(b);b.eject()},removeChildFromContainer:function(a,b){kf(b);b.eject()},resetAfterCommit:function(){},
+resetTextContent:function(){},shouldDeprioritizeSubtree:function(){return!1},getRootHostContext:function(){return p},getChildHostContext:function(){return p},scheduleDeferredCallback:Ue.rIC,shouldSetTextContent:function(a,b){return"string"===typeof b.children||"number"===typeof b.children},useSyncScheduling:!0});module.exports={ClippingRectangle:ff.CLIPPING_RECTANGLE,Group:ff.GROUP,LinearGradient:sf,Path:ca.Path,Pattern:uf,RadialGradient:tf,Shape:ff.SHAPE,Surface:wf,Text:xf,Transform:fa};
diff --git a/packages/react-art/umd/react-art.development.js b/packages/react-art/umd/react-art.development.js
index f11edd2..a10d99f 100644
--- a/packages/react-art/umd/react-art.development.js
+++ b/packages/react-art/umd/react-art.development.js
@@ -802,23 +802,14 @@ var ReactFiberUpdateQueue = {
*
*/
-function getComponentName$1(instanceOrFiber) {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName();
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
+function getComponentName$1(fiber) {
+ var type = fiber.type;
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name;
- }
+ if (typeof type === 'string') {
+ return type;
+ }
+ if (typeof type === 'function') {
+ return type.displayName || type.name;
}
return null;
}
@@ -878,7 +869,6 @@ var ReactGlobalSharedState = {
{
index(ReactGlobalSharedState, {
- ReactComponentTreeHook: ReactInternals.ReactComponentTreeHook,
ReactDebugCurrentFrame: ReactInternals.ReactDebugCurrentFrame
});
}
@@ -2829,14 +2819,9 @@ function coerceRef(current, element) {
var owner = element._owner;
var inst = void 0;
if (owner) {
- if (typeof owner.tag === 'number') {
- var ownerFiber = owner;
- !(ownerFiber.tag === ClassComponent$7) ? invariant_1(false, 'Stateless function components cannot have refs.') : void 0;
- inst = ownerFiber.stateNode;
- } else {
- // Stack
- inst = owner.getPublicInstance();
- }
+ var ownerFiber = owner;
+ !(ownerFiber.tag === ClassComponent$7) ? invariant_1(false, 'Stateless function components cannot have refs.') : void 0;
+ inst = ownerFiber.stateNode;
}
!inst ? invariant_1(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;
var stringRef = '' + mixedRef;
@@ -7684,46 +7669,6 @@ var ReactFiberScheduler = function (config) {
};
};
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule getContextForSubtree
- *
- */
-
-
-
-
-
-
-var getContextFiber = function (arg) {
- invariant_1(false, 'Missing injection for fiber getContextForSubtree');
-};
-
-function getContextForSubtree(parentComponent) {
- if (!parentComponent) {
- return emptyObject_1;
- }
-
- var instance = ReactInstanceMap_1.get(parentComponent);
- if (typeof instance.tag === 'number') {
- return getContextFiber(instance);
- } else {
- return instance._processChildContext(instance._context);
- }
-}
-
-getContextForSubtree._injectFiber = function (fn) {
- getContextFiber = fn;
-};
-
-var getContextForSubtree_1 = getContextForSubtree;
-
var addTopLevelUpdate = ReactFiberUpdateQueue.addTopLevelUpdate;
var findCurrentUnmaskedContext = ReactFiberContext.findCurrentUnmaskedContext;
@@ -7734,8 +7679,11 @@ var createFiberRoot = ReactFiberRoot.createFiberRoot;
+
var HostComponent = ReactTypeOfWork.HostComponent;
+
+
{
var warning = warning_1;
var ReactFiberInstrumentation = ReactFiberInstrumentation_1;
@@ -7746,12 +7694,15 @@ var HostComponent = ReactTypeOfWork.HostComponent;
var findCurrentHostFiber = ReactFiberTreeReflection.findCurrentHostFiber;
var findCurrentHostFiberWithNoPortals = ReactFiberTreeReflection.findCurrentHostFiberWithNoPortals;
+function getContextForSubtree(parentComponent) {
+ if (!parentComponent) {
+ return emptyObject_1;
+ }
-
-getContextForSubtree_1._injectFiber(function (fiber) {
+ var fiber = ReactInstanceMap_1.get(parentComponent);
var parentContext = findCurrentUnmaskedContext(fiber);
return isContextProvider(fiber) ? processChildContext(fiber, parentContext, false) : parentContext;
-});
+}
var ReactFiberReconciler = function (config) {
var getPublicInstance = config.getPublicInstance;
@@ -7806,7 +7757,7 @@ var ReactFiberReconciler = function (config) {
}
}
- var context = getContextForSubtree_1(parentComponent);
+ var context = getContextForSubtree(parentComponent);
if (container.context === null) {
container.context = context;
} else {
diff --git a/packages/react-art/umd/react-art.production.min.js b/packages/react-art/umd/react-art.production.min.js
index d474fec..448d698 100644
--- a/packages/react-art/umd/react-art.production.min.js
+++ b/packages/react-art/umd/react-art.production.min.js
@@ -1,165 +1,164 @@
-function Ta(kd,ld,md,ia){function ub(a){ya&&(vb[a]=ya.addRule("av\\:"+a,"behavior:url(#default#VML);display:inline-block;position:absolute;left:0px;top:0px;"))}function Ua(a,b){1!=b[3]?a+="a":b.pop();return a+"("+b.join(", ")+")"}function r(a,b){if(a.isColor)this.red=a.red,this.green=a.green,this.blue=a.blue,this.alpha=a.alpha;else{var c=mc[a];c&&(a=c,b="hex");switch(typeof a){case "string":b||(b=(b=a.match(/^rgb|^hsb|^hsl/))?b[0]:"hex");break;case "object":b=b||"rgb";a=a.toString();break;case "number":b=
-"hex",a=a.toString(16)}a=r["parse"+b.toUpperCase()](a);this.red=a[0];this.green=a[1];this.blue=a[2];this.alpha=a[3]}this.isColor=!0}function ja(a,b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b(a[d],d);return c}function wb(){clearTimeout(ka);ka=null;var a=Va;Va=[];for(var b=0,c=a.length;b<c;b++){var d=a[b];d._valid=!0;d.render()}}function z(a){for(var b={},c=0,d=arguments.length;c<d;c++){var e=arguments[c];"function"==typeof e&&(e=e.prototype);for(var f in e)b[f]=e[f]}b.initialize||(b.initialize=function(){});
-b.constructor=function(a,c,d,e,f,v,l,q){return new b.initialize(a,c,d,e,f,v,l,q)};b.constructor.prototype=b.initialize.prototype=b;return b.constructor}function nc(a){a=xb(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child&&4!==b.tag)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null}function oc(a){a=xb(a);if(!a)return null;for(var b=a;;){if(5===
-b.tag||6===b.tag)return b;if(b.child)b.child["return"]=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b["return"]||b["return"]===a)return null;b=b["return"]}b.sibling["return"]=b["return"];b=b.sibling}}return null}function yb(){p("196")}function pc(a){function b(){for(;null!==E&&0===E.current.pendingWorkPriority;){E.isScheduled=!1;var a=E.nextScheduledRoot;E.nextScheduledRoot=null;if(E===P)return P=E=null,A=0,null;E=a}a=E;for(var b=null,c=0;null!==a;)0!==a.current.pendingWorkPriority&&(0===
-c||c>a.current.pendingWorkPriority)&&(c=a.current.pendingWorkPriority,b=a),a=a.nextScheduledRoot;if(null!==b){for(A=c;-1<Z;)za[Z]=null,Z--;Aa=U;aa.current=U;S.current=!1;la();F=zb(b.current,c)}else A=0,F=null}function c(c){W=!0;D=null;var d=c.stateNode;d.current===c?p("177"):void 0;1!==A&&2!==A||Y++;ma.current=null;if(1<c.effectTag)if(null!==c.lastEffect){c.lastEffect.nextEffect=c;var e=c.firstEffect}else e=c;else e=c.firstEffect;H();for(y=e;null!==y;){var f=!1,g=void 0;try{for(;null!==y;){var h=
-y.effectTag;h&16&&a.resetTextContent(y.stateNode);if(h&128){var M=y.alternate;null!==M&&qc(M)}switch(h&-242){case 2:Ab(y);y.effectTag&=-3;break;case 6:Ab(y);y.effectTag&=-3;Bb(y.alternate,y);break;case 4:Bb(y.alternate,y);break;case 8:X=!0,rc(y),X=!1}y=y.nextEffect}}catch(Wa){f=!0,g=Wa}f&&(null===y?p("178"):void 0,n(y,g),null!==y&&(y=y.nextEffect))}J();d.current=c;for(y=e;null!==y;){c=!1;d=void 0;try{for(;null!==y;){var x=y.effectTag;x&36&&sc(y.alternate,y);x&128&&tc(y);if(x&64)switch(e=y,f=void 0,
-null!==L&&(f=L.get(e),L["delete"](e),null==f&&null!==e.alternate&&(e=e.alternate,f=L.get(e),L["delete"](e))),null==f?p("184"):void 0,e.tag){case 2:e.stateNode.componentDidCatch(f.error,{componentStack:f.componentStack});break;case 3:null===O&&(O=f.error);break;default:p("157")}var w=y.nextEffect;y.nextEffect=null;y=w}}catch(Wa){c=!0,d=Wa}c&&(null===y?p("178"):void 0,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment