{"version":3,"sources":["node_modules\\react-dom\\lib\\checkReactTypeSpec.js"],"names":["_prodInvariant","require","ReactPropTypeLocationNames","ReactPropTypesSecret","invariant","warning","ReactComponentTreeHook","process","env","NODE_ENV","loggedTypeFailures","checkReactTypeSpec","typeSpecs","values","location","componentName","element","debugID","typeSpecName","hasOwnProperty","error","ex","Error","message","componentStackInfo","getStackAddendumByID","getCurrentStackAddendum","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,gBAAiBC,QAAQ,sBAAR,CAArB;;AAEA,GAAIC,4BAA6BD,QAAQ,8BAAR,CAAjC;AACA,GAAIE,sBAAuBF,QAAQ,wBAAR,CAA3B;;AAEA,GAAIG,WAAYH,QAAQ,oBAAR,CAAhB;AACA,GAAII,SAAUJ,QAAQ,kBAAR,CAAd;;AAEA,GAAIK,uBAAJ;;AAEA,GAAI,MAAOC,QAAP,GAAmB,WAAnB,EAAkCA,QAAQC,GAA1C,EAAiDD,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,MAA9E,CAAsF;;;;;;AAMpFH,uBAAyBL,QAAQ,kCAAR,CAAzB;AACD;;AAED,GAAIS,oBAAqB,EAAzB;;;;;;;;;;;;;;AAcA,QAASC,mBAAT,CAA4BC,SAA5B,CAAuCC,MAAvC,CAA+CC,QAA/C,CAAyDC,aAAzD,CAAwEC,OAAxE,CAAiFC,OAAjF,CAA0F;AACxF,IAAK,GAAIC,aAAT,GAAyBN,UAAzB,CAAoC;AAClC,GAAIA,UAAUO,cAAV,CAAyBD,YAAzB,CAAJ,CAA4C;AAC1C,GAAIE,MAAJ;;;;AAIA,GAAI;;;AAGF,EAAE,MAAOR,WAAUM,YAAV,CAAP,GAAmC,UAArC,EAAmDX,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAAzB,CAAwCL,UAAU,KAAV,CAAiB,mFAAjB,CAAsGW,eAAiB,aAAvH,CAAsIb,2BAA2BY,QAA3B,CAAtI,CAA4KI,YAA5K,CAAxC,CAAoOlB,e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AhE,CAAxC,CAA8H,IAAK,EAAnI;AACD;AACF;AACF;AACF;;AAEDG,OAAOC,OAAP,CAAiBjB,kBAAjB","file":"checkReactTypeSpec.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = require('./reactProdInvariant');\n\nvar ReactPropTypeLocationNames = require('./ReactPropTypeLocationNames');\nvar ReactPropTypesSecret = require('./ReactPropTypesSecret');\n\nvar invariant = require('fbjs/lib/invariant');\nvar warning = require('fbjs/lib/warning');\n\nvar ReactComponentTreeHook;\n\nif (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {\n  // Temporary hack.\n  // Inline requires don't work well with Jest:\n  // https://github.com/facebook/react/issues/7240\n  // Remove the inline requires when we don't need them anymore:\n  // https://github.com/facebook/react/pull/7178\n  ReactComponentTreeHook = require('react/lib/ReactComponentTreeHook');\n}\n\nvar loggedTypeFailures = {};\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?object} element The React element that is being type-checked\n * @param {?number} debugID The React component instance that is being type-checked\n * @private\n */\nfunction checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {\n  for (var typeSpecName in typeSpecs) {\n    if (typeSpecs.hasOwnProperty(typeSpecName)) {\n      var error;\n      // Prop type validation may throw. In case they do, we don't want to\n      // fail the render phase where it didn't fail before. So we log it.\n      // After these have been cleaned up, we'll let them throw.\n      try {\n        // This is intentionally an invariant that gets caught. It's the same\n        // behavior as without this statement except with a better message.\n        !(typeof typeSpecs[typeSpecName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;\n        error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n      } catch (ex) {\n        error = ex;\n      }\n      process.env.NODE_ENV !== 'production' ? warning(!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', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;\n      if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n        // Only monitor this failure once because there tends to be a lot of the\n        // same error.\n        loggedTypeFailures[error.message] = true;\n\n        var componentStackInfo = '';\n\n        if (process.env.NODE_ENV !== 'production') {\n          if (!ReactComponentTreeHook) {\n            ReactComponentTreeHook = require('react/lib/ReactComponentTreeHook');\n          }\n          if (debugID !== null) {\n            componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);\n          } else if (element !== null) {\n            componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);\n          }\n        }\n\n        process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;\n      }\n    }\n  }\n}\n\nmodule.exports = checkReactTypeSpec;"]}