UNPKG

react-conditional-manager

Version:

A react component that handles conditional logic in a more elegant manner.

184 lines (146 loc) 355 kB
<!doctype html> <meta charset="UTF-8"> <title>Webpack Visualizer</title> <style>html { background-color: #f7eedf; color: #333; } body { font-family: sans-serif; margin: 10px auto 0; width: 750px; padding: 0 10px; } a, .destyledButton { color: #347AB7; } p { margin-top: 0.5em; } svg { vertical-align: middle; } h1 { font-family: "Oswald", "HelveticaNeue-CondensedBold", "Arial Narrow", sans-serif; font-weight: bold; font-size: 70px; text-transform: uppercase; text-align: center; } hr { border: 0 none; border-top: 1px solid #aaa; } code { font-size: 16px; } .breadcrumbs { height: 1em; margin: 1em 0; } .uploadArea { position: relative; margin: 0 auto; min-height: 350px; } .uploadArea--needsUpload { border: 2px dashed #AC9062; border-radius: 10px; cursor: pointer; } .uploadArea--dragging { border-style: solid; background-color: #E6D4B6; } .uploadArea-uploadMessage { display: none; font-size: 1.9em; text-align: center; margin-top: 100px; pointer-events: none; } .uploadArea--needsUpload .uploadArea-uploadMessage { display: block; } .uploadArea-uploadMessage small { font-size: 0.5em; } .chart { position: relative; margin: 0 auto; min-height: 350px; } .chart--large { width: 950px; margin-left: -100px; } .hiddenFileInput { width: 0px; height: 0px; visibility: hidden; } .chart path { stroke: #fff; } .details { position: absolute; top: 325px; left: 50%; width: 170px; margin-left: -85px; font-size: 14px; text-align: center; color: #666; z-index: -1; overflow: hidden; text-overflow: ellipsis; } .chart--large .details { top: 425px; } .details-size { font-size: 0.9em; margin-top: 1em; } .details-name { font-weight: bold; } .details-subText { min-height: 1.2em; } .details-percentage { margin: 0.4em 0 0em; font-size: 2.4em; line-height: 1em; } .errorMessage { margin-top: 2em; padding: 0.8em 1em; border: 1px solid #ab2222; color: #ab2222; } footer { margin-top: 4em; } footer h2 { margin: 1.5em 0 0.5em; font-size: 1.3em; } .destyledButton { background: none; border: 0 none; cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; } @font-face { font-family: 'Oswald'; src: url(data:application/font-woff;charset=utf-8;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uect4ihQZJsgRYx9DlPB5rxB3ea6gjQ5Xi3uX8i79fN4/oveYcWNKjzHADkYosMV1TJxQ84RWc3YRMP4hPSPaSqJZL3/q93ftWbTPyBJ7tB/yTMkyZkbL9IgeAR6gJ4xbjPOxJijn3qPV4Od6GyudcLfomPsSrUsivZU9rLBpncMxpuRTMtxyngPecMQzxwF1Kdme36mL6v/fjEJqDNNgOpEJM6fMau6QMfeENuMVsNcHF/b/N9MumsRHFX47U352otZmrLvMk1B+xGymu0ay9UbM2SSjmDWGjHtFr0IiTbyZ0DPJbhhsSvaIaHaGAeXX8paKive2TK8Uv1yirEfCM6Q8ljqmwiHxQGr6wiKS6JfoS6VMfGcz9ysZmtM5FdTbTnTIyqyhvPgM67jHz8zNdDSjrqC10D6k1O7TvsUafb7eiP3am1bryN+zzVuUwieU05dXYuawTusq9x4nczadntzH/mmJcDAo5yoqHXpPTUy96U/yB4cAybh42m3IuQrCUABE0ZlEE/ftDwQVC9GX5cVEsAhKPsJaUEHExsKPF1zelN7mwIWHX68jDvjXGKBHHz4mmGKGORZYYoUEFhlyFNhgyxrrDBiywSZbbLPDLnvsc8AhR8Hp+ryfo/Bxuxhj9s7SfI0/Q0YylolMpZWZXMtcFrJ0xpXTOm21ewOsDSmueNrbwfi/dQNjL4P3Bo6AiI2MjH2RG93YtCMUNwhEem8QCQIyGiJlN7Bpx0QwbGBWcN3ArO2ygV3BdRNzOJM2mMMG5LCbQTmsQA6bGpTDAuSwykI5HCA9K6EcTiCHIx3K4QJyOE0hHMYN3FA7eBRcdzFw1/9nYNLeyOxWBhThBarj0YVz+YBcXkUYN3KDiDYA+l459gABVhALaAAA) format('woff'); font-weight: bold; font-style: normal; } </style> <div id="App"></div> <script>window.stats = {"errors":[],"warnings":[],"version":"4.35.3","hash":"0badfb31f3e03469387b","publicPath":"/","outputPath":"/Users/scotty-rogers/Programming/react-conditional-manager/dist","assetsByChunkName":{"main":"index.js"},"assets":[{"name":"index.js","size":10259,"chunks":[0],"chunkNames":["main"],"emitted":false}],"filteredAssets":0,"entrypoints":{"main":{"chunks":[0],"assets":["index.js"],"children":{},"childAssets":{}}},"namedChunkGroups":{"main":{"chunks":[0],"assets":["index.js"],"children":{},"childAssets":{}}},"chunks":[{"id":0,"rendered":true,"initial":true,"entry":true,"size":13045,"names":["main"],"files":["index.js"],"hash":"022092bba5d57e79fd07","siblings":[],"parents":[],"children":[],"childrenByOrder":{},"modules":[{"id":0,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/index.js","name":"./node_modules/prop-types/index.js","index":4,"index2":5,"size":710,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","issuerId":2,"issuerName":"./src/index.js","issuerPath":[{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony side effect evaluation","userRequest":"prop-types","loc":"2:0-35"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"prop-types","loc":"28:12-21"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"prop-types","loc":"29:14-23"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"prop-types","loc":"30:17-26"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":1,"source":"/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"},{"id":1,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/index.js","name":"./node_modules/react/index.js","index":1,"index2":2,"size":190,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","issuerId":2,"issuerName":"./src/index.js","issuerPath":[{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony side effect evaluation","userRequest":"react","loc":"1:0-44"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"react","loc":"24:22-34"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"react","loc":"24:97-109"}],"usedExports":["cloneElement"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":1,"source":"'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n"},{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js","index":0,"index2":6,"size":1271,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":null,"module":null,"moduleName":null,"type":"single entry","userRequest":"./src/index.js","loc":"main"}],"usedExports":true,"providedExports":["default"],"optimizationBailout":["ModuleConcatenation bailout: Module is an entry point"],"depth":0,"source":"import React, { cloneElement } from \"react\";\nimport PropTypes from \"prop-types\";\n\nvar getDefaultKey = function getDefaultKey(componentMap, conditionKeys) {\n return Object.keys(componentMap).find(function (componentKey) {\n return !conditionKeys.includes(componentKey);\n });\n};\n\nvar getCurrentKey = function getCurrentKey(conditions) {\n var currentCondition = conditions.find(function (condition) {\n return condition[Object.keys(condition)[0]];\n });\n return currentCondition && Object.keys(currentCondition)[0];\n};\n\nvar ConditionalManager = function ConditionalManager(props) {\n var componentMap = props.children;\n var conditionKeys = props.conditions.map(function (condition) {\n return Object.keys(condition)[0];\n });\n var defaultKey = getDefaultKey(componentMap, conditionKeys);\n var currentKey = getCurrentKey(props.conditions);\n return currentKey ? cloneElement(componentMap[currentKey], props.renderedProps) : defaultKey ? cloneElement(componentMap[defaultKey], props.renderedProps) : null;\n};\n\nConditionalManager.propTypes = {\n children: PropTypes.object.isRequired,\n conditions: PropTypes.array,\n renderedProps: PropTypes.object\n};\nConditionalManager.defaultProps = {\n conditions: [],\n renderedProps: {}\n};\nexport default ConditionalManager;"},{"id":3,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/cjs/react.production.min.js","name":"./node_modules/react/cjs/react.production.min.js","index":2,"index2":1,"size":6831,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/index.js","issuerId":1,"issuerName":"./node_modules/react/index.js","issuerPath":[{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js"},{"id":1,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/index.js","name":"./node_modules/react/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":1,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/index.js","module":"./node_modules/react/index.js","moduleName":"./node_modules/react/index.js","type":"cjs require","userRequest":"./cjs/react.production.min.js","loc":"4:19-59"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":2,"source":"/** @license React v16.8.6\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.concurrent_mode\"):60111,y=n?Symbol.for(\"react.forward_ref\"):60112,z=n?Symbol.for(\"react.suspense\"):60113,aa=n?Symbol.for(\"react.memo\"):\n60115,ba=n?Symbol.for(\"react.lazy\"):60116,A=\"function\"===typeof Symbol&&Symbol.iterator;function ca(a,b,d,c,e,g,h,f){if(!a){a=void 0;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=[d,c,e,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name=\"Invariant Violation\"}a.framesToPop=1;throw a;}}\nfunction B(a){for(var b=arguments.length-1,d=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c&lt;b;c++)d+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);ca(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",d)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D={};\nfunction E(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}E.prototype.isReactComponent={};E.prototype.setState=function(a,b){\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a?B(\"85\"):void 0;this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}var H=G.prototype=new F;\nH.constructor=G;k(H,E.prototype);H.isPureReactComponent=!0;var I={current:null},J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,d){var c=void 0,e={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=\"\"+b.key),b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1&lt;f){for(var l=Array(f),m=0;m&lt;f;m++)l[m]=arguments[m+2];e.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:e,_owner:J.current}}\nfunction da(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\\/+/g,P=[];function Q(a,b,d,c){if(P.length){var e=P.pop();e.result=a;e.keyPrefix=b;e.func=d;e.context=c;e.count=0;return e}return{result:a,keyPrefix:b,func:d,context:c,count:0}}\nfunction R(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>P.length&&P.push(a)}\nfunction S(a,b,d,c){var e=typeof a;if(\"undefined\"===e||\"boolean\"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return d(c,a,\"\"===b?\".\"+T(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h&lt;a.length;h++){e=a[h];var f=b+T(e,h);g+=S(e,f,d,c)}else if(null===a||\"object\"!==typeof a?f=null:(f=A&&a[A]||a[\"@@iterator\"],f=\"function\"===typeof f?f:null),\"function\"===typeof f)for(a=f.call(a),h=\n0;!(e=a.next()).done;)e=e.value,f=b+T(e,h++),g+=S(e,f,d,c);else\"object\"===e&&(d=\"\"+a,B(\"31\",\"[object Object]\"===d?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":d,\"\"));return g}function U(a,b,d){return null==a?0:S(a,\"\",b,d)}function T(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ea(a,b){a.func.call(a.context,b,a.count++)}\nfunction fa(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?V(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=da(a,e+(!a.key||b&&b.key===a.key?\"\":(\"\"+a.key).replace(O,\"$&/\")+\"/\")+d)),c.push(a))}function V(a,b,d,c,e){var g=\"\";null!=d&&(g=(\"\"+d).replace(O,\"$&/\")+\"/\");b=Q(b,g,c,e);U(a,fa,b);R(b)}function W(){var a=I.current;null===a?B(\"321\"):void 0;return a}\nvar X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];V(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,ea,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];V(a,b,null,function(a){return a});return b},only:function(a){N(a)?void 0:B(\"143\");return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,\n_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:ba,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:aa,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return W().useCallback(a,b)},useContext:function(a,b){return W().useContext(a,b)},useEffect:function(a,b){return W().useEffect(a,b)},useImperativeHandle:function(a,\nb,d){return W().useImperativeHandle(a,b,d)},useDebugValue:function(){},useLayoutEffect:function(a,b){return W().useLayoutEffect(a,b)},useMemo:function(a,b){return W().useMemo(a,b)},useReducer:function(a,b,d){return W().useReducer(a,b,d)},useRef:function(a){return W().useRef(a)},useState:function(a){return W().useState(a)},Fragment:r,StrictMode:t,Suspense:z,createElement:M,cloneElement:function(a,b,d){null===a||void 0===a?B(\"267\",a):void 0;var c=void 0,e=k({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=\nb){void 0!==b.ref&&(h=b.ref,f=J.current);void 0!==b.key&&(g=\"\"+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1&lt;c){l=Array(c);for(var m=0;m&lt;c;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:\"16.8.6\",\nunstable_ConcurrentMode:x,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:I,ReactCurrentOwner:J,assign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;\n"},{"id":4,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/object-assign/index.js","name":"./node_modules/object-assign/index.js","index":3,"index2":0,"size":2108,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/cjs/react.production.min.js","issuerId":3,"issuerName":"./node_modules/react/cjs/react.production.min.js","issuerPath":[{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js"},{"id":1,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/index.js","name":"./node_modules/react/index.js"},{"id":3,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/cjs/react.production.min.js","name":"./node_modules/react/cjs/react.production.min.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":3,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/cjs/react.production.min.js","module":"./node_modules/react/cjs/react.production.min.js","moduleName":"./node_modules/react/cjs/react.production.min.js","type":"cjs require","userRequest":"object-assign","loc":"10:19-43"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i &lt; 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s &lt; arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i &lt; symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n"},{"id":5,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/factoryWithThrowingShims.js","name":"./node_modules/prop-types/factoryWithThrowingShims.js","index":5,"index2":4,"size":1621,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/index.js","issuerId":0,"issuerName":"./node_modules/prop-types/index.js","issuerPath":[{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js"},{"id":0,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/index.js","name":"./node_modules/prop-types/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":0,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/index.js","module":"./node_modules/prop-types/index.js","moduleName":"./node_modules/prop-types/index.js","type":"cjs require","userRequest":"./factoryWithThrowingShims","loc":"18:19-56"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":2,"source":"/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n"},{"id":6,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/lib/ReactPropTypesSecret.js","name":"./node_modules/prop-types/lib/ReactPropTypesSecret.js","index":6,"index2":3,"size":314,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/factoryWithThrowingShims.js","issuerId":5,"issuerName":"./node_modules/prop-types/factoryWithThrowingShims.js","issuerPath":[{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js"},{"id":0,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/index.js","name":"./node_modules/prop-types/index.js"},{"id":5,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/factoryWithThrowingShims.js","name":"./node_modules/prop-types/factoryWithThrowingShims.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":5,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/factoryWithThrowingShims.js","module":"./node_modules/prop-types/factoryWithThrowingShims.js","moduleName":"./node_modules/prop-types/factoryWithThrowingShims.js","type":"cjs require","userRequest":"./lib/ReactPropTypesSecret","loc":"10:27-64"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n"}],"filteredModules":0,"origins":[{"module":"","moduleIdentifier":"","moduleName":"","loc":"main","request":"./src/index.js","reasons":[]}]}],"modules":[{"id":0,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/prop-types/index.js","name":"./node_modules/prop-types/index.js","index":4,"index2":5,"size":710,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","issuerId":2,"issuerName":"./src/index.js","issuerPath":[{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony side effect evaluation","userRequest":"prop-types","loc":"2:0-35"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"prop-types","loc":"28:12-21"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"prop-types","loc":"29:14-23"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"prop-types","loc":"30:17-26"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":1,"source":"/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"},{"id":1,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/index.js","name":"./node_modules/react/index.js","index":1,"index2":2,"size":190,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","issuerId":2,"issuerName":"./src/index.js","issuerPath":[{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony side effect evaluation","userRequest":"react","loc":"1:0-44"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"react","loc":"24:22-34"},{"moduleId":2,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","module":"./src/index.js","moduleName":"./src/index.js","type":"harmony import specifier","userRequest":"react","loc":"24:97-109"}],"usedExports":["cloneElement"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":1,"source":"'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n"},{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js","index":0,"index2":6,"size":1271,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":null,"module":null,"moduleName":null,"type":"single entry","userRequest":"./src/index.js","loc":"main"}],"usedExports":true,"providedExports":["default"],"optimizationBailout":["ModuleConcatenation bailout: Module is an entry point"],"depth":0,"source":"import React, { cloneElement } from \"react\";\nimport PropTypes from \"prop-types\";\n\nvar getDefaultKey = function getDefaultKey(componentMap, conditionKeys) {\n return Object.keys(componentMap).find(function (componentKey) {\n return !conditionKeys.includes(componentKey);\n });\n};\n\nvar getCurrentKey = function getCurrentKey(conditions) {\n var currentCondition = conditions.find(function (condition) {\n return condition[Object.keys(condition)[0]];\n });\n return currentCondition && Object.keys(currentCondition)[0];\n};\n\nvar ConditionalManager = function ConditionalManager(props) {\n var componentMap = props.children;\n var conditionKeys = props.conditions.map(function (condition) {\n return Object.keys(condition)[0];\n });\n var defaultKey = getDefaultKey(componentMap, conditionKeys);\n var currentKey = getCurrentKey(props.conditions);\n return currentKey ? cloneElement(componentMap[currentKey], props.renderedProps) : defaultKey ? cloneElement(componentMap[defaultKey], props.renderedProps) : null;\n};\n\nConditionalManager.propTypes = {\n children: PropTypes.object.isRequired,\n conditions: PropTypes.array,\n renderedProps: PropTypes.object\n};\nConditionalManager.defaultProps = {\n conditions: [],\n renderedProps: {}\n};\nexport default ConditionalManager;"},{"id":3,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/cjs/react.production.min.js","name":"./node_modules/react/cjs/react.production.min.js","index":2,"index2":1,"size":6831,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"issuer":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/index.js","issuerId":1,"issuerName":"./node_modules/react/index.js","issuerPath":[{"id":2,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/babel-loader/lib/index.js??ref--4!/Users/scotty-rogers/Programming/react-conditional-manager/src/index.js","name":"./src/index.js"},{"id":1,"identifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/index.js","name":"./node_modules/react/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":1,"moduleIdentifier":"/Users/scotty-rogers/Programming/react-conditional-manager/node_modules/react/index.js","module":"./node_modules/react/index.js","moduleName":"./node_modules/react/index.js","type":"cjs require","userRequest":"./cjs/react.production.min.js","loc":"4:19-59"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":2,"source":"/** @license React v16.8.6\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.concurrent_mode\"):60111,y=n?Symbol.for(\"react.forward_ref\"):60112,z=n?Symbol.for(\"react.suspense\"):60113,aa=n?Symbol.for(\"react.memo\"):\n60115,ba=n?Symbol.for(\"react.lazy\"):60116,A=\"function\"===typeof Symbol&&Symbol.iterator;function ca(a,b,d,c,e,g,h,f){if(!a){a=void 0;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=[d,c,e,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name=\"Invariant Violation\"}a.framesToPop=1;throw a;}}\nfunction B(a){for(var b=arguments.length-1,d=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c&lt;b;c++)d+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);ca(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",d)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D={};\nfunction E(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}E.prototype.isReactComponent={};E.prototype.setState=function(a,b){\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a?B(\"85\"):void 0;this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}var H=G.prototype=new F;\nH.constructor=G;k(H,E.prototype);H.isPureReactComponent=!0;var I={current:null},J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,d){var c=void 0,e={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=\"\"+b.key),b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1&lt;f){for(var l=Array(f),m=0;m&lt;f;m++)l[m]=arguments[m+2];e.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:e,_owner:J.current}}\nfunction da(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\\/+/g,P=[];function Q(a,b,d,c){if(P.length){var e=P.pop();e.result=a;e.keyPrefix=b;e.func=d;e.context=c;e.count=0;return e}return{result:a,keyPrefix:b,func:d,context:c,count:0}}\nfunction R(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>P.length&&P.push(a)}\nfunction S(a,b,d,c){var e=typeof a;if(\"undefined\"===e||\"boolean\"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return d(c,a,\"\"===b?\".\"+T(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h&lt;a.length;h++){e=a[h];var f=b+T(e,h);g+=S(e,f,d,c)}else if(null===a||\"object\"!==typeof a?f=null:(f=A&&a[A]||a[\"@@iterator\"],f=\"function\"===typeof f?f:null),\"function\"===typeof f)for(a=f.call(a),h=\n0;!(e=a.next()).done;)e=e.value,f=b+T(e,h++),g+=S(e,f,d,c);else\"object\"===e&&(d=\"\"+a,B(\"31\",\"[object Object]\"===d?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":d,\"\"));return g}function U(a,b,d){return null==a?0:S(a,\"\",b,d)}function T(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ea(a,b){a.func.call(a.context,b,a.count++)}\nfunction fa(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?V(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=da(a,e+(!a.key||b&&b.key===a.key?\"\":(\"\"+a.key).replace(O,\"$&/\")+\"/\")+d)),c.push(a))}function V(a,b,d,c,e){var g=\"\";null!=d&&(g=(\"\"+d).replace(O,\"$&/\")+\"/\");b=Q(b,g,c,e);U(a,fa,b);R(b)}function W(){var a=I.current;null===a?B(\"321\"):void 0;return a}\nvar X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];V(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,ea,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];V(a,b,null,function(a){return a});return b},only:function(a){N(a)?void 0:B(\"143\");return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,\n_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:ba,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:aa,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return W().useCallback(a,b)},useContext:function(a,b){return W().useContext(a,b)},useEffect:function(a,b){return W().useEffect(a,b)},useImperativeHandle:function(a,\nb,d){return W().useImperativeHandle(a,b,d)},useDebugValue:function(){},useLayoutEffect:function(a,b){return W().useLayoutEffect(a,b)},useMemo:function(a,b){return W().useMemo(a,b)},useReducer:function(a,b,d){return W().useReducer(a,b,d)},useRef:function(a){return W().useRef(a)},useState:function(a){return W().useState(a)},Fragment:r,StrictMode:t,Suspense:z,createElement:M,cloneElement:function(a,b,d){null===a||void 0===a?B(\"267\",a):void 0;var c=void 0,e=k({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=\nb){void 0!==b.ref&&(h=b.ref,f=J.current);void 0!==b.key&&(g=\"\"+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)K.call(b,c)&&!L.hasOwnProperty(