UNPKG

@amazon-devices/react-navigation__native-stack

Version:
1 lines 1.01 MB
{"version": 3, "sources": ["__prelude__", "node_modules/@react-native/js-polyfills/console.js", "node_modules/@react-native/js-polyfills/error-guard.js", "node_modules/@react-native/js-polyfills/Object.es8.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/index.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/navigators/createNativeStackNavigator.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/views/NativeStackView.native.js", "node_modules/@babel/runtime/helpers/interopRequireDefault.js", "node_modules/@babel/runtime/helpers/toConsumableArray.js", "node_modules/@babel/runtime/helpers/arrayWithoutHoles.js", "node_modules/@babel/runtime/helpers/arrayLikeToArray.js", "node_modules/@babel/runtime/helpers/iterableToArray.js", "node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js", "node_modules/@babel/runtime/helpers/nonIterableSpread.js", "node_modules/@babel/runtime/helpers/classCallCheck.js", "node_modules/@babel/runtime/helpers/createClass.js", "node_modules/@babel/runtime/helpers/toPropertyKey.js", "node_modules/@babel/runtime/helpers/toPrimitive.js", "node_modules/@babel/runtime/helpers/typeof.js", "node_modules/invariant/browser.js", "node_modules/@babel/runtime/helpers/slicedToArray.js", "node_modules/@babel/runtime/helpers/arrayWithHoles.js", "node_modules/@babel/runtime/helpers/iterableToArrayLimit.js", "node_modules/@babel/runtime/helpers/nonIterableRest.js", "node_modules/nullthrows/nullthrows.js", "node_modules/@babel/runtime/helpers/possibleConstructorReturn.js", "node_modules/@babel/runtime/helpers/assertThisInitialized.js", "node_modules/@babel/runtime/helpers/getPrototypeOf.js", "node_modules/@babel/runtime/helpers/inherits.js", "node_modules/@babel/runtime/helpers/setPrototypeOf.js", "node_modules/@babel/runtime/helpers/readOnlyError.js", "node_modules/@babel/runtime/helpers/wrapNativeSuper.js", "node_modules/@babel/runtime/helpers/isNativeFunction.js", "node_modules/@babel/runtime/helpers/construct.js", "node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js", "node_modules/stacktrace-parser/dist/stack-trace-parser.cjs.js", "node_modules/promise/setimmediate/finally.js", "node_modules/promise/setimmediate/core.js", "node_modules/promise/setimmediate/es6-extensions.js", "node_modules/@amazon-devices/react-native-kepler/node_modules/regenerator-runtime/runtime.js", "node_modules/@babel/runtime/helpers/get.js", "node_modules/@babel/runtime/helpers/superPropBase.js", "node_modules/event-target-shim/dist/event-target-shim.js", "node_modules/base64-js/index.js", "node_modules/whatwg-fetch/dist/fetch.umd.js", "node_modules/@babel/runtime/helpers/objectWithoutProperties.js", "node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js", "node_modules/abort-controller/dist/abort-controller.js", "node_modules/@react-native/normalize-colors/index.js", "node_modules/@babel/runtime/helpers/defineProperty.js", "node_modules/@react-native/assets-registry/registry.js", "node_modules/@react-native/assets-registry/path-support.js", "node_modules/scheduler/index.native.js", "node_modules/scheduler/cjs/scheduler.native.production.min.js", "node_modules/deprecated-react-native-prop-types/index.js", "node_modules/deprecated-react-native-prop-types/DeprecatedColorPropType.js", "node_modules/deprecated-react-native-prop-types/DeprecatedEdgeInsetsPropType.js", "node_modules/prop-types/index.js", "node_modules/prop-types/factoryWithThrowingShims.js", "node_modules/prop-types/lib/ReactPropTypesSecret.js", "node_modules/deprecated-react-native-prop-types/DeprecatedImagePropType.js", "node_modules/deprecated-react-native-prop-types/DeprecatedViewPropTypes.js", "node_modules/deprecated-react-native-prop-types/DeprecatedViewAccessibility.js", "node_modules/deprecated-react-native-prop-types/DeprecatedStyleSheetPropType.js", "node_modules/deprecated-react-native-prop-types/deprecatedCreateStrictShapeTypeChecker.js", "node_modules/deprecated-react-native-prop-types/DeprecatedViewStylePropTypes.js", "node_modules/deprecated-react-native-prop-types/DeprecatedLayoutPropTypes.js", "node_modules/deprecated-react-native-prop-types/DeprecatedShadowPropTypesIOS.js", "node_modules/deprecated-react-native-prop-types/DeprecatedTransformPropTypes.js", "node_modules/deprecated-react-native-prop-types/DeprecatedImageSourcePropType.js", "node_modules/deprecated-react-native-prop-types/DeprecatedImageStylePropTypes.js", "node_modules/deprecated-react-native-prop-types/DeprecatedPointPropType.js", "node_modules/deprecated-react-native-prop-types/DeprecatedTextInputPropTypes.js", "node_modules/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js", "node_modules/deprecated-react-native-prop-types/DeprecatedTextStylePropTypes.js", "node_modules/memoize-one/dist/memoize-one.cjs.js", "node_modules/@react-native/virtualized-lists/index.js", "node_modules/@react-native/virtualized-lists/Lists/VirtualizeUtils.js", "node_modules/@react-native/virtualized-lists/Lists/VirtualizedList.js", "node_modules/@react-native/virtualized-lists/Interaction/Batchinator.js", "node_modules/@react-native/virtualized-lists/Utilities/clamp.js", "node_modules/@react-native/virtualized-lists/Utilities/infoLog.js", "node_modules/@react-native/virtualized-lists/Lists/ChildListCollection.js", "node_modules/@react-native/virtualized-lists/Lists/FillRateHelper.js", "node_modules/@react-native/virtualized-lists/Lists/StateSafePureComponent.js", "node_modules/@react-native/virtualized-lists/Lists/ViewabilityHelper.js", "node_modules/@react-native/virtualized-lists/Lists/VirtualizedListCellRenderer.js", "node_modules/@react-native/virtualized-lists/Lists/VirtualizedListContext.js", "node_modules/@react-native/virtualized-lists/Lists/CellRenderMask.js", "node_modules/@react-native/virtualized-lists/Lists/VirtualizedSectionList.js", "node_modules/@babel/runtime/helpers/asyncToGenerator.js", "node_modules/use-sync-external-store/shim/index.native.js", "node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.min.js", "node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js", "node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js", "node_modules/@amazon-devices/react-navigation__native-stack/node_modules/warn-once/index.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/utils/useDismissedRouteError.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/utils/useInvalidPreventRemoveError.js", "node_modules/nanoid/non-secure/index.js", "node_modules/query-string/index.js", "node_modules/strict-uri-encode/index.js", "node_modules/decode-uri-component/index.js", "node_modules/split-on-first/index.js", "node_modules/filter-obj/index.js", "node_modules/@amazon-devices/react-navigation__core/node_modules/escape-string-regexp/index.js", "node_modules/use-latest-callback/lib/index.js", "node_modules/@amazon-devices/react-navigation__native/node_modules/escape-string-regexp/index.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/views/DebugContainer.native.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/views/HeaderConfig.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/views/FontProcessor.native.js", "node_modules/react-freeze/src/index.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/types.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/views/DebugContainer.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/views/FontProcessor.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/commonjs/views/NativeStackView.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/index.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/navigators/createNativeStackNavigator.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/views/NativeStackView.native.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/utils/useDismissedRouteError.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/utils/useInvalidPreventRemoveError.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/views/DebugContainer.native.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/views/HeaderConfig.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/views/FontProcessor.native.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/types.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/views/DebugContainer.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/views/FontProcessor.js", "node_modules/@amazon-devices/react-navigation__native-stack/lib/module/views/NativeStackView.js", "node_modules/@amazon-devices/react-navigation__native-stack/src/index.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/navigators/createNativeStackNavigator.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/views/NativeStackView.native.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/utils/useDismissedRouteError.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/utils/useInvalidPreventRemoveError.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/views/DebugContainer.native.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/views/HeaderConfig.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/views/FontProcessor.native.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/types.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/views/DebugContainer.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/views/FontProcessor.tsx", "node_modules/@amazon-devices/react-navigation__native-stack/src/views/NativeStackView.tsx"], "sourcesContent": ["var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||\"production\";", "/**\n * Copyright (c) Meta Platforms, Inc. and 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 * @polyfill\n * @nolint\n * @format\n */\n\n/* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */\n\n/**\n * This pipes all of our console logging functions to native logging so that\n * JavaScript errors in required modules show up in Xcode via NSLog.\n */\nconst inspect = (function () {\n // Copyright Joyent, Inc. and other Node contributors.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a\n // copy of this software and associated documentation files (the\n // \"Software\"), to deal in the Software without restriction, including\n // without limitation the rights to use, copy, modify, merge, publish,\n // distribute, sublicense, and/or sell copies of the Software, and to permit\n // persons to whom the Software is furnished to do so, subject to the\n // following conditions:\n //\n // The above copyright notice and this permission notice shall be included\n // in all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n // USE OR OTHER DEALINGS IN THE SOFTWARE.\n //\n // https://github.com/joyent/node/blob/master/lib/util.js\n\n function inspect(obj, opts) {\n var ctx = {\n seen: [],\n formatValueCalls: 0,\n stylize: stylizeNoColor,\n };\n return formatValue(ctx, obj, opts.depth);\n }\n\n function stylizeNoColor(str, styleType) {\n return str;\n }\n\n function arrayToHash(array) {\n var hash = {};\n\n array.forEach(function (val, idx) {\n hash[val] = true;\n });\n\n return hash;\n }\n\n function formatValue(ctx, value, recurseTimes) {\n ctx.formatValueCalls++;\n if (ctx.formatValueCalls > 200) {\n return `[TOO BIG formatValueCalls ${ctx.formatValueCalls} exceeded limit of 200]`;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (\n isError(value) &&\n (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)\n ) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '',\n array = false,\n braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function (key) {\n return formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n key,\n array,\n );\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n }\n\n function formatPrimitive(ctx, value) {\n if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple =\n \"'\" +\n JSON.stringify(value)\n .replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') +\n \"'\";\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value)) return ctx.stylize('' + value, 'number');\n if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value)) return ctx.stylize('null', 'null');\n }\n\n function formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n }\n\n function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(\n formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n String(i),\n true,\n ),\n );\n } else {\n output.push('');\n }\n }\n keys.forEach(function (key) {\n if (!key.match(/^\\d+$/)) {\n output.push(\n formatProperty(ctx, value, recurseTimes, visibleKeys, key, true),\n );\n }\n });\n return output;\n }\n\n function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || {value: value[key]};\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str\n .split('\\n')\n .map(function (line) {\n return ' ' + line;\n })\n .join('\\n')\n .substr(2);\n } else {\n str =\n '\\n' +\n str\n .split('\\n')\n .map(function (line) {\n return ' ' + line;\n })\n .join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n }\n\n function reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function (prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return (\n braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1]\n );\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n }\n\n // NOTE: These type checking functions intentionally don't use `instanceof`\n // because it is fragile and can be easily faked with `Object.create()`.\n function isArray(ar) {\n return Array.isArray(ar);\n }\n\n function isBoolean(arg) {\n return typeof arg === 'boolean';\n }\n\n function isNull(arg) {\n return arg === null;\n }\n\n function isNullOrUndefined(arg) {\n return arg == null;\n }\n\n function isNumber(arg) {\n return typeof arg === 'number';\n }\n\n function isString(arg) {\n return typeof arg === 'string';\n }\n\n function isSymbol(arg) {\n return typeof arg === 'symbol';\n }\n\n function isUndefined(arg) {\n return arg === void 0;\n }\n\n function isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n }\n\n function isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n }\n\n function isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n }\n\n function isError(e) {\n return (\n isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error)\n );\n }\n\n function isFunction(arg) {\n return typeof arg === 'function';\n }\n\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n\n function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n }\n\n return inspect;\n})();\n\nconst OBJECT_COLUMN_NAME = '(index)';\nconst LOG_LEVELS = {\n trace: 0,\n info: 1,\n warn: 2,\n error: 3,\n};\nconst INSPECTOR_LEVELS = [];\nINSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug';\nINSPECTOR_LEVELS[LOG_LEVELS.info] = 'log';\nINSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning';\nINSPECTOR_LEVELS[LOG_LEVELS.error] = 'error';\n\n// Strip the inner function in getNativeLogFunction(), if in dev also\n// strip method printing to originalConsole.\nconst INSPECTOR_FRAMES_TO_SKIP = __DEV__ ? 2 : 1;\n\nfunction getNativeLogFunction(level) {\n return function () {\n let str;\n if (arguments.length === 1 && typeof arguments[0] === 'string') {\n str = arguments[0];\n } else {\n str = Array.prototype.map\n .call(arguments, function (arg) {\n return inspect(arg, {depth: 10});\n })\n .join(', ');\n }\n\n // TRICKY\n // If more than one argument is provided, the code above collapses them all\n // into a single formatted string. This transform wraps string arguments in\n // single quotes (e.g. \"foo\" -> \"'foo'\") which then breaks the \"Warning:\"\n // check below. So it's important that we look at the first argument, rather\n // than the formatted argument string.\n const firstArg = arguments[0];\n\n let logLevel = level;\n if (\n typeof firstArg === 'string' &&\n firstArg.slice(0, 9) === 'Warning: ' &&\n logLevel >= LOG_LEVELS.error\n ) {\n // React warnings use console.error so that a stack trace is shown,\n // but we don't (currently) want these to show a redbox\n // (Note: Logic duplicated in ExceptionsManager.js.)\n logLevel = LOG_LEVELS.warn;\n }\n if (global.__inspectorLog) {\n global.__inspectorLog(\n INSPECTOR_LEVELS[logLevel],\n str,\n [].slice.call(arguments),\n INSPECTOR_FRAMES_TO_SKIP,\n );\n }\n if (groupStack.length) {\n str = groupFormat('', str);\n }\n global.nativeLoggingHook(str, logLevel);\n };\n}\n\nfunction repeat(element, n) {\n return Array.apply(null, Array(n)).map(function () {\n return element;\n });\n}\n\nfunction consoleTablePolyfill(rows) {\n // convert object -> array\n if (!Array.isArray(rows)) {\n var data = rows;\n rows = [];\n for (var key in data) {\n if (data.hasOwnProperty(key)) {\n var row = data[key];\n row[OBJECT_COLUMN_NAME] = key;\n rows.push(row);\n }\n }\n }\n if (rows.length === 0) {\n global.nativeLoggingHook('', LOG_LEVELS.info);\n return;\n }\n\n var columns = Object.keys(rows[0]).sort();\n var stringRows = [];\n var columnWidths = [];\n\n // Convert each cell to a string. Also\n // figure out max cell width for each column\n columns.forEach(function (k, i) {\n columnWidths[i] = k.length;\n for (var j = 0; j < rows.length; j++) {\n var cellStr = (rows[j][k] || '?').toString();\n stringRows[j] = stringRows[j] || [];\n stringRows[j][i] = cellStr;\n columnWidths[i] = Math.max(columnWidths[i], cellStr.length);\n }\n });\n\n // Join all elements in the row into a single string with | separators\n // (appends extra spaces to each cell to make separators | aligned)\n function joinRow(row, space) {\n var cells = row.map(function (cell, i) {\n var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join('');\n return cell + extraSpaces;\n });\n space = space || ' ';\n return cells.join(space + '|' + space);\n }\n\n var separators = columnWidths.map(function (columnWidth) {\n return repeat('-', columnWidth).join('');\n });\n var separatorRow = joinRow(separators, '-');\n var header = joinRow(columns);\n var table = [header, separatorRow];\n\n for (var i = 0; i < rows.length; i++) {\n table.push(joinRow(stringRows[i]));\n }\n\n // Notice extra empty line at the beginning.\n // Native logging hook adds \"RCTLog >\" at the front of every\n // logged string, which would shift the header and screw up\n // the table\n global.nativeLoggingHook('\\n' + table.join('\\n'), LOG_LEVELS.info);\n}\n\nconst GROUP_PAD = '\\u2502'; // Box light vertical\nconst GROUP_OPEN = '\\u2510'; // Box light down+left\nconst GROUP_CLOSE = '\\u2518'; // Box light up+left\n\nconst groupStack = [];\n\nfunction groupFormat(prefix, msg) {\n // Insert group formatting before the console message\n return groupStack.join('') + prefix + ' ' + (msg || '');\n}\n\nfunction consoleGroupPolyfill(label) {\n global.nativeLoggingHook(groupFormat(GROUP_OPEN, label), LOG_LEVELS.info);\n groupStack.push(GROUP_PAD);\n}\n\nfunction consoleGroupCollapsedPolyfill(label) {\n global.nativeLoggingHook(groupFormat(GROUP_CLOSE, label), LOG_LEVELS.info);\n groupStack.push(GROUP_PAD);\n}\n\nfunction consoleGroupEndPolyfill() {\n groupStack.pop();\n global.nativeLoggingHook(groupFormat(GROUP_CLOSE), LOG_LEVELS.info);\n}\n\nfunction consoleAssertPolyfill(expression, label) {\n if (!expression) {\n global.nativeLoggingHook('Assertion failed: ' + label, LOG_LEVELS.error);\n }\n}\n\nif (global.nativeLoggingHook) {\n const originalConsole = global.console;\n // Preserve the original `console` as `originalConsole`\n if (__DEV__ && originalConsole) {\n const descriptor = Object.getOwnPropertyDescriptor(global, 'console');\n if (descriptor) {\n Object.defineProperty(global, 'originalConsole', descriptor);\n }\n }\n\n global.console = {\n error: getNativeLogFunction(LOG_LEVELS.error),\n info: getNativeLogFunction(LOG_LEVELS.info),\n log: getNativeLogFunction(LOG_LEVELS.info),\n warn: getNativeLogFunction(LOG_LEVELS.warn),\n trace: getNativeLogFunction(LOG_LEVELS.trace),\n debug: getNativeLogFunction(LOG_LEVELS.trace),\n table: consoleTablePolyfill,\n group: consoleGroupPolyfill,\n groupEnd: consoleGroupEndPolyfill,\n groupCollapsed: consoleGroupCollapsedPolyfill,\n assert: consoleAssertPolyfill,\n };\n\n Object.defineProperty(console, '_isPolyfilled', {\n value: true,\n enumerable: false,\n });\n\n // If available, also call the original `console` method since that is\n // sometimes useful. Ex: on OS X, this will let you see rich output in\n // the Safari Web Inspector console.\n if (__DEV__ && originalConsole) {\n Object.keys(console).forEach(methodName => {\n const reactNativeMethod = console[methodName];\n if (originalConsole[methodName]) {\n console[methodName] = function () {\n originalConsole[methodName](...arguments);\n reactNativeMethod.apply(console, arguments);\n };\n }\n });\n\n // The following methods are not supported by this polyfill but\n // we still should pass them to original console if they are\n // supported by it.\n ['clear', 'dir', 'dirxml', 'profile', 'profileEnd'].forEach(methodName => {\n if (typeof originalConsole[methodName] === 'function') {\n console[methodName] = function () {\n originalConsole[methodName](...arguments);\n };\n }\n });\n }\n} else if (!global.console) {\n function stub() {}\n const log = global.print || stub;\n\n global.console = {\n debug: log,\n error: log,\n info: log,\n log: log,\n trace: log,\n warn: log,\n assert(expression, label) {\n if (!expression) {\n log('Assertion failed: ' + label);\n }\n },\n clear: stub,\n dir: stub,\n dirxml: stub,\n group: stub,\n groupCollapsed: stub,\n groupEnd: stub,\n profile: stub,\n profileEnd: stub,\n table: stub,\n };\n\n Object.defineProperty(console, '_isPolyfilled', {\n value: true,\n enumerable: false,\n });\n}\n", "/**\n * Copyright (c) Meta Platforms, Inc. and 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 * @format\n * @flow strict\n * @polyfill\n */\n\nlet _inGuard = 0;\n\ntype ErrorHandler = (error: mixed, isFatal: boolean) => void;\ntype Fn<Args, Return> = (...Args) => Return;\n\n/**\n * This is the error handler that is called when we encounter an exception\n * when loading a module. This will report any errors encountered before\n * ExceptionsManager is configured.\n */\nlet _globalHandler: ErrorHandler = function onError(\n e: mixed,\n isFatal: boolean,\n) {\n throw e;\n};\n\n/**\n * The particular require runtime that we are using looks for a global\n * `ErrorUtils` object and if it exists, then it requires modules with the\n * error handler specified via ErrorUtils.setGlobalHandler by calling the\n * require function with applyWithGuard. Since the require module is loaded\n * before any of the modules, this ErrorUtils must be defined (and the handler\n * set) globally before requiring anything.\n */\nconst ErrorUtils = {\n setGlobalHandler(fun: ErrorHandler): void {\n _globalHandler = fun;\n },\n getGlobalHandler(): ErrorHandler {\n return _globalHandler;\n },\n reportError(error: mixed): void {\n _globalHandler && _globalHandler(error, false);\n },\n reportFatalError(error: mixed): void {\n // NOTE: This has an untyped call site in Metro.\n _globalHandler && _globalHandler(error, true);\n },\n applyWithGuard<TArgs: $ReadOnlyArray<mixed>, TOut>(\n fun: Fn<TArgs, TOut>,\n context?: ?mixed,\n args?: ?TArgs,\n // Unused, but some code synced from www sets it to null.\n unused_onError?: null,\n // Some callers pass a name here, which we ignore.\n unused_name?: ?string,\n ): ?TOut {\n try {\n _inGuard++;\n /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,\n * null) is fine. (2) array -> rest array should work */\n /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,\n * null) is fine. (2) array -> rest array should work */\n return fun.apply(context, args);\n } catch (e) {\n ErrorUtils.reportError(e);\n } finally {\n _inGuard--;\n }\n return null;\n },\n applyWithGuardIfNeeded<TArgs: $ReadOnlyArray<mixed>, TOut>(\n fun: Fn<TArgs, TOut>,\n context?: ?mixed,\n args?: ?TArgs,\n ): ?TOut {\n if (ErrorUtils.inGuard()) {\n /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,\n * null) is fine. (2) array -> rest array should work */\n /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,\n * null) is fine. (2) array -> rest array should work */\n return fun.apply(context, args);\n } else {\n ErrorUtils.applyWithGuard(fun, context, args);\n }\n return null;\n },\n inGuard(): boolean {\n return !!_inGuard;\n },\n guard<TArgs: $ReadOnlyArray<mixed>, TOut>(\n fun: Fn<TArgs, TOut>,\n name?: ?string,\n context?: ?mixed,\n ): ?(...TArgs) => ?TOut {\n // TODO: (moti) T48204753 Make sure this warning is never hit and remove it - types\n // should be sufficient.\n if (typeof fun !== 'function') {\n console.warn('A function must be passed to ErrorUtils.guard, got ', fun);\n return null;\n }\n const guardName = name ?? fun.name ?? '<generated guard>';\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n function guarded(...args: TArgs): ?TOut {\n return ErrorUtils.applyWithGuard(\n fun,\n context ?? this,\n args,\n null,\n guardName,\n );\n }\n\n return guarded;\n },\n};\n\nglobal.ErrorUtils = ErrorUtils;\n\nexport type ErrorUtilsT = typeof ErrorUtils;\n", "/**\n * Copyright (c) Meta Platforms, Inc. and 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 * @format\n * @polyfill\n * @nolint\n */\n\n(function () {\n 'use strict';\n\n const hasOwnProperty = Object.prototype.hasOwnProperty;\n\n /**\n * Returns an array of the given object's own enumerable entries.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries\n */\n if (typeof Object.entries !== 'function') {\n Object.entries = function (object) {\n // `null` and `undefined` values are not allowed.\n if (object == null) {\n throw new TypeError('Object.entries called on non-object');\n }\n\n const entries = [];\n for (const key in object) {\n if (hasOwnProperty.call(object, key)) {\n entries.push([key, object[key]]);\n }\n }\n return entries;\n };\n }\n\n /**\n * Returns an array of the given object's own enumerable entries.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values\n */\n if (typeof Object.values !== 'function') {\n Object.values = function (object) {\n // `null` and `undefined` values are not allowed.\n if (object == null) {\n throw new TypeError('Object.values called on non-object');\n }\n\n const values = [];\n for (const key in object) {\n if (hasOwnProperty.call(object, key)) {\n values.push(object[key]);\n }\n }\n return values;\n };\n }\n})();\n", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"NativeStackView\", {\n enumerable: true,\n get: function () {\n return _NativeStackView.default;\n }\n});\nObject.defineProperty(exports, \"createNativeStackNavigator\", {\n enumerable: true,\n get: function () {\n return _createNativeStackNavigator.default;\n }\n});\nvar _createNativeStackNavigator = _interopRequireDefault(require(\"./navigators/createNativeStackNavigator\"));\nvar _NativeStackView = _interopRequireDefault(require(\"./views/NativeStackView\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n//# sourceMappingURL=index.js.map", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _reactNavigation__native = require(\"@amazon-devices/react-navigation__native\");\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _NativeStackView = _interopRequireDefault(require(\"../views/NativeStackView\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction NativeStackNavigator({\n id,\n initialRouteName,\n children,\n screenListeners,\n screenOptions,\n ...rest\n}) {\n const {\n state,\n descriptors,\n navigation,\n NavigationContent\n } = (0, _reactNavigation__native.useNavigationBuilder)(_reactNavigation__native.StackRouter, {\n id,\n initialRouteName,\n children,\n screenListeners,\n screenOptions\n });\n React.useEffect(() => {\n var _navigation$addListen;\n return (// @ts-expect-error: there may not be a tab navigator in parent\n navigation === null || navigation === void 0 || (_navigation$addListen = navigation.addListener) === null || _navigation$addListen === void 0 ? void 0 : _navigation$addListen.call(navigation, 'tabPress', e => {\n const isFocused = navigation.isFocused();\n\n // Run the operation in the next frame so we're sure all listeners have been run\n // This is necessary to know if preventDefault() has been called\n requestAnimationFrame(() => {\n if (state.index > 0 && isFocused && !e.defaultPrevented) {\n // When user taps on already focused tab and we're inside the tab,\n // reset the stack to replicate native behaviour\n navigation.dispatch({\n ..._reactNavigation__native.StackActions.popToTop(),\n target: state.key\n });\n }\n });\n })\n );\n }, [navigation, state.index, state.key]);\n return /*#__PURE__*/React.createElement(NavigationContent, null, /*#__PURE__*/React.createElement(_NativeStackView.default, _extends({}, rest, {\n state: state,\n navigation: navigation,\n descriptors: descriptors\n })));\n}\nvar _default = exports.default = (0, _reactNavigation__native.createNavigatorFactory)(NativeStackNavigator);\n//# sourceMappingURL=createNativeStackNavigator.js.map", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = NativeStackView;\nvar _reactNavigation__elements = require(\"@amazon-devices/react-navigation__elements\");\nvar _reactNavigation__native = require(\"@amazon-devices/react-navigation__native\");\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _reactNative = require(\"react-native\");\nvar _reactNativeSafeAreaContext = require(\"@amazon-devices/react-native-safe-area-context\");\nvar _reactNativeScreens = require(\"@amazon-devices/react-native-screens\");\nvar _warnOnce = _interopRequireDefault(require(\"warn-once\"));\nvar _useDismissedRouteError = _interopRequireDefault(require(\"../utils/useDismissedRouteError\"));\nvar _useInvalidPreventRemoveError = _interopRequireDefault(require(\"../utils/useInvalidPreventRemoveError\"));\nvar _DebugContainer = _interopRequireDefault(require(\"./DebugContainer\"));\nvar _HeaderConfig = _interopRequireDefault(require(\"./HeaderConfig\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nconst isAndroid = _reactNative.Platform.OS === 'android';\nconst MaybeNestedStack = ({\n options,\n route,\n presentation,\n headerHeight,\n headerTopInsetEnabled,\n children\n}) => {\n const {\n colors\n } = (0, _reactNavigation__native.useTheme)();\n const {\n header,\n headerShown = true,\n contentStyle\n } = options;\n const isHeaderInModal = isAndroid ? false : presentation !== 'card' && headerShown === true && header === undefined;\n const headerShownPreviousRef = React.useRef(headerShown);\n React.useEffect(() => {\n (0, _warnOnce.default)(!isAndroid && presentation !== 'card' && headerShownPreviousRef.current !== headerShown, `Dynamically changing 'headerShown' in modals will result in remounting the screen and losing all local state. See options for the screen '${route.name}'.`);\n headerShownPreviousRef.current = headerShown;\n }, [headerShown, presentation, route.name]);\n const content = /*#__PURE__*/React.createElement(_DebugContainer.default, {\n style: [styles.container, presentation !== 'transparentModal' && presentation !== 'containedTransparentModal' && {\n backgroundColor: colors.background\n }, contentStyle],\n stackPresentation: presentation === 'card' ? 'push' : presentation\n }, children);\n if (isHeaderInModal) {\n return /*#__PURE__*/React.createElement(_reactNativeScreens.ScreenStack, {\n style: styles.container\n }, /*#__PURE__*/React.createElement(_reactNativeScreens.Screen, {\n enabled: true,\n style: _reactNative.StyleSheet.absoluteFill\n }, content, /*#__PURE__*/React.createElement(_HeaderConfig.default, _extends({}, options, {\n route: route,\n headerHeight: headerHeight,\n headerTopInsetEnabled: headerTopInsetEnabled,\n canGoBack: true\n }))));\n }\n return content;\n};\nconst SceneView = ({\n index,\n focused,\n descriptor,\n previousDescriptor,\n nextDescriptor,\n onWillDisappear,\n onAppear,\n onDisappear,\n onDismissed,\n onHeaderBackButtonClicked,\n onNativeDismissCancelled\n}) => {\n var _preventedRoutes$rout;\n const {\n route,\n navigation,\n options,\n render\n } = descriptor;\n const {\n animationDuration,\n animationTypeForReplace = 'push',\n gestureEnabled,\n header,\n headerBackButtonMenuEnabled,\n headerShown,\n headerTransparent,\n autoHideHomeIndicator,\n navigationBarColor,\n navigationBarHidden,\n orientation,\n statusBarAnimation,\n statusBarHidden,\n statusBarStyle,\n statusBarTranslucent,\n statusBarColor,\n freezeOnBlur\n } = options;\n let {\n animation,\n customAnimationOnGesture,\n fullScreenGestureEnabled,\n presentation = 'card',\n gestureDirection = presentation === 'card' ? 'horizontal' : 'vertical'\n } = options;\n if (gestureDirection === 'vertical' && _reactNative.Platform.OS === 'ios') {\n // for `vertical` direction to work, we need to set `fullScreenGestureEnabled` to `true`\n // so the screen can be dismissed from any point on screen.\n // `customAnimationOnGesture` needs to be set to `true` so the `animation` set by user can be used,\n // otherwise `simple_push` will be used.\n // Also, the default animation for this direction seems to be `slide_from_bottom`.\n if (fullScreenGestureEnabled === undefined) {\n fullScreenGestureEnabled = true;\n }\n if (customAnimationOnGesture === undefined) {\n customAnimationOnGesture = true;\n }\n if (animation === undefined) {\n animation = 'slide_from_bottom';\n }\n }\n\n // workaround for rn-screens where gestureDirection has to be set on both\n // current and previous screen - software-mansion/react-native-screens/pull/1509\n const nextGestureDirection = nextDescriptor === null || nextDescriptor === void 0 ? void 0 : nextDescriptor.options.gestureDirection;\n const gestureDirectionOverride = nextGestureDirection != null ? nextGestureDirection : gestureDirection;\n if (index === 0) {\n // first screen should always be treated as `card`, it resolves problems with no header animation\n // for navigator with first screen as `modal` and the next as `card`\n presentation = 'card';\n }\n const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();\n const frame = (0, _reactNativeSafeAreaContext.useSafeAreaFrame)();\n\n // `modal` and `formSheet` presentations do not take whole screen, so should not take the inset.\n const isModal = presentation === 'modal' || presentation === 'formSheet';\n\n // Modals are fullscreen in landscape only on iPhone\n const isIPhone = _reactNative.Platform.OS === 'ios' && !(_reactNative.Platform.isPad || _reactNative.Platform.isTV);\n const isLandscape = frame.width > frame.height;\n const isParentHeaderShown = React.useContext(_reactNavigation__elements.HeaderShownContext);\n const parentHeaderHeight = React.useContext(_reactNavigation__elements.HeaderHeightContext);\n const parentHeaderBack = React.useContext(_reactNavigation__elements.HeaderBackContext);\n const topInset = isParentHeaderShown || _reactNative.Platform.OS === 'ios' && isModal || isIPhone && isLandscape ? 0 : insets.top;\n const {\n preventedRoutes\n } = (0, _reactNavigation__native.usePreventRemoveContext)();\n const defaultHeaderHeight = (0, _reactNavigation__elements.getDefaultHeaderHeight)(frame, isModal, topInset);\n const [customHeaderHeight, setCustomHeaderHeight] = React.useState(defaultHeaderHeight);\n const headerTopInsetEnabled = topInset !== 0;\n const headerHeight = header ? customHeaderHeight : defaultHeaderHeight;\n const headerBack = previousDescriptor ? {\n title: (0, _reactNavigation__elements.getHeaderTitle)(previousDescriptor.options, previousDescriptor.route.name)\n } : parentHeaderBack;\n const isRemovePrevented = (_preventedRoutes$rout = preventedRoutes[route.key]) === null || _preventedRoutes$rout === void 0 ? void 0 : _preventedRoutes$rout.preventRemove;\n return /*#__PURE__*/React.createElement(_reactNativeScreens.Screen, {\n key: route.key,\n enabled: true,\n style: _reactNative.StyleSheet.absoluteFill,\n customAnimationOnSwipe: customAnimationOnGesture,\n fullScreenSwipeEnabled: fullScreenGestureEnabled,\n gestureEnabled: isAndroid ?\n // This prop enables handling of system back gestures on Android\n // Since we handle them in JS side, we disable this\n false : gestureEnabled,\n homeIndicatorHidden: autoHideHomeIndicator,\n navigationBarColor: navigationBarColor,\n navigationBarHidden: navigationBarHidden,\n replaceAnimation: animationTypeForReplace,\n stackPresentation: presentation === 'card' ? 'push' : presentation,\n stackAnimation: animation,\n screenOrientation: orientation,\n statusBarAnimation: statusBarAnimation,\n statusBarHidden: statusBarHidden,\n statusBarStyle: statusBarStyle,\n statusBarColor: statusBarColor,\n statusBarTranslucent: statusBarTranslucent,\n swipeDirection: gestureDirectionOverride,\n transitionDuration: animationDuration,\n onWillDisappear: onWillDisappear,\n onAppear: onAppear,\n onDisappear: onDisappear,\n onDismissed: onDismissed,\n isNativeStack: true,\n nativeBackButtonDismissalEnabled: false // on Android\n ,\n onHeaderBackButtonClicked: onHeaderBackButtonClicked\n // @ts-ignore props not exported from rn-screens\n ,\n preventNativeDismiss: isRemovePrevented // on iOS\n ,\n onNativeDismissCancelled: onNativeDismissCancelled\n // this prop is available since rn-screens 3.16\n ,\n freezeOnBlur: freezeOnBlur\n }, /*#__PURE__*/React.createElement(_reactNavigation__native.NavigationContext.Provider, {\n value: navigation\n }, /*#__PURE__*/React.createElement(_reactNavigation__native.NavigationRouteContext.Provider, {\n value: route\n }, /*#__PURE__*/React.createElement(_reactNavigation__elements.HeaderShownContext.Provider, {\n value: isParentHeaderShown || headerShown !== false\n }, /*#__PURE__*/React.createElement(_reactNavigation__elements.HeaderHeightContext.Provider, {\n value: headerShown !== false ? headerHeight : parentHeaderHeight ?? 0\n }, /*#__PURE__*/React.createElement(_reactNative.View, {\n accessibilityElementsHidden: !focused,\n importantForAccessibility: focused ? 'auto' : 'no-hide-descendants',\n style: styles.scene\n }, /*#__PURE__*/React.createElement(MaybeNestedStack, {\n options: options,\n route: route,\n presentation: presentation,\n headerHeight: headerHeight,\n headerTopInsetEnabled: headerTopInsetEnabled\n }, /*#__PURE__*/React.createElement(_reactNavigation__elements.HeaderBackContext.Provider, {\n value: headerBack\n }, render())), header !== undefined && headerShown !== false ? /*#__PURE__*/React.createElement(_reactNative.View, {\n onLayout: e => {\n setCustomHeaderHeight(e.nativeEvent.layout.height);\n },\n style: headerTransparent ? styles.absolute : null\n }, header({\n back: headerBack,\n options,\n route,\n navigation\n })) : null), /*#__PURE__*/React.createElement(_HeaderConfig.default, _extends({}, options, {\n route: route,\n headerBackButtonMenuEnabled: isRemovePrevented !== undefined ? !isRemovePrevented : headerBackButtonMenuEnabled,\n headerShown: header !== undefined ? false : headerShown,\n headerHeight: headerHeight,\n headerBackTitle: options.headerBackTitle !== undefined ? options.headerBackTitle : unde