diff --git a/.eslintrc b/.eslintrc index 949fb3c7..bb38fe3b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,4 +1,4 @@ { "extends": "airbnb", "parser": "babel-eslint" -} +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 723c186a..33e01507 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,18 @@ ### next * Fix Android videos being able to play with background music/audio from other apps. + +### Version 4.4.0 +* Fix runtime warning by replacing `UIManager.RCTVideo` with `UIManager.getViewManagerConfig('RCTVideo')` (and ensuring backwards compat) [#1487](https://github.com/react-native-community/react-native-video/pull/1487) * Fix loading package resolved videos when using video-caching [#1438](https://github.com/react-native-community/react-native-video/pull/1438) +* Fix "message sent to deallocated instance" crash on ios [#1482](https://github.com/react-native-community/react-native-video/pull/1482) +* Display a warning when source is empty [#1478](https://github.com/react-native-community/react-native-video/pull/1478) +* Don't crash on iOS for an empty source [#1246](https://github.com/react-native-community/react-native-video/pull/1246) +* Recover from from transient internet failures when loading on ExoPlayer [#1448](https://github.com/react-native-community/react-native-video/pull/1448) +* Add controls support for ExoPlayer [#1414](https://github.com/react-native-community/react-native-video/pull/1414) +* Fix check for text tracks when iOS caching enabled [#1387](https://github.com/react-native-community/react-native-video/pull/1387) +* Add support for Picture in Picture on iOS [#1325](https://github.com/react-native-community/react-native-video/pull/1325) +* Fix UIManager undefined variable [#1488](https://github.com/react-native-community/react-native-video/pull/1488) ### Version 4.3.0 * Fix iOS video not displaying after switching source [#1395](https://github.com/react-native-community/react-native-video/pull/1395) @@ -10,6 +21,7 @@ * Fix text not appearing in release builds of Android apps [#1373](https://github.com/react-native-community/react-native-video/pull/1373) * Update to ExoPlayer 2.9.3 [#1406](https://github.com/react-native-community/react-native-video/pull/1406) * Add video track selection & onBandwidthUpdate [#1199](https://github.com/react-native-community/react-native-video/pull/1199) +* Recovery from transient internet failures and props to configure the custom retry count [#1448](https://github.com/react-native-community/react-native-video/pull/1448) ### Version 4.2.0 * Don't initialize filters on iOS unless a filter is set. This was causing a startup performance regression [#1360](https://github.com/react-native-community/react-native-video/pull/1360) diff --git a/README.md b/README.md index 20ea61c9..93627ae8 100644 --- a/README.md +++ b/README.md @@ -269,8 +269,10 @@ var styles = StyleSheet.create({ * [id](#id) * [ignoreSilentSwitch](#ignoresilentswitch) * [maxBitRate](#maxbitrate) +* [minLoadRetryCount](#minLoadRetryCount) * [muted](#muted) * [paused](#paused) +* [pictureInPicture](#pictureinpicture) * [playInBackground](#playinbackground) * [playWhenInactive](#playwheninactive) * [poster](#poster) @@ -300,14 +302,17 @@ var styles = StyleSheet.create({ * [onFullscreenPlayerDidDismiss](#onfullscreenplayerdiddismiss) * [onLoad](#onload) * [onLoadStart](#onloadstart) +* [onPictureInPictureStatusChanged](#onpictureinpicturestatuschanged) * [onProgress](#onprogress) * [onSeek](#onseek) +* [onRestoreUserInterfaceForPictureInPictureStop](#onrestoreuserinterfaceforpictureinpicturestop) * [onTimedMetadata](#ontimedmetadata) ### Methods * [dismissFullscreenPlayer](#dismissfullscreenplayer) * [presentFullscreenPlayer](#presentfullscreenplayer) * [save](#save) +* [restoreUserInterfaceForPictureInPictureStop](#restoreuserinterfaceforpictureinpicturestop) * [seek](#seek) ### Configurable props @@ -359,9 +364,9 @@ Determines whether to show player controls. Note on iOS, controls are always shown when in fullscreen mode. -Controls are not available Android because the system does not provide a stock set of controls. You will need to build your own or use a package like [react-native-video-controls](https://github.com/itsnubix/react-native-video-controls) or [react-native-video-player](https://github.com/cornedor/react-native-video-player). +For Android MediaPlayer, you will need to build your own controls or use a package like [react-native-video-controls](https://github.com/itsnubix/react-native-video-controls) or [react-native-video-player](https://github.com/cornedor/react-native-video-player). -Platforms: iOS, react-native-dom +Platforms: Android ExoPlayer, iOS, react-native-dom #### disableFocus Determines whether video audio should override background music/audio in Android devices. @@ -482,6 +487,18 @@ maxBitRate={2000000} // 2 megabits Platforms: Android ExoPlayer, iOS +#### minLoadRetryCount +Sets the minimum number of times to retry loading data before failing and reporting an error to the application. Useful to recover from transient internet failures. + +Default: 3. Retry 3 times. + +Example: +``` +minLoadRetryCount={5} // retry 5 times +``` + +Platforms: Android ExoPlayer + #### muted Controls whether the audio is muted * **false (default)** - Don't mute audio @@ -496,6 +513,13 @@ Controls whether the media is paused Platforms: all +#### pictureInPicture +Determine whether the media should played as picture in picture. +* **false (default)** - Don't not play as picture in picture +* **true** - Play the media as picture in picture + +Platforms: iOS + #### playInBackground Determine whether the media should continue playing while the app is in the background. This allows customers to continue listening to the audio. * **false (default)** - Don't continue playing the media @@ -936,6 +960,22 @@ Example: Platforms: all +#### onPictureInPictureStatusChanged +Callback function that is called when picture in picture becomes active or inactive. + +Property | Type | Description +--- | --- | --- +isActive | boolean | Boolean indicating whether picture in picture is active + +Example: +``` +{ +isActive: true +} +``` + +Platforms: iOS + #### onProgress Callback function that is called every progressUpdateInterval seconds with info about which position the media is currently playing. @@ -979,6 +1019,13 @@ Both the currentTime & seekTime are reported because the video player may not se Platforms: Android ExoPlayer, Android MediaPlayer, iOS, Windows UWP +#### onRestoreUserInterfaceForPictureInPictureStop +Callback function that corresponds to Apple's [`restoreUserInterfaceForPictureInPictureStopWithCompletionHandler`](https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614703-pictureinpicturecontroller?language=objc). Call `restoreUserInterfaceForPictureInPictureStopCompleted` inside of this function when done restoring the user interface. + +Payload: none + +Platforms: iOS + #### onTimedMetadata Callback function that is called when timed metadata becomes available @@ -1067,6 +1114,18 @@ Future: Platforms: iOS +#### restoreUserInterfaceForPictureInPictureStopCompleted +`restoreUserInterfaceForPictureInPictureStopCompleted(restored)` + +This function corresponds to the completion handler in Apple's [restoreUserInterfaceForPictureInPictureStop](https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614703-pictureinpicturecontroller?language=objc). IMPORTANT: This function must be called after `onRestoreUserInterfaceForPictureInPictureStop` is called. + +Example: +``` +this.player.restoreUserInterfaceForPictureInPictureStopCompleted(true); +``` + +Platforms: iOS + #### seek() `seek(seconds)` diff --git a/Video.js b/Video.js index ff893efb..81c1b802 100644 --- a/Video.js +++ b/Video.js @@ -78,6 +78,10 @@ export default class Video extends Component { return await NativeModules.VideoManager.save(options, findNodeHandle(this._root)); } + restoreUserInterfaceForPictureInPictureStopCompleted = (restored) => { + this.setNativeProps({ restoreUserInterfaceForPIPStopCompletionHandler: restored }); + }; + _assignRoot = (component) => { this._root = component; }; @@ -198,6 +202,18 @@ export default class Video extends Component { } }; + _onPictureInPictureStatusChanged = (event) => { + if (this.props.onPictureInPictureStatusChanged) { + this.props.onPictureInPictureStatusChanged(event.nativeEvent); + } + }; + + _onRestoreUserInterfaceForPictureInPictureStop = (event) => { + if (this.props.onRestoreUserInterfaceForPictureInPictureStop) { + this.props.onRestoreUserInterfaceForPictureInPictureStop(); + } + }; + _onAudioFocusChanged = (event) => { if (this.props.onAudioFocusChanged) { this.props.onAudioFocusChanged(event.nativeEvent); @@ -210,6 +226,13 @@ export default class Video extends Component { } }; + getViewManagerConfig = viewManagerName => { + if (!NativeModules.UIManager.getViewManagerConfig) { + return NativeModules.UIManager[viewManagerName]; + } + return NativeModules.UIManager.getViewManagerConfig(viewManagerName); + }; + render() { const resizeMode = this.props.resizeMode; const source = resolveAssetSource(this.props.source) || {}; @@ -219,19 +242,25 @@ export default class Video extends Component { if (uri && uri.match(/^\//)) { uri = `file://${uri}`; } + + if (!uri) { + console.warn('Trying to load empty source.'); + } const isNetwork = !!(uri && uri.match(/^https?:/)); const isAsset = !!(uri && uri.match(/^(assets-library|ipod-library|file|content|ms-appx|ms-appdata):/)); let nativeResizeMode; + const RCTVideoInstance = this.getViewManagerConfig('RCTVideo'); + if (resizeMode === VideoResizeMode.stretch) { - nativeResizeMode = NativeModules.UIManager.RCTVideo.Constants.ScaleToFill; + nativeResizeMode = RCTVideoInstance.Constants.ScaleToFill; } else if (resizeMode === VideoResizeMode.contain) { - nativeResizeMode = NativeModules.UIManager.RCTVideo.Constants.ScaleAspectFit; + nativeResizeMode = RCTVideoInstance.Constants.ScaleAspectFit; } else if (resizeMode === VideoResizeMode.cover) { - nativeResizeMode = NativeModules.UIManager.RCTVideo.Constants.ScaleAspectFill; + nativeResizeMode = RCTVideoInstance.Constants.ScaleAspectFill; } else { - nativeResizeMode = NativeModules.UIManager.RCTVideo.Constants.ScaleNone; + nativeResizeMode = RCTVideoInstance.Constants.ScaleNone; } const nativeProps = Object.assign({}, this.props); @@ -269,6 +298,8 @@ export default class Video extends Component { onPlaybackRateChange: this._onPlaybackRateChange, onAudioFocusChanged: this._onAudioFocusChanged, onAudioBecomingNoisy: this._onAudioBecomingNoisy, + onPictureInPictureStatusChanged: this._onPictureInPictureStatusChanged, + onRestoreUserInterfaceForPictureInPictureStop: this._onRestoreUserInterfaceForPictureInPictureStop, }); const posterStyle = { @@ -341,6 +372,7 @@ Video.propTypes = { // Opaque type returned by require('./video.mp4') PropTypes.number ]), + minLoadRetryCount: PropTypes.number, maxBitRate: PropTypes.number, resizeMode: PropTypes.string, poster: PropTypes.string, @@ -391,6 +423,7 @@ Video.propTypes = { }), stereoPan: PropTypes.number, rate: PropTypes.number, + pictureInPicture: PropTypes.bool, playInBackground: PropTypes.bool, playWhenInactive: PropTypes.bool, ignoreSilentSwitch: PropTypes.oneOf(['ignore', 'obey']), @@ -422,6 +455,8 @@ Video.propTypes = { onPlaybackRateChange: PropTypes.func, onAudioFocusChanged: PropTypes.func, onAudioBecomingNoisy: PropTypes.func, + onPictureInPictureStatusChanged: PropTypes.func, + needsToRestoreUserInterfaceForPictureInPictureStop: PropTypes.func, onExternalPlaybackChange: PropTypes.func, /* Required by react-native */ diff --git a/android-exoplayer/build.gradle b/android-exoplayer/build.gradle index a532956d..717d04ad 100644 --- a/android-exoplayer/build.gradle +++ b/android-exoplayer/build.gradle @@ -7,6 +7,11 @@ def safeExtGet(prop, fallback) { android { compileSdkVersion safeExtGet('compileSdkVersion', 27) buildToolsVersion safeExtGet('buildToolsVersion', '27.0.3') + + compileOptions { + targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_1_8 + } defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 16) diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 87113dbe..2ed30269 100644 --- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -64,6 +64,7 @@ import com.google.android.exoplayer2.upstream.BandwidthMeter; import com.google.android.exoplayer2.upstream.DefaultBandwidthMeter; import com.google.android.exoplayer2.util.MimeTypes; import com.google.android.exoplayer2.util.Util; +import com.google.android.exoplayer2.ui.PlayerControlView; import java.net.CookieHandler; import java.net.CookieManager; @@ -96,6 +97,9 @@ class ReactExoplayerView extends FrameLayout implements } private final VideoEventEmitter eventEmitter; + private PlayerControlView playerControlView; + private View playPauseControlContainer; + private Player.EventListener eventListener; private Handler mainHandler; private ExoPlayerView exoPlayerView; @@ -114,6 +118,7 @@ class ReactExoplayerView extends FrameLayout implements private boolean isBuffering; private float rate = 1f; private float audioVolume = 1f; + private int minLoadRetryCount = 3; private int maxBitRate = 0; private long seekTime = C.TIME_UNSET; @@ -257,6 +262,76 @@ class ReactExoplayerView extends FrameLayout implements } // Internal methods + + /** + * Toggling the visibility of the player control view + */ + private void togglePlayerControlVisibility() { + reLayout(playerControlView); + if (playerControlView.isVisible()) { + playerControlView.hide(); + } else { + playerControlView.show(); + } + } + + /** + * Initializing Player control + */ + private void initializePlayerControl() { + if (playerControlView == null) { + playerControlView = new PlayerControlView(getContext()); + } + + // Setting the player for the playerControlView + playerControlView.setPlayer(player); + playerControlView.show(); + playPauseControlContainer = playerControlView.findViewById(R.id.exo_play_pause_container); + + // Invoking onClick event for exoplayerView + exoPlayerView.setOnClickListener(new OnClickListener() { + @Override + public void onClick(View v) { + togglePlayerControlVisibility(); + } + }); + + // Invoking onPlayerStateChanged event for Player + eventListener = new Player.EventListener() { + @Override + public void onPlayerStateChanged(boolean playWhenReady, int playbackState) { + reLayout(playPauseControlContainer); + //Remove this eventListener once its executed. since UI will work fine once after the reLayout is done + player.removeListener(eventListener); + } + }; + player.addListener(eventListener); + } + + /** + * Adding Player control to the frame layout + */ + private void addPlayerControl() { + LayoutParams layoutParams = new LayoutParams( + LayoutParams.MATCH_PARENT, + LayoutParams.MATCH_PARENT); + playerControlView.setLayoutParams(layoutParams); + addView(playerControlView, 1, layoutParams); + } + + /** + * Update the layout + * @param view view needs to update layout + * + * This is a workaround for the open bug in react-native: https://github.com/facebook/react-native/issues/17968 + */ + private void reLayout(View view) { + if (view == null) return; + view.measure(MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.EXACTLY), + MeasureSpec.makeMeasureSpec(getMeasuredHeight(), MeasureSpec.EXACTLY)); + view.layout(view.getLeft(), view.getTop(), view.getMeasuredWidth(), view.getMeasuredHeight()); + } + private void initializePlayer() { if (player == null) { TrackSelection.Factory videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(BANDWIDTH_METER); @@ -302,6 +377,9 @@ class ReactExoplayerView extends FrameLayout implements eventEmitter.loadStart(); loadVideoStarted = true; } + + // Initializing the playerControlView + initializePlayerControl(); } private MediaSource buildMediaSource(Uri uri, String overrideExtension) { @@ -310,12 +388,17 @@ class ReactExoplayerView extends FrameLayout implements switch (type) { case C.TYPE_SS: return new SsMediaSource(uri, buildDataSourceFactory(false), - new DefaultSsChunkSource.Factory(mediaDataSourceFactory), mainHandler, null); + new DefaultSsChunkSource.Factory(mediaDataSourceFactory), + minLoadRetryCount, SsMediaSource.DEFAULT_LIVE_PRESENTATION_DELAY_MS, + mainHandler, null); case C.TYPE_DASH: return new DashMediaSource(uri, buildDataSourceFactory(false), - new DefaultDashChunkSource.Factory(mediaDataSourceFactory), mainHandler, null); + new DefaultDashChunkSource.Factory(mediaDataSourceFactory), + minLoadRetryCount, DashMediaSource.DEFAULT_LIVE_PRESENTATION_DELAY_MS, + mainHandler, null); case C.TYPE_HLS: - return new HlsMediaSource(uri, mediaDataSourceFactory, mainHandler, null); + return new HlsMediaSource(uri, mediaDataSourceFactory, + minLoadRetryCount, mainHandler, null); case C.TYPE_OTHER: return new ExtractorMediaSource(uri, mediaDataSourceFactory, new DefaultExtractorsFactory(), mainHandler, null); @@ -517,6 +600,10 @@ class ReactExoplayerView extends FrameLayout implements onBuffering(false); startProgressHandler(); videoLoaded(); + //Setting the visibility for the playerControlView + if(playerControlView != null) { + playerControlView.show(); + } break; case ExoPlayer.STATE_ENDED: text += "ended"; @@ -870,7 +957,7 @@ class ReactExoplayerView extends FrameLayout implements TrackGroup group = groups.get(i); for (int j = 0; j < group.length; j++) { Format format = group.getFormat(j); - if (format.height == value.asInt()) { + if (format.height == height) { groupIndex = i; tracks[0] = j; break; @@ -998,6 +1085,11 @@ class ReactExoplayerView extends FrameLayout implements } } + public void setMinLoadRetryCountModifier(int newMinLoadRetryCount) { + minLoadRetryCount = newMinLoadRetryCount; + releasePlayer(); + initializePlayer(); + } public void setPlayInBackground(boolean playInBackground) { this.playInBackground = playInBackground; @@ -1056,4 +1148,17 @@ class ReactExoplayerView extends FrameLayout implements releasePlayer(); initializePlayer(); } + + /** + * Handling controls prop + * + * @param controls Controls prop, if true enable controls, if false disable them + */ + public void setControls(boolean controls) { + if (controls && exoPlayerView != null) { + addPlayerControl(); + } else if (getChildAt(1) instanceof PlayerControlView && exoPlayerView != null) { + removeViewAt(1); + } + } } diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerViewManager.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerViewManager.java index 31bd8e08..baa33075 100644 --- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerViewManager.java +++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerViewManager.java @@ -48,6 +48,7 @@ public class ReactExoplayerViewManager extends ViewGroupManager + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/embed-and-fullscreen/.babelrc b/examples/embed-and-fullscreen/.babelrc new file mode 100644 index 00000000..8df53fe4 --- /dev/null +++ b/examples/embed-and-fullscreen/.babelrc @@ -0,0 +1,3 @@ +{ +"presets": ["react-native"] +} \ No newline at end of file diff --git a/examples/embed-and-fullscreen/.buckconfig b/examples/embed-and-fullscreen/.buckconfig new file mode 100644 index 00000000..934256cb --- /dev/null +++ b/examples/embed-and-fullscreen/.buckconfig @@ -0,0 +1,6 @@ + +[android] + target = Google Inc.:Google APIs:23 + +[maven_repositories] + central = https://repo1.maven.org/maven2 diff --git a/examples/embed-and-fullscreen/.flowconfig b/examples/embed-and-fullscreen/.flowconfig new file mode 100644 index 00000000..bb65654d --- /dev/null +++ b/examples/embed-and-fullscreen/.flowconfig @@ -0,0 +1,58 @@ +[ignore] +; We fork some components by platform +.*/*[.]android.js + +# We fork some components by platform. +.*/*[.]android.js + +# Ignore templates with `@flow` in header +.*/local-cli/generator.* + +# Ignore malformed json +.*/node_modules/y18n/test/.*\.json + +# Ignore the website subdir +/website/.* + +# Ignore BUCK generated dirs + +/\.buckd/ + +; Ignore unexpected extra "@providesModule" +.*/node_modules/.*/node_modules/fbjs/.* + +; Ignore duplicate module providers +; For RN Apps installed via npm, "Libraries" folder is inside +; "node_modules/react-native" but in the source repo it is in the root +.*/Libraries/react-native/React.js +.*/Libraries/react-native/ReactNative.js + +[include] + +[libs] +node_modules/react-native/Libraries/react-native/react-native-interface.js +node_modules/react-native/flow +flow/ + +[options] +module.system=haste + +experimental.strict_type_args=true + +munge_underscores=true + +module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' + +suppress_type=$FlowIssue +suppress_type=$FlowFixMe +suppress_type=$FixMe + +suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-6]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) +suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-6]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ +suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy + +unsafe.enable_getters_and_setters=true + +[version] + +^0.36.0 diff --git a/examples/embed-and-fullscreen/.gitattributes b/examples/embed-and-fullscreen/.gitattributes new file mode 100644 index 00000000..d42ff183 --- /dev/null +++ b/examples/embed-and-fullscreen/.gitattributes @@ -0,0 +1 @@ +*.pbxproj -text diff --git a/examples/embed-and-fullscreen/.gitignore b/examples/embed-and-fullscreen/.gitignore new file mode 100644 index 00000000..fc13f169 --- /dev/null +++ b/examples/embed-and-fullscreen/.gitignore @@ -0,0 +1,53 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +project.xcworkspace + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml + +# node.js +# +node_modules/ +npm-debug.log + +# BUCK +buck-out/ +\.buckd/ +android/app/libs +*.keystore + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md + +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots diff --git a/examples/embed-and-fullscreen/.vscode/.react/debuggerWorker.js b/examples/embed-and-fullscreen/.vscode/.react/debuggerWorker.js new file mode 100644 index 00000000..52e9b5cf --- /dev/null +++ b/examples/embed-and-fullscreen/.vscode/.react/debuggerWorker.js @@ -0,0 +1,144 @@ + +// Initialize some variables before react-native code would access them +var onmessage=null, self=global; +// Cache Node's original require as __debug__.require +global.__debug__={require: require}; +// avoid Node's GLOBAL deprecation warning +Object.defineProperty(global, "GLOBAL", { + configurable: true, + writable: true, + enumerable: true, + value: global +}); +// Prevent leaking process.versions from debugger process to +// worker because pure React Native doesn't do that and some packages as js-md5 rely on this behavior +Object.defineProperty(process, "versions", { + value: undefined +}); +var vscodeHandlers = { + 'vscode_reloadApp': function () { + try { + global.require('NativeModules').DevMenu.reload(); + } catch (err) { + // ignore + } + }, + 'vscode_showDevMenu': function () { + try { + var DevMenu = global.require('NativeModules').DevMenu.show(); + } catch (err) { + // ignore + } + } +}; +process.on("message", function (message) { + if (message.data && vscodeHandlers[message.data.method]) { + vscodeHandlers[message.data.method](); + } else if(onmessage) { + onmessage(message); + } +}); +var postMessage = function(message){ + process.send(message); +}; +if (!self.postMessage) { + self.postMessage = postMessage; +} +var importScripts = (function(){ + var fs=require('fs'), vm=require('vm'); + return function(scriptUrl){ + var scriptCode = fs.readFileSync(scriptUrl, "utf8"); + vm.runInThisContext(scriptCode, {filename: scriptUrl}); + }; +})(); + +/** + * Copyright (c) 2015-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ + +/* global __fbBatchedBridge, self, importScripts, postMessage, onmessage: true */ +/* eslint no-unused-vars: 0 */ + +'use strict'; + +onmessage = (function() { + var visibilityState; + var showVisibilityWarning = (function() { + var hasWarned = false; + return function() { + // Wait until `YellowBox` gets initialized before displaying the warning. + if (hasWarned || console.warn.toString().includes('[native code]')) { + return; + } + hasWarned = true; + console.warn( + 'Remote debugger is in a background tab which may cause apps to ' + + 'perform slowly. Fix this by foregrounding the tab (or opening it in ' + + 'a separate window).', + ); + }; + })(); + + var messageHandlers = { + executeApplicationScript: function(message, sendReply) { + for (var key in message.inject) { + self[key] = JSON.parse(message.inject[key]); + } + var error; + try { + importScripts(message.url); + } catch (err) { + error = err.message; + } + sendReply(null /* result */, error); + }, + setDebuggerVisibility: function(message) { + visibilityState = message.visibilityState; + }, + }; + + return function(message) { + if (visibilityState === 'hidden') { + showVisibilityWarning(); + } + + var object = message.data; + + var sendReply = function(result, error) { + postMessage({replyID: object.id, result: result, error: error}); + }; + + var handler = messageHandlers[object.method]; + if (handler) { + // Special cased handlers + handler(object, sendReply); + } else { + // Other methods get called on the bridge + var returnValue = [[], [], [], 0]; + var error; + try { + if (typeof __fbBatchedBridge === 'object') { + returnValue = __fbBatchedBridge[object.method].apply( + null, + object.arguments, + ); + } else { + error = 'Failed to call function, __fbBatchedBridge is undefined'; + } + } catch (err) { + error = err.message; + } finally { + sendReply(JSON.stringify(returnValue), error); + } + } + }; +})(); + +// Notify debugger that we're done with loading +// and started listening for IPC messages +postMessage({workerLoaded:true}); \ No newline at end of file diff --git a/examples/embed-and-fullscreen/.vscode/.react/index.ios.bundle b/examples/embed-and-fullscreen/.vscode/.react/index.ios.bundle new file mode 100644 index 00000000..88275cfe --- /dev/null +++ b/examples/embed-and-fullscreen/.vscode/.react/index.ios.bundle @@ -0,0 +1,80702 @@ +var __DEV__=true,__BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),process=this.process||{};process.env=process.env||{};process.env.NODE_ENV="development"; +(function (global) { + 'use strict'; + + var PRINT_REQUIRE_PATHS = false; + global.require = metroRequire; + global.__d = define; + var modules = typeof __NUM_MODULES__ === 'number' ? Array(__NUM_MODULES__ | 0) : Object.create(null); + + if (__DEV__) { + var verboseNamesToModuleIds = Object.create(null); + } + + function define(factory, moduleId, dependencyMap) { + if (modules[moduleId] != null) { + if (__DEV__) { + var inverseDependencies = arguments[4]; + + if (inverseDependencies) { + global.__accept(moduleId, factory, dependencyMap, inverseDependencies); + } else { + console.warn("Trying to define twice module ID " + moduleId + " in the same bundle"); + } + } + + return; + } + + modules[moduleId] = { + dependencyMap: dependencyMap, + exports: undefined, + factory: factory, + hasError: false, + isInitialized: false + }; + + if (PRINT_REQUIRE_PATHS) { + var path = arguments[4]; + + if (path) { + modules[moduleId].path = path; + } else { + throw new Error('path not set on module with PRINT_REQUIRE_PATHS true. Make sure ' + 'PASS_MODULE_PATHS_TO_DEFINE is true and restart Metro or rebuild bundle'); + } + } + + if (__DEV__) { + modules[moduleId].hot = createHotReloadingObject(); + var verboseName = arguments[3]; + + if (verboseName) { + modules[moduleId].verboseName = verboseName; + verboseNamesToModuleIds[verboseName] = moduleId; + } + } + } + + function metroRequire(moduleId) { + if (__DEV__ && typeof moduleId === 'string') { + var verboseName = moduleId; + moduleId = verboseNamesToModuleIds[verboseName]; + + if (moduleId == null) { + throw new Error("Unknown named module: '" + verboseName + "'"); + } else { + console.warn("Requiring module '" + verboseName + "' by name is only supported for " + 'debugging purposes and will BREAK IN PRODUCTION!'); + } + } + + var moduleIdReallyIsNumber = moduleId; + var module = modules[moduleIdReallyIsNumber]; + return module && module.isInitialized ? module.exports : guardedLoadModule(moduleIdReallyIsNumber, module); + } + + var inGuard = false; + + function guardedLoadModule(moduleId, module) { + if (!inGuard && global.ErrorUtils) { + inGuard = true; + var returnValue; + + try { + returnValue = loadModuleImplementation(moduleId, module); + } catch (e) { + global.ErrorUtils.reportFatalError(e); + } + + inGuard = false; + return returnValue; + } else { + return loadModuleImplementation(moduleId, module); + } + } + + var ID_MASK_SHIFT = 16; + var LOCAL_ID_MASK = ~0 >>> ID_MASK_SHIFT; + + function unpackModuleId(moduleId) { + var segmentId = moduleId >>> ID_MASK_SHIFT; + var localId = moduleId & LOCAL_ID_MASK; + return { + segmentId: segmentId, + localId: localId + }; + } + + metroRequire.unpackModuleId = unpackModuleId; + + function packModuleId(value) { + return value.segmentId << ID_MASK_SHIFT + value.localId; + } + + metroRequire.packModuleId = packModuleId; + + function loadModuleImplementation(moduleId, module) { + var nativeRequire = global.nativeRequire; + + if (!module && nativeRequire) { + var _unpackModuleId = unpackModuleId(moduleId); + + var segmentId = _unpackModuleId.segmentId, + localId = _unpackModuleId.localId; + nativeRequire(localId, segmentId); + module = modules[moduleId]; + } + + if (!module) { + throw unknownModuleError(moduleId); + } + + if (module.hasError) { + throw moduleThrewError(moduleId, module.error); + } + + if (__DEV__) { + var Systrace = metroRequire.Systrace; + } + + module.isInitialized = true; + var exports = module.exports = {}; + var _module = module; + var factory = _module.factory, + dependencyMap = _module.dependencyMap; + + try { + if (PRINT_REQUIRE_PATHS) { + console.log("require file path " + (module.path || 'unknown')); + } + + if (__DEV__) { + Systrace.beginEvent('JS_require_' + (module.verboseName || moduleId)); + } + + var moduleObject = { + exports: exports + }; + + if (__DEV__ && module.hot) { + moduleObject.hot = module.hot; + } + + factory(global, metroRequire, moduleObject, exports, dependencyMap); + + if (!__DEV__) { + module.factory = undefined; + module.dependencyMap = undefined; + } + + if (__DEV__) { + Systrace.endEvent(); + } + + return module.exports = moduleObject.exports; + } catch (e) { + module.hasError = true; + module.error = e; + module.isInitialized = false; + module.exports = undefined; + throw e; + } + } + + function unknownModuleError(id) { + var message = 'Requiring unknown module "' + id + '".'; + + if (__DEV__) { + message += 'If you are sure the module is there, try restarting Metro Bundler. ' + 'You may also want to run `yarn`, or `npm install` (depending on your environment).'; + } + + return Error(message); + } + + function moduleThrewError(id, error) { + var displayName = __DEV__ && modules[id] && modules[id].verboseName || id; + return Error('Requiring module "' + displayName + '", which threw an exception: ' + error); + } + + if (__DEV__) { + metroRequire.Systrace = { + beginEvent: function beginEvent() {}, + endEvent: function endEvent() {} + }; + + metroRequire.getModules = function () { + return modules; + }; + + var createHotReloadingObject = function createHotReloadingObject() { + var hot = { + acceptCallback: null, + accept: function accept(callback) { + hot.acceptCallback = callback; + }, + disposeCallback: null, + dispose: function dispose(callback) { + hot.disposeCallback = callback; + } + }; + return hot; + }; + + var metroAcceptAll = function metroAcceptAll(dependentModules, inverseDependencies, patchedModules) { + if (!dependentModules || dependentModules.length === 0) { + return true; + } + + var notAccepted = dependentModules.filter(function (module) { + return !metroAccept(module, undefined, undefined, inverseDependencies, patchedModules); + }); + var parents = []; + + for (var i = 0; i < notAccepted.length; i++) { + if (inverseDependencies[notAccepted[i]].length === 0) { + return false; + } + + parents.push.apply(parents, inverseDependencies[notAccepted[i]]); + } + + return parents.length == 0; + }; + + var metroAccept = function metroAccept(id, factory, dependencyMap, inverseDependencies) { + var patchedModules = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; + + if (id in patchedModules) { + return true; + } + + patchedModules[id] = true; + var mod = modules[id]; + + if (!mod && factory) { + return true; + } + + var hot = mod.hot; + + if (!hot) { + console.warn('Cannot accept module because Hot Module Replacement ' + 'API was not installed.'); + return false; + } + + if (hot.disposeCallback) { + try { + hot.disposeCallback(); + } catch (error) { + console.error("Error while calling dispose handler for module " + id + ": ", error); + } + } + + if (factory) { + mod.factory = factory; + } + + if (dependencyMap) { + mod.dependencyMap = dependencyMap; + } + + mod.hasError = false; + mod.isInitialized = false; + metroRequire(id); + + if (hot.acceptCallback) { + try { + hot.acceptCallback(); + return true; + } catch (error) { + console.error("Error while calling accept handler for module " + id + ": ", error); + } + } + + if (!inverseDependencies) { + throw new Error('Undefined `inverseDependencies`'); + } + + return metroAcceptAll(inverseDependencies[id], inverseDependencies, patchedModules); + }; + + global.__accept = metroAccept; + } +})(this); +(function (global) { + Object.assign = function (target, sources) { + if (__DEV__) { + if (target == null) { + throw new TypeError('Object.assign target cannot be null or undefined'); + } + + if (typeof target !== 'object' && typeof target !== 'function') { + throw new TypeError('In this environment the target of assign MUST be an object. ' + 'This error is a performance optimization and not spec compliant.'); + } + } + + for (var nextIndex = 1; nextIndex < arguments.length; nextIndex++) { + var nextSource = arguments[nextIndex]; + + if (nextSource == null) { + continue; + } + + if (__DEV__) { + if (typeof nextSource !== 'object' && typeof nextSource !== 'function') { + throw new TypeError('In this environment the sources for assign MUST be an object. ' + 'This error is a performance optimization and not spec compliant.'); + } + } + + for (var key in nextSource) { + if (__DEV__) { + var hasOwnProperty = Object.prototype.hasOwnProperty; + + if (!hasOwnProperty.call(nextSource, key)) { + throw new TypeError('One of the sources for assign has an enumerable key on the ' + 'prototype chain. Are you trying to assign a prototype property? ' + "We don't allow it, as this is an edge case that we do not support. " + 'This error is a performance optimization and not spec compliant.'); + } + } + + target[key] = nextSource[key]; + } + } + + return target; + }; +})(this); +(function (global) { + var inspect = function () { + function inspect(obj, opts) { + var ctx = { + seen: [], + stylize: stylizeNoColor + }; + return formatValue(ctx, obj, opts.depth); + } + + function stylizeNoColor(str, styleType) { + return str; + } + + function arrayToHash(array) { + var hash = {}; + array.forEach(function (val, idx) { + hash[val] = true; + }); + return hash; + } + + function formatValue(ctx, value, recurseTimes) { + var primitive = formatPrimitive(ctx, value); + + if (primitive) { + return primitive; + } + + var keys = Object.keys(value); + var visibleKeys = arrayToHash(keys); + + if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { + return formatError(value); + } + + if (keys.length === 0) { + if (isFunction(value)) { + var name = value.name ? ': ' + value.name : ''; + return ctx.stylize('[Function' + name + ']', 'special'); + } + + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } + + if (isDate(value)) { + return ctx.stylize(Date.prototype.toString.call(value), 'date'); + } + + if (isError(value)) { + return formatError(value); + } + } + + var base = '', + array = false, + braces = ['{', '}']; + + if (isArray(value)) { + array = true; + braces = ['[', ']']; + } + + if (isFunction(value)) { + var n = value.name ? ': ' + value.name : ''; + base = ' [Function' + n + ']'; + } + + if (isRegExp(value)) { + base = ' ' + RegExp.prototype.toString.call(value); + } + + if (isDate(value)) { + base = ' ' + Date.prototype.toUTCString.call(value); + } + + if (isError(value)) { + base = ' ' + formatError(value); + } + + if (keys.length === 0 && (!array || value.length == 0)) { + return braces[0] + base + braces[1]; + } + + if (recurseTimes < 0) { + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } else { + return ctx.stylize('[Object]', 'special'); + } + } + + ctx.seen.push(value); + var output; + + if (array) { + output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); + } else { + output = keys.map(function (key) { + return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); + }); + } + + ctx.seen.pop(); + return reduceToSingleString(output, base, braces); + } + + function formatPrimitive(ctx, value) { + if (isUndefined(value)) return ctx.stylize('undefined', 'undefined'); + + if (isString(value)) { + var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; + return ctx.stylize(simple, 'string'); + } + + if (isNumber(value)) return ctx.stylize('' + value, 'number'); + if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); + if (isNull(value)) return ctx.stylize('null', 'null'); + } + + function formatError(value) { + return '[' + Error.prototype.toString.call(value) + ']'; + } + + function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { + var output = []; + + for (var i = 0, l = value.length; i < l; ++i) { + if (hasOwnProperty(value, String(i))) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true)); + } else { + output.push(''); + } + } + + keys.forEach(function (key) { + if (!key.match(/^\d+$/)) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); + } + }); + return output; + } + + function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { + var name, str, desc; + desc = Object.getOwnPropertyDescriptor(value, key) || { + value: value[key] + }; + + if (desc.get) { + if (desc.set) { + str = ctx.stylize('[Getter/Setter]', 'special'); + } else { + str = ctx.stylize('[Getter]', 'special'); + } + } else { + if (desc.set) { + str = ctx.stylize('[Setter]', 'special'); + } + } + + if (!hasOwnProperty(visibleKeys, key)) { + name = '[' + key + ']'; + } + + if (!str) { + if (ctx.seen.indexOf(desc.value) < 0) { + if (isNull(recurseTimes)) { + str = formatValue(ctx, desc.value, null); + } else { + str = formatValue(ctx, desc.value, recurseTimes - 1); + } + + if (str.indexOf('\n') > -1) { + if (array) { + str = str.split('\n').map(function (line) { + return ' ' + line; + }).join('\n').substr(2); + } else { + str = '\n' + str.split('\n').map(function (line) { + return ' ' + line; + }).join('\n'); + } + } + } else { + str = ctx.stylize('[Circular]', 'special'); + } + } + + if (isUndefined(name)) { + if (array && key.match(/^\d+$/)) { + return str; + } + + name = JSON.stringify('' + key); + + if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { + name = name.substr(1, name.length - 2); + name = ctx.stylize(name, 'name'); + } else { + name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); + name = ctx.stylize(name, 'string'); + } + } + + return name + ': ' + str; + } + + function reduceToSingleString(output, base, braces) { + var numLinesEst = 0; + var length = output.reduce(function (prev, cur) { + numLinesEst++; + if (cur.indexOf('\n') >= 0) numLinesEst++; + return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; + }, 0); + + if (length > 60) { + return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; + } + + return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; + } + + function isArray(ar) { + return Array.isArray(ar); + } + + function isBoolean(arg) { + return typeof arg === 'boolean'; + } + + function isNull(arg) { + return arg === null; + } + + function isNullOrUndefined(arg) { + return arg == null; + } + + function isNumber(arg) { + return typeof arg === 'number'; + } + + function isString(arg) { + return typeof arg === 'string'; + } + + function isSymbol(arg) { + return typeof arg === 'symbol'; + } + + function isUndefined(arg) { + return arg === void 0; + } + + function isRegExp(re) { + return isObject(re) && objectToString(re) === '[object RegExp]'; + } + + function isObject(arg) { + return typeof arg === 'object' && arg !== null; + } + + function isDate(d) { + return isObject(d) && objectToString(d) === '[object Date]'; + } + + function isError(e) { + return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); + } + + function isFunction(arg) { + return typeof arg === 'function'; + } + + function isPrimitive(arg) { + return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || typeof arg === 'undefined'; + } + + function objectToString(o) { + return Object.prototype.toString.call(o); + } + + function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + } + + return inspect; + }(); + + var OBJECT_COLUMN_NAME = '(index)'; + var LOG_LEVELS = { + trace: 0, + info: 1, + warn: 2, + error: 3 + }; + var INSPECTOR_LEVELS = []; + INSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug'; + INSPECTOR_LEVELS[LOG_LEVELS.info] = 'log'; + INSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning'; + INSPECTOR_LEVELS[LOG_LEVELS.error] = 'error'; + var INSPECTOR_FRAMES_TO_SKIP = __DEV__ ? 2 : 1; + + function getNativeLogFunction(level) { + return function () { + var str; + + if (arguments.length === 1 && typeof arguments[0] === 'string') { + str = arguments[0]; + } else { + str = Array.prototype.map.call(arguments, function (arg) { + return inspect(arg, { + depth: 10 + }); + }).join(', '); + } + + var logLevel = level; + + if (str.slice(0, 9) === 'Warning: ' && logLevel >= LOG_LEVELS.error) { + logLevel = LOG_LEVELS.warn; + } + + if (global.__inspectorLog) { + global.__inspectorLog(INSPECTOR_LEVELS[logLevel], str, [].slice.call(arguments), INSPECTOR_FRAMES_TO_SKIP); + } + + global.nativeLoggingHook(str, logLevel); + }; + } + + function repeat(element, n) { + return Array.apply(null, Array(n)).map(function () { + return element; + }); + } + + function consoleTablePolyfill(rows) { + if (!Array.isArray(rows)) { + var data = rows; + rows = []; + + for (var key in data) { + if (data.hasOwnProperty(key)) { + var row = data[key]; + row[OBJECT_COLUMN_NAME] = key; + rows.push(row); + } + } + } + + if (rows.length === 0) { + global.nativeLoggingHook('', LOG_LEVELS.info); + return; + } + + var columns = Object.keys(rows[0]).sort(); + var stringRows = []; + var columnWidths = []; + columns.forEach(function (k, i) { + columnWidths[i] = k.length; + + for (var j = 0; j < rows.length; j++) { + var cellStr = (rows[j][k] || '?').toString(); + stringRows[j] = stringRows[j] || []; + stringRows[j][i] = cellStr; + columnWidths[i] = Math.max(columnWidths[i], cellStr.length); + } + }); + + function joinRow(row, space) { + var cells = row.map(function (cell, i) { + var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join(''); + return cell + extraSpaces; + }); + space = space || ' '; + return cells.join(space + '|' + space); + } + + var separators = columnWidths.map(function (columnWidth) { + return repeat('-', columnWidth).join(''); + }); + var separatorRow = joinRow(separators, '-'); + var header = joinRow(columns); + var table = [header, separatorRow]; + + for (var i = 0; i < rows.length; i++) { + table.push(joinRow(stringRows[i])); + } + + global.nativeLoggingHook('\n' + table.join('\n'), LOG_LEVELS.info); + } + + if (global.nativeLoggingHook) { + var originalConsole = global.console; + global.console = { + error: getNativeLogFunction(LOG_LEVELS.error), + info: getNativeLogFunction(LOG_LEVELS.info), + log: getNativeLogFunction(LOG_LEVELS.info), + warn: getNativeLogFunction(LOG_LEVELS.warn), + trace: getNativeLogFunction(LOG_LEVELS.trace), + debug: getNativeLogFunction(LOG_LEVELS.trace), + table: consoleTablePolyfill + }; + + if (__DEV__ && originalConsole) { + var descriptor = Object.getOwnPropertyDescriptor(global, 'console'); + + if (descriptor) { + Object.defineProperty(global, 'originalConsole', descriptor); + } + + Object.keys(console).forEach(function (methodName) { + var reactNativeMethod = console[methodName]; + + if (originalConsole[methodName]) { + console[methodName] = function () { + originalConsole[methodName].apply(originalConsole, arguments); + reactNativeMethod.apply(console, arguments); + }; + } + }); + } + } else if (!global.console) { + var log = global.print || function consoleLoggingStub() {}; + + global.console = { + error: log, + info: log, + log: log, + warn: log, + trace: log, + debug: log, + table: log + }; + } +})(this); +(function (global) { + var _inGuard = 0; + + var _globalHandler = function onError(e) { + throw e; + }; + + var ErrorUtils = { + setGlobalHandler: function setGlobalHandler(fun) { + _globalHandler = fun; + }, + getGlobalHandler: function getGlobalHandler() { + return _globalHandler; + }, + reportError: function reportError(error) { + _globalHandler && _globalHandler(error); + }, + reportFatalError: function reportFatalError(error) { + _globalHandler && _globalHandler(error, true); + }, + applyWithGuard: function applyWithGuard(fun, context, args) { + try { + _inGuard++; + return fun.apply(context, args); + } catch (e) { + ErrorUtils.reportError(e); + } finally { + _inGuard--; + } + + return null; + }, + applyWithGuardIfNeeded: function applyWithGuardIfNeeded(fun, context, args) { + if (ErrorUtils.inGuard()) { + return fun.apply(context, args); + } else { + ErrorUtils.applyWithGuard(fun, context, args); + } + + return null; + }, + inGuard: function inGuard() { + return _inGuard; + }, + guard: function guard(fun, name, context) { + if (typeof fun !== 'function') { + console.warn('A function must be passed to ErrorUtils.guard, got ', fun); + return null; + } + + name = name || fun.name || ''; + + function guarded() { + return ErrorUtils.applyWithGuard(fun, context || this, arguments, null, name); + } + + return guarded; + } + }; + global.ErrorUtils = ErrorUtils; +})(this); +(function (global) { + if (Number.EPSILON === undefined) { + Object.defineProperty(Number, 'EPSILON', { + value: Math.pow(2, -52) + }); + } + + if (Number.MAX_SAFE_INTEGER === undefined) { + Object.defineProperty(Number, 'MAX_SAFE_INTEGER', { + value: Math.pow(2, 53) - 1 + }); + } + + if (Number.MIN_SAFE_INTEGER === undefined) { + Object.defineProperty(Number, 'MIN_SAFE_INTEGER', { + value: -(Math.pow(2, 53) - 1) + }); + } + + if (!Number.isNaN) { + var globalIsNaN = global.isNaN; + Object.defineProperty(Number, 'isNaN', { + configurable: true, + enumerable: false, + value: function isNaN(value) { + return typeof value === 'number' && globalIsNaN(value); + }, + writable: true + }); + } +})(this); +(function (global) { + if (!String.prototype.startsWith) { + String.prototype.startsWith = function (search) { + 'use strict'; + + if (this == null) { + throw TypeError(); + } + + var string = String(this); + var pos = arguments.length > 1 ? Number(arguments[1]) || 0 : 0; + var start = Math.min(Math.max(pos, 0), string.length); + return string.indexOf(String(search), pos) === start; + }; + } + + if (!String.prototype.endsWith) { + String.prototype.endsWith = function (search) { + 'use strict'; + + if (this == null) { + throw TypeError(); + } + + var string = String(this); + var stringLength = string.length; + var searchString = String(search); + var pos = arguments.length > 1 ? Number(arguments[1]) || 0 : stringLength; + var end = Math.min(Math.max(pos, 0), stringLength); + var start = end - searchString.length; + + if (start < 0) { + return false; + } + + return string.lastIndexOf(searchString, start) === start; + }; + } + + if (!String.prototype.repeat) { + String.prototype.repeat = function (count) { + 'use strict'; + + if (this == null) { + throw TypeError(); + } + + var string = String(this); + count = Number(count) || 0; + + if (count < 0 || count === Infinity) { + throw RangeError(); + } + + if (count === 1) { + return string; + } + + var result = ''; + + while (count) { + if (count & 1) { + result += string; + } + + if (count >>= 1) { + string += string; + } + } + + return result; + }; + } + + if (!String.prototype.includes) { + String.prototype.includes = function (search, start) { + 'use strict'; + + if (typeof start !== 'number') { + start = 0; + } + + if (start + search.length > this.length) { + return false; + } else { + return this.indexOf(search, start) !== -1; + } + }; + } + + if (!String.prototype.codePointAt) { + String.prototype.codePointAt = function (position) { + if (this == null) { + throw TypeError(); + } + + var string = String(this); + var size = string.length; + var index = position ? Number(position) : 0; + + if (Number.isNaN(index)) { + index = 0; + } + + if (index < 0 || index >= size) { + return undefined; + } + + var first = string.charCodeAt(index); + var second; + + if (first >= 0xd800 && first <= 0xdbff && size > index + 1) { + second = string.charCodeAt(index + 1); + + if (second >= 0xdc00 && second <= 0xdfff) { + return (first - 0xd800) * 0x400 + second - 0xdc00 + 0x10000; + } + } + + return first; + }; + } +})(this); +(function (global) { + function findIndex(predicate, context) { + if (this == null) { + throw new TypeError('Array.prototype.findIndex called on null or undefined'); + } + + if (typeof predicate !== 'function') { + throw new TypeError('predicate must be a function'); + } + + var list = Object(this); + var length = list.length >>> 0; + + for (var i = 0; i < length; i++) { + if (predicate.call(context, list[i], i, list)) { + return i; + } + } + + return -1; + } + + if (!Array.prototype.findIndex) { + Object.defineProperty(Array.prototype, 'findIndex', { + enumerable: false, + writable: true, + configurable: true, + value: findIndex + }); + } + + if (!Array.prototype.find) { + Object.defineProperty(Array.prototype, 'find', { + enumerable: false, + writable: true, + configurable: true, + value: function value(predicate, context) { + if (this == null) { + throw new TypeError('Array.prototype.find called on null or undefined'); + } + + var index = findIndex.call(this, predicate, context); + return index === -1 ? undefined : this[index]; + } + }); + } + + if (!Array.prototype.includes) { + Object.defineProperty(Array.prototype, 'includes', { + enumerable: false, + writable: true, + configurable: true, + value: function value(searchElement) { + var O = Object(this); + var len = parseInt(O.length) || 0; + + if (len === 0) { + return false; + } + + var n = parseInt(arguments[1]) || 0; + var k; + + if (n >= 0) { + k = n; + } else { + k = len + n; + + if (k < 0) { + k = 0; + } + } + + var currentElement; + + while (k < len) { + currentElement = O[k]; + + if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) { + return true; + } + + k++; + } + + return false; + } + }); + } +})(this); +(function (global) { + if (!Array.from) { + Array.from = function (arrayLike) { + if (arrayLike == null) { + throw new TypeError('Object is null or undefined'); + } + + var mapFn = arguments[1]; + var thisArg = arguments[2]; + var C = this; + var items = Object(arrayLike); + var symbolIterator = typeof Symbol === 'function' ? typeof Symbol === "function" ? Symbol.iterator : "@@iterator" : '@@iterator'; + var mapping = typeof mapFn === 'function'; + var usingIterator = typeof items[symbolIterator] === 'function'; + var key = 0; + var ret; + var value; + + if (usingIterator) { + ret = typeof C === 'function' ? new C() : []; + var it = items[symbolIterator](); + var next; + + while (!(next = it.next()).done) { + value = next.value; + + if (mapping) { + value = mapFn.call(thisArg, value, key); + } + + ret[key] = value; + key += 1; + } + + ret.length = key; + return ret; + } + + var len = items.length; + + if (isNaN(len) || len < 0) { + len = 0; + } + + ret = typeof C === 'function' ? new C(len) : new Array(len); + + while (key < len) { + value = items[key]; + + if (mapping) { + value = mapFn.call(thisArg, value, key); + } + + ret[key] = value; + key += 1; + } + + ret.length = key; + return ret; + }; + } +})(this); +(function (global) { + (function () { + 'use strict'; + + var hasOwnProperty = Object.prototype.hasOwnProperty; + + if (typeof Object.entries !== 'function') { + Object.entries = function (object) { + if (object == null) { + throw new TypeError('Object.entries called on non-object'); + } + + var entries = []; + + for (var key in object) { + if (hasOwnProperty.call(object, key)) { + entries.push([key, object[key]]); + } + } + + return entries; + }; + } + + if (typeof Object.values !== 'function') { + Object.values = function (object) { + if (object == null) { + throw new TypeError('Object.values called on non-object'); + } + + var values = []; + + for (var key in object) { + if (hasOwnProperty.call(object, key)) { + values.push(object[key]); + } + } + + return values; + }; + } + })(); +})(this); +(function (global) { + 'use strict'; + + var babelHelpers = global.babelHelpers = {}; + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError('Cannot call a class as a function'); + } + } + + babelHelpers.classCallCheck = _classCallCheck; + + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + + if ('value' in descriptor) { + descriptor.writable = true; + } + + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) { + _defineProperties(Constructor.prototype, protoProps); + } + + if (staticProps) { + _defineProperties(Constructor, staticProps); + } + + return Constructor; + } + + babelHelpers.createClass = _createClass; + + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; + } + + babelHelpers.defineProperty = _defineProperty; + + function _extends() { + babelHelpers.extends = _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); + } + + babelHelpers.extends = _extends; + + function _setPrototypeOf(o, p) { + babelHelpers.setPrototypeOf = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); + } + + babelHelpers.setPrototypeOf = _setPrototypeOf; + + function _superPropBase(object, property) { + while (!Object.prototype.hasOwnProperty.call(object, property)) { + object = babelHelpers.getPrototypeOf(object); + + if (object === null) { + break; + } + } + + return object; + } + + babelHelpers.superPropBase = _superPropBase; + + babelHelpers.get = function _get(target, property) { + var receiver = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : target; + var base = babelHelpers.superPropBase(target, property); + + if (!base) { + return; + } + + var desc = Object.getOwnPropertyDescriptor(base, property); + + if (desc.get) { + return desc.get.call(receiver); + } + + return desc.value; + }; + + function _inherits(subClass, superClass) { + if (typeof superClass !== 'function' && superClass !== null) { + throw new TypeError('Super expression must either be null or a function'); + } + + babelHelpers.setPrototypeOf(subClass.prototype, superClass && superClass.prototype); + + if (superClass) { + babelHelpers.setPrototypeOf(subClass, superClass); + } + } + + babelHelpers.inherits = _inherits; + + function _construct(Parent, args, Class) { + babelHelpers.construct = _construct = function _construct(Parent, args, Class) { + var a = [null]; + a.push.apply(a, args); + var Constructor = Parent.bind.apply(Parent, a); + var instance = new Constructor(); + + if (Class) { + babelHelpers.setPrototypeOf(instance, Class.prototype); + } + + return instance; + }; + + return _construct.apply(null, arguments); + } + + babelHelpers.construct = _construct; + + function _getPrototypeOf(o) { + babelHelpers.getPrototypeOf = _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { + return o.__proto__; + }; + + return _getPrototypeOf(o); + } + + babelHelpers.getPrototypeOf = _getPrototypeOf; + + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; + } + + babelHelpers.assertThisInitialized = _assertThisInitialized; + + function _wrapNativeSuper(Class) { + var _cache = typeof Map === 'function' ? new Map() : undefined; + + babelHelpers.wrapNativeSuper = _wrapNativeSuper = function _wrapNativeSuper(Class) { + if (typeof Class !== 'function') { + throw new TypeError('Super expression must either be null or a function'); + } + + if (typeof _cache !== 'undefined') { + if (_cache.has(Class)) { + return _cache.get(Class); + } + + _cache.set(Class, Wrapper); + } + + function Wrapper() { + return _construct(Class, arguments, _getPrototypeOf(this).constructor); + } + + Wrapper.prototype = Object.create(Class.prototype, { + constructor: { + value: Wrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + return babelHelpers.setPrototypeOf(Wrapper, babelHelpers.setPrototypeOf(function Super() { + return babelHelpers.construct(Class, arguments, babelHelpers.getPrototypeOf(this).constructor); + }, Class)); + }; + + return _wrapNativeSuper(Class); + } + + babelHelpers.wrapNativeSuper = _wrapNativeSuper; + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + + babelHelpers.interopRequireDefault = _interopRequireDefault; + + function _interopRequireWildcard(obj) { + if (obj && obj.__esModule) { + return obj; + } else { + var newObj = {}; + + if (obj != null) { + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; + + if (desc.get || desc.set) { + Object.defineProperty(newObj, key, desc); + } else { + newObj[key] = obj[key]; + } + } + } + } + + newObj.default = obj; + return newObj; + } + } + + babelHelpers.interopRequireWildcard = _interopRequireWildcard; + + function _objectWithoutProperties(source, excluded) { + if (source == null) { + return {}; + } + + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + + if (excluded.indexOf(key) >= 0) { + continue; + } + + target[key] = source[key]; + } + + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + + if (excluded.indexOf(key) >= 0) { + continue; + } + + if (!Object.prototype.propertyIsEnumerable.call(source, key)) { + continue; + } + + target[key] = source[key]; + } + } + + return target; + } + + babelHelpers.objectWithoutProperties = _objectWithoutProperties; + + function _possibleConstructorReturn(self, call) { + if (call && (typeof call === 'object' || typeof call === 'function')) { + return call; + } + + return babelHelpers.assertThisInitialized(self); + } + + babelHelpers.possibleConstructorReturn = _possibleConstructorReturn; + + function _arrayWithHoles(arr) { + if (Array.isArray(arr)) { + return arr; + } + } + + babelHelpers.arrayWithHoles = _arrayWithHoles; + + function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { + arr2[i] = arr[i]; + } + + return arr2; + } + } + + babelHelpers.arrayWithoutHoles = _arrayWithoutHoles; + + function _iterableToArrayLimit(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) { + break; + } + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i.return != null) { + _i.return(); + } + } finally { + if (_d) { + throw _e; + } + } + } + + return _arr; + } + + babelHelpers.iterableToArrayLimit = _iterableToArrayLimit; + + function _nonIterableRest() { + throw new TypeError('Invalid attempt to destructure non-iterable instance'); + } + + babelHelpers.nonIterableRest = _nonIterableRest; + + function _nonIterableSpread() { + throw new TypeError('Invalid attempt to spread non-iterable instance'); + } + + babelHelpers.nonIterableSpread = _nonIterableSpread; + + function _slicedToArray(arr, i) { + return babelHelpers.arrayWithHoles(arr) || babelHelpers.iterableToArrayLimit(arr, i) || babelHelpers.nonIterableRest(); + } + + babelHelpers.slicedToArray = _slicedToArray; + + function _taggedTemplateLiteral(strings, raw) { + if (!raw) { + raw = strings.slice(0); + } + + return Object.freeze(Object.defineProperties(strings, { + raw: { + value: Object.freeze(raw) + } + })); + } + + babelHelpers.taggedTemplateLiteral = _taggedTemplateLiteral; + + function _toArray(arr) { + return babelHelpers.arrayWithHoles(arr) || babelHelpers.iterableToArray(arr) || babelHelpers.nonIterableRest(); + } + + babelHelpers.toArray = _toArray; + + function _toConsumableArray(arr) { + return babelHelpers.arrayWithoutHoles(arr) || babelHelpers.iterableToArray(arr) || babelHelpers.nonIterableSpread(); + } + + babelHelpers.toConsumableArray = _toConsumableArray; + + function _taggedTemplateLiteralLoose(strings, raw) { + if (!raw) { + raw = strings.slice(0); + } + + strings.raw = raw; + return strings; + } + + babelHelpers.taggedTemplateLiteralLoose = _taggedTemplateLiteralLoose; + + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + babelHelpers.defineProperty(target, key, source[key]); + }); + } + + return target; + } + + babelHelpers.objectSpread = _objectSpread; + + function _iterableToArray(iter) { + if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === '[object Arguments]') { + return Array.from(iter); + } + } + + babelHelpers.iterableToArray = _iterableToArray; +})(this); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + + var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./node_modules/react-transform-hmr/lib/index.js")); + + var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); + + var _Utils = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./Utils")); + + var _reactNativeVideo = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "react-native-video")); + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/index.ios.js"; + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + var _components = { + VideoPlayer: { + displayName: "VideoPlayer" + } + }; + + var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/index.ios.js", + components: _components, + locals: [module], + imports: [_react.default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _node_modulesReactTransformHmrLibIndexJs2(Component, id); + }; + } + + var VideoPlayer = _wrapComponent("VideoPlayer")(function (_Component) { + function VideoPlayer(props) { + var _this; + + _classCallCheck(this, VideoPlayer); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(VideoPlayer).call(this, props)); + _this.onLayout = _this.onLayout.bind(_assertThisInitialized(_assertThisInitialized(_this))); + return _this; + } + + _createClass(VideoPlayer, [{ + key: "componentWillMount", + value: function componentWillMount() { + this.resizeVideoPlayer(); + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + return _react.default.createElement(_reactNative.View, { + onLayout: this.onLayout, + style: styles.container, + __source: { + fileName: _jsxFileName, + lineNumber: 30 + } + }, _react.default.createElement(_reactNative.Text, { + __source: { + fileName: _jsxFileName, + lineNumber: 33 + } + }, "Here's some pre-Text"), _react.default.createElement(_reactNativeVideo.default, { + ref: function ref(p) { + _this2.videoPlayer = p; + }, + source: _$$_REQUIRE(_dependencyMap[5], './broadchurch.mp4'), + style: { + width: this.state.orientationWidth, + height: this.state.orientationHeight + }, + controls: false, + __source: { + fileName: _jsxFileName, + lineNumber: 34 + } + }), _react.default.createElement(_reactNative.Button, { + title: "full screen", + onPress: this.onPress.bind(this), + __source: { + fileName: _jsxFileName, + lineNumber: 40 + } + })); + } + }, { + key: "onPress", + value: function onPress() { + if (this.videoPlayer != null) this.videoPlayer.presentFullscreenPlayer(); + } + }, { + key: "resizeVideoPlayer", + value: function resizeVideoPlayer() { + var _Dimensions$get = _reactNative.Dimensions.get('window'), + width = _Dimensions$get.width, + height = _Dimensions$get.height; + + if (_Utils.default.isPortrait()) { + this.setState({ + orientationWidth: width * 0.8, + orientationHeight: width * 0.8 * 0.56 + }); + } else { + this.setState({ + orientationHeight: height * 0.8, + orientationWidth: height * 0.8 * 1.77 + }); + } + } + }, { + key: "onLayout", + value: function onLayout(e) { + console.log('on layout called'); + this.resizeVideoPlayer(); + } + }]); + + _inherits(VideoPlayer, _Component); + + return VideoPlayer; + }(_react.Component)); + + var _default2 = VideoPlayer; + exports.default = _default2; + + var styles = _reactNative.StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: 'white' + } + }); + + _reactNative.AppRegistry.registerComponent('VideoPlayer', function () { + return VideoPlayer; + }); +},0,[1,11,165,507,508,513],"index.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + if (process.env.NODE_ENV === 'production') { + module.exports = _$$_REQUIRE(_dependencyMap[0], './cjs/react.production.min.js'); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], './cjs/react.development.js'); + } +},1,[2,7],"node_modules/react/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + /** @license React v16.4.1 + * react.production.min.js + * + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; + + var k = _$$_REQUIRE(_dependencyMap[0], "object-assign"), + n = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"), + p = _$$_REQUIRE(_dependencyMap[2], "fbjs/lib/emptyObject"), + q = _$$_REQUIRE(_dependencyMap[3], "fbjs/lib/emptyFunction"), + r = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.for : "@@for"), + t = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 60103, + u = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 60106, + v = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 60107, + w = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 60108, + x = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 60114, + y = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 60109, + z = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 60110, + A = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 60111, + B = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 60112; + + r && (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout"); + var C = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); + + function D(a) { + for (var b = arguments.length - 1, e = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 0; c < b; c++) { + e += "&args[]=" + encodeURIComponent(arguments[c + 1]); + } + + n(!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. ", e); + } + + var E = { + isMounted: function isMounted() { + return !1; + }, + enqueueForceUpdate: function enqueueForceUpdate() {}, + enqueueReplaceState: function enqueueReplaceState() {}, + enqueueSetState: function enqueueSetState() {} + }; + + function F(a, b, e) { + this.props = a; + this.context = b; + this.refs = p; + this.updater = e || E; + } + + F.prototype.isReactComponent = {}; + + F.prototype.setState = function (a, b) { + "object" !== typeof a && "function" !== typeof a && null != a ? D("85") : void 0; + this.updater.enqueueSetState(this, a, b, "setState"); + }; + + F.prototype.forceUpdate = function (a) { + this.updater.enqueueForceUpdate(this, a, "forceUpdate"); + }; + + function G() {} + + G.prototype = F.prototype; + + function H(a, b, e) { + this.props = a; + this.context = b; + this.refs = p; + this.updater = e || E; + } + + var I = H.prototype = new G(); + I.constructor = H; + k(I, F.prototype); + I.isPureReactComponent = !0; + var J = { + current: null + }, + K = Object.prototype.hasOwnProperty, + L = { + key: !0, + ref: !0, + __self: !0, + __source: !0 + }; + + function M(a, b, e) { + var c = void 0, + d = {}, + 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) && (d[c] = b[c]); + } + var f = arguments.length - 2; + if (1 === f) d.children = e;else if (1 < f) { + for (var l = Array(f), m = 0; m < f; m++) { + l[m] = arguments[m + 2]; + } + + d.children = l; + } + if (a && a.defaultProps) for (c in f = a.defaultProps, f) { + void 0 === d[c] && (d[c] = f[c]); + } + return { + $$typeof: t, + type: a, + key: g, + ref: h, + props: d, + _owner: J.current + }; + } + + function N(a) { + return "object" === typeof a && null !== a && a.$$typeof === t; + } + + function escape(a) { + var b = { + "=": "=0", + ":": "=2" + }; + return "$" + ("" + a).replace(/[=:]/g, function (a) { + return b[a]; + }); + } + + var O = /\/+/g, + P = []; + + function Q(a, b, e, c) { + if (P.length) { + var d = P.pop(); + d.result = a; + d.keyPrefix = b; + d.func = e; + d.context = c; + d.count = 0; + return d; + } + + return { + result: a, + keyPrefix: b, + func: e, + context: c, + count: 0 + }; + } + + function R(a) { + a.result = null; + a.keyPrefix = null; + a.func = null; + a.context = null; + a.count = 0; + 10 > P.length && P.push(a); + } + + function S(a, b, e, c) { + var d = typeof a; + if ("undefined" === d || "boolean" === d) a = null; + var g = !1; + if (null === a) g = !0;else switch (d) { + case "string": + case "number": + g = !0; + break; + + case "object": + switch (a.$$typeof) { + case t: + case u: + g = !0; + } + + } + if (g) return e(c, a, "" === b ? "." + T(a, 0) : b), 1; + g = 0; + b = "" === b ? "." : b + ":"; + if (Array.isArray(a)) for (var h = 0; h < a.length; h++) { + d = a[h]; + var f = b + T(d, h); + g += S(d, f, e, c); + } else if (null === a || "undefined" === typeof a ? f = null : (f = C && a[C] || a["@@iterator"], f = "function" === typeof f ? f : null), "function" === typeof f) for (a = f.call(a), h = 0; !(d = a.next()).done;) { + d = d.value, f = b + T(d, h++), g += S(d, f, e, c); + } else "object" === d && (e = "" + a, D("31", "[object Object]" === e ? "object with keys {" + Object.keys(a).join(", ") + "}" : e, "")); + return g; + } + + function T(a, b) { + return "object" === typeof a && null !== a && null != a.key ? escape(a.key) : b.toString(36); + } + + function U(a, b) { + a.func.call(a.context, b, a.count++); + } + + function V(a, b, e) { + var c = a.result, + d = a.keyPrefix; + a = a.func.call(a.context, b, a.count++); + Array.isArray(a) ? W(a, c, e, q.thatReturnsArgument) : null != a && (N(a) && (b = d + (!a.key || b && b.key === a.key ? "" : ("" + a.key).replace(O, "$&/") + "/") + e, a = { + $$typeof: t, + type: a.type, + key: b, + ref: a.ref, + props: a.props, + _owner: a._owner + }), c.push(a)); + } + + function W(a, b, e, c, d) { + var g = ""; + null != e && (g = ("" + e).replace(O, "$&/") + "/"); + b = Q(b, g, c, d); + null == a || S(a, "", V, b); + R(b); + } + + var X = { + Children: { + map: function map(a, b, e) { + if (null == a) return a; + var c = []; + W(a, c, null, b, e); + return c; + }, + forEach: function forEach(a, b, e) { + if (null == a) return a; + b = Q(null, null, b, e); + null == a || S(a, "", U, b); + R(b); + }, + count: function count(a) { + return null == a ? 0 : S(a, "", q.thatReturnsNull, null); + }, + toArray: function toArray(a) { + var b = []; + W(a, b, null, q.thatReturnsArgument); + return b; + }, + only: function only(a) { + N(a) ? void 0 : D("143"); + return a; + } + }, + createRef: function createRef() { + return { + current: null + }; + }, + Component: F, + PureComponent: H, + createContext: function createContext(a, b) { + void 0 === b && (b = null); + a = { + $$typeof: z, + _calculateChangedBits: b, + _defaultValue: a, + _currentValue: a, + _currentValue2: a, + _changedBits: 0, + _changedBits2: 0, + Provider: null, + Consumer: null + }; + a.Provider = { + $$typeof: y, + _context: a + }; + return a.Consumer = a; + }, + forwardRef: function forwardRef(a) { + return { + $$typeof: B, + render: a + }; + }, + Fragment: v, + StrictMode: w, + unstable_AsyncMode: A, + unstable_Profiler: x, + createElement: M, + cloneElement: function cloneElement(a, b, e) { + null === a || void 0 === a ? D("267", a) : void 0; + var c = void 0, + d = k({}, a.props), + g = a.key, + h = a.ref, + f = a._owner; + + if (null != b) { + 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) && (d[c] = void 0 === b[c] && void 0 !== l ? l[c] : b[c]); + } + } + + c = arguments.length - 2; + if (1 === c) d.children = e;else if (1 < c) { + l = Array(c); + + for (var m = 0; m < c; m++) { + l[m] = arguments[m + 2]; + } + + d.children = l; + } + return { + $$typeof: t, + type: a.type, + key: g, + ref: h, + props: d, + _owner: f + }; + }, + createFactory: function createFactory(a) { + var b = M.bind(null, a); + b.type = a; + return b; + }, + isValidElement: N, + version: "16.4.1", + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + ReactCurrentOwner: J, + assign: k + } + }, + Y = { + default: X + }, + Z = Y && X || Y; + module.exports = Z.default ? Z.default : Z; +},2,[3,4,5,6],"node_modules/react/cjs/react.production.min.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + /* + object-assign + (c) Sindre Sorhus + @license MIT + */ + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; + + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + + return Object(val); + } + + function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + var test1 = new String('abc'); + test1[5] = 'de'; + + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + var test2 = {}; + + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + + if (order2.join('') !== '0123456789') { + return false; + } + + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + + if (Object.keys(_extends({}, test3)).join('') !== 'abcdefghijklmnopqrst') { + return false; + } + + return true; + } catch (err) { + return false; + } + } + + module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; + }; +},3,[],"node_modules/object-assign/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var validateFormat = function validateFormat(format) {}; + + if (process.env.NODE_ENV !== 'production') { + validateFormat = function validateFormat(format) { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + }; + } + + function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format); + + if (!condition) { + var error; + + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; + throw error; + } + } + + module.exports = invariant; +},4,[],"node_modules/fbjs/lib/invariant.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var emptyObject = {}; + + if (process.env.NODE_ENV !== 'production') { + Object.freeze(emptyObject); + } + + module.exports = emptyObject; +},5,[],"node_modules/fbjs/lib/emptyObject.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + function makeEmptyFunction(arg) { + return function () { + return arg; + }; + } + + var emptyFunction = function emptyFunction() {}; + + emptyFunction.thatReturns = makeEmptyFunction; + emptyFunction.thatReturnsFalse = makeEmptyFunction(false); + emptyFunction.thatReturnsTrue = makeEmptyFunction(true); + emptyFunction.thatReturnsNull = makeEmptyFunction(null); + + emptyFunction.thatReturnsThis = function () { + return this; + }; + + emptyFunction.thatReturnsArgument = function (arg) { + return arg; + }; + + module.exports = emptyFunction; +},6,[],"node_modules/fbjs/lib/emptyFunction.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + /** @license React v16.4.1 + * react.development.js + * + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; + + if (process.env.NODE_ENV !== "production") { + (function () { + 'use strict'; + + var _assign = _$$_REQUIRE(_dependencyMap[0], 'object-assign'); + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var emptyObject = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/emptyObject'); + + var warning = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/warning'); + + var emptyFunction = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/emptyFunction'); + + var checkPropTypes = _$$_REQUIRE(_dependencyMap[5], 'prop-types/checkPropTypes'); + + var ReactVersion = '16.4.1'; + var hasSymbol = typeof Symbol === 'function' && (typeof Symbol === "function" ? Symbol.for : "@@for"); + var REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.element') : 0xeac7; + var REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.portal') : 0xeaca; + var REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.fragment') : 0xeacb; + var REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.strict_mode') : 0xeacc; + var REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.profiler') : 0xead2; + var REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.provider') : 0xeacd; + var REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.context') : 0xeace; + var REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.async_mode') : 0xeacf; + var REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.forward_ref') : 0xead0; + var REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.timeout') : 0xead1; + var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); + var FAUX_ITERATOR_SYMBOL = '@@iterator'; + + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable === 'undefined') { + return null; + } + + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + + if (typeof maybeIterator === 'function') { + return maybeIterator; + } + + return null; + } + + var enableSuspense = false; + + var lowPriorityWarning = function lowPriorityWarning() {}; + + { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + + if (typeof console !== 'undefined') { + console.warn(message); + } + + try { + throw new Error(message); + } catch (x) {} + }; + + lowPriorityWarning = function lowPriorityWarning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } + + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(undefined, [format].concat(args)); + } + }; + } + var lowPriorityWarning$1 = lowPriorityWarning; + var didWarnStateUpdateForUnmountedComponent = {}; + + function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass'; + var warningKey = componentName + '.' + callerName; + + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; + } + + warning(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName); + didWarnStateUpdateForUnmountedComponent[warningKey] = true; + } + } + + var ReactNoopUpdateQueue = { + isMounted: function isMounted(publicInstance) { + return false; + }, + enqueueForceUpdate: function enqueueForceUpdate(publicInstance, callback, callerName) { + warnNoop(publicInstance, 'forceUpdate'); + }, + enqueueReplaceState: function enqueueReplaceState(publicInstance, completeState, callback, callerName) { + warnNoop(publicInstance, 'replaceState'); + }, + enqueueSetState: function enqueueSetState(publicInstance, partialState, callback, callerName) { + warnNoop(publicInstance, 'setState'); + } + }; + + function Component(props, context, updater) { + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + + Component.prototype.isReactComponent = {}; + + Component.prototype.setState = function (partialState, callback) { + !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0; + this.updater.enqueueSetState(this, partialState, callback, 'setState'); + }; + + Component.prototype.forceUpdate = function (callback) { + this.updater.enqueueForceUpdate(this, callback, 'forceUpdate'); + }; + + { + var deprecatedAPIs = { + isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'], + replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).'] + }; + + var defineDeprecationWarning = function defineDeprecationWarning(methodName, info) { + Object.defineProperty(Component.prototype, methodName, { + get: function get() { + lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); + return undefined; + } + }); + }; + + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } + } + } + + function ComponentDummy() {} + + ComponentDummy.prototype = Component.prototype; + + function PureComponent(props, context, updater) { + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + + var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); + pureComponentPrototype.constructor = PureComponent; + + _assign(pureComponentPrototype, Component.prototype); + + pureComponentPrototype.isPureReactComponent = true; + + function createRef() { + var refObject = { + current: null + }; + { + Object.seal(refObject); + } + return refObject; + } + + var ReactCurrentOwner = { + current: null + }; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true + }; + var specialPropKeyWarningShown = void 0; + var specialPropRefWarningShown = void 0; + + function hasValidRef(config) { + { + if (hasOwnProperty.call(config, 'ref')) { + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; + + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.ref !== undefined; + } + + function hasValidKey(config) { + { + if (hasOwnProperty.call(config, 'key')) { + var getter = Object.getOwnPropertyDescriptor(config, 'key').get; + + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.key !== undefined; + } + + function defineKeyPropWarningGetter(props, displayName) { + var warnAboutAccessingKey = function warnAboutAccessingKey() { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } + }; + + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, 'key', { + get: warnAboutAccessingKey, + configurable: true + }); + } + + function defineRefPropWarningGetter(props, displayName) { + var warnAboutAccessingRef = function warnAboutAccessingRef() { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } + }; + + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, 'ref', { + get: warnAboutAccessingRef, + configurable: true + }); + } + + var ReactElement = function ReactElement(type, key, ref, self, source, owner, props) { + var element = { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: ref, + props: props, + _owner: owner + }; + { + element._store = {}; + Object.defineProperty(element._store, 'validated', { + configurable: false, + enumerable: false, + writable: true, + value: false + }); + Object.defineProperty(element, '_self', { + configurable: false, + enumerable: false, + writable: false, + value: self + }); + Object.defineProperty(element, '_source', { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } + } + return element; + }; + + function createElement(type, config, children) { + var propName = void 0; + var props = {}; + var key = null; + var ref = null; + var self = null; + var source = null; + + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + } + + if (hasValidKey(config)) { + key = '' + config.key; + } + + self = config.__self === undefined ? null : config.__self; + source = config.__source === undefined ? null : config.__source; + + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props[propName] = config[propName]; + } + } + } + + var childrenLength = arguments.length - 2; + + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + + { + if (Object.freeze) { + Object.freeze(childArray); + } + } + props.children = childArray; + } + + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + + for (propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + } + + { + if (key || ref) { + if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) { + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; + + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + } + } + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); + } + + function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); + return newElement; + } + + function cloneElement(element, config, children) { + !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0; + var propName = void 0; + + var props = _assign({}, element.props); + + var key = element.key; + var ref = element.ref; + var self = element._self; + var source = element._source; + var owner = element._owner; + + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + owner = ReactCurrentOwner.current; + } + + if (hasValidKey(config)) { + key = '' + config.key; + } + + var defaultProps = void 0; + + if (element.type && element.type.defaultProps) { + defaultProps = element.type.defaultProps; + } + + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (config[propName] === undefined && defaultProps !== undefined) { + props[propName] = defaultProps[propName]; + } else { + props[propName] = config[propName]; + } + } + } + } + + var childrenLength = arguments.length - 2; + + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + + props.children = childArray; + } + + return ReactElement(element.type, key, ref, self, source, owner, props); + } + + function isValidElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + + var ReactDebugCurrentFrame = {}; + { + ReactDebugCurrentFrame.getCurrentStack = null; + + ReactDebugCurrentFrame.getStackAddendum = function () { + var impl = ReactDebugCurrentFrame.getCurrentStack; + + if (impl) { + return impl(); + } + + return null; + }; + } + var SEPARATOR = '.'; + var SUBSEPARATOR = ':'; + + function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + '=': '=0', + ':': '=2' + }; + var escapedString = ('' + key).replace(escapeRegex, function (match) { + return escaperLookup[match]; + }); + return '$' + escapedString; + } + + var didWarnAboutMaps = false; + var userProvidedKeyEscapeRegex = /\/+/g; + + function escapeUserProvidedKey(text) { + return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/'); + } + + var POOL_SIZE = 10; + var traverseContextPool = []; + + function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) { + if (traverseContextPool.length) { + var traverseContext = traverseContextPool.pop(); + traverseContext.result = mapResult; + traverseContext.keyPrefix = keyPrefix; + traverseContext.func = mapFunction; + traverseContext.context = mapContext; + traverseContext.count = 0; + return traverseContext; + } else { + return { + result: mapResult, + keyPrefix: keyPrefix, + func: mapFunction, + context: mapContext, + count: 0 + }; + } + } + + function releaseTraverseContext(traverseContext) { + traverseContext.result = null; + traverseContext.keyPrefix = null; + traverseContext.func = null; + traverseContext.context = null; + traverseContext.count = 0; + + if (traverseContextPool.length < POOL_SIZE) { + traverseContextPool.push(traverseContext); + } + } + + function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { + var type = typeof children; + + if (type === 'undefined' || type === 'boolean') { + children = null; + } + + var invokeCallback = false; + + if (children === null) { + invokeCallback = true; + } else { + switch (type) { + case 'string': + case 'number': + invokeCallback = true; + break; + + case 'object': + switch (children.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } + + } + } + + if (invokeCallback) { + callback(traverseContext, children, nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); + return 1; + } + + var child = void 0; + var nextName = void 0; + var subtreeCount = 0; + var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; + + if (Array.isArray(children)) { + for (var i = 0; i < children.length; i++) { + child = children[i]; + nextName = nextNamePrefix + getComponentKey(child, i); + subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); + } + } else { + var iteratorFn = getIteratorFn(children); + + if (typeof iteratorFn === 'function') { + { + if (iteratorFn === children.entries) { + !didWarnAboutMaps ? warning(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', ReactDebugCurrentFrame.getStackAddendum()) : void 0; + didWarnAboutMaps = true; + } + } + var iterator = iteratorFn.call(children); + var step = void 0; + var ii = 0; + + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getComponentKey(child, ii++); + subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); + } + } else if (type === 'object') { + var addendum = ''; + { + addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum(); + } + var childrenString = '' + children; + invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum); + } + } + + return subtreeCount; + } + + function traverseAllChildren(children, callback, traverseContext) { + if (children == null) { + return 0; + } + + return traverseAllChildrenImpl(children, '', callback, traverseContext); + } + + function getComponentKey(component, index) { + if (typeof component === 'object' && component !== null && component.key != null) { + return escape(component.key); + } + + return index.toString(36); + } + + function forEachSingleChild(bookKeeping, child, name) { + var func = bookKeeping.func, + context = bookKeeping.context; + func.call(context, child, bookKeeping.count++); + } + + function forEachChildren(children, forEachFunc, forEachContext) { + if (children == null) { + return children; + } + + var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext); + traverseAllChildren(children, forEachSingleChild, traverseContext); + releaseTraverseContext(traverseContext); + } + + function mapSingleChildIntoContext(bookKeeping, child, childKey) { + var result = bookKeeping.result, + keyPrefix = bookKeeping.keyPrefix, + func = bookKeeping.func, + context = bookKeeping.context; + var mappedChild = func.call(context, child, bookKeeping.count++); + + if (Array.isArray(mappedChild)) { + mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + mappedChild = cloneAndReplaceKey(mappedChild, keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey); + } + + result.push(mappedChild); + } + } + + function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { + var escapedPrefix = ''; + + if (prefix != null) { + escapedPrefix = escapeUserProvidedKey(prefix) + '/'; + } + + var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context); + traverseAllChildren(children, mapSingleChildIntoContext, traverseContext); + releaseTraverseContext(traverseContext); + } + + function mapChildren(children, func, context) { + if (children == null) { + return children; + } + + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, func, context); + return result; + } + + function countChildren(children) { + return traverseAllChildren(children, emptyFunction.thatReturnsNull, null); + } + + function toArray(children) { + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument); + return result; + } + + function onlyChild(children) { + !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0; + return children; + } + + function createContext(defaultValue, calculateChangedBits) { + if (calculateChangedBits === undefined) { + calculateChangedBits = null; + } else { + { + !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warning(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0; + } + } + + var context = { + $$typeof: REACT_CONTEXT_TYPE, + _calculateChangedBits: calculateChangedBits, + _defaultValue: defaultValue, + _currentValue: defaultValue, + _currentValue2: defaultValue, + _changedBits: 0, + _changedBits2: 0, + Provider: null, + Consumer: null + }; + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + context.Consumer = context; + { + context._currentRenderer = null; + context._currentRenderer2 = null; + } + return context; + } + + function forwardRef(render) { + { + !(typeof render === 'function') ? warning(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render) : void 0; + + if (render != null) { + !(render.defaultProps == null && render.propTypes == null) ? warning(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0; + } + } + return { + $$typeof: REACT_FORWARD_REF_TYPE, + render: render + }; + } + + var describeComponentFrame = function describeComponentFrame(name, source, ownerName) { + return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : ''); + }; + + function isValidElementType(type) { + return typeof type === 'string' || typeof type === 'function' || type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE); + } + + function getComponentName(fiber) { + var type = fiber.type; + + if (typeof type === 'function') { + return type.displayName || type.name; + } + + if (typeof type === 'string') { + return type; + } + + switch (type) { + case REACT_ASYNC_MODE_TYPE: + return 'AsyncMode'; + + case REACT_CONTEXT_TYPE: + return 'Context.Consumer'; + + case REACT_FRAGMENT_TYPE: + return 'ReactFragment'; + + case REACT_PORTAL_TYPE: + return 'ReactPortal'; + + case REACT_PROFILER_TYPE: + return 'Profiler(' + fiber.pendingProps.id + ')'; + + case REACT_PROVIDER_TYPE: + return 'Context.Provider'; + + case REACT_STRICT_MODE_TYPE: + return 'StrictMode'; + + case REACT_TIMEOUT_TYPE: + return 'Timeout'; + } + + if (typeof type === 'object' && type !== null) { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + var functionName = type.render.displayName || type.render.name || ''; + return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef'; + } + } + + return null; + } + + var currentlyValidatingElement = void 0; + var propTypesMisspellWarningShown = void 0; + + var getDisplayName = function getDisplayName() {}; + + var getStackAddendum = function getStackAddendum() {}; + + { + currentlyValidatingElement = null; + propTypesMisspellWarningShown = false; + + getDisplayName = function getDisplayName(element) { + if (element == null) { + return '#empty'; + } else if (typeof element === 'string' || typeof element === 'number') { + return '#text'; + } else if (typeof element.type === 'string') { + return element.type; + } + + var type = element.type; + + if (type === REACT_FRAGMENT_TYPE) { + return 'React.Fragment'; + } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) { + var functionName = type.render.displayName || type.render.name || ''; + return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef'; + } else { + return type.displayName || type.name || 'Unknown'; + } + }; + + getStackAddendum = function getStackAddendum() { + var stack = ''; + + if (currentlyValidatingElement) { + var name = getDisplayName(currentlyValidatingElement); + var owner = currentlyValidatingElement._owner; + stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner)); + } + + stack += ReactDebugCurrentFrame.getStackAddendum() || ''; + return stack; + }; + } + + function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentName(ReactCurrentOwner.current); + + if (name) { + return '\n\nCheck the render method of `' + name + '`.'; + } + } + + return ''; + } + + function getSourceInfoErrorAddendum(elementProps) { + if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) { + var source = elementProps.__source; + var fileName = source.fileName.replace(/^.*[\\\/]/, ''); + var lineNumber = source.lineNumber; + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.'; + } + + return ''; + } + + var ownerHasKeyUseWarning = {}; + + function getCurrentComponentErrorInfo(parentType) { + var info = getDeclarationErrorAddendum(); + + if (!info) { + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; + + if (parentName) { + info = '\n\nCheck the top-level render call using <' + parentName + '>.'; + } + } + + return info; + } + + function validateExplicitKey(element, parentType) { + if (!element._store || element._store.validated || element.key != null) { + return; + } + + element._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + var childOwner = ''; + + if (element && element._owner && element._owner !== ReactCurrentOwner.current) { + childOwner = ' It was passed a child from ' + getComponentName(element._owner) + '.'; + } + + currentlyValidatingElement = element; + { + warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum()); + } + currentlyValidatingElement = null; + } + + function validateChildKeys(node, parentType) { + if (typeof node !== 'object') { + return; + } + + if (Array.isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + + if (typeof iteratorFn === 'function') { + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step = void 0; + + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } + } + + function validatePropTypes(element) { + var type = element.type; + var name = void 0, + propTypes = void 0; + + if (typeof type === 'function') { + name = type.displayName || type.name; + propTypes = type.propTypes; + } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) { + var functionName = type.render.displayName || type.render.name || ''; + name = functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef'; + propTypes = type.propTypes; + } else { + return; + } + + if (propTypes) { + currentlyValidatingElement = element; + checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum); + currentlyValidatingElement = null; + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown'); + } + + if (typeof type.getDefaultProps === 'function') { + !type.getDefaultProps.isReactClassApproved ? warning(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0; + } + } + + function validateFragmentProps(fragment) { + currentlyValidatingElement = fragment; + var keys = Object.keys(fragment.props); + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + + if (key !== 'children' && key !== 'key') { + warning(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum()); + break; + } + } + + if (fragment.ref !== null) { + warning(false, 'Invalid attribute `ref` supplied to `React.Fragment`.%s', getStackAddendum()); + } + + currentlyValidatingElement = null; + } + + function createElementWithValidation(type, props, children) { + var validType = isValidElementType(type); + + if (!validType) { + var info = ''; + + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; + } + + var sourceInfo = getSourceInfoErrorAddendum(props); + + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + + info += getStackAddendum() || ''; + var typeString = void 0; + + if (type === null) { + typeString = 'null'; + } else if (Array.isArray(type)) { + typeString = 'array'; + } else { + typeString = typeof type; + } + + warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); + } + + var element = createElement.apply(this, arguments); + + if (element == null) { + return element; + } + + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type); + } + } + + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + + return element; + } + + function createFactoryWithValidation(type) { + var validatedFactory = createElementWithValidation.bind(null, type); + validatedFactory.type = type; + { + Object.defineProperty(validatedFactory, 'type', { + enumerable: false, + get: function get() { + lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); + Object.defineProperty(this, 'type', { + value: type + }); + return type; + } + }); + } + return validatedFactory; + } + + function cloneElementWithValidation(element, props, children) { + var newElement = cloneElement.apply(this, arguments); + + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + + validatePropTypes(newElement); + return newElement; + } + + var React = { + Children: { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray: toArray, + only: onlyChild + }, + createRef: createRef, + Component: Component, + PureComponent: PureComponent, + createContext: createContext, + forwardRef: forwardRef, + Fragment: REACT_FRAGMENT_TYPE, + StrictMode: REACT_STRICT_MODE_TYPE, + unstable_AsyncMode: REACT_ASYNC_MODE_TYPE, + unstable_Profiler: REACT_PROFILER_TYPE, + createElement: createElementWithValidation, + cloneElement: cloneElementWithValidation, + createFactory: createFactoryWithValidation, + isValidElement: isValidElement, + version: ReactVersion, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + ReactCurrentOwner: ReactCurrentOwner, + assign: _assign + } + }; + + if (enableSuspense) { + React.Timeout = REACT_TIMEOUT_TYPE; + } + + { + _assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, { + ReactDebugCurrentFrame: ReactDebugCurrentFrame, + ReactComponentTreeHook: {} + }); + } + var React$2 = Object.freeze({ + default: React + }); + var React$3 = React$2 && React || React$2; + var react = React$3.default ? React$3.default : React$3; + module.exports = react; + })(); + } +},7,[3,4,5,8,6,9],"node_modules/react/cjs/react.development.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var emptyFunction = _$$_REQUIRE(_dependencyMap[0], './emptyFunction'); + + var warning = emptyFunction; + + if (process.env.NODE_ENV !== 'production') { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + + if (typeof console !== 'undefined') { + console.error(message); + } + + try { + throw new Error(message); + } catch (x) {} + }; + + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } + + if (format.indexOf('Failed Composite propType: ') === 0) { + return; + } + + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(undefined, [format].concat(args)); + } + }; + } + + module.exports = warning; +},8,[6],"node_modules/fbjs/lib/warning.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var printWarning = function printWarning() {}; + + if (process.env.NODE_ENV !== 'production') { + var ReactPropTypesSecret = _$$_REQUIRE(_dependencyMap[0], './lib/ReactPropTypesSecret'); + + var loggedTypeFailures = {}; + + printWarning = function printWarning(text) { + var message = 'Warning: ' + text; + + if (typeof console !== 'undefined') { + console.error(message); + } + + try { + throw new Error(message); + } catch (x) {} + }; + } + + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (typeSpecs.hasOwnProperty(typeSpecName)) { + var error; + + try { + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'); + err.name = 'Invariant Violation'; + throw err; + } + + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + + if (error && !(error instanceof Error)) { + printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).'); + } + + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + loggedTypeFailures[error.message] = true; + var stack = getStack ? getStack() : ''; + printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')); + } + } + } + } + } + + module.exports = checkPropTypes; +},9,[10],"node_modules/prop-types/checkPropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + module.exports = ReactPropTypesSecret; +},10,[],"node_modules/prop-types/lib/ReactPropTypesSecret.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + + var _slicedToArray = function () { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i['return']) _i['return'](); + } finally { + if (_d) throw _e; + } + } + + return _arr; + } + + return function (arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError('Invalid attempt to destructure non-iterable instance'); + } + }; + }(); + + exports['default'] = proxyReactComponents; + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + 'default': obj + }; + } + + var _reactProxy = _$$_REQUIRE(_dependencyMap[0], 'react-proxy'); + + var _globalWindow = _$$_REQUIRE(_dependencyMap[1], 'global/window'); + + var _globalWindow2 = _interopRequireDefault(_globalWindow); + + var componentProxies = undefined; + + if (_globalWindow2['default'].__reactComponentProxies) { + componentProxies = _globalWindow2['default'].__reactComponentProxies; + } else { + componentProxies = {}; + Object.defineProperty(_globalWindow2['default'], '__reactComponentProxies', { + configurable: true, + enumerable: false, + writable: false, + value: componentProxies + }); + } + + function proxyReactComponents(_ref) { + var filename = _ref.filename; + var components = _ref.components; + var imports = _ref.imports; + var locals = _ref.locals; + + var _imports = _slicedToArray(imports, 1); + + var React = _imports[0]; + + var _locals = _slicedToArray(locals, 1); + + var hot = _locals[0].hot; + + if (!React.Component) { + throw new Error('imports[0] for react-transform-hmr does not look like React.'); + } + + if (!hot || typeof hot.accept !== 'function') { + throw new Error('locals[0] does not appear to be a `module` object with Hot Module ' + 'replacement API enabled. You should disable react-transform-hmr in ' + 'production by using `env` section in Babel configuration. See the ' + 'example in README: https://github.com/gaearon/react-transform-hmr'); + } + + if (Object.keys(components).some(function (key) { + return !components[key].isInFunction; + })) { + hot.accept(function (err) { + if (err) { + console.warn('[React Transform HMR] There was an error updating ' + filename + ':'); + console.error(err); + } + }); + } + + var forceUpdate = (0, _reactProxy.getForceUpdate)(React); + return function wrapWithProxy(ReactClass, uniqueId) { + var _components$uniqueId = components[uniqueId]; + var _components$uniqueId$isInFunction = _components$uniqueId.isInFunction; + var isInFunction = _components$uniqueId$isInFunction === undefined ? false : _components$uniqueId$isInFunction; + var _components$uniqueId$displayName = _components$uniqueId.displayName; + var displayName = _components$uniqueId$displayName === undefined ? uniqueId : _components$uniqueId$displayName; + + if (isInFunction) { + return ReactClass; + } + + var globalUniqueId = filename + '$' + uniqueId; + + if (componentProxies[globalUniqueId]) { + (function () { + console.info('[React Transform HMR] Patching ' + displayName); + var instances = componentProxies[globalUniqueId].update(ReactClass); + setTimeout(function () { + return instances.forEach(forceUpdate); + }); + })(); + } else { + componentProxies[globalUniqueId] = (0, _reactProxy.createProxy)(ReactClass); + } + + return componentProxies[globalUniqueId].get(); + }; + } + + module.exports = exports['default']; +},11,[12,164],"node_modules/react-transform-hmr/lib/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getForceUpdate = exports.createProxy = undefined; + + var _supportsProtoAssignment = _$$_REQUIRE(_dependencyMap[0], './supportsProtoAssignment'); + + var _supportsProtoAssignment2 = _interopRequireDefault(_supportsProtoAssignment); + + var _createClassProxy = _$$_REQUIRE(_dependencyMap[1], './createClassProxy'); + + var _createClassProxy2 = _interopRequireDefault(_createClassProxy); + + var _reactDeepForceUpdate = _$$_REQUIRE(_dependencyMap[2], 'react-deep-force-update'); + + var _reactDeepForceUpdate2 = _interopRequireDefault(_reactDeepForceUpdate); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + + if (!(0, _supportsProtoAssignment2.default)()) { + console.warn('This JavaScript environment does not support __proto__. ' + 'This means that react-proxy is unable to proxy React components. ' + 'Features that rely on react-proxy, such as react-transform-hmr, ' + 'will not function as expected.'); + } + + exports.createProxy = _createClassProxy2.default; + exports.getForceUpdate = _reactDeepForceUpdate2.default; +},12,[13,14,163],"node_modules/react-proxy/modules/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = supportsProtoAssignment; + var x = {}; + var y = { + supports: true + }; + + try { + x.__proto__ = y; + } catch (err) {} + + function supportsProtoAssignment() { + return x.supports || false; + } + + ; +},13,[],"node_modules/react-proxy/modules/supportsProtoAssignment.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + var _slicedToArray = function () { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"]) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; + } + + return function (arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + }; + }(); + + exports.default = proxyClass; + exports.default = createClassProxy; + + var _find = _$$_REQUIRE(_dependencyMap[0], 'lodash/find'); + + var _find2 = _interopRequireDefault(_find); + + var _createPrototypeProxy = _$$_REQUIRE(_dependencyMap[1], './createPrototypeProxy'); + + var _createPrototypeProxy2 = _interopRequireDefault(_createPrototypeProxy); + + var _bindAutoBindMethods = _$$_REQUIRE(_dependencyMap[2], './bindAutoBindMethods'); + + var _bindAutoBindMethods2 = _interopRequireDefault(_bindAutoBindMethods); + + var _deleteUnknownAutoBindMethods = _$$_REQUIRE(_dependencyMap[3], './deleteUnknownAutoBindMethods'); + + var _deleteUnknownAutoBindMethods2 = _interopRequireDefault(_deleteUnknownAutoBindMethods); + + var _supportsProtoAssignment = _$$_REQUIRE(_dependencyMap[4], './supportsProtoAssignment'); + + var _supportsProtoAssignment2 = _interopRequireDefault(_supportsProtoAssignment); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + + function _toConsumableArray(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { + arr2[i] = arr[i]; + } + + return arr2; + } else { + return Array.from(arr); + } + } + + var RESERVED_STATICS = ['length', 'name', 'arguments', 'caller', 'prototype', 'toString']; + + function isEqualDescriptor(a, b) { + if (!a && !b) { + return true; + } + + if (!a || !b) { + return false; + } + + for (var key in a) { + if (a[key] !== b[key]) { + return false; + } + } + + return true; + } + + var allProxies = []; + + function findProxy(Component) { + var pair = (0, _find2.default)(allProxies, function (_ref) { + var _ref2 = _slicedToArray(_ref, 1); + + var key = _ref2[0]; + return key === Component; + }); + return pair ? pair[1] : null; + } + + function addProxy(Component, proxy) { + allProxies.push([Component, proxy]); + } + + function proxyClass(InitialComponent) { + var existingProxy = findProxy(InitialComponent); + + if (existingProxy) { + return existingProxy; + } + + var prototypeProxy = (0, _createPrototypeProxy2.default)(); + var CurrentComponent = undefined; + var ProxyComponent = undefined; + var staticDescriptors = {}; + + function wasStaticModifiedByUser(key) { + var currentDescriptor = Object.getOwnPropertyDescriptor(ProxyComponent, key); + return !isEqualDescriptor(staticDescriptors[key], currentDescriptor); + } + + function instantiate(factory, context, params) { + var component = factory(); + + try { + return component.apply(context, params); + } catch (err) { + (function () { + var instance = new (Function.prototype.bind.apply(component, [null].concat(_toConsumableArray(params))))(); + Object.keys(instance).forEach(function (key) { + if (RESERVED_STATICS.indexOf(key) > -1) { + return; + } + + context[key] = instance[key]; + }); + })(); + } + } + + try { + ProxyComponent = new Function('factory', 'instantiate', 'return function ' + (InitialComponent.name || 'ProxyComponent') + '() {\n return instantiate(factory, this, arguments);\n }')(function () { + return CurrentComponent; + }, instantiate); + } catch (err) { + ProxyComponent = function ProxyComponent() { + return instantiate(function () { + return CurrentComponent; + }, this, arguments); + }; + } + + ProxyComponent.prototype = prototypeProxy.get(); + + ProxyComponent.toString = function toString() { + return CurrentComponent.toString(); + }; + + function update(NextComponent) { + if (typeof NextComponent !== 'function') { + throw new Error('Expected a constructor.'); + } + + var existingProxy = findProxy(NextComponent); + + if (existingProxy) { + return update(existingProxy.__getCurrent()); + } + + CurrentComponent = NextComponent; + var mountedInstances = prototypeProxy.update(NextComponent.prototype); + ProxyComponent.prototype.constructor = ProxyComponent; + ProxyComponent.__proto__ = NextComponent.__proto__; + Object.getOwnPropertyNames(NextComponent).forEach(function (key) { + if (RESERVED_STATICS.indexOf(key) > -1) { + return; + } + + var staticDescriptor = _extends({}, Object.getOwnPropertyDescriptor(NextComponent, key), { + configurable: true + }); + + if (!wasStaticModifiedByUser(key)) { + Object.defineProperty(ProxyComponent, key, staticDescriptor); + staticDescriptors[key] = staticDescriptor; + } + }); + Object.getOwnPropertyNames(ProxyComponent).forEach(function (key) { + if (RESERVED_STATICS.indexOf(key) > -1) { + return; + } + + if (NextComponent.hasOwnProperty(key)) { + return; + } + + var descriptor = Object.getOwnPropertyDescriptor(ProxyComponent, key); + + if (descriptor && !descriptor.configurable) { + return; + } + + if (!wasStaticModifiedByUser(key)) { + delete ProxyComponent[key]; + delete staticDescriptors[key]; + } + }); + ProxyComponent.displayName = NextComponent.displayName || NextComponent.name; + mountedInstances.forEach(_bindAutoBindMethods2.default); + mountedInstances.forEach(_deleteUnknownAutoBindMethods2.default); + return mountedInstances; + } + + ; + + function get() { + return ProxyComponent; + } + + function getCurrent() { + return CurrentComponent; + } + + update(InitialComponent); + var proxy = { + get: get, + update: update + }; + addProxy(ProxyComponent, proxy); + Object.defineProperty(proxy, '__getCurrent', { + configurable: false, + writable: false, + enumerable: false, + value: getCurrent + }); + return proxy; + } + + function createFallback(Component) { + var CurrentComponent = Component; + return { + get: function get() { + return CurrentComponent; + }, + update: function update(NextComponent) { + CurrentComponent = NextComponent; + } + }; + } + + function createClassProxy(Component) { + return Component.__proto__ && (0, _supportsProtoAssignment2.default)() ? proxyClass(Component) : createFallback(Component); + } +},14,[15,136,161,162,13],"node_modules/react-proxy/modules/createClassProxy.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var createFind = _$$_REQUIRE(_dependencyMap[0], './_createFind'), + findIndex = _$$_REQUIRE(_dependencyMap[1], './findIndex'); + + var find = createFind(findIndex); + module.exports = find; +},15,[16,131],"node_modules/lodash/find.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseIteratee = _$$_REQUIRE(_dependencyMap[0], './_baseIteratee'), + isArrayLike = _$$_REQUIRE(_dependencyMap[1], './isArrayLike'), + keys = _$$_REQUIRE(_dependencyMap[2], './keys'); + + function createFind(findIndexFunc) { + return function (collection, predicate, fromIndex) { + var iterable = Object(collection); + + if (!isArrayLike(collection)) { + var iteratee = baseIteratee(predicate, 3); + collection = keys(collection); + + predicate = function predicate(key) { + return iteratee(iterable[key], key, iterable); + }; + } + + var index = findIndexFunc(collection, predicate, fromIndex); + return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined; + }; + } + + module.exports = createFind; +},16,[17,102,84],"node_modules/lodash/_createFind.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseMatches = _$$_REQUIRE(_dependencyMap[0], './_baseMatches'), + baseMatchesProperty = _$$_REQUIRE(_dependencyMap[1], './_baseMatchesProperty'), + identity = _$$_REQUIRE(_dependencyMap[2], './identity'), + isArray = _$$_REQUIRE(_dependencyMap[3], './isArray'), + property = _$$_REQUIRE(_dependencyMap[4], './property'); + + function baseIteratee(value) { + if (typeof value == 'function') { + return value; + } + + if (value == null) { + return identity; + } + + if (typeof value == 'object') { + return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); + } + + return property(value); + } + + module.exports = baseIteratee; +},17,[18,111,127,80,128],"node_modules/lodash/_baseIteratee.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseIsMatch = _$$_REQUIRE(_dependencyMap[0], './_baseIsMatch'), + getMatchData = _$$_REQUIRE(_dependencyMap[1], './_getMatchData'), + matchesStrictComparable = _$$_REQUIRE(_dependencyMap[2], './_matchesStrictComparable'); + + function baseMatches(source) { + var matchData = getMatchData(source); + + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable(matchData[0][0], matchData[0][1]); + } + + return function (object) { + return object === source || baseIsMatch(object, source, matchData); + }; + } + + module.exports = baseMatches; +},18,[19,108,110],"node_modules/lodash/_baseMatches.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Stack = _$$_REQUIRE(_dependencyMap[0], './_Stack'), + baseIsEqual = _$$_REQUIRE(_dependencyMap[1], './_baseIsEqual'); + + var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + + function baseIsMatch(object, source, matchData, customizer) { + var index = matchData.length, + length = index, + noCustomizer = !customizer; + + if (object == null) { + return !length; + } + + object = Object(object); + + while (index--) { + var data = matchData[index]; + + if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { + return false; + } + } + + while (++index < length) { + data = matchData[index]; + var key = data[0], + objValue = object[key], + srcValue = data[1]; + + if (noCustomizer && data[2]) { + if (objValue === undefined && !(key in object)) { + return false; + } + } else { + var stack = new Stack(); + + if (customizer) { + var result = customizer(objValue, srcValue, key, object, source, stack); + } + + if (!(result === undefined ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) { + return false; + } + } + } + + return true; + } + + module.exports = baseIsMatch; +},19,[20,64],"node_modules/lodash/_baseIsMatch.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var ListCache = _$$_REQUIRE(_dependencyMap[0], './_ListCache'), + stackClear = _$$_REQUIRE(_dependencyMap[1], './_stackClear'), + stackDelete = _$$_REQUIRE(_dependencyMap[2], './_stackDelete'), + stackGet = _$$_REQUIRE(_dependencyMap[3], './_stackGet'), + stackHas = _$$_REQUIRE(_dependencyMap[4], './_stackHas'), + stackSet = _$$_REQUIRE(_dependencyMap[5], './_stackSet'); + + function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; + } + + Stack.prototype.clear = stackClear; + Stack.prototype['delete'] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; + module.exports = Stack; +},20,[21,29,30,31,32,33],"node_modules/lodash/_Stack.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var listCacheClear = _$$_REQUIRE(_dependencyMap[0], './_listCacheClear'), + listCacheDelete = _$$_REQUIRE(_dependencyMap[1], './_listCacheDelete'), + listCacheGet = _$$_REQUIRE(_dependencyMap[2], './_listCacheGet'), + listCacheHas = _$$_REQUIRE(_dependencyMap[3], './_listCacheHas'), + listCacheSet = _$$_REQUIRE(_dependencyMap[4], './_listCacheSet'); + + function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + this.clear(); + + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + module.exports = ListCache; +},21,[22,23,26,27,28],"node_modules/lodash/_ListCache.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function listCacheClear() { + this.__data__ = []; + this.size = 0; + } + + module.exports = listCacheClear; +},22,[],"node_modules/lodash/_listCacheClear.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var assocIndexOf = _$$_REQUIRE(_dependencyMap[0], './_assocIndexOf'); + + var arrayProto = Array.prototype; + var splice = arrayProto.splice; + + function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + + var lastIndex = data.length - 1; + + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + + --this.size; + return true; + } + + module.exports = listCacheDelete; +},23,[24],"node_modules/lodash/_listCacheDelete.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var eq = _$$_REQUIRE(_dependencyMap[0], './eq'); + + function assocIndexOf(array, key) { + var length = array.length; + + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + + return -1; + } + + module.exports = assocIndexOf; +},24,[25],"node_modules/lodash/_assocIndexOf.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function eq(value, other) { + return value === other || value !== value && other !== other; + } + + module.exports = eq; +},25,[],"node_modules/lodash/eq.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var assocIndexOf = _$$_REQUIRE(_dependencyMap[0], './_assocIndexOf'); + + function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + return index < 0 ? undefined : data[index][1]; + } + + module.exports = listCacheGet; +},26,[24],"node_modules/lodash/_listCacheGet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var assocIndexOf = _$$_REQUIRE(_dependencyMap[0], './_assocIndexOf'); + + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + + module.exports = listCacheHas; +},27,[24],"node_modules/lodash/_listCacheHas.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var assocIndexOf = _$$_REQUIRE(_dependencyMap[0], './_assocIndexOf'); + + function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + + return this; + } + + module.exports = listCacheSet; +},28,[24],"node_modules/lodash/_listCacheSet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var ListCache = _$$_REQUIRE(_dependencyMap[0], './_ListCache'); + + function stackClear() { + this.__data__ = new ListCache(); + this.size = 0; + } + + module.exports = stackClear; +},29,[21],"node_modules/lodash/_stackClear.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); + this.size = data.size; + return result; + } + + module.exports = stackDelete; +},30,[],"node_modules/lodash/_stackDelete.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function stackGet(key) { + return this.__data__.get(key); + } + + module.exports = stackGet; +},31,[],"node_modules/lodash/_stackGet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function stackHas(key) { + return this.__data__.has(key); + } + + module.exports = stackHas; +},32,[],"node_modules/lodash/_stackHas.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var ListCache = _$$_REQUIRE(_dependencyMap[0], './_ListCache'), + Map = _$$_REQUIRE(_dependencyMap[1], './_Map'), + MapCache = _$$_REQUIRE(_dependencyMap[2], './_MapCache'); + + var LARGE_ARRAY_SIZE = 200; + + function stackSet(key, value) { + var data = this.__data__; + + if (data instanceof ListCache) { + var pairs = data.__data__; + + if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + + data = this.__data__ = new MapCache(pairs); + } + + data.set(key, value); + this.size = data.size; + return this; + } + + module.exports = stackSet; +},33,[21,34,49],"node_modules/lodash/_stackSet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), + root = _$$_REQUIRE(_dependencyMap[1], './_root'); + + var Map = getNative(root, 'Map'); + module.exports = Map; +},34,[35,40],"node_modules/lodash/_Map.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseIsNative = _$$_REQUIRE(_dependencyMap[0], './_baseIsNative'), + getValue = _$$_REQUIRE(_dependencyMap[1], './_getValue'); + + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; + } + + module.exports = getNative; +},35,[36,48],"node_modules/lodash/_getNative.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isFunction = _$$_REQUIRE(_dependencyMap[0], './isFunction'), + isMasked = _$$_REQUIRE(_dependencyMap[1], './_isMasked'), + isObject = _$$_REQUIRE(_dependencyMap[2], './isObject'), + toSource = _$$_REQUIRE(_dependencyMap[3], './_toSource'); + + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + var reIsHostCtor = /^\[object .+?Constructor\]$/; + var funcProto = Function.prototype, + objectProto = Object.prototype; + var funcToString = funcProto.toString; + var hasOwnProperty = objectProto.hasOwnProperty; + var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'); + + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + + module.exports = baseIsNative; +},36,[37,45,44,47],"node_modules/lodash/_baseIsNative.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), + isObject = _$$_REQUIRE(_dependencyMap[1], './isObject'); + + var asyncTag = '[object AsyncFunction]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + proxyTag = '[object Proxy]'; + + function isFunction(value) { + if (!isObject(value)) { + return false; + } + + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; + } + + module.exports = isFunction; +},37,[38,44],"node_modules/lodash/isFunction.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'), + getRawTag = _$$_REQUIRE(_dependencyMap[1], './_getRawTag'), + objectToString = _$$_REQUIRE(_dependencyMap[2], './_objectToString'); + + var nullTag = '[object Null]', + undefinedTag = '[object Undefined]'; + var symToStringTag = Symbol ? typeof Symbol === "function" ? Symbol.toStringTag : "@@toStringTag" : undefined; + + function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + + return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); + } + + module.exports = baseGetTag; +},38,[39,42,43],"node_modules/lodash/_baseGetTag.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var root = _$$_REQUIRE(_dependencyMap[0], './_root'); + + var Symbol = root.Symbol; + module.exports = Symbol; +},39,[40],"node_modules/lodash/_Symbol.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var freeGlobal = _$$_REQUIRE(_dependencyMap[0], './_freeGlobal'); + + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + var root = freeGlobal || freeSelf || Function('return this')(); + module.exports = root; +},40,[41],"node_modules/lodash/_root.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + module.exports = freeGlobal; +},41,[],"node_modules/lodash/_freeGlobal.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'); + + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + var nativeObjectToString = objectProto.toString; + var symToStringTag = Symbol ? typeof Symbol === "function" ? Symbol.toStringTag : "@@toStringTag" : undefined; + + function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + + return result; + } + + module.exports = getRawTag; +},42,[39],"node_modules/lodash/_getRawTag.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var objectProto = Object.prototype; + var nativeObjectToString = objectProto.toString; + + function objectToString(value) { + return nativeObjectToString.call(value); + } + + module.exports = objectToString; +},43,[],"node_modules/lodash/_objectToString.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); + } + + module.exports = isObject; +},44,[],"node_modules/lodash/isObject.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var coreJsData = _$$_REQUIRE(_dependencyMap[0], './_coreJsData'); + + var maskSrcKey = function () { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? 'Symbol(src)_1.' + uid : ''; + }(); + + function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; + } + + module.exports = isMasked; +},45,[46],"node_modules/lodash/_isMasked.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var root = _$$_REQUIRE(_dependencyMap[0], './_root'); + + var coreJsData = root['__core-js_shared__']; + module.exports = coreJsData; +},46,[40],"node_modules/lodash/_coreJsData.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var funcProto = Function.prototype; + var funcToString = funcProto.toString; + + function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + + try { + return func + ''; + } catch (e) {} + } + + return ''; + } + + module.exports = toSource; +},47,[],"node_modules/lodash/_toSource.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function getValue(object, key) { + return object == null ? undefined : object[key]; + } + + module.exports = getValue; +},48,[],"node_modules/lodash/_getValue.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var mapCacheClear = _$$_REQUIRE(_dependencyMap[0], './_mapCacheClear'), + mapCacheDelete = _$$_REQUIRE(_dependencyMap[1], './_mapCacheDelete'), + mapCacheGet = _$$_REQUIRE(_dependencyMap[2], './_mapCacheGet'), + mapCacheHas = _$$_REQUIRE(_dependencyMap[3], './_mapCacheHas'), + mapCacheSet = _$$_REQUIRE(_dependencyMap[4], './_mapCacheSet'); + + function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + this.clear(); + + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + module.exports = MapCache; +},49,[50,58,61,62,63],"node_modules/lodash/_MapCache.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Hash = _$$_REQUIRE(_dependencyMap[0], './_Hash'), + ListCache = _$$_REQUIRE(_dependencyMap[1], './_ListCache'), + Map = _$$_REQUIRE(_dependencyMap[2], './_Map'); + + function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash(), + 'map': new (Map || ListCache)(), + 'string': new Hash() + }; + } + + module.exports = mapCacheClear; +},50,[51,21,34],"node_modules/lodash/_mapCacheClear.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var hashClear = _$$_REQUIRE(_dependencyMap[0], './_hashClear'), + hashDelete = _$$_REQUIRE(_dependencyMap[1], './_hashDelete'), + hashGet = _$$_REQUIRE(_dependencyMap[2], './_hashGet'), + hashHas = _$$_REQUIRE(_dependencyMap[3], './_hashHas'), + hashSet = _$$_REQUIRE(_dependencyMap[4], './_hashSet'); + + function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + this.clear(); + + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + module.exports = Hash; +},51,[52,54,55,56,57],"node_modules/lodash/_Hash.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var nativeCreate = _$$_REQUIRE(_dependencyMap[0], './_nativeCreate'); + + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; + } + + module.exports = hashClear; +},52,[53],"node_modules/lodash/_hashClear.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'); + + var nativeCreate = getNative(Object, 'create'); + module.exports = nativeCreate; +},53,[35],"node_modules/lodash/_nativeCreate.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; + } + + module.exports = hashDelete; +},54,[],"node_modules/lodash/_hashDelete.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var nativeCreate = _$$_REQUIRE(_dependencyMap[0], './_nativeCreate'); + + var HASH_UNDEFINED = '__lodash_hash_undefined__'; + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + + function hashGet(key) { + var data = this.__data__; + + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + + return hasOwnProperty.call(data, key) ? data[key] : undefined; + } + + module.exports = hashGet; +},55,[53],"node_modules/lodash/_hashGet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var nativeCreate = _$$_REQUIRE(_dependencyMap[0], './_nativeCreate'); + + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); + } + + module.exports = hashHas; +},56,[53],"node_modules/lodash/_hashHas.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var nativeCreate = _$$_REQUIRE(_dependencyMap[0], './_nativeCreate'); + + var HASH_UNDEFINED = '__lodash_hash_undefined__'; + + function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value; + return this; + } + + module.exports = hashSet; +},57,[53],"node_modules/lodash/_hashSet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getMapData = _$$_REQUIRE(_dependencyMap[0], './_getMapData'); + + function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; + } + + module.exports = mapCacheDelete; +},58,[59],"node_modules/lodash/_mapCacheDelete.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isKeyable = _$$_REQUIRE(_dependencyMap[0], './_isKeyable'); + + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; + } + + module.exports = getMapData; +},59,[60],"node_modules/lodash/_getMapData.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function isKeyable(value) { + var type = typeof value; + return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null; + } + + module.exports = isKeyable; +},60,[],"node_modules/lodash/_isKeyable.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getMapData = _$$_REQUIRE(_dependencyMap[0], './_getMapData'); + + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + + module.exports = mapCacheGet; +},61,[59],"node_modules/lodash/_mapCacheGet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getMapData = _$$_REQUIRE(_dependencyMap[0], './_getMapData'); + + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + + module.exports = mapCacheHas; +},62,[59],"node_modules/lodash/_mapCacheHas.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getMapData = _$$_REQUIRE(_dependencyMap[0], './_getMapData'); + + function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; + } + + module.exports = mapCacheSet; +},63,[59],"node_modules/lodash/_mapCacheSet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseIsEqualDeep = _$$_REQUIRE(_dependencyMap[0], './_baseIsEqualDeep'), + isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); + + function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; + } + + if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) { + return value !== value && other !== other; + } + + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); + } + + module.exports = baseIsEqual; +},64,[65,89],"node_modules/lodash/_baseIsEqual.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Stack = _$$_REQUIRE(_dependencyMap[0], './_Stack'), + equalArrays = _$$_REQUIRE(_dependencyMap[1], './_equalArrays'), + equalByTag = _$$_REQUIRE(_dependencyMap[2], './_equalByTag'), + equalObjects = _$$_REQUIRE(_dependencyMap[3], './_equalObjects'), + getTag = _$$_REQUIRE(_dependencyMap[4], './_getTag'), + isArray = _$$_REQUIRE(_dependencyMap[5], './isArray'), + isBuffer = _$$_REQUIRE(_dependencyMap[6], './isBuffer'), + isTypedArray = _$$_REQUIRE(_dependencyMap[7], './isTypedArray'); + + var COMPARE_PARTIAL_FLAG = 1; + var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + objectTag = '[object Object]'; + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + + function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? arrayTag : getTag(object), + othTag = othIsArr ? arrayTag : getTag(other); + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; + + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + + objIsArr = true; + objIsObj = false; + } + + if (isSameTag && !objIsObj) { + stack || (stack = new Stack()); + return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + } + + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; + stack || (stack = new Stack()); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + + if (!isSameTag) { + return false; + } + + stack || (stack = new Stack()); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); + } + + module.exports = baseIsEqualDeep; +},65,[20,66,72,76,103,80,90,93],"node_modules/lodash/_baseIsEqualDeep.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var SetCache = _$$_REQUIRE(_dependencyMap[0], './_SetCache'), + arraySome = _$$_REQUIRE(_dependencyMap[1], './_arraySome'), + cacheHas = _$$_REQUIRE(_dependencyMap[2], './_cacheHas'); + + var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + + function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + arrLength = array.length, + othLength = other.length; + + if (arrLength != othLength && !(isPartial && othLength > arrLength)) { + return false; + } + + var stacked = stack.get(array); + + if (stacked && stack.get(other)) { + return stacked == other; + } + + var index = -1, + result = true, + seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined; + stack.set(array, other); + stack.set(other, array); + + while (++index < arrLength) { + var arrValue = array[index], + othValue = other[index]; + + if (customizer) { + var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); + } + + if (compared !== undefined) { + if (compared) { + continue; + } + + result = false; + break; + } + + if (seen) { + if (!arraySome(other, function (othValue, othIndex) { + if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { + return seen.push(othIndex); + } + })) { + result = false; + break; + } + } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { + result = false; + break; + } + } + + stack['delete'](array); + stack['delete'](other); + return result; + } + + module.exports = equalArrays; +},66,[67,70,71],"node_modules/lodash/_equalArrays.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var MapCache = _$$_REQUIRE(_dependencyMap[0], './_MapCache'), + setCacheAdd = _$$_REQUIRE(_dependencyMap[1], './_setCacheAdd'), + setCacheHas = _$$_REQUIRE(_dependencyMap[2], './_setCacheHas'); + + function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length; + this.__data__ = new MapCache(); + + while (++index < length) { + this.add(values[index]); + } + } + + SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; + SetCache.prototype.has = setCacheHas; + module.exports = SetCache; +},67,[49,68,69],"node_modules/lodash/_SetCache.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var HASH_UNDEFINED = '__lodash_hash_undefined__'; + + function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + + return this; + } + + module.exports = setCacheAdd; +},68,[],"node_modules/lodash/_setCacheAdd.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function setCacheHas(value) { + return this.__data__.has(value); + } + + module.exports = setCacheHas; +},69,[],"node_modules/lodash/_setCacheHas.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function arraySome(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + + return false; + } + + module.exports = arraySome; +},70,[],"node_modules/lodash/_arraySome.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function cacheHas(cache, key) { + return cache.has(key); + } + + module.exports = cacheHas; +},71,[],"node_modules/lodash/_cacheHas.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'), + Uint8Array = _$$_REQUIRE(_dependencyMap[1], './_Uint8Array'), + eq = _$$_REQUIRE(_dependencyMap[2], './eq'), + equalArrays = _$$_REQUIRE(_dependencyMap[3], './_equalArrays'), + mapToArray = _$$_REQUIRE(_dependencyMap[4], './_mapToArray'), + setToArray = _$$_REQUIRE(_dependencyMap[5], './_setToArray'); + + var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + var boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]'; + var symbolProto = Symbol ? typeof Symbol === "function" ? Symbol.prototype : "@@prototype" : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + + function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case dataViewTag: + if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { + return false; + } + + object = object.buffer; + other = other.buffer; + + case arrayBufferTag: + if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) { + return false; + } + + return true; + + case boolTag: + case dateTag: + case numberTag: + return eq(+object, +other); + + case errorTag: + return object.name == other.name && object.message == other.message; + + case regexpTag: + case stringTag: + return object == other + ''; + + case mapTag: + var convert = mapToArray; + + case setTag: + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; + convert || (convert = setToArray); + + if (object.size != other.size && !isPartial) { + return false; + } + + var stacked = stack.get(object); + + if (stacked) { + return stacked == other; + } + + bitmask |= COMPARE_UNORDERED_FLAG; + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + stack['delete'](object); + return result; + + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + + } + + return false; + } + + module.exports = equalByTag; +},72,[39,73,25,66,74,75],"node_modules/lodash/_equalByTag.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var root = _$$_REQUIRE(_dependencyMap[0], './_root'); + + var Uint8Array = root.Uint8Array; + module.exports = Uint8Array; +},73,[40],"node_modules/lodash/_Uint8Array.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function mapToArray(map) { + var index = -1, + result = Array(map.size); + map.forEach(function (value, key) { + result[++index] = [key, value]; + }); + return result; + } + + module.exports = mapToArray; +},74,[],"node_modules/lodash/_mapToArray.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function setToArray(set) { + var index = -1, + result = Array(set.size); + set.forEach(function (value) { + result[++index] = value; + }); + return result; + } + + module.exports = setToArray; +},75,[],"node_modules/lodash/_setToArray.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getAllKeys = _$$_REQUIRE(_dependencyMap[0], './_getAllKeys'); + + var COMPARE_PARTIAL_FLAG = 1; + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + + function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + objProps = getAllKeys(object), + objLength = objProps.length, + othProps = getAllKeys(other), + othLength = othProps.length; + + if (objLength != othLength && !isPartial) { + return false; + } + + var index = objLength; + + while (index--) { + var key = objProps[index]; + + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { + return false; + } + } + + var stacked = stack.get(object); + + if (stacked && stack.get(other)) { + return stacked == other; + } + + var result = true; + stack.set(object, other); + stack.set(other, object); + var skipCtor = isPartial; + + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], + othValue = other[key]; + + if (customizer) { + var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); + } + + if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { + result = false; + break; + } + + skipCtor || (skipCtor = key == 'constructor'); + } + + if (result && !skipCtor) { + var objCtor = object.constructor, + othCtor = other.constructor; + + if (objCtor != othCtor && 'constructor' in object && 'constructor' in other && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) { + result = false; + } + } + + stack['delete'](object); + stack['delete'](other); + return result; + } + + module.exports = equalObjects; +},76,[77],"node_modules/lodash/_equalObjects.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseGetAllKeys = _$$_REQUIRE(_dependencyMap[0], './_baseGetAllKeys'), + getSymbols = _$$_REQUIRE(_dependencyMap[1], './_getSymbols'), + keys = _$$_REQUIRE(_dependencyMap[2], './keys'); + + function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); + } + + module.exports = getAllKeys; +},77,[78,81,84],"node_modules/lodash/_getAllKeys.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var arrayPush = _$$_REQUIRE(_dependencyMap[0], './_arrayPush'), + isArray = _$$_REQUIRE(_dependencyMap[1], './isArray'); + + function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); + } + + module.exports = baseGetAllKeys; +},78,[79,80],"node_modules/lodash/_baseGetAllKeys.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + + return array; + } + + module.exports = arrayPush; +},79,[],"node_modules/lodash/_arrayPush.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isArray = Array.isArray; + module.exports = isArray; +},80,[],"node_modules/lodash/isArray.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var arrayFilter = _$$_REQUIRE(_dependencyMap[0], './_arrayFilter'), + stubArray = _$$_REQUIRE(_dependencyMap[1], './stubArray'); + + var objectProto = Object.prototype; + var propertyIsEnumerable = objectProto.propertyIsEnumerable; + var nativeGetSymbols = Object.getOwnPropertySymbols; + var getSymbols = !nativeGetSymbols ? stubArray : function (object) { + if (object == null) { + return []; + } + + object = Object(object); + return arrayFilter(nativeGetSymbols(object), function (symbol) { + return propertyIsEnumerable.call(object, symbol); + }); + }; + module.exports = getSymbols; +},81,[82,83],"node_modules/lodash/_getSymbols.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function arrayFilter(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + + if (predicate(value, index, array)) { + result[resIndex++] = value; + } + } + + return result; + } + + module.exports = arrayFilter; +},82,[],"node_modules/lodash/_arrayFilter.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function stubArray() { + return []; + } + + module.exports = stubArray; +},83,[],"node_modules/lodash/stubArray.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var arrayLikeKeys = _$$_REQUIRE(_dependencyMap[0], './_arrayLikeKeys'), + baseKeys = _$$_REQUIRE(_dependencyMap[1], './_baseKeys'), + isArrayLike = _$$_REQUIRE(_dependencyMap[2], './isArrayLike'); + + function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); + } + + module.exports = keys; +},84,[85,98,102],"node_modules/lodash/keys.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseTimes = _$$_REQUIRE(_dependencyMap[0], './_baseTimes'), + isArguments = _$$_REQUIRE(_dependencyMap[1], './isArguments'), + isArray = _$$_REQUIRE(_dependencyMap[2], './isArray'), + isBuffer = _$$_REQUIRE(_dependencyMap[3], './isBuffer'), + isIndex = _$$_REQUIRE(_dependencyMap[4], './_isIndex'), + isTypedArray = _$$_REQUIRE(_dependencyMap[5], './isTypedArray'); + + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + + function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == 'length' || isBuff && (key == 'offset' || key == 'parent') || isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') || isIndex(key, length)))) { + result.push(key); + } + } + + return result; + } + + module.exports = arrayLikeKeys; +},85,[86,87,80,90,92,93],"node_modules/lodash/_arrayLikeKeys.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + + return result; + } + + module.exports = baseTimes; +},86,[],"node_modules/lodash/_baseTimes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseIsArguments = _$$_REQUIRE(_dependencyMap[0], './_baseIsArguments'), + isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); + + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + var propertyIsEnumerable = objectProto.propertyIsEnumerable; + var isArguments = baseIsArguments(function () { + return arguments; + }()) ? baseIsArguments : function (value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); + }; + module.exports = isArguments; +},87,[88,89],"node_modules/lodash/isArguments.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), + isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); + + var argsTag = '[object Arguments]'; + + function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; + } + + module.exports = baseIsArguments; +},88,[38,89],"node_modules/lodash/_baseIsArguments.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function isObjectLike(value) { + return value != null && typeof value == 'object'; + } + + module.exports = isObjectLike; +},89,[],"node_modules/lodash/isObjectLike.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var root = _$$_REQUIRE(_dependencyMap[0], './_root'), + stubFalse = _$$_REQUIRE(_dependencyMap[1], './stubFalse'); + + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + var moduleExports = freeModule && freeModule.exports === freeExports; + var Buffer = moduleExports ? root.Buffer : undefined; + var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; + var isBuffer = nativeIsBuffer || stubFalse; + module.exports = isBuffer; +},90,[40,91],"node_modules/lodash/isBuffer.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function stubFalse() { + return false; + } + + module.exports = stubFalse; +},91,[],"node_modules/lodash/stubFalse.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var MAX_SAFE_INTEGER = 9007199254740991; + var reIsUint = /^(?:0|[1-9]\d*)$/; + + function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length; + } + + module.exports = isIndex; +},92,[],"node_modules/lodash/_isIndex.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseIsTypedArray = _$$_REQUIRE(_dependencyMap[0], './_baseIsTypedArray'), + baseUnary = _$$_REQUIRE(_dependencyMap[1], './_baseUnary'), + nodeUtil = _$$_REQUIRE(_dependencyMap[2], './_nodeUtil'); + + var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + module.exports = isTypedArray; +},93,[94,96,97],"node_modules/lodash/isTypedArray.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), + isLength = _$$_REQUIRE(_dependencyMap[1], './isLength'), + isObjectLike = _$$_REQUIRE(_dependencyMap[2], './isObjectLike'); + + var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + weakMapTag = '[object WeakMap]'; + var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]', + float32Tag = '[object Float32Array]', + float64Tag = '[object Float64Array]', + int8Tag = '[object Int8Array]', + int16Tag = '[object Int16Array]', + int32Tag = '[object Int32Array]', + uint8Tag = '[object Uint8Array]', + uint8ClampedTag = '[object Uint8ClampedArray]', + uint16Tag = '[object Uint16Array]', + uint32Tag = '[object Uint32Array]'; + var typedArrayTags = {}; + typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; + typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; + + function baseIsTypedArray(value) { + return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; + } + + module.exports = baseIsTypedArray; +},94,[38,95,89],"node_modules/lodash/_baseIsTypedArray.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var MAX_SAFE_INTEGER = 9007199254740991; + + function isLength(value) { + return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + + module.exports = isLength; +},95,[],"node_modules/lodash/isLength.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function baseUnary(func) { + return function (value) { + return func(value); + }; + } + + module.exports = baseUnary; +},96,[],"node_modules/lodash/_baseUnary.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var freeGlobal = _$$_REQUIRE(_dependencyMap[0], './_freeGlobal'); + + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + var moduleExports = freeModule && freeModule.exports === freeExports; + var freeProcess = moduleExports && freeGlobal.process; + + var nodeUtil = function () { + try { + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} + }(); + + module.exports = nodeUtil; +},97,[41],"node_modules/lodash/_nodeUtil.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isPrototype = _$$_REQUIRE(_dependencyMap[0], './_isPrototype'), + nativeKeys = _$$_REQUIRE(_dependencyMap[1], './_nativeKeys'); + + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + + function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + + var result = []; + + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + + return result; + } + + module.exports = baseKeys; +},98,[99,100],"node_modules/lodash/_baseKeys.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var objectProto = Object.prototype; + + function isPrototype(value) { + var Ctor = value && value.constructor, + proto = typeof Ctor == 'function' && Ctor.prototype || objectProto; + return value === proto; + } + + module.exports = isPrototype; +},99,[],"node_modules/lodash/_isPrototype.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var overArg = _$$_REQUIRE(_dependencyMap[0], './_overArg'); + + var nativeKeys = overArg(Object.keys, Object); + module.exports = nativeKeys; +},100,[101],"node_modules/lodash/_nativeKeys.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function overArg(func, transform) { + return function (arg) { + return func(transform(arg)); + }; + } + + module.exports = overArg; +},101,[],"node_modules/lodash/_overArg.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isFunction = _$$_REQUIRE(_dependencyMap[0], './isFunction'), + isLength = _$$_REQUIRE(_dependencyMap[1], './isLength'); + + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); + } + + module.exports = isArrayLike; +},102,[37,95],"node_modules/lodash/isArrayLike.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var DataView = _$$_REQUIRE(_dependencyMap[0], './_DataView'), + Map = _$$_REQUIRE(_dependencyMap[1], './_Map'), + Promise = _$$_REQUIRE(_dependencyMap[2], './_Promise'), + Set = _$$_REQUIRE(_dependencyMap[3], './_Set'), + WeakMap = _$$_REQUIRE(_dependencyMap[4], './_WeakMap'), + baseGetTag = _$$_REQUIRE(_dependencyMap[5], './_baseGetTag'), + toSource = _$$_REQUIRE(_dependencyMap[6], './_toSource'); + + var mapTag = '[object Map]', + objectTag = '[object Object]', + promiseTag = '[object Promise]', + setTag = '[object Set]', + weakMapTag = '[object WeakMap]'; + var dataViewTag = '[object DataView]'; + var dataViewCtorString = toSource(DataView), + mapCtorString = toSource(Map), + promiseCtorString = toSource(Promise), + setCtorString = toSource(Set), + weakMapCtorString = toSource(WeakMap); + var getTag = baseGetTag; + + if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { + getTag = function getTag(value) { + var result = baseGetTag(value), + Ctor = result == objectTag ? value.constructor : undefined, + ctorString = Ctor ? toSource(Ctor) : ''; + + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: + return dataViewTag; + + case mapCtorString: + return mapTag; + + case promiseCtorString: + return promiseTag; + + case setCtorString: + return setTag; + + case weakMapCtorString: + return weakMapTag; + } + } + + return result; + }; + } + + module.exports = getTag; +},103,[104,34,105,106,107,38,47],"node_modules/lodash/_getTag.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), + root = _$$_REQUIRE(_dependencyMap[1], './_root'); + + var DataView = getNative(root, 'DataView'); + module.exports = DataView; +},104,[35,40],"node_modules/lodash/_DataView.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), + root = _$$_REQUIRE(_dependencyMap[1], './_root'); + + var Promise = getNative(root, 'Promise'); + module.exports = Promise; +},105,[35,40],"node_modules/lodash/_Promise.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), + root = _$$_REQUIRE(_dependencyMap[1], './_root'); + + var Set = getNative(root, 'Set'); + module.exports = Set; +},106,[35,40],"node_modules/lodash/_Set.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), + root = _$$_REQUIRE(_dependencyMap[1], './_root'); + + var WeakMap = getNative(root, 'WeakMap'); + module.exports = WeakMap; +},107,[35,40],"node_modules/lodash/_WeakMap.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isStrictComparable = _$$_REQUIRE(_dependencyMap[0], './_isStrictComparable'), + keys = _$$_REQUIRE(_dependencyMap[1], './keys'); + + function getMatchData(object) { + var result = keys(object), + length = result.length; + + while (length--) { + var key = result[length], + value = object[key]; + result[length] = [key, value, isStrictComparable(value)]; + } + + return result; + } + + module.exports = getMatchData; +},108,[109,84],"node_modules/lodash/_getMatchData.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isObject = _$$_REQUIRE(_dependencyMap[0], './isObject'); + + function isStrictComparable(value) { + return value === value && !isObject(value); + } + + module.exports = isStrictComparable; +},109,[44],"node_modules/lodash/_isStrictComparable.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function matchesStrictComparable(key, srcValue) { + return function (object) { + if (object == null) { + return false; + } + + return object[key] === srcValue && (srcValue !== undefined || key in Object(object)); + }; + } + + module.exports = matchesStrictComparable; +},110,[],"node_modules/lodash/_matchesStrictComparable.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseIsEqual = _$$_REQUIRE(_dependencyMap[0], './_baseIsEqual'), + get = _$$_REQUIRE(_dependencyMap[1], './get'), + hasIn = _$$_REQUIRE(_dependencyMap[2], './hasIn'), + isKey = _$$_REQUIRE(_dependencyMap[3], './_isKey'), + isStrictComparable = _$$_REQUIRE(_dependencyMap[4], './_isStrictComparable'), + matchesStrictComparable = _$$_REQUIRE(_dependencyMap[5], './_matchesStrictComparable'), + toKey = _$$_REQUIRE(_dependencyMap[6], './_toKey'); + + var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + + function baseMatchesProperty(path, srcValue) { + if (isKey(path) && isStrictComparable(srcValue)) { + return matchesStrictComparable(toKey(path), srcValue); + } + + return function (object) { + var objValue = get(object, path); + return objValue === undefined && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); + }; + } + + module.exports = baseMatchesProperty; +},111,[64,112,124,115,109,110,123],"node_modules/lodash/_baseMatchesProperty.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseGet = _$$_REQUIRE(_dependencyMap[0], './_baseGet'); + + function get(object, path, defaultValue) { + var result = object == null ? undefined : baseGet(object, path); + return result === undefined ? defaultValue : result; + } + + module.exports = get; +},112,[113],"node_modules/lodash/get.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var castPath = _$$_REQUIRE(_dependencyMap[0], './_castPath'), + toKey = _$$_REQUIRE(_dependencyMap[1], './_toKey'); + + function baseGet(object, path) { + path = castPath(path, object); + var index = 0, + length = path.length; + + while (object != null && index < length) { + object = object[toKey(path[index++])]; + } + + return index && index == length ? object : undefined; + } + + module.exports = baseGet; +},113,[114,123],"node_modules/lodash/_baseGet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isArray = _$$_REQUIRE(_dependencyMap[0], './isArray'), + isKey = _$$_REQUIRE(_dependencyMap[1], './_isKey'), + stringToPath = _$$_REQUIRE(_dependencyMap[2], './_stringToPath'), + toString = _$$_REQUIRE(_dependencyMap[3], './toString'); + + function castPath(value, object) { + if (isArray(value)) { + return value; + } + + return isKey(value, object) ? [value] : stringToPath(toString(value)); + } + + module.exports = castPath; +},114,[80,115,117,120],"node_modules/lodash/_castPath.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isArray = _$$_REQUIRE(_dependencyMap[0], './isArray'), + isSymbol = _$$_REQUIRE(_dependencyMap[1], './isSymbol'); + + var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + reIsPlainProp = /^\w*$/; + + function isKey(value, object) { + if (isArray(value)) { + return false; + } + + var type = typeof value; + + if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { + return true; + } + + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object); + } + + module.exports = isKey; +},115,[80,116],"node_modules/lodash/_isKey.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), + isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); + + var symbolTag = '[object Symbol]'; + + function isSymbol(value) { + return typeof value == 'symbol' || isObjectLike(value) && baseGetTag(value) == symbolTag; + } + + module.exports = isSymbol; +},116,[38,89],"node_modules/lodash/isSymbol.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var memoizeCapped = _$$_REQUIRE(_dependencyMap[0], './_memoizeCapped'); + + var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; + var reEscapeChar = /\\(\\)?/g; + var stringToPath = memoizeCapped(function (string) { + var result = []; + + if (string.charCodeAt(0) === 46) { + result.push(''); + } + + string.replace(rePropName, function (match, number, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, '$1') : number || match); + }); + return result; + }); + module.exports = stringToPath; +},117,[118],"node_modules/lodash/_stringToPath.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var memoize = _$$_REQUIRE(_dependencyMap[0], './memoize'); + + var MAX_MEMOIZE_SIZE = 500; + + function memoizeCapped(func) { + var result = memoize(func, function (key) { + if (cache.size === MAX_MEMOIZE_SIZE) { + cache.clear(); + } + + return key; + }); + var cache = result.cache; + return result; + } + + module.exports = memoizeCapped; +},118,[119],"node_modules/lodash/_memoizeCapped.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var MapCache = _$$_REQUIRE(_dependencyMap[0], './_MapCache'); + + var FUNC_ERROR_TEXT = 'Expected a function'; + + function memoize(func, resolver) { + if (typeof func != 'function' || resolver != null && typeof resolver != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + + var memoized = function memoized() { + var args = arguments, + key = resolver ? resolver.apply(this, args) : args[0], + cache = memoized.cache; + + if (cache.has(key)) { + return cache.get(key); + } + + var result = func.apply(this, args); + memoized.cache = cache.set(key, result) || cache; + return result; + }; + + memoized.cache = new (memoize.Cache || MapCache)(); + return memoized; + } + + memoize.Cache = MapCache; + module.exports = memoize; +},119,[49],"node_modules/lodash/memoize.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseToString = _$$_REQUIRE(_dependencyMap[0], './_baseToString'); + + function toString(value) { + return value == null ? '' : baseToString(value); + } + + module.exports = toString; +},120,[121],"node_modules/lodash/toString.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'), + arrayMap = _$$_REQUIRE(_dependencyMap[1], './_arrayMap'), + isArray = _$$_REQUIRE(_dependencyMap[2], './isArray'), + isSymbol = _$$_REQUIRE(_dependencyMap[3], './isSymbol'); + + var INFINITY = 1 / 0; + var symbolProto = Symbol ? typeof Symbol === "function" ? Symbol.prototype : "@@prototype" : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; + + function baseToString(value) { + if (typeof value == 'string') { + return value; + } + + if (isArray(value)) { + return arrayMap(value, baseToString) + ''; + } + + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + + var result = value + ''; + return result == '0' && 1 / value == -INFINITY ? '-0' : result; + } + + module.exports = baseToString; +},121,[39,122,80,116],"node_modules/lodash/_baseToString.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + + return result; + } + + module.exports = arrayMap; +},122,[],"node_modules/lodash/_arrayMap.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isSymbol = _$$_REQUIRE(_dependencyMap[0], './isSymbol'); + + var INFINITY = 1 / 0; + + function toKey(value) { + if (typeof value == 'string' || isSymbol(value)) { + return value; + } + + var result = value + ''; + return result == '0' && 1 / value == -INFINITY ? '-0' : result; + } + + module.exports = toKey; +},123,[116],"node_modules/lodash/_toKey.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseHasIn = _$$_REQUIRE(_dependencyMap[0], './_baseHasIn'), + hasPath = _$$_REQUIRE(_dependencyMap[1], './_hasPath'); + + function hasIn(object, path) { + return object != null && hasPath(object, path, baseHasIn); + } + + module.exports = hasIn; +},124,[125,126],"node_modules/lodash/hasIn.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function baseHasIn(object, key) { + return object != null && key in Object(object); + } + + module.exports = baseHasIn; +},125,[],"node_modules/lodash/_baseHasIn.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var castPath = _$$_REQUIRE(_dependencyMap[0], './_castPath'), + isArguments = _$$_REQUIRE(_dependencyMap[1], './isArguments'), + isArray = _$$_REQUIRE(_dependencyMap[2], './isArray'), + isIndex = _$$_REQUIRE(_dependencyMap[3], './_isIndex'), + isLength = _$$_REQUIRE(_dependencyMap[4], './isLength'), + toKey = _$$_REQUIRE(_dependencyMap[5], './_toKey'); + + function hasPath(object, path, hasFunc) { + path = castPath(path, object); + var index = -1, + length = path.length, + result = false; + + while (++index < length) { + var key = toKey(path[index]); + + if (!(result = object != null && hasFunc(object, key))) { + break; + } + + object = object[key]; + } + + if (result || ++index != length) { + return result; + } + + length = object == null ? 0 : object.length; + return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); + } + + module.exports = hasPath; +},126,[114,87,80,92,95,123],"node_modules/lodash/_hasPath.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function identity(value) { + return value; + } + + module.exports = identity; +},127,[],"node_modules/lodash/identity.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseProperty = _$$_REQUIRE(_dependencyMap[0], './_baseProperty'), + basePropertyDeep = _$$_REQUIRE(_dependencyMap[1], './_basePropertyDeep'), + isKey = _$$_REQUIRE(_dependencyMap[2], './_isKey'), + toKey = _$$_REQUIRE(_dependencyMap[3], './_toKey'); + + function property(path) { + return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); + } + + module.exports = property; +},128,[129,130,115,123],"node_modules/lodash/property.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function baseProperty(key) { + return function (object) { + return object == null ? undefined : object[key]; + }; + } + + module.exports = baseProperty; +},129,[],"node_modules/lodash/_baseProperty.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseGet = _$$_REQUIRE(_dependencyMap[0], './_baseGet'); + + function basePropertyDeep(path) { + return function (object) { + return baseGet(object, path); + }; + } + + module.exports = basePropertyDeep; +},130,[113],"node_modules/lodash/_basePropertyDeep.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseFindIndex = _$$_REQUIRE(_dependencyMap[0], './_baseFindIndex'), + baseIteratee = _$$_REQUIRE(_dependencyMap[1], './_baseIteratee'), + toInteger = _$$_REQUIRE(_dependencyMap[2], './toInteger'); + + var nativeMax = Math.max; + + function findIndex(array, predicate, fromIndex) { + var length = array == null ? 0 : array.length; + + if (!length) { + return -1; + } + + var index = fromIndex == null ? 0 : toInteger(fromIndex); + + if (index < 0) { + index = nativeMax(length + index, 0); + } + + return baseFindIndex(array, baseIteratee(predicate, 3), index); + } + + module.exports = findIndex; +},131,[132,17,133],"node_modules/lodash/findIndex.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while (fromRight ? index-- : ++index < length) { + if (predicate(array[index], index, array)) { + return index; + } + } + + return -1; + } + + module.exports = baseFindIndex; +},132,[],"node_modules/lodash/_baseFindIndex.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var toFinite = _$$_REQUIRE(_dependencyMap[0], './toFinite'); + + function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + return result === result ? remainder ? result - remainder : result : 0; + } + + module.exports = toInteger; +},133,[134],"node_modules/lodash/toInteger.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var toNumber = _$$_REQUIRE(_dependencyMap[0], './toNumber'); + + var INFINITY = 1 / 0, + MAX_INTEGER = 1.7976931348623157e+308; + + function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + + value = toNumber(value); + + if (value === INFINITY || value === -INFINITY) { + var sign = value < 0 ? -1 : 1; + return sign * MAX_INTEGER; + } + + return value === value ? value : 0; + } + + module.exports = toFinite; +},134,[135],"node_modules/lodash/toFinite.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isObject = _$$_REQUIRE(_dependencyMap[0], './isObject'), + isSymbol = _$$_REQUIRE(_dependencyMap[1], './isSymbol'); + + var NAN = 0 / 0; + var reTrim = /^\s+|\s+$/g; + var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + var reIsBinary = /^0b[01]+$/i; + var reIsOctal = /^0o[0-7]+$/i; + var freeParseInt = parseInt; + + function toNumber(value) { + if (typeof value == 'number') { + return value; + } + + if (isSymbol(value)) { + return NAN; + } + + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? other + '' : other; + } + + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + + value = value.replace(reTrim, ''); + var isBinary = reIsBinary.test(value); + return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; + } + + module.exports = toNumber; +},135,[44,116],"node_modules/lodash/toNumber.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = createPrototypeProxy; + + var _assign = _$$_REQUIRE(_dependencyMap[0], 'lodash/assign'); + + var _assign2 = _interopRequireDefault(_assign); + + var _difference = _$$_REQUIRE(_dependencyMap[1], 'lodash/difference'); + + var _difference2 = _interopRequireDefault(_difference); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + + function createPrototypeProxy() { + var proxy = {}; + var current = null; + var mountedInstances = []; + + function proxyToString(name) { + return function toString() { + if (typeof current[name] === 'function') { + return current[name].toString(); + } else { + return ''; + } + }; + } + + function proxyMethod(name) { + var proxiedMethod = function proxiedMethod() { + if (typeof current[name] === 'function') { + return current[name].apply(this, arguments); + } + }; + + (0, _assign2.default)(proxiedMethod, current[name]); + proxiedMethod.toString = proxyToString(name); + return proxiedMethod; + } + + function proxiedComponentDidMount() { + mountedInstances.push(this); + + if (typeof current.componentDidMount === 'function') { + return current.componentDidMount.apply(this, arguments); + } + } + + proxiedComponentDidMount.toString = proxyToString('componentDidMount'); + + function proxiedComponentWillUnmount() { + var index = mountedInstances.indexOf(this); + + if (index !== -1) { + mountedInstances.splice(index, 1); + } + + if (typeof current.componentWillUnmount === 'function') { + return current.componentWillUnmount.apply(this, arguments); + } + } + + proxiedComponentWillUnmount.toString = proxyToString('componentWillUnmount'); + + function defineProxyProperty(name, descriptor) { + Object.defineProperty(proxy, name, descriptor); + } + + function defineProxyPropertyWithValue(name, value) { + var _ref = Object.getOwnPropertyDescriptor(current, name) || {}; + + var _ref$enumerable = _ref.enumerable; + var enumerable = _ref$enumerable === undefined ? false : _ref$enumerable; + var _ref$writable = _ref.writable; + var writable = _ref$writable === undefined ? true : _ref$writable; + defineProxyProperty(name, { + configurable: true, + enumerable: enumerable, + writable: writable, + value: value + }); + } + + function createAutoBindMap() { + if (!current.__reactAutoBindMap) { + return; + } + + var __reactAutoBindMap = {}; + + for (var name in current.__reactAutoBindMap) { + if (typeof proxy[name] === 'function' && current.__reactAutoBindMap.hasOwnProperty(name)) { + __reactAutoBindMap[name] = proxy[name]; + } + } + + return __reactAutoBindMap; + } + + function createAutoBindPairs() { + var __reactAutoBindPairs = []; + + for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) { + var name = current.__reactAutoBindPairs[i]; + var method = proxy[name]; + + if (typeof method === 'function') { + __reactAutoBindPairs.push(name, method); + } + } + + return __reactAutoBindPairs; + } + + function update(next) { + current = next; + var currentNames = Object.getOwnPropertyNames(current); + var previousName = Object.getOwnPropertyNames(proxy); + var removedNames = (0, _difference2.default)(previousName, currentNames); + removedNames.forEach(function (name) { + delete proxy[name]; + }); + currentNames.forEach(function (name) { + var descriptor = Object.getOwnPropertyDescriptor(current, name); + + if (typeof descriptor.value === 'function') { + defineProxyPropertyWithValue(name, proxyMethod(name)); + } else { + defineProxyProperty(name, descriptor); + } + }); + defineProxyPropertyWithValue('componentDidMount', proxiedComponentDidMount); + defineProxyPropertyWithValue('componentWillUnmount', proxiedComponentWillUnmount); + + if (current.hasOwnProperty('__reactAutoBindMap')) { + defineProxyPropertyWithValue('__reactAutoBindMap', createAutoBindMap()); + } + + if (current.hasOwnProperty('__reactAutoBindPairs')) { + defineProxyPropertyWithValue('__reactAutoBindPairs', createAutoBindPairs()); + } + + proxy.__proto__ = next; + return mountedInstances; + } + + function get() { + return proxy; + } + + return { + update: update, + get: get + }; + } + + ; +},136,[137,151],"node_modules/react-proxy/modules/createPrototypeProxy.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var assignValue = _$$_REQUIRE(_dependencyMap[0], './_assignValue'), + copyObject = _$$_REQUIRE(_dependencyMap[1], './_copyObject'), + createAssigner = _$$_REQUIRE(_dependencyMap[2], './_createAssigner'), + isArrayLike = _$$_REQUIRE(_dependencyMap[3], './isArrayLike'), + isPrototype = _$$_REQUIRE(_dependencyMap[4], './_isPrototype'), + keys = _$$_REQUIRE(_dependencyMap[5], './keys'); + + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + var assign = createAssigner(function (object, source) { + if (isPrototype(source) || isArrayLike(source)) { + copyObject(source, keys(source), object); + return; + } + + for (var key in source) { + if (hasOwnProperty.call(source, key)) { + assignValue(object, key, source[key]); + } + } + }); + module.exports = assign; +},137,[138,141,142,102,99,84],"node_modules/lodash/assign.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseAssignValue = _$$_REQUIRE(_dependencyMap[0], './_baseAssignValue'), + eq = _$$_REQUIRE(_dependencyMap[1], './eq'); + + var objectProto = Object.prototype; + var hasOwnProperty = objectProto.hasOwnProperty; + + function assignValue(object, key, value) { + var objValue = object[key]; + + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) { + baseAssignValue(object, key, value); + } + } + + module.exports = assignValue; +},138,[139,25],"node_modules/lodash/_assignValue.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var defineProperty = _$$_REQUIRE(_dependencyMap[0], './_defineProperty'); + + function baseAssignValue(object, key, value) { + if (key == '__proto__' && defineProperty) { + defineProperty(object, key, { + 'configurable': true, + 'enumerable': true, + 'value': value, + 'writable': true + }); + } else { + object[key] = value; + } + } + + module.exports = baseAssignValue; +},139,[140],"node_modules/lodash/_baseAssignValue.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'); + + var defineProperty = function () { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} + }(); + + module.exports = defineProperty; +},140,[35],"node_modules/lodash/_defineProperty.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var assignValue = _$$_REQUIRE(_dependencyMap[0], './_assignValue'), + baseAssignValue = _$$_REQUIRE(_dependencyMap[1], './_baseAssignValue'); + + function copyObject(source, props, object, customizer) { + var isNew = !object; + object || (object = {}); + var index = -1, + length = props.length; + + while (++index < length) { + var key = props[index]; + var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; + + if (newValue === undefined) { + newValue = source[key]; + } + + if (isNew) { + baseAssignValue(object, key, newValue); + } else { + assignValue(object, key, newValue); + } + } + + return object; + } + + module.exports = copyObject; +},141,[138,139],"node_modules/lodash/_copyObject.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseRest = _$$_REQUIRE(_dependencyMap[0], './_baseRest'), + isIterateeCall = _$$_REQUIRE(_dependencyMap[1], './_isIterateeCall'); + + function createAssigner(assigner) { + return baseRest(function (object, sources) { + var index = -1, + length = sources.length, + customizer = length > 1 ? sources[length - 1] : undefined, + guard = length > 2 ? sources[2] : undefined; + customizer = assigner.length > 3 && typeof customizer == 'function' ? (length--, customizer) : undefined; + + if (guard && isIterateeCall(sources[0], sources[1], guard)) { + customizer = length < 3 ? undefined : customizer; + length = 1; + } + + object = Object(object); + + while (++index < length) { + var source = sources[index]; + + if (source) { + assigner(object, source, index, customizer); + } + } + + return object; + }); + } + + module.exports = createAssigner; +},142,[143,150],"node_modules/lodash/_createAssigner.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var identity = _$$_REQUIRE(_dependencyMap[0], './identity'), + overRest = _$$_REQUIRE(_dependencyMap[1], './_overRest'), + setToString = _$$_REQUIRE(_dependencyMap[2], './_setToString'); + + function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); + } + + module.exports = baseRest; +},143,[127,144,146],"node_modules/lodash/_baseRest.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var apply = _$$_REQUIRE(_dependencyMap[0], './_apply'); + + var nativeMax = Math.max; + + function overRest(func, start, transform) { + start = nativeMax(start === undefined ? func.length - 1 : start, 0); + return function () { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + array = Array(length); + + while (++index < length) { + array[index] = args[start + index]; + } + + index = -1; + var otherArgs = Array(start + 1); + + while (++index < start) { + otherArgs[index] = args[index]; + } + + otherArgs[start] = transform(array); + return apply(func, this, otherArgs); + }; + } + + module.exports = overRest; +},144,[145],"node_modules/lodash/_overRest.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function apply(func, thisArg, args) { + switch (args.length) { + case 0: + return func.call(thisArg); + + case 1: + return func.call(thisArg, args[0]); + + case 2: + return func.call(thisArg, args[0], args[1]); + + case 3: + return func.call(thisArg, args[0], args[1], args[2]); + } + + return func.apply(thisArg, args); + } + + module.exports = apply; +},145,[],"node_modules/lodash/_apply.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseSetToString = _$$_REQUIRE(_dependencyMap[0], './_baseSetToString'), + shortOut = _$$_REQUIRE(_dependencyMap[1], './_shortOut'); + + var setToString = shortOut(baseSetToString); + module.exports = setToString; +},146,[147,149],"node_modules/lodash/_setToString.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var constant = _$$_REQUIRE(_dependencyMap[0], './constant'), + defineProperty = _$$_REQUIRE(_dependencyMap[1], './_defineProperty'), + identity = _$$_REQUIRE(_dependencyMap[2], './identity'); + + var baseSetToString = !defineProperty ? identity : function (func, string) { + return defineProperty(func, 'toString', { + 'configurable': true, + 'enumerable': false, + 'value': constant(string), + 'writable': true + }); + }; + module.exports = baseSetToString; +},147,[148,140,127],"node_modules/lodash/_baseSetToString.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function constant(value) { + return function () { + return value; + }; + } + + module.exports = constant; +},148,[],"node_modules/lodash/constant.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var HOT_COUNT = 800, + HOT_SPAN = 16; + var nativeNow = Date.now; + + function shortOut(func) { + var count = 0, + lastCalled = 0; + return function () { + var stamp = nativeNow(), + remaining = HOT_SPAN - (stamp - lastCalled); + lastCalled = stamp; + + if (remaining > 0) { + if (++count >= HOT_COUNT) { + return arguments[0]; + } + } else { + count = 0; + } + + return func.apply(undefined, arguments); + }; + } + + module.exports = shortOut; +},149,[],"node_modules/lodash/_shortOut.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var eq = _$$_REQUIRE(_dependencyMap[0], './eq'), + isArrayLike = _$$_REQUIRE(_dependencyMap[1], './isArrayLike'), + isIndex = _$$_REQUIRE(_dependencyMap[2], './_isIndex'), + isObject = _$$_REQUIRE(_dependencyMap[3], './isObject'); + + function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + + var type = typeof index; + + if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) { + return eq(object[index], value); + } + + return false; + } + + module.exports = isIterateeCall; +},150,[25,102,92,44],"node_modules/lodash/_isIterateeCall.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseDifference = _$$_REQUIRE(_dependencyMap[0], './_baseDifference'), + baseFlatten = _$$_REQUIRE(_dependencyMap[1], './_baseFlatten'), + baseRest = _$$_REQUIRE(_dependencyMap[2], './_baseRest'), + isArrayLikeObject = _$$_REQUIRE(_dependencyMap[3], './isArrayLikeObject'); + + var difference = baseRest(function (array, values) { + return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : []; + }); + module.exports = difference; +},151,[152,158,143,160],"node_modules/lodash/difference.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var SetCache = _$$_REQUIRE(_dependencyMap[0], './_SetCache'), + arrayIncludes = _$$_REQUIRE(_dependencyMap[1], './_arrayIncludes'), + arrayIncludesWith = _$$_REQUIRE(_dependencyMap[2], './_arrayIncludesWith'), + arrayMap = _$$_REQUIRE(_dependencyMap[3], './_arrayMap'), + baseUnary = _$$_REQUIRE(_dependencyMap[4], './_baseUnary'), + cacheHas = _$$_REQUIRE(_dependencyMap[5], './_cacheHas'); + + var LARGE_ARRAY_SIZE = 200; + + function baseDifference(array, values, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + isCommon = true, + length = array.length, + result = [], + valuesLength = values.length; + + if (!length) { + return result; + } + + if (iteratee) { + values = arrayMap(values, baseUnary(iteratee)); + } + + if (comparator) { + includes = arrayIncludesWith; + isCommon = false; + } else if (values.length >= LARGE_ARRAY_SIZE) { + includes = cacheHas; + isCommon = false; + values = new SetCache(values); + } + + outer: while (++index < length) { + var value = array[index], + computed = iteratee == null ? value : iteratee(value); + value = comparator || value !== 0 ? value : 0; + + if (isCommon && computed === computed) { + var valuesIndex = valuesLength; + + while (valuesIndex--) { + if (values[valuesIndex] === computed) { + continue outer; + } + } + + result.push(value); + } else if (!includes(values, computed, comparator)) { + result.push(value); + } + } + + return result; + } + + module.exports = baseDifference; +},152,[67,153,157,122,96,71],"node_modules/lodash/_baseDifference.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseIndexOf = _$$_REQUIRE(_dependencyMap[0], './_baseIndexOf'); + + function arrayIncludes(array, value) { + var length = array == null ? 0 : array.length; + return !!length && baseIndexOf(array, value, 0) > -1; + } + + module.exports = arrayIncludes; +},153,[154],"node_modules/lodash/_arrayIncludes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var baseFindIndex = _$$_REQUIRE(_dependencyMap[0], './_baseFindIndex'), + baseIsNaN = _$$_REQUIRE(_dependencyMap[1], './_baseIsNaN'), + strictIndexOf = _$$_REQUIRE(_dependencyMap[2], './_strictIndexOf'); + + function baseIndexOf(array, value, fromIndex) { + return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); + } + + module.exports = baseIndexOf; +},154,[132,155,156],"node_modules/lodash/_baseIndexOf.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function baseIsNaN(value) { + return value !== value; + } + + module.exports = baseIsNaN; +},155,[],"node_modules/lodash/_baseIsNaN.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + + return -1; + } + + module.exports = strictIndexOf; +},156,[],"node_modules/lodash/_strictIndexOf.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function arrayIncludesWith(array, value, comparator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + + return false; + } + + module.exports = arrayIncludesWith; +},157,[],"node_modules/lodash/_arrayIncludesWith.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var arrayPush = _$$_REQUIRE(_dependencyMap[0], './_arrayPush'), + isFlattenable = _$$_REQUIRE(_dependencyMap[1], './_isFlattenable'); + + function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + predicate || (predicate = isFlattenable); + result || (result = []); + + while (++index < length) { + var value = array[index]; + + if (depth > 0 && predicate(value)) { + if (depth > 1) { + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + + return result; + } + + module.exports = baseFlatten; +},158,[79,159],"node_modules/lodash/_baseFlatten.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'), + isArguments = _$$_REQUIRE(_dependencyMap[1], './isArguments'), + isArray = _$$_REQUIRE(_dependencyMap[2], './isArray'); + + var spreadableSymbol = Symbol ? typeof Symbol === "function" ? Symbol.isConcatSpreadable : "@@isConcatSpreadable" : undefined; + + function isFlattenable(value) { + return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); + } + + module.exports = isFlattenable; +},159,[39,87,80],"node_modules/lodash/_isFlattenable.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var isArrayLike = _$$_REQUIRE(_dependencyMap[0], './isArrayLike'), + isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); + + function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); + } + + module.exports = isArrayLikeObject; +},160,[102,89],"node_modules/lodash/isArrayLikeObject.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = bindAutoBindMethods; + + function bindAutoBindMethod(component, method) { + var boundMethod = method.bind(component); + boundMethod.__reactBoundContext = component; + boundMethod.__reactBoundMethod = method; + boundMethod.__reactBoundArguments = null; + var componentName = component.constructor.displayName, + _bind = boundMethod.bind; + + boundMethod.bind = function (newThis) { + var args = Array.prototype.slice.call(arguments, 1); + + if (newThis !== component && newThis !== null) { + console.warn('bind(): React component methods may only be bound to the ' + 'component instance. See ' + componentName); + } else if (!args.length) { + console.warn('bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See ' + componentName); + return boundMethod; + } + + var reboundMethod = _bind.apply(boundMethod, arguments); + + reboundMethod.__reactBoundContext = component; + reboundMethod.__reactBoundMethod = method; + reboundMethod.__reactBoundArguments = args; + return reboundMethod; + }; + + return boundMethod; + } + + function bindAutoBindMethodsFromMap(component) { + for (var autoBindKey in component.__reactAutoBindMap) { + if (!component.__reactAutoBindMap.hasOwnProperty(autoBindKey)) { + return; + } + + if (component.hasOwnProperty(autoBindKey) && component[autoBindKey].__reactBoundContext === component) { + continue; + } + + var method = component.__reactAutoBindMap[autoBindKey]; + component[autoBindKey] = bindAutoBindMethod(component, method); + } + } + + function bindAutoBindMethods(component) { + if (component.__reactAutoBindPairs) { + bindAutoBindMethodsFromArray(component); + } else if (component.__reactAutoBindMap) { + bindAutoBindMethodsFromMap(component); + } + } + + function bindAutoBindMethodsFromArray(component) { + var pairs = component.__reactAutoBindPairs; + + if (!pairs) { + return; + } + + for (var i = 0; i < pairs.length; i += 2) { + var autoBindKey = pairs[i]; + + if (component.hasOwnProperty(autoBindKey) && component[autoBindKey].__reactBoundContext === component) { + continue; + } + + var method = pairs[i + 1]; + component[autoBindKey] = bindAutoBindMethod(component, method); + } + } +},161,[],"node_modules/react-proxy/modules/bindAutoBindMethods.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = deleteUnknownAutoBindMethods; + + function shouldDeleteClassicInstanceMethod(component, name) { + if (component.__reactAutoBindMap && component.__reactAutoBindMap.hasOwnProperty(name)) { + return false; + } + + if (component.__reactAutoBindPairs && component.__reactAutoBindPairs.indexOf(name) >= 0) { + return false; + } + + if (component[name].__reactBoundArguments !== null) { + return false; + } + + return true; + } + + function shouldDeleteModernInstanceMethod(component, name) { + var prototype = component.constructor.prototype; + var prototypeDescriptor = Object.getOwnPropertyDescriptor(prototype, name); + + if (!prototypeDescriptor || !prototypeDescriptor.get) { + return false; + } + + if (prototypeDescriptor.get().length !== component[name].length) { + return false; + } + + return true; + } + + function shouldDeleteInstanceMethod(component, name) { + var descriptor = Object.getOwnPropertyDescriptor(component, name); + + if (typeof descriptor.value !== 'function') { + return; + } + + if (component.__reactAutoBindMap || component.__reactAutoBindPairs) { + return shouldDeleteClassicInstanceMethod(component, name); + } else { + return shouldDeleteModernInstanceMethod(component, name); + } + } + + function deleteUnknownAutoBindMethods(component) { + var names = Object.getOwnPropertyNames(component); + names.forEach(function (name) { + if (shouldDeleteInstanceMethod(component, name)) { + delete component[name]; + } + }); + } +},162,[],"node_modules/react-proxy/modules/deleteUnknownAutoBindMethods.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + exports.__esModule = true; + exports['default'] = getForceUpdate; + + function traverseRenderedChildren(internalInstance, callback, argument) { + callback(internalInstance, argument); + + if (internalInstance._renderedComponent) { + traverseRenderedChildren(internalInstance._renderedComponent, callback, argument); + } else { + for (var key in internalInstance._renderedChildren) { + if (internalInstance._renderedChildren.hasOwnProperty(key)) { + traverseRenderedChildren(internalInstance._renderedChildren[key], callback, argument); + } + } + } + } + + function setPendingForceUpdate(internalInstance) { + if (internalInstance._pendingForceUpdate === false) { + internalInstance._pendingForceUpdate = true; + } + } + + function forceUpdateIfPending(internalInstance, React) { + if (internalInstance._pendingForceUpdate === true) { + var publicInstance = internalInstance._instance; + React.Component.prototype.forceUpdate.call(publicInstance); + } + } + + function deepForceUpdateStack(instance, React) { + var internalInstance = instance._reactInternalInstance; + traverseRenderedChildren(internalInstance, setPendingForceUpdate); + traverseRenderedChildren(internalInstance, forceUpdateIfPending, React); + } + + function deepForceUpdate(instance, React) { + var root = instance._reactInternalFiber || instance._reactInternalInstance; + + if (typeof root.tag !== 'number') { + return deepForceUpdateStack(instance, React); + } + + var node = root; + + while (true) { + if (node.stateNode !== null && typeof node.type === 'function') { + var publicInstance = node.stateNode; + var updater = publicInstance.updater; + + if (typeof publicInstance.forceUpdate === 'function') { + publicInstance.forceUpdate(); + } else if (updater && typeof updater.enqueueForceUpdate === 'function') { + updater.enqueueForceUpdate(publicInstance); + } + } + + if (node.child) { + node.child['return'] = node; + node = node.child; + continue; + } + + if (node === root) { + return undefined; + } + + while (!node.sibling) { + if (!node['return'] || node['return'] === root) { + return undefined; + } + + node = node['return']; + } + + node.sibling['return'] = node['return']; + node = node.sibling; + } + } + + function getForceUpdate(React) { + return function (instance) { + deepForceUpdate(instance, React); + }; + } + + module.exports = exports['default']; +},163,[],"node_modules/react-deep-force-update/lib/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var win; + + if (typeof window !== "undefined") { + win = window; + } else if (typeof global !== "undefined") { + win = global; + } else if (typeof self !== "undefined") { + win = self; + } else { + win = {}; + } + + module.exports = win; +},164,[],"node_modules/global/window.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var ReactNative = { + get AccessibilityInfo() { + return _$$_REQUIRE(_dependencyMap[1], 'AccessibilityInfo'); + }, + + get ActivityIndicator() { + return _$$_REQUIRE(_dependencyMap[2], 'ActivityIndicator'); + }, + + get ART() { + return _$$_REQUIRE(_dependencyMap[3], 'ReactNativeART'); + }, + + get Button() { + return _$$_REQUIRE(_dependencyMap[4], 'Button'); + }, + + get CheckBox() { + return _$$_REQUIRE(_dependencyMap[5], 'CheckBox'); + }, + + get DatePickerIOS() { + return _$$_REQUIRE(_dependencyMap[6], 'DatePickerIOS'); + }, + + get DrawerLayoutAndroid() { + return _$$_REQUIRE(_dependencyMap[7], 'DrawerLayoutAndroid'); + }, + + get FlatList() { + return _$$_REQUIRE(_dependencyMap[8], 'FlatList'); + }, + + get Image() { + return _$$_REQUIRE(_dependencyMap[9], 'Image'); + }, + + get ImageBackground() { + return _$$_REQUIRE(_dependencyMap[10], 'ImageBackground'); + }, + + get ImageEditor() { + return _$$_REQUIRE(_dependencyMap[11], 'ImageEditor'); + }, + + get ImageStore() { + return _$$_REQUIRE(_dependencyMap[12], 'ImageStore'); + }, + + get InputAccessoryView() { + return _$$_REQUIRE(_dependencyMap[13], 'InputAccessoryView'); + }, + + get KeyboardAvoidingView() { + return _$$_REQUIRE(_dependencyMap[14], 'KeyboardAvoidingView'); + }, + + get ListView() { + return _$$_REQUIRE(_dependencyMap[15], 'ListView'); + }, + + get MaskedViewIOS() { + return _$$_REQUIRE(_dependencyMap[16], 'MaskedViewIOS'); + }, + + get Modal() { + return _$$_REQUIRE(_dependencyMap[17], 'Modal'); + }, + + get NavigatorIOS() { + return _$$_REQUIRE(_dependencyMap[18], 'NavigatorIOS'); + }, + + get Picker() { + return _$$_REQUIRE(_dependencyMap[19], 'Picker'); + }, + + get PickerIOS() { + return _$$_REQUIRE(_dependencyMap[20], 'PickerIOS'); + }, + + get ProgressBarAndroid() { + return _$$_REQUIRE(_dependencyMap[21], 'ProgressBarAndroid'); + }, + + get ProgressViewIOS() { + return _$$_REQUIRE(_dependencyMap[22], 'ProgressViewIOS'); + }, + + get SafeAreaView() { + return _$$_REQUIRE(_dependencyMap[23], 'SafeAreaView'); + }, + + get ScrollView() { + return _$$_REQUIRE(_dependencyMap[24], 'ScrollView'); + }, + + get SectionList() { + return _$$_REQUIRE(_dependencyMap[25], 'SectionList'); + }, + + get SegmentedControlIOS() { + return _$$_REQUIRE(_dependencyMap[26], 'SegmentedControlIOS'); + }, + + get Slider() { + return _$$_REQUIRE(_dependencyMap[27], 'Slider'); + }, + + get SnapshotViewIOS() { + return _$$_REQUIRE(_dependencyMap[28], 'SnapshotViewIOS'); + }, + + get Switch() { + return _$$_REQUIRE(_dependencyMap[29], 'Switch'); + }, + + get RefreshControl() { + return _$$_REQUIRE(_dependencyMap[30], 'RefreshControl'); + }, + + get StatusBar() { + return _$$_REQUIRE(_dependencyMap[31], 'StatusBar'); + }, + + get SwipeableFlatList() { + return _$$_REQUIRE(_dependencyMap[32], 'SwipeableFlatList'); + }, + + get SwipeableListView() { + return _$$_REQUIRE(_dependencyMap[33], 'SwipeableListView'); + }, + + get TabBarIOS() { + return _$$_REQUIRE(_dependencyMap[34], 'TabBarIOS'); + }, + + get Text() { + return _$$_REQUIRE(_dependencyMap[35], 'Text'); + }, + + get TextInput() { + return _$$_REQUIRE(_dependencyMap[36], 'TextInput'); + }, + + get ToastAndroid() { + return _$$_REQUIRE(_dependencyMap[37], 'ToastAndroid'); + }, + + get ToolbarAndroid() { + return _$$_REQUIRE(_dependencyMap[38], 'ToolbarAndroid'); + }, + + get Touchable() { + return _$$_REQUIRE(_dependencyMap[39], 'Touchable'); + }, + + get TouchableHighlight() { + return _$$_REQUIRE(_dependencyMap[40], 'TouchableHighlight'); + }, + + get TouchableNativeFeedback() { + return _$$_REQUIRE(_dependencyMap[41], 'TouchableNativeFeedback'); + }, + + get TouchableOpacity() { + return _$$_REQUIRE(_dependencyMap[42], 'TouchableOpacity'); + }, + + get TouchableWithoutFeedback() { + return _$$_REQUIRE(_dependencyMap[43], 'TouchableWithoutFeedback'); + }, + + get View() { + return _$$_REQUIRE(_dependencyMap[44], 'View'); + }, + + get ViewPagerAndroid() { + return _$$_REQUIRE(_dependencyMap[45], 'ViewPagerAndroid'); + }, + + get VirtualizedList() { + return _$$_REQUIRE(_dependencyMap[46], 'VirtualizedList'); + }, + + get WebView() { + return _$$_REQUIRE(_dependencyMap[47], 'WebView'); + }, + + get ActionSheetIOS() { + return _$$_REQUIRE(_dependencyMap[48], 'ActionSheetIOS'); + }, + + get Alert() { + return _$$_REQUIRE(_dependencyMap[49], 'Alert'); + }, + + get AlertIOS() { + return _$$_REQUIRE(_dependencyMap[50], 'AlertIOS'); + }, + + get Animated() { + return _$$_REQUIRE(_dependencyMap[51], 'Animated'); + }, + + get AppRegistry() { + return _$$_REQUIRE(_dependencyMap[52], 'AppRegistry'); + }, + + get AppState() { + return _$$_REQUIRE(_dependencyMap[53], 'AppState'); + }, + + get AsyncStorage() { + return _$$_REQUIRE(_dependencyMap[54], 'AsyncStorage'); + }, + + get BackAndroid() { + return _$$_REQUIRE(_dependencyMap[55], 'BackAndroid'); + }, + + get BackHandler() { + return _$$_REQUIRE(_dependencyMap[56], 'BackHandler'); + }, + + get CameraRoll() { + return _$$_REQUIRE(_dependencyMap[57], 'CameraRoll'); + }, + + get Clipboard() { + return _$$_REQUIRE(_dependencyMap[58], 'Clipboard'); + }, + + get DatePickerAndroid() { + return _$$_REQUIRE(_dependencyMap[59], 'DatePickerAndroid'); + }, + + get DeviceInfo() { + return _$$_REQUIRE(_dependencyMap[60], 'DeviceInfo'); + }, + + get Dimensions() { + return _$$_REQUIRE(_dependencyMap[61], 'Dimensions'); + }, + + get Easing() { + return _$$_REQUIRE(_dependencyMap[62], 'Easing'); + }, + + get findNodeHandle() { + return _$$_REQUIRE(_dependencyMap[63], 'ReactNative').findNodeHandle; + }, + + get I18nManager() { + return _$$_REQUIRE(_dependencyMap[64], 'I18nManager'); + }, + + get ImagePickerIOS() { + return _$$_REQUIRE(_dependencyMap[65], 'ImagePickerIOS'); + }, + + get InteractionManager() { + return _$$_REQUIRE(_dependencyMap[66], 'InteractionManager'); + }, + + get Keyboard() { + return _$$_REQUIRE(_dependencyMap[67], 'Keyboard'); + }, + + get LayoutAnimation() { + return _$$_REQUIRE(_dependencyMap[68], 'LayoutAnimation'); + }, + + get Linking() { + return _$$_REQUIRE(_dependencyMap[69], 'Linking'); + }, + + get NativeEventEmitter() { + return _$$_REQUIRE(_dependencyMap[70], 'NativeEventEmitter'); + }, + + get NetInfo() { + return _$$_REQUIRE(_dependencyMap[71], 'NetInfo'); + }, + + get PanResponder() { + return _$$_REQUIRE(_dependencyMap[72], 'PanResponder'); + }, + + get PermissionsAndroid() { + return _$$_REQUIRE(_dependencyMap[73], 'PermissionsAndroid'); + }, + + get PixelRatio() { + return _$$_REQUIRE(_dependencyMap[74], 'PixelRatio'); + }, + + get PushNotificationIOS() { + return _$$_REQUIRE(_dependencyMap[75], 'PushNotificationIOS'); + }, + + get Settings() { + return _$$_REQUIRE(_dependencyMap[76], 'Settings'); + }, + + get Share() { + return _$$_REQUIRE(_dependencyMap[77], 'Share'); + }, + + get StatusBarIOS() { + return _$$_REQUIRE(_dependencyMap[78], 'StatusBarIOS'); + }, + + get StyleSheet() { + return _$$_REQUIRE(_dependencyMap[79], 'StyleSheet'); + }, + + get Systrace() { + return _$$_REQUIRE(_dependencyMap[80], 'Systrace'); + }, + + get TimePickerAndroid() { + return _$$_REQUIRE(_dependencyMap[81], 'TimePickerAndroid'); + }, + + get TVEventHandler() { + return _$$_REQUIRE(_dependencyMap[82], 'TVEventHandler'); + }, + + get UIManager() { + return _$$_REQUIRE(_dependencyMap[83], 'UIManager'); + }, + + get unstable_batchedUpdates() { + return _$$_REQUIRE(_dependencyMap[63], 'ReactNative').unstable_batchedUpdates; + }, + + get Vibration() { + return _$$_REQUIRE(_dependencyMap[84], 'Vibration'); + }, + + get VibrationIOS() { + return _$$_REQUIRE(_dependencyMap[85], 'VibrationIOS'); + }, + + get YellowBox() { + return _$$_REQUIRE(_dependencyMap[86], 'YellowBox'); + }, + + get DeviceEventEmitter() { + return _$$_REQUIRE(_dependencyMap[87], 'RCTDeviceEventEmitter'); + }, + + get NativeAppEventEmitter() { + return _$$_REQUIRE(_dependencyMap[88], 'RCTNativeAppEventEmitter'); + }, + + get NativeModules() { + return _$$_REQUIRE(_dependencyMap[89], 'NativeModules'); + }, + + get Platform() { + return _$$_REQUIRE(_dependencyMap[90], 'Platform'); + }, + + get processColor() { + return _$$_REQUIRE(_dependencyMap[91], 'processColor'); + }, + + get requireNativeComponent() { + return _$$_REQUIRE(_dependencyMap[92], 'requireNativeComponent'); + }, + + get takeSnapshot() { + return _$$_REQUIRE(_dependencyMap[93], 'takeSnapshot'); + }, + + get ColorPropType() { + return _$$_REQUIRE(_dependencyMap[94], 'ColorPropType'); + }, + + get EdgeInsetsPropType() { + return _$$_REQUIRE(_dependencyMap[95], 'EdgeInsetsPropType'); + }, + + get PointPropType() { + return _$$_REQUIRE(_dependencyMap[96], 'PointPropType'); + }, + + get ViewPropTypes() { + return _$$_REQUIRE(_dependencyMap[97], 'ViewPropTypes'); + }, + + get Navigator() { + invariant(false, 'Navigator is deprecated and has been removed from this package. It can now be installed ' + 'and imported from `react-native-deprecated-custom-components` instead of `react-native`. ' + 'Learn about alternative navigation solutions at http://facebook.github.io/react-native/docs/navigation.html'); + } + + }; + module.exports = ReactNative; +},165,[166,167,199,241,251,385,386,387,388,361,402,404,405,406,407,390,408,409,446,448,449,239,451,429,367,452,454,455,456,457,396,458,459,463,465,252,467,474,475,257,420,330,331,383,227,476,397,477,481,299,300,332,482,317,492,493,487,494,495,496,204,203,358,261,445,497,340,371,372,478,286,498,461,303,202,499,500,501,502,201,172,503,327,218,504,505,427,194,307,168,176,221,229,506,207,254,368,376],"node_modules/react-native/Libraries/react-native/react-native-implementation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var validateFormat = function validateFormat(format) {}; + + if (process.env.NODE_ENV !== 'production') { + validateFormat = function validateFormat(format) { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + }; + } + + function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format); + + if (!condition) { + var error; + + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; + throw error; + } + } + + module.exports = invariant; +},166,[],"node_modules/react-native/node_modules/fbjs/lib/invariant.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); + + var Promise = _$$_REQUIRE(_dependencyMap[1], 'Promise'); + + var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'RCTDeviceEventEmitter'); + + var AccessibilityManager = NativeModules.AccessibilityManager; + var VOICE_OVER_EVENT = 'voiceOverDidChange'; + var ANNOUNCEMENT_DID_FINISH_EVENT = 'announcementDidFinish'; + + var _subscriptions = new Map(); + + var AccessibilityInfo = { + fetch: function fetch() { + return new Promise(function (resolve, reject) { + AccessibilityManager.getCurrentVoiceOverState(resolve, reject); + }); + }, + addEventListener: function addEventListener(eventName, handler) { + var listener; + + if (eventName === 'change') { + listener = RCTDeviceEventEmitter.addListener(VOICE_OVER_EVENT, handler); + } else if (eventName === 'announcementFinished') { + listener = RCTDeviceEventEmitter.addListener(ANNOUNCEMENT_DID_FINISH_EVENT, handler); + } + + _subscriptions.set(handler, listener); + + return { + remove: AccessibilityInfo.removeEventListener.bind(null, eventName, handler) + }; + }, + setAccessibilityFocus: function setAccessibilityFocus(reactTag) { + AccessibilityManager.setAccessibilityFocus(reactTag); + }, + announceForAccessibility: function announceForAccessibility(announcement) { + AccessibilityManager.announceForAccessibility(announcement); + }, + removeEventListener: function removeEventListener(eventName, handler) { + var listener = _subscriptions.get(handler); + + if (!listener) { + return; + } + + listener.remove(); + + _subscriptions.delete(handler); + } + }; + module.exports = AccessibilityInfo; +},167,[168,186,194],"node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + + function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + + function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + + function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + function genModule(config, moduleID) { + if (!config) { + return null; + } + + var _config = _slicedToArray(config, 5), + moduleName = _config[0], + constants = _config[1], + methods = _config[2], + promiseMethods = _config[3], + syncMethods = _config[4]; + + invariant(!moduleName.startsWith('RCT') && !moduleName.startsWith('RK'), "Module name prefixes should've been stripped by the native side " + "but wasn't for " + moduleName); + + if (!constants && !methods) { + return { + name: moduleName + }; + } + + var module = {}; + methods && methods.forEach(function (methodName, methodID) { + var isPromise = promiseMethods && arrayContains(promiseMethods, methodID); + var isSync = syncMethods && arrayContains(syncMethods, methodID); + invariant(!isPromise || !isSync, 'Cannot have a method that is both async and a sync hook'); + var methodType = isPromise ? 'promise' : isSync ? 'sync' : 'async'; + module[methodName] = genMethod(moduleID, methodID, methodType); + }); + + _extends(module, constants); + + if (__DEV__) { + BatchedBridge.createDebugLookup(moduleID, moduleName, methods); + } + + return { + name: moduleName, + module: module + }; + } + + global.__fbGenNativeModule = genModule; + + function loadModule(name, moduleID) { + invariant(global.nativeRequireModuleConfig, "Can't lazily create module without nativeRequireModuleConfig"); + var config = global.nativeRequireModuleConfig(name); + var info = genModule(config, moduleID); + return info && info.module; + } + + function genMethod(moduleID, methodID, type) { + var fn = null; + + if (type === 'promise') { + fn = function fn() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return new Promise(function (resolve, reject) { + BatchedBridge.enqueueNativeCall(moduleID, methodID, args, function (data) { + return resolve(data); + }, function (errorData) { + return reject(createErrorFromErrorData(errorData)); + }); + }); + }; + } else if (type === 'sync') { + fn = function fn() { + if (__DEV__) { + invariant(global.nativeCallSyncHook, 'Calling synchronous methods on native ' + 'modules is not supported in Chrome.\n\n Consider providing alternative ' + 'methods to expose this method in debug mode, e.g. by exposing constants ' + 'ahead-of-time.'); + } + + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return global.nativeCallSyncHook(moduleID, methodID, args); + }; + } else { + fn = function fn() { + for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + args[_key3] = arguments[_key3]; + } + + var lastArg = args.length > 0 ? args[args.length - 1] : null; + var secondLastArg = args.length > 1 ? args[args.length - 2] : null; + var hasSuccessCallback = typeof lastArg === 'function'; + var hasErrorCallback = typeof secondLastArg === 'function'; + hasErrorCallback && invariant(hasSuccessCallback, 'Cannot have a non-function arg after a function arg.'); + var onSuccess = hasSuccessCallback ? lastArg : null; + var onFail = hasErrorCallback ? secondLastArg : null; + var callbackCount = hasSuccessCallback + hasErrorCallback; + args = args.slice(0, args.length - callbackCount); + BatchedBridge.enqueueNativeCall(moduleID, methodID, args, onFail, onSuccess); + }; + } + + fn.type = type; + return fn; + } + + function arrayContains(array, value) { + return array.indexOf(value) !== -1; + } + + function createErrorFromErrorData(errorData) { + var _ref = errorData || {}, + message = _ref.message, + extraErrorInfo = _objectWithoutProperties(_ref, ["message"]); + + var error = new Error(message); + error.framesToPop = 1; + return _extends(error, extraErrorInfo); + } + + var NativeModules = {}; + + if (global.nativeModuleProxy) { + NativeModules = global.nativeModuleProxy; + } else if (!global.nativeExtensions) { + var bridgeConfig = global.__fbBatchedBridgeConfig; + invariant(bridgeConfig, '__fbBatchedBridgeConfig is not set, cannot invoke native modules'); + + var defineLazyObjectProperty = _$$_REQUIRE(_dependencyMap[2], 'defineLazyObjectProperty'); + + (bridgeConfig.remoteModuleConfig || []).forEach(function (config, moduleID) { + var info = genModule(config, moduleID); + + if (!info) { + return; + } + + if (info.module) { + NativeModules[info.name] = info.module; + } else { + defineLazyObjectProperty(NativeModules, info.name, { + get: function get() { + return loadModule(info.name, moduleID); + } + }); + } + }); + } + + module.exports = NativeModules; +},168,[169,166,185],"node_modules/react-native/Libraries/BatchedBridge/NativeModules.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var MessageQueue = _$$_REQUIRE(_dependencyMap[0], 'MessageQueue'); + + var BatchedBridge = new MessageQueue(); + Object.defineProperty(global, '__fbBatchedBridge', { + configurable: true, + value: BatchedBridge + }); + module.exports = BatchedBridge; +},169,[170],"node_modules/react-native/Libraries/BatchedBridge/BatchedBridge.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + + function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + + function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + + function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var ErrorUtils = _$$_REQUIRE(_dependencyMap[0], 'ErrorUtils'); + + var Systrace = _$$_REQUIRE(_dependencyMap[1], 'Systrace'); + + var deepFreezeAndThrowOnMutationInDev = _$$_REQUIRE(_dependencyMap[2], 'deepFreezeAndThrowOnMutationInDev'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var stringifySafe = _$$_REQUIRE(_dependencyMap[4], 'stringifySafe'); + + var TO_JS = 0; + var TO_NATIVE = 1; + var MODULE_IDS = 0; + var METHOD_IDS = 1; + var PARAMS = 2; + var MIN_TIME_BETWEEN_FLUSHES_MS = 5; + var TRACE_TAG_REACT_APPS = 1 << 17; + var DEBUG_INFO_LIMIT = 32; + var JSTimers = null; + + var MessageQueue = function () { + function MessageQueue() { + _classCallCheck(this, MessageQueue); + + this._lazyCallableModules = {}; + this._queue = [[], [], [], 0]; + this._successCallbacks = {}; + this._failureCallbacks = {}; + this._callID = 0; + this._lastFlush = 0; + this._eventLoopStartTime = new Date().getTime(); + + if (__DEV__) { + this._debugInfo = {}; + this._remoteModuleTable = {}; + this._remoteMethodTable = {}; + } + + this.callFunctionReturnFlushedQueue = this.callFunctionReturnFlushedQueue.bind(this); + this.callFunctionReturnResultAndFlushedQueue = this.callFunctionReturnResultAndFlushedQueue.bind(this); + this.flushedQueue = this.flushedQueue.bind(this); + this.invokeCallbackAndReturnFlushedQueue = this.invokeCallbackAndReturnFlushedQueue.bind(this); + } + + _createClass(MessageQueue, [{ + key: "callFunctionReturnFlushedQueue", + value: function callFunctionReturnFlushedQueue(module, method, args) { + var _this = this; + + this.__guard(function () { + _this.__callFunction(module, method, args); + }); + + return this.flushedQueue(); + } + }, { + key: "callFunctionReturnResultAndFlushedQueue", + value: function callFunctionReturnResultAndFlushedQueue(module, method, args) { + var _this2 = this; + + var result; + + this.__guard(function () { + result = _this2.__callFunction(module, method, args); + }); + + return [result, this.flushedQueue()]; + } + }, { + key: "invokeCallbackAndReturnFlushedQueue", + value: function invokeCallbackAndReturnFlushedQueue(cbID, args) { + var _this3 = this; + + this.__guard(function () { + _this3.__invokeCallback(cbID, args); + }); + + return this.flushedQueue(); + } + }, { + key: "flushedQueue", + value: function flushedQueue() { + var _this4 = this; + + this.__guard(function () { + _this4.__callImmediates(); + }); + + var queue = this._queue; + this._queue = [[], [], [], this._callID]; + return queue[0].length ? queue : null; + } + }, { + key: "getEventLoopRunningTime", + value: function getEventLoopRunningTime() { + return new Date().getTime() - this._eventLoopStartTime; + } + }, { + key: "registerCallableModule", + value: function registerCallableModule(name, module) { + this._lazyCallableModules[name] = function () { + return module; + }; + } + }, { + key: "registerLazyCallableModule", + value: function registerLazyCallableModule(name, factory) { + var module; + var getValue = factory; + + this._lazyCallableModules[name] = function () { + if (getValue) { + module = getValue(); + getValue = null; + } + + return module; + }; + } + }, { + key: "getCallableModule", + value: function getCallableModule(name) { + var getValue = this._lazyCallableModules[name]; + return getValue ? getValue() : null; + } + }, { + key: "enqueueNativeCall", + value: function enqueueNativeCall(moduleID, methodID, params, onFail, onSucc) { + if (onFail || onSucc) { + if (__DEV__) { + this._debugInfo[this._callID] = [moduleID, methodID]; + + if (this._callID > DEBUG_INFO_LIMIT) { + delete this._debugInfo[this._callID - DEBUG_INFO_LIMIT]; + } + } + + onFail && params.push(this._callID << 1); + onSucc && params.push(this._callID << 1 | 1); + this._successCallbacks[this._callID] = onSucc; + this._failureCallbacks[this._callID] = onFail; + } + + if (__DEV__) { + global.nativeTraceBeginAsyncFlow && global.nativeTraceBeginAsyncFlow(TRACE_TAG_REACT_APPS, 'native', this._callID); + } + + this._callID++; + + this._queue[MODULE_IDS].push(moduleID); + + this._queue[METHOD_IDS].push(methodID); + + if (__DEV__) { + var isValidArgument = function isValidArgument(val) { + var t = typeof val; + + if (t === 'undefined' || t === 'null' || t === 'boolean' || t === 'number' || t === 'string') { + return true; + } + + if (t === 'function' || t !== 'object') { + return false; + } + + if (Array.isArray(val)) { + return val.every(isValidArgument); + } + + for (var k in val) { + if (typeof val[k] !== 'function' && !isValidArgument(val[k])) { + return false; + } + } + + return true; + }; + + invariant(isValidArgument(params), '%s is not usable as a native method argument', params); + deepFreezeAndThrowOnMutationInDev(params); + } + + this._queue[PARAMS].push(params); + + var now = new Date().getTime(); + + if (global.nativeFlushQueueImmediate && now - this._lastFlush >= MIN_TIME_BETWEEN_FLUSHES_MS) { + var queue = this._queue; + this._queue = [[], [], [], this._callID]; + this._lastFlush = now; + global.nativeFlushQueueImmediate(queue); + } + + Systrace.counterEvent('pending_js_to_native_queue', this._queue[0].length); + + if (__DEV__ && this.__spy && isFinite(moduleID)) { + this.__spy({ + type: TO_NATIVE, + module: this._remoteModuleTable[moduleID], + method: this._remoteMethodTable[moduleID][methodID], + args: params + }); + } else if (this.__spy) { + this.__spy({ + type: TO_NATIVE, + module: moduleID + '', + method: methodID, + args: params + }); + } + } + }, { + key: "createDebugLookup", + value: function createDebugLookup(moduleID, name, methods) { + if (__DEV__) { + this._remoteModuleTable[moduleID] = name; + this._remoteMethodTable[moduleID] = methods; + } + } + }, { + key: "__guard", + value: function __guard(fn) { + if (this.__shouldPauseOnThrow()) { + fn(); + } else { + try { + fn(); + } catch (error) { + ErrorUtils.reportFatalError(error); + } + } + } + }, { + key: "__shouldPauseOnThrow", + value: function __shouldPauseOnThrow() { + return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true; + } + }, { + key: "__callImmediates", + value: function __callImmediates() { + Systrace.beginEvent('JSTimers.callImmediates()'); + + if (!JSTimers) { + JSTimers = _$$_REQUIRE(_dependencyMap[5], 'JSTimers'); + } + + JSTimers.callImmediates(); + Systrace.endEvent(); + } + }, { + key: "__callFunction", + value: function __callFunction(module, method, args) { + this._lastFlush = new Date().getTime(); + this._eventLoopStartTime = this._lastFlush; + + if (__DEV__ || this.__spy) { + Systrace.beginEvent(module + "." + method + "(" + stringifySafe(args) + ")"); + } else { + Systrace.beginEvent(module + "." + method + "(...)"); + } + + if (this.__spy) { + this.__spy({ + type: TO_JS, + module: module, + method: method, + args: args + }); + } + + var moduleMethods = this.getCallableModule(module); + invariant(!!moduleMethods, 'Module %s is not a registered callable module (calling %s)', module, method); + invariant(!!moduleMethods[method], 'Method %s does not exist on module %s', method, module); + var result = moduleMethods[method].apply(moduleMethods, args); + Systrace.endEvent(); + return result; + } + }, { + key: "__invokeCallback", + value: function __invokeCallback(cbID, args) { + this._lastFlush = new Date().getTime(); + this._eventLoopStartTime = this._lastFlush; + var callID = cbID >>> 1; + var isSuccess = cbID & 1; + var callback = isSuccess ? this._successCallbacks[callID] : this._failureCallbacks[callID]; + + if (__DEV__) { + var debug = this._debugInfo[callID]; + + var _module = debug && this._remoteModuleTable[debug[0]]; + + var _method = debug && this._remoteMethodTable[debug[0]][debug[1]]; + + if (!callback) { + var errorMessage = "Callback with id " + cbID + ": " + _module + "." + _method + "() not found"; + + if (_method) { + errorMessage = "The callback " + _method + "() exists in module " + _module + ", " + 'but only one callback may be registered to a function in a native module.'; + } + + invariant(callback, errorMessage); + } + + var profileName = debug ? '' : cbID; + + if (callback && this.__spy) { + this.__spy({ + type: TO_JS, + module: null, + method: profileName, + args: args + }); + } + + Systrace.beginEvent("MessageQueue.invokeCallback(" + profileName + ", " + stringifySafe(args) + ")"); + } + + if (!callback) { + return; + } + + delete this._successCallbacks[callID]; + delete this._failureCallbacks[callID]; + callback.apply(void 0, _toConsumableArray(args)); + + if (__DEV__) { + Systrace.endEvent(); + } + } + }], [{ + key: "spy", + value: function spy(spyOrToggle) { + if (spyOrToggle === true) { + MessageQueue.prototype.__spy = function (info) { + console.log((info.type === TO_JS ? 'N->JS' : 'JS->N') + " : " + ("" + (info.module ? info.module + '.' : '') + info.method) + ("(" + JSON.stringify(info.args) + ")")); + }; + } else if (spyOrToggle === false) { + MessageQueue.prototype.__spy = null; + } else { + MessageQueue.prototype.__spy = spyOrToggle; + } + } + }]); + + return MessageQueue; + }(); + + module.exports = MessageQueue; +},170,[171,172,173,166,174,175],"node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + module.exports = global.ErrorUtils; +},171,[],"node_modules/react-native/Libraries/vendor/core/ErrorUtils.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var TRACE_TAG_REACT_APPS = 1 << 17; + var TRACE_TAG_JS_VM_CALLS = 1 << 27; + var _enabled = false; + var _asyncCookie = 0; + var _markStack = []; + + var _markStackIndex = -1; + + var _canInstallReactHook = false; + var REACT_MARKER = "\u269B"; + var userTimingPolyfill = __DEV__ ? { + mark: function mark(markName) { + if (_enabled) { + _markStackIndex++; + _markStack[_markStackIndex] = markName; + var systraceLabel = markName; + + if (markName[0] === REACT_MARKER) { + var indexOfId = markName.lastIndexOf(' (#'); + var cutoffIndex = indexOfId !== -1 ? indexOfId : markName.length; + systraceLabel = markName.slice(2, cutoffIndex); + } + + Systrace.beginEvent(systraceLabel); + } + }, + measure: function measure(measureName, startMark, endMark) { + if (_enabled) { + invariant(typeof measureName === 'string' && typeof startMark === 'string' && typeof endMark === 'undefined', 'Only performance.measure(string, string) overload is supported.'); + var topMark = _markStack[_markStackIndex]; + invariant(startMark === topMark, 'There was a mismatching performance.measure() call. ' + 'Expected "%s" but got "%s."', topMark, startMark); + _markStackIndex--; + Systrace.endEvent(); + } + }, + clearMarks: function clearMarks(markName) { + if (_enabled) { + if (_markStackIndex === -1) { + return; + } + + if (markName === _markStack[_markStackIndex]) { + if (userTimingPolyfill != null) { + userTimingPolyfill.measure(markName, markName); + } + } + } + }, + clearMeasures: function clearMeasures() {} + } : null; + var Systrace = { + installReactHook: function installReactHook() { + if (_enabled) { + if (__DEV__) { + global.performance = userTimingPolyfill; + } + } + + _canInstallReactHook = true; + }, + setEnabled: function setEnabled(enabled) { + if (_enabled !== enabled) { + if (__DEV__) { + if (enabled) { + global.nativeTraceBeginLegacy && global.nativeTraceBeginLegacy(TRACE_TAG_JS_VM_CALLS); + } else { + global.nativeTraceEndLegacy && global.nativeTraceEndLegacy(TRACE_TAG_JS_VM_CALLS); + } + + if (_canInstallReactHook) { + if (enabled && global.performance === undefined) { + global.performance = userTimingPolyfill; + } + } + } + + _enabled = enabled; + } + }, + isEnabled: function isEnabled() { + return _enabled; + }, + beginEvent: function beginEvent(profileName, args) { + if (_enabled) { + profileName = typeof profileName === 'function' ? profileName() : profileName; + global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, profileName, args); + } + }, + endEvent: function endEvent() { + if (_enabled) { + global.nativeTraceEndSection(TRACE_TAG_REACT_APPS); + } + }, + beginAsyncEvent: function beginAsyncEvent(profileName) { + var cookie = _asyncCookie; + + if (_enabled) { + _asyncCookie++; + profileName = typeof profileName === 'function' ? profileName() : profileName; + global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie); + } + + return cookie; + }, + endAsyncEvent: function endAsyncEvent(profileName, cookie) { + if (_enabled) { + profileName = typeof profileName === 'function' ? profileName() : profileName; + global.nativeTraceEndAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie); + } + }, + counterEvent: function counterEvent(profileName, value) { + if (_enabled) { + profileName = typeof profileName === 'function' ? profileName() : profileName; + global.nativeTraceCounter && global.nativeTraceCounter(TRACE_TAG_REACT_APPS, profileName, value); + } + } + }; + + if (__DEV__) { + _$$_REQUIRE.Systrace = Systrace; + } + + module.exports = Systrace; +},172,[166],"node_modules/react-native/Libraries/Performance/Systrace.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function deepFreezeAndThrowOnMutationInDev(object) { + if (__DEV__) { + if (typeof object !== 'object' || object === null || Object.isFrozen(object) || Object.isSealed(object)) { + return object; + } + + var keys = Object.keys(object); + var _hasOwnProperty = Object.prototype.hasOwnProperty; + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + + if (_hasOwnProperty.call(object, key)) { + Object.defineProperty(object, key, { + get: identity.bind(null, object[key]) + }); + Object.defineProperty(object, key, { + set: throwOnImmutableMutation.bind(null, key) + }); + } + } + + Object.freeze(object); + Object.seal(object); + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + + if (_hasOwnProperty.call(object, key)) { + deepFreezeAndThrowOnMutationInDev(object[key]); + } + } + } + + return object; + } + + function throwOnImmutableMutation(key, value) { + throw Error('You attempted to set the key `' + key + '` with the value `' + JSON.stringify(value) + '` on an object that is meant to be immutable ' + 'and has been frozen.'); + } + + function identity(value) { + return value; + } + + module.exports = deepFreezeAndThrowOnMutationInDev; +},173,[],"node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function stringifySafe(arg) { + var ret; + var type = typeof arg; + + if (arg === undefined) { + ret = 'undefined'; + } else if (arg === null) { + ret = 'null'; + } else if (type === 'string') { + ret = '"' + arg + '"'; + } else if (type === 'function') { + try { + ret = arg.toString(); + } catch (e) { + ret = '[function unknown]'; + } + } else { + try { + ret = JSON.stringify(arg); + } catch (e) { + if (typeof arg.toString === 'function') { + try { + ret = arg.toString(); + } catch (E) {} + } + } + } + + return ret || '["' + type + '" failed to stringify]'; + } + + module.exports = stringifySafe; +},174,[],"node_modules/react-native/Libraries/Utilities/stringifySafe.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var Systrace = _$$_REQUIRE(_dependencyMap[1], 'Systrace'); + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + var _require = _$$_REQUIRE(_dependencyMap[3], 'NativeModules'), + Timing = _require.Timing; + + var _performanceNow = null; + + function performanceNow() { + if (!_performanceNow) { + _performanceNow = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/performanceNow'); + } + + return _performanceNow(); + } + + var FRAME_DURATION = 1000 / 60; + var IDLE_CALLBACK_FRAME_DEADLINE = 1; + var MAX_TIMER_DURATION_MS = 60 * 1000; + var IS_ANDROID = Platform.OS === 'android'; + var ANDROID_LONG_TIMER_MESSAGE = 'Setting a timer for a long period of time, i.e. multiple minutes, is a ' + 'performance and correctness issue on Android as it keeps the timer ' + 'module awake, and timers can only be called when the app is in the foreground. ' + 'See https://github.com/facebook/react-native/issues/12981 for more info.'; + var callbacks = []; + var types = []; + var timerIDs = []; + var immediates = []; + var requestIdleCallbacks = []; + var requestIdleCallbackTimeouts = {}; + var identifiers = []; + var GUID = 1; + var errors = null; + var hasEmittedTimeDriftWarning = false; + + function _getFreeIndex() { + var freeIndex = timerIDs.indexOf(null); + + if (freeIndex === -1) { + freeIndex = timerIDs.length; + } + + return freeIndex; + } + + function _allocateCallback(func, type) { + var id = GUID++; + + var freeIndex = _getFreeIndex(); + + timerIDs[freeIndex] = id; + callbacks[freeIndex] = func; + types[freeIndex] = type; + + if (__DEV__) { + var parseErrorStack = _$$_REQUIRE(_dependencyMap[5], 'parseErrorStack'); + + var error = new Error(); + error.framesToPop = 1; + var stack = parseErrorStack(error); + + if (stack) { + identifiers[freeIndex] = stack.shift(); + } + } + + return id; + } + + function _callTimer(timerID, frameTime, didTimeout) { + _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/warning')(timerID <= GUID, 'Tried to call timer with ID %s but no such timer exists.', timerID); + + var timerIndex = timerIDs.indexOf(timerID); + + if (timerIndex === -1) { + return; + } + + var type = types[timerIndex]; + var callback = callbacks[timerIndex]; + + if (!callback || !type) { + console.error('No callback found for timerID ' + timerID); + return; + } + + if (__DEV__) { + var identifier = identifiers[timerIndex] || {}; + Systrace.beginEvent('Systrace.callTimer: ' + identifier.methodName); + } + + if (type === 'setTimeout' || type === 'setImmediate' || type === 'requestAnimationFrame' || type === 'requestIdleCallback') { + _clearIndex(timerIndex); + } + + try { + if (type === 'setTimeout' || type === 'setInterval' || type === 'setImmediate') { + callback(); + } else if (type === 'requestAnimationFrame') { + callback(performanceNow()); + } else if (type === 'requestIdleCallback') { + callback({ + timeRemaining: function timeRemaining() { + return Math.max(0, FRAME_DURATION - (performanceNow() - frameTime)); + }, + didTimeout: !!didTimeout + }); + } else { + console.error('Tried to call a callback with invalid type: ' + type); + } + } catch (e) { + if (!errors) { + errors = [e]; + } else { + errors.push(e); + } + } + + if (__DEV__) { + Systrace.endEvent(); + } + } + + function _callImmediatesPass() { + if (__DEV__) { + Systrace.beginEvent('callImmediatesPass()'); + } + + if (immediates.length > 0) { + var passImmediates = immediates.slice(); + immediates = []; + + for (var i = 0; i < passImmediates.length; ++i) { + _callTimer(passImmediates[i], 0); + } + } + + if (__DEV__) { + Systrace.endEvent(); + } + + return immediates.length > 0; + } + + function _clearIndex(i) { + timerIDs[i] = null; + callbacks[i] = null; + types[i] = null; + identifiers[i] = null; + } + + function _freeCallback(timerID) { + if (timerID == null) { + return; + } + + var index = timerIDs.indexOf(timerID); + + if (index !== -1) { + _clearIndex(index); + + var type = types[index]; + + if (type !== 'setImmediate' && type !== 'requestIdleCallback') { + Timing.deleteTimer(timerID); + } + } + } + + var JSTimers = { + setTimeout: function setTimeout(func, duration) { + for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + args[_key - 2] = arguments[_key]; + } + + if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) { + console.warn(ANDROID_LONG_TIMER_MESSAGE + '\n' + '(Saw setTimeout with duration ' + duration + 'ms)'); + } + + var id = _allocateCallback(function () { + return func.apply(undefined, args); + }, 'setTimeout'); + + Timing.createTimer(id, duration || 0, Date.now(), false); + return id; + }, + setInterval: function setInterval(func, duration) { + for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) { + console.warn(ANDROID_LONG_TIMER_MESSAGE + '\n' + '(Saw setInterval with duration ' + duration + 'ms)'); + } + + var id = _allocateCallback(function () { + return func.apply(undefined, args); + }, 'setInterval'); + + Timing.createTimer(id, duration || 0, Date.now(), true); + return id; + }, + setImmediate: function setImmediate(func) { + for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { + args[_key3 - 1] = arguments[_key3]; + } + + var id = _allocateCallback(function () { + return func.apply(undefined, args); + }, 'setImmediate'); + + immediates.push(id); + return id; + }, + requestAnimationFrame: function requestAnimationFrame(func) { + var id = _allocateCallback(func, 'requestAnimationFrame'); + + Timing.createTimer(id, 1, Date.now(), false); + return id; + }, + requestIdleCallback: function requestIdleCallback(func, options) { + if (requestIdleCallbacks.length === 0) { + Timing.setSendIdleEvents(true); + } + + var timeout = options && options.timeout; + + var id = _allocateCallback(timeout != null ? function (deadline) { + var timeoutId = requestIdleCallbackTimeouts[id]; + + if (timeoutId) { + JSTimers.clearTimeout(timeoutId); + delete requestIdleCallbackTimeouts[id]; + } + + return func(deadline); + } : func, 'requestIdleCallback'); + + requestIdleCallbacks.push(id); + + if (timeout != null) { + var timeoutId = JSTimers.setTimeout(function () { + var index = requestIdleCallbacks.indexOf(id); + + if (index > -1) { + requestIdleCallbacks.splice(index, 1); + + _callTimer(id, performanceNow(), true); + } + + delete requestIdleCallbackTimeouts[id]; + + if (requestIdleCallbacks.length === 0) { + Timing.setSendIdleEvents(false); + } + }, timeout); + requestIdleCallbackTimeouts[id] = timeoutId; + } + + return id; + }, + cancelIdleCallback: function cancelIdleCallback(timerID) { + _freeCallback(timerID); + + var index = requestIdleCallbacks.indexOf(timerID); + + if (index !== -1) { + requestIdleCallbacks.splice(index, 1); + } + + var timeoutId = requestIdleCallbackTimeouts[timerID]; + + if (timeoutId) { + JSTimers.clearTimeout(timeoutId); + delete requestIdleCallbackTimeouts[timerID]; + } + + if (requestIdleCallbacks.length === 0) { + Timing.setSendIdleEvents(false); + } + }, + clearTimeout: function clearTimeout(timerID) { + _freeCallback(timerID); + }, + clearInterval: function clearInterval(timerID) { + _freeCallback(timerID); + }, + clearImmediate: function clearImmediate(timerID) { + _freeCallback(timerID); + + var index = immediates.indexOf(timerID); + + if (index !== -1) { + immediates.splice(index, 1); + } + }, + cancelAnimationFrame: function cancelAnimationFrame(timerID) { + _freeCallback(timerID); + }, + callTimers: function callTimers(timersToCall) { + invariant(timersToCall.length !== 0, 'Cannot call `callTimers` with an empty list of IDs.'); + errors = null; + + for (var i = 0; i < timersToCall.length; i++) { + _callTimer(timersToCall[i], 0); + } + + if (errors) { + var errorCount = errors.length; + + if (errorCount > 1) { + for (var ii = 1; ii < errorCount; ii++) { + JSTimers.setTimeout(function (error) { + throw error; + }.bind(null, errors[ii]), 0); + } + } + + throw errors[0]; + } + }, + callIdleCallbacks: function callIdleCallbacks(frameTime) { + if (FRAME_DURATION - (performanceNow() - frameTime) < IDLE_CALLBACK_FRAME_DEADLINE) { + return; + } + + errors = null; + + if (requestIdleCallbacks.length > 0) { + var passIdleCallbacks = requestIdleCallbacks.slice(); + requestIdleCallbacks = []; + + for (var i = 0; i < passIdleCallbacks.length; ++i) { + _callTimer(passIdleCallbacks[i], frameTime); + } + } + + if (requestIdleCallbacks.length === 0) { + Timing.setSendIdleEvents(false); + } + + if (errors) { + errors.forEach(function (error) { + return JSTimers.setTimeout(function () { + throw error; + }, 0); + }); + } + }, + callImmediates: function callImmediates() { + errors = null; + + while (_callImmediatesPass()) {} + + if (errors) { + errors.forEach(function (error) { + return JSTimers.setTimeout(function () { + throw error; + }, 0); + }); + } + }, + emitTimeDriftWarning: function emitTimeDriftWarning(warningMessage) { + if (hasEmittedTimeDriftWarning) { + return; + } + + hasEmittedTimeDriftWarning = true; + console.warn(warningMessage); + } + }; + var ExportedJSTimers; + + if (!Timing) { + console.warn("Timing native module is not available, can't set timers."); + ExportedJSTimers = { + callImmediates: JSTimers.callImmediates, + setImmediate: JSTimers.setImmediate + }; + } else { + ExportedJSTimers = JSTimers; + } + + module.exports = ExportedJSTimers; +},175,[176,172,166,168,177,180,183],"node_modules/react-native/Libraries/Core/Timers/JSTimers.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); + + var Platform = { + OS: 'ios', + + get Version() { + var constants = NativeModules.PlatformConstants; + return constants && constants.osVersion; + }, + + get isPad() { + var constants = NativeModules.PlatformConstants; + return constants ? constants.interfaceIdiom === 'pad' : false; + }, + + get isTVOS() { + return Platform.isTV; + }, + + get isTV() { + var constants = NativeModules.PlatformConstants; + return constants ? constants.interfaceIdiom === 'tv' : false; + }, + + get isTesting() { + var constants = NativeModules.PlatformConstants; + return constants && constants.isTesting; + }, + + select: function select(obj) { + return 'ios' in obj ? obj.ios : obj.default; + } + }; + module.exports = Platform; +},176,[168],"node_modules/react-native/Libraries/Utilities/Platform.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var performance = _$$_REQUIRE(_dependencyMap[0], './performance'); + + var performanceNow; + + if (performance.now) { + performanceNow = function performanceNow() { + return performance.now(); + }; + } else { + performanceNow = function performanceNow() { + return Date.now(); + }; + } + + module.exports = performanceNow; +},177,[178],"node_modules/react-native/node_modules/fbjs/lib/performanceNow.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var ExecutionEnvironment = _$$_REQUIRE(_dependencyMap[0], './ExecutionEnvironment'); + + var performance; + + if (ExecutionEnvironment.canUseDOM) { + performance = window.performance || window.msPerformance || window.webkitPerformance; + } + + module.exports = performance || {}; +},178,[179],"node_modules/react-native/node_modules/fbjs/lib/performance.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + var ExecutionEnvironment = { + canUseDOM: canUseDOM, + canUseWorkers: typeof Worker !== 'undefined', + canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent), + canUseViewport: canUseDOM && !!window.screen, + isInWorker: !canUseDOM + }; + module.exports = ExecutionEnvironment; +},179,[],"node_modules/react-native/node_modules/fbjs/lib/ExecutionEnvironment.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function parseErrorStack(e) { + if (!e || !e.stack) { + return []; + } + + var stacktraceParser = _$$_REQUIRE(_dependencyMap[0], 'stacktrace-parser'); + + var stack = Array.isArray(e.stack) ? e.stack : stacktraceParser.parse(e.stack); + var framesToPop = typeof e.framesToPop === 'number' ? e.framesToPop : 0; + + while (framesToPop--) { + stack.shift(); + } + + return stack; + } + + module.exports = parseErrorStack; +},180,[181],"node_modules/react-native/Libraries/Core/Devtools/parseErrorStack.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], './lib/stacktrace-parser.js'); +},181,[182],"node_modules/stacktrace-parser/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var UNKNOWN_FUNCTION = ''; + var StackTraceParser = { + parse: function parse(stackString) { + var chrome = /^\s*at (?:(?:(?:Anonymous function)?|((?:\[object object\])?\S+(?: \[as \S+\])?)) )?\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i, + gecko = /^(?:\s*([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i, + node = /^\s*at (?:((?:\[object object\])?\S+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i, + lines = stackString.split('\n'), + stack = [], + parts, + element; + + for (var i = 0, j = lines.length; i < j; ++i) { + if (parts = gecko.exec(lines[i])) { + element = { + 'file': parts[3], + 'methodName': parts[1] || UNKNOWN_FUNCTION, + 'lineNumber': +parts[4], + 'column': parts[5] ? +parts[5] : null + }; + } else if (parts = chrome.exec(lines[i])) { + element = { + 'file': parts[2], + 'methodName': parts[1] || UNKNOWN_FUNCTION, + 'lineNumber': +parts[3], + 'column': parts[4] ? +parts[4] : null + }; + } else if (parts = node.exec(lines[i])) { + element = { + 'file': parts[2], + 'methodName': parts[1] || UNKNOWN_FUNCTION, + 'lineNumber': +parts[3], + 'column': parts[4] ? +parts[4] : null + }; + } else { + continue; + } + + stack.push(element); + } + + return stack; + } + }; + module.exports = StackTraceParser; +},182,[],"node_modules/stacktrace-parser/lib/stacktrace-parser.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var emptyFunction = _$$_REQUIRE(_dependencyMap[0], './emptyFunction'); + + var warning = emptyFunction; + + if (process.env.NODE_ENV !== 'production') { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + + if (typeof console !== 'undefined') { + console.error(message); + } + + try { + throw new Error(message); + } catch (x) {} + }; + + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } + + if (format.indexOf('Failed Composite propType: ') === 0) { + return; + } + + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(undefined, [format].concat(args)); + } + }; + } + + module.exports = warning; +},183,[184],"node_modules/react-native/node_modules/fbjs/lib/warning.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + function makeEmptyFunction(arg) { + return function () { + return arg; + }; + } + + var emptyFunction = function emptyFunction() {}; + + emptyFunction.thatReturns = makeEmptyFunction; + emptyFunction.thatReturnsFalse = makeEmptyFunction(false); + emptyFunction.thatReturnsTrue = makeEmptyFunction(true); + emptyFunction.thatReturnsNull = makeEmptyFunction(null); + + emptyFunction.thatReturnsThis = function () { + return this; + }; + + emptyFunction.thatReturnsArgument = function (arg) { + return arg; + }; + + module.exports = emptyFunction; +},184,[],"node_modules/react-native/node_modules/fbjs/lib/emptyFunction.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function defineLazyObjectProperty(object, name, descriptor) { + var get = descriptor.get; + var enumerable = descriptor.enumerable !== false; + var writable = descriptor.writable !== false; + var value; + var valueSet = false; + + function getValue() { + if (!valueSet) { + valueSet = true; + setValue(get()); + } + + return value; + } + + function setValue(newValue) { + value = newValue; + valueSet = true; + Object.defineProperty(object, name, { + value: newValue, + configurable: true, + enumerable: enumerable, + writable: writable + }); + } + + Object.defineProperty(object, name, { + get: getValue, + set: setValue, + configurable: true, + enumerable: enumerable + }); + } + + module.exports = defineLazyObjectProperty; +},185,[],"node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Promise = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/Promise.native'); + + if (__DEV__) { + _$$_REQUIRE(_dependencyMap[1], 'promise/setimmediate/rejection-tracking').enable({ + allRejections: true, + onUnhandled: function onUnhandled(id) { + var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var message; + var stack; + var stringValue = Object.prototype.toString.call(error); + + if (stringValue === '[object Error]') { + message = Error.prototype.toString.call(error); + stack = error.stack; + } else { + message = _$$_REQUIRE(_dependencyMap[2], 'pretty-format')(error); + } + + var warning = "Possible Unhandled Promise Rejection (id: " + id + "):\n" + (message + "\n") + (stack == null ? '' : stack); + console.warn(warning); + }, + onHandled: function onHandled(id) { + var warning = "Promise Rejection Handled (id: " + id + ")\n" + 'This means you can ignore any previous messages of the form ' + ("\"Possible Unhandled Promise Rejection (id: " + id + "):\""); + console.warn(warning); + } + }); + } + + module.exports = Promise; +},186,[187,191,192],"node_modules/react-native/Libraries/Promise.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Promise = _$$_REQUIRE(_dependencyMap[0], 'promise/setimmediate/es6-extensions'); + + _$$_REQUIRE(_dependencyMap[1], 'promise/setimmediate/done'); + + Promise.prototype['finally'] = function (onSettled) { + return this.then(onSettled, onSettled); + }; + + module.exports = Promise; +},187,[188,190],"node_modules/react-native/node_modules/fbjs/lib/Promise.native.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Promise = _$$_REQUIRE(_dependencyMap[0], './core.js'); + + module.exports = Promise; + var TRUE = valuePromise(true); + var FALSE = valuePromise(false); + var NULL = valuePromise(null); + var UNDEFINED = valuePromise(undefined); + var ZERO = valuePromise(0); + var EMPTYSTRING = valuePromise(''); + + function valuePromise(value) { + var p = new Promise(Promise._61); + p._65 = 1; + p._55 = value; + return p; + } + + Promise.resolve = function (value) { + if (value instanceof Promise) return value; + if (value === null) return NULL; + if (value === undefined) return UNDEFINED; + if (value === true) return TRUE; + if (value === false) return FALSE; + if (value === 0) return ZERO; + if (value === '') return EMPTYSTRING; + + if (typeof value === 'object' || typeof value === 'function') { + try { + var then = value.then; + + if (typeof then === 'function') { + return new Promise(then.bind(value)); + } + } catch (ex) { + return new Promise(function (resolve, reject) { + reject(ex); + }); + } + } + + return valuePromise(value); + }; + + Promise.all = function (arr) { + var args = Array.prototype.slice.call(arr); + return new Promise(function (resolve, reject) { + if (args.length === 0) return resolve([]); + var remaining = args.length; + + function res(i, val) { + if (val && (typeof val === 'object' || typeof val === 'function')) { + if (val instanceof Promise && val.then === Promise.prototype.then) { + while (val._65 === 3) { + val = val._55; + } + + if (val._65 === 1) return res(i, val._55); + if (val._65 === 2) reject(val._55); + val.then(function (val) { + res(i, val); + }, reject); + return; + } else { + var then = val.then; + + if (typeof then === 'function') { + var p = new Promise(then.bind(val)); + p.then(function (val) { + res(i, val); + }, reject); + return; + } + } + } + + args[i] = val; + + if (--remaining === 0) { + resolve(args); + } + } + + for (var i = 0; i < args.length; i++) { + res(i, args[i]); + } + }); + }; + + Promise.reject = function (value) { + return new Promise(function (resolve, reject) { + reject(value); + }); + }; + + Promise.race = function (values) { + return new Promise(function (resolve, reject) { + values.forEach(function (value) { + Promise.resolve(value).then(resolve, reject); + }); + }); + }; + + Promise.prototype['catch'] = function (onRejected) { + return this.then(null, onRejected); + }; +},188,[189],"node_modules/promise/setimmediate/es6-extensions.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function noop() {} + + var LAST_ERROR = null; + var IS_ERROR = {}; + + function getThen(obj) { + try { + return obj.then; + } catch (ex) { + LAST_ERROR = ex; + return IS_ERROR; + } + } + + function tryCallOne(fn, a) { + try { + return fn(a); + } catch (ex) { + LAST_ERROR = ex; + return IS_ERROR; + } + } + + function tryCallTwo(fn, a, b) { + try { + fn(a, b); + } catch (ex) { + LAST_ERROR = ex; + return IS_ERROR; + } + } + + module.exports = Promise; + + function Promise(fn) { + if (typeof this !== 'object') { + throw new TypeError('Promises must be constructed via new'); + } + + if (typeof fn !== 'function') { + throw new TypeError('Promise constructor\'s argument is not a function'); + } + + this._40 = 0; + this._65 = 0; + this._55 = null; + this._72 = null; + if (fn === noop) return; + doResolve(fn, this); + } + + Promise._37 = null; + Promise._87 = null; + Promise._61 = noop; + + Promise.prototype.then = function (onFulfilled, onRejected) { + if (this.constructor !== Promise) { + return safeThen(this, onFulfilled, onRejected); + } + + var res = new Promise(noop); + handle(this, new Handler(onFulfilled, onRejected, res)); + return res; + }; + + function safeThen(self, onFulfilled, onRejected) { + return new self.constructor(function (resolve, reject) { + var res = new Promise(noop); + res.then(resolve, reject); + handle(self, new Handler(onFulfilled, onRejected, res)); + }); + } + + function handle(self, deferred) { + while (self._65 === 3) { + self = self._55; + } + + if (Promise._37) { + Promise._37(self); + } + + if (self._65 === 0) { + if (self._40 === 0) { + self._40 = 1; + self._72 = deferred; + return; + } + + if (self._40 === 1) { + self._40 = 2; + self._72 = [self._72, deferred]; + return; + } + + self._72.push(deferred); + + return; + } + + handleResolved(self, deferred); + } + + function handleResolved(self, deferred) { + setImmediate(function () { + var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected; + + if (cb === null) { + if (self._65 === 1) { + resolve(deferred.promise, self._55); + } else { + reject(deferred.promise, self._55); + } + + return; + } + + var ret = tryCallOne(cb, self._55); + + if (ret === IS_ERROR) { + reject(deferred.promise, LAST_ERROR); + } else { + resolve(deferred.promise, ret); + } + }); + } + + function resolve(self, newValue) { + if (newValue === self) { + return reject(self, new TypeError('A promise cannot be resolved with itself.')); + } + + if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) { + var then = getThen(newValue); + + if (then === IS_ERROR) { + return reject(self, LAST_ERROR); + } + + if (then === self.then && newValue instanceof Promise) { + self._65 = 3; + self._55 = newValue; + finale(self); + return; + } else if (typeof then === 'function') { + doResolve(then.bind(newValue), self); + return; + } + } + + self._65 = 1; + self._55 = newValue; + finale(self); + } + + function reject(self, newValue) { + self._65 = 2; + self._55 = newValue; + + if (Promise._87) { + Promise._87(self, newValue); + } + + finale(self); + } + + function finale(self) { + if (self._40 === 1) { + handle(self, self._72); + self._72 = null; + } + + if (self._40 === 2) { + for (var i = 0; i < self._72.length; i++) { + handle(self, self._72[i]); + } + + self._72 = null; + } + } + + function Handler(onFulfilled, onRejected, promise) { + this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; + this.onRejected = typeof onRejected === 'function' ? onRejected : null; + this.promise = promise; + } + + function doResolve(fn, promise) { + var done = false; + var res = tryCallTwo(fn, function (value) { + if (done) return; + done = true; + resolve(promise, value); + }, function (reason) { + if (done) return; + done = true; + reject(promise, reason); + }); + + if (!done && res === IS_ERROR) { + done = true; + reject(promise, LAST_ERROR); + } + } +},189,[],"node_modules/promise/setimmediate/core.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Promise = _$$_REQUIRE(_dependencyMap[0], './core.js'); + + module.exports = Promise; + + Promise.prototype.done = function (onFulfilled, onRejected) { + var self = arguments.length ? this.then.apply(this, arguments) : this; + self.then(null, function (err) { + setTimeout(function () { + throw err; + }, 0); + }); + }; +},190,[189],"node_modules/promise/setimmediate/done.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Promise = _$$_REQUIRE(_dependencyMap[0], './core'); + + var DEFAULT_WHITELIST = [ReferenceError, TypeError, RangeError]; + var enabled = false; + exports.disable = disable; + + function disable() { + enabled = false; + Promise._37 = null; + Promise._87 = null; + } + + exports.enable = enable; + + function enable(options) { + options = options || {}; + if (enabled) disable(); + enabled = true; + var id = 0; + var displayId = 0; + var rejections = {}; + + Promise._37 = function (promise) { + if (promise._65 === 2 && rejections[promise._51]) { + if (rejections[promise._51].logged) { + onHandled(promise._51); + } else { + clearTimeout(rejections[promise._51].timeout); + } + + delete rejections[promise._51]; + } + }; + + Promise._87 = function (promise, err) { + if (promise._40 === 0) { + promise._51 = id++; + rejections[promise._51] = { + displayId: null, + error: err, + timeout: setTimeout(onUnhandled.bind(null, promise._51), matchWhitelist(err, DEFAULT_WHITELIST) ? 100 : 2000), + logged: false + }; + } + }; + + function onUnhandled(id) { + if (options.allRejections || matchWhitelist(rejections[id].error, options.whitelist || DEFAULT_WHITELIST)) { + rejections[id].displayId = displayId++; + + if (options.onUnhandled) { + rejections[id].logged = true; + options.onUnhandled(rejections[id].displayId, rejections[id].error); + } else { + rejections[id].logged = true; + logError(rejections[id].displayId, rejections[id].error); + } + } + } + + function onHandled(id) { + if (rejections[id].logged) { + if (options.onHandled) { + options.onHandled(rejections[id].displayId, rejections[id].error); + } else if (!rejections[id].onUnhandled) { + console.warn('Promise Rejection Handled (id: ' + rejections[id].displayId + '):'); + console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' + rejections[id].displayId + '.'); + } + } + } + } + + function logError(id, error) { + console.warn('Possible Unhandled Promise Rejection (id: ' + id + '):'); + var errStr = (error && (error.stack || error)) + ''; + errStr.split('\n').forEach(function (line) { + console.warn(' ' + line); + }); + } + + function matchWhitelist(error, list) { + return list.some(function (cls) { + return error instanceof cls; + }); + } +},191,[189],"node_modules/promise/setimmediate/rejection-tracking.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var printString = _$$_REQUIRE(_dependencyMap[0], './printString'); + + var toString = Object.prototype.toString; + var toISOString = Date.prototype.toISOString; + var errorToString = Error.prototype.toString; + var regExpToString = RegExp.prototype.toString; + var symbolToString = (typeof Symbol === "function" ? Symbol.prototype : "@@prototype").toString; + var SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/; + var NEWLINE_REGEXP = /\n/ig; + + var getSymbols = Object.getOwnPropertySymbols || function (obj) { + return []; + }; + + function isToStringedArrayType(toStringed) { + return toStringed === '[object Array]' || toStringed === '[object ArrayBuffer]' || toStringed === '[object DataView]' || toStringed === '[object Float32Array]' || toStringed === '[object Float64Array]' || toStringed === '[object Int8Array]' || toStringed === '[object Int16Array]' || toStringed === '[object Int32Array]' || toStringed === '[object Uint8Array]' || toStringed === '[object Uint8ClampedArray]' || toStringed === '[object Uint16Array]' || toStringed === '[object Uint32Array]'; + } + + function printNumber(val) { + if (val != +val) return 'NaN'; + var isNegativeZero = val === 0 && 1 / val < 0; + return isNegativeZero ? '-0' : '' + val; + } + + function printFunction(val, printFunctionName) { + if (!printFunctionName) { + return '[Function]'; + } else if (val.name === '') { + return '[Function anonymous]'; + } else { + return '[Function ' + val.name + ']'; + } + } + + function printSymbol(val) { + return symbolToString.call(val).replace(SYMBOL_REGEXP, 'Symbol($1)'); + } + + function printError(val) { + return '[' + errorToString.call(val) + ']'; + } + + function printBasicValue(val, printFunctionName, escapeRegex) { + if (val === true || val === false) return '' + val; + if (val === undefined) return 'undefined'; + if (val === null) return 'null'; + var typeOf = typeof val; + if (typeOf === 'number') return printNumber(val); + if (typeOf === 'string') return '"' + printString(val) + '"'; + if (typeOf === 'function') return printFunction(val, printFunctionName); + if (typeOf === 'symbol') return printSymbol(val); + var toStringed = toString.call(val); + if (toStringed === '[object WeakMap]') return 'WeakMap {}'; + if (toStringed === '[object WeakSet]') return 'WeakSet {}'; + if (toStringed === '[object Function]' || toStringed === '[object GeneratorFunction]') return printFunction(val, printFunctionName); + if (toStringed === '[object Symbol]') return printSymbol(val); + if (toStringed === '[object Date]') return toISOString.call(val); + if (toStringed === '[object Error]') return printError(val); + + if (toStringed === '[object RegExp]') { + if (escapeRegex) { + return printString(regExpToString.call(val)); + } + + return regExpToString.call(val); + } + + ; + if (toStringed === '[object Arguments]' && val.length === 0) return 'Arguments []'; + if (isToStringedArrayType(toStringed) && val.length === 0) return val.constructor.name + ' []'; + if (val instanceof Error) return printError(val); + return false; + } + + function printList(list, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { + var body = ''; + + if (list.length) { + body += edgeSpacing; + var innerIndent = prevIndent + indent; + + for (var i = 0; i < list.length; i++) { + body += innerIndent + print(list[i], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + + if (i < list.length - 1) { + body += ',' + spacing; + } + } + + body += (min ? '' : ',') + edgeSpacing + prevIndent; + } + + return '[' + body + ']'; + } + + function printArguments(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { + return (min ? '' : 'Arguments ') + printList(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } + + function printArray(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { + return (min ? '' : val.constructor.name + ' ') + printList(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } + + function printMap(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { + var result = 'Map {'; + var iterator = val.entries(); + var current = iterator.next(); + + if (!current.done) { + result += edgeSpacing; + var innerIndent = prevIndent + indent; + + while (!current.done) { + var key = print(current.value[0], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + var value = print(current.value[1], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + result += innerIndent + key + ' => ' + value; + current = iterator.next(); + + if (!current.done) { + result += ',' + spacing; + } + } + + result += (min ? '' : ',') + edgeSpacing + prevIndent; + } + + return result + '}'; + } + + function printObject(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { + var constructor = min ? '' : val.constructor ? val.constructor.name + ' ' : 'Object '; + var result = constructor + '{'; + var keys = Object.keys(val).sort(); + var symbols = getSymbols(val); + + if (symbols.length) { + keys = keys.filter(function (key) { + return !(typeof key === 'symbol' || toString.call(key) === '[object Symbol]'); + }).concat(symbols); + } + + if (keys.length) { + result += edgeSpacing; + var innerIndent = prevIndent + indent; + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var name = print(key, indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + var value = print(val[key], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + result += innerIndent + name + ': ' + value; + + if (i < keys.length - 1) { + result += ',' + spacing; + } + } + + result += (min ? '' : ',') + edgeSpacing + prevIndent; + } + + return result + '}'; + } + + function printSet(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { + var result = 'Set {'; + var iterator = val.entries(); + var current = iterator.next(); + + if (!current.done) { + result += edgeSpacing; + var innerIndent = prevIndent + indent; + + while (!current.done) { + result += innerIndent + print(current.value[1], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + current = iterator.next(); + + if (!current.done) { + result += ',' + spacing; + } + } + + result += (min ? '' : ',') + edgeSpacing + prevIndent; + } + + return result + '}'; + } + + function printComplexValue(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { + refs = refs.slice(); + + if (refs.indexOf(val) > -1) { + return '[Circular]'; + } else { + refs.push(val); + } + + currentDepth++; + var hitMaxDepth = currentDepth > maxDepth; + + if (callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === 'function') { + return print(val.toJSON(), indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } + + var toStringed = toString.call(val); + + if (toStringed === '[object Arguments]') { + return hitMaxDepth ? '[Arguments]' : printArguments(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } else if (isToStringedArrayType(toStringed)) { + return hitMaxDepth ? '[Array]' : printArray(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } else if (toStringed === '[object Map]') { + return hitMaxDepth ? '[Map]' : printMap(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } else if (toStringed === '[object Set]') { + return hitMaxDepth ? '[Set]' : printSet(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } else if (typeof val === 'object') { + return hitMaxDepth ? '[Object]' : printObject(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } + } + + function printPlugin(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { + var match = false; + var plugin; + + for (var p = 0; p < plugins.length; p++) { + plugin = plugins[p]; + + if (plugin.test(val)) { + match = true; + break; + } + } + + if (!match) { + return false; + } + + function boundPrint(val) { + return print(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } + + function boundIndent(str) { + var indentation = prevIndent + indent; + return indentation + str.replace(NEWLINE_REGEXP, '\n' + indentation); + } + + return plugin.print(val, boundPrint, boundIndent, { + edgeSpacing: edgeSpacing, + spacing: spacing + }); + } + + function print(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { + var basic = printBasicValue(val, printFunctionName, escapeRegex); + if (basic) return basic; + var plugin = printPlugin(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + if (plugin) return plugin; + return printComplexValue(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); + } + + var DEFAULTS = { + callToJSON: true, + indent: 2, + maxDepth: Infinity, + min: false, + plugins: [], + printFunctionName: true, + escapeRegex: false + }; + + function validateOptions(opts) { + Object.keys(opts).forEach(function (key) { + if (!DEFAULTS.hasOwnProperty(key)) { + throw new Error('prettyFormat: Invalid option: ' + key); + } + }); + + if (opts.min && opts.indent !== undefined && opts.indent !== 0) { + throw new Error('prettyFormat: Cannot run with min option and indent'); + } + } + + function normalizeOptions(opts) { + var result = {}; + Object.keys(DEFAULTS).forEach(function (key) { + return result[key] = opts.hasOwnProperty(key) ? opts[key] : DEFAULTS[key]; + }); + + if (result.min) { + result.indent = 0; + } + + return result; + } + + function createIndent(indent) { + return new Array(indent + 1).join(' '); + } + + function prettyFormat(val, opts) { + if (!opts) { + opts = DEFAULTS; + } else { + validateOptions(opts); + opts = normalizeOptions(opts); + } + + var indent; + var refs; + var prevIndent = ''; + var currentDepth = 0; + var spacing = opts.min ? ' ' : '\n'; + var edgeSpacing = opts.min ? '' : '\n'; + + if (opts && opts.plugins.length) { + indent = createIndent(opts.indent); + refs = []; + var pluginsResult = printPlugin(val, indent, prevIndent, spacing, edgeSpacing, refs, opts.maxDepth, currentDepth, opts.plugins, opts.min, opts.callToJSON, opts.printFunctionName, opts.escapeRegex); + if (pluginsResult) return pluginsResult; + } + + var basicResult = printBasicValue(val, opts.printFunctionName, opts.escapeRegex); + if (basicResult) return basicResult; + if (!indent) indent = createIndent(opts.indent); + if (!refs) refs = []; + return printComplexValue(val, indent, prevIndent, spacing, edgeSpacing, refs, opts.maxDepth, currentDepth, opts.plugins, opts.min, opts.callToJSON, opts.printFunctionName, opts.escapeRegex); + } + + module.exports = prettyFormat; +},192,[193],"node_modules/pretty-format/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var ESCAPED_CHARACTERS = /(\\|\"|\')/g; + + module.exports = function printString(val) { + return val.replace(ESCAPED_CHARACTERS, '\\$1'); + }; +},193,[],"node_modules/pretty-format/printString.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'EventEmitter'); + + var EventSubscriptionVendor = _$$_REQUIRE(_dependencyMap[1], 'EventSubscriptionVendor'); + + function checkNativeEventModule(eventType) { + if (eventType) { + if (eventType.lastIndexOf('statusBar', 0) === 0) { + throw new Error('`' + eventType + '` event should be registered via the StatusBarIOS module'); + } + + if (eventType.lastIndexOf('keyboard', 0) === 0) { + throw new Error('`' + eventType + '` event should be registered via the Keyboard module'); + } + + if (eventType === 'appStateDidChange' || eventType === 'memoryWarning') { + throw new Error('`' + eventType + '` event should be registered via the AppState module'); + } + } + } + + var RCTDeviceEventEmitter = function (_EventEmitter) { + function RCTDeviceEventEmitter() { + var _this; + + _classCallCheck(this, RCTDeviceEventEmitter); + + var sharedSubscriber = new EventSubscriptionVendor(); + _this = _possibleConstructorReturn(this, _getPrototypeOf(RCTDeviceEventEmitter).call(this, sharedSubscriber)); + _this.sharedSubscriber = sharedSubscriber; + return _this; + } + + _createClass(RCTDeviceEventEmitter, [{ + key: "addListener", + value: function addListener(eventType, listener, context) { + if (__DEV__) { + checkNativeEventModule(eventType); + } + + return _get(_getPrototypeOf(RCTDeviceEventEmitter.prototype), "addListener", this).call(this, eventType, listener, context); + } + }, { + key: "removeAllListeners", + value: function removeAllListeners(eventType) { + if (__DEV__) { + checkNativeEventModule(eventType); + } + + _get(_getPrototypeOf(RCTDeviceEventEmitter.prototype), "removeAllListeners", this).call(this, eventType); + } + }, { + key: "removeSubscription", + value: function removeSubscription(subscription) { + if (subscription.emitter !== this) { + subscription.emitter.removeSubscription(subscription); + } else { + _get(_getPrototypeOf(RCTDeviceEventEmitter.prototype), "removeSubscription", this).call(this, subscription); + } + } + }]); + + _inherits(RCTDeviceEventEmitter, _EventEmitter); + + return RCTDeviceEventEmitter; + }(EventEmitter); + + module.exports = new RCTDeviceEventEmitter(); +},194,[195,198],"node_modules/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var EmitterSubscription = _$$_REQUIRE(_dependencyMap[0], 'EmitterSubscription'); + + var EventSubscriptionVendor = _$$_REQUIRE(_dependencyMap[1], 'EventSubscriptionVendor'); + + var emptyFunction = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/emptyFunction'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var EventEmitter = function () { + function EventEmitter(subscriber) { + _classCallCheck(this, EventEmitter); + + this._subscriber = subscriber || new EventSubscriptionVendor(); + } + + _createClass(EventEmitter, [{ + key: "addListener", + value: function addListener(eventType, listener, context) { + return this._subscriber.addSubscription(eventType, new EmitterSubscription(this, this._subscriber, listener, context)); + } + }, { + key: "once", + value: function once(eventType, listener, context) { + var _this = this; + + return this.addListener(eventType, function () { + _this.removeCurrentListener(); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + listener.apply(context, args); + }); + } + }, { + key: "removeAllListeners", + value: function removeAllListeners(eventType) { + this._subscriber.removeAllSubscriptions(eventType); + } + }, { + key: "removeCurrentListener", + value: function removeCurrentListener() { + invariant(!!this._currentSubscription, 'Not in an emitting cycle; there is no current subscription'); + this.removeSubscription(this._currentSubscription); + } + }, { + key: "removeSubscription", + value: function removeSubscription(subscription) { + invariant(subscription.emitter === this, 'Subscription does not belong to this emitter.'); + + this._subscriber.removeSubscription(subscription); + } + }, { + key: "listeners", + value: function listeners(eventType) { + var subscriptions = this._subscriber.getSubscriptionsForType(eventType); + + return subscriptions ? subscriptions.filter(emptyFunction.thatReturnsTrue).map(function (subscription) { + return subscription.listener; + }) : []; + } + }, { + key: "emit", + value: function emit(eventType) { + var subscriptions = this._subscriber.getSubscriptionsForType(eventType); + + if (subscriptions) { + for (var i = 0, l = subscriptions.length; i < l; i++) { + var subscription = subscriptions[i]; + + if (subscription) { + this._currentSubscription = subscription; + subscription.listener.apply(subscription.context, Array.prototype.slice.call(arguments, 1)); + } + } + + this._currentSubscription = null; + } + } + }, { + key: "removeListener", + value: function removeListener(eventType, listener) { + var subscriptions = this._subscriber.getSubscriptionsForType(eventType); + + if (subscriptions) { + for (var i = 0, l = subscriptions.length; i < l; i++) { + var subscription = subscriptions[i]; + + if (subscription && subscription.listener === listener) { + subscription.remove(); + } + } + } + } + }]); + + return EventEmitter; + }(); + + module.exports = EventEmitter; +},195,[196,198,184,166],"node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var EventSubscription = _$$_REQUIRE(_dependencyMap[0], 'EventSubscription'); + + var EmitterSubscription = function (_EventSubscription) { + function EmitterSubscription(emitter, subscriber, listener, context) { + var _this; + + _classCallCheck(this, EmitterSubscription); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(EmitterSubscription).call(this, subscriber)); + _this.emitter = emitter; + _this.listener = listener; + _this.context = context; + return _this; + } + + _createClass(EmitterSubscription, [{ + key: "remove", + value: function remove() { + this.emitter.removeSubscription(this); + } + }]); + + _inherits(EmitterSubscription, _EventSubscription); + + return EmitterSubscription; + }(EventSubscription); + + module.exports = EmitterSubscription; +},196,[197],"node_modules/react-native/Libraries/vendor/emitter/EmitterSubscription.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var EventSubscription = function () { + function EventSubscription(subscriber) { + _classCallCheck(this, EventSubscription); + + this.subscriber = subscriber; + } + + _createClass(EventSubscription, [{ + key: "remove", + value: function remove() { + this.subscriber.removeSubscription(this); + } + }]); + + return EventSubscription; + }(); + + module.exports = EventSubscription; +},197,[],"node_modules/react-native/Libraries/vendor/emitter/EventSubscription.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var EventSubscriptionVendor = function () { + function EventSubscriptionVendor() { + _classCallCheck(this, EventSubscriptionVendor); + + this._subscriptionsForType = {}; + this._currentSubscription = null; + } + + _createClass(EventSubscriptionVendor, [{ + key: "addSubscription", + value: function addSubscription(eventType, subscription) { + invariant(subscription.subscriber === this, 'The subscriber of the subscription is incorrectly set.'); + + if (!this._subscriptionsForType[eventType]) { + this._subscriptionsForType[eventType] = []; + } + + var key = this._subscriptionsForType[eventType].length; + + this._subscriptionsForType[eventType].push(subscription); + + subscription.eventType = eventType; + subscription.key = key; + return subscription; + } + }, { + key: "removeAllSubscriptions", + value: function removeAllSubscriptions(eventType) { + if (eventType === undefined) { + this._subscriptionsForType = {}; + } else { + delete this._subscriptionsForType[eventType]; + } + } + }, { + key: "removeSubscription", + value: function removeSubscription(subscription) { + var eventType = subscription.eventType; + var key = subscription.key; + var subscriptionsForType = this._subscriptionsForType[eventType]; + + if (subscriptionsForType) { + delete subscriptionsForType[key]; + } + } + }, { + key: "getSubscriptionsForType", + value: function getSubscriptionsForType(eventType) { + return this._subscriptionsForType[eventType]; + } + }]); + + return EventSubscriptionVendor; + }(); + + module.exports = EventSubscriptionVendor; +},198,[166],"node_modules/react-native/Libraries/vendor/emitter/EventSubscriptionVendor.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[1], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[2], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[3], 'View'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[4], 'requireNativeComponent'); + + var RCTActivityIndicator = Platform.OS === 'android' ? _$$_REQUIRE(_dependencyMap[5], 'ProgressBarAndroid') : requireNativeComponent('RCTActivityIndicatorView'); + var GRAY = '#999999'; + + var ActivityIndicator = function ActivityIndicator(props) { + var onLayout = props.onLayout, + style = props.style, + forwardedRef = props.forwardedRef, + restProps = _objectWithoutProperties(props, ["onLayout", "style", "forwardedRef"]); + + var sizeStyle; + + switch (props.size) { + case 'small': + sizeStyle = styles.sizeSmall; + break; + + case 'large': + sizeStyle = styles.sizeLarge; + break; + + default: + sizeStyle = { + height: props.size, + width: props.size + }; + break; + } + + var nativeProps = _objectSpread({}, restProps, { + ref: forwardedRef, + style: sizeStyle, + styleAttr: 'Normal', + indeterminate: true + }); + + return React.createElement(View, { + onLayout: onLayout, + style: [styles.container, style], + __source: { + fileName: _jsxFileName, + lineNumber: 102 + } + }, React.createElement(RCTActivityIndicator, _extends({}, nativeProps, { + __source: { + fileName: _jsxFileName, + lineNumber: 103 + } + }))); + }; + + var ActivityIndicatorWithRef = React.forwardRef(function (props, ref) { + return React.createElement(ActivityIndicator, _extends({}, props, { + forwardedRef: ref, + __source: { + fileName: _jsxFileName, + lineNumber: 110 + } + })); + }); + ActivityIndicatorWithRef.defaultProps = { + animating: true, + color: Platform.OS === 'ios' ? GRAY : null, + hidesWhenStopped: true, + size: 'small' + }; + ActivityIndicatorWithRef.displayName = 'ActivityIndicator'; + var styles = StyleSheet.create({ + container: { + alignItems: 'center', + justifyContent: 'center' + }, + sizeSmall: { + width: 20, + height: 20 + }, + sizeLarge: { + width: 36, + height: 36 + } + }); + module.exports = ActivityIndicatorWithRef; +},199,[176,200,201,227,229,239],"node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], 'react'); +},200,[1],"node_modules/react-native/Libraries/react-native/React.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var PixelRatio = _$$_REQUIRE(_dependencyMap[0], 'PixelRatio'); + + var ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[1], 'ReactNativeStyleAttributes'); + + var StyleSheetValidation = _$$_REQUIRE(_dependencyMap[2], 'StyleSheetValidation'); + + var flatten = _$$_REQUIRE(_dependencyMap[3], 'flattenStyle'); + + var hairlineWidth = PixelRatio.roundToNearestPixel(0.4); + + if (hairlineWidth === 0) { + hairlineWidth = 1 / PixelRatio.get(); + } + + var absoluteFill = { + position: 'absolute', + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + + if (__DEV__) { + Object.freeze(absoluteFill); + } + + module.exports = { + hairlineWidth: hairlineWidth, + absoluteFill: absoluteFill, + absoluteFillObject: absoluteFill, + compose: function compose(style1, style2) { + if (style1 != null && style2 != null) { + return [style1, style2]; + } else { + return style1 != null ? style1 : style2; + } + }, + flatten: flatten, + setStyleAttributePreprocessor: function setStyleAttributePreprocessor(property, process) { + var value; + + if (typeof ReactNativeStyleAttributes[property] === 'string') { + value = {}; + } else if (typeof ReactNativeStyleAttributes[property] === 'object') { + value = ReactNativeStyleAttributes[property]; + } else { + console.error(property + " is not a valid style attribute"); + return; + } + + if (__DEV__ && typeof value.process === 'function') { + console.warn("Overwriting " + property + " style attribute preprocessor"); + } + + ReactNativeStyleAttributes[property] = _objectSpread({}, value, { + process: process + }); + }, + create: function create(obj) { + if (__DEV__) { + for (var _key in obj) { + StyleSheetValidation.validateStyle(_key, obj); + + if (obj[_key]) { + Object.freeze(obj[_key]); + } + } + } + + return obj; + } + }; +},201,[202,205,225,226],"node_modules/react-native/Libraries/StyleSheet/StyleSheet.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var Dimensions = _$$_REQUIRE(_dependencyMap[0], 'Dimensions'); + + var PixelRatio = function () { + function PixelRatio() { + _classCallCheck(this, PixelRatio); + } + + _createClass(PixelRatio, null, [{ + key: "get", + value: function get() { + return Dimensions.get('window').scale; + } + }, { + key: "getFontScale", + value: function getFontScale() { + return Dimensions.get('window').fontScale || PixelRatio.get(); + } + }, { + key: "getPixelSizeForLayoutSize", + value: function getPixelSizeForLayoutSize(layoutSize) { + return Math.round(layoutSize * PixelRatio.get()); + } + }, { + key: "roundToNearestPixel", + value: function roundToNearestPixel(layoutSize) { + var ratio = PixelRatio.get(); + return Math.round(layoutSize * ratio) / ratio; + } + }, { + key: "startDetecting", + value: function startDetecting() {} + }]); + + return PixelRatio; + }(); + + module.exports = PixelRatio; +},202,[203],"node_modules/react-native/Libraries/Utilities/PixelRatio.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'EventEmitter'); + + var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); + + var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'RCTDeviceEventEmitter'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var eventEmitter = new EventEmitter(); + var dimensionsInitialized = false; + var dimensions = {}; + + var Dimensions = function () { + function Dimensions() { + _classCallCheck(this, Dimensions); + } + + _createClass(Dimensions, null, [{ + key: "set", + value: function set(dims) { + if (dims && dims.windowPhysicalPixels) { + dims = JSON.parse(JSON.stringify(dims)); + var windowPhysicalPixels = dims.windowPhysicalPixels; + dims.window = { + width: windowPhysicalPixels.width / windowPhysicalPixels.scale, + height: windowPhysicalPixels.height / windowPhysicalPixels.scale, + scale: windowPhysicalPixels.scale, + fontScale: windowPhysicalPixels.fontScale + }; + + if (Platform.OS === 'android') { + var screenPhysicalPixels = dims.screenPhysicalPixels; + dims.screen = { + width: screenPhysicalPixels.width / screenPhysicalPixels.scale, + height: screenPhysicalPixels.height / screenPhysicalPixels.scale, + scale: screenPhysicalPixels.scale, + fontScale: screenPhysicalPixels.fontScale + }; + delete dims.screenPhysicalPixels; + } else { + dims.screen = dims.window; + } + + delete dims.windowPhysicalPixels; + } + + _extends(dimensions, dims); + + if (dimensionsInitialized) { + eventEmitter.emit('change', { + window: dimensions.window, + screen: dimensions.screen + }); + } else { + dimensionsInitialized = true; + } + } + }, { + key: "get", + value: function get(dim) { + invariant(dimensions[dim], 'No dimension set for key ' + dim); + return dimensions[dim]; + } + }, { + key: "addEventListener", + value: function addEventListener(type, handler) { + invariant(type === 'change', 'Trying to subscribe to unknown event: "%s"', type); + eventEmitter.addListener(type, handler); + } + }, { + key: "removeEventListener", + value: function removeEventListener(type, handler) { + invariant(type === 'change', 'Trying to remove listener for unknown event: "%s"', type); + eventEmitter.removeListener(type, handler); + } + }]); + + return Dimensions; + }(); + + var dims = global.nativeExtensions && global.nativeExtensions.DeviceInfo && global.nativeExtensions.DeviceInfo.Dimensions; + var nativeExtensionsEnabled = true; + + if (!dims) { + var DeviceInfo = _$$_REQUIRE(_dependencyMap[4], 'DeviceInfo'); + + dims = DeviceInfo.Dimensions; + nativeExtensionsEnabled = false; + } + + invariant(dims, 'Either DeviceInfo native extension or DeviceInfo Native Module must be registered'); + Dimensions.set(dims); + + if (!nativeExtensionsEnabled) { + RCTDeviceEventEmitter.addListener('didUpdateDimensions', function (update) { + Dimensions.set(update); + }); + } + + module.exports = Dimensions; +},203,[195,176,194,166,204],"node_modules/react-native/Libraries/Utilities/Dimensions.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var DeviceInfo = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').DeviceInfo; + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + invariant(DeviceInfo, 'DeviceInfo native module is not installed correctly'); + module.exports = DeviceInfo; +},204,[168,166],"node_modules/react-native/Libraries/Utilities/DeviceInfo.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var ImageStylePropTypes = _$$_REQUIRE(_dependencyMap[0], 'ImageStylePropTypes'); + + var TextStylePropTypes = _$$_REQUIRE(_dependencyMap[1], 'TextStylePropTypes'); + + var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[2], 'ViewStylePropTypes'); + + var keyMirror = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/keyMirror'); + + var processColor = _$$_REQUIRE(_dependencyMap[4], 'processColor'); + + var processTransform = _$$_REQUIRE(_dependencyMap[5], 'processTransform'); + + var sizesDiffer = _$$_REQUIRE(_dependencyMap[6], 'sizesDiffer'); + + var ReactNativeStyleAttributes = _objectSpread({}, keyMirror(ViewStylePropTypes), keyMirror(TextStylePropTypes), keyMirror(ImageStylePropTypes)); + + ReactNativeStyleAttributes.transform = { + process: processTransform + }; + ReactNativeStyleAttributes.shadowOffset = { + diff: sizesDiffer + }; + var colorAttributes = { + process: processColor + }; + ReactNativeStyleAttributes.backgroundColor = colorAttributes; + ReactNativeStyleAttributes.borderBottomColor = colorAttributes; + ReactNativeStyleAttributes.borderColor = colorAttributes; + ReactNativeStyleAttributes.borderLeftColor = colorAttributes; + ReactNativeStyleAttributes.borderRightColor = colorAttributes; + ReactNativeStyleAttributes.borderTopColor = colorAttributes; + ReactNativeStyleAttributes.borderStartColor = colorAttributes; + ReactNativeStyleAttributes.borderEndColor = colorAttributes; + ReactNativeStyleAttributes.color = colorAttributes; + ReactNativeStyleAttributes.shadowColor = colorAttributes; + ReactNativeStyleAttributes.textDecorationColor = colorAttributes; + ReactNativeStyleAttributes.tintColor = colorAttributes; + ReactNativeStyleAttributes.textShadowColor = colorAttributes; + ReactNativeStyleAttributes.overlayColor = colorAttributes; + module.exports = ReactNativeStyleAttributes; +},205,[206,219,220,210,221,222,224],"node_modules/react-native/Libraries/Components/View/ReactNativeStyleAttributes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); + + var ImageResizeMode = _$$_REQUIRE(_dependencyMap[1], 'ImageResizeMode'); + + var LayoutPropTypes = _$$_REQUIRE(_dependencyMap[2], 'LayoutPropTypes'); + + var ReactPropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var ShadowPropTypesIOS = _$$_REQUIRE(_dependencyMap[4], 'ShadowPropTypesIOS'); + + var TransformPropTypes = _$$_REQUIRE(_dependencyMap[5], 'TransformPropTypes'); + + var ImageStylePropTypes = _objectSpread({}, LayoutPropTypes, ShadowPropTypesIOS, TransformPropTypes, { + resizeMode: ReactPropTypes.oneOf(Object.keys(ImageResizeMode)), + backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']), + backgroundColor: ColorPropType, + borderColor: ColorPropType, + borderWidth: ReactPropTypes.number, + borderRadius: ReactPropTypes.number, + overflow: ReactPropTypes.oneOf(['visible', 'hidden']), + tintColor: ColorPropType, + opacity: ReactPropTypes.number, + overlayColor: ReactPropTypes.string, + borderTopLeftRadius: ReactPropTypes.number, + borderTopRightRadius: ReactPropTypes.number, + borderBottomLeftRadius: ReactPropTypes.number, + borderBottomRightRadius: ReactPropTypes.number + }); + + module.exports = ImageStylePropTypes; +},206,[207,209,211,212,215,216],"node_modules/react-native/Libraries/Image/ImageStylePropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var normalizeColor = _$$_REQUIRE(_dependencyMap[0], 'normalizeColor'); + + var colorPropType = function colorPropType(isRequired, props, propName, componentName, location, propFullName) { + var color = props[propName]; + + if (color === undefined || color === null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + (propFullName || propName) + '` was not specified in `' + componentName + '`.'); + } + + return; + } + + if (typeof color === 'number') { + return; + } + + if (normalizeColor(color) === null) { + return new Error('Invalid ' + location + ' `' + (propFullName || propName) + '` supplied to `' + componentName + '`: ' + color + '\n' + "Valid color formats are\n - '#f0f' (#rgb)\n - '#f0fc' (#rgba)\n - '#ff00ff' (#rrggbb)\n - '#ff00ff00' (#rrggbbaa)\n - 'rgb(255, 255, 255)'\n - 'rgba(255, 255, 255, 1.0)'\n - 'hsl(360, 100%, 100%)'\n - 'hsla(360, 100%, 100%, 1.0)'\n - 'transparent'\n - 'red'\n - 0xff00ff00 (0xrrggbbaa)\n"); + } + }; + + var ColorPropType = colorPropType.bind(null, false); + ColorPropType.isRequired = colorPropType.bind(null, true); + module.exports = ColorPropType; +},207,[208],"node_modules/react-native/Libraries/StyleSheet/ColorPropType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function normalizeColor(color) { + var matchers = getMatchers(); + var match; + + if (typeof color === 'number') { + if (color >>> 0 === color && color >= 0 && color <= 0xffffffff) { + return color; + } + + return null; + } + + if (match = matchers.hex6.exec(color)) { + return parseInt(match[1] + 'ff', 16) >>> 0; + } + + if (names.hasOwnProperty(color)) { + return names[color]; + } + + if (match = matchers.rgb.exec(color)) { + return (parse255(match[1]) << 24 | parse255(match[2]) << 16 | parse255(match[3]) << 8 | 0x000000ff) >>> 0; + } + + if (match = matchers.rgba.exec(color)) { + return (parse255(match[1]) << 24 | parse255(match[2]) << 16 | parse255(match[3]) << 8 | parse1(match[4])) >>> 0; + } + + if (match = matchers.hex3.exec(color)) { + return parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + 'ff', 16) >>> 0; + } + + if (match = matchers.hex8.exec(color)) { + return parseInt(match[1], 16) >>> 0; + } + + if (match = matchers.hex4.exec(color)) { + return parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + match[4] + match[4], 16) >>> 0; + } + + if (match = matchers.hsl.exec(color)) { + return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | 0x000000ff) >>> 0; + } + + if (match = matchers.hsla.exec(color)) { + return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | parse1(match[4])) >>> 0; + } + + return null; + } + + function hue2rgb(p, q, t) { + if (t < 0) { + t += 1; + } + + if (t > 1) { + t -= 1; + } + + if (t < 1 / 6) { + return p + (q - p) * 6 * t; + } + + if (t < 1 / 2) { + return q; + } + + if (t < 2 / 3) { + return p + (q - p) * (2 / 3 - t) * 6; + } + + return p; + } + + function hslToRgb(h, s, l) { + var q = l < 0.5 ? l * (1 + s) : l + s - l * s; + var p = 2 * l - q; + var r = hue2rgb(p, q, h + 1 / 3); + var g = hue2rgb(p, q, h); + var b = hue2rgb(p, q, h - 1 / 3); + return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8; + } + + var NUMBER = '[-+]?\\d*\\.?\\d+'; + var PERCENTAGE = NUMBER + '%'; + + function call() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return '\\(\\s*(' + args.join(')\\s*,\\s*(') + ')\\s*\\)'; + } + + var cachedMatchers; + + function getMatchers() { + if (cachedMatchers === undefined) { + cachedMatchers = { + rgb: new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER)), + rgba: new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER)), + hsl: new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE)), + hsla: new RegExp('hsla' + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER)), + hex3: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex4: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#([0-9a-fA-F]{6})$/, + hex8: /^#([0-9a-fA-F]{8})$/ + }; + } + + return cachedMatchers; + } + + function parse255(str) { + var int = parseInt(str, 10); + + if (int < 0) { + return 0; + } + + if (int > 255) { + return 255; + } + + return int; + } + + function parse360(str) { + var int = parseFloat(str); + return (int % 360 + 360) % 360 / 360; + } + + function parse1(str) { + var num = parseFloat(str); + + if (num < 0) { + return 0; + } + + if (num > 1) { + return 255; + } + + return Math.round(num * 255); + } + + function parsePercentage(str) { + var int = parseFloat(str); + + if (int < 0) { + return 0; + } + + if (int > 100) { + return 1; + } + + return int / 100; + } + + var names = { + transparent: 0x00000000, + aliceblue: 0xf0f8ffff, + antiquewhite: 0xfaebd7ff, + aqua: 0x00ffffff, + aquamarine: 0x7fffd4ff, + azure: 0xf0ffffff, + beige: 0xf5f5dcff, + bisque: 0xffe4c4ff, + black: 0x000000ff, + blanchedalmond: 0xffebcdff, + blue: 0x0000ffff, + blueviolet: 0x8a2be2ff, + brown: 0xa52a2aff, + burlywood: 0xdeb887ff, + burntsienna: 0xea7e5dff, + cadetblue: 0x5f9ea0ff, + chartreuse: 0x7fff00ff, + chocolate: 0xd2691eff, + coral: 0xff7f50ff, + cornflowerblue: 0x6495edff, + cornsilk: 0xfff8dcff, + crimson: 0xdc143cff, + cyan: 0x00ffffff, + darkblue: 0x00008bff, + darkcyan: 0x008b8bff, + darkgoldenrod: 0xb8860bff, + darkgray: 0xa9a9a9ff, + darkgreen: 0x006400ff, + darkgrey: 0xa9a9a9ff, + darkkhaki: 0xbdb76bff, + darkmagenta: 0x8b008bff, + darkolivegreen: 0x556b2fff, + darkorange: 0xff8c00ff, + darkorchid: 0x9932ccff, + darkred: 0x8b0000ff, + darksalmon: 0xe9967aff, + darkseagreen: 0x8fbc8fff, + darkslateblue: 0x483d8bff, + darkslategray: 0x2f4f4fff, + darkslategrey: 0x2f4f4fff, + darkturquoise: 0x00ced1ff, + darkviolet: 0x9400d3ff, + deeppink: 0xff1493ff, + deepskyblue: 0x00bfffff, + dimgray: 0x696969ff, + dimgrey: 0x696969ff, + dodgerblue: 0x1e90ffff, + firebrick: 0xb22222ff, + floralwhite: 0xfffaf0ff, + forestgreen: 0x228b22ff, + fuchsia: 0xff00ffff, + gainsboro: 0xdcdcdcff, + ghostwhite: 0xf8f8ffff, + gold: 0xffd700ff, + goldenrod: 0xdaa520ff, + gray: 0x808080ff, + green: 0x008000ff, + greenyellow: 0xadff2fff, + grey: 0x808080ff, + honeydew: 0xf0fff0ff, + hotpink: 0xff69b4ff, + indianred: 0xcd5c5cff, + indigo: 0x4b0082ff, + ivory: 0xfffff0ff, + khaki: 0xf0e68cff, + lavender: 0xe6e6faff, + lavenderblush: 0xfff0f5ff, + lawngreen: 0x7cfc00ff, + lemonchiffon: 0xfffacdff, + lightblue: 0xadd8e6ff, + lightcoral: 0xf08080ff, + lightcyan: 0xe0ffffff, + lightgoldenrodyellow: 0xfafad2ff, + lightgray: 0xd3d3d3ff, + lightgreen: 0x90ee90ff, + lightgrey: 0xd3d3d3ff, + lightpink: 0xffb6c1ff, + lightsalmon: 0xffa07aff, + lightseagreen: 0x20b2aaff, + lightskyblue: 0x87cefaff, + lightslategray: 0x778899ff, + lightslategrey: 0x778899ff, + lightsteelblue: 0xb0c4deff, + lightyellow: 0xffffe0ff, + lime: 0x00ff00ff, + limegreen: 0x32cd32ff, + linen: 0xfaf0e6ff, + magenta: 0xff00ffff, + maroon: 0x800000ff, + mediumaquamarine: 0x66cdaaff, + mediumblue: 0x0000cdff, + mediumorchid: 0xba55d3ff, + mediumpurple: 0x9370dbff, + mediumseagreen: 0x3cb371ff, + mediumslateblue: 0x7b68eeff, + mediumspringgreen: 0x00fa9aff, + mediumturquoise: 0x48d1ccff, + mediumvioletred: 0xc71585ff, + midnightblue: 0x191970ff, + mintcream: 0xf5fffaff, + mistyrose: 0xffe4e1ff, + moccasin: 0xffe4b5ff, + navajowhite: 0xffdeadff, + navy: 0x000080ff, + oldlace: 0xfdf5e6ff, + olive: 0x808000ff, + olivedrab: 0x6b8e23ff, + orange: 0xffa500ff, + orangered: 0xff4500ff, + orchid: 0xda70d6ff, + palegoldenrod: 0xeee8aaff, + palegreen: 0x98fb98ff, + paleturquoise: 0xafeeeeff, + palevioletred: 0xdb7093ff, + papayawhip: 0xffefd5ff, + peachpuff: 0xffdab9ff, + peru: 0xcd853fff, + pink: 0xffc0cbff, + plum: 0xdda0ddff, + powderblue: 0xb0e0e6ff, + purple: 0x800080ff, + rebeccapurple: 0x663399ff, + red: 0xff0000ff, + rosybrown: 0xbc8f8fff, + royalblue: 0x4169e1ff, + saddlebrown: 0x8b4513ff, + salmon: 0xfa8072ff, + sandybrown: 0xf4a460ff, + seagreen: 0x2e8b57ff, + seashell: 0xfff5eeff, + sienna: 0xa0522dff, + silver: 0xc0c0c0ff, + skyblue: 0x87ceebff, + slateblue: 0x6a5acdff, + slategray: 0x708090ff, + slategrey: 0x708090ff, + snow: 0xfffafaff, + springgreen: 0x00ff7fff, + steelblue: 0x4682b4ff, + tan: 0xd2b48cff, + teal: 0x008080ff, + thistle: 0xd8bfd8ff, + tomato: 0xff6347ff, + turquoise: 0x40e0d0ff, + violet: 0xee82eeff, + wheat: 0xf5deb3ff, + white: 0xffffffff, + whitesmoke: 0xf5f5f5ff, + yellow: 0xffff00ff, + yellowgreen: 0x9acd32ff + }; + module.exports = normalizeColor; +},208,[],"node_modules/react-native/Libraries/Color/normalizeColor.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var keyMirror = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/keyMirror'); + + var ImageResizeMode = keyMirror({ + contain: null, + cover: null, + stretch: null, + center: null, + repeat: null + }); + module.exports = ImageResizeMode; +},209,[210],"node_modules/react-native/Libraries/Image/ImageResizeMode.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], './invariant'); + + var keyMirror = function keyMirror(obj) { + var ret = {}; + var key; + !(obj instanceof Object && !Array.isArray(obj)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0; + + for (key in obj) { + if (!obj.hasOwnProperty(key)) { + continue; + } + + ret[key] = key; + } + + return ret; + }; + + module.exports = keyMirror; +},210,[166],"node_modules/react-native/node_modules/fbjs/lib/keyMirror.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var ReactPropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); + + var LayoutPropTypes = { + display: ReactPropTypes.oneOf(['none', 'flex']), + width: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + height: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + start: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + end: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + top: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + left: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + right: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + bottom: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + minWidth: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + maxWidth: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + minHeight: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + maxHeight: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + margin: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + marginVertical: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + marginHorizontal: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + marginTop: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + marginBottom: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + marginLeft: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + marginRight: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + marginStart: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + marginEnd: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + padding: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + paddingVertical: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + paddingHorizontal: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + paddingTop: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + paddingBottom: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + paddingLeft: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + paddingRight: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + paddingStart: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + paddingEnd: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + borderWidth: ReactPropTypes.number, + borderTopWidth: ReactPropTypes.number, + borderStartWidth: ReactPropTypes.number, + borderEndWidth: ReactPropTypes.number, + borderRightWidth: ReactPropTypes.number, + borderBottomWidth: ReactPropTypes.number, + borderLeftWidth: ReactPropTypes.number, + position: ReactPropTypes.oneOf(['absolute', 'relative']), + flexDirection: ReactPropTypes.oneOf(['row', 'row-reverse', 'column', 'column-reverse']), + flexWrap: ReactPropTypes.oneOf(['wrap', 'nowrap', 'wrap-reverse']), + justifyContent: ReactPropTypes.oneOf(['flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly']), + alignItems: ReactPropTypes.oneOf(['flex-start', 'flex-end', 'center', 'stretch', 'baseline']), + alignSelf: ReactPropTypes.oneOf(['auto', 'flex-start', 'flex-end', 'center', 'stretch', 'baseline']), + alignContent: ReactPropTypes.oneOf(['flex-start', 'flex-end', 'center', 'stretch', 'space-between', 'space-around']), + overflow: ReactPropTypes.oneOf(['visible', 'hidden', 'scroll']), + flex: ReactPropTypes.number, + flexGrow: ReactPropTypes.number, + flexShrink: ReactPropTypes.number, + flexBasis: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), + aspectRatio: ReactPropTypes.number, + zIndex: ReactPropTypes.number, + direction: ReactPropTypes.oneOf(['inherit', 'ltr', 'rtl']) + }; + module.exports = LayoutPropTypes; +},211,[212],"node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + if (process.env.NODE_ENV !== 'production') { + var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && (typeof Symbol === "function" ? Symbol.for : "@@for") && (typeof Symbol === "function" ? Symbol.for : "@@for")('react.element') || 0xeac7; + + var isValidElement = function isValidElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + }; + + var throwOnDirectAccess = true; + module.exports = _$$_REQUIRE(_dependencyMap[0], './factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess); + } else { + module.exports = _$$_REQUIRE(_dependencyMap[1], './factoryWithThrowingShims')(); + } +},212,[213,214],"node_modules/prop-types/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var assign = _$$_REQUIRE(_dependencyMap[0], 'object-assign'); + + var ReactPropTypesSecret = _$$_REQUIRE(_dependencyMap[1], './lib/ReactPropTypesSecret'); + + var checkPropTypes = _$$_REQUIRE(_dependencyMap[2], './checkPropTypes'); + + var printWarning = function printWarning() {}; + + if (process.env.NODE_ENV !== 'production') { + printWarning = function printWarning(text) { + var message = 'Warning: ' + text; + + if (typeof console !== 'undefined') { + console.error(message); + } + + try { + throw new Error(message); + } catch (x) {} + }; + } + + function emptyFunctionThatReturnsNull() { + return null; + } + + module.exports = function (isValidElement, throwOnDirectAccess) { + var ITERATOR_SYMBOL = typeof Symbol === 'function' && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); + var FAUX_ITERATOR_SYMBOL = '@@iterator'; + + function getIteratorFn(maybeIterable) { + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); + + if (typeof iteratorFn === 'function') { + return iteratorFn; + } + } + + var ANONYMOUS = '<>'; + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), + any: createAnyTypeChecker(), + arrayOf: createArrayOfTypeChecker, + element: createElementTypeChecker(), + instanceOf: createInstanceTypeChecker, + node: createNodeChecker(), + objectOf: createObjectOfTypeChecker, + oneOf: createEnumTypeChecker, + oneOfType: createUnionTypeChecker, + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker + }; + + function is(x, y) { + if (x === y) { + return x !== 0 || 1 / x === 1 / y; + } else { + return x !== x && y !== y; + } + } + + function PropTypeError(message) { + this.message = message; + this.stack = ''; + } + + PropTypeError.prototype = Error.prototype; + + function createChainableTypeChecker(validate) { + if (process.env.NODE_ENV !== 'production') { + var manualPropTypeCallCache = {}; + var manualPropTypeWarningCount = 0; + } + + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { + componentName = componentName || ANONYMOUS; + propFullName = propFullName || propName; + + if (secret !== ReactPropTypesSecret) { + if (throwOnDirectAccess) { + var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types'); + err.name = 'Invariant Violation'; + throw err; + } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { + var cacheKey = componentName + ':' + propName; + + if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) { + printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'); + manualPropTypeCallCache[cacheKey] = true; + manualPropTypeWarningCount++; + } + } + } + + if (props[propName] == null) { + if (isRequired) { + if (props[propName] === null) { + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); + } + + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); + } + + return null; + } else { + return validate(props, propName, componentName, location, propFullName); + } + } + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; + } + + function createPrimitiveTypeChecker(expectedType) { + function validate(props, propName, componentName, location, propFullName, secret) { + var propValue = props[propName]; + var propType = getPropType(propValue); + + if (propType !== expectedType) { + var preciseType = getPreciseType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); + } + + return null; + } + + return createChainableTypeChecker(validate); + } + + function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunctionThatReturnsNull); + } + + function createArrayOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); + } + + var propValue = props[propName]; + + if (!Array.isArray(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); + } + + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); + + if (error instanceof Error) { + return error; + } + } + + return null; + } + + return createChainableTypeChecker(validate); + } + + function createElementTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + + if (!isValidElement(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); + } + + return null; + } + + return createChainableTypeChecker(validate); + } + + function createInstanceTypeChecker(expectedClass) { + function validate(props, propName, componentName, location, propFullName) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || ANONYMOUS; + var actualClassName = getClassName(props[propName]); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); + } + + return null; + } + + return createChainableTypeChecker(validate); + } + + function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) { + process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : void 0; + return emptyFunctionThatReturnsNull; + } + + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } + } + + var valuesString = JSON.stringify(expectedValues); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); + } + + return createChainableTypeChecker(validate); + } + + function createObjectOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); + } + + var propValue = props[propName]; + var propType = getPropType(propValue); + + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); + } + + for (var key in propValue) { + if (propValue.hasOwnProperty(key)) { + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + + if (error instanceof Error) { + return error; + } + } + } + + return null; + } + + return createChainableTypeChecker(validate); + } + + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; + return emptyFunctionThatReturnsNull; + } + + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + + if (typeof checker !== 'function') { + printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'); + return emptyFunctionThatReturnsNull; + } + } + + function validate(props, propName, componentName, location, propFullName) { + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + + if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { + return null; + } + } + + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); + } + + return createChainableTypeChecker(validate); + } + + function createNodeChecker() { + function validate(props, propName, componentName, location, propFullName) { + if (!isNode(props[propName])) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); + } + + return null; + } + + return createChainableTypeChecker(validate); + } + + function createShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + + if (!checker) { + continue; + } + + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + + if (error) { + return error; + } + } + + return null; + } + + return createChainableTypeChecker(validate); + } + + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + + var allKeys = assign({}, props[propName], shapeTypes); + + for (var key in allKeys) { + var checker = shapeTypes[key]; + + if (!checker) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')); + } + + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + + if (error) { + return error; + } + } + + return null; + } + + return createChainableTypeChecker(validate); + } + + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + + case 'boolean': + return !propValue; + + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); + } + + if (propValue === null || isValidElement(propValue)) { + return true; + } + + var iteratorFn = getIteratorFn(propValue); + + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + while (!(step = iterator.next()).done) { + var entry = step.value; + + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } + + return true; + + default: + return false; + } + } + + function isSymbol(propType, propValue) { + if (propType === 'symbol') { + return true; + } + + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } + + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } + + return false; + } + + function getPropType(propValue) { + var propType = typeof propValue; + + if (Array.isArray(propValue)) { + return 'array'; + } + + if (propValue instanceof RegExp) { + return 'object'; + } + + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + + return propType; + } + + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + + var propType = getPropType(propValue); + + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + + return propType; + } + + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + + default: + return type; + } + } + + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + + return propValue.constructor.name; + } + + ReactPropTypes.checkPropTypes = checkPropTypes; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; + }; +},213,[3,10,9],"node_modules/prop-types/factoryWithTypeCheckers.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var ReactPropTypesSecret = _$$_REQUIRE(_dependencyMap[0], './lib/ReactPropTypesSecret'); + + function emptyFunction() {} + + module.exports = function () { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + return; + } + + var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types'); + err.name = 'Invariant Violation'; + throw err; + } + + ; + shim.isRequired = shim; + + function getShim() { + return shim; + } + + ; + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; + }; +},214,[10],"node_modules/prop-types/factoryWithThrowingShims.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); + + var ReactPropTypes = _$$_REQUIRE(_dependencyMap[1], 'prop-types'); + + var ShadowPropTypesIOS = { + shadowColor: ColorPropType, + shadowOffset: ReactPropTypes.shape({ + width: ReactPropTypes.number, + height: ReactPropTypes.number + }), + shadowOpacity: ReactPropTypes.number, + shadowRadius: ReactPropTypes.number + }; + module.exports = ShadowPropTypesIOS; +},215,[207,212],"node_modules/react-native/Libraries/Components/View/ShadowPropTypesIOS.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var ReactPropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); + + var deprecatedPropType = _$$_REQUIRE(_dependencyMap[1], 'deprecatedPropType'); + + var TransformMatrixPropType = function TransformMatrixPropType(props, propName, componentName) { + if (props[propName]) { + return new Error('The transformMatrix style property is deprecated. ' + 'Use `transform: [{ matrix: ... }]` instead.'); + } + }; + + var DecomposedMatrixPropType = function DecomposedMatrixPropType(props, propName, componentName) { + if (props[propName]) { + return new Error('The decomposedMatrix style property is deprecated. ' + 'Use `transform: [...]` instead.'); + } + }; + + var TransformPropTypes = { + transform: ReactPropTypes.arrayOf(ReactPropTypes.oneOfType([ReactPropTypes.shape({ + perspective: ReactPropTypes.number + }), ReactPropTypes.shape({ + rotate: ReactPropTypes.string + }), ReactPropTypes.shape({ + rotateX: ReactPropTypes.string + }), ReactPropTypes.shape({ + rotateY: ReactPropTypes.string + }), ReactPropTypes.shape({ + rotateZ: ReactPropTypes.string + }), ReactPropTypes.shape({ + scale: ReactPropTypes.number + }), ReactPropTypes.shape({ + scaleX: ReactPropTypes.number + }), ReactPropTypes.shape({ + scaleY: ReactPropTypes.number + }), ReactPropTypes.shape({ + translateX: ReactPropTypes.number + }), ReactPropTypes.shape({ + translateY: ReactPropTypes.number + }), ReactPropTypes.shape({ + skewX: ReactPropTypes.string + }), ReactPropTypes.shape({ + skewY: ReactPropTypes.string + })])), + transformMatrix: TransformMatrixPropType, + decomposedMatrix: DecomposedMatrixPropType, + scaleX: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.'), + scaleY: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.'), + rotation: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.'), + translateX: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.'), + translateY: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.') + }; + module.exports = TransformPropTypes; +},216,[212,217],"node_modules/react-native/Libraries/StyleSheet/TransformPropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var UIManager = _$$_REQUIRE(_dependencyMap[0], 'UIManager'); + + function deprecatedPropType(propType, explanation) { + return function validate(props, propName, componentName) { + if (!UIManager[componentName] && props[propName] !== undefined) { + console.warn("`" + propName + "` supplied to `" + componentName + "` has been deprecated. " + explanation); + } + + for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) { + rest[_key - 3] = arguments[_key]; + } + + return propType.apply(void 0, [props, propName, componentName].concat(rest)); + }; + } + + module.exports = deprecatedPropType; +},217,[218],"node_modules/react-native/Libraries/Utilities/deprecatedPropType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); + + var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); + + var defineLazyObjectProperty = _$$_REQUIRE(_dependencyMap[2], 'defineLazyObjectProperty'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var UIManager = NativeModules.UIManager; + invariant(UIManager, 'UIManager is undefined. The native module config is probably incorrect.'); + UIManager.__takeSnapshot = UIManager.takeSnapshot; + + UIManager.takeSnapshot = function () { + invariant(false, 'UIManager.takeSnapshot should not be called directly. ' + 'Use ReactNative.takeSnapshot instead.'); + }; + + if (Platform.OS === 'ios') { + Object.keys(UIManager).forEach(function (viewName) { + var viewConfig = UIManager[viewName]; + + if (viewConfig.Manager) { + defineLazyObjectProperty(viewConfig, 'Constants', { + get: function get() { + var viewManager = NativeModules[viewConfig.Manager]; + var constants = {}; + viewManager && Object.keys(viewManager).forEach(function (key) { + var value = viewManager[key]; + + if (typeof value !== 'function') { + constants[key] = value; + } + }); + return constants; + } + }); + defineLazyObjectProperty(viewConfig, 'Commands', { + get: function get() { + var viewManager = NativeModules[viewConfig.Manager]; + var commands = {}; + var index = 0; + viewManager && Object.keys(viewManager).forEach(function (key) { + var value = viewManager[key]; + + if (typeof value === 'function') { + commands[key] = index++; + } + }); + return commands; + } + }); + } + }); + } else if (UIManager.ViewManagerNames) { + var residual = global.__residual ? global.__residual : function (_, f) { + for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + args[_key - 2] = arguments[_key]; + } + + return f.apply(undefined, args); + }; + residual('void', function (UIManager, defineLazyObjectProperty) { + UIManager.ViewManagerNames.forEach(function (viewManagerName) { + defineLazyObjectProperty(UIManager, viewManagerName, { + get: function get() { + return UIManager.getConstantsForViewManager(viewManagerName); + } + }); + }); + }, UIManager, defineLazyObjectProperty); + if (global.__makePartial) global.__makePartial(UIManager); + } + + module.exports = UIManager; +},218,[168,176,185,166],"node_modules/react-native/Libraries/ReactNative/UIManager.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); + + var ReactPropTypes = _$$_REQUIRE(_dependencyMap[1], 'prop-types'); + + var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[2], 'ViewStylePropTypes'); + + var TextStylePropTypes = _objectSpread({}, ViewStylePropTypes, { + color: ColorPropType, + fontFamily: ReactPropTypes.string, + fontSize: ReactPropTypes.number, + fontStyle: ReactPropTypes.oneOf(['normal', 'italic']), + fontWeight: ReactPropTypes.oneOf(['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900']), + fontVariant: ReactPropTypes.arrayOf(ReactPropTypes.oneOf(['small-caps', 'oldstyle-nums', 'lining-nums', 'tabular-nums', 'proportional-nums'])), + textShadowOffset: ReactPropTypes.shape({ + width: ReactPropTypes.number, + height: ReactPropTypes.number + }), + textShadowRadius: ReactPropTypes.number, + textShadowColor: ColorPropType, + letterSpacing: ReactPropTypes.number, + lineHeight: ReactPropTypes.number, + textAlign: ReactPropTypes.oneOf(['auto', 'left', 'right', 'center', 'justify']), + textAlignVertical: ReactPropTypes.oneOf(['auto', 'top', 'bottom', 'center']), + includeFontPadding: ReactPropTypes.bool, + textDecorationLine: ReactPropTypes.oneOf(['none', 'underline', 'line-through', 'underline line-through']), + textDecorationStyle: ReactPropTypes.oneOf(['solid', 'double', 'dotted', 'dashed']), + textDecorationColor: ColorPropType, + textTransform: ReactPropTypes.oneOf(['none', 'capitalize', 'uppercase', 'lowercase']), + writingDirection: ReactPropTypes.oneOf(['auto', 'ltr', 'rtl']) + }); + + module.exports = TextStylePropTypes; +},219,[207,212,220],"node_modules/react-native/Libraries/Text/TextStylePropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); + + var LayoutPropTypes = _$$_REQUIRE(_dependencyMap[1], 'LayoutPropTypes'); + + var ReactPropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); + + var ShadowPropTypesIOS = _$$_REQUIRE(_dependencyMap[3], 'ShadowPropTypesIOS'); + + var TransformPropTypes = _$$_REQUIRE(_dependencyMap[4], 'TransformPropTypes'); + + var ViewStylePropTypes = _objectSpread({}, LayoutPropTypes, ShadowPropTypesIOS, TransformPropTypes, { + backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']), + backgroundColor: ColorPropType, + borderColor: ColorPropType, + borderTopColor: ColorPropType, + borderRightColor: ColorPropType, + borderBottomColor: ColorPropType, + borderLeftColor: ColorPropType, + borderStartColor: ColorPropType, + borderEndColor: ColorPropType, + borderRadius: ReactPropTypes.number, + borderTopLeftRadius: ReactPropTypes.number, + borderTopRightRadius: ReactPropTypes.number, + borderTopStartRadius: ReactPropTypes.number, + borderTopEndRadius: ReactPropTypes.number, + borderBottomLeftRadius: ReactPropTypes.number, + borderBottomRightRadius: ReactPropTypes.number, + borderBottomStartRadius: ReactPropTypes.number, + borderBottomEndRadius: ReactPropTypes.number, + borderStyle: ReactPropTypes.oneOf(['solid', 'dotted', 'dashed']), + borderWidth: ReactPropTypes.number, + borderTopWidth: ReactPropTypes.number, + borderRightWidth: ReactPropTypes.number, + borderBottomWidth: ReactPropTypes.number, + borderLeftWidth: ReactPropTypes.number, + opacity: ReactPropTypes.number, + elevation: ReactPropTypes.number + }); + + module.exports = ViewStylePropTypes; +},220,[207,211,212,215,216],"node_modules/react-native/Libraries/Components/View/ViewStylePropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var normalizeColor = _$$_REQUIRE(_dependencyMap[1], 'normalizeColor'); + + function processColor(color) { + if (color === undefined || color === null) { + return color; + } + + var int32Color = normalizeColor(color); + + if (int32Color === null || int32Color === undefined) { + return undefined; + } + + int32Color = (int32Color << 24 | int32Color >>> 8) >>> 0; + + if (Platform.OS === 'android') { + int32Color = int32Color | 0x0; + } + + return int32Color; + } + + module.exports = processColor; +},221,[176,208],"node_modules/react-native/Libraries/StyleSheet/processColor.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var MatrixMath = _$$_REQUIRE(_dependencyMap[0], 'MatrixMath'); + + var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + var stringifySafe = _$$_REQUIRE(_dependencyMap[3], 'stringifySafe'); + + function processTransform(transform) { + if (__DEV__) { + _validateTransforms(transform); + } + + if (Platform.OS === 'android' || Platform.OS === 'ios') { + return transform; + } + + var result = MatrixMath.createIdentityMatrix(); + transform.forEach(function (transformation) { + var key = Object.keys(transformation)[0]; + var value = transformation[key]; + + switch (key) { + case 'matrix': + MatrixMath.multiplyInto(result, result, value); + break; + + case 'perspective': + _multiplyTransform(result, MatrixMath.reusePerspectiveCommand, [value]); + + break; + + case 'rotateX': + _multiplyTransform(result, MatrixMath.reuseRotateXCommand, [_convertToRadians(value)]); + + break; + + case 'rotateY': + _multiplyTransform(result, MatrixMath.reuseRotateYCommand, [_convertToRadians(value)]); + + break; + + case 'rotate': + case 'rotateZ': + _multiplyTransform(result, MatrixMath.reuseRotateZCommand, [_convertToRadians(value)]); + + break; + + case 'scale': + _multiplyTransform(result, MatrixMath.reuseScaleCommand, [value]); + + break; + + case 'scaleX': + _multiplyTransform(result, MatrixMath.reuseScaleXCommand, [value]); + + break; + + case 'scaleY': + _multiplyTransform(result, MatrixMath.reuseScaleYCommand, [value]); + + break; + + case 'translate': + _multiplyTransform(result, MatrixMath.reuseTranslate3dCommand, [value[0], value[1], value[2] || 0]); + + break; + + case 'translateX': + _multiplyTransform(result, MatrixMath.reuseTranslate2dCommand, [value, 0]); + + break; + + case 'translateY': + _multiplyTransform(result, MatrixMath.reuseTranslate2dCommand, [0, value]); + + break; + + case 'skewX': + _multiplyTransform(result, MatrixMath.reuseSkewXCommand, [_convertToRadians(value)]); + + break; + + case 'skewY': + _multiplyTransform(result, MatrixMath.reuseSkewYCommand, [_convertToRadians(value)]); + + break; + + default: + throw new Error('Invalid transform name: ' + key); + } + }); + return result; + } + + function _multiplyTransform(result, matrixMathFunction, args) { + var matrixToApply = MatrixMath.createIdentityMatrix(); + var argsWithIdentity = [matrixToApply].concat(args); + matrixMathFunction.apply(this, argsWithIdentity); + MatrixMath.multiplyInto(result, result, matrixToApply); + } + + function _convertToRadians(value) { + var floatValue = parseFloat(value); + return value.indexOf('rad') > -1 ? floatValue : floatValue * Math.PI / 180; + } + + function _validateTransforms(transform) { + transform.forEach(function (transformation) { + var keys = Object.keys(transformation); + invariant(keys.length === 1, 'You must specify exactly one property per transform object. Passed properties: %s', stringifySafe(transformation)); + var key = keys[0]; + var value = transformation[key]; + + _validateTransform(key, value, transformation); + }); + } + + function _validateTransform(key, value, transformation) { + invariant(!value.getValue, 'You passed an Animated.Value to a normal component. ' + 'You need to wrap that component in an Animated. For example, ' + 'replace by .'); + var multivalueTransforms = ['matrix', 'translate']; + + if (multivalueTransforms.indexOf(key) !== -1) { + invariant(Array.isArray(value), 'Transform with key of %s must have an array as the value: %s', key, stringifySafe(transformation)); + } + + switch (key) { + case 'matrix': + invariant(value.length === 9 || value.length === 16, 'Matrix transform must have a length of 9 (2d) or 16 (3d). ' + 'Provided matrix has a length of %s: %s', value.length, stringifySafe(transformation)); + break; + + case 'translate': + invariant(value.length === 2 || value.length === 3, 'Transform with key translate must be an array of length 2 or 3, found %s: %s', value.length, stringifySafe(transformation)); + break; + + case 'rotateX': + case 'rotateY': + case 'rotateZ': + case 'rotate': + case 'skewX': + case 'skewY': + invariant(typeof value === 'string', 'Transform with key of "%s" must be a string: %s', key, stringifySafe(transformation)); + invariant(value.indexOf('deg') > -1 || value.indexOf('rad') > -1, 'Rotate transform must be expressed in degrees (deg) or radians ' + '(rad): %s', stringifySafe(transformation)); + break; + + case 'perspective': + invariant(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, stringifySafe(transformation)); + invariant(value !== 0, 'Transform with key of "%s" cannot be zero: %s', key, stringifySafe(transformation)); + break; + + case 'translateX': + case 'translateY': + case 'scale': + case 'scaleX': + case 'scaleY': + invariant(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, stringifySafe(transformation)); + break; + + default: + invariant(false, 'Invalid transform %s: %s', key, stringifySafe(transformation)); + } + } + + module.exports = processTransform; +},222,[223,176,166,174],"node_modules/react-native/Libraries/StyleSheet/processTransform.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + + function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + + function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + + function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var MatrixMath = { + createIdentityMatrix: function createIdentityMatrix() { + return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]; + }, + createCopy: function createCopy(m) { + return [m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], m[12], m[13], m[14], m[15]]; + }, + createOrthographic: function createOrthographic(left, right, bottom, top, near, far) { + var a = 2 / (right - left); + var b = 2 / (top - bottom); + var c = -2 / (far - near); + var tx = -(right + left) / (right - left); + var ty = -(top + bottom) / (top - bottom); + var tz = -(far + near) / (far - near); + return [a, 0, 0, 0, 0, b, 0, 0, 0, 0, c, 0, tx, ty, tz, 1]; + }, + createFrustum: function createFrustum(left, right, bottom, top, near, far) { + var r_width = 1 / (right - left); + var r_height = 1 / (top - bottom); + var r_depth = 1 / (near - far); + var x = 2 * (near * r_width); + var y = 2 * (near * r_height); + var A = (right + left) * r_width; + var B = (top + bottom) * r_height; + var C = (far + near) * r_depth; + var D = 2 * (far * near * r_depth); + return [x, 0, 0, 0, 0, y, 0, 0, A, B, C, -1, 0, 0, D, 0]; + }, + createPerspective: function createPerspective(fovInRadians, aspect, near, far) { + var h = 1 / Math.tan(fovInRadians / 2); + var r_depth = 1 / (near - far); + var C = (far + near) * r_depth; + var D = 2 * (far * near * r_depth); + return [h / aspect, 0, 0, 0, 0, h, 0, 0, 0, 0, C, -1, 0, 0, D, 0]; + }, + createTranslate2d: function createTranslate2d(x, y) { + var mat = MatrixMath.createIdentityMatrix(); + MatrixMath.reuseTranslate2dCommand(mat, x, y); + return mat; + }, + reuseTranslate2dCommand: function reuseTranslate2dCommand(matrixCommand, x, y) { + matrixCommand[12] = x; + matrixCommand[13] = y; + }, + reuseTranslate3dCommand: function reuseTranslate3dCommand(matrixCommand, x, y, z) { + matrixCommand[12] = x; + matrixCommand[13] = y; + matrixCommand[14] = z; + }, + createScale: function createScale(factor) { + var mat = MatrixMath.createIdentityMatrix(); + MatrixMath.reuseScaleCommand(mat, factor); + return mat; + }, + reuseScaleCommand: function reuseScaleCommand(matrixCommand, factor) { + matrixCommand[0] = factor; + matrixCommand[5] = factor; + }, + reuseScale3dCommand: function reuseScale3dCommand(matrixCommand, x, y, z) { + matrixCommand[0] = x; + matrixCommand[5] = y; + matrixCommand[10] = z; + }, + reusePerspectiveCommand: function reusePerspectiveCommand(matrixCommand, p) { + matrixCommand[11] = -1 / p; + }, + reuseScaleXCommand: function reuseScaleXCommand(matrixCommand, factor) { + matrixCommand[0] = factor; + }, + reuseScaleYCommand: function reuseScaleYCommand(matrixCommand, factor) { + matrixCommand[5] = factor; + }, + reuseScaleZCommand: function reuseScaleZCommand(matrixCommand, factor) { + matrixCommand[10] = factor; + }, + reuseRotateXCommand: function reuseRotateXCommand(matrixCommand, radians) { + matrixCommand[5] = Math.cos(radians); + matrixCommand[6] = Math.sin(radians); + matrixCommand[9] = -Math.sin(radians); + matrixCommand[10] = Math.cos(radians); + }, + reuseRotateYCommand: function reuseRotateYCommand(matrixCommand, amount) { + matrixCommand[0] = Math.cos(amount); + matrixCommand[2] = -Math.sin(amount); + matrixCommand[8] = Math.sin(amount); + matrixCommand[10] = Math.cos(amount); + }, + reuseRotateZCommand: function reuseRotateZCommand(matrixCommand, radians) { + matrixCommand[0] = Math.cos(radians); + matrixCommand[1] = Math.sin(radians); + matrixCommand[4] = -Math.sin(radians); + matrixCommand[5] = Math.cos(radians); + }, + createRotateZ: function createRotateZ(radians) { + var mat = MatrixMath.createIdentityMatrix(); + MatrixMath.reuseRotateZCommand(mat, radians); + return mat; + }, + reuseSkewXCommand: function reuseSkewXCommand(matrixCommand, radians) { + matrixCommand[4] = Math.tan(radians); + }, + reuseSkewYCommand: function reuseSkewYCommand(matrixCommand, radians) { + matrixCommand[1] = Math.tan(radians); + }, + multiplyInto: function multiplyInto(out, a, b) { + var a00 = a[0], + a01 = a[1], + a02 = a[2], + a03 = a[3], + a10 = a[4], + a11 = a[5], + a12 = a[6], + a13 = a[7], + a20 = a[8], + a21 = a[9], + a22 = a[10], + a23 = a[11], + a30 = a[12], + a31 = a[13], + a32 = a[14], + a33 = a[15]; + var b0 = b[0], + b1 = b[1], + b2 = b[2], + b3 = b[3]; + out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; + out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; + out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; + out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; + b0 = b[4]; + b1 = b[5]; + b2 = b[6]; + b3 = b[7]; + out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; + out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; + out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; + out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; + b0 = b[8]; + b1 = b[9]; + b2 = b[10]; + b3 = b[11]; + out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; + out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; + out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; + out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; + b0 = b[12]; + b1 = b[13]; + b2 = b[14]; + b3 = b[15]; + out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; + out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; + out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; + out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; + }, + determinant: function determinant(matrix) { + var _matrix = _slicedToArray(matrix, 16), + m00 = _matrix[0], + m01 = _matrix[1], + m02 = _matrix[2], + m03 = _matrix[3], + m10 = _matrix[4], + m11 = _matrix[5], + m12 = _matrix[6], + m13 = _matrix[7], + m20 = _matrix[8], + m21 = _matrix[9], + m22 = _matrix[10], + m23 = _matrix[11], + m30 = _matrix[12], + m31 = _matrix[13], + m32 = _matrix[14], + m33 = _matrix[15]; + + return m03 * m12 * m21 * m30 - m02 * m13 * m21 * m30 - m03 * m11 * m22 * m30 + m01 * m13 * m22 * m30 + m02 * m11 * m23 * m30 - m01 * m12 * m23 * m30 - m03 * m12 * m20 * m31 + m02 * m13 * m20 * m31 + m03 * m10 * m22 * m31 - m00 * m13 * m22 * m31 - m02 * m10 * m23 * m31 + m00 * m12 * m23 * m31 + m03 * m11 * m20 * m32 - m01 * m13 * m20 * m32 - m03 * m10 * m21 * m32 + m00 * m13 * m21 * m32 + m01 * m10 * m23 * m32 - m00 * m11 * m23 * m32 - m02 * m11 * m20 * m33 + m01 * m12 * m20 * m33 + m02 * m10 * m21 * m33 - m00 * m12 * m21 * m33 - m01 * m10 * m22 * m33 + m00 * m11 * m22 * m33; + }, + inverse: function inverse(matrix) { + var det = MatrixMath.determinant(matrix); + + if (!det) { + return matrix; + } + + var _matrix2 = _slicedToArray(matrix, 16), + m00 = _matrix2[0], + m01 = _matrix2[1], + m02 = _matrix2[2], + m03 = _matrix2[3], + m10 = _matrix2[4], + m11 = _matrix2[5], + m12 = _matrix2[6], + m13 = _matrix2[7], + m20 = _matrix2[8], + m21 = _matrix2[9], + m22 = _matrix2[10], + m23 = _matrix2[11], + m30 = _matrix2[12], + m31 = _matrix2[13], + m32 = _matrix2[14], + m33 = _matrix2[15]; + + return [(m12 * m23 * m31 - m13 * m22 * m31 + m13 * m21 * m32 - m11 * m23 * m32 - m12 * m21 * m33 + m11 * m22 * m33) / det, (m03 * m22 * m31 - m02 * m23 * m31 - m03 * m21 * m32 + m01 * m23 * m32 + m02 * m21 * m33 - m01 * m22 * m33) / det, (m02 * m13 * m31 - m03 * m12 * m31 + m03 * m11 * m32 - m01 * m13 * m32 - m02 * m11 * m33 + m01 * m12 * m33) / det, (m03 * m12 * m21 - m02 * m13 * m21 - m03 * m11 * m22 + m01 * m13 * m22 + m02 * m11 * m23 - m01 * m12 * m23) / det, (m13 * m22 * m30 - m12 * m23 * m30 - m13 * m20 * m32 + m10 * m23 * m32 + m12 * m20 * m33 - m10 * m22 * m33) / det, (m02 * m23 * m30 - m03 * m22 * m30 + m03 * m20 * m32 - m00 * m23 * m32 - m02 * m20 * m33 + m00 * m22 * m33) / det, (m03 * m12 * m30 - m02 * m13 * m30 - m03 * m10 * m32 + m00 * m13 * m32 + m02 * m10 * m33 - m00 * m12 * m33) / det, (m02 * m13 * m20 - m03 * m12 * m20 + m03 * m10 * m22 - m00 * m13 * m22 - m02 * m10 * m23 + m00 * m12 * m23) / det, (m11 * m23 * m30 - m13 * m21 * m30 + m13 * m20 * m31 - m10 * m23 * m31 - m11 * m20 * m33 + m10 * m21 * m33) / det, (m03 * m21 * m30 - m01 * m23 * m30 - m03 * m20 * m31 + m00 * m23 * m31 + m01 * m20 * m33 - m00 * m21 * m33) / det, (m01 * m13 * m30 - m03 * m11 * m30 + m03 * m10 * m31 - m00 * m13 * m31 - m01 * m10 * m33 + m00 * m11 * m33) / det, (m03 * m11 * m20 - m01 * m13 * m20 - m03 * m10 * m21 + m00 * m13 * m21 + m01 * m10 * m23 - m00 * m11 * m23) / det, (m12 * m21 * m30 - m11 * m22 * m30 - m12 * m20 * m31 + m10 * m22 * m31 + m11 * m20 * m32 - m10 * m21 * m32) / det, (m01 * m22 * m30 - m02 * m21 * m30 + m02 * m20 * m31 - m00 * m22 * m31 - m01 * m20 * m32 + m00 * m21 * m32) / det, (m02 * m11 * m30 - m01 * m12 * m30 - m02 * m10 * m31 + m00 * m12 * m31 + m01 * m10 * m32 - m00 * m11 * m32) / det, (m01 * m12 * m20 - m02 * m11 * m20 + m02 * m10 * m21 - m00 * m12 * m21 - m01 * m10 * m22 + m00 * m11 * m22) / det]; + }, + transpose: function transpose(m) { + return [m[0], m[4], m[8], m[12], m[1], m[5], m[9], m[13], m[2], m[6], m[10], m[14], m[3], m[7], m[11], m[15]]; + }, + multiplyVectorByMatrix: function multiplyVectorByMatrix(v, m) { + var _v = _slicedToArray(v, 4), + vx = _v[0], + vy = _v[1], + vz = _v[2], + vw = _v[3]; + + return [vx * m[0] + vy * m[4] + vz * m[8] + vw * m[12], vx * m[1] + vy * m[5] + vz * m[9] + vw * m[13], vx * m[2] + vy * m[6] + vz * m[10] + vw * m[14], vx * m[3] + vy * m[7] + vz * m[11] + vw * m[15]]; + }, + v3Length: function v3Length(a) { + return Math.sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2]); + }, + v3Normalize: function v3Normalize(vector, v3Length) { + var im = 1 / (v3Length || MatrixMath.v3Length(vector)); + return [vector[0] * im, vector[1] * im, vector[2] * im]; + }, + v3Dot: function v3Dot(a, b) { + return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; + }, + v3Combine: function v3Combine(a, b, aScale, bScale) { + return [aScale * a[0] + bScale * b[0], aScale * a[1] + bScale * b[1], aScale * a[2] + bScale * b[2]]; + }, + v3Cross: function v3Cross(a, b) { + return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]; + }, + quaternionToDegreesXYZ: function quaternionToDegreesXYZ(q, matrix, row) { + var _q = _slicedToArray(q, 4), + qx = _q[0], + qy = _q[1], + qz = _q[2], + qw = _q[3]; + + var qw2 = qw * qw; + var qx2 = qx * qx; + var qy2 = qy * qy; + var qz2 = qz * qz; + var test = qx * qy + qz * qw; + var unit = qw2 + qx2 + qy2 + qz2; + var conv = 180 / Math.PI; + + if (test > 0.49999 * unit) { + return [0, 2 * Math.atan2(qx, qw) * conv, 90]; + } + + if (test < -0.49999 * unit) { + return [0, -2 * Math.atan2(qx, qw) * conv, -90]; + } + + return [MatrixMath.roundTo3Places(Math.atan2(2 * qx * qw - 2 * qy * qz, 1 - 2 * qx2 - 2 * qz2) * conv), MatrixMath.roundTo3Places(Math.atan2(2 * qy * qw - 2 * qx * qz, 1 - 2 * qy2 - 2 * qz2) * conv), MatrixMath.roundTo3Places(Math.asin(2 * qx * qy + 2 * qz * qw) * conv)]; + }, + roundTo3Places: function roundTo3Places(n) { + var arr = n.toString().split('e'); + return Math.round(arr[0] + 'e' + (arr[1] ? +arr[1] - 3 : 3)) * 0.001; + }, + decomposeMatrix: function decomposeMatrix(transformMatrix) { + invariant(transformMatrix.length === 16, 'Matrix decomposition needs a list of 3d matrix values, received %s', transformMatrix); + var perspective = []; + var quaternion = []; + var scale = []; + var skew = []; + var translation = []; + + if (!transformMatrix[15]) { + return; + } + + var matrix = []; + var perspectiveMatrix = []; + + for (var i = 0; i < 4; i++) { + matrix.push([]); + + for (var j = 0; j < 4; j++) { + var value = transformMatrix[i * 4 + j] / transformMatrix[15]; + matrix[i].push(value); + perspectiveMatrix.push(j === 3 ? 0 : value); + } + } + + perspectiveMatrix[15] = 1; + + if (!MatrixMath.determinant(perspectiveMatrix)) { + return; + } + + if (matrix[0][3] !== 0 || matrix[1][3] !== 0 || matrix[2][3] !== 0) { + var rightHandSide = [matrix[0][3], matrix[1][3], matrix[2][3], matrix[3][3]]; + var inversePerspectiveMatrix = MatrixMath.inverse(perspectiveMatrix); + var transposedInversePerspectiveMatrix = MatrixMath.transpose(inversePerspectiveMatrix); + var perspective = MatrixMath.multiplyVectorByMatrix(rightHandSide, transposedInversePerspectiveMatrix); + } else { + perspective[0] = perspective[1] = perspective[2] = 0; + perspective[3] = 1; + } + + for (var i = 0; i < 3; i++) { + translation[i] = matrix[3][i]; + } + + var row = []; + + for (i = 0; i < 3; i++) { + row[i] = [matrix[i][0], matrix[i][1], matrix[i][2]]; + } + + scale[0] = MatrixMath.v3Length(row[0]); + row[0] = MatrixMath.v3Normalize(row[0], scale[0]); + skew[0] = MatrixMath.v3Dot(row[0], row[1]); + row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]); + skew[0] = MatrixMath.v3Dot(row[0], row[1]); + row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]); + scale[1] = MatrixMath.v3Length(row[1]); + row[1] = MatrixMath.v3Normalize(row[1], scale[1]); + skew[0] /= scale[1]; + skew[1] = MatrixMath.v3Dot(row[0], row[2]); + row[2] = MatrixMath.v3Combine(row[2], row[0], 1.0, -skew[1]); + skew[2] = MatrixMath.v3Dot(row[1], row[2]); + row[2] = MatrixMath.v3Combine(row[2], row[1], 1.0, -skew[2]); + scale[2] = MatrixMath.v3Length(row[2]); + row[2] = MatrixMath.v3Normalize(row[2], scale[2]); + skew[1] /= scale[2]; + skew[2] /= scale[2]; + var pdum3 = MatrixMath.v3Cross(row[1], row[2]); + + if (MatrixMath.v3Dot(row[0], pdum3) < 0) { + for (i = 0; i < 3; i++) { + scale[i] *= -1; + row[i][0] *= -1; + row[i][1] *= -1; + row[i][2] *= -1; + } + } + + quaternion[0] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] - row[1][1] - row[2][2], 0)); + quaternion[1] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] + row[1][1] - row[2][2], 0)); + quaternion[2] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] - row[1][1] + row[2][2], 0)); + quaternion[3] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] + row[1][1] + row[2][2], 0)); + + if (row[2][1] > row[1][2]) { + quaternion[0] = -quaternion[0]; + } + + if (row[0][2] > row[2][0]) { + quaternion[1] = -quaternion[1]; + } + + if (row[1][0] > row[0][1]) { + quaternion[2] = -quaternion[2]; + } + + var rotationDegrees; + + if (quaternion[0] < 0.001 && quaternion[0] >= 0 && quaternion[1] < 0.001 && quaternion[1] >= 0) { + rotationDegrees = [0, 0, MatrixMath.roundTo3Places(Math.atan2(row[0][1], row[0][0]) * 180 / Math.PI)]; + } else { + rotationDegrees = MatrixMath.quaternionToDegreesXYZ(quaternion, matrix, row); + } + + return { + rotationDegrees: rotationDegrees, + perspective: perspective, + quaternion: quaternion, + scale: scale, + skew: skew, + translation: translation, + rotate: rotationDegrees[2], + rotateX: rotationDegrees[0], + rotateY: rotationDegrees[1], + scaleX: scale[0], + scaleY: scale[1], + translateX: translation[0], + translateY: translation[1] + }; + } + }; + module.exports = MatrixMath; +},223,[166],"node_modules/react-native/Libraries/Utilities/MatrixMath.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var dummySize = { + width: undefined, + height: undefined + }; + + var sizesDiffer = function sizesDiffer(one, two) { + one = one || dummySize; + two = two || dummySize; + return one !== two && (one.width !== two.width || one.height !== two.height); + }; + + module.exports = sizesDiffer; +},224,[],"node_modules/react-native/Libraries/Utilities/differ/sizesDiffer.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var ImageStylePropTypes = _$$_REQUIRE(_dependencyMap[0], 'ImageStylePropTypes'); + + var TextStylePropTypes = _$$_REQUIRE(_dependencyMap[1], 'TextStylePropTypes'); + + var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[2], 'ViewStylePropTypes'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + + var StyleSheetValidation = function () { + function StyleSheetValidation() { + _classCallCheck(this, StyleSheetValidation); + } + + _createClass(StyleSheetValidation, null, [{ + key: "validateStyleProp", + value: function validateStyleProp(prop, style, caller) { + if (!__DEV__) { + return; + } + + if (allStylePropTypes[prop] === undefined) { + var message1 = '"' + prop + '" is not a valid style property.'; + var message2 = '\nValid style props: ' + JSON.stringify(Object.keys(allStylePropTypes).sort(), null, ' '); + styleError(message1, style, caller, message2); + } + + var error = allStylePropTypes[prop](style, prop, caller, 'prop', null, ReactPropTypesSecret); + + if (error) { + styleError(error.message, style, caller); + } + } + }, { + key: "validateStyle", + value: function validateStyle(name, styles) { + if (!__DEV__) { + return; + } + + for (var prop in styles[name]) { + StyleSheetValidation.validateStyleProp(prop, styles[name], 'StyleSheet ' + name); + } + } + }, { + key: "addValidStylePropTypes", + value: function addValidStylePropTypes(stylePropTypes) { + for (var key in stylePropTypes) { + allStylePropTypes[key] = stylePropTypes[key]; + } + } + }]); + + return StyleSheetValidation; + }(); + + var styleError = function styleError(message1, style, caller, message2) { + invariant(false, message1 + '\n' + (caller || '<>') + ': ' + JSON.stringify(style, null, ' ') + (message2 || '')); + }; + + var allStylePropTypes = {}; + StyleSheetValidation.addValidStylePropTypes(ImageStylePropTypes); + StyleSheetValidation.addValidStylePropTypes(TextStylePropTypes); + StyleSheetValidation.addValidStylePropTypes(ViewStylePropTypes); + module.exports = StyleSheetValidation; +},225,[206,219,220,166],"node_modules/react-native/Libraries/StyleSheet/StyleSheetValidation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function flattenStyle(style) { + if (style === null || typeof style !== 'object') { + return undefined; + } + + if (!Array.isArray(style)) { + return style; + } + + var result = {}; + + for (var i = 0, styleLength = style.length; i < styleLength; ++i) { + var computedStyle = flattenStyle(style[i]); + + if (computedStyle) { + for (var key in computedStyle) { + result[key] = computedStyle[key]; + } + } + } + + return result; + } + + module.exports = flattenStyle; +},226,[],"node_modules/react-native/Libraries/StyleSheet/flattenStyle.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/View/View.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var React = _$$_REQUIRE(_dependencyMap[0], 'React'); + + var TextAncestor = _$$_REQUIRE(_dependencyMap[1], 'TextAncestor'); + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[3], 'requireNativeComponent'); + + var RCTView = requireNativeComponent('RCTView'); + var ViewToExport = RCTView; + + if (__DEV__) { + ViewToExport = React.forwardRef(function (props, ref) { + return React.createElement(TextAncestor.Consumer, { + __source: { + fileName: _jsxFileName, + lineNumber: 37 + } + }, function (hasTextAncestor) { + invariant(!hasTextAncestor, 'Nesting of within is not currently supported.'); + return React.createElement(RCTView, _extends({}, props, { + ref: ref, + __source: { + fileName: _jsxFileName, + lineNumber: 43 + } + })); + }); + }); + ViewToExport.displayName = 'View'; + } + + module.exports = ViewToExport; +},227,[200,228,166,229],"node_modules/react-native/Libraries/Components/View/View.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var React = _$$_REQUIRE(_dependencyMap[0], 'React'); + + module.exports = React.createContext(false); +},228,[200],"node_modules/react-native/Libraries/Text/TextAncestor.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], 'ReactNativeStyleAttributes'); + + var UIManager = _$$_REQUIRE(_dependencyMap[1], 'UIManager'); + + var createReactNativeComponentClass = _$$_REQUIRE(_dependencyMap[2], 'createReactNativeComponentClass'); + + var insetsDiffer = _$$_REQUIRE(_dependencyMap[3], 'insetsDiffer'); + + var matricesDiffer = _$$_REQUIRE(_dependencyMap[4], 'matricesDiffer'); + + var pointsDiffer = _$$_REQUIRE(_dependencyMap[5], 'pointsDiffer'); + + var processColor = _$$_REQUIRE(_dependencyMap[6], 'processColor'); + + var resolveAssetSource = _$$_REQUIRE(_dependencyMap[7], 'resolveAssetSource'); + + var sizesDiffer = _$$_REQUIRE(_dependencyMap[8], 'sizesDiffer'); + + var invariant = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/invariant'); + + var warning = _$$_REQUIRE(_dependencyMap[10], 'fbjs/lib/warning'); + + var requireNativeComponent = function requireNativeComponent(uiViewClassName) { + return createReactNativeComponentClass(uiViewClassName, function () { + var viewConfig = UIManager[uiViewClassName]; + invariant(viewConfig != null && viewConfig.NativeProps != null, 'requireNativeComponent: "%s" was not found in the UIManager.', uiViewClassName); + var baseModuleName = viewConfig.baseModuleName, + bubblingEventTypes = viewConfig.bubblingEventTypes, + directEventTypes = viewConfig.directEventTypes; + var nativeProps = viewConfig.NativeProps; + + while (baseModuleName) { + var baseModule = UIManager[baseModuleName]; + + if (!baseModule) { + warning(false, 'Base module "%s" does not exist', baseModuleName); + baseModuleName = null; + } else { + bubblingEventTypes = _objectSpread({}, baseModule.bubblingEventTypes, bubblingEventTypes); + directEventTypes = _objectSpread({}, baseModule.directEventTypes, directEventTypes); + nativeProps = _objectSpread({}, baseModule.NativeProps, nativeProps); + baseModuleName = baseModule.baseModuleName; + } + } + + var validAttributes = {}; + + for (var key in nativeProps) { + var typeName = nativeProps[key]; + var diff = getDifferForType(typeName); + var process = getProcessorForType(typeName); + validAttributes[key] = diff == null && process == null ? true : { + diff: diff, + process: process + }; + } + + validAttributes.style = ReactNativeStyleAttributes; + + _extends(viewConfig, { + uiViewClassName: uiViewClassName, + validAttributes: validAttributes, + bubblingEventTypes: bubblingEventTypes, + directEventTypes: directEventTypes + }); + + if (!hasAttachedDefaultEventTypes) { + attachDefaultEventTypes(viewConfig); + hasAttachedDefaultEventTypes = true; + } + + return viewConfig; + }); + }; + + var hasAttachedDefaultEventTypes = false; + + function attachDefaultEventTypes(viewConfig) { + if (UIManager.ViewManagerNames) { + viewConfig = merge(viewConfig, UIManager.getDefaultEventTypes()); + } else { + viewConfig.bubblingEventTypes = merge(viewConfig.bubblingEventTypes, UIManager.genericBubblingEventTypes); + viewConfig.directEventTypes = merge(viewConfig.directEventTypes, UIManager.genericDirectEventTypes); + } + } + + function merge(destination, source) { + if (!source) { + return destination; + } + + if (!destination) { + return source; + } + + for (var key in source) { + if (!source.hasOwnProperty(key)) { + continue; + } + + var sourceValue = source[key]; + + if (destination.hasOwnProperty(key)) { + var destinationValue = destination[key]; + + if (typeof sourceValue === 'object' && typeof destinationValue === 'object') { + sourceValue = merge(destinationValue, sourceValue); + } + } + + destination[key] = sourceValue; + } + + return destination; + } + + function getDifferForType(typeName) { + switch (typeName) { + case 'CATransform3D': + return matricesDiffer; + + case 'CGPoint': + return pointsDiffer; + + case 'CGSize': + return sizesDiffer; + + case 'UIEdgeInsets': + return insetsDiffer; + } + + return null; + } + + function getProcessorForType(typeName) { + switch (typeName) { + case 'CGColor': + case 'UIColor': + return processColor; + + case 'CGColorArray': + case 'UIColorArray': + return processColorArray; + + case 'CGImage': + case 'UIImage': + case 'RCTImageSource': + return resolveAssetSource; + + case 'Color': + return processColor; + + case 'ColorArray': + return processColorArray; + } + + return null; + } + + function processColorArray(colors) { + return colors == null ? null : colors.map(processColor); + } + + module.exports = requireNativeComponent; +},229,[205,218,230,232,233,234,221,235,224,166,183],"node_modules/react-native/Libraries/ReactNative/requireNativeComponent.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _require = _$$_REQUIRE(_dependencyMap[0], 'ReactNativeViewConfigRegistry'), + register = _require.register; + + var createReactNativeComponentClass = function createReactNativeComponentClass(name, callback) { + return register(name, callback); + }; + + module.exports = createReactNativeComponentClass; +},230,[231],"node_modules/react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var customBubblingEventTypes = {}; + var customDirectEventTypes = {}; + var eventTypes = {}; + exports.customBubblingEventTypes = customBubblingEventTypes; + exports.customDirectEventTypes = customDirectEventTypes; + exports.eventTypes = eventTypes; + var viewConfigCallbacks = new Map(); + var viewConfigs = new Map(); + + function processEventTypes(viewConfig) { + var bubblingEventTypes = viewConfig.bubblingEventTypes, + directEventTypes = viewConfig.directEventTypes; + + if (__DEV__) { + if (bubblingEventTypes != null && directEventTypes != null) { + for (var topLevelType in directEventTypes) { + invariant(bubblingEventTypes[topLevelType] == null, 'Event cannot be both direct and bubbling: %s', topLevelType); + } + } + } + + if (bubblingEventTypes != null) { + for (var _topLevelType in bubblingEventTypes) { + if (customBubblingEventTypes[_topLevelType] == null) { + eventTypes[_topLevelType] = customBubblingEventTypes[_topLevelType] = bubblingEventTypes[_topLevelType]; + } + } + } + + if (directEventTypes != null) { + for (var _topLevelType2 in directEventTypes) { + if (customDirectEventTypes[_topLevelType2] == null) { + eventTypes[_topLevelType2] = customDirectEventTypes[_topLevelType2] = directEventTypes[_topLevelType2]; + } + } + } + } + + exports.register = function (name, callback) { + invariant(!viewConfigCallbacks.has(name), 'Tried to register two views with the same name %s', name); + viewConfigCallbacks.set(name, callback); + return name; + }; + + exports.get = function (name) { + var viewConfig; + + if (!viewConfigs.has(name)) { + var callback = viewConfigCallbacks.get(name); + invariant(typeof callback === 'function', 'View config not found for name %s', name); + viewConfigCallbacks.set(name, null); + viewConfig = callback(); + processEventTypes(viewConfig); + viewConfigs.set(name, viewConfig); + } else { + viewConfig = viewConfigs.get(name); + } + + invariant(viewConfig, 'View config not found for name %s', name); + return viewConfig; + }; +},231,[166],"node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var dummyInsets = { + top: undefined, + left: undefined, + right: undefined, + bottom: undefined + }; + + var insetsDiffer = function insetsDiffer(one, two) { + one = one || dummyInsets; + two = two || dummyInsets; + return one !== two && (one.top !== two.top || one.left !== two.left || one.right !== two.right || one.bottom !== two.bottom); + }; + + module.exports = insetsDiffer; +},232,[],"node_modules/react-native/Libraries/Utilities/differ/insetsDiffer.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var matricesDiffer = function matricesDiffer(one, two) { + if (one === two) { + return false; + } + + return !one || !two || one[12] !== two[12] || one[13] !== two[13] || one[14] !== two[14] || one[5] !== two[5] || one[10] !== two[10] || one[1] !== two[1] || one[2] !== two[2] || one[3] !== two[3] || one[4] !== two[4] || one[6] !== two[6] || one[7] !== two[7] || one[8] !== two[8] || one[9] !== two[9] || one[11] !== two[11] || one[15] !== two[15]; + }; + + module.exports = matricesDiffer; +},233,[],"node_modules/react-native/Libraries/Utilities/differ/matricesDiffer.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var dummyPoint = { + x: undefined, + y: undefined + }; + + var pointsDiffer = function pointsDiffer(one, two) { + one = one || dummyPoint; + two = two || dummyPoint; + return one !== two && (one.x !== two.x || one.y !== two.y); + }; + + module.exports = pointsDiffer; +},234,[],"node_modules/react-native/Libraries/Utilities/differ/pointsDiffer.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var AssetRegistry = _$$_REQUIRE(_dependencyMap[0], 'AssetRegistry'); + + var AssetSourceResolver = _$$_REQUIRE(_dependencyMap[1], 'AssetSourceResolver'); + + var _customSourceTransformer, _serverURL, _scriptURL; + + var _sourceCodeScriptURL; + + function getSourceCodeScriptURL() { + if (_sourceCodeScriptURL) { + return _sourceCodeScriptURL; + } + + var sourceCode = global.nativeExtensions && global.nativeExtensions.SourceCode; + + if (!sourceCode) { + var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); + + sourceCode = NativeModules && NativeModules.SourceCode; + } + + _sourceCodeScriptURL = sourceCode.scriptURL; + return _sourceCodeScriptURL; + } + + function getDevServerURL() { + if (_serverURL === undefined) { + var sourceCodeScriptURL = getSourceCodeScriptURL(); + var match = sourceCodeScriptURL && sourceCodeScriptURL.match(/^https?:\/\/.*?\//); + + if (match) { + _serverURL = match[0]; + } else { + _serverURL = null; + } + } + + return _serverURL; + } + + function _coerceLocalScriptURL(scriptURL) { + if (scriptURL) { + if (scriptURL.startsWith('assets://')) { + return null; + } + + scriptURL = scriptURL.substring(0, scriptURL.lastIndexOf('/') + 1); + + if (!scriptURL.includes('://')) { + scriptURL = 'file://' + scriptURL; + } + } + + return scriptURL; + } + + function getScriptURL() { + if (_scriptURL === undefined) { + _scriptURL = _coerceLocalScriptURL(getSourceCodeScriptURL()); + } + + return _scriptURL; + } + + function setCustomSourceTransformer(transformer) { + _customSourceTransformer = transformer; + } + + function resolveAssetSource(source) { + if (typeof source === 'object') { + return source; + } + + var asset = AssetRegistry.getAssetByID(source); + + if (!asset) { + return null; + } + + var resolver = new AssetSourceResolver(getDevServerURL(), getScriptURL(), asset); + + if (_customSourceTransformer) { + return _customSourceTransformer(resolver); + } + + return resolver.defaultAsset(); + } + + module.exports = resolveAssetSource; + module.exports.pickScale = AssetSourceResolver.pickScale; + module.exports.setCustomSourceTransformer = setCustomSourceTransformer; +},235,[236,237,168],"node_modules/react-native/Libraries/Image/resolveAssetSource.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var assets = []; + + function registerAsset(asset) { + return assets.push(asset); + } + + function getAssetByID(assetId) { + return assets[assetId - 1]; + } + + module.exports = { + registerAsset: registerAsset, + getAssetByID: getAssetByID + }; +},236,[],"node_modules/react-native/Libraries/Image/AssetRegistry.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var PixelRatio = _$$_REQUIRE(_dependencyMap[0], 'PixelRatio'); + + var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); + + var assetPathUtils = _$$_REQUIRE(_dependencyMap[2], '../../local-cli/bundle/assetPathUtils'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + function getScaledAssetPath(asset) { + var scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get()); + var scaleSuffix = scale === 1 ? '' : '@' + scale + 'x'; + var assetDir = assetPathUtils.getBasePath(asset); + return assetDir + '/' + asset.name + scaleSuffix + '.' + asset.type; + } + + function getAssetPathInDrawableFolder(asset) { + var scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get()); + var drawbleFolder = assetPathUtils.getAndroidResourceFolderName(asset, scale); + var fileName = assetPathUtils.getAndroidResourceIdentifier(asset); + return drawbleFolder + '/' + fileName + '.' + asset.type; + } + + var AssetSourceResolver = function () { + function AssetSourceResolver(serverUrl, jsbundleUrl, asset) { + _classCallCheck(this, AssetSourceResolver); + + this.serverUrl = serverUrl; + this.jsbundleUrl = jsbundleUrl; + this.asset = asset; + } + + _createClass(AssetSourceResolver, [{ + key: "isLoadedFromServer", + value: function isLoadedFromServer() { + return !!this.serverUrl; + } + }, { + key: "isLoadedFromFileSystem", + value: function isLoadedFromFileSystem() { + return !!(this.jsbundleUrl && this.jsbundleUrl.startsWith('file://')); + } + }, { + key: "defaultAsset", + value: function defaultAsset() { + if (this.isLoadedFromServer()) { + return this.assetServerURL(); + } + + if (Platform.OS === 'android') { + return this.isLoadedFromFileSystem() ? this.drawableFolderInBundle() : this.resourceIdentifierWithoutScale(); + } else { + return this.scaledAssetURLNearBundle(); + } + } + }, { + key: "assetServerURL", + value: function assetServerURL() { + invariant(!!this.serverUrl, 'need server to load from'); + return this.fromSource(this.serverUrl + getScaledAssetPath(this.asset) + '?platform=' + Platform.OS + '&hash=' + this.asset.hash); + } + }, { + key: "scaledAssetPath", + value: function scaledAssetPath() { + return this.fromSource(getScaledAssetPath(this.asset)); + } + }, { + key: "scaledAssetURLNearBundle", + value: function scaledAssetURLNearBundle() { + var path = this.jsbundleUrl || 'file://'; + return this.fromSource(path + getScaledAssetPath(this.asset)); + } + }, { + key: "resourceIdentifierWithoutScale", + value: function resourceIdentifierWithoutScale() { + invariant(Platform.OS === 'android', 'resource identifiers work on Android'); + return this.fromSource(assetPathUtils.getAndroidResourceIdentifier(this.asset)); + } + }, { + key: "drawableFolderInBundle", + value: function drawableFolderInBundle() { + var path = this.jsbundleUrl || 'file://'; + return this.fromSource(path + getAssetPathInDrawableFolder(this.asset)); + } + }, { + key: "fromSource", + value: function fromSource(source) { + return { + __packager_asset: true, + width: this.asset.width, + height: this.asset.height, + uri: source, + scale: AssetSourceResolver.pickScale(this.asset.scales, PixelRatio.get()) + }; + } + }], [{ + key: "pickScale", + value: function pickScale(scales, deviceScale) { + for (var i = 0; i < scales.length; i++) { + if (scales[i] >= deviceScale) { + return scales[i]; + } + } + + return scales[scales.length - 1] || 1; + } + }]); + + return AssetSourceResolver; + }(); + + module.exports = AssetSourceResolver; +},237,[202,176,238,166],"node_modules/react-native/Libraries/Image/AssetSourceResolver.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function getAndroidAssetSuffix(scale) { + switch (scale) { + case 0.75: + return 'ldpi'; + + case 1: + return 'mdpi'; + + case 1.5: + return 'hdpi'; + + case 2: + return 'xhdpi'; + + case 3: + return 'xxhdpi'; + + case 4: + return 'xxxhdpi'; + } + + throw new Error('no such scale'); + } + + var drawableFileTypes = new Set(['gif', 'jpeg', 'jpg', 'png', 'svg', 'webp', 'xml']); + + function getAndroidResourceFolderName(asset, scale) { + if (!drawableFileTypes.has(asset.type)) { + return 'raw'; + } + + var suffix = getAndroidAssetSuffix(scale); + + if (!suffix) { + throw new Error("Don't know which android drawable suffix to use for asset: " + JSON.stringify(asset)); + } + + var androidFolder = 'drawable-' + suffix; + return androidFolder; + } + + function getAndroidResourceIdentifier(asset) { + var folderPath = getBasePath(asset); + return (folderPath + '/' + asset.name).toLowerCase().replace(/\//g, '_').replace(/([^a-z0-9_])/g, '').replace(/^assets_/, ''); + } + + function getBasePath(asset) { + var basePath = asset.httpServerLocation; + + if (basePath[0] === '/') { + basePath = basePath.substr(1); + } + + return basePath; + } + + module.exports = { + getAndroidAssetSuffix: getAndroidAssetSuffix, + getAndroidResourceFolderName: getAndroidResourceFolderName, + getAndroidResourceIdentifier: getAndroidResourceIdentifier, + getBasePath: getBasePath + }; +},238,[],"node_modules/react-native/local-cli/bundle/assetPathUtils.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); +},239,[240],"node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + UnimplementedView: { + displayName: "UnimplementedView" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); + + var UnimplementedView = function (_React$Component) { + function UnimplementedView() { + _classCallCheck(this, UnimplementedView); + + return _possibleConstructorReturn(this, _getPrototypeOf(UnimplementedView).apply(this, arguments)); + } + + _createClass(UnimplementedView, [{ + key: "setNativeProps", + value: function setNativeProps() {} + }, { + key: "render", + value: function render() { + var View = _$$_REQUIRE(_dependencyMap[4], 'View'); + + return React.createElement(View, { + style: [styles.unimplementedView, this.props.style], + __source: { + fileName: _jsxFileName, + lineNumber: 30 + } + }, this.props.children); + } + }]); + + _inherits(UnimplementedView, _React$Component); + + return UnimplementedView; + }(React.Component); + + UnimplementedView = _wrapComponent("UnimplementedView")(UnimplementedView); + var styles = StyleSheet.create({ + unimplementedView: __DEV__ ? { + alignSelf: 'flex-start', + borderColor: 'red', + borderWidth: 1 + } : {} + }); + module.exports = UnimplementedView; +},240,[1,11,200,201,227],"node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/ART/ReactNativeART.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + Surface: { + displayName: "Surface" + }, + Group: { + displayName: "Group" + }, + ClippingRectangle: { + displayName: "ClippingRectangle" + }, + Shape: { + displayName: "Shape" + }, + Text: { + displayName: "Text" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/ART/ReactNativeART.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Color = _$$_REQUIRE(_dependencyMap[2], 'art/core/color'); + + var Path = _$$_REQUIRE(_dependencyMap[3], 'ARTSerializablePath'); + + var Transform = _$$_REQUIRE(_dependencyMap[4], 'art/core/transform'); + + var React = _$$_REQUIRE(_dependencyMap[5], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[6], 'prop-types'); + + var ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[7], 'ReactNativeViewAttributes'); + + var createReactNativeComponentClass = _$$_REQUIRE(_dependencyMap[8], 'createReactNativeComponentClass'); + + var merge = _$$_REQUIRE(_dependencyMap[9], 'merge'); + + var invariant = _$$_REQUIRE(_dependencyMap[10], 'fbjs/lib/invariant'); + + function arrayDiffer(a, b) { + if (a == null || b == null) { + return true; + } + + if (a.length !== b.length) { + return true; + } + + for (var i = 0; i < a.length; i++) { + if (a[i] !== b[i]) { + return true; + } + } + + return false; + } + + function fontAndLinesDiffer(a, b) { + if (a === b) { + return false; + } + + if (a.font !== b.font) { + if (a.font === null) { + return true; + } + + if (b.font === null) { + return true; + } + + if (a.font.fontFamily !== b.font.fontFamily || a.font.fontSize !== b.font.fontSize || a.font.fontWeight !== b.font.fontWeight || a.font.fontStyle !== b.font.fontStyle) { + return true; + } + } + + return arrayDiffer(a.lines, b.lines); + } + + var SurfaceViewAttributes = merge(ReactNativeViewAttributes.UIView, {}); + var NodeAttributes = { + transform: { + diff: arrayDiffer + }, + opacity: true + }; + var GroupAttributes = merge(NodeAttributes, { + clipping: { + diff: arrayDiffer + } + }); + var RenderableAttributes = merge(NodeAttributes, { + fill: { + diff: arrayDiffer + }, + stroke: { + diff: arrayDiffer + }, + strokeWidth: true, + strokeCap: true, + strokeJoin: true, + strokeDash: { + diff: arrayDiffer + } + }); + var ShapeAttributes = merge(RenderableAttributes, { + d: { + diff: arrayDiffer + } + }); + var TextAttributes = merge(RenderableAttributes, { + alignment: true, + frame: { + diff: fontAndLinesDiffer + }, + path: { + diff: arrayDiffer + } + }); + var NativeSurfaceView = createReactNativeComponentClass('ARTSurfaceView', function () { + return { + validAttributes: SurfaceViewAttributes, + uiViewClassName: 'ARTSurfaceView' + }; + }); + var NativeGroup = createReactNativeComponentClass('ARTGroup', function () { + return { + validAttributes: GroupAttributes, + uiViewClassName: 'ARTGroup' + }; + }); + var NativeShape = createReactNativeComponentClass('ARTShape', function () { + return { + validAttributes: ShapeAttributes, + uiViewClassName: 'ARTShape' + }; + }); + var NativeText = createReactNativeComponentClass('ARTText', function () { + return { + validAttributes: TextAttributes, + uiViewClassName: 'ARTText' + }; + }); + + function childrenAsString(children) { + if (!children) { + return ''; + } + + if (typeof children === 'string') { + return children; + } + + if (children.length) { + return children.join('\n'); + } + + return ''; + } + + var Surface = function (_React$Component) { + function Surface() { + _classCallCheck(this, Surface); + + return _possibleConstructorReturn(this, _getPrototypeOf(Surface).apply(this, arguments)); + } + + _createClass(Surface, [{ + key: "getChildContext", + value: function getChildContext() { + return { + isInSurface: true + }; + } + }, { + key: "render", + value: function render() { + var props = this.props; + var w = extractNumber(props.width, 0); + var h = extractNumber(props.height, 0); + return React.createElement(NativeSurfaceView, { + style: [props.style, { + width: w, + height: h + }], + __source: { + fileName: _jsxFileName, + lineNumber: 157 + } + }, this.props.children); + } + }]); + + _inherits(Surface, _React$Component); + + return Surface; + }(React.Component); + + Surface.childContextTypes = { + isInSurface: PropTypes.bool + }; + Surface = _wrapComponent("Surface")(Surface); + + function extractNumber(value, defaultValue) { + if (value == null) { + return defaultValue; + } + + return +value; + } + + var pooledTransform = new Transform(); + + function extractTransform(props) { + var scaleX = props.scaleX != null ? props.scaleX : props.scale != null ? props.scale : 1; + var scaleY = props.scaleY != null ? props.scaleY : props.scale != null ? props.scale : 1; + pooledTransform.transformTo(1, 0, 0, 1, 0, 0).move(props.x || 0, props.y || 0).rotate(props.rotation || 0, props.originX, props.originY).scale(scaleX, scaleY, props.originX, props.originY); + + if (props.transform != null) { + pooledTransform.transform(props.transform); + } + + return [pooledTransform.xx, pooledTransform.yx, pooledTransform.xy, pooledTransform.yy, pooledTransform.x, pooledTransform.y]; + } + + function extractOpacity(props) { + if (props.visible === false) { + return 0; + } + + if (props.opacity == null) { + return 1; + } + + return +props.opacity; + } + + var Group = function (_React$Component2) { + function Group() { + _classCallCheck(this, Group); + + return _possibleConstructorReturn(this, _getPrototypeOf(Group).apply(this, arguments)); + } + + _createClass(Group, [{ + key: "render", + value: function render() { + var props = this.props; + invariant(this.context.isInSurface, 'ART: must be a child of a '); + return React.createElement(NativeGroup, { + opacity: extractOpacity(props), + transform: extractTransform(props), + __source: { + fileName: _jsxFileName, + lineNumber: 232 + } + }, this.props.children); + } + }]); + + _inherits(Group, _React$Component2); + + return Group; + }(React.Component); + + Group.contextTypes = { + isInSurface: PropTypes.bool.isRequired + }; + Group = _wrapComponent("Group")(Group); + + var ClippingRectangle = function (_React$Component3) { + function ClippingRectangle() { + _classCallCheck(this, ClippingRectangle); + + return _possibleConstructorReturn(this, _getPrototypeOf(ClippingRectangle).apply(this, arguments)); + } + + _createClass(ClippingRectangle, [{ + key: "render", + value: function render() { + var props = this.props; + var x = extractNumber(props.x, 0); + var y = extractNumber(props.y, 0); + var w = extractNumber(props.width, 0); + var h = extractNumber(props.height, 0); + var clipping = [x, y, w, h]; + var propsExcludingXAndY = merge(props); + delete propsExcludingXAndY.x; + delete propsExcludingXAndY.y; + return React.createElement(NativeGroup, { + clipping: clipping, + opacity: extractOpacity(props), + transform: extractTransform(propsExcludingXAndY), + __source: { + fileName: _jsxFileName, + lineNumber: 254 + } + }, this.props.children); + } + }]); + + _inherits(ClippingRectangle, _React$Component3); + + return ClippingRectangle; + }(React.Component); + + ClippingRectangle = _wrapComponent("ClippingRectangle")(ClippingRectangle); + var SOLID_COLOR = 0; + var LINEAR_GRADIENT = 1; + var RADIAL_GRADIENT = 2; + var PATTERN = 3; + + function insertColorIntoArray(color, targetArray, atIndex) { + var c = new Color(color); + targetArray[atIndex + 0] = c.red / 255; + targetArray[atIndex + 1] = c.green / 255; + targetArray[atIndex + 2] = c.blue / 255; + targetArray[atIndex + 3] = c.alpha; + } + + function insertColorsIntoArray(stops, targetArray, atIndex) { + var i = 0; + + if ('length' in stops) { + while (i < stops.length) { + insertColorIntoArray(stops[i], targetArray, atIndex + i * 4); + i++; + } + } else { + for (var offset in stops) { + insertColorIntoArray(stops[offset], targetArray, atIndex + i * 4); + i++; + } + } + + return atIndex + i * 4; + } + + function insertOffsetsIntoArray(stops, targetArray, atIndex, multi, reverse) { + var offsetNumber; + var i = 0; + + if ('length' in stops) { + while (i < stops.length) { + offsetNumber = i / (stops.length - 1) * multi; + targetArray[atIndex + i] = reverse ? 1 - offsetNumber : offsetNumber; + i++; + } + } else { + for (var offsetString in stops) { + offsetNumber = +offsetString * multi; + targetArray[atIndex + i] = reverse ? 1 - offsetNumber : offsetNumber; + i++; + } + } + + return atIndex + i; + } + + function insertColorStopsIntoArray(stops, targetArray, atIndex) { + var lastIndex = insertColorsIntoArray(stops, targetArray, atIndex); + insertOffsetsIntoArray(stops, targetArray, lastIndex, 1, false); + } + + function insertDoubleColorStopsIntoArray(stops, targetArray, atIndex) { + var lastIndex = insertColorsIntoArray(stops, targetArray, atIndex); + lastIndex = insertColorsIntoArray(stops, targetArray, lastIndex); + lastIndex = insertOffsetsIntoArray(stops, targetArray, lastIndex, 0.5, false); + insertOffsetsIntoArray(stops, targetArray, lastIndex, 0.5, true); + } + + function applyBoundingBoxToBrushData(brushData, props) { + var type = brushData[0]; + var width = +props.width; + var height = +props.height; + + if (type === LINEAR_GRADIENT) { + brushData[1] *= width; + brushData[2] *= height; + brushData[3] *= width; + brushData[4] *= height; + } else if (type === RADIAL_GRADIENT) { + brushData[1] *= width; + brushData[2] *= height; + brushData[3] *= width; + brushData[4] *= height; + brushData[5] *= width; + brushData[6] *= height; + } else if (type === PATTERN) {} + } + + function extractBrush(colorOrBrush, props) { + if (colorOrBrush == null) { + return null; + } + + if (colorOrBrush._brush) { + if (colorOrBrush._bb) { + applyBoundingBoxToBrushData(colorOrBrush._brush, props); + colorOrBrush._bb = false; + } + + return colorOrBrush._brush; + } + + var c = new Color(colorOrBrush); + return [SOLID_COLOR, c.red / 255, c.green / 255, c.blue / 255, c.alpha]; + } + + function extractColor(color) { + if (color == null) { + return null; + } + + var c = new Color(color); + return [c.red / 255, c.green / 255, c.blue / 255, c.alpha]; + } + + function extractStrokeCap(strokeCap) { + switch (strokeCap) { + case 'butt': + return 0; + + case 'square': + return 2; + + default: + return 1; + } + } + + function extractStrokeJoin(strokeJoin) { + switch (strokeJoin) { + case 'miter': + return 0; + + case 'bevel': + return 2; + + default: + return 1; + } + } + + var Shape = function (_React$Component4) { + function Shape() { + _classCallCheck(this, Shape); + + return _possibleConstructorReturn(this, _getPrototypeOf(Shape).apply(this, arguments)); + } + + _createClass(Shape, [{ + key: "render", + value: function render() { + var props = this.props; + var path = props.d || childrenAsString(props.children); + var d = (path instanceof Path ? path : new Path(path)).toJSON(); + return React.createElement(NativeShape, { + fill: extractBrush(props.fill, props), + opacity: extractOpacity(props), + stroke: extractColor(props.stroke), + strokeCap: extractStrokeCap(props.strokeCap), + strokeDash: props.strokeDash || null, + strokeJoin: extractStrokeJoin(props.strokeJoin), + strokeWidth: extractNumber(props.strokeWidth, 1), + transform: extractTransform(props), + d: d, + __source: { + fileName: _jsxFileName, + lineNumber: 408 + } + }); + } + }]); + + _inherits(Shape, _React$Component4); + + return Shape; + }(React.Component); + + Shape = _wrapComponent("Shape")(Shape); + var cachedFontObjectsFromString = {}; + var fontFamilyPrefix = /^[\s"']*/; + var fontFamilySuffix = /[\s"']*$/; + + function extractSingleFontFamily(fontFamilyString) { + return fontFamilyString.split(',')[0].replace(fontFamilyPrefix, '').replace(fontFamilySuffix, ''); + } + + function parseFontString(font) { + if (cachedFontObjectsFromString.hasOwnProperty(font)) { + return cachedFontObjectsFromString[font]; + } + + var regexp = /^\s*((?:(?:normal|bold|italic)\s+)*)(?:(\d+(?:\.\d+)?)[ptexm\%]*(?:\s*\/.*?)?\s+)?\s*\"?([^\"]*)/i; + var match = regexp.exec(font); + + if (!match) { + return null; + } + + var fontFamily = extractSingleFontFamily(match[3]); + var fontSize = +match[2] || 12; + var isBold = /bold/.exec(match[1]); + var isItalic = /italic/.exec(match[1]); + cachedFontObjectsFromString[font] = { + fontFamily: fontFamily, + fontSize: fontSize, + fontWeight: isBold ? 'bold' : 'normal', + fontStyle: isItalic ? 'italic' : 'normal' + }; + return cachedFontObjectsFromString[font]; + } + + function extractFont(font) { + if (font == null) { + return null; + } + + if (typeof font === 'string') { + return parseFontString(font); + } + + var fontFamily = extractSingleFontFamily(font.fontFamily); + var fontSize = +font.fontSize || 12; + var fontWeight = font.fontWeight != null ? font.fontWeight.toString() : '400'; + return { + fontFamily: fontFamily, + fontSize: fontSize, + fontWeight: fontWeight, + fontStyle: font.fontStyle + }; + } + + var newLine = /\n/g; + + function extractFontAndLines(font, text) { + return { + font: extractFont(font), + lines: text.split(newLine) + }; + } + + function extractAlignment(alignment) { + switch (alignment) { + case 'right': + return 1; + + case 'center': + return 2; + + default: + return 0; + } + } + + var Text = function (_React$Component5) { + function Text() { + _classCallCheck(this, Text); + + return _possibleConstructorReturn(this, _getPrototypeOf(Text).apply(this, arguments)); + } + + _createClass(Text, [{ + key: "render", + value: function render() { + var props = this.props; + var path = props.path; + var textPath = path ? (path instanceof Path ? path : new Path(path)).toJSON() : null; + var textFrame = extractFontAndLines(props.font, childrenAsString(props.children)); + return React.createElement(NativeText, { + fill: extractBrush(props.fill, props), + opacity: extractOpacity(props), + stroke: extractColor(props.stroke), + strokeCap: extractStrokeCap(props.strokeCap), + strokeDash: props.strokeDash || null, + strokeJoin: extractStrokeJoin(props.strokeJoin), + strokeWidth: extractNumber(props.strokeWidth, 1), + transform: extractTransform(props), + alignment: extractAlignment(props.alignment), + frame: textFrame, + path: textPath, + __source: { + fileName: _jsxFileName, + lineNumber: 510 + } + }); + } + }]); + + _inherits(Text, _React$Component5); + + return Text; + }(React.Component); + + Text = _wrapComponent("Text")(Text); + + function LinearGradient(stops, x1, y1, x2, y2) { + var type = LINEAR_GRADIENT; + + if (arguments.length < 5) { + var angle = (x1 == null ? 270 : x1) * Math.PI / 180; + var x = Math.cos(angle); + var y = -Math.sin(angle); + var l = (Math.abs(x) + Math.abs(y)) / 2; + x *= l; + y *= l; + x1 = 0.5 - x; + x2 = 0.5 + x; + y1 = 0.5 - y; + y2 = 0.5 + y; + this._bb = true; + } else { + this._bb = false; + } + + var brushData = [type, +x1, +y1, +x2, +y2]; + insertColorStopsIntoArray(stops, brushData, 5); + this._brush = brushData; + } + + function RadialGradient(stops, fx, fy, rx, ry, cx, cy) { + if (ry == null) { + ry = rx; + } + + if (cx == null) { + cx = fx; + } + + if (cy == null) { + cy = fy; + } + + if (fx == null) { + fx = fy = rx = ry = cx = cy = 0.5; + this._bb = true; + } else { + this._bb = false; + } + + var brushData = [RADIAL_GRADIENT, +fx, +fy, +rx * 2, +ry * 2, +cx, +cy]; + insertDoubleColorStopsIntoArray(stops, brushData, 7); + this._brush = brushData; + } + + function Pattern(url, width, height, left, top) { + this._brush = [PATTERN, url, +left || 0, +top || 0, +width, +height]; + } + + var ReactART = { + LinearGradient: LinearGradient, + RadialGradient: RadialGradient, + Pattern: Pattern, + Transform: Transform, + Path: Path, + Surface: Surface, + Group: Group, + ClippingRectangle: ClippingRectangle, + Shape: Shape, + Text: Text + }; + module.exports = ReactART; +},241,[1,11,242,243,246,200,212,247,230,248,166],"node_modules/react-native/Libraries/ART/ReactNativeART.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var colors = { + maroon: '#800000', + red: '#ff0000', + orange: '#ffA500', + yellow: '#ffff00', + olive: '#808000', + purple: '#800080', + fuchsia: "#ff00ff", + white: '#ffffff', + lime: '#00ff00', + green: '#008000', + navy: '#000080', + blue: '#0000ff', + aqua: '#00ffff', + teal: '#008080', + black: '#000000', + silver: '#c0c0c0', + gray: '#808080' + }; + + var map = function map(array, fn) { + var results = []; + + for (var i = 0, l = array.length; i < l; i++) { + results[i] = fn(array[i], i); + } + + return results; + }; + + var Color = function Color(color, type) { + if (color.isColor) { + this.red = color.red; + this.green = color.green; + this.blue = color.blue; + this.alpha = color.alpha; + } else { + var namedColor = colors[color]; + + if (namedColor) { + color = namedColor; + type = 'hex'; + } + + switch (typeof color) { + case 'string': + if (!type) type = (type = color.match(/^rgb|^hsb|^hsl/)) ? type[0] : 'hex'; + break; + + case 'object': + type = type || 'rgb'; + color = color.toString(); + break; + + case 'number': + type = 'hex'; + color = color.toString(16); + break; + } + + color = Color['parse' + type.toUpperCase()](color); + this.red = color[0]; + this.green = color[1]; + this.blue = color[2]; + this.alpha = color[3]; + } + + this.isColor = true; + }; + + var limit = function limit(number, min, max) { + return Math.min(max, Math.max(min, number)); + }; + + var listMatch = /([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,?\s*([-.\d]*\%?)/; + var hexMatch = /^#?([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{0,2})$/i; + + Color.parseRGB = function (color) { + return map(color.match(listMatch).slice(1), function (bit, i) { + if (bit) bit = parseFloat(bit) * (bit[bit.length - 1] == '%' ? 2.55 : 1); + return i < 3 ? Math.round((bit %= 256) < 0 ? bit + 256 : bit) : limit(bit === '' ? 1 : Number(bit), 0, 1); + }); + }; + + Color.parseHEX = function (color) { + if (color.length == 1) color = color + color + color; + return map(color.match(hexMatch).slice(1), function (bit, i) { + if (i == 3) return bit ? parseInt(bit, 16) / 255 : 1; + return parseInt(bit.length == 1 ? bit + bit : bit, 16); + }); + }; + + Color.parseHSB = function (color) { + var hsb = map(color.match(listMatch).slice(1), function (bit, i) { + if (bit) bit = parseFloat(bit); + if (i === 0) return Math.round((bit %= 360) < 0 ? bit + 360 : bit);else if (i < 3) return limit(Math.round(bit), 0, 100);else return limit(bit === '' ? 1 : Number(bit), 0, 1); + }); + var a = hsb[3]; + var br = Math.round(hsb[2] / 100 * 255); + if (hsb[1] == 0) return [br, br, br, a]; + var hue = hsb[0]; + var f = hue % 60; + var p = Math.round(hsb[2] * (100 - hsb[1]) / 10000 * 255); + var q = Math.round(hsb[2] * (6000 - hsb[1] * f) / 600000 * 255); + var t = Math.round(hsb[2] * (6000 - hsb[1] * (60 - f)) / 600000 * 255); + + switch (Math.floor(hue / 60)) { + case 0: + return [br, t, p, a]; + + case 1: + return [q, br, p, a]; + + case 2: + return [p, br, t, a]; + + case 3: + return [p, q, br, a]; + + case 4: + return [t, p, br, a]; + + default: + return [br, p, q, a]; + } + }; + + Color.parseHSL = function (color) { + var hsb = map(color.match(listMatch).slice(1), function (bit, i) { + if (bit) bit = parseFloat(bit); + if (i === 0) return Math.round((bit %= 360) < 0 ? bit + 360 : bit);else if (i < 3) return limit(Math.round(bit), 0, 100);else return limit(bit === '' ? 1 : Number(bit), 0, 1); + }); + var h = hsb[0] / 60; + var s = hsb[1] / 100; + var l = hsb[2] / 100; + var a = hsb[3]; + var c = (1 - Math.abs(2 * l - 1)) * s; + var x = c * (1 - Math.abs(h % 2 - 1)); + var m = l - c / 2; + var p = Math.round((c + m) * 255); + var q = Math.round((x + m) * 255); + var t = Math.round(m * 255); + + switch (Math.floor(h)) { + case 0: + return [p, q, t, a]; + + case 1: + return [q, p, t, a]; + + case 2: + return [t, p, q, a]; + + case 3: + return [t, q, p, a]; + + case 4: + return [q, t, p, a]; + + default: + return [p, t, q, a]; + } + }; + + var toString = function toString(type, array) { + if (array[3] != 1) type += 'a';else array.pop(); + return type + '(' + array.join(', ') + ')'; + }; + + Color.prototype = { + toHSB: function toHSB(array) { + var red = this.red, + green = this.green, + blue = this.blue, + alpha = this.alpha; + var max = Math.max(red, green, blue), + min = Math.min(red, green, blue), + delta = max - min; + var hue = 0, + saturation = delta != 0 ? delta / max : 0, + brightness = max / 255; + + if (saturation) { + var rr = (max - red) / delta, + gr = (max - green) / delta, + br = (max - blue) / delta; + hue = red == max ? br - gr : green == max ? 2 + rr - br : 4 + gr - rr; + if ((hue /= 6) < 0) hue++; + } + + var hsb = [Math.round(hue * 360), Math.round(saturation * 100), Math.round(brightness * 100), alpha]; + return array ? hsb : toString('hsb', hsb); + }, + toHSL: function toHSL(array) { + var red = this.red, + green = this.green, + blue = this.blue, + alpha = this.alpha; + var max = Math.max(red, green, blue), + min = Math.min(red, green, blue), + delta = max - min; + var hue = 0, + saturation = delta != 0 ? delta / (255 - Math.abs(max + min - 255)) : 0, + lightness = (max + min) / 512; + + if (saturation) { + var rr = (max - red) / delta, + gr = (max - green) / delta, + br = (max - blue) / delta; + hue = red == max ? br - gr : green == max ? 2 + rr - br : 4 + gr - rr; + if ((hue /= 6) < 0) hue++; + } + + var hsl = [Math.round(hue * 360), Math.round(saturation * 100), Math.round(lightness * 100), alpha]; + return array ? hsl : toString('hsl', hsl); + }, + toHEX: function toHEX(array) { + var a = this.alpha; + var alpha = (a = Math.round(a * 255).toString(16)).length == 1 ? a + a : a; + var hex = map([this.red, this.green, this.blue], function (bit) { + bit = bit.toString(16); + return bit.length == 1 ? '0' + bit : bit; + }); + return array ? hex.concat(alpha) : '#' + hex.join('') + (alpha == 'ff' ? '' : alpha); + }, + toRGB: function toRGB(array) { + var rgb = [this.red, this.green, this.blue, this.alpha]; + return array ? rgb : toString('rgb', rgb); + } + }; + Color.prototype.toString = Color.prototype.toRGB; + + Color.hex = function (hex) { + return new Color(hex, 'hex'); + }; + + if (this.hex == null) this.hex = Color.hex; + + Color.hsb = function (h, s, b, a) { + return new Color([h || 0, s || 0, b || 0, a == null ? 1 : a], 'hsb'); + }; + + if (this.hsb == null) this.hsb = Color.hsb; + + Color.hsl = function (h, s, l, a) { + return new Color([h || 0, s || 0, l || 0, a == null ? 1 : a], 'hsl'); + }; + + if (this.hsl == null) this.hsl = Color.hsl; + + Color.rgb = function (r, g, b, a) { + return new Color([r || 0, g || 0, b || 0, a == null ? 1 : a], 'rgb'); + }; + + if (this.rgb == null) this.rgb = Color.rgb; + + Color.detach = function (color) { + color = new Color(color); + return [Color.rgb(color.red, color.green, color.blue).toString(), color.alpha]; + }; + + module.exports = Color; +},242,[],"node_modules/art/core/color.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Class = _$$_REQUIRE(_dependencyMap[0], 'art/core/class.js'); + + var Path = _$$_REQUIRE(_dependencyMap[1], 'art/core/path.js'); + + var MOVE_TO = 0; + var CLOSE = 1; + var LINE_TO = 2; + var CURVE_TO = 3; + var ARC = 4; + var SerializablePath = Class(Path, { + initialize: function initialize(path) { + this.reset(); + + if (path instanceof SerializablePath) { + this.path = path.path.slice(0); + } else if (path) { + if (path.applyToPath) { + path.applyToPath(this); + } else { + this.push(path); + } + } + }, + onReset: function onReset() { + this.path = []; + }, + onMove: function onMove(sx, sy, x, y) { + this.path.push(MOVE_TO, x, y); + }, + onLine: function onLine(sx, sy, x, y) { + this.path.push(LINE_TO, x, y); + }, + onBezierCurve: function onBezierCurve(sx, sy, p1x, p1y, p2x, p2y, x, y) { + this.path.push(CURVE_TO, p1x, p1y, p2x, p2y, x, y); + }, + _arcToBezier: Path.prototype.onArc, + onArc: function onArc(sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation) { + if (rx !== ry || rotation) { + return this._arcToBezier(sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation); + } + + this.path.push(ARC, cx, cy, rx, sa, ea, ccw ? 0 : 1); + }, + onClose: function onClose() { + this.path.push(CLOSE); + }, + toJSON: function toJSON() { + return this.path; + } + }); + module.exports = SerializablePath; +},243,[244,245],"node_modules/react-native/Libraries/ART/ARTSerializablePath.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + module.exports = function (mixins) { + var proto = {}; + + for (var i = 0, l = arguments.length; i < l; i++) { + var mixin = arguments[i]; + if (typeof mixin == 'function') mixin = mixin.prototype; + + for (var key in mixin) { + proto[key] = mixin[key]; + } + } + + if (!proto.initialize) proto.initialize = function () {}; + + proto.constructor = function (a, b, c, d, e, f, g, h) { + return new proto.initialize(a, b, c, d, e, f, g, h); + }; + + proto.constructor.prototype = proto.initialize.prototype = proto; + return proto.constructor; + }; +},244,[],"node_modules/art/core/class.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Class = _$$_REQUIRE(_dependencyMap[0], './class'); + + module.exports = Class({ + initialize: function initialize(path) { + this.reset().push(path); + }, + push: function push() { + var p = Array.prototype.join.call(arguments, ' ').match(/[a-df-z]|[\-+]?(?:[\d\.]e[\-+]?|[^\s\-+,a-z])+/ig); + if (!p) return this; + var last, + cmd = p[0], + i = 1; + + while (cmd) { + switch (cmd) { + case 'm': + this.move(p[i++], p[i++]); + break; + + case 'l': + this.line(p[i++], p[i++]); + break; + + case 'c': + this.curve(p[i++], p[i++], p[i++], p[i++], p[i++], p[i++]); + break; + + case 's': + this.curve(p[i++], p[i++], null, null, p[i++], p[i++]); + break; + + case 'q': + this.curve(p[i++], p[i++], p[i++], p[i++]); + break; + + case 't': + this.curve(p[i++], p[i++]); + break; + + case 'a': + this.arc(p[i + 5], p[i + 6], p[i], p[i + 1], p[i + 3], !+p[i + 4], p[i + 2]); + i += 7; + break; + + case 'h': + this.line(p[i++], 0); + break; + + case 'v': + this.line(0, p[i++]); + break; + + case 'M': + this.moveTo(p[i++], p[i++]); + break; + + case 'L': + this.lineTo(p[i++], p[i++]); + break; + + case 'C': + this.curveTo(p[i++], p[i++], p[i++], p[i++], p[i++], p[i++]); + break; + + case 'S': + this.curveTo(p[i++], p[i++], null, null, p[i++], p[i++]); + break; + + case 'Q': + this.curveTo(p[i++], p[i++], p[i++], p[i++]); + break; + + case 'T': + this.curveTo(p[i++], p[i++]); + break; + + case 'A': + this.arcTo(p[i + 5], p[i + 6], p[i], p[i + 1], p[i + 3], !+p[i + 4], p[i + 2]); + i += 7; + break; + + case 'H': + this.lineTo(p[i++], this.penY); + break; + + case 'V': + this.lineTo(this.penX, p[i++]); + break; + + case 'Z': + case 'z': + this.close(); + break; + + default: + cmd = last; + i--; + continue; + } + + last = cmd; + if (last == 'm') last = 'l';else if (last == 'M') last = 'L'; + cmd = p[i++]; + } + + return this; + }, + reset: function reset() { + this.penX = this.penY = 0; + this.penDownX = this.penDownY = null; + this._pivotX = this._pivotY = 0; + this.onReset(); + return this; + }, + move: function move(x, y) { + this.onMove(this.penX, this.penY, this._pivotX = this.penX += +x, this._pivotY = this.penY += +y); + return this; + }, + moveTo: function moveTo(x, y) { + this.onMove(this.penX, this.penY, this._pivotX = this.penX = +x, this._pivotY = this.penY = +y); + return this; + }, + line: function line(x, y) { + return this.lineTo(this.penX + +x, this.penY + +y); + }, + lineTo: function lineTo(x, y) { + if (this.penDownX == null) { + this.penDownX = this.penX; + this.penDownY = this.penY; + } + + this.onLine(this.penX, this.penY, this._pivotX = this.penX = +x, this._pivotY = this.penY = +y); + return this; + }, + curve: function curve(c1x, c1y, c2x, c2y, ex, ey) { + var x = this.penX, + y = this.penY; + return this.curveTo(x + +c1x, y + +c1y, c2x == null ? null : x + +c2x, c2y == null ? null : y + +c2y, ex == null ? null : x + +ex, ey == null ? null : y + +ey); + }, + curveTo: function curveTo(c1x, c1y, c2x, c2y, ex, ey) { + var x = this.penX, + y = this.penY; + + if (c2x == null) { + c2x = +c1x; + c2y = +c1y; + c1x = x * 2 - (this._pivotX || 0); + c1y = y * 2 - (this._pivotY || 0); + } + + if (ex == null) { + this._pivotX = +c1x; + this._pivotY = +c1y; + ex = +c2x; + ey = +c2y; + c2x = (ex + +c1x * 2) / 3; + c2y = (ey + +c1y * 2) / 3; + c1x = (x + +c1x * 2) / 3; + c1y = (y + +c1y * 2) / 3; + } else { + this._pivotX = +c2x; + this._pivotY = +c2y; + } + + if (this.penDownX == null) { + this.penDownX = x; + this.penDownY = y; + } + + this.onBezierCurve(x, y, +c1x, +c1y, +c2x, +c2y, this.penX = +ex, this.penY = +ey); + return this; + }, + arc: function arc(x, y, rx, ry, outer, counterClockwise, rotation) { + return this.arcTo(this.penX + +x, this.penY + +y, rx, ry, outer, counterClockwise, rotation); + }, + arcTo: function arcTo(x, y, rx, ry, outer, counterClockwise, rotation) { + ry = Math.abs(+ry || +rx || +y - this.penY); + rx = Math.abs(+rx || +x - this.penX); + if (!rx || !ry || x == this.penX && y == this.penY) return this.lineTo(x, y); + var tX = this.penX, + tY = this.penY, + clockwise = !+counterClockwise, + large = !!+outer; + var rad = rotation ? rotation * Math.PI / 180 : 0, + cos = Math.cos(rad), + sin = Math.sin(rad); + x -= tX; + y -= tY; + var cx = cos * x / 2 + sin * y / 2, + cy = -sin * x / 2 + cos * y / 2, + rxry = rx * rx * ry * ry, + rycx = ry * ry * cx * cx, + rxcy = rx * rx * cy * cy, + a = rxry - rxcy - rycx; + + if (a < 0) { + a = Math.sqrt(1 - a / rxry); + rx *= a; + ry *= a; + cx = x / 2; + cy = y / 2; + } else { + a = Math.sqrt(a / (rxcy + rycx)); + if (large == clockwise) a = -a; + var cxd = -a * cy * rx / ry, + cyd = a * cx * ry / rx; + cx = cos * cxd - sin * cyd + x / 2; + cy = sin * cxd + cos * cyd + y / 2; + } + + var xx = cos / rx, + yx = sin / rx, + xy = -sin / ry, + yy = cos / ry; + var sa = Math.atan2(xy * -cx + yy * -cy, xx * -cx + yx * -cy), + ea = Math.atan2(xy * (x - cx) + yy * (y - cy), xx * (x - cx) + yx * (y - cy)); + cx += tX; + cy += tY; + x += tX; + y += tY; + + if (this.penDownX == null) { + this.penDownX = this.penX; + this.penDownY = this.penY; + } + + this.onArc(tX, tY, this._pivotX = this.penX = x, this._pivotY = this.penY = y, cx, cy, rx, ry, sa, ea, !clockwise, rotation); + return this; + }, + counterArc: function counterArc(x, y, rx, ry, outer) { + return this.arc(x, y, rx, ry, outer, true); + }, + counterArcTo: function counterArcTo(x, y, rx, ry, outer) { + return this.arcTo(x, y, rx, ry, outer, true); + }, + close: function close() { + if (this.penDownX != null) { + this.onClose(this.penX, this.penY, this.penX = this.penDownX, this.penY = this.penDownY); + this.penDownX = null; + } + + return this; + }, + onReset: function onReset() {}, + onMove: function onMove(sx, sy, ex, ey) {}, + onLine: function onLine(sx, sy, ex, ey) { + this.onBezierCurve(sx, sy, sx, sy, ex, ey, ex, ey); + }, + onBezierCurve: function onBezierCurve(sx, sy, c1x, c1y, c2x, c2y, ex, ey) { + var gx = ex - sx, + gy = ey - sy, + g = gx * gx + gy * gy, + v1, + v2, + cx, + cy, + u; + cx = c1x - sx; + cy = c1y - sy; + u = cx * gx + cy * gy; + + if (u > g) { + cx -= gx; + cy -= gy; + } else if (u > 0 && g != 0) { + cx -= u / g * gx; + cy -= u / g * gy; + } + + v1 = cx * cx + cy * cy; + cx = c2x - sx; + cy = c2y - sy; + u = cx * gx + cy * gy; + + if (u > g) { + cx -= gx; + cy -= gy; + } else if (u > 0 && g != 0) { + cx -= u / g * gx; + cy -= u / g * gy; + } + + v2 = cx * cx + cy * cy; + + if (v1 < 0.01 && v2 < 0.01) { + this.onLine(sx, sy, ex, ey); + return; + } + + if (isNaN(v1) || isNaN(v2)) { + throw new Error('Bad input'); + } + + var s1x = (c1x + c2x) * 0.5, + s1y = (c1y + c2y) * 0.5, + l1x = (c1x + sx) * 0.5, + l1y = (c1y + sy) * 0.5, + l2x = (l1x + s1x) * 0.5, + l2y = (l1y + s1y) * 0.5, + r2x = (ex + c2x) * 0.5, + r2y = (ey + c2y) * 0.5, + r1x = (r2x + s1x) * 0.5, + r1y = (r2y + s1y) * 0.5, + l2r1x = (l2x + r1x) * 0.5, + l2r1y = (l2y + r1y) * 0.5; + this.onBezierCurve(sx, sy, l1x, l1y, l2x, l2y, l2r1x, l2r1y); + this.onBezierCurve(l2r1x, l2r1y, r1x, r1y, r2x, r2y, ex, ey); + }, + onArc: function onArc(sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation) { + var rad = rotation ? rotation * Math.PI / 180 : 0, + cos = Math.cos(rad), + sin = Math.sin(rad), + xx = cos * rx, + yx = -sin * ry, + xy = sin * rx, + yy = cos * ry; + var arc = ea - sa; + if (arc < 0 && !ccw) arc += Math.PI * 2;else if (arc > 0 && ccw) arc -= Math.PI * 2; + var n = Math.ceil(Math.abs(arc / (Math.PI / 2))), + step = arc / n, + k = 4 / 3 * Math.tan(step / 4); + var x = Math.cos(sa), + y = Math.sin(sa); + + for (var i = 0; i < n; i++) { + var cp1x = x - k * y, + cp1y = y + k * x; + sa += step; + x = Math.cos(sa); + y = Math.sin(sa); + var cp2x = x + k * y, + cp2y = y - k * x; + this.onBezierCurve(sx, sy, cx + xx * cp1x + yx * cp1y, cy + xy * cp1x + yy * cp1y, cx + xx * cp2x + yx * cp2y, cy + xy * cp2x + yy * cp2y, sx = cx + xx * x + yx * y, sy = cy + xy * x + yy * y); + } + }, + onClose: function onClose(sx, sy, ex, ey) { + this.onLine(sx, sy, ex, ey); + } + }); +},245,[244],"node_modules/art/core/path.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Class = _$$_REQUIRE(_dependencyMap[0], './class'); + + function Transform(xx, yx, xy, yy, x, y) { + if (xx && typeof xx == 'object') { + yx = xx.yx; + yy = xx.yy; + y = xx.y; + xy = xx.xy; + x = xx.x; + xx = xx.xx; + } + + this.xx = xx == null ? 1 : xx; + this.yx = yx || 0; + this.xy = xy || 0; + this.yy = yy == null ? 1 : yy; + this.x = (x == null ? this.x : x) || 0; + this.y = (y == null ? this.y : y) || 0; + + this._transform(); + + return this; + } + + ; + module.exports = Class({ + initialize: Transform, + _transform: function _transform() {}, + xx: 1, + yx: 0, + x: 0, + xy: 0, + yy: 1, + y: 0, + transform: function transform(xx, yx, xy, yy, x, y) { + var m = this; + + if (xx && typeof xx == 'object') { + yx = xx.yx; + yy = xx.yy; + y = xx.y; + xy = xx.xy; + x = xx.x; + xx = xx.xx; + } + + if (!x) x = 0; + if (!y) y = 0; + return this.transformTo(m.xx * xx + m.xy * yx, m.yx * xx + m.yy * yx, m.xx * xy + m.xy * yy, m.yx * xy + m.yy * yy, m.xx * x + m.xy * y + m.x, m.yx * x + m.yy * y + m.y); + }, + transformTo: Transform, + translate: function translate(x, y) { + return this.transform(1, 0, 0, 1, x, y); + }, + move: function move(x, y) { + this.x += x || 0; + this.y += y || 0; + + this._transform(); + + return this; + }, + scale: function scale(x, y) { + if (y == null) y = x; + return this.transform(x, 0, 0, y, 0, 0); + }, + rotate: function rotate(deg, x, y) { + if (x == null || y == null) { + x = (this.left || 0) + (this.width || 0) / 2; + y = (this.top || 0) + (this.height || 0) / 2; + } + + var rad = deg * Math.PI / 180, + sin = Math.sin(rad), + cos = Math.cos(rad); + this.transform(1, 0, 0, 1, x, y); + var m = this; + return this.transformTo(cos * m.xx - sin * m.yx, sin * m.xx + cos * m.yx, cos * m.xy - sin * m.yy, sin * m.xy + cos * m.yy, m.x, m.y).transform(1, 0, 0, 1, -x, -y); + }, + moveTo: function moveTo(x, y) { + var m = this; + return this.transformTo(m.xx, m.yx, m.xy, m.yy, x, y); + }, + rotateTo: function rotateTo(deg, x, y) { + var m = this; + var flip = m.yx / m.xx > m.yy / m.xy ? -1 : 1; + if (m.xx < 0 ? m.xy >= 0 : m.xy < 0) flip = -flip; + return this.rotate(deg - Math.atan2(flip * m.yx, flip * m.xx) * 180 / Math.PI, x, y); + }, + scaleTo: function scaleTo(x, y) { + var m = this; + var h = Math.sqrt(m.xx * m.xx + m.yx * m.yx); + m.xx /= h; + m.yx /= h; + h = Math.sqrt(m.yy * m.yy + m.xy * m.xy); + m.yy /= h; + m.xy /= h; + return this.scale(x, y); + }, + resizeTo: function resizeTo(width, height) { + var w = this.width, + h = this.height; + if (!w || !h) return this; + return this.scaleTo(width / w, height / h); + }, + inversePoint: function inversePoint(x, y) { + var a = this.xx, + b = this.yx, + c = this.xy, + d = this.yy, + e = this.x, + f = this.y; + var det = b * c - a * d; + if (det == 0) return null; + return { + x: (d * (e - x) + c * (y - f)) / det, + y: (a * (f - y) + b * (x - e)) / det + }; + }, + point: function point(x, y) { + var m = this; + return { + x: m.xx * x + m.xy * y + m.x, + y: m.yx * x + m.yy * y + m.y + }; + } + }); +},246,[244],"node_modules/art/core/transform.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], 'ReactNativeStyleAttributes'); + + var ReactNativeViewAttributes = {}; + ReactNativeViewAttributes.UIView = { + pointerEvents: true, + accessible: true, + accessibilityActions: true, + accessibilityLabel: true, + accessibilityComponentType: true, + accessibilityLiveRegion: true, + accessibilityTraits: true, + importantForAccessibility: true, + nativeID: true, + testID: true, + renderToHardwareTextureAndroid: true, + shouldRasterizeIOS: true, + onLayout: true, + onAccessibilityAction: true, + onAccessibilityTap: true, + onMagicTap: true, + collapsable: true, + needsOffscreenAlphaCompositing: true, + style: ReactNativeStyleAttributes + }; + ReactNativeViewAttributes.RCTView = _objectSpread({}, ReactNativeViewAttributes.UIView, { + removeClippedSubviews: true + }); + module.exports = ReactNativeViewAttributes; +},247,[205],"node_modules/react-native/Libraries/Components/View/ReactNativeViewAttributes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var mergeInto = _$$_REQUIRE(_dependencyMap[0], 'mergeInto'); + + var merge = function merge(one, two) { + var result = {}; + mergeInto(result, one); + mergeInto(result, two); + return result; + }; + + module.exports = merge; +},248,[249],"node_modules/react-native/Libraries/vendor/core/merge.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var mergeHelpers = _$$_REQUIRE(_dependencyMap[0], 'mergeHelpers'); + + var checkMergeObjectArg = mergeHelpers.checkMergeObjectArg; + var checkMergeIntoObjectArg = mergeHelpers.checkMergeIntoObjectArg; + + function mergeInto(one, two) { + checkMergeIntoObjectArg(one); + + if (two != null) { + checkMergeObjectArg(two); + + for (var key in two) { + if (!two.hasOwnProperty(key)) { + continue; + } + + one[key] = two[key]; + } + } + } + + module.exports = mergeInto; +},249,[250],"node_modules/react-native/Libraries/vendor/core/mergeInto.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var MAX_MERGE_DEPTH = 36; + + var isTerminal = function isTerminal(o) { + return typeof o !== 'object' || o instanceof Date || o === null; + }; + + var mergeHelpers = { + MAX_MERGE_DEPTH: MAX_MERGE_DEPTH, + isTerminal: isTerminal, + normalizeMergeArg: function normalizeMergeArg(arg) { + return arg === undefined || arg === null ? {} : arg; + }, + checkMergeArrayArgs: function checkMergeArrayArgs(one, two) { + invariant(Array.isArray(one) && Array.isArray(two), 'Tried to merge arrays, instead got %s and %s.', one, two); + }, + checkMergeObjectArgs: function checkMergeObjectArgs(one, two) { + mergeHelpers.checkMergeObjectArg(one); + mergeHelpers.checkMergeObjectArg(two); + }, + checkMergeObjectArg: function checkMergeObjectArg(arg) { + invariant(!isTerminal(arg) && !Array.isArray(arg), 'Tried to merge an object, instead got %s.', arg); + }, + checkMergeIntoObjectArg: function checkMergeIntoObjectArg(arg) { + invariant((!isTerminal(arg) || typeof arg === 'function') && !Array.isArray(arg), 'Tried to merge into an object, instead got %s.', arg); + }, + checkMergeLevel: function checkMergeLevel(level) { + invariant(level < MAX_MERGE_DEPTH, 'Maximum deep merge depth exceeded. You may be attempting to merge ' + 'circular structures in an unsupported way.'); + }, + checkArrayStrategy: function checkArrayStrategy(strategy) { + invariant(strategy === undefined || strategy in mergeHelpers.ArrayStrategies, 'You must provide an array strategy to deep merge functions to ' + 'instruct the deep merge how to resolve merging two arrays.'); + }, + ArrayStrategies: { + Clobber: 'Clobber', + Concat: 'Concat', + IndexByIndex: 'IndexByIndex' + } + }; + module.exports = mergeHelpers; +},250,[166],"node_modules/react-native/Libraries/vendor/core/mergeHelpers.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Button.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + Button: { + displayName: "Button" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Button.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); + + var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[4], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[5], 'prop-types'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[7], 'Text'); + + var TouchableNativeFeedback = _$$_REQUIRE(_dependencyMap[8], 'TouchableNativeFeedback'); + + var TouchableOpacity = _$$_REQUIRE(_dependencyMap[9], 'TouchableOpacity'); + + var View = _$$_REQUIRE(_dependencyMap[10], 'View'); + + var invariant = _$$_REQUIRE(_dependencyMap[11], 'fbjs/lib/invariant'); + + var Button = function (_React$Component) { + function Button() { + _classCallCheck(this, Button); + + return _possibleConstructorReturn(this, _getPrototypeOf(Button).apply(this, arguments)); + } + + _createClass(Button, [{ + key: "render", + value: function render() { + var _this$props = this.props, + accessibilityLabel = _this$props.accessibilityLabel, + color = _this$props.color, + onPress = _this$props.onPress, + title = _this$props.title, + hasTVPreferredFocus = _this$props.hasTVPreferredFocus, + disabled = _this$props.disabled, + testID = _this$props.testID; + var buttonStyles = [styles.button]; + var textStyles = [styles.text]; + + if (color) { + if (Platform.OS === 'ios') { + textStyles.push({ + color: color + }); + } else { + buttonStyles.push({ + backgroundColor: color + }); + } + } + + var accessibilityTraits = ['button']; + + if (disabled) { + buttonStyles.push(styles.buttonDisabled); + textStyles.push(styles.textDisabled); + accessibilityTraits.push('disabled'); + } + + invariant(typeof title === 'string', 'The title prop of a Button must be a string'); + var formattedTitle = Platform.OS === 'android' ? title.toUpperCase() : title; + var Touchable = Platform.OS === 'android' ? TouchableNativeFeedback : TouchableOpacity; + return React.createElement(Touchable, { + accessibilityComponentType: "button", + accessibilityLabel: accessibilityLabel, + accessibilityTraits: accessibilityTraits, + hasTVPreferredFocus: hasTVPreferredFocus, + testID: testID, + disabled: disabled, + onPress: onPress, + __source: { + fileName: _jsxFileName, + lineNumber: 127 + } + }, React.createElement(View, { + style: buttonStyles, + __source: { + fileName: _jsxFileName, + lineNumber: 135 + } + }, React.createElement(Text, { + style: textStyles, + disabled: disabled, + __source: { + fileName: _jsxFileName, + lineNumber: 136 + } + }, formattedTitle))); + } + }]); + + _inherits(Button, _React$Component); + + return Button; + }(React.Component); + + Button.propTypes = { + title: PropTypes.string.isRequired, + accessibilityLabel: PropTypes.string, + color: ColorPropType, + disabled: PropTypes.bool, + hasTVPreferredFocus: PropTypes.bool, + onPress: PropTypes.func.isRequired, + testID: PropTypes.string + }; + Button = _wrapComponent("Button")(Button); + var styles = StyleSheet.create({ + button: Platform.select({ + ios: {}, + android: { + elevation: 4, + backgroundColor: '#2196F3', + borderRadius: 2 + } + }), + text: Platform.select({ + ios: { + color: '#007AFF', + textAlign: 'center', + padding: 8, + fontSize: 18 + }, + android: { + color: 'white', + textAlign: 'center', + padding: 8, + fontWeight: '500' + } + }), + buttonDisabled: Platform.select({ + ios: {}, + android: { + elevation: 0, + backgroundColor: '#dfdfdf' + } + }), + textDisabled: Platform.select({ + ios: { + color: '#cdcdcd' + }, + android: { + color: '#a1a1a1' + } + }) + }); + module.exports = Button; +},251,[1,11,207,176,200,212,201,252,330,331,227,166],"node_modules/react-native/Libraries/Components/Button.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Text/Text.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var _components = { + TouchableText: { + displayName: "TouchableText" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Text/Text.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[3], 'ReactNativeViewAttributes'); + + var TextAncestor = _$$_REQUIRE(_dependencyMap[4], 'TextAncestor'); + + var TextPropTypes = _$$_REQUIRE(_dependencyMap[5], 'TextPropTypes'); + + var Touchable = _$$_REQUIRE(_dependencyMap[6], 'Touchable'); + + var UIManager = _$$_REQUIRE(_dependencyMap[7], 'UIManager'); + + var createReactNativeComponentClass = _$$_REQUIRE(_dependencyMap[8], 'createReactNativeComponentClass'); + + var nullthrows = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/nullthrows'); + + var processColor = _$$_REQUIRE(_dependencyMap[10], 'processColor'); + + var PRESS_RECT_OFFSET = { + top: 20, + left: 20, + right: 20, + bottom: 30 + }; + var viewConfig = { + validAttributes: _objectSpread({}, ReactNativeViewAttributes.UIView, { + isHighlighted: true, + numberOfLines: true, + ellipsizeMode: true, + allowFontScaling: true, + disabled: true, + selectable: true, + selectionColor: true, + adjustsFontSizeToFit: true, + minimumFontScale: true, + textBreakStrategy: true + }), + uiViewClassName: 'RCTText' + }; + + var TouchableText = function (_React$Component) { + function TouchableText() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, TouchableText); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TouchableText)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = _objectSpread({}, Touchable.Mixin.touchableGetInitialState(), { + isHighlighted: false, + createResponderHandlers: _this._createResponseHandlers.bind(_assertThisInitialized(_assertThisInitialized(_this))), + responseHandlers: null + }), _temp)); + } + + _createClass(TouchableText, [{ + key: "render", + value: function render() { + var props = this.props; + + if (isTouchable(props)) { + props = _objectSpread({}, props, this.state.responseHandlers, { + isHighlighted: this.state.isHighlighted + }); + } + + if (props.selectionColor != null) { + props = _objectSpread({}, props, { + selectionColor: processColor(props.selectionColor) + }); + } + + if (__DEV__) { + if (Touchable.TOUCH_TARGET_DEBUG && props.onPress != null) { + props = _objectSpread({}, props, { + style: [props.style, { + color: 'magenta' + }] + }); + } + } + + return React.createElement(TextAncestor.Consumer, { + __source: { + fileName: _jsxFileName, + lineNumber: 139 + } + }, function (hasTextAncestor) { + return hasTextAncestor ? React.createElement(RCTVirtualText, _extends({}, props, { + ref: props.forwardedRef, + __source: { + fileName: _jsxFileName, + lineNumber: 142 + } + })) : React.createElement(TextAncestor.Provider, { + value: true, + __source: { + fileName: _jsxFileName, + lineNumber: 144 + } + }, React.createElement(RCTText, _extends({}, props, { + ref: props.forwardedRef, + __source: { + fileName: _jsxFileName, + lineNumber: 145 + } + }))); + }); + } + }, { + key: "_createResponseHandlers", + value: function _createResponseHandlers() { + var _this2 = this; + + return { + onStartShouldSetResponder: function onStartShouldSetResponder() { + var onStartShouldSetResponder = _this2.props.onStartShouldSetResponder; + var shouldSetResponder = (onStartShouldSetResponder == null ? false : onStartShouldSetResponder()) || isTouchable(_this2.props); + + if (shouldSetResponder) { + _this2._attachTouchHandlers(); + } + + return shouldSetResponder; + }, + onResponderGrant: function onResponderGrant(event, dispatchID) { + nullthrows(_this2.touchableHandleResponderGrant)(event, dispatchID); + + if (_this2.props.onResponderGrant != null) { + _this2.props.onResponderGrant.call(_this2, event, dispatchID); + } + }, + onResponderMove: function onResponderMove(event) { + nullthrows(_this2.touchableHandleResponderMove)(event); + + if (_this2.props.onResponderMove != null) { + _this2.props.onResponderMove.call(_this2, event); + } + }, + onResponderRelease: function onResponderRelease(event) { + nullthrows(_this2.touchableHandleResponderRelease)(event); + + if (_this2.props.onResponderRelease != null) { + _this2.props.onResponderRelease.call(_this2, event); + } + }, + onResponderTerminate: function onResponderTerminate(event) { + nullthrows(_this2.touchableHandleResponderTerminate)(event); + + if (_this2.props.onResponderTerminate != null) { + _this2.props.onResponderTerminate.call(_this2, event); + } + }, + onResponderTerminationRequest: function onResponderTerminationRequest() { + var onResponderTerminationRequest = _this2.props.onResponderTerminationRequest; + + if (!nullthrows(_this2.touchableHandleResponderTerminationRequest)()) { + return false; + } + + if (onResponderTerminationRequest == null) { + return true; + } + + return onResponderTerminationRequest(); + } + }; + } + }, { + key: "_attachTouchHandlers", + value: function _attachTouchHandlers() { + var _this3 = this; + + if (this.touchableGetPressRectOffset != null) { + return; + } + + for (var key in Touchable.Mixin) { + if (typeof Touchable.Mixin[key] === 'function') { + this[key] = Touchable.Mixin[key].bind(this); + } + } + + this.touchableHandleActivePressIn = function () { + if (!_this3.props.suppressHighlighting && isTouchable(_this3.props)) { + _this3.setState({ + isHighlighted: true + }); + } + }; + + this.touchableHandleActivePressOut = function () { + if (!_this3.props.suppressHighlighting && isTouchable(_this3.props)) { + _this3.setState({ + isHighlighted: false + }); + } + }; + + this.touchableHandlePress = function (event) { + if (_this3.props.onPress != null) { + _this3.props.onPress(event); + } + }; + + this.touchableHandleLongPress = function (event) { + if (_this3.props.onLongPress != null) { + _this3.props.onLongPress(event); + } + }; + + this.touchableGetPressRectOffset = function () { + return _this3.props.pressRetentionOffset == null ? PRESS_RECT_OFFSET : _this3.props.pressRetentionOffset; + }; + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(nextProps, prevState) { + return prevState.responseHandlers == null && isTouchable(nextProps) ? _objectSpread({}, prevState, { + responseHandlers: prevState.createResponderHandlers() + }) : null; + } + }]); + + _inherits(TouchableText, _React$Component); + + return TouchableText; + }(React.Component); + + TouchableText.defaultProps = { + accessible: true, + allowFontScaling: true, + ellipsizeMode: 'tail' + }; + TouchableText.viewConfig = viewConfig; + TouchableText = _wrapComponent("TouchableText")(TouchableText); + + var isTouchable = function isTouchable(props) { + return props.onPress != null || props.onLongPress != null || props.onStartShouldSetResponder != null; + }; + + var RCTText = createReactNativeComponentClass(viewConfig.uiViewClassName, function () { + return viewConfig; + }); + var RCTVirtualText = UIManager.RCTVirtualText == null ? RCTText : createReactNativeComponentClass('RCTVirtualText', function () { + return { + validAttributes: _objectSpread({}, ReactNativeViewAttributes.UIView, { + isHighlighted: true + }), + uiViewClassName: 'RCTVirtualText' + }; + }); + var Text = React.forwardRef(function (props, ref) { + return React.createElement(TouchableText, _extends({}, props, { + forwardedRef: ref, + __source: { + fileName: _jsxFileName, + lineNumber: 266 + } + })); + }); + Text.displayName = 'Text'; + Text.propTypes = TextPropTypes; + module.exports = Text; +},252,[1,11,200,247,228,253,257,218,230,329,221],"node_modules/react-native/Libraries/Text/Text.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); + + var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[1], 'EdgeInsetsPropType'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); + + var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[3], 'StyleSheetPropType'); + + var TextStylePropTypes = _$$_REQUIRE(_dependencyMap[4], 'TextStylePropTypes'); + + var stylePropType = StyleSheetPropType(TextStylePropTypes); + module.exports = { + ellipsizeMode: PropTypes.oneOf(['head', 'middle', 'tail', 'clip']), + numberOfLines: PropTypes.number, + textBreakStrategy: PropTypes.oneOf(['simple', 'highQuality', 'balanced']), + onLayout: PropTypes.func, + onPress: PropTypes.func, + onLongPress: PropTypes.func, + pressRetentionOffset: EdgeInsetsPropType, + selectable: PropTypes.bool, + selectionColor: ColorPropType, + suppressHighlighting: PropTypes.bool, + style: stylePropType, + testID: PropTypes.string, + nativeID: PropTypes.string, + allowFontScaling: PropTypes.bool, + accessible: PropTypes.bool, + adjustsFontSizeToFit: PropTypes.bool, + minimumFontScale: PropTypes.number, + disabled: PropTypes.bool + }; +},253,[207,254,212,255,219],"node_modules/react-native/Libraries/Text/TextPropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); + + var EdgeInsetsPropType = PropTypes.shape({ + top: PropTypes.number, + left: PropTypes.number, + bottom: PropTypes.number, + right: PropTypes.number + }); + module.exports = EdgeInsetsPropType; +},254,[212],"node_modules/react-native/Libraries/StyleSheet/EdgeInsetsPropType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var createStrictShapeTypeChecker = _$$_REQUIRE(_dependencyMap[0], 'createStrictShapeTypeChecker'); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[1], 'flattenStyle'); + + function StyleSheetPropType(shape) { + var shapePropType = createStrictShapeTypeChecker(shape); + return function (props, propName, componentName, location) { + var newProps = props; + + if (props[propName]) { + newProps = {}; + newProps[propName] = flattenStyle(props[propName]); + } + + for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) { + rest[_key - 4] = arguments[_key]; + } + + return shapePropType.apply(void 0, [newProps, propName, componentName, location].concat(rest)); + }; + } + + module.exports = StyleSheetPropType; +},255,[256,226],"node_modules/react-native/Libraries/StyleSheet/StyleSheetPropType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var merge = _$$_REQUIRE(_dependencyMap[1], 'merge'); + + function createStrictShapeTypeChecker(shapeTypes) { + function checkType(isRequired, props, propName, componentName, location) { + if (!props[propName]) { + if (isRequired) { + invariant(false, "Required object `" + propName + "` was not specified in " + ("`" + componentName + "`.")); + } + + return; + } + + var propValue = props[propName]; + var propType = typeof propValue; + var locationName = location || '(unknown)'; + + if (propType !== 'object') { + invariant(false, "Invalid " + locationName + " `" + propName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); + } + + var allKeys = merge(props[propName], shapeTypes); + + for (var _len = arguments.length, rest = new Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { + rest[_key - 5] = arguments[_key]; + } + + for (var _key2 in allKeys) { + var checker = shapeTypes[_key2]; + + if (!checker) { + invariant(false, "Invalid props." + propName + " key `" + _key2 + "` supplied to `" + componentName + "`." + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')); + } + + var error = checker.apply(void 0, [propValue, _key2, componentName, location].concat(rest)); + + if (error) { + invariant(false, error.message + '\nBad object: ' + JSON.stringify(props[propName], null, ' ')); + } + } + } + + function chainedCheckType(props, propName, componentName, location) { + for (var _len2 = arguments.length, rest = new Array(_len2 > 4 ? _len2 - 4 : 0), _key3 = 4; _key3 < _len2; _key3++) { + rest[_key3 - 4] = arguments[_key3]; + } + + return checkType.apply(void 0, [false, props, propName, componentName, location].concat(rest)); + } + + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; + } + + module.exports = createStrictShapeTypeChecker; +},256,[166,248],"node_modules/react-native/Libraries/Utilities/createStrictShapeTypeChecker.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Touchable/Touchable.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var BoundingDimensions = _$$_REQUIRE(_dependencyMap[0], 'BoundingDimensions'); + + var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); + + var Position = _$$_REQUIRE(_dependencyMap[2], 'Position'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[4], 'ReactNative'); + + var TVEventHandler = _$$_REQUIRE(_dependencyMap[5], 'TVEventHandler'); + + var TouchEventUtils = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/TouchEventUtils'); + + var UIManager = _$$_REQUIRE(_dependencyMap[7], 'UIManager'); + + var View = _$$_REQUIRE(_dependencyMap[8], 'View'); + + var keyMirror = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/keyMirror'); + + var normalizeColor = _$$_REQUIRE(_dependencyMap[10], 'normalizeColor'); + + var States = keyMirror({ + NOT_RESPONDER: null, + RESPONDER_INACTIVE_PRESS_IN: null, + RESPONDER_INACTIVE_PRESS_OUT: null, + RESPONDER_ACTIVE_PRESS_IN: null, + RESPONDER_ACTIVE_PRESS_OUT: null, + RESPONDER_ACTIVE_LONG_PRESS_IN: null, + RESPONDER_ACTIVE_LONG_PRESS_OUT: null, + ERROR: null + }); + var IsActive = { + RESPONDER_ACTIVE_PRESS_OUT: true, + RESPONDER_ACTIVE_PRESS_IN: true + }; + var IsPressingIn = { + RESPONDER_INACTIVE_PRESS_IN: true, + RESPONDER_ACTIVE_PRESS_IN: true, + RESPONDER_ACTIVE_LONG_PRESS_IN: true + }; + var IsLongPressingIn = { + RESPONDER_ACTIVE_LONG_PRESS_IN: true + }; + var Signals = keyMirror({ + DELAY: null, + RESPONDER_GRANT: null, + RESPONDER_RELEASE: null, + RESPONDER_TERMINATED: null, + ENTER_PRESS_RECT: null, + LEAVE_PRESS_RECT: null, + LONG_PRESS_DETECTED: null + }); + var Transitions = { + NOT_RESPONDER: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN, + RESPONDER_RELEASE: States.ERROR, + RESPONDER_TERMINATED: States.ERROR, + ENTER_PRESS_RECT: States.ERROR, + LEAVE_PRESS_RECT: States.ERROR, + LONG_PRESS_DETECTED: States.ERROR + }, + RESPONDER_INACTIVE_PRESS_IN: { + DELAY: States.RESPONDER_ACTIVE_PRESS_IN, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT, + LONG_PRESS_DETECTED: States.ERROR + }, + RESPONDER_INACTIVE_PRESS_OUT: { + DELAY: States.RESPONDER_ACTIVE_PRESS_OUT, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT, + LONG_PRESS_DETECTED: States.ERROR + }, + RESPONDER_ACTIVE_PRESS_IN: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT, + LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN + }, + RESPONDER_ACTIVE_PRESS_OUT: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT, + LONG_PRESS_DETECTED: States.ERROR + }, + RESPONDER_ACTIVE_LONG_PRESS_IN: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT, + LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN + }, + RESPONDER_ACTIVE_LONG_PRESS_OUT: { + DELAY: States.ERROR, + RESPONDER_GRANT: States.ERROR, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN, + LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT, + LONG_PRESS_DETECTED: States.ERROR + }, + error: { + DELAY: States.NOT_RESPONDER, + RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN, + RESPONDER_RELEASE: States.NOT_RESPONDER, + RESPONDER_TERMINATED: States.NOT_RESPONDER, + ENTER_PRESS_RECT: States.NOT_RESPONDER, + LEAVE_PRESS_RECT: States.NOT_RESPONDER, + LONG_PRESS_DETECTED: States.NOT_RESPONDER + } + }; + var HIGHLIGHT_DELAY_MS = 130; + var PRESS_EXPAND_PX = 20; + var LONG_PRESS_THRESHOLD = 500; + var LONG_PRESS_DELAY_MS = LONG_PRESS_THRESHOLD - HIGHLIGHT_DELAY_MS; + var LONG_PRESS_ALLOWED_MOVEMENT = 10; + var TouchableMixin = { + componentDidMount: function componentDidMount() { + if (!Platform.isTV) { + return; + } + + this._tvEventHandler = new TVEventHandler(); + + this._tvEventHandler.enable(this, function (cmp, evt) { + var myTag = ReactNative.findNodeHandle(cmp); + evt.dispatchConfig = {}; + + if (myTag === evt.tag) { + if (evt.eventType === 'focus') { + cmp.touchableHandleActivePressIn && cmp.touchableHandleActivePressIn(evt); + } else if (evt.eventType === 'blur') { + cmp.touchableHandleActivePressOut && cmp.touchableHandleActivePressOut(evt); + } else if (evt.eventType === 'select') { + cmp.touchableHandlePress && !cmp.props.disabled && cmp.touchableHandlePress(evt); + } + } + }); + }, + componentWillUnmount: function componentWillUnmount() { + if (this._tvEventHandler) { + this._tvEventHandler.disable(); + + delete this._tvEventHandler; + } + + this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout); + this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout); + this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout); + }, + touchableGetInitialState: function touchableGetInitialState() { + return { + touchable: { + touchState: undefined, + responderID: null + } + }; + }, + touchableHandleResponderTerminationRequest: function touchableHandleResponderTerminationRequest() { + return !this.props.rejectResponderTermination; + }, + touchableHandleStartShouldSetResponder: function touchableHandleStartShouldSetResponder() { + return !this.props.disabled; + }, + touchableLongPressCancelsPress: function touchableLongPressCancelsPress() { + return true; + }, + touchableHandleResponderGrant: function touchableHandleResponderGrant(e) { + var dispatchID = e.currentTarget; + e.persist(); + this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout); + this.pressOutDelayTimeout = null; + this.state.touchable.touchState = States.NOT_RESPONDER; + this.state.touchable.responderID = dispatchID; + + this._receiveSignal(Signals.RESPONDER_GRANT, e); + + var delayMS = this.touchableGetHighlightDelayMS !== undefined ? Math.max(this.touchableGetHighlightDelayMS(), 0) : HIGHLIGHT_DELAY_MS; + delayMS = isNaN(delayMS) ? HIGHLIGHT_DELAY_MS : delayMS; + + if (delayMS !== 0) { + this.touchableDelayTimeout = setTimeout(this._handleDelay.bind(this, e), delayMS); + } else { + this._handleDelay(e); + } + + var longDelayMS = this.touchableGetLongPressDelayMS !== undefined ? Math.max(this.touchableGetLongPressDelayMS(), 10) : LONG_PRESS_DELAY_MS; + longDelayMS = isNaN(longDelayMS) ? LONG_PRESS_DELAY_MS : longDelayMS; + this.longPressDelayTimeout = setTimeout(this._handleLongDelay.bind(this, e), longDelayMS + delayMS); + }, + touchableHandleResponderRelease: function touchableHandleResponderRelease(e) { + this._receiveSignal(Signals.RESPONDER_RELEASE, e); + }, + touchableHandleResponderTerminate: function touchableHandleResponderTerminate(e) { + this._receiveSignal(Signals.RESPONDER_TERMINATED, e); + }, + touchableHandleResponderMove: function touchableHandleResponderMove(e) { + if (this.state.touchable.touchState === States.RESPONDER_INACTIVE_PRESS_IN) { + return; + } + + if (!this.state.touchable.positionOnActivate) { + return; + } + + var positionOnActivate = this.state.touchable.positionOnActivate; + var dimensionsOnActivate = this.state.touchable.dimensionsOnActivate; + var pressRectOffset = this.touchableGetPressRectOffset ? this.touchableGetPressRectOffset() : { + left: PRESS_EXPAND_PX, + right: PRESS_EXPAND_PX, + top: PRESS_EXPAND_PX, + bottom: PRESS_EXPAND_PX + }; + var pressExpandLeft = pressRectOffset.left; + var pressExpandTop = pressRectOffset.top; + var pressExpandRight = pressRectOffset.right; + var pressExpandBottom = pressRectOffset.bottom; + var hitSlop = this.touchableGetHitSlop ? this.touchableGetHitSlop() : null; + + if (hitSlop) { + pressExpandLeft += hitSlop.left; + pressExpandTop += hitSlop.top; + pressExpandRight += hitSlop.right; + pressExpandBottom += hitSlop.bottom; + } + + var touch = TouchEventUtils.extractSingleTouch(e.nativeEvent); + var pageX = touch && touch.pageX; + var pageY = touch && touch.pageY; + + if (this.pressInLocation) { + var movedDistance = this._getDistanceBetweenPoints(pageX, pageY, this.pressInLocation.pageX, this.pressInLocation.pageY); + + if (movedDistance > LONG_PRESS_ALLOWED_MOVEMENT) { + this._cancelLongPressDelayTimeout(); + } + } + + var isTouchWithinActive = pageX > positionOnActivate.left - pressExpandLeft && pageY > positionOnActivate.top - pressExpandTop && pageX < positionOnActivate.left + dimensionsOnActivate.width + pressExpandRight && pageY < positionOnActivate.top + dimensionsOnActivate.height + pressExpandBottom; + + if (isTouchWithinActive) { + this._receiveSignal(Signals.ENTER_PRESS_RECT, e); + + var curState = this.state.touchable.touchState; + + if (curState === States.RESPONDER_INACTIVE_PRESS_IN) { + this._cancelLongPressDelayTimeout(); + } + } else { + this._cancelLongPressDelayTimeout(); + + this._receiveSignal(Signals.LEAVE_PRESS_RECT, e); + } + }, + _remeasureMetricsOnActivation: function _remeasureMetricsOnActivation() { + var tag = this.state.touchable.responderID; + + if (tag == null) { + return; + } + + UIManager.measure(tag, this._handleQueryLayout); + }, + _handleQueryLayout: function _handleQueryLayout(l, t, w, h, globalX, globalY) { + if (!l && !t && !w && !h && !globalX && !globalY) { + return; + } + + this.state.touchable.positionOnActivate && Position.release(this.state.touchable.positionOnActivate); + this.state.touchable.dimensionsOnActivate && BoundingDimensions.release(this.state.touchable.dimensionsOnActivate); + this.state.touchable.positionOnActivate = Position.getPooled(globalX, globalY); + this.state.touchable.dimensionsOnActivate = BoundingDimensions.getPooled(w, h); + }, + _handleDelay: function _handleDelay(e) { + this.touchableDelayTimeout = null; + + this._receiveSignal(Signals.DELAY, e); + }, + _handleLongDelay: function _handleLongDelay(e) { + this.longPressDelayTimeout = null; + var curState = this.state.touchable.touchState; + + if (curState !== States.RESPONDER_ACTIVE_PRESS_IN && curState !== States.RESPONDER_ACTIVE_LONG_PRESS_IN) { + console.error('Attempted to transition from state `' + curState + '` to `' + States.RESPONDER_ACTIVE_LONG_PRESS_IN + '`, which is not supported. This is ' + 'most likely due to `Touchable.longPressDelayTimeout` not being cancelled.'); + } else { + this._receiveSignal(Signals.LONG_PRESS_DETECTED, e); + } + }, + _receiveSignal: function _receiveSignal(signal, e) { + var responderID = this.state.touchable.responderID; + var curState = this.state.touchable.touchState; + var nextState = Transitions[curState] && Transitions[curState][signal]; + + if (!responderID && signal === Signals.RESPONDER_RELEASE) { + return; + } + + if (!nextState) { + throw new Error('Unrecognized signal `' + signal + '` or state `' + curState + '` for Touchable responder `' + responderID + '`'); + } + + if (nextState === States.ERROR) { + throw new Error('Touchable cannot transition from `' + curState + '` to `' + signal + '` for responder `' + responderID + '`'); + } + + if (curState !== nextState) { + this._performSideEffectsForTransition(curState, nextState, signal, e); + + this.state.touchable.touchState = nextState; + } + }, + _cancelLongPressDelayTimeout: function _cancelLongPressDelayTimeout() { + this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout); + this.longPressDelayTimeout = null; + }, + _isHighlight: function _isHighlight(state) { + return state === States.RESPONDER_ACTIVE_PRESS_IN || state === States.RESPONDER_ACTIVE_LONG_PRESS_IN; + }, + _savePressInLocation: function _savePressInLocation(e) { + var touch = TouchEventUtils.extractSingleTouch(e.nativeEvent); + var pageX = touch && touch.pageX; + var pageY = touch && touch.pageY; + var locationX = touch && touch.locationX; + var locationY = touch && touch.locationY; + this.pressInLocation = { + pageX: pageX, + pageY: pageY, + locationX: locationX, + locationY: locationY + }; + }, + _getDistanceBetweenPoints: function _getDistanceBetweenPoints(aX, aY, bX, bY) { + var deltaX = aX - bX; + var deltaY = aY - bY; + return Math.sqrt(deltaX * deltaX + deltaY * deltaY); + }, + _performSideEffectsForTransition: function _performSideEffectsForTransition(curState, nextState, signal, e) { + var curIsHighlight = this._isHighlight(curState); + + var newIsHighlight = this._isHighlight(nextState); + + var isFinalSignal = signal === Signals.RESPONDER_TERMINATED || signal === Signals.RESPONDER_RELEASE; + + if (isFinalSignal) { + this._cancelLongPressDelayTimeout(); + } + + if (!IsActive[curState] && IsActive[nextState]) { + this._remeasureMetricsOnActivation(); + } + + if (IsPressingIn[curState] && signal === Signals.LONG_PRESS_DETECTED) { + this.touchableHandleLongPress && this.touchableHandleLongPress(e); + } + + if (newIsHighlight && !curIsHighlight) { + this._startHighlight(e); + } else if (!newIsHighlight && curIsHighlight) { + this._endHighlight(e); + } + + if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) { + var hasLongPressHandler = !!this.props.onLongPress; + var pressIsLongButStillCallOnPress = IsLongPressingIn[curState] && (!hasLongPressHandler || !this.touchableLongPressCancelsPress()); + var shouldInvokePress = !IsLongPressingIn[curState] || pressIsLongButStillCallOnPress; + + if (shouldInvokePress && this.touchableHandlePress) { + if (!newIsHighlight && !curIsHighlight) { + this._startHighlight(e); + + this._endHighlight(e); + } + + if (Platform.OS === 'android') { + this._playTouchSound(); + } + + this.touchableHandlePress(e); + } + } + + this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout); + this.touchableDelayTimeout = null; + }, + _playTouchSound: function _playTouchSound() { + UIManager.playTouchSound(); + }, + _startHighlight: function _startHighlight(e) { + this._savePressInLocation(e); + + this.touchableHandleActivePressIn && this.touchableHandleActivePressIn(e); + }, + _endHighlight: function _endHighlight(e) { + var _this = this; + + if (this.touchableHandleActivePressOut) { + if (this.touchableGetPressOutDelayMS && this.touchableGetPressOutDelayMS()) { + this.pressOutDelayTimeout = setTimeout(function () { + _this.touchableHandleActivePressOut(e); + }, this.touchableGetPressOutDelayMS()); + } else { + this.touchableHandleActivePressOut(e); + } + } + } + }; + var Touchable = { + Mixin: TouchableMixin, + TOUCH_TARGET_DEBUG: false, + renderDebugView: function renderDebugView(_ref) { + var color = _ref.color, + hitSlop = _ref.hitSlop; + + if (!Touchable.TOUCH_TARGET_DEBUG) { + return null; + } + + if (!__DEV__) { + throw Error('Touchable.TOUCH_TARGET_DEBUG should not be enabled in prod!'); + } + + var debugHitSlopStyle = {}; + hitSlop = hitSlop || { + top: 0, + bottom: 0, + left: 0, + right: 0 + }; + + for (var key in hitSlop) { + debugHitSlopStyle[key] = -hitSlop[key]; + } + + var hexColor = '#' + ('00000000' + normalizeColor(color).toString(16)).substr(-8); + return React.createElement(View, { + pointerEvents: "none", + style: _objectSpread({ + position: 'absolute', + borderColor: hexColor.slice(0, -2) + '55', + borderWidth: 1, + borderStyle: 'dashed', + backgroundColor: hexColor.slice(0, -2) + '0F' + }, debugHitSlopStyle), + __source: { + fileName: _jsxFileName, + lineNumber: 840 + } + }); + } + }; + module.exports = Touchable; +},257,[258,176,260,200,261,327,328,218,227,210,208],"node_modules/react-native/Libraries/Components/Touchable/Touchable.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var PooledClass = _$$_REQUIRE(_dependencyMap[0], 'PooledClass'); + + var twoArgumentPooler = PooledClass.twoArgumentPooler; + + function BoundingDimensions(width, height) { + this.width = width; + this.height = height; + } + + BoundingDimensions.prototype.destructor = function () { + this.width = null; + this.height = null; + }; + + BoundingDimensions.getPooledFromElement = function (element) { + return BoundingDimensions.getPooled(element.offsetWidth, element.offsetHeight); + }; + + PooledClass.addPoolingTo(BoundingDimensions, twoArgumentPooler); + module.exports = BoundingDimensions; +},258,[259],"node_modules/react-native/Libraries/Components/Touchable/BoundingDimensions.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var oneArgumentPooler = function oneArgumentPooler(copyFieldsFrom) { + var Klass = this; + + if (Klass.instancePool.length) { + var _instance = Klass.instancePool.pop(); + + Klass.call(_instance, copyFieldsFrom); + return _instance; + } else { + return new Klass(copyFieldsFrom); + } + }; + + var twoArgumentPooler = function twoArgumentPooler(a1, a2) { + var Klass = this; + + if (Klass.instancePool.length) { + var _instance2 = Klass.instancePool.pop(); + + Klass.call(_instance2, a1, a2); + return _instance2; + } else { + return new Klass(a1, a2); + } + }; + + var threeArgumentPooler = function threeArgumentPooler(a1, a2, a3) { + var Klass = this; + + if (Klass.instancePool.length) { + var _instance3 = Klass.instancePool.pop(); + + Klass.call(_instance3, a1, a2, a3); + return _instance3; + } else { + return new Klass(a1, a2, a3); + } + }; + + var fourArgumentPooler = function fourArgumentPooler(a1, a2, a3, a4) { + var Klass = this; + + if (Klass.instancePool.length) { + var _instance4 = Klass.instancePool.pop(); + + Klass.call(_instance4, a1, a2, a3, a4); + return _instance4; + } else { + return new Klass(a1, a2, a3, a4); + } + }; + + var standardReleaser = function standardReleaser(instance) { + var Klass = this; + invariant(instance instanceof Klass, 'Trying to release an instance into a pool of a different type.'); + instance.destructor(); + + if (Klass.instancePool.length < Klass.poolSize) { + Klass.instancePool.push(instance); + } + }; + + var DEFAULT_POOL_SIZE = 10; + var DEFAULT_POOLER = oneArgumentPooler; + + var addPoolingTo = function addPoolingTo(CopyConstructor, pooler) { + var NewKlass = CopyConstructor; + NewKlass.instancePool = []; + NewKlass.getPooled = pooler || DEFAULT_POOLER; + + if (!NewKlass.poolSize) { + NewKlass.poolSize = DEFAULT_POOL_SIZE; + } + + NewKlass.release = standardReleaser; + return NewKlass; + }; + + var PooledClass = { + addPoolingTo: addPoolingTo, + oneArgumentPooler: oneArgumentPooler, + twoArgumentPooler: twoArgumentPooler, + threeArgumentPooler: threeArgumentPooler, + fourArgumentPooler: fourArgumentPooler + }; + module.exports = PooledClass; +},259,[166],"node_modules/react-native/Libraries/Components/Touchable/PooledClass.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var PooledClass = _$$_REQUIRE(_dependencyMap[0], 'PooledClass'); + + var twoArgumentPooler = PooledClass.twoArgumentPooler; + + function Position(left, top) { + this.left = left; + this.top = top; + } + + Position.prototype.destructor = function () { + this.left = null; + this.top = null; + }; + + PooledClass.addPoolingTo(Position, twoArgumentPooler); + module.exports = Position; +},260,[259],"node_modules/react-native/Libraries/Components/Touchable/Position.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var ReactNative; + + if (__DEV__) { + ReactNative = _$$_REQUIRE(_dependencyMap[0], 'ReactNativeRenderer-dev'); + } else { + ReactNative = _$$_REQUIRE(_dependencyMap[1], 'ReactNativeRenderer-prod'); + } + + module.exports = ReactNative; +},261,[262,326],"node_modules/react-native/Libraries/Renderer/shims/ReactNative.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + if (__DEV__) { + (function () { + "use strict"; + + _$$_REQUIRE(_dependencyMap[0], "InitializeCore"); + + var invariant = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"); + + var warning = _$$_REQUIRE(_dependencyMap[2], "fbjs/lib/warning"); + + var ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[3], "ReactNativeViewConfigRegistry"); + + var UIManager = _$$_REQUIRE(_dependencyMap[4], "UIManager"); + + var RCTEventEmitter = _$$_REQUIRE(_dependencyMap[5], "RCTEventEmitter"); + + var React = _$$_REQUIRE(_dependencyMap[6], "react"); + + var emptyObject = _$$_REQUIRE(_dependencyMap[7], "fbjs/lib/emptyObject"); + + var deepFreezeAndThrowOnMutationInDev = _$$_REQUIRE(_dependencyMap[8], "deepFreezeAndThrowOnMutationInDev"); + + var deepDiffer = _$$_REQUIRE(_dependencyMap[9], "deepDiffer"); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[10], "flattenStyle"); + + var TextInputState = _$$_REQUIRE(_dependencyMap[11], "TextInputState"); + + var checkPropTypes = _$$_REQUIRE(_dependencyMap[12], "prop-types/checkPropTypes"); + + var ExceptionsManager = _$$_REQUIRE(_dependencyMap[13], "ExceptionsManager"); + + var invokeGuardedCallback = function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + this._hasCaughtError = false; + this._caughtError = null; + var funcArgs = Array.prototype.slice.call(arguments, 3); + + try { + func.apply(context, funcArgs); + } catch (error) { + this._caughtError = error; + this._hasCaughtError = true; + } + }; + + { + if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { + var fakeNode = document.createElement("react"); + + var invokeGuardedCallbackDev = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { + invariant(typeof document !== "undefined", "The `document` global was defined when React was initialized, but is not " + "defined anymore. This can happen in a test environment if a component " + "schedules an update from an asynchronous callback, but the test has already " + "finished running. To solve this, you can either unmount the component at " + "the end of your test (and ensure that any asynchronous operations get " + "canceled in `componentWillUnmount`), or you can change the test itself " + "to be asynchronous."); + var evt = document.createEvent("Event"); + var didError = true; + var funcArgs = Array.prototype.slice.call(arguments, 3); + + function callCallback() { + fakeNode.removeEventListener(evtType, callCallback, false); + func.apply(context, funcArgs); + didError = false; + } + + var error = void 0; + var didSetError = false; + var isCrossOriginError = false; + + function onError(event) { + error = event.error; + didSetError = true; + + if (error === null && event.colno === 0 && event.lineno === 0) { + isCrossOriginError = true; + } + } + + var evtType = "react-" + (name ? name : "invokeguardedcallback"); + window.addEventListener("error", onError); + fakeNode.addEventListener(evtType, callCallback, false); + evt.initEvent(evtType, false, false); + fakeNode.dispatchEvent(evt); + + if (didError) { + if (!didSetError) { + error = new Error("An error was thrown inside one of your components, but React " + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + "your browser. Try triggering the error in production mode, " + "or switching to a modern browser. If you suspect that this is " + "actually an issue with React, please file an issue."); + } else if (isCrossOriginError) { + error = new Error("A cross-origin error was thrown. React doesn't have access to " + "the actual error object in development. " + "See https://fb.me/react-crossorigin-error for more information."); + } + + this._hasCaughtError = true; + this._caughtError = error; + } else { + this._hasCaughtError = false; + this._caughtError = null; + } + + window.removeEventListener("error", onError); + }; + + invokeGuardedCallback = invokeGuardedCallbackDev; + } + } + var invokeGuardedCallback$1 = invokeGuardedCallback; + var ReactErrorUtils = { + _caughtError: null, + _hasCaughtError: false, + _rethrowError: null, + _hasRethrowError: false, + invokeGuardedCallback: function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback$1.apply(ReactErrorUtils, arguments); + }, + invokeGuardedCallbackAndCatchFirstError: function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + ReactErrorUtils.invokeGuardedCallback.apply(this, arguments); + + if (ReactErrorUtils.hasCaughtError()) { + var error = ReactErrorUtils.clearCaughtError(); + + if (!ReactErrorUtils._hasRethrowError) { + ReactErrorUtils._hasRethrowError = true; + ReactErrorUtils._rethrowError = error; + } + } + }, + rethrowCaughtError: function rethrowCaughtError() { + return _rethrowCaughtError.apply(ReactErrorUtils, arguments); + }, + hasCaughtError: function hasCaughtError() { + return ReactErrorUtils._hasCaughtError; + }, + clearCaughtError: function clearCaughtError() { + if (ReactErrorUtils._hasCaughtError) { + var error = ReactErrorUtils._caughtError; + ReactErrorUtils._caughtError = null; + ReactErrorUtils._hasCaughtError = false; + return error; + } else { + invariant(false, "clearCaughtError was called but no error was captured. This error " + "is likely caused by a bug in React. Please file an issue."); + } + } + }; + + var _rethrowCaughtError = function _rethrowCaughtError() { + if (ReactErrorUtils._hasRethrowError) { + var error = ReactErrorUtils._rethrowError; + ReactErrorUtils._rethrowError = null; + ReactErrorUtils._hasRethrowError = false; + throw error; + } + }; + + var eventPluginOrder = null; + var namesToPlugins = {}; + + function recomputePluginOrdering() { + if (!eventPluginOrder) { + return; + } + + for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName]; + var pluginIndex = eventPluginOrder.indexOf(pluginName); + invariant(pluginIndex > -1, "EventPluginRegistry: Cannot inject event plugins that do not exist in " + "the plugin ordering, `%s`.", pluginName); + + if (plugins[pluginIndex]) { + continue; + } + + invariant(pluginModule.extractEvents, "EventPluginRegistry: Event plugins must implement an `extractEvents` " + "method, but `%s` does not.", pluginName); + plugins[pluginIndex] = pluginModule; + var publishedEvents = pluginModule.eventTypes; + + for (var eventName in publishedEvents) { + invariant(publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName), "EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.", eventName, pluginName); + } + } + } + + function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { + invariant(!eventNameDispatchConfigs.hasOwnProperty(eventName), "EventPluginHub: More than one plugin attempted to publish the same " + "event name, `%s`.", eventName); + eventNameDispatchConfigs[eventName] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + + if (phasedRegistrationNames) { + for (var phaseName in phasedRegistrationNames) { + if (phasedRegistrationNames.hasOwnProperty(phaseName)) { + var phasedRegistrationName = phasedRegistrationNames[phaseName]; + publishRegistrationName(phasedRegistrationName, pluginModule, eventName); + } + } + + return true; + } else if (dispatchConfig.registrationName) { + publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); + return true; + } + + return false; + } + + function publishRegistrationName(registrationName, pluginModule, eventName) { + invariant(!registrationNameModules[registrationName], "EventPluginHub: More than one plugin attempted to publish the same " + "registration name, `%s`.", registrationName); + registrationNameModules[registrationName] = pluginModule; + registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; + { + var lowerCasedName = registrationName.toLowerCase(); + } + } + + var plugins = []; + var eventNameDispatchConfigs = {}; + var registrationNameModules = {}; + var registrationNameDependencies = {}; + + function injectEventPluginOrder(injectedEventPluginOrder) { + invariant(!eventPluginOrder, "EventPluginRegistry: Cannot inject event plugin ordering more than " + "once. You are likely trying to load more than one copy of React."); + eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); + recomputePluginOrdering(); + } + + function injectEventPluginsByName(injectedNamesToPlugins) { + var isOrderingDirty = false; + + for (var pluginName in injectedNamesToPlugins) { + if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { + continue; + } + + var pluginModule = injectedNamesToPlugins[pluginName]; + + if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { + invariant(!namesToPlugins[pluginName], "EventPluginRegistry: Cannot inject two different event plugins " + "using the same name, `%s`.", pluginName); + namesToPlugins[pluginName] = pluginModule; + isOrderingDirty = true; + } + } + + if (isOrderingDirty) { + recomputePluginOrdering(); + } + } + + var getFiberCurrentPropsFromNode = null; + var getInstanceFromNode = null; + var getNodeFromInstance = null; + var injection$1 = { + injectComponentTree: function injectComponentTree(Injected) { + getFiberCurrentPropsFromNode = Injected.getFiberCurrentPropsFromNode; + getInstanceFromNode = Injected.getInstanceFromNode; + getNodeFromInstance = Injected.getNodeFromInstance; + { + !(getNodeFromInstance && getInstanceFromNode) ? warning(false, "EventPluginUtils.injection.injectComponentTree(...): Injected " + "module is missing getNodeFromInstance or getInstanceFromNode.") : void 0; + } + } + }; + var validateEventDispatches = void 0; + { + validateEventDispatches = function validateEventDispatches(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + var listenersIsArr = Array.isArray(dispatchListeners); + var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; + var instancesIsArr = Array.isArray(dispatchInstances); + var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; + !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warning(false, "EventPluginUtils: Invalid `event`.") : void 0; + }; + } + + function executeDispatch(event, simulated, listener, inst) { + var type = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); + event.currentTarget = null; + } + + function executeDispatchesInOrder(event, simulated) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + { + validateEventDispatches(event); + } + + if (Array.isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } + + executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]); + } + } else if (dispatchListeners) { + executeDispatch(event, simulated, dispatchListeners, dispatchInstances); + } + + event._dispatchListeners = null; + event._dispatchInstances = null; + } + + function executeDispatchesInOrderStopAtTrueImpl(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + { + validateEventDispatches(event); + } + + if (Array.isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } + + if (dispatchListeners[i](event, dispatchInstances[i])) { + return dispatchInstances[i]; + } + } + } else if (dispatchListeners) { + if (dispatchListeners(event, dispatchInstances)) { + return dispatchInstances; + } + } + + return null; + } + + function executeDispatchesInOrderStopAtTrue(event) { + var ret = executeDispatchesInOrderStopAtTrueImpl(event); + event._dispatchInstances = null; + event._dispatchListeners = null; + return ret; + } + + function executeDirectDispatch(event) { + { + validateEventDispatches(event); + } + var dispatchListener = event._dispatchListeners; + var dispatchInstance = event._dispatchInstances; + invariant(!Array.isArray(dispatchListener), "executeDirectDispatch(...): Invalid `event`."); + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + var res = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return res; + } + + function hasDispatches(event) { + return !!event._dispatchListeners; + } + + function accumulateInto(current, next) { + invariant(next != null, "accumulateInto(...): Accumulated items must not be null or undefined."); + + if (current == null) { + return next; + } + + if (Array.isArray(current)) { + if (Array.isArray(next)) { + current.push.apply(current, next); + return current; + } + + current.push(next); + return current; + } + + if (Array.isArray(next)) { + return [current].concat(next); + } + + return [current, next]; + } + + function forEachAccumulated(arr, cb, scope) { + if (Array.isArray(arr)) { + arr.forEach(cb, scope); + } else if (arr) { + cb.call(scope, arr); + } + } + + var eventQueue = null; + + var executeDispatchesAndRelease = function executeDispatchesAndRelease(event, simulated) { + if (event) { + executeDispatchesInOrder(event, simulated); + + if (!event.isPersistent()) { + event.constructor.release(event); + } + } + }; + + var executeDispatchesAndReleaseSimulated = function executeDispatchesAndReleaseSimulated(e) { + return executeDispatchesAndRelease(e, true); + }; + + var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { + return executeDispatchesAndRelease(e, false); + }; + + function isInteractive(tag) { + return tag === "button" || tag === "input" || tag === "select" || tag === "textarea"; + } + + function shouldPreventMouseEvent(name, type, props) { + switch (name) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + return !!(props.disabled && isInteractive(type)); + + default: + return false; + } + } + + var injection = { + injectEventPluginOrder: injectEventPluginOrder, + injectEventPluginsByName: injectEventPluginsByName + }; + + function getListener(inst, registrationName) { + var listener = void 0; + var stateNode = inst.stateNode; + + if (!stateNode) { + return null; + } + + var props = getFiberCurrentPropsFromNode(stateNode); + + if (!props) { + return null; + } + + listener = props[registrationName]; + + if (shouldPreventMouseEvent(registrationName, inst.type, props)) { + return null; + } + + invariant(!listener || typeof listener === "function", "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); + return listener; + } + + function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = null; + + for (var i = 0; i < plugins.length; i++) { + var possiblePlugin = plugins[i]; + + if (possiblePlugin) { + var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + + if (extractedEvents) { + events = accumulateInto(events, extractedEvents); + } + } + } + + return events; + } + + function runEventsInBatch(events, simulated) { + if (events !== null) { + eventQueue = accumulateInto(eventQueue, events); + } + + var processingEventQueue = eventQueue; + eventQueue = null; + + if (!processingEventQueue) { + return; + } + + if (simulated) { + forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated); + } else { + forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); + } + + invariant(!eventQueue, "processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); + ReactErrorUtils.rethrowCaughtError(); + } + + function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + runEventsInBatch(events, false); + } + + var IndeterminateComponent = 0; + var FunctionalComponent = 1; + var ClassComponent = 2; + var HostRoot = 3; + var HostPortal = 4; + var HostComponent = 5; + var HostText = 6; + var Fragment = 10; + var Mode = 11; + var ContextConsumer = 12; + var ContextProvider = 13; + var ForwardRef = 14; + var Profiler = 15; + var TimeoutComponent = 16; + + function getParent(inst) { + do { + inst = inst.return; + } while (inst && inst.tag !== HostComponent); + + if (inst) { + return inst; + } + + return null; + } + + function getLowestCommonAncestor(instA, instB) { + var depthA = 0; + + for (var tempA = instA; tempA; tempA = getParent(tempA)) { + depthA++; + } + + var depthB = 0; + + for (var tempB = instB; tempB; tempB = getParent(tempB)) { + depthB++; + } + + while (depthA - depthB > 0) { + instA = getParent(instA); + depthA--; + } + + while (depthB - depthA > 0) { + instB = getParent(instB); + depthB--; + } + + var depth = depthA; + + while (depth--) { + if (instA === instB || instA === instB.alternate) { + return instA; + } + + instA = getParent(instA); + instB = getParent(instB); + } + + return null; + } + + function isAncestor(instA, instB) { + while (instB) { + if (instA === instB || instA === instB.alternate) { + return true; + } + + instB = getParent(instB); + } + + return false; + } + + function getParentInstance(inst) { + return getParent(inst); + } + + function traverseTwoPhase(inst, fn, arg) { + var path = []; + + while (inst) { + path.push(inst); + inst = getParent(inst); + } + + var i = void 0; + + for (i = path.length; i-- > 0;) { + fn(path[i], "captured", arg); + } + + for (i = 0; i < path.length; i++) { + fn(path[i], "bubbled", arg); + } + } + + function listenerAtPhase(inst, event, propagationPhase) { + var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; + return getListener(inst, registrationName); + } + + function accumulateDirectionalDispatches(inst, phase, event) { + { + !inst ? warning(false, "Dispatching inst must not be null") : void 0; + } + var listener = listenerAtPhase(inst, event, phase); + + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + + function accumulateTwoPhaseDispatchesSingle(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + } + + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + var parentInst = targetInst ? getParentInstance(targetInst) : null; + traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); + } + } + + function accumulateDispatches(inst, ignoredDirection, event) { + if (inst && event && event.dispatchConfig.registrationName) { + var registrationName = event.dispatchConfig.registrationName; + var listener = getListener(inst, registrationName); + + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + } + + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + accumulateDispatches(event._targetInst, null, event); + } + } + + function accumulateTwoPhaseDispatches(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); + } + + function accumulateTwoPhaseDispatchesSkipTarget(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); + } + + function accumulateDirectDispatches(events) { + forEachAccumulated(events, accumulateDirectDispatchesSingle); + } + + var didWarnForAddedNewProperty = false; + var EVENT_POOL_SIZE = 10; + var shouldBeReleasedProperties = ["dispatchConfig", "_targetInst", "nativeEvent", "isDefaultPrevented", "isPropagationStopped", "_dispatchListeners", "_dispatchInstances"]; + var EventInterface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + + function functionThatReturnsTrue() { + return true; + } + + function functionThatReturnsFalse() { + return false; + } + + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + { + delete this.nativeEvent; + delete this.preventDefault; + delete this.stopPropagation; + } + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + var Interface = this.constructor.Interface; + + for (var propName in Interface) { + if (!Interface.hasOwnProperty(propName)) { + continue; + } + + { + delete this[propName]; + } + var normalize = Interface[propName]; + + if (normalize) { + this[propName] = normalize(nativeEvent); + } else { + if (propName === "target") { + this.target = nativeEventTarget; + } else { + this[propName] = nativeEvent[propName]; + } + } + } + + var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; + + if (defaultPrevented) { + this.isDefaultPrevented = functionThatReturnsTrue; + } else { + this.isDefaultPrevented = functionThatReturnsFalse; + } + + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + + _extends(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = true; + var event = this.nativeEvent; + + if (!event) { + return; + } + + if (event.preventDefault) { + event.preventDefault(); + } else if (typeof event.returnValue !== "unknown") { + event.returnValue = false; + } + + this.isDefaultPrevented = functionThatReturnsTrue; + }, + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + + if (!event) { + return; + } + + if (event.stopPropagation) { + event.stopPropagation(); + } else if (typeof event.cancelBubble !== "unknown") { + event.cancelBubble = true; + } + + this.isPropagationStopped = functionThatReturnsTrue; + }, + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; + }, + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface; + + for (var propName in Interface) { + { + Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); + } + } + + for (var i = 0; i < shouldBeReleasedProperties.length; i++) { + this[shouldBeReleasedProperties[i]] = null; + } + + { + Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)); + Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", function () {})); + Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", function () {})); + } + } + }); + + SyntheticEvent.Interface = EventInterface; + + SyntheticEvent.extend = function (Interface) { + var Super = this; + + var E = function E() {}; + + E.prototype = Super.prototype; + var prototype = new E(); + + function Class() { + return Super.apply(this, arguments); + } + + _extends(prototype, Class.prototype); + + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = _extends({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + + { + var isProxySupported = typeof Proxy === "function" && !Object.isSealed(new Proxy({}, {})); + + if (isProxySupported) { + SyntheticEvent = new Proxy(SyntheticEvent, { + construct: function construct(target, args) { + return this.apply(target, Object.create(target.prototype), args); + }, + apply: function apply(constructor, that, args) { + return new Proxy(constructor.apply(that, args), { + set: function set(target, prop, value) { + if (prop !== "isPersistent" && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) { + !(didWarnForAddedNewProperty || target.isPersistent()) ? warning(false, "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + "The property is never released. See " + "https://fb.me/react-event-pooling for more information.") : void 0; + didWarnForAddedNewProperty = true; + } + + target[prop] = value; + return true; + } + }); + } + }); + } + } + addEventPoolingTo(SyntheticEvent); + + function getPooledWarningPropertyDefinition(propName, getVal) { + var isFunction = typeof getVal === "function"; + return { + configurable: true, + set: set, + get: get$$1 + }; + + function set(val) { + var action = isFunction ? "setting the method" : "setting the property"; + warn(action, "This is effectively a no-op"); + return val; + } + + function get$$1() { + var action = isFunction ? "accessing the method" : "accessing the property"; + var result = isFunction ? "This is a no-op function" : "This is set to null"; + warn(action, result); + return getVal; + } + + function warn(action, result) { + var warningCondition = false; + !warningCondition ? warning(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + "If you must keep the original synthetic event around, use event.persist(). " + "See https://fb.me/react-event-pooling for more information.", action, propName, result) : void 0; + } + } + + function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + var EventConstructor = this; + + if (EventConstructor.eventPool.length) { + var instance = EventConstructor.eventPool.pop(); + EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + + return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + + function releasePooledEvent(event) { + var EventConstructor = this; + invariant(event instanceof EventConstructor, "Trying to release an event instance into a pool of a different type."); + event.destructor(); + + if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { + EventConstructor.eventPool.push(event); + } + } + + function addEventPoolingTo(EventConstructor) { + EventConstructor.eventPool = []; + EventConstructor.getPooled = getPooledEvent; + EventConstructor.release = releasePooledEvent; + } + + var SyntheticEvent$1 = SyntheticEvent; + var ResponderSyntheticEvent = SyntheticEvent$1.extend({ + touchHistory: function touchHistory(nativeEvent) { + return null; + } + }); + var TOP_TOUCH_START = "topTouchStart"; + var TOP_TOUCH_MOVE = "topTouchMove"; + var TOP_TOUCH_END = "topTouchEnd"; + var TOP_TOUCH_CANCEL = "topTouchCancel"; + var TOP_SCROLL = "topScroll"; + var TOP_SELECTION_CHANGE = "topSelectionChange"; + + function isStartish(topLevelType) { + return topLevelType === TOP_TOUCH_START; + } + + function isMoveish(topLevelType) { + return topLevelType === TOP_TOUCH_MOVE; + } + + function isEndish(topLevelType) { + return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL; + } + + var startDependencies = [TOP_TOUCH_START]; + var moveDependencies = [TOP_TOUCH_MOVE]; + var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END]; + var MAX_TOUCH_BANK = 20; + var touchBank = []; + var touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; + } + + function createTouchRecord(touch) { + return { + touchActive: true, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }; + } + + function resetTouchRecord(touchRecord, touch) { + touchRecord.touchActive = true; + touchRecord.startPageX = touch.pageX; + touchRecord.startPageY = touch.pageY; + touchRecord.startTimeStamp = timestampForTouch(touch); + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchRecord.previousPageX = touch.pageX; + touchRecord.previousPageY = touch.pageY; + touchRecord.previousTimeStamp = timestampForTouch(touch); + } + + function getTouchIdentifier(_ref) { + var identifier = _ref.identifier; + invariant(identifier != null, "Touch object is missing identifier."); + { + !(identifier <= MAX_TOUCH_BANK) ? warning(false, "Touch identifier %s is greater than maximum supported %s which causes " + "performance issues backfilling array locations for all of the indices.", identifier, MAX_TOUCH_BANK) : void 0; + } + return identifier; + } + + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch); + var touchRecord = touchBank[identifier]; + + if (touchRecord) { + resetTouchRecord(touchRecord, touch); + } else { + touchBank[identifier] = createTouchRecord(touch); + } + + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + + if (touchRecord) { + touchRecord.touchActive = true; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + console.error("Cannot record touch move without a touch start.\n" + "Touch Move: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + } + + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + + if (touchRecord) { + touchRecord.touchActive = false; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + console.error("Cannot record touch end without a touch start.\n" + "Touch End: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + } + + function printTouch(touch) { + return JSON.stringify({ + identifier: touch.identifier, + pageX: touch.pageX, + pageY: touch.pageY, + timestamp: timestampForTouch(touch) + }); + } + + function printTouchBank() { + var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); + + if (touchBank.length > MAX_TOUCH_BANK) { + printed += " (original size: " + touchBank.length + ")"; + } + + return printed; + } + + var ResponderTouchHistoryStore = { + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + if (isMoveish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchMove); + } else if (isStartish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchStart); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + + if (touchHistory.numberActiveTouches === 1) { + touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; + } + } else if (isEndish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchEnd); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + + if (touchHistory.numberActiveTouches === 1) { + for (var i = 0; i < touchBank.length; i++) { + var touchTrackToCheck = touchBank[i]; + + if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { + touchHistory.indexOfSingleActiveTouch = i; + break; + } + } + + { + var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; + !(activeRecord != null && activeRecord.touchActive) ? warning(false, "Cannot find single active touch.") : void 0; + } + } + } + }, + touchHistory: touchHistory + }; + + function accumulate(current, next) { + invariant(next != null, "accumulate(...): Accumulated items must be not be null or undefined."); + + if (current == null) { + return next; + } + + if (Array.isArray(current)) { + return current.concat(next); + } + + if (Array.isArray(next)) { + return [current].concat(next); + } + + return [current, next]; + } + + var responderInst = null; + var trackedTouchCount = 0; + + var changeResponder = function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + + if (ResponderEventPlugin.GlobalResponderHandler !== null) { + ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + }; + + var eventTypes$1 = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies + }, + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: [TOP_SCROLL] + }, + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: [TOP_SELECTION_CHANGE] + }, + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies + }, + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] + } + }; + + function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var shouldSetEventType = isStartish(topLevelType) ? eventTypes$1.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes$1.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes$1.selectionChangeShouldSetResponder : eventTypes$1.scrollShouldSetResponder; + var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); + var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; + var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); + shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + + if (skipOverBubbleShouldSetFrom) { + accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); + } else { + accumulateTwoPhaseDispatches(shouldSetEvent); + } + + var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); + + if (!shouldSetEvent.isPersistent()) { + shouldSetEvent.constructor.release(shouldSetEvent); + } + + if (!wantsResponderInst || wantsResponderInst === responderInst) { + return null; + } + + var extracted = void 0; + var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); + grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(grantEvent); + var blockHostResponder = executeDirectDispatch(grantEvent) === true; + + if (responderInst) { + var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); + terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminationRequestEvent); + var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); + + if (!terminationRequestEvent.isPersistent()) { + terminationRequestEvent.constructor.release(terminationRequestEvent); + } + + if (shouldSwitch) { + var terminateEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminate, responderInst, nativeEvent, nativeEventTarget); + terminateEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminateEvent); + extracted = accumulate(extracted, [grantEvent, terminateEvent]); + changeResponder(wantsResponderInst, blockHostResponder); + } else { + var rejectEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderReject, wantsResponderInst, nativeEvent, nativeEventTarget); + rejectEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(rejectEvent); + extracted = accumulate(extracted, rejectEvent); + } + } else { + extracted = accumulate(extracted, grantEvent); + changeResponder(wantsResponderInst, blockHostResponder); + } + + return extracted; + } + + function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { + return topLevelInst && (topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType)); + } + + function noResponderTouches(nativeEvent) { + var touches = nativeEvent.touches; + + if (!touches || touches.length === 0) { + return true; + } + + for (var i = 0; i < touches.length; i++) { + var activeTouch = touches[i]; + var target = activeTouch.target; + + if (target !== null && target !== undefined && target !== 0) { + var targetInst = getInstanceFromNode(target); + + if (isAncestor(responderInst, targetInst)) { + return false; + } + } + } + + return true; + } + + var ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes$1, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (isStartish(topLevelType)) { + trackedTouchCount += 1; + } else if (isEndish(topLevelType)) { + if (trackedTouchCount >= 0) { + trackedTouchCount -= 1; + } else { + console.error("Ended a touch event which was not counted in `trackedTouchCount`."); + return null; + } + } + + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; + var isResponderTouchStart = responderInst && isStartish(topLevelType); + var isResponderTouchMove = responderInst && isMoveish(topLevelType); + var isResponderTouchEnd = responderInst && isEndish(topLevelType); + var incrementalTouch = isResponderTouchStart ? eventTypes$1.responderStart : isResponderTouchMove ? eventTypes$1.responderMove : isResponderTouchEnd ? eventTypes$1.responderEnd : null; + + if (incrementalTouch) { + var gesture = ResponderSyntheticEvent.getPooled(incrementalTouch, responderInst, nativeEvent, nativeEventTarget); + gesture.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(gesture); + extracted = accumulate(extracted, gesture); + } + + var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL; + var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent); + var finalTouch = isResponderTerminate ? eventTypes$1.responderTerminate : isResponderRelease ? eventTypes$1.responderRelease : null; + + if (finalTouch) { + var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); + finalEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(finalEvent); + extracted = accumulate(extracted, finalEvent); + changeResponder(null); + } + + return extracted; + }, + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + } + }; + var customBubblingEventTypes$1 = ReactNativeViewConfigRegistry.customBubblingEventTypes; + var customDirectEventTypes$1 = ReactNativeViewConfigRegistry.customDirectEventTypes; + var eventTypes$2 = ReactNativeViewConfigRegistry.eventTypes; + var ReactNativeBridgeEventPlugin = { + eventTypes: eventTypes$2, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (targetInst == null) { + return null; + } + + var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType]; + var directDispatchConfig = customDirectEventTypes$1[topLevelType]; + invariant(bubbleDispatchConfig || directDispatchConfig, 'Unsupported top level event type "%s" dispatched', topLevelType); + var event = SyntheticEvent$1.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + + if (bubbleDispatchConfig) { + accumulateTwoPhaseDispatches(event); + } else if (directDispatchConfig) { + accumulateDirectDispatches(event); + } else { + return null; + } + + return event; + } + }; + var ReactNativeEventPluginOrder = ["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]; + injection.injectEventPluginOrder(ReactNativeEventPluginOrder); + injection.injectEventPluginsByName({ + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin + }); + var instanceCache = {}; + var instanceProps = {}; + + function precacheFiberNode(hostInst, tag) { + instanceCache[tag] = hostInst; + } + + function uncacheFiberNode(tag) { + delete instanceCache[tag]; + delete instanceProps[tag]; + } + + function getInstanceFromTag(tag) { + return instanceCache[tag] || null; + } + + function getTagFromInstance(inst) { + var tag = inst.stateNode._nativeTag; + + if (tag === undefined) { + tag = inst.stateNode.canonical._nativeTag; + } + + invariant(tag, "All native instances should have a tag."); + return tag; + } + + function getFiberCurrentPropsFromNode$1(stateNode) { + return instanceProps[stateNode._nativeTag] || null; + } + + function updateFiberProps(tag, props) { + instanceProps[tag] = props; + } + + var ReactNativeComponentTree = Object.freeze({ + precacheFiberNode: precacheFiberNode, + uncacheFiberNode: uncacheFiberNode, + getClosestInstanceFromNode: getInstanceFromTag, + getInstanceFromNode: getInstanceFromTag, + getNodeFromInstance: getTagFromInstance, + getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode$1, + updateFiberProps: updateFiberProps + }); + var fiberHostComponent = null; + var restoreTarget = null; + var restoreQueue = null; + + function restoreStateOfTarget(target) { + var internalInstance = getInstanceFromNode(target); + + if (!internalInstance) { + return; + } + + invariant(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === "function", "Fiber needs to be injected to handle a fiber target for controlled " + "events. This error is likely caused by a bug in React. Please file an issue."); + var props = getFiberCurrentPropsFromNode(internalInstance.stateNode); + fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props); + } + + function needsStateRestore() { + return restoreTarget !== null || restoreQueue !== null; + } + + function restoreStateIfNeeded() { + if (!restoreTarget) { + return; + } + + var target = restoreTarget; + var queuedTargets = restoreQueue; + restoreTarget = null; + restoreQueue = null; + restoreStateOfTarget(target); + + if (queuedTargets) { + for (var i = 0; i < queuedTargets.length; i++) { + restoreStateOfTarget(queuedTargets[i]); + } + } + } + + var _batchedUpdates = function _batchedUpdates(fn, bookkeeping) { + return fn(bookkeeping); + }; + + var _interactiveUpdates = function _interactiveUpdates(fn, a, b) { + return fn(a, b); + }; + + var _flushInteractiveUpdates = function _flushInteractiveUpdates() {}; + + var isBatching = false; + + function batchedUpdates(fn, bookkeeping) { + if (isBatching) { + return fn(bookkeeping); + } + + isBatching = true; + + try { + return _batchedUpdates(fn, bookkeeping); + } finally { + isBatching = false; + var controlledComponentsHavePendingUpdates = needsStateRestore(); + + if (controlledComponentsHavePendingUpdates) { + _flushInteractiveUpdates(); + + restoreStateIfNeeded(); + } + } + } + + var injection$2 = { + injectRenderer: function injectRenderer(renderer) { + _batchedUpdates = renderer.batchedUpdates; + _interactiveUpdates = renderer.interactiveUpdates; + _flushInteractiveUpdates = renderer.flushInteractiveUpdates; + } + }; + var EMPTY_NATIVE_EVENT = {}; + + var touchSubsequence = function touchSubsequence(touches, indices) { + var ret = []; + + for (var i = 0; i < indices.length; i++) { + ret.push(touches[indices[i]]); + } + + return ret; + }; + + var removeTouchesAtIndices = function removeTouchesAtIndices(touches, indices) { + var rippedOut = []; + var temp = touches; + + for (var i = 0; i < indices.length; i++) { + var index = indices[i]; + rippedOut.push(touches[index]); + temp[index] = null; + } + + var fillAt = 0; + + for (var j = 0; j < temp.length; j++) { + var cur = temp[j]; + + if (cur !== null) { + temp[fillAt++] = cur; + } + } + + temp.length = fillAt; + return rippedOut; + }; + + function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { + var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT; + var inst = getInstanceFromTag(rootNodeID); + batchedUpdates(function () { + runExtractedEventsInBatch(topLevelType, inst, nativeEvent, nativeEvent.target); + }); + } + + function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { + _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); + } + + function receiveTouches(eventTopLevelType, touches, changedIndices) { + var changedTouches = eventTopLevelType === "topTouchEnd" || eventTopLevelType === "topTouchCancel" ? removeTouchesAtIndices(touches, changedIndices) : touchSubsequence(touches, changedIndices); + + for (var jj = 0; jj < changedTouches.length; jj++) { + var touch = changedTouches[jj]; + touch.changedTouches = changedTouches; + touch.touches = touches; + var nativeEvent = touch; + var rootNodeID = null; + var target = nativeEvent.target; + + if (target !== null && target !== undefined) { + if (target < 1) { + { + warning(false, "A view is reporting that a touch occurred on tag zero."); + } + } else { + rootNodeID = target; + } + } + + _receiveRootNodeIDEvent(rootNodeID, eventTopLevelType, nativeEvent); + } + } + + var ReactNativeEventEmitter = Object.freeze({ + getListener: getListener, + registrationNames: registrationNameModules, + _receiveRootNodeIDEvent: _receiveRootNodeIDEvent, + receiveEvent: receiveEvent, + receiveTouches: receiveTouches + }); + var ReactNativeGlobalResponderHandler = { + onChange: function onChange(from, to, blockNativeResponder) { + if (to !== null) { + var tag = to.stateNode._nativeTag; + UIManager.setJSResponder(tag, blockNativeResponder); + } else { + UIManager.clearJSResponder(); + } + } + }; + RCTEventEmitter.register(ReactNativeEventEmitter); + injection$1.injectComponentTree(ReactNativeComponentTree); + ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactNativeGlobalResponderHandler); + + function get$1(key) { + return key._reactInternalFiber; + } + + function set(key, value) { + key._reactInternalFiber = value; + } + + var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var ReactCurrentOwner = ReactInternals.ReactCurrentOwner; + var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame; + var hasSymbol = typeof Symbol === "function" && (typeof Symbol === "function" ? Symbol.for : "@@for"); + var REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 0xeac7; + var REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 0xeaca; + var REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 0xeacb; + var REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 0xeacc; + var REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 0xead2; + var REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 0xeacd; + var REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 0xeace; + var REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 0xeacf; + var REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 0xead0; + var REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout") : 0xead1; + var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable === "undefined") { + return null; + } + + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + + if (typeof maybeIterator === "function") { + return maybeIterator; + } + + return null; + } + + function getComponentName(fiber) { + var type = fiber.type; + + if (typeof type === "function") { + return type.displayName || type.name; + } + + if (typeof type === "string") { + return type; + } + + switch (type) { + case REACT_ASYNC_MODE_TYPE: + return "AsyncMode"; + + case REACT_CONTEXT_TYPE: + return "Context.Consumer"; + + case REACT_FRAGMENT_TYPE: + return "ReactFragment"; + + case REACT_PORTAL_TYPE: + return "ReactPortal"; + + case REACT_PROFILER_TYPE: + return "Profiler(" + fiber.pendingProps.id + ")"; + + case REACT_PROVIDER_TYPE: + return "Context.Provider"; + + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + + case REACT_TIMEOUT_TYPE: + return "Timeout"; + } + + if (typeof type === "object" && type !== null) { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + var functionName = type.render.displayName || type.render.name || ""; + return functionName !== "" ? "ForwardRef(" + functionName + ")" : "ForwardRef"; + } + } + + return null; + } + + var NoEffect = 0; + var PerformedWork = 1; + var Placement = 2; + var Update = 4; + var PlacementAndUpdate = 6; + var Deletion = 8; + var ContentReset = 16; + var Callback = 32; + var DidCapture = 64; + var Ref = 128; + var Snapshot = 256; + var HostEffectMask = 511; + var Incomplete = 512; + var ShouldCapture = 1024; + var MOUNTING = 1; + var MOUNTED = 2; + var UNMOUNTED = 3; + + function isFiberMountedImpl(fiber) { + var node = fiber; + + if (!fiber.alternate) { + if ((node.effectTag & Placement) !== NoEffect) { + return MOUNTING; + } + + while (node.return) { + node = node.return; + + if ((node.effectTag & Placement) !== NoEffect) { + return MOUNTING; + } + } + } else { + while (node.return) { + node = node.return; + } + } + + if (node.tag === HostRoot) { + return MOUNTED; + } + + return UNMOUNTED; + } + + function isFiberMounted(fiber) { + return isFiberMountedImpl(fiber) === MOUNTED; + } + + function isMounted(component) { + { + var owner = ReactCurrentOwner.current; + + if (owner !== null && owner.tag === ClassComponent) { + var ownerFiber = owner; + var instance = ownerFiber.stateNode; + !instance._warnedAboutRefsInRender ? warning(false, "%s is accessing isMounted inside its render() function. " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentName(ownerFiber) || "A component") : void 0; + instance._warnedAboutRefsInRender = true; + } + } + var fiber = get$1(component); + + if (!fiber) { + return false; + } + + return isFiberMountedImpl(fiber) === MOUNTED; + } + + function assertIsMounted(fiber) { + invariant(isFiberMountedImpl(fiber) === MOUNTED, "Unable to find node on an unmounted component."); + } + + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + + if (!alternate) { + var state = isFiberMountedImpl(fiber); + invariant(state !== UNMOUNTED, "Unable to find node on an unmounted component."); + + if (state === MOUNTING) { + return null; + } + + return fiber; + } + + var a = fiber; + var b = alternate; + + while (true) { + var parentA = a.return; + var parentB = parentA ? parentA.alternate : null; + + if (!parentA || !parentB) { + break; + } + + if (parentA.child === parentB.child) { + var child = parentA.child; + + while (child) { + if (child === a) { + assertIsMounted(parentA); + return fiber; + } + + if (child === b) { + assertIsMounted(parentA); + return alternate; + } + + child = child.sibling; + } + + invariant(false, "Unable to find node on an unmounted component."); + } + + if (a.return !== b.return) { + a = parentA; + b = parentB; + } else { + var didFindChild = false; + var _child = parentA.child; + + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentA; + b = parentB; + break; + } + + if (_child === b) { + didFindChild = true; + b = parentA; + a = parentB; + break; + } + + _child = _child.sibling; + } + + if (!didFindChild) { + _child = parentB.child; + + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentB; + b = parentA; + break; + } + + if (_child === b) { + didFindChild = true; + b = parentB; + a = parentA; + break; + } + + _child = _child.sibling; + } + + invariant(didFindChild, "Child was not found in either parent set. This indicates a bug " + "in React related to the return pointer. Please file an issue."); + } + } + + invariant(a.alternate === b, "Return fibers should always be each others' alternates. " + "This error is likely caused by a bug in React. Please file an issue."); + } + + invariant(a.tag === HostRoot, "Unable to find node on an unmounted component."); + + if (a.stateNode.current === a) { + return fiber; + } + + return alternate; + } + + function findCurrentHostFiber(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + + if (!currentParent) { + return null; + } + + var node = currentParent; + + while (true) { + if (node.tag === HostComponent || node.tag === HostText) { + return node; + } else if (node.child) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === currentParent) { + return null; + } + + while (!node.sibling) { + if (!node.return || node.return === currentParent) { + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + + return null; + } + + function findCurrentHostFiberWithNoPortals(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + + if (!currentParent) { + return null; + } + + var node = currentParent; + + while (true) { + if (node.tag === HostComponent || node.tag === HostText) { + return node; + } else if (node.child && node.tag !== HostPortal) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === currentParent) { + return null; + } + + while (!node.sibling) { + if (!node.return || node.return === currentParent) { + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + + return null; + } + + var emptyObject$1 = {}; + var removedKeys = null; + var removedKeyCount = 0; + + function defaultDiffer(prevProp, nextProp) { + if (typeof nextProp !== "object" || nextProp === null) { + return true; + } else { + return deepDiffer(prevProp, nextProp); + } + } + + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (Array.isArray(node)) { + var i = node.length; + + while (i-- && removedKeyCount > 0) { + restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); + } + } else if (node && removedKeyCount > 0) { + var obj = node; + + for (var propKey in removedKeys) { + if (!removedKeys[propKey]) { + continue; + } + + var _nextProp = obj[propKey]; + + if (_nextProp === undefined) { + continue; + } + + var attributeConfig = validAttributes[propKey]; + + if (!attributeConfig) { + continue; + } + + if (typeof _nextProp === "function") { + _nextProp = true; + } + + if (typeof _nextProp === "undefined") { + _nextProp = null; + } + + if (typeof attributeConfig !== "object") { + updatePayload[propKey] = _nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(_nextProp) : _nextProp; + updatePayload[propKey] = nextValue; + } + + removedKeys[propKey] = false; + removedKeyCount--; + } + } + } + + function diffNestedArrayProperty(updatePayload, prevArray, nextArray, validAttributes) { + var minLength = prevArray.length < nextArray.length ? prevArray.length : nextArray.length; + var i = void 0; + + for (i = 0; i < minLength; i++) { + updatePayload = diffNestedProperty(updatePayload, prevArray[i], nextArray[i], validAttributes); + } + + for (; i < prevArray.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevArray[i], validAttributes); + } + + for (; i < nextArray.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextArray[i], validAttributes); + } + + return updatePayload; + } + + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) { + return updatePayload; + } + + if (!prevProp || !nextProp) { + if (nextProp) { + return addNestedProperty(updatePayload, nextProp, validAttributes); + } + + if (prevProp) { + return clearNestedProperty(updatePayload, prevProp, validAttributes); + } + + return updatePayload; + } + + if (!Array.isArray(prevProp) && !Array.isArray(nextProp)) { + return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + } + + if (Array.isArray(prevProp) && Array.isArray(nextProp)) { + return diffNestedArrayProperty(updatePayload, prevProp, nextProp, validAttributes); + } + + if (Array.isArray(prevProp)) { + return diffProperties(updatePayload, flattenStyle(prevProp), nextProp, validAttributes); + } + + return diffProperties(updatePayload, prevProp, flattenStyle(nextProp), validAttributes); + } + + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) { + return updatePayload; + } + + if (!Array.isArray(nextProp)) { + return addProperties(updatePayload, nextProp, validAttributes); + } + + for (var i = 0; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + + return updatePayload; + } + + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) { + return updatePayload; + } + + if (!Array.isArray(prevProp)) { + return clearProperties(updatePayload, prevProp, validAttributes); + } + + for (var i = 0; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + + return updatePayload; + } + + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig = void 0; + var nextProp = void 0; + var prevProp = void 0; + + for (var propKey in nextProps) { + attributeConfig = validAttributes[propKey]; + + if (!attributeConfig) { + continue; + } + + prevProp = prevProps[propKey]; + nextProp = nextProps[propKey]; + + if (typeof nextProp === "function") { + nextProp = true; + + if (typeof prevProp === "function") { + prevProp = true; + } + } + + if (typeof nextProp === "undefined") { + nextProp = null; + + if (typeof prevProp === "undefined") { + prevProp = null; + } + } + + if (removedKeys) { + removedKeys[propKey] = false; + } + + if (updatePayload && updatePayload[propKey] !== undefined) { + if (typeof attributeConfig !== "object") { + updatePayload[propKey] = nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + updatePayload[propKey] = nextValue; + } + + continue; + } + + if (prevProp === nextProp) { + continue; + } + + if (typeof attributeConfig !== "object") { + if (defaultDiffer(prevProp, nextProp)) { + (updatePayload || (updatePayload = {}))[propKey] = nextProp; + } + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var shouldUpdate = prevProp === undefined || (typeof attributeConfig.diff === "function" ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp)); + + if (shouldUpdate) { + var _nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + + (updatePayload || (updatePayload = {}))[propKey] = _nextValue; + } + } else { + removedKeys = null; + removedKeyCount = 0; + updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig); + + if (removedKeyCount > 0 && updatePayload) { + restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig); + removedKeys = null; + } + } + } + + for (var _propKey in prevProps) { + if (nextProps[_propKey] !== undefined) { + continue; + } + + attributeConfig = validAttributes[_propKey]; + + if (!attributeConfig) { + continue; + } + + if (updatePayload && updatePayload[_propKey] !== undefined) { + continue; + } + + prevProp = prevProps[_propKey]; + + if (prevProp === undefined) { + continue; + } + + if (typeof attributeConfig !== "object" || typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + (updatePayload || (updatePayload = {}))[_propKey] = null; + + if (!removedKeys) { + removedKeys = {}; + } + + if (!removedKeys[_propKey]) { + removedKeys[_propKey] = true; + removedKeyCount++; + } + } else { + updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig); + } + } + + return updatePayload; + } + + function addProperties(updatePayload, props, validAttributes) { + return diffProperties(updatePayload, emptyObject$1, props, validAttributes); + } + + function clearProperties(updatePayload, prevProps, validAttributes) { + return diffProperties(updatePayload, prevProps, emptyObject$1, validAttributes); + } + + function create(props, validAttributes) { + return addProperties(null, props, validAttributes); + } + + function diff(prevProps, nextProps, validAttributes) { + return diffProperties(null, prevProps, nextProps, validAttributes); + } + + function mountSafeCallback(context, callback) { + return function () { + if (!callback) { + return undefined; + } + + if (typeof context.__isMounted === "boolean") { + if (!context.__isMounted) { + return undefined; + } + } else if (typeof context.isMounted === "function") { + if (!context.isMounted()) { + return undefined; + } + } + + return callback.apply(context, arguments); + }; + } + + function throwOnStylesProp(component, props) { + if (props.styles !== undefined) { + var owner = component._owner || null; + var name = component.constructor.displayName; + var msg = "`styles` is not a supported property of `" + name + "`, did " + "you mean `style` (singular)?"; + + if (owner && owner.constructor && owner.constructor.displayName) { + msg += "\n\nCheck the `" + owner.constructor.displayName + "` parent " + " component."; + } + + throw new Error(msg); + } + } + + function warnForStyleProps(props, validAttributes) { + for (var key in validAttributes.style) { + if (!(validAttributes[key] || props[key] === undefined)) { + console.error("You are setting the style `{ " + key + ": ... }` as a prop. You " + "should nest it in a style object. " + "E.g. `{ style: { " + key + ": ... } }`"); + } + } + } + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + + var ReactNativeFiberHostComponent = function () { + function ReactNativeFiberHostComponent(tag, viewConfig) { + _classCallCheck(this, ReactNativeFiberHostComponent); + + this._nativeTag = tag; + this._children = []; + this.viewConfig = viewConfig; + } + + ReactNativeFiberHostComponent.prototype.blur = function blur() { + TextInputState.blurTextInput(this._nativeTag); + }; + + ReactNativeFiberHostComponent.prototype.focus = function focus() { + TextInputState.focusTextInput(this._nativeTag); + }; + + ReactNativeFiberHostComponent.prototype.measure = function measure(callback) { + UIManager.measure(this._nativeTag, mountSafeCallback(this, callback)); + }; + + ReactNativeFiberHostComponent.prototype.measureInWindow = function measureInWindow(callback) { + UIManager.measureInWindow(this._nativeTag, mountSafeCallback(this, callback)); + }; + + ReactNativeFiberHostComponent.prototype.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(this._nativeTag, relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }; + + ReactNativeFiberHostComponent.prototype.setNativeProps = function setNativeProps(nativeProps) { + { + warnForStyleProps(nativeProps, this.viewConfig.validAttributes); + } + var updatePayload = create(nativeProps, this.viewConfig.validAttributes); + + if (updatePayload != null) { + UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, updatePayload); + } + }; + + return ReactNativeFiberHostComponent; + }(); + + var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function"; + var now$1 = hasNativePerformanceNow ? function () { + return performance.now(); + } : function () { + return Date.now(); + }; + var scheduledCallback = null; + var frameDeadline = 0; + var frameDeadlineObject = { + timeRemaining: function timeRemaining() { + return frameDeadline - now$1(); + }, + didTimeout: false + }; + + function setTimeoutCallback() { + frameDeadline = now$1() + 5; + var callback = scheduledCallback; + scheduledCallback = null; + + if (callback !== null) { + callback(frameDeadlineObject); + } + } + + function scheduleDeferredCallback$1(callback, options) { + scheduledCallback = callback; + var timeoutId = setTimeout(setTimeoutCallback, 1); + return timeoutId; + } + + function cancelDeferredCallback$1(callbackID) { + scheduledCallback = null; + clearTimeout(callbackID); + } + + function shim() { + invariant(false, "The current renderer does not support persistence. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } + + var supportsPersistence = false; + var cloneInstance = shim; + var createContainerChildSet = shim; + var appendChildToContainerChildSet = shim; + var finalizeContainerChildren = shim; + var replaceContainerChildren = shim; + + function shim$1() { + invariant(false, "The current renderer does not support hyration. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } + + var supportsHydration = false; + var canHydrateInstance = shim$1; + var canHydrateTextInstance = shim$1; + var getNextHydratableSibling = shim$1; + var getFirstHydratableChild = shim$1; + var hydrateInstance = shim$1; + var hydrateTextInstance = shim$1; + var didNotMatchHydratedContainerTextInstance = shim$1; + var didNotMatchHydratedTextInstance = shim$1; + var didNotHydrateContainerInstance = shim$1; + var didNotHydrateInstance = shim$1; + var didNotFindHydratableContainerInstance = shim$1; + var didNotFindHydratableContainerTextInstance = shim$1; + var didNotFindHydratableInstance = shim$1; + var didNotFindHydratableTextInstance = shim$1; + var nextReactTag = 3; + + function allocateTag() { + var tag = nextReactTag; + + if (tag % 10 === 1) { + tag += 2; + } + + nextReactTag = tag + 2; + return tag; + } + + function recursivelyUncacheFiberNode(node) { + if (typeof node === "number") { + uncacheFiberNode(node); + } else { + uncacheFiberNode(node._nativeTag); + + node._children.forEach(recursivelyUncacheFiberNode); + } + } + + function appendInitialChild(parentInstance, child) { + parentInstance._children.push(child); + } + + function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { + var tag = allocateTag(); + var viewConfig = ReactNativeViewConfigRegistry.get(type); + { + for (var key in viewConfig.validAttributes) { + if (props.hasOwnProperty(key)) { + deepFreezeAndThrowOnMutationInDev(props[key]); + } + } + } + invariant(type !== "RCTView" || !hostContext.isInAParentText, "Nesting of within is not currently supported."); + var updatePayload = create(props, viewConfig.validAttributes); + UIManager.createView(tag, viewConfig.uiViewClassName, rootContainerInstance, updatePayload); + var component = new ReactNativeFiberHostComponent(tag, viewConfig); + precacheFiberNode(internalInstanceHandle, tag); + updateFiberProps(tag, props); + return component; + } + + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + invariant(hostContext.isInAParentText, "Text strings must be rendered within a component."); + var tag = allocateTag(); + UIManager.createView(tag, "RCTRawText", rootContainerInstance, { + text: text + }); + precacheFiberNode(internalInstanceHandle, tag); + return tag; + } + + function finalizeInitialChildren(parentInstance, type, props, rootContainerInstance, hostContext) { + if (parentInstance._children.length === 0) { + return false; + } + + var nativeTags = parentInstance._children.map(function (child) { + return typeof child === "number" ? child : child._nativeTag; + }); + + UIManager.setChildren(parentInstance._nativeTag, nativeTags); + return false; + } + + function getRootHostContext(rootContainerInstance) { + return { + isInAParentText: false + }; + } + + function getChildHostContext(parentHostContext, type, rootContainerInstance) { + var prevIsInAParentText = parentHostContext.isInAParentText; + var isInAParentText = type === "AndroidTextInput" || type === "RCTMultilineTextInputView" || type === "RCTSinglelineTextInputView" || type === "RCTText" || type === "RCTVirtualText"; + + if (prevIsInAParentText !== isInAParentText) { + return { + isInAParentText: isInAParentText + }; + } else { + return parentHostContext; + } + } + + function getPublicInstance(instance) { + return instance; + } + + function prepareForCommit(containerInfo) {} + + function prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, hostContext) { + return emptyObject; + } + + function resetAfterCommit(containerInfo) {} + + var now = now$1; + var isPrimaryRenderer = true; + var scheduleDeferredCallback = scheduleDeferredCallback$1; + var cancelDeferredCallback = cancelDeferredCallback$1; + + function shouldDeprioritizeSubtree(type, props) { + return false; + } + + function shouldSetTextContent(type, props) { + return false; + } + + var supportsMutation = true; + + function appendChild(parentInstance, child) { + var childTag = typeof child === "number" ? child : child._nativeTag; + var children = parentInstance._children; + var index = children.indexOf(child); + + if (index >= 0) { + children.splice(index, 1); + children.push(child); + UIManager.manageChildren(parentInstance._nativeTag, [index], [children.length - 1], [], [], []); + } else { + children.push(child); + UIManager.manageChildren(parentInstance._nativeTag, [], [], [childTag], [children.length - 1], []); + } + } + + function appendChildToContainer(parentInstance, child) { + var childTag = typeof child === "number" ? child : child._nativeTag; + UIManager.setChildren(parentInstance, [childTag]); + } + + function commitTextUpdate(textInstance, oldText, newText) { + UIManager.updateView(textInstance, "RCTRawText", { + text: newText + }); + } + + function commitUpdate(instance, updatePayloadTODO, type, oldProps, newProps, internalInstanceHandle) { + var viewConfig = instance.viewConfig; + updateFiberProps(instance._nativeTag, newProps); + var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); + + if (updatePayload != null) { + UIManager.updateView(instance._nativeTag, viewConfig.uiViewClassName, updatePayload); + } + } + + function insertBefore(parentInstance, child, beforeChild) { + var children = parentInstance._children; + var index = children.indexOf(child); + + if (index >= 0) { + children.splice(index, 1); + var beforeChildIndex = children.indexOf(beforeChild); + children.splice(beforeChildIndex, 0, child); + UIManager.manageChildren(parentInstance._nativeTag, [index], [beforeChildIndex], [], [], []); + } else { + var _beforeChildIndex = children.indexOf(beforeChild); + + children.splice(_beforeChildIndex, 0, child); + var childTag = typeof child === "number" ? child : child._nativeTag; + UIManager.manageChildren(parentInstance._nativeTag, [], [], [childTag], [_beforeChildIndex], []); + } + } + + function insertInContainerBefore(parentInstance, child, beforeChild) { + invariant(typeof parentInstance !== "number", "Container does not support insertBefore operation"); + } + + function removeChild(parentInstance, child) { + recursivelyUncacheFiberNode(child); + var children = parentInstance._children; + var index = children.indexOf(child); + children.splice(index, 1); + UIManager.manageChildren(parentInstance._nativeTag, [], [], [], [], [index]); + } + + function removeChildFromContainer(parentInstance, child) { + recursivelyUncacheFiberNode(child); + UIManager.manageChildren(parentInstance, [], [], [], [], [0]); + } + + function resetTextContent(instance) {} + + var describeComponentFrame = function describeComponentFrame(name, source, ownerName) { + return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); + }; + + function describeFiber(fiber) { + switch (fiber.tag) { + case IndeterminateComponent: + case FunctionalComponent: + case ClassComponent: + case HostComponent: + var owner = fiber._debugOwner; + var source = fiber._debugSource; + var name = getComponentName(fiber); + var ownerName = null; + + if (owner) { + ownerName = getComponentName(owner); + } + + return describeComponentFrame(name, source, ownerName); + + default: + return ""; + } + } + + function getStackAddendumByWorkInProgressFiber(workInProgress) { + var info = ""; + var node = workInProgress; + + do { + info += describeFiber(node); + node = node.return; + } while (node); + + return info; + } + + function getCurrentFiberOwnerName() { + { + var fiber = ReactDebugCurrentFiber.current; + + if (fiber === null) { + return null; + } + + var owner = fiber._debugOwner; + + if (owner !== null && typeof owner !== "undefined") { + return getComponentName(owner); + } + } + return null; + } + + function getCurrentFiberStackAddendum() { + { + var fiber = ReactDebugCurrentFiber.current; + + if (fiber === null) { + return null; + } + + return getStackAddendumByWorkInProgressFiber(fiber); + } + return null; + } + + function resetCurrentFiber() { + ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFiber.current = null; + ReactDebugCurrentFiber.phase = null; + } + + function setCurrentFiber(fiber) { + ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackAddendum; + ReactDebugCurrentFiber.current = fiber; + ReactDebugCurrentFiber.phase = null; + } + + function setCurrentPhase(phase) { + ReactDebugCurrentFiber.phase = phase; + } + + var ReactDebugCurrentFiber = { + current: null, + phase: null, + resetCurrentFiber: resetCurrentFiber, + setCurrentFiber: setCurrentFiber, + setCurrentPhase: setCurrentPhase, + getCurrentFiberOwnerName: getCurrentFiberOwnerName, + getCurrentFiberStackAddendum: getCurrentFiberStackAddendum + }; + var debugRenderPhaseSideEffects = false; + var debugRenderPhaseSideEffectsForStrictMode = false; + var enableGetDerivedStateFromCatch = false; + var enableSuspense = false; + var enableUserTimingAPI = true; + var replayFailedUnitOfWorkWithInvokeGuardedCallback = true; + var warnAboutDeprecatedLifecycles = false; + var warnAboutLegacyContextAPI = false; + var enableProfilerTimer = true; + var reactEmoji = "\u269B"; + var warningEmoji = "\u26D4"; + var supportsUserTiming = typeof performance !== "undefined" && typeof performance.mark === "function" && typeof performance.clearMarks === "function" && typeof performance.measure === "function" && typeof performance.clearMeasures === "function"; + var currentFiber = null; + var currentPhase = null; + var currentPhaseFiber = null; + var isCommitting = false; + var hasScheduledUpdateInCurrentCommit = false; + var hasScheduledUpdateInCurrentPhase = false; + var commitCountInCurrentWorkLoop = 0; + var effectCountInCurrentCommit = 0; + var isWaitingForCallback = false; + var labelsInCurrentCommit = new Set(); + + var formatMarkName = function formatMarkName(markName) { + return reactEmoji + " " + markName; + }; + + var formatLabel = function formatLabel(label, warning$$1) { + var prefix = warning$$1 ? warningEmoji + " " : reactEmoji + " "; + var suffix = warning$$1 ? " Warning: " + warning$$1 : ""; + return "" + prefix + label + suffix; + }; + + var beginMark = function beginMark(markName) { + performance.mark(formatMarkName(markName)); + }; + + var clearMark = function clearMark(markName) { + performance.clearMarks(formatMarkName(markName)); + }; + + var endMark = function endMark(label, markName, warning$$1) { + var formattedMarkName = formatMarkName(markName); + var formattedLabel = formatLabel(label, warning$$1); + + try { + performance.measure(formattedLabel, formattedMarkName); + } catch (err) {} + + performance.clearMarks(formattedMarkName); + performance.clearMeasures(formattedLabel); + }; + + var getFiberMarkName = function getFiberMarkName(label, debugID) { + return label + " (#" + debugID + ")"; + }; + + var getFiberLabel = function getFiberLabel(componentName, isMounted, phase) { + if (phase === null) { + return componentName + " [" + (isMounted ? "update" : "mount") + "]"; + } else { + return componentName + "." + phase; + } + }; + + var beginFiberMark = function beginFiberMark(fiber, phase) { + var componentName = getComponentName(fiber) || "Unknown"; + var debugID = fiber._debugID; + var isMounted = fiber.alternate !== null; + var label = getFiberLabel(componentName, isMounted, phase); + + if (isCommitting && labelsInCurrentCommit.has(label)) { + return false; + } + + labelsInCurrentCommit.add(label); + var markName = getFiberMarkName(label, debugID); + beginMark(markName); + return true; + }; + + var clearFiberMark = function clearFiberMark(fiber, phase) { + var componentName = getComponentName(fiber) || "Unknown"; + var debugID = fiber._debugID; + var isMounted = fiber.alternate !== null; + var label = getFiberLabel(componentName, isMounted, phase); + var markName = getFiberMarkName(label, debugID); + clearMark(markName); + }; + + var endFiberMark = function endFiberMark(fiber, phase, warning$$1) { + var componentName = getComponentName(fiber) || "Unknown"; + var debugID = fiber._debugID; + var isMounted = fiber.alternate !== null; + var label = getFiberLabel(componentName, isMounted, phase); + var markName = getFiberMarkName(label, debugID); + endMark(label, markName, warning$$1); + }; + + var shouldIgnoreFiber = function shouldIgnoreFiber(fiber) { + switch (fiber.tag) { + case HostRoot: + case HostComponent: + case HostText: + case HostPortal: + case Fragment: + case ContextProvider: + case ContextConsumer: + case Mode: + return true; + + default: + return false; + } + }; + + var clearPendingPhaseMeasurement = function clearPendingPhaseMeasurement() { + if (currentPhase !== null && currentPhaseFiber !== null) { + clearFiberMark(currentPhaseFiber, currentPhase); + } + + currentPhaseFiber = null; + currentPhase = null; + hasScheduledUpdateInCurrentPhase = false; + }; + + var pauseTimers = function pauseTimers() { + var fiber = currentFiber; + + while (fiber) { + if (fiber._debugIsCurrentlyTiming) { + endFiberMark(fiber, null, null); + } + + fiber = fiber.return; + } + }; + + var resumeTimersRecursively = function resumeTimersRecursively(fiber) { + if (fiber.return !== null) { + resumeTimersRecursively(fiber.return); + } + + if (fiber._debugIsCurrentlyTiming) { + beginFiberMark(fiber, null); + } + }; + + var resumeTimers = function resumeTimers() { + if (currentFiber !== null) { + resumeTimersRecursively(currentFiber); + } + }; + + function recordEffect() { + if (enableUserTimingAPI) { + effectCountInCurrentCommit++; + } + } + + function recordScheduleUpdate() { + if (enableUserTimingAPI) { + if (isCommitting) { + hasScheduledUpdateInCurrentCommit = true; + } + + if (currentPhase !== null && currentPhase !== "componentWillMount" && currentPhase !== "componentWillReceiveProps") { + hasScheduledUpdateInCurrentPhase = true; + } + } + } + + function startRequestCallbackTimer() { + if (enableUserTimingAPI) { + if (supportsUserTiming && !isWaitingForCallback) { + isWaitingForCallback = true; + beginMark("(Waiting for async callback...)"); + } + } + } + + function stopRequestCallbackTimer(didExpire, expirationTime) { + if (enableUserTimingAPI) { + if (supportsUserTiming) { + isWaitingForCallback = false; + var warning$$1 = didExpire ? "React was blocked by main thread" : null; + endMark("(Waiting for async callback... will force flush in " + expirationTime + " ms)", "(Waiting for async callback...)", warning$$1); + } + } + } + + function startWorkTimer(fiber) { + if (enableUserTimingAPI) { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } + + currentFiber = fiber; + + if (!beginFiberMark(fiber, null)) { + return; + } + + fiber._debugIsCurrentlyTiming = true; + } + } + + function cancelWorkTimer(fiber) { + if (enableUserTimingAPI) { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } + + fiber._debugIsCurrentlyTiming = false; + clearFiberMark(fiber, null); + } + } + + function stopWorkTimer(fiber) { + if (enableUserTimingAPI) { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } + + currentFiber = fiber.return; + + if (!fiber._debugIsCurrentlyTiming) { + return; + } + + fiber._debugIsCurrentlyTiming = false; + endFiberMark(fiber, null, null); + } + } + + function stopFailedWorkTimer(fiber) { + if (enableUserTimingAPI) { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } + + currentFiber = fiber.return; + + if (!fiber._debugIsCurrentlyTiming) { + return; + } + + fiber._debugIsCurrentlyTiming = false; + var warning$$1 = "An error was thrown inside this error boundary"; + endFiberMark(fiber, null, warning$$1); + } + } + + function startPhaseTimer(fiber, phase) { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + clearPendingPhaseMeasurement(); + + if (!beginFiberMark(fiber, phase)) { + return; + } + + currentPhaseFiber = fiber; + currentPhase = phase; + } + } + + function stopPhaseTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + if (currentPhase !== null && currentPhaseFiber !== null) { + var warning$$1 = hasScheduledUpdateInCurrentPhase ? "Scheduled a cascading update" : null; + endFiberMark(currentPhaseFiber, currentPhase, warning$$1); + } + + currentPhase = null; + currentPhaseFiber = null; + } + } + + function startWorkLoopTimer(nextUnitOfWork) { + if (enableUserTimingAPI) { + currentFiber = nextUnitOfWork; + + if (!supportsUserTiming) { + return; + } + + commitCountInCurrentWorkLoop = 0; + beginMark("(React Tree Reconciliation)"); + resumeTimers(); + } + } + + function stopWorkLoopTimer(interruptedBy, didCompleteRoot) { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var warning$$1 = null; + + if (interruptedBy !== null) { + if (interruptedBy.tag === HostRoot) { + warning$$1 = "A top-level update interrupted the previous render"; + } else { + var componentName = getComponentName(interruptedBy) || "Unknown"; + warning$$1 = "An update to " + componentName + " interrupted the previous render"; + } + } else if (commitCountInCurrentWorkLoop > 1) { + warning$$1 = "There were cascading updates"; + } + + commitCountInCurrentWorkLoop = 0; + var label = didCompleteRoot ? "(React Tree Reconciliation: Completed Root)" : "(React Tree Reconciliation: Yielded)"; + pauseTimers(); + endMark(label, "(React Tree Reconciliation)", warning$$1); + } + } + + function startCommitTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + isCommitting = true; + hasScheduledUpdateInCurrentCommit = false; + labelsInCurrentCommit.clear(); + beginMark("(Committing Changes)"); + } + } + + function stopCommitTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var warning$$1 = null; + + if (hasScheduledUpdateInCurrentCommit) { + warning$$1 = "Lifecycle hook scheduled a cascading update"; + } else if (commitCountInCurrentWorkLoop > 0) { + warning$$1 = "Caused by a cascading update in earlier commit"; + } + + hasScheduledUpdateInCurrentCommit = false; + commitCountInCurrentWorkLoop++; + isCommitting = false; + labelsInCurrentCommit.clear(); + endMark("(Committing Changes)", "(Committing Changes)", warning$$1); + } + } + + function startCommitSnapshotEffectsTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + effectCountInCurrentCommit = 0; + beginMark("(Committing Snapshot Effects)"); + } + } + + function stopCommitSnapshotEffectsTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var count = effectCountInCurrentCommit; + effectCountInCurrentCommit = 0; + endMark("(Committing Snapshot Effects: " + count + " Total)", "(Committing Snapshot Effects)", null); + } + } + + function startCommitHostEffectsTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + effectCountInCurrentCommit = 0; + beginMark("(Committing Host Effects)"); + } + } + + function stopCommitHostEffectsTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var count = effectCountInCurrentCommit; + effectCountInCurrentCommit = 0; + endMark("(Committing Host Effects: " + count + " Total)", "(Committing Host Effects)", null); + } + } + + function startCommitLifeCyclesTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + effectCountInCurrentCommit = 0; + beginMark("(Calling Lifecycle Methods)"); + } + } + + function stopCommitLifeCyclesTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var count = effectCountInCurrentCommit; + effectCountInCurrentCommit = 0; + endMark("(Calling Lifecycle Methods: " + count + " Total)", "(Calling Lifecycle Methods)", null); + } + } + + var valueStack = []; + var fiberStack = void 0; + { + fiberStack = []; + } + var index = -1; + + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + + function pop(cursor, fiber) { + if (index < 0) { + { + warning(false, "Unexpected pop."); + } + return; + } + + { + if (fiber !== fiberStack[index]) { + warning(false, "Unexpected Fiber popped."); + } + } + cursor.current = valueStack[index]; + valueStack[index] = null; + { + fiberStack[index] = null; + } + index--; + } + + function push(cursor, value, fiber) { + index++; + valueStack[index] = cursor.current; + { + fiberStack[index] = fiber; + } + cursor.current = value; + } + + function checkThatStackIsEmpty() { + { + if (index !== -1) { + warning(false, "Expected an empty stack. Something was not reset properly."); + } + } + } + + function resetStackAfterFatalErrorInDev() { + { + index = -1; + valueStack.length = 0; + fiberStack.length = 0; + } + } + + var warnedAboutMissingGetChildContext = void 0; + { + warnedAboutMissingGetChildContext = {}; + } + var contextStackCursor = createCursor(emptyObject); + var didPerformWorkStackCursor = createCursor(false); + var previousContext = emptyObject; + + function getUnmaskedContext(workInProgress) { + var hasOwnContext = isContextProvider(workInProgress); + + if (hasOwnContext) { + return previousContext; + } + + return contextStackCursor.current; + } + + function cacheContext(workInProgress, unmaskedContext, maskedContext) { + var instance = workInProgress.stateNode; + instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; + instance.__reactInternalMemoizedMaskedChildContext = maskedContext; + } + + function getMaskedContext(workInProgress, unmaskedContext) { + var type = workInProgress.type; + var contextTypes = type.contextTypes; + + if (!contextTypes) { + return emptyObject; + } + + var instance = workInProgress.stateNode; + + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { + return instance.__reactInternalMemoizedMaskedChildContext; + } + + var context = {}; + + for (var key in contextTypes) { + context[key] = unmaskedContext[key]; + } + + { + var name = getComponentName(workInProgress) || "Unknown"; + checkPropTypes(contextTypes, context, "context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum); + } + + if (instance) { + cacheContext(workInProgress, unmaskedContext, context); + } + + return context; + } + + function hasContextChanged() { + return didPerformWorkStackCursor.current; + } + + function isContextConsumer(fiber) { + return fiber.tag === ClassComponent && fiber.type.contextTypes != null; + } + + function isContextProvider(fiber) { + return fiber.tag === ClassComponent && fiber.type.childContextTypes != null; + } + + function popContextProvider(fiber) { + if (!isContextProvider(fiber)) { + return; + } + + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + + function popTopLevelContextObject(fiber) { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + + function pushTopLevelContextObject(fiber, context, didChange) { + invariant(contextStackCursor.current === emptyObject, "Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue."); + push(contextStackCursor, context, fiber); + push(didPerformWorkStackCursor, didChange, fiber); + } + + function processChildContext(fiber, parentContext) { + var instance = fiber.stateNode; + var childContextTypes = fiber.type.childContextTypes; + + if (typeof instance.getChildContext !== "function") { + { + var componentName = getComponentName(fiber) || "Unknown"; + + if (!warnedAboutMissingGetChildContext[componentName]) { + warnedAboutMissingGetChildContext[componentName] = true; + warning(false, "%s.childContextTypes is specified but there is no getChildContext() method " + "on the instance. You can either define getChildContext() on %s or remove " + "childContextTypes from it.", componentName, componentName); + } + } + return parentContext; + } + + var childContext = void 0; + { + ReactDebugCurrentFiber.setCurrentPhase("getChildContext"); + } + startPhaseTimer(fiber, "getChildContext"); + childContext = instance.getChildContext(); + stopPhaseTimer(); + { + ReactDebugCurrentFiber.setCurrentPhase(null); + } + + for (var contextKey in childContext) { + invariant(contextKey in childContextTypes, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); + } + + { + var name = getComponentName(fiber) || "Unknown"; + checkPropTypes(childContextTypes, childContext, "child context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum); + } + return _extends({}, parentContext, childContext); + } + + function pushContextProvider(workInProgress) { + if (!isContextProvider(workInProgress)) { + return false; + } + + var instance = workInProgress.stateNode; + var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; + previousContext = contextStackCursor.current; + push(contextStackCursor, memoizedMergedChildContext, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); + return true; + } + + function invalidateContextProvider(workInProgress, didChange) { + var instance = workInProgress.stateNode; + invariant(instance, "Expected to have an instance by this point. " + "This error is likely caused by a bug in React. Please file an issue."); + + if (didChange) { + var mergedContext = processChildContext(workInProgress, previousContext); + instance.__reactInternalMemoizedMergedChildContext = mergedContext; + pop(didPerformWorkStackCursor, workInProgress); + pop(contextStackCursor, workInProgress); + push(contextStackCursor, mergedContext, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } else { + pop(didPerformWorkStackCursor, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } + } + + function findCurrentUnmaskedContext(fiber) { + invariant(isFiberMounted(fiber) && fiber.tag === ClassComponent, "Expected subtree parent to be a mounted class component. " + "This error is likely caused by a bug in React. Please file an issue."); + var node = fiber; + + while (node.tag !== HostRoot) { + if (isContextProvider(node)) { + return node.stateNode.__reactInternalMemoizedMergedChildContext; + } + + var parent = node.return; + invariant(parent, "Found unexpected detached subtree parent. " + "This error is likely caused by a bug in React. Please file an issue."); + node = parent; + } + + return node.stateNode.context; + } + + var MAX_SIGNED_31_BIT_INT = 1073741823; + var NoWork = 0; + var Sync = 1; + var Never = MAX_SIGNED_31_BIT_INT; + var UNIT_SIZE = 10; + var MAGIC_NUMBER_OFFSET = 2; + + function msToExpirationTime(ms) { + return (ms / UNIT_SIZE | 0) + MAGIC_NUMBER_OFFSET; + } + + function expirationTimeToMs(expirationTime) { + return (expirationTime - MAGIC_NUMBER_OFFSET) * UNIT_SIZE; + } + + function ceiling(num, precision) { + return ((num / precision | 0) + 1) * precision; + } + + function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) { + return MAGIC_NUMBER_OFFSET + ceiling(currentTime - MAGIC_NUMBER_OFFSET + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE); + } + + var NoContext = 0; + var AsyncMode = 1; + var StrictMode = 2; + var ProfileMode = 4; + var hasBadMapPolyfill = void 0; + { + hasBadMapPolyfill = false; + + try { + var nonExtensibleObject = Object.preventExtensions({}); + var testMap = new Map([[nonExtensibleObject, null]]); + var testSet = new Set([nonExtensibleObject]); + testMap.set(0, 0); + testSet.add(0); + } catch (e) { + hasBadMapPolyfill = true; + } + } + var debugCounter = void 0; + { + debugCounter = 1; + } + + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.type = null; + this.stateNode = null; + this.return = null; + this.child = null; + this.sibling = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.memoizedProps = null; + this.updateQueue = null; + this.memoizedState = null; + this.mode = mode; + this.effectTag = NoEffect; + this.nextEffect = null; + this.firstEffect = null; + this.lastEffect = null; + this.expirationTime = NoWork; + this.alternate = null; + + if (enableProfilerTimer) { + this.actualDuration = 0; + this.actualStartTime = 0; + this.selfBaseTime = 0; + this.treeBaseTime = 0; + } + + { + this._debugID = debugCounter++; + this._debugSource = null; + this._debugOwner = null; + this._debugIsCurrentlyTiming = false; + + if (!hasBadMapPolyfill && typeof Object.preventExtensions === "function") { + Object.preventExtensions(this); + } + } + } + + var createFiber = function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + }; + + function shouldConstruct(Component) { + return !!(Component.prototype && Component.prototype.isReactComponent); + } + + function createWorkInProgress(current, pendingProps, expirationTime) { + var workInProgress = current.alternate; + + if (workInProgress === null) { + workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); + workInProgress.type = current.type; + workInProgress.stateNode = current.stateNode; + { + workInProgress._debugID = current._debugID; + workInProgress._debugSource = current._debugSource; + workInProgress._debugOwner = current._debugOwner; + } + workInProgress.alternate = current; + current.alternate = workInProgress; + } else { + workInProgress.pendingProps = pendingProps; + workInProgress.effectTag = NoEffect; + workInProgress.nextEffect = null; + workInProgress.firstEffect = null; + workInProgress.lastEffect = null; + + if (enableProfilerTimer) { + workInProgress.actualDuration = 0; + workInProgress.actualStartTime = 0; + } + } + + workInProgress.expirationTime = expirationTime; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + + if (enableProfilerTimer) { + workInProgress.selfBaseTime = current.selfBaseTime; + workInProgress.treeBaseTime = current.treeBaseTime; + } + + return workInProgress; + } + + function createHostRootFiber(isAsync) { + var mode = isAsync ? AsyncMode | StrictMode : NoContext; + return createFiber(HostRoot, null, null, mode); + } + + function createFiberFromElement(element, mode, expirationTime) { + var owner = null; + { + owner = element._owner; + } + var fiber = void 0; + var type = element.type; + var key = element.key; + var pendingProps = element.props; + var fiberTag = void 0; + + if (typeof type === "function") { + fiberTag = shouldConstruct(type) ? ClassComponent : IndeterminateComponent; + } else if (typeof type === "string") { + fiberTag = HostComponent; + } else { + switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, expirationTime, key); + + case REACT_ASYNC_MODE_TYPE: + fiberTag = Mode; + mode |= AsyncMode | StrictMode; + break; + + case REACT_STRICT_MODE_TYPE: + fiberTag = Mode; + mode |= StrictMode; + break; + + case REACT_PROFILER_TYPE: + return createFiberFromProfiler(pendingProps, mode, expirationTime, key); + + case REACT_TIMEOUT_TYPE: + fiberTag = TimeoutComponent; + mode |= StrictMode; + break; + + default: + fiberTag = getFiberTagFromObjectType(type, owner); + break; + } + } + + fiber = createFiber(fiberTag, pendingProps, key, mode); + fiber.type = type; + fiber.expirationTime = expirationTime; + { + fiber._debugSource = element._source; + fiber._debugOwner = element._owner; + } + return fiber; + } + + function getFiberTagFromObjectType(type, owner) { + var $$typeof = typeof type === "object" && type !== null ? type.$$typeof : null; + + switch ($$typeof) { + case REACT_PROVIDER_TYPE: + return ContextProvider; + + case REACT_CONTEXT_TYPE: + return ContextConsumer; + + case REACT_FORWARD_REF_TYPE: + return ForwardRef; + + default: + { + var info = ""; + { + if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) { + info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and " + "named imports."; + } + + var ownerName = owner ? getComponentName(owner) : null; + + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + } + invariant(false, "Element type is invalid: expected a string (for built-in " + "components) or a class/function (for composite components) " + "but got: %s.%s", type == null ? type : typeof type, info); + } + } + } + + function createFiberFromFragment(elements, mode, expirationTime, key) { + var fiber = createFiber(Fragment, elements, key, mode); + fiber.expirationTime = expirationTime; + return fiber; + } + + function createFiberFromProfiler(pendingProps, mode, expirationTime, key) { + { + if (typeof pendingProps.id !== "string" || typeof pendingProps.onRender !== "function") { + invariant(false, 'Profiler must specify an "id" string and "onRender" function as props'); + } + } + var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); + fiber.type = REACT_PROFILER_TYPE; + fiber.expirationTime = expirationTime; + return fiber; + } + + function createFiberFromText(content, mode, expirationTime) { + var fiber = createFiber(HostText, content, null, mode); + fiber.expirationTime = expirationTime; + return fiber; + } + + function createFiberFromHostInstanceForDeletion() { + var fiber = createFiber(HostComponent, null, null, NoContext); + fiber.type = "DELETED"; + return fiber; + } + + function createFiberFromPortal(portal, mode, expirationTime) { + var pendingProps = portal.children !== null ? portal.children : []; + var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); + fiber.expirationTime = expirationTime; + fiber.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return fiber; + } + + function assignFiberPropertiesInDEV(target, source) { + if (target === null) { + target = createFiber(IndeterminateComponent, null, null, NoContext); + } + + target.tag = source.tag; + target.key = source.key; + target.type = source.type; + target.stateNode = source.stateNode; + target.return = source.return; + target.child = source.child; + target.sibling = source.sibling; + target.index = source.index; + target.ref = source.ref; + target.pendingProps = source.pendingProps; + target.memoizedProps = source.memoizedProps; + target.updateQueue = source.updateQueue; + target.memoizedState = source.memoizedState; + target.mode = source.mode; + target.effectTag = source.effectTag; + target.nextEffect = source.nextEffect; + target.firstEffect = source.firstEffect; + target.lastEffect = source.lastEffect; + target.expirationTime = source.expirationTime; + target.alternate = source.alternate; + + if (enableProfilerTimer) { + target.actualDuration = source.actualDuration; + target.actualStartTime = source.actualStartTime; + target.selfBaseTime = source.selfBaseTime; + target.treeBaseTime = source.treeBaseTime; + } + + target._debugID = source._debugID; + target._debugSource = source._debugSource; + target._debugOwner = source._debugOwner; + target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming; + return target; + } + + function createFiberRoot(containerInfo, isAsync, hydrate) { + var uninitializedFiber = createHostRootFiber(isAsync); + var root = { + current: uninitializedFiber, + containerInfo: containerInfo, + pendingChildren: null, + earliestPendingTime: NoWork, + latestPendingTime: NoWork, + earliestSuspendedTime: NoWork, + latestSuspendedTime: NoWork, + latestPingedTime: NoWork, + didError: false, + pendingCommitExpirationTime: NoWork, + finishedWork: null, + context: null, + pendingContext: null, + hydrate: hydrate, + nextExpirationTimeToWorkOn: NoWork, + expirationTime: NoWork, + firstBatch: null, + nextScheduledRoot: null + }; + uninitializedFiber.stateNode = root; + return root; + } + + var onCommitFiberRoot = null; + var onCommitFiberUnmount = null; + var hasLoggedError = false; + + function catchErrors(fn) { + return function (arg) { + try { + return fn(arg); + } catch (err) { + if (true && !hasLoggedError) { + hasLoggedError = true; + warning(false, "React DevTools encountered an error: %s", err); + } + } + }; + } + + function injectInternals(internals) { + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { + return false; + } + + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + + if (hook.isDisabled) { + return true; + } + + if (!hook.supportsFiber) { + { + warning(false, "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + "https://fb.me/react-devtools"); + } + return true; + } + + try { + var rendererID = hook.inject(internals); + onCommitFiberRoot = catchErrors(function (root) { + return hook.onCommitFiberRoot(rendererID, root); + }); + onCommitFiberUnmount = catchErrors(function (fiber) { + return hook.onCommitFiberUnmount(rendererID, fiber); + }); + } catch (err) { + { + warning(false, "React DevTools encountered an error: %s.", err); + } + } + + return true; + } + + function onCommitRoot(root) { + if (typeof onCommitFiberRoot === "function") { + onCommitFiberRoot(root); + } + } + + function onCommitUnmount(fiber) { + if (typeof onCommitFiberUnmount === "function") { + onCommitFiberUnmount(fiber); + } + } + + var lowPriorityWarning = function lowPriorityWarning() {}; + + { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = "Warning: " + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + + if (typeof console !== "undefined") { + console.warn(message); + } + + try { + throw new Error(message); + } catch (x) {} + }; + + lowPriorityWarning = function lowPriorityWarning(condition, format) { + if (format === undefined) { + throw new Error("`warning(condition, format, ...args)` requires a warning " + "message argument"); + } + + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(undefined, [format].concat(args)); + } + }; + } + var lowPriorityWarning$1 = lowPriorityWarning; + var ReactStrictModeWarnings = { + discardPendingWarnings: function discardPendingWarnings() {}, + flushPendingDeprecationWarnings: function flushPendingDeprecationWarnings() {}, + flushPendingUnsafeLifecycleWarnings: function flushPendingUnsafeLifecycleWarnings() {}, + recordDeprecationWarnings: function recordDeprecationWarnings(fiber, instance) {}, + recordUnsafeLifecycleWarnings: function recordUnsafeLifecycleWarnings(fiber, instance) {}, + recordLegacyContextWarning: function recordLegacyContextWarning(fiber, instance) {}, + flushLegacyContextWarning: function flushLegacyContextWarning() {} + }; + { + var LIFECYCLE_SUGGESTIONS = { + UNSAFE_componentWillMount: "componentDidMount", + UNSAFE_componentWillReceiveProps: "static getDerivedStateFromProps", + UNSAFE_componentWillUpdate: "componentDidUpdate" + }; + var pendingComponentWillMountWarnings = []; + var pendingComponentWillReceivePropsWarnings = []; + var pendingComponentWillUpdateWarnings = []; + var pendingUnsafeLifecycleWarnings = new Map(); + var pendingLegacyContextWarning = new Map(); + var didWarnAboutDeprecatedLifecycles = new Set(); + var didWarnAboutUnsafeLifecycles = new Set(); + var didWarnAboutLegacyContext = new Set(); + + var setToSortedString = function setToSortedString(set) { + var array = []; + set.forEach(function (value) { + array.push(value); + }); + return array.sort().join(", "); + }; + + ReactStrictModeWarnings.discardPendingWarnings = function () { + pendingComponentWillMountWarnings = []; + pendingComponentWillReceivePropsWarnings = []; + pendingComponentWillUpdateWarnings = []; + pendingUnsafeLifecycleWarnings = new Map(); + pendingLegacyContextWarning = new Map(); + }; + + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { + pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) { + var lifecyclesWarningMesages = []; + Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) { + var lifecycleWarnings = lifecycleWarningsMap[lifecycle]; + + if (lifecycleWarnings.length > 0) { + var componentNames = new Set(); + lifecycleWarnings.forEach(function (fiber) { + componentNames.add(getComponentName(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + var formatted = lifecycle.replace("UNSAFE_", ""); + var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle]; + var sortedComponentNames = setToSortedString(componentNames); + lifecyclesWarningMesages.push(formatted + ": Please update the following components to use " + (suggestion + " instead: " + sortedComponentNames)); + } + }); + + if (lifecyclesWarningMesages.length > 0) { + var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); + warning(false, "Unsafe lifecycle methods were found within a strict-mode tree:%s" + "\n\n%s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-strict-mode-warnings", strictRootComponentStack, lifecyclesWarningMesages.join("\n\n")); + } + }); + pendingUnsafeLifecycleWarnings = new Map(); + }; + + var findStrictRoot = function findStrictRoot(fiber) { + var maybeStrictRoot = null; + var node = fiber; + + while (node !== null) { + if (node.mode & StrictMode) { + maybeStrictRoot = node; + } + + node = node.return; + } + + return maybeStrictRoot; + }; + + ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () { + if (pendingComponentWillMountWarnings.length > 0) { + var uniqueNames = new Set(); + pendingComponentWillMountWarnings.forEach(function (fiber) { + uniqueNames.add(getComponentName(fiber) || "Component"); + didWarnAboutDeprecatedLifecycles.add(fiber.type); + }); + var sortedNames = setToSortedString(uniqueNames); + lowPriorityWarning$1(false, "componentWillMount is deprecated and will be removed in the next major version. " + "Use componentDidMount instead. As a temporary workaround, " + "you can rename to UNSAFE_componentWillMount." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", sortedNames); + pendingComponentWillMountWarnings = []; + } + + if (pendingComponentWillReceivePropsWarnings.length > 0) { + var _uniqueNames = new Set(); + + pendingComponentWillReceivePropsWarnings.forEach(function (fiber) { + _uniqueNames.add(getComponentName(fiber) || "Component"); + + didWarnAboutDeprecatedLifecycles.add(fiber.type); + }); + + var _sortedNames = setToSortedString(_uniqueNames); + + lowPriorityWarning$1(false, "componentWillReceiveProps is deprecated and will be removed in the next major version. " + "Use static getDerivedStateFromProps instead." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", _sortedNames); + pendingComponentWillReceivePropsWarnings = []; + } + + if (pendingComponentWillUpdateWarnings.length > 0) { + var _uniqueNames2 = new Set(); + + pendingComponentWillUpdateWarnings.forEach(function (fiber) { + _uniqueNames2.add(getComponentName(fiber) || "Component"); + + didWarnAboutDeprecatedLifecycles.add(fiber.type); + }); + + var _sortedNames2 = setToSortedString(_uniqueNames2); + + lowPriorityWarning$1(false, "componentWillUpdate is deprecated and will be removed in the next major version. " + "Use componentDidUpdate instead. As a temporary workaround, " + "you can rename to UNSAFE_componentWillUpdate." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", _sortedNames2); + pendingComponentWillUpdateWarnings = []; + } + }; + + ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) { + if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) { + return; + } + + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { + pendingComponentWillMountWarnings.push(fiber); + } + + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + pendingComponentWillReceivePropsWarnings.push(fiber); + } + + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + pendingComponentWillUpdateWarnings.push(fiber); + } + }; + + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { + var strictRoot = findStrictRoot(fiber); + + if (strictRoot === null) { + warning(false, "Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); + return; + } + + if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { + return; + } + + var warningsForRoot = void 0; + + if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) { + warningsForRoot = { + UNSAFE_componentWillMount: [], + UNSAFE_componentWillReceiveProps: [], + UNSAFE_componentWillUpdate: [] + }; + pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot); + } else { + warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot); + } + + var unsafeLifecycles = []; + + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === "function") { + unsafeLifecycles.push("UNSAFE_componentWillMount"); + } + + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === "function") { + unsafeLifecycles.push("UNSAFE_componentWillReceiveProps"); + } + + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === "function") { + unsafeLifecycles.push("UNSAFE_componentWillUpdate"); + } + + if (unsafeLifecycles.length > 0) { + unsafeLifecycles.forEach(function (lifecycle) { + warningsForRoot[lifecycle].push(fiber); + }); + } + }; + + ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { + var strictRoot = findStrictRoot(fiber); + + if (strictRoot === null) { + warning(false, "Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); + return; + } + + if (didWarnAboutLegacyContext.has(fiber.type)) { + return; + } + + var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); + + if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === "function") { + if (warningsForRoot === undefined) { + warningsForRoot = []; + pendingLegacyContextWarning.set(strictRoot, warningsForRoot); + } + + warningsForRoot.push(fiber); + } + }; + + ReactStrictModeWarnings.flushLegacyContextWarning = function () { + pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) { + var uniqueNames = new Set(); + fiberArray.forEach(function (fiber) { + uniqueNames.add(getComponentName(fiber) || "Component"); + didWarnAboutLegacyContext.add(fiber.type); + }); + var sortedNames = setToSortedString(uniqueNames); + var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); + warning(false, "Legacy context API has been detected within a strict-mode tree: %s" + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-strict-mode-warnings", strictRootComponentStack, sortedNames); + }); + }; + } + var ReactFiberInstrumentation = { + debugTool: null + }; + var ReactFiberInstrumentation_1 = ReactFiberInstrumentation; + + function markPendingPriorityLevel(root, expirationTime) { + root.didError = false; + var earliestPendingTime = root.earliestPendingTime; + + if (earliestPendingTime === NoWork) { + root.earliestPendingTime = root.latestPendingTime = expirationTime; + } else { + if (earliestPendingTime > expirationTime) { + root.earliestPendingTime = expirationTime; + } else { + var latestPendingTime = root.latestPendingTime; + + if (latestPendingTime < expirationTime) { + root.latestPendingTime = expirationTime; + } + } + } + + findNextPendingPriorityLevel(root); + } + + function markCommittedPriorityLevels(root, currentTime, earliestRemainingTime) { + root.didError = false; + + if (earliestRemainingTime === NoWork) { + root.earliestPendingTime = NoWork; + root.latestPendingTime = NoWork; + root.earliestSuspendedTime = NoWork; + root.latestSuspendedTime = NoWork; + root.latestPingedTime = NoWork; + findNextPendingPriorityLevel(root); + return; + } + + var latestPendingTime = root.latestPendingTime; + + if (latestPendingTime !== NoWork) { + if (latestPendingTime < earliestRemainingTime) { + root.earliestPendingTime = root.latestPendingTime = NoWork; + } else { + var earliestPendingTime = root.earliestPendingTime; + + if (earliestPendingTime < earliestRemainingTime) { + root.earliestPendingTime = root.latestPendingTime; + } + } + } + + var earliestSuspendedTime = root.earliestSuspendedTime; + + if (earliestSuspendedTime === NoWork) { + markPendingPriorityLevel(root, earliestRemainingTime); + findNextPendingPriorityLevel(root); + return; + } + + var latestSuspendedTime = root.latestSuspendedTime; + + if (earliestRemainingTime > latestSuspendedTime) { + root.earliestSuspendedTime = NoWork; + root.latestSuspendedTime = NoWork; + root.latestPingedTime = NoWork; + markPendingPriorityLevel(root, earliestRemainingTime); + findNextPendingPriorityLevel(root); + return; + } + + if (earliestRemainingTime < earliestSuspendedTime) { + markPendingPriorityLevel(root, earliestRemainingTime); + findNextPendingPriorityLevel(root); + return; + } + + findNextPendingPriorityLevel(root); + } + + function hasLowerPriorityWork(root, renderExpirationTime) { + return renderExpirationTime !== root.latestPendingTime && renderExpirationTime !== root.latestSuspendedTime; + } + + function markSuspendedPriorityLevel(root, suspendedTime, didError) { + if (didError && !hasLowerPriorityWork(root, suspendedTime)) { + root.didError = true; + findNextPendingPriorityLevel(root); + return; + } + + var earliestPendingTime = root.earliestPendingTime; + var latestPendingTime = root.latestPendingTime; + + if (earliestPendingTime === suspendedTime) { + if (latestPendingTime === suspendedTime) { + root.earliestPendingTime = root.latestPendingTime = NoWork; + } else { + root.earliestPendingTime = latestPendingTime; + } + } else if (latestPendingTime === suspendedTime) { + root.latestPendingTime = earliestPendingTime; + } + + var latestSuspendedTime = root.latestSuspendedTime; + + if (latestSuspendedTime === suspendedTime) { + root.latestPingedTime = NoWork; + } + + var earliestSuspendedTime = root.earliestSuspendedTime; + + if (earliestSuspendedTime === NoWork) { + root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime; + } else { + if (earliestSuspendedTime > suspendedTime) { + root.earliestSuspendedTime = suspendedTime; + } else if (latestSuspendedTime < suspendedTime) { + root.latestSuspendedTime = suspendedTime; + } + } + + findNextPendingPriorityLevel(root); + } + + function markPingedPriorityLevel(root, pingedTime) { + var latestSuspendedTime = root.latestSuspendedTime; + + if (latestSuspendedTime !== NoWork && latestSuspendedTime <= pingedTime) { + var latestPingedTime = root.latestPingedTime; + + if (latestPingedTime === NoWork || latestPingedTime < pingedTime) { + root.latestPingedTime = pingedTime; + } + } + + findNextPendingPriorityLevel(root); + } + + function findNextPendingPriorityLevel(root) { + var earliestSuspendedTime = root.earliestSuspendedTime; + var earliestPendingTime = root.earliestPendingTime; + var nextExpirationTimeToWorkOn = void 0; + var expirationTime = void 0; + + if (earliestSuspendedTime === NoWork) { + nextExpirationTimeToWorkOn = expirationTime = earliestPendingTime; + } else if (earliestPendingTime !== NoWork) { + nextExpirationTimeToWorkOn = earliestPendingTime; + expirationTime = earliestSuspendedTime < earliestPendingTime ? earliestSuspendedTime : earliestPendingTime; + } else { + nextExpirationTimeToWorkOn = expirationTime = root.latestPingedTime; + } + + if (root.didError) { + expirationTime = Sync; + } + + root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn; + root.expirationTime = expirationTime; + } + + var UpdateState = 0; + var ReplaceState = 1; + var ForceUpdate = 2; + var CaptureUpdate = 3; + var hasForceUpdate = false; + var didWarnUpdateInsideUpdate = void 0; + var currentlyProcessingQueue = void 0; + var resetCurrentlyProcessingQueue = void 0; + { + didWarnUpdateInsideUpdate = false; + currentlyProcessingQueue = null; + + resetCurrentlyProcessingQueue = function resetCurrentlyProcessingQueue() { + currentlyProcessingQueue = null; + }; + } + + function createUpdateQueue(baseState) { + var queue = { + expirationTime: NoWork, + baseState: baseState, + firstUpdate: null, + lastUpdate: null, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + return queue; + } + + function cloneUpdateQueue(currentQueue) { + var queue = { + expirationTime: currentQueue.expirationTime, + baseState: currentQueue.baseState, + firstUpdate: currentQueue.firstUpdate, + lastUpdate: currentQueue.lastUpdate, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + return queue; + } + + function createUpdate(expirationTime) { + return { + expirationTime: expirationTime, + tag: UpdateState, + payload: null, + callback: null, + next: null, + nextEffect: null + }; + } + + function appendUpdateToQueue(queue, update, expirationTime) { + if (queue.lastUpdate === null) { + queue.firstUpdate = queue.lastUpdate = update; + } else { + queue.lastUpdate.next = update; + queue.lastUpdate = update; + } + + if (queue.expirationTime === NoWork || queue.expirationTime > expirationTime) { + queue.expirationTime = expirationTime; + } + } + + function enqueueUpdate(fiber, update, expirationTime) { + var alternate = fiber.alternate; + var queue1 = void 0; + var queue2 = void 0; + + if (alternate === null) { + queue1 = fiber.updateQueue; + queue2 = null; + + if (queue1 === null) { + queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); + } + } else { + queue1 = fiber.updateQueue; + queue2 = alternate.updateQueue; + + if (queue1 === null) { + if (queue2 === null) { + queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); + queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState); + } else { + queue1 = fiber.updateQueue = cloneUpdateQueue(queue2); + } + } else { + if (queue2 === null) { + queue2 = alternate.updateQueue = cloneUpdateQueue(queue1); + } else {} + } + } + + if (queue2 === null || queue1 === queue2) { + appendUpdateToQueue(queue1, update, expirationTime); + } else { + if (queue1.lastUpdate === null || queue2.lastUpdate === null) { + appendUpdateToQueue(queue1, update, expirationTime); + appendUpdateToQueue(queue2, update, expirationTime); + } else { + appendUpdateToQueue(queue1, update, expirationTime); + queue2.lastUpdate = update; + } + } + + { + if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) { + warning(false, "An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); + didWarnUpdateInsideUpdate = true; + } + } + } + + function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { + var workInProgressQueue = workInProgress.updateQueue; + + if (workInProgressQueue === null) { + workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState); + } else { + workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); + } + + if (workInProgressQueue.lastCapturedUpdate === null) { + workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update; + } else { + workInProgressQueue.lastCapturedUpdate.next = update; + workInProgressQueue.lastCapturedUpdate = update; + } + + if (workInProgressQueue.expirationTime === NoWork || workInProgressQueue.expirationTime > renderExpirationTime) { + workInProgressQueue.expirationTime = renderExpirationTime; + } + } + + function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { + var current = workInProgress.alternate; + + if (current !== null) { + if (queue === current.updateQueue) { + queue = workInProgress.updateQueue = cloneUpdateQueue(queue); + } + } + + return queue; + } + + function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case ReplaceState: + { + var _payload = update.payload; + + if (typeof _payload === "function") { + { + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + _payload.call(instance, prevState, nextProps); + } + } + return _payload.call(instance, prevState, nextProps); + } + + return _payload; + } + + case CaptureUpdate: + { + workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture; + } + + case UpdateState: + { + var _payload2 = update.payload; + var partialState = void 0; + + if (typeof _payload2 === "function") { + { + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + _payload2.call(instance, prevState, nextProps); + } + } + partialState = _payload2.call(instance, prevState, nextProps); + } else { + partialState = _payload2; + } + + if (partialState === null || partialState === undefined) { + return prevState; + } + + return _extends({}, prevState, partialState); + } + + case ForceUpdate: + { + hasForceUpdate = true; + return prevState; + } + } + + return prevState; + } + + function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { + hasForceUpdate = false; + + if (queue.expirationTime === NoWork || queue.expirationTime > renderExpirationTime) { + return; + } + + queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); + { + currentlyProcessingQueue = queue; + } + var newBaseState = queue.baseState; + var newFirstUpdate = null; + var newExpirationTime = NoWork; + var update = queue.firstUpdate; + var resultState = newBaseState; + + while (update !== null) { + var updateExpirationTime = update.expirationTime; + + if (updateExpirationTime > renderExpirationTime) { + if (newFirstUpdate === null) { + newFirstUpdate = update; + newBaseState = resultState; + } + + if (newExpirationTime === NoWork || newExpirationTime > updateExpirationTime) { + newExpirationTime = updateExpirationTime; + } + } else { + resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); + var _callback = update.callback; + + if (_callback !== null) { + workInProgress.effectTag |= Callback; + update.nextEffect = null; + + if (queue.lastEffect === null) { + queue.firstEffect = queue.lastEffect = update; + } else { + queue.lastEffect.nextEffect = update; + queue.lastEffect = update; + } + } + } + + update = update.next; + } + + var newFirstCapturedUpdate = null; + update = queue.firstCapturedUpdate; + + while (update !== null) { + var _updateExpirationTime = update.expirationTime; + + if (_updateExpirationTime > renderExpirationTime) { + if (newFirstCapturedUpdate === null) { + newFirstCapturedUpdate = update; + + if (newFirstUpdate === null) { + newBaseState = resultState; + } + } + + if (newExpirationTime === NoWork || newExpirationTime > _updateExpirationTime) { + newExpirationTime = _updateExpirationTime; + } + } else { + resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); + var _callback2 = update.callback; + + if (_callback2 !== null) { + workInProgress.effectTag |= Callback; + update.nextEffect = null; + + if (queue.lastCapturedEffect === null) { + queue.firstCapturedEffect = queue.lastCapturedEffect = update; + } else { + queue.lastCapturedEffect.nextEffect = update; + queue.lastCapturedEffect = update; + } + } + } + + update = update.next; + } + + if (newFirstUpdate === null) { + queue.lastUpdate = null; + } + + if (newFirstCapturedUpdate === null) { + queue.lastCapturedUpdate = null; + } else { + workInProgress.effectTag |= Callback; + } + + if (newFirstUpdate === null && newFirstCapturedUpdate === null) { + newBaseState = resultState; + } + + queue.baseState = newBaseState; + queue.firstUpdate = newFirstUpdate; + queue.firstCapturedUpdate = newFirstCapturedUpdate; + queue.expirationTime = newExpirationTime; + workInProgress.memoizedState = resultState; + { + currentlyProcessingQueue = null; + } + } + + function callCallback(callback, context) { + invariant(typeof callback === "function", "Invalid argument passed as callback. Expected a function. Instead " + "received: %s", callback); + callback.call(context); + } + + function resetHasForceUpdateBeforeProcessing() { + hasForceUpdate = false; + } + + function checkHasForceUpdateAfterProcessing() { + return hasForceUpdate; + } + + function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) { + if (finishedQueue.firstCapturedUpdate !== null) { + if (finishedQueue.lastUpdate !== null) { + finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate; + finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate; + } + + finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null; + } + + var effect = finishedQueue.firstEffect; + finishedQueue.firstEffect = finishedQueue.lastEffect = null; + + while (effect !== null) { + var _callback3 = effect.callback; + + if (_callback3 !== null) { + effect.callback = null; + callCallback(_callback3, instance); + } + + effect = effect.nextEffect; + } + + effect = finishedQueue.firstCapturedEffect; + finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; + + while (effect !== null) { + var _callback4 = effect.callback; + + if (_callback4 !== null) { + effect.callback = null; + callCallback(_callback4, instance); + } + + effect = effect.nextEffect; + } + } + + function createCapturedValue(value, source) { + return { + value: value, + source: source, + stack: getStackAddendumByWorkInProgressFiber(source) + }; + } + + var providerCursor = createCursor(null); + var valueCursor = createCursor(null); + var changedBitsCursor = createCursor(0); + var rendererSigil = void 0; + { + rendererSigil = {}; + } + + function pushProvider(providerFiber) { + var context = providerFiber.type._context; + + if (isPrimaryRenderer) { + push(changedBitsCursor, context._changedBits, providerFiber); + push(valueCursor, context._currentValue, providerFiber); + push(providerCursor, providerFiber, providerFiber); + context._currentValue = providerFiber.pendingProps.value; + context._changedBits = providerFiber.stateNode; + { + !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warning(false, "Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported.") : void 0; + context._currentRenderer = rendererSigil; + } + } else { + push(changedBitsCursor, context._changedBits2, providerFiber); + push(valueCursor, context._currentValue2, providerFiber); + push(providerCursor, providerFiber, providerFiber); + context._currentValue2 = providerFiber.pendingProps.value; + context._changedBits2 = providerFiber.stateNode; + { + !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warning(false, "Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported.") : void 0; + context._currentRenderer2 = rendererSigil; + } + } + } + + function popProvider(providerFiber) { + var changedBits = changedBitsCursor.current; + var currentValue = valueCursor.current; + pop(providerCursor, providerFiber); + pop(valueCursor, providerFiber); + pop(changedBitsCursor, providerFiber); + var context = providerFiber.type._context; + + if (isPrimaryRenderer) { + context._currentValue = currentValue; + context._changedBits = changedBits; + } else { + context._currentValue2 = currentValue; + context._changedBits2 = changedBits; + } + } + + function getContextCurrentValue(context) { + return isPrimaryRenderer ? context._currentValue : context._currentValue2; + } + + function getContextChangedBits(context) { + return isPrimaryRenderer ? context._changedBits : context._changedBits2; + } + + var NO_CONTEXT = {}; + var contextStackCursor$1 = createCursor(NO_CONTEXT); + var contextFiberStackCursor = createCursor(NO_CONTEXT); + var rootInstanceStackCursor = createCursor(NO_CONTEXT); + + function requiredContext(c) { + invariant(c !== NO_CONTEXT, "Expected host context to exist. This error is likely caused by a bug " + "in React. Please file an issue."); + return c; + } + + function getRootHostContainer() { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + return rootInstance; + } + + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, NO_CONTEXT, fiber); + var nextRootContext = getRootHostContext(nextRootInstance); + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); + } + + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + + function getHostContext() { + var context = requiredContext(contextStackCursor$1.current); + return context; + } + + function pushHostContext(fiber) { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var nextContext = getChildHostContext(context, fiber.type, rootInstance); + + if (context === nextContext) { + return; + } + + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, nextContext, fiber); + } + + function popHostContext(fiber) { + if (contextFiberStackCursor.current !== fiber) { + return; + } + + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + } + + var commitTime = 0; + + function getCommitTime() { + return commitTime; + } + + function recordCommitTime() { + if (!enableProfilerTimer) { + return; + } + + commitTime = now(); + } + + var fiberStack$1 = void 0; + { + fiberStack$1 = []; + } + var timerPausedAt = 0; + var totalElapsedPauseTime = 0; + + function checkActualRenderTimeStackEmpty() { + if (!enableProfilerTimer) { + return; + } + + { + !(fiberStack$1.length === 0) ? warning(false, "Expected an empty stack. Something was not reset properly.") : void 0; + } + } + + function markActualRenderTimeStarted(fiber) { + if (!enableProfilerTimer) { + return; + } + + { + fiberStack$1.push(fiber); + } + fiber.actualDuration = now() - fiber.actualDuration - totalElapsedPauseTime; + fiber.actualStartTime = now(); + } + + function pauseActualRenderTimerIfRunning() { + if (!enableProfilerTimer) { + return; + } + + if (timerPausedAt === 0) { + timerPausedAt = now(); + } + } + + function recordElapsedActualRenderTime(fiber) { + if (!enableProfilerTimer) { + return; + } + + { + !(fiber === fiberStack$1.pop()) ? warning(false, "Unexpected Fiber (%s) popped.", getComponentName(fiber)) : void 0; + } + fiber.actualDuration = now() - totalElapsedPauseTime - fiber.actualDuration; + } + + function resetActualRenderTimer() { + if (!enableProfilerTimer) { + return; + } + + totalElapsedPauseTime = 0; + } + + function resumeActualRenderTimerIfPaused() { + if (!enableProfilerTimer) { + return; + } + + if (timerPausedAt > 0) { + totalElapsedPauseTime += now() - timerPausedAt; + timerPausedAt = 0; + } + } + + var baseStartTime = -1; + + function recordElapsedBaseRenderTimeIfRunning(fiber) { + if (!enableProfilerTimer) { + return; + } + + if (baseStartTime !== -1) { + fiber.selfBaseTime = now() - baseStartTime; + } + } + + function startBaseRenderTimer() { + if (!enableProfilerTimer) { + return; + } + + { + if (baseStartTime !== -1) { + warning(false, "Cannot start base timer that is already running. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } + } + baseStartTime = now(); + } + + function stopBaseRenderTimerIfRunning() { + if (!enableProfilerTimer) { + return; + } + + baseStartTime = -1; + } + + var hasOwnProperty = Object.prototype.hasOwnProperty; + + function is(x, y) { + if (x === y) { + return x !== 0 || y !== 0 || 1 / x === 1 / y; + } else { + return x !== x && y !== y; + } + } + + function shallowEqual(objA, objB) { + if (is(objA, objB)) { + return true; + } + + if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) { + return false; + } + + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + + if (keysA.length !== keysB.length) { + return false; + } + + for (var i = 0; i < keysA.length; i++) { + if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) { + return false; + } + } + + return true; + } + + var fakeInternalInstance = {}; + var isArray = Array.isArray; + var didWarnAboutStateAssignmentForComponent = void 0; + var didWarnAboutUninitializedState = void 0; + var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0; + var didWarnAboutLegacyLifecyclesAndDerivedState = void 0; + var didWarnAboutUndefinedDerivedState = void 0; + var warnOnUndefinedDerivedState = void 0; + var warnOnInvalidCallback = void 0; + { + didWarnAboutStateAssignmentForComponent = new Set(); + didWarnAboutUninitializedState = new Set(); + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); + didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); + didWarnAboutUndefinedDerivedState = new Set(); + var didWarnOnInvalidCallback = new Set(); + + warnOnInvalidCallback = function warnOnInvalidCallback(callback, callerName) { + if (callback === null || typeof callback === "function") { + return; + } + + var key = callerName + "_" + callback; + + if (!didWarnOnInvalidCallback.has(key)) { + didWarnOnInvalidCallback.add(key); + warning(false, "%s(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callerName, callback); + } + }; + + warnOnUndefinedDerivedState = function warnOnUndefinedDerivedState(workInProgress, partialState) { + if (partialState === undefined) { + var componentName = getComponentName(workInProgress) || "Component"; + + if (!didWarnAboutUndefinedDerivedState.has(componentName)) { + didWarnAboutUndefinedDerivedState.add(componentName); + warning(false, "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. " + "You have returned undefined.", componentName); + } + } + }; + + Object.defineProperty(fakeInternalInstance, "_processChildContext", { + enumerable: false, + value: function value() { + invariant(false, "_processChildContext is not available in React 16+. This likely " + "means you have multiple copies of React and are attempting to nest " + "a React 15 tree inside a React 16 tree using " + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + "to make sure you have only one copy of React (and ideally, switch " + "to ReactDOM.createPortal)."); + } + }); + Object.freeze(fakeInternalInstance); + } + + function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { + var prevState = workInProgress.memoizedState; + { + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + getDerivedStateFromProps(nextProps, prevState); + } + } + var partialState = getDerivedStateFromProps(nextProps, prevState); + { + warnOnUndefinedDerivedState(workInProgress, partialState); + } + var memoizedState = partialState === null || partialState === undefined ? prevState : _extends({}, prevState, partialState); + workInProgress.memoizedState = memoizedState; + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null && updateQueue.expirationTime === NoWork) { + updateQueue.baseState = memoizedState; + } + } + + var classComponentUpdater = { + isMounted: isMounted, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + var fiber = get$1(inst); + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, fiber); + var update = createUpdate(expirationTime); + update.payload = payload; + + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "setState"); + } + update.callback = callback; + } + + enqueueUpdate(fiber, update, expirationTime); + scheduleWork(fiber, expirationTime); + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + var fiber = get$1(inst); + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, fiber); + var update = createUpdate(expirationTime); + update.tag = ReplaceState; + update.payload = payload; + + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "replaceState"); + } + update.callback = callback; + } + + enqueueUpdate(fiber, update, expirationTime); + scheduleWork(fiber, expirationTime); + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + var fiber = get$1(inst); + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, fiber); + var update = createUpdate(expirationTime); + update.tag = ForceUpdate; + + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "forceUpdate"); + } + update.callback = callback; + } + + enqueueUpdate(fiber, update, expirationTime); + scheduleWork(fiber, expirationTime); + } + }; + + function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { + var instance = workInProgress.stateNode; + var ctor = workInProgress.type; + + if (typeof instance.shouldComponentUpdate === "function") { + startPhaseTimer(workInProgress, "shouldComponentUpdate"); + var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, newContext); + stopPhaseTimer(); + { + !(shouldUpdate !== undefined) ? warning(false, "%s.shouldComponentUpdate(): Returned undefined instead of a " + "boolean value. Make sure to return true or false.", getComponentName(workInProgress) || "Component") : void 0; + } + return shouldUpdate; + } + + if (ctor.prototype && ctor.prototype.isPureReactComponent) { + return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); + } + + return true; + } + + function checkClassInstance(workInProgress) { + var instance = workInProgress.stateNode; + var type = workInProgress.type; + { + var name = getComponentName(workInProgress) || "Component"; + var renderPresent = instance.render; + + if (!renderPresent) { + if (type.prototype && typeof type.prototype.render === "function") { + warning(false, "%s(...): No `render` method found on the returned component " + "instance: did you accidentally return an object from the constructor?", name); + } else { + warning(false, "%s(...): No `render` method found on the returned component " + "instance: you may have forgotten to define `render`.", name); + } + } + + var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state; + !noGetInitialStateOnES6 ? warning(false, "getInitialState was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Did you mean to define a state property instead?", name) : void 0; + var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved; + !noGetDefaultPropsOnES6 ? warning(false, "getDefaultProps was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Use a static property to define defaultProps instead.", name) : void 0; + var noInstancePropTypes = !instance.propTypes; + !noInstancePropTypes ? warning(false, "propTypes was defined as an instance property on %s. Use a static " + "property to define propTypes instead.", name) : void 0; + var noInstanceContextTypes = !instance.contextTypes; + !noInstanceContextTypes ? warning(false, "contextTypes was defined as an instance property on %s. Use a static " + "property to define contextTypes instead.", name) : void 0; + var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== "function"; + !noComponentShouldUpdate ? warning(false, "%s has a method called " + "componentShouldUpdate(). Did you mean shouldComponentUpdate()? " + "The name is phrased as a question because the function is " + "expected to return a value.", name) : void 0; + + if (type.prototype && type.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== "undefined") { + warning(false, "%s has a method called shouldComponentUpdate(). " + "shouldComponentUpdate should not be used when extending React.PureComponent. " + "Please extend React.Component if shouldComponentUpdate is used.", getComponentName(workInProgress) || "A pure component"); + } + + var noComponentDidUnmount = typeof instance.componentDidUnmount !== "function"; + !noComponentDidUnmount ? warning(false, "%s has a method called " + "componentDidUnmount(). But there is no such lifecycle method. " + "Did you mean componentWillUnmount()?", name) : void 0; + var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== "function"; + !noComponentDidReceiveProps ? warning(false, "%s has a method called " + "componentDidReceiveProps(). But there is no such lifecycle method. " + "If you meant to update the state in response to changing props, " + "use componentWillReceiveProps(). If you meant to fetch data or " + "run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name) : void 0; + var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== "function"; + !noComponentWillRecieveProps ? warning(false, "%s has a method called " + "componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name) : void 0; + var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== "function"; + !noUnsafeComponentWillRecieveProps ? warning(false, "%s has a method called " + "UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name) : void 0; + var hasMutatedProps = instance.props !== workInProgress.pendingProps; + !(instance.props === undefined || !hasMutatedProps) ? warning(false, "%s(...): When calling super() in `%s`, make sure to pass " + "up the same props that your component's constructor was passed.", name, name) : void 0; + var noInstanceDefaultProps = !instance.defaultProps; + !noInstanceDefaultProps ? warning(false, "Setting defaultProps as an instance property on %s is not supported and will be ignored." + " Instead, define defaultProps as a static property on %s.", name, name) : void 0; + + if (typeof instance.getSnapshotBeforeUpdate === "function" && typeof instance.componentDidUpdate !== "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type)) { + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type); + warning(false, "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). " + "This component defines getSnapshotBeforeUpdate() only.", getComponentName(workInProgress)); + } + + var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== "function"; + !noInstanceGetDerivedStateFromProps ? warning(false, "%s: getDerivedStateFromProps() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name) : void 0; + var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromCatch !== "function"; + !noInstanceGetDerivedStateFromCatch ? warning(false, "%s: getDerivedStateFromCatch() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name) : void 0; + var noStaticGetSnapshotBeforeUpdate = typeof type.getSnapshotBeforeUpdate !== "function"; + !noStaticGetSnapshotBeforeUpdate ? warning(false, "%s: getSnapshotBeforeUpdate() is defined as a static method " + "and will be ignored. Instead, declare it as an instance method.", name) : void 0; + var _state = instance.state; + + if (_state && (typeof _state !== "object" || isArray(_state))) { + warning(false, "%s.state: must be set to an object or null", name); + } + + if (typeof instance.getChildContext === "function") { + !(typeof type.childContextTypes === "object") ? warning(false, "%s.getChildContext(): childContextTypes must be defined in order to " + "use getChildContext().", name) : void 0; + } + } + } + + function adoptClassInstance(workInProgress, instance) { + instance.updater = classComponentUpdater; + workInProgress.stateNode = instance; + set(instance, workInProgress); + { + instance._reactInternalInstance = fakeInternalInstance; + } + } + + function constructClassInstance(workInProgress, props, renderExpirationTime) { + var ctor = workInProgress.type; + var unmaskedContext = getUnmaskedContext(workInProgress); + var needsContext = isContextConsumer(workInProgress); + var context = needsContext ? getMaskedContext(workInProgress, unmaskedContext) : emptyObject; + { + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + new ctor(props, context); + } + } + var instance = new ctor(props, context); + var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; + adoptClassInstance(workInProgress, instance); + { + if (typeof ctor.getDerivedStateFromProps === "function" && state === null) { + var componentName = getComponentName(workInProgress) || "Component"; + + if (!didWarnAboutUninitializedState.has(componentName)) { + didWarnAboutUninitializedState.add(componentName); + warning(false, "%s: Did not properly initialize state during construction. " + "Expected state to be an object, but it was %s.", componentName, instance.state === null ? "null" : "undefined"); + } + } + + if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { + foundWillMountName = "componentWillMount"; + } else if (typeof instance.UNSAFE_componentWillMount === "function") { + foundWillMountName = "UNSAFE_componentWillMount"; + } + + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + foundWillReceivePropsName = "componentWillReceiveProps"; + } else if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"; + } + + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + foundWillUpdateName = "componentWillUpdate"; + } else if (typeof instance.UNSAFE_componentWillUpdate === "function") { + foundWillUpdateName = "UNSAFE_componentWillUpdate"; + } + + if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { + var _componentName = getComponentName(workInProgress) || "Component"; + + var newApiName = typeof ctor.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + + if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { + didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); + warning(false, "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + "https://fb.me/react-async-component-lifecycle-hooks", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "", foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ""); + } + } + } + } + + if (needsContext) { + cacheContext(workInProgress, unmaskedContext, context); + } + + return instance; + } + + function callComponentWillMount(workInProgress, instance) { + startPhaseTimer(workInProgress, "componentWillMount"); + var oldState = instance.state; + + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + + stopPhaseTimer(); + + if (oldState !== instance.state) { + { + warning(false, "%s.componentWillMount(): Assigning directly to this.state is " + "deprecated (except inside a component's " + "constructor). Use setState instead.", getComponentName(workInProgress) || "Component"); + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + + function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { + var oldState = instance.state; + startPhaseTimer(workInProgress, "componentWillReceiveProps"); + + if (typeof instance.componentWillReceiveProps === "function") { + instance.componentWillReceiveProps(newProps, newContext); + } + + if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + instance.UNSAFE_componentWillReceiveProps(newProps, newContext); + } + + stopPhaseTimer(); + + if (instance.state !== oldState) { + { + var componentName = getComponentName(workInProgress) || "Component"; + + if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { + didWarnAboutStateAssignmentForComponent.add(componentName); + warning(false, "%s.componentWillReceiveProps(): Assigning directly to " + "this.state is deprecated (except inside a component's " + "constructor). Use setState instead.", componentName); + } + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + + function mountClassInstance(workInProgress, renderExpirationTime) { + var ctor = workInProgress.type; + { + checkClassInstance(workInProgress); + } + var instance = workInProgress.stateNode; + var props = workInProgress.pendingProps; + var unmaskedContext = getUnmaskedContext(workInProgress); + instance.props = props; + instance.state = workInProgress.memoizedState; + instance.refs = emptyObject; + instance.context = getMaskedContext(workInProgress, unmaskedContext); + { + if (workInProgress.mode & StrictMode) { + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance); + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance); + } + + if (warnAboutDeprecatedLifecycles) { + ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance); + } + } + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime); + instance.state = workInProgress.memoizedState; + } + + var getDerivedStateFromProps = workInProgress.type.getDerivedStateFromProps; + + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); + instance.state = workInProgress.memoizedState; + } + + if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + callComponentWillMount(workInProgress, instance); + updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime); + instance.state = workInProgress.memoizedState; + } + } + + if (typeof instance.componentDidMount === "function") { + workInProgress.effectTag |= Update; + } + } + + function resumeMountClassInstance(workInProgress, renderExpirationTime) { + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + var oldProps = workInProgress.memoizedProps; + var newProps = workInProgress.pendingProps; + instance.props = oldProps; + var oldContext = instance.context; + var newUnmaskedContext = getUnmaskedContext(workInProgress); + var newContext = getMaskedContext(workInProgress, newUnmaskedContext); + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (oldProps !== newProps || oldContext !== newContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, newContext); + } + } + + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime); + newState = workInProgress.memoizedState; + } + + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + if (typeof instance.componentDidMount === "function") { + workInProgress.effectTag |= Update; + } + + return false; + } + + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); + + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + startPhaseTimer(workInProgress, "componentWillMount"); + + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + + stopPhaseTimer(); + } + + if (typeof instance.componentDidMount === "function") { + workInProgress.effectTag |= Update; + } + } else { + if (typeof instance.componentDidMount === "function") { + workInProgress.effectTag |= Update; + } + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } + + instance.props = newProps; + instance.state = newState; + instance.context = newContext; + return shouldUpdate; + } + + function updateClassInstance(current, workInProgress, renderExpirationTime) { + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + var oldProps = workInProgress.memoizedProps; + var newProps = workInProgress.pendingProps; + instance.props = oldProps; + var oldContext = instance.context; + var newUnmaskedContext = getUnmaskedContext(workInProgress); + var newContext = getMaskedContext(workInProgress, newUnmaskedContext); + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (oldProps !== newProps || oldContext !== newContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, newContext); + } + } + + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime); + newState = workInProgress.memoizedState; + } + + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + if (typeof instance.componentDidUpdate === "function") { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Update; + } + } + + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Snapshot; + } + } + + return false; + } + + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); + + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { + startPhaseTimer(workInProgress, "componentWillUpdate"); + + if (typeof instance.componentWillUpdate === "function") { + instance.componentWillUpdate(newProps, newState, newContext); + } + + if (typeof instance.UNSAFE_componentWillUpdate === "function") { + instance.UNSAFE_componentWillUpdate(newProps, newState, newContext); + } + + stopPhaseTimer(); + } + + if (typeof instance.componentDidUpdate === "function") { + workInProgress.effectTag |= Update; + } + + if (typeof instance.getSnapshotBeforeUpdate === "function") { + workInProgress.effectTag |= Snapshot; + } + } else { + if (typeof instance.componentDidUpdate === "function") { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Update; + } + } + + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Snapshot; + } + } + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } + + instance.props = newProps; + instance.state = newState; + instance.context = newContext; + return shouldUpdate; + } + + var getCurrentFiberStackAddendum$2 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum; + var didWarnAboutMaps = void 0; + var didWarnAboutStringRefInStrictMode = void 0; + var ownerHasKeyUseWarning = void 0; + var ownerHasFunctionTypeWarning = void 0; + + var warnForMissingKey = function warnForMissingKey(child) {}; + + { + didWarnAboutMaps = false; + didWarnAboutStringRefInStrictMode = {}; + ownerHasKeyUseWarning = {}; + ownerHasFunctionTypeWarning = {}; + + warnForMissingKey = function warnForMissingKey(child) { + if (child === null || typeof child !== "object") { + return; + } + + if (!child._store || child._store.validated || child.key != null) { + return; + } + + invariant(typeof child._store === "object", "React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue."); + child._store.validated = true; + var currentComponentErrorInfo = "Each child in an array or iterator should have a unique " + '"key" prop. See https://fb.me/react-warning-keys for ' + "more information." + (getCurrentFiberStackAddendum$2() || ""); + + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + warning(false, "Each child in an array or iterator should have a unique " + '"key" prop. See https://fb.me/react-warning-keys for ' + "more information.%s", getCurrentFiberStackAddendum$2()); + }; + } + var isArray$1 = Array.isArray; + + function coerceRef(returnFiber, current, element) { + var mixedRef = element.ref; + + if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { + { + if (returnFiber.mode & StrictMode) { + var componentName = getComponentName(returnFiber) || "Component"; + + if (!didWarnAboutStringRefInStrictMode[componentName]) { + warning(false, 'A string ref, "%s", has been found within a strict mode tree. ' + "String refs are a source of potential bugs and should be avoided. " + "We recommend using createRef() instead." + "\n%s" + "\n\nLearn more about using refs safely here:" + "\nhttps://fb.me/react-strict-mode-string-ref", mixedRef, getStackAddendumByWorkInProgressFiber(returnFiber)); + didWarnAboutStringRefInStrictMode[componentName] = true; + } + } + } + + if (element._owner) { + var owner = element._owner; + var inst = void 0; + + if (owner) { + var ownerFiber = owner; + invariant(ownerFiber.tag === ClassComponent, "Stateless function components cannot have refs."); + inst = ownerFiber.stateNode; + } + + invariant(inst, "Missing owner for string ref %s. This error is likely caused by a " + "bug in React. Please file an issue.", mixedRef); + var stringRef = "" + mixedRef; + + if (current !== null && current.ref !== null && typeof current.ref === "function" && current.ref._stringRef === stringRef) { + return current.ref; + } + + var ref = function ref(value) { + var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; + + if (value === null) { + delete refs[stringRef]; + } else { + refs[stringRef] = value; + } + }; + + ref._stringRef = stringRef; + return ref; + } else { + invariant(typeof mixedRef === "string", "Expected ref to be a function or a string."); + invariant(element._owner, "Element ref was specified as a string (%s) but no owner was set. This could happen for one of" + " the following reasons:\n" + "1. You may be adding a ref to a functional component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + "See https://fb.me/react-refs-must-have-owner for more information.", mixedRef); + } + } + + return mixedRef; + } + + function throwOnInvalidObjectType(returnFiber, newChild) { + if (returnFiber.type !== "textarea") { + var addendum = ""; + { + addendum = " If you meant to render a collection of children, use an array " + "instead." + (getCurrentFiberStackAddendum$2() || ""); + } + invariant(false, "Objects are not valid as a React child (found: %s).%s", Object.prototype.toString.call(newChild) === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild, addendum); + } + } + + function warnOnFunctionType() { + var currentComponentErrorInfo = "Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it." + (getCurrentFiberStackAddendum$2() || ""); + + if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true; + warning(false, "Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it.%s", getCurrentFiberStackAddendum$2() || ""); + } + + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (!shouldTrackSideEffects) { + return; + } + + var last = returnFiber.lastEffect; + + if (last !== null) { + last.nextEffect = childToDelete; + returnFiber.lastEffect = childToDelete; + } else { + returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; + } + + childToDelete.nextEffect = null; + childToDelete.effectTag = Deletion; + } + + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) { + return null; + } + + var childToDelete = currentFirstChild; + + while (childToDelete !== null) { + deleteChild(returnFiber, childToDelete); + childToDelete = childToDelete.sibling; + } + + return null; + } + + function mapRemainingChildren(returnFiber, currentFirstChild) { + var existingChildren = new Map(); + var existingChild = currentFirstChild; + + while (existingChild !== null) { + if (existingChild.key !== null) { + existingChildren.set(existingChild.key, existingChild); + } else { + existingChildren.set(existingChild.index, existingChild); + } + + existingChild = existingChild.sibling; + } + + return existingChildren; + } + + function useFiber(fiber, pendingProps, expirationTime) { + var clone = createWorkInProgress(fiber, pendingProps, expirationTime); + clone.index = 0; + clone.sibling = null; + return clone; + } + + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + + if (!shouldTrackSideEffects) { + return lastPlacedIndex; + } + + var current = newFiber.alternate; + + if (current !== null) { + var oldIndex = current.index; + + if (oldIndex < lastPlacedIndex) { + newFiber.effectTag = Placement; + return lastPlacedIndex; + } else { + return oldIndex; + } + } else { + newFiber.effectTag = Placement; + return lastPlacedIndex; + } + } + + function placeSingleChild(newFiber) { + if (shouldTrackSideEffects && newFiber.alternate === null) { + newFiber.effectTag = Placement; + } + + return newFiber; + } + + function updateTextNode(returnFiber, current, textContent, expirationTime) { + if (current === null || current.tag !== HostText) { + var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, textContent, expirationTime); + existing.return = returnFiber; + return existing; + } + } + + function updateElement(returnFiber, current, element, expirationTime) { + if (current !== null && current.type === element.type) { + var existing = useFiber(current, element.props, expirationTime); + existing.ref = coerceRef(returnFiber, current, element); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } else { + var created = createFiberFromElement(element, returnFiber.mode, expirationTime); + created.ref = coerceRef(returnFiber, current, element); + created.return = returnFiber; + return created; + } + } + + function updatePortal(returnFiber, current, portal, expirationTime) { + if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { + var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, portal.children || [], expirationTime); + existing.return = returnFiber; + return existing; + } + } + + function updateFragment(returnFiber, current, fragment, expirationTime, key) { + if (current === null || current.tag !== Fragment) { + var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, fragment, expirationTime); + existing.return = returnFiber; + return existing; + } + } + + function createChild(returnFiber, newChild, expirationTime) { + if (typeof newChild === "string" || typeof newChild === "number") { + var created = createFiberFromText("" + newChild, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } + + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime); + + _created.ref = coerceRef(returnFiber, null, newChild); + _created.return = returnFiber; + return _created; + } + + case REACT_PORTAL_TYPE: + { + var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); + + _created2.return = returnFiber; + return _created2; + } + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) { + var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null); + + _created3.return = returnFiber; + return _created3; + } + + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === "function") { + warnOnFunctionType(); + } + } + return null; + } + + function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { + var key = oldFiber !== null ? oldFiber.key : null; + + if (typeof newChild === "string" || typeof newChild === "number") { + if (key !== null) { + return null; + } + + return updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); + } + + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + if (newChild.key === key) { + if (newChild.type === REACT_FRAGMENT_TYPE) { + return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key); + } + + return updateElement(returnFiber, oldFiber, newChild, expirationTime); + } else { + return null; + } + } + + case REACT_PORTAL_TYPE: + { + if (newChild.key === key) { + return updatePortal(returnFiber, oldFiber, newChild, expirationTime); + } else { + return null; + } + } + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) { + if (key !== null) { + return null; + } + + return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); + } + + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === "function") { + warnOnFunctionType(); + } + } + return null; + } + + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { + if (typeof newChild === "string" || typeof newChild === "number") { + var matchedFiber = existingChildren.get(newIdx) || null; + return updateTextNode(returnFiber, matchedFiber, "" + newChild, expirationTime); + } + + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + + if (newChild.type === REACT_FRAGMENT_TYPE) { + return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key); + } + + return updateElement(returnFiber, _matchedFiber, newChild, expirationTime); + } + + case REACT_PORTAL_TYPE: + { + var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + + return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime); + } + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) { + var _matchedFiber3 = existingChildren.get(newIdx) || null; + + return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null); + } + + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === "function") { + warnOnFunctionType(); + } + } + return null; + } + + function warnOnInvalidKey(child, knownKeys) { + { + if (typeof child !== "object" || child === null) { + return knownKeys; + } + + switch (child.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + warnForMissingKey(child); + var key = child.key; + + if (typeof key !== "string") { + break; + } + + if (knownKeys === null) { + knownKeys = new Set(); + knownKeys.add(key); + break; + } + + if (!knownKeys.has(key)) { + knownKeys.add(key); + break; + } + + warning(false, "Encountered two children with the same key, `%s`. " + "Keys should be unique so that components maintain their identity " + "across updates. Non-unique keys may cause children to be " + "duplicated and/or omitted — the behavior is unsupported and " + "could change in a future version.%s", key, getCurrentFiberStackAddendum$2()); + break; + + default: + break; + } + } + return knownKeys; + } + + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { + { + var knownKeys = null; + + for (var i = 0; i < newChildren.length; i++) { + var child = newChildren[i]; + knownKeys = warnOnInvalidKey(child, knownKeys); + } + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + + for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); + + if (newFiber === null) { + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + + break; + } + + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (newIdx === newChildren.length) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + + if (oldFiber === null) { + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime); + + if (!_newFiber) { + continue; + } + + lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber; + } else { + previousNewFiber.sibling = _newFiber; + } + + previousNewFiber = _newFiber; + } + + return resultingFirstChild; + } + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime); + + if (_newFiber2) { + if (shouldTrackSideEffects) { + if (_newFiber2.alternate !== null) { + existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); + } + } + + lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber2; + } else { + previousNewFiber.sibling = _newFiber2; + } + + previousNewFiber = _newFiber2; + } + } + + if (shouldTrackSideEffects) { + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + + return resultingFirstChild; + } + + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { + var iteratorFn = getIteratorFn(newChildrenIterable); + invariant(typeof iteratorFn === "function", "An object is not an iterable. This error is likely caused by a bug in " + "React. Please file an issue."); + { + if (newChildrenIterable.entries === iteratorFn) { + !didWarnAboutMaps ? warning(false, "Using Maps as children is unsupported and will likely yield " + "unexpected results. Convert it to a sequence/iterable of keyed " + "ReactElements instead.%s", getCurrentFiberStackAddendum$2()) : void 0; + didWarnAboutMaps = true; + } + + var _newChildren = iteratorFn.call(newChildrenIterable); + + if (_newChildren) { + var knownKeys = null; + + var _step = _newChildren.next(); + + for (; !_step.done; _step = _newChildren.next()) { + var child = _step.value; + knownKeys = warnOnInvalidKey(child, knownKeys); + } + } + } + var newChildren = iteratorFn.call(newChildrenIterable); + invariant(newChildren != null, "An iterable object provided no iterator."); + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + var step = newChildren.next(); + + for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + + var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); + + if (newFiber === null) { + if (!oldFiber) { + oldFiber = nextOldFiber; + } + + break; + } + + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (step.done) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + + if (oldFiber === null) { + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber3 = createChild(returnFiber, step.value, expirationTime); + + if (_newFiber3 === null) { + continue; + } + + lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber3; + } else { + previousNewFiber.sibling = _newFiber3; + } + + previousNewFiber = _newFiber3; + } + + return resultingFirstChild; + } + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime); + + if (_newFiber4 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber4.alternate !== null) { + existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); + } + } + + lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber4; + } else { + previousNewFiber.sibling = _newFiber4; + } + + previousNewFiber = _newFiber4; + } + } + + if (shouldTrackSideEffects) { + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + + return resultingFirstChild; + } + + function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) { + if (currentFirstChild !== null && currentFirstChild.tag === HostText) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + var existing = useFiber(currentFirstChild, textContent, expirationTime); + existing.return = returnFiber; + return existing; + } + + deleteRemainingChildren(returnFiber, currentFirstChild); + var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } + + function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) { + var key = element.key; + var child = currentFirstChild; + + while (child !== null) { + if (child.key === key) { + if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.type === element.type) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime); + existing.ref = coerceRef(returnFiber, child, element); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } else { + deleteRemainingChildren(returnFiber, child); + break; + } + } else { + deleteChild(returnFiber, child); + } + + child = child.sibling; + } + + if (element.type === REACT_FRAGMENT_TYPE) { + var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key); + created.return = returnFiber; + return created; + } else { + var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime); + + _created4.ref = coerceRef(returnFiber, currentFirstChild, element); + _created4.return = returnFiber; + return _created4; + } + } + + function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) { + var key = portal.key; + var child = currentFirstChild; + + while (child !== null) { + if (child.key === key) { + if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, portal.children || [], expirationTime); + existing.return = returnFiber; + return existing; + } else { + deleteRemainingChildren(returnFiber, child); + break; + } + } else { + deleteChild(returnFiber, child); + } + + child = child.sibling; + } + + var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } + + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) { + var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; + + if (isUnkeyedTopLevelFragment) { + newChild = newChild.props.children; + } + + var isObject = typeof newChild === "object" && newChild !== null; + + if (isObject) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime)); + + case REACT_PORTAL_TYPE: + return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime)); + } + } + + if (typeof newChild === "string" || typeof newChild === "number") { + return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, expirationTime)); + } + + if (isArray$1(newChild)) { + return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); + } + + if (getIteratorFn(newChild)) { + return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); + } + + if (isObject) { + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === "function") { + warnOnFunctionType(); + } + } + + if (typeof newChild === "undefined" && !isUnkeyedTopLevelFragment) { + switch (returnFiber.tag) { + case ClassComponent: + { + { + var instance = returnFiber.stateNode; + + if (instance.render._isMockFunction) { + break; + } + } + } + + case FunctionalComponent: + { + var Component = returnFiber.type; + invariant(false, "%s(...): Nothing was returned from render. This usually means a " + "return statement is missing. Or, to render nothing, " + "return null.", Component.displayName || Component.name || "Component"); + } + } + } + + return deleteRemainingChildren(returnFiber, currentFirstChild); + } + + return reconcileChildFibers; + } + + var reconcileChildFibers = ChildReconciler(true); + var mountChildFibers = ChildReconciler(false); + + function cloneChildFibers(current, workInProgress) { + invariant(current === null || workInProgress.child === current.child, "Resuming work not yet implemented."); + + if (workInProgress.child === null) { + return; + } + + var currentChild = workInProgress.child; + var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); + workInProgress.child = newChild; + newChild.return = workInProgress; + + while (currentChild.sibling !== null) { + currentChild = currentChild.sibling; + newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); + newChild.return = workInProgress; + } + + newChild.sibling = null; + } + + var hydrationParentFiber = null; + var nextHydratableInstance = null; + var isHydrating = false; + + function enterHydrationState(fiber) { + if (!supportsHydration) { + return false; + } + + var parentInstance = fiber.stateNode.containerInfo; + nextHydratableInstance = getFirstHydratableChild(parentInstance); + hydrationParentFiber = fiber; + isHydrating = true; + return true; + } + + function deleteHydratableInstance(returnFiber, instance) { + { + switch (returnFiber.tag) { + case HostRoot: + didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance); + break; + + case HostComponent: + didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance); + break; + } + } + var childToDelete = createFiberFromHostInstanceForDeletion(); + childToDelete.stateNode = instance; + childToDelete.return = returnFiber; + childToDelete.effectTag = Deletion; + + if (returnFiber.lastEffect !== null) { + returnFiber.lastEffect.nextEffect = childToDelete; + returnFiber.lastEffect = childToDelete; + } else { + returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; + } + } + + function insertNonHydratedInstance(returnFiber, fiber) { + fiber.effectTag |= Placement; + { + switch (returnFiber.tag) { + case HostRoot: + { + var parentContainer = returnFiber.stateNode.containerInfo; + + switch (fiber.tag) { + case HostComponent: + var type = fiber.type; + var props = fiber.pendingProps; + didNotFindHydratableContainerInstance(parentContainer, type, props); + break; + + case HostText: + var text = fiber.pendingProps; + didNotFindHydratableContainerTextInstance(parentContainer, text); + break; + } + + break; + } + + case HostComponent: + { + var parentType = returnFiber.type; + var parentProps = returnFiber.memoizedProps; + var parentInstance = returnFiber.stateNode; + + switch (fiber.tag) { + case HostComponent: + var _type = fiber.type; + var _props = fiber.pendingProps; + didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props); + break; + + case HostText: + var _text = fiber.pendingProps; + didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text); + break; + } + + break; + } + + default: + return; + } + } + } + + function tryHydrate(fiber, nextInstance) { + switch (fiber.tag) { + case HostComponent: + { + var type = fiber.type; + var props = fiber.pendingProps; + var instance = canHydrateInstance(nextInstance, type, props); + + if (instance !== null) { + fiber.stateNode = instance; + return true; + } + + return false; + } + + case HostText: + { + var text = fiber.pendingProps; + var textInstance = canHydrateTextInstance(nextInstance, text); + + if (textInstance !== null) { + fiber.stateNode = textInstance; + return true; + } + + return false; + } + + default: + return false; + } + } + + function tryToClaimNextHydratableInstance(fiber) { + if (!isHydrating) { + return; + } + + var nextInstance = nextHydratableInstance; + + if (!nextInstance) { + insertNonHydratedInstance(hydrationParentFiber, fiber); + isHydrating = false; + hydrationParentFiber = fiber; + return; + } + + var firstAttemptedInstance = nextInstance; + + if (!tryHydrate(fiber, nextInstance)) { + nextInstance = getNextHydratableSibling(firstAttemptedInstance); + + if (!nextInstance || !tryHydrate(fiber, nextInstance)) { + insertNonHydratedInstance(hydrationParentFiber, fiber); + isHydrating = false; + hydrationParentFiber = fiber; + return; + } + + deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance); + } + + hydrationParentFiber = fiber; + nextHydratableInstance = getFirstHydratableChild(nextInstance); + } + + function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { + if (!supportsHydration) { + invariant(false, "Expected prepareToHydrateHostInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + + var instance = fiber.stateNode; + var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); + fiber.updateQueue = updatePayload; + + if (updatePayload !== null) { + return true; + } + + return false; + } + + function prepareToHydrateHostTextInstance(fiber) { + if (!supportsHydration) { + invariant(false, "Expected prepareToHydrateHostTextInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + + var textInstance = fiber.stateNode; + var textContent = fiber.memoizedProps; + var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber); + { + if (shouldUpdate) { + var returnFiber = hydrationParentFiber; + + if (returnFiber !== null) { + switch (returnFiber.tag) { + case HostRoot: + { + var parentContainer = returnFiber.stateNode.containerInfo; + didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent); + break; + } + + case HostComponent: + { + var parentType = returnFiber.type; + var parentProps = returnFiber.memoizedProps; + var parentInstance = returnFiber.stateNode; + didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent); + break; + } + } + } + } + } + return shouldUpdate; + } + + function popToNextHostParent(fiber) { + var parent = fiber.return; + + while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) { + parent = parent.return; + } + + hydrationParentFiber = parent; + } + + function popHydrationState(fiber) { + if (!supportsHydration) { + return false; + } + + if (fiber !== hydrationParentFiber) { + return false; + } + + if (!isHydrating) { + popToNextHostParent(fiber); + isHydrating = true; + return false; + } + + var type = fiber.type; + + if (fiber.tag !== HostComponent || type !== "head" && type !== "body" && !shouldSetTextContent(type, fiber.memoizedProps)) { + var nextInstance = nextHydratableInstance; + + while (nextInstance) { + deleteHydratableInstance(fiber, nextInstance); + nextInstance = getNextHydratableSibling(nextInstance); + } + } + + popToNextHostParent(fiber); + nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null; + return true; + } + + function resetHydrationState() { + if (!supportsHydration) { + return; + } + + hydrationParentFiber = null; + nextHydratableInstance = null; + isHydrating = false; + } + + var getCurrentFiberStackAddendum$1 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum; + var didWarnAboutBadClass = void 0; + var didWarnAboutGetDerivedStateOnFunctionalComponent = void 0; + var didWarnAboutStatelessRefs = void 0; + { + didWarnAboutBadClass = {}; + didWarnAboutGetDerivedStateOnFunctionalComponent = {}; + didWarnAboutStatelessRefs = {}; + } + + function reconcileChildren(current, workInProgress, nextChildren) { + reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); + } + + function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { + if (current === null) { + workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + } else { + workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); + } + } + + function updateForwardRef(current, workInProgress) { + var render = workInProgress.type.render; + var nextProps = workInProgress.pendingProps; + var ref = workInProgress.ref; + + if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextProps) { + var currentRef = current !== null ? current.ref : null; + + if (ref === currentRef) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + } + + var nextChildren = void 0; + { + ReactCurrentOwner.current = workInProgress; + ReactDebugCurrentFiber.setCurrentPhase("render"); + nextChildren = render(nextProps, ref); + ReactDebugCurrentFiber.setCurrentPhase(null); + } + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextProps); + return workInProgress.child; + } + + function updateFragment(current, workInProgress) { + var nextChildren = workInProgress.pendingProps; + + if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextChildren) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextChildren); + return workInProgress.child; + } + + function updateMode(current, workInProgress) { + var nextChildren = workInProgress.pendingProps.children; + + if (hasContextChanged()) {} else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextChildren); + return workInProgress.child; + } + + function updateProfiler(current, workInProgress) { + var nextProps = workInProgress.pendingProps; + + if (enableProfilerTimer) { + workInProgress.effectTag |= Update; + } + + if (workInProgress.memoizedProps === nextProps) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var nextChildren = nextProps.children; + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextProps); + return workInProgress.child; + } + + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + + if (current === null && ref !== null || current !== null && current.ref !== ref) { + workInProgress.effectTag |= Ref; + } + } + + function updateFunctionalComponent(current, workInProgress) { + var fn = workInProgress.type; + var nextProps = workInProgress.pendingProps; + + if (hasContextChanged()) {} else { + if (workInProgress.memoizedProps === nextProps) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + } + + var unmaskedContext = getUnmaskedContext(workInProgress); + var context = getMaskedContext(workInProgress, unmaskedContext); + var nextChildren = void 0; + { + ReactCurrentOwner.current = workInProgress; + ReactDebugCurrentFiber.setCurrentPhase("render"); + nextChildren = fn(nextProps, context); + ReactDebugCurrentFiber.setCurrentPhase(null); + } + workInProgress.effectTag |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextProps); + return workInProgress.child; + } + + function updateClassComponent(current, workInProgress, renderExpirationTime) { + var hasContext = pushContextProvider(workInProgress); + var shouldUpdate = void 0; + + if (current === null) { + if (workInProgress.stateNode === null) { + constructClassInstance(workInProgress, workInProgress.pendingProps, renderExpirationTime); + mountClassInstance(workInProgress, renderExpirationTime); + shouldUpdate = true; + } else { + shouldUpdate = resumeMountClassInstance(workInProgress, renderExpirationTime); + } + } else { + shouldUpdate = updateClassInstance(current, workInProgress, renderExpirationTime); + } + + return finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime); + } + + function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { + markRef(current, workInProgress); + var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect; + + if (!shouldUpdate && !didCaptureError) { + if (hasContext) { + invalidateContextProvider(workInProgress, false); + } + + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + ReactCurrentOwner.current = workInProgress; + var nextChildren = void 0; + + if (didCaptureError && (!enableGetDerivedStateFromCatch || typeof ctor.getDerivedStateFromCatch !== "function")) { + nextChildren = null; + + if (enableProfilerTimer) { + stopBaseRenderTimerIfRunning(); + } + } else { + { + ReactDebugCurrentFiber.setCurrentPhase("render"); + nextChildren = instance.render(); + + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + instance.render(); + } + + ReactDebugCurrentFiber.setCurrentPhase(null); + } + } + + workInProgress.effectTag |= PerformedWork; + + if (didCaptureError) { + reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime); + workInProgress.child = null; + } + + reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime); + memoizeState(workInProgress, instance.state); + memoizeProps(workInProgress, instance.props); + + if (hasContext) { + invalidateContextProvider(workInProgress, true); + } + + return workInProgress.child; + } + + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + + if (root.pendingContext) { + pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); + } else if (root.context) { + pushTopLevelContextObject(workInProgress, root.context, false); + } + + pushHostContainer(workInProgress, root.containerInfo); + } + + function updateHostRoot(current, workInProgress, renderExpirationTime) { + pushHostRootContext(workInProgress); + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + var nextProps = workInProgress.pendingProps; + var prevState = workInProgress.memoizedState; + var prevChildren = prevState !== null ? prevState.element : null; + processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime); + var nextState = workInProgress.memoizedState; + var nextChildren = nextState.element; + + if (nextChildren === prevChildren) { + resetHydrationState(); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var root = workInProgress.stateNode; + + if ((current === null || current.child === null) && root.hydrate && enterHydrationState(workInProgress)) { + workInProgress.effectTag |= Placement; + workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + } else { + resetHydrationState(); + reconcileChildren(current, workInProgress, nextChildren); + } + + return workInProgress.child; + } + + resetHydrationState(); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + function updateHostComponent(current, workInProgress, renderExpirationTime) { + pushHostContext(workInProgress); + + if (current === null) { + tryToClaimNextHydratableInstance(workInProgress); + } + + var type = workInProgress.type; + var memoizedProps = workInProgress.memoizedProps; + var nextProps = workInProgress.pendingProps; + var prevProps = current !== null ? current.memoizedProps : null; + + if (hasContextChanged()) {} else if (memoizedProps === nextProps) { + var isHidden = workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps); + + if (isHidden) { + workInProgress.expirationTime = Never; + } + + if (!isHidden || renderExpirationTime !== Never) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + } + + var nextChildren = nextProps.children; + var isDirectTextChild = shouldSetTextContent(type, nextProps); + + if (isDirectTextChild) { + nextChildren = null; + } else if (prevProps && shouldSetTextContent(type, prevProps)) { + workInProgress.effectTag |= ContentReset; + } + + markRef(current, workInProgress); + + if (renderExpirationTime !== Never && workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps)) { + workInProgress.expirationTime = Never; + workInProgress.memoizedProps = nextProps; + return null; + } + + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextProps); + return workInProgress.child; + } + + function updateHostText(current, workInProgress) { + if (current === null) { + tryToClaimNextHydratableInstance(workInProgress); + } + + var nextProps = workInProgress.pendingProps; + memoizeProps(workInProgress, nextProps); + return null; + } + + function mountIndeterminateComponent(current, workInProgress, renderExpirationTime) { + invariant(current === null, "An indeterminate component should never have mounted. This error is " + "likely caused by a bug in React. Please file an issue."); + var fn = workInProgress.type; + var props = workInProgress.pendingProps; + var unmaskedContext = getUnmaskedContext(workInProgress); + var context = getMaskedContext(workInProgress, unmaskedContext); + var value = void 0; + { + if (fn.prototype && typeof fn.prototype.render === "function") { + var componentName = getComponentName(workInProgress) || "Unknown"; + + if (!didWarnAboutBadClass[componentName]) { + warning(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + "This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName); + didWarnAboutBadClass[componentName] = true; + } + } + + if (workInProgress.mode & StrictMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); + } + + ReactCurrentOwner.current = workInProgress; + value = fn(props, context); + } + workInProgress.effectTag |= PerformedWork; + + if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { + var Component = workInProgress.type; + workInProgress.tag = ClassComponent; + workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null; + var getDerivedStateFromProps = Component.getDerivedStateFromProps; + + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); + } + + var hasContext = pushContextProvider(workInProgress); + adoptClassInstance(workInProgress, value); + mountClassInstance(workInProgress, renderExpirationTime); + return finishClassComponent(current, workInProgress, true, hasContext, renderExpirationTime); + } else { + workInProgress.tag = FunctionalComponent; + { + var _Component = workInProgress.type; + + if (_Component) { + !!_Component.childContextTypes ? warning(false, "%s(...): childContextTypes cannot be defined on a functional component.", _Component.displayName || _Component.name || "Component") : void 0; + } + + if (workInProgress.ref !== null) { + var info = ""; + var ownerName = ReactDebugCurrentFiber.getCurrentFiberOwnerName(); + + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + + var warningKey = ownerName || workInProgress._debugID || ""; + var debugSource = workInProgress._debugSource; + + if (debugSource) { + warningKey = debugSource.fileName + ":" + debugSource.lineNumber; + } + + if (!didWarnAboutStatelessRefs[warningKey]) { + didWarnAboutStatelessRefs[warningKey] = true; + warning(false, "Stateless function components cannot be given refs. " + "Attempts to access this ref will fail.%s%s", info, ReactDebugCurrentFiber.getCurrentFiberStackAddendum()); + } + } + + if (typeof fn.getDerivedStateFromProps === "function") { + var _componentName = getComponentName(workInProgress) || "Unknown"; + + if (!didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName]) { + warning(false, "%s: Stateless functional components do not support getDerivedStateFromProps.", _componentName); + didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName] = true; + } + } + } + reconcileChildren(current, workInProgress, value); + memoizeProps(workInProgress, props); + return workInProgress.child; + } + } + + function updateTimeoutComponent(current, workInProgress, renderExpirationTime) { + if (enableSuspense) { + var nextProps = workInProgress.pendingProps; + var prevProps = workInProgress.memoizedProps; + var prevDidTimeout = workInProgress.memoizedState; + var alreadyCaptured = (workInProgress.effectTag & DidCapture) === NoEffect; + var nextDidTimeout = !alreadyCaptured; + + if (hasContextChanged()) {} else if (nextProps === prevProps && nextDidTimeout === prevDidTimeout) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var render = nextProps.children; + var nextChildren = render(nextDidTimeout); + workInProgress.memoizedProps = nextProps; + workInProgress.memoizedState = nextDidTimeout; + reconcileChildren(current, workInProgress, nextChildren); + return workInProgress.child; + } else { + return null; + } + } + + function updatePortalComponent(current, workInProgress, renderExpirationTime) { + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + var nextChildren = workInProgress.pendingProps; + + if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextChildren) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + if (current === null) { + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + memoizeProps(workInProgress, nextChildren); + } else { + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextChildren); + } + + return workInProgress.child; + } + + function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { + var fiber = workInProgress.child; + + if (fiber !== null) { + fiber.return = workInProgress; + } + + while (fiber !== null) { + var nextFiber = void 0; + + switch (fiber.tag) { + case ContextConsumer: + var observedBits = fiber.stateNode | 0; + + if (fiber.type === context && (observedBits & changedBits) !== 0) { + var node = fiber; + + while (node !== null) { + var alternate = node.alternate; + + if (node.expirationTime === NoWork || node.expirationTime > renderExpirationTime) { + node.expirationTime = renderExpirationTime; + + if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) { + alternate.expirationTime = renderExpirationTime; + } + } else if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) { + alternate.expirationTime = renderExpirationTime; + } else { + break; + } + + node = node.return; + } + + nextFiber = null; + } else { + nextFiber = fiber.child; + } + + break; + + case ContextProvider: + nextFiber = fiber.type === workInProgress.type ? null : fiber.child; + break; + + default: + nextFiber = fiber.child; + break; + } + + if (nextFiber !== null) { + nextFiber.return = fiber; + } else { + nextFiber = fiber; + + while (nextFiber !== null) { + if (nextFiber === workInProgress) { + nextFiber = null; + break; + } + + var sibling = nextFiber.sibling; + + if (sibling !== null) { + sibling.return = nextFiber.return; + nextFiber = sibling; + break; + } + + nextFiber = nextFiber.return; + } + } + + fiber = nextFiber; + } + } + + function updateContextProvider(current, workInProgress, renderExpirationTime) { + var providerType = workInProgress.type; + var context = providerType._context; + var newProps = workInProgress.pendingProps; + var oldProps = workInProgress.memoizedProps; + var canBailOnProps = true; + + if (hasContextChanged()) { + canBailOnProps = false; + } else if (oldProps === newProps) { + workInProgress.stateNode = 0; + pushProvider(workInProgress); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var newValue = newProps.value; + workInProgress.memoizedProps = newProps; + { + var providerPropTypes = workInProgress.type.propTypes; + + if (providerPropTypes) { + checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider", getCurrentFiberStackAddendum$1); + } + } + var changedBits = void 0; + + if (oldProps === null) { + changedBits = MAX_SIGNED_31_BIT_INT; + } else { + if (oldProps.value === newProps.value) { + if (oldProps.children === newProps.children && canBailOnProps) { + workInProgress.stateNode = 0; + pushProvider(workInProgress); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + changedBits = 0; + } else { + var oldValue = oldProps.value; + + if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { + if (oldProps.children === newProps.children && canBailOnProps) { + workInProgress.stateNode = 0; + pushProvider(workInProgress); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + changedBits = 0; + } else { + changedBits = typeof context._calculateChangedBits === "function" ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; + { + !((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits) ? warning(false, "calculateChangedBits: Expected the return value to be a " + "31-bit integer. Instead received: %s", changedBits) : void 0; + } + changedBits |= 0; + + if (changedBits === 0) { + if (oldProps.children === newProps.children && canBailOnProps) { + workInProgress.stateNode = 0; + pushProvider(workInProgress); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + } else { + propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); + } + } + } + } + + workInProgress.stateNode = changedBits; + pushProvider(workInProgress); + var newChildren = newProps.children; + reconcileChildren(current, workInProgress, newChildren); + return workInProgress.child; + } + + function updateContextConsumer(current, workInProgress, renderExpirationTime) { + var context = workInProgress.type; + var newProps = workInProgress.pendingProps; + var oldProps = workInProgress.memoizedProps; + var newValue = getContextCurrentValue(context); + var changedBits = getContextChangedBits(context); + + if (hasContextChanged()) {} else if (changedBits === 0 && oldProps === newProps) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + workInProgress.memoizedProps = newProps; + var observedBits = newProps.unstable_observedBits; + + if (observedBits === undefined || observedBits === null) { + observedBits = MAX_SIGNED_31_BIT_INT; + } + + workInProgress.stateNode = observedBits; + + if ((changedBits & observedBits) !== 0) { + propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); + } else if (oldProps === newProps) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var render = newProps.children; + { + !(typeof render === "function") ? warning(false, "A context consumer was rendered with multiple children, or a child " + "that isn't a function. A context consumer expects a single child " + "that is a function. If you did pass a function, make sure there " + "is no trailing or leading whitespace around it.") : void 0; + } + var newChildren = void 0; + { + ReactCurrentOwner.current = workInProgress; + ReactDebugCurrentFiber.setCurrentPhase("render"); + newChildren = render(newValue); + ReactDebugCurrentFiber.setCurrentPhase(null); + } + workInProgress.effectTag |= PerformedWork; + reconcileChildren(current, workInProgress, newChildren); + return workInProgress.child; + } + + function bailoutOnAlreadyFinishedWork(current, workInProgress) { + cancelWorkTimer(workInProgress); + + if (enableProfilerTimer) { + stopBaseRenderTimerIfRunning(); + } + + cloneChildFibers(current, workInProgress); + return workInProgress.child; + } + + function bailoutOnLowPriority(current, workInProgress) { + cancelWorkTimer(workInProgress); + + if (enableProfilerTimer) { + stopBaseRenderTimerIfRunning(); + } + + switch (workInProgress.tag) { + case HostRoot: + pushHostRootContext(workInProgress); + break; + + case ClassComponent: + pushContextProvider(workInProgress); + break; + + case HostPortal: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + + case ContextProvider: + pushProvider(workInProgress); + break; + } + + return null; + } + + function memoizeProps(workInProgress, nextProps) { + workInProgress.memoizedProps = nextProps; + } + + function memoizeState(workInProgress, nextState) { + workInProgress.memoizedState = nextState; + } + + function beginWork(current, workInProgress, renderExpirationTime) { + if (enableProfilerTimer) { + if (workInProgress.mode & ProfileMode) { + markActualRenderTimeStarted(workInProgress); + } + } + + if (workInProgress.expirationTime === NoWork || workInProgress.expirationTime > renderExpirationTime) { + return bailoutOnLowPriority(current, workInProgress); + } + + switch (workInProgress.tag) { + case IndeterminateComponent: + return mountIndeterminateComponent(current, workInProgress, renderExpirationTime); + + case FunctionalComponent: + return updateFunctionalComponent(current, workInProgress); + + case ClassComponent: + return updateClassComponent(current, workInProgress, renderExpirationTime); + + case HostRoot: + return updateHostRoot(current, workInProgress, renderExpirationTime); + + case HostComponent: + return updateHostComponent(current, workInProgress, renderExpirationTime); + + case HostText: + return updateHostText(current, workInProgress); + + case TimeoutComponent: + return updateTimeoutComponent(current, workInProgress, renderExpirationTime); + + case HostPortal: + return updatePortalComponent(current, workInProgress, renderExpirationTime); + + case ForwardRef: + return updateForwardRef(current, workInProgress); + + case Fragment: + return updateFragment(current, workInProgress); + + case Mode: + return updateMode(current, workInProgress); + + case Profiler: + return updateProfiler(current, workInProgress); + + case ContextProvider: + return updateContextProvider(current, workInProgress, renderExpirationTime); + + case ContextConsumer: + return updateContextConsumer(current, workInProgress, renderExpirationTime); + + default: + invariant(false, "Unknown unit of work tag. This error is likely caused by a bug in " + "React. Please file an issue."); + } + } + + function markUpdate(workInProgress) { + workInProgress.effectTag |= Update; + } + + function markRef$1(workInProgress) { + workInProgress.effectTag |= Ref; + } + + function appendAllChildren(parent, workInProgress) { + var node = workInProgress.child; + + while (node !== null) { + if (node.tag === HostComponent || node.tag === HostText) { + appendInitialChild(parent, node.stateNode); + } else if (node.tag === HostPortal) {} else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === workInProgress) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + var updateHostContainer = void 0; + var updateHostComponent$1 = void 0; + var updateHostText$1 = void 0; + + if (supportsMutation) { + updateHostContainer = function updateHostContainer(workInProgress) {}; + + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { + workInProgress.updateQueue = updatePayload; + + if (updatePayload) { + markUpdate(workInProgress); + } + }; + + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + if (oldText !== newText) { + markUpdate(workInProgress); + } + }; + } else if (supportsPersistence) { + var appendAllChildrenToContainer = function appendAllChildrenToContainer(containerChildSet, workInProgress) { + var node = workInProgress.child; + + while (node !== null) { + if (node.tag === HostComponent || node.tag === HostText) { + appendChildToContainerChildSet(containerChildSet, node.stateNode); + } else if (node.tag === HostPortal) {} else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === workInProgress) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + }; + + updateHostContainer = function updateHostContainer(workInProgress) { + var portalOrRoot = workInProgress.stateNode; + var childrenUnchanged = workInProgress.firstEffect === null; + + if (childrenUnchanged) {} else { + var container = portalOrRoot.containerInfo; + var newChildSet = createContainerChildSet(container); + appendAllChildrenToContainer(newChildSet, workInProgress); + portalOrRoot.pendingChildren = newChildSet; + markUpdate(workInProgress); + finalizeContainerChildren(container, newChildSet); + } + }; + + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { + var childrenUnchanged = workInProgress.firstEffect === null; + var currentInstance = current.stateNode; + + if (childrenUnchanged && updatePayload === null) { + workInProgress.stateNode = currentInstance; + } else { + var recyclableInstance = workInProgress.stateNode; + var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance); + + if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) { + markUpdate(workInProgress); + } + + workInProgress.stateNode = newInstance; + + if (childrenUnchanged) { + markUpdate(workInProgress); + } else { + appendAllChildren(newInstance, workInProgress); + } + } + }; + + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + if (oldText !== newText) { + var rootContainerInstance = getRootHostContainer(); + var currentHostContext = getHostContext(); + workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress); + markUpdate(workInProgress); + } + }; + } else { + updateHostContainer = function updateHostContainer(workInProgress) {}; + + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) {}; + + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) {}; + } + + function completeWork(current, workInProgress, renderExpirationTime) { + var newProps = workInProgress.pendingProps; + + if (enableProfilerTimer) { + if (workInProgress.mode & ProfileMode) { + recordElapsedActualRenderTime(workInProgress); + } + } + + switch (workInProgress.tag) { + case FunctionalComponent: + return null; + + case ClassComponent: + { + popContextProvider(workInProgress); + return null; + } + + case HostRoot: + { + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + var fiberRoot = workInProgress.stateNode; + + if (fiberRoot.pendingContext) { + fiberRoot.context = fiberRoot.pendingContext; + fiberRoot.pendingContext = null; + } + + if (current === null || current.child === null) { + popHydrationState(workInProgress); + workInProgress.effectTag &= ~Placement; + } + + updateHostContainer(workInProgress); + return null; + } + + case HostComponent: + { + popHostContext(workInProgress); + var rootContainerInstance = getRootHostContainer(); + var type = workInProgress.type; + + if (current !== null && workInProgress.stateNode != null) { + var oldProps = current.memoizedProps; + var instance = workInProgress.stateNode; + var currentHostContext = getHostContext(); + var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); + updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext); + + if (current.ref !== workInProgress.ref) { + markRef$1(workInProgress); + } + } else { + if (!newProps) { + invariant(workInProgress.stateNode !== null, "We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + return null; + } + + var _currentHostContext = getHostContext(); + + var wasHydrated = popHydrationState(workInProgress); + + if (wasHydrated) { + if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, _currentHostContext)) { + markUpdate(workInProgress); + } + } else { + var _instance = createInstance(type, newProps, rootContainerInstance, _currentHostContext, workInProgress); + + appendAllChildren(_instance, workInProgress); + + if (finalizeInitialChildren(_instance, type, newProps, rootContainerInstance, _currentHostContext)) { + markUpdate(workInProgress); + } + + workInProgress.stateNode = _instance; + } + + if (workInProgress.ref !== null) { + markRef$1(workInProgress); + } + } + + return null; + } + + case HostText: + { + var newText = newProps; + + if (current && workInProgress.stateNode != null) { + var oldText = current.memoizedProps; + updateHostText$1(current, workInProgress, oldText, newText); + } else { + if (typeof newText !== "string") { + invariant(workInProgress.stateNode !== null, "We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + return null; + } + + var _rootContainerInstance = getRootHostContainer(); + + var _currentHostContext2 = getHostContext(); + + var _wasHydrated = popHydrationState(workInProgress); + + if (_wasHydrated) { + if (prepareToHydrateHostTextInstance(workInProgress)) { + markUpdate(workInProgress); + } + } else { + workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext2, workInProgress); + } + } + + return null; + } + + case ForwardRef: + return null; + + case TimeoutComponent: + return null; + + case Fragment: + return null; + + case Mode: + return null; + + case Profiler: + return null; + + case HostPortal: + popHostContainer(workInProgress); + updateHostContainer(workInProgress); + return null; + + case ContextProvider: + popProvider(workInProgress); + return null; + + case ContextConsumer: + return null; + + case IndeterminateComponent: + invariant(false, "An indeterminate component should have become determinate before " + "completing. This error is likely caused by a bug in React. Please " + "file an issue."); + + default: + invariant(false, "Unknown unit of work tag. This error is likely caused by a bug in " + "React. Please file an issue."); + } + } + + function showErrorDialog(capturedError) { + var componentStack = capturedError.componentStack, + error = capturedError.error; + var errorToHandle = void 0; + + if (error instanceof Error) { + var message = error.message, + name = error.name; + var summary = message ? name + ": " + message : name; + errorToHandle = error; + + try { + errorToHandle.message = summary + "\n\nThis error is located at:" + componentStack; + } catch (e) {} + } else if (typeof error === "string") { + errorToHandle = new Error(error + "\n\nThis error is located at:" + componentStack); + } else { + errorToHandle = new Error("Unspecified error at:" + componentStack); + } + + ExceptionsManager.handleException(errorToHandle, false); + return false; + } + + function logCapturedError(capturedError) { + var logError = showErrorDialog(capturedError); + + if (logError === false) { + return; + } + + var error = capturedError.error; + var suppressLogging = error && error.suppressReactErrorLogging; + + if (suppressLogging) { + return; + } + + { + var componentName = capturedError.componentName, + componentStack = capturedError.componentStack, + errorBoundaryName = capturedError.errorBoundaryName, + errorBoundaryFound = capturedError.errorBoundaryFound, + willRetry = capturedError.willRetry; + var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:"; + var errorBoundaryMessage = void 0; + + if (errorBoundaryFound && errorBoundaryName) { + if (willRetry) { + errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); + } else { + errorBoundaryMessage = "This error was initially handled by the error boundary " + errorBoundaryName + ".\n" + "Recreating the tree from scratch failed so React will unmount the tree."; + } + } else { + errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + "Visit https://fb.me/react-error-boundaries to learn more about error boundaries."; + } + + var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + ("" + errorBoundaryMessage); + console.error(combinedMessage); + } + } + + var invokeGuardedCallback$3 = ReactErrorUtils.invokeGuardedCallback; + var hasCaughtError$1 = ReactErrorUtils.hasCaughtError; + var clearCaughtError$1 = ReactErrorUtils.clearCaughtError; + var didWarnAboutUndefinedSnapshotBeforeUpdate = null; + { + didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); + } + + function logError(boundary, errorInfo) { + var source = errorInfo.source; + var stack = errorInfo.stack; + + if (stack === null && source !== null) { + stack = getStackAddendumByWorkInProgressFiber(source); + } + + var capturedError = { + componentName: source !== null ? getComponentName(source) : null, + componentStack: stack !== null ? stack : "", + error: errorInfo.value, + errorBoundary: null, + errorBoundaryName: null, + errorBoundaryFound: false, + willRetry: false + }; + + if (boundary !== null && boundary.tag === ClassComponent) { + capturedError.errorBoundary = boundary.stateNode; + capturedError.errorBoundaryName = getComponentName(boundary); + capturedError.errorBoundaryFound = true; + capturedError.willRetry = true; + } + + try { + logCapturedError(capturedError); + } catch (e) { + var suppressLogging = e && e.suppressReactErrorLogging; + + if (!suppressLogging) { + console.error(e); + } + } + } + + var callComponentWillUnmountWithTimer = function callComponentWillUnmountWithTimer(current, instance) { + startPhaseTimer(current, "componentWillUnmount"); + instance.props = current.memoizedProps; + instance.state = current.memoizedState; + instance.componentWillUnmount(); + stopPhaseTimer(); + }; + + function safelyCallComponentWillUnmount(current, instance) { + { + invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance); + + if (hasCaughtError$1()) { + var unmountError = clearCaughtError$1(); + captureCommitPhaseError(current, unmountError); + } + } + } + + function safelyDetachRef(current) { + var ref = current.ref; + + if (ref !== null) { + if (typeof ref === "function") { + { + invokeGuardedCallback$3(null, ref, null, null); + + if (hasCaughtError$1()) { + var refError = clearCaughtError$1(); + captureCommitPhaseError(current, refError); + } + } + } else { + ref.current = null; + } + } + } + + function commitBeforeMutationLifeCycles(current, finishedWork) { + switch (finishedWork.tag) { + case ClassComponent: + { + if (finishedWork.effectTag & Snapshot) { + if (current !== null) { + var prevProps = current.memoizedProps; + var prevState = current.memoizedState; + startPhaseTimer(finishedWork, "getSnapshotBeforeUpdate"); + var instance = finishedWork.stateNode; + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState); + { + var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; + + if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) { + didWarnSet.add(finishedWork.type); + warning(false, "%s.getSnapshotBeforeUpdate(): A snapshot value (or null) " + "must be returned. You have returned undefined.", getComponentName(finishedWork)); + } + } + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + stopPhaseTimer(); + } + } + + return; + } + + case HostRoot: + case HostComponent: + case HostText: + case HostPortal: + return; + + default: + { + invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); + } + } + } + + function commitLifeCycles(finishedRoot, current, finishedWork, currentTime, committedExpirationTime) { + switch (finishedWork.tag) { + case ClassComponent: + { + var instance = finishedWork.stateNode; + + if (finishedWork.effectTag & Update) { + if (current === null) { + startPhaseTimer(finishedWork, "componentDidMount"); + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + instance.componentDidMount(); + stopPhaseTimer(); + } else { + var prevProps = current.memoizedProps; + var prevState = current.memoizedState; + startPhaseTimer(finishedWork, "componentDidUpdate"); + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + stopPhaseTimer(); + } + } + + var updateQueue = finishedWork.updateQueue; + + if (updateQueue !== null) { + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime); + } + + return; + } + + case HostRoot: + { + var _updateQueue = finishedWork.updateQueue; + + if (_updateQueue !== null) { + var _instance = null; + + if (finishedWork.child !== null) { + switch (finishedWork.child.tag) { + case HostComponent: + _instance = getPublicInstance(finishedWork.child.stateNode); + break; + + case ClassComponent: + _instance = finishedWork.child.stateNode; + break; + } + } + + commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime); + } + + return; + } + + case HostComponent: + { + var _instance2 = finishedWork.stateNode; + + if (current === null && finishedWork.effectTag & Update) { + var type = finishedWork.type; + var props = finishedWork.memoizedProps; + } + + return; + } + + case HostText: + { + return; + } + + case HostPortal: + { + return; + } + + case Profiler: + { + return; + } + + case TimeoutComponent: + { + return; + } + + default: + { + invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); + } + } + } + + function commitAttachRef(finishedWork) { + var ref = finishedWork.ref; + + if (ref !== null) { + var instance = finishedWork.stateNode; + var instanceToUse = void 0; + + switch (finishedWork.tag) { + case HostComponent: + instanceToUse = getPublicInstance(instance); + break; + + default: + instanceToUse = instance; + } + + if (typeof ref === "function") { + ref(instanceToUse); + } else { + { + if (!ref.hasOwnProperty("current")) { + warning(false, "Unexpected ref object provided for %s. " + "Use either a ref-setter function or React.createRef().%s", getComponentName(finishedWork), getStackAddendumByWorkInProgressFiber(finishedWork)); + } + } + ref.current = instanceToUse; + } + } + } + + function commitDetachRef(current) { + var currentRef = current.ref; + + if (currentRef !== null) { + if (typeof currentRef === "function") { + currentRef(null); + } else { + currentRef.current = null; + } + } + } + + function commitUnmount(current) { + if (typeof onCommitUnmount === "function") { + onCommitUnmount(current); + } + + switch (current.tag) { + case ClassComponent: + { + safelyDetachRef(current); + var instance = current.stateNode; + + if (typeof instance.componentWillUnmount === "function") { + safelyCallComponentWillUnmount(current, instance); + } + + return; + } + + case HostComponent: + { + safelyDetachRef(current); + return; + } + + case HostPortal: + { + if (supportsMutation) { + unmountHostComponents(current); + } else if (supportsPersistence) { + emptyPortalContainer(current); + } + + return; + } + } + } + + function commitNestedUnmounts(root) { + var node = root; + + while (true) { + commitUnmount(node); + + if (node.child !== null && (!supportsMutation || node.tag !== HostPortal)) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === root) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === root) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function detachFiber(current) { + current.return = null; + current.child = null; + + if (current.alternate) { + current.alternate.child = null; + current.alternate.return = null; + } + } + + function emptyPortalContainer(current) { + if (!supportsPersistence) { + return; + } + + var portal = current.stateNode; + var containerInfo = portal.containerInfo; + var emptyChildSet = createContainerChildSet(containerInfo); + replaceContainerChildren(containerInfo, emptyChildSet); + } + + function commitContainer(finishedWork) { + if (!supportsPersistence) { + return; + } + + switch (finishedWork.tag) { + case ClassComponent: + { + return; + } + + case HostComponent: + { + return; + } + + case HostText: + { + return; + } + + case HostRoot: + case HostPortal: + { + var portalOrRoot = finishedWork.stateNode; + var containerInfo = portalOrRoot.containerInfo, + _pendingChildren = portalOrRoot.pendingChildren; + replaceContainerChildren(containerInfo, _pendingChildren); + return; + } + + default: + { + invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); + } + } + } + + function getHostParentFiber(fiber) { + var parent = fiber.return; + + while (parent !== null) { + if (isHostParent(parent)) { + return parent; + } + + parent = parent.return; + } + + invariant(false, "Expected to find a host parent. This error is likely caused by a bug " + "in React. Please file an issue."); + } + + function isHostParent(fiber) { + return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; + } + + function getHostSibling(fiber) { + var node = fiber; + + siblings: while (true) { + while (node.sibling === null) { + if (node.return === null || isHostParent(node.return)) { + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + + while (node.tag !== HostComponent && node.tag !== HostText) { + if (node.effectTag & Placement) { + continue siblings; + } + + if (node.child === null || node.tag === HostPortal) { + continue siblings; + } else { + node.child.return = node; + node = node.child; + } + } + + if (!(node.effectTag & Placement)) { + return node.stateNode; + } + } + } + + function commitPlacement(finishedWork) { + if (!supportsMutation) { + return; + } + + var parentFiber = getHostParentFiber(finishedWork); + var parent = void 0; + var isContainer = void 0; + + switch (parentFiber.tag) { + case HostComponent: + parent = parentFiber.stateNode; + isContainer = false; + break; + + case HostRoot: + parent = parentFiber.stateNode.containerInfo; + isContainer = true; + break; + + case HostPortal: + parent = parentFiber.stateNode.containerInfo; + isContainer = true; + break; + + default: + invariant(false, "Invalid host parent fiber. This error is likely caused by a bug " + "in React. Please file an issue."); + } + + if (parentFiber.effectTag & ContentReset) { + parentFiber.effectTag &= ~ContentReset; + } + + var before = getHostSibling(finishedWork); + var node = finishedWork; + + while (true) { + if (node.tag === HostComponent || node.tag === HostText) { + if (before) { + if (isContainer) { + insertInContainerBefore(parent, node.stateNode, before); + } else { + insertBefore(parent, node.stateNode, before); + } + } else { + if (isContainer) { + appendChildToContainer(parent, node.stateNode); + } else { + appendChild(parent, node.stateNode); + } + } + } else if (node.tag === HostPortal) {} else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === finishedWork) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function unmountHostComponents(current) { + var node = current; + var currentParentIsValid = false; + var currentParent = void 0; + var currentParentIsContainer = void 0; + + while (true) { + if (!currentParentIsValid) { + var parent = node.return; + + findParent: while (true) { + invariant(parent !== null, "Expected to find a host parent. This error is likely caused by " + "a bug in React. Please file an issue."); + + switch (parent.tag) { + case HostComponent: + currentParent = parent.stateNode; + currentParentIsContainer = false; + break findParent; + + case HostRoot: + currentParent = parent.stateNode.containerInfo; + currentParentIsContainer = true; + break findParent; + + case HostPortal: + currentParent = parent.stateNode.containerInfo; + currentParentIsContainer = true; + break findParent; + } + + parent = parent.return; + } + + currentParentIsValid = true; + } + + if (node.tag === HostComponent || node.tag === HostText) { + commitNestedUnmounts(node); + + if (currentParentIsContainer) { + removeChildFromContainer(currentParent, node.stateNode); + } else { + removeChild(currentParent, node.stateNode); + } + } else if (node.tag === HostPortal) { + currentParent = node.stateNode.containerInfo; + + if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + } else { + commitUnmount(node); + + if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + } + + if (node === current) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === current) { + return; + } + + node = node.return; + + if (node.tag === HostPortal) { + currentParentIsValid = false; + } + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function commitDeletion(current) { + if (supportsMutation) { + unmountHostComponents(current); + } else { + commitNestedUnmounts(current); + } + + detachFiber(current); + } + + function commitWork(current, finishedWork) { + if (!supportsMutation) { + commitContainer(finishedWork); + return; + } + + switch (finishedWork.tag) { + case ClassComponent: + { + return; + } + + case HostComponent: + { + var instance = finishedWork.stateNode; + + if (instance != null) { + var newProps = finishedWork.memoizedProps; + var oldProps = current !== null ? current.memoizedProps : newProps; + var type = finishedWork.type; + var updatePayload = finishedWork.updateQueue; + finishedWork.updateQueue = null; + + if (updatePayload !== null) { + commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork); + } + } + + return; + } + + case HostText: + { + invariant(finishedWork.stateNode !== null, "This should have a text node initialized. This error is likely " + "caused by a bug in React. Please file an issue."); + var textInstance = finishedWork.stateNode; + var newText = finishedWork.memoizedProps; + var oldText = current !== null ? current.memoizedProps : newText; + commitTextUpdate(textInstance, oldText, newText); + return; + } + + case HostRoot: + { + return; + } + + case Profiler: + { + if (enableProfilerTimer) { + var onRender = finishedWork.memoizedProps.onRender; + onRender(finishedWork.memoizedProps.id, current === null ? "mount" : "update", finishedWork.actualDuration, finishedWork.treeBaseTime, finishedWork.actualStartTime, getCommitTime()); + } + + return; + } + + case TimeoutComponent: + { + return; + } + + default: + { + invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); + } + } + } + + function commitResetTextContent(current) { + if (!supportsMutation) { + return; + } + + resetTextContent(current.stateNode); + } + + function createRootErrorUpdate(fiber, errorInfo, expirationTime) { + var update = createUpdate(expirationTime); + update.tag = CaptureUpdate; + update.payload = { + element: null + }; + var error = errorInfo.value; + + update.callback = function () { + onUncaughtError(error); + logError(fiber, errorInfo); + }; + + return update; + } + + function createClassErrorUpdate(fiber, errorInfo, expirationTime) { + var update = createUpdate(expirationTime); + update.tag = CaptureUpdate; + var getDerivedStateFromCatch = fiber.type.getDerivedStateFromCatch; + + if (enableGetDerivedStateFromCatch && typeof getDerivedStateFromCatch === "function") { + var error = errorInfo.value; + + update.payload = function () { + return getDerivedStateFromCatch(error); + }; + } + + var inst = fiber.stateNode; + + if (inst !== null && typeof inst.componentDidCatch === "function") { + update.callback = function callback() { + if (!enableGetDerivedStateFromCatch || getDerivedStateFromCatch !== "function") { + markLegacyErrorBoundaryAsFailed(this); + } + + var error = errorInfo.value; + var stack = errorInfo.stack; + logError(fiber, errorInfo); + this.componentDidCatch(error, { + componentStack: stack !== null ? stack : "" + }); + }; + } + + return update; + } + + function schedulePing(finishedWork) { + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, finishedWork); + var recoveryUpdate = createUpdate(expirationTime); + enqueueUpdate(finishedWork, recoveryUpdate, expirationTime); + scheduleWork(finishedWork, expirationTime); + } + + function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime, currentTimeMs) { + sourceFiber.effectTag |= Incomplete; + sourceFiber.firstEffect = sourceFiber.lastEffect = null; + + if (enableSuspense && value !== null && typeof value === "object" && typeof value.then === "function") { + var thenable = value; + var expirationTimeMs = expirationTimeToMs(renderExpirationTime); + var startTimeMs = expirationTimeMs - 5000; + var elapsedMs = currentTimeMs - startTimeMs; + + if (elapsedMs < 0) { + elapsedMs = 0; + } + + var remainingTimeMs = expirationTimeMs - currentTimeMs; + var _workInProgress = returnFiber; + var earliestTimeoutMs = -1; + + searchForEarliestTimeout: do { + if (_workInProgress.tag === TimeoutComponent) { + var current = _workInProgress.alternate; + + if (current !== null && current.memoizedState === true) { + earliestTimeoutMs = 0; + break searchForEarliestTimeout; + } + + var timeoutPropMs = _workInProgress.pendingProps.ms; + + if (typeof timeoutPropMs === "number") { + if (timeoutPropMs <= 0) { + earliestTimeoutMs = 0; + break searchForEarliestTimeout; + } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) { + earliestTimeoutMs = timeoutPropMs; + } + } else if (earliestTimeoutMs === -1) { + earliestTimeoutMs = remainingTimeMs; + } + } + + _workInProgress = _workInProgress.return; + } while (_workInProgress !== null); + + var msUntilTimeout = earliestTimeoutMs - elapsedMs; + + if (renderExpirationTime === Never || msUntilTimeout > 0) { + markTimeout(root, thenable, msUntilTimeout, renderExpirationTime); + + var onResolveOrReject = function onResolveOrReject() { + retrySuspendedRoot(root, renderExpirationTime); + }; + + thenable.then(onResolveOrReject, onResolveOrReject); + return; + } else { + _workInProgress = returnFiber; + + do { + switch (_workInProgress.tag) { + case HostRoot: + { + var message = renderExpirationTime === Sync ? "A synchronous update was suspended, but no fallback UI " + "was provided." : "An update was suspended for longer than the timeout, " + "but no fallback UI was provided."; + value = new Error(message); + break; + } + + case TimeoutComponent: + { + if ((_workInProgress.effectTag & DidCapture) === NoEffect) { + _workInProgress.effectTag |= ShouldCapture; + + var _onResolveOrReject = schedulePing.bind(null, _workInProgress); + + thenable.then(_onResolveOrReject, _onResolveOrReject); + return; + } + + break; + } + } + + _workInProgress = _workInProgress.return; + } while (_workInProgress !== null); + } + } else { + markError(root); + + if (!root.didError && renderExpirationTime !== Sync || hasLowerPriorityWork(root, renderExpirationTime)) { + return; + } + } + + value = createCapturedValue(value, sourceFiber); + var workInProgress = returnFiber; + + do { + switch (workInProgress.tag) { + case HostRoot: + { + var _errorInfo = value; + workInProgress.effectTag |= ShouldCapture; + var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime); + enqueueCapturedUpdate(workInProgress, update, renderExpirationTime); + return; + } + + case ClassComponent: + var errorInfo = value; + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + + if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromCatch === "function" && enableGetDerivedStateFromCatch || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { + workInProgress.effectTag |= ShouldCapture; + + var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime); + + enqueueCapturedUpdate(workInProgress, _update, renderExpirationTime); + return; + } + + break; + + default: + break; + } + + workInProgress = workInProgress.return; + } while (workInProgress !== null); + } + + function unwindWork(workInProgress, renderExpirationTime) { + if (enableProfilerTimer) { + if (workInProgress.mode & ProfileMode) { + recordElapsedActualRenderTime(workInProgress); + } + } + + switch (workInProgress.tag) { + case ClassComponent: + { + popContextProvider(workInProgress); + var effectTag = workInProgress.effectTag; + + if (effectTag & ShouldCapture) { + workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; + return workInProgress; + } + + return null; + } + + case HostRoot: + { + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + var _effectTag = workInProgress.effectTag; + + if (_effectTag & ShouldCapture) { + workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; + return workInProgress; + } + + return null; + } + + case HostComponent: + { + popHostContext(workInProgress); + return null; + } + + case TimeoutComponent: + { + var _effectTag2 = workInProgress.effectTag; + + if (_effectTag2 & ShouldCapture) { + workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; + return workInProgress; + } + + return null; + } + + case HostPortal: + popHostContainer(workInProgress); + return null; + + case ContextProvider: + popProvider(workInProgress); + return null; + + default: + return null; + } + } + + function unwindInterruptedWork(interruptedWork) { + if (enableProfilerTimer) { + if (interruptedWork.mode & ProfileMode) { + resumeActualRenderTimerIfPaused(); + recordElapsedActualRenderTime(interruptedWork); + } + } + + switch (interruptedWork.tag) { + case ClassComponent: + { + popContextProvider(interruptedWork); + break; + } + + case HostRoot: + { + popHostContainer(interruptedWork); + popTopLevelContextObject(interruptedWork); + break; + } + + case HostComponent: + { + popHostContext(interruptedWork); + break; + } + + case HostPortal: + popHostContainer(interruptedWork); + break; + + case ContextProvider: + popProvider(interruptedWork); + break; + + default: + break; + } + } + + var invokeGuardedCallback$2 = ReactErrorUtils.invokeGuardedCallback; + var hasCaughtError = ReactErrorUtils.hasCaughtError; + var clearCaughtError = ReactErrorUtils.clearCaughtError; + var didWarnAboutStateTransition = void 0; + var didWarnSetStateChildContext = void 0; + var warnAboutUpdateOnUnmounted = void 0; + var warnAboutInvalidUpdates = void 0; + { + didWarnAboutStateTransition = false; + didWarnSetStateChildContext = false; + var didWarnStateUpdateForUnmountedComponent = {}; + + warnAboutUpdateOnUnmounted = function warnAboutUpdateOnUnmounted(fiber) { + var componentName = getComponentName(fiber) || "ReactClass"; + + if (didWarnStateUpdateForUnmountedComponent[componentName]) { + return; + } + + warning(false, "Can't call setState (or forceUpdate) on an unmounted component. This " + "is a no-op, but it indicates a memory leak in your application. To " + "fix, cancel all subscriptions and asynchronous tasks in the " + "componentWillUnmount method.%s", getStackAddendumByWorkInProgressFiber(fiber)); + didWarnStateUpdateForUnmountedComponent[componentName] = true; + }; + + warnAboutInvalidUpdates = function warnAboutInvalidUpdates(instance) { + switch (ReactDebugCurrentFiber.phase) { + case "getChildContext": + if (didWarnSetStateChildContext) { + return; + } + + warning(false, "setState(...): Cannot call setState() inside getChildContext()"); + didWarnSetStateChildContext = true; + break; + + case "render": + if (didWarnAboutStateTransition) { + return; + } + + warning(false, "Cannot update during an existing state transition (such as within " + "`render` or another component's constructor). Render methods should " + "be a pure function of props and state; constructor side-effects are " + "an anti-pattern, but can be moved to `componentWillMount`."); + didWarnAboutStateTransition = true; + break; + } + }; + } + var originalStartTimeMs = now(); + var mostRecentCurrentTime = msToExpirationTime(0); + var mostRecentCurrentTimeMs = originalStartTimeMs; + var lastUniqueAsyncExpiration = 0; + var expirationContext = NoWork; + var isWorking = false; + var nextUnitOfWork = null; + var nextRoot = null; + var nextRenderExpirationTime = NoWork; + var nextLatestTimeoutMs = -1; + var nextRenderDidError = false; + var nextEffect = null; + var isCommitting$1 = false; + var legacyErrorBoundariesThatAlreadyFailed = null; + var interruptedBy = null; + var stashedWorkInProgressProperties = void 0; + var replayUnitOfWork = void 0; + var isReplayingFailedUnitOfWork = void 0; + var originalReplayError = void 0; + var rethrowOriginalError = void 0; + + if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { + stashedWorkInProgressProperties = null; + isReplayingFailedUnitOfWork = false; + originalReplayError = null; + + replayUnitOfWork = function replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy) { + if (thrownValue !== null && typeof thrownValue === "object" && typeof thrownValue.then === "function") { + return; + } + + if (stashedWorkInProgressProperties === null) { + warning(false, "Could not replay rendering after an error. This is likely a bug in React. " + "Please file an issue."); + return; + } + + assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties); + + switch (failedUnitOfWork.tag) { + case HostRoot: + popHostContainer(failedUnitOfWork); + popTopLevelContextObject(failedUnitOfWork); + break; + + case HostComponent: + popHostContext(failedUnitOfWork); + break; + + case ClassComponent: + popContextProvider(failedUnitOfWork); + break; + + case HostPortal: + popHostContainer(failedUnitOfWork); + break; + + case ContextProvider: + popProvider(failedUnitOfWork); + break; + } + + isReplayingFailedUnitOfWork = true; + originalReplayError = thrownValue; + invokeGuardedCallback$2(null, workLoop, null, isYieldy); + isReplayingFailedUnitOfWork = false; + originalReplayError = null; + + if (hasCaughtError()) { + clearCaughtError(); + + if (enableProfilerTimer) { + if (failedUnitOfWork.mode & ProfileMode) { + recordElapsedActualRenderTime(failedUnitOfWork); + } + + stopBaseRenderTimerIfRunning(); + } + } else { + nextUnitOfWork = failedUnitOfWork; + } + }; + + rethrowOriginalError = function rethrowOriginalError() { + throw originalReplayError; + }; + } + + function resetStack() { + if (nextUnitOfWork !== null) { + var interruptedWork = nextUnitOfWork.return; + + while (interruptedWork !== null) { + unwindInterruptedWork(interruptedWork); + interruptedWork = interruptedWork.return; + } + } + + { + ReactStrictModeWarnings.discardPendingWarnings(); + checkThatStackIsEmpty(); + } + nextRoot = null; + nextRenderExpirationTime = NoWork; + nextLatestTimeoutMs = -1; + nextRenderDidError = false; + nextUnitOfWork = null; + } + + function commitAllHostEffects() { + while (nextEffect !== null) { + { + ReactDebugCurrentFiber.setCurrentFiber(nextEffect); + } + recordEffect(); + var effectTag = nextEffect.effectTag; + + if (effectTag & ContentReset) { + commitResetTextContent(nextEffect); + } + + if (effectTag & Ref) { + var current = nextEffect.alternate; + + if (current !== null) { + commitDetachRef(current); + } + } + + var primaryEffectTag = effectTag & (Placement | Update | Deletion); + + switch (primaryEffectTag) { + case Placement: + { + commitPlacement(nextEffect); + nextEffect.effectTag &= ~Placement; + break; + } + + case PlacementAndUpdate: + { + commitPlacement(nextEffect); + nextEffect.effectTag &= ~Placement; + var _current = nextEffect.alternate; + commitWork(_current, nextEffect); + break; + } + + case Update: + { + var _current2 = nextEffect.alternate; + commitWork(_current2, nextEffect); + break; + } + + case Deletion: + { + commitDeletion(nextEffect); + break; + } + } + + nextEffect = nextEffect.nextEffect; + } + + { + ReactDebugCurrentFiber.resetCurrentFiber(); + } + } + + function commitBeforeMutationLifecycles() { + while (nextEffect !== null) { + var effectTag = nextEffect.effectTag; + + if (effectTag & Snapshot) { + recordEffect(); + var current = nextEffect.alternate; + commitBeforeMutationLifeCycles(current, nextEffect); + } + + nextEffect = nextEffect.nextEffect; + } + } + + function commitAllLifeCycles(finishedRoot, currentTime, committedExpirationTime) { + { + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); + + if (warnAboutDeprecatedLifecycles) { + ReactStrictModeWarnings.flushPendingDeprecationWarnings(); + } + + if (warnAboutLegacyContextAPI) { + ReactStrictModeWarnings.flushLegacyContextWarning(); + } + } + + while (nextEffect !== null) { + var effectTag = nextEffect.effectTag; + + if (effectTag & (Update | Callback)) { + recordEffect(); + var current = nextEffect.alternate; + commitLifeCycles(finishedRoot, current, nextEffect, currentTime, committedExpirationTime); + } + + if (effectTag & Ref) { + recordEffect(); + commitAttachRef(nextEffect); + } + + var next = nextEffect.nextEffect; + nextEffect.nextEffect = null; + nextEffect = next; + } + } + + function isAlreadyFailedLegacyErrorBoundary(instance) { + return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); + } + + function markLegacyErrorBoundaryAsFailed(instance) { + if (legacyErrorBoundariesThatAlreadyFailed === null) { + legacyErrorBoundariesThatAlreadyFailed = new Set([instance]); + } else { + legacyErrorBoundariesThatAlreadyFailed.add(instance); + } + } + + function commitRoot(root, finishedWork) { + isWorking = true; + isCommitting$1 = true; + startCommitTimer(); + invariant(root.current !== finishedWork, "Cannot commit the same tree as before. This is probably a bug " + "related to the return field. This error is likely caused by a bug " + "in React. Please file an issue."); + var committedExpirationTime = root.pendingCommitExpirationTime; + invariant(committedExpirationTime !== NoWork, "Cannot commit an incomplete root. This error is likely caused by a " + "bug in React. Please file an issue."); + root.pendingCommitExpirationTime = NoWork; + var earliestRemainingTime = finishedWork.expirationTime; + var currentTime = recalculateCurrentTime(); + markCommittedPriorityLevels(root, currentTime, earliestRemainingTime); + ReactCurrentOwner.current = null; + var firstEffect = void 0; + + if (finishedWork.effectTag > PerformedWork) { + if (finishedWork.lastEffect !== null) { + finishedWork.lastEffect.nextEffect = finishedWork; + firstEffect = finishedWork.firstEffect; + } else { + firstEffect = finishedWork; + } + } else { + firstEffect = finishedWork.firstEffect; + } + + prepareForCommit(root.containerInfo); + nextEffect = firstEffect; + startCommitSnapshotEffectsTimer(); + + while (nextEffect !== null) { + var didError = false; + var error = void 0; + { + invokeGuardedCallback$2(null, commitBeforeMutationLifecycles, null); + + if (hasCaughtError()) { + didError = true; + error = clearCaughtError(); + } + } + + if (didError) { + invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); + captureCommitPhaseError(nextEffect, error); + + if (nextEffect !== null) { + nextEffect = nextEffect.nextEffect; + } + } + } + + stopCommitSnapshotEffectsTimer(); + + if (enableProfilerTimer) { + recordCommitTime(); + } + + nextEffect = firstEffect; + startCommitHostEffectsTimer(); + + while (nextEffect !== null) { + var _didError = false; + + var _error = void 0; + + { + invokeGuardedCallback$2(null, commitAllHostEffects, null); + + if (hasCaughtError()) { + _didError = true; + _error = clearCaughtError(); + } + } + + if (_didError) { + invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); + captureCommitPhaseError(nextEffect, _error); + + if (nextEffect !== null) { + nextEffect = nextEffect.nextEffect; + } + } + } + + stopCommitHostEffectsTimer(); + resetAfterCommit(root.containerInfo); + root.current = finishedWork; + nextEffect = firstEffect; + startCommitLifeCyclesTimer(); + + while (nextEffect !== null) { + var _didError2 = false; + + var _error2 = void 0; + + { + invokeGuardedCallback$2(null, commitAllLifeCycles, null, root, currentTime, committedExpirationTime); + + if (hasCaughtError()) { + _didError2 = true; + _error2 = clearCaughtError(); + } + } + + if (_didError2) { + invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); + captureCommitPhaseError(nextEffect, _error2); + + if (nextEffect !== null) { + nextEffect = nextEffect.nextEffect; + } + } + } + + if (enableProfilerTimer) { + { + checkActualRenderTimeStackEmpty(); + } + resetActualRenderTimer(); + } + + isCommitting$1 = false; + isWorking = false; + stopCommitLifeCyclesTimer(); + stopCommitTimer(); + + if (typeof onCommitRoot === "function") { + onCommitRoot(finishedWork.stateNode); + } + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork); + } + + var expirationTime = root.expirationTime; + + if (expirationTime === NoWork) { + legacyErrorBoundariesThatAlreadyFailed = null; + } + + onCommit(root, expirationTime); + } + + function resetExpirationTime(workInProgress, renderTime) { + if (renderTime !== Never && workInProgress.expirationTime === Never) { + return; + } + + var newExpirationTime = NoWork; + + switch (workInProgress.tag) { + case HostRoot: + case ClassComponent: + { + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + newExpirationTime = updateQueue.expirationTime; + } + } + } + + if (enableProfilerTimer && workInProgress.mode & ProfileMode) { + var treeBaseTime = workInProgress.selfBaseTime; + var child = workInProgress.child; + + while (child !== null) { + treeBaseTime += child.treeBaseTime; + + if (child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > child.expirationTime)) { + newExpirationTime = child.expirationTime; + } + + child = child.sibling; + } + + workInProgress.treeBaseTime = treeBaseTime; + } else { + var _child = workInProgress.child; + + while (_child !== null) { + if (_child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > _child.expirationTime)) { + newExpirationTime = _child.expirationTime; + } + + _child = _child.sibling; + } + } + + workInProgress.expirationTime = newExpirationTime; + } + + function completeUnitOfWork(workInProgress) { + while (true) { + var current = workInProgress.alternate; + { + ReactDebugCurrentFiber.setCurrentFiber(workInProgress); + } + var returnFiber = workInProgress.return; + var siblingFiber = workInProgress.sibling; + + if ((workInProgress.effectTag & Incomplete) === NoEffect) { + var next = completeWork(current, workInProgress, nextRenderExpirationTime); + stopWorkTimer(workInProgress); + resetExpirationTime(workInProgress, nextRenderExpirationTime); + { + ReactDebugCurrentFiber.resetCurrentFiber(); + } + + if (next !== null) { + stopWorkTimer(workInProgress); + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); + } + + return next; + } + + if (returnFiber !== null && (returnFiber.effectTag & Incomplete) === NoEffect) { + if (returnFiber.firstEffect === null) { + returnFiber.firstEffect = workInProgress.firstEffect; + } + + if (workInProgress.lastEffect !== null) { + if (returnFiber.lastEffect !== null) { + returnFiber.lastEffect.nextEffect = workInProgress.firstEffect; + } + + returnFiber.lastEffect = workInProgress.lastEffect; + } + + var effectTag = workInProgress.effectTag; + + if (effectTag > PerformedWork) { + if (returnFiber.lastEffect !== null) { + returnFiber.lastEffect.nextEffect = workInProgress; + } else { + returnFiber.firstEffect = workInProgress; + } + + returnFiber.lastEffect = workInProgress; + } + } + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); + } + + if (siblingFiber !== null) { + return siblingFiber; + } else if (returnFiber !== null) { + workInProgress = returnFiber; + continue; + } else { + return null; + } + } else { + var _next = unwindWork(workInProgress, nextRenderExpirationTime); + + if (workInProgress.effectTag & DidCapture) { + stopFailedWorkTimer(workInProgress); + } else { + stopWorkTimer(workInProgress); + } + + { + ReactDebugCurrentFiber.resetCurrentFiber(); + } + + if (_next !== null) { + stopWorkTimer(workInProgress); + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); + } + + _next.effectTag &= HostEffectMask; + return _next; + } + + if (returnFiber !== null) { + returnFiber.firstEffect = returnFiber.lastEffect = null; + returnFiber.effectTag |= Incomplete; + } + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); + } + + if (siblingFiber !== null) { + return siblingFiber; + } else if (returnFiber !== null) { + workInProgress = returnFiber; + continue; + } else { + return null; + } + } + } + + return null; + } + + function performUnitOfWork(workInProgress) { + var current = workInProgress.alternate; + startWorkTimer(workInProgress); + { + ReactDebugCurrentFiber.setCurrentFiber(workInProgress); + } + + if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { + stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress); + } + + var next = void 0; + + if (enableProfilerTimer) { + if (workInProgress.mode & ProfileMode) { + startBaseRenderTimer(); + } + + next = beginWork(current, workInProgress, nextRenderExpirationTime); + + if (workInProgress.mode & ProfileMode) { + recordElapsedBaseRenderTimeIfRunning(workInProgress); + stopBaseRenderTimerIfRunning(); + } + } else { + next = beginWork(current, workInProgress, nextRenderExpirationTime); + } + + { + ReactDebugCurrentFiber.resetCurrentFiber(); + + if (isReplayingFailedUnitOfWork) { + rethrowOriginalError(); + } + } + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress); + } + + if (next === null) { + next = completeUnitOfWork(workInProgress); + } + + ReactCurrentOwner.current = null; + return next; + } + + function workLoop(isYieldy) { + if (!isYieldy) { + while (nextUnitOfWork !== null) { + nextUnitOfWork = performUnitOfWork(nextUnitOfWork); + } + } else { + while (nextUnitOfWork !== null && !shouldYield()) { + nextUnitOfWork = performUnitOfWork(nextUnitOfWork); + } + + if (enableProfilerTimer) { + pauseActualRenderTimerIfRunning(); + } + } + } + + function renderRoot(root, isYieldy) { + invariant(!isWorking, "renderRoot was called recursively. This error is likely caused " + "by a bug in React. Please file an issue."); + isWorking = true; + var expirationTime = root.nextExpirationTimeToWorkOn; + + if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) { + resetStack(); + nextRoot = root; + nextRenderExpirationTime = expirationTime; + nextLatestTimeoutMs = -1; + nextRenderDidError = false; + nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime); + root.pendingCommitExpirationTime = NoWork; + } + + var didFatal = false; + startWorkLoopTimer(nextUnitOfWork); + + do { + try { + workLoop(isYieldy); + } catch (thrownValue) { + if (enableProfilerTimer) { + stopBaseRenderTimerIfRunning(); + } + + if (nextUnitOfWork === null) { + didFatal = true; + onUncaughtError(thrownValue); + } else { + { + resetCurrentlyProcessingQueue(); + } + var failedUnitOfWork = nextUnitOfWork; + + if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { + replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy); + } + + invariant(nextUnitOfWork !== null, "Failed to replay rendering after an error. This " + "is likely caused by a bug in React. Please file an issue " + "with a reproducing case to help us find it."); + var sourceFiber = nextUnitOfWork; + var returnFiber = sourceFiber.return; + + if (returnFiber === null) { + didFatal = true; + onUncaughtError(thrownValue); + break; + } + + throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime, mostRecentCurrentTimeMs); + nextUnitOfWork = completeUnitOfWork(sourceFiber); + } + } + + break; + } while (true); + + isWorking = false; + + if (didFatal) { + var didCompleteRoot = false; + stopWorkLoopTimer(interruptedBy, didCompleteRoot); + interruptedBy = null; + { + resetStackAfterFatalErrorInDev(); + } + onFatal(root); + } else if (nextUnitOfWork === null) { + var rootWorkInProgress = root.current.alternate; + invariant(rootWorkInProgress !== null, "Finished root should have a work-in-progress. This error is likely " + "caused by a bug in React. Please file an issue."); + + if ((rootWorkInProgress.effectTag & Incomplete) === NoEffect) { + var _didCompleteRoot = true; + stopWorkLoopTimer(interruptedBy, _didCompleteRoot); + interruptedBy = null; + onComplete(root, rootWorkInProgress, expirationTime); + } else { + var _didCompleteRoot2 = false; + stopWorkLoopTimer(interruptedBy, _didCompleteRoot2); + interruptedBy = null; + markSuspendedPriorityLevel(root, expirationTime, nextRenderDidError); + var suspendedExpirationTime = expirationTime; + var newExpirationTime = root.expirationTime; + onSuspend(root, suspendedExpirationTime, newExpirationTime, nextLatestTimeoutMs); + } + } else { + var _didCompleteRoot3 = false; + stopWorkLoopTimer(interruptedBy, _didCompleteRoot3); + interruptedBy = null; + onYield(root); + } + } + + function dispatch(sourceFiber, value, expirationTime) { + invariant(!isWorking || isCommitting$1, "dispatch: Cannot dispatch during the render phase."); + var fiber = sourceFiber.return; + + while (fiber !== null) { + switch (fiber.tag) { + case ClassComponent: + var ctor = fiber.type; + var instance = fiber.stateNode; + + if (typeof ctor.getDerivedStateFromCatch === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { + var errorInfo = createCapturedValue(value, sourceFiber); + var update = createClassErrorUpdate(fiber, errorInfo, expirationTime); + enqueueUpdate(fiber, update, expirationTime); + scheduleWork(fiber, expirationTime); + return; + } + + break; + + case HostRoot: + { + var _errorInfo = createCapturedValue(value, sourceFiber); + + var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime); + + enqueueUpdate(fiber, _update, expirationTime); + scheduleWork(fiber, expirationTime); + return; + } + } + + fiber = fiber.return; + } + + if (sourceFiber.tag === HostRoot) { + var rootFiber = sourceFiber; + + var _errorInfo2 = createCapturedValue(value, rootFiber); + + var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime); + + enqueueUpdate(rootFiber, _update2, expirationTime); + scheduleWork(rootFiber, expirationTime); + } + } + + function captureCommitPhaseError(fiber, error) { + return dispatch(fiber, error, Sync); + } + + function computeAsyncExpiration(currentTime) { + var expirationMs = 5000; + var bucketSizeMs = 250; + return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs); + } + + function computeInteractiveExpiration(currentTime) { + var expirationMs = void 0; + { + expirationMs = 500; + } + var bucketSizeMs = 100; + return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs); + } + + function computeUniqueAsyncExpiration() { + var currentTime = recalculateCurrentTime(); + var result = computeAsyncExpiration(currentTime); + + if (result <= lastUniqueAsyncExpiration) { + result = lastUniqueAsyncExpiration + 1; + } + + lastUniqueAsyncExpiration = result; + return lastUniqueAsyncExpiration; + } + + function computeExpirationForFiber(currentTime, fiber) { + var expirationTime = void 0; + + if (expirationContext !== NoWork) { + expirationTime = expirationContext; + } else if (isWorking) { + if (isCommitting$1) { + expirationTime = Sync; + } else { + expirationTime = nextRenderExpirationTime; + } + } else { + if (fiber.mode & AsyncMode) { + if (isBatchingInteractiveUpdates) { + expirationTime = computeInteractiveExpiration(currentTime); + } else { + expirationTime = computeAsyncExpiration(currentTime); + } + } else { + expirationTime = Sync; + } + } + + if (isBatchingInteractiveUpdates) { + if (lowestPendingInteractiveExpirationTime === NoWork || expirationTime > lowestPendingInteractiveExpirationTime) { + lowestPendingInteractiveExpirationTime = expirationTime; + } + } + + return expirationTime; + } + + function markTimeout(root, thenable, timeoutMs, suspendedTime) { + if (timeoutMs >= 0 && nextLatestTimeoutMs < timeoutMs) { + nextLatestTimeoutMs = timeoutMs; + } + } + + function markError(root) { + nextRenderDidError = true; + } + + function retrySuspendedRoot(root, suspendedTime) { + markPingedPriorityLevel(root, suspendedTime); + var retryTime = root.expirationTime; + + if (retryTime !== NoWork) { + requestWork(root, retryTime); + } + } + + function scheduleWork(fiber, expirationTime) { + recordScheduleUpdate(); + { + if (fiber.tag === ClassComponent) { + var instance = fiber.stateNode; + warnAboutInvalidUpdates(instance); + } + } + var node = fiber; + + while (node !== null) { + if (node.expirationTime === NoWork || node.expirationTime > expirationTime) { + node.expirationTime = expirationTime; + } + + if (node.alternate !== null) { + if (node.alternate.expirationTime === NoWork || node.alternate.expirationTime > expirationTime) { + node.alternate.expirationTime = expirationTime; + } + } + + if (node.return === null) { + if (node.tag === HostRoot) { + var root = node.stateNode; + + if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime < nextRenderExpirationTime) { + interruptedBy = fiber; + resetStack(); + } + + markPendingPriorityLevel(root, expirationTime); + + if (!isWorking || isCommitting$1 || nextRoot !== root) { + var rootExpirationTime = root.expirationTime; + requestWork(root, rootExpirationTime); + } + + if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { + invariant(false, "Maximum update depth exceeded. This can happen when a " + "component repeatedly calls setState inside " + "componentWillUpdate or componentDidUpdate. React limits " + "the number of nested updates to prevent infinite loops."); + } + } else { + { + if (fiber.tag === ClassComponent) { + warnAboutUpdateOnUnmounted(fiber); + } + } + return; + } + } + + node = node.return; + } + } + + function recalculateCurrentTime() { + mostRecentCurrentTimeMs = now() - originalStartTimeMs; + mostRecentCurrentTime = msToExpirationTime(mostRecentCurrentTimeMs); + return mostRecentCurrentTime; + } + + function deferredUpdates(fn) { + var previousExpirationContext = expirationContext; + var currentTime = recalculateCurrentTime(); + expirationContext = computeAsyncExpiration(currentTime); + + try { + return fn(); + } finally { + expirationContext = previousExpirationContext; + } + } + + function syncUpdates(fn, a, b, c, d) { + var previousExpirationContext = expirationContext; + expirationContext = Sync; + + try { + return fn(a, b, c, d); + } finally { + expirationContext = previousExpirationContext; + } + } + + var firstScheduledRoot = null; + var lastScheduledRoot = null; + var callbackExpirationTime = NoWork; + var callbackID = void 0; + var isRendering = false; + var nextFlushedRoot = null; + var nextFlushedExpirationTime = NoWork; + var lowestPendingInteractiveExpirationTime = NoWork; + var deadlineDidExpire = false; + var hasUnhandledError = false; + var unhandledError = null; + var deadline = null; + var isBatchingUpdates = false; + var isUnbatchingUpdates = false; + var isBatchingInteractiveUpdates = false; + var completedBatches = null; + var NESTED_UPDATE_LIMIT = 1000; + var nestedUpdateCount = 0; + var timeHeuristicForUnitOfWork = 1; + + function scheduleCallbackWithExpirationTime(expirationTime) { + if (callbackExpirationTime !== NoWork) { + if (expirationTime > callbackExpirationTime) { + return; + } else { + if (callbackID !== null) { + cancelDeferredCallback(callbackID); + } + } + } else { + startRequestCallbackTimer(); + } + + callbackExpirationTime = expirationTime; + var currentMs = now() - originalStartTimeMs; + var expirationTimeMs = expirationTimeToMs(expirationTime); + var timeout = expirationTimeMs - currentMs; + callbackID = scheduleDeferredCallback(performAsyncWork, { + timeout: timeout + }); + } + + function onFatal(root) { + root.finishedWork = null; + } + + function onComplete(root, finishedWork, expirationTime) { + root.pendingCommitExpirationTime = expirationTime; + root.finishedWork = finishedWork; + } + + function onSuspend(root, suspendedExpirationTime, expirationTime, timeoutMs) { + if (timeoutMs >= 0) { + var suspendedRoot = root; + setTimeout(function () { + retrySuspendedRoot(suspendedRoot, suspendedExpirationTime); + }, timeoutMs); + } + + root.expirationTime = expirationTime; + } + + function onYield(root) { + root.finishedWork = null; + } + + function onCommit(root, expirationTime) { + root.expirationTime = expirationTime; + root.finishedWork = null; + } + + function requestWork(root, expirationTime) { + addRootToSchedule(root, expirationTime); + + if (isRendering) { + return; + } + + if (isBatchingUpdates) { + if (isUnbatchingUpdates) { + nextFlushedRoot = root; + nextFlushedExpirationTime = Sync; + performWorkOnRoot(root, Sync, false); + } + + return; + } + + if (expirationTime === Sync) { + performSyncWork(); + } else { + scheduleCallbackWithExpirationTime(expirationTime); + } + } + + function addRootToSchedule(root, expirationTime) { + if (root.nextScheduledRoot === null) { + root.expirationTime = expirationTime; + + if (lastScheduledRoot === null) { + firstScheduledRoot = lastScheduledRoot = root; + root.nextScheduledRoot = root; + } else { + lastScheduledRoot.nextScheduledRoot = root; + lastScheduledRoot = root; + lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; + } + } else { + var remainingExpirationTime = root.expirationTime; + + if (remainingExpirationTime === NoWork || expirationTime < remainingExpirationTime) { + root.expirationTime = expirationTime; + } + } + } + + function findHighestPriorityRoot() { + var highestPriorityWork = NoWork; + var highestPriorityRoot = null; + + if (lastScheduledRoot !== null) { + var previousScheduledRoot = lastScheduledRoot; + var root = firstScheduledRoot; + + while (root !== null) { + var remainingExpirationTime = root.expirationTime; + + if (remainingExpirationTime === NoWork) { + invariant(previousScheduledRoot !== null && lastScheduledRoot !== null, "Should have a previous and last root. This error is likely " + "caused by a bug in React. Please file an issue."); + + if (root === root.nextScheduledRoot) { + root.nextScheduledRoot = null; + firstScheduledRoot = lastScheduledRoot = null; + break; + } else if (root === firstScheduledRoot) { + var next = root.nextScheduledRoot; + firstScheduledRoot = next; + lastScheduledRoot.nextScheduledRoot = next; + root.nextScheduledRoot = null; + } else if (root === lastScheduledRoot) { + lastScheduledRoot = previousScheduledRoot; + lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; + root.nextScheduledRoot = null; + break; + } else { + previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot; + root.nextScheduledRoot = null; + } + + root = previousScheduledRoot.nextScheduledRoot; + } else { + if (highestPriorityWork === NoWork || remainingExpirationTime < highestPriorityWork) { + highestPriorityWork = remainingExpirationTime; + highestPriorityRoot = root; + } + + if (root === lastScheduledRoot) { + break; + } + + previousScheduledRoot = root; + root = root.nextScheduledRoot; + } + } + } + + var previousFlushedRoot = nextFlushedRoot; + + if (previousFlushedRoot !== null && previousFlushedRoot === highestPriorityRoot && highestPriorityWork === Sync) { + nestedUpdateCount++; + } else { + nestedUpdateCount = 0; + } + + nextFlushedRoot = highestPriorityRoot; + nextFlushedExpirationTime = highestPriorityWork; + } + + function performAsyncWork(dl) { + performWork(NoWork, dl); + } + + function performSyncWork() { + performWork(Sync, null); + } + + function performWork(minExpirationTime, dl) { + deadline = dl; + findHighestPriorityRoot(); + + if (enableProfilerTimer) { + resumeActualRenderTimerIfPaused(); + } + + if (enableUserTimingAPI && deadline !== null) { + var didExpire = nextFlushedExpirationTime < recalculateCurrentTime(); + var timeout = expirationTimeToMs(nextFlushedExpirationTime); + stopRequestCallbackTimer(didExpire, timeout); + } + + if (deadline !== null) { + while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime)) { + recalculateCurrentTime(); + performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, true); + findHighestPriorityRoot(); + } + } else { + while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime)) { + performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false); + findHighestPriorityRoot(); + } + } + + if (deadline !== null) { + callbackExpirationTime = NoWork; + callbackID = null; + } + + if (nextFlushedExpirationTime !== NoWork) { + scheduleCallbackWithExpirationTime(nextFlushedExpirationTime); + } + + deadline = null; + deadlineDidExpire = false; + finishRendering(); + } + + function flushRoot(root, expirationTime) { + invariant(!isRendering, "work.commit(): Cannot commit while already rendering. This likely " + "means you attempted to commit from inside a lifecycle method."); + nextFlushedRoot = root; + nextFlushedExpirationTime = expirationTime; + performWorkOnRoot(root, expirationTime, false); + performSyncWork(); + finishRendering(); + } + + function finishRendering() { + nestedUpdateCount = 0; + + if (completedBatches !== null) { + var batches = completedBatches; + completedBatches = null; + + for (var i = 0; i < batches.length; i++) { + var batch = batches[i]; + + try { + batch._onComplete(); + } catch (error) { + if (!hasUnhandledError) { + hasUnhandledError = true; + unhandledError = error; + } + } + } + } + + if (hasUnhandledError) { + var error = unhandledError; + unhandledError = null; + hasUnhandledError = false; + throw error; + } + } + + function performWorkOnRoot(root, expirationTime, isYieldy) { + invariant(!isRendering, "performWorkOnRoot was called recursively. This error is likely caused " + "by a bug in React. Please file an issue."); + isRendering = true; + + if (!isYieldy) { + var finishedWork = root.finishedWork; + + if (finishedWork !== null) { + completeRoot(root, finishedWork, expirationTime); + } else { + root.finishedWork = null; + renderRoot(root, false); + finishedWork = root.finishedWork; + + if (finishedWork !== null) { + completeRoot(root, finishedWork, expirationTime); + } + } + } else { + var _finishedWork = root.finishedWork; + + if (_finishedWork !== null) { + completeRoot(root, _finishedWork, expirationTime); + } else { + root.finishedWork = null; + renderRoot(root, true); + _finishedWork = root.finishedWork; + + if (_finishedWork !== null) { + if (!shouldYield()) { + completeRoot(root, _finishedWork, expirationTime); + } else { + root.finishedWork = _finishedWork; + + if (enableProfilerTimer) { + pauseActualRenderTimerIfRunning(); + } + } + } + } + } + + isRendering = false; + } + + function completeRoot(root, finishedWork, expirationTime) { + var firstBatch = root.firstBatch; + + if (firstBatch !== null && firstBatch._expirationTime <= expirationTime) { + if (completedBatches === null) { + completedBatches = [firstBatch]; + } else { + completedBatches.push(firstBatch); + } + + if (firstBatch._defer) { + root.finishedWork = finishedWork; + root.expirationTime = NoWork; + return; + } + } + + root.finishedWork = null; + commitRoot(root, finishedWork); + } + + function shouldYield() { + if (deadline === null || deadlineDidExpire) { + return false; + } + + if (deadline.timeRemaining() > timeHeuristicForUnitOfWork) { + return false; + } + + deadlineDidExpire = true; + return true; + } + + function onUncaughtError(error) { + invariant(nextFlushedRoot !== null, "Should be working on a root. This error is likely caused by a bug in " + "React. Please file an issue."); + nextFlushedRoot.expirationTime = NoWork; + + if (!hasUnhandledError) { + hasUnhandledError = true; + unhandledError = error; + } + } + + function batchedUpdates$1(fn, a) { + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = true; + + try { + return fn(a); + } finally { + isBatchingUpdates = previousIsBatchingUpdates; + + if (!isBatchingUpdates && !isRendering) { + performSyncWork(); + } + } + } + + function unbatchedUpdates(fn, a) { + if (isBatchingUpdates && !isUnbatchingUpdates) { + isUnbatchingUpdates = true; + + try { + return fn(a); + } finally { + isUnbatchingUpdates = false; + } + } + + return fn(a); + } + + function flushSync(fn, a) { + invariant(!isRendering, "flushSync was called from inside a lifecycle method. It cannot be " + "called when React is already rendering."); + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = true; + + try { + return syncUpdates(fn, a); + } finally { + isBatchingUpdates = previousIsBatchingUpdates; + performSyncWork(); + } + } + + function interactiveUpdates$1(fn, a, b) { + if (isBatchingInteractiveUpdates) { + return fn(a, b); + } + + if (!isBatchingUpdates && !isRendering && lowestPendingInteractiveExpirationTime !== NoWork) { + performWork(lowestPendingInteractiveExpirationTime, null); + lowestPendingInteractiveExpirationTime = NoWork; + } + + var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates; + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingInteractiveUpdates = true; + isBatchingUpdates = true; + + try { + return fn(a, b); + } finally { + isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates; + isBatchingUpdates = previousIsBatchingUpdates; + + if (!isBatchingUpdates && !isRendering) { + performSyncWork(); + } + } + } + + function flushInteractiveUpdates$1() { + if (!isRendering && lowestPendingInteractiveExpirationTime !== NoWork) { + performWork(lowestPendingInteractiveExpirationTime, null); + lowestPendingInteractiveExpirationTime = NoWork; + } + } + + function flushControlled(fn) { + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = true; + + try { + syncUpdates(fn); + } finally { + isBatchingUpdates = previousIsBatchingUpdates; + + if (!isBatchingUpdates && !isRendering) { + performWork(Sync, null); + } + } + } + + var didWarnAboutNestedUpdates = void 0; + { + didWarnAboutNestedUpdates = false; + } + + function getContextForSubtree(parentComponent) { + if (!parentComponent) { + return emptyObject; + } + + var fiber = get$1(parentComponent); + var parentContext = findCurrentUnmaskedContext(fiber); + return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext; + } + + function scheduleRootUpdate(current, element, expirationTime, callback) { + { + if (ReactDebugCurrentFiber.phase === "render" && ReactDebugCurrentFiber.current !== null && !didWarnAboutNestedUpdates) { + didWarnAboutNestedUpdates = true; + warning(false, "Render methods should be a pure function of props and state; " + "triggering nested component updates from render is not allowed. " + "If necessary, trigger nested updates in componentDidUpdate.\n\n" + "Check the render method of %s.", getComponentName(ReactDebugCurrentFiber.current) || "Unknown"); + } + } + var update = createUpdate(expirationTime); + update.payload = { + element: element + }; + callback = callback === undefined ? null : callback; + + if (callback !== null) { + !(typeof callback === "function") ? warning(false, "render(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callback) : void 0; + update.callback = callback; + } + + enqueueUpdate(current, update, expirationTime); + scheduleWork(current, expirationTime); + return expirationTime; + } + + function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { + var current = container.current; + { + if (ReactFiberInstrumentation_1.debugTool) { + if (current.alternate === null) { + ReactFiberInstrumentation_1.debugTool.onMountContainer(container); + } else if (element === null) { + ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container); + } else { + ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container); + } + } + } + var context = getContextForSubtree(parentComponent); + + if (container.context === null) { + container.context = context; + } else { + container.pendingContext = context; + } + + return scheduleRootUpdate(current, element, expirationTime, callback); + } + + function findHostInstance$1(component) { + var fiber = get$1(component); + + if (fiber === undefined) { + if (typeof component.render === "function") { + invariant(false, "Unable to find node on an unmounted component."); + } else { + invariant(false, "Argument appears to not be a ReactComponent. Keys: %s", Object.keys(component)); + } + } + + var hostFiber = findCurrentHostFiber(fiber); + + if (hostFiber === null) { + return null; + } + + return hostFiber.stateNode; + } + + function createContainer(containerInfo, isAsync, hydrate) { + return createFiberRoot(containerInfo, isAsync, hydrate); + } + + function updateContainer(element, container, parentComponent, callback) { + var current = container.current; + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, current); + return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback); + } + + function getPublicRootInstance(container) { + var containerFiber = container.current; + + if (!containerFiber.child) { + return null; + } + + switch (containerFiber.child.tag) { + case HostComponent: + return getPublicInstance(containerFiber.child.stateNode); + + default: + return containerFiber.child.stateNode; + } + } + + function findHostInstanceWithNoPortals(fiber) { + var hostFiber = findCurrentHostFiberWithNoPortals(fiber); + + if (hostFiber === null) { + return null; + } + + return hostFiber.stateNode; + } + + function injectIntoDevTools(devToolsConfig) { + var _findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + return injectInternals(_extends({}, devToolsConfig, { + findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { + var hostFiber = findCurrentHostFiber(fiber); + + if (hostFiber === null) { + return null; + } + + return hostFiber.stateNode; + }, + findFiberByHostInstance: function findFiberByHostInstance(instance) { + if (!_findFiberByHostInstance) { + return null; + } + + return _findFiberByHostInstance(instance); + } + })); + } + + var ReactNativeFiberRenderer = Object.freeze({ + updateContainerAtExpirationTime: updateContainerAtExpirationTime, + createContainer: createContainer, + updateContainer: updateContainer, + flushRoot: flushRoot, + requestWork: requestWork, + computeUniqueAsyncExpiration: computeUniqueAsyncExpiration, + batchedUpdates: batchedUpdates$1, + unbatchedUpdates: unbatchedUpdates, + deferredUpdates: deferredUpdates, + syncUpdates: syncUpdates, + interactiveUpdates: interactiveUpdates$1, + flushInteractiveUpdates: flushInteractiveUpdates$1, + flushControlled: flushControlled, + flushSync: flushSync, + getPublicRootInstance: getPublicRootInstance, + findHostInstance: findHostInstance$1, + findHostInstanceWithNoPortals: findHostInstanceWithNoPortals, + injectIntoDevTools: injectIntoDevTools + }); + + function _createPortal(children, containerInfo, implementation) { + var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + return { + $$typeof: REACT_PORTAL_TYPE, + key: key == null ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + + var ReactVersion = "16.4.1"; + + var NativeMethodsMixin = function NativeMethodsMixin(findNodeHandle, findHostInstance) { + var NativeMethodsMixin = { + measure: function measure(callback) { + UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); + }, + measureInWindow: function measureInWindow(callback) { + UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); + }, + measureLayout: function measureLayout(relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }, + setNativeProps: function setNativeProps(nativeProps) { + var maybeInstance = void 0; + + try { + maybeInstance = findHostInstance(this); + } catch (error) {} + + if (maybeInstance == null) { + return; + } + + var viewConfig = maybeInstance.viewConfig; + { + warnForStyleProps(nativeProps, viewConfig.validAttributes); + } + var updatePayload = create(nativeProps, viewConfig.validAttributes); + + if (updatePayload != null) { + UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, updatePayload); + } + }, + focus: function focus() { + TextInputState.focusTextInput(findNodeHandle(this)); + }, + blur: function blur() { + TextInputState.blurTextInput(findNodeHandle(this)); + } + }; + { + var NativeMethodsMixin_DEV = NativeMethodsMixin; + invariant(!NativeMethodsMixin_DEV.componentWillMount && !NativeMethodsMixin_DEV.componentWillReceiveProps && !NativeMethodsMixin_DEV.UNSAFE_componentWillMount && !NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps, "Do not override existing functions."); + + NativeMethodsMixin_DEV.componentWillMount = function () { + throwOnStylesProp(this, this.props); + }; + + NativeMethodsMixin_DEV.componentWillReceiveProps = function (newProps) { + throwOnStylesProp(this, newProps); + }; + + NativeMethodsMixin_DEV.UNSAFE_componentWillMount = function () { + throwOnStylesProp(this, this.props); + }; + + NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps = function (newProps) { + throwOnStylesProp(this, newProps); + }; + + NativeMethodsMixin_DEV.componentWillMount.__suppressDeprecationWarning = true; + NativeMethodsMixin_DEV.componentWillReceiveProps.__suppressDeprecationWarning = true; + } + return NativeMethodsMixin; + }; + + function _classCallCheck$1(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + + function _possibleConstructorReturn(self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return call && (typeof call === "object" || typeof call === "function") ? call : self; + } + + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; + } + + var ReactNativeComponent = function ReactNativeComponent(findNodeHandle, findHostInstance) { + var ReactNativeComponent = function (_React$Component) { + _inherits(ReactNativeComponent, _React$Component); + + function ReactNativeComponent() { + _classCallCheck$1(this, ReactNativeComponent); + + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } + + ReactNativeComponent.prototype.blur = function blur() { + TextInputState.blurTextInput(findNodeHandle(this)); + }; + + ReactNativeComponent.prototype.focus = function focus() { + TextInputState.focusTextInput(findNodeHandle(this)); + }; + + ReactNativeComponent.prototype.measure = function measure(callback) { + UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); + }; + + ReactNativeComponent.prototype.measureInWindow = function measureInWindow(callback) { + UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); + }; + + ReactNativeComponent.prototype.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }; + + ReactNativeComponent.prototype.setNativeProps = function setNativeProps(nativeProps) { + var maybeInstance = void 0; + + try { + maybeInstance = findHostInstance(this); + } catch (error) {} + + if (maybeInstance == null) { + return; + } + + var viewConfig = maybeInstance.viewConfig || maybeInstance.canonical.viewConfig; + var updatePayload = create(nativeProps, viewConfig.validAttributes); + + if (updatePayload != null) { + UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, updatePayload); + } + }; + + return ReactNativeComponent; + }(React.Component); + + return ReactNativeComponent; + }; + + var getInspectorDataForViewTag = void 0; + { + var traverseOwnerTreeUp = function traverseOwnerTreeUp(hierarchy, instance) { + if (instance) { + hierarchy.unshift(instance); + traverseOwnerTreeUp(hierarchy, instance._debugOwner); + } + }; + + var getOwnerHierarchy = function getOwnerHierarchy(instance) { + var hierarchy = []; + traverseOwnerTreeUp(hierarchy, instance); + return hierarchy; + }; + + var lastNonHostInstance = function lastNonHostInstance(hierarchy) { + for (var i = hierarchy.length - 1; i > 1; i--) { + var instance = hierarchy[i]; + + if (instance.tag !== HostComponent) { + return instance; + } + } + + return hierarchy[0]; + }; + + var getHostProps = function getHostProps(fiber) { + var host = findCurrentHostFiber(fiber); + + if (host) { + return host.memoizedProps || emptyObject; + } + + return emptyObject; + }; + + var getHostNode = function getHostNode(fiber, findNodeHandle) { + var hostNode = void 0; + + while (fiber) { + if (fiber.stateNode !== null && fiber.tag === HostComponent) { + hostNode = findNodeHandle(fiber.stateNode); + } + + if (hostNode) { + return hostNode; + } + + fiber = fiber.child; + } + + return null; + }; + + var createHierarchy = function createHierarchy(fiberHierarchy) { + return fiberHierarchy.map(function (fiber) { + return { + name: getComponentName(fiber), + getInspectorData: function getInspectorData(findNodeHandle) { + return { + measure: function measure(callback) { + return UIManager.measure(getHostNode(fiber, findNodeHandle), callback); + }, + props: getHostProps(fiber), + source: fiber._debugSource + }; + } + }; + }); + }; + + getInspectorDataForViewTag = function getInspectorDataForViewTag(viewTag) { + var closestInstance = getInstanceFromTag(viewTag); + + if (!closestInstance) { + return { + hierarchy: [], + props: emptyObject, + selection: null, + source: null + }; + } + + var fiber = findCurrentFiberUsingSlowPath(closestInstance); + var fiberHierarchy = getOwnerHierarchy(fiber); + var instance = lastNonHostInstance(fiberHierarchy); + var hierarchy = createHierarchy(fiberHierarchy); + var props = getHostProps(instance); + var source = instance._debugSource; + var selection = fiberHierarchy.indexOf(instance); + return { + hierarchy: hierarchy, + props: props, + selection: selection, + source: source + }; + }; + } + var findHostInstance = findHostInstance$1; + + function findNodeHandle(componentOrHandle) { + { + var owner = ReactCurrentOwner.current; + + if (owner !== null && owner.stateNode !== null) { + !owner.stateNode._warnedAboutRefsInRender ? warning(false, "%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentName(owner) || "A component") : void 0; + owner.stateNode._warnedAboutRefsInRender = true; + } + } + + if (componentOrHandle == null) { + return null; + } + + if (typeof componentOrHandle === "number") { + return componentOrHandle; + } + + if (componentOrHandle._nativeTag) { + return componentOrHandle._nativeTag; + } + + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { + return componentOrHandle.canonical._nativeTag; + } + + var hostInstance = findHostInstance(componentOrHandle); + + if (hostInstance == null) { + return hostInstance; + } + + if (hostInstance.canonical) { + return hostInstance.canonical._nativeTag; + } + + return hostInstance._nativeTag; + } + + injection$2.injectRenderer(ReactNativeFiberRenderer); + + function computeComponentStackForErrorReporting(reactTag) { + var fiber = getInstanceFromTag(reactTag); + + if (!fiber) { + return ""; + } + + return getStackAddendumByWorkInProgressFiber(fiber); + } + + var roots = new Map(); + var ReactNativeRenderer = { + NativeComponent: ReactNativeComponent(findNodeHandle, findHostInstance), + findNodeHandle: findNodeHandle, + render: function render(element, containerTag, callback) { + var root = roots.get(containerTag); + + if (!root) { + root = createContainer(containerTag, false, false); + roots.set(containerTag, root); + } + + updateContainer(element, root, null, callback); + return getPublicRootInstance(root); + }, + unmountComponentAtNode: function unmountComponentAtNode(containerTag) { + var root = roots.get(containerTag); + + if (root) { + updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + } + }, + unmountComponentAtNodeAndRemoveContainer: function unmountComponentAtNodeAndRemoveContainer(containerTag) { + ReactNativeRenderer.unmountComponentAtNode(containerTag); + UIManager.removeRootView(containerTag); + }, + createPortal: function createPortal(children, containerTag) { + var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + return _createPortal(children, containerTag, null, key); + }, + unstable_batchedUpdates: batchedUpdates, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + NativeMethodsMixin: NativeMethodsMixin(findNodeHandle, findHostInstance), + computeComponentStackForErrorReporting: computeComponentStackForErrorReporting + } + }; + injectIntoDevTools({ + findFiberByHostInstance: getInstanceFromTag, + getInspectorDataForViewTag: getInspectorDataForViewTag, + bundleType: 1, + version: ReactVersion, + rendererPackageName: "react-native-renderer" + }); + var ReactNativeRenderer$2 = Object.freeze({ + default: ReactNativeRenderer + }); + var ReactNativeRenderer$3 = ReactNativeRenderer$2 && ReactNativeRenderer || ReactNativeRenderer$2; + var reactNativeRenderer = ReactNativeRenderer$3.default ? ReactNativeRenderer$3.default : ReactNativeRenderer$3; + module.exports = reactNativeRenderer; + })(); + } +},262,[263,166,183,231,218,322,1,323,173,324,226,325,9,271],"node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _require = _$$_REQUIRE(_dependencyMap[0], 'PolyfillFunctions'), + polyfillObjectProperty = _require.polyfillObjectProperty, + polyfillGlobal = _require.polyfillGlobal; + + if (global.GLOBAL === undefined) { + global.GLOBAL = global; + } + + if (global.window === undefined) { + global.window = global; + } + + var _shouldPolyfillCollection = _$$_REQUIRE(_dependencyMap[1], '_shouldPolyfillES6Collection'); + + if (_shouldPolyfillCollection('Map')) { + polyfillGlobal('Map', function () { + return _$$_REQUIRE(_dependencyMap[2], 'Map'); + }); + } + + if (_shouldPolyfillCollection('Set')) { + polyfillGlobal('Set', function () { + return _$$_REQUIRE(_dependencyMap[3], 'Set'); + }); + } + + global.process = global.process || {}; + global.process.env = global.process.env || {}; + + if (!global.process.env.NODE_ENV) { + global.process.env.NODE_ENV = __DEV__ ? 'development' : 'production'; + } + + if (global.__RCTProfileIsProfiling) { + var Systrace = _$$_REQUIRE(_dependencyMap[4], 'Systrace'); + + Systrace.installReactHook(); + Systrace.setEnabled(true); + } + + var ExceptionsManager = _$$_REQUIRE(_dependencyMap[5], 'ExceptionsManager'); + + ExceptionsManager.installConsoleErrorReporter(); + + if (!global.__fbDisableExceptionsManager) { + var handleError = function handleError(e, isFatal) { + try { + ExceptionsManager.handleException(e, isFatal); + } catch (ee) { + console.log('Failed to print error: ', ee.message); + throw e; + } + }; + + var ErrorUtils = _$$_REQUIRE(_dependencyMap[6], 'ErrorUtils'); + + ErrorUtils.setGlobalHandler(handleError); + } + + var ReactNativeVersionCheck = _$$_REQUIRE(_dependencyMap[7], 'ReactNativeVersionCheck'); + + ReactNativeVersionCheck.checkVersions(); + polyfillGlobal('Promise', function () { + return _$$_REQUIRE(_dependencyMap[8], 'Promise'); + }); + polyfillGlobal('regeneratorRuntime', function () { + delete global.regeneratorRuntime; + + _$$_REQUIRE(_dependencyMap[9], 'regenerator-runtime/runtime'); + + return global.regeneratorRuntime; + }); + + var defineLazyTimer = function defineLazyTimer(name) { + polyfillGlobal(name, function () { + return _$$_REQUIRE(_dependencyMap[10], 'JSTimers')[name]; + }); + }; + + defineLazyTimer('setTimeout'); + defineLazyTimer('setInterval'); + defineLazyTimer('setImmediate'); + defineLazyTimer('clearTimeout'); + defineLazyTimer('clearInterval'); + defineLazyTimer('clearImmediate'); + defineLazyTimer('requestAnimationFrame'); + defineLazyTimer('cancelAnimationFrame'); + defineLazyTimer('requestIdleCallback'); + defineLazyTimer('cancelIdleCallback'); + polyfillGlobal('XMLHttpRequest', function () { + return _$$_REQUIRE(_dependencyMap[11], 'XMLHttpRequest'); + }); + polyfillGlobal('FormData', function () { + return _$$_REQUIRE(_dependencyMap[12], 'FormData'); + }); + polyfillGlobal('fetch', function () { + return _$$_REQUIRE(_dependencyMap[13], 'fetch').fetch; + }); + polyfillGlobal('Headers', function () { + return _$$_REQUIRE(_dependencyMap[13], 'fetch').Headers; + }); + polyfillGlobal('Request', function () { + return _$$_REQUIRE(_dependencyMap[13], 'fetch').Request; + }); + polyfillGlobal('Response', function () { + return _$$_REQUIRE(_dependencyMap[13], 'fetch').Response; + }); + polyfillGlobal('WebSocket', function () { + return _$$_REQUIRE(_dependencyMap[14], 'WebSocket'); + }); + polyfillGlobal('Blob', function () { + return _$$_REQUIRE(_dependencyMap[15], 'Blob'); + }); + polyfillGlobal('File', function () { + return _$$_REQUIRE(_dependencyMap[16], 'File'); + }); + polyfillGlobal('FileReader', function () { + return _$$_REQUIRE(_dependencyMap[17], 'FileReader'); + }); + polyfillGlobal('URL', function () { + return _$$_REQUIRE(_dependencyMap[18], 'URL'); + }); + + if (!global.alert) { + global.alert = function (text) { + _$$_REQUIRE(_dependencyMap[19], 'Alert').alert('Alert', '' + text); + }; + } + + var navigator = global.navigator; + + if (navigator === undefined) { + global.navigator = navigator = {}; + } + + polyfillObjectProperty(navigator, 'product', function () { + return 'ReactNative'; + }); + polyfillObjectProperty(navigator, 'geolocation', function () { + return _$$_REQUIRE(_dependencyMap[20], 'Geolocation'); + }); + + var BatchedBridge = _$$_REQUIRE(_dependencyMap[21], 'BatchedBridge'); + + BatchedBridge.registerLazyCallableModule('Systrace', function () { + return _$$_REQUIRE(_dependencyMap[4], 'Systrace'); + }); + BatchedBridge.registerLazyCallableModule('JSTimers', function () { + return _$$_REQUIRE(_dependencyMap[10], 'JSTimers'); + }); + BatchedBridge.registerLazyCallableModule('HeapCapture', function () { + return _$$_REQUIRE(_dependencyMap[22], 'HeapCapture'); + }); + BatchedBridge.registerLazyCallableModule('SamplingProfiler', function () { + return _$$_REQUIRE(_dependencyMap[23], 'SamplingProfiler'); + }); + BatchedBridge.registerLazyCallableModule('RCTLog', function () { + return _$$_REQUIRE(_dependencyMap[24], 'RCTLog'); + }); + BatchedBridge.registerLazyCallableModule('RCTDeviceEventEmitter', function () { + return _$$_REQUIRE(_dependencyMap[25], 'RCTDeviceEventEmitter'); + }); + BatchedBridge.registerLazyCallableModule('RCTNativeAppEventEmitter', function () { + return _$$_REQUIRE(_dependencyMap[26], 'RCTNativeAppEventEmitter'); + }); + BatchedBridge.registerLazyCallableModule('PerformanceLogger', function () { + return _$$_REQUIRE(_dependencyMap[27], 'PerformanceLogger'); + }); + BatchedBridge.registerLazyCallableModule('JSDevSupportModule', function () { + return _$$_REQUIRE(_dependencyMap[28], 'JSDevSupportModule'); + }); + + global.__fetchSegment = function (segmentId, options, callback) { + var _require2 = _$$_REQUIRE(_dependencyMap[29], 'NativeModules'), + SegmentFetcher = _require2.SegmentFetcher; + + if (!SegmentFetcher) { + throw new Error('SegmentFetcher is missing. Please ensure that it is ' + 'included as a NativeModule.'); + } + + SegmentFetcher.fetchSegment(segmentId, options, function (errorObject) { + if (errorObject) { + var error = new Error(errorObject.message); + error.code = errorObject.code; + callback(error); + } + + callback(null); + }); + }; + + if (__DEV__) { + if (!global.__RCTProfileIsProfiling) { + BatchedBridge.registerCallableModule('HMRClient', _$$_REQUIRE(_dependencyMap[30], 'HMRClient')); + + if (!window.document) { + _$$_REQUIRE(_dependencyMap[31], 'setupDevtools'); + } + + var JSInspector = _$$_REQUIRE(_dependencyMap[32], 'JSInspector'); + + JSInspector.registerAgent(_$$_REQUIRE(_dependencyMap[33], 'NetworkAgent')); + } + } +},263,[264,265,266,270,172,271,171,276,186,278,175,279,293,274,294,290,296,297,298,299,301,169,304,305,306,194,307,308,310,168,311,316,319,320],"node_modules/react-native/Libraries/Core/InitializeCore.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var defineLazyObjectProperty = _$$_REQUIRE(_dependencyMap[0], 'defineLazyObjectProperty'); + + function polyfillObjectProperty(object, name, getValue) { + var descriptor = Object.getOwnPropertyDescriptor(object, name); + + if (__DEV__ && descriptor) { + var backupName = "original" + name[0].toUpperCase() + name.substr(1); + Object.defineProperty(object, backupName, _objectSpread({}, descriptor, { + value: object[name] + })); + } + + var _ref = descriptor || {}, + enumerable = _ref.enumerable, + writable = _ref.writable, + configurable = _ref.configurable; + + if (descriptor && !configurable) { + console.error('Failed to set polyfill. ' + name + ' is not configurable.'); + return; + } + + defineLazyObjectProperty(object, name, { + get: getValue, + enumerable: enumerable !== false, + writable: writable !== false + }); + } + + function polyfillGlobal(name, getValue) { + polyfillObjectProperty(global, name, getValue); + } + + module.exports = { + polyfillObjectProperty: polyfillObjectProperty, + polyfillGlobal: polyfillGlobal + }; +},264,[185],"node_modules/react-native/Libraries/Utilities/PolyfillFunctions.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _shouldActuallyPolyfillES6Collection(collectionName) { + var Collection = global[collectionName]; + + if (Collection == null) { + return true; + } + + if (typeof global.Symbol !== 'function') { + return true; + } + + var proto = Collection.prototype; + return Collection == null || typeof Collection !== 'function' || typeof proto.clear !== 'function' || new Collection().size !== 0 || typeof proto.keys !== 'function' || typeof proto.forEach !== 'function'; + } + + var cache = {}; + + function _shouldPolyfillES6Collection(collectionName) { + var result = cache[collectionName]; + + if (result !== undefined) { + return result; + } + + result = _shouldActuallyPolyfillES6Collection(collectionName); + cache[collectionName] = result; + return result; + } + + module.exports = _shouldPolyfillES6Collection; +},265,[],"node_modules/react-native/Libraries/vendor/core/_shouldPolyfillES6Collection.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var _shouldPolyfillES6Collection = _$$_REQUIRE(_dependencyMap[0], '_shouldPolyfillES6Collection'); + + var guid = _$$_REQUIRE(_dependencyMap[1], 'guid'); + + var isNode = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/isNode'); + + var toIterator = _$$_REQUIRE(_dependencyMap[3], 'toIterator'); + + module.exports = function (global, undefined) { + if (!_shouldPolyfillES6Collection('Map')) { + return global.Map; + } + + var KIND_KEY = 'key'; + var KIND_VALUE = 'value'; + var KIND_KEY_VALUE = 'key+value'; + var KEY_PREFIX = '$map_'; + var SECRET_SIZE_PROP; + + if (__DEV__) { + SECRET_SIZE_PROP = '$size' + guid(); + } + + var OLD_IE_HASH_PREFIX = 'IE_HASH_'; + + var Map = function () { + function Map(iterable) { + _classCallCheck(this, Map); + + if (!isObject(this)) { + throw new TypeError('Wrong map object type.'); + } + + initMap(this); + + if (iterable != null) { + var it = toIterator(iterable); + var next; + + while (!(next = it.next()).done) { + if (!isObject(next.value)) { + throw new TypeError('Expected iterable items to be pair objects.'); + } + + this.set(next.value[0], next.value[1]); + } + } + } + + _createClass(Map, [{ + key: "clear", + value: function clear() { + initMap(this); + } + }, { + key: "has", + value: function has(key) { + var index = getIndex(this, key); + return !!(index != null && this._mapData[index]); + } + }, { + key: "set", + value: function set(key, value) { + var index = getIndex(this, key); + + if (index != null && this._mapData[index]) { + this._mapData[index][1] = value; + } else { + index = this._mapData.push([key, value]) - 1; + setIndex(this, key, index); + + if (__DEV__) { + this[SECRET_SIZE_PROP] += 1; + } else { + this.size += 1; + } + } + + return this; + } + }, { + key: "get", + value: function get(key) { + var index = getIndex(this, key); + + if (index == null) { + return undefined; + } else { + return this._mapData[index][1]; + } + } + }, { + key: "delete", + value: function _delete(key) { + var index = getIndex(this, key); + + if (index != null && this._mapData[index]) { + setIndex(this, key, undefined); + this._mapData[index] = undefined; + + if (__DEV__) { + this[SECRET_SIZE_PROP] -= 1; + } else { + this.size -= 1; + } + + return true; + } else { + return false; + } + } + }, { + key: "entries", + value: function entries() { + return new MapIterator(this, KIND_KEY_VALUE); + } + }, { + key: "keys", + value: function keys() { + return new MapIterator(this, KIND_KEY); + } + }, { + key: "values", + value: function values() { + return new MapIterator(this, KIND_VALUE); + } + }, { + key: "forEach", + value: function forEach(callback, thisArg) { + if (typeof callback !== 'function') { + throw new TypeError('Callback must be callable.'); + } + + var boundCallback = callback.bind(thisArg || undefined); + var mapData = this._mapData; + + for (var i = 0; i < mapData.length; i++) { + var entry = mapData[i]; + + if (entry != null) { + boundCallback(entry[1], entry[0], this); + } + } + } + }]); + + return Map; + }(); + + Map.prototype[toIterator.ITERATOR_SYMBOL] = Map.prototype.entries; + + var MapIterator = function () { + function MapIterator(map, kind) { + _classCallCheck(this, MapIterator); + + if (!(isObject(map) && map._mapData)) { + throw new TypeError('Object is not a map.'); + } + + if ([KIND_KEY, KIND_KEY_VALUE, KIND_VALUE].indexOf(kind) === -1) { + throw new Error('Invalid iteration kind.'); + } + + this._map = map; + this._nextIndex = 0; + this._kind = kind; + } + + _createClass(MapIterator, [{ + key: "next", + value: function next() { + if (!this instanceof Map) { + throw new TypeError('Expected to be called on a MapIterator.'); + } + + var map = this._map; + var index = this._nextIndex; + var kind = this._kind; + + if (map == null) { + return createIterResultObject(undefined, true); + } + + var entries = map._mapData; + + while (index < entries.length) { + var record = entries[index]; + index += 1; + this._nextIndex = index; + + if (record) { + if (kind === KIND_KEY) { + return createIterResultObject(record[0], false); + } else if (kind === KIND_VALUE) { + return createIterResultObject(record[1], false); + } else if (kind) { + return createIterResultObject(record, false); + } + } + } + + this._map = undefined; + return createIterResultObject(undefined, true); + } + }]); + + return MapIterator; + }(); + + MapIterator.prototype[toIterator.ITERATOR_SYMBOL] = function () { + return this; + }; + + function getIndex(map, key) { + if (isObject(key)) { + var hash = getHash(key); + return map._objectIndex[hash]; + } else { + var prefixedKey = KEY_PREFIX + key; + + if (typeof key === 'string') { + return map._stringIndex[prefixedKey]; + } else { + return map._otherIndex[prefixedKey]; + } + } + } + + function setIndex(map, key, index) { + var shouldDelete = index == null; + + if (isObject(key)) { + var hash = getHash(key); + + if (shouldDelete) { + delete map._objectIndex[hash]; + } else { + map._objectIndex[hash] = index; + } + } else { + var prefixedKey = KEY_PREFIX + key; + + if (typeof key === 'string') { + if (shouldDelete) { + delete map._stringIndex[prefixedKey]; + } else { + map._stringIndex[prefixedKey] = index; + } + } else { + if (shouldDelete) { + delete map._otherIndex[prefixedKey]; + } else { + map._otherIndex[prefixedKey] = index; + } + } + } + } + + function initMap(map) { + map._mapData = []; + map._objectIndex = {}; + map._stringIndex = {}; + map._otherIndex = {}; + + if (__DEV__) { + if (isES5) { + if (map.hasOwnProperty(SECRET_SIZE_PROP)) { + map[SECRET_SIZE_PROP] = 0; + } else { + Object.defineProperty(map, SECRET_SIZE_PROP, { + value: 0, + writable: true + }); + Object.defineProperty(map, 'size', { + set: function set(v) { + console.error('PLEASE FIX ME: You are changing the map size property which ' + 'should not be writable and will break in production.'); + throw new Error('The map size property is not writable.'); + }, + get: function get() { + return map[SECRET_SIZE_PROP]; + } + }); + } + + return; + } + } + + map.size = 0; + } + + function isObject(o) { + return o != null && (typeof o === 'object' || typeof o === 'function'); + } + + function createIterResultObject(value, done) { + return { + value: value, + done: done + }; + } + + var isES5 = function () { + try { + Object.defineProperty({}, 'x', {}); + return true; + } catch (e) { + return false; + } + }(); + + function isExtensible(o) { + if (!isES5) { + return true; + } else { + return Object.isExtensible(o); + } + } + + function getIENodeHash(node) { + var uniqueID; + + switch (node.nodeType) { + case 1: + uniqueID = node.uniqueID; + break; + + case 9: + uniqueID = node.documentElement.uniqueID; + break; + + default: + return null; + } + + if (uniqueID) { + return OLD_IE_HASH_PREFIX + uniqueID; + } else { + return null; + } + } + + var getHash = function () { + var propIsEnumerable = Object.prototype.propertyIsEnumerable; + var hashProperty = guid(); + var hashCounter = 0; + return function getHash(o) { + if (o[hashProperty]) { + return o[hashProperty]; + } else if (!isES5 && o.propertyIsEnumerable && o.propertyIsEnumerable[hashProperty]) { + return o.propertyIsEnumerable[hashProperty]; + } else if (!isES5 && isNode(o) && getIENodeHash(o)) { + return getIENodeHash(o); + } else if (!isES5 && o[hashProperty]) { + return o[hashProperty]; + } + + if (isExtensible(o)) { + hashCounter += 1; + + if (isES5) { + Object.defineProperty(o, hashProperty, { + enumerable: false, + writable: false, + configurable: false, + value: hashCounter + }); + } else if (o.propertyIsEnumerable) { + o.propertyIsEnumerable = function () { + return propIsEnumerable.apply(this, arguments); + }; + + o.propertyIsEnumerable[hashProperty] = hashCounter; + } else if (isNode(o)) { + o[hashProperty] = hashCounter; + } else { + throw new Error('Unable to set a non-enumerable property on object.'); + } + + return hashCounter; + } else { + throw new Error('Non-extensible objects are not allowed as keys.'); + } + }; + }(); + + return Map; + }(Function('return this')()); +},266,[265,267,268,269],"node_modules/react-native/Libraries/vendor/core/Map.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function guid() { + return 'f' + (Math.random() * (1 << 30)).toString(16).replace('.', ''); + } + + module.exports = guid; +},267,[],"node_modules/react-native/Libraries/vendor/core/guid.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function isNode(object) { + var doc = object ? object.ownerDocument || object : document; + var defaultView = doc.defaultView || window; + return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); + } + + module.exports = isNode; +},268,[],"node_modules/react-native/node_modules/fbjs/lib/isNode.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var KIND_KEY = 'key'; + var KIND_VALUE = 'value'; + var KIND_KEY_VAL = 'key+value'; + var ITERATOR_SYMBOL = typeof Symbol === 'function' ? typeof Symbol === "function" ? Symbol.iterator : "@@iterator" : '@@iterator'; + + var toIterator = function () { + if (!(Array.prototype[ITERATOR_SYMBOL] && String.prototype[ITERATOR_SYMBOL])) { + return function () { + var ArrayIterator = function () { + function ArrayIterator(array, kind) { + _classCallCheck(this, ArrayIterator); + + if (!Array.isArray(array)) { + throw new TypeError('Object is not an Array'); + } + + this._iteratedObject = array; + this._kind = kind; + this._nextIndex = 0; + } + + _createClass(ArrayIterator, [{ + key: "next", + value: function next() { + if (!this instanceof ArrayIterator) { + throw new TypeError('Object is not an ArrayIterator'); + } + + if (this._iteratedObject == null) { + return createIterResultObject(undefined, true); + } + + var array = this._iteratedObject; + var len = this._iteratedObject.length; + var index = this._nextIndex; + var kind = this._kind; + + if (index >= len) { + this._iteratedObject = undefined; + return createIterResultObject(undefined, true); + } + + this._nextIndex = index + 1; + + if (kind === KIND_KEY) { + return createIterResultObject(index, false); + } else if (kind === KIND_VALUE) { + return createIterResultObject(array[index], false); + } else if (kind === KIND_KEY_VAL) { + return createIterResultObject([index, array[index]], false); + } + } + }, { + key: '@@iterator', + value: function iterator() { + return this; + } + }]); + + return ArrayIterator; + }(); + + var StringIterator = function () { + function StringIterator(string) { + _classCallCheck(this, StringIterator); + + if (typeof string !== 'string') { + throw new TypeError('Object is not a string'); + } + + this._iteratedString = string; + this._nextIndex = 0; + } + + _createClass(StringIterator, [{ + key: "next", + value: function next() { + if (!this instanceof StringIterator) { + throw new TypeError('Object is not a StringIterator'); + } + + if (this._iteratedString == null) { + return createIterResultObject(undefined, true); + } + + var index = this._nextIndex; + var s = this._iteratedString; + var len = s.length; + + if (index >= len) { + this._iteratedString = undefined; + return createIterResultObject(undefined, true); + } + + var ret; + var first = s.charCodeAt(index); + + if (first < 0xd800 || first > 0xdbff || index + 1 === len) { + ret = s[index]; + } else { + var second = s.charCodeAt(index + 1); + + if (second < 0xdc00 || second > 0xdfff) { + ret = s[index]; + } else { + ret = s[index] + s[index + 1]; + } + } + + this._nextIndex = index + ret.length; + return createIterResultObject(ret, false); + } + }, { + key: '@@iterator', + value: function iterator() { + return this; + } + }]); + + return StringIterator; + }(); + + function createIterResultObject(value, done) { + return { + value: value, + done: done + }; + } + + return function (object, kind) { + if (typeof object === 'string') { + return new StringIterator(object); + } else if (Array.isArray(object)) { + return new ArrayIterator(object, kind || KIND_VALUE); + } else { + return object[ITERATOR_SYMBOL](); + } + }; + }(); + } else { + return function (object) { + return object[ITERATOR_SYMBOL](); + }; + } + }(); + + _extends(toIterator, { + KIND_KEY: KIND_KEY, + KIND_VALUE: KIND_VALUE, + KIND_KEY_VAL: KIND_KEY_VAL, + ITERATOR_SYMBOL: ITERATOR_SYMBOL + }); + + module.exports = toIterator; +},269,[],"node_modules/react-native/Libraries/vendor/core/toIterator.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var Map = _$$_REQUIRE(_dependencyMap[0], 'Map'); + + var _shouldPolyfillES6Collection = _$$_REQUIRE(_dependencyMap[1], '_shouldPolyfillES6Collection'); + + var toIterator = _$$_REQUIRE(_dependencyMap[2], 'toIterator'); + + module.exports = function (global) { + if (!_shouldPolyfillES6Collection('Set')) { + return global.Set; + } + + var Set = function () { + function Set(iterable) { + _classCallCheck(this, Set); + + if (this == null || typeof this !== 'object' && typeof this !== 'function') { + throw new TypeError('Wrong set object type.'); + } + + initSet(this); + + if (iterable != null) { + var it = toIterator(iterable); + var next; + + while (!(next = it.next()).done) { + this.add(next.value); + } + } + } + + _createClass(Set, [{ + key: "add", + value: function add(value) { + this._map.set(value, value); + + this.size = this._map.size; + return this; + } + }, { + key: "clear", + value: function clear() { + initSet(this); + } + }, { + key: "delete", + value: function _delete(value) { + var ret = this._map.delete(value); + + this.size = this._map.size; + return ret; + } + }, { + key: "entries", + value: function entries() { + return this._map.entries(); + } + }, { + key: "forEach", + value: function forEach(callback) { + var thisArg = arguments[1]; + + var it = this._map.keys(); + + var next; + + while (!(next = it.next()).done) { + callback.call(thisArg, next.value, next.value, this); + } + } + }, { + key: "has", + value: function has(value) { + return this._map.has(value); + } + }, { + key: "values", + value: function values() { + return this._map.values(); + } + }]); + + return Set; + }(); + + Set.prototype[toIterator.ITERATOR_SYMBOL] = Set.prototype.values; + Set.prototype.keys = Set.prototype.values; + + function initSet(set) { + set._map = new Map(); + set.size = set._map.size; + } + + return Set; + }(Function('return this')()); +},270,[266,265,269],"node_modules/react-native/Libraries/vendor/core/Set.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var exceptionID = 0; + + function reportException(e, isFatal) { + var _require = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'), + ExceptionsManager = _require.ExceptionsManager; + + if (ExceptionsManager) { + var parseErrorStack = _$$_REQUIRE(_dependencyMap[1], 'parseErrorStack'); + + var stack = parseErrorStack(e); + var currentExceptionID = ++exceptionID; + + if (isFatal) { + ExceptionsManager.reportFatalException(e.message, stack, currentExceptionID); + } else { + ExceptionsManager.reportSoftException(e.message, stack, currentExceptionID); + } + + if (__DEV__) { + var symbolicateStackTrace = _$$_REQUIRE(_dependencyMap[2], 'symbolicateStackTrace'); + + symbolicateStackTrace(stack).then(function (prettyStack) { + if (prettyStack) { + ExceptionsManager.updateExceptionMessage(e.message, prettyStack, currentExceptionID); + } else { + throw new Error('The stack is null'); + } + }).catch(function (error) { + return console.warn('Unable to symbolicate stack trace: ' + error.message); + }); + } + } + } + + function handleException(e, isFatal) { + if (!e.message) { + e = new Error(e); + } + + if (console._errorOriginal) { + console._errorOriginal(e.message); + } else { + console.error(e.message); + } + + reportException(e, isFatal); + } + + function reactConsoleErrorHandler() { + console._errorOriginal.apply(console, arguments); + + if (!console.reportErrorsAsExceptions) { + return; + } + + if (arguments[0] && arguments[0].stack) { + reportException(arguments[0], false); + } else { + var stringifySafe = _$$_REQUIRE(_dependencyMap[3], 'stringifySafe'); + + var str = Array.prototype.map.call(arguments, stringifySafe).join(', '); + + if (str.slice(0, 10) === '"Warning: ') { + return; + } + + var error = new Error('console.error: ' + str); + error.framesToPop = 1; + reportException(error, false); + } + } + + function installConsoleErrorReporter() { + if (console._errorOriginal) { + return; + } + + console._errorOriginal = console.error.bind(console); + console.error = reactConsoleErrorHandler; + + if (console.reportErrorsAsExceptions === undefined) { + console.reportErrorsAsExceptions = true; + } + } + + module.exports = { + handleException: handleException, + installConsoleErrorReporter: installConsoleErrorReporter + }; +},271,[168,180,272,174],"node_modules/react-native/Libraries/Core/ExceptionsManager.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var getDevServer = _$$_REQUIRE(_dependencyMap[0], 'getDevServer'); + + var _require = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'), + SourceCode = _require.SourceCode; + + var fetch; + + function isSourcedFromDisk(sourcePath) { + return !/^http/.test(sourcePath) && /[\\/]/.test(sourcePath); + } + + function symbolicateStackTrace(stack) { + var devServer, stackCopy, foundInternalSource, response, json; + return regeneratorRuntime.async(function symbolicateStackTrace$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!fetch) { + fetch = global.fetch || _$$_REQUIRE(_dependencyMap[2], 'fetch').fetch; + } + + devServer = getDevServer(); + + if (devServer.bundleLoadedFromServer) { + _context.next = 4; + break; + } + + throw new Error('Bundle was not loaded from the packager'); + + case 4: + stackCopy = stack; + + if (SourceCode.scriptURL) { + foundInternalSource = false; + stackCopy = stack.map(function (frame) { + if (!foundInternalSource && isSourcedFromDisk(frame.file)) { + return _objectSpread({}, frame, { + file: SourceCode.scriptURL + }); + } + + foundInternalSource = true; + return frame; + }); + } + + _context.next = 8; + return regeneratorRuntime.awrap(fetch(devServer.url + 'symbolicate', { + method: 'POST', + body: JSON.stringify({ + stack: stackCopy + }) + })); + + case 8: + response = _context.sent; + _context.next = 11; + return regeneratorRuntime.awrap(response.json()); + + case 11: + json = _context.sent; + return _context.abrupt("return", json.stack); + + case 13: + case "end": + return _context.stop(); + } + } + }, null, this); + } + + module.exports = symbolicateStackTrace; +},272,[273,168,274],"node_modules/react-native/Libraries/Core/Devtools/symbolicateStackTrace.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _require = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'), + SourceCode = _require.SourceCode; + + var _cachedDevServerURL; + + var FALLBACK = 'http://localhost:8081/'; + + function getDevServer() { + if (_cachedDevServerURL === undefined) { + var match = SourceCode && SourceCode.scriptURL && SourceCode.scriptURL.match(/^https?:\/\/.*?\//); + _cachedDevServerURL = match ? match[0] : null; + } + + return { + url: _cachedDevServerURL || FALLBACK, + bundleLoadedFromServer: _cachedDevServerURL !== null + }; + } + + module.exports = getDevServer; +},273,[168],"node_modules/react-native/Libraries/Core/Devtools/getDevServer.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var whatwg = _$$_REQUIRE(_dependencyMap[0], 'whatwg-fetch'); + + if (whatwg && whatwg.fetch) { + module.exports = whatwg; + } else { + module.exports = { + fetch: fetch, + Headers: Headers, + Request: Request, + Response: Response + }; + } +},274,[275],"node_modules/react-native/Libraries/Network/fetch.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + (function (self) { + 'use strict'; + + if (self.fetch) { + return; + } + + var support = { + searchParams: 'URLSearchParams' in self, + iterable: 'Symbol' in self && 'iterator' in Symbol, + blob: 'FileReader' in self && 'Blob' in self && function () { + try { + new Blob(); + return true; + } catch (e) { + return false; + } + }(), + formData: 'FormData' in self, + arrayBuffer: 'ArrayBuffer' in self + }; + + if (support.arrayBuffer) { + var viewClasses = ['[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]']; + + var isDataView = function isDataView(obj) { + return obj && DataView.prototype.isPrototypeOf(obj); + }; + + var isArrayBufferView = ArrayBuffer.isView || function (obj) { + return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1; + }; + } + + function normalizeName(name) { + if (typeof name !== 'string') { + name = String(name); + } + + if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) { + throw new TypeError('Invalid character in header field name'); + } + + return name.toLowerCase(); + } + + function normalizeValue(value) { + if (typeof value !== 'string') { + value = String(value); + } + + return value; + } + + function iteratorFor(items) { + var iterator = { + next: function next() { + var value = items.shift(); + return { + done: value === undefined, + value: value + }; + } + }; + + if (support.iterable) { + iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"] = function () { + return iterator; + }; + } + + return iterator; + } + + function Headers(headers) { + this.map = {}; + + if (headers instanceof Headers) { + headers.forEach(function (value, name) { + this.append(name, value); + }, this); + } else if (Array.isArray(headers)) { + headers.forEach(function (header) { + this.append(header[0], header[1]); + }, this); + } else if (headers) { + Object.getOwnPropertyNames(headers).forEach(function (name) { + this.append(name, headers[name]); + }, this); + } + } + + Headers.prototype.append = function (name, value) { + name = normalizeName(name); + value = normalizeValue(value); + var oldValue = this.map[name]; + this.map[name] = oldValue ? oldValue + ',' + value : value; + }; + + Headers.prototype['delete'] = function (name) { + delete this.map[normalizeName(name)]; + }; + + Headers.prototype.get = function (name) { + name = normalizeName(name); + return this.has(name) ? this.map[name] : null; + }; + + Headers.prototype.has = function (name) { + return this.map.hasOwnProperty(normalizeName(name)); + }; + + Headers.prototype.set = function (name, value) { + this.map[normalizeName(name)] = normalizeValue(value); + }; + + Headers.prototype.forEach = function (callback, thisArg) { + for (var name in this.map) { + if (this.map.hasOwnProperty(name)) { + callback.call(thisArg, this.map[name], name, this); + } + } + }; + + Headers.prototype.keys = function () { + var items = []; + this.forEach(function (value, name) { + items.push(name); + }); + return iteratorFor(items); + }; + + Headers.prototype.values = function () { + var items = []; + this.forEach(function (value) { + items.push(value); + }); + return iteratorFor(items); + }; + + Headers.prototype.entries = function () { + var items = []; + this.forEach(function (value, name) { + items.push([name, value]); + }); + return iteratorFor(items); + }; + + if (support.iterable) { + Headers.prototype[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"] = Headers.prototype.entries; + } + + function consumed(body) { + if (body.bodyUsed) { + return Promise.reject(new TypeError('Already read')); + } + + body.bodyUsed = true; + } + + function fileReaderReady(reader) { + return new Promise(function (resolve, reject) { + reader.onload = function () { + resolve(reader.result); + }; + + reader.onerror = function () { + reject(reader.error); + }; + }); + } + + function readBlobAsArrayBuffer(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsArrayBuffer(blob); + return promise; + } + + function readBlobAsText(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsText(blob); + return promise; + } + + function readArrayBufferAsText(buf) { + var view = new Uint8Array(buf); + var chars = new Array(view.length); + + for (var i = 0; i < view.length; i++) { + chars[i] = String.fromCharCode(view[i]); + } + + return chars.join(''); + } + + function bufferClone(buf) { + if (buf.slice) { + return buf.slice(0); + } else { + var view = new Uint8Array(buf.byteLength); + view.set(new Uint8Array(buf)); + return view.buffer; + } + } + + function Body() { + this.bodyUsed = false; + + this._initBody = function (body) { + this._bodyInit = body; + + if (!body) { + this._bodyText = ''; + } else if (typeof body === 'string') { + this._bodyText = body; + } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { + this._bodyBlob = body; + } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { + this._bodyFormData = body; + } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { + this._bodyText = body.toString(); + } else if (support.arrayBuffer && support.blob && isDataView(body)) { + this._bodyArrayBuffer = bufferClone(body.buffer); + this._bodyInit = new Blob([this._bodyArrayBuffer]); + } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { + this._bodyArrayBuffer = bufferClone(body); + } else { + throw new Error('unsupported BodyInit type'); + } + + if (!this.headers.get('content-type')) { + if (typeof body === 'string') { + this.headers.set('content-type', 'text/plain;charset=UTF-8'); + } else if (this._bodyBlob && this._bodyBlob.type) { + this.headers.set('content-type', this._bodyBlob.type); + } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { + this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); + } + } + }; + + if (support.blob) { + this.blob = function () { + var rejected = consumed(this); + + if (rejected) { + return rejected; + } + + if (this._bodyBlob) { + return Promise.resolve(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(new Blob([this._bodyArrayBuffer])); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as blob'); + } else { + return Promise.resolve(new Blob([this._bodyText])); + } + }; + + this.arrayBuffer = function () { + if (this._bodyArrayBuffer) { + return consumed(this) || Promise.resolve(this._bodyArrayBuffer); + } else { + return this.blob().then(readBlobAsArrayBuffer); + } + }; + } + + this.text = function () { + var rejected = consumed(this); + + if (rejected) { + return rejected; + } + + if (this._bodyBlob) { + return readBlobAsText(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as text'); + } else { + return Promise.resolve(this._bodyText); + } + }; + + if (support.formData) { + this.formData = function () { + return this.text().then(decode); + }; + } + + this.json = function () { + return this.text().then(JSON.parse); + }; + + return this; + } + + var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; + + function normalizeMethod(method) { + var upcased = method.toUpperCase(); + return methods.indexOf(upcased) > -1 ? upcased : method; + } + + function Request(input, options) { + options = options || {}; + var body = options.body; + + if (input instanceof Request) { + if (input.bodyUsed) { + throw new TypeError('Already read'); + } + + this.url = input.url; + this.credentials = input.credentials; + + if (!options.headers) { + this.headers = new Headers(input.headers); + } + + this.method = input.method; + this.mode = input.mode; + + if (!body && input._bodyInit != null) { + body = input._bodyInit; + input.bodyUsed = true; + } + } else { + this.url = String(input); + } + + this.credentials = options.credentials || this.credentials || 'omit'; + + if (options.headers || !this.headers) { + this.headers = new Headers(options.headers); + } + + this.method = normalizeMethod(options.method || this.method || 'GET'); + this.mode = options.mode || this.mode || null; + this.referrer = null; + + if ((this.method === 'GET' || this.method === 'HEAD') && body) { + throw new TypeError('Body not allowed for GET or HEAD requests'); + } + + this._initBody(body); + } + + Request.prototype.clone = function () { + return new Request(this, { + body: this._bodyInit + }); + }; + + function decode(body) { + var form = new FormData(); + body.trim().split('&').forEach(function (bytes) { + if (bytes) { + var split = bytes.split('='); + var name = split.shift().replace(/\+/g, ' '); + var value = split.join('=').replace(/\+/g, ' '); + form.append(decodeURIComponent(name), decodeURIComponent(value)); + } + }); + return form; + } + + function parseHeaders(rawHeaders) { + var headers = new Headers(); + var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); + preProcessedHeaders.split(/\r?\n/).forEach(function (line) { + var parts = line.split(':'); + var key = parts.shift().trim(); + + if (key) { + var value = parts.join(':').trim(); + headers.append(key, value); + } + }); + return headers; + } + + Body.call(Request.prototype); + + function Response(bodyInit, options) { + if (!options) { + options = {}; + } + + this.type = 'default'; + this.status = options.status === undefined ? 200 : options.status; + this.ok = this.status >= 200 && this.status < 300; + this.statusText = 'statusText' in options ? options.statusText : 'OK'; + this.headers = new Headers(options.headers); + this.url = options.url || ''; + + this._initBody(bodyInit); + } + + Body.call(Response.prototype); + + Response.prototype.clone = function () { + return new Response(this._bodyInit, { + status: this.status, + statusText: this.statusText, + headers: new Headers(this.headers), + url: this.url + }); + }; + + Response.error = function () { + var response = new Response(null, { + status: 0, + statusText: '' + }); + response.type = 'error'; + return response; + }; + + var redirectStatuses = [301, 302, 303, 307, 308]; + + Response.redirect = function (url, status) { + if (redirectStatuses.indexOf(status) === -1) { + throw new RangeError('Invalid status code'); + } + + return new Response(null, { + status: status, + headers: { + location: url + } + }); + }; + + self.Headers = Headers; + self.Request = Request; + self.Response = Response; + + self.fetch = function (input, init) { + return new Promise(function (resolve, reject) { + var request = new Request(input, init); + var xhr = new XMLHttpRequest(); + + xhr.onload = function () { + var options = { + status: xhr.status, + statusText: xhr.statusText, + headers: parseHeaders(xhr.getAllResponseHeaders() || '') + }; + options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); + var body = 'response' in xhr ? xhr.response : xhr.responseText; + resolve(new Response(body, options)); + }; + + xhr.onerror = function () { + reject(new TypeError('Network request failed')); + }; + + xhr.ontimeout = function () { + reject(new TypeError('Network request failed')); + }; + + xhr.open(request.method, request.url, true); + + if (request.credentials === 'include') { + xhr.withCredentials = true; + } else if (request.credentials === 'omit') { + xhr.withCredentials = false; + } + + request.headers.forEach(function (value, name) { + xhr.setRequestHeader(name, value); + }); + xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); + }); + }; + + self.fetch.polyfill = true; + })(typeof self !== 'undefined' ? self : this); +},275,[],"node_modules/react-native/Libraries/vendor/core/whatwg-fetch.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _require = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'), + PlatformConstants = _require.PlatformConstants; + + var ReactNativeVersion = _$$_REQUIRE(_dependencyMap[1], 'ReactNativeVersion'); + + exports.checkVersions = function checkVersions() { + if (!PlatformConstants) { + return; + } + + var nativeVersion = PlatformConstants.reactNativeVersion; + + if (ReactNativeVersion.version.major !== nativeVersion.major || ReactNativeVersion.version.minor !== nativeVersion.minor) { + console.error("React Native version mismatch.\n\nJavaScript version: " + _formatVersion(ReactNativeVersion.version) + "\n" + ("Native version: " + _formatVersion(nativeVersion) + "\n\n") + 'Make sure that you have rebuilt the native code. If the problem ' + 'persists try clearing the Watchman and packager caches with ' + '`watchman watch-del-all && react-native start --reset-cache`.'); + } + }; + + function _formatVersion(version) { + return version.major + "." + version.minor + "." + version.patch + (version.prerelease !== null ? "-" + version.prerelease : ''); + } +},276,[168,277],"node_modules/react-native/Libraries/Core/ReactNativeVersionCheck.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + exports.version = { + major: 0, + minor: 56, + patch: 0, + prerelease: null + }; +},277,[],"node_modules/react-native/Libraries/Core/ReactNativeVersion.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + !function (global) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + + if (runtime) { + if (inModule) { + module.exports = runtime; + } + + return; + } + + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + + function wrap(innerFn, outerFn, self, tryLocsList) { + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + generator._invoke = makeInvokeMethod(innerFn, self, context); + return generator; + } + + runtime.wrap = wrap; + + function tryCatch(fn, obj, arg) { + try { + return { + type: "normal", + arg: fn.call(obj, arg) + }; + } catch (err) { + return { + type: "throw", + arg: err + }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + var ContinueSentinel = {}; + + function Generator() {} + + function GeneratorFunction() {} + + function GeneratorFunctionPrototype() {} + + var IteratorPrototype = {}; + + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + + if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; + + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function (method) { + prototype[method] = function (arg) { + return this._invoke(method, arg); + }; + }); + } + + runtime.isGeneratorFunction = function (genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor ? ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction" : false; + }; + + runtime.mark = function (genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + + genFun.prototype = Object.create(Gp); + return genFun; + }; + + runtime.awrap = function (arg) { + return { + __await: arg + }; + }; + + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + + if (value && typeof value === "object" && hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function (value) { + invoke("next", value, resolve, reject); + }, function (err) { + invoke("throw", err, resolve, reject); + }); + } + + return Promise.resolve(value).then(function (unwrapped) { + result.value = unwrapped; + resolve(result); + }, reject); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function (resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + } + + this._invoke = enqueue; + } + + defineIteratorMethods(AsyncIterator.prototype); + + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + + runtime.AsyncIterator = AsyncIterator; + + runtime.async = function (innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList)); + return runtime.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + context.sent = context._sent = context.arg; + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + var record = tryCatch(innerFn, self, context); + + if (record.type === "normal") { + state = context.done ? GenStateCompleted : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + } else if (record.type === "throw") { + state = GenStateCompleted; + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + + if (method === undefined) { + context.delegate = null; + + if (context.method === "throw") { + if (delegate.iterator.return) { + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (!info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + context[delegate.resultName] = info.value; + context.next = delegate.nextLoc; + + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + } else { + return info; + } + + context.delegate = null; + return ContinueSentinel; + } + + defineIteratorMethods(Gp); + Gp[toStringTagSymbol] = "Generator"; + + Gp[iteratorSymbol] = function () { + return this; + }; + + Gp.toString = function () { + return "[object Generator]"; + }; + + function pushTryEntry(locs) { + var entry = { + tryLoc: locs[0] + }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + this.tryEntries = [{ + tryLoc: "root" + }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + runtime.keys = function (object) { + var keys = []; + + for (var key in object) { + keys.push(key); + } + + keys.reverse(); + return function next() { + while (keys.length) { + var key = keys.pop(); + + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, + next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + return next; + }; + + return next.next = next; + } + } + + return { + next: doneResult + }; + } + + runtime.values = values; + + function doneResult() { + return { + value: undefined, + done: true + }; + } + + Context.prototype = { + constructor: Context, + reset: function reset(skipTempReset) { + this.prev = 0; + this.next = 0; + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + this.method = "next"; + this.arg = undefined; + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + stop: function stop() { + this.done = true; + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + dispatchException: function dispatchException(exception) { + if (this.done) { + throw exception; + } + + var context = this; + + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + context.method = "next"; + context.arg = undefined; + } + + return !!caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + abrupt: function abrupt(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + complete: function complete(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + finish: function finish(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + "catch": function _catch(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + + return thrown; + } + } + + throw new Error("illegal catch attempt"); + }, + delegateYield: function delegateYield(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + this.arg = undefined; + } + + return ContinueSentinel; + } + }; + }(function () { + return this; + }() || Function("return this")()); +},278,[],"node_modules/regenerator-runtime/runtime.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + + function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + + function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + + function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var EventTarget = _$$_REQUIRE(_dependencyMap[0], 'event-target-shim'); + + var RCTNetworking = _$$_REQUIRE(_dependencyMap[1], 'RCTNetworking'); + + var base64 = _$$_REQUIRE(_dependencyMap[2], 'base64-js'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var warning = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/warning'); + + var BlobManager = _$$_REQUIRE(_dependencyMap[5], 'BlobManager'); + + if (BlobManager.isAvailable) { + BlobManager.addNetworkingHandler(); + } + + var UNSENT = 0; + var OPENED = 1; + var HEADERS_RECEIVED = 2; + var LOADING = 3; + var DONE = 4; + var SUPPORTED_RESPONSE_TYPES = { + arraybuffer: typeof global.ArrayBuffer === 'function', + blob: typeof global.Blob === 'function', + document: false, + json: true, + text: true, + '': true + }; + var REQUEST_EVENTS = ['abort', 'error', 'load', 'loadstart', 'progress', 'timeout', 'loadend']; + var XHR_EVENTS = REQUEST_EVENTS.concat('readystatechange'); + + var XMLHttpRequestEventTarget = function (_EventTarget) { + function XMLHttpRequestEventTarget() { + _classCallCheck(this, XMLHttpRequestEventTarget); + + return _possibleConstructorReturn(this, _getPrototypeOf(XMLHttpRequestEventTarget).apply(this, arguments)); + } + + _inherits(XMLHttpRequestEventTarget, _EventTarget); + + return XMLHttpRequestEventTarget; + }(EventTarget.apply(void 0, REQUEST_EVENTS)); + + var XMLHttpRequest = function (_EventTarget2) { + _createClass(XMLHttpRequest, null, [{ + key: "setInterceptor", + value: function setInterceptor(interceptor) { + XMLHttpRequest._interceptor = interceptor; + } + }]); + + function XMLHttpRequest() { + var _this; + + _classCallCheck(this, XMLHttpRequest); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(XMLHttpRequest).call(this)); + _this.UNSENT = UNSENT; + _this.OPENED = OPENED; + _this.HEADERS_RECEIVED = HEADERS_RECEIVED; + _this.LOADING = LOADING; + _this.DONE = DONE; + _this.readyState = UNSENT; + _this.status = 0; + _this.timeout = 0; + _this.withCredentials = true; + _this.upload = new XMLHttpRequestEventTarget(); + _this._aborted = false; + _this._hasError = false; + _this._method = null; + _this._response = ''; + _this._url = null; + _this._timedOut = false; + _this._trackingName = 'unknown'; + _this._incrementalEvents = false; + + _this._reset(); + + return _this; + } + + _createClass(XMLHttpRequest, [{ + key: "_reset", + value: function _reset() { + this.readyState = this.UNSENT; + this.responseHeaders = undefined; + this.status = 0; + delete this.responseURL; + this._requestId = null; + this._cachedResponse = undefined; + this._hasError = false; + this._headers = {}; + this._response = ''; + this._responseType = ''; + this._sent = false; + this._lowerCaseResponseHeaders = {}; + + this._clearSubscriptions(); + + this._timedOut = false; + } + }, { + key: "__didCreateRequest", + value: function __didCreateRequest(requestId) { + this._requestId = requestId; + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.requestSent(requestId, this._url || '', this._method || 'GET', this._headers); + } + }, { + key: "__didUploadProgress", + value: function __didUploadProgress(requestId, progress, total) { + if (requestId === this._requestId) { + this.upload.dispatchEvent({ + type: 'progress', + lengthComputable: true, + loaded: progress, + total: total + }); + } + } + }, { + key: "__didReceiveResponse", + value: function __didReceiveResponse(requestId, status, responseHeaders, responseURL) { + if (requestId === this._requestId) { + this.status = status; + this.setResponseHeaders(responseHeaders); + this.setReadyState(this.HEADERS_RECEIVED); + + if (responseURL || responseURL === '') { + this.responseURL = responseURL; + } else { + delete this.responseURL; + } + + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.responseReceived(requestId, responseURL || this._url || '', status, responseHeaders || {}); + } + } + }, { + key: "__didReceiveData", + value: function __didReceiveData(requestId, response) { + if (requestId !== this._requestId) { + return; + } + + this._response = response; + this._cachedResponse = undefined; + this.setReadyState(this.LOADING); + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.dataReceived(requestId, response); + } + }, { + key: "__didReceiveIncrementalData", + value: function __didReceiveIncrementalData(requestId, responseText, progress, total) { + if (requestId !== this._requestId) { + return; + } + + if (!this._response) { + this._response = responseText; + } else { + this._response += responseText; + } + + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.dataReceived(requestId, responseText); + this.setReadyState(this.LOADING); + + this.__didReceiveDataProgress(requestId, progress, total); + } + }, { + key: "__didReceiveDataProgress", + value: function __didReceiveDataProgress(requestId, loaded, total) { + if (requestId !== this._requestId) { + return; + } + + this.dispatchEvent({ + type: 'progress', + lengthComputable: total >= 0, + loaded: loaded, + total: total + }); + } + }, { + key: "__didCompleteResponse", + value: function __didCompleteResponse(requestId, error, timeOutError) { + if (requestId === this._requestId) { + if (error) { + if (this._responseType === '' || this._responseType === 'text') { + this._response = error; + } + + this._hasError = true; + + if (timeOutError) { + this._timedOut = true; + } + } + + this._clearSubscriptions(); + + this._requestId = null; + this.setReadyState(this.DONE); + + if (error) { + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.loadingFailed(requestId, error); + } else { + XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.loadingFinished(requestId, this._response.length); + } + } + } + }, { + key: "_clearSubscriptions", + value: function _clearSubscriptions() { + (this._subscriptions || []).forEach(function (sub) { + if (sub) { + sub.remove(); + } + }); + this._subscriptions = []; + } + }, { + key: "getAllResponseHeaders", + value: function getAllResponseHeaders() { + if (!this.responseHeaders) { + return null; + } + + var headers = this.responseHeaders || {}; + return Object.keys(headers).map(function (headerName) { + return headerName + ': ' + headers[headerName]; + }).join('\r\n'); + } + }, { + key: "getResponseHeader", + value: function getResponseHeader(header) { + var value = this._lowerCaseResponseHeaders[header.toLowerCase()]; + + return value !== undefined ? value : null; + } + }, { + key: "setRequestHeader", + value: function setRequestHeader(header, value) { + if (this.readyState !== this.OPENED) { + throw new Error('Request has not been opened'); + } + + this._headers[header.toLowerCase()] = String(value); + } + }, { + key: "setTrackingName", + value: function setTrackingName(trackingName) { + this._trackingName = trackingName; + return this; + } + }, { + key: "open", + value: function open(method, url, async) { + if (this.readyState !== this.UNSENT) { + throw new Error('Cannot open, already sending'); + } + + if (async !== undefined && !async) { + throw new Error('Synchronous http requests are not supported'); + } + + if (!url) { + throw new Error('Cannot load an empty url'); + } + + this._method = method.toUpperCase(); + this._url = url; + this._aborted = false; + this.setReadyState(this.OPENED); + } + }, { + key: "send", + value: function send(data) { + var _this2 = this; + + if (this.readyState !== this.OPENED) { + throw new Error('Request has not been opened'); + } + + if (this._sent) { + throw new Error('Request has already been sent'); + } + + this._sent = true; + var incrementalEvents = this._incrementalEvents || !!this.onreadystatechange || !!this.onprogress; + + this._subscriptions.push(RCTNetworking.addListener('didSendNetworkData', function (args) { + return _this2.__didUploadProgress.apply(_this2, _toConsumableArray(args)); + })); + + this._subscriptions.push(RCTNetworking.addListener('didReceiveNetworkResponse', function (args) { + return _this2.__didReceiveResponse.apply(_this2, _toConsumableArray(args)); + })); + + this._subscriptions.push(RCTNetworking.addListener('didReceiveNetworkData', function (args) { + return _this2.__didReceiveData.apply(_this2, _toConsumableArray(args)); + })); + + this._subscriptions.push(RCTNetworking.addListener('didReceiveNetworkIncrementalData', function (args) { + return _this2.__didReceiveIncrementalData.apply(_this2, _toConsumableArray(args)); + })); + + this._subscriptions.push(RCTNetworking.addListener('didReceiveNetworkDataProgress', function (args) { + return _this2.__didReceiveDataProgress.apply(_this2, _toConsumableArray(args)); + })); + + this._subscriptions.push(RCTNetworking.addListener('didCompleteNetworkResponse', function (args) { + return _this2.__didCompleteResponse.apply(_this2, _toConsumableArray(args)); + })); + + var nativeResponseType = 'text'; + + if (this._responseType === 'arraybuffer') { + nativeResponseType = 'base64'; + } + + if (this._responseType === 'blob') { + nativeResponseType = 'blob'; + } + + invariant(this._method, 'Request method needs to be defined.'); + invariant(this._url, 'Request URL needs to be defined.'); + RCTNetworking.sendRequest(this._method, this._trackingName, this._url, this._headers, data, nativeResponseType, incrementalEvents, this.timeout, this.__didCreateRequest.bind(this), this.withCredentials); + } + }, { + key: "abort", + value: function abort() { + this._aborted = true; + + if (this._requestId) { + RCTNetworking.abortRequest(this._requestId); + } + + if (!(this.readyState === this.UNSENT || this.readyState === this.OPENED && !this._sent || this.readyState === this.DONE)) { + this._reset(); + + this.setReadyState(this.DONE); + } + + this._reset(); + } + }, { + key: "setResponseHeaders", + value: function setResponseHeaders(responseHeaders) { + this.responseHeaders = responseHeaders || null; + var headers = responseHeaders || {}; + this._lowerCaseResponseHeaders = Object.keys(headers).reduce(function (lcaseHeaders, headerName) { + lcaseHeaders[headerName.toLowerCase()] = headers[headerName]; + return lcaseHeaders; + }, {}); + } + }, { + key: "setReadyState", + value: function setReadyState(newState) { + this.readyState = newState; + this.dispatchEvent({ + type: 'readystatechange' + }); + + if (newState === this.DONE) { + if (this._aborted) { + this.dispatchEvent({ + type: 'abort' + }); + } else if (this._hasError) { + if (this._timedOut) { + this.dispatchEvent({ + type: 'timeout' + }); + } else { + this.dispatchEvent({ + type: 'error' + }); + } + } else { + this.dispatchEvent({ + type: 'load' + }); + } + + this.dispatchEvent({ + type: 'loadend' + }); + } + } + }, { + key: "addEventListener", + value: function addEventListener(type, listener) { + if (type === 'readystatechange' || type === 'progress') { + this._incrementalEvents = true; + } + + _get(_getPrototypeOf(XMLHttpRequest.prototype), "addEventListener", this).call(this, type, listener); + } + }, { + key: "responseType", + get: function get() { + return this._responseType; + }, + set: function set(responseType) { + if (this._sent) { + throw new Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The " + 'response type cannot be set after the request has been sent.'); + } + + if (!SUPPORTED_RESPONSE_TYPES.hasOwnProperty(responseType)) { + warning(false, "The provided value '" + responseType + "' is not a valid 'responseType'."); + return; + } + + invariant(SUPPORTED_RESPONSE_TYPES[responseType] || responseType === 'document', "The provided value '" + responseType + "' is unsupported in this environment."); + + if (responseType === 'blob') { + invariant(BlobManager.isAvailable, 'Native module BlobModule is required for blob support'); + } + + this._responseType = responseType; + } + }, { + key: "responseText", + get: function get() { + if (this._responseType !== '' && this._responseType !== 'text') { + throw new Error("The 'responseText' property is only available if 'responseType' " + ("is set to '' or 'text', but it is '" + this._responseType + "'.")); + } + + if (this.readyState < LOADING) { + return ''; + } + + return this._response; + } + }, { + key: "response", + get: function get() { + var responseType = this.responseType; + + if (responseType === '' || responseType === 'text') { + return this.readyState < LOADING || this._hasError ? '' : this._response; + } + + if (this.readyState !== DONE) { + return null; + } + + if (this._cachedResponse !== undefined) { + return this._cachedResponse; + } + + switch (responseType) { + case 'document': + this._cachedResponse = null; + break; + + case 'arraybuffer': + this._cachedResponse = base64.toByteArray(this._response).buffer; + break; + + case 'blob': + if (typeof this._response === 'object' && this._response) { + this._cachedResponse = BlobManager.createFromOptions(this._response); + } else { + throw new Error("Invalid response for blob: " + this._response); + } + + break; + + case 'json': + try { + this._cachedResponse = JSON.parse(this._response); + } catch (_) { + this._cachedResponse = null; + } + + break; + + default: + this._cachedResponse = null; + } + + return this._cachedResponse; + } + }]); + + _inherits(XMLHttpRequest, _EventTarget2); + + return XMLHttpRequest; + }(EventTarget.apply(void 0, _toConsumableArray(XHR_EVENTS))); + + XMLHttpRequest.UNSENT = UNSENT; + XMLHttpRequest.OPENED = OPENED; + XMLHttpRequest.HEADERS_RECEIVED = HEADERS_RECEIVED; + XMLHttpRequest.LOADING = LOADING; + XMLHttpRequest.DONE = DONE; + XMLHttpRequest._interceptor = null; + module.exports = XMLHttpRequest; +},279,[280,284,289,166,183,291],"node_modules/react-native/Libraries/Network/XMLHttpRequest.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var Commons = _$$_REQUIRE(_dependencyMap[0], "./commons"); + + var CustomEventTarget = _$$_REQUIRE(_dependencyMap[1], "./custom-event-target"); + + var EventWrapper = _$$_REQUIRE(_dependencyMap[2], "./event-wrapper"); + + var LISTENERS = Commons.LISTENERS; + var CAPTURE = Commons.CAPTURE; + var BUBBLE = Commons.BUBBLE; + var ATTRIBUTE = Commons.ATTRIBUTE; + var newNode = Commons.newNode; + var defineCustomEventTarget = CustomEventTarget.defineCustomEventTarget; + var createEventWrapper = EventWrapper.createEventWrapper; + var STOP_IMMEDIATE_PROPAGATION_FLAG = EventWrapper.STOP_IMMEDIATE_PROPAGATION_FLAG; + var HAS_EVENTTARGET_INTERFACE = typeof window !== "undefined" && typeof window.EventTarget !== "undefined"; + + var EventTarget = module.exports = function EventTarget() { + if (this instanceof EventTarget) { + Object.defineProperty(this, LISTENERS, { + value: Object.create(null) + }); + } else if (arguments.length === 1 && Array.isArray(arguments[0])) { + return defineCustomEventTarget(EventTarget, arguments[0]); + } else if (arguments.length > 0) { + var types = Array(arguments.length); + + for (var i = 0; i < arguments.length; ++i) { + types[i] = arguments[i]; + } + + return defineCustomEventTarget(EventTarget, types); + } else { + throw new TypeError("Cannot call a class as a function"); + } + }; + + EventTarget.prototype = Object.create((HAS_EVENTTARGET_INTERFACE ? window.EventTarget : Object).prototype, { + constructor: { + value: EventTarget, + writable: true, + configurable: true + }, + addEventListener: { + value: function addEventListener(type, listener, capture) { + if (listener == null) { + return false; + } + + if (typeof listener !== "function" && typeof listener !== "object") { + throw new TypeError("\"listener\" is not an object."); + } + + var kind = capture ? CAPTURE : BUBBLE; + var node = this[LISTENERS][type]; + + if (node == null) { + this[LISTENERS][type] = newNode(listener, kind); + return true; + } + + var prev = null; + + while (node != null) { + if (node.listener === listener && node.kind === kind) { + return false; + } + + prev = node; + node = node.next; + } + + prev.next = newNode(listener, kind); + return true; + }, + configurable: true, + writable: true + }, + removeEventListener: { + value: function removeEventListener(type, listener, capture) { + if (listener == null) { + return false; + } + + var kind = capture ? CAPTURE : BUBBLE; + var prev = null; + var node = this[LISTENERS][type]; + + while (node != null) { + if (node.listener === listener && node.kind === kind) { + if (prev == null) { + this[LISTENERS][type] = node.next; + } else { + prev.next = node.next; + } + + return true; + } + + prev = node; + node = node.next; + } + + return false; + }, + configurable: true, + writable: true + }, + dispatchEvent: { + value: function dispatchEvent(event) { + var node = this[LISTENERS][event.type]; + + if (node == null) { + return true; + } + + var wrapped = createEventWrapper(event, this); + + while (node != null) { + if (typeof node.listener === "function") { + node.listener.call(this, wrapped); + } else if (node.kind !== ATTRIBUTE && typeof node.listener.handleEvent === "function") { + node.listener.handleEvent(wrapped); + } + + if (wrapped[STOP_IMMEDIATE_PROPAGATION_FLAG]) { + break; + } + + node = node.next; + } + + return !wrapped.defaultPrevented; + }, + configurable: true, + writable: true + } + }); +},280,[281,282,283],"node_modules/event-target-shim/lib/event-target.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var createUniqueKey = exports.createUniqueKey = typeof Symbol !== "undefined" ? Symbol : function createUniqueKey(name) { + return "[[" + name + "_" + Math.random().toFixed(8).slice(2) + "]]"; + }; + exports.LISTENERS = createUniqueKey("listeners"); + exports.CAPTURE = 1; + exports.BUBBLE = 2; + exports.ATTRIBUTE = 3; + + exports.newNode = function newNode(listener, kind) { + return { + listener: listener, + kind: kind, + next: null + }; + }; +},281,[],"node_modules/event-target-shim/lib/commons.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var Commons = _$$_REQUIRE(_dependencyMap[0], "./commons"); + + var LISTENERS = Commons.LISTENERS; + var ATTRIBUTE = Commons.ATTRIBUTE; + var newNode = Commons.newNode; + + function getAttributeListener(eventTarget, type) { + var node = eventTarget[LISTENERS][type]; + + while (node != null) { + if (node.kind === ATTRIBUTE) { + return node.listener; + } + + node = node.next; + } + + return null; + } + + function setAttributeListener(eventTarget, type, listener) { + if (typeof listener !== "function" && typeof listener !== "object") { + listener = null; + } + + var prev = null; + var node = eventTarget[LISTENERS][type]; + + while (node != null) { + if (node.kind === ATTRIBUTE) { + if (prev == null) { + eventTarget[LISTENERS][type] = node.next; + } else { + prev.next = node.next; + } + } else { + prev = node; + } + + node = node.next; + } + + if (listener != null) { + if (prev == null) { + eventTarget[LISTENERS][type] = newNode(listener, ATTRIBUTE); + } else { + prev.next = newNode(listener, ATTRIBUTE); + } + } + } + + exports.defineCustomEventTarget = function (EventTargetBase, types) { + function EventTarget() { + EventTargetBase.call(this); + } + + var descripter = { + constructor: { + value: EventTarget, + configurable: true, + writable: true + } + }; + types.forEach(function (type) { + descripter["on" + type] = { + get: function get() { + return getAttributeListener(this, type); + }, + set: function set(listener) { + setAttributeListener(this, type, listener); + }, + configurable: true, + enumerable: true + }; + }); + EventTarget.prototype = Object.create(EventTargetBase.prototype, descripter); + return EventTarget; + }; +},282,[281],"node_modules/event-target-shim/lib/custom-event-target.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var createUniqueKey = _$$_REQUIRE(_dependencyMap[0], "./commons").createUniqueKey; + + var STOP_IMMEDIATE_PROPAGATION_FLAG = createUniqueKey("stop_immediate_propagation_flag"); + var CANCELED_FLAG = createUniqueKey("canceled_flag"); + var ORIGINAL_EVENT = createUniqueKey("original_event"); + var wrapperPrototypeDefinition = Object.freeze({ + stopPropagation: Object.freeze({ + value: function stopPropagation() { + var e = this[ORIGINAL_EVENT]; + + if (typeof e.stopPropagation === "function") { + e.stopPropagation(); + } + }, + writable: true, + configurable: true + }), + stopImmediatePropagation: Object.freeze({ + value: function stopImmediatePropagation() { + this[STOP_IMMEDIATE_PROPAGATION_FLAG] = true; + var e = this[ORIGINAL_EVENT]; + + if (typeof e.stopImmediatePropagation === "function") { + e.stopImmediatePropagation(); + } + }, + writable: true, + configurable: true + }), + preventDefault: Object.freeze({ + value: function preventDefault() { + if (this.cancelable === true) { + this[CANCELED_FLAG] = true; + } + + var e = this[ORIGINAL_EVENT]; + + if (typeof e.preventDefault === "function") { + e.preventDefault(); + } + }, + writable: true, + configurable: true + }), + defaultPrevented: Object.freeze({ + get: function defaultPrevented() { + return this[CANCELED_FLAG]; + }, + enumerable: true, + configurable: true + }) + }); + exports.STOP_IMMEDIATE_PROPAGATION_FLAG = STOP_IMMEDIATE_PROPAGATION_FLAG; + + exports.createEventWrapper = function createEventWrapper(event, eventTarget) { + var timeStamp = typeof event.timeStamp === "number" ? event.timeStamp : Date.now(); + var propertyDefinition = { + type: { + value: event.type, + enumerable: true + }, + target: { + value: eventTarget, + enumerable: true + }, + currentTarget: { + value: eventTarget, + enumerable: true + }, + eventPhase: { + value: 2, + enumerable: true + }, + bubbles: { + value: Boolean(event.bubbles), + enumerable: true + }, + cancelable: { + value: Boolean(event.cancelable), + enumerable: true + }, + timeStamp: { + value: timeStamp, + enumerable: true + }, + isTrusted: { + value: false, + enumerable: true + } + }; + propertyDefinition[STOP_IMMEDIATE_PROPAGATION_FLAG] = { + value: false, + writable: true + }; + propertyDefinition[CANCELED_FLAG] = { + value: false, + writable: true + }; + propertyDefinition[ORIGINAL_EVENT] = { + value: event + }; + + if (typeof event.detail !== "undefined") { + propertyDefinition.detail = { + value: event.detail, + enumerable: true + }; + } + + return Object.create(Object.create(event, wrapperPrototypeDefinition), propertyDefinition); + }; +},283,[281],"node_modules/event-target-shim/lib/event-wrapper.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var MissingNativeEventEmitterShim = _$$_REQUIRE(_dependencyMap[0], 'MissingNativeEventEmitterShim'); + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); + + var RCTNetworkingNative = _$$_REQUIRE(_dependencyMap[2], 'NativeModules').Networking; + + var convertRequestBody = _$$_REQUIRE(_dependencyMap[3], 'convertRequestBody'); + + var RCTNetworking = function (_NativeEventEmitter) { + function RCTNetworking() { + var _this; + + _classCallCheck(this, RCTNetworking); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(RCTNetworking).call(this, RCTNetworkingNative)); + _this.isAvailable = true; + return _this; + } + + _createClass(RCTNetworking, [{ + key: "sendRequest", + value: function sendRequest(method, trackingName, url, headers, data, responseType, incrementalUpdates, timeout, callback, withCredentials) { + var body = convertRequestBody(data); + RCTNetworkingNative.sendRequest({ + method: method, + url: url, + data: _objectSpread({}, body, { + trackingName: trackingName + }), + headers: headers, + responseType: responseType, + incrementalUpdates: incrementalUpdates, + timeout: timeout, + withCredentials: withCredentials + }, callback); + } + }, { + key: "abortRequest", + value: function abortRequest(requestId) { + RCTNetworkingNative.abortRequest(requestId); + } + }, { + key: "clearCookies", + value: function clearCookies(callback) { + RCTNetworkingNative.clearCookies(callback); + } + }]); + + _inherits(RCTNetworking, _NativeEventEmitter); + + return RCTNetworking; + }(NativeEventEmitter); + + if (__DEV__ && !RCTNetworkingNative) { + var MissingNativeRCTNetworkingShim = function (_MissingNativeEventEm) { + function MissingNativeRCTNetworkingShim() { + _classCallCheck(this, MissingNativeRCTNetworkingShim); + + return _possibleConstructorReturn(this, _getPrototypeOf(MissingNativeRCTNetworkingShim).call(this, 'RCTNetworking', 'Networking')); + } + + _createClass(MissingNativeRCTNetworkingShim, [{ + key: "sendRequest", + value: function sendRequest() { + this.throwMissingNativeModule(); + } + }, { + key: "abortRequest", + value: function abortRequest() { + this.throwMissingNativeModule(); + } + }, { + key: "clearCookies", + value: function clearCookies() { + this.throwMissingNativeModule(); + } + }]); + + _inherits(MissingNativeRCTNetworkingShim, _MissingNativeEventEm); + + return MissingNativeRCTNetworkingShim; + }(MissingNativeEventEmitterShim); + + RCTNetworking = new MissingNativeRCTNetworkingShim(); + } else { + RCTNetworking = new RCTNetworking(); + } + + module.exports = RCTNetworking; +},284,[285,286,168,287],"node_modules/react-native/Libraries/Network/RCTNetworking.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var EmitterSubscription = _$$_REQUIRE(_dependencyMap[0], 'EmitterSubscription'); + + var EventEmitter = _$$_REQUIRE(_dependencyMap[1], 'EventEmitter'); + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + var MissingNativeEventEmitterShim = function (_EventEmitter) { + function MissingNativeEventEmitterShim(nativeModuleName, nativeEventEmitterName) { + var _this; + + _classCallCheck(this, MissingNativeEventEmitterShim); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(MissingNativeEventEmitterShim).call(this, null)); + _this.isAvailable = false; + _this._nativeModuleName = nativeModuleName; + _this._nativeEventEmitterName = nativeEventEmitterName; + return _this; + } + + _createClass(MissingNativeEventEmitterShim, [{ + key: "throwMissingNativeModule", + value: function throwMissingNativeModule() { + invariant(false, "Cannot use '" + this._nativeEventEmitterName + "' module when " + ("native '" + this._nativeModuleName + "' is not included in the build. ") + ("Either include it, or check '" + this._nativeEventEmitterName + "'.isAvailable ") + 'before calling any methods.'); + } + }, { + key: "addListener", + value: function addListener(eventType, listener, context) { + this.throwMissingNativeModule(); + } + }, { + key: "removeAllListeners", + value: function removeAllListeners(eventType) { + this.throwMissingNativeModule(); + } + }, { + key: "removeSubscription", + value: function removeSubscription(subscription) { + this.throwMissingNativeModule(); + } + }]); + + _inherits(MissingNativeEventEmitterShim, _EventEmitter); + + return MissingNativeEventEmitterShim; + }(EventEmitter); + + module.exports = MissingNativeEventEmitterShim; +},285,[196,195,166],"node_modules/react-native/Libraries/EventEmitter/MissingNativeEventEmitterShim.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'EventEmitter'); + + var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); + + var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'RCTDeviceEventEmitter'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var NativeEventEmitter = function (_EventEmitter) { + function NativeEventEmitter(nativeModule) { + var _this; + + _classCallCheck(this, NativeEventEmitter); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(NativeEventEmitter).call(this, RCTDeviceEventEmitter.sharedSubscriber)); + + if (Platform.OS === 'ios') { + invariant(nativeModule, 'Native module cannot be null.'); + _this._nativeModule = nativeModule; + } + + return _this; + } + + _createClass(NativeEventEmitter, [{ + key: "addListener", + value: function addListener(eventType, listener, context) { + if (this._nativeModule != null) { + this._nativeModule.addListener(eventType); + } + + return _get(_getPrototypeOf(NativeEventEmitter.prototype), "addListener", this).call(this, eventType, listener, context); + } + }, { + key: "removeAllListeners", + value: function removeAllListeners(eventType) { + invariant(eventType, 'eventType argument is required.'); + var count = this.listeners(eventType).length; + + if (this._nativeModule != null) { + this._nativeModule.removeListeners(count); + } + + _get(_getPrototypeOf(NativeEventEmitter.prototype), "removeAllListeners", this).call(this, eventType); + } + }, { + key: "removeSubscription", + value: function removeSubscription(subscription) { + if (this._nativeModule != null) { + this._nativeModule.removeListeners(1); + } + + _get(_getPrototypeOf(NativeEventEmitter.prototype), "removeSubscription", this).call(this, subscription); + } + }]); + + _inherits(NativeEventEmitter, _EventEmitter); + + return NativeEventEmitter; + }(EventEmitter); + + module.exports = NativeEventEmitter; +},286,[195,176,194,166],"node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var binaryToBase64 = _$$_REQUIRE(_dependencyMap[0], 'binaryToBase64'); + + var Blob = _$$_REQUIRE(_dependencyMap[1], 'Blob'); + + var FormData = _$$_REQUIRE(_dependencyMap[2], 'FormData'); + + function convertRequestBody(body) { + if (typeof body === 'string') { + return { + string: body + }; + } + + if (body instanceof Blob) { + return { + blob: body.data + }; + } + + if (body instanceof FormData) { + return { + formData: body.getParts() + }; + } + + if (body instanceof ArrayBuffer || ArrayBuffer.isView(body)) { + return { + base64: binaryToBase64(body) + }; + } + + return body; + } + + module.exports = convertRequestBody; +},287,[288,290,293],"node_modules/react-native/Libraries/Network/convertRequestBody.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var base64 = _$$_REQUIRE(_dependencyMap[0], 'base64-js'); + + function binaryToBase64(data) { + if (data instanceof ArrayBuffer) { + data = new Uint8Array(data); + } + + if (data instanceof Uint8Array) { + return base64.fromByteArray(data); + } + + if (!ArrayBuffer.isView(data)) { + throw new Error('data must be ArrayBuffer or typed array'); + } + + var _data = data, + buffer = _data.buffer, + byteOffset = _data.byteOffset, + byteLength = _data.byteLength; + return base64.fromByteArray(new Uint8Array(buffer, byteOffset, byteLength)); + } + + module.exports = binaryToBase64; +},288,[289],"node_modules/react-native/Libraries/Utilities/binaryToBase64.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + exports.byteLength = byteLength; + exports.toByteArray = toByteArray; + exports.fromByteArray = fromByteArray; + var lookup = []; + var revLookup = []; + var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array; + var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; + + for (var i = 0, len = code.length; i < len; ++i) { + lookup[i] = code[i]; + revLookup[code.charCodeAt(i)] = i; + } + + revLookup['-'.charCodeAt(0)] = 62; + revLookup['_'.charCodeAt(0)] = 63; + + function getLens(b64) { + var len = b64.length; + + if (len % 4 > 0) { + throw new Error('Invalid string. Length must be a multiple of 4'); + } + + var validLen = b64.indexOf('='); + if (validLen === -1) validLen = len; + var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4; + return [validLen, placeHoldersLen]; + } + + function byteLength(b64) { + var lens = getLens(b64); + var validLen = lens[0]; + var placeHoldersLen = lens[1]; + return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; + } + + function _byteLength(b64, validLen, placeHoldersLen) { + return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; + } + + function toByteArray(b64) { + var tmp; + var lens = getLens(b64); + var validLen = lens[0]; + var placeHoldersLen = lens[1]; + var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)); + var curByte = 0; + var len = placeHoldersLen > 0 ? validLen - 4 : validLen; + + for (var i = 0; i < len; i += 4) { + tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)]; + arr[curByte++] = tmp >> 16 & 0xFF; + arr[curByte++] = tmp >> 8 & 0xFF; + arr[curByte++] = tmp & 0xFF; + } + + if (placeHoldersLen === 2) { + tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4; + arr[curByte++] = tmp & 0xFF; + } + + if (placeHoldersLen === 1) { + tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2; + arr[curByte++] = tmp >> 8 & 0xFF; + arr[curByte++] = tmp & 0xFF; + } + + return arr; + } + + function tripletToBase64(num) { + return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]; + } + + function encodeChunk(uint8, start, end) { + var tmp; + var output = []; + + for (var i = start; i < end; i += 3) { + tmp = (uint8[i] << 16 & 0xFF0000) + (uint8[i + 1] << 8 & 0xFF00) + (uint8[i + 2] & 0xFF); + output.push(tripletToBase64(tmp)); + } + + return output.join(''); + } + + function fromByteArray(uint8) { + var tmp; + var len = uint8.length; + var extraBytes = len % 3; + var parts = []; + var maxChunkLength = 16383; + + for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { + parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength)); + } + + if (extraBytes === 1) { + tmp = uint8[len - 1]; + parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '=='); + } else if (extraBytes === 2) { + tmp = (uint8[len - 2] << 8) + uint8[len - 1]; + parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 0x3F] + lookup[tmp << 2 & 0x3F] + '='); + } + + return parts.join(''); + } +},289,[],"node_modules/base64-js/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var Blob = function () { + function Blob() { + var parts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var options = arguments.length > 1 ? arguments[1] : undefined; + + _classCallCheck(this, Blob); + + var BlobManager = _$$_REQUIRE(_dependencyMap[0], 'BlobManager'); + + this.data = BlobManager.createFromParts(parts, options).data; + } + + _createClass(Blob, [{ + key: "slice", + value: function slice(start, end) { + var BlobManager = _$$_REQUIRE(_dependencyMap[0], 'BlobManager'); + + var _this$data = this.data, + offset = _this$data.offset, + size = _this$data.size; + + if (typeof start === 'number') { + if (start > size) { + start = size; + } + + offset += start; + size -= start; + + if (typeof end === 'number') { + if (end < 0) { + end = this.size + end; + } + + size = end - start; + } + } + + return BlobManager.createFromOptions({ + blobId: this.data.blobId, + offset: offset, + size: size + }); + } + }, { + key: "close", + value: function close() { + var BlobManager = _$$_REQUIRE(_dependencyMap[0], 'BlobManager'); + + BlobManager.release(this.data.blobId); + this.data = null; + } + }, { + key: "data", + set: function set(data) { + this._data = data; + }, + get: function get() { + if (!this._data) { + throw new Error('Blob has been closed and is no longer available'); + } + + return this._data; + } + }, { + key: "size", + get: function get() { + return this.data.size; + } + }, { + key: "type", + get: function get() { + return this.data.type || ''; + } + }]); + + return Blob; + }(); + + module.exports = Blob; +},290,[291],"node_modules/react-native/Libraries/Blob/Blob.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var Blob = _$$_REQUIRE(_dependencyMap[0], 'Blob'); + + var BlobRegistry = _$$_REQUIRE(_dependencyMap[1], 'BlobRegistry'); + + var _require = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'), + BlobModule = _require.BlobModule; + + function uuidv4() { + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { + var r = Math.random() * 16 | 0, + v = c == 'x' ? r : r & 0x3 | 0x8; + return v.toString(16); + }); + } + + var BlobManager = function () { + function BlobManager() { + _classCallCheck(this, BlobManager); + } + + _createClass(BlobManager, null, [{ + key: "createFromParts", + value: function createFromParts(parts, options) { + var blobId = uuidv4(); + var items = parts.map(function (part) { + if (part instanceof ArrayBuffer || global.ArrayBufferView && part instanceof global.ArrayBufferView) { + throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported"); + } + + if (part instanceof Blob) { + return { + data: part.data, + type: 'blob' + }; + } else { + return { + data: String(part), + type: 'string' + }; + } + }); + var size = items.reduce(function (acc, curr) { + if (curr.type === 'string') { + return acc + global.unescape(encodeURI(curr.data)).length; + } else { + return acc + curr.data.size; + } + }, 0); + BlobModule.createFromParts(items, blobId); + return BlobManager.createFromOptions({ + blobId: blobId, + offset: 0, + size: size, + type: options ? options.type : '', + lastModified: options ? options.lastModified : Date.now() + }); + } + }, { + key: "createFromOptions", + value: function createFromOptions(options) { + BlobRegistry.register(options.blobId); + return _extends(Object.create(Blob.prototype), { + data: options + }); + } + }, { + key: "release", + value: function release(blobId) { + BlobRegistry.unregister(blobId); + + if (BlobRegistry.has(blobId)) { + return; + } + + BlobModule.release(blobId); + } + }, { + key: "addNetworkingHandler", + value: function addNetworkingHandler() { + BlobModule.addNetworkingHandler(); + } + }, { + key: "addWebSocketHandler", + value: function addWebSocketHandler(socketId) { + BlobModule.addWebSocketHandler(socketId); + } + }, { + key: "removeWebSocketHandler", + value: function removeWebSocketHandler(socketId) { + BlobModule.removeWebSocketHandler(socketId); + } + }, { + key: "sendOverSocket", + value: function sendOverSocket(blob, socketId) { + BlobModule.sendOverSocket(blob.data, socketId); + } + }]); + + return BlobManager; + }(); + + BlobManager.isAvailable = !!BlobModule; + module.exports = BlobManager; +},291,[290,292,168],"node_modules/react-native/Libraries/Blob/BlobManager.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var registry = {}; + + var register = function register(id) { + if (registry[id]) { + registry[id]++; + } else { + registry[id] = 1; + } + }; + + var unregister = function unregister(id) { + if (registry[id]) { + registry[id]--; + + if (registry[id] <= 0) { + delete registry[id]; + } + } + }; + + var has = function has(id) { + return registry[id] && registry[id] > 0; + }; + + module.exports = { + register: register, + unregister: unregister, + has: has + }; +},292,[],"node_modules/react-native/Libraries/Blob/BlobRegistry.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + + function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + + function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + + function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var FormData = function () { + function FormData() { + _classCallCheck(this, FormData); + + this._parts = []; + } + + _createClass(FormData, [{ + key: "append", + value: function append(key, value) { + this._parts.push([key, value]); + } + }, { + key: "getParts", + value: function getParts() { + return this._parts.map(function (_ref) { + var _ref2 = _slicedToArray(_ref, 2), + name = _ref2[0], + value = _ref2[1]; + + var contentDisposition = 'form-data; name="' + name + '"'; + var headers = { + 'content-disposition': contentDisposition + }; + + if (typeof value === 'object' && value) { + if (typeof value.name === 'string') { + headers['content-disposition'] += '; filename="' + value.name + '"'; + } + + if (typeof value.type === 'string') { + headers['content-type'] = value.type; + } + + return _objectSpread({}, value, { + headers: headers, + fieldName: name + }); + } + + return { + string: String(value), + headers: headers, + fieldName: name + }; + }); + } + }]); + + return FormData; + }(); + + module.exports = FormData; +},293,[],"node_modules/react-native/Libraries/Network/FormData.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var Blob = _$$_REQUIRE(_dependencyMap[0], 'Blob'); + + var EventTarget = _$$_REQUIRE(_dependencyMap[1], 'event-target-shim'); + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'NativeEventEmitter'); + + var BlobManager = _$$_REQUIRE(_dependencyMap[3], 'BlobManager'); + + var NativeModules = _$$_REQUIRE(_dependencyMap[4], 'NativeModules'); + + var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); + + var WebSocketEvent = _$$_REQUIRE(_dependencyMap[6], 'WebSocketEvent'); + + var base64 = _$$_REQUIRE(_dependencyMap[7], 'base64-js'); + + var binaryToBase64 = _$$_REQUIRE(_dependencyMap[8], 'binaryToBase64'); + + var invariant = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/invariant'); + + var WebSocketModule = NativeModules.WebSocketModule; + var CONNECTING = 0; + var OPEN = 1; + var CLOSING = 2; + var CLOSED = 3; + var CLOSE_NORMAL = 1000; + var WEBSOCKET_EVENTS = ['close', 'error', 'message', 'open']; + var nextWebSocketId = 0; + + var WebSocket = function (_EventTarget) { + function WebSocket(url, protocols, options) { + var _this; + + _classCallCheck(this, WebSocket); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(WebSocket).call(this)); + _this.CONNECTING = CONNECTING; + _this.OPEN = OPEN; + _this.CLOSING = CLOSING; + _this.CLOSED = CLOSED; + _this.readyState = CONNECTING; + + if (typeof protocols === 'string') { + protocols = [protocols]; + } + + var _ref = options || {}, + _ref$headers = _ref.headers, + headers = _ref$headers === void 0 ? {} : _ref$headers, + unrecognized = _objectWithoutProperties(_ref, ["headers"]); + + if (unrecognized && typeof unrecognized.origin === 'string') { + console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'); + headers.origin = unrecognized.origin; + delete unrecognized.origin; + } + + if (Object.keys(unrecognized).length > 0) { + console.warn('Unrecognized WebSocket connection option(s) `' + Object.keys(unrecognized).join('`, `') + '`. ' + 'Did you mean to put these under `headers`?'); + } + + if (!Array.isArray(protocols)) { + protocols = null; + } + + if (!WebSocket.isAvailable) { + throw new Error('Cannot initialize WebSocket module. ' + 'Native module WebSocketModule is missing.'); + } + + _this._eventEmitter = new NativeEventEmitter(WebSocketModule); + _this._socketId = nextWebSocketId++; + + _this._registerEvents(); + + WebSocketModule.connect(url, protocols, { + headers: headers + }, _this._socketId); + return _this; + } + + _createClass(WebSocket, [{ + key: "close", + value: function close(code, reason) { + if (this.readyState === this.CLOSING || this.readyState === this.CLOSED) { + return; + } + + this.readyState = this.CLOSING; + + this._close(code, reason); + } + }, { + key: "send", + value: function send(data) { + if (this.readyState === this.CONNECTING) { + throw new Error('INVALID_STATE_ERR'); + } + + if (data instanceof Blob) { + invariant(BlobManager.isAvailable, 'Native module BlobModule is required for blob support'); + BlobManager.sendOverSocket(data, this._socketId); + return; + } + + if (typeof data === 'string') { + WebSocketModule.send(data, this._socketId); + return; + } + + if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) { + WebSocketModule.sendBinary(binaryToBase64(data), this._socketId); + return; + } + + throw new Error('Unsupported data type'); + } + }, { + key: "ping", + value: function ping() { + if (this.readyState === this.CONNECTING) { + throw new Error('INVALID_STATE_ERR'); + } + + WebSocketModule.ping(this._socketId); + } + }, { + key: "_close", + value: function _close(code, reason) { + if (Platform.OS === 'android') { + var statusCode = typeof code === 'number' ? code : CLOSE_NORMAL; + var closeReason = typeof reason === 'string' ? reason : ''; + WebSocketModule.close(statusCode, closeReason, this._socketId); + } else { + WebSocketModule.close(this._socketId); + } + + if (BlobManager.isAvailable && this._binaryType === 'blob') { + BlobManager.removeWebSocketHandler(this._socketId); + } + } + }, { + key: "_unregisterEvents", + value: function _unregisterEvents() { + this._subscriptions.forEach(function (e) { + return e.remove(); + }); + + this._subscriptions = []; + } + }, { + key: "_registerEvents", + value: function _registerEvents() { + var _this2 = this; + + this._subscriptions = [this._eventEmitter.addListener('websocketMessage', function (ev) { + if (ev.id !== _this2._socketId) { + return; + } + + var data = ev.data; + + switch (ev.type) { + case 'binary': + data = base64.toByteArray(ev.data).buffer; + break; + + case 'blob': + data = BlobManager.createFromOptions(ev.data); + break; + } + + _this2.dispatchEvent(new WebSocketEvent('message', { + data: data + })); + }), this._eventEmitter.addListener('websocketOpen', function (ev) { + if (ev.id !== _this2._socketId) { + return; + } + + _this2.readyState = _this2.OPEN; + + _this2.dispatchEvent(new WebSocketEvent('open')); + }), this._eventEmitter.addListener('websocketClosed', function (ev) { + if (ev.id !== _this2._socketId) { + return; + } + + _this2.readyState = _this2.CLOSED; + + _this2.dispatchEvent(new WebSocketEvent('close', { + code: ev.code, + reason: ev.reason + })); + + _this2._unregisterEvents(); + + _this2.close(); + }), this._eventEmitter.addListener('websocketFailed', function (ev) { + if (ev.id !== _this2._socketId) { + return; + } + + _this2.readyState = _this2.CLOSED; + + _this2.dispatchEvent(new WebSocketEvent('error', { + message: ev.message + })); + + _this2.dispatchEvent(new WebSocketEvent('close', { + message: ev.message + })); + + _this2._unregisterEvents(); + + _this2.close(); + })]; + } + }, { + key: "binaryType", + get: function get() { + return this._binaryType; + }, + set: function set(binaryType) { + if (binaryType !== 'blob' && binaryType !== 'arraybuffer') { + throw new Error("binaryType must be either 'blob' or 'arraybuffer'"); + } + + if (this._binaryType === 'blob' || binaryType === 'blob') { + invariant(BlobManager.isAvailable, 'Native module BlobModule is required for blob support'); + + if (binaryType === 'blob') { + BlobManager.addWebSocketHandler(this._socketId); + } else { + BlobManager.removeWebSocketHandler(this._socketId); + } + } + + this._binaryType = binaryType; + } + }]); + + _inherits(WebSocket, _EventTarget); + + return WebSocket; + }(EventTarget.apply(void 0, WEBSOCKET_EVENTS)); + + WebSocket.CONNECTING = CONNECTING; + WebSocket.OPEN = OPEN; + WebSocket.CLOSING = CLOSING; + WebSocket.CLOSED = CLOSED; + WebSocket.isAvailable = !!WebSocketModule; + module.exports = WebSocket; +},294,[290,280,286,291,168,176,295,289,288,166],"node_modules/react-native/Libraries/WebSocket/WebSocket.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + var WebSocketEvent = function WebSocketEvent(type, eventInitDict) { + _classCallCheck(this, WebSocketEvent); + + this.type = type.toString(); + + _extends(this, eventInitDict); + }; + + module.exports = WebSocketEvent; +},295,[],"node_modules/react-native/Libraries/WebSocket/WebSocketEvent.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var Blob = _$$_REQUIRE(_dependencyMap[0], 'Blob'); + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var File = function (_Blob) { + function File(parts, name, options) { + var _this; + + _classCallCheck(this, File); + + invariant(parts != null && name != null, 'Failed to construct `File`: Must pass both `parts` and `name` arguments.'); + _this = _possibleConstructorReturn(this, _getPrototypeOf(File).call(this, parts, options)); + _this.data.name = name; + return _this; + } + + _createClass(File, [{ + key: "name", + get: function get() { + invariant(this.data.name != null, 'Files must have a name set.'); + return this.data.name; + } + }, { + key: "lastModified", + get: function get() { + return this.data.lastModified || 0; + } + }]); + + _inherits(File, _Blob); + + return File; + }(Blob); + + module.exports = File; +},296,[290,166],"node_modules/react-native/Libraries/Blob/File.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var EventTarget = _$$_REQUIRE(_dependencyMap[0], 'event-target-shim'); + + var Blob = _$$_REQUIRE(_dependencyMap[1], 'Blob'); + + var _require = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'), + FileReaderModule = _require.FileReaderModule; + + var READER_EVENTS = ['abort', 'error', 'load', 'loadstart', 'loadend', 'progress']; + var EMPTY = 0; + var LOADING = 1; + var DONE = 2; + + var FileReader = function (_EventTarget) { + function FileReader() { + var _this; + + _classCallCheck(this, FileReader); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(FileReader).call(this)); + _this.EMPTY = EMPTY; + _this.LOADING = LOADING; + _this.DONE = DONE; + _this._aborted = false; + _this._subscriptions = []; + + _this._reset(); + + return _this; + } + + _createClass(FileReader, [{ + key: "_reset", + value: function _reset() { + this._readyState = EMPTY; + this._error = null; + this._result = null; + } + }, { + key: "_clearSubscriptions", + value: function _clearSubscriptions() { + this._subscriptions.forEach(function (sub) { + return sub.remove(); + }); + + this._subscriptions = []; + } + }, { + key: "_setReadyState", + value: function _setReadyState(newState) { + this._readyState = newState; + this.dispatchEvent({ + type: 'readystatechange' + }); + + if (newState === DONE) { + if (this._aborted) { + this.dispatchEvent({ + type: 'abort' + }); + } else if (this._error) { + this.dispatchEvent({ + type: 'error' + }); + } else { + this.dispatchEvent({ + type: 'load' + }); + } + + this.dispatchEvent({ + type: 'loadend' + }); + } + } + }, { + key: "readAsArrayBuffer", + value: function readAsArrayBuffer() { + throw new Error('FileReader.readAsArrayBuffer is not implemented'); + } + }, { + key: "readAsDataURL", + value: function readAsDataURL(blob) { + var _this2 = this; + + this._aborted = false; + FileReaderModule.readAsDataURL(blob.data).then(function (text) { + if (_this2._aborted) { + return; + } + + _this2._result = text; + + _this2._setReadyState(DONE); + }, function (error) { + if (_this2._aborted) { + return; + } + + _this2._error = error; + + _this2._setReadyState(DONE); + }); + } + }, { + key: "readAsText", + value: function readAsText(blob) { + var _this3 = this; + + var encoding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'UTF-8'; + this._aborted = false; + FileReaderModule.readAsText(blob.data, encoding).then(function (text) { + if (_this3._aborted) { + return; + } + + _this3._result = text; + + _this3._setReadyState(DONE); + }, function (error) { + if (_this3._aborted) { + return; + } + + _this3._error = error; + + _this3._setReadyState(DONE); + }); + } + }, { + key: "abort", + value: function abort() { + this._aborted = true; + + if (this._readyState !== EMPTY && this._readyState !== DONE) { + this._reset(); + + this._setReadyState(DONE); + } + + this._reset(); + } + }, { + key: "readyState", + get: function get() { + return this._readyState; + } + }, { + key: "error", + get: function get() { + return this._error; + } + }, { + key: "result", + get: function get() { + return this._result; + } + }]); + + _inherits(FileReader, _EventTarget); + + return FileReader; + }(EventTarget.apply(void 0, READER_EVENTS)); + + FileReader.EMPTY = EMPTY; + FileReader.LOADING = LOADING; + FileReader.DONE = DONE; + module.exports = FileReader; +},297,[280,290,168],"node_modules/react-native/Libraries/Blob/FileReader.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var Blob = _$$_REQUIRE(_dependencyMap[0], 'Blob'); + + var _require = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'), + BlobModule = _require.BlobModule; + + var BLOB_URL_PREFIX = null; + + if (BlobModule && typeof BlobModule.BLOB_URI_SCHEME === 'string') { + BLOB_URL_PREFIX = BlobModule.BLOB_URI_SCHEME + ':'; + + if (typeof BlobModule.BLOB_URI_HOST === 'string') { + BLOB_URL_PREFIX += "//" + BlobModule.BLOB_URI_HOST + "/"; + } + } + + var URL = function () { + function URL() { + _classCallCheck(this, URL); + + throw new Error('Creating URL objects is not supported yet.'); + } + + _createClass(URL, null, [{ + key: "createObjectURL", + value: function createObjectURL(blob) { + if (BLOB_URL_PREFIX === null) { + throw new Error('Cannot create URL for blob!'); + } + + return "" + BLOB_URL_PREFIX + blob.data.blobId + "?offset=" + blob.data.offset + "&size=" + blob.size; + } + }, { + key: "revokeObjectURL", + value: function revokeObjectURL(url) {} + }]); + + return URL; + }(); + + module.exports = URL; +},298,[290,168],"node_modules/react-native/Libraries/Blob/URL.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var AlertIOS = _$$_REQUIRE(_dependencyMap[0], 'AlertIOS'); + + var NativeModules = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'); + + var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); + + var Alert = function () { + function Alert() { + _classCallCheck(this, Alert); + } + + _createClass(Alert, null, [{ + key: "alert", + value: function alert(title, message, buttons, options, type) { + if (Platform.OS === 'ios') { + if (typeof type !== 'undefined') { + console.warn('Alert.alert() with a 5th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'); + AlertIOS.alert(title, message, buttons, type); + return; + } + + AlertIOS.alert(title, message, buttons); + } else if (Platform.OS === 'android') { + AlertAndroid.alert(title, message, buttons, options); + } + } + }]); + + return Alert; + }(); + + var AlertAndroid = function () { + function AlertAndroid() { + _classCallCheck(this, AlertAndroid); + } + + _createClass(AlertAndroid, null, [{ + key: "alert", + value: function alert(title, message, buttons, options) { + var config = { + title: title || '', + message: message || '' + }; + + if (options) { + config = _objectSpread({}, config, { + cancelable: options.cancelable + }); + } + + var validButtons = buttons ? buttons.slice(0, 3) : [{ + text: 'OK' + }]; + var buttonPositive = validButtons.pop(); + var buttonNegative = validButtons.pop(); + var buttonNeutral = validButtons.pop(); + + if (buttonNeutral) { + config = _objectSpread({}, config, { + buttonNeutral: buttonNeutral.text || '' + }); + } + + if (buttonNegative) { + config = _objectSpread({}, config, { + buttonNegative: buttonNegative.text || '' + }); + } + + if (buttonPositive) { + config = _objectSpread({}, config, { + buttonPositive: buttonPositive.text || '' + }); + } + + NativeModules.DialogManagerAndroid.showAlert(config, function (errorMessage) { + return console.warn(errorMessage); + }, function (action, buttonKey) { + if (action === NativeModules.DialogManagerAndroid.buttonClicked) { + if (buttonKey === NativeModules.DialogManagerAndroid.buttonNeutral) { + buttonNeutral.onPress && buttonNeutral.onPress(); + } else if (buttonKey === NativeModules.DialogManagerAndroid.buttonNegative) { + buttonNegative.onPress && buttonNegative.onPress(); + } else if (buttonKey === NativeModules.DialogManagerAndroid.buttonPositive) { + buttonPositive.onPress && buttonPositive.onPress(); + } + } else if (action === NativeModules.DialogManagerAndroid.dismissed) { + options && options.onDismiss && options.onDismiss(); + } + }); + } + }]); + + return AlertAndroid; + }(); + + module.exports = Alert; +},299,[300,168,176],"node_modules/react-native/Libraries/Alert/Alert.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var RCTAlertManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').AlertManager; + + var AlertIOS = function () { + function AlertIOS() { + _classCallCheck(this, AlertIOS); + } + + _createClass(AlertIOS, null, [{ + key: "alert", + value: function alert(title, message, callbackOrButtons, type) { + if (typeof type !== 'undefined') { + console.warn('AlertIOS.alert() with a 4th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'); + this.prompt(title, message, callbackOrButtons, type); + return; + } + + this.prompt(title, message, callbackOrButtons, 'default'); + } + }, { + key: "prompt", + value: function prompt(title, message, callbackOrButtons) { + var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'plain-text'; + var defaultValue = arguments.length > 4 ? arguments[4] : undefined; + var keyboardType = arguments.length > 5 ? arguments[5] : undefined; + + if (typeof type === 'function') { + console.warn('You passed a callback function as the "type" argument to AlertIOS.prompt(). React Native is ' + 'assuming you want to use the deprecated AlertIOS.prompt(title, defaultValue, buttons, callback) ' + 'signature. The current signature is AlertIOS.prompt(title, message, callbackOrButtons, type, defaultValue, ' + 'keyboardType) and the old syntax will be removed in a future version.'); + var callback = type; + RCTAlertManager.alertWithArgs({ + title: title || '', + type: 'plain-text', + defaultValue: message + }, function (id, value) { + callback(value); + }); + return; + } + + var callbacks = []; + var buttons = []; + var cancelButtonKey; + var destructiveButtonKey; + + if (typeof callbackOrButtons === 'function') { + callbacks = [callbackOrButtons]; + } else if (callbackOrButtons instanceof Array) { + callbackOrButtons.forEach(function (btn, index) { + callbacks[index] = btn.onPress; + + if (btn.style === 'cancel') { + cancelButtonKey = String(index); + } else if (btn.style === 'destructive') { + destructiveButtonKey = String(index); + } + + if (btn.text || index < (callbackOrButtons || []).length - 1) { + var btnDef = {}; + btnDef[index] = btn.text || ''; + buttons.push(btnDef); + } + }); + } + + RCTAlertManager.alertWithArgs({ + title: title || '', + message: message || undefined, + buttons: buttons, + type: type || undefined, + defaultValue: defaultValue, + cancelButtonKey: cancelButtonKey, + destructiveButtonKey: destructiveButtonKey, + keyboardType: keyboardType + }, function (id, value) { + var cb = callbacks[id]; + cb && cb(value); + }); + } + }]); + + return AlertIOS; + }(); + + module.exports = AlertIOS; +},300,[168],"node_modules/react-native/Libraries/Alert/AlertIOS.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'NativeEventEmitter'); + + var RCTLocationObserver = _$$_REQUIRE(_dependencyMap[1], 'NativeModules').LocationObserver; + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + var logError = _$$_REQUIRE(_dependencyMap[3], 'logError'); + + var warning = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/warning'); + + var LocationEventEmitter = new NativeEventEmitter(RCTLocationObserver); + + var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); + + var PermissionsAndroid = _$$_REQUIRE(_dependencyMap[6], 'PermissionsAndroid'); + + var subscriptions = []; + var updatesEnabled = false; + var Geolocation = { + setRNConfiguration: function setRNConfiguration(config) { + if (RCTLocationObserver.setConfiguration) { + RCTLocationObserver.setConfiguration(config); + } + }, + requestAuthorization: function requestAuthorization() { + RCTLocationObserver.requestAuthorization(); + }, + getCurrentPosition: function getCurrentPosition(geo_success, geo_error, geo_options) { + var hasPermission, status; + return regeneratorRuntime.async(function getCurrentPosition$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + invariant(typeof geo_success === 'function', 'Must provide a valid geo_success callback.'); + hasPermission = true; + + if (!(Platform.OS === 'android' && Platform.Version >= 23)) { + _context.next = 11; + break; + } + + _context.next = 5; + return regeneratorRuntime.awrap(PermissionsAndroid.check(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION)); + + case 5: + hasPermission = _context.sent; + + if (hasPermission) { + _context.next = 11; + break; + } + + _context.next = 9; + return regeneratorRuntime.awrap(PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION)); + + case 9: + status = _context.sent; + hasPermission = status === PermissionsAndroid.RESULTS.GRANTED; + + case 11: + if (hasPermission) { + RCTLocationObserver.getCurrentPosition(geo_options || {}, geo_success, geo_error || logError); + } + + case 12: + case "end": + return _context.stop(); + } + } + }, null, this); + }, + watchPosition: function watchPosition(success, error, options) { + if (!updatesEnabled) { + RCTLocationObserver.startObserving(options || {}); + updatesEnabled = true; + } + + var watchID = subscriptions.length; + subscriptions.push([LocationEventEmitter.addListener('geolocationDidChange', success), error ? LocationEventEmitter.addListener('geolocationError', error) : null]); + return watchID; + }, + clearWatch: function clearWatch(watchID) { + var sub = subscriptions[watchID]; + + if (!sub) { + return; + } + + sub[0].remove(); + var sub1 = sub[1]; + sub1 && sub1.remove(); + subscriptions[watchID] = undefined; + var noWatchers = true; + + for (var ii = 0; ii < subscriptions.length; ii++) { + if (subscriptions[ii]) { + noWatchers = false; + } + } + + if (noWatchers) { + Geolocation.stopObserving(); + } + }, + stopObserving: function stopObserving() { + if (updatesEnabled) { + RCTLocationObserver.stopObserving(); + updatesEnabled = false; + + for (var ii = 0; ii < subscriptions.length; ii++) { + var sub = subscriptions[ii]; + + if (sub) { + warning(false, 'Called stopObserving with existing subscriptions.'); + sub[0].remove(); + var sub1 = sub[1]; + sub1 && sub1.remove(); + } + } + + subscriptions = []; + } + } + }; + module.exports = Geolocation; +},301,[286,168,166,302,183,176,303],"node_modules/react-native/Libraries/Geolocation/Geolocation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var logError = function logError() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + if (args.length === 1 && args[0] instanceof Error) { + var err = args[0]; + console.error('Error: "' + err.message + '". Stack:\n' + err.stack); + } else { + console.error.apply(console, args); + } + }; + + module.exports = logError; +},302,[],"node_modules/react-native/Libraries/Utilities/logError.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); + + var PermissionsAndroid = function () { + function PermissionsAndroid() { + _classCallCheck(this, PermissionsAndroid); + + this.PERMISSIONS = { + READ_CALENDAR: 'android.permission.READ_CALENDAR', + WRITE_CALENDAR: 'android.permission.WRITE_CALENDAR', + CAMERA: 'android.permission.CAMERA', + READ_CONTACTS: 'android.permission.READ_CONTACTS', + WRITE_CONTACTS: 'android.permission.WRITE_CONTACTS', + GET_ACCOUNTS: 'android.permission.GET_ACCOUNTS', + ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION', + ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION', + RECORD_AUDIO: 'android.permission.RECORD_AUDIO', + READ_PHONE_STATE: 'android.permission.READ_PHONE_STATE', + CALL_PHONE: 'android.permission.CALL_PHONE', + READ_CALL_LOG: 'android.permission.READ_CALL_LOG', + WRITE_CALL_LOG: 'android.permission.WRITE_CALL_LOG', + ADD_VOICEMAIL: 'com.android.voicemail.permission.ADD_VOICEMAIL', + USE_SIP: 'android.permission.USE_SIP', + PROCESS_OUTGOING_CALLS: 'android.permission.PROCESS_OUTGOING_CALLS', + BODY_SENSORS: 'android.permission.BODY_SENSORS', + SEND_SMS: 'android.permission.SEND_SMS', + RECEIVE_SMS: 'android.permission.RECEIVE_SMS', + READ_SMS: 'android.permission.READ_SMS', + RECEIVE_WAP_PUSH: 'android.permission.RECEIVE_WAP_PUSH', + RECEIVE_MMS: 'android.permission.RECEIVE_MMS', + READ_EXTERNAL_STORAGE: 'android.permission.READ_EXTERNAL_STORAGE', + WRITE_EXTERNAL_STORAGE: 'android.permission.WRITE_EXTERNAL_STORAGE' + }; + this.RESULTS = { + GRANTED: 'granted', + DENIED: 'denied', + NEVER_ASK_AGAIN: 'never_ask_again' + }; + } + + _createClass(PermissionsAndroid, [{ + key: "checkPermission", + value: function checkPermission(permission) { + console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'); + return NativeModules.PermissionsAndroid.checkPermission(permission); + } + }, { + key: "check", + value: function check(permission) { + return NativeModules.PermissionsAndroid.checkPermission(permission); + } + }, { + key: "requestPermission", + value: function requestPermission(permission, rationale) { + var response; + return regeneratorRuntime.async(function requestPermission$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'); + _context.next = 3; + return regeneratorRuntime.awrap(this.request(permission, rationale)); + + case 3: + response = _context.sent; + return _context.abrupt("return", response === this.RESULTS.GRANTED); + + case 5: + case "end": + return _context.stop(); + } + } + }, null, this); + } + }, { + key: "request", + value: function request(permission, rationale) { + var shouldShowRationale; + return regeneratorRuntime.async(function request$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + if (!rationale) { + _context2.next = 6; + break; + } + + _context2.next = 3; + return regeneratorRuntime.awrap(NativeModules.PermissionsAndroid.shouldShowRequestPermissionRationale(permission)); + + case 3: + shouldShowRationale = _context2.sent; + + if (!shouldShowRationale) { + _context2.next = 6; + break; + } + + return _context2.abrupt("return", new Promise(function (resolve, reject) { + NativeModules.DialogManagerAndroid.showAlert(rationale, function () { + return reject(new Error('Error showing rationale')); + }, function () { + return resolve(NativeModules.PermissionsAndroid.requestPermission(permission)); + }); + })); + + case 6: + return _context2.abrupt("return", NativeModules.PermissionsAndroid.requestPermission(permission)); + + case 7: + case "end": + return _context2.stop(); + } + } + }, null, this); + } + }, { + key: "requestMultiple", + value: function requestMultiple(permissions) { + return NativeModules.PermissionsAndroid.requestMultiplePermissions(permissions); + } + }]); + + return PermissionsAndroid; + }(); + + PermissionsAndroid = new PermissionsAndroid(); + module.exports = PermissionsAndroid; +},303,[168],"node_modules/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var HeapCapture = { + captureHeap: function captureHeap(path) { + var error = null; + + try { + global.nativeCaptureHeap(path); + console.log('HeapCapture.captureHeap succeeded: ' + path); + } catch (e) { + console.log('HeapCapture.captureHeap error: ' + e.toString()); + error = e.toString(); + } + + _$$_REQUIRE(_dependencyMap[0], 'NativeModules').JSCHeapCapture.captureComplete(path, error); + } + }; + module.exports = HeapCapture; +},304,[168],"node_modules/react-native/Libraries/Utilities/HeapCapture.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var SamplingProfiler = { + poke: function poke(token) { + var error = null; + var result = null; + + try { + result = global.pokeSamplingProfiler(); + + if (result === null) { + console.log('The JSC Sampling Profiler has started'); + } else { + console.log('The JSC Sampling Profiler has stopped'); + } + } catch (e) { + console.log('Error occurred when restarting Sampling Profiler: ' + e.toString()); + error = e.toString(); + } + + var _require = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'), + JSCSamplingProfiler = _require.JSCSamplingProfiler; + + JSCSamplingProfiler.operationComplete(token, result, error); + } + }; + module.exports = SamplingProfiler; +},305,[168],"node_modules/react-native/Libraries/Performance/SamplingProfiler.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var levelsMap = { + log: 'log', + info: 'info', + warn: 'warn', + error: 'error', + fatal: 'error' + }; + var warningHandler = null; + var RCTLog = { + logIfNoNativeHook: function logIfNoNativeHook(level) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + if (typeof global.nativeLoggingHook === 'undefined') { + RCTLog.logToConsole.apply(RCTLog, [level].concat(args)); + } else { + if (warningHandler && level === 'warn') { + warningHandler.apply(void 0, args); + } + } + }, + logToConsole: function logToConsole(level) { + var _console; + + var logFn = levelsMap[level]; + invariant(logFn, 'Level "' + level + '" not one of ' + Object.keys(levelsMap).toString()); + + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + + (_console = console)[logFn].apply(_console, args); + }, + setWarningHandler: function setWarningHandler(handler) { + warningHandler = handler; + } + }; + module.exports = RCTLog; +},306,[166],"node_modules/react-native/Libraries/Utilities/RCTLog.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'RCTDeviceEventEmitter'); + + var RCTNativeAppEventEmitter = RCTDeviceEventEmitter; + module.exports = RCTNativeAppEventEmitter; +},307,[194],"node_modules/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Systrace = _$$_REQUIRE(_dependencyMap[0], 'Systrace'); + + var infoLog = _$$_REQUIRE(_dependencyMap[1], 'infoLog'); + + var performanceNow = global.nativeQPLTimestamp || global.nativePerformanceNow || _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/performanceNow'); + + var timespans = {}; + var extras = {}; + var cookies = {}; + var PRINT_TO_CONSOLE = false; + var PerformanceLogger = { + addTimespan: function addTimespan(key, lengthInMs, description) { + if (timespans[key]) { + if (__DEV__) { + infoLog('PerformanceLogger: Attempting to add a timespan that already exists ', key); + } + + return; + } + + timespans[key] = { + description: description, + totalTime: lengthInMs + }; + }, + startTimespan: function startTimespan(key, description) { + if (timespans[key]) { + if (__DEV__) { + infoLog('PerformanceLogger: Attempting to start a timespan that already exists ', key); + } + + return; + } + + timespans[key] = { + description: description, + startTime: performanceNow() + }; + cookies[key] = Systrace.beginAsyncEvent(key); + + if (PRINT_TO_CONSOLE) { + infoLog('PerformanceLogger.js', 'start: ' + key); + } + }, + stopTimespan: function stopTimespan(key) { + var timespan = timespans[key]; + + if (!timespan || !timespan.startTime) { + if (__DEV__) { + infoLog('PerformanceLogger: Attempting to end a timespan that has not started ', key); + } + + return; + } + + if (timespan.endTime) { + if (__DEV__) { + infoLog('PerformanceLogger: Attempting to end a timespan that has already ended ', key); + } + + return; + } + + timespan.endTime = performanceNow(); + timespan.totalTime = timespan.endTime - (timespan.startTime || 0); + + if (PRINT_TO_CONSOLE) { + infoLog('PerformanceLogger.js', 'end: ' + key); + } + + Systrace.endAsyncEvent(key, cookies[key]); + delete cookies[key]; + }, + clear: function clear() { + timespans = {}; + extras = {}; + + if (PRINT_TO_CONSOLE) { + infoLog('PerformanceLogger.js', 'clear'); + } + }, + clearCompleted: function clearCompleted() { + for (var _key in timespans) { + if (timespans[_key].totalTime) { + delete timespans[_key]; + } + } + + extras = {}; + + if (PRINT_TO_CONSOLE) { + infoLog('PerformanceLogger.js', 'clearCompleted'); + } + }, + clearExceptTimespans: function clearExceptTimespans(keys) { + timespans = Object.keys(timespans).reduce(function (previous, key) { + if (keys.indexOf(key) !== -1) { + previous[key] = timespans[key]; + } + + return previous; + }, {}); + extras = {}; + + if (PRINT_TO_CONSOLE) { + infoLog('PerformanceLogger.js', 'clearExceptTimespans', keys); + } + }, + currentTimestamp: function currentTimestamp() { + return performanceNow(); + }, + getTimespans: function getTimespans() { + return timespans; + }, + hasTimespan: function hasTimespan(key) { + return !!timespans[key]; + }, + logTimespans: function logTimespans() { + for (var _key2 in timespans) { + if (timespans[_key2].totalTime) { + infoLog(_key2 + ': ' + timespans[_key2].totalTime + 'ms'); + } + } + }, + addTimespans: function addTimespans(newTimespans, labels) { + for (var ii = 0, l = newTimespans.length; ii < l; ii += 2) { + var label = labels[ii / 2]; + PerformanceLogger.addTimespan(label, newTimespans[ii + 1] - newTimespans[ii], label); + } + }, + setExtra: function setExtra(key, value) { + if (extras[key]) { + if (__DEV__) { + infoLog('PerformanceLogger: Attempting to set an extra that already exists ', { + key: key, + currentValue: extras[key], + attemptedValue: value + }); + } + + return; + } + + extras[key] = value; + }, + getExtras: function getExtras() { + return extras; + }, + logExtras: function logExtras() { + infoLog(extras); + } + }; + module.exports = PerformanceLogger; +},308,[172,309,177],"node_modules/react-native/Libraries/Utilities/PerformanceLogger.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function infoLog() { + var _console; + + return (_console = console).log.apply(_console, arguments); + } + + module.exports = infoLog; +},309,[],"node_modules/react-native/Libraries/Utilities/infoLog.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var JSDevSupport = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').JSDevSupport; + + var ReactNative = _$$_REQUIRE(_dependencyMap[1], 'ReactNative'); + + var JSDevSupportModule = { + getJSHierarchy: function getJSHierarchy(tag) { + try { + var computeComponentStackForErrorReporting = ReactNative.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.computeComponentStackForErrorReporting; + var componentStack = computeComponentStackForErrorReporting(tag); + + if (!componentStack) { + JSDevSupport.onFailure(JSDevSupport.ERROR_CODE_VIEW_NOT_FOUND, "Component stack doesn't exist for tag " + tag); + } else { + JSDevSupport.onSuccess(componentStack); + } + } catch (e) { + JSDevSupport.onFailure(JSDevSupport.ERROR_CODE_EXCEPTION, e.message); + } + } + }; + module.exports = JSDevSupportModule; +},310,[168,261],"node_modules/react-native/Libraries/Utilities/JSDevSupportModule.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var MetroHMRClient = _$$_REQUIRE(_dependencyMap[2], 'metro/src/lib/bundle-modules/HMRClient'); + + var HMRClient = { + enable: function enable(platform, bundleEntry, host, port) { + invariant(platform, 'Missing required parameter `platform`'); + invariant(bundleEntry, 'Missing required paramenter `bundleEntry`'); + invariant(host, 'Missing required paramenter `host`'); + + var HMRLoadingView = _$$_REQUIRE(_dependencyMap[3], 'HMRLoadingView'); + + var wsHostPort = port !== null && port !== '' ? host + ":" + port : host; + bundleEntry = bundleEntry.replace(/\.(bundle|delta)/, '.js'); + var wsUrl = "ws://" + wsHostPort + "/hot?" + ("platform=" + platform + "&") + ("bundleEntry=" + bundleEntry); + var hmrClient = new MetroHMRClient(wsUrl); + hmrClient.on('connection-error', function (e) { + var error = "Hot loading isn't working because it cannot connect to the development server.\n\nTry the following to fix the issue:\n- Ensure that the packager server is running and available on the same network"; + + if (Platform.OS === 'ios') { + error += "\n- Ensure that the Packager server URL is correctly set in AppDelegate"; + } else { + error += "\n- Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices\n- If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device\n- If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081"; + } + + error += "\n\nURL: " + host + ":" + port + "\n\nError: " + e.message; + throw new Error(error); + }); + hmrClient.on('update-start', function () { + HMRLoadingView.showMessage('Hot Loading...'); + }); + hmrClient.on('update', function () { + if (Platform.OS === 'ios') { + var RCTRedBox = _$$_REQUIRE(_dependencyMap[4], 'NativeModules').RedBox; + + RCTRedBox && RCTRedBox.dismiss && RCTRedBox.dismiss(); + } else { + var RCTExceptionsManager = _$$_REQUIRE(_dependencyMap[4], 'NativeModules').ExceptionsManager; + + RCTExceptionsManager && RCTExceptionsManager.dismissRedbox && RCTExceptionsManager.dismissRedbox(); + } + }); + hmrClient.on('update-done', function () { + HMRLoadingView.hide(); + }); + hmrClient.on('error', function (data) { + HMRLoadingView.hide(); + throw new Error(data.type + " " + data.message); + }); + hmrClient.enable(); + } + }; + module.exports = HMRClient; +},311,[176,166,312,315,168],"node_modules/react-native/Libraries/Utilities/HMRClient.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], './MetroClient'); +},312,[313],"node_modules/metro/src/lib/bundle-modules/HMRClient.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'eventemitter3'); + + var MetroClient = function (_EventEmitter) { + function MetroClient(url) { + var _this; + + _classCallCheck(this, MetroClient); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(MetroClient).call(this)); + _this._url = url; + return _this; + } + + _createClass(MetroClient, [{ + key: "enable", + value: function enable() { + var _this2 = this; + + if (this._ws) { + this.disable(); + } + + this._ws = new global.WebSocket(this._url); + + this._ws.onerror = function (error) { + _this2.emit('connection-error', error); + }; + + this._ws.onclose = function () { + _this2.emit('close'); + }; + + this._ws.onmessage = function (message) { + var data = JSON.parse(message.data); + + switch (data.type) { + case 'update-start': + _this2.emit('update-start'); + + break; + + case 'update': + var _data$body = data.body; + var modules = _data$body.modules, + sourceMappingURLs = _data$body.sourceMappingURLs, + sourceURLs = _data$body.sourceURLs; + + _this2.emit('update'); + + modules.forEach(function (_ref, i) { + var id = _ref.id, + code = _ref.code; + code += '\n\n' + sourceMappingURLs[i]; + var injectFunction = typeof global.nativeInjectHMRUpdate === 'function' ? global.nativeInjectHMRUpdate : eval; + injectFunction(code, sourceURLs[i]); + }); + break; + + case 'update-done': + _this2.emit('update-done'); + + break; + + case 'error': + _this2.emit('error', data.body); + + break; + + default: + _this2.emit('error', { + type: 'unknown-message', + message: data + }); + + } + }; + } + }, { + key: "disable", + value: function disable() { + if (this._ws) { + this._ws.close(); + + this._ws = undefined; + } + } + }]); + + _inherits(MetroClient, _EventEmitter); + + return MetroClient; + }(EventEmitter); + + module.exports = MetroClient; +},313,[314],"node_modules/metro/src/lib/bundle-modules/MetroClient.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var has = Object.prototype.hasOwnProperty, + prefix = '~'; + + function Events() {} + + if (Object.create) { + Events.prototype = Object.create(null); + if (!new Events().__proto__) prefix = false; + } + + function EE(fn, context, once) { + this.fn = fn; + this.context = context; + this.once = once || false; + } + + function addListener(emitter, event, fn, context, once) { + if (typeof fn !== 'function') { + throw new TypeError('The listener must be a function'); + } + + var listener = new EE(fn, context || emitter, once), + evt = prefix ? prefix + event : event; + if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);else emitter._events[evt] = [emitter._events[evt], listener]; + return emitter; + } + + function clearEvent(emitter, evt) { + if (--emitter._eventsCount === 0) emitter._events = new Events();else delete emitter._events[evt]; + } + + function EventEmitter() { + this._events = new Events(); + this._eventsCount = 0; + } + + EventEmitter.prototype.eventNames = function eventNames() { + var names = [], + events, + name; + if (this._eventsCount === 0) return names; + + for (name in events = this._events) { + if (has.call(events, name)) names.push(prefix ? name.slice(1) : name); + } + + if (Object.getOwnPropertySymbols) { + return names.concat(Object.getOwnPropertySymbols(events)); + } + + return names; + }; + + EventEmitter.prototype.listeners = function listeners(event) { + var evt = prefix ? prefix + event : event, + handlers = this._events[evt]; + if (!handlers) return []; + if (handlers.fn) return [handlers.fn]; + + for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { + ee[i] = handlers[i].fn; + } + + return ee; + }; + + EventEmitter.prototype.listenerCount = function listenerCount(event) { + var evt = prefix ? prefix + event : event, + listeners = this._events[evt]; + if (!listeners) return 0; + if (listeners.fn) return 1; + return listeners.length; + }; + + EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) return false; + var listeners = this._events[evt], + len = arguments.length, + args, + i; + + if (listeners.fn) { + if (listeners.once) this.removeListener(event, listeners.fn, undefined, true); + + switch (len) { + case 1: + return listeners.fn.call(listeners.context), true; + + case 2: + return listeners.fn.call(listeners.context, a1), true; + + case 3: + return listeners.fn.call(listeners.context, a1, a2), true; + + case 4: + return listeners.fn.call(listeners.context, a1, a2, a3), true; + + case 5: + return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; + + case 6: + return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; + } + + for (i = 1, args = new Array(len - 1); i < len; i++) { + args[i - 1] = arguments[i]; + } + + listeners.fn.apply(listeners.context, args); + } else { + var length = listeners.length, + j; + + for (i = 0; i < length; i++) { + if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true); + + switch (len) { + case 1: + listeners[i].fn.call(listeners[i].context); + break; + + case 2: + listeners[i].fn.call(listeners[i].context, a1); + break; + + case 3: + listeners[i].fn.call(listeners[i].context, a1, a2); + break; + + case 4: + listeners[i].fn.call(listeners[i].context, a1, a2, a3); + break; + + default: + if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) { + args[j - 1] = arguments[j]; + } + listeners[i].fn.apply(listeners[i].context, args); + } + } + } + + return true; + }; + + EventEmitter.prototype.on = function on(event, fn, context) { + return addListener(this, event, fn, context, false); + }; + + EventEmitter.prototype.once = function once(event, fn, context) { + return addListener(this, event, fn, context, true); + }; + + EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) return this; + + if (!fn) { + clearEvent(this, evt); + return this; + } + + var listeners = this._events[evt]; + + if (listeners.fn) { + if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) { + clearEvent(this, evt); + } + } else { + for (var i = 0, events = [], length = listeners.length; i < length; i++) { + if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) { + events.push(listeners[i]); + } + } + + if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;else clearEvent(this, evt); + } + + return this; + }; + + EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { + var evt; + + if (event) { + evt = prefix ? prefix + event : event; + if (this._events[evt]) clearEvent(this, evt); + } else { + this._events = new Events(); + this._eventsCount = 0; + } + + return this; + }; + + EventEmitter.prototype.off = EventEmitter.prototype.removeListener; + EventEmitter.prototype.addListener = EventEmitter.prototype.on; + EventEmitter.prefixed = prefix; + EventEmitter.EventEmitter = EventEmitter; + + if ('undefined' !== typeof module) { + module.exports = EventEmitter; + } +},314,[],"node_modules/eventemitter3/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var processColor = _$$_REQUIRE(_dependencyMap[0], 'processColor'); + + var _require = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'), + DevLoadingView = _require.DevLoadingView; + + var HMRLoadingView = function () { + function HMRLoadingView() { + _classCallCheck(this, HMRLoadingView); + } + + _createClass(HMRLoadingView, null, [{ + key: "showMessage", + value: function showMessage(message) { + DevLoadingView.showMessage(message, processColor('#000000'), processColor('#aaaaaa')); + } + }, { + key: "hide", + value: function hide() { + DevLoadingView.hide(); + } + }]); + + return HMRLoadingView; + }(); + + module.exports = HMRLoadingView; +},315,[221,168],"node_modules/react-native/Libraries/Utilities/HMRLoadingView.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var register = function register() {}; + + if (__DEV__) { + var AppState = _$$_REQUIRE(_dependencyMap[0], 'AppState'); + + var WebSocket = _$$_REQUIRE(_dependencyMap[1], 'WebSocket'); + + var reactDevTools = _$$_REQUIRE(_dependencyMap[2], 'react-devtools-core'); + + var getDevServer = _$$_REQUIRE(_dependencyMap[3], 'getDevServer'); + + if (WebSocket.isAvailable) { + var _isAppActive = function _isAppActive() { + return AppState.currentState !== 'background'; + }; + + var devServer = getDevServer(); + + var _host = devServer.bundleLoadedFromServer ? devServer.url.replace(/https?:\/\//, '').split(':')[0] : 'localhost'; + + reactDevTools.connectToDevTools({ + isAppActive: _isAppActive, + host: _host, + port: window.__REACT_DEVTOOLS_PORT__, + resolveRNStyle: _$$_REQUIRE(_dependencyMap[4], 'flattenStyle') + }); + } + } + + module.exports = { + register: register + }; +},316,[317,294,318,273,226],"node_modules/react-native/Libraries/Core/Devtools/setupDevtools.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var MissingNativeEventEmitterShim = _$$_REQUIRE(_dependencyMap[0], 'MissingNativeEventEmitterShim'); + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); + + var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); + + var RCTAppState = NativeModules.AppState; + + var logError = _$$_REQUIRE(_dependencyMap[3], 'logError'); + + var invariant = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/invariant'); + + var AppState = function (_NativeEventEmitter) { + function AppState() { + var _this; + + _classCallCheck(this, AppState); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AppState).call(this, RCTAppState)); + _this.isAvailable = true; + _this.isAvailable = true; + _this._eventHandlers = { + change: new Map(), + memoryWarning: new Map() + }; + _this.currentState = RCTAppState.initialAppState || 'active'; + var eventUpdated = false; + + _this.addListener('appStateDidChange', function (appStateData) { + eventUpdated = true; + _this.currentState = appStateData.app_state; + }); + + RCTAppState.getCurrentAppState(function (appStateData) { + if (!eventUpdated && _this.currentState !== appStateData.app_state) { + _this.currentState = appStateData.app_state; + + _this.emit('appStateDidChange', appStateData); + } + }, logError); + return _this; + } + + _createClass(AppState, [{ + key: "addEventListener", + value: function addEventListener(type, handler) { + invariant(['change', 'memoryWarning'].indexOf(type) !== -1, 'Trying to subscribe to unknown event: "%s"', type); + + if (type === 'change') { + this._eventHandlers[type].set(handler, this.addListener('appStateDidChange', function (appStateData) { + handler(appStateData.app_state); + })); + } else if (type === 'memoryWarning') { + this._eventHandlers[type].set(handler, this.addListener('memoryWarning', handler)); + } + } + }, { + key: "removeEventListener", + value: function removeEventListener(type, handler) { + invariant(['change', 'memoryWarning'].indexOf(type) !== -1, 'Trying to remove listener for unknown event: "%s"', type); + + if (!this._eventHandlers[type].has(handler)) { + return; + } + + this._eventHandlers[type].get(handler).remove(); + + this._eventHandlers[type].delete(handler); + } + }]); + + _inherits(AppState, _NativeEventEmitter); + + return AppState; + }(NativeEventEmitter); + + if (__DEV__ && !RCTAppState) { + var MissingNativeAppStateShim = function (_MissingNativeEventEm) { + function MissingNativeAppStateShim() { + _classCallCheck(this, MissingNativeAppStateShim); + + return _possibleConstructorReturn(this, _getPrototypeOf(MissingNativeAppStateShim).call(this, 'RCTAppState', 'AppState')); + } + + _createClass(MissingNativeAppStateShim, [{ + key: "addEventListener", + value: function addEventListener() { + this.throwMissingNativeModule(); + } + }, { + key: "removeEventListener", + value: function removeEventListener() { + this.throwMissingNativeModule(); + } + }, { + key: "currentState", + get: function get() { + this.throwMissingNativeModule(); + } + }]); + + _inherits(MissingNativeAppStateShim, _MissingNativeEventEm); + + return MissingNativeAppStateShim; + }(MissingNativeEventEmitterShim); + + AppState = new MissingNativeAppStateShim(); + } else { + AppState = new AppState(); + } + + module.exports = AppState; +},317,[285,286,168,302,166],"node_modules/react-native/Libraries/AppState/AppState.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + !function (e, t) { + "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.ReactDevToolsBackend = t() : e.ReactDevToolsBackend = t(); + }(window, function () { + return function (e) { + var t = {}; + + function n(r) { + if (t[r]) return t[r].exports; + var o = t[r] = { + i: r, + l: !1, + exports: {} + }; + return e[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports; + } + + return n.m = e, n.c = t, n.d = function (e, t, r) { + n.o(e, t) || Object.defineProperty(e, t, { + enumerable: !0, + get: r + }); + }, n.r = function (e) { + "undefined" != typeof Symbol && (typeof Symbol === "function" ? Symbol.toStringTag : "@@toStringTag") && Object.defineProperty(e, typeof Symbol === "function" ? Symbol.toStringTag : "@@toStringTag", { + value: "Module" + }), Object.defineProperty(e, "__esModule", { + value: !0 + }); + }, n.t = function (e, t) { + if (1 & t && (e = n(e)), 8 & t) return e; + if (4 & t && "object" == typeof e && e && e.__esModule) return e; + var r = Object.create(null); + if (n.r(r), Object.defineProperty(r, "default", { + enumerable: !0, + value: e + }), 2 & t && "string" != typeof e) for (var o in e) { + n.d(r, o, function (t) { + return e[t]; + }.bind(null, o)); + } + return r; + }, n.n = function (e) { + var t = e && e.__esModule ? function () { + return e.default; + } : function () { + return e; + }; + return n.d(t, "a", t), t; + }, n.o = function (e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + }, n.p = "", n(n.s = 8); + }([function (e, t, n) { + var r, o, i; + !function (a, s) { + "use strict"; + + o = [n(54)], void 0 === (i = "function" == typeof (r = function r(e) { + var t = /(^|@)\S+\:\d+/, + n = /^\s*at .*(\S+\:\d+|\(native\))/m, + r = /^(eval@)?(\[native code\])?$/; + return { + parse: function parse(e) { + if (void 0 !== e.stacktrace || void 0 !== e["opera#sourceloc"]) return this.parseOpera(e); + if (e.stack && e.stack.match(n)) return this.parseV8OrIE(e); + if (e.stack) return this.parseFFOrSafari(e); + throw new Error("Cannot parse given Error object"); + }, + extractLocation: function extractLocation(e) { + if (-1 === e.indexOf(":")) return [e]; + var t = /(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g, "")); + return [t[1], t[2] || void 0, t[3] || void 0]; + }, + parseV8OrIE: function parseV8OrIE(t) { + var r = t.stack.split("\n").filter(function (e) { + return !!e.match(n); + }, this); + return r.map(function (t) { + t.indexOf("(eval ") > -1 && (t = t.replace(/eval code/g, "eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g, "")); + var n = t.replace(/^\s+/, "").replace(/\(eval code/g, "(").split(/\s+/).slice(1), + r = this.extractLocation(n.pop()), + o = n.join(" ") || void 0, + i = ["eval", ""].indexOf(r[0]) > -1 ? void 0 : r[0]; + return new e({ + functionName: o, + fileName: i, + lineNumber: r[1], + columnNumber: r[2], + source: t + }); + }, this); + }, + parseFFOrSafari: function parseFFOrSafari(t) { + var n = t.stack.split("\n").filter(function (e) { + return !e.match(r); + }, this); + return n.map(function (t) { + if (t.indexOf(" > eval") > -1 && (t = t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g, ":$1")), -1 === t.indexOf("@") && -1 === t.indexOf(":")) return new e({ + functionName: t + }); + var n = /((.*".+"[^@]*)?[^@]*)(?:@)/, + r = t.match(n), + o = r && r[1] ? r[1] : void 0, + i = this.extractLocation(t.replace(n, "")); + return new e({ + functionName: o, + fileName: i[0], + lineNumber: i[1], + columnNumber: i[2], + source: t + }); + }, this); + }, + parseOpera: function parseOpera(e) { + return !e.stacktrace || e.message.indexOf("\n") > -1 && e.message.split("\n").length > e.stacktrace.split("\n").length ? this.parseOpera9(e) : e.stack ? this.parseOpera11(e) : this.parseOpera10(e); + }, + parseOpera9: function parseOpera9(t) { + for (var n = /Line (\d+).*script (?:in )?(\S+)/i, r = t.message.split("\n"), o = [], i = 2, a = r.length; i < a; i += 2) { + var s = n.exec(r[i]); + s && o.push(new e({ + fileName: s[2], + lineNumber: s[1], + source: r[i] + })); + } + + return o; + }, + parseOpera10: function parseOpera10(t) { + for (var n = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, r = t.stacktrace.split("\n"), o = [], i = 0, a = r.length; i < a; i += 2) { + var s = n.exec(r[i]); + s && o.push(new e({ + functionName: s[3] || void 0, + fileName: s[2], + lineNumber: s[1], + source: r[i] + })); + } + + return o; + }, + parseOpera11: function parseOpera11(n) { + var r = n.stack.split("\n").filter(function (e) { + return !!e.match(t) && !e.match(/^Error created at/); + }, this); + return r.map(function (t) { + var n, + r = t.split("@"), + o = this.extractLocation(r.pop()), + i = r.shift() || "", + a = i.replace(//, "$2").replace(/\([^\)]*\)/g, "") || void 0; + i.match(/\(([^\)]*)\)/) && (n = i.replace(/^[^\(]+\(([^\)]*)\)$/, "$1")); + var s = void 0 === n || "[arguments not available]" === n ? void 0 : n.split(","); + return new e({ + functionName: a, + args: s, + fileName: o[0], + lineNumber: o[1], + columnNumber: o[2], + source: t + }); + }, this); + } + }; + }) ? r.apply(t, o) : r) || (e.exports = i); + }(); + }, function (e, t, n) { + "use strict"; + + var r = Object.prototype.hasOwnProperty, + o = Object.prototype.propertyIsEnumerable; + + e.exports = Object.assign || function (e, t) { + for (var n, i, a = function (e) { + if (null == e) throw new TypeError("Object.assign cannot be called with null or undefined"); + return Object(e); + }(e), s = 1; s < arguments.length; s++) { + for (var u in n = Object(arguments[s])) { + r.call(n, u) && (a[u] = n[u]); + } + + if (Object.getOwnPropertySymbols) { + i = Object.getOwnPropertySymbols(n); + + for (var c = 0; c < i.length; c++) { + o.call(n, i[c]) && (a[i[c]] = n[i[c]]); + } + } + } + + return a; + }; + }, function (e, t, n) { + "use strict"; + + function r(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e; + } + + function o(e, t, n, i) { + if (n >= t.length) return i; + var a = t[n], + s = Array.isArray(e) ? e.slice() : function (e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + o = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function (e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }))), o.forEach(function (t) { + r(e, t, n[t]); + }); + } + + return e; + }({}, e); + return s[a] = o(e[a], t, n + 1, i), s; + } + + e.exports = function (e, t, n) { + return o(e, t, 0, n); + }; + }, function (e, t) { + function n(e) { + return function (e) { + if (Array.isArray(e)) { + for (var t = 0, n = new Array(e.length); t < e.length; t++) { + n[t] = e[t]; + } + + return n; + } + }(e) || function (e) { + if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(e) || "[object Arguments]" === Object.prototype.toString.call(e)) return Array.from(e); + }(e) || function () { + throw new TypeError("Invalid attempt to spread non-iterable instance"); + }(); + } + + var r = Object.prototype.hasOwnProperty; + + e.exports = function (e, t) { + return t.reduce(function (e, t) { + if (e) { + if (r.call(e, t)) return e[t]; + if ("function" == typeof e[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]) return n(e)[t]; + } + + return null; + }, e); + }; + }, function (e, t, n) { + "use strict"; + + var r = n(14); + e.exports = { + name: r("name"), + type: r("type"), + inspected: r("inspected"), + meta: r("meta"), + proto: r("proto") + }; + }, function (e, t, n) { + "use strict"; + + var r = /^(.*) \[from (.*)\]$/, + o = new WeakMap(); + + e.exports = function (e) { + var t, + n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "Unknown", + i = o.get(e); + if (null != i) return i; + "string" == typeof e.displayName && (t = e.displayName), t || (t = e.name || n); + var a = t.match(r); + + if (a) { + var s = a[1], + u = a[2]; + s && u && (u === s || u.startsWith(s + ".")) && (t = s); + } + + return o.set(e, t), t; + }; + }, function (e, t) { + var n, + r, + o = e.exports = {}; + + function i() { + throw new Error("setTimeout has not been defined"); + } + + function a() { + throw new Error("clearTimeout has not been defined"); + } + + function s(e) { + if (n === setTimeout) return setTimeout(e, 0); + if ((n === i || !n) && setTimeout) return n = setTimeout, setTimeout(e, 0); + + try { + return n(e, 0); + } catch (t) { + try { + return n.call(null, e, 0); + } catch (t) { + return n.call(this, e, 0); + } + } + } + + !function () { + try { + n = "function" == typeof setTimeout ? setTimeout : i; + } catch (e) { + n = i; + } + + try { + r = "function" == typeof clearTimeout ? clearTimeout : a; + } catch (e) { + r = a; + } + }(); + var u, + c = [], + l = !1, + f = -1; + + function p() { + l && u && (l = !1, u.length ? c = u.concat(c) : f = -1, c.length && d()); + } + + function d() { + if (!l) { + var e = s(p); + l = !0; + + for (var t = c.length; t;) { + for (u = c, c = []; ++f < t;) { + u && u[f].run(); + } + + f = -1, t = c.length; + } + + u = null, l = !1, function (e) { + if (r === clearTimeout) return clearTimeout(e); + if ((r === a || !r) && clearTimeout) return r = clearTimeout, clearTimeout(e); + + try { + r(e); + } catch (t) { + try { + return r.call(null, e); + } catch (t) { + return r.call(this, e); + } + } + }(e); + } + } + + function h(e, t) { + this.fun = e, this.array = t; + } + + function m() {} + + o.nextTick = function (e) { + var t = new Array(arguments.length - 1); + if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) { + t[n - 1] = arguments[n]; + } + c.push(new h(e, t)), 1 !== c.length || l || s(d); + }, h.prototype.run = function () { + this.fun.apply(null, this.array); + }, o.title = "browser", o.browser = !0, o.env = {}, o.argv = [], o.version = "", o.versions = {}, o.on = m, o.addListener = m, o.once = m, o.off = m, o.removeListener = m, o.removeAllListeners = m, o.emit = m, o.prependListener = m, o.prependOnceListener = m, o.listeners = function (e) { + return []; + }, o.binding = function (e) { + throw new Error("process.binding is not supported"); + }, o.cwd = function () { + return "/"; + }, o.chdir = function (e) { + throw new Error("process.chdir is not supported"); + }, o.umask = function () { + return 0; + }; + }, function (e, t) { + function n(e) { + return (n = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + var r; + + r = function () { + return this; + }(); + + try { + r = r || Function("return this")() || (0, eval)("this"); + } catch (e) { + "object" === ("undefined" == typeof window ? "undefined" : n(window)) && (r = window); + } + + e.exports = r; + }, function (e, t, n) { + "use strict"; + + var r = n(9), + o = n(13), + i = n(37), + a = n(38), + s = n(39), + u = n(48), + c = n(52), + l = n(61).default, + f = n(55); + a(window), window.document && window.__REACT_DEVTOOLS_GLOBAL_HOOK__.on("react-devtools", function (e) { + n(56)(e); + }), e.exports = { + connectToDevTools: function e(t) { + var n = t || {}, + a = n.host, + p = void 0 === a ? "localhost" : a, + d = n.port, + h = void 0 === d ? 8097 : d, + m = n.websocket, + y = n.resolveRNStyle, + v = void 0 === y ? null : y, + g = n.isAppActive; + + function b() { + setTimeout(function () { + return e(t); + }, 2e3); + } + + if ((void 0 === g ? function () { + return !0; + } : g)()) { + var _ = [], + w = [], + S = "ws://" + p + ":" + h, + E = m || new window.WebSocket(S); + E.onclose = x, E.onerror = x, E.onmessage = function (e) { + var t; + + try { + u("string" == typeof e.data), t = JSON.parse(e.data); + } catch (t) { + return void console.error("failed to parse json: " + String(e.data)); + } + + _.forEach(function (e) { + try { + e(t); + } catch (e) { + throw console.log(t), e; + } + }); + }, E.onopen = function () { + !function (e, t) { + e.onClose(function () { + a && a.emit("shutdown"), window.__REACT_DEVTOOLS_GLOBAL_HOOK__.emit("shutdown"), n = null, a = null, console.log("closing devtools"); + }); + var n = new o(e), + a = new r(window, { + rnStyle: !!t, + rnStyleMeasure: !!t + }); + a.addBridge(n), t && c(n, a, t), f(n, a, window.__REACT_DEVTOOLS_GLOBAL_HOOK__), l(n, a); + var u = setTimeout(function () { + console.warn("react-devtools agent got no connection"); + }, 2e4); + a.once("connected", function () { + a && (s(window.__REACT_DEVTOOLS_GLOBAL_HOOK__, a), clearTimeout(u)); + }), i.init(a); + }({ + listen: function listen(e) { + _.push(e); + }, + onClose: function onClose(e) { + w.push(e); + }, + send: function send(e) { + E.send(JSON.stringify(e)); + } + }, v); + }; + var O = !1; + } else b(); + + function x() { + O || (O = !0, b(), w.forEach(function (e) { + return e(); + })); + } + } + }; + }, function (e, t, n) { + "use strict"; + + function r(e) { + return (r = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + function o(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); + } + } + + function i(e) { + return (i = Object.setPrototypeOf ? Object.getPrototypeOf : function (e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + + function a(e, t) { + return (a = Object.setPrototypeOf || function (e, t) { + return e.__proto__ = t, e; + })(e, t); + } + + function s(e) { + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; + } + + var u = n(10).EventEmitter, + c = n(1), + l = n(11).default, + f = n(12), + p = n(3), + d = function (e) { + function t(e, n) { + var o, a, u, l; + !function (e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); + }(this, t), a = this, u = i(t).call(this), (o = !u || "object" !== r(u) && "function" != typeof u ? s(a) : u).global = e, o.internalInstancesById = new Map(), o.idsByInternalInstances = new WeakMap(), o.renderers = new Map(), o.elementData = new Map(), o.roots = new Set(), o.reactInternals = {}, o.on("selected", function (e) { + var t = o.elementData.get(e); + t && t.publicInstance && o.global.$r === l && (o.global.$r = t.publicInstance, l = t.publicInstance); + }), o._prevSelected = null, o._scrollUpdate = !1; + var f = window.document && "function" == typeof window.document.createElement; + return o.capabilities = c({ + scroll: f && "function" == typeof window.document.body.scrollIntoView, + dom: f, + editTextContent: !1 + }, n), f && (o._updateScroll = o._updateScroll.bind(s(s(o))), window.addEventListener("scroll", o._onScroll.bind(s(s(o))), !0), window.addEventListener("click", o._onClick.bind(s(s(o))), !0), window.addEventListener("mouseover", o._onMouseOver.bind(s(s(o))), !0), window.addEventListener("resize", o._onResize.bind(s(s(o))), !0)), o; + } + + var n, d, h; + return function (e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function"); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + }), t && a(e, t); + }(t, u), n = t, (d = [{ + key: "sub", + value: function value(e, t) { + var n = this; + return this.on(e, t), function () { + n.removeListener(e, t); + }; + } + }, { + key: "setReactInternals", + value: function value(e, t) { + this.reactInternals[e] = t; + } + }, { + key: "addBridge", + value: function value(e) { + var t = this; + e.on("requestCapabilities", function () { + e.send("capabilities", t.capabilities), t.emit("connected"); + }), e.on("setState", this._setState.bind(this)), e.on("setProps", this._setProps.bind(this)), e.on("setContext", this._setContext.bind(this)), e.on("makeGlobal", this._makeGlobal.bind(this)), e.on("highlight", function (e) { + return t.highlight(e); + }), e.on("highlightMany", function (e) { + return t.highlightMany(e); + }), e.on("hideHighlight", function () { + return t.emit("hideHighlight"); + }), e.on("startInspecting", function () { + return t.emit("startInspecting"); + }), e.on("stopInspecting", function () { + return t.emit("stopInspecting"); + }), e.on("selected", function (e) { + return t.emit("selected", e); + }), e.on("isRecording", function (e) { + return t.emit("isRecording", e); + }), e.on("setInspectEnabled", function (e) { + t._inspectEnabled = e, t.emit("stopInspecting"); + }), e.on("shutdown", function () { + return t.emit("shutdown"); + }), e.on("changeTextContent", function (e) { + var n = e.id, + r = e.text, + o = t.getNodeForID(n); + o && (o.textContent = r); + }), e.on("putSelectedNode", function (e) { + window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$node = t.getNodeForID(e); + }), e.on("putSelectedInstance", function (e) { + var n = t.elementData.get(e); + window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$type = n ? n.type : null, n && n.publicInstance ? window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$inst = n.publicInstance : window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$inst = null; + }), e.on("checkSelection", function () { + var e = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0; + e !== t._prevSelected && (t._prevSelected = e, e !== window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$node && t.selectFromDOMNode(e, !0)); + }), e.on("scrollToNode", function (e) { + return t.scrollToNode(e); + }), e.on("traceupdatesstatechange", function (e) { + return t.emit("traceupdatesstatechange", e); + }), e.on("colorizerchange", function (e) { + return t.emit("colorizerchange", e); + }), this.on("root", function (t) { + return e.send("root", t); + }), this.on("mount", function (t) { + return e.send("mount", t); + }), this.on("update", function (t) { + return e.send("update", t); + }), this.on("updateProfileTimes", function (t) { + return e.send("updateProfileTimes", t); + }), this.on("unmount", function (t) { + e.send("unmount", t), e.forget(t); + }), this.on("setSelection", function (t) { + return e.send("select", t); + }), this.on("setInspectEnabled", function (t) { + return e.send("setInspectEnabled", t); + }), this.on("isRecording", function (t) { + return e.send("isRecording", t); + }), this.on("storeSnapshot", function (t) { + return e.send("storeSnapshot", t); + }), this.on("clearSnapshots", function () { + return e.send("clearSnapshots"); + }); + } + }, { + key: "scrollToNode", + value: function value(e) { + var t = this.getNodeForID(e); + + if (t) { + var n = t.nodeType === Node.ELEMENT_NODE ? t : t.parentElement; + n ? ("function" == typeof n.scrollIntoViewIfNeeded ? n.scrollIntoViewIfNeeded() : "function" == typeof n.scrollIntoView && n.scrollIntoView(), this.highlight(e)) : console.warn("unable to get the domElement for scrolling"); + } else console.warn("unable to get the node for scrolling"); + } + }, { + key: "highlight", + value: function value(e) { + var t = this.elementData.get(e), + n = this.getNodeForID(e); + t && n && this.emit("highlight", { + node: n, + name: t.name, + props: t.props + }); + } + }, { + key: "highlightMany", + value: function value(e) { + var t = this, + n = []; + e.forEach(function (e) { + var r = t.getNodeForID(e); + r && n.push(r); + }), n.length && this.emit("highlightMany", n); + } + }, { + key: "getNodeForID", + value: function value(e) { + var t = this.internalInstancesById.get(e); + if (!t) return null; + var n = this.renderers.get(e); + return n && this.reactInternals[n].getNativeFromReactElement ? this.reactInternals[n].getNativeFromReactElement(t) : null; + } + }, { + key: "selectFromDOMNode", + value: function value(e, t) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0, + r = this.getIDForNode(e); + r && this.emit("setSelection", { + id: r, + quiet: t, + offsetFromLeaf: n + }); + } + }, { + key: "selectFromReactInstance", + value: function value(e, t) { + var n = this.getId(e); + n ? this.emit("setSelection", { + id: n, + quiet: t + }) : console.log("no instance id", e); + } + }, { + key: "getIDForNode", + value: function value(e) { + if (!this.reactInternals) return null; + var t; + + for (var n in this.reactInternals) { + try { + t = this.reactInternals[n].getReactElementFromNative(e); + } catch (e) {} + + if (t) return this.getId(t); + } + + return null; + } + }, { + key: "_setProps", + value: function value(e) { + var t = e.id, + n = e.path, + r = e.value, + o = this.elementData.get(t); + o && o.updater && "function" == typeof o.updater.setInProps ? o.updater.setInProps(n, r) : console.warn("trying to set props on a component that doesn't support it"); + } + }, { + key: "_setState", + value: function value(e) { + var t = e.id, + n = e.path, + r = e.value, + o = this.elementData.get(t); + o && o.updater && "function" == typeof o.updater.setInState ? o.updater.setInState(n, r) : console.warn("trying to set state on a component that doesn't support it"); + } + }, { + key: "_setContext", + value: function value(e) { + var t = e.id, + n = e.path, + r = e.value, + o = this.elementData.get(t); + o && o.updater && "function" == typeof o.updater.setInContext ? o.updater.setInContext(n, r) : console.warn("trying to set context on a component that doesn't support it"); + } + }, { + key: "_makeGlobal", + value: function value(e) { + var t, + n = e.id, + r = e.path, + o = this.elementData.get(n); + o && (t = "instance" === r ? o.publicInstance : p(o, r), this.global.$tmp = t, console.log("$tmp =", t)); + } + }, { + key: "getId", + value: function value(e) { + return "object" === r(e) && e ? (this.idsByInternalInstances.has(e) || (this.idsByInternalInstances.set(e, f()), this.internalInstancesById.set(l(this.idsByInternalInstances.get(e)), e)), l(this.idsByInternalInstances.get(e))) : e; + } + }, { + key: "addRoot", + value: function value(e, t) { + var n = this.getId(t); + this.roots.add(n), this.emit("root", n); + } + }, { + key: "rootCommitted", + value: function value(e, t, n) { + var r = this.getId(t); + this.emit("rootCommitted", r, t, n); + } + }, { + key: "onMounted", + value: function value(e, t, n) { + var r = this, + o = this.getId(t); + this.renderers.set(o, e), this.elementData.set(o, n); + var i = c({}, n); + i.children && i.children.map && (i.children = i.children.map(function (e) { + return r.getId(e); + })), i.id = o, i.canUpdate = i.updater && i.updater.canUpdate, delete i.type, delete i.updater, this.emit("mount", i); + } + }, { + key: "onUpdated", + value: function value(e, t) { + var n = this, + r = this.getId(e); + this.elementData.set(r, t); + var o = c({}, t); + o.children && o.children.map && (o.children = o.children.map(function (e) { + return n.getId(e); + })), o.id = r, o.canUpdate = o.updater && o.updater.canUpdate, delete o.type, delete o.updater, this.emit("update", o); + } + }, { + key: "onUpdatedProfileTimes", + value: function value(e, t) { + var n = this, + r = this.getId(e); + this.elementData.set(r, t); + var o = c({}, t); + o.children && o.children.map && (o.children = o.children.map(function (e) { + return n.getId(e); + })), o.id = r, o.canUpdate = o.updater && o.updater.canUpdate, delete o.type, delete o.updater, this.emit("updateProfileTimes", o); + } + }, { + key: "onUnmounted", + value: function value(e) { + var t = this.getId(e); + this.elementData.delete(t), this.roots.has(t) && (this.roots.delete(t), this.emit("rootUnmounted", t)), this.renderers.delete(t), this.emit("unmount", t), this.idsByInternalInstances.delete(e); + } + }, { + key: "_onScroll", + value: function value() { + this._scrollUpdate || (this._scrollUpdate = !0, window.requestAnimationFrame(this._updateScroll)); + } + }, { + key: "_updateScroll", + value: function value() { + this.emit("refreshMultiOverlay"), this.emit("stopInspecting"), this._scrollUpdate = !1; + } + }, { + key: "_onClick", + value: function value(e) { + if (this._inspectEnabled) { + var t = this.getIDForNode(e.target); + t && (e.stopPropagation(), e.preventDefault(), this.emit("setSelection", { + id: t + }), this.emit("setInspectEnabled", !1)); + } + } + }, { + key: "_onMouseOver", + value: function value(e) { + if (this._inspectEnabled) { + var t = this.getIDForNode(e.target); + if (!t) return; + this.highlight(t); + } + } + }, { + key: "_onResize", + value: function value(e) { + this.emit("stopInspecting"); + } + }]) && o(n.prototype, d), h && o(n, h), t; + }(); + + e.exports = d; + }, function (e, t) { + function n(e) { + return (n = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + function r() { + this._events = this._events || {}, this._maxListeners = this._maxListeners || void 0; + } + + function o(e) { + return "function" == typeof e; + } + + function i(e) { + return "object" === n(e) && null !== e; + } + + function a(e) { + return void 0 === e; + } + + e.exports = r, r.EventEmitter = r, r.prototype._events = void 0, r.prototype._maxListeners = void 0, r.defaultMaxListeners = 10, r.prototype.setMaxListeners = function (e) { + if ("number" != typeof e || e < 0 || isNaN(e)) throw TypeError("n must be a positive number"); + return this._maxListeners = e, this; + }, r.prototype.emit = function (e) { + var t, n, r, s, u, c; + + if (this._events || (this._events = {}), "error" === e && (!this._events.error || i(this._events.error) && !this._events.error.length)) { + if ((t = arguments[1]) instanceof Error) throw t; + var l = new Error('Uncaught, unspecified "error" event. (' + t + ")"); + throw l.context = t, l; + } + + if (a(n = this._events[e])) return !1; + if (o(n)) switch (arguments.length) { + case 1: + n.call(this); + break; + + case 2: + n.call(this, arguments[1]); + break; + + case 3: + n.call(this, arguments[1], arguments[2]); + break; + + default: + s = Array.prototype.slice.call(arguments, 1), n.apply(this, s); + } else if (i(n)) for (s = Array.prototype.slice.call(arguments, 1), r = (c = n.slice()).length, u = 0; u < r; u++) { + c[u].apply(this, s); + } + return !0; + }, r.prototype.addListener = function (e, t) { + var n; + if (!o(t)) throw TypeError("listener must be a function"); + return this._events || (this._events = {}), this._events.newListener && this.emit("newListener", e, o(t.listener) ? t.listener : t), this._events[e] ? i(this._events[e]) ? this._events[e].push(t) : this._events[e] = [this._events[e], t] : this._events[e] = t, i(this._events[e]) && !this._events[e].warned && (n = a(this._maxListeners) ? r.defaultMaxListeners : this._maxListeners) && n > 0 && this._events[e].length > n && (this._events[e].warned = !0, console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[e].length), "function" == typeof console.trace && console.trace()), this; + }, r.prototype.on = r.prototype.addListener, r.prototype.once = function (e, t) { + if (!o(t)) throw TypeError("listener must be a function"); + var n = !1; + + function r() { + this.removeListener(e, r), n || (n = !0, t.apply(this, arguments)); + } + + return r.listener = t, this.on(e, r), this; + }, r.prototype.removeListener = function (e, t) { + var n, r, a, s; + if (!o(t)) throw TypeError("listener must be a function"); + if (!this._events || !this._events[e]) return this; + if (a = (n = this._events[e]).length, r = -1, n === t || o(n.listener) && n.listener === t) delete this._events[e], this._events.removeListener && this.emit("removeListener", e, t);else if (i(n)) { + for (s = a; s-- > 0;) { + if (n[s] === t || n[s].listener && n[s].listener === t) { + r = s; + break; + } + } + + if (r < 0) return this; + 1 === n.length ? (n.length = 0, delete this._events[e]) : n.splice(r, 1), this._events.removeListener && this.emit("removeListener", e, t); + } + return this; + }, r.prototype.removeAllListeners = function (e) { + var t, n; + if (!this._events) return this; + if (!this._events.removeListener) return 0 === arguments.length ? this._events = {} : this._events[e] && delete this._events[e], this; + + if (0 === arguments.length) { + for (t in this._events) { + "removeListener" !== t && this.removeAllListeners(t); + } + + return this.removeAllListeners("removeListener"), this._events = {}, this; + } + + if (o(n = this._events[e])) this.removeListener(e, n);else if (n) for (; n.length;) { + this.removeListener(e, n[n.length - 1]); + } + return delete this._events[e], this; + }, r.prototype.listeners = function (e) { + return this._events && this._events[e] ? o(this._events[e]) ? [this._events[e]] : this._events[e].slice() : []; + }, r.prototype.listenerCount = function (e) { + if (this._events) { + var t = this._events[e]; + if (o(t)) return 1; + if (t) return t.length; + } + + return 0; + }, r.listenerCount = function (e, t) { + return e.listenerCount(t); + }; + }, function (e, t, n) { + "use strict"; + + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = function (e) { + if (null != e) return e; + throw new Error("Got unexpected null or undefined"); + }; + }, function (e, t, n) { + "use strict"; + + e.exports = function () { + return "g" + Math.random().toString(16).substr(2); + }; + }, function (e, t, n) { + "use strict"; + + function r(e) { + return function (e) { + if (Array.isArray(e)) { + for (var t = 0, n = new Array(e.length); t < e.length; t++) { + n[t] = e[t]; + } + + return n; + } + }(e) || function (e) { + if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(e) || "[object Arguments]" === Object.prototype.toString.call(e)) return Array.from(e); + }(e) || function () { + throw new TypeError("Invalid attempt to spread non-iterable instance"); + }(); + } + + function o(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e; + } + + function i(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); + } + } + + var a = n(4), + s = n(32), + u = n(33), + c = n(3), + l = n(34); + + function f(e, t) { + return -1 === String(window[e]).indexOf("[native code]") ? t : window[e]; + } + + var p = 5, + d = f("cancelIdleCallback", clearTimeout), + h = f("requestIdleCallback", function (e, t) { + var n = 3e3 * p; + return n > 500 && (n = 500), setTimeout(function () { + var t = l(); + e({ + didTimeout: !1, + timeRemaining: function timeRemaining() { + return 1 / 0; + } + }); + var n = l(); + p = (n - t) / 1e3; + }, n); + }), + m = function () { + function e(t) { + !function (e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); + }(this, e), this._cbs = new Map(), this._inspectables = new Map(), this._cid = 0, this._listeners = {}, this._buffer = [], this._flushHandle = null, this._callers = {}, this._paused = !1, this._wall = t, t.listen(this._handleMessage.bind(this)); + } + + var t, n, l; + return t = e, (n = [{ + key: "inspect", + value: function value(e, t, n) { + var r = this._cid++; + this._cbs.set(r, function (e, t, r, o) { + t.length && s(e, t), r && o.length && s(r, o), r && (e[a.proto] = r), n(e); + }), this._wall.send({ + type: "inspect", + callback: r, + path: t, + id: e + }); + } + }, { + key: "call", + value: function value(e, t, n) { + var r = this._cid++; + this._cbs.set(r, n), this._wall.send({ + type: "call", + callback: r, + args: t, + name: e + }); + } + }, { + key: "onCall", + value: function value(e, t) { + if (this._callers[e]) throw new Error("only one call handler per call name allowed"); + this._callers[e] = t; + } + }, { + key: "pause", + value: function value() { + this._wall.send({ + type: "pause" + }); + } + }, { + key: "resume", + value: function value() { + this._wall.send({ + type: "resume" + }); + } + }, { + key: "setInspectable", + value: function value(e, t) { + var n = this._inspectables.get(e); + + n ? this._inspectables.set(e, function (e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }))), r.forEach(function (t) { + o(e, t, n[t]); + }); + } + + return e; + }({}, n, t)) : this._inspectables.set(e, t); + } + }, { + key: "send", + value: function value(e, t) { + this._buffer.push({ + evt: e, + data: t + }), this.scheduleFlush(); + } + }, { + key: "scheduleFlush", + value: function value() { + if (!this._flushHandle && this._buffer.length) { + var e = this._paused ? 5e3 : 500; + this._flushHandle = h(this.flushBufferWhileIdle.bind(this), { + timeout: e + }); + } + } + }, { + key: "cancelFlush", + value: function value() { + this._flushHandle && (d(this._flushHandle), this._flushHandle = null); + } + }, { + key: "flushBufferWhileIdle", + value: function value(e) { + this._flushHandle = null; + + for (var t = this._paused ? 20 : 10, n = Math.round(this._buffer.length / t), r = this._paused ? 50 : 100; this._buffer.length && (e.timeRemaining() > 0 || e.didTimeout);) { + var o = Math.min(this._buffer.length, Math.max(r, n)), + i = this._buffer.splice(0, o); + + this.flushBufferSlice(i); + } + + this._buffer.length && this.scheduleFlush(); + } + }, { + key: "flushBufferSlice", + value: function value(e) { + var t = this, + n = e.map(function (e) { + var n = e.evt, + r = e.data, + o = [], + i = u(r, o); + return o.length && t.setInspectable(r.id, r), { + type: "event", + evt: n, + data: i, + cleaned: o + }; + }); + + this._wall.send({ + type: "many-events", + events: n + }); + } + }, { + key: "forget", + value: function value(e) { + this._inspectables.delete(e); + } + }, { + key: "on", + value: function value(e, t) { + this._listeners[e] ? this._listeners[e].push(t) : this._listeners[e] = [t]; + } + }, { + key: "off", + value: function value(e, t) { + if (this._listeners[e]) { + var n = this._listeners[e].indexOf(t); + + -1 !== n && this._listeners[e].splice(n, 1); + } + } + }, { + key: "once", + value: function value(e, t) { + var n = this; + this.on(e, function r() { + t.apply(this, arguments), n.off(e, r); + }); + } + }, { + key: "_handleMessage", + value: function value(e) { + var t = this; + if ("resume" === e.type) return this._paused = !1, void this.scheduleFlush(); + if ("pause" === e.type) return this._paused = !0, void this.cancelFlush(); + if ("callback" !== e.type) { + if ("call" !== e.type) { + if ("inspect" !== e.type) { + if ("event" === e.type) { + e.cleaned && s(e.data, e.cleaned); + var n = this._listeners[e.evt], + o = e.data; + n && n.forEach(function (e) { + return e(o); + }); + } + + "many-events" === e.type && e.events.forEach(function (e) { + e.cleaned && s(e.data, e.cleaned); + var n = t._listeners[e.evt]; + n && n.forEach(function (t) { + return t(e.data); + }); + }); + } else this._inspectResponse(e.id, e.path, e.callback); + } else this._handleCall(e.name, e.args, e.callback); + } else { + var i = this._cbs.get(e.id); + + i && (i.apply(void 0, r(e.args)), this._cbs.delete(e.id)); + } + } + }, { + key: "_handleCall", + value: function value(e, t, n) { + if (this._callers[e]) { + var r; + t = Array.isArray(t) ? t : [t]; + + try { + r = this._callers[e].apply(null, t); + } catch (e) { + return void console.error("Failed to call", e); + } + + this._wall.send({ + type: "callback", + id: n, + args: [r] + }); + } else console.warn('unknown call: "' + e + '"'); + } + }, { + key: "_inspectResponse", + value: function value(e, t, n) { + var r = this._inspectables.get(e), + o = {}, + i = [], + a = null, + s = []; + + if (r) { + var l = c(r, t), + f = !1, + p = "function" == typeof l; + + if (l && "function" == typeof l[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]) { + var d = Object.create({}), + h = 0, + m = !0, + y = !1, + v = void 0; + + try { + for (var g, b = l[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](); !(m = (g = b.next()).done); m = !0) { + var _ = g.value; + if (h > 100) break; + d[h] = _, h++; + } + } catch (e) { + y = !0, v = e; + } finally { + try { + m || null == b.return || b.return(); + } finally { + if (y) throw v; + } + } + + l = d; + } + + if (Object.getOwnPropertyNames(l).forEach(function (e) { + "__proto__" === e && (f = !0), (!p || "arguments" !== e && "callee" !== e && "caller" !== e) && (o[e] = u(l[e], i, [e])); + }), !f && l.__proto__ && "Object" !== l.constructor.name) { + var w = {}, + S = "function" == typeof l.__proto__; + Object.getOwnPropertyNames(l.__proto__).forEach(function (e) { + (!S || "arguments" !== e && "callee" !== e && "caller" !== e) && (w[e] = u(l.__proto__[e], s, [e])); + }), a = w; + } + } + + this._wall.send({ + type: "callback", + id: n, + args: [o, i, a, s] + }); + } + }]) && i(t.prototype, n), l && i(t, l), e; + }(); + + e.exports = m; + }, function (e, t, n) { + "use strict"; + + e.exports = n(15)() ? Symbol : n(16); + }, function (e, t, n) { + "use strict"; + + function r(e) { + return (r = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + e.exports = function () { + var e; + if ("function" != typeof Symbol) return !1; + e = Symbol("test symbol"); + + try { + String(e); + } catch (e) { + return !1; + } + + return "symbol" === r(typeof Symbol === "function" ? Symbol.iterator : "@@iterator") || "object" === r(typeof Symbol === "function" ? Symbol.isConcatSpreadable : "@@isConcatSpreadable") && "object" === r(typeof Symbol === "function" ? Symbol.iterator : "@@iterator") && "object" === r(typeof Symbol === "function" ? Symbol.toPrimitive : "@@toPrimitive") && "object" === r(typeof Symbol === "function" ? Symbol.toStringTag : "@@toStringTag") && "object" === r(typeof Symbol === "function" ? Symbol.unscopables : "@@unscopables"); + }; + }, function (e, t, n) { + "use strict"; + + var r, + o, + _i, + a = n(17), + s = n(30), + u = Object.create, + c = Object.defineProperties, + l = Object.defineProperty, + f = Object.prototype, + p = u(null); + + "function" == typeof Symbol && (r = Symbol); + var d, + h = (d = u(null), function (e) { + for (var t, n, r = 0; d[e + (r || "")];) { + ++r; + } + + return d[e += r || ""] = !0, l(f, t = "@@" + e, a.gs(null, function (e) { + n || (n = !0, l(this, t, a(e)), n = !1); + })), t; + }); + _i = function i(e) { + if (this instanceof _i) throw new TypeError("TypeError: Symbol is not a constructor"); + return o(e); + }, e.exports = o = function e(t) { + var n; + if (this instanceof e) throw new TypeError("TypeError: Symbol is not a constructor"); + return n = u(_i.prototype), t = void 0 === t ? "" : String(t), c(n, { + __description__: a("", t), + __name__: a("", h(t)) + }); + }, c(o, { + for: a(function (e) { + return p[e] ? p[e] : p[e] = o(String(e)); + }), + keyFor: a(function (e) { + var t; + + for (t in s(e), p) { + if (p[t] === e) return t; + } + }), + hasInstance: a("", r && r.hasInstance || o("hasInstance")), + isConcatSpreadable: a("", r && r.isConcatSpreadable || o("isConcatSpreadable")), + iterator: a("", r && r.iterator || o("iterator")), + match: a("", r && r.match || o("match")), + replace: a("", r && r.replace || o("replace")), + search: a("", r && r.search || o("search")), + species: a("", r && r.species || o("species")), + split: a("", r && r.split || o("split")), + toPrimitive: a("", r && r.toPrimitive || o("toPrimitive")), + toStringTag: a("", r && r.toStringTag || o("toStringTag")), + unscopables: a("", r && r.unscopables || o("unscopables")) + }), c(_i.prototype, { + constructor: a(o), + toString: a("", function () { + return this.__name__; + }) + }), c(o.prototype, { + toString: a(function () { + return "Symbol (" + s(this).__description__ + ")"; + }), + valueOf: a(function () { + return s(this); + }) + }), l(o.prototype, o.toPrimitive, a("", function () { + return s(this); + })), l(o.prototype, o.toStringTag, a("c", "Symbol")), l(_i.prototype, o.toStringTag, a("c", o.prototype[o.toStringTag])), l(_i.prototype, o.toPrimitive, a("c", o.prototype[o.toPrimitive])); + }, function (e, t, n) { + "use strict"; + + var r = n(18), + o = n(25), + i = n(26), + a = n(27); + + (e.exports = function (e, t) { + var n, i, s, u, c; + return arguments.length < 2 || "string" != typeof e ? (u = t, t = e, e = null) : u = arguments[2], null == e ? (n = s = !0, i = !1) : (n = a.call(e, "c"), i = a.call(e, "e"), s = a.call(e, "w")), c = { + value: t, + configurable: n, + enumerable: i, + writable: s + }, u ? r(o(u), c) : c; + }).gs = function (e, t, n) { + var s, u, c, l; + return "string" != typeof e ? (c = n, n = t, t = e, e = null) : c = arguments[3], null == t ? t = void 0 : i(t) ? null == n ? n = void 0 : i(n) || (c = n, n = void 0) : (c = t, t = n = void 0), null == e ? (s = !0, u = !1) : (s = a.call(e, "c"), u = a.call(e, "e")), l = { + get: t, + set: n, + configurable: s, + enumerable: u + }, c ? r(o(c), l) : l; + }; + }, function (e, t, n) { + "use strict"; + + e.exports = n(19)() ? Object.assign : n(20); + }, function (e, t, n) { + "use strict"; + + e.exports = function () { + var e, + t = Object.assign; + return "function" == typeof t && (t(e = { + foo: "raz" + }, { + bar: "dwa" + }, { + trzy: "trzy" + }), e.foo + e.bar + e.trzy === "razdwatrzy"); + }; + }, function (e, t, n) { + "use strict"; + + var r = n(21), + o = n(24), + i = Math.max; + + e.exports = function (e, t) { + var n, + a, + s, + u = i(arguments.length, 2); + + for (e = Object(o(e)), s = function s(r) { + try { + e[r] = t[r]; + } catch (e) { + n || (n = e); + } + }, a = 1; a < u; ++a) { + t = arguments[a], r(t).forEach(s); + } + + if (void 0 !== n) throw n; + return e; + }; + }, function (e, t, n) { + "use strict"; + + e.exports = n(22)() ? Object.keys : n(23); + }, function (e, t, n) { + "use strict"; + + e.exports = function () { + try { + return Object.keys("primitive"), !0; + } catch (e) { + return !1; + } + }; + }, function (e, t, n) { + "use strict"; + + var r = Object.keys; + + e.exports = function (e) { + return r(null == e ? e : Object(e)); + }; + }, function (e, t, n) { + "use strict"; + + e.exports = function (e) { + if (null == e) throw new TypeError("Cannot use null or undefined"); + return e; + }; + }, function (e, t, n) { + "use strict"; + + var r = Array.prototype.forEach, + o = Object.create; + + e.exports = function (e) { + var t = o(null); + return r.call(arguments, function (e) { + null != e && function (e, t) { + var n; + + for (n in e) { + t[n] = e[n]; + } + }(Object(e), t); + }), t; + }; + }, function (e, t, n) { + "use strict"; + + e.exports = function (e) { + return "function" == typeof e; + }; + }, function (e, t, n) { + "use strict"; + + e.exports = n(28)() ? String.prototype.contains : n(29); + }, function (e, t, n) { + "use strict"; + + var r = "razdwatrzy"; + + e.exports = function () { + return "function" == typeof r.contains && !0 === r.contains("dwa") && !1 === r.contains("foo"); + }; + }, function (e, t, n) { + "use strict"; + + var r = String.prototype.indexOf; + + e.exports = function (e) { + return r.call(this, e, arguments[1]) > -1; + }; + }, function (e, t, n) { + "use strict"; + + var r = n(31); + + e.exports = function (e) { + if (!r(e)) throw new TypeError(e + " is not a symbol"); + return e; + }; + }, function (e, t, n) { + "use strict"; + + function r(e) { + return (r = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + e.exports = function (e) { + return e && ("symbol" === r(e) || "Symbol" === e["@@toStringTag"]) || !1; + }; + }, function (e, t, n) { + "use strict"; + + var r = n(4); + + e.exports = function (e, t) { + t.forEach(function (t) { + var n = t.pop(), + o = t.reduce(function (e, t) { + return e ? e[t] : null; + }, e); + + if (o && o[n]) { + var i = {}; + i[r.name] = o[n].name, i[r.type] = o[n].type, i[r.meta] = o[n].meta, i[r.inspected] = !1, o[n] = i; + } + }); + }; + }, function (e, t, n) { + "use strict"; + + function r(e) { + return (r = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + var o = 2; + + function i(e, t, n, r) { + var o = {}; + return "array" !== e && "typed_array" !== e || (o.length = t.length), "iterator" !== e && "typed_array" !== e || (o.readOnly = !0), n.push(r), { + type: e, + meta: o, + name: t.constructor && "Object" !== t.constructor.name ? t.constructor.name : "" + }; + } + + e.exports = function e(t, n) { + var a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [], + s = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0, + u = function (e) { + if (!e) return null; + var t = r(e); + + if ("object" === t) { + if (e._reactFragment) return "react_fragment"; + if (Array.isArray(e)) return "array"; + if (ArrayBuffer.isView(e)) return e instanceof DataView ? "data_view" : "typed_array"; + if (e instanceof ArrayBuffer) return "array_buffer"; + if ("function" == typeof e[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]) return "iterator"; + if ("[object Date]" === Object.prototype.toString.call(e)) return "date"; + } + + return t; + }(t); + + switch (u) { + case "function": + return n.push(a), { + name: t.name, + type: "function" + }; + + case "string": + return t.length <= 500 ? t : t.slice(0, 500) + "..."; + + case "symbol": + return n.push(a), { + type: "symbol", + name: t.toString() + }; + + case "react_fragment": + return "A React Fragment"; + + case "array_buffer": + case "data_view": + return n.push(a), { + type: u, + name: "data_view" === u ? "DataView" : "ArrayBuffer", + meta: { + length: t.byteLength, + uninspectable: !0 + } + }; + + case "array": + return s > o ? i(u, t, n, a) : t.map(function (t, r) { + return e(t, n, a.concat([r]), s + 1); + }); + + case "typed_array": + case "iterator": + return i(u, t, n, a); + + case "date": + return n.push(a), { + name: t.toString(), + type: "date", + meta: { + uninspectable: !0 + } + }; + + case "object": + if (s > o || t.constructor && "function" == typeof t.constructor && "Object" !== t.constructor.name) return i(u, t, n, a); + var c = {}; + + for (var l in t) { + c[l] = e(t[l], n, a.concat([l]), s + 1); + } + + return c; + + default: + return t; + } + }; + }, function (e, t, n) { + "use strict"; + + var r, + o = n(35); + r = o.now ? function () { + return o.now(); + } : function () { + return Date.now(); + }, e.exports = r; + }, function (e, t, n) { + "use strict"; + + var r; + n(36).canUseDOM && (r = window.performance || window.msPerformance || window.webkitPerformance), e.exports = r || {}; + }, function (e, t, n) { + "use strict"; + + var r = !("undefined" == typeof window || !window.document || !window.document.createElement), + o = { + canUseDOM: r, + canUseWorkers: "undefined" != typeof Worker, + canUseEventListeners: r && !(!window.addEventListener && !window.attachEvent), + canUseViewport: r && !!window.screen, + isInWorker: !r + }; + e.exports = o; + }, function (e, t, n) { + "use strict"; + + function r(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); + } + } + + function o(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e; + } + + function i(e) { + return (i = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + var a = "object" === ("undefined" == typeof performance ? "undefined" : i(performance)) && "function" == typeof performance.now ? function () { + return performance.now(); + } : function () { + return Date.now(); + }, + s = function () { + function e(t) { + var n = this; + !function (e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); + }(this, e), o(this, "_committedNodes", new Set()), o(this, "_isRecording", !1), o(this, "_maxActualDuration", 0), o(this, "_recordingStartTime", 0), o(this, "_onIsRecording", function (e) { + n._committedNodes = new Set(), n._isRecording = e, n._recordingStartTime = e ? a() : 0, e && n._agent.emit("clearSnapshots"); + }), o(this, "_onMountOrUpdate", function (e) { + n._isRecording && void 0 !== e.actualDuration && (n._committedNodes.add(e.id), n._maxActualDuration = Math.max(n._maxActualDuration, e.actualDuration)); + }), o(this, "_onRootCommitted", function (e, t, r) { + n._isRecording && (n._takeCommitSnapshotForRoot(e, r), n._committedNodes = new Set(), n._maxActualDuration = 0); + }), o(this, "_onUnmount", function (e) { + n._committedNodes.delete(e); + }), this._agent = t, t.on("isRecording", this._onIsRecording), t.on("mount", this._onMountOrUpdate), t.on("rootCommitted", this._onRootCommitted), t.on("unmount", this._onUnmount), t.on("update", this._onMountOrUpdate); + } + + var t, n, i; + return t = e, (n = [{ + key: "_takeCommitSnapshotForRoot", + value: function value(e, t) { + var n = this, + r = { + memoizedInteractions: (null != t.memoizedInteractions ? Array.from(t.memoizedInteractions) : []).map(function (e) { + return { + name: e.name, + timestamp: e.timestamp - n._recordingStartTime + }; + }), + committedNodes: Array.from(this._committedNodes), + commitTime: a() - this._recordingStartTime, + duration: this._maxActualDuration, + root: e + }; + + this._agent.emit("storeSnapshot", r); + } + }]) && r(t.prototype, n), i && r(t, i), e; + }(); + + e.exports = { + init: function init(e) { + return new s(e); + } + }; + }, function (e, t, n) { + "use strict"; + + e.exports = function (e) { + if (!e.__REACT_DEVTOOLS_GLOBAL_HOOK__) { + var t = !1, + n = { + _renderers: {}, + helpers: {}, + checkDCE: function checkDCE(e) { + try { + Function.prototype.toString.call(e).indexOf("^_^") > -1 && (t = !0, setTimeout(function () { + throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://fb.me/react-perf-use-the-production-build"); + })); + } catch (e) {} + }, + inject: function inject(e) { + var r = Math.random().toString(16).slice(2); + n._renderers[r] = e; + var o = t ? "deadcode" : function (e) { + try { + if ("string" == typeof e.version) return e.bundleType > 0 ? "development" : "production"; + var t = Function.prototype.toString; + + if (e.Mount && e.Mount._renderNewRootComponent) { + var n = t.call(e.Mount._renderNewRootComponent); + return 0 !== n.indexOf("function") ? "production" : -1 !== n.indexOf("storedMeasure") ? "development" : -1 !== n.indexOf("should be a pure function") ? -1 !== n.indexOf("NODE_ENV") ? "development" : -1 !== n.indexOf("development") ? "development" : -1 !== n.indexOf("true") ? "development" : -1 !== n.indexOf("nextElement") || -1 !== n.indexOf("nextComponent") ? "unminified" : "development" : -1 !== n.indexOf("nextElement") || -1 !== n.indexOf("nextComponent") ? "unminified" : "outdated"; + } + } catch (e) {} + + return "production"; + }(e); + return n.emit("renderer", { + id: r, + renderer: e, + reactBuildType: o + }), r; + }, + _listeners: {}, + sub: function sub(e, t) { + return n.on(e, t), function () { + return n.off(e, t); + }; + }, + on: function on(e, t) { + n._listeners[e] || (n._listeners[e] = []), n._listeners[e].push(t); + }, + off: function off(e, t) { + if (n._listeners[e]) { + var r = n._listeners[e].indexOf(t); + + -1 !== r && n._listeners[e].splice(r, 1), n._listeners[e].length || (n._listeners[e] = null); + } + }, + emit: function emit(e, t) { + n._listeners[e] && n._listeners[e].map(function (e) { + return e(t); + }); + }, + supportsFiber: !0, + _fiberRoots: {}, + getFiberRoots: function getFiberRoots(e) { + var t = n._fiberRoots; + return t[e] || (t[e] = new Set()), t[e]; + }, + onCommitFiberUnmount: function onCommitFiberUnmount(e, t) { + n.helpers[e] && n.helpers[e].handleCommitFiberUnmount(t); + }, + onCommitFiberRoot: function onCommitFiberRoot(e, t) { + var r = n.getFiberRoots(e), + o = t.current, + i = r.has(t), + a = null == o.memoizedState || null == o.memoizedState.element; + i || a ? i && a && r.delete(t) : r.add(t), n.helpers[e] && n.helpers[e].handleCommitFiberRoot(t); + } + }; + Object.defineProperty(e, "__REACT_DEVTOOLS_GLOBAL_HOOK__", { + value: n + }); + } + }; + }, function (e, t, n) { + "use strict"; + + var r = n(40); + + e.exports = function (e, t) { + var n = [e.sub("renderer-attached", function (e) { + var n = e.id, + r = (e.renderer, e.helpers); + t.setReactInternals(n, r), r.walkTree(t.onMounted.bind(t, n), t.addRoot.bind(t, n)); + }), e.sub("mount", function (e) { + var n = e.renderer, + r = e.internalInstance, + o = e.data; + return t.onMounted(n, r, o); + }), e.sub("unmount", function (e) { + e.renderer; + var n = e.internalInstance; + return t.onUnmounted(n); + }), e.sub("update", function (e) { + e.renderer; + var n = e.internalInstance, + r = e.data; + return t.onUpdated(n, r); + }), e.sub("root", function (e) { + var n = e.renderer, + r = e.internalInstance; + return t.addRoot(n, r); + }), e.sub("rootCommitted", function (e) { + var n = e.renderer, + r = e.internalInstance, + o = e.data; + return t.rootCommitted(n, r, o); + }), e.sub("updateProfileTimes", function (e) { + e.renderer; + var n = e.internalInstance, + r = e.data; + return t.onUpdatedProfileTimes(n, r); + })]; + r(e) && (e.emit("react-devtools", t), e.reactDevtoolsAgent = t, t.on("shutdown", function () { + n.forEach(function (e) { + return e(); + }), e.reactDevtoolsAgent = null; + })); + }; + }, function (e, t, n) { + "use strict"; + + var r = n(41); + + e.exports = function (e) { + var t = window.React && window.React.__internals; + + for (var n in t && 0 === Object.keys(e._renderers).length && e.inject(t), e._renderers) { + e.helpers[n] = r(e, n, e._renderers[n]), e.emit("renderer-attached", { + id: n, + renderer: e._renderers[n], + helpers: e.helpers[n] + }); + } + + e.on("renderer", function (t) { + var n = t.id, + o = t.renderer; + e.helpers[n] = r(e, n, o), e.emit("renderer-attached", { + id: n, + renderer: o, + helpers: e.helpers[n] + }); + }); + return e.on("shutdown", function t() { + for (var n in e.helpers) { + e.helpers[n].cleanup(); + } + + e.off("shutdown", t); + }), !0; + }; + }, function (e, t, n) { + "use strict"; + + var r = n(42), + o = n(45), + i = n(46); + + function a(e, t, n) { + var i = n ? o(e) : r(e); + i.children && Array.isArray(i.children) && i.children.forEach(function (e) { + return a(e, t, n); + }), t(e, i); + } + + function s(e, t, n) { + var r = e[t]; + return e[t] = function (e) { + var t = r.apply(this, arguments); + return n(t), t; + }, r; + } + + function u(e, t, n) { + var r = e[t]; + return e[t] = function (e) { + var t = r.apply(this, arguments); + return n.apply(this, arguments), t; + }, r; + } + + function c(e, t) { + var n = {}; + + for (var r in t) { + n[r] = u(e, r, t[r]); + } + + return n; + } + + function l(e, t) { + for (var n in t) { + e[n] = t[n]; + } + } + + e.exports = function (e, t, n) { + var u, + f, + p, + d = new Map(), + h = {}, + m = !n.Reconciler; + return "function" == typeof n.findFiberByHostInstance ? i(e, t, n) : (n.Mount.findNodeHandle && n.Mount.nativeTagToRootNodeID ? (h.getNativeFromReactElement = function (e) { + return n.Mount.findNodeHandle(e); + }, h.getReactElementFromNative = function (e) { + var t = n.Mount.nativeTagToRootNodeID(e); + return d.get(t); + }) : n.ComponentTree ? (h.getNativeFromReactElement = function (e) { + return n.ComponentTree.getNodeFromInstance(e); + }, h.getReactElementFromNative = function (e) { + return n.ComponentTree.getClosestInstanceFromNode(e); + }) : n.Mount.getID && n.Mount.getNode ? (h.getNativeFromReactElement = function (e) { + try { + return n.Mount.getNode(e._rootNodeID); + } catch (e) { + return; + } + }, h.getReactElementFromNative = function (e) { + for (var t = n.Mount.getID(e); e && e.parentNode && !t;) { + e = e.parentNode, t = n.Mount.getID(e); + } + + return d.get(t); + }) : console.warn("Unknown react version (does not have getID), probably an unshimmed React Native"), n.Mount._renderNewRootComponent ? p = s(n.Mount, "_renderNewRootComponent", function (n) { + e.emit("root", { + renderer: t, + internalInstance: n + }); + }) : n.Mount.renderComponent && (f = s(n.Mount, "renderComponent", function (n) { + e.emit("root", { + renderer: t, + internalInstance: n._reactInternalInstance + }); + })), n.Component ? (console.error("You are using a version of React with limited support in this version of the devtools.\nPlease upgrade to use at least 0.13, or you can downgrade to use the old version of the devtools:\ninstructions here https://github.com/facebook/react-devtools/tree/devtools-next#how-do-i-use-this-for-react--013"), u = c(n.Component.Mixin, { + mountComponent: function mountComponent() { + var n = this; + d.set(this._rootNodeID, this), setTimeout(function () { + e.emit("mount", { + internalInstance: n, + data: o(n), + renderer: t + }); + }, 0); + }, + updateComponent: function updateComponent() { + var n = this; + setTimeout(function () { + e.emit("update", { + internalInstance: n, + data: o(n), + renderer: t + }); + }, 0); + }, + unmountComponent: function unmountComponent() { + e.emit("unmount", { + internalInstance: this, + renderer: t + }), d.delete(this._rootNodeID); + } + })) : n.Reconciler && (u = c(n.Reconciler, { + mountComponent: function mountComponent(n, o, i, a) { + var s = r(n); + d.set(n._rootNodeID, n), e.emit("mount", { + internalInstance: n, + data: s, + renderer: t + }); + }, + performUpdateIfNecessary: function performUpdateIfNecessary(n, o, i, a) { + e.emit("update", { + internalInstance: n, + data: r(n), + renderer: t + }); + }, + receiveComponent: function receiveComponent(n, o, i, a) { + e.emit("update", { + internalInstance: n, + data: r(n), + renderer: t + }); + }, + unmountComponent: function unmountComponent(n) { + e.emit("unmount", { + internalInstance: n, + renderer: t + }), d.delete(n._rootNodeID); + } + })), h.walkTree = function (e, t) { + !function (e, t, n, r) { + for (var o in e) { + a(e[o], t, r), n(e[o]); + } + }(n.Mount._instancesByReactRootID || n.Mount._instancesByContainerID, function (t, n) { + d.set(t._rootNodeID, t), e(t, n); + }, t, m); + }, h.cleanup = function () { + u && (n.Component ? l(n.Component.Mixin, u) : l(n.Reconciler, u)), p && (n.Mount._renderNewRootComponent = p), f && (n.Mount.renderComponent = f), u = null, p = null, f = null; + }, h.renderer = null, h); + }; + }, function (e, t, n) { + "use strict"; + + function r(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e; + } + + function o(e) { + return (o = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + var i = n(2), + a = n(5), + s = n(43); + + function u(e, t, n) { + var r = t.pop(), + o = t.reduce(function (e, t) { + return e ? e[t] : null; + }, e); + o && (o[r] = n); + } + + function c(e) { + var t = []; + + for (var n in e) { + t.push(e[n]); + } + + return t; + } + + e.exports = function (e) { + var t = null, + n = null, + l = null, + f = null, + p = null, + d = null, + h = null, + m = null, + y = null, + v = null, + g = null, + b = null, + _ = "Native"; + if ("object" !== o(e)) _ = "Text", g = e + "";else if (null === e._currentElement || !1 === e._currentElement) _ = "Empty";else if (e._renderedComponent) _ = "NativeWrapper", t = [e._renderedComponent], n = e._instance.props, l = e._instance.state, (f = e._instance.context) && 0 === Object.keys(f).length && (f = null);else if (e._renderedChildren) t = c(e._renderedChildren);else if (e._currentElement && e._currentElement.props) { + var w = e._currentElement.props.children, + S = []; + s(w, "", function (e, t) { + var n = o(t); + "string" !== n && "number" !== n || S.push(t); + }), t = S.length <= 1 ? S.length ? String(S[0]) : void 0 : S; + } + + if (!n && e._currentElement && e._currentElement.props && (n = e._currentElement.props), null != e._currentElement && (h = e._currentElement.type, e._currentElement.key && (m = String(e._currentElement.key)), v = e._currentElement._source, y = e._currentElement.ref, "string" == typeof h ? (d = h, null != e._nativeNode && (b = e._nativeNode), null != e._hostNode && (b = e._hostNode)) : "function" == typeof h ? (_ = "Composite", d = a(h), e._renderedComponent && (e._currentElement.props === e._renderedComponent._currentElement || e._currentElement.type.isReactTopLevelWrapper) && (_ = "Wrapper"), null === d && (d = "No display name")) : "string" == typeof e._stringText ? (_ = "Text", g = e._stringText) : d = a(h)), e._instance) { + var E = e._instance, + O = E.forceUpdate || E.updater && E.updater.enqueueForceUpdate && function (e) { + E.updater.enqueueForceUpdate(this, e, "forceUpdate"); + }; + + p = { + canUpdate: !0, + setState: E.setState && E.setState.bind(E), + setInProps: O && function (e, t, n, o) { + var a = e._currentElement; + e._currentElement = function (e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + o = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function (e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }))), o.forEach(function (t) { + r(e, t, n[t]); + }); + } + + return e; + }({}, a, { + props: i(a.props, n, o) + }), t.call(e._instance); + }.bind(null, e, O), + setInState: E.forceUpdate && function (e, t, n) { + u(e.state, t, n), e.forceUpdate(); + }.bind(null, E), + setInContext: O && function (e, t, n, r) { + u(e.context, n, r), t.call(e); + }.bind(null, E, O) + }, "function" == typeof h && (b = E), E._renderedChildren && (t = c(E._renderedChildren)); + } + + return "function" == typeof e.setNativeProps && (p = { + setNativeProps: function setNativeProps(t) { + e.setNativeProps(t); + } + }), { + nodeType: _, + type: h, + key: m, + ref: y, + source: v, + name: d, + props: n, + state: l, + context: f, + children: t, + text: g, + updater: p, + publicInstance: b + }; + }; + }, function (e, t, n) { + "use strict"; + + function r(e) { + return (r = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + var o = n(44), + i = ".", + a = ":", + s = "@@iterator", + u = "function" == typeof Symbol && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"), + c = "function" == typeof Symbol && (typeof Symbol === "function" ? Symbol.for : "@@for") && (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") || 60103; + + function l(e, t) { + return "object" === r(e) && null !== e && null != e.key ? (n = e.key, o = { + "=": "=0", + ":": "=2" + }, "$" + ("" + n).replace(/[=:]/g, function (e) { + return o[e]; + })) : t.toString(36); + var n, o; + } + + e.exports = function e(t, n, f, p) { + var d, + h = r(t); + if ("undefined" !== h && "boolean" !== h || (t = null), null === t || "string" === h || "number" === h || "object" === h && t.$$typeof === c) return f(p, t, "" === n ? i + l(t, 0) : n), 1; + var m = 0, + y = "" === n ? i : n + a; + if (Array.isArray(t)) for (var v = 0; v < t.length; v++) { + m += e(d = t[v], y + l(d, v), f, p); + } else { + var g = u && t[u] || t[s]; + if ("function" == typeof g) for (var b, _ = g.call(t), w = 0; !(b = _.next()).done;) { + m += e(d = b.value, y + l(d, w++), f, p); + } else if ("object" === h) { + var S = "" + t; + o(!1, "The React Devtools cannot render an object as a child. (found: %s).%s", "[object Object]" === S ? "object with keys {" + Object.keys(t).join(", ") + "}" : S, " If you meant to render a collection of children, use an array instead."); + } + } + return m; + }; + }, function (e, t, n) { + "use strict"; + + e.exports = function (e, t, n, r, o, i, a, s) { + if (!e) { + var u; + if (void 0 === t) u = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else { + var c = [n, r, o, i, a, s], + l = 0; + (u = new Error(t.replace(/%s/g, function () { + return c[l++]; + }))).name = "Invariant Violation"; + } + throw u.framesToPop = 1, u; + } + }; + }, function (e, t, n) { + "use strict"; + + var r = n(2); + + function o(e, t, n) { + var r = t.pop(), + o = t.reduce(function (e, t) { + return e ? e[t] : null; + }, e); + o && (o[r] = n); + } + + e.exports = function (e) { + var t = null, + n = e.props, + i = e.state, + a = e.context, + s = null, + u = null, + c = null, + l = null, + f = null, + p = null, + d = null, + h = "Native"; + return e._renderedComponent ? (h = "Wrapper", t = [e._renderedComponent], a && 0 === Object.keys(a).length && (a = null)) : e._renderedChildren ? (u = e.constructor.displayName, t = function (e) { + var t = []; + + for (var n in e) { + t.push(e[n]); + } + + return t; + }(e._renderedChildren)) : "string" == typeof n.children && (u = e.constructor.displayName, t = n.children, h = "Native"), !n && e._currentElement && e._currentElement.props && (n = e._currentElement.props), e._currentElement && (c = e._currentElement.type, e._currentElement.key && (l = String(e._currentElement.key)), f = e._currentElement.ref, "string" == typeof c ? u = c : (h = "Composite", (u = c.displayName) || (u = "No display name"))), u || (u = e.constructor.displayName || "No display name", h = "Composite"), "string" == typeof n && (h = "Text", p = n, n = null, u = null), e.forceUpdate && (s = { + canUpdate: !0, + setState: e.setState.bind(e), + setInProps: e.forceUpdate && function (e, t, n) { + e.props = r(e.props, t, n), e.forceUpdate(); + }.bind(null, e), + setInState: e.forceUpdate && function (e, t, n) { + o(e.state, t, n), e.forceUpdate(); + }.bind(null, e), + setInContext: e.forceUpdate && function (e, t, n) { + o(e.context, t, n), e.forceUpdate(); + }.bind(null, e) + }, d = e), { + nodeType: h, + type: c, + key: l, + ref: f, + source: null, + name: u, + props: n, + state: i, + context: a, + children: t, + text: p, + updater: s, + publicInstance: d + }; + }; + }, function (e, t, n) { + "use strict"; + + function r(e) { + return (r = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + var o = n(47), + i = n(2), + a = n(5); + + e.exports = function (e, t, n) { + var s, + u = n.overrideProps, + c = (s = n.version, { + ReactTypeOfWork: o.gte(s, "16.6.0-beta.0") ? { + ClassComponent: 1, + ContextConsumer: 9, + ContextProvider: 10, + CoroutineComponent: -1, + CoroutineHandlerPhase: -1, + ForwardRef: 11, + Fragment: 7, + FunctionComponent: 0, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostText: 6, + IncompleteClassComponent: 17, + IndeterminateComponent: 2, + LazyComponent: 16, + MemoComponent: 14, + Mode: 8, + Profiler: 12, + SimpleMemoComponent: 15, + SuspenseComponent: 13, + YieldComponent: -1 + } : o.gte(s, "16.4.3-alpha") ? { + ClassComponent: 2, + ContextConsumer: 11, + ContextProvider: 12, + CoroutineComponent: -1, + CoroutineHandlerPhase: -1, + ForwardRef: 13, + Fragment: 9, + FunctionComponent: 0, + HostComponent: 7, + HostPortal: 6, + HostRoot: 5, + HostText: 8, + IncompleteClassComponent: -1, + IndeterminateComponent: 4, + LazyComponent: -1, + MemoComponent: -1, + Mode: 10, + Profiler: 15, + SimpleMemoComponent: -1, + SuspenseComponent: 16, + YieldComponent: -1 + } : { + ClassComponent: 2, + ContextConsumer: 12, + ContextProvider: 13, + CoroutineComponent: 7, + CoroutineHandlerPhase: 8, + ForwardRef: 14, + Fragment: 10, + FunctionComponent: 1, + HostComponent: 5, + HostPortal: 4, + HostRoot: 3, + HostText: 6, + IncompleteClassComponent: -1, + IndeterminateComponent: 0, + LazyComponent: -1, + MemoComponent: -1, + Mode: 11, + Profiler: 15, + SimpleMemoComponent: -1, + SuspenseComponent: 16, + YieldComponent: 9 + }, + ReactSymbols: { + CONCURRENT_MODE_NUMBER: 60111, + CONCURRENT_MODE_SYMBOL_STRING: "Symbol(react.concurrent_mode)", + DEPRECATED_ASYNC_MODE_SYMBOL_STRING: "Symbol(react.async_mode)", + CONTEXT_CONSUMER_NUMBER: 60110, + CONTEXT_CONSUMER_SYMBOL_STRING: "Symbol(react.context)", + CONTEXT_PROVIDER_NUMBER: 60109, + CONTEXT_PROVIDER_SYMBOL_STRING: "Symbol(react.provider)", + FORWARD_REF_NUMBER: 60112, + FORWARD_REF_SYMBOL_STRING: "Symbol(react.forward_ref)", + MEMO_NUMBER: 60115, + MEMO_SYMBOL_STRING: "Symbol(react.memo)", + PROFILER_NUMBER: 60114, + PROFILER_SYMBOL_STRING: "Symbol(react.profiler)", + STRICT_MODE_NUMBER: 60108, + STRICT_MODE_SYMBOL_STRING: "Symbol(react.strict_mode)", + SUSPENSE_NUMBER: 60113, + SUSPENSE_SYMBOL_STRING: "Symbol(react.suspense)", + DEPRECATED_PLACEHOLDER_SYMBOL_STRING: "Symbol(react.placeholder)" + }, + ReactTypeOfSideEffect: { + PerformedWork: 1 + } + }), + l = c.ReactTypeOfWork, + f = c.ReactSymbols, + p = c.ReactTypeOfSideEffect.PerformedWork, + d = l.FunctionComponent, + h = l.ClassComponent, + m = l.ContextConsumer, + y = l.Fragment, + v = l.ForwardRef, + g = l.HostRoot, + b = l.HostPortal, + _ = l.HostComponent, + w = l.HostText, + S = l.IncompleteClassComponent, + E = l.IndeterminateComponent, + O = l.MemoComponent, + x = l.SimpleMemoComponent, + C = f.CONCURRENT_MODE_NUMBER, + I = f.CONCURRENT_MODE_SYMBOL_STRING, + N = f.DEPRECATED_ASYNC_MODE_SYMBOL_STRING, + T = f.CONTEXT_CONSUMER_NUMBER, + k = f.CONTEXT_CONSUMER_SYMBOL_STRING, + R = f.CONTEXT_PROVIDER_NUMBER, + j = f.CONTEXT_PROVIDER_SYMBOL_STRING, + M = f.PROFILER_NUMBER, + D = f.PROFILER_SYMBOL_STRING, + P = f.STRICT_MODE_NUMBER, + L = f.STRICT_MODE_SYMBOL_STRING, + A = f.SUSPENSE_NUMBER, + B = f.SUSPENSE_SYMBOL_STRING, + F = f.DEPRECATED_PLACEHOLDER_SYMBOL_STRING; + + function U(e) { + var t = e.elementType, + n = e.type, + o = e.key, + s = e.ref, + c = e.tag, + l = e._debugSource, + f = null, + p = null, + m = null, + U = null, + H = null, + $ = null, + G = null, + W = null, + q = null, + Y = null, + K = null, + X = null, + J = null, + Z = null, + Q = !1, + ee = (c === d || c === x || c === v) && !!e.memoizedState, + te = n; + + switch ("object" === r(n) && null !== n && "function" == typeof n.then && (te = n._reactResult), "function" == typeof u && ($ = { + canUpdate: !0, + setState: null, + setInProps: u.bind(null, e), + setInState: null, + setInContext: null + }), c) { + case h: + case d: + case S: + case E: + G = "Composite", W = a(te), f = e.stateNode, p = e.memoizedProps, m = e.memoizedState, null != f && (H = f.context) && 0 === Object.keys(H).length && (H = null); + var ne = f; + ne && ($ = { + canUpdate: !0, + setState: ne.setState && ne.setState.bind(ne), + setInProps: ne.forceUpdate && function (e, t, n) { + var r = e.stateNode; + e.pendingProps = i(r.props, t, n), e.alternate && (e.alternate.pendingProps = e.pendingProps), e.stateNode.forceUpdate(); + }.bind(null, e), + setInState: ne.forceUpdate && function (e, t, n) { + z(e.state, t, n), e.forceUpdate(); + }.bind(null, ne), + setInContext: ne.forceUpdate && function (e, t, n) { + z(e.context, t, n), e.forceUpdate(); + }.bind(null, ne) + }), U = []; + break; + + case v: + var re = a(te.render, ""); + G = "Special", W = te.displayName || ("" !== re ? "ForwardRef(".concat(re, ")") : "ForwardRef"), p = e.memoizedProps, m = e.memoizedState, U = []; + break; + + case g: + G = "Wrapper", U = [], K = e.stateNode.memoizedInteractions; + break; + + case b: + G = "Portal", W = "ReactPortal", p = { + target: e.stateNode.containerInfo + }, U = []; + break; + + case _: + G = "Native", W = (W = e.type).replace("topsecret-", ""), f = e.stateNode, U = "string" == typeof (p = e.memoizedProps).children || "number" == typeof p.children ? p.children.toString() : [], "function" == typeof e.stateNode.setNativeProps && ($ = { + setNativeProps: function setNativeProps(t) { + e.stateNode.setNativeProps(t); + } + }); + break; + + case w: + G = "Text", q = e.memoizedProps; + break; + + case y: + G = "Wrapper", U = []; + break; + + case O: + case x: + if (G = "Composite", t.displayName) W = t.displayName;else { + var oe = n.displayName || n.name; + W = oe ? "Memo(".concat(oe, ")") : "Memo"; + } + p = e.memoizedProps, m = e.memoizedState, U = []; + break; + + default: + var ie = "object" === r(n) && null !== n ? n.$$typeof : n; + + switch ("symbol" === r(ie) ? ie.toString() : ie) { + case C: + case I: + case N: + G = "Special", W = "ConcurrentMode", U = []; + break; + + case R: + case j: + G = "Special", p = e.memoizedProps, Y = e.type._context || e.type.context, W = "".concat(Y.displayName || "Context", ".Provider"), U = []; + break; + + case T: + case k: + G = "Special", p = e.memoizedProps, Y = e.type._context || e.type, W = "".concat(Y.displayName || "Context", ".Consumer"), U = []; + break; + + case P: + case L: + G = "Special", W = "StrictMode", U = []; + break; + + case A: + case B: + case F: + G = "Special", W = "Suspense", p = e.memoizedProps, U = [], Q = null !== e.memoizedState; + break; + + case M: + case D: + G = "Special", p = e.memoizedProps, W = "Profiler(".concat(e.memoizedProps.id, ")"), U = []; + break; + + default: + G = "Native", p = e.memoizedProps, W = "TODO_NOT_IMPLEMENTED_YET", U = []; + } + + } + + if (null !== p && void 0 !== r(e.elementType) && e.type !== e.elementType && (p = function (e, t) { + if (e && e.defaultProps) { + var n = _extends({}, t), + r = e.defaultProps; + + for (var o in r) { + void 0 === n[o] && (n[o] = r[o]); + } + + return n; + } + + return t; + }(e.type, p)), Array.isArray(U)) if (Q) { + var ae = e.child, + se = ae.child, + ue = ae.sibling.child; + U.push(se), U.push(ue); + } else for (var ce = e.child; ce;) { + U.push(V(ce)), ce = ce.sibling; + } + return void 0 !== e.actualDuration && (X = e.actualDuration, J = e.actualStartTime, Z = e.treeBaseDuration), { + nodeType: G, + type: n, + key: o, + ref: s, + source: l, + name: W, + props: p, + state: m, + context: H, + children: U, + text: q, + updater: $, + publicInstance: f, + memoizedInteractions: K, + actualDuration: X, + actualStartTime: J, + treeBaseDuration: Z, + containsHooks: ee + }; + } + + function z(e, t, n) { + var r = t.pop(), + o = t.reduce(function (e, t) { + return e ? e[t] : null; + }, e); + o && (o[r] = n); + } + + var H = new Set(); + + function V(e) { + if (H.has(e)) return e; + var t = e.alternate; + return null != t && H.has(t) ? t : (H.add(e), e); + } + + var $ = []; + + function G() { + var t = $; + $ = []; + + for (var n = 0; n < t.length; n++) { + var r = t[n]; + e.emit(r.type, r); + } + } + + function W(e) { + $.push({ + internalInstance: V(e), + data: U(e), + renderer: t, + type: "mount" + }), e.tag === g && $.push({ + internalInstance: V(e), + renderer: t, + type: "root" + }); + } + + function q(e, n) { + var r, + o, + i = U(e); + if (!n && !function (e, t) { + switch (t.tag) { + case h: + case d: + case m: + case O: + case x: + return (t.effectTag & p) === p; + + default: + return e.memoizedProps !== t.memoizedProps || e.memoizedState !== t.memoizedState || e.ref !== t.ref; + } + }(e.alternate, e)) return r = e.alternate, o = e, void (void 0 === r.actualDuration || r.actualDuration === o.actualDuration && r.actualStartTime === o.actualStartTime && r.treeBaseDuration === o.treeBaseDuration || $.push({ + internalInstance: V(e), + data: i, + renderer: t, + type: "updateProfileTimes" + })); + $.push({ + internalInstance: V(e), + data: i, + renderer: t, + type: "update" + }); + } + + function Y(e) { + var n = e.tag === g, + r = V(e), + o = { + internalInstance: r, + renderer: t, + type: "unmount" + }; + n ? $.push(o) : $.unshift(o), H.delete(r); + } + + function K(e) { + $.push({ + internalInstance: V(e), + data: U(e), + renderer: t, + type: "rootCommitted" + }); + } + + function X(e) { + var t = e; + + e: for (;;) { + if (t.child) t.child.return = t, t = t.child;else { + if (W(t), t == e) return; + + if (!t.sibling) { + for (; t.return;) { + if (W(t = t.return), t == e) return; + + if (t.sibling) { + t.sibling.return = t.return, t = t.sibling; + continue e; + } + } + + return; + } + + t.sibling.return = t.return, t = t.sibling; + } + } + } + + return { + getNativeFromReactElement: function getNativeFromReactElement(e) { + try { + var t = e; + return n.findHostInstanceByFiber(t); + } catch (e) { + return null; + } + }, + getReactElementFromNative: function getReactElementFromNative(e) { + var t = n.findFiberByHostInstance(e); + return null != t ? V(t) : null; + }, + handleCommitFiberRoot: function handleCommitFiberRoot(e) { + var t = e.current, + n = t.alternate; + + if (n) { + var r = null != n.memoizedState && null != n.memoizedState.element, + o = null != t.memoizedState && null != t.memoizedState.element; + !r && o ? X(t) : r && o ? function e(t, n) { + if (t.tag === l.SuspenseComponent && null !== t.memoizedState) { + var r = t.child.sibling.child; + r.alternate ? e(r, r.alternate) : X(r), q(t, !1); + } else { + var o = !1; + + if (t.child !== n.child) { + for (var i = t.child, a = n.child; i;) { + if (i.alternate) { + var s = i.alternate; + e(i, s), o || s === a || (o = !0); + } else X(i), o || (o = !0); + + i = i.sibling, o || null == a || (a = a.sibling); + } + + o || null == a || (o = !0); + } + + q(t, o); + } + }(t, n) : r && !o && Y(t); + } else X(t); + + K(t), G(); + }, + handleCommitFiberUnmount: function handleCommitFiberUnmount(e) { + Y(e); + }, + cleanup: function cleanup() {}, + walkTree: function walkTree() { + e.getFiberRoots(t).forEach(function (e) { + X(e.current), K(e.current); + }), G(); + }, + renderer: n + }; + }; + }, function (e, t, n) { + (function (n) { + function r(e) { + return (r = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + var o; + t = e.exports = K, o = "object" === (void 0 === n ? "undefined" : r(n)) && n.env && n.env.NODE_DEBUG && /\bsemver\b/i.test(n.env.NODE_DEBUG) ? function () { + var e = Array.prototype.slice.call(arguments, 0); + e.unshift("SEMVER"), console.log.apply(console, e); + } : function () {}, t.SEMVER_SPEC_VERSION = "2.0.0"; + var i = 256, + a = Number.MAX_SAFE_INTEGER || 9007199254740991, + s = t.re = [], + u = t.src = [], + c = 0, + l = c++; + u[l] = "0|[1-9]\\d*"; + var f = c++; + u[f] = "[0-9]+"; + var p = c++; + u[p] = "\\d*[a-zA-Z-][a-zA-Z0-9-]*"; + var d = c++; + u[d] = "(" + u[l] + ")\\.(" + u[l] + ")\\.(" + u[l] + ")"; + var h = c++; + u[h] = "(" + u[f] + ")\\.(" + u[f] + ")\\.(" + u[f] + ")"; + var m = c++; + u[m] = "(?:" + u[l] + "|" + u[p] + ")"; + var y = c++; + u[y] = "(?:" + u[f] + "|" + u[p] + ")"; + var v = c++; + u[v] = "(?:-(" + u[m] + "(?:\\." + u[m] + ")*))"; + var g = c++; + u[g] = "(?:-?(" + u[y] + "(?:\\." + u[y] + ")*))"; + var b = c++; + u[b] = "[0-9A-Za-z-]+"; + + var _ = c++; + + u[_] = "(?:\\+(" + u[b] + "(?:\\." + u[b] + ")*))"; + var w = c++, + S = "v?" + u[d] + u[v] + "?" + u[_] + "?"; + u[w] = "^" + S + "$"; + var E = "[v=\\s]*" + u[h] + u[g] + "?" + u[_] + "?", + O = c++; + u[O] = "^" + E + "$"; + var x = c++; + u[x] = "((?:<|>)?=?)"; + var C = c++; + u[C] = u[f] + "|x|X|\\*"; + var I = c++; + u[I] = u[l] + "|x|X|\\*"; + var N = c++; + u[N] = "[v=\\s]*(" + u[I] + ")(?:\\.(" + u[I] + ")(?:\\.(" + u[I] + ")(?:" + u[v] + ")?" + u[_] + "?)?)?"; + var T = c++; + u[T] = "[v=\\s]*(" + u[C] + ")(?:\\.(" + u[C] + ")(?:\\.(" + u[C] + ")(?:" + u[g] + ")?" + u[_] + "?)?)?"; + var k = c++; + u[k] = "^" + u[x] + "\\s*" + u[N] + "$"; + var R = c++; + u[R] = "^" + u[x] + "\\s*" + u[T] + "$"; + var j = c++; + u[j] = "(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])"; + var M = c++; + u[M] = "(?:~>?)"; + var D = c++; + u[D] = "(\\s*)" + u[M] + "\\s+", s[D] = new RegExp(u[D], "g"); + var P = c++; + u[P] = "^" + u[M] + u[N] + "$"; + var L = c++; + u[L] = "^" + u[M] + u[T] + "$"; + var A = c++; + u[A] = "(?:\\^)"; + var B = c++; + u[B] = "(\\s*)" + u[A] + "\\s+", s[B] = new RegExp(u[B], "g"); + var F = c++; + u[F] = "^" + u[A] + u[N] + "$"; + var U = c++; + u[U] = "^" + u[A] + u[T] + "$"; + var z = c++; + u[z] = "^" + u[x] + "\\s*(" + E + ")$|^$"; + var H = c++; + u[H] = "^" + u[x] + "\\s*(" + S + ")$|^$"; + var V = c++; + u[V] = "(\\s*)" + u[x] + "\\s*(" + E + "|" + u[N] + ")", s[V] = new RegExp(u[V], "g"); + var $ = c++; + u[$] = "^\\s*(" + u[N] + ")\\s+-\\s+(" + u[N] + ")\\s*$"; + var G = c++; + u[G] = "^\\s*(" + u[T] + ")\\s+-\\s+(" + u[T] + ")\\s*$"; + var W = c++; + u[W] = "(<|>)?=?\\s*\\*"; + + for (var q = 0; q < 35; q++) { + o(q, u[q]), s[q] || (s[q] = new RegExp(u[q])); + } + + function Y(e, t) { + if (e instanceof K) return e; + if ("string" != typeof e) return null; + if (e.length > i) return null; + if (!(t ? s[O] : s[w]).test(e)) return null; + + try { + return new K(e, t); + } catch (e) { + return null; + } + } + + function K(e, t) { + if (e instanceof K) { + if (e.loose === t) return e; + e = e.version; + } else if ("string" != typeof e) throw new TypeError("Invalid Version: " + e); + + if (e.length > i) throw new TypeError("version is longer than " + i + " characters"); + if (!(this instanceof K)) return new K(e, t); + o("SemVer", e, t), this.loose = t; + var n = e.trim().match(t ? s[O] : s[w]); + if (!n) throw new TypeError("Invalid Version: " + e); + if (this.raw = e, this.major = +n[1], this.minor = +n[2], this.patch = +n[3], this.major > a || this.major < 0) throw new TypeError("Invalid major version"); + if (this.minor > a || this.minor < 0) throw new TypeError("Invalid minor version"); + if (this.patch > a || this.patch < 0) throw new TypeError("Invalid patch version"); + n[4] ? this.prerelease = n[4].split(".").map(function (e) { + if (/^[0-9]+$/.test(e)) { + var t = +e; + if (t >= 0 && t < a) return t; + } + + return e; + }) : this.prerelease = [], this.build = n[5] ? n[5].split(".") : [], this.format(); + } + + t.parse = Y, t.valid = function (e, t) { + var n = Y(e, t); + return n ? n.version : null; + }, t.clean = function (e, t) { + var n = Y(e.trim().replace(/^[=v]+/, ""), t); + return n ? n.version : null; + }, t.SemVer = K, K.prototype.format = function () { + return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version; + }, K.prototype.toString = function () { + return this.version; + }, K.prototype.compare = function (e) { + return o("SemVer.compare", this.version, this.loose, e), e instanceof K || (e = new K(e, this.loose)), this.compareMain(e) || this.comparePre(e); + }, K.prototype.compareMain = function (e) { + return e instanceof K || (e = new K(e, this.loose)), J(this.major, e.major) || J(this.minor, e.minor) || J(this.patch, e.patch); + }, K.prototype.comparePre = function (e) { + if (e instanceof K || (e = new K(e, this.loose)), this.prerelease.length && !e.prerelease.length) return -1; + if (!this.prerelease.length && e.prerelease.length) return 1; + if (!this.prerelease.length && !e.prerelease.length) return 0; + var t = 0; + + do { + var n = this.prerelease[t], + r = e.prerelease[t]; + if (o("prerelease compare", t, n, r), void 0 === n && void 0 === r) return 0; + if (void 0 === r) return 1; + if (void 0 === n) return -1; + if (n !== r) return J(n, r); + } while (++t); + }, K.prototype.inc = function (e, t) { + switch (e) { + case "premajor": + this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", t); + break; + + case "preminor": + this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", t); + break; + + case "prepatch": + this.prerelease.length = 0, this.inc("patch", t), this.inc("pre", t); + break; + + case "prerelease": + 0 === this.prerelease.length && this.inc("patch", t), this.inc("pre", t); + break; + + case "major": + 0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++, this.minor = 0, this.patch = 0, this.prerelease = []; + break; + + case "minor": + 0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0, this.prerelease = []; + break; + + case "patch": + 0 === this.prerelease.length && this.patch++, this.prerelease = []; + break; + + case "pre": + if (0 === this.prerelease.length) this.prerelease = [0];else { + for (var n = this.prerelease.length; --n >= 0;) { + "number" == typeof this.prerelease[n] && (this.prerelease[n]++, n = -2); + } + + -1 === n && this.prerelease.push(0); + } + t && (this.prerelease[0] === t ? isNaN(this.prerelease[1]) && (this.prerelease = [t, 0]) : this.prerelease = [t, 0]); + break; + + default: + throw new Error("invalid increment argument: " + e); + } + + return this.format(), this.raw = this.version, this; + }, t.inc = function (e, t, n, r) { + "string" == typeof n && (r = n, n = void 0); + + try { + return new K(e, n).inc(t, r).version; + } catch (e) { + return null; + } + }, t.diff = function (e, t) { + if (te(e, t)) return null; + var n = Y(e), + r = Y(t); + + if (n.prerelease.length || r.prerelease.length) { + for (var o in n) { + if (("major" === o || "minor" === o || "patch" === o) && n[o] !== r[o]) return "pre" + o; + } + + return "prerelease"; + } + + for (var o in n) { + if (("major" === o || "minor" === o || "patch" === o) && n[o] !== r[o]) return o; + } + }, t.compareIdentifiers = J; + var X = /^[0-9]+$/; + + function J(e, t) { + var n = X.test(e), + r = X.test(t); + return n && r && (e = +e, t = +t), n && !r ? -1 : r && !n ? 1 : e < t ? -1 : e > t ? 1 : 0; + } + + function Z(e, t, n) { + return new K(e, n).compare(new K(t, n)); + } + + function Q(e, t, n) { + return Z(e, t, n) > 0; + } + + function ee(e, t, n) { + return Z(e, t, n) < 0; + } + + function te(e, t, n) { + return 0 === Z(e, t, n); + } + + function ne(e, t, n) { + return 0 !== Z(e, t, n); + } + + function re(e, t, n) { + return Z(e, t, n) >= 0; + } + + function oe(e, t, n) { + return Z(e, t, n) <= 0; + } + + function ie(e, t, n, o) { + var i; + + switch (t) { + case "===": + "object" === r(e) && (e = e.version), "object" === r(n) && (n = n.version), i = e === n; + break; + + case "!==": + "object" === r(e) && (e = e.version), "object" === r(n) && (n = n.version), i = e !== n; + break; + + case "": + case "=": + case "==": + i = te(e, n, o); + break; + + case "!=": + i = ne(e, n, o); + break; + + case ">": + i = Q(e, n, o); + break; + + case ">=": + i = re(e, n, o); + break; + + case "<": + i = ee(e, n, o); + break; + + case "<=": + i = oe(e, n, o); + break; + + default: + throw new TypeError("Invalid operator: " + t); + } + + return i; + } + + function ae(e, t) { + if (e instanceof ae) { + if (e.loose === t) return e; + e = e.value; + } + + if (!(this instanceof ae)) return new ae(e, t); + o("comparator", e, t), this.loose = t, this.parse(e), this.semver === se ? this.value = "" : this.value = this.operator + this.semver.version, o("comp", this); + } + + t.rcompareIdentifiers = function (e, t) { + return J(t, e); + }, t.major = function (e, t) { + return new K(e, t).major; + }, t.minor = function (e, t) { + return new K(e, t).minor; + }, t.patch = function (e, t) { + return new K(e, t).patch; + }, t.compare = Z, t.compareLoose = function (e, t) { + return Z(e, t, !0); + }, t.rcompare = function (e, t, n) { + return Z(t, e, n); + }, t.sort = function (e, n) { + return e.sort(function (e, r) { + return t.compare(e, r, n); + }); + }, t.rsort = function (e, n) { + return e.sort(function (e, r) { + return t.rcompare(e, r, n); + }); + }, t.gt = Q, t.lt = ee, t.eq = te, t.neq = ne, t.gte = re, t.lte = oe, t.cmp = ie, t.Comparator = ae; + var se = {}; + + function ue(e, t) { + if (e instanceof ue) return e.loose === t ? e : new ue(e.raw, t); + if (e instanceof ae) return new ue(e.value, t); + if (!(this instanceof ue)) return new ue(e, t); + if (this.loose = t, this.raw = e, this.set = e.split(/\s*\|\|\s*/).map(function (e) { + return this.parseRange(e.trim()); + }, this).filter(function (e) { + return e.length; + }), !this.set.length) throw new TypeError("Invalid SemVer Range: " + e); + this.format(); + } + + function ce(e) { + return !e || "x" === e.toLowerCase() || "*" === e; + } + + function le(e, t, n, r, o, i, a, s, u, c, l, f, p) { + return ((t = ce(n) ? "" : ce(r) ? ">=" + n + ".0.0" : ce(o) ? ">=" + n + "." + r + ".0" : ">=" + t) + " " + (s = ce(u) ? "" : ce(c) ? "<" + (+u + 1) + ".0.0" : ce(l) ? "<" + u + "." + (+c + 1) + ".0" : f ? "<=" + u + "." + c + "." + l + "-" + f : "<=" + s)).trim(); + } + + function fe(e, t) { + for (var n = 0; n < e.length; n++) { + if (!e[n].test(t)) return !1; + } + + if (t.prerelease.length) { + for (n = 0; n < e.length; n++) { + if (o(e[n].semver), e[n].semver !== se && e[n].semver.prerelease.length > 0) { + var r = e[n].semver; + if (r.major === t.major && r.minor === t.minor && r.patch === t.patch) return !0; + } + } + + return !1; + } + + return !0; + } + + function pe(e, t, n) { + try { + t = new ue(t, n); + } catch (e) { + return !1; + } + + return t.test(e); + } + + function de(e, t, n, r) { + var o, i, a, s, u; + + switch (e = new K(e, r), t = new ue(t, r), n) { + case ">": + o = Q, i = oe, a = ee, s = ">", u = ">="; + break; + + case "<": + o = ee, i = re, a = Q, s = "<", u = "<="; + break; + + default: + throw new TypeError('Must provide a hilo val of "<" or ">"'); + } + + if (pe(e, t, r)) return !1; + + for (var c = 0; c < t.set.length; ++c) { + var l = t.set[c], + f = null, + p = null; + if (l.forEach(function (e) { + e.semver === se && (e = new ae(">=0.0.0")), f = f || e, p = p || e, o(e.semver, f.semver, r) ? f = e : a(e.semver, p.semver, r) && (p = e); + }), f.operator === s || f.operator === u) return !1; + if ((!p.operator || p.operator === s) && i(e, p.semver)) return !1; + if (p.operator === u && a(e, p.semver)) return !1; + } + + return !0; + } + + ae.prototype.parse = function (e) { + var t = this.loose ? s[z] : s[H], + n = e.match(t); + if (!n) throw new TypeError("Invalid comparator: " + e); + this.operator = n[1], "=" === this.operator && (this.operator = ""), n[2] ? this.semver = new K(n[2], this.loose) : this.semver = se; + }, ae.prototype.toString = function () { + return this.value; + }, ae.prototype.test = function (e) { + return o("Comparator.test", e, this.loose), this.semver === se || ("string" == typeof e && (e = new K(e, this.loose)), ie(e, this.operator, this.semver, this.loose)); + }, ae.prototype.intersects = function (e, t) { + if (!(e instanceof ae)) throw new TypeError("a Comparator is required"); + var n; + if ("" === this.operator) return n = new ue(e.value, t), pe(this.value, n, t); + if ("" === e.operator) return n = new ue(this.value, t), pe(e.semver, n, t); + var r = !(">=" !== this.operator && ">" !== this.operator || ">=" !== e.operator && ">" !== e.operator), + o = !("<=" !== this.operator && "<" !== this.operator || "<=" !== e.operator && "<" !== e.operator), + i = this.semver.version === e.semver.version, + a = !(">=" !== this.operator && "<=" !== this.operator || ">=" !== e.operator && "<=" !== e.operator), + s = ie(this.semver, "<", e.semver, t) && (">=" === this.operator || ">" === this.operator) && ("<=" === e.operator || "<" === e.operator), + u = ie(this.semver, ">", e.semver, t) && ("<=" === this.operator || "<" === this.operator) && (">=" === e.operator || ">" === e.operator); + return r || o || i && a || s || u; + }, t.Range = ue, ue.prototype.format = function () { + return this.range = this.set.map(function (e) { + return e.join(" ").trim(); + }).join("||").trim(), this.range; + }, ue.prototype.toString = function () { + return this.range; + }, ue.prototype.parseRange = function (e) { + var t = this.loose; + e = e.trim(), o("range", e, t); + var n = t ? s[G] : s[$]; + e = e.replace(n, le), o("hyphen replace", e), e = e.replace(s[V], "$1$2$3"), o("comparator trim", e, s[V]), e = (e = (e = e.replace(s[D], "$1~")).replace(s[B], "$1^")).split(/\s+/).join(" "); + var r = t ? s[z] : s[H], + i = e.split(" ").map(function (e) { + return function (e, t) { + return o("comp", e), e = function (e, t) { + return e.trim().split(/\s+/).map(function (e) { + return function (e, t) { + o("caret", e, t); + var n = t ? s[U] : s[F]; + return e.replace(n, function (t, n, r, i, a) { + var s; + return o("caret", e, t, n, r, i, a), ce(n) ? s = "" : ce(r) ? s = ">=" + n + ".0.0 <" + (+n + 1) + ".0.0" : ce(i) ? s = "0" === n ? ">=" + n + "." + r + ".0 <" + n + "." + (+r + 1) + ".0" : ">=" + n + "." + r + ".0 <" + (+n + 1) + ".0.0" : a ? (o("replaceCaret pr", a), "-" !== a.charAt(0) && (a = "-" + a), s = "0" === n ? "0" === r ? ">=" + n + "." + r + "." + i + a + " <" + n + "." + r + "." + (+i + 1) : ">=" + n + "." + r + "." + i + a + " <" + n + "." + (+r + 1) + ".0" : ">=" + n + "." + r + "." + i + a + " <" + (+n + 1) + ".0.0") : (o("no pr"), s = "0" === n ? "0" === r ? ">=" + n + "." + r + "." + i + " <" + n + "." + r + "." + (+i + 1) : ">=" + n + "." + r + "." + i + " <" + n + "." + (+r + 1) + ".0" : ">=" + n + "." + r + "." + i + " <" + (+n + 1) + ".0.0"), o("caret return", s), s; + }); + }(e, t); + }).join(" "); + }(e, t), o("caret", e), e = function (e, t) { + return e.trim().split(/\s+/).map(function (e) { + return function (e, t) { + var n = t ? s[L] : s[P]; + return e.replace(n, function (t, n, r, i, a) { + var s; + return o("tilde", e, t, n, r, i, a), ce(n) ? s = "" : ce(r) ? s = ">=" + n + ".0.0 <" + (+n + 1) + ".0.0" : ce(i) ? s = ">=" + n + "." + r + ".0 <" + n + "." + (+r + 1) + ".0" : a ? (o("replaceTilde pr", a), "-" !== a.charAt(0) && (a = "-" + a), s = ">=" + n + "." + r + "." + i + a + " <" + n + "." + (+r + 1) + ".0") : s = ">=" + n + "." + r + "." + i + " <" + n + "." + (+r + 1) + ".0", o("tilde return", s), s; + }); + }(e, t); + }).join(" "); + }(e, t), o("tildes", e), e = function (e, t) { + return o("replaceXRanges", e, t), e.split(/\s+/).map(function (e) { + return function (e, t) { + e = e.trim(); + var n = t ? s[R] : s[k]; + return e.replace(n, function (t, n, r, i, a, s) { + o("xRange", e, t, n, r, i, a, s); + var u = ce(r), + c = u || ce(i), + l = c || ce(a), + f = l; + return "=" === n && f && (n = ""), u ? t = ">" === n || "<" === n ? "<0.0.0" : "*" : n && f ? (c && (i = 0), l && (a = 0), ">" === n ? (n = ">=", c ? (r = +r + 1, i = 0, a = 0) : l && (i = +i + 1, a = 0)) : "<=" === n && (n = "<", c ? r = +r + 1 : i = +i + 1), t = n + r + "." + i + "." + a) : c ? t = ">=" + r + ".0.0 <" + (+r + 1) + ".0.0" : l && (t = ">=" + r + "." + i + ".0 <" + r + "." + (+i + 1) + ".0"), o("xRange return", t), t; + }); + }(e, t); + }).join(" "); + }(e, t), o("xrange", e), e = function (e, t) { + return o("replaceStars", e, t), e.trim().replace(s[W], ""); + }(e, t), o("stars", e), e; + }(e, t); + }).join(" ").split(/\s+/); + return this.loose && (i = i.filter(function (e) { + return !!e.match(r); + })), i = i.map(function (e) { + return new ae(e, t); + }); + }, ue.prototype.intersects = function (e, t) { + if (!(e instanceof ue)) throw new TypeError("a Range is required"); + return this.set.some(function (n) { + return n.every(function (n) { + return e.set.some(function (e) { + return e.every(function (e) { + return n.intersects(e, t); + }); + }); + }); + }); + }, t.toComparators = function (e, t) { + return new ue(e, t).set.map(function (e) { + return e.map(function (e) { + return e.value; + }).join(" ").trim().split(" "); + }); + }, ue.prototype.test = function (e) { + if (!e) return !1; + "string" == typeof e && (e = new K(e, this.loose)); + + for (var t = 0; t < this.set.length; t++) { + if (fe(this.set[t], e)) return !0; + } + + return !1; + }, t.satisfies = pe, t.maxSatisfying = function (e, t, n) { + var r = null, + o = null; + + try { + var i = new ue(t, n); + } catch (e) { + return null; + } + + return e.forEach(function (e) { + i.test(e) && (r && -1 !== o.compare(e) || (o = new K(r = e, n))); + }), r; + }, t.minSatisfying = function (e, t, n) { + var r = null, + o = null; + + try { + var i = new ue(t, n); + } catch (e) { + return null; + } + + return e.forEach(function (e) { + i.test(e) && (r && 1 !== o.compare(e) || (o = new K(r = e, n))); + }), r; + }, t.validRange = function (e, t) { + try { + return new ue(e, t).range || "*"; + } catch (e) { + return null; + } + }, t.ltr = function (e, t, n) { + return de(e, t, "<", n); + }, t.gtr = function (e, t, n) { + return de(e, t, ">", n); + }, t.outside = de, t.prerelease = function (e, t) { + var n = Y(e, t); + return n && n.prerelease.length ? n.prerelease : null; + }, t.intersects = function (e, t, n) { + return e = new ue(e, n), t = new ue(t, n), e.intersects(t); + }, t.coerce = function (e) { + if (e instanceof K) return e; + if ("string" != typeof e) return null; + var t = e.match(s[j]); + return null == t ? null : Y((t[1] || "0") + "." + (t[2] || "0") + "." + (t[3] || "0")); + }; + }).call(this, n(6)); + }, function (e, t, n) { + "use strict"; + + (function (t) { + /*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ + function r(e) { + return (r = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + function o(e, t) { + if (e === t) return 0; + + for (var n = e.length, r = t.length, o = 0, i = Math.min(n, r); o < i; ++o) { + if (e[o] !== t[o]) { + n = e[o], r = t[o]; + break; + } + } + + return n < r ? -1 : r < n ? 1 : 0; + } + + function i(e) { + return t.Buffer && "function" == typeof t.Buffer.isBuffer ? t.Buffer.isBuffer(e) : !(null == e || !e._isBuffer); + } + + var a = n(49), + s = Object.prototype.hasOwnProperty, + u = Array.prototype.slice, + c = "foo" === function () {}.name; + + function l(e) { + return Object.prototype.toString.call(e); + } + + function f(e) { + return !i(e) && "function" == typeof t.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(e) : !!e && (e instanceof DataView || !!(e.buffer && e.buffer instanceof ArrayBuffer))); + } + + var p = e.exports = g, + d = /\s*function\s+([^\(\s]*)\s*/; + + function h(e) { + if (a.isFunction(e)) { + if (c) return e.name; + var t = e.toString().match(d); + return t && t[1]; + } + } + + function m(e, t) { + return "string" == typeof e ? e.length < t ? e : e.slice(0, t) : e; + } + + function y(e) { + if (c || !a.isFunction(e)) return a.inspect(e); + var t = h(e); + return "[Function" + (t ? ": " + t : "") + "]"; + } + + function v(e, t, n, r, o) { + throw new p.AssertionError({ + message: n, + actual: e, + expected: t, + operator: r, + stackStartFunction: o + }); + } + + function g(e, t) { + e || v(e, !0, t, "==", p.ok); + } + + function b(e, t, n, s) { + if (e === t) return !0; + if (i(e) && i(t)) return 0 === o(e, t); + if (a.isDate(e) && a.isDate(t)) return e.getTime() === t.getTime(); + if (a.isRegExp(e) && a.isRegExp(t)) return e.source === t.source && e.global === t.global && e.multiline === t.multiline && e.lastIndex === t.lastIndex && e.ignoreCase === t.ignoreCase; + + if (null !== e && "object" === r(e) || null !== t && "object" === r(t)) { + if (f(e) && f(t) && l(e) === l(t) && !(e instanceof Float32Array || e instanceof Float64Array)) return 0 === o(new Uint8Array(e.buffer), new Uint8Array(t.buffer)); + if (i(e) !== i(t)) return !1; + var c = (s = s || { + actual: [], + expected: [] + }).actual.indexOf(e); + return -1 !== c && c === s.expected.indexOf(t) || (s.actual.push(e), s.expected.push(t), function (e, t, n, r) { + if (null == e || null == t) return !1; + if (a.isPrimitive(e) || a.isPrimitive(t)) return e === t; + if (n && Object.getPrototypeOf(e) !== Object.getPrototypeOf(t)) return !1; + + var o = _(e), + i = _(t); + + if (o && !i || !o && i) return !1; + if (o) return e = u.call(e), t = u.call(t), b(e, t, n); + var s, + c, + l = E(e), + f = E(t); + if (l.length !== f.length) return !1; + + for (l.sort(), f.sort(), c = l.length - 1; c >= 0; c--) { + if (l[c] !== f[c]) return !1; + } + + for (c = l.length - 1; c >= 0; c--) { + if (s = l[c], !b(e[s], t[s], n, r)) return !1; + } + + return !0; + }(e, t, n, s)); + } + + return n ? e === t : e == t; + } + + function _(e) { + return "[object Arguments]" == Object.prototype.toString.call(e); + } + + function w(e, t) { + if (!e || !t) return !1; + if ("[object RegExp]" == Object.prototype.toString.call(t)) return t.test(e); + + try { + if (e instanceof t) return !0; + } catch (e) {} + + return !Error.isPrototypeOf(t) && !0 === t.call({}, e); + } + + function S(e, t, n, r) { + var o; + if ("function" != typeof t) throw new TypeError('"block" argument must be a function'); + "string" == typeof n && (r = n, n = null), o = function (e) { + var t; + + try { + e(); + } catch (e) { + t = e; + } + + return t; + }(t), r = (n && n.name ? " (" + n.name + ")." : ".") + (r ? " " + r : "."), e && !o && v(o, n, "Missing expected exception" + r); + var i = "string" == typeof r, + s = !e && o && !n; + if ((!e && a.isError(o) && i && w(o, n) || s) && v(o, n, "Got unwanted exception" + r), e && o && n && !w(o, n) || !e && o) throw o; + } + + p.AssertionError = function (e) { + var t; + this.name = "AssertionError", this.actual = e.actual, this.expected = e.expected, this.operator = e.operator, e.message ? (this.message = e.message, this.generatedMessage = !1) : (this.message = m(y((t = this).actual), 128) + " " + t.operator + " " + m(y(t.expected), 128), this.generatedMessage = !0); + var n = e.stackStartFunction || v; + if (Error.captureStackTrace) Error.captureStackTrace(this, n);else { + var r = new Error(); + + if (r.stack) { + var o = r.stack, + i = h(n), + a = o.indexOf("\n" + i); + + if (a >= 0) { + var s = o.indexOf("\n", a + 1); + o = o.substring(s + 1); + } + + this.stack = o; + } + } + }, a.inherits(p.AssertionError, Error), p.fail = v, p.ok = g, p.equal = function (e, t, n) { + e != t && v(e, t, n, "==", p.equal); + }, p.notEqual = function (e, t, n) { + e == t && v(e, t, n, "!=", p.notEqual); + }, p.deepEqual = function (e, t, n) { + b(e, t, !1) || v(e, t, n, "deepEqual", p.deepEqual); + }, p.deepStrictEqual = function (e, t, n) { + b(e, t, !0) || v(e, t, n, "deepStrictEqual", p.deepStrictEqual); + }, p.notDeepEqual = function (e, t, n) { + b(e, t, !1) && v(e, t, n, "notDeepEqual", p.notDeepEqual); + }, p.notDeepStrictEqual = function e(t, n, r) { + b(t, n, !0) && v(t, n, r, "notDeepStrictEqual", e); + }, p.strictEqual = function (e, t, n) { + e !== t && v(e, t, n, "===", p.strictEqual); + }, p.notStrictEqual = function (e, t, n) { + e === t && v(e, t, n, "!==", p.notStrictEqual); + }, p.throws = function (e, t, n) { + S(!0, e, t, n); + }, p.doesNotThrow = function (e, t, n) { + S(!1, e, t, n); + }, p.ifError = function (e) { + if (e) throw e; + }; + + var E = Object.keys || function (e) { + var t = []; + + for (var n in e) { + s.call(e, n) && t.push(n); + } + + return t; + }; + }).call(this, n(7)); + }, function (e, t, n) { + (function (e, r) { + function o(e) { + return (o = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + var i = /%[sdj%]/g; + t.format = function (e) { + if (!g(e)) { + for (var t = [], n = 0; n < arguments.length; n++) { + t.push(u(arguments[n])); + } + + return t.join(" "); + } + + n = 1; + + for (var r = arguments, o = r.length, a = String(e).replace(i, function (e) { + if ("%%" === e) return "%"; + if (n >= o) return e; + + switch (e) { + case "%s": + return String(r[n++]); + + case "%d": + return Number(r[n++]); + + case "%j": + try { + return JSON.stringify(r[n++]); + } catch (e) { + return "[Circular]"; + } + + default: + return e; + } + }), s = r[n]; n < o; s = r[++n]) { + y(s) || !w(s) ? a += " " + s : a += " " + u(s); + } + + return a; + }, t.deprecate = function (n, o) { + if (b(e.process)) return function () { + return t.deprecate(n, o).apply(this, arguments); + }; + if (!0 === r.noDeprecation) return n; + var i = !1; + return function () { + if (!i) { + if (r.throwDeprecation) throw new Error(o); + r.traceDeprecation ? console.trace(o) : console.error(o), i = !0; + } + + return n.apply(this, arguments); + }; + }; + var a, + s = {}; + + function u(e, n) { + var r = { + seen: [], + stylize: l + }; + return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), m(n) ? r.showHidden = n : n && t._extend(r, n), b(r.showHidden) && (r.showHidden = !1), b(r.depth) && (r.depth = 2), b(r.colors) && (r.colors = !1), b(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = c), f(r, e, r.depth); + } + + function c(e, t) { + var n = u.styles[t]; + return n ? "[" + u.colors[n][0] + "m" + e + "[" + u.colors[n][1] + "m" : e; + } + + function l(e, t) { + return e; + } + + function f(e, n, r) { + if (e.customInspect && n && O(n.inspect) && n.inspect !== t.inspect && (!n.constructor || n.constructor.prototype !== n)) { + var o = n.inspect(r, e); + return g(o) || (o = f(e, o, r)), o; + } + + var i = function (e, t) { + if (b(t)) return e.stylize("undefined", "undefined"); + + if (g(t)) { + var n = "'" + JSON.stringify(t).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; + return e.stylize(n, "string"); + } + + if (v(t)) return e.stylize("" + t, "number"); + if (m(t)) return e.stylize("" + t, "boolean"); + if (y(t)) return e.stylize("null", "null"); + }(e, n); + + if (i) return i; + + var a = Object.keys(n), + s = function (e) { + var t = {}; + return e.forEach(function (e, n) { + t[e] = !0; + }), t; + }(a); + + if (e.showHidden && (a = Object.getOwnPropertyNames(n)), E(n) && (a.indexOf("message") >= 0 || a.indexOf("description") >= 0)) return p(n); + + if (0 === a.length) { + if (O(n)) { + var u = n.name ? ": " + n.name : ""; + return e.stylize("[Function" + u + "]", "special"); + } + + if (_(n)) return e.stylize(RegExp.prototype.toString.call(n), "regexp"); + if (S(n)) return e.stylize(Date.prototype.toString.call(n), "date"); + if (E(n)) return p(n); + } + + var c, + l = "", + w = !1, + x = ["{", "}"]; + (h(n) && (w = !0, x = ["[", "]"]), O(n)) && (l = " [Function" + (n.name ? ": " + n.name : "") + "]"); + return _(n) && (l = " " + RegExp.prototype.toString.call(n)), S(n) && (l = " " + Date.prototype.toUTCString.call(n)), E(n) && (l = " " + p(n)), 0 !== a.length || w && 0 != n.length ? r < 0 ? _(n) ? e.stylize(RegExp.prototype.toString.call(n), "regexp") : e.stylize("[Object]", "special") : (e.seen.push(n), c = w ? function (e, t, n, r, o) { + for (var i = [], a = 0, s = t.length; a < s; ++a) { + N(t, String(a)) ? i.push(d(e, t, n, r, String(a), !0)) : i.push(""); + } + + return o.forEach(function (o) { + o.match(/^\d+$/) || i.push(d(e, t, n, r, o, !0)); + }), i; + }(e, n, r, s, a) : a.map(function (t) { + return d(e, n, r, s, t, w); + }), e.seen.pop(), function (e, t, n) { + if (e.reduce(function (e, t) { + return 0, t.indexOf("\n") >= 0 && 0, e + t.replace(/\u001b\[\d\d?m/g, "").length + 1; + }, 0) > 60) return n[0] + ("" === t ? "" : t + "\n ") + " " + e.join(",\n ") + " " + n[1]; + return n[0] + t + " " + e.join(", ") + " " + n[1]; + }(c, l, x)) : x[0] + l + x[1]; + } + + function p(e) { + return "[" + Error.prototype.toString.call(e) + "]"; + } + + function d(e, t, n, r, o, i) { + var a, s, u; + + if ((u = Object.getOwnPropertyDescriptor(t, o) || { + value: t[o] + }).get ? s = u.set ? e.stylize("[Getter/Setter]", "special") : e.stylize("[Getter]", "special") : u.set && (s = e.stylize("[Setter]", "special")), N(r, o) || (a = "[" + o + "]"), s || (e.seen.indexOf(u.value) < 0 ? (s = y(n) ? f(e, u.value, null) : f(e, u.value, n - 1)).indexOf("\n") > -1 && (s = i ? s.split("\n").map(function (e) { + return " " + e; + }).join("\n").substr(2) : "\n" + s.split("\n").map(function (e) { + return " " + e; + }).join("\n")) : s = e.stylize("[Circular]", "special")), b(a)) { + if (i && o.match(/^\d+$/)) return s; + (a = JSON.stringify("" + o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (a = a.substr(1, a.length - 2), a = e.stylize(a, "name")) : (a = a.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), a = e.stylize(a, "string")); + } + + return a + ": " + s; + } + + function h(e) { + return Array.isArray(e); + } + + function m(e) { + return "boolean" == typeof e; + } + + function y(e) { + return null === e; + } + + function v(e) { + return "number" == typeof e; + } + + function g(e) { + return "string" == typeof e; + } + + function b(e) { + return void 0 === e; + } + + function _(e) { + return w(e) && "[object RegExp]" === x(e); + } + + function w(e) { + return "object" === o(e) && null !== e; + } + + function S(e) { + return w(e) && "[object Date]" === x(e); + } + + function E(e) { + return w(e) && ("[object Error]" === x(e) || e instanceof Error); + } + + function O(e) { + return "function" == typeof e; + } + + function x(e) { + return Object.prototype.toString.call(e); + } + + function C(e) { + return e < 10 ? "0" + e.toString(10) : e.toString(10); + } + + t.debuglog = function (e) { + if (b(a) && (a = r.env.NODE_DEBUG || ""), e = e.toUpperCase(), !s[e]) if (new RegExp("\\b" + e + "\\b", "i").test(a)) { + var n = r.pid; + + s[e] = function () { + var r = t.format.apply(t, arguments); + console.error("%s %d: %s", e, n, r); + }; + } else s[e] = function () {}; + return s[e]; + }, t.inspect = u, u.colors = { + bold: [1, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + white: [37, 39], + grey: [90, 39], + black: [30, 39], + blue: [34, 39], + cyan: [36, 39], + green: [32, 39], + magenta: [35, 39], + red: [31, 39], + yellow: [33, 39] + }, u.styles = { + special: "cyan", + number: "yellow", + boolean: "yellow", + undefined: "grey", + null: "bold", + string: "green", + date: "magenta", + regexp: "red" + }, t.isArray = h, t.isBoolean = m, t.isNull = y, t.isNullOrUndefined = function (e) { + return null == e; + }, t.isNumber = v, t.isString = g, t.isSymbol = function (e) { + return "symbol" === o(e); + }, t.isUndefined = b, t.isRegExp = _, t.isObject = w, t.isDate = S, t.isError = E, t.isFunction = O, t.isPrimitive = function (e) { + return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" === o(e) || void 0 === e; + }, t.isBuffer = n(50); + var I = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + + function N(e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + } + + t.log = function () { + var e, n; + console.log("%s - %s", (e = new Date(), n = [C(e.getHours()), C(e.getMinutes()), C(e.getSeconds())].join(":"), [e.getDate(), I[e.getMonth()], n].join(" ")), t.format.apply(t, arguments)); + }, t.inherits = n(51), t._extend = function (e, t) { + if (!t || !w(t)) return e; + + for (var n = Object.keys(t), r = n.length; r--;) { + e[n[r]] = t[n[r]]; + } + + return e; + }; + }).call(this, n(7), n(6)); + }, function (e, t) { + function n(e) { + return (n = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + e.exports = function (e) { + return e && "object" === n(e) && "function" == typeof e.copy && "function" == typeof e.fill && "function" == typeof e.readUInt8; + }; + }, function (e, t) { + "function" == typeof Object.create ? e.exports = function (e, t) { + e.super_ = t, e.prototype = Object.create(t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }); + } : e.exports = function (e, t) { + e.super_ = t; + + var n = function n() {}; + + n.prototype = t.prototype, e.prototype = new n(), e.prototype.constructor = e; + }; + }, function (e, t, n) { + "use strict"; + + function r(e) { + return (r = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + function o(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e; + } + + var i = n(53), + a = {}; + + e.exports = function (e, t, n) { + e.onCall("rn-style:get", function (e) { + var r = t.elementData.get(e); + return r && r.props ? n(r.props.style) : null; + }), e.on("rn-style:measure", function (r) { + u(t, e, n, r); + }), e.on("rn-style:rename", function (i) { + var s = i.id, + l = i.oldName, + f = i.newName, + p = i.val; + !function (e, t, n, i, s) { + var u, + l = e.elementData.get(t), + f = i ? (o(u = {}, n, void 0), o(u, i, s), u) : o({}, n, void 0); + + if (l && l.updater && "function" == typeof l.updater.setInProps) { + var p, + d = l && l.props && l.props.style; + + if (Array.isArray(d)) { + var h = d.length - 1; + "object" !== r(d[h]) || Array.isArray(d[h]) ? (d = d.concat([f]), l.updater.setInProps(["style"], d)) : (delete (p = c(d[h]))[n], i ? p[i] = s : p[n] = void 0, l.updater.setInProps(["style", h], p)); + } else "object" === r(d) ? (delete (p = c(d))[n], i ? p[i] = s : p[n] = void 0, l.updater.setInProps(["style"], p)) : (d = [d, f], l.updater.setInProps(["style"], d)); + } else { + if (!l || !l.updater || "function" != typeof l.updater.setNativeProps) return; + a[t] ? _extends(a[t], f) : a[t] = f, l.updater.setNativeProps({ + style: f + }); + } + + e.emit("hideHighlight"); + }(t, s, l, f, p), setTimeout(function () { + return u(t, e, n, s); + }); + }), e.on("rn-style:set", function (i) { + var s = i.id, + c = i.attr, + l = i.val; + !function (e, t, n, i) { + var s = e.elementData.get(t), + u = o({}, n, i); + + if (s && s.updater && "function" == typeof s.updater.setInProps) { + var c = s.props && s.props.style; + + if (Array.isArray(c)) { + var l = c.length - 1; + "object" !== r(c[l]) || Array.isArray(c[l]) ? (c = c.concat([u]), s.updater.setInProps(["style"], c)) : s.updater.setInProps(["style", l, n], i); + } else c = [c, u], s.updater.setInProps(["style"], c); + } else { + if (!s || !s.updater || "function" != typeof s.updater.setNativeProps) return; + a[t] ? _extends(a[t], u) : a[t] = u, s.updater.setNativeProps({ + style: u + }); + } + + e.emit("hideHighlight"); + }(t, s, c, l), setTimeout(function () { + return u(t, e, n, s); + }); + }); + }; + + var s = { + top: 0, + left: 0, + right: 0, + bottom: 0 + }; + + function u(e, t, n, r) { + var o = e.elementData.get(r); + + if (o && o.props) { + var u = n(o.props.style); + a[r] && (u = _extends({}, u, a[r])); + var c = o.publicInstance; + c && c.measure ? c.measure(function (e, n, r, o, a, c) { + if ("number" == typeof e) { + var l = u && i("margin", u) || s, + f = u && i("padding", u) || s; + t.send("rn-style:measure", { + style: u, + measuredLayout: { + x: e, + y: n, + width: r, + height: o, + left: a, + top: c, + margin: l, + padding: f + } + }); + } else t.send("rn-style:measure", { + style: u + }); + }) : t.send("rn-style:measure", { + style: u + }); + } else t.send("rn-style:measure", {}); + } + + function c(e) { + var t = {}; + + for (var n in e) { + t[n] = e[n]; + } + + return t; + } + }, function (e, t) { + e.exports = function (e, t) { + var n = {}, + r = ["top", "left", "bottom", "right"], + o = !1; + return r.forEach(function (r) { + n[r] = t[e] || 0; + }), t[e] && (o = !0), t[e + "Vertical"] && (n.top = n.bottom = t[e + "Vertical"], o = !0), t[e + "Horizontal"] && (n.left = n.right = t[e + "Horizontal"], o = !0), r.forEach(function (r) { + var i, + a = t[e + (i = r, i[0].toUpperCase() + i.slice(1))]; + a && (n[r] = a, o = !0); + }), o ? n : null; + }; + }, function (e, t, n) { + var r, o, i; + !function (n, a) { + "use strict"; + + o = [], void 0 === (i = "function" == typeof (r = function r() { + function e(e) { + return !isNaN(parseFloat(e)) && isFinite(e); + } + + function t(e) { + return e.charAt(0).toUpperCase() + e.substring(1); + } + + function n(e) { + return function () { + return this[e]; + }; + } + + var r = ["isConstructor", "isEval", "isNative", "isToplevel"], + o = ["columnNumber", "lineNumber"], + i = ["fileName", "functionName", "source"], + a = r.concat(o, i, ["args"]); + + function s(e) { + if (e instanceof Object) for (var n = 0; n < a.length; n++) { + e.hasOwnProperty(a[n]) && void 0 !== e[a[n]] && this["set" + t(a[n])](e[a[n]]); + } + } + + s.prototype = { + getArgs: function getArgs() { + return this.args; + }, + setArgs: function setArgs(e) { + if ("[object Array]" !== Object.prototype.toString.call(e)) throw new TypeError("Args must be an Array"); + this.args = e; + }, + getEvalOrigin: function getEvalOrigin() { + return this.evalOrigin; + }, + setEvalOrigin: function setEvalOrigin(e) { + if (e instanceof s) this.evalOrigin = e;else { + if (!(e instanceof Object)) throw new TypeError("Eval Origin must be an Object or StackFrame"); + this.evalOrigin = new s(e); + } + }, + toString: function toString() { + var t = this.getFunctionName() || "{anonymous}", + n = "(" + (this.getArgs() || []).join(",") + ")", + r = this.getFileName() ? "@" + this.getFileName() : "", + o = e(this.getLineNumber()) ? ":" + this.getLineNumber() : "", + i = e(this.getColumnNumber()) ? ":" + this.getColumnNumber() : ""; + return t + n + r + o + i; + } + }; + + for (var u = 0; u < r.length; u++) { + s.prototype["get" + t(r[u])] = n(r[u]), s.prototype["set" + t(r[u])] = function (e) { + return function (t) { + this[e] = Boolean(t); + }; + }(r[u]); + } + + for (var c = 0; c < o.length; c++) { + s.prototype["get" + t(o[c])] = n(o[c]), s.prototype["set" + t(o[c])] = function (t) { + return function (n) { + if (!e(n)) throw new TypeError(t + " must be a Number"); + this[t] = Number(n); + }; + }(o[c]); + } + + for (var l = 0; l < i.length; l++) { + s.prototype["get" + t(i[l])] = n(i[l]), s.prototype["set" + t(i[l])] = function (e) { + return function (t) { + this[e] = String(t); + }; + }(i[l]); + } + + return s; + }) ? r.apply(t, o) : r) || (e.exports = i); + }(); + }, function (e, t, n) { + "use strict"; + + var r = function r() {}; + + e.exports = function (e, t, n) { + var o = function o() { + var n = !1; + t.roots.forEach(function (e) { + t.internalInstancesById.get(e).hasOwnProperty("treeBaseDuration") && (n = !0); + }), e.call("profiler:update", [n], r); + }; + + t.on("root", o), t.on("rootUnmounted", o), o(); + }; + }, function (e, t, n) { + "use strict"; + + var r = n(57); + + e.exports = function (e) { + var t = new r(window, function (t) { + e.selectFromDOMNode(t); + }); + e.on("highlight", function (e) { + return t.highlight(e.node, e.name); + }), e.on("highlightMany", function (e) { + return t.highlightMany(e); + }), e.on("hideHighlight", function () { + return t.hideHighlight(); + }), e.on("refreshMultiOverlay", function () { + return t.refreshMultiOverlay(); + }), e.on("startInspecting", function () { + return t.startInspecting(); + }), e.on("stopInspecting", function () { + return t.stopInspecting(); + }), e.on("shutdown", function () { + t.remove(); + }); + }; + }, function (e, t, n) { + "use strict"; + + function r(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); + } + } + + var o = n(58), + i = n(60), + a = function () { + function e(t, n) { + !function (e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); + }(this, e), this._win = t, this._onSelect = n, this._overlay = null, this._multiOverlay = null, this._subs = []; + } + + var t, n, a; + return t = e, (n = [{ + key: "startInspecting", + value: function value() { + this._inspecting = !0, this._subs = [s(this._win, "mouseover", this.onHover.bind(this)), s(this._win, "mousedown", this.onMouseDown.bind(this)), s(this._win, "click", this.onClick.bind(this))]; + } + }, { + key: "stopInspecting", + value: function value() { + this._subs.forEach(function (e) { + return e(); + }), this.hideHighlight(); + } + }, { + key: "remove", + value: function value() { + this.stopInspecting(), this._button && this._button.parentNode && this._button.parentNode.removeChild(this._button); + } + }, { + key: "highlight", + value: function value(e, t) { + this.removeMultiOverlay(), e.nodeType !== Node.COMMENT_NODE && (this._overlay || (this._overlay = new o(this._win)), this._overlay.inspect(e, t)); + } + }, { + key: "highlightMany", + value: function value(e) { + this.removeOverlay(), this._multiOverlay || (this._multiOverlay = new i(this._win)), this._multiOverlay.highlightMany(e); + } + }, { + key: "hideHighlight", + value: function value() { + this._inspecting = !1, this.removeOverlay(), this.removeMultiOverlay(); + } + }, { + key: "refreshMultiOverlay", + value: function value() { + this._multiOverlay && this._multiOverlay.refresh(); + } + }, { + key: "removeOverlay", + value: function value() { + this._overlay && (this._overlay.remove(), this._overlay = null); + } + }, { + key: "removeMultiOverlay", + value: function value() { + this._multiOverlay && (this._multiOverlay.remove(), this._multiOverlay = null); + } + }, { + key: "onMouseDown", + value: function value(e) { + this._inspecting && (e.preventDefault(), e.stopPropagation(), e.cancelBubble = !0, this._onSelect(e.target)); + } + }, { + key: "onClick", + value: function value(e) { + this._inspecting && (this._subs.forEach(function (e) { + return e(); + }), e.preventDefault(), e.stopPropagation(), e.cancelBubble = !0, this.hideHighlight()); + } + }, { + key: "onHover", + value: function value(e) { + this._inspecting && (e.preventDefault(), e.stopPropagation(), e.cancelBubble = !0, this.highlight(e.target)); + } + }, { + key: "injectButton", + value: function value() { + var e; + this._button = ((e = window.document.createElement("button")).innerHTML = "🔍", e.style.backgroundColor = "transparent", e.style.border = "none", e.style.outline = "none", e.style.cursor = "pointer", e.style.position = "fixed", e.style.bottom = "10px", e.style.right = "10px", e.style.fontSize = "30px", e.style.zIndex = 1e7, e), this._button.onclick = this.startInspecting.bind(this), this._win.document.body.appendChild(this._button); + } + }]) && r(t.prototype, n), a && r(t, a), e; + }(); + + function s(e, t, n) { + return e.addEventListener(t, n, !0), function () { + return e.removeEventListener(t, n, !0); + }; + } + + e.exports = a; + }, function (e, t, n) { + "use strict"; + + function r(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); + } + } + + var o = n(1), + i = n(59).monospace, + a = function () { + function e(t) { + !function (e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); + }(this, e); + var n = t.document; + this.win = t, this.container = n.createElement("div"), this.node = n.createElement("div"), this.border = n.createElement("div"), this.padding = n.createElement("div"), this.content = n.createElement("div"), this.border.style.borderColor = d.border, this.padding.style.borderColor = d.padding, this.content.style.backgroundColor = d.background, o(this.node.style, { + borderColor: d.margin, + pointerEvents: "none", + position: "fixed" + }), this.tip = n.createElement("div"), o(this.tip.style, { + backgroundColor: "#333740", + borderRadius: "2px", + fontFamily: i.family, + fontWeight: "bold", + padding: "3px 5px", + position: "fixed", + fontSize: i.sizes.normal + "px" + }), this.nameSpan = n.createElement("span"), this.tip.appendChild(this.nameSpan), o(this.nameSpan.style, { + color: "#ee78e6", + borderRight: "1px solid #aaaaaa", + paddingRight: "0.5rem", + marginRight: "0.5rem" + }), this.dimSpan = n.createElement("span"), this.tip.appendChild(this.dimSpan), o(this.dimSpan.style, { + color: "#d7d7d7" + }), this.container.style.zIndex = 1e7, this.node.style.zIndex = 1e7, this.tip.style.zIndex = 1e7, this.container.appendChild(this.node), this.container.appendChild(this.tip), this.node.appendChild(this.border), this.border.appendChild(this.padding), this.padding.appendChild(this.content), n.body.appendChild(this.container); + } + + var t, n, a; + return t = e, (n = [{ + key: "remove", + value: function value() { + this.container.parentNode && this.container.parentNode.removeChild(this.container); + } + }, { + key: "inspect", + value: function value(e, t) { + if (e.nodeType === Node.ELEMENT_NODE) { + var n = function (e, t) { + var n = c(e); + + if (n && n !== t) { + for (var r = [e.getBoundingClientRect()], o = n, i = !1; o;) { + var a = l(o); + if (r.push(a), o = c(o), i) break; + o && u(o) === t && (i = !0); + } + + return f(r); + } + + return e.getBoundingClientRect(); + }(e, this.win), + r = s(e); + + p(r, "margin", this.node), p(r, "border", this.border), p(r, "padding", this.padding), o(this.content.style, { + height: n.height - r.borderTop - r.borderBottom - r.paddingTop - r.paddingBottom + "px", + width: n.width - r.borderLeft - r.borderRight - r.paddingLeft - r.paddingRight + "px" + }), o(this.node.style, { + top: n.top - r.marginTop + "px", + left: n.left - r.marginLeft + "px" + }), this.nameSpan.textContent = t || e.nodeName.toLowerCase(), this.dimSpan.textContent = n.width + "px × " + n.height + "px"; + + var i = function (e, t) { + var n; + n = e.top + e.height + 20 <= t.innerHeight ? e.top + e.height < 0 ? 5 : e.top + e.height + 5 : e.top - 20 <= t.innerHeight ? e.top - 20 - 5 < 5 ? 5 : e.top - 20 - 5 : t.innerHeight - 20 - 5; + if (n += "px", e.left < 0) return { + top: n, + left: 5 + }; + if (e.left + 200 > t.innerWidth) return { + top: n, + right: 5 + }; + return { + top: n, + left: e.left + 5 + "px" + }; + }({ + top: n.top - r.marginTop, + left: n.left - r.marginLeft, + height: n.height + r.marginTop + r.marginBottom, + width: n.width + r.marginLeft + r.marginRight + }, this.win); + + o(this.tip.style, i); + } + } + }]) && r(t.prototype, n), a && r(t, a), e; + }(); + + function s(e) { + var t = window.getComputedStyle(e); + return { + borderLeft: +t.borderLeftWidth.match(/[0-9]*/)[0], + borderRight: +t.borderRightWidth.match(/[0-9]*/)[0], + borderTop: +t.borderTopWidth.match(/[0-9]*/)[0], + borderBottom: +t.borderBottomWidth.match(/[0-9]*/)[0], + marginLeft: +t.marginLeft.match(/[0-9]*/)[0], + marginRight: +t.marginRight.match(/[0-9]*/)[0], + marginTop: +t.marginTop.match(/[0-9]*/)[0], + marginBottom: +t.marginBottom.match(/[0-9]*/)[0], + paddingLeft: +t.paddingLeft.match(/[0-9]*/)[0], + paddingRight: +t.paddingRight.match(/[0-9]*/)[0], + paddingTop: +t.paddingTop.match(/[0-9]*/)[0], + paddingBottom: +t.paddingBottom.match(/[0-9]*/)[0] + }; + } + + function u(e) { + return e.ownerDocument ? e.ownerDocument.defaultView : null; + } + + function c(e) { + var t = u(e); + return t ? t.frameElement : null; + } + + function l(e) { + var t = s(e); + return f([e.getBoundingClientRect(), { + top: t.borderTop, + left: t.borderLeft, + bottom: t.borderBottom, + right: t.borderRight, + width: 0, + height: 0 + }]); + } + + function f(e) { + return e.reduce(function (e, t) { + return null == e ? t : { + top: e.top + t.top, + left: e.left + t.left, + width: e.width, + height: e.height, + bottom: e.bottom + t.bottom, + right: e.right + t.right + }; + }); + } + + function p(e, t, n) { + o(n.style, { + borderTopWidth: e[t + "Top"] + "px", + borderLeftWidth: e[t + "Left"] + "px", + borderRightWidth: e[t + "Right"] + "px", + borderBottomWidth: e[t + "Bottom"] + "px", + borderStyle: "solid" + }); + } + + var d = { + background: "rgba(120, 170, 210, 0.7)", + padding: "rgba(77, 200, 0, 0.3)", + margin: "rgba(255, 155, 0, 0.3)", + border: "rgba(255, 200, 50, 0.3)" + }; + e.exports = a; + }, function (e, t, n) { + "use strict"; + + e.exports = { + monospace: { + family: "Menlo, Consolas, monospace", + sizes: { + normal: 11, + large: 14 + } + }, + sansSerif: { + family: '"Helvetica Neue", "Lucida Grande", -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, sans-serif', + sizes: { + small: 10, + normal: 12, + large: 14 + } + } + }; + }, function (e, t, n) { + "use strict"; + + function r(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); + } + } + + var o = n(1), + i = function () { + function e(t) { + !function (e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); + }(this, e), this.win = t; + var n = t.document; + this.container = n.createElement("div"), n.body.appendChild(this.container), this._currentNodes = null; + } + + var t, n, i; + return t = e, (n = [{ + key: "highlightMany", + value: function value(e) { + var t = this; + this._currentNodes = e, this.container.innerHTML = "", e.forEach(function (e) { + var n = t.win.document.createElement("div"); + + if ("function" == typeof e.getBoundingClientRect) { + var r = e.getBoundingClientRect(); + r.bottom < 0 || r.top > window.innerHeight || (o(n.style, { + top: r.top + "px", + left: r.left + "px", + width: r.width + "px", + height: r.height + "px", + border: "2px dotted rgba(200, 100, 100, .8)", + boxSizing: "border-box", + backgroundColor: "rgba(200, 100, 100, .2)", + position: "fixed", + zIndex: 1e7, + pointerEvents: "none" + }), t.container.appendChild(n)); + } + }); + } + }, { + key: "refresh", + value: function value() { + this._currentNodes && this.highlightMany(this._currentNodes); + } + }, { + key: "remove", + value: function value() { + this.container.parentNode && (this.container.parentNode.removeChild(this.container), this._currentNodes = null); + } + }]) && r(t.prototype, n), i && r(t, i), e; + }(); + + e.exports = i; + }, function (e, t, n) { + "use strict"; + + n.r(t); + var r = n(0), + o = n.n(r); + + function i(e) { + return (i = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (e) { + return typeof e; + } : function (e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof e; + })(e); + } + + var a = 10, + s = 11, + u = 0, + c = 15, + l = [], + f = null; + + function p() { + if (null === f) { + var e, + t = new Map(); + + try { + m.useContext({ + _currentValue: null + }), m.useState(null), m.useReducer(function (e, t) { + return e; + }, null), m.useRef(null), m.useLayoutEffect(function () {}), m.useEffect(function () {}), m.useImperativeHandle(void 0, function () { + return null; + }), m.useCallback(function () {}), m.useMemo(function () { + return null; + }), m.useDebugValue(null); + } finally { + e = l, l = []; + } + + for (var n = 0; n < e.length; n++) { + var r = e[n]; + t.set(r.primitive, o.a.parse(r.stackError)); + } + + f = t; + } + + return f; + } + + var d = null; + + function h() { + var e = d; + return null !== e && (d = e.next), e; + } + + var m = { + readContext: function readContext(e, t) { + return e._currentValue; + }, + useCallback: function useCallback(e, t) { + var n = h(); + return l.push({ + primitive: "Callback", + stackError: new Error(), + value: null !== n ? n.memoizedState[0] : e + }), e; + }, + useContext: function useContext(e, t) { + return l.push({ + primitive: "Context", + stackError: new Error(), + value: e._currentValue + }), e._currentValue; + }, + useEffect: function useEffect(e, t) { + h(), l.push({ + primitive: "Effect", + stackError: new Error(), + value: e + }); + }, + useImperativeHandle: function useImperativeHandle(e, t, n) { + h(); + var r = void 0; + null !== e && "object" === i(e) && (r = e.current), l.push({ + primitive: "ImperativeHandle", + stackError: new Error(), + value: r + }); + }, + useDebugValue: function useDebugValue(e, t) { + l.push({ + primitive: "DebugValue", + stackError: new Error(), + value: "function" == typeof t ? t(e) : e + }); + }, + useLayoutEffect: function useLayoutEffect(e, t) { + h(), l.push({ + primitive: "LayoutEffect", + stackError: new Error(), + value: e + }); + }, + useMemo: function useMemo(e, t) { + var n = h(), + r = null !== n ? n.memoizedState[0] : e(); + return l.push({ + primitive: "Memo", + stackError: new Error(), + value: r + }), r; + }, + useReducer: function useReducer(e, t, n) { + var r = h(), + o = null !== r ? r.memoizedState : t; + return l.push({ + primitive: "Reducer", + stackError: new Error(), + value: o + }), [o, function (e) {}]; + }, + useRef: function useRef(e) { + var t = h(), + n = null !== t ? t.memoizedState : { + current: e + }; + return l.push({ + primitive: "Ref", + stackError: new Error(), + value: n.current + }), n; + }, + useState: function useState(e) { + var t = h(), + n = null !== t ? t.memoizedState : "function" == typeof e ? e() : e; + return l.push({ + primitive: "State", + stackError: new Error(), + value: n + }), [n, function (e) {}]; + } + }, + y = 0; + + function v(e, t, n) { + var r = t[n].source; + + e: for (var o = 0; o < e.length; o++) { + if (e[o].source === r) { + for (var i = n + 1, a = o + 1; i < t.length && a < e.length; i++, a++) { + if (e[a].source !== t[i].source) continue e; + } + + return o; + } + } + + return -1; + } + + function g(e, t) { + if (!e) return !1; + var n = "use" + t; + return !(e.length < n.length) && e.lastIndexOf(n) === e.length - n.length; + } + + function b(e, t) { + var n = o.a.parse(t.stackError), + r = function (e, t) { + var n = v(t, e, y); + if (-1 !== n) return n; + + for (var r = 0; r < e.length && r < 5; r++) { + if (-1 !== (n = v(t, e, r))) return y = r, n; + } + + return -1; + }(e, n), + i = function (e, t) { + var n = p().get(t.primitive); + if (void 0 === n) return -1; + + for (var r = 0; r < n.length && r < e.length; r++) { + if (n[r].source !== e[r].source) return r < e.length - 1 && g(e[r].functionName, t.primitive) && r++, r < e.length - 1 && g(e[r].functionName, t.primitive) && r++, r; + } + + return -1; + }(n, t); + + return -1 === r || -1 === i || r - i < 2 ? null : n.slice(i, r - 1); + } + + function _(e) { + if (!e) return ""; + var t = e.lastIndexOf("."); + return -1 === t && (t = 0), "use" === e.substr(t, 3) && (t += 3), e.substr(t); + } + + function w(e, t) { + for (var n = [], r = null, o = n, i = [], a = 0; a < t.length; a++) { + var s = t[a], + u = b(e, s); + + if (null !== u) { + var c = 0; + + if (null !== r) { + for (; c < u.length && c < r.length;) { + if (u[u.length - c - 1].source !== r[r.length - c - 1].source) break; + c++; + } + + for (var l = r.length - 1; l > c; l--) { + o = i.pop(); + } + } + + for (var f = u.length - c - 1; f >= 1; f--) { + var p = []; + o.push({ + name: _(u[f - 1].functionName), + value: void 0, + subHooks: p + }), i.push(o), o = p; + } + + r = u; + } + + o.push({ + name: s.primitive, + value: s.value, + subHooks: [] + }); + } + + return function e(t, n) { + var r = []; + + for (var o = 0; o < t.length; o++) { + var i = t[o]; + "DebugValue" === i.name && 0 === i.subHooks.length ? (t.splice(o, 1), o--, r.push(i)) : e(i.subHooks, i); + } + + null !== n && (1 === r.length ? n.value = r[0].value : r.length > 1 && (n.value = r.map(function (e) { + var t = e.value; + return t; + }))); + }(n, null), n; + } + + function S(e, t) { + if (e.tag !== u && e.tag !== c && e.tag !== s) throw new Error("Unknown Fiber. Needs to be a function component to inspect hooks."); + p(); + var n = e.type, + r = e.memoizedProps; + n !== e.elementType && (r = function (e, t) { + if (e && e.defaultProps) { + var n = _extends({}, t), + r = e.defaultProps; + + for (var o in r) { + void 0 === n[o] && (n[o] = r[o]); + } + + return n; + } + + return t; + }(n, r)), d = e.memoizedState; + var i = new Map(); + + try { + return function (e, t) { + for (var n = t; n;) { + if (n.tag === a) { + var r = n.type._context; + e.has(r) || (e.set(r, r._currentValue), r._currentValue = n.memoizedProps.value); + } + + n = n.return; + } + }(i, e), e.tag === s ? function (e, t, n, r) { + var i, + a, + s = r.current; + r.current = m; + + try { + a = new Error(), e(t, n); + } finally { + i = l, l = [], r.current = s; + } + + return w(o.a.parse(a), i); + }(n.render, r, e.ref, t) : function (e, t, n) { + var r, + i, + a = n.current; + n.current = m; + + try { + i = new Error(), e(t); + } finally { + r = l, l = [], n.current = a; + } + + return w(o.a.parse(i), r); + }(n, r, t); + } finally { + d = null, function (e) { + e.forEach(function (e, t) { + return t._currentValue = e; + }); + }(i); + } + } + + function E(e, t) { + var n = null, + r = null; + + function o(e) { + var n = t.elementData.get(e), + r = t.internalInstancesById.get(e); + + if (r) { + var o = t.renderers.get(e); + + if (o) { + var i = t.reactInternals[o].renderer; + if (i && i.currentDispatcherRef) return { + elementID: e, + id: "hooksTree", + hooksTree: S(n.state === r.memoizedState ? r : r.alternate, i.currentDispatcherRef) + }; + } + } + + return null; + } + + t.on("selected", function (i) { + r = i; + var a = t.elementData.get(i), + s = null; + a && a.containsHooks && (s = o(i)), n !== s && (n = s, e.send("inspectedHooks", s)); + }), t.on("update", function (t) { + if (null !== r && null !== n && n.elementID === t.id) { + var i = o(t.id); + n !== i && (n = i, e.send("inspectedHooks", i)); + } + }); + } + + n.d(t, "default", function () { + return E; + }); + }]); + }); +},318,[],"node_modules/react-devtools-core/build/backend.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var JSInspector = { + registerAgent: function registerAgent(type) { + if (global.__registerInspectorAgent) { + global.__registerInspectorAgent(type); + } + }, + getTimestamp: function getTimestamp() { + return global.__inspectorTimestamp(); + } + }; + module.exports = JSInspector; +},319,[],"node_modules/react-native/Libraries/JSInspector/JSInspector.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var InspectorAgent = _$$_REQUIRE(_dependencyMap[0], 'InspectorAgent'); + + var JSInspector = _$$_REQUIRE(_dependencyMap[1], 'JSInspector'); + + var Map = _$$_REQUIRE(_dependencyMap[2], 'Map'); + + var XMLHttpRequest = _$$_REQUIRE(_dependencyMap[3], 'XMLHttpRequest'); + + var Interceptor = function () { + function Interceptor(agent) { + _classCallCheck(this, Interceptor); + + this._agent = agent; + this._requests = new Map(); + } + + _createClass(Interceptor, [{ + key: "getData", + value: function getData(requestId) { + return this._requests.get(requestId); + } + }, { + key: "requestSent", + value: function requestSent(id, url, method, headers) { + var requestId = String(id); + + this._requests.set(requestId, ''); + + var request = { + url: url, + method: method, + headers: headers, + initialPriority: 'Medium' + }; + var event = { + requestId: requestId, + documentURL: '', + frameId: '1', + loaderId: '1', + request: request, + timestamp: JSInspector.getTimestamp(), + initiator: { + type: 'other' + }, + type: 'Other' + }; + + this._agent.sendEvent('requestWillBeSent', event); + } + }, { + key: "responseReceived", + value: function responseReceived(id, url, status, headers) { + var requestId = String(id); + var response = { + url: url, + status: status, + statusText: String(status), + headers: headers, + requestHeaders: {}, + mimeType: this._getMimeType(headers), + connectionReused: false, + connectionId: -1, + encodedDataLength: 0, + securityState: 'unknown' + }; + var event = { + requestId: requestId, + frameId: '1', + loaderId: '1', + timestamp: JSInspector.getTimestamp(), + type: 'Other', + response: response + }; + + this._agent.sendEvent('responseReceived', event); + } + }, { + key: "dataReceived", + value: function dataReceived(id, data) { + var requestId = String(id); + var existingData = this._requests.get(requestId) || ''; + + this._requests.set(requestId, existingData.concat(data)); + + var event = { + requestId: requestId, + timestamp: JSInspector.getTimestamp(), + dataLength: data.length, + encodedDataLength: data.length + }; + + this._agent.sendEvent('dataReceived', event); + } + }, { + key: "loadingFinished", + value: function loadingFinished(id, encodedDataLength) { + var event = { + requestId: String(id), + timestamp: JSInspector.getTimestamp(), + encodedDataLength: encodedDataLength + }; + + this._agent.sendEvent('loadingFinished', event); + } + }, { + key: "loadingFailed", + value: function loadingFailed(id, error) { + var event = { + requestId: String(id), + timestamp: JSInspector.getTimestamp(), + type: 'Other', + errorText: error + }; + + this._agent.sendEvent('loadingFailed', event); + } + }, { + key: "_getMimeType", + value: function _getMimeType(headers) { + var contentType = headers['Content-Type'] || ''; + return contentType.split(';')[0]; + } + }]); + + return Interceptor; + }(); + + var NetworkAgent = function (_InspectorAgent) { + function NetworkAgent() { + _classCallCheck(this, NetworkAgent); + + return _possibleConstructorReturn(this, _getPrototypeOf(NetworkAgent).apply(this, arguments)); + } + + _createClass(NetworkAgent, [{ + key: "enable", + value: function enable(_ref) { + var maxResourceBufferSize = _ref.maxResourceBufferSize, + maxTotalBufferSize = _ref.maxTotalBufferSize; + this._interceptor = new Interceptor(this); + XMLHttpRequest.setInterceptor(this._interceptor); + } + }, { + key: "disable", + value: function disable() { + XMLHttpRequest.setInterceptor(null); + this._interceptor = null; + } + }, { + key: "getResponseBody", + value: function getResponseBody(_ref2) { + var requestId = _ref2.requestId; + return { + body: this.interceptor().getData(requestId), + base64Encoded: false + }; + } + }, { + key: "interceptor", + value: function interceptor() { + if (this._interceptor) { + return this._interceptor; + } else { + throw Error('_interceptor can not be null'); + } + } + }]); + + _inherits(NetworkAgent, _InspectorAgent); + + return NetworkAgent; + }(InspectorAgent); + + NetworkAgent.DOMAIN = 'Network'; + module.exports = NetworkAgent; +},320,[321,319,266,279],"node_modules/react-native/Libraries/JSInspector/NetworkAgent.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var InspectorAgent = function () { + function InspectorAgent(eventSender) { + _classCallCheck(this, InspectorAgent); + + this._eventSender = eventSender; + } + + _createClass(InspectorAgent, [{ + key: "sendEvent", + value: function sendEvent(name, params) { + this._eventSender(name, params); + } + }]); + + return InspectorAgent; + }(); + + module.exports = InspectorAgent; +},321,[],"node_modules/react-native/Libraries/JSInspector/InspectorAgent.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); + + var RCTEventEmitter = { + register: function register(eventEmitter) { + BatchedBridge.registerCallableModule('RCTEventEmitter', eventEmitter); + } + }; + module.exports = RCTEventEmitter; +},322,[169],"node_modules/react-native/Libraries/EventEmitter/RCTEventEmitter.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var emptyObject = {}; + + if (process.env.NODE_ENV !== 'production') { + Object.freeze(emptyObject); + } + + module.exports = emptyObject; +},323,[],"node_modules/react-native/node_modules/fbjs/lib/emptyObject.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var deepDiffer = function deepDiffer(one, two) { + var maxDepth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; + + if (maxDepth === 0) { + return true; + } + + if (one === two) { + return false; + } + + if (typeof one === 'function' && typeof two === 'function') { + return false; + } + + if (typeof one !== 'object' || one === null) { + return one !== two; + } + + if (typeof two !== 'object' || two === null) { + return true; + } + + if (one.constructor !== two.constructor) { + return true; + } + + if (Array.isArray(one)) { + var len = one.length; + + if (two.length !== len) { + return true; + } + + for (var ii = 0; ii < len; ii++) { + if (deepDiffer(one[ii], two[ii], maxDepth - 1)) { + return true; + } + } + } else { + for (var key in one) { + if (deepDiffer(one[key], two[key], maxDepth - 1)) { + return true; + } + } + + for (var twoKey in two) { + if (one[twoKey] === undefined && two[twoKey] !== undefined) { + return true; + } + } + } + + return false; + }; + + module.exports = deepDiffer; +},324,[],"node_modules/react-native/Libraries/Utilities/differ/deepDiffer.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var UIManager = _$$_REQUIRE(_dependencyMap[1], 'UIManager'); + + var inputs = new Set(); + var TextInputState = { + _currentlyFocusedID: null, + currentlyFocusedField: function currentlyFocusedField() { + return this._currentlyFocusedID; + }, + focusTextInput: function focusTextInput(textFieldID) { + if (this._currentlyFocusedID !== textFieldID && textFieldID !== null) { + this._currentlyFocusedID = textFieldID; + + if (Platform.OS === 'ios') { + UIManager.focus(textFieldID); + } else if (Platform.OS === 'android') { + UIManager.dispatchViewManagerCommand(textFieldID, UIManager.AndroidTextInput.Commands.focusTextInput, null); + } + } + }, + blurTextInput: function blurTextInput(textFieldID) { + if (this._currentlyFocusedID === textFieldID && textFieldID !== null) { + this._currentlyFocusedID = null; + + if (Platform.OS === 'ios') { + UIManager.blur(textFieldID); + } else if (Platform.OS === 'android') { + UIManager.dispatchViewManagerCommand(textFieldID, UIManager.AndroidTextInput.Commands.blurTextInput, null); + } + } + }, + registerInput: function registerInput(textFieldID) { + inputs.add(textFieldID); + }, + unregisterInput: function unregisterInput(textFieldID) { + inputs.delete(textFieldID); + }, + isTextInput: function isTextInput(textFieldID) { + return inputs.has(textFieldID); + } + }; + module.exports = TextInputState; +},325,[176,218],"node_modules/react-native/Libraries/Components/TextInput/TextInputState.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + _$$_REQUIRE(_dependencyMap[0], "InitializeCore"); + + var invariant = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"), + ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[2], "ReactNativeViewConfigRegistry"), + UIManager = _$$_REQUIRE(_dependencyMap[3], "UIManager"), + RCTEventEmitter = _$$_REQUIRE(_dependencyMap[4], "RCTEventEmitter"), + React = _$$_REQUIRE(_dependencyMap[5], "react"), + emptyObject = _$$_REQUIRE(_dependencyMap[6], "fbjs/lib/emptyObject"), + deepDiffer = _$$_REQUIRE(_dependencyMap[7], "deepDiffer"), + flattenStyle = _$$_REQUIRE(_dependencyMap[8], "flattenStyle"), + TextInputState = _$$_REQUIRE(_dependencyMap[9], "TextInputState"), + ExceptionsManager = _$$_REQUIRE(_dependencyMap[10], "ExceptionsManager"); + + function _invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + this._hasCaughtError = !1; + this._caughtError = null; + var funcArgs = Array.prototype.slice.call(arguments, 3); + + try { + func.apply(context, funcArgs); + } catch (error) { + this._caughtError = error, this._hasCaughtError = !0; + } + } + + var ReactErrorUtils = { + _caughtError: null, + _hasCaughtError: !1, + _rethrowError: null, + _hasRethrowError: !1, + invokeGuardedCallback: function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + _invokeGuardedCallback.apply(ReactErrorUtils, arguments); + }, + invokeGuardedCallbackAndCatchFirstError: function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + ReactErrorUtils.invokeGuardedCallback.apply(this, arguments); + + if (ReactErrorUtils.hasCaughtError()) { + var error = ReactErrorUtils.clearCaughtError(); + ReactErrorUtils._hasRethrowError || (ReactErrorUtils._hasRethrowError = !0, ReactErrorUtils._rethrowError = error); + } + }, + rethrowCaughtError: function rethrowCaughtError() { + return _rethrowCaughtError.apply(ReactErrorUtils, arguments); + }, + hasCaughtError: function hasCaughtError() { + return ReactErrorUtils._hasCaughtError; + }, + clearCaughtError: function clearCaughtError() { + if (ReactErrorUtils._hasCaughtError) { + var error = ReactErrorUtils._caughtError; + ReactErrorUtils._caughtError = null; + ReactErrorUtils._hasCaughtError = !1; + return error; + } + + invariant(!1, "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); + } + }; + + function _rethrowCaughtError() { + if (ReactErrorUtils._hasRethrowError) { + var error = ReactErrorUtils._rethrowError; + ReactErrorUtils._rethrowError = null; + ReactErrorUtils._hasRethrowError = !1; + throw error; + } + } + + var eventPluginOrder = null, + namesToPlugins = {}; + + function recomputePluginOrdering() { + if (eventPluginOrder) for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName], + pluginIndex = eventPluginOrder.indexOf(pluginName); + invariant(-1 < pluginIndex, "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.", pluginName); + + if (!plugins[pluginIndex]) { + invariant(pluginModule.extractEvents, "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.", pluginName); + plugins[pluginIndex] = pluginModule; + pluginIndex = pluginModule.eventTypes; + + for (var eventName in pluginIndex) { + var JSCompiler_inline_result = void 0; + var dispatchConfig = pluginIndex[eventName], + pluginModule$jscomp$0 = pluginModule, + eventName$jscomp$0 = eventName; + invariant(!eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0), "EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.", eventName$jscomp$0); + eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + + if (phasedRegistrationNames) { + for (JSCompiler_inline_result in phasedRegistrationNames) { + phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule$jscomp$0, eventName$jscomp$0); + } + + JSCompiler_inline_result = !0; + } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule$jscomp$0, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; + + invariant(JSCompiler_inline_result, "EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.", eventName, pluginName); + } + } + } + } + + function publishRegistrationName(registrationName, pluginModule) { + invariant(!registrationNameModules[registrationName], "EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.", registrationName); + registrationNameModules[registrationName] = pluginModule; + } + + var plugins = [], + eventNameDispatchConfigs = {}, + registrationNameModules = {}, + getFiberCurrentPropsFromNode = null, + getInstanceFromNode = null, + getNodeFromInstance = null; + + function executeDispatch(event, simulated, listener, inst) { + simulated = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(simulated, listener, void 0, event); + event.currentTarget = null; + } + + function executeDirectDispatch(event) { + var dispatchListener = event._dispatchListeners, + dispatchInstance = event._dispatchInstances; + invariant(!Array.isArray(dispatchListener), "executeDirectDispatch(...): Invalid `event`."); + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + dispatchListener = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return dispatchListener; + } + + function accumulateInto(current, next) { + invariant(null != next, "accumulateInto(...): Accumulated items must not be null or undefined."); + if (null == current) return next; + + if (Array.isArray(current)) { + if (Array.isArray(next)) return current.push.apply(current, next), current; + current.push(next); + return current; + } + + return Array.isArray(next) ? [current].concat(next) : [current, next]; + } + + function forEachAccumulated(arr, cb, scope) { + Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); + } + + var eventQueue = null; + + function executeDispatchesAndReleaseTopLevel(e) { + if (e) { + var dispatchListeners = e._dispatchListeners, + dispatchInstances = e._dispatchInstances; + if (Array.isArray(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) { + executeDispatch(e, !1, dispatchListeners[i], dispatchInstances[i]); + } else dispatchListeners && executeDispatch(e, !1, dispatchListeners, dispatchInstances); + e._dispatchListeners = null; + e._dispatchInstances = null; + e.isPersistent() || e.constructor.release(e); + } + } + + var injection = { + injectEventPluginOrder: function injectEventPluginOrder(injectedEventPluginOrder) { + invariant(!eventPluginOrder, "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); + eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); + recomputePluginOrdering(); + }, + injectEventPluginsByName: function injectEventPluginsByName(injectedNamesToPlugins) { + var isOrderingDirty = !1, + pluginName; + + for (pluginName in injectedNamesToPlugins) { + if (injectedNamesToPlugins.hasOwnProperty(pluginName)) { + var pluginModule = injectedNamesToPlugins[pluginName]; + namesToPlugins.hasOwnProperty(pluginName) && namesToPlugins[pluginName] === pluginModule || (invariant(!namesToPlugins[pluginName], "EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.", pluginName), namesToPlugins[pluginName] = pluginModule, isOrderingDirty = !0); + } + } + + isOrderingDirty && recomputePluginOrdering(); + } + }; + + function getListener(inst, registrationName) { + var listener = inst.stateNode; + if (!listener) return null; + var props = getFiberCurrentPropsFromNode(listener); + if (!props) return null; + listener = props[registrationName]; + + a: switch (registrationName) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst)); + inst = !props; + break a; + + default: + inst = !1; + } + + if (inst) return null; + invariant(!listener || "function" === typeof listener, "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); + return listener; + } + + function getParent(inst) { + do { + inst = inst.return; + } while (inst && 5 !== inst.tag); + + return inst ? inst : null; + } + + function traverseTwoPhase(inst, fn, arg) { + for (var path = []; inst;) { + path.push(inst), inst = getParent(inst); + } + + for (inst = path.length; 0 < inst--;) { + fn(path[inst], "captured", arg); + } + + for (inst = 0; inst < path.length; inst++) { + fn(path[inst], "bubbled", arg); + } + } + + function accumulateDirectionalDispatches(inst, phase, event) { + if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + + function accumulateTwoPhaseDispatchesSingle(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + targetInst = targetInst ? getParent(targetInst) : null; + traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); + } + } + + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + + if (inst && event && event.dispatchConfig.registrationName) { + var listener = getListener(inst, event.dispatchConfig.registrationName); + listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); + } + } + } + + var shouldBeReleasedProperties = "dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "); + + function functionThatReturnsTrue() { + return !0; + } + + function functionThatReturnsFalse() { + return !1; + } + + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + dispatchConfig = this.constructor.Interface; + + for (var propName in dispatchConfig) { + dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); + } + + this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + + _extends(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = !0; + var event = this.nativeEvent; + event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); + }, + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); + }, + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; + }, + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface, + propName; + + for (propName in Interface) { + this[propName] = null; + } + + for (Interface = 0; Interface < shouldBeReleasedProperties.length; Interface++) { + this[shouldBeReleasedProperties[Interface]] = null; + } + } + }); + + SyntheticEvent.Interface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + + SyntheticEvent.extend = function (Interface) { + function E() {} + + function Class() { + return Super.apply(this, arguments); + } + + var Super = this; + E.prototype = Super.prototype; + var prototype = new E(); + + _extends(prototype, Class.prototype); + + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = _extends({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + + addEventPoolingTo(SyntheticEvent); + + function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + if (this.eventPool.length) { + var instance = this.eventPool.pop(); + this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + + return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + + function releasePooledEvent(event) { + invariant(event instanceof this, "Trying to release an event instance into a pool of a different type."); + event.destructor(); + 10 > this.eventPool.length && this.eventPool.push(event); + } + + function addEventPoolingTo(EventConstructor) { + EventConstructor.eventPool = []; + EventConstructor.getPooled = getPooledEvent; + EventConstructor.release = releasePooledEvent; + } + + var ResponderSyntheticEvent = SyntheticEvent.extend({ + touchHistory: function touchHistory() { + return null; + } + }); + + function isStartish(topLevelType) { + return "topTouchStart" === topLevelType; + } + + function isMoveish(topLevelType) { + return "topTouchMove" === topLevelType; + } + + var startDependencies = ["topTouchStart"], + moveDependencies = ["topTouchMove"], + endDependencies = ["topTouchCancel", "topTouchEnd"], + touchBank = [], + touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; + } + + function getTouchIdentifier(_ref) { + _ref = _ref.identifier; + invariant(null != _ref, "Touch object is missing identifier."); + return _ref; + } + + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch), + touchRecord = touchBank[identifier]; + touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { + touchActive: !0, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }, touchBank[identifier] = touchRecord); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord ? (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)) : console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord ? (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)) : console.error("Cannot record touch end without a touch start.\nTouch End: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + + function printTouch(touch) { + return JSON.stringify({ + identifier: touch.identifier, + pageX: touch.pageX, + pageY: touch.pageY, + timestamp: timestampForTouch(touch) + }); + } + + function printTouchBank() { + var printed = JSON.stringify(touchBank.slice(0, 20)); + 20 < touchBank.length && (printed += " (original size: " + touchBank.length + ")"); + return printed; + } + + var ResponderTouchHistoryStore = { + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) { + if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { + touchHistory.indexOfSingleActiveTouch = topLevelType; + break; + } + } + }, + touchHistory: touchHistory + }; + + function accumulate(current, next) { + invariant(null != next, "accumulate(...): Accumulated items must be not be null or undefined."); + return null == current ? next : Array.isArray(current) ? current.concat(next) : Array.isArray(next) ? [current].concat(next) : [current, next]; + } + + var responderInst = null, + trackedTouchCount = 0; + + function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + + var eventTypes$1 = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies + }, + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: ["topScroll"] + }, + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: ["topSelectionChange"] + }, + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies + }, + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] + } + }, + ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes$1, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."), null; + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + + if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { + var JSCompiler_temp = isStartish(topLevelType) ? eventTypes$1.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes$1.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes$1.selectionChangeShouldSetResponder : eventTypes$1.scrollShouldSetResponder; + if (responderInst) b: { + var JSCompiler_temp$jscomp$0 = responderInst; + + for (var depthA = 0, tempA = JSCompiler_temp$jscomp$0; tempA; tempA = getParent(tempA)) { + depthA++; + } + + tempA = 0; + + for (var tempB = targetInst; tempB; tempB = getParent(tempB)) { + tempA++; + } + + for (; 0 < depthA - tempA;) { + JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0), depthA--; + } + + for (; 0 < tempA - depthA;) { + targetInst = getParent(targetInst), tempA--; + } + + for (; depthA--;) { + if (JSCompiler_temp$jscomp$0 === targetInst || JSCompiler_temp$jscomp$0 === targetInst.alternate) break b; + JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0); + targetInst = getParent(targetInst); + } + + JSCompiler_temp$jscomp$0 = null; + } else JSCompiler_temp$jscomp$0 = targetInst; + targetInst = JSCompiler_temp$jscomp$0 === responderInst; + JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(JSCompiler_temp, JSCompiler_temp$jscomp$0, nativeEvent, nativeEventTarget); + JSCompiler_temp$jscomp$0.touchHistory = ResponderTouchHistoryStore.touchHistory; + targetInst ? forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateTwoPhaseDispatchesSingle); + + b: { + JSCompiler_temp = JSCompiler_temp$jscomp$0._dispatchListeners; + targetInst = JSCompiler_temp$jscomp$0._dispatchInstances; + if (Array.isArray(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !JSCompiler_temp$jscomp$0.isPropagationStopped(); depthA++) { + if (JSCompiler_temp[depthA](JSCompiler_temp$jscomp$0, targetInst[depthA])) { + JSCompiler_temp = targetInst[depthA]; + break b; + } + } else if (JSCompiler_temp && JSCompiler_temp(JSCompiler_temp$jscomp$0, targetInst)) { + JSCompiler_temp = targetInst; + break b; + } + JSCompiler_temp = null; + } + + JSCompiler_temp$jscomp$0._dispatchInstances = null; + JSCompiler_temp$jscomp$0._dispatchListeners = null; + JSCompiler_temp$jscomp$0.isPersistent() || JSCompiler_temp$jscomp$0.constructor.release(JSCompiler_temp$jscomp$0); + JSCompiler_temp && JSCompiler_temp !== responderInst ? (JSCompiler_temp$jscomp$0 = void 0, targetInst = ResponderSyntheticEvent.getPooled(eventTypes$1.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), targetInst.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(targetInst, accumulateDirectDispatchesSingle), depthA = !0 === executeDirectDispatch(targetInst), responderInst ? (tempA = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), tempA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(tempA, accumulateDirectDispatchesSingle), tempB = !tempA._dispatchListeners || executeDirectDispatch(tempA), tempA.isPersistent() || tempA.constructor.release(tempA), tempB ? (tempA = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminate, responderInst, nativeEvent, nativeEventTarget), tempA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(tempA, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [targetInst, tempA]), changeResponder(JSCompiler_temp, depthA)) : (JSCompiler_temp = ResponderSyntheticEvent.getPooled(eventTypes$1.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), JSCompiler_temp.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(JSCompiler_temp, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, JSCompiler_temp))) : (JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, targetInst), changeResponder(JSCompiler_temp, depthA)), JSCompiler_temp = JSCompiler_temp$jscomp$0) : JSCompiler_temp = null; + } else JSCompiler_temp = null; + + JSCompiler_temp$jscomp$0 = responderInst && isStartish(topLevelType); + targetInst = responderInst && isMoveish(topLevelType); + depthA = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); + if (JSCompiler_temp$jscomp$0 = JSCompiler_temp$jscomp$0 ? eventTypes$1.responderStart : targetInst ? eventTypes$1.responderMove : depthA ? eventTypes$1.responderEnd : null) JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(JSCompiler_temp$jscomp$0, responderInst, nativeEvent, nativeEventTarget), JSCompiler_temp$jscomp$0.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateDirectDispatchesSingle), JSCompiler_temp = accumulate(JSCompiler_temp, JSCompiler_temp$jscomp$0); + JSCompiler_temp$jscomp$0 = responderInst && "topTouchCancel" === topLevelType; + if (topLevelType = responderInst && !JSCompiler_temp$jscomp$0 && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { + if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (targetInst = 0; targetInst < topLevelType.length; targetInst++) { + if (depthA = topLevelType[targetInst].target, null !== depthA && void 0 !== depthA && 0 !== depthA) { + tempA = getInstanceFromNode(depthA); + + b: { + for (depthA = responderInst; tempA;) { + if (depthA === tempA || depthA === tempA.alternate) { + depthA = !0; + break b; + } + + tempA = getParent(tempA); + } + + depthA = !1; + } + + if (depthA) { + topLevelType = !1; + break a; + } + } + } + topLevelType = !0; + } + if (topLevelType = JSCompiler_temp$jscomp$0 ? eventTypes$1.responderTerminate : topLevelType ? eventTypes$1.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp = accumulate(JSCompiler_temp, nativeEvent), changeResponder(null); + return JSCompiler_temp; + }, + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + } + }, + customBubblingEventTypes$1 = ReactNativeViewConfigRegistry.customBubblingEventTypes, + customDirectEventTypes$1 = ReactNativeViewConfigRegistry.customDirectEventTypes, + ReactNativeBridgeEventPlugin = { + eventTypes: ReactNativeViewConfigRegistry.eventTypes, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (null == targetInst) return null; + var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType], + directDispatchConfig = customDirectEventTypes$1[topLevelType]; + invariant(bubbleDispatchConfig || directDispatchConfig, 'Unsupported top level event type "%s" dispatched', topLevelType); + topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + if (bubbleDispatchConfig) forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle);else return null; + return topLevelType; + } + }; + injection.injectEventPluginOrder(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); + injection.injectEventPluginsByName({ + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin + }); + var instanceCache = {}, + instanceProps = {}; + + function uncacheFiberNode(tag) { + delete instanceCache[tag]; + delete instanceProps[tag]; + } + + function getInstanceFromTag(tag) { + return instanceCache[tag] || null; + } + + var ReactNativeComponentTree = { + precacheFiberNode: function precacheFiberNode(hostInst, tag) { + instanceCache[tag] = hostInst; + }, + uncacheFiberNode: uncacheFiberNode, + getClosestInstanceFromNode: getInstanceFromTag, + getInstanceFromNode: getInstanceFromTag, + getNodeFromInstance: function getNodeFromInstance(inst) { + var tag = inst.stateNode._nativeTag; + void 0 === tag && (tag = inst.stateNode.canonical._nativeTag); + invariant(tag, "All native instances should have a tag."); + return tag; + }, + getFiberCurrentPropsFromNode: function getFiberCurrentPropsFromNode(stateNode) { + return instanceProps[stateNode._nativeTag] || null; + }, + updateFiberProps: function updateFiberProps(tag, props) { + instanceProps[tag] = props; + } + }, + restoreTarget = null, + restoreQueue = null; + + function restoreStateOfTarget(target) { + if (target = getInstanceFromNode(target)) { + invariant(null, "Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue."); + var props = getFiberCurrentPropsFromNode(target.stateNode); + null.restoreControlledState(target.stateNode, target.type, props); + } + } + + function _batchedUpdates(fn, bookkeeping) { + return fn(bookkeeping); + } + + function _flushInteractiveUpdates() {} + + var isBatching = !1; + + function batchedUpdates(fn, bookkeeping) { + if (isBatching) return fn(bookkeeping); + isBatching = !0; + + try { + return _batchedUpdates(fn, bookkeeping); + } finally { + if (isBatching = !1, null !== restoreTarget || null !== restoreQueue) if (_flushInteractiveUpdates(), restoreTarget && (bookkeeping = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(bookkeeping), fn)) for (bookkeeping = 0; bookkeeping < fn.length; bookkeeping++) { + restoreStateOfTarget(fn[bookkeeping]); + } + } + } + + var EMPTY_NATIVE_EVENT = {}; + + function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { + var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT, + inst = getInstanceFromTag(rootNodeID); + batchedUpdates(function () { + var events = nativeEvent.target; + + for (var events$jscomp$0 = null, i = 0; i < plugins.length; i++) { + var possiblePlugin = plugins[i]; + possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, inst, nativeEvent, events)) && (events$jscomp$0 = accumulateInto(events$jscomp$0, possiblePlugin)); + } + + events = events$jscomp$0; + null !== events && (eventQueue = accumulateInto(eventQueue, events)); + events = eventQueue; + eventQueue = null; + events && (forEachAccumulated(events, executeDispatchesAndReleaseTopLevel), invariant(!eventQueue, "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."), ReactErrorUtils.rethrowCaughtError()); + }); + } + + RCTEventEmitter.register({ + getListener: getListener, + registrationNames: registrationNameModules, + _receiveRootNodeIDEvent: _receiveRootNodeIDEvent, + receiveEvent: function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { + _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); + }, + receiveTouches: function receiveTouches(eventTopLevelType, touches, changedIndices) { + if ("topTouchEnd" === eventTopLevelType || "topTouchCancel" === eventTopLevelType) { + var JSCompiler_temp = []; + + for (var i = 0; i < changedIndices.length; i++) { + var index = changedIndices[i]; + JSCompiler_temp.push(touches[index]); + touches[index] = null; + } + + for (i = changedIndices = 0; i < touches.length; i++) { + index = touches[i], null !== index && (touches[changedIndices++] = index); + } + + touches.length = changedIndices; + } else for (JSCompiler_temp = [], i = 0; i < changedIndices.length; i++) { + JSCompiler_temp.push(touches[changedIndices[i]]); + } + + for (changedIndices = 0; changedIndices < JSCompiler_temp.length; changedIndices++) { + i = JSCompiler_temp[changedIndices]; + i.changedTouches = JSCompiler_temp; + i.touches = touches; + index = null; + var target = i.target; + null === target || void 0 === target || 1 > target || (index = target); + + _receiveRootNodeIDEvent(index, eventTopLevelType, i); + } + } + }); + getFiberCurrentPropsFromNode = ReactNativeComponentTree.getFiberCurrentPropsFromNode; + getInstanceFromNode = ReactNativeComponentTree.getInstanceFromNode; + getNodeFromInstance = ReactNativeComponentTree.getNodeFromInstance; + ResponderEventPlugin.injection.injectGlobalResponderHandler({ + onChange: function onChange(from, to, blockNativeResponder) { + null !== to ? UIManager.setJSResponder(to.stateNode._nativeTag, blockNativeResponder) : UIManager.clearJSResponder(); + } + }); + var ReactCurrentOwner = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, + hasSymbol = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.for : "@@for"), + REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 60103, + REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 60106, + REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 60107, + REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 60108, + REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 60114, + REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 60109, + REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 60110, + REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 60111, + REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 60112, + REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout") : 60113, + MAYBE_ITERATOR_SYMBOL = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); + + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "undefined" === typeof maybeIterable) return null; + maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + + function getComponentName(fiber) { + var type = fiber.type; + if ("function" === typeof type) return type.displayName || type.name; + if ("string" === typeof type) return type; + + switch (type) { + case REACT_ASYNC_MODE_TYPE: + return "AsyncMode"; + + case REACT_CONTEXT_TYPE: + return "Context.Consumer"; + + case REACT_FRAGMENT_TYPE: + return "ReactFragment"; + + case REACT_PORTAL_TYPE: + return "ReactPortal"; + + case REACT_PROFILER_TYPE: + return "Profiler(" + fiber.pendingProps.id + ")"; + + case REACT_PROVIDER_TYPE: + return "Context.Provider"; + + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + + case REACT_TIMEOUT_TYPE: + return "Timeout"; + } + + if ("object" === typeof type && null !== type) switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return fiber = type.render.displayName || type.render.name || "", "" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"; + } + return null; + } + + function isFiberMountedImpl(fiber) { + var node = fiber; + if (fiber.alternate) for (; node.return;) { + node = node.return; + } else { + if (0 !== (node.effectTag & 2)) return 1; + + for (; node.return;) { + if (node = node.return, 0 !== (node.effectTag & 2)) return 1; + } + } + return 3 === node.tag ? 2 : 3; + } + + function assertIsMounted(fiber) { + invariant(2 === isFiberMountedImpl(fiber), "Unable to find node on an unmounted component."); + } + + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) return alternate = isFiberMountedImpl(fiber), invariant(3 !== alternate, "Unable to find node on an unmounted component."), 1 === alternate ? null : fiber; + + for (var a = fiber, b = alternate;;) { + var parentA = a.return, + parentB = parentA ? parentA.alternate : null; + if (!parentA || !parentB) break; + + if (parentA.child === parentB.child) { + for (var child = parentA.child; child;) { + if (child === a) return assertIsMounted(parentA), fiber; + if (child === b) return assertIsMounted(parentA), alternate; + child = child.sibling; + } + + invariant(!1, "Unable to find node on an unmounted component."); + } + + if (a.return !== b.return) a = parentA, b = parentB;else { + child = !1; + + for (var _child = parentA.child; _child;) { + if (_child === a) { + child = !0; + a = parentA; + b = parentB; + break; + } + + if (_child === b) { + child = !0; + b = parentA; + a = parentB; + break; + } + + _child = _child.sibling; + } + + if (!child) { + for (_child = parentB.child; _child;) { + if (_child === a) { + child = !0; + a = parentB; + b = parentA; + break; + } + + if (_child === b) { + child = !0; + b = parentB; + a = parentA; + break; + } + + _child = _child.sibling; + } + + invariant(child, "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); + } + } + invariant(a.alternate === b, "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); + } + + invariant(3 === a.tag, "Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + if (!parent) return null; + + for (var node = parent;;) { + if (5 === node.tag || 6 === node.tag) return node; + if (node.child) node.child.return = node, node = node.child;else { + if (node === parent) break; + + for (; !node.sibling;) { + if (!node.return || node.return === parent) return null; + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + return null; + } + + function findCurrentHostFiberWithNoPortals(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + if (!parent) return null; + + for (var node = parent;;) { + if (5 === node.tag || 6 === node.tag) return node; + if (node.child && 4 !== node.tag) node.child.return = node, node = node.child;else { + if (node === parent) break; + + for (; !node.sibling;) { + if (!node.return || node.return === parent) return null; + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + return null; + } + + var emptyObject$1 = {}, + removedKeys = null, + removedKeyCount = 0; + + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (Array.isArray(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) { + restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); + } else if (node && 0 < removedKeyCount) for (i in removedKeys) { + if (removedKeys[i]) { + var _nextProp = node[i]; + + if (void 0 !== _nextProp) { + var attributeConfig = validAttributes[i]; + + if (attributeConfig) { + "function" === typeof _nextProp && (_nextProp = !0); + "undefined" === typeof _nextProp && (_nextProp = null); + if ("object" !== typeof attributeConfig) updatePayload[i] = _nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) _nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(_nextProp) : _nextProp, updatePayload[i] = _nextProp; + removedKeys[i] = !1; + removedKeyCount--; + } + } + } + } + } + + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) return updatePayload; + if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; + if (!Array.isArray(prevProp) && !Array.isArray(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + + if (Array.isArray(prevProp) && Array.isArray(nextProp)) { + var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, + i; + + for (i = 0; i < minLength; i++) { + updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); + } + + for (; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + + for (; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + + return updatePayload; + } + + return Array.isArray(prevProp) ? diffProperties(updatePayload, flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, flattenStyle(nextProp), validAttributes); + } + + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) return updatePayload; + if (!Array.isArray(nextProp)) return diffProperties(updatePayload, emptyObject$1, nextProp, validAttributes); + + for (var i = 0; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + + return updatePayload; + } + + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) return updatePayload; + if (!Array.isArray(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject$1, validAttributes); + + for (var i = 0; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + + return updatePayload; + } + + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig, propKey; + + for (propKey in nextProps) { + if (attributeConfig = validAttributes[propKey]) { + var prevProp = prevProps[propKey]; + var nextProp = nextProps[propKey]; + "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); + "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); + removedKeys && (removedKeys[propKey] = !1); + if (updatePayload && void 0 !== updatePayload[propKey]) { + if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { + if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; + } + } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) ("object" !== typeof nextProp || null === nextProp || deepDiffer(prevProp, nextProp)) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { + if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : "object" !== typeof nextProp || null === nextProp || deepDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; + } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); + } + } + + for (var _propKey in prevProps) { + void 0 === nextProps[_propKey] && (!(attributeConfig = validAttributes[_propKey]) || updatePayload && void 0 !== updatePayload[_propKey] || (prevProp = prevProps[_propKey], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[_propKey] = null, removedKeys || (removedKeys = {}), removedKeys[_propKey] || (removedKeys[_propKey] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); + } + + return updatePayload; + } + + function mountSafeCallback(context, callback) { + return function () { + if (callback) { + if ("boolean" === typeof context.__isMounted) { + if (!context.__isMounted) return; + } else if ("function" === typeof context.isMounted && !context.isMounted()) return; + + return callback.apply(context, arguments); + } + }; + } + + var ReactNativeFiberHostComponent = function () { + function ReactNativeFiberHostComponent(tag, viewConfig) { + if (!(this instanceof ReactNativeFiberHostComponent)) throw new TypeError("Cannot call a class as a function"); + this._nativeTag = tag; + this._children = []; + this.viewConfig = viewConfig; + } + + ReactNativeFiberHostComponent.prototype.blur = function () { + TextInputState.blurTextInput(this._nativeTag); + }; + + ReactNativeFiberHostComponent.prototype.focus = function () { + TextInputState.focusTextInput(this._nativeTag); + }; + + ReactNativeFiberHostComponent.prototype.measure = function (callback) { + UIManager.measure(this._nativeTag, mountSafeCallback(this, callback)); + }; + + ReactNativeFiberHostComponent.prototype.measureInWindow = function (callback) { + UIManager.measureInWindow(this._nativeTag, mountSafeCallback(this, callback)); + }; + + ReactNativeFiberHostComponent.prototype.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(this._nativeTag, relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }; + + ReactNativeFiberHostComponent.prototype.setNativeProps = function (nativeProps) { + nativeProps = diffProperties(null, emptyObject$1, nativeProps, this.viewConfig.validAttributes); + null != nativeProps && UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, nativeProps); + }; + + return ReactNativeFiberHostComponent; + }(), + now$1 = "object" === typeof performance && "function" === typeof performance.now ? function () { + return performance.now(); + } : function () { + return Date.now(); + }, + scheduledCallback = null, + frameDeadline = 0, + frameDeadlineObject = { + timeRemaining: function timeRemaining() { + return frameDeadline - now$1(); + }, + didTimeout: !1 + }; + + function setTimeoutCallback() { + frameDeadline = now$1() + 5; + var callback = scheduledCallback; + scheduledCallback = null; + null !== callback && callback(frameDeadlineObject); + } + + function shim$1() { + invariant(!1, "The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue."); + } + + var nextReactTag = 3; + + function allocateTag() { + var tag = nextReactTag; + 1 === tag % 10 && (tag += 2); + nextReactTag = tag + 2; + return tag; + } + + function recursivelyUncacheFiberNode(node) { + "number" === typeof node ? uncacheFiberNode(node) : (uncacheFiberNode(node._nativeTag), node._children.forEach(recursivelyUncacheFiberNode)); + } + + function finalizeInitialChildren(parentInstance) { + if (0 === parentInstance._children.length) return !1; + + var nativeTags = parentInstance._children.map(function (child) { + return "number" === typeof child ? child : child._nativeTag; + }); + + UIManager.setChildren(parentInstance._nativeTag, nativeTags); + return !1; + } + + function getStackAddendumByWorkInProgressFiber(workInProgress) { + var info = ""; + + do { + a: switch (workInProgress.tag) { + case 0: + case 1: + case 2: + case 5: + var owner = workInProgress._debugOwner, + source = workInProgress._debugSource; + var JSCompiler_inline_result = getComponentName(workInProgress); + var ownerName = null; + owner && (ownerName = getComponentName(owner)); + owner = source; + JSCompiler_inline_result = "\n in " + (JSCompiler_inline_result || "Unknown") + (owner ? " (at " + owner.fileName.replace(/^.*[\\\/]/, "") + ":" + owner.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); + break a; + + default: + JSCompiler_inline_result = ""; + } + + info += JSCompiler_inline_result; + workInProgress = workInProgress.return; + } while (workInProgress); + + return info; + } + + new Set(); + var valueStack = [], + index = -1; + + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + + function pop(cursor) { + 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); + } + + function push(cursor, value) { + index++; + valueStack[index] = cursor.current; + cursor.current = value; + } + + var contextStackCursor = createCursor(emptyObject), + didPerformWorkStackCursor = createCursor(!1), + previousContext = emptyObject; + + function getUnmaskedContext(workInProgress) { + return isContextProvider(workInProgress) ? previousContext : contextStackCursor.current; + } + + function getMaskedContext(workInProgress, unmaskedContext) { + var contextTypes = workInProgress.type.contextTypes; + if (!contextTypes) return emptyObject; + var instance = workInProgress.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; + var context = {}, + key; + + for (key in contextTypes) { + context[key] = unmaskedContext[key]; + } + + instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return context; + } + + function isContextProvider(fiber) { + return 2 === fiber.tag && null != fiber.type.childContextTypes; + } + + function popContextProvider(fiber) { + isContextProvider(fiber) && (pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber)); + } + + function popTopLevelContextObject(fiber) { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + + function pushTopLevelContextObject(fiber, context, didChange) { + invariant(contextStackCursor.current === emptyObject, "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); + push(contextStackCursor, context, fiber); + push(didPerformWorkStackCursor, didChange, fiber); + } + + function processChildContext(fiber, parentContext) { + var instance = fiber.stateNode, + childContextTypes = fiber.type.childContextTypes; + if ("function" !== typeof instance.getChildContext) return parentContext; + instance = instance.getChildContext(); + + for (var contextKey in instance) { + invariant(contextKey in childContextTypes, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); + } + + return _extends({}, parentContext, instance); + } + + function pushContextProvider(workInProgress) { + if (!isContextProvider(workInProgress)) return !1; + var instance = workInProgress.stateNode; + instance = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; + previousContext = contextStackCursor.current; + push(contextStackCursor, instance, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); + return !0; + } + + function invalidateContextProvider(workInProgress, didChange) { + var instance = workInProgress.stateNode; + invariant(instance, "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); + + if (didChange) { + var mergedContext = processChildContext(workInProgress, previousContext); + instance.__reactInternalMemoizedMergedChildContext = mergedContext; + pop(didPerformWorkStackCursor, workInProgress); + pop(contextStackCursor, workInProgress); + push(contextStackCursor, mergedContext, workInProgress); + } else pop(didPerformWorkStackCursor, workInProgress); + + push(didPerformWorkStackCursor, didChange, workInProgress); + } + + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.sibling = this.child = this.return = this.stateNode = this.type = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.memoizedState = this.updateQueue = this.memoizedProps = null; + this.mode = mode; + this.effectTag = 0; + this.lastEffect = this.firstEffect = this.nextEffect = null; + this.expirationTime = 0; + this.alternate = null; + } + + function createWorkInProgress(current, pendingProps, expirationTime) { + var workInProgress = current.alternate; + null === workInProgress ? (workInProgress = new FiberNode(current.tag, pendingProps, current.key, current.mode), workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.effectTag = 0, workInProgress.nextEffect = null, workInProgress.firstEffect = null, workInProgress.lastEffect = null); + workInProgress.expirationTime = expirationTime; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + return workInProgress; + } + + function createFiberFromElement(element, mode, expirationTime) { + var type = element.type, + key = element.key; + element = element.props; + if ("function" === typeof type) var fiberTag = type.prototype && type.prototype.isReactComponent ? 2 : 0;else if ("string" === typeof type) fiberTag = 5;else switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(element.children, mode, expirationTime, key); + + case REACT_ASYNC_MODE_TYPE: + fiberTag = 11; + mode |= 3; + break; + + case REACT_STRICT_MODE_TYPE: + fiberTag = 11; + mode |= 2; + break; + + case REACT_PROFILER_TYPE: + return type = new FiberNode(15, element, key, mode | 4), type.type = REACT_PROFILER_TYPE, type.expirationTime = expirationTime, type; + + case REACT_TIMEOUT_TYPE: + fiberTag = 16; + mode |= 2; + break; + + default: + a: { + switch ("object" === typeof type && null !== type ? type.$$typeof : null) { + case REACT_PROVIDER_TYPE: + fiberTag = 13; + break a; + + case REACT_CONTEXT_TYPE: + fiberTag = 12; + break a; + + case REACT_FORWARD_REF_TYPE: + fiberTag = 14; + break a; + + default: + invariant(!1, "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", null == type ? type : typeof type, ""); + } + + fiberTag = void 0; + } + + } + mode = new FiberNode(fiberTag, element, key, mode); + mode.type = type; + mode.expirationTime = expirationTime; + return mode; + } + + function createFiberFromFragment(elements, mode, expirationTime, key) { + elements = new FiberNode(10, elements, key, mode); + elements.expirationTime = expirationTime; + return elements; + } + + function createFiberFromText(content, mode, expirationTime) { + content = new FiberNode(6, content, null, mode); + content.expirationTime = expirationTime; + return content; + } + + function createFiberFromPortal(portal, mode, expirationTime) { + mode = new FiberNode(4, null !== portal.children ? portal.children : [], portal.key, mode); + mode.expirationTime = expirationTime; + mode.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return mode; + } + + function createFiberRoot(containerInfo, isAsync, hydrate) { + isAsync = new FiberNode(3, null, null, isAsync ? 3 : 0); + containerInfo = { + current: isAsync, + containerInfo: containerInfo, + pendingChildren: null, + earliestPendingTime: 0, + latestPendingTime: 0, + earliestSuspendedTime: 0, + latestSuspendedTime: 0, + latestPingedTime: 0, + didError: !1, + pendingCommitExpirationTime: 0, + finishedWork: null, + context: null, + pendingContext: null, + hydrate: hydrate, + nextExpirationTimeToWorkOn: 0, + expirationTime: 0, + firstBatch: null, + nextScheduledRoot: null + }; + return isAsync.stateNode = containerInfo; + } + + var onCommitFiberRoot = null, + onCommitFiberUnmount = null; + + function catchErrors(fn) { + return function (arg) { + try { + return fn(arg); + } catch (err) {} + }; + } + + function injectInternals(internals) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled || !hook.supportsFiber) return !0; + + try { + var rendererID = hook.inject(internals); + onCommitFiberRoot = catchErrors(function (root) { + return hook.onCommitFiberRoot(rendererID, root); + }); + onCommitFiberUnmount = catchErrors(function (fiber) { + return hook.onCommitFiberUnmount(rendererID, fiber); + }); + } catch (err) {} + + return !0; + } + + function onCommitRoot(root) { + "function" === typeof onCommitFiberRoot && onCommitFiberRoot(root); + } + + function onCommitUnmount(fiber) { + "function" === typeof onCommitFiberUnmount && onCommitFiberUnmount(fiber); + } + + function markPendingPriorityLevel(root, expirationTime) { + root.didError = !1; + var earliestPendingTime = root.earliestPendingTime; + 0 === earliestPendingTime ? root.earliestPendingTime = root.latestPendingTime = expirationTime : earliestPendingTime > expirationTime ? root.earliestPendingTime = expirationTime : root.latestPendingTime < expirationTime && (root.latestPendingTime = expirationTime); + findNextPendingPriorityLevel(root); + } + + function findNextPendingPriorityLevel(root) { + var earliestSuspendedTime = root.earliestSuspendedTime, + earliestPendingTime = root.earliestPendingTime; + if (0 === earliestSuspendedTime) var nextExpirationTimeToWorkOn = earliestSuspendedTime = earliestPendingTime;else 0 !== earliestPendingTime ? (nextExpirationTimeToWorkOn = earliestPendingTime, earliestSuspendedTime = earliestSuspendedTime < earliestPendingTime ? earliestSuspendedTime : earliestPendingTime) : nextExpirationTimeToWorkOn = earliestSuspendedTime = root.latestPingedTime; + root.didError && (earliestSuspendedTime = 1); + root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn; + root.expirationTime = earliestSuspendedTime; + } + + var hasForceUpdate = !1; + + function createUpdateQueue(baseState) { + return { + expirationTime: 0, + baseState: baseState, + firstUpdate: null, + lastUpdate: null, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + + function cloneUpdateQueue(currentQueue) { + return { + expirationTime: currentQueue.expirationTime, + baseState: currentQueue.baseState, + firstUpdate: currentQueue.firstUpdate, + lastUpdate: currentQueue.lastUpdate, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + + function createUpdate(expirationTime) { + return { + expirationTime: expirationTime, + tag: 0, + payload: null, + callback: null, + next: null, + nextEffect: null + }; + } + + function appendUpdateToQueue(queue, update, expirationTime) { + null === queue.lastUpdate ? queue.firstUpdate = queue.lastUpdate = update : (queue.lastUpdate.next = update, queue.lastUpdate = update); + if (0 === queue.expirationTime || queue.expirationTime > expirationTime) queue.expirationTime = expirationTime; + } + + function enqueueUpdate(fiber, update, expirationTime) { + var alternate = fiber.alternate; + + if (null === alternate) { + var queue1 = fiber.updateQueue; + var queue2 = null; + null === queue1 && (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState)); + } else queue1 = fiber.updateQueue, queue2 = alternate.updateQueue, null === queue1 ? null === queue2 ? (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState), queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState)) : queue1 = fiber.updateQueue = cloneUpdateQueue(queue2) : null === queue2 && (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1)); + + null === queue2 || queue1 === queue2 ? appendUpdateToQueue(queue1, update, expirationTime) : null === queue1.lastUpdate || null === queue2.lastUpdate ? (appendUpdateToQueue(queue1, update, expirationTime), appendUpdateToQueue(queue2, update, expirationTime)) : (appendUpdateToQueue(queue1, update, expirationTime), queue2.lastUpdate = update); + } + + function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { + var workInProgressQueue = workInProgress.updateQueue; + workInProgressQueue = null === workInProgressQueue ? workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState) : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); + null === workInProgressQueue.lastCapturedUpdate ? workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update : (workInProgressQueue.lastCapturedUpdate.next = update, workInProgressQueue.lastCapturedUpdate = update); + if (0 === workInProgressQueue.expirationTime || workInProgressQueue.expirationTime > renderExpirationTime) workInProgressQueue.expirationTime = renderExpirationTime; + } + + function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { + var current = workInProgress.alternate; + null !== current && queue === current.updateQueue && (queue = workInProgress.updateQueue = cloneUpdateQueue(queue)); + return queue; + } + + function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case 1: + return workInProgress = update.payload, "function" === typeof workInProgress ? workInProgress.call(instance, prevState, nextProps) : workInProgress; + + case 3: + workInProgress.effectTag = workInProgress.effectTag & -1025 | 64; + + case 0: + workInProgress = update.payload; + nextProps = "function" === typeof workInProgress ? workInProgress.call(instance, prevState, nextProps) : workInProgress; + if (null === nextProps || void 0 === nextProps) break; + return _extends({}, prevState, nextProps); + + case 2: + hasForceUpdate = !0; + } + + return prevState; + } + + function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { + hasForceUpdate = !1; + + if (!(0 === queue.expirationTime || queue.expirationTime > renderExpirationTime)) { + queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); + + for (var newBaseState = queue.baseState, newFirstUpdate = null, newExpirationTime = 0, update = queue.firstUpdate, resultState = newBaseState; null !== update;) { + var updateExpirationTime = update.expirationTime; + + if (updateExpirationTime > renderExpirationTime) { + if (null === newFirstUpdate && (newFirstUpdate = update, newBaseState = resultState), 0 === newExpirationTime || newExpirationTime > updateExpirationTime) newExpirationTime = updateExpirationTime; + } else resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance), null !== update.callback && (workInProgress.effectTag |= 32, update.nextEffect = null, null === queue.lastEffect ? queue.firstEffect = queue.lastEffect = update : (queue.lastEffect.nextEffect = update, queue.lastEffect = update)); + + update = update.next; + } + + updateExpirationTime = null; + + for (update = queue.firstCapturedUpdate; null !== update;) { + var _updateExpirationTime = update.expirationTime; + + if (_updateExpirationTime > renderExpirationTime) { + if (null === updateExpirationTime && (updateExpirationTime = update, null === newFirstUpdate && (newBaseState = resultState)), 0 === newExpirationTime || newExpirationTime > _updateExpirationTime) newExpirationTime = _updateExpirationTime; + } else resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance), null !== update.callback && (workInProgress.effectTag |= 32, update.nextEffect = null, null === queue.lastCapturedEffect ? queue.firstCapturedEffect = queue.lastCapturedEffect = update : (queue.lastCapturedEffect.nextEffect = update, queue.lastCapturedEffect = update)); + + update = update.next; + } + + null === newFirstUpdate && (queue.lastUpdate = null); + null === updateExpirationTime ? queue.lastCapturedUpdate = null : workInProgress.effectTag |= 32; + null === newFirstUpdate && null === updateExpirationTime && (newBaseState = resultState); + queue.baseState = newBaseState; + queue.firstUpdate = newFirstUpdate; + queue.firstCapturedUpdate = updateExpirationTime; + queue.expirationTime = newExpirationTime; + workInProgress.memoizedState = resultState; + } + } + + function callCallback(callback, context) { + invariant("function" === typeof callback, "Invalid argument passed as callback. Expected a function. Instead received: %s", callback); + callback.call(context); + } + + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + null !== finishedQueue.firstCapturedUpdate && (null !== finishedQueue.lastUpdate && (finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate, finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate), finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null); + finishedWork = finishedQueue.firstEffect; + + for (finishedQueue.firstEffect = finishedQueue.lastEffect = null; null !== finishedWork;) { + var _callback3 = finishedWork.callback; + null !== _callback3 && (finishedWork.callback = null, callCallback(_callback3, instance)); + finishedWork = finishedWork.nextEffect; + } + + finishedWork = finishedQueue.firstCapturedEffect; + + for (finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; null !== finishedWork;) { + finishedQueue = finishedWork.callback, null !== finishedQueue && (finishedWork.callback = null, callCallback(finishedQueue, instance)), finishedWork = finishedWork.nextEffect; + } + } + + function createCapturedValue(value, source) { + return { + value: value, + source: source, + stack: getStackAddendumByWorkInProgressFiber(source) + }; + } + + var providerCursor = createCursor(null), + valueCursor = createCursor(null), + changedBitsCursor = createCursor(0); + + function pushProvider(providerFiber) { + var context = providerFiber.type._context; + push(changedBitsCursor, context._changedBits, providerFiber); + push(valueCursor, context._currentValue, providerFiber); + push(providerCursor, providerFiber, providerFiber); + context._currentValue = providerFiber.pendingProps.value; + context._changedBits = providerFiber.stateNode; + } + + function popProvider(providerFiber) { + var changedBits = changedBitsCursor.current, + currentValue = valueCursor.current; + pop(providerCursor, providerFiber); + pop(valueCursor, providerFiber); + pop(changedBitsCursor, providerFiber); + providerFiber = providerFiber.type._context; + providerFiber._currentValue = currentValue; + providerFiber._changedBits = changedBits; + } + + var NO_CONTEXT = {}, + contextStackCursor$1 = createCursor(NO_CONTEXT), + contextFiberStackCursor = createCursor(NO_CONTEXT), + rootInstanceStackCursor = createCursor(NO_CONTEXT); + + function requiredContext(c) { + invariant(c !== NO_CONTEXT, "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); + return c; + } + + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, NO_CONTEXT, fiber); + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, { + isInAParentText: !1 + }, fiber); + } + + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber)); + } + + var hasOwnProperty = Object.prototype.hasOwnProperty; + + function is(x, y) { + return x === y ? 0 !== x || 0 !== y || 1 / x === 1 / y : x !== x && y !== y; + } + + function shallowEqual(objA, objB) { + if (is(objA, objB)) return !0; + if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; + var keysA = Object.keys(objA), + keysB = Object.keys(objB); + if (keysA.length !== keysB.length) return !1; + + for (keysB = 0; keysB < keysA.length; keysB++) { + if (!hasOwnProperty.call(objB, keysA[keysB]) || !is(objA[keysA[keysB]], objB[keysA[keysB]])) return !1; + } + + return !0; + } + + function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { + var prevState = workInProgress.memoizedState; + getDerivedStateFromProps = getDerivedStateFromProps(nextProps, prevState); + prevState = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? prevState : _extends({}, prevState, getDerivedStateFromProps); + workInProgress.memoizedState = prevState; + workInProgress = workInProgress.updateQueue; + null !== workInProgress && 0 === workInProgress.expirationTime && (workInProgress.baseState = prevState); + } + + var classComponentUpdater = { + isMounted: function isMounted(component) { + return (component = component._reactInternalFiber) ? 2 === isFiberMountedImpl(component) : !1; + }, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + inst = inst._reactInternalFiber; + var currentTime = recalculateCurrentTime(); + currentTime = computeExpirationForFiber(currentTime, inst); + var update = createUpdate(currentTime); + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update, currentTime); + scheduleWork(inst, currentTime); + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + inst = inst._reactInternalFiber; + var currentTime = recalculateCurrentTime(); + currentTime = computeExpirationForFiber(currentTime, inst); + var update = createUpdate(currentTime); + update.tag = 1; + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update, currentTime); + scheduleWork(inst, currentTime); + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + inst = inst._reactInternalFiber; + var currentTime = recalculateCurrentTime(); + currentTime = computeExpirationForFiber(currentTime, inst); + var update = createUpdate(currentTime); + update.tag = 2; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update, currentTime); + scheduleWork(inst, currentTime); + } + }; + + function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { + var instance = workInProgress.stateNode; + workInProgress = workInProgress.type; + return "function" === typeof instance.shouldComponentUpdate ? instance.shouldComponentUpdate(newProps, newState, newContext) : workInProgress.prototype && workInProgress.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; + } + + function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { + workInProgress = instance.state; + "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, newContext); + "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, newContext); + instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + + function mountClassInstance(workInProgress, renderExpirationTime) { + var ctor = workInProgress.type, + instance = workInProgress.stateNode, + props = workInProgress.pendingProps, + unmaskedContext = getUnmaskedContext(workInProgress); + instance.props = props; + instance.state = workInProgress.memoizedState; + instance.refs = emptyObject; + instance.context = getMaskedContext(workInProgress, unmaskedContext); + unmaskedContext = workInProgress.updateQueue; + null !== unmaskedContext && (processUpdateQueue(workInProgress, unmaskedContext, props, instance, renderExpirationTime), instance.state = workInProgress.memoizedState); + unmaskedContext = workInProgress.type.getDerivedStateFromProps; + "function" === typeof unmaskedContext && (applyDerivedStateFromProps(workInProgress, unmaskedContext, props), instance.state = workInProgress.memoizedState); + "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), unmaskedContext = workInProgress.updateQueue, null !== unmaskedContext && (processUpdateQueue(workInProgress, unmaskedContext, props, instance, renderExpirationTime), instance.state = workInProgress.memoizedState)); + "function" === typeof instance.componentDidMount && (workInProgress.effectTag |= 4); + } + + var isArray$1 = Array.isArray; + + function coerceRef(returnFiber, current, element) { + returnFiber = element.ref; + + if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { + if (element._owner) { + element = element._owner; + var inst = void 0; + element && (invariant(2 === element.tag, "Stateless function components cannot have refs."), inst = element.stateNode); + invariant(inst, "Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.", returnFiber); + var stringRef = "" + returnFiber; + if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; + + current = function current(value) { + var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; + null === value ? delete refs[stringRef] : refs[stringRef] = value; + }; + + current._stringRef = stringRef; + return current; + } + + invariant("string" === typeof returnFiber, "Expected ref to be a function or a string."); + invariant(element._owner, "Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a functional component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.", returnFiber); + } + + return returnFiber; + } + + function throwOnInvalidObjectType(returnFiber, newChild) { + "textarea" !== returnFiber.type && invariant(!1, "Objects are not valid as a React child (found: %s).%s", "[object Object]" === Object.prototype.toString.call(newChild) ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild, ""); + } + + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (shouldTrackSideEffects) { + var last = returnFiber.lastEffect; + null !== last ? (last.nextEffect = childToDelete, returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; + childToDelete.nextEffect = null; + childToDelete.effectTag = 8; + } + } + + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) return null; + + for (; null !== currentFirstChild;) { + deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + } + + return null; + } + + function mapRemainingChildren(returnFiber, currentFirstChild) { + for (returnFiber = new Map(); null !== currentFirstChild;) { + null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + } + + return returnFiber; + } + + function useFiber(fiber, pendingProps, expirationTime) { + fiber = createWorkInProgress(fiber, pendingProps, expirationTime); + fiber.index = 0; + fiber.sibling = null; + return fiber; + } + + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) return lastPlacedIndex; + newIndex = newFiber.alternate; + if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.effectTag = 2, lastPlacedIndex) : newIndex; + newFiber.effectTag = 2; + return lastPlacedIndex; + } + + function placeSingleChild(newFiber) { + shouldTrackSideEffects && null === newFiber.alternate && (newFiber.effectTag = 2); + return newFiber; + } + + function updateTextNode(returnFiber, current, textContent, expirationTime) { + if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, expirationTime), current.return = returnFiber, current; + current = useFiber(current, textContent, expirationTime); + current.return = returnFiber; + return current; + } + + function updateElement(returnFiber, current, element, expirationTime) { + if (null !== current && current.type === element.type) return expirationTime = useFiber(current, element.props, expirationTime), expirationTime.ref = coerceRef(returnFiber, current, element), expirationTime.return = returnFiber, expirationTime; + expirationTime = createFiberFromElement(element, returnFiber.mode, expirationTime); + expirationTime.ref = coerceRef(returnFiber, current, element); + expirationTime.return = returnFiber; + return expirationTime; + } + + function updatePortal(returnFiber, current, portal, expirationTime) { + if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, expirationTime), current.return = returnFiber, current; + current = useFiber(current, portal.children || [], expirationTime); + current.return = returnFiber; + return current; + } + + function updateFragment(returnFiber, current, fragment, expirationTime, key) { + if (null === current || 10 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key), current.return = returnFiber, current; + current = useFiber(current, fragment, expirationTime); + current.return = returnFiber; + return current; + } + + function createChild(returnFiber, newChild, expirationTime) { + if ("string" === typeof newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, expirationTime), newChild.return = returnFiber, newChild; + + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return expirationTime = createFiberFromElement(newChild, returnFiber.mode, expirationTime), expirationTime.ref = coerceRef(returnFiber, null, newChild), expirationTime.return = returnFiber, expirationTime; + + case REACT_PORTAL_TYPE: + return newChild = createFiberFromPortal(newChild, returnFiber.mode, expirationTime), newChild.return = returnFiber, newChild; + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null), newChild.return = returnFiber, newChild; + throwOnInvalidObjectType(returnFiber, newChild); + } + + return null; + } + + function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { + var key = null !== oldFiber ? oldFiber.key : null; + if ("string" === typeof newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); + + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return newChild.key === key ? newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key) : updateElement(returnFiber, oldFiber, newChild, expirationTime) : null; + + case REACT_PORTAL_TYPE: + return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, expirationTime) : null; + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + + return null; + } + + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { + if ("string" === typeof newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, expirationTime); + + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, existingChildren, newChild.props.children, expirationTime, newChild.key) : updateElement(returnFiber, existingChildren, newChild, expirationTime); + + case REACT_PORTAL_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, expirationTime); + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, expirationTime, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + + return null; + } + + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { + for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); + + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; + } + + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; + + if (null === oldFiber) { + for (; newIdx < newChildren.length; newIdx++) { + if (oldFiber = createChild(returnFiber, newChildren[newIdx], expirationTime)) currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber; + } + + return resultingFirstChild; + } + + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { + if (nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], expirationTime)) shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber; + } + + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + return resultingFirstChild; + } + + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { + var iteratorFn = getIteratorFn(newChildrenIterable); + invariant("function" === typeof iteratorFn, "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); + newChildrenIterable = iteratorFn.call(newChildrenIterable); + invariant(null != newChildrenIterable, "An iterable object provided no iterator."); + + for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); + + if (null === newFiber) { + oldFiber || (oldFiber = nextOldFiber); + break; + } + + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; + + if (null === oldFiber) { + for (; !step.done; newIdx++, step = newChildrenIterable.next()) { + step = createChild(returnFiber, step.value, expirationTime), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + } + + return iteratorFn; + } + + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) { + step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, expirationTime), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + } + + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + return iteratorFn; + } + + return function (returnFiber, currentFirstChild, newChild, expirationTime) { + var isUnkeyedTopLevelFragment = "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key; + isUnkeyedTopLevelFragment && (newChild = newChild.props.children); + var isObject = "object" === typeof newChild && null !== newChild; + if (isObject) switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + a: { + isObject = newChild.key; + + for (isUnkeyedTopLevelFragment = currentFirstChild; null !== isUnkeyedTopLevelFragment;) { + if (isUnkeyedTopLevelFragment.key === isObject) { + if (10 === isUnkeyedTopLevelFragment.tag ? newChild.type === REACT_FRAGMENT_TYPE : isUnkeyedTopLevelFragment.type === newChild.type) { + deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment.sibling); + currentFirstChild = useFiber(isUnkeyedTopLevelFragment, newChild.type === REACT_FRAGMENT_TYPE ? newChild.props.children : newChild.props, expirationTime); + currentFirstChild.ref = coerceRef(returnFiber, isUnkeyedTopLevelFragment, newChild); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } else { + deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment); + break; + } + } else deleteChild(returnFiber, isUnkeyedTopLevelFragment); + isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling; + } + + newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, expirationTime, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (expirationTime = createFiberFromElement(newChild, returnFiber.mode, expirationTime), expirationTime.ref = coerceRef(returnFiber, currentFirstChild, newChild), expirationTime.return = returnFiber, returnFiber = expirationTime); + } + + return placeSingleChild(returnFiber); + + case REACT_PORTAL_TYPE: + a: { + for (isUnkeyedTopLevelFragment = newChild.key; null !== currentFirstChild;) { + if (currentFirstChild.key === isUnkeyedTopLevelFragment) { + if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + currentFirstChild = useFiber(currentFirstChild, newChild.children || [], expirationTime); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } else { + deleteRemainingChildren(returnFiber, currentFirstChild); + break; + } + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; + } + + currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + } + + return placeSingleChild(returnFiber); + } + if ("string" === typeof newChild || "number" === typeof newChild) return newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild, expirationTime), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, expirationTime), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber); + if (isArray$1(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); + if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); + isObject && throwOnInvalidObjectType(returnFiber, newChild); + if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment) switch (returnFiber.tag) { + case 2: + case 1: + expirationTime = returnFiber.type, invariant(!1, "%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.", expirationTime.displayName || expirationTime.name || "Component"); + } + return deleteRemainingChildren(returnFiber, currentFirstChild); + }; + } + + var reconcileChildFibers = ChildReconciler(!0), + mountChildFibers = ChildReconciler(!1), + hydrationParentFiber = null, + nextHydratableInstance = null, + isHydrating = !1; + + function tryHydrate(fiber, nextInstance) { + switch (fiber.tag) { + case 5: + return nextInstance = shim$1(nextInstance, fiber.type, fiber.pendingProps), null !== nextInstance ? (fiber.stateNode = nextInstance, !0) : !1; + + case 6: + return nextInstance = shim$1(nextInstance, fiber.pendingProps), null !== nextInstance ? (fiber.stateNode = nextInstance, !0) : !1; + + default: + return !1; + } + } + + function tryToClaimNextHydratableInstance(fiber$jscomp$0) { + if (isHydrating) { + var nextInstance = nextHydratableInstance; + + if (nextInstance) { + var firstAttemptedInstance = nextInstance; + + if (!tryHydrate(fiber$jscomp$0, nextInstance)) { + nextInstance = shim$1(firstAttemptedInstance); + + if (!nextInstance || !tryHydrate(fiber$jscomp$0, nextInstance)) { + fiber$jscomp$0.effectTag |= 2; + isHydrating = !1; + hydrationParentFiber = fiber$jscomp$0; + return; + } + + var returnFiber = hydrationParentFiber, + fiber = new FiberNode(5, null, null, 0); + fiber.type = "DELETED"; + fiber.stateNode = firstAttemptedInstance; + fiber.return = returnFiber; + fiber.effectTag = 8; + null !== returnFiber.lastEffect ? (returnFiber.lastEffect.nextEffect = fiber, returnFiber.lastEffect = fiber) : returnFiber.firstEffect = returnFiber.lastEffect = fiber; + } + + hydrationParentFiber = fiber$jscomp$0; + nextHydratableInstance = shim$1(nextInstance); + } else fiber$jscomp$0.effectTag |= 2, isHydrating = !1, hydrationParentFiber = fiber$jscomp$0; + } + } + + function reconcileChildren(current, workInProgress, nextChildren) { + reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); + } + + function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { + workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); + } + + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.effectTag |= 128; + } + + function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { + markRef(current, workInProgress); + var didCaptureError = 0 !== (workInProgress.effectTag & 64); + if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, !1), bailoutOnAlreadyFinishedWork(current, workInProgress); + shouldUpdate = workInProgress.stateNode; + ReactCurrentOwner.current = workInProgress; + var nextChildren = didCaptureError ? null : shouldUpdate.render(); + workInProgress.effectTag |= 1; + didCaptureError && (reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime), workInProgress.child = null); + reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime); + workInProgress.memoizedState = shouldUpdate.state; + workInProgress.memoizedProps = shouldUpdate.props; + hasContext && invalidateContextProvider(workInProgress, !0); + return workInProgress.child; + } + + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); + pushHostContainer(workInProgress, root.containerInfo); + } + + function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { + var fiber = workInProgress.child; + null !== fiber && (fiber.return = workInProgress); + + for (; null !== fiber;) { + switch (fiber.tag) { + case 12: + var nextFiber = fiber.stateNode | 0; + + if (fiber.type === context && 0 !== (nextFiber & changedBits)) { + for (nextFiber = fiber; null !== nextFiber;) { + var alternate = nextFiber.alternate; + if (0 === nextFiber.expirationTime || nextFiber.expirationTime > renderExpirationTime) nextFiber.expirationTime = renderExpirationTime, null !== alternate && (0 === alternate.expirationTime || alternate.expirationTime > renderExpirationTime) && (alternate.expirationTime = renderExpirationTime);else if (null !== alternate && (0 === alternate.expirationTime || alternate.expirationTime > renderExpirationTime)) alternate.expirationTime = renderExpirationTime;else break; + nextFiber = nextFiber.return; + } + + nextFiber = null; + } else nextFiber = fiber.child; + + break; + + case 13: + nextFiber = fiber.type === workInProgress.type ? null : fiber.child; + break; + + default: + nextFiber = fiber.child; + } + + if (null !== nextFiber) nextFiber.return = fiber;else for (nextFiber = fiber; null !== nextFiber;) { + if (nextFiber === workInProgress) { + nextFiber = null; + break; + } + + fiber = nextFiber.sibling; + + if (null !== fiber) { + fiber.return = nextFiber.return; + nextFiber = fiber; + break; + } + + nextFiber = nextFiber.return; + } + fiber = nextFiber; + } + } + + function updateContextProvider(current, workInProgress, renderExpirationTime) { + var context = workInProgress.type._context, + newProps = workInProgress.pendingProps, + oldProps = workInProgress.memoizedProps, + canBailOnProps = !0; + if (didPerformWorkStackCursor.current) canBailOnProps = !1;else if (oldProps === newProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); + var newValue = newProps.value; + workInProgress.memoizedProps = newProps; + if (null === oldProps) newValue = 1073741823;else if (oldProps.value === newProps.value) { + if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); + newValue = 0; + } else { + var oldValue = oldProps.value; + + if (oldValue === newValue && (0 !== oldValue || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { + if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); + newValue = 0; + } else if (newValue = "function" === typeof context._calculateChangedBits ? context._calculateChangedBits(oldValue, newValue) : 1073741823, newValue |= 0, 0 === newValue) { + if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); + } else propagateContextChange(workInProgress, context, newValue, renderExpirationTime); + } + workInProgress.stateNode = newValue; + pushProvider(workInProgress); + reconcileChildren(current, workInProgress, newProps.children); + return workInProgress.child; + } + + function bailoutOnAlreadyFinishedWork(current, workInProgress) { + invariant(null === current || workInProgress.child === current.child, "Resuming work not yet implemented."); + + if (null !== workInProgress.child) { + current = workInProgress.child; + var newChild = createWorkInProgress(current, current.pendingProps, current.expirationTime); + workInProgress.child = newChild; + + for (newChild.return = workInProgress; null !== current.sibling;) { + current = current.sibling, newChild = newChild.sibling = createWorkInProgress(current, current.pendingProps, current.expirationTime), newChild.return = workInProgress; + } + + newChild.sibling = null; + } + + return workInProgress.child; + } + + function beginWork(current, workInProgress, renderExpirationTime) { + if (0 === workInProgress.expirationTime || workInProgress.expirationTime > renderExpirationTime) { + switch (workInProgress.tag) { + case 3: + pushHostRootContext(workInProgress); + break; + + case 2: + pushContextProvider(workInProgress); + break; + + case 4: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + + case 13: + pushProvider(workInProgress); + } + + return null; + } + + switch (workInProgress.tag) { + case 0: + invariant(null === current, "An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue."); + var fn = workInProgress.type, + props = workInProgress.pendingProps, + unmaskedContext = getUnmaskedContext(workInProgress); + unmaskedContext = getMaskedContext(workInProgress, unmaskedContext); + fn = fn(props, unmaskedContext); + workInProgress.effectTag |= 1; + "object" === typeof fn && null !== fn && "function" === typeof fn.render && void 0 === fn.$$typeof ? (unmaskedContext = workInProgress.type, workInProgress.tag = 2, workInProgress.memoizedState = null !== fn.state && void 0 !== fn.state ? fn.state : null, unmaskedContext = unmaskedContext.getDerivedStateFromProps, "function" === typeof unmaskedContext && applyDerivedStateFromProps(workInProgress, unmaskedContext, props), props = pushContextProvider(workInProgress), fn.updater = classComponentUpdater, workInProgress.stateNode = fn, fn._reactInternalFiber = workInProgress, mountClassInstance(workInProgress, renderExpirationTime), current = finishClassComponent(current, workInProgress, !0, props, renderExpirationTime)) : (workInProgress.tag = 1, reconcileChildren(current, workInProgress, fn), workInProgress.memoizedProps = props, current = workInProgress.child); + return current; + + case 1: + return props = workInProgress.type, renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime ? (fn = getUnmaskedContext(workInProgress), fn = getMaskedContext(workInProgress, fn), props = props(renderExpirationTime, fn), workInProgress.effectTag |= 1, reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 2: + props = pushContextProvider(workInProgress); + if (null === current) { + if (null === workInProgress.stateNode) { + var props$jscomp$0 = workInProgress.pendingProps, + ctor = workInProgress.type; + fn = getUnmaskedContext(workInProgress); + var needsContext = 2 === workInProgress.tag && null != workInProgress.type.contextTypes; + unmaskedContext = needsContext ? getMaskedContext(workInProgress, fn) : emptyObject; + props$jscomp$0 = new ctor(props$jscomp$0, unmaskedContext); + workInProgress.memoizedState = null !== props$jscomp$0.state && void 0 !== props$jscomp$0.state ? props$jscomp$0.state : null; + props$jscomp$0.updater = classComponentUpdater; + workInProgress.stateNode = props$jscomp$0; + props$jscomp$0._reactInternalFiber = workInProgress; + needsContext && (needsContext = workInProgress.stateNode, needsContext.__reactInternalMemoizedUnmaskedChildContext = fn, needsContext.__reactInternalMemoizedMaskedChildContext = unmaskedContext); + mountClassInstance(workInProgress, renderExpirationTime); + fn = !0; + } else { + ctor = workInProgress.type; + fn = workInProgress.stateNode; + needsContext = workInProgress.memoizedProps; + unmaskedContext = workInProgress.pendingProps; + fn.props = needsContext; + var oldContext = fn.context; + props$jscomp$0 = getUnmaskedContext(workInProgress); + props$jscomp$0 = getMaskedContext(workInProgress, props$jscomp$0); + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + (ctor = "function" === typeof getDerivedStateFromProps || "function" === typeof fn.getSnapshotBeforeUpdate) || "function" !== typeof fn.UNSAFE_componentWillReceiveProps && "function" !== typeof fn.componentWillReceiveProps || (needsContext !== unmaskedContext || oldContext !== props$jscomp$0) && callComponentWillReceiveProps(workInProgress, fn, unmaskedContext, props$jscomp$0); + hasForceUpdate = !1; + var oldState = workInProgress.memoizedState; + oldContext = fn.state = oldState; + var updateQueue = workInProgress.updateQueue; + null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, unmaskedContext, fn, renderExpirationTime), oldContext = workInProgress.memoizedState); + needsContext !== unmaskedContext || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, unmaskedContext), oldContext = workInProgress.memoizedState), (needsContext = hasForceUpdate || checkShouldComponentUpdate(workInProgress, needsContext, unmaskedContext, oldState, oldContext, props$jscomp$0)) ? (ctor || "function" !== typeof fn.UNSAFE_componentWillMount && "function" !== typeof fn.componentWillMount || ("function" === typeof fn.componentWillMount && fn.componentWillMount(), "function" === typeof fn.UNSAFE_componentWillMount && fn.UNSAFE_componentWillMount()), "function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4)) : ("function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4), workInProgress.memoizedProps = unmaskedContext, workInProgress.memoizedState = oldContext), fn.props = unmaskedContext, fn.state = oldContext, fn.context = props$jscomp$0, fn = needsContext) : ("function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4), fn = !1); + } + } else ctor = workInProgress.type, fn = workInProgress.stateNode, unmaskedContext = workInProgress.memoizedProps, needsContext = workInProgress.pendingProps, fn.props = unmaskedContext, oldContext = fn.context, props$jscomp$0 = getUnmaskedContext(workInProgress), props$jscomp$0 = getMaskedContext(workInProgress, props$jscomp$0), getDerivedStateFromProps = ctor.getDerivedStateFromProps, (ctor = "function" === typeof getDerivedStateFromProps || "function" === typeof fn.getSnapshotBeforeUpdate) || "function" !== typeof fn.UNSAFE_componentWillReceiveProps && "function" !== typeof fn.componentWillReceiveProps || (unmaskedContext !== needsContext || oldContext !== props$jscomp$0) && callComponentWillReceiveProps(workInProgress, fn, needsContext, props$jscomp$0), hasForceUpdate = !1, oldContext = workInProgress.memoizedState, oldState = fn.state = oldContext, updateQueue = workInProgress.updateQueue, null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, needsContext, fn, renderExpirationTime), oldState = workInProgress.memoizedState), unmaskedContext !== needsContext || oldContext !== oldState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, needsContext), oldState = workInProgress.memoizedState), (getDerivedStateFromProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, unmaskedContext, needsContext, oldContext, oldState, props$jscomp$0)) ? (ctor || "function" !== typeof fn.UNSAFE_componentWillUpdate && "function" !== typeof fn.componentWillUpdate || ("function" === typeof fn.componentWillUpdate && fn.componentWillUpdate(needsContext, oldState, props$jscomp$0), "function" === typeof fn.UNSAFE_componentWillUpdate && fn.UNSAFE_componentWillUpdate(needsContext, oldState, props$jscomp$0)), "function" === typeof fn.componentDidUpdate && (workInProgress.effectTag |= 4), "function" === typeof fn.getSnapshotBeforeUpdate && (workInProgress.effectTag |= 256)) : ("function" !== typeof fn.componentDidUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 4), "function" !== typeof fn.getSnapshotBeforeUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 256), workInProgress.memoizedProps = needsContext, workInProgress.memoizedState = oldState), fn.props = needsContext, fn.state = oldState, fn.context = props$jscomp$0, fn = getDerivedStateFromProps) : ("function" !== typeof fn.componentDidUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 4), "function" !== typeof fn.getSnapshotBeforeUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 256), fn = !1); + return finishClassComponent(current, workInProgress, fn, props, renderExpirationTime); + + case 3: + return pushHostRootContext(workInProgress), props = workInProgress.updateQueue, null !== props ? (fn = workInProgress.memoizedState, fn = null !== fn ? fn.element : null, processUpdateQueue(workInProgress, props, workInProgress.pendingProps, null, renderExpirationTime), renderExpirationTime = workInProgress.memoizedState.element, renderExpirationTime === fn ? current = bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, renderExpirationTime), current = workInProgress.child)) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 5: + return requiredContext(rootInstanceStackCursor.current), renderExpirationTime = requiredContext(contextStackCursor$1.current), props = workInProgress.type, props = "AndroidTextInput" === props || "RCTMultilineTextInputView" === props || "RCTSinglelineTextInputView" === props || "RCTText" === props || "RCTVirtualText" === props, props = renderExpirationTime.isInAParentText !== props ? { + isInAParentText: props + } : renderExpirationTime, renderExpirationTime !== props && (push(contextFiberStackCursor, workInProgress, workInProgress), push(contextStackCursor$1, props, workInProgress)), null === current && tryToClaimNextHydratableInstance(workInProgress), props = workInProgress.memoizedProps, renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || props !== renderExpirationTime ? (props = renderExpirationTime.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 6: + return null === current && tryToClaimNextHydratableInstance(workInProgress), workInProgress.memoizedProps = workInProgress.pendingProps, null; + + case 16: + return null; + + case 4: + return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), props = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== props ? (null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, props, renderExpirationTime) : reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = props, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 14: + return props = workInProgress.type.render, renderExpirationTime = workInProgress.pendingProps, fn = workInProgress.ref, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime || fn !== (null !== current ? current.ref : null) ? (props = props(renderExpirationTime, fn), reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 10: + return renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime ? (reconcileChildren(current, workInProgress, renderExpirationTime), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 11: + return renderExpirationTime = workInProgress.pendingProps.children, didPerformWorkStackCursor.current || null !== renderExpirationTime && workInProgress.memoizedProps !== renderExpirationTime ? (reconcileChildren(current, workInProgress, renderExpirationTime), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 15: + return renderExpirationTime = workInProgress.pendingProps, workInProgress.memoizedProps === renderExpirationTime ? current = bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, renderExpirationTime.children), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child), current; + + case 13: + return updateContextProvider(current, workInProgress, renderExpirationTime); + + case 12: + a: if (fn = workInProgress.type, unmaskedContext = workInProgress.pendingProps, needsContext = workInProgress.memoizedProps, props = fn._currentValue, props$jscomp$0 = fn._changedBits, didPerformWorkStackCursor.current || 0 !== props$jscomp$0 || needsContext !== unmaskedContext) { + workInProgress.memoizedProps = unmaskedContext; + ctor = unmaskedContext.unstable_observedBits; + if (void 0 === ctor || null === ctor) ctor = 1073741823; + workInProgress.stateNode = ctor; + if (0 !== (props$jscomp$0 & ctor)) propagateContextChange(workInProgress, fn, props$jscomp$0, renderExpirationTime);else if (needsContext === unmaskedContext) { + current = bailoutOnAlreadyFinishedWork(current, workInProgress); + break a; + } + renderExpirationTime = unmaskedContext.children; + renderExpirationTime = renderExpirationTime(props); + workInProgress.effectTag |= 1; + reconcileChildren(current, workInProgress, renderExpirationTime); + current = workInProgress.child; + } else current = bailoutOnAlreadyFinishedWork(current, workInProgress); + + return current; + + default: + invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); + } + } + + var updateHostContainer = void 0, + updateHostComponent$1 = void 0, + updateHostText$1 = void 0; + + updateHostContainer = function updateHostContainer() {}; + + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload) { + if (workInProgress.updateQueue = updatePayload) workInProgress.effectTag |= 4; + }; + + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + oldText !== newText && (workInProgress.effectTag |= 4); + }; + + function completeWork(current, workInProgress) { + var newProps = workInProgress.pendingProps; + + switch (workInProgress.tag) { + case 1: + return null; + + case 2: + return popContextProvider(workInProgress), null; + + case 3: + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + newProps = workInProgress.stateNode; + newProps.pendingContext && (newProps.context = newProps.pendingContext, newProps.pendingContext = null); + if (null === current || null === current.child) workInProgress.effectTag &= -3; + updateHostContainer(workInProgress); + return null; + + case 5: + popHostContext(workInProgress); + var rootContainerInstance = requiredContext(rootInstanceStackCursor.current), + type = workInProgress.type; + + if (null !== current && null != workInProgress.stateNode) { + var oldProps = current.memoizedProps, + currentHostContext = requiredContext(contextStackCursor$1.current); + updateHostComponent$1(current, workInProgress, emptyObject, type, oldProps, newProps, rootContainerInstance, currentHostContext); + current.ref !== workInProgress.ref && (workInProgress.effectTag |= 128); + } else { + if (!newProps) return invariant(null !== workInProgress.stateNode, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), null; + current = requiredContext(contextStackCursor$1.current); + oldProps = allocateTag(); + currentHostContext = ReactNativeViewConfigRegistry.get(type); + invariant("RCTView" !== type || !current.isInAParentText, "Nesting of within is not currently supported."); + var updatePayload = diffProperties(null, emptyObject$1, newProps, currentHostContext.validAttributes); + UIManager.createView(oldProps, currentHostContext.uiViewClassName, rootContainerInstance, updatePayload); + currentHostContext = new ReactNativeFiberHostComponent(oldProps, currentHostContext); + instanceCache[oldProps] = workInProgress; + instanceProps[oldProps] = newProps; + + a: for (oldProps = workInProgress.child; null !== oldProps;) { + if (5 === oldProps.tag || 6 === oldProps.tag) currentHostContext._children.push(oldProps.stateNode);else if (4 !== oldProps.tag && null !== oldProps.child) { + oldProps.child.return = oldProps; + oldProps = oldProps.child; + continue; + } + if (oldProps === workInProgress) break; + + for (; null === oldProps.sibling;) { + if (null === oldProps.return || oldProps.return === workInProgress) break a; + oldProps = oldProps.return; + } + + oldProps.sibling.return = oldProps.return; + oldProps = oldProps.sibling; + } + + finalizeInitialChildren(currentHostContext, type, newProps, rootContainerInstance, current) && (workInProgress.effectTag |= 4); + workInProgress.stateNode = currentHostContext; + null !== workInProgress.ref && (workInProgress.effectTag |= 128); + } + + return null; + + case 6: + if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { + if ("string" !== typeof newProps) return invariant(null !== workInProgress.stateNode, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), null; + rootContainerInstance = requiredContext(rootInstanceStackCursor.current); + type = requiredContext(contextStackCursor$1.current); + invariant(type.isInAParentText, "Text strings must be rendered within a component."); + type = allocateTag(); + UIManager.createView(type, "RCTRawText", rootContainerInstance, { + text: newProps + }); + instanceCache[type] = workInProgress; + workInProgress.stateNode = type; + } + return null; + + case 14: + return null; + + case 16: + return null; + + case 10: + return null; + + case 11: + return null; + + case 15: + return null; + + case 4: + return popHostContainer(workInProgress), updateHostContainer(workInProgress), null; + + case 13: + return popProvider(workInProgress), null; + + case 12: + return null; + + case 0: + invariant(!1, "An indeterminate component should have become determinate before completing. This error is likely caused by a bug in React. Please file an issue."); + + default: + invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); + } + } + + function logError(boundary, errorInfo) { + var source = errorInfo.source, + stack = errorInfo.stack; + null === stack && null !== source && (stack = getStackAddendumByWorkInProgressFiber(source)); + null !== source && getComponentName(source); + source = null !== stack ? stack : ""; + errorInfo = errorInfo.value; + null !== boundary && 2 === boundary.tag && getComponentName(boundary); + + try { + if (errorInfo instanceof Error) { + var message = errorInfo.message, + name = errorInfo.name; + var errorToHandle = errorInfo; + + try { + errorToHandle.message = (message ? name + ": " + message : name) + "\n\nThis error is located at:" + source; + } catch (e) {} + } else errorToHandle = "string" === typeof errorInfo ? Error(errorInfo + "\n\nThis error is located at:" + source) : Error("Unspecified error at:" + source); + + ExceptionsManager.handleException(errorToHandle, !1); + } catch (e) { + e && e.suppressReactErrorLogging || console.error(e); + } + } + + function safelyDetachRef(current) { + var ref = current.ref; + if (null !== ref) if ("function" === typeof ref) try { + ref(null); + } catch (refError) { + captureCommitPhaseError(current, refError); + } else ref.current = null; + } + + function commitUnmount(current) { + "function" === typeof onCommitUnmount && onCommitUnmount(current); + + switch (current.tag) { + case 2: + safelyDetachRef(current); + var instance = current.stateNode; + if ("function" === typeof instance.componentWillUnmount) try { + instance.props = current.memoizedProps, instance.state = current.memoizedState, instance.componentWillUnmount(); + } catch (unmountError) { + captureCommitPhaseError(current, unmountError); + } + break; + + case 5: + safelyDetachRef(current); + break; + + case 4: + unmountHostComponents(current); + } + } + + function isHostParent(fiber) { + return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag; + } + + function commitPlacement(finishedWork) { + a: { + for (var parent = finishedWork.return; null !== parent;) { + if (isHostParent(parent)) { + var parentFiber = parent; + break a; + } + + parent = parent.return; + } + + invariant(!1, "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + parentFiber = void 0; + } + + var isContainer = parent = void 0; + + switch (parentFiber.tag) { + case 5: + parent = parentFiber.stateNode; + isContainer = !1; + break; + + case 3: + parent = parentFiber.stateNode.containerInfo; + isContainer = !0; + break; + + case 4: + parent = parentFiber.stateNode.containerInfo; + isContainer = !0; + break; + + default: + invariant(!1, "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); + } + + parentFiber.effectTag & 16 && (parentFiber.effectTag &= -17); + + a: b: for (parentFiber = finishedWork;;) { + for (; null === parentFiber.sibling;) { + if (null === parentFiber.return || isHostParent(parentFiber.return)) { + parentFiber = null; + break a; + } + + parentFiber = parentFiber.return; + } + + parentFiber.sibling.return = parentFiber.return; + + for (parentFiber = parentFiber.sibling; 5 !== parentFiber.tag && 6 !== parentFiber.tag;) { + if (parentFiber.effectTag & 2) continue b; + if (null === parentFiber.child || 4 === parentFiber.tag) continue b;else parentFiber.child.return = parentFiber, parentFiber = parentFiber.child; + } + + if (!(parentFiber.effectTag & 2)) { + parentFiber = parentFiber.stateNode; + break a; + } + } + + for (var node = finishedWork;;) { + if (5 === node.tag || 6 === node.tag) { + if (parentFiber) { + if (isContainer) invariant("number" !== typeof parent, "Container does not support insertBefore operation");else { + var parentInstance = parent, + child = node.stateNode, + beforeChild = parentFiber, + children = parentInstance._children, + index = children.indexOf(child); + 0 <= index ? (children.splice(index, 1), beforeChild = children.indexOf(beforeChild), children.splice(beforeChild, 0, child), UIManager.manageChildren(parentInstance._nativeTag, [index], [beforeChild], [], [], [])) : (index = children.indexOf(beforeChild), children.splice(index, 0, child), UIManager.manageChildren(parentInstance._nativeTag, [], [], ["number" === typeof child ? child : child._nativeTag], [index], [])); + } + } else isContainer ? (parentInstance = node.stateNode, UIManager.setChildren(parent, ["number" === typeof parentInstance ? parentInstance : parentInstance._nativeTag])) : (parentInstance = parent, child = node.stateNode, children = "number" === typeof child ? child : child._nativeTag, index = parentInstance._children, beforeChild = index.indexOf(child), 0 <= beforeChild ? (index.splice(beforeChild, 1), index.push(child), UIManager.manageChildren(parentInstance._nativeTag, [beforeChild], [index.length - 1], [], [], [])) : (index.push(child), UIManager.manageChildren(parentInstance._nativeTag, [], [], [children], [index.length - 1], []))); + } else if (4 !== node.tag && null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === finishedWork) break; + + for (; null === node.sibling;) { + if (null === node.return || node.return === finishedWork) return; + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function unmountHostComponents(current) { + for (var node = current, currentParentIsValid = !1, currentParent = void 0, currentParentIsContainer = void 0;;) { + if (!currentParentIsValid) { + currentParentIsValid = node.return; + + a: for (;;) { + invariant(null !== currentParentIsValid, "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + + switch (currentParentIsValid.tag) { + case 5: + currentParent = currentParentIsValid.stateNode; + currentParentIsContainer = !1; + break a; + + case 3: + currentParent = currentParentIsValid.stateNode.containerInfo; + currentParentIsContainer = !0; + break a; + + case 4: + currentParent = currentParentIsValid.stateNode.containerInfo; + currentParentIsContainer = !0; + break a; + } + + currentParentIsValid = currentParentIsValid.return; + } + + currentParentIsValid = !0; + } + + if (5 === node.tag || 6 === node.tag) { + a: for (var root = node, node$jscomp$0 = root;;) { + if (commitUnmount(node$jscomp$0), null !== node$jscomp$0.child && 4 !== node$jscomp$0.tag) node$jscomp$0.child.return = node$jscomp$0, node$jscomp$0 = node$jscomp$0.child;else { + if (node$jscomp$0 === root) break; + + for (; null === node$jscomp$0.sibling;) { + if (null === node$jscomp$0.return || node$jscomp$0.return === root) break a; + node$jscomp$0 = node$jscomp$0.return; + } + + node$jscomp$0.sibling.return = node$jscomp$0.return; + node$jscomp$0 = node$jscomp$0.sibling; + } + } + + if (currentParentIsContainer) root = currentParent, recursivelyUncacheFiberNode(node.stateNode), UIManager.manageChildren(root, [], [], [], [], [0]);else { + root = currentParent; + var child = node.stateNode; + recursivelyUncacheFiberNode(child); + node$jscomp$0 = root._children; + child = node$jscomp$0.indexOf(child); + node$jscomp$0.splice(child, 1); + UIManager.manageChildren(root._nativeTag, [], [], [], [], [child]); + } + } else if (4 === node.tag ? currentParent = node.stateNode.containerInfo : commitUnmount(node), null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === current) break; + + for (; null === node.sibling;) { + if (null === node.return || node.return === current) return; + node = node.return; + 4 === node.tag && (currentParentIsValid = !1); + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function commitWork(current, finishedWork) { + switch (finishedWork.tag) { + case 2: + break; + + case 5: + var instance = finishedWork.stateNode; + + if (null != instance) { + var newProps = finishedWork.memoizedProps; + current = null !== current ? current.memoizedProps : newProps; + var updatePayload = finishedWork.updateQueue; + finishedWork.updateQueue = null; + null !== updatePayload && (finishedWork = instance.viewConfig, instanceProps[instance._nativeTag] = newProps, newProps = diffProperties(null, current, newProps, finishedWork.validAttributes), null != newProps && UIManager.updateView(instance._nativeTag, finishedWork.uiViewClassName, newProps)); + } + + break; + + case 6: + invariant(null !== finishedWork.stateNode, "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); + UIManager.updateView(finishedWork.stateNode, "RCTRawText", { + text: finishedWork.memoizedProps + }); + break; + + case 3: + break; + + case 15: + break; + + case 16: + break; + + default: + invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + } + + function createRootErrorUpdate(fiber, errorInfo, expirationTime) { + expirationTime = createUpdate(expirationTime); + expirationTime.tag = 3; + expirationTime.payload = { + element: null + }; + var error = errorInfo.value; + + expirationTime.callback = function () { + onUncaughtError(error); + logError(fiber, errorInfo); + }; + + return expirationTime; + } + + function createClassErrorUpdate(fiber, errorInfo, expirationTime) { + expirationTime = createUpdate(expirationTime); + expirationTime.tag = 3; + var inst = fiber.stateNode; + null !== inst && "function" === typeof inst.componentDidCatch && (expirationTime.callback = function () { + null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this); + var error = errorInfo.value, + stack = errorInfo.stack; + logError(fiber, errorInfo); + this.componentDidCatch(error, { + componentStack: null !== stack ? stack : "" + }); + }); + return expirationTime; + } + + function unwindWork(workInProgress) { + switch (workInProgress.tag) { + case 2: + popContextProvider(workInProgress); + var effectTag = workInProgress.effectTag; + return effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; + + case 3: + return popHostContainer(workInProgress), popTopLevelContextObject(workInProgress), effectTag = workInProgress.effectTag, effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; + + case 5: + return popHostContext(workInProgress), null; + + case 16: + return effectTag = workInProgress.effectTag, effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; + + case 4: + return popHostContainer(workInProgress), null; + + case 13: + return popProvider(workInProgress), null; + + default: + return null; + } + } + + var originalStartTimeMs = now$1(), + mostRecentCurrentTime = 2, + mostRecentCurrentTimeMs = originalStartTimeMs, + lastUniqueAsyncExpiration = 0, + expirationContext = 0, + isWorking = !1, + nextUnitOfWork = null, + nextRoot = null, + nextRenderExpirationTime = 0, + nextLatestTimeoutMs = -1, + nextRenderDidError = !1, + nextEffect = null, + isCommitting$1 = !1, + legacyErrorBoundariesThatAlreadyFailed = null; + + function resetStack() { + if (null !== nextUnitOfWork) for (var interruptedWork = nextUnitOfWork.return; null !== interruptedWork;) { + var interruptedWork$jscomp$0 = interruptedWork; + + switch (interruptedWork$jscomp$0.tag) { + case 2: + popContextProvider(interruptedWork$jscomp$0); + break; + + case 3: + popHostContainer(interruptedWork$jscomp$0); + popTopLevelContextObject(interruptedWork$jscomp$0); + break; + + case 5: + popHostContext(interruptedWork$jscomp$0); + break; + + case 4: + popHostContainer(interruptedWork$jscomp$0); + break; + + case 13: + popProvider(interruptedWork$jscomp$0); + } + + interruptedWork = interruptedWork.return; + } + nextRoot = null; + nextRenderExpirationTime = 0; + nextLatestTimeoutMs = -1; + nextRenderDidError = !1; + nextUnitOfWork = null; + } + + function completeUnitOfWork(workInProgress$jscomp$0) { + for (;;) { + var current = workInProgress$jscomp$0.alternate, + returnFiber = workInProgress$jscomp$0.return, + siblingFiber = workInProgress$jscomp$0.sibling; + + if (0 === (workInProgress$jscomp$0.effectTag & 512)) { + current = completeWork(current, workInProgress$jscomp$0, nextRenderExpirationTime); + var workInProgress = workInProgress$jscomp$0; + + if (1073741823 === nextRenderExpirationTime || 1073741823 !== workInProgress.expirationTime) { + var newExpirationTime = 0; + + switch (workInProgress.tag) { + case 3: + case 2: + var updateQueue = workInProgress.updateQueue; + null !== updateQueue && (newExpirationTime = updateQueue.expirationTime); + } + + for (updateQueue = workInProgress.child; null !== updateQueue;) { + 0 !== updateQueue.expirationTime && (0 === newExpirationTime || newExpirationTime > updateQueue.expirationTime) && (newExpirationTime = updateQueue.expirationTime), updateQueue = updateQueue.sibling; + } + + workInProgress.expirationTime = newExpirationTime; + } + + if (null !== current) return current; + null !== returnFiber && 0 === (returnFiber.effectTag & 512) && (null === returnFiber.firstEffect && (returnFiber.firstEffect = workInProgress$jscomp$0.firstEffect), null !== workInProgress$jscomp$0.lastEffect && (null !== returnFiber.lastEffect && (returnFiber.lastEffect.nextEffect = workInProgress$jscomp$0.firstEffect), returnFiber.lastEffect = workInProgress$jscomp$0.lastEffect), 1 < workInProgress$jscomp$0.effectTag && (null !== returnFiber.lastEffect ? returnFiber.lastEffect.nextEffect = workInProgress$jscomp$0 : returnFiber.firstEffect = workInProgress$jscomp$0, returnFiber.lastEffect = workInProgress$jscomp$0)); + } else { + workInProgress$jscomp$0 = unwindWork(workInProgress$jscomp$0, nextRenderExpirationTime); + if (null !== workInProgress$jscomp$0) return workInProgress$jscomp$0.effectTag &= 511, workInProgress$jscomp$0; + null !== returnFiber && (returnFiber.firstEffect = returnFiber.lastEffect = null, returnFiber.effectTag |= 512); + } + + if (null !== siblingFiber) return siblingFiber; + if (null !== returnFiber) workInProgress$jscomp$0 = returnFiber;else break; + } + + return null; + } + + function performUnitOfWork(workInProgress) { + var next = beginWork(workInProgress.alternate, workInProgress, nextRenderExpirationTime); + null === next && (next = completeUnitOfWork(workInProgress)); + ReactCurrentOwner.current = null; + return next; + } + + function renderRoot(root$jscomp$0, isYieldy) { + invariant(!isWorking, "renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."); + isWorking = !0; + var expirationTime = root$jscomp$0.nextExpirationTimeToWorkOn; + if (expirationTime !== nextRenderExpirationTime || root$jscomp$0 !== nextRoot || null === nextUnitOfWork) resetStack(), nextRoot = root$jscomp$0, nextRenderExpirationTime = expirationTime, nextLatestTimeoutMs = -1, nextRenderDidError = !1, nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime), root$jscomp$0.pendingCommitExpirationTime = 0; + var didFatal = !1; + + do { + try { + if (isYieldy) for (; null !== nextUnitOfWork && !shouldYield();) { + nextUnitOfWork = performUnitOfWork(nextUnitOfWork); + } else for (; null !== nextUnitOfWork;) { + nextUnitOfWork = performUnitOfWork(nextUnitOfWork); + } + } catch (thrownValue) { + if (null === nextUnitOfWork) didFatal = !0, onUncaughtError(thrownValue);else { + invariant(null !== nextUnitOfWork, "Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it."); + isYieldy = nextUnitOfWork; + var returnFiber = isYieldy.return; + + if (null === returnFiber) { + didFatal = !0; + onUncaughtError(thrownValue); + break; + } + + a: { + var root = root$jscomp$0, + returnFiber$jscomp$0 = returnFiber, + sourceFiber = isYieldy, + value = thrownValue; + returnFiber = nextRenderExpirationTime; + sourceFiber.effectTag |= 512; + sourceFiber.firstEffect = sourceFiber.lastEffect = null; + nextRenderDidError = !0; + + if ((root.didError || 1 === returnFiber) && (returnFiber === root.latestPendingTime || returnFiber === root.latestSuspendedTime)) { + value = createCapturedValue(value, sourceFiber); + root = returnFiber$jscomp$0; + + do { + switch (root.tag) { + case 3: + root.effectTag |= 1024; + value = createRootErrorUpdate(root, value, returnFiber); + enqueueCapturedUpdate(root, value, returnFiber); + break a; + + case 2: + if (returnFiber$jscomp$0 = value, sourceFiber = root.stateNode, 0 === (root.effectTag & 64) && null !== sourceFiber && "function" === typeof sourceFiber.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(sourceFiber))) { + root.effectTag |= 1024; + value = createClassErrorUpdate(root, returnFiber$jscomp$0, returnFiber); + enqueueCapturedUpdate(root, value, returnFiber); + break a; + } + + } + + root = root.return; + } while (null !== root); + } + } + + nextUnitOfWork = completeUnitOfWork(isYieldy); + } + } + + break; + } while (1); + + isWorking = !1; + didFatal ? root$jscomp$0.finishedWork = null : null === nextUnitOfWork ? (didFatal = root$jscomp$0.current.alternate, invariant(null !== didFatal, "Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue."), 0 === (didFatal.effectTag & 512) ? (root$jscomp$0.pendingCommitExpirationTime = expirationTime, root$jscomp$0.finishedWork = didFatal) : (!nextRenderDidError || expirationTime !== root$jscomp$0.latestPendingTime && expirationTime !== root$jscomp$0.latestSuspendedTime ? (didFatal = root$jscomp$0.earliestPendingTime, isYieldy = root$jscomp$0.latestPendingTime, didFatal === expirationTime ? root$jscomp$0.earliestPendingTime = isYieldy === expirationTime ? root$jscomp$0.latestPendingTime = 0 : isYieldy : isYieldy === expirationTime && (root$jscomp$0.latestPendingTime = didFatal), didFatal = root$jscomp$0.latestSuspendedTime, didFatal === expirationTime && (root$jscomp$0.latestPingedTime = 0), isYieldy = root$jscomp$0.earliestSuspendedTime, 0 === isYieldy ? root$jscomp$0.earliestSuspendedTime = root$jscomp$0.latestSuspendedTime = expirationTime : isYieldy > expirationTime ? root$jscomp$0.earliestSuspendedTime = expirationTime : didFatal < expirationTime && (root$jscomp$0.latestSuspendedTime = expirationTime)) : root$jscomp$0.didError = !0, findNextPendingPriorityLevel(root$jscomp$0), onSuspend(root$jscomp$0, expirationTime, root$jscomp$0.expirationTime, nextLatestTimeoutMs))) : root$jscomp$0.finishedWork = null; + } + + function captureCommitPhaseError(fiber, error) { + var JSCompiler_inline_result; + + a: { + invariant(!isWorking || isCommitting$1, "dispatch: Cannot dispatch during the render phase."); + + for (JSCompiler_inline_result = fiber.return; null !== JSCompiler_inline_result;) { + switch (JSCompiler_inline_result.tag) { + case 2: + var instance = JSCompiler_inline_result.stateNode; + + if ("function" === typeof JSCompiler_inline_result.type.getDerivedStateFromCatch || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { + fiber = createCapturedValue(error, fiber); + fiber = createClassErrorUpdate(JSCompiler_inline_result, fiber, 1); + enqueueUpdate(JSCompiler_inline_result, fiber, 1); + scheduleWork(JSCompiler_inline_result, 1); + JSCompiler_inline_result = void 0; + break a; + } + + break; + + case 3: + fiber = createCapturedValue(error, fiber); + fiber = createRootErrorUpdate(JSCompiler_inline_result, fiber, 1); + enqueueUpdate(JSCompiler_inline_result, fiber, 1); + scheduleWork(JSCompiler_inline_result, 1); + JSCompiler_inline_result = void 0; + break a; + } + + JSCompiler_inline_result = JSCompiler_inline_result.return; + } + + 3 === fiber.tag && (JSCompiler_inline_result = createCapturedValue(error, fiber), JSCompiler_inline_result = createRootErrorUpdate(fiber, JSCompiler_inline_result, 1), enqueueUpdate(fiber, JSCompiler_inline_result, 1), scheduleWork(fiber, 1)); + JSCompiler_inline_result = void 0; + } + + return JSCompiler_inline_result; + } + + function computeExpirationForFiber(currentTime, fiber) { + currentTime = 0 !== expirationContext ? expirationContext : isWorking ? isCommitting$1 ? 1 : nextRenderExpirationTime : fiber.mode & 1 ? isBatchingInteractiveUpdates ? 2 + 10 * (((currentTime - 2 + 15) / 10 | 0) + 1) : 2 + 25 * (((currentTime - 2 + 500) / 25 | 0) + 1) : 1; + isBatchingInteractiveUpdates && (0 === lowestPendingInteractiveExpirationTime || currentTime > lowestPendingInteractiveExpirationTime) && (lowestPendingInteractiveExpirationTime = currentTime); + return currentTime; + } + + function scheduleWork(fiber, expirationTime) { + for (; null !== fiber;) { + if (0 === fiber.expirationTime || fiber.expirationTime > expirationTime) fiber.expirationTime = expirationTime; + null !== fiber.alternate && (0 === fiber.alternate.expirationTime || fiber.alternate.expirationTime > expirationTime) && (fiber.alternate.expirationTime = expirationTime); + if (null === fiber.return) if (3 === fiber.tag) { + var root = fiber.stateNode; + !isWorking && 0 !== nextRenderExpirationTime && expirationTime < nextRenderExpirationTime && resetStack(); + markPendingPriorityLevel(root, expirationTime); + isWorking && !isCommitting$1 && nextRoot === root || requestWork(root, root.expirationTime); + nestedUpdateCount > NESTED_UPDATE_LIMIT && invariant(!1, "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); + } else break; + fiber = fiber.return; + } + } + + function recalculateCurrentTime() { + mostRecentCurrentTimeMs = now$1() - originalStartTimeMs; + return mostRecentCurrentTime = (mostRecentCurrentTimeMs / 10 | 0) + 2; + } + + function syncUpdates(fn, a, b, c, d) { + var previousExpirationContext = expirationContext; + expirationContext = 1; + + try { + return fn(a, b, c, d); + } finally { + expirationContext = previousExpirationContext; + } + } + + var firstScheduledRoot = null, + lastScheduledRoot = null, + callbackExpirationTime = 0, + callbackID = void 0, + isRendering = !1, + nextFlushedRoot = null, + nextFlushedExpirationTime = 0, + lowestPendingInteractiveExpirationTime = 0, + deadlineDidExpire = !1, + hasUnhandledError = !1, + unhandledError = null, + deadline = null, + isBatchingUpdates = !1, + isUnbatchingUpdates = !1, + isBatchingInteractiveUpdates = !1, + completedBatches = null, + NESTED_UPDATE_LIMIT = 1e3, + nestedUpdateCount = 0, + timeHeuristicForUnitOfWork = 1; + + function scheduleCallbackWithExpirationTime(expirationTime) { + if (0 !== callbackExpirationTime) { + if (expirationTime > callbackExpirationTime) return; + + if (null !== callbackID) { + var callbackID$jscomp$0 = callbackID; + scheduledCallback = null; + clearTimeout(callbackID$jscomp$0); + } + } + + callbackExpirationTime = expirationTime; + now$1(); + scheduledCallback = performAsyncWork; + callbackID = setTimeout(setTimeoutCallback, 1); + } + + function onSuspend(root, suspendedExpirationTime, expirationTime, timeoutMs) { + 0 <= timeoutMs && setTimeout(function () { + var latestSuspendedTime = root.latestSuspendedTime; + 0 !== latestSuspendedTime && latestSuspendedTime <= suspendedExpirationTime && (latestSuspendedTime = root.latestPingedTime, 0 === latestSuspendedTime || latestSuspendedTime < suspendedExpirationTime) && (root.latestPingedTime = suspendedExpirationTime); + findNextPendingPriorityLevel(root); + latestSuspendedTime = root.expirationTime; + 0 !== latestSuspendedTime && requestWork(root, latestSuspendedTime); + }, timeoutMs); + root.expirationTime = expirationTime; + } + + function requestWork(root, expirationTime) { + if (null === root.nextScheduledRoot) root.expirationTime = expirationTime, null === lastScheduledRoot ? (firstScheduledRoot = lastScheduledRoot = root, root.nextScheduledRoot = root) : (lastScheduledRoot = lastScheduledRoot.nextScheduledRoot = root, lastScheduledRoot.nextScheduledRoot = firstScheduledRoot);else { + var remainingExpirationTime = root.expirationTime; + if (0 === remainingExpirationTime || expirationTime < remainingExpirationTime) root.expirationTime = expirationTime; + } + isRendering || (isBatchingUpdates ? isUnbatchingUpdates && (nextFlushedRoot = root, nextFlushedExpirationTime = 1, performWorkOnRoot(root, 1, !1)) : 1 === expirationTime ? performWork(1, null) : scheduleCallbackWithExpirationTime(expirationTime)); + } + + function findHighestPriorityRoot() { + var highestPriorityWork = 0, + highestPriorityRoot = null; + if (null !== lastScheduledRoot) for (var previousScheduledRoot = lastScheduledRoot, root = firstScheduledRoot; null !== root;) { + var remainingExpirationTime = root.expirationTime; + + if (0 === remainingExpirationTime) { + invariant(null !== previousScheduledRoot && null !== lastScheduledRoot, "Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue."); + + if (root === root.nextScheduledRoot) { + firstScheduledRoot = lastScheduledRoot = root.nextScheduledRoot = null; + break; + } else if (root === firstScheduledRoot) firstScheduledRoot = remainingExpirationTime = root.nextScheduledRoot, lastScheduledRoot.nextScheduledRoot = remainingExpirationTime, root.nextScheduledRoot = null;else if (root === lastScheduledRoot) { + lastScheduledRoot = previousScheduledRoot; + lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; + root.nextScheduledRoot = null; + break; + } else previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot, root.nextScheduledRoot = null; + + root = previousScheduledRoot.nextScheduledRoot; + } else { + if (0 === highestPriorityWork || remainingExpirationTime < highestPriorityWork) highestPriorityWork = remainingExpirationTime, highestPriorityRoot = root; + if (root === lastScheduledRoot) break; + previousScheduledRoot = root; + root = root.nextScheduledRoot; + } + } + previousScheduledRoot = nextFlushedRoot; + null !== previousScheduledRoot && previousScheduledRoot === highestPriorityRoot && 1 === highestPriorityWork ? nestedUpdateCount++ : nestedUpdateCount = 0; + nextFlushedRoot = highestPriorityRoot; + nextFlushedExpirationTime = highestPriorityWork; + } + + function performAsyncWork(dl) { + performWork(0, dl); + } + + function performWork(minExpirationTime, dl) { + deadline = dl; + findHighestPriorityRoot(); + if (null !== deadline) for (; null !== nextFlushedRoot && 0 !== nextFlushedExpirationTime && (0 === minExpirationTime || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime);) { + recalculateCurrentTime(), performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !0), findHighestPriorityRoot(); + } else for (; null !== nextFlushedRoot && 0 !== nextFlushedExpirationTime && (0 === minExpirationTime || minExpirationTime >= nextFlushedExpirationTime);) { + performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !1), findHighestPriorityRoot(); + } + null !== deadline && (callbackExpirationTime = 0, callbackID = null); + 0 !== nextFlushedExpirationTime && scheduleCallbackWithExpirationTime(nextFlushedExpirationTime); + deadline = null; + deadlineDidExpire = !1; + finishRendering(); + } + + function finishRendering() { + nestedUpdateCount = 0; + + if (null !== completedBatches) { + var batches = completedBatches; + completedBatches = null; + + for (var i = 0; i < batches.length; i++) { + var batch = batches[i]; + + try { + batch._onComplete(); + } catch (error) { + hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); + } + } + } + + if (hasUnhandledError) throw batches = unhandledError, unhandledError = null, hasUnhandledError = !1, batches; + } + + function performWorkOnRoot(root, expirationTime, isYieldy) { + invariant(!isRendering, "performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."); + isRendering = !0; + isYieldy ? (isYieldy = root.finishedWork, null !== isYieldy ? completeRoot(root, isYieldy, expirationTime) : (root.finishedWork = null, renderRoot(root, !0), isYieldy = root.finishedWork, null !== isYieldy && (shouldYield() ? root.finishedWork = isYieldy : completeRoot(root, isYieldy, expirationTime)))) : (isYieldy = root.finishedWork, null !== isYieldy ? completeRoot(root, isYieldy, expirationTime) : (root.finishedWork = null, renderRoot(root, !1), isYieldy = root.finishedWork, null !== isYieldy && completeRoot(root, isYieldy, expirationTime))); + isRendering = !1; + } + + function completeRoot(root, finishedWork$jscomp$0, expirationTime) { + var firstBatch = root.firstBatch; + + if (null !== firstBatch && firstBatch._expirationTime <= expirationTime && (null === completedBatches ? completedBatches = [firstBatch] : completedBatches.push(firstBatch), firstBatch._defer)) { + root.finishedWork = finishedWork$jscomp$0; + root.expirationTime = 0; + return; + } + + root.finishedWork = null; + isCommitting$1 = isWorking = !0; + invariant(root.current !== finishedWork$jscomp$0, "Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue."); + expirationTime = root.pendingCommitExpirationTime; + invariant(0 !== expirationTime, "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); + root.pendingCommitExpirationTime = 0; + firstBatch = finishedWork$jscomp$0.expirationTime; + recalculateCurrentTime(); + root.didError = !1; + if (0 === firstBatch) root.earliestPendingTime = 0, root.latestPendingTime = 0, root.earliestSuspendedTime = 0, root.latestSuspendedTime = 0, root.latestPingedTime = 0;else { + var latestPendingTime = root.latestPendingTime; + 0 !== latestPendingTime && (latestPendingTime < firstBatch ? root.earliestPendingTime = root.latestPendingTime = 0 : root.earliestPendingTime < firstBatch && (root.earliestPendingTime = root.latestPendingTime)); + latestPendingTime = root.earliestSuspendedTime; + 0 === latestPendingTime ? markPendingPriorityLevel(root, firstBatch) : firstBatch > root.latestSuspendedTime ? (root.earliestSuspendedTime = 0, root.latestSuspendedTime = 0, root.latestPingedTime = 0, markPendingPriorityLevel(root, firstBatch)) : firstBatch < latestPendingTime && markPendingPriorityLevel(root, firstBatch); + } + findNextPendingPriorityLevel(root); + ReactCurrentOwner.current = null; + 1 < finishedWork$jscomp$0.effectTag ? null !== finishedWork$jscomp$0.lastEffect ? (finishedWork$jscomp$0.lastEffect.nextEffect = finishedWork$jscomp$0, firstBatch = finishedWork$jscomp$0.firstEffect) : firstBatch = finishedWork$jscomp$0 : firstBatch = finishedWork$jscomp$0.firstEffect; + + for (nextEffect = firstBatch; null !== nextEffect;) { + latestPendingTime = !1; + var error = void 0; + + try { + for (; null !== nextEffect;) { + if (nextEffect.effectTag & 256) { + var current = nextEffect.alternate, + finishedWork = nextEffect; + + switch (finishedWork.tag) { + case 2: + if (finishedWork.effectTag & 256 && null !== current) { + var prevProps = current.memoizedProps, + prevState = current.memoizedState, + instance = finishedWork.stateNode; + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState); + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + + break; + + case 3: + case 5: + case 6: + case 4: + break; + + default: + invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + } + + nextEffect = nextEffect.nextEffect; + } + } catch (e) { + latestPendingTime = !0, error = e; + } + + latestPendingTime && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, error), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); + } + + for (nextEffect = firstBatch; null !== nextEffect;) { + current = !1; + prevProps = void 0; + + try { + for (; null !== nextEffect;) { + var effectTag = nextEffect.effectTag; + + if (effectTag & 128) { + var current$jscomp$0 = nextEffect.alternate; + + if (null !== current$jscomp$0) { + var currentRef = current$jscomp$0.ref; + null !== currentRef && ("function" === typeof currentRef ? currentRef(null) : currentRef.current = null); + } + } + + switch (effectTag & 14) { + case 2: + commitPlacement(nextEffect); + nextEffect.effectTag &= -3; + break; + + case 6: + commitPlacement(nextEffect); + nextEffect.effectTag &= -3; + commitWork(nextEffect.alternate, nextEffect); + break; + + case 4: + commitWork(nextEffect.alternate, nextEffect); + break; + + case 8: + prevState = nextEffect, unmountHostComponents(prevState), prevState.return = null, prevState.child = null, prevState.alternate && (prevState.alternate.child = null, prevState.alternate.return = null); + } + + nextEffect = nextEffect.nextEffect; + } + } catch (e) { + current = !0, prevProps = e; + } + + current && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, prevProps), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); + } + + root.current = finishedWork$jscomp$0; + + for (nextEffect = firstBatch; null !== nextEffect;) { + effectTag = !1; + current$jscomp$0 = void 0; + + try { + for (currentRef = expirationTime; null !== nextEffect;) { + var effectTag$jscomp$0 = nextEffect.effectTag; + + if (effectTag$jscomp$0 & 36) { + var current$jscomp$1 = nextEffect.alternate; + current = nextEffect; + prevProps = currentRef; + + switch (current.tag) { + case 2: + var instance$jscomp$0 = current.stateNode; + if (current.effectTag & 4) if (null === current$jscomp$1) instance$jscomp$0.props = current.memoizedProps, instance$jscomp$0.state = current.memoizedState, instance$jscomp$0.componentDidMount();else { + var prevProps$jscomp$0 = current$jscomp$1.memoizedProps, + prevState$jscomp$0 = current$jscomp$1.memoizedState; + instance$jscomp$0.props = current.memoizedProps; + instance$jscomp$0.state = current.memoizedState; + instance$jscomp$0.componentDidUpdate(prevProps$jscomp$0, prevState$jscomp$0, instance$jscomp$0.__reactInternalSnapshotBeforeUpdate); + } + var updateQueue = current.updateQueue; + null !== updateQueue && (instance$jscomp$0.props = current.memoizedProps, instance$jscomp$0.state = current.memoizedState, commitUpdateQueue(current, updateQueue, instance$jscomp$0, prevProps)); + break; + + case 3: + var _updateQueue = current.updateQueue; + + if (null !== _updateQueue) { + prevState = null; + if (null !== current.child) switch (current.child.tag) { + case 5: + prevState = current.child.stateNode; + break; + + case 2: + prevState = current.child.stateNode; + } + commitUpdateQueue(current, _updateQueue, prevState, prevProps); + } + + break; + + case 5: + break; + + case 6: + break; + + case 4: + break; + + case 15: + break; + + case 16: + break; + + default: + invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + } + + if (effectTag$jscomp$0 & 128) { + current = void 0; + var ref = nextEffect.ref; + + if (null !== ref) { + var instance$jscomp$1 = nextEffect.stateNode; + + switch (nextEffect.tag) { + case 5: + current = instance$jscomp$1; + break; + + default: + current = instance$jscomp$1; + } + + "function" === typeof ref ? ref(current) : ref.current = current; + } + } + + var next = nextEffect.nextEffect; + nextEffect.nextEffect = null; + nextEffect = next; + } + } catch (e) { + effectTag = !0, current$jscomp$0 = e; + } + + effectTag && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, current$jscomp$0), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); + } + + isWorking = isCommitting$1 = !1; + "function" === typeof onCommitRoot && onCommitRoot(finishedWork$jscomp$0.stateNode); + finishedWork$jscomp$0 = root.expirationTime; + 0 === finishedWork$jscomp$0 && (legacyErrorBoundariesThatAlreadyFailed = null); + root.expirationTime = finishedWork$jscomp$0; + root.finishedWork = null; + } + + function shouldYield() { + return null === deadline || deadlineDidExpire || deadline.timeRemaining() > timeHeuristicForUnitOfWork ? !1 : deadlineDidExpire = !0; + } + + function onUncaughtError(error) { + invariant(null !== nextFlushedRoot, "Should be working on a root. This error is likely caused by a bug in React. Please file an issue."); + nextFlushedRoot.expirationTime = 0; + hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); + } + + function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { + var current = container.current; + + if (parentComponent) { + parentComponent = parentComponent._reactInternalFiber; + var parentContext; + + b: { + invariant(2 === isFiberMountedImpl(parentComponent) && 2 === parentComponent.tag, "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); + + for (parentContext = parentComponent; 3 !== parentContext.tag;) { + if (isContextProvider(parentContext)) { + parentContext = parentContext.stateNode.__reactInternalMemoizedMergedChildContext; + break b; + } + + parentContext = parentContext.return; + invariant(parentContext, "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); + } + + parentContext = parentContext.stateNode.context; + } + + parentComponent = isContextProvider(parentComponent) ? processChildContext(parentComponent, parentContext) : parentContext; + } else parentComponent = emptyObject; + + null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; + container = callback; + callback = createUpdate(expirationTime); + callback.payload = { + element: element + }; + container = void 0 === container ? null : container; + null !== container && (callback.callback = container); + enqueueUpdate(current, callback, expirationTime); + scheduleWork(current, expirationTime); + return expirationTime; + } + + function findHostInstance$1(component) { + var fiber = component._reactInternalFiber; + void 0 === fiber && ("function" === typeof component.render ? invariant(!1, "Unable to find node on an unmounted component.") : invariant(!1, "Argument appears to not be a ReactComponent. Keys: %s", Object.keys(component))); + component = findCurrentHostFiber(fiber); + return null === component ? null : component.stateNode; + } + + function updateContainer(element, container, parentComponent, callback) { + var current = container.current, + currentTime = recalculateCurrentTime(); + current = computeExpirationForFiber(currentTime, current); + return updateContainerAtExpirationTime(element, container, parentComponent, current, callback); + } + + function getPublicRootInstance(container) { + container = container.current; + if (!container.child) return null; + + switch (container.child.tag) { + case 5: + return container.child.stateNode; + + default: + return container.child.stateNode; + } + } + + function injectIntoDevTools(devToolsConfig) { + var _findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + return injectInternals(_extends({}, devToolsConfig, { + findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { + fiber = findCurrentHostFiber(fiber); + return null === fiber ? null : fiber.stateNode; + }, + findFiberByHostInstance: function findFiberByHostInstance(instance) { + return _findFiberByHostInstance ? _findFiberByHostInstance(instance) : null; + } + })); + } + + var ReactNativeFiberRenderer = { + updateContainerAtExpirationTime: updateContainerAtExpirationTime, + createContainer: function createContainer(containerInfo, isAsync, hydrate) { + return createFiberRoot(containerInfo, isAsync, hydrate); + }, + updateContainer: updateContainer, + flushRoot: function flushRoot(root, expirationTime) { + invariant(!isRendering, "work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method."); + nextFlushedRoot = root; + nextFlushedExpirationTime = expirationTime; + performWorkOnRoot(root, expirationTime, !1); + performWork(1, null); + finishRendering(); + }, + requestWork: requestWork, + computeUniqueAsyncExpiration: function computeUniqueAsyncExpiration() { + var result = 2 + 25 * (((recalculateCurrentTime() - 2 + 500) / 25 | 0) + 1); + result <= lastUniqueAsyncExpiration && (result = lastUniqueAsyncExpiration + 1); + return lastUniqueAsyncExpiration = result; + }, + batchedUpdates: function batchedUpdates(fn, a) { + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = !0; + + try { + return fn(a); + } finally { + (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); + } + }, + unbatchedUpdates: function unbatchedUpdates(fn, a) { + if (isBatchingUpdates && !isUnbatchingUpdates) { + isUnbatchingUpdates = !0; + + try { + return fn(a); + } finally { + isUnbatchingUpdates = !1; + } + } + + return fn(a); + }, + deferredUpdates: function deferredUpdates(fn) { + var previousExpirationContext = expirationContext; + expirationContext = 2 + 25 * (((recalculateCurrentTime() - 2 + 500) / 25 | 0) + 1); + + try { + return fn(); + } finally { + expirationContext = previousExpirationContext; + } + }, + syncUpdates: syncUpdates, + interactiveUpdates: function interactiveUpdates(fn, a, b) { + if (isBatchingInteractiveUpdates) return fn(a, b); + isBatchingUpdates || isRendering || 0 === lowestPendingInteractiveExpirationTime || (performWork(lowestPendingInteractiveExpirationTime, null), lowestPendingInteractiveExpirationTime = 0); + var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates, + previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = isBatchingInteractiveUpdates = !0; + + try { + return fn(a, b); + } finally { + isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates, (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); + } + }, + flushInteractiveUpdates: function flushInteractiveUpdates() { + isRendering || 0 === lowestPendingInteractiveExpirationTime || (performWork(lowestPendingInteractiveExpirationTime, null), lowestPendingInteractiveExpirationTime = 0); + }, + flushControlled: function flushControlled(fn) { + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = !0; + + try { + syncUpdates(fn); + } finally { + (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); + } + }, + flushSync: function flushSync(fn, a) { + invariant(!isRendering, "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering."); + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = !0; + + try { + return syncUpdates(fn, a); + } finally { + isBatchingUpdates = previousIsBatchingUpdates, performWork(1, null); + } + }, + getPublicRootInstance: getPublicRootInstance, + findHostInstance: findHostInstance$1, + findHostInstanceWithNoPortals: function findHostInstanceWithNoPortals(fiber) { + fiber = findCurrentHostFiberWithNoPortals(fiber); + return null === fiber ? null : fiber.stateNode; + }, + injectIntoDevTools: injectIntoDevTools + }; + + function _createPortal(children, containerInfo, implementation) { + var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; + return { + $$typeof: REACT_PORTAL_TYPE, + key: null == key ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + + function _inherits(subClass, superClass) { + if ("function" !== typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: !1, + writable: !0, + configurable: !0 + } + }); + superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); + } + + var getInspectorDataForViewTag = void 0; + + getInspectorDataForViewTag = function getInspectorDataForViewTag() { + invariant(!1, "getInspectorDataForViewTag() is not available in production"); + }; + + function findNodeHandle(componentOrHandle) { + if (null == componentOrHandle) return null; + if ("number" === typeof componentOrHandle) return componentOrHandle; + if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; + componentOrHandle = findHostInstance$1(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; + } + + _batchedUpdates = ReactNativeFiberRenderer.batchedUpdates; + _flushInteractiveUpdates = ReactNativeFiberRenderer.flushInteractiveUpdates; + var roots = new Map(), + ReactNativeRenderer = { + NativeComponent: function (findNodeHandle, findHostInstance) { + return function (_React$Component) { + function ReactNativeComponent() { + if (!(this instanceof ReactNativeComponent)) throw new TypeError("Cannot call a class as a function"); + + var call = _React$Component.apply(this, arguments); + + if (!this) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !call || "object" !== typeof call && "function" !== typeof call ? this : call; + } + + _inherits(ReactNativeComponent, _React$Component); + + ReactNativeComponent.prototype.blur = function () { + TextInputState.blurTextInput(findNodeHandle(this)); + }; + + ReactNativeComponent.prototype.focus = function () { + TextInputState.focusTextInput(findNodeHandle(this)); + }; + + ReactNativeComponent.prototype.measure = function (callback) { + UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); + }; + + ReactNativeComponent.prototype.measureInWindow = function (callback) { + UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); + }; + + ReactNativeComponent.prototype.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }; + + ReactNativeComponent.prototype.setNativeProps = function (nativeProps) { + var maybeInstance = void 0; + + try { + maybeInstance = findHostInstance(this); + } catch (error) {} + + if (null != maybeInstance) { + var viewConfig = maybeInstance.viewConfig || maybeInstance.canonical.viewConfig; + nativeProps = diffProperties(null, emptyObject$1, nativeProps, viewConfig.validAttributes); + null != nativeProps && UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, nativeProps); + } + }; + + return ReactNativeComponent; + }(React.Component); + }(findNodeHandle, findHostInstance$1), + findNodeHandle: findNodeHandle, + render: function render(element, containerTag, callback) { + var root = roots.get(containerTag); + root || (root = createFiberRoot(containerTag, !1, !1), roots.set(containerTag, root)); + updateContainer(element, root, null, callback); + return getPublicRootInstance(root); + }, + unmountComponentAtNode: function unmountComponentAtNode(containerTag) { + var root = roots.get(containerTag); + root && updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + }, + unmountComponentAtNodeAndRemoveContainer: function unmountComponentAtNodeAndRemoveContainer(containerTag) { + ReactNativeRenderer.unmountComponentAtNode(containerTag); + UIManager.removeRootView(containerTag); + }, + createPortal: function createPortal(children, containerTag) { + return _createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); + }, + unstable_batchedUpdates: batchedUpdates, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + NativeMethodsMixin: function (findNodeHandle, findHostInstance) { + return { + measure: function measure(callback) { + UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); + }, + measureInWindow: function measureInWindow(callback) { + UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); + }, + measureLayout: function measureLayout(relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }, + setNativeProps: function setNativeProps(nativeProps) { + var maybeInstance = void 0; + + try { + maybeInstance = findHostInstance(this); + } catch (error) {} + + if (null != maybeInstance) { + var viewConfig = maybeInstance.viewConfig; + nativeProps = diffProperties(null, emptyObject$1, nativeProps, viewConfig.validAttributes); + null != nativeProps && UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, nativeProps); + } + }, + focus: function focus() { + TextInputState.focusTextInput(findNodeHandle(this)); + }, + blur: function blur() { + TextInputState.blurTextInput(findNodeHandle(this)); + } + }; + }(findNodeHandle, findHostInstance$1), + computeComponentStackForErrorReporting: function computeComponentStackForErrorReporting(reactTag) { + return (reactTag = getInstanceFromTag(reactTag)) ? getStackAddendumByWorkInProgressFiber(reactTag) : ""; + } + } + }; + injectIntoDevTools({ + findFiberByHostInstance: getInstanceFromTag, + getInspectorDataForViewTag: getInspectorDataForViewTag, + bundleType: 0, + version: "16.4.1", + rendererPackageName: "react-native-renderer" + }); + var ReactNativeRenderer$2 = { + default: ReactNativeRenderer + }, + ReactNativeRenderer$3 = ReactNativeRenderer$2 && ReactNativeRenderer || ReactNativeRenderer$2; + module.exports = ReactNativeRenderer$3.default ? ReactNativeRenderer$3.default : ReactNativeRenderer$3; +},326,[263,166,231,218,322,1,323,324,226,325,271],"node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var TVNavigationEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeModules').TVNavigationEventEmitter; + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'NativeEventEmitter'); + + function TVEventHandler() { + this.__nativeTVNavigationEventListener = null; + this.__nativeTVNavigationEventEmitter = null; + } + + TVEventHandler.prototype.enable = function (component, callback) { + if (Platform.OS === 'ios' && !TVNavigationEventEmitter) { + return; + } + + this.__nativeTVNavigationEventEmitter = new NativeEventEmitter(TVNavigationEventEmitter); + this.__nativeTVNavigationEventListener = this.__nativeTVNavigationEventEmitter.addListener('onHWKeyEvent', function (data) { + if (callback) { + callback(component, data); + } + }); + }; + + TVEventHandler.prototype.disable = function () { + if (this.__nativeTVNavigationEventListener) { + this.__nativeTVNavigationEventListener.remove(); + + delete this.__nativeTVNavigationEventListener; + } + + if (this.__nativeTVNavigationEventEmitter) { + delete this.__nativeTVNavigationEventEmitter; + } + }; + + module.exports = TVEventHandler; +},327,[176,168,286],"node_modules/react-native/Libraries/Components/AppleTV/TVEventHandler.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var TouchEventUtils = { + extractSingleTouch: function extractSingleTouch(nativeEvent) { + var touches = nativeEvent.touches; + var changedTouches = nativeEvent.changedTouches; + var hasTouches = touches && touches.length > 0; + var hasChangedTouches = changedTouches && changedTouches.length > 0; + return !hasTouches && hasChangedTouches ? changedTouches[0] : hasTouches ? touches[0] : nativeEvent; + } + }; + module.exports = TouchEventUtils; +},328,[],"node_modules/react-native/node_modules/fbjs/lib/TouchEventUtils.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var nullthrows = function nullthrows(x) { + if (x != null) { + return x; + } + + throw new Error("Got unexpected null or undefined"); + }; + + module.exports = nullthrows; +},329,[],"node_modules/react-native/node_modules/fbjs/lib/nullthrows.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + DummyTouchableNativeFeedback: { + displayName: "DummyTouchableNativeFeedback" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); + + var View = _$$_REQUIRE(_dependencyMap[5], 'View'); + + var DummyTouchableNativeFeedback = function (_React$Component) { + function DummyTouchableNativeFeedback() { + _classCallCheck(this, DummyTouchableNativeFeedback); + + return _possibleConstructorReturn(this, _getPrototypeOf(DummyTouchableNativeFeedback).apply(this, arguments)); + } + + _createClass(DummyTouchableNativeFeedback, [{ + key: "render", + value: function render() { + return React.createElement(View, { + style: [styles.container, this.props.style], + __source: { + fileName: _jsxFileName, + lineNumber: 25 + } + }, React.createElement(Text, { + style: styles.info, + __source: { + fileName: _jsxFileName, + lineNumber: 26 + } + }, "TouchableNativeFeedback is not supported on this platform!")); + } + }]); + + _inherits(DummyTouchableNativeFeedback, _React$Component); + + return DummyTouchableNativeFeedback; + }(React.Component); + + DummyTouchableNativeFeedback.SelectableBackground = function () { + return {}; + }; + + DummyTouchableNativeFeedback.SelectableBackgroundBorderless = function () { + return {}; + }; + + DummyTouchableNativeFeedback.Ripple = function () { + return {}; + }; + + DummyTouchableNativeFeedback.canUseNativeForeground = function () { + return false; + }; + + DummyTouchableNativeFeedback = _wrapComponent("DummyTouchableNativeFeedback")(DummyTouchableNativeFeedback); + var styles = StyleSheet.create({ + container: { + height: 100, + width: 300, + backgroundColor: '#ffbcbc', + borderWidth: 1, + borderColor: 'red', + alignItems: 'center', + justifyContent: 'center', + margin: 10 + }, + info: { + color: '#333333', + margin: 20 + } + }); + module.exports = DummyTouchableNativeFeedback; +},330,[1,11,200,201,252,227],"node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var Animated = _$$_REQUIRE(_dependencyMap[0], 'Animated'); + + var Easing = _$$_REQUIRE(_dependencyMap[1], 'Easing'); + + var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[2], 'NativeMethodsMixin'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); + + var TimerMixin = _$$_REQUIRE(_dependencyMap[5], 'react-timer-mixin'); + + var Touchable = _$$_REQUIRE(_dependencyMap[6], 'Touchable'); + + var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[7], 'TouchableWithoutFeedback'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[8], 'create-react-class'); + + var ensurePositiveDelayProps = _$$_REQUIRE(_dependencyMap[9], 'ensurePositiveDelayProps'); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[10], 'flattenStyle'); + + var PRESS_RETENTION_OFFSET = { + top: 20, + left: 20, + right: 20, + bottom: 30 + }; + var TouchableOpacity = createReactClass({ + displayName: 'TouchableOpacity', + mixins: [TimerMixin, Touchable.Mixin, NativeMethodsMixin], + propTypes: _objectSpread({}, TouchableWithoutFeedback.propTypes, { + activeOpacity: PropTypes.number, + hasTVPreferredFocus: PropTypes.bool, + tvParallaxProperties: PropTypes.object + }), + getDefaultProps: function getDefaultProps() { + return { + activeOpacity: 0.2 + }; + }, + getInitialState: function getInitialState() { + return _objectSpread({}, this.touchableGetInitialState(), { + anim: new Animated.Value(this._getChildStyleOpacityWithDefault()) + }); + }, + componentDidMount: function componentDidMount() { + ensurePositiveDelayProps(this.props); + }, + UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { + ensurePositiveDelayProps(nextProps); + }, + componentDidUpdate: function componentDidUpdate(prevProps, prevState) { + if (this.props.disabled !== prevProps.disabled) { + this._opacityInactive(250); + } + }, + setOpacityTo: function setOpacityTo(value, duration) { + Animated.timing(this.state.anim, { + toValue: value, + duration: duration, + easing: Easing.inOut(Easing.quad), + useNativeDriver: true + }).start(); + }, + touchableHandleActivePressIn: function touchableHandleActivePressIn(e) { + if (e.dispatchConfig.registrationName === 'onResponderGrant') { + this._opacityActive(0); + } else { + this._opacityActive(150); + } + + this.props.onPressIn && this.props.onPressIn(e); + }, + touchableHandleActivePressOut: function touchableHandleActivePressOut(e) { + this._opacityInactive(250); + + this.props.onPressOut && this.props.onPressOut(e); + }, + touchableHandlePress: function touchableHandlePress(e) { + this.props.onPress && this.props.onPress(e); + }, + touchableHandleLongPress: function touchableHandleLongPress(e) { + this.props.onLongPress && this.props.onLongPress(e); + }, + touchableGetPressRectOffset: function touchableGetPressRectOffset() { + return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET; + }, + touchableGetHitSlop: function touchableGetHitSlop() { + return this.props.hitSlop; + }, + touchableGetHighlightDelayMS: function touchableGetHighlightDelayMS() { + return this.props.delayPressIn || 0; + }, + touchableGetLongPressDelayMS: function touchableGetLongPressDelayMS() { + return this.props.delayLongPress === 0 ? 0 : this.props.delayLongPress || 500; + }, + touchableGetPressOutDelayMS: function touchableGetPressOutDelayMS() { + return this.props.delayPressOut; + }, + _opacityActive: function _opacityActive(duration) { + this.setOpacityTo(this.props.activeOpacity, duration); + }, + _opacityInactive: function _opacityInactive(duration) { + this.setOpacityTo(this._getChildStyleOpacityWithDefault(), duration); + }, + _getChildStyleOpacityWithDefault: function _getChildStyleOpacityWithDefault() { + var childStyle = flattenStyle(this.props.style) || {}; + return childStyle.opacity == undefined ? 1 : childStyle.opacity; + }, + render: function render() { + return React.createElement(Animated.View, { + accessible: this.props.accessible !== false, + accessibilityLabel: this.props.accessibilityLabel, + accessibilityComponentType: this.props.accessibilityComponentType, + accessibilityTraits: this.props.accessibilityTraits, + style: [this.props.style, { + opacity: this.state.anim + }], + nativeID: this.props.nativeID, + testID: this.props.testID, + onLayout: this.props.onLayout, + isTVSelectable: true, + hasTVPreferredFocus: this.props.hasTVPreferredFocus, + tvParallaxProperties: this.props.tvParallaxProperties, + hitSlop: this.props.hitSlop, + onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder, + onResponderTerminationRequest: this.touchableHandleResponderTerminationRequest, + onResponderGrant: this.touchableHandleResponderGrant, + onResponderMove: this.touchableHandleResponderMove, + onResponderRelease: this.touchableHandleResponderRelease, + onResponderTerminate: this.touchableHandleResponderTerminate, + __source: { + fileName: _jsxFileName, + lineNumber: 256 + } + }, this.props.children, Touchable.renderDebugView({ + color: 'cyan', + hitSlop: this.props.hitSlop + })); + } + }); + module.exports = TouchableOpacity; +},331,[332,358,364,200,212,382,257,383,365,384,226],"node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], 'AnimatedImplementation'); + + var Image = _$$_REQUIRE(_dependencyMap[1], 'Image'); + + var ScrollView = _$$_REQUIRE(_dependencyMap[2], 'ScrollView'); + + var Text = _$$_REQUIRE(_dependencyMap[3], 'Text'); + + var View = _$$_REQUIRE(_dependencyMap[4], 'View'); + + var Animated = { + View: AnimatedImplementation.createAnimatedComponent(View), + Text: AnimatedImplementation.createAnimatedComponent(Text), + Image: AnimatedImplementation.createAnimatedComponent(Image), + ScrollView: AnimatedImplementation.createAnimatedComponent(ScrollView) + }; + + _extends(Animated, AnimatedImplementation); + + module.exports = Animated; +},332,[333,361,367,252,227],"node_modules/react-native/Libraries/Animated/src/Animated.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var _require = _$$_REQUIRE(_dependencyMap[0], './AnimatedEvent'), + AnimatedEvent = _require.AnimatedEvent, + attachNativeEvent = _require.attachNativeEvent; + + var AnimatedAddition = _$$_REQUIRE(_dependencyMap[1], './nodes/AnimatedAddition'); + + var AnimatedDiffClamp = _$$_REQUIRE(_dependencyMap[2], './nodes/AnimatedDiffClamp'); + + var AnimatedDivision = _$$_REQUIRE(_dependencyMap[3], './nodes/AnimatedDivision'); + + var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[4], './nodes/AnimatedInterpolation'); + + var AnimatedModulo = _$$_REQUIRE(_dependencyMap[5], './nodes/AnimatedModulo'); + + var AnimatedMultiplication = _$$_REQUIRE(_dependencyMap[6], './nodes/AnimatedMultiplication'); + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[7], './nodes/AnimatedNode'); + + var AnimatedProps = _$$_REQUIRE(_dependencyMap[8], './nodes/AnimatedProps'); + + var AnimatedSubtraction = _$$_REQUIRE(_dependencyMap[9], './nodes/AnimatedSubtraction'); + + var AnimatedTracking = _$$_REQUIRE(_dependencyMap[10], './nodes/AnimatedTracking'); + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[11], './nodes/AnimatedValue'); + + var AnimatedValueXY = _$$_REQUIRE(_dependencyMap[12], './nodes/AnimatedValueXY'); + + var DecayAnimation = _$$_REQUIRE(_dependencyMap[13], './animations/DecayAnimation'); + + var SpringAnimation = _$$_REQUIRE(_dependencyMap[14], './animations/SpringAnimation'); + + var TimingAnimation = _$$_REQUIRE(_dependencyMap[15], './animations/TimingAnimation'); + + var createAnimatedComponent = _$$_REQUIRE(_dependencyMap[16], './createAnimatedComponent'); + + var add = function add(a, b) { + return new AnimatedAddition(a, b); + }; + + var subtract = function subtract(a, b) { + return new AnimatedSubtraction(a, b); + }; + + var divide = function divide(a, b) { + return new AnimatedDivision(a, b); + }; + + var multiply = function multiply(a, b) { + return new AnimatedMultiplication(a, b); + }; + + var modulo = function modulo(a, modulus) { + return new AnimatedModulo(a, modulus); + }; + + var diffClamp = function diffClamp(a, min, max) { + return new AnimatedDiffClamp(a, min, max); + }; + + var _combineCallbacks = function _combineCallbacks(callback, config) { + if (callback && config.onComplete) { + return function () { + config.onComplete && config.onComplete.apply(config, arguments); + callback && callback.apply(void 0, arguments); + }; + } else { + return callback || config.onComplete; + } + }; + + var maybeVectorAnim = function maybeVectorAnim(value, config, anim) { + if (value instanceof AnimatedValueXY) { + var configX = _objectSpread({}, config); + + var configY = _objectSpread({}, config); + + for (var key in config) { + var _config$key = config[key], + x = _config$key.x, + y = _config$key.y; + + if (x !== undefined && y !== undefined) { + configX[key] = x; + configY[key] = y; + } + } + + var aX = anim(value.x, configX); + var aY = anim(value.y, configY); + return parallel([aX, aY], { + stopTogether: false + }); + } + + return null; + }; + + var spring = function spring(value, config) { + var start = function start(animatedValue, configuration, callback) { + callback = _combineCallbacks(callback, configuration); + var singleValue = animatedValue; + var singleConfig = configuration; + singleValue.stopTracking(); + + if (configuration.toValue instanceof AnimatedNode) { + singleValue.track(new AnimatedTracking(singleValue, configuration.toValue, SpringAnimation, singleConfig, callback)); + } else { + singleValue.animate(new SpringAnimation(singleConfig), callback); + } + }; + + return maybeVectorAnim(value, config, spring) || { + start: function (_start) { + function start(_x) { + return _start.apply(this, arguments); + } + + start.toString = function () { + return _start.toString(); + }; + + return start; + }(function (callback) { + start(value, config, callback); + }), + stop: function stop() { + value.stopAnimation(); + }, + reset: function reset() { + value.resetAnimation(); + }, + _startNativeLoop: function _startNativeLoop(iterations) { + var singleConfig = _objectSpread({}, config, { + iterations: iterations + }); + + start(value, singleConfig); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return config.useNativeDriver || false; + } + }; + }; + + var timing = function timing(value, config) { + var start = function start(animatedValue, configuration, callback) { + callback = _combineCallbacks(callback, configuration); + var singleValue = animatedValue; + var singleConfig = configuration; + singleValue.stopTracking(); + + if (configuration.toValue instanceof AnimatedNode) { + singleValue.track(new AnimatedTracking(singleValue, configuration.toValue, TimingAnimation, singleConfig, callback)); + } else { + singleValue.animate(new TimingAnimation(singleConfig), callback); + } + }; + + return maybeVectorAnim(value, config, timing) || { + start: function (_start2) { + function start(_x2) { + return _start2.apply(this, arguments); + } + + start.toString = function () { + return _start2.toString(); + }; + + return start; + }(function (callback) { + start(value, config, callback); + }), + stop: function stop() { + value.stopAnimation(); + }, + reset: function reset() { + value.resetAnimation(); + }, + _startNativeLoop: function _startNativeLoop(iterations) { + var singleConfig = _objectSpread({}, config, { + iterations: iterations + }); + + start(value, singleConfig); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return config.useNativeDriver || false; + } + }; + }; + + var decay = function decay(value, config) { + var start = function start(animatedValue, configuration, callback) { + callback = _combineCallbacks(callback, configuration); + var singleValue = animatedValue; + var singleConfig = configuration; + singleValue.stopTracking(); + singleValue.animate(new DecayAnimation(singleConfig), callback); + }; + + return maybeVectorAnim(value, config, decay) || { + start: function (_start3) { + function start(_x3) { + return _start3.apply(this, arguments); + } + + start.toString = function () { + return _start3.toString(); + }; + + return start; + }(function (callback) { + start(value, config, callback); + }), + stop: function stop() { + value.stopAnimation(); + }, + reset: function reset() { + value.resetAnimation(); + }, + _startNativeLoop: function _startNativeLoop(iterations) { + var singleConfig = _objectSpread({}, config, { + iterations: iterations + }); + + start(value, singleConfig); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return config.useNativeDriver || false; + } + }; + }; + + var sequence = function sequence(animations) { + var current = 0; + return { + start: function start(callback) { + var onComplete = function onComplete(result) { + if (!result.finished) { + callback && callback(result); + return; + } + + current++; + + if (current === animations.length) { + callback && callback(result); + return; + } + + animations[current].start(onComplete); + }; + + if (animations.length === 0) { + callback && callback({ + finished: true + }); + } else { + animations[current].start(onComplete); + } + }, + stop: function stop() { + if (current < animations.length) { + animations[current].stop(); + } + }, + reset: function reset() { + animations.forEach(function (animation, idx) { + if (idx <= current) { + animation.reset(); + } + }); + current = 0; + }, + _startNativeLoop: function _startNativeLoop() { + throw new Error('Loops run using the native driver cannot contain Animated.sequence animations'); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return false; + } + }; + }; + + var parallel = function parallel(animations, config) { + var doneCount = 0; + var hasEnded = {}; + var stopTogether = !(config && config.stopTogether === false); + var result = { + start: function start(callback) { + if (doneCount === animations.length) { + callback && callback({ + finished: true + }); + return; + } + + animations.forEach(function (animation, idx) { + var cb = function cb(endResult) { + hasEnded[idx] = true; + doneCount++; + + if (doneCount === animations.length) { + doneCount = 0; + callback && callback(endResult); + return; + } + + if (!endResult.finished && stopTogether) { + result.stop(); + } + }; + + if (!animation) { + cb({ + finished: true + }); + } else { + animation.start(cb); + } + }); + }, + stop: function stop() { + animations.forEach(function (animation, idx) { + !hasEnded[idx] && animation.stop(); + hasEnded[idx] = true; + }); + }, + reset: function reset() { + animations.forEach(function (animation, idx) { + animation.reset(); + hasEnded[idx] = false; + doneCount = 0; + }); + }, + _startNativeLoop: function _startNativeLoop() { + throw new Error('Loops run using the native driver cannot contain Animated.parallel animations'); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return false; + } + }; + return result; + }; + + var delay = function delay(time) { + return timing(new AnimatedValue(0), { + toValue: 0, + delay: time, + duration: 0 + }); + }; + + var stagger = function stagger(time, animations) { + return parallel(animations.map(function (animation, i) { + return sequence([delay(time * i), animation]); + })); + }; + + var loop = function loop(animation) { + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$iterations = _ref.iterations, + iterations = _ref$iterations === void 0 ? -1 : _ref$iterations; + + var isFinished = false; + var iterationsSoFar = 0; + return { + start: function start(callback) { + var restart = function restart() { + var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + finished: true + }; + + if (isFinished || iterationsSoFar === iterations || result.finished === false) { + callback && callback(result); + } else { + iterationsSoFar++; + animation.reset(); + animation.start(restart); + } + }; + + if (!animation || iterations === 0) { + callback && callback({ + finished: true + }); + } else { + if (animation._isUsingNativeDriver()) { + animation._startNativeLoop(iterations); + } else { + restart(); + } + } + }, + stop: function stop() { + isFinished = true; + animation.stop(); + }, + reset: function reset() { + iterationsSoFar = 0; + isFinished = false; + animation.reset(); + }, + _startNativeLoop: function _startNativeLoop() { + throw new Error('Loops run using the native driver cannot contain Animated.loop animations'); + }, + _isUsingNativeDriver: function _isUsingNativeDriver() { + return animation._isUsingNativeDriver(); + } + }; + }; + + function forkEvent(event, listener) { + if (!event) { + return listener; + } else if (event instanceof AnimatedEvent) { + event.__addListener(listener); + + return event; + } else { + return function () { + typeof event === 'function' && event.apply(void 0, arguments); + listener.apply(void 0, arguments); + }; + } + } + + function unforkEvent(event, listener) { + if (event && event instanceof AnimatedEvent) { + event.__removeListener(listener); + } + } + + var event = function event(argMapping, config) { + var animatedEvent = new AnimatedEvent(argMapping, config); + + if (animatedEvent.__isNative) { + return animatedEvent; + } else { + return animatedEvent.__getHandler(); + } + }; + + module.exports = { + Value: AnimatedValue, + ValueXY: AnimatedValueXY, + Interpolation: AnimatedInterpolation, + Node: AnimatedNode, + decay: decay, + timing: timing, + spring: spring, + add: add, + subtract: subtract, + divide: divide, + multiply: multiply, + modulo: modulo, + diffClamp: diffClamp, + delay: delay, + sequence: sequence, + parallel: parallel, + stagger: stagger, + loop: loop, + event: event, + createAnimatedComponent: createAnimatedComponent, + attachNativeEvent: attachNativeEvent, + forkEvent: forkEvent, + unforkEvent: unforkEvent, + __PropsOnlyForTests: AnimatedProps + }; +},333,[334,342,343,344,336,345,346,337,347,350,351,335,352,353,355,357,360],"node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], './nodes/AnimatedValue'); + + var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[1], './NativeAnimatedHelper'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[2], 'ReactNative'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var _require = _$$_REQUIRE(_dependencyMap[1], './NativeAnimatedHelper'), + shouldUseNativeDriver = _require.shouldUseNativeDriver; + + function attachNativeEvent(viewRef, eventName, argMapping) { + var eventMappings = []; + + var traverse = function traverse(value, path) { + if (value instanceof AnimatedValue) { + value.__makeNative(); + + eventMappings.push({ + nativeEventPath: path, + animatedValueTag: value.__getNativeTag() + }); + } else if (typeof value === 'object') { + for (var _key in value) { + traverse(value[_key], path.concat(_key)); + } + } + }; + + invariant(argMapping[0] && argMapping[0].nativeEvent, 'Native driven events only support animated values contained inside `nativeEvent`.'); + traverse(argMapping[0].nativeEvent, []); + var viewTag = ReactNative.findNodeHandle(viewRef); + eventMappings.forEach(function (mapping) { + NativeAnimatedHelper.API.addAnimatedEventToView(viewTag, eventName, mapping); + }); + return { + detach: function detach() { + eventMappings.forEach(function (mapping) { + NativeAnimatedHelper.API.removeAnimatedEventFromView(viewTag, eventName, mapping.animatedValueTag); + }); + } + }; + } + + var AnimatedEvent = function () { + function AnimatedEvent(argMapping) { + var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + _classCallCheck(this, AnimatedEvent); + + this._listeners = []; + this._argMapping = argMapping; + + if (config.listener) { + this.__addListener(config.listener); + } + + this._callListeners = this._callListeners.bind(this); + this._attachedEvent = null; + this.__isNative = shouldUseNativeDriver(config); + + if (__DEV__) { + this._validateMapping(); + } + } + + _createClass(AnimatedEvent, [{ + key: "__addListener", + value: function __addListener(callback) { + this._listeners.push(callback); + } + }, { + key: "__removeListener", + value: function __removeListener(callback) { + this._listeners = this._listeners.filter(function (listener) { + return listener !== callback; + }); + } + }, { + key: "__attach", + value: function __attach(viewRef, eventName) { + invariant(this.__isNative, 'Only native driven events need to be attached.'); + this._attachedEvent = attachNativeEvent(viewRef, eventName, this._argMapping); + } + }, { + key: "__detach", + value: function __detach(viewTag, eventName) { + invariant(this.__isNative, 'Only native driven events need to be detached.'); + this._attachedEvent && this._attachedEvent.detach(); + } + }, { + key: "__getHandler", + value: function __getHandler() { + var _this = this; + + if (this.__isNative) { + return this._callListeners; + } + + return function () { + for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { + args[_key2] = arguments[_key2]; + } + + var traverse = function traverse(recMapping, recEvt, key) { + if (typeof recEvt === 'number' && recMapping instanceof AnimatedValue) { + recMapping.setValue(recEvt); + } else if (typeof recMapping === 'object') { + for (var mappingKey in recMapping) { + traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey); + } + } + }; + + if (!_this.__isNative) { + _this._argMapping.forEach(function (mapping, idx) { + traverse(mapping, args[idx], 'arg' + idx); + }); + } + + _this._callListeners.apply(_this, args); + }; + } + }, { + key: "_callListeners", + value: function _callListeners() { + for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) { + args[_key3] = arguments[_key3]; + } + + this._listeners.forEach(function (listener) { + return listener.apply(void 0, args); + }); + } + }, { + key: "_validateMapping", + value: function _validateMapping() { + var traverse = function traverse(recMapping, recEvt, key) { + if (typeof recEvt === 'number') { + invariant(recMapping instanceof AnimatedValue, 'Bad mapping of type ' + typeof recMapping + ' for key ' + key + ', event value must map to AnimatedValue'); + return; + } + + invariant(typeof recMapping === 'object', 'Bad mapping of type ' + typeof recMapping + ' for key ' + key); + invariant(typeof recEvt === 'object', 'Bad event of type ' + typeof recEvt + ' for key ' + key); + + for (var mappingKey in recMapping) { + traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey); + } + }; + } + }]); + + return AnimatedEvent; + }(); + + module.exports = { + AnimatedEvent: AnimatedEvent, + attachNativeEvent: attachNativeEvent + }; +},334,[335,338,261,166],"node_modules/react-native/Libraries/Animated/src/AnimatedEvent.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[2], './AnimatedWithChildren'); + + var InteractionManager = _$$_REQUIRE(_dependencyMap[3], 'InteractionManager'); + + var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[4], '../NativeAnimatedHelper'); + + var NativeAnimatedAPI = NativeAnimatedHelper.API; + var _uniqueId = 1; + + function _flush(rootNode) { + var animatedStyles = new Set(); + + function findAnimatedStyles(node) { + if (typeof node.update === 'function') { + animatedStyles.add(node); + } else { + node.__getChildren().forEach(findAnimatedStyles); + } + } + + findAnimatedStyles(rootNode); + animatedStyles.forEach(function (animatedStyle) { + return animatedStyle.update(); + }); + } + + var AnimatedValue = function (_AnimatedWithChildren) { + function AnimatedValue(value) { + var _this; + + _classCallCheck(this, AnimatedValue); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedValue).call(this)); + _this._startingValue = _this._value = value; + _this._offset = 0; + _this._animation = null; + _this._listeners = {}; + return _this; + } + + _createClass(AnimatedValue, [{ + key: "__detach", + value: function __detach() { + this.stopAnimation(); + + _get(_getPrototypeOf(AnimatedValue.prototype), "__detach", this).call(this); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._value + this._offset; + } + }, { + key: "__makeNative", + value: function __makeNative() { + _get(_getPrototypeOf(AnimatedValue.prototype), "__makeNative", this).call(this); + + if (Object.keys(this._listeners).length) { + this._startListeningToNativeValueUpdates(); + } + } + }, { + key: "setValue", + value: function setValue(value) { + if (this._animation) { + this._animation.stop(); + + this._animation = null; + } + + this._updateValue(value, !this.__isNative); + + if (this.__isNative) { + NativeAnimatedAPI.setAnimatedNodeValue(this.__getNativeTag(), value); + } + } + }, { + key: "setOffset", + value: function setOffset(offset) { + this._offset = offset; + + if (this.__isNative) { + NativeAnimatedAPI.setAnimatedNodeOffset(this.__getNativeTag(), offset); + } + } + }, { + key: "flattenOffset", + value: function flattenOffset() { + this._value += this._offset; + this._offset = 0; + + if (this.__isNative) { + NativeAnimatedAPI.flattenAnimatedNodeOffset(this.__getNativeTag()); + } + } + }, { + key: "extractOffset", + value: function extractOffset() { + this._offset += this._value; + this._value = 0; + + if (this.__isNative) { + NativeAnimatedAPI.extractAnimatedNodeOffset(this.__getNativeTag()); + } + } + }, { + key: "addListener", + value: function addListener(callback) { + var id = String(_uniqueId++); + this._listeners[id] = callback; + + if (this.__isNative) { + this._startListeningToNativeValueUpdates(); + } + + return id; + } + }, { + key: "removeListener", + value: function removeListener(id) { + delete this._listeners[id]; + + if (this.__isNative && Object.keys(this._listeners).length === 0) { + this._stopListeningForNativeValueUpdates(); + } + } + }, { + key: "removeAllListeners", + value: function removeAllListeners() { + this._listeners = {}; + + if (this.__isNative) { + this._stopListeningForNativeValueUpdates(); + } + } + }, { + key: "_startListeningToNativeValueUpdates", + value: function _startListeningToNativeValueUpdates() { + var _this2 = this; + + if (this.__nativeAnimatedValueListener) { + return; + } + + NativeAnimatedAPI.startListeningToAnimatedNodeValue(this.__getNativeTag()); + this.__nativeAnimatedValueListener = NativeAnimatedHelper.nativeEventEmitter.addListener('onAnimatedValueUpdate', function (data) { + if (data.tag !== _this2.__getNativeTag()) { + return; + } + + _this2._updateValue(data.value, false); + }); + } + }, { + key: "_stopListeningForNativeValueUpdates", + value: function _stopListeningForNativeValueUpdates() { + if (!this.__nativeAnimatedValueListener) { + return; + } + + this.__nativeAnimatedValueListener.remove(); + + this.__nativeAnimatedValueListener = null; + NativeAnimatedAPI.stopListeningToAnimatedNodeValue(this.__getNativeTag()); + } + }, { + key: "stopAnimation", + value: function stopAnimation(callback) { + this.stopTracking(); + this._animation && this._animation.stop(); + this._animation = null; + callback && callback(this.__getValue()); + } + }, { + key: "resetAnimation", + value: function resetAnimation(callback) { + this.stopAnimation(callback); + this._value = this._startingValue; + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "animate", + value: function animate(animation, callback) { + var _this3 = this; + + var handle = null; + + if (animation.__isInteraction) { + handle = InteractionManager.createInteractionHandle(); + } + + var previousAnimation = this._animation; + this._animation && this._animation.stop(); + this._animation = animation; + animation.start(this._value, function (value) { + _this3._updateValue(value, true); + }, function (result) { + _this3._animation = null; + + if (handle !== null) { + InteractionManager.clearInteractionHandle(handle); + } + + callback && callback(result); + }, previousAnimation, this); + } + }, { + key: "stopTracking", + value: function stopTracking() { + this._tracking && this._tracking.__detach(); + this._tracking = null; + } + }, { + key: "track", + value: function track(tracking) { + this.stopTracking(); + this._tracking = tracking; + } + }, { + key: "_updateValue", + value: function _updateValue(value, flush) { + this._value = value; + + if (flush) { + _flush(this); + } + + for (var _key in this._listeners) { + this._listeners[_key]({ + value: this.__getValue() + }); + } + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'value', + value: this._value, + offset: this._offset + }; + } + }]); + + _inherits(AnimatedValue, _AnimatedWithChildren); + + return AnimatedValue; + }(AnimatedWithChildren); + + module.exports = AnimatedValue; +},335,[336,337,339,340,338],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedValue.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[0], './AnimatedNode'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[1], './AnimatedWithChildren'); + + var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[2], '../NativeAnimatedHelper'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var normalizeColor = _$$_REQUIRE(_dependencyMap[4], 'normalizeColor'); + + var linear = function linear(t) { + return t; + }; + + function createInterpolation(config) { + if (config.outputRange && typeof config.outputRange[0] === 'string') { + return createInterpolationFromStringOutputRange(config); + } + + var outputRange = config.outputRange; + checkInfiniteRange('outputRange', outputRange); + var inputRange = config.inputRange; + checkInfiniteRange('inputRange', inputRange); + checkValidInputRange(inputRange); + invariant(inputRange.length === outputRange.length, 'inputRange (' + inputRange.length + ') and outputRange (' + outputRange.length + ') must have the same length'); + var easing = config.easing || linear; + var extrapolateLeft = 'extend'; + + if (config.extrapolateLeft !== undefined) { + extrapolateLeft = config.extrapolateLeft; + } else if (config.extrapolate !== undefined) { + extrapolateLeft = config.extrapolate; + } + + var extrapolateRight = 'extend'; + + if (config.extrapolateRight !== undefined) { + extrapolateRight = config.extrapolateRight; + } else if (config.extrapolate !== undefined) { + extrapolateRight = config.extrapolate; + } + + return function (input) { + invariant(typeof input === 'number', 'Cannot interpolation an input which is not a number'); + var range = findRange(input, inputRange); + return interpolate(input, inputRange[range], inputRange[range + 1], outputRange[range], outputRange[range + 1], easing, extrapolateLeft, extrapolateRight); + }; + } + + function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight) { + var result = input; + + if (result < inputMin) { + if (extrapolateLeft === 'identity') { + return result; + } else if (extrapolateLeft === 'clamp') { + result = inputMin; + } else if (extrapolateLeft === 'extend') {} + } + + if (result > inputMax) { + if (extrapolateRight === 'identity') { + return result; + } else if (extrapolateRight === 'clamp') { + result = inputMax; + } else if (extrapolateRight === 'extend') {} + } + + if (outputMin === outputMax) { + return outputMin; + } + + if (inputMin === inputMax) { + if (input <= inputMin) { + return outputMin; + } + + return outputMax; + } + + if (inputMin === -Infinity) { + result = -result; + } else if (inputMax === Infinity) { + result = result - inputMin; + } else { + result = (result - inputMin) / (inputMax - inputMin); + } + + result = easing(result); + + if (outputMin === -Infinity) { + result = -result; + } else if (outputMax === Infinity) { + result = result + outputMin; + } else { + result = result * (outputMax - outputMin) + outputMin; + } + + return result; + } + + function colorToRgba(input) { + var int32Color = normalizeColor(input); + + if (int32Color === null) { + return input; + } + + int32Color = int32Color || 0; + var r = (int32Color & 0xff000000) >>> 24; + var g = (int32Color & 0x00ff0000) >>> 16; + var b = (int32Color & 0x0000ff00) >>> 8; + var a = (int32Color & 0x000000ff) / 255; + return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")"; + } + + var stringShapeRegex = /[0-9\.-]+/g; + + function createInterpolationFromStringOutputRange(config) { + var outputRange = config.outputRange; + invariant(outputRange.length >= 2, 'Bad output range'); + outputRange = outputRange.map(colorToRgba); + checkPattern(outputRange); + var outputRanges = outputRange[0].match(stringShapeRegex).map(function () { + return []; + }); + outputRange.forEach(function (value) { + value.match(stringShapeRegex).forEach(function (number, i) { + outputRanges[i].push(+number); + }); + }); + var interpolations = outputRange[0].match(stringShapeRegex).map(function (value, i) { + return createInterpolation(_objectSpread({}, config, { + outputRange: outputRanges[i] + })); + }); + var shouldRound = isRgbOrRgba(outputRange[0]); + return function (input) { + var i = 0; + return outputRange[0].replace(stringShapeRegex, function () { + var val = +interpolations[i++](input); + var rounded = shouldRound && i < 4 ? Math.round(val) : Math.round(val * 1000) / 1000; + return String(rounded); + }); + }; + } + + function isRgbOrRgba(range) { + return typeof range === 'string' && range.startsWith('rgb'); + } + + function checkPattern(arr) { + var pattern = arr[0].replace(stringShapeRegex, ''); + + for (var i = 1; i < arr.length; ++i) { + invariant(pattern === arr[i].replace(stringShapeRegex, ''), 'invalid pattern ' + arr[0] + ' and ' + arr[i]); + } + } + + function findRange(input, inputRange) { + var i; + + for (i = 1; i < inputRange.length - 1; ++i) { + if (inputRange[i] >= input) { + break; + } + } + + return i - 1; + } + + function checkValidInputRange(arr) { + invariant(arr.length >= 2, 'inputRange must have at least 2 elements'); + + for (var i = 1; i < arr.length; ++i) { + invariant(arr[i] >= arr[i - 1], 'inputRange must be monotonically non-decreasing ' + arr); + } + } + + function checkInfiniteRange(name, arr) { + invariant(arr.length >= 2, name + ' must have at least 2 elements'); + invariant(arr.length !== 2 || arr[0] !== -Infinity || arr[1] !== Infinity, name + 'cannot be ]-infinity;+infinity[ ' + arr); + } + + var AnimatedInterpolation = function (_AnimatedWithChildren) { + function AnimatedInterpolation(parent, config) { + var _this; + + _classCallCheck(this, AnimatedInterpolation); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedInterpolation).call(this)); + _this._parent = parent; + _this._config = config; + _this._interpolation = createInterpolation(config); + return _this; + } + + _createClass(AnimatedInterpolation, [{ + key: "__makeNative", + value: function __makeNative() { + this._parent.__makeNative(); + + _get(_getPrototypeOf(AnimatedInterpolation.prototype), "__makeNative", this).call(this); + } + }, { + key: "__getValue", + value: function __getValue() { + var parentValue = this._parent.__getValue(); + + invariant(typeof parentValue === 'number', 'Cannot interpolate an input which is not a number.'); + return this._interpolation(parentValue); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._parent.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._parent.__removeChild(this); + + _get(_getPrototypeOf(AnimatedInterpolation.prototype), "__detach", this).call(this); + } + }, { + key: "__transformDataType", + value: function __transformDataType(range) { + return range.map(function (value) { + if (typeof value !== 'string') { + return value; + } + + if (/deg$/.test(value)) { + var degrees = parseFloat(value) || 0; + var radians = degrees * Math.PI / 180.0; + return radians; + } else { + return parseFloat(value) || 0; + } + }); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + if (__DEV__) { + NativeAnimatedHelper.validateInterpolation(this._config); + } + + return { + inputRange: this._config.inputRange, + outputRange: this.__transformDataType(this._config.outputRange), + extrapolateLeft: this._config.extrapolateLeft || this._config.extrapolate || 'extend', + extrapolateRight: this._config.extrapolateRight || this._config.extrapolate || 'extend', + type: 'interpolation' + }; + } + }]); + + _inherits(AnimatedInterpolation, _AnimatedWithChildren); + + return AnimatedInterpolation; + }(AnimatedWithChildren); + + AnimatedInterpolation.__createInterpolation = createInterpolation; + module.exports = AnimatedInterpolation; +},336,[337,339,338,166,208],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedInterpolation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], '../NativeAnimatedHelper'); + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var AnimatedNode = function () { + function AnimatedNode() { + _classCallCheck(this, AnimatedNode); + } + + _createClass(AnimatedNode, [{ + key: "__attach", + value: function __attach() {} + }, { + key: "__detach", + value: function __detach() { + if (this.__isNative && this.__nativeTag != null) { + NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag); + this.__nativeTag = undefined; + } + } + }, { + key: "__getValue", + value: function __getValue() {} + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + return this.__getValue(); + } + }, { + key: "__addChild", + value: function __addChild(child) {} + }, { + key: "__removeChild", + value: function __removeChild(child) {} + }, { + key: "__getChildren", + value: function __getChildren() { + return []; + } + }, { + key: "__makeNative", + value: function __makeNative() { + if (!this.__isNative) { + throw new Error('This node cannot be made a "native" animated node'); + } + } + }, { + key: "__getNativeTag", + value: function __getNativeTag() { + NativeAnimatedHelper.assertNativeAnimatedModule(); + invariant(this.__isNative, 'Attempt to get native tag from node not marked as "native"'); + + if (this.__nativeTag == null) { + var nativeTag = NativeAnimatedHelper.generateNewNodeTag(); + NativeAnimatedHelper.API.createAnimatedNode(nativeTag, this.__getNativeConfig()); + this.__nativeTag = nativeTag; + } + + return this.__nativeTag; + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + throw new Error('This JS animated node type cannot be used as native animated node'); + } + }, { + key: "toJSON", + value: function toJSON() { + return this.__getValue(); + } + }]); + + return AnimatedNode; + }(); + + module.exports = AnimatedNode; +},337,[338,166],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedNode.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var NativeAnimatedModule = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').NativeAnimatedModule; + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + var __nativeAnimatedNodeTagCount = 1; + var __nativeAnimationIdCount = 1; + var nativeEventEmitter; + var API = { + createAnimatedNode: function createAnimatedNode(tag, config) { + assertNativeAnimatedModule(); + NativeAnimatedModule.createAnimatedNode(tag, config); + }, + startListeningToAnimatedNodeValue: function startListeningToAnimatedNodeValue(tag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.startListeningToAnimatedNodeValue(tag); + }, + stopListeningToAnimatedNodeValue: function stopListeningToAnimatedNodeValue(tag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.stopListeningToAnimatedNodeValue(tag); + }, + connectAnimatedNodes: function connectAnimatedNodes(parentTag, childTag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.connectAnimatedNodes(parentTag, childTag); + }, + disconnectAnimatedNodes: function disconnectAnimatedNodes(parentTag, childTag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.disconnectAnimatedNodes(parentTag, childTag); + }, + startAnimatingNode: function startAnimatingNode(animationId, nodeTag, config, endCallback) { + assertNativeAnimatedModule(); + NativeAnimatedModule.startAnimatingNode(animationId, nodeTag, config, endCallback); + }, + stopAnimation: function stopAnimation(animationId) { + assertNativeAnimatedModule(); + NativeAnimatedModule.stopAnimation(animationId); + }, + setAnimatedNodeValue: function setAnimatedNodeValue(nodeTag, value) { + assertNativeAnimatedModule(); + NativeAnimatedModule.setAnimatedNodeValue(nodeTag, value); + }, + setAnimatedNodeOffset: function setAnimatedNodeOffset(nodeTag, offset) { + assertNativeAnimatedModule(); + NativeAnimatedModule.setAnimatedNodeOffset(nodeTag, offset); + }, + flattenAnimatedNodeOffset: function flattenAnimatedNodeOffset(nodeTag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.flattenAnimatedNodeOffset(nodeTag); + }, + extractAnimatedNodeOffset: function extractAnimatedNodeOffset(nodeTag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.extractAnimatedNodeOffset(nodeTag); + }, + connectAnimatedNodeToView: function connectAnimatedNodeToView(nodeTag, viewTag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.connectAnimatedNodeToView(nodeTag, viewTag); + }, + disconnectAnimatedNodeFromView: function disconnectAnimatedNodeFromView(nodeTag, viewTag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.disconnectAnimatedNodeFromView(nodeTag, viewTag); + }, + dropAnimatedNode: function dropAnimatedNode(tag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.dropAnimatedNode(tag); + }, + addAnimatedEventToView: function addAnimatedEventToView(viewTag, eventName, eventMapping) { + assertNativeAnimatedModule(); + NativeAnimatedModule.addAnimatedEventToView(viewTag, eventName, eventMapping); + }, + removeAnimatedEventFromView: function removeAnimatedEventFromView(viewTag, eventName, animatedNodeTag) { + assertNativeAnimatedModule(); + NativeAnimatedModule.removeAnimatedEventFromView(viewTag, eventName, animatedNodeTag); + } + }; + var STYLES_WHITELIST = { + opacity: true, + transform: true, + borderRadius: true, + borderBottomEndRadius: true, + borderBottomLeftRadius: true, + borderBottomRightRadius: true, + borderBottomStartRadius: true, + borderTopEndRadius: true, + borderTopLeftRadius: true, + borderTopRightRadius: true, + borderTopStartRadius: true, + shadowOpacity: true, + shadowRadius: true, + scaleX: true, + scaleY: true, + translateX: true, + translateY: true + }; + var TRANSFORM_WHITELIST = { + translateX: true, + translateY: true, + scale: true, + scaleX: true, + scaleY: true, + rotate: true, + rotateX: true, + rotateY: true, + perspective: true + }; + var SUPPORTED_INTERPOLATION_PARAMS = { + inputRange: true, + outputRange: true, + extrapolate: true, + extrapolateRight: true, + extrapolateLeft: true + }; + + function addWhitelistedStyleProp(prop) { + STYLES_WHITELIST[prop] = true; + } + + function addWhitelistedTransformProp(prop) { + TRANSFORM_WHITELIST[prop] = true; + } + + function addWhitelistedInterpolationParam(param) { + SUPPORTED_INTERPOLATION_PARAMS[param] = true; + } + + function validateTransform(configs) { + configs.forEach(function (config) { + if (!TRANSFORM_WHITELIST.hasOwnProperty(config.property)) { + throw new Error("Property '" + config.property + "' is not supported by native animated module"); + } + }); + } + + function validateStyles(styles) { + for (var key in styles) { + if (!STYLES_WHITELIST.hasOwnProperty(key)) { + throw new Error("Style property '" + key + "' is not supported by native animated module"); + } + } + } + + function validateInterpolation(config) { + for (var key in config) { + if (!SUPPORTED_INTERPOLATION_PARAMS.hasOwnProperty(key)) { + throw new Error("Interpolation property '" + key + "' is not supported by native animated module"); + } + } + } + + function generateNewNodeTag() { + return __nativeAnimatedNodeTagCount++; + } + + function generateNewAnimationId() { + return __nativeAnimationIdCount++; + } + + function assertNativeAnimatedModule() { + invariant(NativeAnimatedModule, 'Native animated module is not available'); + } + + var _warnedMissingNativeAnimated = false; + + function shouldUseNativeDriver(config) { + if (config.useNativeDriver && !NativeAnimatedModule) { + if (!_warnedMissingNativeAnimated) { + console.warn('Animated: `useNativeDriver` is not supported because the native ' + 'animated module is missing. Falling back to JS-based animation. To ' + 'resolve this, add `RCTAnimation` module to this app, or remove ' + '`useNativeDriver`. ' + 'More info: https://github.com/facebook/react-native/issues/11094#issuecomment-263240420'); + _warnedMissingNativeAnimated = true; + } + + return false; + } + + return config.useNativeDriver || false; + } + + module.exports = { + API: API, + addWhitelistedStyleProp: addWhitelistedStyleProp, + addWhitelistedTransformProp: addWhitelistedTransformProp, + addWhitelistedInterpolationParam: addWhitelistedInterpolationParam, + validateStyles: validateStyles, + validateTransform: validateTransform, + validateInterpolation: validateInterpolation, + generateNewNodeTag: generateNewNodeTag, + generateNewAnimationId: generateNewAnimationId, + assertNativeAnimatedModule: assertNativeAnimatedModule, + shouldUseNativeDriver: shouldUseNativeDriver, + + get nativeEventEmitter() { + if (!nativeEventEmitter) { + nativeEventEmitter = new NativeEventEmitter(NativeAnimatedModule); + } + + return nativeEventEmitter; + } + + }; +},338,[168,286,166],"node_modules/react-native/Libraries/Animated/src/NativeAnimatedHelper.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[0], './AnimatedNode'); + + var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[1], '../NativeAnimatedHelper'); + + var AnimatedWithChildren = function (_AnimatedNode) { + function AnimatedWithChildren() { + var _this; + + _classCallCheck(this, AnimatedWithChildren); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedWithChildren).call(this)); + _this._children = []; + return _this; + } + + _createClass(AnimatedWithChildren, [{ + key: "__makeNative", + value: function __makeNative() { + if (!this.__isNative) { + this.__isNative = true; + + for (var _iterator = this._children, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var _child = _ref; + + _child.__makeNative(); + + NativeAnimatedHelper.API.connectAnimatedNodes(this.__getNativeTag(), _child.__getNativeTag()); + } + } + } + }, { + key: "__addChild", + value: function __addChild(child) { + if (this._children.length === 0) { + this.__attach(); + } + + this._children.push(child); + + if (this.__isNative) { + child.__makeNative(); + + NativeAnimatedHelper.API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + } + } + }, { + key: "__removeChild", + value: function __removeChild(child) { + var index = this._children.indexOf(child); + + if (index === -1) { + console.warn("Trying to remove a child that doesn't exist"); + return; + } + + if (this.__isNative && child.__isNative) { + NativeAnimatedHelper.API.disconnectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); + } + + this._children.splice(index, 1); + + if (this._children.length === 0) { + this.__detach(); + } + } + }, { + key: "__getChildren", + value: function __getChildren() { + return this._children; + } + }]); + + _inherits(AnimatedWithChildren, _AnimatedNode); + + return AnimatedWithChildren; + }(AnimatedNode); + + module.exports = AnimatedWithChildren; +},339,[337,338],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedWithChildren.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); + + var EventEmitter = _$$_REQUIRE(_dependencyMap[1], 'EventEmitter'); + + var Set = _$$_REQUIRE(_dependencyMap[2], 'Set'); + + var TaskQueue = _$$_REQUIRE(_dependencyMap[3], 'TaskQueue'); + + var infoLog = _$$_REQUIRE(_dependencyMap[4], 'infoLog'); + + var invariant = _$$_REQUIRE(_dependencyMap[5], 'fbjs/lib/invariant'); + + var keyMirror = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/keyMirror'); + + var _emitter = new EventEmitter(); + + var DEBUG_DELAY = 0; + var DEBUG = false; + var InteractionManager = { + Events: keyMirror({ + interactionStart: true, + interactionComplete: true + }), + runAfterInteractions: function runAfterInteractions(task) { + var tasks = []; + var promise = new Promise(function (resolve) { + _scheduleUpdate(); + + if (task) { + tasks.push(task); + } + + tasks.push({ + run: resolve, + name: 'resolve ' + (task && task.name || '?') + }); + + _taskQueue.enqueueTasks(tasks); + }); + return { + then: promise.then.bind(promise), + done: function done() { + if (promise.done) { + return promise.done.apply(promise, arguments); + } else { + console.warn('Tried to call done when not supported by current Promise implementation.'); + } + }, + cancel: function cancel() { + _taskQueue.cancelTasks(tasks); + } + }; + }, + createInteractionHandle: function createInteractionHandle() { + DEBUG && infoLog('create interaction handle'); + + _scheduleUpdate(); + + var handle = ++_inc; + + _addInteractionSet.add(handle); + + return handle; + }, + clearInteractionHandle: function clearInteractionHandle(handle) { + DEBUG && infoLog('clear interaction handle'); + invariant(!!handle, 'Must provide a handle to clear.'); + + _scheduleUpdate(); + + _addInteractionSet.delete(handle); + + _deleteInteractionSet.add(handle); + }, + addListener: _emitter.addListener.bind(_emitter), + setDeadline: function setDeadline(deadline) { + _deadline = deadline; + } + }; + + var _interactionSet = new Set(); + + var _addInteractionSet = new Set(); + + var _deleteInteractionSet = new Set(); + + var _taskQueue = new TaskQueue({ + onMoreTasks: _scheduleUpdate + }); + + var _nextUpdateHandle = 0; + var _inc = 0; + + var _deadline = -1; + + function _scheduleUpdate() { + if (!_nextUpdateHandle) { + if (_deadline > 0) { + _nextUpdateHandle = setTimeout(_processUpdate, 0 + DEBUG_DELAY); + } else { + _nextUpdateHandle = setImmediate(_processUpdate); + } + } + } + + function _processUpdate() { + _nextUpdateHandle = 0; + var interactionCount = _interactionSet.size; + + _addInteractionSet.forEach(function (handle) { + return _interactionSet.add(handle); + }); + + _deleteInteractionSet.forEach(function (handle) { + return _interactionSet.delete(handle); + }); + + var nextInteractionCount = _interactionSet.size; + + if (interactionCount !== 0 && nextInteractionCount === 0) { + _emitter.emit(InteractionManager.Events.interactionComplete); + } else if (interactionCount === 0 && nextInteractionCount !== 0) { + _emitter.emit(InteractionManager.Events.interactionStart); + } + + if (nextInteractionCount === 0) { + while (_taskQueue.hasTasksToProcess()) { + _taskQueue.processNext(); + + if (_deadline > 0 && BatchedBridge.getEventLoopRunningTime() >= _deadline) { + _scheduleUpdate(); + + break; + } + } + } + + _addInteractionSet.clear(); + + _deleteInteractionSet.clear(); + } + + module.exports = InteractionManager; +},340,[169,195,270,341,309,166,210],"node_modules/react-native/Libraries/Interaction/InteractionManager.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var infoLog = _$$_REQUIRE(_dependencyMap[0], 'infoLog'); + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var DEBUG = false; + + var TaskQueue = function () { + function TaskQueue(_ref) { + var onMoreTasks = _ref.onMoreTasks; + + _classCallCheck(this, TaskQueue); + + this._onMoreTasks = onMoreTasks; + this._queueStack = [{ + tasks: [], + popable: false + }]; + } + + _createClass(TaskQueue, [{ + key: "enqueue", + value: function enqueue(task) { + this._getCurrentQueue().push(task); + } + }, { + key: "enqueueTasks", + value: function enqueueTasks(tasks) { + var _this = this; + + tasks.forEach(function (task) { + return _this.enqueue(task); + }); + } + }, { + key: "cancelTasks", + value: function cancelTasks(tasksToCancel) { + this._queueStack = this._queueStack.map(function (queue) { + return _objectSpread({}, queue, { + tasks: queue.tasks.filter(function (task) { + return tasksToCancel.indexOf(task) === -1; + }) + }); + }).filter(function (queue, idx) { + return queue.tasks.length > 0 || idx === 0; + }); + } + }, { + key: "hasTasksToProcess", + value: function hasTasksToProcess() { + return this._getCurrentQueue().length > 0; + } + }, { + key: "processNext", + value: function processNext() { + var queue = this._getCurrentQueue(); + + if (queue.length) { + var task = queue.shift(); + + try { + if (task.gen) { + DEBUG && infoLog('genPromise for task ' + task.name); + + this._genPromise(task); + } else if (task.run) { + DEBUG && infoLog('run task ' + task.name); + task.run(); + } else { + invariant(typeof task === 'function', 'Expected Function, SimpleTask, or PromiseTask, but got:\n' + JSON.stringify(task, null, 2)); + DEBUG && infoLog('run anonymous task'); + task(); + } + } catch (e) { + e.message = 'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message; + throw e; + } + } + } + }, { + key: "_getCurrentQueue", + value: function _getCurrentQueue() { + var stackIdx = this._queueStack.length - 1; + var queue = this._queueStack[stackIdx]; + + if (queue.popable && queue.tasks.length === 0 && this._queueStack.length > 1) { + this._queueStack.pop(); + + DEBUG && infoLog('popped queue: ', { + stackIdx: stackIdx, + queueStackSize: this._queueStack.length + }); + return this._getCurrentQueue(); + } else { + return queue.tasks; + } + } + }, { + key: "_genPromise", + value: function _genPromise(task) { + var _this2 = this; + + this._queueStack.push({ + tasks: [], + popable: false + }); + + var stackIdx = this._queueStack.length - 1; + DEBUG && infoLog('push new queue: ', { + stackIdx: stackIdx + }); + DEBUG && infoLog('exec gen task ' + task.name); + task.gen().then(function () { + DEBUG && infoLog('onThen for gen task ' + task.name, { + stackIdx: stackIdx, + queueStackSize: _this2._queueStack.length + }); + _this2._queueStack[stackIdx].popable = true; + _this2.hasTasksToProcess() && _this2._onMoreTasks(); + }).catch(function (ex) { + ex.message = "TaskQueue: Error resolving Promise in task " + task.name + ": " + ex.message; + throw ex; + }).done(); + } + }]); + + return TaskQueue; + }(); + + module.exports = TaskQueue; +},341,[309,166],"node_modules/react-native/Libraries/Interaction/TaskQueue.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[2], './AnimatedValue'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[3], './AnimatedWithChildren'); + + var AnimatedAddition = function (_AnimatedWithChildren) { + function AnimatedAddition(a, b) { + var _this; + + _classCallCheck(this, AnimatedAddition); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedAddition).call(this)); + _this._a = typeof a === 'number' ? new AnimatedValue(a) : a; + _this._b = typeof b === 'number' ? new AnimatedValue(b) : b; + return _this; + } + + _createClass(AnimatedAddition, [{ + key: "__makeNative", + value: function __makeNative() { + this._a.__makeNative(); + + this._b.__makeNative(); + + _get(_getPrototypeOf(AnimatedAddition.prototype), "__makeNative", this).call(this); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._a.__getValue() + this._b.__getValue(); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + + this._b.__removeChild(this); + + _get(_getPrototypeOf(AnimatedAddition.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'addition', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + + _inherits(AnimatedAddition, _AnimatedWithChildren); + + return AnimatedAddition; + }(AnimatedWithChildren); + + module.exports = AnimatedAddition; +},342,[336,337,335,339],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedAddition.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[2], './AnimatedWithChildren'); + + var AnimatedDiffClamp = function (_AnimatedWithChildren) { + function AnimatedDiffClamp(a, min, max) { + var _this; + + _classCallCheck(this, AnimatedDiffClamp); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedDiffClamp).call(this)); + _this._a = a; + _this._min = min; + _this._max = max; + _this._value = _this._lastValue = _this._a.__getValue(); + return _this; + } + + _createClass(AnimatedDiffClamp, [{ + key: "__makeNative", + value: function __makeNative() { + this._a.__makeNative(); + + _get(_getPrototypeOf(AnimatedDiffClamp.prototype), "__makeNative", this).call(this); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "__getValue", + value: function __getValue() { + var value = this._a.__getValue(); + + var diff = value - this._lastValue; + this._lastValue = value; + this._value = Math.min(Math.max(this._value + diff, this._min), this._max); + return this._value; + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + + _get(_getPrototypeOf(AnimatedDiffClamp.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'diffclamp', + input: this._a.__getNativeTag(), + min: this._min, + max: this._max + }; + } + }]); + + _inherits(AnimatedDiffClamp, _AnimatedWithChildren); + + return AnimatedDiffClamp; + }(AnimatedWithChildren); + + module.exports = AnimatedDiffClamp; +},343,[336,337,339],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedDiffClamp.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[2], './AnimatedValue'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[3], './AnimatedWithChildren'); + + var AnimatedDivision = function (_AnimatedWithChildren) { + function AnimatedDivision(a, b) { + var _this; + + _classCallCheck(this, AnimatedDivision); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedDivision).call(this)); + _this._a = typeof a === 'number' ? new AnimatedValue(a) : a; + _this._b = typeof b === 'number' ? new AnimatedValue(b) : b; + return _this; + } + + _createClass(AnimatedDivision, [{ + key: "__makeNative", + value: function __makeNative() { + this._a.__makeNative(); + + this._b.__makeNative(); + + _get(_getPrototypeOf(AnimatedDivision.prototype), "__makeNative", this).call(this); + } + }, { + key: "__getValue", + value: function __getValue() { + var a = this._a.__getValue(); + + var b = this._b.__getValue(); + + if (b === 0) { + console.error('Detected division by zero in AnimatedDivision'); + } + + return a / b; + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + + this._b.__removeChild(this); + + _get(_getPrototypeOf(AnimatedDivision.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'division', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + + _inherits(AnimatedDivision, _AnimatedWithChildren); + + return AnimatedDivision; + }(AnimatedWithChildren); + + module.exports = AnimatedDivision; +},344,[336,337,335,339],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedDivision.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[2], './AnimatedWithChildren'); + + var AnimatedModulo = function (_AnimatedWithChildren) { + function AnimatedModulo(a, modulus) { + var _this; + + _classCallCheck(this, AnimatedModulo); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedModulo).call(this)); + _this._a = a; + _this._modulus = modulus; + return _this; + } + + _createClass(AnimatedModulo, [{ + key: "__makeNative", + value: function __makeNative() { + this._a.__makeNative(); + + _get(_getPrototypeOf(AnimatedModulo.prototype), "__makeNative", this).call(this); + } + }, { + key: "__getValue", + value: function __getValue() { + return (this._a.__getValue() % this._modulus + this._modulus) % this._modulus; + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + + _get(_getPrototypeOf(AnimatedModulo.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'modulus', + input: this._a.__getNativeTag(), + modulus: this._modulus + }; + } + }]); + + _inherits(AnimatedModulo, _AnimatedWithChildren); + + return AnimatedModulo; + }(AnimatedWithChildren); + + module.exports = AnimatedModulo; +},345,[336,337,339],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedModulo.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[2], './AnimatedValue'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[3], './AnimatedWithChildren'); + + var AnimatedMultiplication = function (_AnimatedWithChildren) { + function AnimatedMultiplication(a, b) { + var _this; + + _classCallCheck(this, AnimatedMultiplication); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedMultiplication).call(this)); + _this._a = typeof a === 'number' ? new AnimatedValue(a) : a; + _this._b = typeof b === 'number' ? new AnimatedValue(b) : b; + return _this; + } + + _createClass(AnimatedMultiplication, [{ + key: "__makeNative", + value: function __makeNative() { + this._a.__makeNative(); + + this._b.__makeNative(); + + _get(_getPrototypeOf(AnimatedMultiplication.prototype), "__makeNative", this).call(this); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._a.__getValue() * this._b.__getValue(); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + + this._b.__removeChild(this); + + _get(_getPrototypeOf(AnimatedMultiplication.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'multiplication', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + + _inherits(AnimatedMultiplication, _AnimatedWithChildren); + + return AnimatedMultiplication; + }(AnimatedWithChildren); + + module.exports = AnimatedMultiplication; +},346,[336,337,335,339],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedMultiplication.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _require = _$$_REQUIRE(_dependencyMap[0], '../AnimatedEvent'), + AnimatedEvent = _require.AnimatedEvent; + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); + + var AnimatedStyle = _$$_REQUIRE(_dependencyMap[2], './AnimatedStyle'); + + var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[3], '../NativeAnimatedHelper'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[4], 'ReactNative'); + + var invariant = _$$_REQUIRE(_dependencyMap[5], 'fbjs/lib/invariant'); + + var AnimatedProps = function (_AnimatedNode) { + function AnimatedProps(props, callback) { + var _this; + + _classCallCheck(this, AnimatedProps); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedProps).call(this)); + + if (props.style) { + props = _objectSpread({}, props, { + style: new AnimatedStyle(props.style) + }); + } + + _this._props = props; + _this._callback = callback; + + _this.__attach(); + + return _this; + } + + _createClass(AnimatedProps, [{ + key: "__getValue", + value: function __getValue() { + var props = {}; + + for (var key in this._props) { + var value = this._props[key]; + + if (value instanceof AnimatedNode) { + if (!value.__isNative || value instanceof AnimatedStyle) { + props[key] = value.__getValue(); + } + } else if (value instanceof AnimatedEvent) { + props[key] = value.__getHandler(); + } else { + props[key] = value; + } + } + + return props; + } + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + var props = {}; + + for (var key in this._props) { + var value = this._props[key]; + + if (value instanceof AnimatedNode) { + props[key] = value.__getAnimatedValue(); + } + } + + return props; + } + }, { + key: "__attach", + value: function __attach() { + for (var key in this._props) { + var value = this._props[key]; + + if (value instanceof AnimatedNode) { + value.__addChild(this); + } + } + } + }, { + key: "__detach", + value: function __detach() { + if (this.__isNative && this._animatedView) { + this.__disconnectAnimatedView(); + } + + for (var key in this._props) { + var value = this._props[key]; + + if (value instanceof AnimatedNode) { + value.__removeChild(this); + } + } + + _get(_getPrototypeOf(AnimatedProps.prototype), "__detach", this).call(this); + } + }, { + key: "update", + value: function update() { + this._callback(); + } + }, { + key: "__makeNative", + value: function __makeNative() { + if (!this.__isNative) { + this.__isNative = true; + + for (var key in this._props) { + var value = this._props[key]; + + if (value instanceof AnimatedNode) { + value.__makeNative(); + } + } + + if (this._animatedView) { + this.__connectAnimatedView(); + } + } + } + }, { + key: "setNativeView", + value: function setNativeView(animatedView) { + if (this._animatedView === animatedView) { + return; + } + + this._animatedView = animatedView; + + if (this.__isNative) { + this.__connectAnimatedView(); + } + } + }, { + key: "__connectAnimatedView", + value: function __connectAnimatedView() { + invariant(this.__isNative, 'Expected node to be marked as "native"'); + var nativeViewTag = ReactNative.findNodeHandle(this._animatedView); + invariant(nativeViewTag != null, 'Unable to locate attached view in the native tree'); + NativeAnimatedHelper.API.connectAnimatedNodeToView(this.__getNativeTag(), nativeViewTag); + } + }, { + key: "__disconnectAnimatedView", + value: function __disconnectAnimatedView() { + invariant(this.__isNative, 'Expected node to be marked as "native"'); + var nativeViewTag = ReactNative.findNodeHandle(this._animatedView); + invariant(nativeViewTag != null, 'Unable to locate attached view in the native tree'); + NativeAnimatedHelper.API.disconnectAnimatedNodeFromView(this.__getNativeTag(), nativeViewTag); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var propsConfig = {}; + + for (var propKey in this._props) { + var value = this._props[propKey]; + + if (value instanceof AnimatedNode) { + propsConfig[propKey] = value.__getNativeTag(); + } + } + + return { + type: 'props', + props: propsConfig + }; + } + }]); + + _inherits(AnimatedProps, _AnimatedNode); + + return AnimatedProps; + }(AnimatedNode); + + module.exports = AnimatedProps; +},347,[334,337,348,338,261,166],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedProps.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[0], './AnimatedNode'); + + var AnimatedTransform = _$$_REQUIRE(_dependencyMap[1], './AnimatedTransform'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[2], './AnimatedWithChildren'); + + var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[3], '../NativeAnimatedHelper'); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[4], 'flattenStyle'); + + var AnimatedStyle = function (_AnimatedWithChildren) { + function AnimatedStyle(style) { + var _this; + + _classCallCheck(this, AnimatedStyle); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedStyle).call(this)); + style = flattenStyle(style) || {}; + + if (style.transform) { + style = _objectSpread({}, style, { + transform: new AnimatedTransform(style.transform) + }); + } + + _this._style = style; + return _this; + } + + _createClass(AnimatedStyle, [{ + key: "_walkStyleAndGetValues", + value: function _walkStyleAndGetValues(style) { + var updatedStyle = {}; + + for (var key in style) { + var value = style[key]; + + if (value instanceof AnimatedNode) { + if (!value.__isNative) { + updatedStyle[key] = value.__getValue(); + } + } else if (value && !Array.isArray(value) && typeof value === 'object') { + updatedStyle[key] = this._walkStyleAndGetValues(value); + } else { + updatedStyle[key] = value; + } + } + + return updatedStyle; + } + }, { + key: "__getValue", + value: function __getValue() { + return this._walkStyleAndGetValues(this._style); + } + }, { + key: "_walkStyleAndGetAnimatedValues", + value: function _walkStyleAndGetAnimatedValues(style) { + var updatedStyle = {}; + + for (var key in style) { + var value = style[key]; + + if (value instanceof AnimatedNode) { + updatedStyle[key] = value.__getAnimatedValue(); + } else if (value && !Array.isArray(value) && typeof value === 'object') { + updatedStyle[key] = this._walkStyleAndGetAnimatedValues(value); + } + } + + return updatedStyle; + } + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + return this._walkStyleAndGetAnimatedValues(this._style); + } + }, { + key: "__attach", + value: function __attach() { + for (var key in this._style) { + var value = this._style[key]; + + if (value instanceof AnimatedNode) { + value.__addChild(this); + } + } + } + }, { + key: "__detach", + value: function __detach() { + for (var key in this._style) { + var value = this._style[key]; + + if (value instanceof AnimatedNode) { + value.__removeChild(this); + } + } + + _get(_getPrototypeOf(AnimatedStyle.prototype), "__detach", this).call(this); + } + }, { + key: "__makeNative", + value: function __makeNative() { + _get(_getPrototypeOf(AnimatedStyle.prototype), "__makeNative", this).call(this); + + for (var key in this._style) { + var value = this._style[key]; + + if (value instanceof AnimatedNode) { + value.__makeNative(); + } + } + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var styleConfig = {}; + + for (var styleKey in this._style) { + if (this._style[styleKey] instanceof AnimatedNode) { + styleConfig[styleKey] = this._style[styleKey].__getNativeTag(); + } + } + + NativeAnimatedHelper.validateStyles(styleConfig); + return { + type: 'style', + style: styleConfig + }; + } + }]); + + _inherits(AnimatedStyle, _AnimatedWithChildren); + + return AnimatedStyle; + }(AnimatedWithChildren); + + module.exports = AnimatedStyle; +},348,[337,349,339,338,226],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedStyle.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[0], './AnimatedNode'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[1], './AnimatedWithChildren'); + + var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[2], '../NativeAnimatedHelper'); + + var AnimatedTransform = function (_AnimatedWithChildren) { + function AnimatedTransform(transforms) { + var _this; + + _classCallCheck(this, AnimatedTransform); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedTransform).call(this)); + _this._transforms = transforms; + return _this; + } + + _createClass(AnimatedTransform, [{ + key: "__makeNative", + value: function __makeNative() { + _get(_getPrototypeOf(AnimatedTransform.prototype), "__makeNative", this).call(this); + + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + + if (value instanceof AnimatedNode) { + value.__makeNative(); + } + } + }); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._transforms.map(function (transform) { + var result = {}; + + for (var key in transform) { + var value = transform[key]; + + if (value instanceof AnimatedNode) { + result[key] = value.__getValue(); + } else { + result[key] = value; + } + } + + return result; + }); + } + }, { + key: "__getAnimatedValue", + value: function __getAnimatedValue() { + return this._transforms.map(function (transform) { + var result = {}; + + for (var key in transform) { + var value = transform[key]; + + if (value instanceof AnimatedNode) { + result[key] = value.__getAnimatedValue(); + } else { + result[key] = value; + } + } + + return result; + }); + } + }, { + key: "__attach", + value: function __attach() { + var _this2 = this; + + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + + if (value instanceof AnimatedNode) { + value.__addChild(_this2); + } + } + }); + } + }, { + key: "__detach", + value: function __detach() { + var _this3 = this; + + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + + if (value instanceof AnimatedNode) { + value.__removeChild(_this3); + } + } + }); + + _get(_getPrototypeOf(AnimatedTransform.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var transConfigs = []; + + this._transforms.forEach(function (transform) { + for (var key in transform) { + var value = transform[key]; + + if (value instanceof AnimatedNode) { + transConfigs.push({ + type: 'animated', + property: key, + nodeTag: value.__getNativeTag() + }); + } else { + transConfigs.push({ + type: 'static', + property: key, + value: value + }); + } + } + }); + + NativeAnimatedHelper.validateTransform(transConfigs); + return { + type: 'transform', + transforms: transConfigs + }; + } + }]); + + _inherits(AnimatedTransform, _AnimatedWithChildren); + + return AnimatedTransform; + }(AnimatedWithChildren); + + module.exports = AnimatedTransform; +},349,[337,339,338],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedTransform.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[2], './AnimatedValue'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[3], './AnimatedWithChildren'); + + var AnimatedSubtraction = function (_AnimatedWithChildren) { + function AnimatedSubtraction(a, b) { + var _this; + + _classCallCheck(this, AnimatedSubtraction); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedSubtraction).call(this)); + _this._a = typeof a === 'number' ? new AnimatedValue(a) : a; + _this._b = typeof b === 'number' ? new AnimatedValue(b) : b; + return _this; + } + + _createClass(AnimatedSubtraction, [{ + key: "__makeNative", + value: function __makeNative() { + this._a.__makeNative(); + + this._b.__makeNative(); + + _get(_getPrototypeOf(AnimatedSubtraction.prototype), "__makeNative", this).call(this); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._a.__getValue() - this._b.__getValue(); + } + }, { + key: "interpolate", + value: function interpolate(config) { + return new AnimatedInterpolation(this, config); + } + }, { + key: "__attach", + value: function __attach() { + this._a.__addChild(this); + + this._b.__addChild(this); + } + }, { + key: "__detach", + value: function __detach() { + this._a.__removeChild(this); + + this._b.__removeChild(this); + + _get(_getPrototypeOf(AnimatedSubtraction.prototype), "__detach", this).call(this); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + return { + type: 'subtraction', + input: [this._a.__getNativeTag(), this._b.__getNativeTag()] + }; + } + }]); + + _inherits(AnimatedSubtraction, _AnimatedWithChildren); + + return AnimatedSubtraction; + }(AnimatedWithChildren); + + module.exports = AnimatedSubtraction; +},350,[336,337,335,339],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedSubtraction.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], './AnimatedValue'); + + var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); + + var _require = _$$_REQUIRE(_dependencyMap[2], '../NativeAnimatedHelper'), + generateNewAnimationId = _require.generateNewAnimationId, + shouldUseNativeDriver = _require.shouldUseNativeDriver; + + var AnimatedTracking = function (_AnimatedNode) { + function AnimatedTracking(value, parent, animationClass, animationConfig, callback) { + var _this; + + _classCallCheck(this, AnimatedTracking); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedTracking).call(this)); + _this._value = value; + _this._parent = parent; + _this._animationClass = animationClass; + _this._animationConfig = animationConfig; + _this._useNativeDriver = shouldUseNativeDriver(animationConfig); + _this._callback = callback; + + _this.__attach(); + + return _this; + } + + _createClass(AnimatedTracking, [{ + key: "__makeNative", + value: function __makeNative() { + this.__isNative = true; + + this._parent.__makeNative(); + + _get(_getPrototypeOf(AnimatedTracking.prototype), "__makeNative", this).call(this); + + this._value.__makeNative(); + } + }, { + key: "__getValue", + value: function __getValue() { + return this._parent.__getValue(); + } + }, { + key: "__attach", + value: function __attach() { + this._parent.__addChild(this); + + if (this._useNativeDriver) { + this.__makeNative(); + } + } + }, { + key: "__detach", + value: function __detach() { + this._parent.__removeChild(this); + + _get(_getPrototypeOf(AnimatedTracking.prototype), "__detach", this).call(this); + } + }, { + key: "update", + value: function update() { + this._value.animate(new this._animationClass(_objectSpread({}, this._animationConfig, { + toValue: this._animationConfig.toValue.__getValue() + })), this._callback); + } + }, { + key: "__getNativeConfig", + value: function __getNativeConfig() { + var animation = new this._animationClass(_objectSpread({}, this._animationConfig, { + toValue: undefined + })); + + var animationConfig = animation.__getNativeAnimationConfig(); + + return { + type: 'tracking', + animationId: generateNewAnimationId(), + animationConfig: animationConfig, + toValue: this._parent.__getNativeTag(), + value: this._value.__getNativeTag() + }; + } + }]); + + _inherits(AnimatedTracking, _AnimatedNode); + + return AnimatedTracking; + }(AnimatedNode); + + module.exports = AnimatedTracking; +},351,[335,337,338],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedTracking.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], './AnimatedValue'); + + var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[1], './AnimatedWithChildren'); + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + var _uniqueId = 1; + + var AnimatedValueXY = function (_AnimatedWithChildren) { + function AnimatedValueXY(valueIn) { + var _this; + + _classCallCheck(this, AnimatedValueXY); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedValueXY).call(this)); + var value = valueIn || { + x: 0, + y: 0 + }; + + if (typeof value.x === 'number' && typeof value.y === 'number') { + _this.x = new AnimatedValue(value.x); + _this.y = new AnimatedValue(value.y); + } else { + invariant(value.x instanceof AnimatedValue && value.y instanceof AnimatedValue, 'AnimatedValueXY must be initialized with an object of numbers or ' + 'AnimatedValues.'); + _this.x = value.x; + _this.y = value.y; + } + + _this._listeners = {}; + return _this; + } + + _createClass(AnimatedValueXY, [{ + key: "setValue", + value: function setValue(value) { + this.x.setValue(value.x); + this.y.setValue(value.y); + } + }, { + key: "setOffset", + value: function setOffset(offset) { + this.x.setOffset(offset.x); + this.y.setOffset(offset.y); + } + }, { + key: "flattenOffset", + value: function flattenOffset() { + this.x.flattenOffset(); + this.y.flattenOffset(); + } + }, { + key: "extractOffset", + value: function extractOffset() { + this.x.extractOffset(); + this.y.extractOffset(); + } + }, { + key: "__getValue", + value: function __getValue() { + return { + x: this.x.__getValue(), + y: this.y.__getValue() + }; + } + }, { + key: "resetAnimation", + value: function resetAnimation(callback) { + this.x.resetAnimation(); + this.y.resetAnimation(); + callback && callback(this.__getValue()); + } + }, { + key: "stopAnimation", + value: function stopAnimation(callback) { + this.x.stopAnimation(); + this.y.stopAnimation(); + callback && callback(this.__getValue()); + } + }, { + key: "addListener", + value: function addListener(callback) { + var _this2 = this; + + var id = String(_uniqueId++); + + var jointCallback = function jointCallback(_ref) { + var number = _ref.value; + callback(_this2.__getValue()); + }; + + this._listeners[id] = { + x: this.x.addListener(jointCallback), + y: this.y.addListener(jointCallback) + }; + return id; + } + }, { + key: "removeListener", + value: function removeListener(id) { + this.x.removeListener(this._listeners[id].x); + this.y.removeListener(this._listeners[id].y); + delete this._listeners[id]; + } + }, { + key: "removeAllListeners", + value: function removeAllListeners() { + this.x.removeAllListeners(); + this.y.removeAllListeners(); + this._listeners = {}; + } + }, { + key: "getLayout", + value: function getLayout() { + return { + left: this.x, + top: this.y + }; + } + }, { + key: "getTranslateTransform", + value: function getTranslateTransform() { + return [{ + translateX: this.x + }, { + translateY: this.y + }]; + } + }]); + + _inherits(AnimatedValueXY, _AnimatedWithChildren); + + return AnimatedValueXY; + }(AnimatedWithChildren); + + module.exports = AnimatedValueXY; +},352,[335,339,166],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedValueXY.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var Animation = _$$_REQUIRE(_dependencyMap[0], './Animation'); + + var _require = _$$_REQUIRE(_dependencyMap[1], '../NativeAnimatedHelper'), + shouldUseNativeDriver = _require.shouldUseNativeDriver; + + var DecayAnimation = function (_Animation) { + function DecayAnimation(config) { + var _this; + + _classCallCheck(this, DecayAnimation); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(DecayAnimation).call(this)); + _this._deceleration = config.deceleration !== undefined ? config.deceleration : 0.998; + _this._velocity = config.velocity; + _this._useNativeDriver = shouldUseNativeDriver(config); + _this.__isInteraction = config.isInteraction !== undefined ? config.isInteraction : true; + _this.__iterations = config.iterations !== undefined ? config.iterations : 1; + return _this; + } + + _createClass(DecayAnimation, [{ + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + return { + type: 'decay', + deceleration: this._deceleration, + velocity: this._velocity, + iterations: this.__iterations + }; + } + }, { + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { + this.__active = true; + this._lastValue = fromValue; + this._fromValue = fromValue; + this._onUpdate = onUpdate; + this.__onEnd = onEnd; + this._startTime = Date.now(); + + if (this._useNativeDriver) { + this.__startNativeAnimation(animatedValue); + } else { + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + } + } + }, { + key: "onUpdate", + value: function onUpdate() { + var now = Date.now(); + var value = this._fromValue + this._velocity / (1 - this._deceleration) * (1 - Math.exp(-(1 - this._deceleration) * (now - this._startTime))); + + this._onUpdate(value); + + if (Math.abs(this._lastValue - value) < 0.1) { + this.__debouncedOnEnd({ + finished: true + }); + + return; + } + + this._lastValue = value; + + if (this.__active) { + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + } + } + }, { + key: "stop", + value: function stop() { + _get(_getPrototypeOf(DecayAnimation.prototype), "stop", this).call(this); + + this.__active = false; + global.cancelAnimationFrame(this._animationFrame); + + this.__debouncedOnEnd({ + finished: false + }); + } + }]); + + _inherits(DecayAnimation, _Animation); + + return DecayAnimation; + }(Animation); + + module.exports = DecayAnimation; +},353,[354,338],"node_modules/react-native/Libraries/Animated/src/animations/DecayAnimation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], 'NativeAnimatedHelper'); + + var Animation = function () { + function Animation() { + _classCallCheck(this, Animation); + } + + _createClass(Animation, [{ + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {} + }, { + key: "stop", + value: function stop() { + if (this.__nativeId) { + NativeAnimatedHelper.API.stopAnimation(this.__nativeId); + } + } + }, { + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + throw new Error('This animation type cannot be offloaded to native'); + } + }, { + key: "__debouncedOnEnd", + value: function __debouncedOnEnd(result) { + var onEnd = this.__onEnd; + this.__onEnd = null; + onEnd && onEnd(result); + } + }, { + key: "__startNativeAnimation", + value: function __startNativeAnimation(animatedValue) { + animatedValue.__makeNative(); + + this.__nativeId = NativeAnimatedHelper.generateNewAnimationId(); + NativeAnimatedHelper.API.startAnimatingNode(this.__nativeId, animatedValue.__getNativeTag(), this.__getNativeAnimationConfig(), this.__debouncedOnEnd.bind(this)); + } + }]); + + return Animation; + }(); + + module.exports = Animation; +},354,[338],"node_modules/react-native/Libraries/Animated/src/animations/Animation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], '../nodes/AnimatedValue'); + + var AnimatedValueXY = _$$_REQUIRE(_dependencyMap[1], '../nodes/AnimatedValueXY'); + + var Animation = _$$_REQUIRE(_dependencyMap[2], './Animation'); + + var SpringConfig = _$$_REQUIRE(_dependencyMap[3], '../SpringConfig'); + + var invariant = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/invariant'); + + var _require = _$$_REQUIRE(_dependencyMap[5], '../NativeAnimatedHelper'), + shouldUseNativeDriver = _require.shouldUseNativeDriver; + + function withDefault(value, defaultValue) { + if (value === undefined || value === null) { + return defaultValue; + } + + return value; + } + + var SpringAnimation = function (_Animation) { + function SpringAnimation(config) { + var _this; + + _classCallCheck(this, SpringAnimation); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(SpringAnimation).call(this)); + _this._overshootClamping = withDefault(config.overshootClamping, false); + _this._restDisplacementThreshold = withDefault(config.restDisplacementThreshold, 0.001); + _this._restSpeedThreshold = withDefault(config.restSpeedThreshold, 0.001); + _this._initialVelocity = withDefault(config.velocity, 0); + _this._lastVelocity = withDefault(config.velocity, 0); + _this._toValue = config.toValue; + _this._delay = withDefault(config.delay, 0); + _this._useNativeDriver = shouldUseNativeDriver(config); + _this.__isInteraction = config.isInteraction !== undefined ? config.isInteraction : true; + _this.__iterations = config.iterations !== undefined ? config.iterations : 1; + + if (config.stiffness !== undefined || config.damping !== undefined || config.mass !== undefined) { + invariant(config.bounciness === undefined && config.speed === undefined && config.tension === undefined && config.friction === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); + _this._stiffness = withDefault(config.stiffness, 100); + _this._damping = withDefault(config.damping, 10); + _this._mass = withDefault(config.mass, 1); + } else if (config.bounciness !== undefined || config.speed !== undefined) { + invariant(config.tension === undefined && config.friction === undefined && config.stiffness === undefined && config.damping === undefined && config.mass === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); + var springConfig = SpringConfig.fromBouncinessAndSpeed(withDefault(config.bounciness, 8), withDefault(config.speed, 12)); + _this._stiffness = springConfig.stiffness; + _this._damping = springConfig.damping; + _this._mass = 1; + } else { + var _springConfig = SpringConfig.fromOrigamiTensionAndFriction(withDefault(config.tension, 40), withDefault(config.friction, 7)); + + _this._stiffness = _springConfig.stiffness; + _this._damping = _springConfig.damping; + _this._mass = 1; + } + + invariant(_this._stiffness > 0, 'Stiffness value must be greater than 0'); + invariant(_this._damping > 0, 'Damping value must be greater than 0'); + invariant(_this._mass > 0, 'Mass value must be greater than 0'); + return _this; + } + + _createClass(SpringAnimation, [{ + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + return { + type: 'spring', + overshootClamping: this._overshootClamping, + restDisplacementThreshold: this._restDisplacementThreshold, + restSpeedThreshold: this._restSpeedThreshold, + stiffness: this._stiffness, + damping: this._damping, + mass: this._mass, + initialVelocity: withDefault(this._initialVelocity, this._lastVelocity), + toValue: this._toValue, + iterations: this.__iterations + }; + } + }, { + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { + var _this2 = this; + + this.__active = true; + this._startPosition = fromValue; + this._lastPosition = this._startPosition; + this._onUpdate = onUpdate; + this.__onEnd = onEnd; + this._lastTime = Date.now(); + this._frameTime = 0.0; + + if (previousAnimation instanceof SpringAnimation) { + var internalState = previousAnimation.getInternalState(); + this._lastPosition = internalState.lastPosition; + this._lastVelocity = internalState.lastVelocity; + this._initialVelocity = this._lastVelocity; + this._lastTime = internalState.lastTime; + } + + var start = function start() { + if (_this2._useNativeDriver) { + _this2.__startNativeAnimation(animatedValue); + } else { + _this2.onUpdate(); + } + }; + + if (this._delay) { + this._timeout = setTimeout(start, this._delay); + } else { + start(); + } + } + }, { + key: "getInternalState", + value: function getInternalState() { + return { + lastPosition: this._lastPosition, + lastVelocity: this._lastVelocity, + lastTime: this._lastTime + }; + } + }, { + key: "onUpdate", + value: function onUpdate() { + var MAX_STEPS = 64; + var now = Date.now(); + + if (now > this._lastTime + MAX_STEPS) { + now = this._lastTime + MAX_STEPS; + } + + var deltaTime = (now - this._lastTime) / 1000; + this._frameTime += deltaTime; + var c = this._damping; + var m = this._mass; + var k = this._stiffness; + var v0 = -this._initialVelocity; + var zeta = c / (2 * Math.sqrt(k * m)); + var omega0 = Math.sqrt(k / m); + var omega1 = omega0 * Math.sqrt(1.0 - zeta * zeta); + var x0 = this._toValue - this._startPosition; + var position = 0.0; + var velocity = 0.0; + var t = this._frameTime; + + if (zeta < 1) { + var envelope = Math.exp(-zeta * omega0 * t); + position = this._toValue - envelope * ((v0 + zeta * omega0 * x0) / omega1 * Math.sin(omega1 * t) + x0 * Math.cos(omega1 * t)); + velocity = zeta * omega0 * envelope * (Math.sin(omega1 * t) * (v0 + zeta * omega0 * x0) / omega1 + x0 * Math.cos(omega1 * t)) - envelope * (Math.cos(omega1 * t) * (v0 + zeta * omega0 * x0) - omega1 * x0 * Math.sin(omega1 * t)); + } else { + var _envelope = Math.exp(-omega0 * t); + + position = this._toValue - _envelope * (x0 + (v0 + omega0 * x0) * t); + velocity = _envelope * (v0 * (t * omega0 - 1) + t * x0 * (omega0 * omega0)); + } + + this._lastTime = now; + this._lastPosition = position; + this._lastVelocity = velocity; + + this._onUpdate(position); + + if (!this.__active) { + return; + } + + var isOvershooting = false; + + if (this._overshootClamping && this._stiffness !== 0) { + if (this._startPosition < this._toValue) { + isOvershooting = position > this._toValue; + } else { + isOvershooting = position < this._toValue; + } + } + + var isVelocity = Math.abs(velocity) <= this._restSpeedThreshold; + + var isDisplacement = true; + + if (this._stiffness !== 0) { + isDisplacement = Math.abs(this._toValue - position) <= this._restDisplacementThreshold; + } + + if (isOvershooting || isVelocity && isDisplacement) { + if (this._stiffness !== 0) { + this._lastPosition = this._toValue; + this._lastVelocity = 0; + + this._onUpdate(this._toValue); + } + + this.__debouncedOnEnd({ + finished: true + }); + + return; + } + + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + } + }, { + key: "stop", + value: function stop() { + _get(_getPrototypeOf(SpringAnimation.prototype), "stop", this).call(this); + + this.__active = false; + clearTimeout(this._timeout); + global.cancelAnimationFrame(this._animationFrame); + + this.__debouncedOnEnd({ + finished: false + }); + } + }]); + + _inherits(SpringAnimation, _Animation); + + return SpringAnimation; + }(Animation); + + module.exports = SpringAnimation; +},355,[335,352,354,356,166,338],"node_modules/react-native/Libraries/Animated/src/animations/SpringAnimation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function stiffnessFromOrigamiValue(oValue) { + return (oValue - 30) * 3.62 + 194; + } + + function dampingFromOrigamiValue(oValue) { + return (oValue - 8) * 3 + 25; + } + + function fromOrigamiTensionAndFriction(tension, friction) { + return { + stiffness: stiffnessFromOrigamiValue(tension), + damping: dampingFromOrigamiValue(friction) + }; + } + + function fromBouncinessAndSpeed(bounciness, speed) { + function normalize(value, startValue, endValue) { + return (value - startValue) / (endValue - startValue); + } + + function projectNormal(n, start, end) { + return start + n * (end - start); + } + + function linearInterpolation(t, start, end) { + return t * end + (1 - t) * start; + } + + function quadraticOutInterpolation(t, start, end) { + return linearInterpolation(2 * t - t * t, start, end); + } + + function b3Friction1(x) { + return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28; + } + + function b3Friction2(x) { + return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2; + } + + function b3Friction3(x) { + return 0.00000045 * Math.pow(x, 3) - 0.000332 * Math.pow(x, 2) + 0.1078 * x + 5.84; + } + + function b3Nobounce(tension) { + if (tension <= 18) { + return b3Friction1(tension); + } else if (tension > 18 && tension <= 44) { + return b3Friction2(tension); + } else { + return b3Friction3(tension); + } + } + + var b = normalize(bounciness / 1.7, 0, 20); + b = projectNormal(b, 0, 0.8); + var s = normalize(speed / 1.7, 0, 20); + var bouncyTension = projectNormal(s, 0.5, 200); + var bouncyFriction = quadraticOutInterpolation(b, b3Nobounce(bouncyTension), 0.01); + return { + stiffness: stiffnessFromOrigamiValue(bouncyTension), + damping: dampingFromOrigamiValue(bouncyFriction) + }; + } + + module.exports = { + fromOrigamiTensionAndFriction: fromOrigamiTensionAndFriction, + fromBouncinessAndSpeed: fromBouncinessAndSpeed + }; +},356,[],"node_modules/react-native/Libraries/Animated/src/SpringConfig.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + + function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], '../nodes/AnimatedValue'); + + var AnimatedValueXY = _$$_REQUIRE(_dependencyMap[1], '../nodes/AnimatedValueXY'); + + var Animation = _$$_REQUIRE(_dependencyMap[2], './Animation'); + + var _require = _$$_REQUIRE(_dependencyMap[3], '../NativeAnimatedHelper'), + shouldUseNativeDriver = _require.shouldUseNativeDriver; + + var _easeInOut; + + function easeInOut() { + if (!_easeInOut) { + var Easing = _$$_REQUIRE(_dependencyMap[4], 'Easing'); + + _easeInOut = Easing.inOut(Easing.ease); + } + + return _easeInOut; + } + + var TimingAnimation = function (_Animation) { + function TimingAnimation(config) { + var _this; + + _classCallCheck(this, TimingAnimation); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(TimingAnimation).call(this)); + _this._toValue = config.toValue; + _this._easing = config.easing !== undefined ? config.easing : easeInOut(); + _this._duration = config.duration !== undefined ? config.duration : 500; + _this._delay = config.delay !== undefined ? config.delay : 0; + _this.__iterations = config.iterations !== undefined ? config.iterations : 1; + _this.__isInteraction = config.isInteraction !== undefined ? config.isInteraction : true; + _this._useNativeDriver = shouldUseNativeDriver(config); + return _this; + } + + _createClass(TimingAnimation, [{ + key: "__getNativeAnimationConfig", + value: function __getNativeAnimationConfig() { + var frameDuration = 1000.0 / 60.0; + var frames = []; + + for (var dt = 0.0; dt < this._duration; dt += frameDuration) { + frames.push(this._easing(dt / this._duration)); + } + + frames.push(this._easing(1)); + return { + type: 'frames', + frames: frames, + toValue: this._toValue, + iterations: this.__iterations + }; + } + }, { + key: "start", + value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { + var _this2 = this; + + this.__active = true; + this._fromValue = fromValue; + this._onUpdate = onUpdate; + this.__onEnd = onEnd; + + var start = function start() { + if (_this2._duration === 0 && !_this2._useNativeDriver) { + _this2._onUpdate(_this2._toValue); + + _this2.__debouncedOnEnd({ + finished: true + }); + } else { + _this2._startTime = Date.now(); + + if (_this2._useNativeDriver) { + _this2.__startNativeAnimation(animatedValue); + } else { + _this2._animationFrame = requestAnimationFrame(_this2.onUpdate.bind(_this2)); + } + } + }; + + if (this._delay) { + this._timeout = setTimeout(start, this._delay); + } else { + start(); + } + } + }, { + key: "onUpdate", + value: function onUpdate() { + var now = Date.now(); + + if (now >= this._startTime + this._duration) { + if (this._duration === 0) { + this._onUpdate(this._toValue); + } else { + this._onUpdate(this._fromValue + this._easing(1) * (this._toValue - this._fromValue)); + } + + this.__debouncedOnEnd({ + finished: true + }); + + return; + } + + this._onUpdate(this._fromValue + this._easing((now - this._startTime) / this._duration) * (this._toValue - this._fromValue)); + + if (this.__active) { + this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); + } + } + }, { + key: "stop", + value: function stop() { + _get(_getPrototypeOf(TimingAnimation.prototype), "stop", this).call(this); + + this.__active = false; + clearTimeout(this._timeout); + global.cancelAnimationFrame(this._animationFrame); + + this.__debouncedOnEnd({ + finished: false + }); + } + }]); + + _inherits(TimingAnimation, _Animation); + + return TimingAnimation; + }(Animation); + + module.exports = TimingAnimation; +},357,[335,352,354,338,358],"node_modules/react-native/Libraries/Animated/src/animations/TimingAnimation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var _ease; + + var Easing = function () { + function Easing() { + _classCallCheck(this, Easing); + } + + _createClass(Easing, null, [{ + key: "step0", + value: function step0(n) { + return n > 0 ? 1 : 0; + } + }, { + key: "step1", + value: function step1(n) { + return n >= 1 ? 1 : 0; + } + }, { + key: "linear", + value: function linear(t) { + return t; + } + }, { + key: "ease", + value: function ease(t) { + if (!_ease) { + _ease = Easing.bezier(0.42, 0, 1, 1); + } + + return _ease(t); + } + }, { + key: "quad", + value: function quad(t) { + return t * t; + } + }, { + key: "cubic", + value: function cubic(t) { + return t * t * t; + } + }, { + key: "poly", + value: function poly(n) { + return function (t) { + return Math.pow(t, n); + }; + } + }, { + key: "sin", + value: function sin(t) { + return 1 - Math.cos(t * Math.PI / 2); + } + }, { + key: "circle", + value: function circle(t) { + return 1 - Math.sqrt(1 - t * t); + } + }, { + key: "exp", + value: function exp(t) { + return Math.pow(2, 10 * (t - 1)); + } + }, { + key: "elastic", + value: function elastic() { + var bounciness = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + var p = bounciness * Math.PI; + return function (t) { + return 1 - Math.pow(Math.cos(t * Math.PI / 2), 3) * Math.cos(t * p); + }; + } + }, { + key: "back", + value: function back(s) { + if (s === undefined) { + s = 1.70158; + } + + return function (t) { + return t * t * ((s + 1) * t - s); + }; + } + }, { + key: "bounce", + value: function bounce(t) { + if (t < 1 / 2.75) { + return 7.5625 * t * t; + } + + if (t < 2 / 2.75) { + t -= 1.5 / 2.75; + return 7.5625 * t * t + 0.75; + } + + if (t < 2.5 / 2.75) { + t -= 2.25 / 2.75; + return 7.5625 * t * t + 0.9375; + } + + t -= 2.625 / 2.75; + return 7.5625 * t * t + 0.984375; + } + }, { + key: "bezier", + value: function bezier(x1, y1, x2, y2) { + var _bezier = _$$_REQUIRE(_dependencyMap[0], 'bezier'); + + return _bezier(x1, y1, x2, y2); + } + }, { + key: "in", + value: function _in(easing) { + return easing; + } + }, { + key: "out", + value: function out(easing) { + return function (t) { + return 1 - easing(1 - t); + }; + } + }, { + key: "inOut", + value: function inOut(easing) { + return function (t) { + if (t < 0.5) { + return easing(t * 2) / 2; + } + + return 1 - easing((1 - t) * 2) / 2; + }; + } + }]); + + return Easing; + }(); + + module.exports = Easing; +},358,[359],"node_modules/react-native/Libraries/Animated/src/Easing.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var NEWTON_ITERATIONS = 4; + var NEWTON_MIN_SLOPE = 0.001; + var SUBDIVISION_PRECISION = 0.0000001; + var SUBDIVISION_MAX_ITERATIONS = 10; + var kSplineTableSize = 11; + var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0); + var float32ArraySupported = typeof Float32Array === 'function'; + + function A(aA1, aA2) { + return 1.0 - 3.0 * aA2 + 3.0 * aA1; + } + + function B(aA1, aA2) { + return 3.0 * aA2 - 6.0 * aA1; + } + + function C(aA1) { + return 3.0 * aA1; + } + + function calcBezier(aT, aA1, aA2) { + return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; + } + + function getSlope(aT, aA1, aA2) { + return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); + } + + function binarySubdivide(aX, aA, aB, mX1, mX2) { + var currentX, + currentT, + i = 0; + + do { + currentT = aA + (aB - aA) / 2.0; + currentX = calcBezier(currentT, mX1, mX2) - aX; + + if (currentX > 0.0) { + aB = currentT; + } else { + aA = currentT; + } + } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS); + + return currentT; + } + + function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) { + for (var i = 0; i < NEWTON_ITERATIONS; ++i) { + var currentSlope = getSlope(aGuessT, mX1, mX2); + + if (currentSlope === 0.0) { + return aGuessT; + } + + var currentX = calcBezier(aGuessT, mX1, mX2) - aX; + aGuessT -= currentX / currentSlope; + } + + return aGuessT; + } + + module.exports = function bezier(mX1, mY1, mX2, mY2) { + if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) { + throw new Error('bezier x values must be in [0, 1] range'); + } + + var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize); + + if (mX1 !== mY1 || mX2 !== mY2) { + for (var i = 0; i < kSplineTableSize; ++i) { + sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2); + } + } + + function getTForX(aX) { + var intervalStart = 0.0; + var currentSample = 1; + var lastSample = kSplineTableSize - 1; + + for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) { + intervalStart += kSampleStepSize; + } + + --currentSample; + var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]); + var guessForT = intervalStart + dist * kSampleStepSize; + var initialSlope = getSlope(guessForT, mX1, mX2); + + if (initialSlope >= NEWTON_MIN_SLOPE) { + return newtonRaphsonIterate(aX, guessForT, mX1, mX2); + } else if (initialSlope === 0.0) { + return guessForT; + } else { + return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2); + } + } + + return function BezierEasing(x) { + if (mX1 === mY1 && mX2 === mY2) { + return x; + } + + if (x === 0) { + return 0; + } + + if (x === 1) { + return 1; + } + + return calcBezier(getTForX(x), mY1, mY2); + }; + }; +},359,[],"node_modules/react-native/Libraries/Animated/src/bezier.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Animated/src/createAnimatedComponent.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + var _components = { + AnimatedComponent: { + displayName: "AnimatedComponent", + isInFunction: true + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Animated/src/createAnimatedComponent.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var _require = _$$_REQUIRE(_dependencyMap[2], './AnimatedEvent'), + AnimatedEvent = _require.AnimatedEvent; + + var AnimatedProps = _$$_REQUIRE(_dependencyMap[3], './nodes/AnimatedProps'); + + var React = _$$_REQUIRE(_dependencyMap[4], 'React'); + + var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[5], 'ViewStylePropTypes'); + + var invariant = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/invariant'); + + function createAnimatedComponent(Component) { + invariant(typeof Component !== 'function' || Component.prototype && Component.prototype.isReactComponent, '`createAnimatedComponent` does not support stateless functional components; ' + 'use a class component instead.'); + + var AnimatedComponent = function (_React$Component) { + function AnimatedComponent(props) { + var _this; + + _classCallCheck(this, AnimatedComponent); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedComponent).call(this, props)); + _this._invokeAnimatedPropsCallbackOnMount = false; + _this._eventDetachers = []; + + _this._animatedPropsCallback = function () { + if (_this._component == null) { + _this._invokeAnimatedPropsCallbackOnMount = true; + } else if (AnimatedComponent.__skipSetNativeProps_FOR_TESTS_ONLY || typeof _this._component.setNativeProps !== 'function') { + _this.forceUpdate(); + } else if (!_this._propsAnimated.__isNative) { + _this._component.setNativeProps(_this._propsAnimated.__getAnimatedValue()); + } else { + throw new Error('Attempting to run JS driven animation on animated ' + 'node that has been moved to "native" earlier by starting an ' + 'animation with `useNativeDriver: true`'); + } + }; + + _this._setComponentRef = _this._setComponentRef.bind(_assertThisInitialized(_assertThisInitialized(_this))); + return _this; + } + + _createClass(AnimatedComponent, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + this._propsAnimated && this._propsAnimated.__detach(); + + this._detachNativeEvents(); + } + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + this._component.setNativeProps(props); + } + }, { + key: "UNSAFE_componentWillMount", + value: function UNSAFE_componentWillMount() { + this._attachProps(this.props); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + if (this._invokeAnimatedPropsCallbackOnMount) { + this._invokeAnimatedPropsCallbackOnMount = false; + + this._animatedPropsCallback(); + } + + this._propsAnimated.setNativeView(this._component); + + this._attachNativeEvents(); + } + }, { + key: "_attachNativeEvents", + value: function _attachNativeEvents() { + var _this2 = this; + + var scrollableNode = this._component.getScrollableNode ? this._component.getScrollableNode() : this._component; + + var _loop = function _loop(key) { + var prop = _this2.props[key]; + + if (prop instanceof AnimatedEvent && prop.__isNative) { + prop.__attach(scrollableNode, key); + + _this2._eventDetachers.push(function () { + return prop.__detach(scrollableNode, key); + }); + } + }; + + for (var key in this.props) { + _loop(key); + } + } + }, { + key: "_detachNativeEvents", + value: function _detachNativeEvents() { + this._eventDetachers.forEach(function (remove) { + return remove(); + }); + + this._eventDetachers = []; + } + }, { + key: "_attachProps", + value: function _attachProps(nextProps) { + var oldPropsAnimated = this._propsAnimated; + this._propsAnimated = new AnimatedProps(nextProps, this._animatedPropsCallback); + oldPropsAnimated && oldPropsAnimated.__detach(); + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + this._attachProps(newProps); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this._component !== this._prevComponent) { + this._propsAnimated.setNativeView(this._component); + } + + if (this._component !== this._prevComponent || prevProps !== this.props) { + this._detachNativeEvents(); + + this._attachNativeEvents(); + } + } + }, { + key: "render", + value: function render() { + var props = this._propsAnimated.__getValue(); + + return React.createElement(Component, _extends({}, props, { + ref: this._setComponentRef, + collapsable: this._propsAnimated.__isNative ? false : props.collapsable, + __source: { + fileName: _jsxFileName, + lineNumber: 153 + } + })); + } + }, { + key: "_setComponentRef", + value: function _setComponentRef(c) { + this._prevComponent = this._component; + this._component = c; + } + }, { + key: "getNode", + value: function getNode() { + return this._component; + } + }]); + + _inherits(AnimatedComponent, _React$Component); + + return AnimatedComponent; + }(React.Component); + + AnimatedComponent.__skipSetNativeProps_FOR_TESTS_ONLY = false; + AnimatedComponent = _wrapComponent("AnimatedComponent")(AnimatedComponent); + var propTypes = Component.propTypes; + AnimatedComponent.propTypes = { + style: function style(props, propName, componentName) { + if (!propTypes) { + return; + } + + for (var key in ViewStylePropTypes) { + if (!propTypes[key] && props[key] !== undefined) { + console.warn('You are setting the style `{ ' + key + ': ... }` as a prop. You ' + 'should nest it in a style object. ' + 'E.g. `{ style: { ' + key + ': ... } }`'); + } + } + } + }; + return AnimatedComponent; + } + + module.exports = createAnimatedComponent; +},360,[1,11,334,347,200,220,166],"node_modules/react-native/Libraries/Animated/src/createAnimatedComponent.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Image/Image.ios.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var ImageProps = _$$_REQUIRE(_dependencyMap[0], 'ImageProps'); + + var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[1], 'NativeMethodsMixin'); + + var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[4], 'ReactNativeViewAttributes'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[6], 'create-react-class'); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[7], 'flattenStyle'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[8], 'requireNativeComponent'); + + var resolveAssetSource = _$$_REQUIRE(_dependencyMap[9], 'resolveAssetSource'); + + var ImageViewManager = NativeModules.ImageViewManager; + var RCTImageView = requireNativeComponent('RCTImageView'); + var Image = createReactClass({ + displayName: 'Image', + propTypes: ImageProps, + statics: { + getSize: function getSize(uri, success, failure) { + ImageViewManager.getSize(uri, success, failure || function () { + console.warn('Failed to get size for image: ' + uri); + }); + }, + prefetch: function prefetch(url) { + return ImageViewManager.prefetchImage(url); + }, + resolveAssetSource: resolveAssetSource + }, + mixins: [NativeMethodsMixin], + viewConfig: { + uiViewClassName: 'UIView', + validAttributes: ReactNativeViewAttributes.UIView + }, + render: function render() { + var source = resolveAssetSource(this.props.source) || { + uri: undefined, + width: undefined, + height: undefined + }; + var sources; + var style; + + if (Array.isArray(source)) { + style = flattenStyle([styles.base, this.props.style]) || {}; + sources = source; + } else { + var _width = source.width, + _height = source.height, + uri = source.uri; + style = flattenStyle([{ + width: _width, + height: _height + }, styles.base, this.props.style]) || {}; + sources = [source]; + + if (uri === '') { + console.warn('source.uri should not be an empty string'); + } + } + + var resizeMode = this.props.resizeMode || (style || {}).resizeMode || 'cover'; + var tintColor = (style || {}).tintColor; + + if (this.props.src) { + console.warn('The component requires a `source` property rather than `src`.'); + } + + if (this.props.children) { + throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.'); + } + + return React.createElement(RCTImageView, _extends({}, this.props, { + style: style, + resizeMode: resizeMode, + tintColor: tintColor, + source: sources, + __source: { + fileName: _jsxFileName, + lineNumber: 127 + } + })); + } + }); + var styles = StyleSheet.create({ + base: { + overflow: 'hidden' + } + }); + module.exports = Image; +},361,[362,364,168,200,247,201,365,226,229,235],"node_modules/react-native/Libraries/Image/Image.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[0], 'EdgeInsetsPropType'); + + var ImageSourcePropType = _$$_REQUIRE(_dependencyMap[1], 'ImageSourcePropType'); + + var ImageStylePropTypes = _$$_REQUIRE(_dependencyMap[2], 'ImageStylePropTypes'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[4], 'StyleSheetPropType'); + + module.exports = { + style: StyleSheetPropType(ImageStylePropTypes), + source: ImageSourcePropType, + defaultSource: PropTypes.oneOfType([PropTypes.shape({ + uri: PropTypes.string, + width: PropTypes.number, + height: PropTypes.number, + scale: PropTypes.number + }), PropTypes.number]), + accessible: PropTypes.bool, + accessibilityLabel: PropTypes.node, + blurRadius: PropTypes.number, + capInsets: EdgeInsetsPropType, + resizeMethod: PropTypes.oneOf(['auto', 'resize', 'scale']), + resizeMode: PropTypes.oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']), + testID: PropTypes.string, + onLayout: PropTypes.func, + onLoadStart: PropTypes.func, + onProgress: PropTypes.func, + onError: PropTypes.func, + onPartialLoad: PropTypes.func, + onLoad: PropTypes.func, + onLoadEnd: PropTypes.func + }; +},362,[254,363,206,212,255],"node_modules/react-native/Libraries/Image/ImageProps.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); + + var ImageURISourcePropType = PropTypes.shape({ + uri: PropTypes.string, + bundle: PropTypes.string, + method: PropTypes.string, + headers: PropTypes.objectOf(PropTypes.string), + body: PropTypes.string, + cache: PropTypes.oneOf(['default', 'reload', 'force-cache', 'only-if-cached']), + width: PropTypes.number, + height: PropTypes.number, + scale: PropTypes.number + }); + var ImageSourcePropType = PropTypes.oneOfType([ImageURISourcePropType, PropTypes.number, PropTypes.arrayOf(ImageURISourcePropType)]); + module.exports = ImageSourcePropType; +},363,[212],"node_modules/react-native/Libraries/Image/ImageSourcePropType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _require = _$$_REQUIRE(_dependencyMap[0], 'ReactNative'), + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = _require.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + + var NativeMethodsMixin = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.NativeMethodsMixin; + module.exports = NativeMethodsMixin; +},364,[261],"node_modules/react-native/Libraries/Renderer/shims/NativeMethodsMixin.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var React = _$$_REQUIRE(_dependencyMap[0], 'react'); + + var factory = _$$_REQUIRE(_dependencyMap[1], './factory'); + + if (typeof React === 'undefined') { + throw Error('create-react-class could not find the React object. If you are using script tags, ' + 'make sure that React is being loaded before create-react-class.'); + } + + var ReactNoopUpdateQueue = new React.Component().updater; + module.exports = factory(React.Component, React.isValidElement, ReactNoopUpdateQueue); +},365,[1,366],"node_modules/create-react-class/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _assign = _$$_REQUIRE(_dependencyMap[0], 'object-assign'); + + var emptyObject = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/emptyObject'); + + var _invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + if (process.env.NODE_ENV !== 'production') { + var warning = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/warning'); + } + + var MIXINS_KEY = 'mixins'; + + function identity(fn) { + return fn; + } + + var ReactPropTypeLocationNames; + + if (process.env.NODE_ENV !== 'production') { + ReactPropTypeLocationNames = { + prop: 'prop', + context: 'context', + childContext: 'child context' + }; + } else { + ReactPropTypeLocationNames = {}; + } + + function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { + var injectedMixins = []; + var ReactClassInterface = { + mixins: 'DEFINE_MANY', + statics: 'DEFINE_MANY', + propTypes: 'DEFINE_MANY', + contextTypes: 'DEFINE_MANY', + childContextTypes: 'DEFINE_MANY', + getDefaultProps: 'DEFINE_MANY_MERGED', + getInitialState: 'DEFINE_MANY_MERGED', + getChildContext: 'DEFINE_MANY_MERGED', + render: 'DEFINE_ONCE', + componentWillMount: 'DEFINE_MANY', + componentDidMount: 'DEFINE_MANY', + componentWillReceiveProps: 'DEFINE_MANY', + shouldComponentUpdate: 'DEFINE_ONCE', + componentWillUpdate: 'DEFINE_MANY', + componentDidUpdate: 'DEFINE_MANY', + componentWillUnmount: 'DEFINE_MANY', + UNSAFE_componentWillMount: 'DEFINE_MANY', + UNSAFE_componentWillReceiveProps: 'DEFINE_MANY', + UNSAFE_componentWillUpdate: 'DEFINE_MANY', + updateComponent: 'OVERRIDE_BASE' + }; + var ReactClassStaticInterface = { + getDerivedStateFromProps: 'DEFINE_MANY_MERGED' + }; + var RESERVED_SPEC_KEYS = { + displayName: function displayName(Constructor, _displayName) { + Constructor.displayName = _displayName; + }, + mixins: function mixins(Constructor, _mixins) { + if (_mixins) { + for (var i = 0; i < _mixins.length; i++) { + mixSpecIntoComponent(Constructor, _mixins[i]); + } + } + }, + childContextTypes: function childContextTypes(Constructor, _childContextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, _childContextTypes, 'childContext'); + } + + Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, _childContextTypes); + }, + contextTypes: function contextTypes(Constructor, _contextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, _contextTypes, 'context'); + } + + Constructor.contextTypes = _assign({}, Constructor.contextTypes, _contextTypes); + }, + getDefaultProps: function getDefaultProps(Constructor, _getDefaultProps) { + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, _getDefaultProps); + } else { + Constructor.getDefaultProps = _getDefaultProps; + } + }, + propTypes: function propTypes(Constructor, _propTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, _propTypes, 'prop'); + } + + Constructor.propTypes = _assign({}, Constructor.propTypes, _propTypes); + }, + statics: function statics(Constructor, _statics) { + mixStaticSpecIntoComponent(Constructor, _statics); + }, + autobind: function autobind() {} + }; + + function validateTypeDef(Constructor, typeDef, location) { + for (var propName in typeDef) { + if (typeDef.hasOwnProperty(propName)) { + if (process.env.NODE_ENV !== 'production') { + warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName); + } + } + } + } + + function validateMethodOverride(isAlreadyDefined, name) { + var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null; + + if (ReactClassMixin.hasOwnProperty(name)) { + _invariant(specPolicy === 'OVERRIDE_BASE', 'ReactClassInterface: You are attempting to override ' + '`%s` from your class specification. Ensure that your method names ' + 'do not overlap with React methods.', name); + } + + if (isAlreadyDefined) { + _invariant(specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED', 'ReactClassInterface: You are attempting to define ' + '`%s` on your component more than once. This conflict may be due ' + 'to a mixin.', name); + } + } + + function mixSpecIntoComponent(Constructor, spec) { + if (!spec) { + if (process.env.NODE_ENV !== 'production') { + var typeofSpec = typeof spec; + var isMixinValid = typeofSpec === 'object' && spec !== null; + + if (process.env.NODE_ENV !== 'production') { + warning(isMixinValid, "%s: You're attempting to include a mixin that is either null " + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec); + } + } + + return; + } + + _invariant(typeof spec !== 'function', "ReactClass: You're attempting to " + 'use a component class or function as a mixin. Instead, just use a ' + 'regular object.'); + + _invariant(!isValidElement(spec), "ReactClass: You're attempting to " + 'use a component as a mixin. Instead, just use a regular object.'); + + var proto = Constructor.prototype; + var autoBindPairs = proto.__reactAutoBindPairs; + + if (spec.hasOwnProperty(MIXINS_KEY)) { + RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); + } + + for (var name in spec) { + if (!spec.hasOwnProperty(name)) { + continue; + } + + if (name === MIXINS_KEY) { + continue; + } + + var property = spec[name]; + var isAlreadyDefined = proto.hasOwnProperty(name); + validateMethodOverride(isAlreadyDefined, name); + + if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) { + RESERVED_SPEC_KEYS[name](Constructor, property); + } else { + var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); + var isFunction = typeof property === 'function'; + var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false; + + if (shouldAutoBind) { + autoBindPairs.push(name, property); + proto[name] = property; + } else { + if (isAlreadyDefined) { + var specPolicy = ReactClassInterface[name]; + + _invariant(isReactClassMethod && (specPolicy === 'DEFINE_MANY_MERGED' || specPolicy === 'DEFINE_MANY'), 'ReactClass: Unexpected spec policy %s for key %s ' + 'when mixing in component specs.', specPolicy, name); + + if (specPolicy === 'DEFINE_MANY_MERGED') { + proto[name] = createMergedResultFunction(proto[name], property); + } else if (specPolicy === 'DEFINE_MANY') { + proto[name] = createChainedFunction(proto[name], property); + } + } else { + proto[name] = property; + + if (process.env.NODE_ENV !== 'production') { + if (typeof property === 'function' && spec.displayName) { + proto[name].displayName = spec.displayName + '_' + name; + } + } + } + } + } + } + } + + function mixStaticSpecIntoComponent(Constructor, statics) { + if (!statics) { + return; + } + + for (var name in statics) { + var property = statics[name]; + + if (!statics.hasOwnProperty(name)) { + continue; + } + + var isReserved = name in RESERVED_SPEC_KEYS; + + _invariant(!isReserved, 'ReactClass: You are attempting to define a reserved ' + 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' + 'as an instance property instead; it will still be accessible on the ' + 'constructor.', name); + + var isAlreadyDefined = name in Constructor; + + if (isAlreadyDefined) { + var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) ? ReactClassStaticInterface[name] : null; + + _invariant(specPolicy === 'DEFINE_MANY_MERGED', 'ReactClass: You are attempting to define ' + '`%s` on your component more than once. This conflict may be ' + 'due to a mixin.', name); + + Constructor[name] = createMergedResultFunction(Constructor[name], property); + return; + } + + Constructor[name] = property; + } + } + + function mergeIntoWithNoDuplicateKeys(one, two) { + _invariant(one && two && typeof one === 'object' && typeof two === 'object', 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.'); + + for (var key in two) { + if (two.hasOwnProperty(key)) { + _invariant(one[key] === undefined, 'mergeIntoWithNoDuplicateKeys(): ' + 'Tried to merge two objects with the same key: `%s`. This conflict ' + 'may be due to a mixin; in particular, this may be caused by two ' + 'getInitialState() or getDefaultProps() methods returning objects ' + 'with clashing keys.', key); + + one[key] = two[key]; + } + } + + return one; + } + + function createMergedResultFunction(one, two) { + return function mergedResult() { + var a = one.apply(this, arguments); + var b = two.apply(this, arguments); + + if (a == null) { + return b; + } else if (b == null) { + return a; + } + + var c = {}; + mergeIntoWithNoDuplicateKeys(c, a); + mergeIntoWithNoDuplicateKeys(c, b); + return c; + }; + } + + function createChainedFunction(one, two) { + return function chainedFunction() { + one.apply(this, arguments); + two.apply(this, arguments); + }; + } + + function bindAutoBindMethod(component, method) { + var boundMethod = method.bind(component); + + if (process.env.NODE_ENV !== 'production') { + boundMethod.__reactBoundContext = component; + boundMethod.__reactBoundMethod = method; + boundMethod.__reactBoundArguments = null; + var componentName = component.constructor.displayName; + var _bind = boundMethod.bind; + + boundMethod.bind = function (newThis) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + if (newThis !== component && newThis !== null) { + if (process.env.NODE_ENV !== 'production') { + warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName); + } + } else if (!args.length) { + if (process.env.NODE_ENV !== 'production') { + warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName); + } + + return boundMethod; + } + + var reboundMethod = _bind.apply(boundMethod, arguments); + + reboundMethod.__reactBoundContext = component; + reboundMethod.__reactBoundMethod = method; + reboundMethod.__reactBoundArguments = args; + return reboundMethod; + }; + } + + return boundMethod; + } + + function bindAutoBindMethods(component) { + var pairs = component.__reactAutoBindPairs; + + for (var i = 0; i < pairs.length; i += 2) { + var autoBindKey = pairs[i]; + var method = pairs[i + 1]; + component[autoBindKey] = bindAutoBindMethod(component, method); + } + } + + var IsMountedPreMixin = { + componentDidMount: function componentDidMount() { + this.__isMounted = true; + } + }; + var IsMountedPostMixin = { + componentWillUnmount: function componentWillUnmount() { + this.__isMounted = false; + } + }; + var ReactClassMixin = { + replaceState: function replaceState(newState, callback) { + this.updater.enqueueReplaceState(this, newState, callback); + }, + isMounted: function isMounted() { + if (process.env.NODE_ENV !== 'production') { + warning(this.__didWarnIsMounted, '%s: isMounted is deprecated. Instead, make sure to clean up ' + 'subscriptions and pending requests in componentWillUnmount to ' + 'prevent memory leaks.', this.constructor && this.constructor.displayName || this.name || 'Component'); + this.__didWarnIsMounted = true; + } + + return !!this.__isMounted; + } + }; + + var ReactClassComponent = function ReactClassComponent() {}; + + _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin); + + function createClass(spec) { + var Constructor = identity(function (props, context, updater) { + if (process.env.NODE_ENV !== 'production') { + warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory'); + } + + if (this.__reactAutoBindPairs.length) { + bindAutoBindMethods(this); + } + + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + this.state = null; + var initialState = this.getInitialState ? this.getInitialState() : null; + + if (process.env.NODE_ENV !== 'production') { + if (initialState === undefined && this.getInitialState._isMockFunction) { + initialState = null; + } + } + + _invariant(typeof initialState === 'object' && !Array.isArray(initialState), '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent'); + + this.state = initialState; + }); + Constructor.prototype = new ReactClassComponent(); + Constructor.prototype.constructor = Constructor; + Constructor.prototype.__reactAutoBindPairs = []; + injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); + mixSpecIntoComponent(Constructor, IsMountedPreMixin); + mixSpecIntoComponent(Constructor, spec); + mixSpecIntoComponent(Constructor, IsMountedPostMixin); + + if (Constructor.getDefaultProps) { + Constructor.defaultProps = Constructor.getDefaultProps(); + } + + if (process.env.NODE_ENV !== 'production') { + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps.isReactClassApproved = {}; + } + + if (Constructor.prototype.getInitialState) { + Constructor.prototype.getInitialState.isReactClassApproved = {}; + } + } + + _invariant(Constructor.prototype.render, 'createClass(...): Class specification must implement a `render` method.'); + + if (process.env.NODE_ENV !== 'production') { + warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component'); + warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component'); + warning(!Constructor.prototype.UNSAFE_componentWillRecieveProps, '%s has a method called UNSAFE_componentWillRecieveProps(). ' + 'Did you mean UNSAFE_componentWillReceiveProps()?', spec.displayName || 'A component'); + } + + for (var methodName in ReactClassInterface) { + if (!Constructor.prototype[methodName]) { + Constructor.prototype[methodName] = null; + } + } + + return Constructor; + } + + return createClass; + } + + module.exports = factory; +},366,[3,5,4,8],"node_modules/create-react-class/factory.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], 'AnimatedImplementation'); + + var ColorPropType = _$$_REQUIRE(_dependencyMap[1], 'ColorPropType'); + + var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[2], 'EdgeInsetsPropType'); + + var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); + + var PointPropType = _$$_REQUIRE(_dependencyMap[4], 'PointPropType'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[5], 'prop-types'); + + var React = _$$_REQUIRE(_dependencyMap[6], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[7], 'ReactNative'); + + var ScrollResponder = _$$_REQUIRE(_dependencyMap[8], 'ScrollResponder'); + + var ScrollViewStickyHeader = _$$_REQUIRE(_dependencyMap[9], 'ScrollViewStickyHeader'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[10], 'StyleSheet'); + + var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[11], 'StyleSheetPropType'); + + var View = _$$_REQUIRE(_dependencyMap[12], 'View'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[13], 'ViewPropTypes'); + + var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[14], 'ViewStylePropTypes'); + + var InternalScrollViewType = _$$_REQUIRE(_dependencyMap[15], 'InternalScrollViewType'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[16], 'create-react-class'); + + var dismissKeyboard = _$$_REQUIRE(_dependencyMap[17], 'dismissKeyboard'); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[18], 'flattenStyle'); + + var invariant = _$$_REQUIRE(_dependencyMap[19], 'fbjs/lib/invariant'); + + var processDecelerationRate = _$$_REQUIRE(_dependencyMap[20], 'processDecelerationRate'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[21], 'requireNativeComponent'); + + var warning = _$$_REQUIRE(_dependencyMap[22], 'fbjs/lib/warning'); + + var resolveAssetSource = _$$_REQUIRE(_dependencyMap[23], 'resolveAssetSource'); + + var AndroidScrollView; + var AndroidHorizontalScrollContentView; + var AndroidHorizontalScrollView; + var RCTScrollView; + var RCTScrollContentView; + + if (Platform.OS === 'android') { + AndroidScrollView = requireNativeComponent('RCTScrollView'); + AndroidHorizontalScrollView = requireNativeComponent('AndroidHorizontalScrollView'); + AndroidHorizontalScrollContentView = requireNativeComponent('AndroidHorizontalScrollContentView'); + } else if (Platform.OS === 'ios') { + RCTScrollView = requireNativeComponent('RCTScrollView'); + RCTScrollContentView = requireNativeComponent('RCTScrollContentView'); + } else { + RCTScrollView = requireNativeComponent('RCTScrollView'); + RCTScrollContentView = requireNativeComponent('RCTScrollContentView'); + } + + var ScrollView = createReactClass({ + displayName: 'ScrollView', + propTypes: _objectSpread({}, ViewPropTypes, { + automaticallyAdjustContentInsets: PropTypes.bool, + contentInset: EdgeInsetsPropType, + contentOffset: PointPropType, + bounces: PropTypes.bool, + bouncesZoom: PropTypes.bool, + alwaysBounceHorizontal: PropTypes.bool, + alwaysBounceVertical: PropTypes.bool, + centerContent: PropTypes.bool, + contentContainerStyle: StyleSheetPropType(ViewStylePropTypes), + decelerationRate: PropTypes.oneOfType([PropTypes.oneOf(['fast', 'normal']), PropTypes.number]), + horizontal: PropTypes.bool, + indicatorStyle: PropTypes.oneOf(['default', 'black', 'white']), + invertStickyHeaders: PropTypes.bool, + directionalLockEnabled: PropTypes.bool, + canCancelContentTouches: PropTypes.bool, + keyboardDismissMode: PropTypes.oneOf(['none', 'on-drag', 'interactive']), + keyboardShouldPersistTaps: PropTypes.oneOf(['always', 'never', 'handled', false, true]), + maintainVisibleContentPosition: PropTypes.shape({ + minIndexForVisible: PropTypes.number.isRequired, + autoscrollToTopThreshold: PropTypes.number + }), + maximumZoomScale: PropTypes.number, + minimumZoomScale: PropTypes.number, + nestedScrollEnabled: PropTypes.bool, + onMomentumScrollBegin: PropTypes.func, + onMomentumScrollEnd: PropTypes.func, + onScroll: PropTypes.func, + onScrollBeginDrag: PropTypes.func, + onScrollEndDrag: PropTypes.func, + onContentSizeChange: PropTypes.func, + pagingEnabled: PropTypes.bool, + pinchGestureEnabled: PropTypes.bool, + scrollEnabled: PropTypes.bool, + scrollEventThrottle: PropTypes.number, + scrollIndicatorInsets: EdgeInsetsPropType, + scrollsToTop: PropTypes.bool, + showsHorizontalScrollIndicator: PropTypes.bool, + showsVerticalScrollIndicator: PropTypes.bool, + stickyHeaderIndices: PropTypes.arrayOf(PropTypes.number), + snapToInterval: PropTypes.number, + snapToAlignment: PropTypes.oneOf(['start', 'center', 'end']), + removeClippedSubviews: PropTypes.bool, + zoomScale: PropTypes.number, + contentInsetAdjustmentBehavior: PropTypes.oneOf(['automatic', 'scrollableAxes', 'never', 'always']), + refreshControl: PropTypes.element, + endFillColor: ColorPropType, + scrollPerfTag: PropTypes.string, + overScrollMode: PropTypes.oneOf(['auto', 'always', 'never']), + DEPRECATED_sendUpdatedChildFrames: PropTypes.bool, + scrollBarThumbImage: PropTypes.oneOfType([PropTypes.shape({ + uri: PropTypes.string + }), PropTypes.number]) + }), + mixins: [ScrollResponder.Mixin], + _scrollAnimatedValue: new AnimatedImplementation.Value(0), + _scrollAnimatedValueAttachment: null, + _stickyHeaderRefs: new Map(), + _headerLayoutYs: new Map(), + getInitialState: function getInitialState() { + return _objectSpread({}, this.scrollResponderMixinGetInitialState(), { + layoutHeight: null + }); + }, + UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { + this._scrollAnimatedValue = new AnimatedImplementation.Value(this.props.contentOffset ? this.props.contentOffset.y : 0); + + this._scrollAnimatedValue.setOffset(this.props.contentInset ? this.props.contentInset.top : 0); + + this._stickyHeaderRefs = new Map(); + this._headerLayoutYs = new Map(); + }, + componentDidMount: function componentDidMount() { + this._updateAnimatedNodeAttachment(); + }, + componentDidUpdate: function componentDidUpdate() { + this._updateAnimatedNodeAttachment(); + }, + componentWillUnmount: function componentWillUnmount() { + if (this._scrollAnimatedValueAttachment) { + this._scrollAnimatedValueAttachment.detach(); + } + }, + setNativeProps: function setNativeProps(props) { + this._scrollViewRef && this._scrollViewRef.setNativeProps(props); + }, + getScrollResponder: function getScrollResponder() { + return this; + }, + getScrollableNode: function getScrollableNode() { + return ReactNative.findNodeHandle(this._scrollViewRef); + }, + getInnerViewNode: function getInnerViewNode() { + return ReactNative.findNodeHandle(this._innerViewRef); + }, + scrollTo: function scrollTo(y, x, animated) { + if (typeof y === 'number') { + console.warn('`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, ' + 'animated: true})` instead.'); + } else { + var _ref = y || {}; + + x = _ref.x; + y = _ref.y; + animated = _ref.animated; + } + + this.getScrollResponder().scrollResponderScrollTo({ + x: x || 0, + y: y || 0, + animated: animated !== false + }); + }, + scrollToEnd: function scrollToEnd(options) { + var animated = (options && options.animated) !== false; + this.getScrollResponder().scrollResponderScrollToEnd({ + animated: animated + }); + }, + scrollWithoutAnimationTo: function scrollWithoutAnimationTo() { + var y = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var x = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + console.warn('`scrollWithoutAnimationTo` is deprecated. Use `scrollTo` instead'); + this.scrollTo({ + x: x, + y: y, + animated: false + }); + }, + flashScrollIndicators: function flashScrollIndicators() { + this.getScrollResponder().scrollResponderFlashScrollIndicators(); + }, + _getKeyForIndex: function _getKeyForIndex(index, childArray) { + var child = childArray[index]; + return child && child.key; + }, + _updateAnimatedNodeAttachment: function _updateAnimatedNodeAttachment() { + if (this._scrollAnimatedValueAttachment) { + this._scrollAnimatedValueAttachment.detach(); + } + + if (this.props.stickyHeaderIndices && this.props.stickyHeaderIndices.length > 0) { + this._scrollAnimatedValueAttachment = AnimatedImplementation.attachNativeEvent(this._scrollViewRef, 'onScroll', [{ + nativeEvent: { + contentOffset: { + y: this._scrollAnimatedValue + } + } + }]); + } + }, + _setStickyHeaderRef: function _setStickyHeaderRef(key, ref) { + if (ref) { + this._stickyHeaderRefs.set(key, ref); + } else { + this._stickyHeaderRefs.delete(key); + } + }, + _onStickyHeaderLayout: function _onStickyHeaderLayout(index, event, key) { + if (!this.props.stickyHeaderIndices) { + return; + } + + var childArray = React.Children.toArray(this.props.children); + + if (key !== this._getKeyForIndex(index, childArray)) { + return; + } + + var layoutY = event.nativeEvent.layout.y; + + this._headerLayoutYs.set(key, layoutY); + + var indexOfIndex = this.props.stickyHeaderIndices.indexOf(index); + var previousHeaderIndex = this.props.stickyHeaderIndices[indexOfIndex - 1]; + + if (previousHeaderIndex != null) { + var previousHeader = this._stickyHeaderRefs.get(this._getKeyForIndex(previousHeaderIndex, childArray)); + + previousHeader && previousHeader.setNextHeaderY(layoutY); + } + }, + _handleScroll: function _handleScroll(e) { + if (__DEV__) { + if (this.props.onScroll && this.props.scrollEventThrottle == null && Platform.OS === 'ios') { + console.log('You specified `onScroll` on a but not ' + '`scrollEventThrottle`. You will only receive one event. ' + 'Using `16` you get all the events but be aware that it may ' + "cause frame drops, use a bigger number if you don't need as " + 'much precision.'); + } + } + + if (Platform.OS === 'android') { + if (this.props.keyboardDismissMode === 'on-drag' && this.state.isTouching) { + dismissKeyboard(); + } + } + + this.scrollResponderHandleScroll(e); + }, + _handleLayout: function _handleLayout(e) { + if (this.props.invertStickyHeaders) { + this.setState({ + layoutHeight: e.nativeEvent.layout.height + }); + } + + if (this.props.onLayout) { + this.props.onLayout(e); + } + }, + _handleContentOnLayout: function _handleContentOnLayout(e) { + var _e$nativeEvent$layout = e.nativeEvent.layout, + width = _e$nativeEvent$layout.width, + height = _e$nativeEvent$layout.height; + this.props.onContentSizeChange && this.props.onContentSizeChange(width, height); + }, + _scrollViewRef: null, + _setScrollViewRef: function _setScrollViewRef(ref) { + this._scrollViewRef = ref; + }, + _innerViewRef: null, + _setInnerViewRef: function _setInnerViewRef(ref) { + this._innerViewRef = ref; + }, + render: function render() { + var _this = this; + + var ScrollViewClass; + var ScrollContentContainerViewClass; + + if (Platform.OS === 'android') { + if (this.props.horizontal) { + ScrollViewClass = AndroidHorizontalScrollView; + ScrollContentContainerViewClass = AndroidHorizontalScrollContentView; + } else { + ScrollViewClass = AndroidScrollView; + ScrollContentContainerViewClass = View; + } + } else { + ScrollViewClass = RCTScrollView; + ScrollContentContainerViewClass = RCTScrollContentView; + warning(!this.props.snapToInterval || !this.props.pagingEnabled, 'snapToInterval is currently ignored when pagingEnabled is true.'); + } + + invariant(ScrollViewClass !== undefined, 'ScrollViewClass must not be undefined'); + invariant(ScrollContentContainerViewClass !== undefined, 'ScrollContentContainerViewClass must not be undefined'); + var contentContainerStyle = [this.props.horizontal && styles.contentContainerHorizontal, this.props.contentContainerStyle]; + + if (__DEV__ && this.props.style) { + var _style = flattenStyle(this.props.style); + + var childLayoutProps = ['alignItems', 'justifyContent'].filter(function (prop) { + return _style && _style[prop] !== undefined; + }); + invariant(childLayoutProps.length === 0, 'ScrollView child layout (' + JSON.stringify(childLayoutProps) + ') must be applied through the contentContainerStyle prop.'); + } + + var contentSizeChangeProps = {}; + + if (this.props.onContentSizeChange) { + contentSizeChangeProps = { + onLayout: this._handleContentOnLayout + }; + } + + var stickyHeaderIndices = this.props.stickyHeaderIndices; + var hasStickyHeaders = stickyHeaderIndices && stickyHeaderIndices.length > 0; + var childArray = hasStickyHeaders && React.Children.toArray(this.props.children); + var children = hasStickyHeaders ? childArray.map(function (child, index) { + var indexOfIndex = child ? stickyHeaderIndices.indexOf(index) : -1; + + if (indexOfIndex > -1) { + var key = child.key; + var nextIndex = stickyHeaderIndices[indexOfIndex + 1]; + return React.createElement(ScrollViewStickyHeader, { + key: key, + ref: function ref(_ref2) { + return _this._setStickyHeaderRef(key, _ref2); + }, + nextHeaderLayoutY: _this._headerLayoutYs.get(_this._getKeyForIndex(nextIndex, childArray)), + onLayout: function onLayout(event) { + return _this._onStickyHeaderLayout(index, event, key); + }, + scrollAnimatedValue: _this._scrollAnimatedValue, + inverted: _this.props.invertStickyHeaders, + scrollViewHeight: _this.state.layoutHeight, + __source: { + fileName: _jsxFileName, + lineNumber: 933 + } + }, child); + } else { + return child; + } + }) : this.props.children; + var contentContainer = React.createElement(ScrollContentContainerViewClass, _extends({}, contentSizeChangeProps, { + ref: this._setInnerViewRef, + style: contentContainerStyle, + removeClippedSubviews: Platform.OS === 'android' && hasStickyHeaders ? false : this.props.removeClippedSubviews, + collapsable: false, + __source: { + fileName: _jsxFileName, + lineNumber: 955 + } + }), children); + var alwaysBounceHorizontal = this.props.alwaysBounceHorizontal !== undefined ? this.props.alwaysBounceHorizontal : this.props.horizontal; + var alwaysBounceVertical = this.props.alwaysBounceVertical !== undefined ? this.props.alwaysBounceVertical : !this.props.horizontal; + var DEPRECATED_sendUpdatedChildFrames = !!this.props.DEPRECATED_sendUpdatedChildFrames; + var baseStyle = this.props.horizontal ? styles.baseHorizontal : styles.baseVertical; + + var props = _objectSpread({}, this.props, { + alwaysBounceHorizontal: alwaysBounceHorizontal, + alwaysBounceVertical: alwaysBounceVertical, + style: [baseStyle, this.props.style], + onContentSizeChange: null, + onLayout: this._handleLayout, + onMomentumScrollBegin: this.scrollResponderHandleMomentumScrollBegin, + onMomentumScrollEnd: this.scrollResponderHandleMomentumScrollEnd, + onResponderGrant: this.scrollResponderHandleResponderGrant, + onResponderReject: this.scrollResponderHandleResponderReject, + onResponderRelease: this.scrollResponderHandleResponderRelease, + onResponderTerminate: this.scrollResponderHandleTerminate, + onResponderTerminationRequest: this.scrollResponderHandleTerminationRequest, + onScroll: this._handleScroll, + onScrollBeginDrag: this.scrollResponderHandleScrollBeginDrag, + onScrollEndDrag: this.scrollResponderHandleScrollEndDrag, + onScrollShouldSetResponder: this.scrollResponderHandleScrollShouldSetResponder, + onStartShouldSetResponder: this.scrollResponderHandleStartShouldSetResponder, + onStartShouldSetResponderCapture: this.scrollResponderHandleStartShouldSetResponderCapture, + onTouchEnd: this.scrollResponderHandleTouchEnd, + onTouchMove: this.scrollResponderHandleTouchMove, + onTouchStart: this.scrollResponderHandleTouchStart, + onTouchCancel: this.scrollResponderHandleTouchCancel, + scrollBarThumbImage: resolveAssetSource(this.props.scrollBarThumbImage), + scrollEventThrottle: hasStickyHeaders ? 1 : this.props.scrollEventThrottle, + sendMomentumEvents: this.props.onMomentumScrollBegin || this.props.onMomentumScrollEnd ? true : false, + DEPRECATED_sendUpdatedChildFrames: DEPRECATED_sendUpdatedChildFrames + }); + + var decelerationRate = this.props.decelerationRate; + + if (decelerationRate) { + props.decelerationRate = processDecelerationRate(decelerationRate); + } + + var refreshControl = this.props.refreshControl; + + if (refreshControl) { + if (Platform.OS === 'ios') { + return React.createElement(ScrollViewClass, _extends({}, props, { + ref: this._setScrollViewRef, + __source: { + fileName: _jsxFileName, + lineNumber: 1043 + } + }), Platform.isTV ? null : refreshControl, contentContainer); + } else if (Platform.OS === 'android') { + return React.cloneElement(refreshControl, { + style: props.style + }, React.createElement(ScrollViewClass, _extends({}, props, { + style: baseStyle, + ref: this._setScrollViewRef, + __source: { + fileName: _jsxFileName, + lineNumber: 1058 + } + }), contentContainer)); + } + } + + return React.createElement(ScrollViewClass, _extends({}, props, { + ref: this._setScrollViewRef, + __source: { + fileName: _jsxFileName, + lineNumber: 1070 + } + }), contentContainer); + } + }); + var TypedScrollView = ScrollView; + var styles = StyleSheet.create({ + baseVertical: { + flexGrow: 1, + flexShrink: 1, + flexDirection: 'column', + overflow: 'scroll' + }, + baseHorizontal: { + flexGrow: 1, + flexShrink: 1, + flexDirection: 'row', + overflow: 'scroll' + }, + contentContainerHorizontal: { + flexDirection: 'row' + } + }); + module.exports = TypedScrollView; +},367,[333,207,254,176,368,212,200,261,369,375,201,255,227,376,220,380,365,373,226,166,381,229,183,235],"node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); + + var PointPropType = PropTypes.shape({ + x: PropTypes.number, + y: PropTypes.number + }); + module.exports = PointPropType; +},368,[212],"node_modules/react-native/Libraries/StyleSheet/PointPropType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Dimensions = _$$_REQUIRE(_dependencyMap[0], 'Dimensions'); + + var FrameRateLogger = _$$_REQUIRE(_dependencyMap[1], 'FrameRateLogger'); + + var Keyboard = _$$_REQUIRE(_dependencyMap[2], 'Keyboard'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[3], 'ReactNative'); + + var Subscribable = _$$_REQUIRE(_dependencyMap[4], 'Subscribable'); + + var TextInputState = _$$_REQUIRE(_dependencyMap[5], 'TextInputState'); + + var UIManager = _$$_REQUIRE(_dependencyMap[6], 'UIManager'); + + var invariant = _$$_REQUIRE(_dependencyMap[7], 'fbjs/lib/invariant'); + + var nullthrows = _$$_REQUIRE(_dependencyMap[8], 'fbjs/lib/nullthrows'); + + var performanceNow = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/performanceNow'); + + var warning = _$$_REQUIRE(_dependencyMap[10], 'fbjs/lib/warning'); + + var _require = _$$_REQUIRE(_dependencyMap[11], 'NativeModules'), + ScrollViewManager = _require.ScrollViewManager; + + var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16; + var ScrollResponderMixin = { + mixins: [Subscribable.Mixin], + scrollResponderMixinGetInitialState: function scrollResponderMixinGetInitialState() { + return { + isTouching: false, + lastMomentumScrollBeginTime: 0, + lastMomentumScrollEndTime: 0, + observedScrollSinceBecomingResponder: false, + becameResponderWhileAnimating: false + }; + }, + scrollResponderHandleScrollShouldSetResponder: function scrollResponderHandleScrollShouldSetResponder() { + return this.state.isTouching; + }, + scrollResponderHandleStartShouldSetResponder: function scrollResponderHandleStartShouldSetResponder(e) { + var currentlyFocusedTextInput = TextInputState.currentlyFocusedField(); + + if (this.props.keyboardShouldPersistTaps === 'handled' && currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput) { + return true; + } + + return false; + }, + scrollResponderHandleStartShouldSetResponderCapture: function scrollResponderHandleStartShouldSetResponderCapture(e) { + if (this.scrollResponderIsAnimating()) { + return true; + } + + var currentlyFocusedTextInput = TextInputState.currentlyFocusedField(); + var keyboardShouldPersistTaps = this.props.keyboardShouldPersistTaps; + var keyboardNeverPersistTaps = !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never'; + + if (keyboardNeverPersistTaps && currentlyFocusedTextInput != null && !TextInputState.isTextInput(e.target)) { + return true; + } + + return false; + }, + scrollResponderHandleResponderReject: function scrollResponderHandleResponderReject() {}, + scrollResponderHandleTerminationRequest: function scrollResponderHandleTerminationRequest() { + return !this.state.observedScrollSinceBecomingResponder; + }, + scrollResponderHandleTouchEnd: function scrollResponderHandleTouchEnd(e) { + var nativeEvent = e.nativeEvent; + this.state.isTouching = nativeEvent.touches.length !== 0; + this.props.onTouchEnd && this.props.onTouchEnd(e); + }, + scrollResponderHandleTouchCancel: function scrollResponderHandleTouchCancel(e) { + this.state.isTouching = false; + this.props.onTouchCancel && this.props.onTouchCancel(e); + }, + scrollResponderHandleResponderRelease: function scrollResponderHandleResponderRelease(e) { + this.props.onResponderRelease && this.props.onResponderRelease(e); + var currentlyFocusedTextInput = TextInputState.currentlyFocusedField(); + + if (this.props.keyboardShouldPersistTaps !== true && this.props.keyboardShouldPersistTaps !== 'always' && currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput && !this.state.observedScrollSinceBecomingResponder && !this.state.becameResponderWhileAnimating) { + this.props.onScrollResponderKeyboardDismissed && this.props.onScrollResponderKeyboardDismissed(e); + TextInputState.blurTextInput(currentlyFocusedTextInput); + } + }, + scrollResponderHandleScroll: function scrollResponderHandleScroll(e) { + this.state.observedScrollSinceBecomingResponder = true; + this.props.onScroll && this.props.onScroll(e); + }, + scrollResponderHandleResponderGrant: function scrollResponderHandleResponderGrant(e) { + this.state.observedScrollSinceBecomingResponder = false; + this.props.onResponderGrant && this.props.onResponderGrant(e); + this.state.becameResponderWhileAnimating = this.scrollResponderIsAnimating(); + }, + scrollResponderHandleScrollBeginDrag: function scrollResponderHandleScrollBeginDrag(e) { + FrameRateLogger.beginScroll(); + this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e); + }, + scrollResponderHandleScrollEndDrag: function scrollResponderHandleScrollEndDrag(e) { + var velocity = e.nativeEvent.velocity; + + if (!this.scrollResponderIsAnimating() && (!velocity || velocity.x === 0 && velocity.y === 0)) { + FrameRateLogger.endScroll(); + } + + this.props.onScrollEndDrag && this.props.onScrollEndDrag(e); + }, + scrollResponderHandleMomentumScrollBegin: function scrollResponderHandleMomentumScrollBegin(e) { + this.state.lastMomentumScrollBeginTime = performanceNow(); + this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e); + }, + scrollResponderHandleMomentumScrollEnd: function scrollResponderHandleMomentumScrollEnd(e) { + FrameRateLogger.endScroll(); + this.state.lastMomentumScrollEndTime = performanceNow(); + this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e); + }, + scrollResponderHandleTouchStart: function scrollResponderHandleTouchStart(e) { + this.state.isTouching = true; + this.props.onTouchStart && this.props.onTouchStart(e); + }, + scrollResponderHandleTouchMove: function scrollResponderHandleTouchMove(e) { + this.props.onTouchMove && this.props.onTouchMove(e); + }, + scrollResponderIsAnimating: function scrollResponderIsAnimating() { + var now = performanceNow(); + var timeSinceLastMomentumScrollEnd = now - this.state.lastMomentumScrollEndTime; + var isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || this.state.lastMomentumScrollEndTime < this.state.lastMomentumScrollBeginTime; + return isAnimating; + }, + scrollResponderGetScrollableNode: function scrollResponderGetScrollableNode() { + return this.getScrollableNode ? this.getScrollableNode() : ReactNative.findNodeHandle(this); + }, + scrollResponderScrollTo: function scrollResponderScrollTo(x, y, animated) { + if (typeof x === 'number') { + console.warn('`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.'); + } else { + var _ref = x || {}; + + x = _ref.x; + y = _ref.y; + animated = _ref.animated; + } + + UIManager.dispatchViewManagerCommand(nullthrows(this.scrollResponderGetScrollableNode()), UIManager.RCTScrollView.Commands.scrollTo, [x || 0, y || 0, animated !== false]); + }, + scrollResponderScrollToEnd: function scrollResponderScrollToEnd(options) { + var animated = (options && options.animated) !== false; + UIManager.dispatchViewManagerCommand(this.scrollResponderGetScrollableNode(), UIManager.RCTScrollView.Commands.scrollToEnd, [animated]); + }, + scrollResponderScrollWithoutAnimationTo: function scrollResponderScrollWithoutAnimationTo(offsetX, offsetY) { + console.warn('`scrollResponderScrollWithoutAnimationTo` is deprecated. Use `scrollResponderScrollTo` instead'); + this.scrollResponderScrollTo({ + x: offsetX, + y: offsetY, + animated: false + }); + }, + scrollResponderZoomTo: function scrollResponderZoomTo(rect, animated) { + invariant(ScrollViewManager && ScrollViewManager.zoomToRect, 'zoomToRect is not implemented'); + + if ('animated' in rect) { + animated = rect.animated; + delete rect.animated; + } else if (typeof animated !== 'undefined') { + console.warn('`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead'); + } + + ScrollViewManager.zoomToRect(this.scrollResponderGetScrollableNode(), rect, animated !== false); + }, + scrollResponderFlashScrollIndicators: function scrollResponderFlashScrollIndicators() { + UIManager.dispatchViewManagerCommand(this.scrollResponderGetScrollableNode(), UIManager.RCTScrollView.Commands.flashScrollIndicators, []); + }, + scrollResponderScrollNativeHandleToKeyboard: function scrollResponderScrollNativeHandleToKeyboard(nodeHandle, additionalOffset, preventNegativeScrollOffset) { + this.additionalScrollOffset = additionalOffset || 0; + this.preventNegativeScrollOffset = !!preventNegativeScrollOffset; + UIManager.measureLayout(nodeHandle, ReactNative.findNodeHandle(this.getInnerViewNode()), this.scrollResponderTextInputFocusError, this.scrollResponderInputMeasureAndScrollToKeyboard); + }, + scrollResponderInputMeasureAndScrollToKeyboard: function scrollResponderInputMeasureAndScrollToKeyboard(left, top, width, height) { + var keyboardScreenY = Dimensions.get('window').height; + + if (this.keyboardWillOpenTo) { + keyboardScreenY = this.keyboardWillOpenTo.endCoordinates.screenY; + } + + var scrollOffsetY = top - keyboardScreenY + height + this.additionalScrollOffset; + + if (this.preventNegativeScrollOffset) { + scrollOffsetY = Math.max(0, scrollOffsetY); + } + + this.scrollResponderScrollTo({ + x: 0, + y: scrollOffsetY, + animated: true + }); + this.additionalOffset = 0; + this.preventNegativeScrollOffset = false; + }, + scrollResponderTextInputFocusError: function scrollResponderTextInputFocusError(e) { + console.error('Error measuring text field: ', e); + }, + UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { + var keyboardShouldPersistTaps = this.props.keyboardShouldPersistTaps; + warning(typeof keyboardShouldPersistTaps !== 'boolean', "'keyboardShouldPersistTaps={" + keyboardShouldPersistTaps + "}' is deprecated. " + ("Use 'keyboardShouldPersistTaps=\"" + (keyboardShouldPersistTaps ? 'always' : 'never') + "\"' instead")); + this.keyboardWillOpenTo = null; + this.additionalScrollOffset = 0; + this.addListenerOn(Keyboard, 'keyboardWillShow', this.scrollResponderKeyboardWillShow); + this.addListenerOn(Keyboard, 'keyboardWillHide', this.scrollResponderKeyboardWillHide); + this.addListenerOn(Keyboard, 'keyboardDidShow', this.scrollResponderKeyboardDidShow); + this.addListenerOn(Keyboard, 'keyboardDidHide', this.scrollResponderKeyboardDidHide); + }, + scrollResponderKeyboardWillShow: function scrollResponderKeyboardWillShow(e) { + this.keyboardWillOpenTo = e; + this.props.onKeyboardWillShow && this.props.onKeyboardWillShow(e); + }, + scrollResponderKeyboardWillHide: function scrollResponderKeyboardWillHide(e) { + this.keyboardWillOpenTo = null; + this.props.onKeyboardWillHide && this.props.onKeyboardWillHide(e); + }, + scrollResponderKeyboardDidShow: function scrollResponderKeyboardDidShow(e) { + if (e) { + this.keyboardWillOpenTo = e; + } + + this.props.onKeyboardDidShow && this.props.onKeyboardDidShow(e); + }, + scrollResponderKeyboardDidHide: function scrollResponderKeyboardDidHide(e) { + this.keyboardWillOpenTo = null; + this.props.onKeyboardDidHide && this.props.onKeyboardDidHide(e); + } + }; + var ScrollResponder = { + Mixin: ScrollResponderMixin + }; + module.exports = ScrollResponder; +},369,[203,370,371,261,374,325,218,166,329,177,183,168],"node_modules/react-native/Libraries/Components/ScrollResponder.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var FrameRateLogger = { + setGlobalOptions: function setGlobalOptions(options) { + if (options.debug !== undefined) { + invariant(NativeModules.FrameRateLogger, 'Trying to debug FrameRateLogger without the native module!'); + } + + if (NativeModules.FrameRateLogger) { + var optionsClone = { + debug: !!options.debug, + reportStackTraces: !!options.reportStackTraces + }; + Object.freeze(optionsClone); + Object.seal(optionsClone); + NativeModules.FrameRateLogger.setGlobalOptions(optionsClone); + } + }, + setContext: function setContext(context) { + NativeModules.FrameRateLogger && NativeModules.FrameRateLogger.setContext(context); + }, + beginScroll: function beginScroll() { + NativeModules.FrameRateLogger && NativeModules.FrameRateLogger.beginScroll(); + }, + endScroll: function endScroll() { + NativeModules.FrameRateLogger && NativeModules.FrameRateLogger.endScroll(); + } + }; + module.exports = FrameRateLogger; +},370,[168,166],"node_modules/react-native/Libraries/Interaction/FrameRateLogger.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var LayoutAnimation = _$$_REQUIRE(_dependencyMap[0], 'LayoutAnimation'); + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'NativeEventEmitter'); + + var KeyboardObserver = _$$_REQUIRE(_dependencyMap[3], 'NativeModules').KeyboardObserver; + + var dismissKeyboard = _$$_REQUIRE(_dependencyMap[4], 'dismissKeyboard'); + + var KeyboardEventEmitter = new NativeEventEmitter(KeyboardObserver); + var Keyboard = { + addListener: function addListener(eventName, callback) { + invariant(false, 'Dummy method used for documentation'); + }, + removeListener: function removeListener(eventName, callback) { + invariant(false, 'Dummy method used for documentation'); + }, + removeAllListeners: function removeAllListeners(eventName) { + invariant(false, 'Dummy method used for documentation'); + }, + dismiss: function dismiss() { + invariant(false, 'Dummy method used for documentation'); + }, + scheduleLayoutAnimation: function scheduleLayoutAnimation(event) { + invariant(false, 'Dummy method used for documentation'); + } + }; + Keyboard = KeyboardEventEmitter; + Keyboard.dismiss = dismissKeyboard; + + Keyboard.scheduleLayoutAnimation = function (event) { + var duration = event.duration, + easing = event.easing; + + if (duration) { + LayoutAnimation.configureNext({ + duration: duration, + update: { + duration: duration, + type: easing && LayoutAnimation.Types[easing] || 'keyboard' + } + }); + } + }; + + module.exports = Keyboard; +},371,[372,166,286,168,373],"node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); + + var UIManager = _$$_REQUIRE(_dependencyMap[1], 'UIManager'); + + var keyMirror = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/keyMirror'); + + var checkPropTypes = PropTypes.checkPropTypes; + var TypesEnum = { + spring: true, + linear: true, + easeInEaseOut: true, + easeIn: true, + easeOut: true, + keyboard: true + }; + var Types = keyMirror(TypesEnum); + var PropertiesEnum = { + opacity: true, + scaleX: true, + scaleY: true, + scaleXY: true + }; + var Properties = keyMirror(PropertiesEnum); + var animType = PropTypes.shape({ + duration: PropTypes.number, + delay: PropTypes.number, + springDamping: PropTypes.number, + initialVelocity: PropTypes.number, + type: PropTypes.oneOf(Object.keys(Types)).isRequired, + property: PropTypes.oneOf(Object.keys(Properties)) + }); + var configType = PropTypes.shape({ + duration: PropTypes.number.isRequired, + create: animType, + update: animType, + delete: animType + }); + + function checkConfig(config, location, name) { + checkPropTypes({ + config: configType + }, { + config: config + }, location, name); + } + + function configureNext(config, onAnimationDidEnd) { + if (__DEV__) { + checkConfig(config, 'config', 'LayoutAnimation.configureNext'); + } + + UIManager.configureNextLayoutAnimation(config, onAnimationDidEnd || function () {}, function () {}); + } + + function create(duration, type, creationProp) { + return { + duration: duration, + create: { + type: type, + property: creationProp + }, + update: { + type: type + }, + delete: { + type: type, + property: creationProp + } + }; + } + + var Presets = { + easeInEaseOut: create(300, Types.easeInEaseOut, Properties.opacity), + linear: create(500, Types.linear, Properties.opacity), + spring: { + duration: 700, + create: { + type: Types.linear, + property: Properties.opacity + }, + update: { + type: Types.spring, + springDamping: 0.4 + }, + delete: { + type: Types.linear, + property: Properties.opacity + } + } + }; + var LayoutAnimation = { + configureNext: configureNext, + create: create, + Types: Types, + Properties: Properties, + checkConfig: checkConfig, + Presets: Presets, + easeInEaseOut: configureNext.bind(null, Presets.easeInEaseOut), + linear: configureNext.bind(null, Presets.linear), + spring: configureNext.bind(null, Presets.spring) + }; + module.exports = LayoutAnimation; +},372,[212,218,210],"node_modules/react-native/Libraries/LayoutAnimation/LayoutAnimation.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var TextInputState = _$$_REQUIRE(_dependencyMap[0], 'TextInputState'); + + function dismissKeyboard() { + TextInputState.blurTextInput(TextInputState.currentlyFocusedField()); + } + + module.exports = dismissKeyboard; +},373,[325],"node_modules/react-native/Libraries/Utilities/dismissKeyboard.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Subscribable = {}; + Subscribable.Mixin = { + UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { + this._subscribableSubscriptions = []; + }, + componentWillUnmount: function componentWillUnmount() { + this._subscribableSubscriptions && this._subscribableSubscriptions.forEach(function (subscription) { + return subscription.remove(); + }); + this._subscribableSubscriptions = null; + }, + addListenerOn: function addListenerOn(eventEmitter, eventType, listener, context) { + this._subscribableSubscriptions.push(eventEmitter.addListener(eventType, listener, context)); + } + }; + module.exports = Subscribable; +},374,[],"node_modules/react-native/Libraries/Components/Subscribable.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + ScrollViewStickyHeader: { + displayName: "ScrollViewStickyHeader" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var AnimatedImplementation = _$$_REQUIRE(_dependencyMap[2], 'AnimatedImplementation'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[5], 'View'); + + var AnimatedView = AnimatedImplementation.createAnimatedComponent(View); + + var ScrollViewStickyHeader = function (_React$Component) { + function ScrollViewStickyHeader() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, ScrollViewStickyHeader); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollViewStickyHeader)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { + measured: false, + layoutY: 0, + layoutHeight: 0, + nextHeaderLayoutY: _this.props.nextHeaderLayoutY + }, _this._onLayout = function (event) { + _this.setState({ + measured: true, + layoutY: event.nativeEvent.layout.y, + layoutHeight: event.nativeEvent.layout.height + }); + + _this.props.onLayout(event); + + var child = React.Children.only(_this.props.children); + + if (child.props.onLayout) { + child.props.onLayout(event); + } + }, _temp)); + } + + _createClass(ScrollViewStickyHeader, [{ + key: "setNextHeaderY", + value: function setNextHeaderY(y) { + this.setState({ + nextHeaderLayoutY: y + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + inverted = _this$props.inverted, + scrollViewHeight = _this$props.scrollViewHeight; + var _this$state = this.state, + measured = _this$state.measured, + layoutHeight = _this$state.layoutHeight, + layoutY = _this$state.layoutY, + nextHeaderLayoutY = _this$state.nextHeaderLayoutY; + var inputRange = [-1, 0]; + var outputRange = [0, 0]; + + if (measured) { + if (inverted) { + if (scrollViewHeight != null) { + var stickStartPoint = layoutY + layoutHeight - scrollViewHeight; + + if (stickStartPoint > 0) { + inputRange.push(stickStartPoint); + outputRange.push(0); + inputRange.push(stickStartPoint + 1); + outputRange.push(1); + var collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight - scrollViewHeight; + + if (collisionPoint > stickStartPoint) { + inputRange.push(collisionPoint, collisionPoint + 1); + outputRange.push(collisionPoint - stickStartPoint, collisionPoint - stickStartPoint); + } + } + } + } else { + inputRange.push(layoutY); + outputRange.push(0); + + var _collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight; + + if (_collisionPoint >= layoutY) { + inputRange.push(_collisionPoint, _collisionPoint + 1); + outputRange.push(_collisionPoint - layoutY, _collisionPoint - layoutY); + } else { + inputRange.push(layoutY + 1); + outputRange.push(1); + } + } + } + + var translateY = this.props.scrollAnimatedValue.interpolate({ + inputRange: inputRange, + outputRange: outputRange + }); + var child = React.Children.only(this.props.children); + return React.createElement(AnimatedView, { + collapsable: false, + onLayout: this._onLayout, + style: [child.props.style, styles.header, { + transform: [{ + translateY: translateY + }] + }], + __source: { + fileName: _jsxFileName, + lineNumber: 141 + } + }, React.cloneElement(child, { + style: styles.fill, + onLayout: undefined + })); + } + }]); + + _inherits(ScrollViewStickyHeader, _React$Component); + + return ScrollViewStickyHeader; + }(React.Component); + + ScrollViewStickyHeader = _wrapComponent("ScrollViewStickyHeader")(ScrollViewStickyHeader); + var styles = StyleSheet.create({ + header: { + zIndex: 10 + }, + fill: { + flex: 1 + } + }); + module.exports = ScrollViewStickyHeader; +},375,[1,11,333,200,201,227],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var React = _$$_REQUIRE(_dependencyMap[0], 'React'); + + var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[1], 'EdgeInsetsPropType'); + + var PlatformViewPropTypes = _$$_REQUIRE(_dependencyMap[2], 'PlatformViewPropTypes'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[4], 'StyleSheetPropType'); + + var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[5], 'ViewStylePropTypes'); + + var _require = _$$_REQUIRE(_dependencyMap[6], 'ViewAccessibility'), + AccessibilityComponentTypes = _require.AccessibilityComponentTypes, + AccessibilityTraits = _require.AccessibilityTraits; + + var stylePropType = StyleSheetPropType(ViewStylePropTypes); + module.exports = _objectSpread({ + accessible: PropTypes.bool, + accessibilityLabel: PropTypes.node, + accessibilityActions: PropTypes.arrayOf(PropTypes.string), + accessibilityComponentType: PropTypes.oneOf(AccessibilityComponentTypes), + accessibilityLiveRegion: PropTypes.oneOf(['none', 'polite', 'assertive']), + importantForAccessibility: PropTypes.oneOf(['auto', 'yes', 'no', 'no-hide-descendants']), + accessibilityTraits: PropTypes.oneOfType([PropTypes.oneOf(AccessibilityTraits), PropTypes.arrayOf(PropTypes.oneOf(AccessibilityTraits))]), + accessibilityViewIsModal: PropTypes.bool, + accessibilityElementsHidden: PropTypes.bool, + onAccessibilityAction: PropTypes.func, + onAccessibilityTap: PropTypes.func, + onMagicTap: PropTypes.func, + testID: PropTypes.string, + nativeID: PropTypes.string, + onResponderGrant: PropTypes.func, + onResponderMove: PropTypes.func, + onResponderReject: PropTypes.func, + onResponderRelease: PropTypes.func, + onResponderTerminate: PropTypes.func, + onResponderTerminationRequest: PropTypes.func, + onStartShouldSetResponder: PropTypes.func, + onStartShouldSetResponderCapture: PropTypes.func, + onMoveShouldSetResponder: PropTypes.func, + onMoveShouldSetResponderCapture: PropTypes.func, + hitSlop: EdgeInsetsPropType, + onLayout: PropTypes.func, + pointerEvents: PropTypes.oneOf(['box-none', 'none', 'box-only', 'auto']), + style: stylePropType, + removeClippedSubviews: PropTypes.bool, + renderToHardwareTextureAndroid: PropTypes.bool, + shouldRasterizeIOS: PropTypes.bool, + collapsable: PropTypes.bool, + needsOffscreenAlphaCompositing: PropTypes.bool + }, PlatformViewPropTypes); +},376,[200,254,377,212,255,220,379],"node_modules/react-native/Libraries/Components/View/ViewPropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var TVViewPropTypes = {}; + + if (Platform.isTV || Platform.OS === 'android') { + TVViewPropTypes = _$$_REQUIRE(_dependencyMap[1], 'TVViewPropTypes'); + } + + module.exports = TVViewPropTypes; +},377,[176,378],"node_modules/react-native/Libraries/Components/View/PlatformViewPropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); + + var TVViewPropTypes = { + isTVSelectable: PropTypes.bool, + hasTVPreferredFocus: PropTypes.bool, + tvParallaxProperties: PropTypes.object, + tvParallaxShiftDistanceX: PropTypes.number, + tvParallaxShiftDistanceY: PropTypes.number, + tvParallaxTiltAngle: PropTypes.number, + tvParallaxMagnification: PropTypes.number + }; + module.exports = TVViewPropTypes; +},378,[212],"node_modules/react-native/Libraries/Components/AppleTV/TVViewPropTypes.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = { + AccessibilityTraits: ['none', 'button', 'link', 'header', 'search', 'image', 'selected', 'plays', 'key', 'text', 'summary', 'disabled', 'frequentUpdates', 'startsMedia', 'adjustable', 'allowsDirectInteraction', 'pageTurn'], + AccessibilityComponentTypes: ['none', 'button', 'radiobutton_checked', 'radiobutton_unchecked'] + }; +},379,[],"node_modules/react-native/Libraries/Components/View/ViewAccessibility.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var ReactNative = _$$_REQUIRE(_dependencyMap[0], 'ReactNative'); + + var InternalScrollViewType = function (_ReactNative$NativeCo) { + "use strict"; + + function InternalScrollViewType() { + _classCallCheck(this, InternalScrollViewType); + + return _possibleConstructorReturn(this, _getPrototypeOf(InternalScrollViewType).apply(this, arguments)); + } + + _createClass(InternalScrollViewType, [{ + key: "scrollTo", + value: function scrollTo(y, x, animated) {} + }, { + key: "flashScrollIndicators", + value: function flashScrollIndicators() {} + }, { + key: "scrollToEnd", + value: function scrollToEnd(options) {} + }, { + key: "scrollWithoutAnimationTo", + value: function scrollWithoutAnimationTo() { + var y = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var x = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + } + }, { + key: "getScrollResponder", + value: function getScrollResponder() {} + }, { + key: "getScrollableNode", + value: function getScrollableNode() {} + }, { + key: "getInnerViewNode", + value: function getInnerViewNode() {} + }, { + key: "scrollResponderScrollNativeHandleToKeyboard", + value: function scrollResponderScrollNativeHandleToKeyboard(nodeHandle, additionalOffset, preventNegativeScrollOffset) {} + }, { + key: "scrollResponderScrollTo", + value: function scrollResponderScrollTo(x, y, animated) {} + }]); + + _inherits(InternalScrollViewType, _ReactNative$NativeCo); + + return InternalScrollViewType; + }(ReactNative.NativeComponent); + + module.exports = InternalScrollViewType; +},380,[261],"node_modules/react-native/Libraries/Components/ScrollView/InternalScrollViewType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function processDecelerationRate(decelerationRate) { + if (decelerationRate === 'normal') { + decelerationRate = 0.998; + } else if (decelerationRate === 'fast') { + decelerationRate = 0.99; + } + + return decelerationRate; + } + + module.exports = processDecelerationRate; +},381,[],"node_modules/react-native/Libraries/Components/ScrollView/processDecelerationRate.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var GLOBAL = typeof window === 'undefined' ? global : window; + + var setter = function setter(_setter, _clearer, array) { + return function (callback, delta) { + var id = _setter(function () { + _clearer.call(this, id); + + callback.apply(this, arguments); + }.bind(this), delta); + + if (!this[array]) { + this[array] = [id]; + } else { + this[array].push(id); + } + + return id; + }; + }; + + var clearer = function clearer(_clearer, array) { + return function (id) { + if (this[array]) { + var index = this[array].indexOf(id); + + if (index !== -1) { + this[array].splice(index, 1); + } + } + + _clearer(id); + }; + }; + + var _timeouts = 'TimerMixin_timeouts'; + + var _clearTimeout = clearer(GLOBAL.clearTimeout, _timeouts); + + var _setTimeout = setter(GLOBAL.setTimeout, _clearTimeout, _timeouts); + + var _intervals = 'TimerMixin_intervals'; + + var _clearInterval = clearer(GLOBAL.clearInterval, _intervals); + + var _setInterval = setter(GLOBAL.setInterval, function () {}, _intervals); + + var _immediates = 'TimerMixin_immediates'; + + var _clearImmediate = clearer(GLOBAL.clearImmediate, _immediates); + + var _setImmediate = setter(GLOBAL.setImmediate, _clearImmediate, _immediates); + + var _rafs = 'TimerMixin_rafs'; + + var _cancelAnimationFrame = clearer(GLOBAL.cancelAnimationFrame, _rafs); + + var _requestAnimationFrame = setter(GLOBAL.requestAnimationFrame, _cancelAnimationFrame, _rafs); + + var TimerMixin = { + componentWillUnmount: function componentWillUnmount() { + this[_timeouts] && this[_timeouts].forEach(function (id) { + GLOBAL.clearTimeout(id); + }); + this[_timeouts] = null; + this[_intervals] && this[_intervals].forEach(function (id) { + GLOBAL.clearInterval(id); + }); + this[_intervals] = null; + this[_immediates] && this[_immediates].forEach(function (id) { + GLOBAL.clearImmediate(id); + }); + this[_immediates] = null; + this[_rafs] && this[_rafs].forEach(function (id) { + GLOBAL.cancelAnimationFrame(id); + }); + this[_rafs] = null; + }, + setTimeout: _setTimeout, + clearTimeout: _clearTimeout, + setInterval: _setInterval, + clearInterval: _clearInterval, + setImmediate: _setImmediate, + clearImmediate: _clearImmediate, + requestAnimationFrame: _requestAnimationFrame, + cancelAnimationFrame: _cancelAnimationFrame + }; + module.exports = TimerMixin; +},382,[],"node_modules/react-timer-mixin/TimerMixin.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[0], 'EdgeInsetsPropType'); + + var React = _$$_REQUIRE(_dependencyMap[1], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); + + var TimerMixin = _$$_REQUIRE(_dependencyMap[3], 'react-timer-mixin'); + + var Touchable = _$$_REQUIRE(_dependencyMap[4], 'Touchable'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[5], 'create-react-class'); + + var ensurePositiveDelayProps = _$$_REQUIRE(_dependencyMap[6], 'ensurePositiveDelayProps'); + + var warning = _$$_REQUIRE(_dependencyMap[7], 'fbjs/lib/warning'); + + var _require = _$$_REQUIRE(_dependencyMap[8], 'ViewAccessibility'), + AccessibilityComponentTypes = _require.AccessibilityComponentTypes, + AccessibilityTraits = _require.AccessibilityTraits; + + var PRESS_RETENTION_OFFSET = { + top: 20, + left: 20, + right: 20, + bottom: 30 + }; + var TouchableWithoutFeedback = createReactClass({ + displayName: 'TouchableWithoutFeedback', + mixins: [TimerMixin, Touchable.Mixin], + propTypes: { + accessible: PropTypes.bool, + accessibilityLabel: PropTypes.node, + accessibilityComponentType: PropTypes.oneOf(AccessibilityComponentTypes), + accessibilityTraits: PropTypes.oneOfType([PropTypes.oneOf(AccessibilityTraits), PropTypes.arrayOf(PropTypes.oneOf(AccessibilityTraits))]), + disabled: PropTypes.bool, + onPress: PropTypes.func, + onPressIn: PropTypes.func, + onPressOut: PropTypes.func, + onLayout: PropTypes.func, + onLongPress: PropTypes.func, + nativeID: PropTypes.string, + testID: PropTypes.string, + delayPressIn: PropTypes.number, + delayPressOut: PropTypes.number, + delayLongPress: PropTypes.number, + pressRetentionOffset: EdgeInsetsPropType, + hitSlop: EdgeInsetsPropType + }, + getInitialState: function getInitialState() { + return this.touchableGetInitialState(); + }, + componentDidMount: function componentDidMount() { + ensurePositiveDelayProps(this.props); + }, + UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { + ensurePositiveDelayProps(nextProps); + }, + touchableHandlePress: function touchableHandlePress(e) { + this.props.onPress && this.props.onPress(e); + }, + touchableHandleActivePressIn: function touchableHandleActivePressIn(e) { + this.props.onPressIn && this.props.onPressIn(e); + }, + touchableHandleActivePressOut: function touchableHandleActivePressOut(e) { + this.props.onPressOut && this.props.onPressOut(e); + }, + touchableHandleLongPress: function touchableHandleLongPress(e) { + this.props.onLongPress && this.props.onLongPress(e); + }, + touchableGetPressRectOffset: function touchableGetPressRectOffset() { + return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET; + }, + touchableGetHitSlop: function touchableGetHitSlop() { + return this.props.hitSlop; + }, + touchableGetHighlightDelayMS: function touchableGetHighlightDelayMS() { + return this.props.delayPressIn || 0; + }, + touchableGetLongPressDelayMS: function touchableGetLongPressDelayMS() { + return this.props.delayLongPress === 0 ? 0 : this.props.delayLongPress || 500; + }, + touchableGetPressOutDelayMS: function touchableGetPressOutDelayMS() { + return this.props.delayPressOut || 0; + }, + render: function render() { + var child = React.Children.only(this.props.children); + var children = child.props.children; + warning(!child.type || child.type.displayName !== 'Text', 'TouchableWithoutFeedback does not work well with Text children. Wrap children in a View instead. See ' + (child._owner && child._owner.getName && child._owner.getName() || '')); + + if (Touchable.TOUCH_TARGET_DEBUG && child.type && child.type.displayName === 'View') { + children = React.Children.toArray(children); + children.push(Touchable.renderDebugView({ + color: 'red', + hitSlop: this.props.hitSlop + })); + } + + var style = Touchable.TOUCH_TARGET_DEBUG && child.type && child.type.displayName === 'Text' ? [child.props.style, { + color: 'red' + }] : child.props.style; + return React.cloneElement(child, { + accessible: this.props.accessible !== false, + accessibilityLabel: this.props.accessibilityLabel, + accessibilityComponentType: this.props.accessibilityComponentType, + accessibilityTraits: this.props.accessibilityTraits, + nativeID: this.props.nativeID, + testID: this.props.testID, + onLayout: this.props.onLayout, + hitSlop: this.props.hitSlop, + onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder, + onResponderTerminationRequest: this.touchableHandleResponderTerminationRequest, + onResponderGrant: this.touchableHandleResponderGrant, + onResponderMove: this.touchableHandleResponderMove, + onResponderRelease: this.touchableHandleResponderRelease, + onResponderTerminate: this.touchableHandleResponderTerminate, + style: style, + children: children + }); + } + }); + module.exports = TouchableWithoutFeedback; +},383,[254,200,212,382,257,365,384,183,379],"node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var ensurePositiveDelayProps = function ensurePositiveDelayProps(props) { + invariant(!(props.delayPressIn < 0 || props.delayPressOut < 0 || props.delayLongPress < 0), 'Touchable components cannot have negative delay properties'); + }; + + module.exports = ensurePositiveDelayProps; +},384,[166],"node_modules/react-native/Libraries/Components/Touchable/ensurePositiveDelayProps.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); +},385,[240],"node_modules/react-native/Libraries/Components/CheckBox/CheckBox.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.ios.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + DatePickerIOS: { + displayName: "DatePickerIOS" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[5], 'View'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[6], 'requireNativeComponent'); + + var RCTDatePickerIOS = requireNativeComponent('RCTDatePicker'); + + var DatePickerIOS = function (_React$Component) { + function DatePickerIOS() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, DatePickerIOS); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DatePickerIOS)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._picker = null, _this._onChange = function (event) { + var nativeTimeStamp = event.nativeEvent.timestamp; + _this.props.onDateChange && _this.props.onDateChange(new Date(nativeTimeStamp)); + _this.props.onChange && _this.props.onChange(event); + }, _temp)); + } + + _createClass(DatePickerIOS, [{ + key: "componentDidUpdate", + value: function componentDidUpdate() { + if (this.props.date) { + var propsTimeStamp = this.props.date.getTime(); + + if (this._picker) { + this._picker.setNativeProps({ + date: propsTimeStamp + }); + } + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var props = this.props; + invariant(props.date || props.initialDate, 'A selected date or initial date should be specified.'); + return React.createElement(View, { + style: props.style, + __source: { + fileName: _jsxFileName, + lineNumber: 144 + } + }, React.createElement(RCTDatePickerIOS, { + ref: function ref(picker) { + _this2._picker = picker; + }, + style: styles.datePickerIOS, + date: props.date ? props.date.getTime() : props.initialDate ? props.initialDate.getTime() : undefined, + locale: props.locale ? props.locale : undefined, + maximumDate: props.maximumDate ? props.maximumDate.getTime() : undefined, + minimumDate: props.minimumDate ? props.minimumDate.getTime() : undefined, + mode: props.mode, + minuteInterval: props.minuteInterval, + timeZoneOffsetInMinutes: props.timeZoneOffsetInMinutes, + onChange: this._onChange, + onStartShouldSetResponder: function onStartShouldSetResponder() { + return true; + }, + onResponderTerminationRequest: function onResponderTerminationRequest() { + return false; + }, + __source: { + fileName: _jsxFileName, + lineNumber: 145 + } + })); + } + }]); + + _inherits(DatePickerIOS, _React$Component); + + return DatePickerIOS; + }(React.Component); + + DatePickerIOS.DefaultProps = { + mode: 'datetime' + }; + DatePickerIOS = _wrapComponent("DatePickerIOS")(DatePickerIOS); + var styles = StyleSheet.create({ + datePickerIOS: { + height: 216 + } + }); + module.exports = DatePickerIOS; +},386,[1,11,200,166,201,227,229],"node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); +},387,[240],"node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/FlatList.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var _components = { + FlatList: { + displayName: "FlatList" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/FlatList.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var MetroListView = _$$_REQUIRE(_dependencyMap[2], 'MetroListView'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var View = _$$_REQUIRE(_dependencyMap[4], 'View'); + + var VirtualizedList = _$$_REQUIRE(_dependencyMap[5], 'VirtualizedList'); + + var ListView = _$$_REQUIRE(_dependencyMap[6], 'ListView'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[7], 'StyleSheet'); + + var invariant = _$$_REQUIRE(_dependencyMap[8], 'fbjs/lib/invariant'); + + var defaultProps = _objectSpread({}, VirtualizedList.defaultProps, { + numColumns: 1 + }); + + var FlatList = function (_React$PureComponent) { + _createClass(FlatList, [{ + key: "scrollToEnd", + value: function scrollToEnd(params) { + if (this._listRef) { + this._listRef.scrollToEnd(params); + } + } + }, { + key: "scrollToIndex", + value: function scrollToIndex(params) { + if (this._listRef) { + this._listRef.scrollToIndex(params); + } + } + }, { + key: "scrollToItem", + value: function scrollToItem(params) { + if (this._listRef) { + this._listRef.scrollToItem(params); + } + } + }, { + key: "scrollToOffset", + value: function scrollToOffset(params) { + if (this._listRef) { + this._listRef.scrollToOffset(params); + } + } + }, { + key: "recordInteraction", + value: function recordInteraction() { + if (this._listRef) { + this._listRef.recordInteraction(); + } + } + }, { + key: "flashScrollIndicators", + value: function flashScrollIndicators() { + if (this._listRef) { + this._listRef.flashScrollIndicators(); + } + } + }, { + key: "getScrollResponder", + value: function getScrollResponder() { + if (this._listRef) { + return this._listRef.getScrollResponder(); + } + } + }, { + key: "getScrollableNode", + value: function getScrollableNode() { + if (this._listRef) { + return this._listRef.getScrollableNode(); + } + } + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + if (this._listRef) { + this._listRef.setNativeProps(props); + } + } + }]); + + function FlatList(props) { + var _this; + + _classCallCheck(this, FlatList); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(FlatList).call(this, props)); + _this._hasWarnedLegacy = false; + _this._virtualizedListPairs = []; + + _this._captureRef = function (ref) { + _this._listRef = ref; + }; + + _this._getItem = function (data, index) { + var numColumns = _this.props.numColumns; + + if (numColumns > 1) { + var ret = []; + + for (var kk = 0; kk < numColumns; kk++) { + var _item = data[index * numColumns + kk]; + + if (_item != null) { + ret.push(_item); + } + } + + return ret; + } else { + return data[index]; + } + }; + + _this._getItemCount = function (data) { + return data ? Math.ceil(data.length / _this.props.numColumns) : 0; + }; + + _this._keyExtractor = function (items, index) { + var _this$props = _this.props, + keyExtractor = _this$props.keyExtractor, + numColumns = _this$props.numColumns; + + if (numColumns > 1) { + invariant(Array.isArray(items), 'FlatList: Encountered internal consistency error, expected each item to consist of an ' + 'array with 1-%s columns; instead, received a single item.', numColumns); + return items.map(function (it, kk) { + return keyExtractor(it, index * numColumns + kk); + }).join(':'); + } else { + return keyExtractor(items, index); + } + }; + + _this._renderItem = function (info) { + var _this$props2 = _this.props, + renderItem = _this$props2.renderItem, + numColumns = _this$props2.numColumns, + columnWrapperStyle = _this$props2.columnWrapperStyle; + + if (numColumns > 1) { + var _item2 = info.item, + _index = info.index; + invariant(Array.isArray(_item2), 'Expected array of items with numColumns > 1'); + return React.createElement(View, { + style: StyleSheet.compose(styles.row, columnWrapperStyle), + __source: { + fileName: _jsxFileName, + lineNumber: 617 + } + }, _item2.map(function (it, kk) { + var element = renderItem({ + item: it, + index: _index * numColumns + kk, + separators: info.separators + }); + return element && React.cloneElement(element, { + key: kk + }); + })); + } else { + return renderItem(info); + } + }; + + _this._checkProps(_this.props); + + if (_this.props.viewabilityConfigCallbackPairs) { + _this._virtualizedListPairs = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { + return { + viewabilityConfig: pair.viewabilityConfig, + onViewableItemsChanged: _this._createOnViewableItemsChanged(pair.onViewableItemsChanged) + }; + }); + } else if (_this.props.onViewableItemsChanged) { + _this._virtualizedListPairs.push({ + viewabilityConfig: _this.props.viewabilityConfig, + onViewableItemsChanged: _this._createOnViewableItemsChanged(_this.props.onViewableItemsChanged) + }); + } + + return _this; + } + + _createClass(FlatList, [{ + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + invariant(prevProps.numColumns === this.props.numColumns, 'Changing numColumns on the fly is not supported. Change the key prop on FlatList when ' + 'changing the number of columns to force a fresh render of the component.'); + invariant(prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged, 'Changing onViewableItemsChanged on the fly is not supported'); + invariant(prevProps.viewabilityConfig === this.props.viewabilityConfig, 'Changing viewabilityConfig on the fly is not supported'); + invariant(prevProps.viewabilityConfigCallbackPairs === this.props.viewabilityConfigCallbackPairs, 'Changing viewabilityConfigCallbackPairs on the fly is not supported'); + + this._checkProps(this.props); + } + }, { + key: "_checkProps", + value: function _checkProps(props) { + var getItem = props.getItem, + getItemCount = props.getItemCount, + horizontal = props.horizontal, + legacyImplementation = props.legacyImplementation, + numColumns = props.numColumns, + columnWrapperStyle = props.columnWrapperStyle, + onViewableItemsChanged = props.onViewableItemsChanged, + viewabilityConfigCallbackPairs = props.viewabilityConfigCallbackPairs; + invariant(!getItem && !getItemCount, 'FlatList does not support custom data formats.'); + + if (numColumns > 1) { + invariant(!horizontal, 'numColumns does not support horizontal.'); + } else { + invariant(!columnWrapperStyle, 'columnWrapperStyle not supported for single column lists'); + } + + if (legacyImplementation) { + invariant(numColumns === 1, 'Legacy list does not support multiple columns.'); + + if (!this._hasWarnedLegacy) { + console.warn('FlatList: Using legacyImplementation - some features not supported and performance ' + 'may suffer'); + this._hasWarnedLegacy = true; + } + } + + invariant(!(onViewableItemsChanged && viewabilityConfigCallbackPairs), 'FlatList does not support setting both onViewableItemsChanged and ' + 'viewabilityConfigCallbackPairs.'); + } + }, { + key: "_pushMultiColumnViewable", + value: function _pushMultiColumnViewable(arr, v) { + var _this$props3 = this.props, + numColumns = _this$props3.numColumns, + keyExtractor = _this$props3.keyExtractor; + v.item.forEach(function (item, ii) { + invariant(v.index != null, 'Missing index!'); + var index = v.index * numColumns + ii; + arr.push(_objectSpread({}, v, { + item: item, + key: keyExtractor(item, index), + index: index + })); + }); + } + }, { + key: "_createOnViewableItemsChanged", + value: function _createOnViewableItemsChanged(onViewableItemsChanged) { + var _this2 = this; + + return function (info) { + var numColumns = _this2.props.numColumns; + + if (onViewableItemsChanged) { + if (numColumns > 1) { + var _changed = []; + var _viewableItems = []; + info.viewableItems.forEach(function (v) { + return _this2._pushMultiColumnViewable(_viewableItems, v); + }); + info.changed.forEach(function (v) { + return _this2._pushMultiColumnViewable(_changed, v); + }); + onViewableItemsChanged({ + viewableItems: _viewableItems, + changed: _changed + }); + } else { + onViewableItemsChanged(info); + } + } + }; + } + }, { + key: "render", + value: function render() { + if (this.props.legacyImplementation) { + return React.createElement(MetroListView, _extends({}, this.props, { + items: this.props.data, + ref: this._captureRef, + __source: { + fileName: _jsxFileName, + lineNumber: 643 + } + })); + } else { + return React.createElement(VirtualizedList, _extends({}, this.props, { + renderItem: this._renderItem, + getItem: this._getItem, + getItemCount: this._getItemCount, + keyExtractor: this._keyExtractor, + ref: this._captureRef, + viewabilityConfigCallbackPairs: this._virtualizedListPairs, + __source: { + fileName: _jsxFileName, + lineNumber: 654 + } + })); + } + } + }]); + + _inherits(FlatList, _React$PureComponent); + + return FlatList; + }(React.PureComponent); + + FlatList.defaultProps = defaultProps; + FlatList = _wrapComponent("FlatList")(FlatList); + var styles = StyleSheet.create({ + row: { + flexDirection: 'row' + } + }); + module.exports = FlatList; +},388,[1,11,389,200,227,397,390,201,166],"node_modules/react-native/Libraries/Lists/FlatList.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/MetroListView.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + MetroListView: { + displayName: "MetroListView" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/MetroListView.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ListView = _$$_REQUIRE(_dependencyMap[2], 'ListView'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var RefreshControl = _$$_REQUIRE(_dependencyMap[4], 'RefreshControl'); + + var ScrollView = _$$_REQUIRE(_dependencyMap[5], 'ScrollView'); + + var invariant = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/invariant'); + + var MetroListView = function (_React$Component) { + function MetroListView() { + var _getPrototypeOf2, + _this2 = this; + + var _temp, _this; + + _classCallCheck(this, MetroListView); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MetroListView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = _this._computeState(_this.props, { + ds: new ListView.DataSource({ + rowHasChanged: function rowHasChanged(itemA, itemB) { + return true; + }, + sectionHeaderHasChanged: function sectionHeaderHasChanged() { + return true; + }, + getSectionHeaderData: function getSectionHeaderData(dataBlob, sectionID) { + return _this.state.sectionHeaderData[sectionID]; + } + }), + sectionHeaderData: {} + }), _this._captureRef = function (ref) { + _this._listRef = ref; + }, _this._renderFooter = function () { + return React.createElement(_this2.props.FooterComponent, { + key: "$footer", + __source: { + fileName: _jsxFileName, + lineNumber: 183 + } + }); + }, _this._renderRow = function (item, sectionID, rowID, highlightRow) { + return _this.props.renderItem({ + item: item, + index: rowID + }); + }, _this._renderSectionHeader = function (section, sectionID) { + var renderSectionHeader = _this.props.renderSectionHeader; + invariant(renderSectionHeader, 'Must provide renderSectionHeader with sections prop'); + return renderSectionHeader({ + section: section + }); + }, _this._renderSeparator = function (sID, rID) { + return React.createElement(_this2.props.SeparatorComponent, { + key: sID + rID, + __source: { + fileName: _jsxFileName, + lineNumber: 199 + } + }); + }, _temp)); + } + + _createClass(MetroListView, [{ + key: "scrollToEnd", + value: function scrollToEnd(params) { + throw new Error('scrollToEnd not supported in legacy ListView.'); + } + }, { + key: "scrollToIndex", + value: function scrollToIndex(params) { + throw new Error('scrollToIndex not supported in legacy ListView.'); + } + }, { + key: "scrollToItem", + value: function scrollToItem(params) { + throw new Error('scrollToItem not supported in legacy ListView.'); + } + }, { + key: "scrollToLocation", + value: function scrollToLocation(params) { + throw new Error('scrollToLocation not supported in legacy ListView.'); + } + }, { + key: "scrollToOffset", + value: function scrollToOffset(params) { + var animated = params.animated, + offset = params.offset; + + this._listRef.scrollTo(this.props.horizontal ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); + } + }, { + key: "getListRef", + value: function getListRef() { + return this._listRef; + } + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + if (this._listRef) { + this._listRef.setNativeProps(props); + } + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + var _this3 = this; + + this.setState(function (state) { + return _this3._computeState(newProps, state); + }); + } + }, { + key: "render", + value: function render() { + return React.createElement(ListView, _extends({}, this.props, { + dataSource: this.state.ds, + ref: this._captureRef, + renderRow: this._renderRow, + renderFooter: this.props.FooterComponent && this._renderFooter, + renderSectionHeader: this.props.sections && this._renderSectionHeader, + renderSeparator: this.props.SeparatorComponent && this._renderSeparator, + __source: { + fileName: _jsxFileName, + lineNumber: 142 + } + })); + } + }, { + key: "_computeState", + value: function _computeState(props, state) { + var sectionHeaderData = {}; + + if (props.sections) { + invariant(!props.items, 'Cannot have both sections and items props.'); + var _sections = {}; + props.sections.forEach(function (sectionIn, ii) { + var sectionID = 's' + ii; + _sections[sectionID] = sectionIn.data; + sectionHeaderData[sectionID] = sectionIn; + }); + return { + ds: state.ds.cloneWithRowsAndSections(_sections), + sectionHeaderData: sectionHeaderData + }; + } else { + invariant(!props.sections, 'Cannot have both sections and items props.'); + return { + ds: state.ds.cloneWithRows(props.items), + sectionHeaderData: sectionHeaderData + }; + } + } + }]); + + _inherits(MetroListView, _React$Component); + + return MetroListView; + }(React.Component); + + MetroListView.defaultProps = { + keyExtractor: function keyExtractor(item, index) { + return item.key || String(index); + }, + renderScrollComponent: function renderScrollComponent(props) { + if (props.onRefresh) { + return React.createElement(ScrollView, _extends({}, props, { + refreshControl: React.createElement(RefreshControl, { + refreshing: props.refreshing, + onRefresh: props.onRefresh, + __source: { + fileName: _jsxFileName, + lineNumber: 114 + } + }), + __source: { + fileName: _jsxFileName, + lineNumber: 107 + } + })); + } else { + return React.createElement(ScrollView, _extends({}, props, { + __source: { + fileName: _jsxFileName, + lineNumber: 123 + } + })); + } + } + }; + MetroListView = _wrapComponent("MetroListView")(MetroListView); + module.exports = MetroListView; +},389,[1,11,390,200,396,367,166],"node_modules/react-native/Libraries/Lists/MetroListView.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/ListView/ListView.js"; + + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var InternalListViewType = _$$_REQUIRE(_dependencyMap[0], 'InternalListViewType'); + + var ListViewDataSource = _$$_REQUIRE(_dependencyMap[1], 'ListViewDataSource'); + + var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[5], 'ReactNative'); + + var RCTScrollViewManager = _$$_REQUIRE(_dependencyMap[6], 'NativeModules').ScrollViewManager; + + var ScrollView = _$$_REQUIRE(_dependencyMap[7], 'ScrollView'); + + var ScrollResponder = _$$_REQUIRE(_dependencyMap[8], 'ScrollResponder'); + + var StaticRenderer = _$$_REQUIRE(_dependencyMap[9], 'StaticRenderer'); + + var TimerMixin = _$$_REQUIRE(_dependencyMap[10], 'react-timer-mixin'); + + var View = _$$_REQUIRE(_dependencyMap[11], 'View'); + + var cloneReferencedElement = _$$_REQUIRE(_dependencyMap[12], 'react-clone-referenced-element'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[13], 'create-react-class'); + + var isEmpty = _$$_REQUIRE(_dependencyMap[14], 'isEmpty'); + + var merge = _$$_REQUIRE(_dependencyMap[15], 'merge'); + + var DEFAULT_PAGE_SIZE = 1; + var DEFAULT_INITIAL_ROWS = 10; + var DEFAULT_SCROLL_RENDER_AHEAD = 1000; + var DEFAULT_END_REACHED_THRESHOLD = 1000; + var DEFAULT_SCROLL_CALLBACK_THROTTLE = 50; + var ListView = createReactClass({ + displayName: 'ListView', + _childFrames: [], + _sentEndForContentLength: null, + _scrollComponent: null, + _prevRenderedRowsCount: 0, + _visibleRows: {}, + scrollProperties: {}, + mixins: [ScrollResponder.Mixin, TimerMixin], + statics: { + DataSource: ListViewDataSource + }, + propTypes: _objectSpread({}, ScrollView.propTypes, { + dataSource: PropTypes.instanceOf(ListViewDataSource).isRequired, + renderSeparator: PropTypes.func, + renderRow: PropTypes.func.isRequired, + initialListSize: PropTypes.number.isRequired, + onEndReached: PropTypes.func, + onEndReachedThreshold: PropTypes.number.isRequired, + pageSize: PropTypes.number.isRequired, + renderFooter: PropTypes.func, + renderHeader: PropTypes.func, + renderSectionHeader: PropTypes.func, + renderScrollComponent: PropTypes.func.isRequired, + scrollRenderAheadDistance: PropTypes.number.isRequired, + onChangeVisibleRows: PropTypes.func, + removeClippedSubviews: PropTypes.bool, + stickySectionHeadersEnabled: PropTypes.bool, + stickyHeaderIndices: PropTypes.arrayOf(PropTypes.number).isRequired, + enableEmptySections: PropTypes.bool + }), + getMetrics: function getMetrics() { + return { + contentLength: this.scrollProperties.contentLength, + totalRows: this.props.enableEmptySections ? this.props.dataSource.getRowAndSectionCount() : this.props.dataSource.getRowCount(), + renderedRows: this.state.curRenderedRowsCount, + visibleRows: Object.keys(this._visibleRows).length + }; + }, + getScrollResponder: function getScrollResponder() { + if (this._scrollComponent && this._scrollComponent.getScrollResponder) { + return this._scrollComponent.getScrollResponder(); + } + }, + getScrollableNode: function getScrollableNode() { + if (this._scrollComponent && this._scrollComponent.getScrollableNode) { + return this._scrollComponent.getScrollableNode(); + } else { + return ReactNative.findNodeHandle(this._scrollComponent); + } + }, + scrollTo: function scrollTo() { + if (this._scrollComponent && this._scrollComponent.scrollTo) { + var _this$_scrollComponen; + + (_this$_scrollComponen = this._scrollComponent).scrollTo.apply(_this$_scrollComponen, arguments); + } + }, + scrollToEnd: function scrollToEnd(options) { + if (this._scrollComponent) { + if (this._scrollComponent.scrollToEnd) { + this._scrollComponent.scrollToEnd(options); + } else { + console.warn('The scroll component used by the ListView does not support ' + 'scrollToEnd. Check the renderScrollComponent prop of your ListView.'); + } + } + }, + flashScrollIndicators: function flashScrollIndicators() { + if (this._scrollComponent && this._scrollComponent.flashScrollIndicators) { + this._scrollComponent.flashScrollIndicators(); + } + }, + setNativeProps: function setNativeProps(props) { + if (this._scrollComponent) { + this._scrollComponent.setNativeProps(props); + } + }, + getDefaultProps: function getDefaultProps() { + return { + initialListSize: DEFAULT_INITIAL_ROWS, + pageSize: DEFAULT_PAGE_SIZE, + renderScrollComponent: function renderScrollComponent(props) { + return React.createElement(ScrollView, _extends({}, props, { + __source: { + fileName: _jsxFileName, + lineNumber: 353 + } + })); + }, + scrollRenderAheadDistance: DEFAULT_SCROLL_RENDER_AHEAD, + onEndReachedThreshold: DEFAULT_END_REACHED_THRESHOLD, + stickySectionHeadersEnabled: Platform.OS === 'ios', + stickyHeaderIndices: [] + }; + }, + getInitialState: function getInitialState() { + return { + curRenderedRowsCount: this.props.initialListSize, + highlightedRow: {} + }; + }, + getInnerViewNode: function getInnerViewNode() { + return this._scrollComponent.getInnerViewNode(); + }, + UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { + this.scrollProperties = { + visibleLength: null, + contentLength: null, + offset: 0 + }; + this._childFrames = []; + this._visibleRows = {}; + this._prevRenderedRowsCount = 0; + this._sentEndForContentLength = null; + }, + componentDidMount: function componentDidMount() { + var _this = this; + + this.requestAnimationFrame(function () { + _this._measureAndUpdateScrollProps(); + }); + }, + UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { + var _this2 = this; + + if (this.props.dataSource !== nextProps.dataSource || this.props.initialListSize !== nextProps.initialListSize) { + this.setState(function (state, props) { + _this2._prevRenderedRowsCount = 0; + return { + curRenderedRowsCount: Math.min(Math.max(state.curRenderedRowsCount, props.initialListSize), props.enableEmptySections ? props.dataSource.getRowAndSectionCount() : props.dataSource.getRowCount()) + }; + }, function () { + return _this2._renderMoreRowsIfNeeded(); + }); + } + }, + componentDidUpdate: function componentDidUpdate() { + var _this3 = this; + + this.requestAnimationFrame(function () { + _this3._measureAndUpdateScrollProps(); + }); + }, + _onRowHighlighted: function _onRowHighlighted(sectionID, rowID) { + this.setState({ + highlightedRow: { + sectionID: sectionID, + rowID: rowID + } + }); + }, + render: function render() { + var bodyComponents = []; + var dataSource = this.props.dataSource; + var allRowIDs = dataSource.rowIdentities; + var rowCount = 0; + var stickySectionHeaderIndices = []; + var renderSectionHeader = this.props.renderSectionHeader; + var header = this.props.renderHeader && this.props.renderHeader(); + var footer = this.props.renderFooter && this.props.renderFooter(); + var totalIndex = header ? 1 : 0; + + for (var sectionIdx = 0; sectionIdx < allRowIDs.length; sectionIdx++) { + var sectionID = dataSource.sectionIdentities[sectionIdx]; + var rowIDs = allRowIDs[sectionIdx]; + + if (rowIDs.length === 0) { + if (this.props.enableEmptySections === undefined) { + var warning = _$$_REQUIRE(_dependencyMap[16], 'fbjs/lib/warning'); + + warning(false, 'In next release empty section headers will be rendered.' + " In this release you can use 'enableEmptySections' flag to render empty section headers."); + continue; + } else { + var invariant = _$$_REQUIRE(_dependencyMap[17], 'fbjs/lib/invariant'); + + invariant(this.props.enableEmptySections, "In next release 'enableEmptySections' flag will be deprecated, empty section headers will always be rendered." + ' If empty section headers are not desirable their indices should be excluded from sectionIDs object.' + " In this release 'enableEmptySections' may only have value 'true' to allow empty section headers rendering."); + } + } + + if (renderSectionHeader) { + var element = renderSectionHeader(dataSource.getSectionHeaderData(sectionIdx), sectionID); + + if (element) { + bodyComponents.push(React.cloneElement(element, { + key: 's_' + sectionID + })); + + if (this.props.stickySectionHeadersEnabled) { + stickySectionHeaderIndices.push(totalIndex); + } + + totalIndex++; + } + } + + for (var rowIdx = 0; rowIdx < rowIDs.length; rowIdx++) { + var rowID = rowIDs[rowIdx]; + var comboID = sectionID + '_' + rowID; + var shouldUpdateRow = rowCount >= this._prevRenderedRowsCount && dataSource.rowShouldUpdate(sectionIdx, rowIdx); + var row = React.createElement(StaticRenderer, { + key: 'r_' + comboID, + shouldUpdate: !!shouldUpdateRow, + render: this.props.renderRow.bind(null, dataSource.getRowData(sectionIdx, rowIdx), sectionID, rowID, this._onRowHighlighted), + __source: { + fileName: _jsxFileName, + lineNumber: 485 + } + }); + bodyComponents.push(row); + totalIndex++; + + if (this.props.renderSeparator && (rowIdx !== rowIDs.length - 1 || sectionIdx === allRowIDs.length - 1)) { + var adjacentRowHighlighted = this.state.highlightedRow.sectionID === sectionID && (this.state.highlightedRow.rowID === rowID || this.state.highlightedRow.rowID === rowIDs[rowIdx + 1]); + var separator = this.props.renderSeparator(sectionID, rowID, adjacentRowHighlighted); + + if (separator) { + bodyComponents.push(React.createElement(View, { + key: 's_' + comboID, + __source: { + fileName: _jsxFileName, + lineNumber: 514 + } + }, separator)); + totalIndex++; + } + } + + if (++rowCount === this.state.curRenderedRowsCount) { + break; + } + } + + if (rowCount >= this.state.curRenderedRowsCount) { + break; + } + } + + var _this$props = this.props, + renderScrollComponent = _this$props.renderScrollComponent, + props = _objectWithoutProperties(_this$props, ["renderScrollComponent"]); + + if (!props.scrollEventThrottle) { + props.scrollEventThrottle = DEFAULT_SCROLL_CALLBACK_THROTTLE; + } + + if (props.removeClippedSubviews === undefined) { + props.removeClippedSubviews = true; + } + + _extends(props, { + onScroll: this._onScroll, + stickyHeaderIndices: this.props.stickyHeaderIndices.concat(stickySectionHeaderIndices), + onKeyboardWillShow: undefined, + onKeyboardWillHide: undefined, + onKeyboardDidShow: undefined, + onKeyboardDidHide: undefined + }); + + return cloneReferencedElement(renderScrollComponent(props), { + ref: this._setScrollComponentRef, + onContentSizeChange: this._onContentSizeChange, + onLayout: this._onLayout, + DEPRECATED_sendUpdatedChildFrames: typeof props.onChangeVisibleRows !== undefined + }, header, bodyComponents, footer); + }, + _measureAndUpdateScrollProps: function _measureAndUpdateScrollProps() { + var scrollComponent = this.getScrollResponder(); + + if (!scrollComponent || !scrollComponent.getInnerViewNode) { + return; + } + + RCTScrollViewManager && RCTScrollViewManager.calculateChildFrames && RCTScrollViewManager.calculateChildFrames(ReactNative.findNodeHandle(scrollComponent), this._updateVisibleRows); + }, + _setScrollComponentRef: function _setScrollComponentRef(scrollComponent) { + this._scrollComponent = scrollComponent; + }, + _onContentSizeChange: function _onContentSizeChange(width, height) { + var contentLength = !this.props.horizontal ? height : width; + + if (contentLength !== this.scrollProperties.contentLength) { + this.scrollProperties.contentLength = contentLength; + + this._updateVisibleRows(); + + this._renderMoreRowsIfNeeded(); + } + + this.props.onContentSizeChange && this.props.onContentSizeChange(width, height); + }, + _onLayout: function _onLayout(event) { + var _event$nativeEvent$la = event.nativeEvent.layout, + width = _event$nativeEvent$la.width, + height = _event$nativeEvent$la.height; + var visibleLength = !this.props.horizontal ? height : width; + + if (visibleLength !== this.scrollProperties.visibleLength) { + this.scrollProperties.visibleLength = visibleLength; + + this._updateVisibleRows(); + + this._renderMoreRowsIfNeeded(); + } + + this.props.onLayout && this.props.onLayout(event); + }, + _maybeCallOnEndReached: function _maybeCallOnEndReached(event) { + if (this.props.onEndReached && this.scrollProperties.contentLength !== this._sentEndForContentLength && this._getDistanceFromEnd(this.scrollProperties) < this.props.onEndReachedThreshold && this.state.curRenderedRowsCount === (this.props.enableEmptySections ? this.props.dataSource.getRowAndSectionCount() : this.props.dataSource.getRowCount())) { + this._sentEndForContentLength = this.scrollProperties.contentLength; + this.props.onEndReached(event); + return true; + } + + return false; + }, + _renderMoreRowsIfNeeded: function _renderMoreRowsIfNeeded() { + if (this.scrollProperties.contentLength === null || this.scrollProperties.visibleLength === null || this.state.curRenderedRowsCount === (this.props.enableEmptySections ? this.props.dataSource.getRowAndSectionCount() : this.props.dataSource.getRowCount())) { + this._maybeCallOnEndReached(); + + return; + } + + var distanceFromEnd = this._getDistanceFromEnd(this.scrollProperties); + + if (distanceFromEnd < this.props.scrollRenderAheadDistance) { + this._pageInNewRows(); + } + }, + _pageInNewRows: function _pageInNewRows() { + var _this4 = this; + + this.setState(function (state, props) { + var rowsToRender = Math.min(state.curRenderedRowsCount + props.pageSize, props.enableEmptySections ? props.dataSource.getRowAndSectionCount() : props.dataSource.getRowCount()); + _this4._prevRenderedRowsCount = state.curRenderedRowsCount; + return { + curRenderedRowsCount: rowsToRender + }; + }, function () { + _this4._measureAndUpdateScrollProps(); + + _this4._prevRenderedRowsCount = _this4.state.curRenderedRowsCount; + }); + }, + _getDistanceFromEnd: function _getDistanceFromEnd(scrollProperties) { + return scrollProperties.contentLength - scrollProperties.visibleLength - scrollProperties.offset; + }, + _updateVisibleRows: function _updateVisibleRows(updatedFrames) { + var _this5 = this; + + if (!this.props.onChangeVisibleRows) { + return; + } + + if (updatedFrames) { + updatedFrames.forEach(function (newFrame) { + _this5._childFrames[newFrame.index] = merge(newFrame); + }); + } + + var isVertical = !this.props.horizontal; + var dataSource = this.props.dataSource; + var visibleMin = this.scrollProperties.offset; + var visibleMax = visibleMin + this.scrollProperties.visibleLength; + var allRowIDs = dataSource.rowIdentities; + var header = this.props.renderHeader && this.props.renderHeader(); + var totalIndex = header ? 1 : 0; + var visibilityChanged = false; + var changedRows = {}; + + for (var sectionIdx = 0; sectionIdx < allRowIDs.length; sectionIdx++) { + var rowIDs = allRowIDs[sectionIdx]; + + if (rowIDs.length === 0) { + continue; + } + + var sectionID = dataSource.sectionIdentities[sectionIdx]; + + if (this.props.renderSectionHeader) { + totalIndex++; + } + + var visibleSection = this._visibleRows[sectionID]; + + if (!visibleSection) { + visibleSection = {}; + } + + for (var rowIdx = 0; rowIdx < rowIDs.length; rowIdx++) { + var rowID = rowIDs[rowIdx]; + var frame = this._childFrames[totalIndex]; + totalIndex++; + + if (this.props.renderSeparator && (rowIdx !== rowIDs.length - 1 || sectionIdx === allRowIDs.length - 1)) { + totalIndex++; + } + + if (!frame) { + break; + } + + var rowVisible = visibleSection[rowID]; + var min = isVertical ? frame.y : frame.x; + var max = min + (isVertical ? frame.height : frame.width); + + if (!min && !max || min === max) { + break; + } + + if (min > visibleMax || max < visibleMin) { + if (rowVisible) { + visibilityChanged = true; + delete visibleSection[rowID]; + + if (!changedRows[sectionID]) { + changedRows[sectionID] = {}; + } + + changedRows[sectionID][rowID] = false; + } + } else if (!rowVisible) { + visibilityChanged = true; + visibleSection[rowID] = true; + + if (!changedRows[sectionID]) { + changedRows[sectionID] = {}; + } + + changedRows[sectionID][rowID] = true; + } + } + + if (!isEmpty(visibleSection)) { + this._visibleRows[sectionID] = visibleSection; + } else if (this._visibleRows[sectionID]) { + delete this._visibleRows[sectionID]; + } + } + + visibilityChanged && this.props.onChangeVisibleRows(this._visibleRows, changedRows); + }, + _onScroll: function _onScroll(e) { + var isVertical = !this.props.horizontal; + this.scrollProperties.visibleLength = e.nativeEvent.layoutMeasurement[isVertical ? 'height' : 'width']; + this.scrollProperties.contentLength = e.nativeEvent.contentSize[isVertical ? 'height' : 'width']; + this.scrollProperties.offset = e.nativeEvent.contentOffset[isVertical ? 'y' : 'x']; + + this._updateVisibleRows(e.nativeEvent.updatedChildFrames); + + if (!this._maybeCallOnEndReached(e)) { + this._renderMoreRowsIfNeeded(); + } + + if (this.props.onEndReached && this._getDistanceFromEnd(this.scrollProperties) > this.props.onEndReachedThreshold) { + this._sentEndForContentLength = null; + } + + this.props.onScroll && this.props.onScroll(e); + } + }); + module.exports = ListView; +},390,[391,392,176,200,212,261,168,367,369,394,382,227,395,365,393,248,183,166],"node_modules/react-native/Libraries/Lists/ListView/ListView.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var React = _$$_REQUIRE(_dependencyMap[0], 'React'); + + var ListViewDataSource = _$$_REQUIRE(_dependencyMap[1], 'ListViewDataSource'); + + var InternalListViewType = function (_React$Component) { + "use strict"; + + function InternalListViewType() { + _classCallCheck(this, InternalListViewType); + + return _possibleConstructorReturn(this, _getPrototypeOf(InternalListViewType).apply(this, arguments)); + } + + _createClass(InternalListViewType, [{ + key: "setNativeProps", + value: function setNativeProps(props) {} + }, { + key: "flashScrollIndicators", + value: function flashScrollIndicators() {} + }, { + key: "getScrollResponder", + value: function getScrollResponder() {} + }, { + key: "getScrollableNode", + value: function getScrollableNode() {} + }, { + key: "getMetrics", + value: function getMetrics() {} + }, { + key: "scrollTo", + value: function scrollTo() {} + }, { + key: "scrollToEnd", + value: function scrollToEnd(options) {} + }]); + + _inherits(InternalListViewType, _React$Component); + + return InternalListViewType; + }(React.Component); + + InternalListViewType.DataSource = ListViewDataSource; + module.exports = InternalListViewType; +},391,[200,392],"node_modules/react-native/Libraries/Lists/ListView/InternalListViewType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + + function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + + function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + + function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var isEmpty = _$$_REQUIRE(_dependencyMap[1], 'isEmpty'); + + var warning = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/warning'); + + function defaultGetRowData(dataBlob, sectionID, rowID) { + return dataBlob[sectionID][rowID]; + } + + function defaultGetSectionHeaderData(dataBlob, sectionID) { + return dataBlob[sectionID]; + } + + var ListViewDataSource = function () { + function ListViewDataSource(params) { + _classCallCheck(this, ListViewDataSource); + + invariant(params && typeof params.rowHasChanged === 'function', 'Must provide a rowHasChanged function.'); + this._rowHasChanged = params.rowHasChanged; + this._getRowData = params.getRowData || defaultGetRowData; + this._sectionHeaderHasChanged = params.sectionHeaderHasChanged; + this._getSectionHeaderData = params.getSectionHeaderData || defaultGetSectionHeaderData; + this._dataBlob = null; + this._dirtyRows = []; + this._dirtySections = []; + this._cachedRowCount = 0; + this.rowIdentities = []; + this.sectionIdentities = []; + } + + _createClass(ListViewDataSource, [{ + key: "cloneWithRows", + value: function cloneWithRows(dataBlob, rowIdentities) { + var rowIds = rowIdentities ? [_toConsumableArray(rowIdentities)] : null; + + if (!this._sectionHeaderHasChanged) { + this._sectionHeaderHasChanged = function () { + return false; + }; + } + + return this.cloneWithRowsAndSections({ + s1: dataBlob + }, ['s1'], rowIds); + } + }, { + key: "cloneWithRowsAndSections", + value: function cloneWithRowsAndSections(dataBlob, sectionIdentities, rowIdentities) { + invariant(typeof this._sectionHeaderHasChanged === 'function', 'Must provide a sectionHeaderHasChanged function with section data.'); + invariant(!sectionIdentities || !rowIdentities || sectionIdentities.length === rowIdentities.length, 'row and section ids lengths must be the same'); + var newSource = new ListViewDataSource({ + getRowData: this._getRowData, + getSectionHeaderData: this._getSectionHeaderData, + rowHasChanged: this._rowHasChanged, + sectionHeaderHasChanged: this._sectionHeaderHasChanged + }); + newSource._dataBlob = dataBlob; + + if (sectionIdentities) { + newSource.sectionIdentities = sectionIdentities; + } else { + newSource.sectionIdentities = Object.keys(dataBlob); + } + + if (rowIdentities) { + newSource.rowIdentities = rowIdentities; + } else { + newSource.rowIdentities = []; + newSource.sectionIdentities.forEach(function (sectionID) { + newSource.rowIdentities.push(Object.keys(dataBlob[sectionID])); + }); + } + + newSource._cachedRowCount = countRows(newSource.rowIdentities); + + newSource._calculateDirtyArrays(this._dataBlob, this.sectionIdentities, this.rowIdentities); + + return newSource; + } + }, { + key: "getRowCount", + value: function getRowCount() { + return this._cachedRowCount; + } + }, { + key: "getRowAndSectionCount", + value: function getRowAndSectionCount() { + return this._cachedRowCount + this.sectionIdentities.length; + } + }, { + key: "rowShouldUpdate", + value: function rowShouldUpdate(sectionIndex, rowIndex) { + var needsUpdate = this._dirtyRows[sectionIndex][rowIndex]; + warning(needsUpdate !== undefined, 'missing dirtyBit for section, row: ' + sectionIndex + ', ' + rowIndex); + return needsUpdate; + } + }, { + key: "getRowData", + value: function getRowData(sectionIndex, rowIndex) { + var sectionID = this.sectionIdentities[sectionIndex]; + var rowID = this.rowIdentities[sectionIndex][rowIndex]; + warning(sectionID !== undefined && rowID !== undefined, 'rendering invalid section, row: ' + sectionIndex + ', ' + rowIndex); + return this._getRowData(this._dataBlob, sectionID, rowID); + } + }, { + key: "getRowIDForFlatIndex", + value: function getRowIDForFlatIndex(index) { + var accessIndex = index; + + for (var ii = 0; ii < this.sectionIdentities.length; ii++) { + if (accessIndex >= this.rowIdentities[ii].length) { + accessIndex -= this.rowIdentities[ii].length; + } else { + return this.rowIdentities[ii][accessIndex]; + } + } + + return null; + } + }, { + key: "getSectionIDForFlatIndex", + value: function getSectionIDForFlatIndex(index) { + var accessIndex = index; + + for (var ii = 0; ii < this.sectionIdentities.length; ii++) { + if (accessIndex >= this.rowIdentities[ii].length) { + accessIndex -= this.rowIdentities[ii].length; + } else { + return this.sectionIdentities[ii]; + } + } + + return null; + } + }, { + key: "getSectionLengths", + value: function getSectionLengths() { + var results = []; + + for (var ii = 0; ii < this.sectionIdentities.length; ii++) { + results.push(this.rowIdentities[ii].length); + } + + return results; + } + }, { + key: "sectionHeaderShouldUpdate", + value: function sectionHeaderShouldUpdate(sectionIndex) { + var needsUpdate = this._dirtySections[sectionIndex]; + warning(needsUpdate !== undefined, 'missing dirtyBit for section: ' + sectionIndex); + return needsUpdate; + } + }, { + key: "getSectionHeaderData", + value: function getSectionHeaderData(sectionIndex) { + if (!this._getSectionHeaderData) { + return null; + } + + var sectionID = this.sectionIdentities[sectionIndex]; + warning(sectionID !== undefined, 'renderSection called on invalid section: ' + sectionIndex); + return this._getSectionHeaderData(this._dataBlob, sectionID); + } + }, { + key: "_calculateDirtyArrays", + value: function _calculateDirtyArrays(prevDataBlob, prevSectionIDs, prevRowIDs) { + var prevSectionsHash = keyedDictionaryFromArray(prevSectionIDs); + var prevRowsHash = {}; + + for (var ii = 0; ii < prevRowIDs.length; ii++) { + var sectionID = prevSectionIDs[ii]; + warning(!prevRowsHash[sectionID], 'SectionID appears more than once: ' + sectionID); + prevRowsHash[sectionID] = keyedDictionaryFromArray(prevRowIDs[ii]); + } + + this._dirtySections = []; + this._dirtyRows = []; + var dirty; + + for (var sIndex = 0; sIndex < this.sectionIdentities.length; sIndex++) { + var sectionID = this.sectionIdentities[sIndex]; + dirty = !prevSectionsHash[sectionID]; + var _sectionHeaderHasChanged = this._sectionHeaderHasChanged; + + if (!dirty && _sectionHeaderHasChanged) { + dirty = _sectionHeaderHasChanged(this._getSectionHeaderData(prevDataBlob, sectionID), this._getSectionHeaderData(this._dataBlob, sectionID)); + } + + this._dirtySections.push(!!dirty); + + this._dirtyRows[sIndex] = []; + + for (var rIndex = 0; rIndex < this.rowIdentities[sIndex].length; rIndex++) { + var rowID = this.rowIdentities[sIndex][rIndex]; + dirty = !prevSectionsHash[sectionID] || !prevRowsHash[sectionID][rowID] || this._rowHasChanged(this._getRowData(prevDataBlob, sectionID, rowID), this._getRowData(this._dataBlob, sectionID, rowID)); + + this._dirtyRows[sIndex].push(!!dirty); + } + } + } + }]); + + return ListViewDataSource; + }(); + + function countRows(allRowIDs) { + var totalRows = 0; + + for (var sectionIdx = 0; sectionIdx < allRowIDs.length; sectionIdx++) { + var rowIDs = allRowIDs[sectionIdx]; + totalRows += rowIDs.length; + } + + return totalRows; + } + + function keyedDictionaryFromArray(arr) { + if (isEmpty(arr)) { + return {}; + } + + var result = {}; + + for (var ii = 0; ii < arr.length; ii++) { + var _key = arr[ii]; + warning(!result[_key], 'Value appears more than once in array: ' + _key); + result[_key] = true; + } + + return result; + } + + module.exports = ListViewDataSource; +},392,[166,393,183],"node_modules/react-native/Libraries/Lists/ListView/ListViewDataSource.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function isEmpty(obj) { + if (Array.isArray(obj)) { + return obj.length === 0; + } else if (typeof obj === 'object') { + for (var i in obj) { + return false; + } + + return true; + } else { + return !obj; + } + } + + module.exports = isEmpty; +},393,[],"node_modules/react-native/Libraries/vendor/core/isEmpty.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + StaticRenderer: { + displayName: "StaticRenderer" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/StaticRenderer.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var StaticRenderer = function (_React$Component) { + function StaticRenderer() { + _classCallCheck(this, StaticRenderer); + + return _possibleConstructorReturn(this, _getPrototypeOf(StaticRenderer).apply(this, arguments)); + } + + _createClass(StaticRenderer, [{ + key: "shouldComponentUpdate", + value: function shouldComponentUpdate(nextProps) { + return nextProps.shouldUpdate; + } + }, { + key: "render", + value: function render() { + return this.props.render(); + } + }]); + + _inherits(StaticRenderer, _React$Component); + + return StaticRenderer; + }(React.Component); + + StaticRenderer.propTypes = { + shouldUpdate: PropTypes.bool.isRequired, + render: PropTypes.func.isRequired + }; + StaticRenderer = _wrapComponent("StaticRenderer")(StaticRenderer); + module.exports = StaticRenderer; +},394,[1,11,200,212],"node_modules/react-native/Libraries/Components/StaticRenderer.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var React = _$$_REQUIRE(_dependencyMap[0], 'react'); + + function cloneReferencedElement(element, config) { + var cloneRef = config.ref; + var originalRef = element.ref; + + for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + children[_key - 2] = arguments[_key]; + } + + if (originalRef == null || cloneRef == null) { + return React.cloneElement.apply(React, [element, config].concat(children)); + } + + if (typeof originalRef !== 'function') { + if (__DEV__) { + console.warn('Cloning an element with a ref that will be overwritten because it ' + 'is not a function. Use a composable callback-style ref instead. ' + 'Ignoring ref: ' + originalRef); + } + + return React.cloneElement.apply(React, [element, config].concat(children)); + } + + return React.cloneElement.apply(React, [element, _objectSpread({}, config, { + ref: function ref(component) { + cloneRef(component); + originalRef(component); + } + })].concat(children)); + } + + module.exports = cloneReferencedElement; +},395,[1],"node_modules/react-clone-referenced-element/cloneReferencedElement.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + RefreshControl: { + displayName: "RefreshControl" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var _require = _$$_REQUIRE(_dependencyMap[4], 'ReactNative'), + NativeComponent = _require.NativeComponent; + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[5], 'requireNativeComponent'); + + var nullthrows = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/nullthrows'); + + if (Platform.OS === 'android') { + var AndroidSwipeRefreshLayout = _$$_REQUIRE(_dependencyMap[7], 'UIManager').AndroidSwipeRefreshLayout; + + var RefreshLayoutConsts = AndroidSwipeRefreshLayout ? AndroidSwipeRefreshLayout.Constants : { + SIZE: {} + }; + } else { + var RefreshLayoutConsts = { + SIZE: {} + }; + } + + var NativeRefreshControl = Platform.OS === 'ios' ? requireNativeComponent('RCTRefreshControl') : requireNativeComponent('AndroidSwipeRefreshLayout'); + + var RefreshControl = function (_React$Component) { + function RefreshControl() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, RefreshControl); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(RefreshControl)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._nativeRef = null, _this._lastNativeRefreshing = false, _this._onRefresh = function () { + _this._lastNativeRefreshing = true; + _this.props.onRefresh && _this.props.onRefresh(); + + _this.forceUpdate(); + }, _temp)); + } + + _createClass(RefreshControl, [{ + key: "componentDidMount", + value: function componentDidMount() { + this._lastNativeRefreshing = this.props.refreshing; + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this.props.refreshing !== prevProps.refreshing) { + this._lastNativeRefreshing = this.props.refreshing; + } else if (this.props.refreshing !== this._lastNativeRefreshing) { + nullthrows(this._nativeRef).setNativeProps({ + refreshing: this.props.refreshing + }); + this._lastNativeRefreshing = this.props.refreshing; + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + return React.createElement(NativeRefreshControl, _extends({}, this.props, { + ref: function ref(_ref) { + _this2._nativeRef = _ref; + }, + onRefresh: this._onRefresh, + __source: { + fileName: _jsxFileName, + lineNumber: 167 + } + })); + } + }]); + + _inherits(RefreshControl, _React$Component); + + return RefreshControl; + }(React.Component); + + RefreshControl.SIZE = RefreshLayoutConsts.SIZE; + RefreshControl = _wrapComponent("RefreshControl")(RefreshControl); + module.exports = RefreshControl; +},396,[1,11,176,200,261,229,329,218],"node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/VirtualizedList.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + var _components = { + VirtualizedList: { + displayName: "VirtualizedList" + }, + CellRenderer: { + displayName: "CellRenderer" + }, + VirtualizedCellWrapper: { + displayName: "VirtualizedCellWrapper" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/VirtualizedList.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Batchinator = _$$_REQUIRE(_dependencyMap[2], 'Batchinator'); + + var FillRateHelper = _$$_REQUIRE(_dependencyMap[3], 'FillRateHelper'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); + + var React = _$$_REQUIRE(_dependencyMap[5], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[6], 'ReactNative'); + + var RefreshControl = _$$_REQUIRE(_dependencyMap[7], 'RefreshControl'); + + var ScrollView = _$$_REQUIRE(_dependencyMap[8], 'ScrollView'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[9], 'StyleSheet'); + + var UIManager = _$$_REQUIRE(_dependencyMap[10], 'UIManager'); + + var View = _$$_REQUIRE(_dependencyMap[11], 'View'); + + var ViewabilityHelper = _$$_REQUIRE(_dependencyMap[12], 'ViewabilityHelper'); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[13], 'flattenStyle'); + + var infoLog = _$$_REQUIRE(_dependencyMap[14], 'infoLog'); + + var invariant = _$$_REQUIRE(_dependencyMap[15], 'fbjs/lib/invariant'); + + var warning = _$$_REQUIRE(_dependencyMap[16], 'fbjs/lib/warning'); + + var _require = _$$_REQUIRE(_dependencyMap[17], 'VirtualizeUtils'), + computeWindowedRenderLimits = _require.computeWindowedRenderLimits; + + var _usedIndexForKey = false; + var _keylessItemComponentName = ''; + + var VirtualizedList = function (_React$PureComponent) { + _createClass(VirtualizedList, [{ + key: "scrollToEnd", + value: function scrollToEnd(params) { + var animated = params ? params.animated : true; + var veryLast = this.props.getItemCount(this.props.data) - 1; + + var frame = this._getFrameMetricsApprox(veryLast); + + var offset = Math.max(0, frame.offset + frame.length + this._footerLength - this._scrollMetrics.visibleLength); + + this._scrollRef.scrollTo(this.props.horizontal ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); + } + }, { + key: "scrollToIndex", + value: function scrollToIndex(params) { + var _this$props = this.props, + data = _this$props.data, + horizontal = _this$props.horizontal, + getItemCount = _this$props.getItemCount, + getItemLayout = _this$props.getItemLayout, + onScrollToIndexFailed = _this$props.onScrollToIndexFailed; + var animated = params.animated, + index = params.index, + viewOffset = params.viewOffset, + viewPosition = params.viewPosition; + invariant(index >= 0 && index < getItemCount(data), "scrollToIndex out of range: " + index + " vs " + (getItemCount(data) - 1)); + + if (!getItemLayout && index > this._highestMeasuredFrameIndex) { + invariant(!!onScrollToIndexFailed, 'scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, ' + 'otherwise there is no way to know the location of offscreen indices or handle failures.'); + onScrollToIndexFailed({ + averageItemLength: this._averageCellLength, + highestMeasuredFrameIndex: this._highestMeasuredFrameIndex, + index: index + }); + return; + } + + var frame = this._getFrameMetricsApprox(index); + + var offset = Math.max(0, frame.offset - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)) - (viewOffset || 0); + + this._scrollRef.scrollTo(horizontal ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); + } + }, { + key: "scrollToItem", + value: function scrollToItem(params) { + var item = params.item; + var _this$props2 = this.props, + data = _this$props2.data, + getItem = _this$props2.getItem, + getItemCount = _this$props2.getItemCount; + var itemCount = getItemCount(data); + + for (var _index = 0; _index < itemCount; _index++) { + if (getItem(data, _index) === item) { + this.scrollToIndex(_objectSpread({}, params, { + index: _index + })); + break; + } + } + } + }, { + key: "scrollToOffset", + value: function scrollToOffset(params) { + var animated = params.animated, + offset = params.offset; + + this._scrollRef.scrollTo(this.props.horizontal ? { + x: offset, + animated: animated + } : { + y: offset, + animated: animated + }); + } + }, { + key: "recordInteraction", + value: function recordInteraction() { + this._nestedChildLists.forEach(function (childList) { + childList.ref && childList.ref.recordInteraction(); + }); + + this._viewabilityTuples.forEach(function (t) { + t.viewabilityHelper.recordInteraction(); + }); + + this._updateViewableItems(this.props.data); + } + }, { + key: "flashScrollIndicators", + value: function flashScrollIndicators() { + this._scrollRef.flashScrollIndicators(); + } + }, { + key: "getScrollResponder", + value: function getScrollResponder() { + if (this._scrollRef && this._scrollRef.getScrollResponder) { + return this._scrollRef.getScrollResponder(); + } + } + }, { + key: "getScrollableNode", + value: function getScrollableNode() { + if (this._scrollRef && this._scrollRef.getScrollableNode) { + return this._scrollRef.getScrollableNode(); + } else { + return ReactNative.findNodeHandle(this._scrollRef); + } + } + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + if (this._scrollRef) { + this._scrollRef.setNativeProps(props); + } + } + }, { + key: "getChildContext", + value: function getChildContext() { + return { + virtualizedList: { + getScrollMetrics: this._getScrollMetrics, + horizontal: this.props.horizontal, + getOutermostParentListRef: this._getOutermostParentListRef, + getNestedChildState: this._getNestedChildState, + registerAsNestedChild: this._registerAsNestedChild, + unregisterAsNestedChild: this._unregisterAsNestedChild + } + }; + } + }, { + key: "_getCellKey", + value: function _getCellKey() { + return this.context.virtualizedCell && this.context.virtualizedCell.cellKey || 'rootList'; + } + }, { + key: "hasMore", + value: function hasMore() { + return this._hasMore; + } + }]); + + function VirtualizedList(_props, context) { + var _this; + + _classCallCheck(this, VirtualizedList); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(VirtualizedList).call(this, _props, context)); + + _this._getScrollMetrics = function () { + return _this._scrollMetrics; + }; + + _this._getOutermostParentListRef = function () { + if (_this._isNestedWithSameOrientation()) { + return _this.context.virtualizedList.getOutermostParentListRef(); + } else { + return _assertThisInitialized(_assertThisInitialized(_this)); + } + }; + + _this._getNestedChildState = function (key) { + var existingChildData = _this._nestedChildLists.get(key); + + return existingChildData && existingChildData.state; + }; + + _this._registerAsNestedChild = function (childList) { + var childListsInCell = _this._cellKeysToChildListKeys.get(childList.cellKey) || new Set(); + childListsInCell.add(childList.key); + + _this._cellKeysToChildListKeys.set(childList.cellKey, childListsInCell); + + var existingChildData = _this._nestedChildLists.get(childList.key); + + invariant(!(existingChildData && existingChildData.ref !== null), 'A VirtualizedList contains a cell which itself contains ' + 'more than one VirtualizedList of the same orientation as the parent ' + 'list. You must pass a unique listKey prop to each sibling list.'); + + _this._nestedChildLists.set(childList.key, { + ref: childList.ref, + state: null + }); + + if (_this._hasInteracted) { + childList.ref.recordInteraction(); + } + }; + + _this._unregisterAsNestedChild = function (childList) { + _this._nestedChildLists.set(childList.key, { + ref: null, + state: childList.state + }); + }; + + _this._onUpdateSeparators = function (keys, newProps) { + keys.forEach(function (key) { + var ref = key != null && _this._cellRefs[key]; + ref && ref.updateSeparatorProps(newProps); + }); + }; + + _this._averageCellLength = 0; + _this._cellKeysToChildListKeys = new Map(); + _this._cellRefs = {}; + _this._frames = {}; + _this._footerLength = 0; + _this._hasDataChangedSinceEndReached = true; + _this._hasInteracted = false; + _this._hasMore = false; + _this._hasWarned = {}; + _this._highestMeasuredFrameIndex = 0; + _this._headerLength = 0; + _this._indicesToKeys = new Map(); + _this._hasDoneInitialScroll = false; + _this._nestedChildLists = new Map(); + _this._offsetFromParentVirtualizedList = 0; + _this._prevParentOffset = 0; + _this._scrollMetrics = { + contentLength: 0, + dOffset: 0, + dt: 10, + offset: 0, + timestamp: 0, + velocity: 0, + visibleLength: 0 + }; + _this._scrollRef = null; + _this._sentEndForContentLength = 0; + _this._totalCellLength = 0; + _this._totalCellsMeasured = 0; + _this._viewabilityTuples = []; + + _this._captureScrollRef = function (ref) { + _this._scrollRef = ref; + }; + + _this._defaultRenderScrollComponent = function (props) { + var onRefresh = props.onRefresh; + + if (_this._isNestedWithSameOrientation()) { + return React.createElement(View, _extends({}, props, { + __source: { + fileName: _jsxFileName, + lineNumber: 1018 + } + })); + } else if (onRefresh) { + invariant(typeof props.refreshing === 'boolean', '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' + JSON.stringify(props.refreshing) + '`'); + return React.createElement(ScrollView, _extends({}, props, { + refreshControl: props.refreshControl == null ? React.createElement(RefreshControl, { + refreshing: props.refreshing, + onRefresh: onRefresh, + progressViewOffset: props.progressViewOffset, + __source: { + fileName: _jsxFileName, + lineNumber: 1032 + } + }) : props.refreshControl, + __source: { + fileName: _jsxFileName, + lineNumber: 1028 + } + })); + } else { + return React.createElement(ScrollView, _extends({}, props, { + __source: { + fileName: _jsxFileName, + lineNumber: 1045 + } + })); + } + }; + + _this._onCellUnmount = function (cellKey) { + var curr = _this._frames[cellKey]; + + if (curr) { + _this._frames[cellKey] = _objectSpread({}, curr, { + inLayout: false + }); + } + }; + + _this._onLayout = function (e) { + if (_this._isNestedWithSameOrientation()) { + _this.measureLayoutRelativeToContainingList(); + } else { + _this._scrollMetrics.visibleLength = _this._selectLength(e.nativeEvent.layout); + } + + _this.props.onLayout && _this.props.onLayout(e); + + _this._scheduleCellsToRenderUpdate(); + + _this._maybeCallOnEndReached(); + }; + + _this._onLayoutEmpty = function (e) { + _this.props.onLayout && _this.props.onLayout(e); + }; + + _this._onLayoutFooter = function (e) { + _this._footerLength = _this._selectLength(e.nativeEvent.layout); + }; + + _this._onLayoutHeader = function (e) { + _this._headerLength = _this._selectLength(e.nativeEvent.layout); + }; + + _this._onContentSizeChange = function (width, height) { + if (width > 0 && height > 0 && _this.props.initialScrollIndex != null && _this.props.initialScrollIndex > 0 && !_this._hasDoneInitialScroll) { + _this.scrollToIndex({ + animated: false, + index: _this.props.initialScrollIndex + }); + + _this._hasDoneInitialScroll = true; + } + + if (_this.props.onContentSizeChange) { + _this.props.onContentSizeChange(width, height); + } + + _this._scrollMetrics.contentLength = _this._selectLength({ + height: height, + width: width + }); + + _this._scheduleCellsToRenderUpdate(); + + _this._maybeCallOnEndReached(); + }; + + _this._convertParentScrollMetrics = function (metrics) { + var offset = metrics.offset - _this._offsetFromParentVirtualizedList; + var visibleLength = metrics.visibleLength; + var dOffset = offset - _this._scrollMetrics.offset; + var contentLength = _this._scrollMetrics.contentLength; + return { + visibleLength: visibleLength, + contentLength: contentLength, + offset: offset, + dOffset: dOffset + }; + }; + + _this._onScroll = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList.ref && childList.ref._onScroll(e); + }); + + if (_this.props.onScroll) { + _this.props.onScroll(e); + } + + var timestamp = e.timeStamp; + + var visibleLength = _this._selectLength(e.nativeEvent.layoutMeasurement); + + var contentLength = _this._selectLength(e.nativeEvent.contentSize); + + var offset = _this._selectOffset(e.nativeEvent.contentOffset); + + var dOffset = offset - _this._scrollMetrics.offset; + + if (_this._isNestedWithSameOrientation()) { + if (_this._scrollMetrics.contentLength === 0) { + return; + } + + var _this$_convertParentS = _this._convertParentScrollMetrics({ + visibleLength: visibleLength, + offset: offset + }); + + visibleLength = _this$_convertParentS.visibleLength; + contentLength = _this$_convertParentS.contentLength; + offset = _this$_convertParentS.offset; + dOffset = _this$_convertParentS.dOffset; + } + + var dt = _this._scrollMetrics.timestamp ? Math.max(1, timestamp - _this._scrollMetrics.timestamp) : 1; + var velocity = dOffset / dt; + + if (dt > 500 && _this._scrollMetrics.dt > 500 && contentLength > 5 * visibleLength && !_this._hasWarned.perf) { + infoLog('VirtualizedList: You have a large list that is slow to update - make sure your ' + 'renderItem function renders components that follow React performance best practices ' + 'like PureComponent, shouldComponentUpdate, etc.', { + dt: dt, + prevDt: _this._scrollMetrics.dt, + contentLength: contentLength + }); + _this._hasWarned.perf = true; + } + + _this._scrollMetrics = { + contentLength: contentLength, + dt: dt, + dOffset: dOffset, + offset: offset, + timestamp: timestamp, + velocity: velocity, + visibleLength: visibleLength + }; + + _this._updateViewableItems(_this.props.data); + + if (!_this.props) { + return; + } + + _this._maybeCallOnEndReached(); + + if (velocity !== 0) { + _this._fillRateHelper.activate(); + } + + _this._computeBlankness(); + + _this._scheduleCellsToRenderUpdate(); + }; + + _this._onScrollBeginDrag = function (e) { + _this._nestedChildLists.forEach(function (childList) { + childList.ref && childList.ref._onScrollBeginDrag(e); + }); + + _this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.recordInteraction(); + }); + + _this._hasInteracted = true; + _this.props.onScrollBeginDrag && _this.props.onScrollBeginDrag(e); + }; + + _this._onScrollEndDrag = function (e) { + var velocity = e.nativeEvent.velocity; + + if (velocity) { + _this._scrollMetrics.velocity = _this._selectOffset(velocity); + } + + _this._computeBlankness(); + + _this.props.onScrollEndDrag && _this.props.onScrollEndDrag(e); + }; + + _this._onMomentumScrollEnd = function (e) { + _this._scrollMetrics.velocity = 0; + + _this._computeBlankness(); + + _this.props.onMomentumScrollEnd && _this.props.onMomentumScrollEnd(e); + }; + + _this._updateCellsToRender = function () { + var _this$props3 = _this.props, + data = _this$props3.data, + getItemCount = _this$props3.getItemCount, + onEndReachedThreshold = _this$props3.onEndReachedThreshold; + + var isVirtualizationDisabled = _this._isVirtualizationDisabled(); + + _this._updateViewableItems(data); + + if (!data) { + return; + } + + _this.setState(function (state) { + var newState; + + if (!isVirtualizationDisabled) { + if (_this._scrollMetrics.visibleLength) { + if (!_this.props.initialScrollIndex || _this._scrollMetrics.offset) { + newState = computeWindowedRenderLimits(_this.props, state, _this._getFrameMetricsApprox, _this._scrollMetrics); + } + } + } else { + var _this$_scrollMetrics = _this._scrollMetrics, + contentLength = _this$_scrollMetrics.contentLength, + _offset = _this$_scrollMetrics.offset, + visibleLength = _this$_scrollMetrics.visibleLength; + + var _distanceFromEnd = contentLength - visibleLength - _offset; + + var renderAhead = _distanceFromEnd < onEndReachedThreshold * visibleLength ? _this.props.maxToRenderPerBatch : 0; + newState = { + first: 0, + last: Math.min(state.last + renderAhead, getItemCount(data) - 1) + }; + } + + if (newState && _this._nestedChildLists.size > 0) { + var newFirst = newState.first; + var newLast = newState.last; + + for (var ii = newFirst; ii <= newLast; ii++) { + var cellKeyForIndex = _this._indicesToKeys.get(ii); + + var childListKeys = cellKeyForIndex && _this._cellKeysToChildListKeys.get(cellKeyForIndex); + + if (!childListKeys) { + continue; + } + + var someChildHasMore = false; + + for (var _iterator = childListKeys, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? typeof Symbol === "function" ? Symbol.iterator : "@@iterator" : "@@iterator"]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var _childKey = _ref; + + var childList = _this._nestedChildLists.get(_childKey); + + if (childList && childList.ref && childList.ref.hasMore()) { + someChildHasMore = true; + break; + } + } + + if (someChildHasMore) { + newState.last = ii; + break; + } + } + } + + return newState; + }); + }; + + _this._createViewToken = function (index, isViewable) { + var _this$props4 = _this.props, + data = _this$props4.data, + getItem = _this$props4.getItem, + keyExtractor = _this$props4.keyExtractor; + var item = getItem(data, index); + return { + index: index, + item: item, + key: keyExtractor(item, index), + isViewable: isViewable + }; + }; + + _this._getFrameMetricsApprox = function (index) { + var frame = _this._getFrameMetrics(index); + + if (frame && frame.index === index) { + return frame; + } else { + var _getItemLayout = _this.props.getItemLayout; + invariant(!_getItemLayout, 'Should not have to estimate frames when a measurement metrics function is provided'); + return { + length: _this._averageCellLength, + offset: _this._averageCellLength * index + }; + } + }; + + _this._getFrameMetrics = function (index) { + var _this$props5 = _this.props, + data = _this$props5.data, + getItem = _this$props5.getItem, + getItemCount = _this$props5.getItemCount, + getItemLayout = _this$props5.getItemLayout, + keyExtractor = _this$props5.keyExtractor; + invariant(getItemCount(data) > index, 'Tried to get frame for out of range index ' + index); + var item = getItem(data, index); + + var frame = item && _this._frames[keyExtractor(item, index)]; + + if (!frame || frame.index !== index) { + if (getItemLayout) { + frame = getItemLayout(data, index); + + if (__DEV__) { + var frameType = PropTypes.shape({ + length: PropTypes.number.isRequired, + offset: PropTypes.number.isRequired, + index: PropTypes.number.isRequired + }).isRequired; + PropTypes.checkPropTypes({ + frame: frameType + }, { + frame: frame + }, 'frame', 'VirtualizedList.getItemLayout'); + } + } + } + + return frame; + }; + + invariant(!_props.onScroll || !_props.onScroll.__isNative, 'Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent ' + 'to support native onScroll events with useNativeDriver'); + invariant(_props.windowSize > 0, 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'); + _this._fillRateHelper = new FillRateHelper(_this._getFrameMetrics); + _this._updateCellsToRenderBatcher = new Batchinator(_this._updateCellsToRender, _this.props.updateCellsBatchingPeriod); + + if (_this.props.viewabilityConfigCallbackPairs) { + _this._viewabilityTuples = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { + return { + viewabilityHelper: new ViewabilityHelper(pair.viewabilityConfig), + onViewableItemsChanged: pair.onViewableItemsChanged + }; + }); + } else if (_this.props.onViewableItemsChanged) { + _this._viewabilityTuples.push({ + viewabilityHelper: new ViewabilityHelper(_this.props.viewabilityConfig), + onViewableItemsChanged: _this.props.onViewableItemsChanged + }); + } + + var initialState = { + first: _this.props.initialScrollIndex || 0, + last: Math.min(_this.props.getItemCount(_this.props.data), (_this.props.initialScrollIndex || 0) + _this.props.initialNumToRender) - 1 + }; + + if (_this._isNestedWithSameOrientation()) { + var storedState = _this.context.virtualizedList.getNestedChildState(_this.props.listKey || _this._getCellKey()); + + if (storedState) { + initialState = storedState; + _this.state = storedState; + _this._frames = storedState.frames; + } + } + + _this.state = initialState; + return _this; + } + + _createClass(VirtualizedList, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (this._isNestedWithSameOrientation()) { + this.context.virtualizedList.registerAsNestedChild({ + cellKey: this._getCellKey(), + key: this.props.listKey || this._getCellKey(), + ref: this + }); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._isNestedWithSameOrientation()) { + this.context.virtualizedList.unregisterAsNestedChild({ + key: this.props.listKey || this._getCellKey(), + state: { + first: this.state.first, + last: this.state.last, + frames: this._frames + } + }); + } + + this._updateViewableItems(null); + + this._updateCellsToRenderBatcher.dispose({ + abort: true + }); + + this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.dispose(); + }); + + this._fillRateHelper.deactivateAndFlush(); + } + }, { + key: "_pushCells", + value: function _pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, first, last, inversionStyle) { + var _this2 = this; + + var _this$props6 = this.props, + CellRendererComponent = _this$props6.CellRendererComponent, + ItemSeparatorComponent = _this$props6.ItemSeparatorComponent, + data = _this$props6.data, + getItem = _this$props6.getItem, + getItemCount = _this$props6.getItemCount, + horizontal = _this$props6.horizontal, + keyExtractor = _this$props6.keyExtractor; + var stickyOffset = this.props.ListHeaderComponent ? 1 : 0; + var end = getItemCount(data) - 1; + var prevCellKey; + last = Math.min(end, last); + + var _loop = function _loop(ii) { + var item = getItem(data, ii); + var key = keyExtractor(item, ii); + + _this2._indicesToKeys.set(ii, key); + + if (stickyIndicesFromProps.has(ii + stickyOffset)) { + stickyHeaderIndices.push(cells.length); + } + + cells.push(React.createElement(CellRenderer, { + CellRendererComponent: CellRendererComponent, + ItemSeparatorComponent: ii < end ? ItemSeparatorComponent : undefined, + cellKey: key, + fillRateHelper: _this2._fillRateHelper, + horizontal: horizontal, + index: ii, + inversionStyle: inversionStyle, + item: item, + key: key, + prevCellKey: prevCellKey, + onUpdateSeparators: _this2._onUpdateSeparators, + onLayout: function onLayout(e) { + return _this2._onCellLayout(e, key, ii); + }, + onUnmount: _this2._onCellUnmount, + parentProps: _this2.props, + ref: function (_ref2) { + function ref(_x) { + return _ref2.apply(this, arguments); + } + + ref.toString = function () { + return _ref2.toString(); + }; + + return ref; + }(function (ref) { + _this2._cellRefs[key] = ref; + }), + __source: { + fileName: _jsxFileName, + lineNumber: 679 + } + })); + prevCellKey = key; + }; + + for (var ii = first; ii <= last; ii++) { + _loop(ii); + } + } + }, { + key: "_isVirtualizationDisabled", + value: function _isVirtualizationDisabled() { + return this.props.disableVirtualization; + } + }, { + key: "_isNestedWithSameOrientation", + value: function _isNestedWithSameOrientation() { + var nestedContext = this.context.virtualizedList; + return !!(nestedContext && !!nestedContext.horizontal === !!this.props.horizontal); + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + if (__DEV__) { + var flatStyles = flattenStyle(this.props.contentContainerStyle); + warning(flatStyles == null || flatStyles.flexWrap !== 'wrap', '`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.' + 'Consider using `numColumns` with `FlatList` instead.'); + } + + var _this$props7 = this.props, + ListEmptyComponent = _this$props7.ListEmptyComponent, + ListFooterComponent = _this$props7.ListFooterComponent, + ListHeaderComponent = _this$props7.ListHeaderComponent; + var _this$props8 = this.props, + data = _this$props8.data, + horizontal = _this$props8.horizontal; + + var isVirtualizationDisabled = this._isVirtualizationDisabled(); + + var inversionStyle = this.props.inverted ? this.props.horizontal ? styles.horizontallyInverted : styles.verticallyInverted : null; + var cells = []; + var stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices); + var stickyHeaderIndices = []; + + if (ListHeaderComponent) { + if (stickyIndicesFromProps.has(0)) { + stickyHeaderIndices.push(0); + } + + var element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : React.createElement(ListHeaderComponent, { + __source: { + fileName: _jsxFileName, + lineNumber: 753 + } + }); + cells.push(React.createElement(VirtualizedCellWrapper, { + cellKey: this._getCellKey() + '-header', + key: "$header", + __source: { + fileName: _jsxFileName, + lineNumber: 756 + } + }, React.createElement(View, { + onLayout: this._onLayoutHeader, + style: inversionStyle, + __source: { + fileName: _jsxFileName, + lineNumber: 759 + } + }, element))); + } + + var itemCount = this.props.getItemCount(data); + + if (itemCount > 0) { + _usedIndexForKey = false; + _keylessItemComponentName = ''; + var spacerKey = !horizontal ? 'height' : 'width'; + var lastInitialIndex = this.props.initialScrollIndex ? -1 : this.props.initialNumToRender - 1; + var _this$state = this.state, + _first = _this$state.first, + _last = _this$state.last; + + this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, 0, lastInitialIndex, inversionStyle); + + var firstAfterInitial = Math.max(lastInitialIndex + 1, _first); + + if (!isVirtualizationDisabled && _first > lastInitialIndex + 1) { + var insertedStickySpacer = false; + + if (stickyIndicesFromProps.size > 0) { + var stickyOffset = ListHeaderComponent ? 1 : 0; + + for (var ii = firstAfterInitial - 1; ii > lastInitialIndex; ii--) { + if (stickyIndicesFromProps.has(ii + stickyOffset)) { + var initBlock = this._getFrameMetricsApprox(lastInitialIndex); + + var stickyBlock = this._getFrameMetricsApprox(ii); + + var leadSpace = stickyBlock.offset - (initBlock.offset + initBlock.length); + cells.push(React.createElement(View, { + key: "$sticky_lead", + style: _defineProperty({}, spacerKey, leadSpace), + __source: { + fileName: _jsxFileName, + lineNumber: 798 + } + })); + + this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, ii, ii, inversionStyle); + + var trailSpace = this._getFrameMetricsApprox(_first).offset - (stickyBlock.offset + stickyBlock.length); + cells.push(React.createElement(View, { + key: "$sticky_trail", + style: _defineProperty({}, spacerKey, trailSpace), + __source: { + fileName: _jsxFileName, + lineNumber: 812 + } + })); + insertedStickySpacer = true; + break; + } + } + } + + if (!insertedStickySpacer) { + var _initBlock = this._getFrameMetricsApprox(lastInitialIndex); + + var firstSpace = this._getFrameMetricsApprox(_first).offset - (_initBlock.offset + _initBlock.length); + + cells.push(React.createElement(View, { + key: "$lead_spacer", + style: _defineProperty({}, spacerKey, firstSpace), + __source: { + fileName: _jsxFileName, + lineNumber: 825 + } + })); + } + } + + this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, firstAfterInitial, _last, inversionStyle); + + if (!this._hasWarned.keys && _usedIndexForKey) { + console.warn('VirtualizedList: missing keys for items, make sure to specify a key property on each ' + 'item or provide a custom keyExtractor.', _keylessItemComponentName); + this._hasWarned.keys = true; + } + + if (!isVirtualizationDisabled && _last < itemCount - 1) { + var lastFrame = this._getFrameMetricsApprox(_last); + + var end = this.props.getItemLayout ? itemCount - 1 : Math.min(itemCount - 1, this._highestMeasuredFrameIndex); + + var endFrame = this._getFrameMetricsApprox(end); + + var tailSpacerLength = endFrame.offset + endFrame.length - (lastFrame.offset + lastFrame.length); + cells.push(React.createElement(View, { + key: "$tail_spacer", + style: _defineProperty({}, spacerKey, tailSpacerLength), + __source: { + fileName: _jsxFileName, + lineNumber: 859 + } + })); + } + } else if (ListEmptyComponent) { + var _element = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent : React.createElement(ListEmptyComponent, { + __source: { + fileName: _jsxFileName, + lineNumber: 869 + } + }); + + cells.push(React.cloneElement(_element, { + key: '$empty', + onLayout: function onLayout(event) { + _this3._onLayoutEmpty(event); + + if (_element.props.onLayout) { + _element.props.onLayout(event); + } + }, + style: [_element.props.style, inversionStyle] + })); + } + + if (ListFooterComponent) { + var _element2 = React.isValidElement(ListFooterComponent) ? ListFooterComponent : React.createElement(ListFooterComponent, { + __source: { + fileName: _jsxFileName, + lineNumber: 889 + } + }); + + cells.push(React.createElement(VirtualizedCellWrapper, { + cellKey: this._getCellKey() + '-footer', + key: "$footer", + __source: { + fileName: _jsxFileName, + lineNumber: 892 + } + }, React.createElement(View, { + onLayout: this._onLayoutFooter, + style: inversionStyle, + __source: { + fileName: _jsxFileName, + lineNumber: 895 + } + }, _element2))); + } + + var scrollProps = _objectSpread({}, this.props, { + onContentSizeChange: this._onContentSizeChange, + onLayout: this._onLayout, + onScroll: this._onScroll, + onScrollBeginDrag: this._onScrollBeginDrag, + onScrollEndDrag: this._onScrollEndDrag, + onMomentumScrollEnd: this._onMomentumScrollEnd, + scrollEventThrottle: this.props.scrollEventThrottle, + invertStickyHeaders: this.props.invertStickyHeaders !== undefined ? this.props.invertStickyHeaders : this.props.inverted, + stickyHeaderIndices: stickyHeaderIndices + }); + + if (inversionStyle) { + scrollProps.style = [inversionStyle, this.props.style]; + } + + this._hasMore = this.state.last < this.props.getItemCount(this.props.data) - 1; + var ret = React.cloneElement((this.props.renderScrollComponent || this._defaultRenderScrollComponent)(scrollProps), { + ref: this._captureScrollRef + }, cells); + + if (this.props.debug) { + return React.createElement(View, { + style: { + flex: 1 + }, + __source: { + fileName: _jsxFileName, + lineNumber: 941 + } + }, ret, this._renderDebugOverlay()); + } else { + return ret; + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props9 = this.props, + data = _this$props9.data, + extraData = _this$props9.extraData; + + if (data !== prevProps.data || extraData !== prevProps.extraData) { + this._hasDataChangedSinceEndReached = true; + + this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.resetViewableIndices(); + }); + } + + this._scheduleCellsToRenderUpdate(); + } + }, { + key: "_computeBlankness", + value: function _computeBlankness() { + this._fillRateHelper.computeBlankness(this.props, this.state, this._scrollMetrics); + } + }, { + key: "_onCellLayout", + value: function _onCellLayout(e, cellKey, index) { + var layout = e.nativeEvent.layout; + var next = { + offset: this._selectOffset(layout), + length: this._selectLength(layout), + index: index, + inLayout: true + }; + var curr = this._frames[cellKey]; + + if (!curr || next.offset !== curr.offset || next.length !== curr.length || index !== curr.index) { + this._totalCellLength += next.length - (curr ? curr.length : 0); + this._totalCellsMeasured += curr ? 0 : 1; + this._averageCellLength = this._totalCellLength / this._totalCellsMeasured; + this._frames[cellKey] = next; + this._highestMeasuredFrameIndex = Math.max(this._highestMeasuredFrameIndex, index); + + this._scheduleCellsToRenderUpdate(); + } else { + this._frames[cellKey].inLayout = true; + } + + var childListKeys = this._cellKeysToChildListKeys.get(cellKey); + + if (childListKeys) { + for (var _iterator2 = childListKeys, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref7; + + if (_isArray2) { + if (_i2 >= _iterator2.length) break; + _ref7 = _iterator2[_i2++]; + } else { + _i2 = _iterator2.next(); + if (_i2.done) break; + _ref7 = _i2.value; + } + + var _childKey2 = _ref7; + + var childList = this._nestedChildLists.get(_childKey2); + + childList && childList.ref && childList.ref.measureLayoutRelativeToContainingList(); + } + } + + this._computeBlankness(); + } + }, { + key: "measureLayoutRelativeToContainingList", + value: function measureLayoutRelativeToContainingList() { + var _this4 = this; + + UIManager.measureLayout(ReactNative.findNodeHandle(this), ReactNative.findNodeHandle(this.context.virtualizedList.getOutermostParentListRef()), function (error) { + console.warn("VirtualizedList: Encountered an error while measuring a list's" + ' offset from its containing VirtualizedList.'); + }, function (x, y, width, height) { + _this4._offsetFromParentVirtualizedList = _this4._selectOffset({ + x: x, + y: y + }); + _this4._scrollMetrics.contentLength = _this4._selectLength({ + width: width, + height: height + }); + + var scrollMetrics = _this4._convertParentScrollMetrics(_this4.context.virtualizedList.getScrollMetrics()); + + _this4._scrollMetrics.visibleLength = scrollMetrics.visibleLength; + _this4._scrollMetrics.offset = scrollMetrics.offset; + }); + } + }, { + key: "_renderDebugOverlay", + value: function _renderDebugOverlay() { + var normalize = this._scrollMetrics.visibleLength / this._scrollMetrics.contentLength; + var framesInLayout = []; + var itemCount = this.props.getItemCount(this.props.data); + + for (var ii = 0; ii < itemCount; ii++) { + var frame = this._getFrameMetricsApprox(ii); + + if (frame.inLayout) { + framesInLayout.push(frame); + } + } + + var windowTop = this._getFrameMetricsApprox(this.state.first).offset; + + var frameLast = this._getFrameMetricsApprox(this.state.last); + + var windowLen = frameLast.offset + frameLast.length - windowTop; + var visTop = this._scrollMetrics.offset; + var visLen = this._scrollMetrics.visibleLength; + var baseStyle = { + position: 'absolute', + top: 0, + right: 0 + }; + return React.createElement(View, { + style: _objectSpread({}, baseStyle, { + bottom: 0, + width: 20, + borderColor: 'blue', + borderWidth: 1 + }), + __source: { + fileName: _jsxFileName, + lineNumber: 1171 + } + }, framesInLayout.map(function (f, ii) { + return React.createElement(View, { + key: 'f' + ii, + style: _objectSpread({}, baseStyle, { + left: 0, + top: f.offset * normalize, + height: f.length * normalize, + backgroundColor: 'orange' + }), + __source: { + fileName: _jsxFileName, + lineNumber: 1180 + } + }); + }), React.createElement(View, { + style: _objectSpread({}, baseStyle, { + left: 0, + top: windowTop * normalize, + height: windowLen * normalize, + borderColor: 'green', + borderWidth: 2 + }), + __source: { + fileName: _jsxFileName, + lineNumber: 1191 + } + }), React.createElement(View, { + style: _objectSpread({}, baseStyle, { + left: 0, + top: visTop * normalize, + height: visLen * normalize, + borderColor: 'red', + borderWidth: 2 + }), + __source: { + fileName: _jsxFileName, + lineNumber: 1201 + } + })); + } + }, { + key: "_selectLength", + value: function _selectLength(metrics) { + return !this.props.horizontal ? metrics.height : metrics.width; + } + }, { + key: "_selectOffset", + value: function _selectOffset(metrics) { + return (!this.props.horizontal ? metrics.y : metrics.x) - this._headerLength; + } + }, { + key: "_maybeCallOnEndReached", + value: function _maybeCallOnEndReached() { + var _this$props10 = this.props, + data = _this$props10.data, + getItemCount = _this$props10.getItemCount, + onEndReached = _this$props10.onEndReached, + onEndReachedThreshold = _this$props10.onEndReachedThreshold; + var _this$_scrollMetrics2 = this._scrollMetrics, + contentLength = _this$_scrollMetrics2.contentLength, + visibleLength = _this$_scrollMetrics2.visibleLength, + offset = _this$_scrollMetrics2.offset; + var distanceFromEnd = contentLength - visibleLength - offset; + + if (onEndReached && this.state.last === getItemCount(data) - 1 && distanceFromEnd < onEndReachedThreshold * visibleLength && (this._hasDataChangedSinceEndReached || this._scrollMetrics.contentLength !== this._sentEndForContentLength)) { + this._hasDataChangedSinceEndReached = false; + this._sentEndForContentLength = this._scrollMetrics.contentLength; + onEndReached({ + distanceFromEnd: distanceFromEnd + }); + } + } + }, { + key: "_scheduleCellsToRenderUpdate", + value: function _scheduleCellsToRenderUpdate() { + var _this$state2 = this.state, + first = _this$state2.first, + last = _this$state2.last; + var _this$_scrollMetrics3 = this._scrollMetrics, + offset = _this$_scrollMetrics3.offset, + visibleLength = _this$_scrollMetrics3.visibleLength, + velocity = _this$_scrollMetrics3.velocity; + var itemCount = this.props.getItemCount(this.props.data); + var hiPri = false; + var scrollingThreshold = this.props.onEndReachedThreshold * visibleLength / 2; + + if (first > 0) { + var distTop = offset - this._getFrameMetricsApprox(first).offset; + + hiPri = hiPri || distTop < 0 || velocity < -2 && distTop < scrollingThreshold; + } + + if (last < itemCount - 1) { + var distBottom = this._getFrameMetricsApprox(last).offset - (offset + visibleLength); + hiPri = hiPri || distBottom < 0 || velocity > 2 && distBottom < scrollingThreshold; + } + + if (hiPri && this._averageCellLength) { + this._updateCellsToRenderBatcher.dispose({ + abort: true + }); + + this._updateCellsToRender(); + + return; + } else { + this._updateCellsToRenderBatcher.schedule(); + } + } + }, { + key: "_updateViewableItems", + value: function _updateViewableItems(data) { + var _this5 = this; + + var getItemCount = this.props.getItemCount; + + this._viewabilityTuples.forEach(function (tuple) { + tuple.viewabilityHelper.onUpdate(getItemCount(data), _this5._scrollMetrics.offset, _this5._scrollMetrics.visibleLength, _this5._getFrameMetrics, _this5._createViewToken, tuple.onViewableItemsChanged, _this5.state); + }); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(newProps, prevState) { + var data = newProps.data, + extraData = newProps.extraData, + getItemCount = newProps.getItemCount, + maxToRenderPerBatch = newProps.maxToRenderPerBatch; + return { + first: Math.max(0, Math.min(prevState.first, getItemCount(data) - 1 - maxToRenderPerBatch)), + last: Math.max(0, Math.min(prevState.last, getItemCount(data) - 1)) + }; + } + }]); + + _inherits(VirtualizedList, _React$PureComponent); + + return VirtualizedList; + }(React.PureComponent); + + VirtualizedList.defaultProps = { + disableVirtualization: false, + horizontal: false, + initialNumToRender: 10, + keyExtractor: function keyExtractor(item, index) { + if (item.key != null) { + return item.key; + } + + _usedIndexForKey = true; + + if (item.type && item.type.displayName) { + _keylessItemComponentName = item.type.displayName; + } + + return String(index); + }, + maxToRenderPerBatch: 10, + onEndReachedThreshold: 2, + scrollEventThrottle: 50, + updateCellsBatchingPeriod: 50, + windowSize: 21 + }; + VirtualizedList.contextTypes = { + virtualizedCell: PropTypes.shape({ + cellKey: PropTypes.string + }), + virtualizedList: PropTypes.shape({ + getScrollMetrics: PropTypes.func, + horizontal: PropTypes.bool, + getOutermostParentListRef: PropTypes.func, + getNestedChildState: PropTypes.func, + registerAsNestedChild: PropTypes.func, + unregisterAsNestedChild: PropTypes.func + }) + }; + VirtualizedList.childContextTypes = { + virtualizedList: PropTypes.shape({ + getScrollMetrics: PropTypes.func, + horizontal: PropTypes.bool, + getOutermostParentListRef: PropTypes.func, + getNestedChildState: PropTypes.func, + registerAsNestedChild: PropTypes.func, + unregisterAsNestedChild: PropTypes.func + }) + }; + VirtualizedList = _wrapComponent("VirtualizedList")(VirtualizedList); + + var CellRenderer = function (_React$Component) { + function CellRenderer() { + var _getPrototypeOf2; + + var _temp, _this6; + + _classCallCheck(this, CellRenderer); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this6, (_temp = _this6 = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(CellRenderer)).call.apply(_getPrototypeOf2, [this].concat(args))), _this6.state = { + separatorProps: { + highlighted: false, + leadingItem: _this6.props.item + } + }, _this6._separators = { + highlight: function highlight() { + var _this6$props = _this6.props, + cellKey = _this6$props.cellKey, + prevCellKey = _this6$props.prevCellKey; + + _this6.props.onUpdateSeparators([cellKey, prevCellKey], { + highlighted: true + }); + }, + unhighlight: function unhighlight() { + var _this6$props2 = _this6.props, + cellKey = _this6$props2.cellKey, + prevCellKey = _this6$props2.prevCellKey; + + _this6.props.onUpdateSeparators([cellKey, prevCellKey], { + highlighted: false + }); + }, + updateProps: function updateProps(select, newProps) { + var _this6$props3 = _this6.props, + cellKey = _this6$props3.cellKey, + prevCellKey = _this6$props3.prevCellKey; + + _this6.props.onUpdateSeparators([select === 'leading' ? prevCellKey : cellKey], newProps); + } + }, _temp)); + } + + _createClass(CellRenderer, [{ + key: "getChildContext", + value: function getChildContext() { + return { + virtualizedCell: { + cellKey: this.props.cellKey + } + }; + } + }, { + key: "updateSeparatorProps", + value: function updateSeparatorProps(newProps) { + this.setState(function (state) { + return { + separatorProps: _objectSpread({}, state.separatorProps, newProps) + }; + }); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.props.onUnmount(this.props.cellKey); + } + }, { + key: "render", + value: function render() { + var _this$props11 = this.props, + CellRendererComponent = _this$props11.CellRendererComponent, + ItemSeparatorComponent = _this$props11.ItemSeparatorComponent, + fillRateHelper = _this$props11.fillRateHelper, + horizontal = _this$props11.horizontal, + item = _this$props11.item, + index = _this$props11.index, + inversionStyle = _this$props11.inversionStyle, + parentProps = _this$props11.parentProps; + var renderItem = parentProps.renderItem, + getItemLayout = parentProps.getItemLayout; + invariant(renderItem, 'no renderItem!'); + var element = renderItem({ + item: item, + index: index, + separators: this._separators + }); + var onLayout = getItemLayout && !parentProps.debug && !fillRateHelper.enabled() ? undefined : this.props.onLayout; + var itemSeparator = ItemSeparatorComponent && React.createElement(ItemSeparatorComponent, _extends({}, this.state.separatorProps, { + __source: { + fileName: _jsxFileName, + lineNumber: 1703 + } + })); + var cellStyle = inversionStyle ? horizontal ? [{ + flexDirection: 'row-reverse' + }, inversionStyle] : [{ + flexDirection: 'column-reverse' + }, inversionStyle] : horizontal ? [{ + flexDirection: 'row' + }, inversionStyle] : inversionStyle; + + if (!CellRendererComponent) { + return React.createElement(View, { + style: cellStyle, + onLayout: onLayout, + __source: { + fileName: _jsxFileName, + lineNumber: 1714 + } + }, element, itemSeparator); + } + + return React.createElement(CellRendererComponent, _extends({}, this.props, { + style: cellStyle, + onLayout: onLayout, + __source: { + fileName: _jsxFileName, + lineNumber: 1721 + } + }), element, itemSeparator); + } + }]); + + _inherits(CellRenderer, _React$Component); + + return CellRenderer; + }(React.Component); + + CellRenderer.childContextTypes = { + virtualizedCell: PropTypes.shape({ + cellKey: PropTypes.string + }) + }; + CellRenderer = _wrapComponent("CellRenderer")(CellRenderer); + + var VirtualizedCellWrapper = function (_React$Component2) { + function VirtualizedCellWrapper() { + _classCallCheck(this, VirtualizedCellWrapper); + + return _possibleConstructorReturn(this, _getPrototypeOf(VirtualizedCellWrapper).apply(this, arguments)); + } + + _createClass(VirtualizedCellWrapper, [{ + key: "getChildContext", + value: function getChildContext() { + return { + virtualizedCell: { + cellKey: this.props.cellKey + } + }; + } + }, { + key: "render", + value: function render() { + return this.props.children; + } + }]); + + _inherits(VirtualizedCellWrapper, _React$Component2); + + return VirtualizedCellWrapper; + }(React.Component); + + VirtualizedCellWrapper.childContextTypes = { + virtualizedCell: PropTypes.shape({ + cellKey: PropTypes.string + }) + }; + VirtualizedCellWrapper = _wrapComponent("VirtualizedCellWrapper")(VirtualizedCellWrapper); + var styles = StyleSheet.create({ + verticallyInverted: { + transform: [{ + scaleY: -1 + }] + }, + horizontallyInverted: { + transform: [{ + scaleX: -1 + }] + } + }); + module.exports = VirtualizedList; +},397,[1,11,398,399,212,200,261,396,367,201,218,227,400,226,309,166,183,401],"node_modules/react-native/Libraries/Lists/VirtualizedList.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var InteractionManager = _$$_REQUIRE(_dependencyMap[0], 'InteractionManager'); + + var Batchinator = function () { + function Batchinator(callback, delayMS) { + _classCallCheck(this, Batchinator); + + this._delay = delayMS; + this._callback = callback; + } + + _createClass(Batchinator, [{ + key: "dispose", + value: function dispose() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + abort: false + }; + + if (this._taskHandle) { + this._taskHandle.cancel(); + + if (!options.abort) { + this._callback(); + } + + this._taskHandle = null; + } + } + }, { + key: "schedule", + value: function schedule() { + var _this = this; + + if (this._taskHandle) { + return; + } + + var timeoutHandle = setTimeout(function () { + _this._taskHandle = InteractionManager.runAfterInteractions(function () { + _this._taskHandle = null; + + _this._callback(); + }); + }, this._delay); + this._taskHandle = { + cancel: function cancel() { + return clearTimeout(timeoutHandle); + } + }; + } + }]); + + return Batchinator; + }(); + + module.exports = Batchinator; +},398,[340],"node_modules/react-native/Libraries/Interaction/Batchinator.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + var performanceNow = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/performanceNow'); + + var warning = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/warning'); + + var Info = function Info() { + _classCallCheck(this, Info); + + this.any_blank_count = 0; + this.any_blank_ms = 0; + this.any_blank_speed_sum = 0; + this.mostly_blank_count = 0; + this.mostly_blank_ms = 0; + this.pixels_blank = 0; + this.pixels_sampled = 0; + this.pixels_scrolled = 0; + this.total_time_spent = 0; + this.sample_count = 0; + }; + + var DEBUG = false; + var _listeners = []; + var _minSampleCount = 10; + + var _sampleRate = DEBUG ? 1 : null; + + var FillRateHelper = function () { + _createClass(FillRateHelper, null, [{ + key: "addListener", + value: function addListener(callback) { + warning(_sampleRate !== null, 'Call `FillRateHelper.setSampleRate` before `addListener`.'); + + _listeners.push(callback); + + return { + remove: function remove() { + _listeners = _listeners.filter(function (listener) { + return callback !== listener; + }); + } + }; + } + }, { + key: "setSampleRate", + value: function setSampleRate(sampleRate) { + _sampleRate = sampleRate; + } + }, { + key: "setMinSampleCount", + value: function setMinSampleCount(minSampleCount) { + _minSampleCount = minSampleCount; + } + }]); + + function FillRateHelper(getFrameMetrics) { + _classCallCheck(this, FillRateHelper); + + this._anyBlankStartTime = null; + this._enabled = false; + this._info = new Info(); + this._mostlyBlankStartTime = null; + this._samplesStartTime = null; + this._getFrameMetrics = getFrameMetrics; + this._enabled = (_sampleRate || 0) > Math.random(); + + this._resetData(); + } + + _createClass(FillRateHelper, [{ + key: "activate", + value: function activate() { + if (this._enabled && this._samplesStartTime == null) { + DEBUG && console.debug('FillRateHelper: activate'); + this._samplesStartTime = performanceNow(); + } + } + }, { + key: "deactivateAndFlush", + value: function deactivateAndFlush() { + if (!this._enabled) { + return; + } + + var start = this._samplesStartTime; + + if (start == null) { + DEBUG && console.debug('FillRateHelper: bail on deactivate with no start time'); + return; + } + + if (this._info.sample_count < _minSampleCount) { + this._resetData(); + + return; + } + + var total_time_spent = performanceNow() - start; + + var info = _objectSpread({}, this._info, { + total_time_spent: total_time_spent + }); + + if (DEBUG) { + var derived = { + avg_blankness: this._info.pixels_blank / this._info.pixels_sampled, + avg_speed: this._info.pixels_scrolled / (total_time_spent / 1000), + avg_speed_when_any_blank: this._info.any_blank_speed_sum / this._info.any_blank_count, + any_blank_per_min: this._info.any_blank_count / (total_time_spent / 1000 / 60), + any_blank_time_frac: this._info.any_blank_ms / total_time_spent, + mostly_blank_per_min: this._info.mostly_blank_count / (total_time_spent / 1000 / 60), + mostly_blank_time_frac: this._info.mostly_blank_ms / total_time_spent + }; + + for (var key in derived) { + derived[key] = Math.round(1000 * derived[key]) / 1000; + } + + console.debug('FillRateHelper deactivateAndFlush: ', { + derived: derived, + info: info + }); + } + + _listeners.forEach(function (listener) { + return listener(info); + }); + + this._resetData(); + } + }, { + key: "computeBlankness", + value: function computeBlankness(props, state, scrollMetrics) { + if (!this._enabled || props.getItemCount(props.data) === 0 || this._samplesStartTime == null) { + return 0; + } + + var dOffset = scrollMetrics.dOffset, + offset = scrollMetrics.offset, + velocity = scrollMetrics.velocity, + visibleLength = scrollMetrics.visibleLength; + this._info.sample_count++; + this._info.pixels_sampled += Math.round(visibleLength); + this._info.pixels_scrolled += Math.round(Math.abs(dOffset)); + var scrollSpeed = Math.round(Math.abs(velocity) * 1000); + var now = performanceNow(); + + if (this._anyBlankStartTime != null) { + this._info.any_blank_ms += now - this._anyBlankStartTime; + } + + this._anyBlankStartTime = null; + + if (this._mostlyBlankStartTime != null) { + this._info.mostly_blank_ms += now - this._mostlyBlankStartTime; + } + + this._mostlyBlankStartTime = null; + var blankTop = 0; + var first = state.first; + + var firstFrame = this._getFrameMetrics(first); + + while (first <= state.last && (!firstFrame || !firstFrame.inLayout)) { + firstFrame = this._getFrameMetrics(first); + first++; + } + + if (firstFrame && first > 0) { + blankTop = Math.min(visibleLength, Math.max(0, firstFrame.offset - offset)); + } + + var blankBottom = 0; + var last = state.last; + + var lastFrame = this._getFrameMetrics(last); + + while (last >= state.first && (!lastFrame || !lastFrame.inLayout)) { + lastFrame = this._getFrameMetrics(last); + last--; + } + + if (lastFrame && last < props.getItemCount(props.data) - 1) { + var bottomEdge = lastFrame.offset + lastFrame.length; + blankBottom = Math.min(visibleLength, Math.max(0, offset + visibleLength - bottomEdge)); + } + + var pixels_blank = Math.round(blankTop + blankBottom); + var blankness = pixels_blank / visibleLength; + + if (blankness > 0) { + this._anyBlankStartTime = now; + this._info.any_blank_speed_sum += scrollSpeed; + this._info.any_blank_count++; + this._info.pixels_blank += pixels_blank; + + if (blankness > 0.5) { + this._mostlyBlankStartTime = now; + this._info.mostly_blank_count++; + } + } else if (scrollSpeed < 0.01 || Math.abs(dOffset) < 1) { + this.deactivateAndFlush(); + } + + return blankness; + } + }, { + key: "enabled", + value: function enabled() { + return this._enabled; + } + }, { + key: "_resetData", + value: function _resetData() { + this._anyBlankStartTime = null; + this._info = new Info(); + this._mostlyBlankStartTime = null; + this._samplesStartTime = null; + } + }]); + + return FillRateHelper; + }(); + + module.exports = FillRateHelper; +},399,[177,183],"node_modules/react-native/Libraries/Lists/FillRateHelper.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + + function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + + function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + + function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var ViewabilityHelper = function () { + function ViewabilityHelper() { + var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + viewAreaCoveragePercentThreshold: 0 + }; + + _classCallCheck(this, ViewabilityHelper); + + this._hasInteracted = false; + this._timers = new Set(); + this._viewableIndices = []; + this._viewableItems = new Map(); + this._config = config; + } + + _createClass(ViewabilityHelper, [{ + key: "dispose", + value: function dispose() { + this._timers.forEach(clearTimeout); + } + }, { + key: "computeViewableItems", + value: function computeViewableItems(itemCount, scrollOffset, viewportHeight, getFrameMetrics, renderRange) { + var _this$_config = this._config, + itemVisiblePercentThreshold = _this$_config.itemVisiblePercentThreshold, + viewAreaCoveragePercentThreshold = _this$_config.viewAreaCoveragePercentThreshold; + var viewAreaMode = viewAreaCoveragePercentThreshold != null; + var viewablePercentThreshold = viewAreaMode ? viewAreaCoveragePercentThreshold : itemVisiblePercentThreshold; + invariant(viewablePercentThreshold != null && itemVisiblePercentThreshold != null !== (viewAreaCoveragePercentThreshold != null), 'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold'); + var viewableIndices = []; + + if (itemCount === 0) { + return viewableIndices; + } + + var firstVisible = -1; + + var _ref = renderRange || { + first: 0, + last: itemCount - 1 + }, + first = _ref.first, + last = _ref.last; + + invariant(last < itemCount, 'Invalid render range ' + JSON.stringify({ + renderRange: renderRange, + itemCount: itemCount + })); + + for (var idx = first; idx <= last; idx++) { + var metrics = getFrameMetrics(idx); + + if (!metrics) { + continue; + } + + var top = metrics.offset - scrollOffset; + var bottom = top + metrics.length; + + if (top < viewportHeight && bottom > 0) { + firstVisible = idx; + + if (_isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, metrics.length)) { + viewableIndices.push(idx); + } + } else if (firstVisible >= 0) { + break; + } + } + + return viewableIndices; + } + }, { + key: "onUpdate", + value: function onUpdate(itemCount, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged, renderRange) { + var _this = this; + + if (this._config.waitForInteraction && !this._hasInteracted || itemCount === 0 || !getFrameMetrics(0)) { + return; + } + + var viewableIndices = []; + + if (itemCount) { + viewableIndices = this.computeViewableItems(itemCount, scrollOffset, viewportHeight, getFrameMetrics, renderRange); + } + + if (this._viewableIndices.length === viewableIndices.length && this._viewableIndices.every(function (v, ii) { + return v === viewableIndices[ii]; + })) { + return; + } + + this._viewableIndices = viewableIndices; + + if (this._config.minimumViewTime) { + var handle = setTimeout(function () { + _this._timers.delete(handle); + + _this._onUpdateSync(viewableIndices, onViewableItemsChanged, createViewToken); + }, this._config.minimumViewTime); + + this._timers.add(handle); + } else { + this._onUpdateSync(viewableIndices, onViewableItemsChanged, createViewToken); + } + } + }, { + key: "resetViewableIndices", + value: function resetViewableIndices() { + this._viewableIndices = []; + } + }, { + key: "recordInteraction", + value: function recordInteraction() { + this._hasInteracted = true; + } + }, { + key: "_onUpdateSync", + value: function _onUpdateSync(viewableIndicesToCheck, onViewableItemsChanged, createViewToken) { + var _this2 = this; + + viewableIndicesToCheck = viewableIndicesToCheck.filter(function (ii) { + return _this2._viewableIndices.includes(ii); + }); + var prevItems = this._viewableItems; + var nextItems = new Map(viewableIndicesToCheck.map(function (ii) { + var viewable = createViewToken(ii, true); + return [viewable.key, viewable]; + })); + var changed = []; + + for (var _iterator = nextItems, _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref4; + + if (_isArray) { + if (_i2 >= _iterator.length) break; + _ref4 = _iterator[_i2++]; + } else { + _i2 = _iterator.next(); + if (_i2.done) break; + _ref4 = _i2.value; + } + + var _ref8 = _ref4; + + var _ref3 = _slicedToArray(_ref8, 2); + + var _key3 = _ref3[0]; + var _viewable2 = _ref3[1]; + + if (!prevItems.has(_key3)) { + changed.push(_viewable2); + } + } + + for (var _iterator2 = prevItems, _isArray2 = Array.isArray(_iterator2), _i3 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref7; + + if (_isArray2) { + if (_i3 >= _iterator2.length) break; + _ref7 = _iterator2[_i3++]; + } else { + _i3 = _iterator2.next(); + if (_i3.done) break; + _ref7 = _i3.value; + } + + var _ref9 = _ref7; + + var _ref6 = _slicedToArray(_ref9, 2); + + var _key4 = _ref6[0]; + var _viewable3 = _ref6[1]; + + if (!nextItems.has(_key4)) { + changed.push(_objectSpread({}, _viewable3, { + isViewable: false + })); + } + } + + if (changed.length > 0) { + this._viewableItems = nextItems; + onViewableItemsChanged({ + viewableItems: Array.from(nextItems.values()), + changed: changed, + viewabilityConfig: this._config + }); + } + } + }]); + + return ViewabilityHelper; + }(); + + function _isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, itemLength) { + if (_isEntirelyVisible(top, bottom, viewportHeight)) { + return true; + } else { + var pixels = _getPixelsVisible(top, bottom, viewportHeight); + + var percent = 100 * (viewAreaMode ? pixels / viewportHeight : pixels / itemLength); + return percent >= viewablePercentThreshold; + } + } + + function _getPixelsVisible(top, bottom, viewportHeight) { + var visibleHeight = Math.min(bottom, viewportHeight) - Math.max(top, 0); + return Math.max(0, visibleHeight); + } + + function _isEntirelyVisible(top, bottom, viewportHeight) { + return top >= 0 && bottom <= viewportHeight && bottom > top; + } + + module.exports = ViewabilityHelper; +},400,[166],"node_modules/react-native/Libraries/Lists/ViewabilityHelper.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + + function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + + function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + + function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + function elementsThatOverlapOffsets(offsets, itemCount, getFrameMetrics) { + var out = []; + var outLength = 0; + + for (var ii = 0; ii < itemCount; ii++) { + var frame = getFrameMetrics(ii); + var trailingOffset = frame.offset + frame.length; + + for (var kk = 0; kk < offsets.length; kk++) { + if (out[kk] == null && trailingOffset >= offsets[kk]) { + out[kk] = ii; + outLength++; + + if (kk === offsets.length - 1) { + invariant(outLength === offsets.length, 'bad offsets input, should be in increasing order: %s', JSON.stringify(offsets)); + return out; + } + } + } + } + + return out; + } + + function newRangeCount(prev, next) { + return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first)); + } + + function computeWindowedRenderLimits(props, prev, getFrameMetricsApprox, scrollMetrics) { + var data = props.data, + getItemCount = props.getItemCount, + maxToRenderPerBatch = props.maxToRenderPerBatch, + windowSize = props.windowSize; + var itemCount = getItemCount(data); + + if (itemCount === 0) { + return prev; + } + + var offset = scrollMetrics.offset, + velocity = scrollMetrics.velocity, + visibleLength = scrollMetrics.visibleLength; + var visibleBegin = Math.max(0, offset); + var visibleEnd = visibleBegin + visibleLength; + var overscanLength = (windowSize - 1) * visibleLength; + var leadFactor = 0.5; + var fillPreference = velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none'; + var overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength); + var overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength); + var lastItemOffset = getFrameMetricsApprox(itemCount - 1).offset; + + if (lastItemOffset < overscanBegin) { + return { + first: Math.max(0, itemCount - 1 - maxToRenderPerBatch), + last: itemCount - 1 + }; + } + + var _elementsThatOverlapO = elementsThatOverlapOffsets([overscanBegin, visibleBegin, visibleEnd, overscanEnd], props.getItemCount(props.data), getFrameMetricsApprox), + _elementsThatOverlapO2 = _slicedToArray(_elementsThatOverlapO, 4), + overscanFirst = _elementsThatOverlapO2[0], + first = _elementsThatOverlapO2[1], + last = _elementsThatOverlapO2[2], + overscanLast = _elementsThatOverlapO2[3]; + + overscanFirst = overscanFirst == null ? 0 : overscanFirst; + first = first == null ? Math.max(0, overscanFirst) : first; + overscanLast = overscanLast == null ? itemCount - 1 : overscanLast; + last = last == null ? Math.min(overscanLast, first + maxToRenderPerBatch - 1) : last; + var visible = { + first: first, + last: last + }; + var newCellCount = newRangeCount(prev, visible); + + while (true) { + if (first <= overscanFirst && last >= overscanLast) { + break; + } + + var maxNewCells = newCellCount >= maxToRenderPerBatch; + var firstWillAddMore = first <= prev.first || first > prev.last; + var firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore); + var lastWillAddMore = last >= prev.last || last < prev.first; + var lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore); + + if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) { + break; + } + + if (firstShouldIncrement && !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)) { + if (firstWillAddMore) { + newCellCount++; + } + + first--; + } + + if (lastShouldIncrement && !(fillPreference === 'before' && firstShouldIncrement && firstWillAddMore)) { + if (lastWillAddMore) { + newCellCount++; + } + + last++; + } + } + + if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last)) { + throw new Error('Bad window calculation ' + JSON.stringify({ + first: first, + last: last, + itemCount: itemCount, + overscanFirst: overscanFirst, + overscanLast: overscanLast, + visible: visible + })); + } + + return { + first: first, + last: last + }; + } + + var VirtualizeUtils = { + computeWindowedRenderLimits: computeWindowedRenderLimits, + elementsThatOverlapOffsets: elementsThatOverlapOffsets, + newRangeCount: newRangeCount + }; + module.exports = VirtualizeUtils; +},401,[166],"node_modules/react-native/Libraries/Lists/VirtualizeUtils.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Image/ImageBackground.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + ImageBackground: { + displayName: "ImageBackground" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Image/ImageBackground.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Image = _$$_REQUIRE(_dependencyMap[2], 'Image'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[5], 'View'); + + var ensureComponentIsNative = _$$_REQUIRE(_dependencyMap[6], 'ensureComponentIsNative'); + + var ImageBackground = function (_React$Component) { + function ImageBackground() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, ImageBackground); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ImageBackground)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._viewRef = null, _this._captureRef = function (ref) { + _this._viewRef = ref; + }, _temp)); + } + + _createClass(ImageBackground, [{ + key: "setNativeProps", + value: function setNativeProps(props) { + var viewRef = this._viewRef; + + if (viewRef) { + ensureComponentIsNative(viewRef); + viewRef.setNativeProps(props); + } + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + children = _this$props.children, + style = _this$props.style, + imageStyle = _this$props.imageStyle, + imageRef = _this$props.imageRef, + props = _objectWithoutProperties(_this$props, ["children", "style", "imageStyle", "imageRef"]); + + return React.createElement(View, { + style: style, + ref: this._captureRef, + __source: { + fileName: _jsxFileName, + lineNumber: 63 + } + }, React.createElement(Image, _extends({}, props, { + style: [StyleSheet.absoluteFill, { + width: style.width, + height: style.height + }, imageStyle], + ref: imageRef, + __source: { + fileName: _jsxFileName, + lineNumber: 64 + } + })), children); + } + }]); + + _inherits(ImageBackground, _React$Component); + + return ImageBackground; + }(React.Component); + + ImageBackground = _wrapComponent("ImageBackground")(ImageBackground); + module.exports = ImageBackground; +},402,[1,11,361,200,201,227,403],"node_modules/react-native/Libraries/Image/ImageBackground.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var ensureComponentIsNative = function ensureComponentIsNative(component) { + invariant(component && typeof component.setNativeProps === 'function', 'Touchable child must either be native or forward setNativeProps to a ' + 'native component'); + }; + + module.exports = ensureComponentIsNative; +},403,[166],"node_modules/react-native/Libraries/Components/Touchable/ensureComponentIsNative.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var RCTImageEditingManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').ImageEditingManager; + + var ImageEditor = function () { + function ImageEditor() { + _classCallCheck(this, ImageEditor); + } + + _createClass(ImageEditor, null, [{ + key: "cropImage", + value: function cropImage(uri, cropData, success, failure) { + RCTImageEditingManager.cropImage(uri, cropData, success, failure); + } + }]); + + return ImageEditor; + }(); + + module.exports = ImageEditor; +},404,[168],"node_modules/react-native/Libraries/Image/ImageEditor.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var RCTImageStoreManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').ImageStoreManager; + + var ImageStore = function () { + function ImageStore() { + _classCallCheck(this, ImageStore); + } + + _createClass(ImageStore, null, [{ + key: "hasImageForTag", + value: function hasImageForTag(uri, callback) { + if (RCTImageStoreManager.hasImageForTag) { + RCTImageStoreManager.hasImageForTag(uri, callback); + } else { + console.warn('hasImageForTag() not implemented'); + } + } + }, { + key: "removeImageForTag", + value: function removeImageForTag(uri) { + if (RCTImageStoreManager.removeImageForTag) { + RCTImageStoreManager.removeImageForTag(uri); + } else { + console.warn('removeImageForTag() not implemented'); + } + } + }, { + key: "addImageFromBase64", + value: function addImageFromBase64(base64ImageData, success, failure) { + RCTImageStoreManager.addImageFromBase64(base64ImageData, success, failure); + } + }, { + key: "getBase64ForTag", + value: function getBase64ForTag(uri, success, failure) { + RCTImageStoreManager.getBase64ForTag(uri, success, failure); + } + }]); + + return ImageStore; + }(); + + module.exports = ImageStore; +},405,[168],"node_modules/react-native/Libraries/Image/ImageStore.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + InputAccessoryView: { + displayName: "InputAccessoryView" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[5], 'ViewPropTypes'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[6], 'requireNativeComponent'); + + var RCTInputAccessoryView = requireNativeComponent('RCTInputAccessoryView'); + + var InputAccessoryView = function (_React$Component) { + function InputAccessoryView() { + _classCallCheck(this, InputAccessoryView); + + return _possibleConstructorReturn(this, _getPrototypeOf(InputAccessoryView).apply(this, arguments)); + } + + _createClass(InputAccessoryView, [{ + key: "render", + value: function render() { + console.warn(' is not supported on Android yet.'); + + if (React.Children.count(this.props.children) === 0) { + return null; + } + + return React.createElement(RCTInputAccessoryView, { + style: [this.props.style, styles.container], + nativeID: this.props.nativeID, + backgroundColor: this.props.backgroundColor, + __source: { + fileName: _jsxFileName, + lineNumber: 99 + } + }, this.props.children); + } + }]); + + _inherits(InputAccessoryView, _React$Component); + + return InputAccessoryView; + }(React.Component); + + InputAccessoryView = _wrapComponent("InputAccessoryView")(InputAccessoryView); + var styles = StyleSheet.create({ + container: { + position: 'absolute' + } + }); + module.exports = InputAccessoryView; +},406,[1,11,207,200,201,376,229],"node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + KeyboardAvoidingView: { + displayName: "KeyboardAvoidingView" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Keyboard = _$$_REQUIRE(_dependencyMap[2], 'Keyboard'); + + var LayoutAnimation = _$$_REQUIRE(_dependencyMap[3], 'LayoutAnimation'); + + var Platform = _$$_REQUIRE(_dependencyMap[4], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[5], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[7], 'View'); + + var viewRef = 'VIEW'; + + var KeyboardAvoidingView = function (_React$Component) { + function KeyboardAvoidingView() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, KeyboardAvoidingView); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(KeyboardAvoidingView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._frame = null, _this._subscriptions = [], _this.state = { + bottom: 0 + }, _this._onKeyboardChange = function (event) { + if (event == null) { + _this.setState({ + bottom: 0 + }); + + return; + } + + var duration = event.duration, + easing = event.easing, + endCoordinates = event.endCoordinates; + + var height = _this._relativeKeyboardHeight(endCoordinates); + + if (_this.state.bottom === height) { + return; + } + + if (duration && easing) { + LayoutAnimation.configureNext({ + duration: duration, + update: { + duration: duration, + type: LayoutAnimation.Types[easing] || 'keyboard' + } + }); + } + + _this.setState({ + bottom: height + }); + }, _this._onLayout = function (event) { + _this._frame = event.nativeEvent.layout; + }, _temp)); + } + + _createClass(KeyboardAvoidingView, [{ + key: "_relativeKeyboardHeight", + value: function _relativeKeyboardHeight(keyboardFrame) { + var frame = this._frame; + + if (!frame || !keyboardFrame) { + return 0; + } + + var keyboardY = keyboardFrame.screenY - this.props.keyboardVerticalOffset; + return Math.max(frame.y + frame.height - keyboardY, 0); + } + }, { + key: "UNSAFE_componentWillUpdate", + value: function UNSAFE_componentWillUpdate(nextProps, nextState) { + if (nextState.bottom === this.state.bottom && this.props.behavior === 'height' && nextProps.behavior === 'height') { + nextState.bottom = 0; + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + if (Platform.OS === 'ios') { + this._subscriptions = [Keyboard.addListener('keyboardWillChangeFrame', this._onKeyboardChange)]; + } else { + this._subscriptions = [Keyboard.addListener('keyboardDidHide', this._onKeyboardChange), Keyboard.addListener('keyboardDidShow', this._onKeyboardChange)]; + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this._subscriptions.forEach(function (subscription) { + subscription.remove(); + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + behavior = _this$props.behavior, + children = _this$props.children, + contentContainerStyle = _this$props.contentContainerStyle, + enabled = _this$props.enabled, + keyboardVerticalOffset = _this$props.keyboardVerticalOffset, + style = _this$props.style, + props = _objectWithoutProperties(_this$props, ["behavior", "children", "contentContainerStyle", "enabled", "keyboardVerticalOffset", "style"]); + + var bottomHeight = enabled ? this.state.bottom : 0; + + switch (behavior) { + case 'height': + var heightStyle; + + if (this._frame != null) { + heightStyle = { + height: this._frame.height - bottomHeight, + flex: 0 + }; + } + + return React.createElement(View, _extends({ + ref: viewRef, + style: StyleSheet.compose(style, heightStyle), + onLayout: this._onLayout + }, props, { + __source: { + fileName: _jsxFileName, + lineNumber: 172 + } + }), children); + + case 'position': + return React.createElement(View, _extends({ + ref: viewRef, + style: style, + onLayout: this._onLayout + }, props, { + __source: { + fileName: _jsxFileName, + lineNumber: 186 + } + }), React.createElement(View, { + style: StyleSheet.compose(contentContainerStyle, { + bottom: bottomHeight + }), + __source: { + fileName: _jsxFileName, + lineNumber: 191 + } + }, children)); + + case 'padding': + return React.createElement(View, _extends({ + ref: viewRef, + style: StyleSheet.compose(style, { + paddingBottom: bottomHeight + }), + onLayout: this._onLayout + }, props, { + __source: { + fileName: _jsxFileName, + lineNumber: 205 + } + }), children); + + default: + return React.createElement(View, _extends({ + ref: viewRef, + onLayout: this._onLayout, + style: style + }, props, { + __source: { + fileName: _jsxFileName, + lineNumber: 219 + } + }), children); + } + } + }]); + + _inherits(KeyboardAvoidingView, _React$Component); + + return KeyboardAvoidingView; + }(React.Component); + + KeyboardAvoidingView.defaultProps = { + enabled: true, + keyboardVerticalOffset: 0 + }; + KeyboardAvoidingView = _wrapComponent("KeyboardAvoidingView")(KeyboardAvoidingView); + module.exports = KeyboardAvoidingView; +},407,[1,11,371,372,176,200,201,227],"node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + MaskedViewIOS: { + displayName: "MaskedViewIOS" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[5], 'View'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[6], 'ViewPropTypes'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[7], 'requireNativeComponent'); + + var RCTMaskedView = requireNativeComponent('RCTMaskedView'); + + var MaskedViewIOS = function (_React$Component) { + "use strict"; + + function MaskedViewIOS() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, MaskedViewIOS); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MaskedViewIOS)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._hasWarnedInvalidRenderMask = false, _temp)); + } + + _createClass(MaskedViewIOS, [{ + key: "render", + value: function render() { + var _this$props = this.props, + maskElement = _this$props.maskElement, + children = _this$props.children, + otherViewProps = _objectWithoutProperties(_this$props, ["maskElement", "children"]); + + if (!React.isValidElement(maskElement)) { + if (!this._hasWarnedInvalidRenderMask) { + console.warn('MaskedView: Invalid `maskElement` prop was passed to MaskedView. ' + 'Expected a React Element. No mask will render.'); + this._hasWarnedInvalidRenderMask = true; + } + + return React.createElement(View, _extends({}, otherViewProps, { + __source: { + fileName: _jsxFileName, + lineNumber: 88 + } + }), children); + } + + return React.createElement(RCTMaskedView, _extends({}, otherViewProps, { + __source: { + fileName: _jsxFileName, + lineNumber: 92 + } + }), React.createElement(View, { + pointerEvents: "none", + style: StyleSheet.absoluteFill, + __source: { + fileName: _jsxFileName, + lineNumber: 93 + } + }, maskElement), children); + } + }]); + + _inherits(MaskedViewIOS, _React$Component); + + return MaskedViewIOS; + }(React.Component); + + MaskedViewIOS.propTypes = _objectSpread({}, ViewPropTypes, { + maskElement: PropTypes.element.isRequired + }); + MaskedViewIOS = _wrapComponent("MaskedViewIOS")(MaskedViewIOS); + module.exports = MaskedViewIOS; +},408,[1,11,212,200,201,227,376,229],"node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Modal/Modal.js", + _container; + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + Modal: { + displayName: "Modal" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Modal/Modal.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var AppContainer = _$$_REQUIRE(_dependencyMap[2], 'AppContainer'); + + var I18nManager = _$$_REQUIRE(_dependencyMap[3], 'I18nManager'); + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[4], 'NativeEventEmitter'); + + var NativeModules = _$$_REQUIRE(_dependencyMap[5], 'NativeModules'); + + var Platform = _$$_REQUIRE(_dependencyMap[6], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[7], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[8], 'prop-types'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[9], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[10], 'View'); + + var deprecatedPropType = _$$_REQUIRE(_dependencyMap[11], 'deprecatedPropType'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[12], 'requireNativeComponent'); + + var RCTModalHostView = requireNativeComponent('RCTModalHostView'); + var ModalEventEmitter = Platform.OS === 'ios' && NativeModules.ModalManager ? new NativeEventEmitter(NativeModules.ModalManager) : null; + var uniqueModalIdentifier = 0; + + var Modal = function (_React$Component) { + function Modal(props) { + var _this; + + _classCallCheck(this, Modal); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(Modal).call(this, props)); + + Modal._confirmProps(props); + + _this._identifier = uniqueModalIdentifier++; + return _this; + } + + _createClass(Modal, [{ + key: "getChildContext", + value: function getChildContext() { + return { + virtualizedList: null + }; + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + if (ModalEventEmitter) { + this._eventSubscription = ModalEventEmitter.addListener('modalDismissed', function (event) { + if (event.modalID === _this2._identifier && _this2.props.onDismiss) { + _this2.props.onDismiss(); + } + }); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._eventSubscription) { + this._eventSubscription.remove(); + } + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(nextProps) { + Modal._confirmProps(nextProps); + } + }, { + key: "render", + value: function render() { + if (this.props.visible === false) { + return null; + } + + var containerStyles = { + backgroundColor: this.props.transparent ? 'transparent' : 'white' + }; + var animationType = this.props.animationType; + + if (!animationType) { + animationType = 'none'; + + if (this.props.animated) { + animationType = 'slide'; + } + } + + var presentationStyle = this.props.presentationStyle; + + if (!presentationStyle) { + presentationStyle = 'fullScreen'; + + if (this.props.transparent) { + presentationStyle = 'overFullScreen'; + } + } + + var innerChildren = __DEV__ ? React.createElement(AppContainer, { + rootTag: this.context.rootTag, + __source: { + fileName: _jsxFileName, + lineNumber: 230 + } + }, this.props.children) : this.props.children; + return React.createElement(RCTModalHostView, { + animationType: animationType, + presentationStyle: presentationStyle, + transparent: this.props.transparent, + hardwareAccelerated: this.props.hardwareAccelerated, + onRequestClose: this.props.onRequestClose, + onShow: this.props.onShow, + identifier: this._identifier, + style: styles.modal, + onStartShouldSetResponder: this._shouldSetResponder, + supportedOrientations: this.props.supportedOrientations, + onOrientationChange: this.props.onOrientationChange, + __source: { + fileName: _jsxFileName, + lineNumber: 238 + } + }, React.createElement(View, { + style: [styles.container, containerStyles], + __source: { + fileName: _jsxFileName, + lineNumber: 250 + } + }, innerChildren)); + } + }, { + key: "_shouldSetResponder", + value: function _shouldSetResponder() { + return true; + } + }], [{ + key: "_confirmProps", + value: function _confirmProps(props) { + if (props.presentationStyle && props.presentationStyle !== 'overFullScreen' && props.transparent) { + console.warn("Modal with '" + props.presentationStyle + "' presentation style and 'transparent' value is not supported."); + } + } + }]); + + _inherits(Modal, _React$Component); + + return Modal; + }(React.Component); + + Modal.propTypes = { + animationType: PropTypes.oneOf(['none', 'slide', 'fade']), + presentationStyle: PropTypes.oneOf(['fullScreen', 'pageSheet', 'formSheet', 'overFullScreen']), + transparent: PropTypes.bool, + hardwareAccelerated: PropTypes.bool, + visible: PropTypes.bool, + onRequestClose: Platform.isTV || Platform.OS === 'android' ? PropTypes.func.isRequired : PropTypes.func, + onShow: PropTypes.func, + onDismiss: PropTypes.func, + animated: deprecatedPropType(PropTypes.bool, 'Use the `animationType` prop instead.'), + supportedOrientations: PropTypes.arrayOf(PropTypes.oneOf(['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right'])), + onOrientationChange: PropTypes.func + }; + Modal.defaultProps = { + visible: true, + hardwareAccelerated: false + }; + Modal.contextTypes = { + rootTag: PropTypes.number + }; + Modal.childContextTypes = { + virtualizedList: PropTypes.object + }; + Modal = _wrapComponent("Modal")(Modal); + var side = I18nManager.isRTL ? 'right' : 'left'; + var styles = StyleSheet.create({ + modal: { + position: 'absolute' + }, + container: (_container = { + position: 'absolute' + }, _defineProperty(_container, side, 0), _defineProperty(_container, "top", 0), _container) + }); + module.exports = Modal; +},409,[1,11,410,445,286,168,176,200,212,201,227,217,229],"node_modules/react-native/Libraries/Modal/Modal.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/ReactNative/AppContainer.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + AppContainer: { + displayName: "AppContainer" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/ReactNative/AppContainer.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var EmitterSubscription = _$$_REQUIRE(_dependencyMap[2], 'EmitterSubscription'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[4], 'RCTDeviceEventEmitter'); + + var React = _$$_REQUIRE(_dependencyMap[5], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[6], 'ReactNative'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[7], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[8], 'View'); + + var AppContainer = function (_React$Component) { + function AppContainer() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, AppContainer); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(AppContainer)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { + inspector: null, + mainKey: 1 + }, _this._subscription = null, _temp)); + } + + _createClass(AppContainer, [{ + key: "getChildContext", + value: function getChildContext() { + return { + rootTag: this.props.rootTag + }; + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + if (__DEV__) { + if (!global.__RCTProfileIsProfiling) { + this._subscription = RCTDeviceEventEmitter.addListener('toggleElementInspector', function () { + var Inspector = _$$_REQUIRE(_dependencyMap[9], 'Inspector'); + + var inspector = _this2.state.inspector ? null : React.createElement(Inspector, { + inspectedViewTag: ReactNative.findNodeHandle(_this2._mainRef), + onRequestRerenderApp: function onRequestRerenderApp(updateInspectedViewTag) { + _this2.setState(function (s) { + return { + mainKey: s.mainKey + 1 + }; + }, function () { + return updateInspectedViewTag(ReactNative.findNodeHandle(_this2._mainRef)); + }); + }, + __source: { + fileName: _jsxFileName, + lineNumber: 62 + } + }); + + _this2.setState({ + inspector: inspector + }); + }); + } + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subscription != null) { + this._subscription.remove(); + } + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + var yellowBox = null; + + if (__DEV__) { + if (!global.__RCTProfileIsProfiling) { + var YellowBox = _$$_REQUIRE(_dependencyMap[10], 'YellowBox'); + + yellowBox = React.createElement(YellowBox, { + __source: { + fileName: _jsxFileName, + lineNumber: 93 + } + }); + } + } + + var innerView = React.createElement(View, { + collapsable: !this.state.inspector, + key: this.state.mainKey, + pointerEvents: "box-none", + style: styles.appContainer, + ref: function ref(_ref) { + _this3._mainRef = _ref; + }, + __source: { + fileName: _jsxFileName, + lineNumber: 98 + } + }, this.props.children); + var Wrapper = this.props.WrapperComponent; + + if (Wrapper != null) { + innerView = React.createElement(Wrapper, { + __source: { + fileName: _jsxFileName, + lineNumber: 112 + } + }, innerView); + } + + return React.createElement(View, { + style: styles.appContainer, + pointerEvents: "box-none", + __source: { + fileName: _jsxFileName, + lineNumber: 115 + } + }, innerView, yellowBox, this.state.inspector); + } + }]); + + _inherits(AppContainer, _React$Component); + + return AppContainer; + }(React.Component); + + AppContainer.childContextTypes = { + rootTag: PropTypes.number + }; + AppContainer = _wrapComponent("AppContainer")(AppContainer); + var styles = StyleSheet.create({ + appContainer: { + flex: 1 + } + }); + + if (__DEV__) { + if (!global.__RCTProfileIsProfiling) { + var YellowBox = _$$_REQUIRE(_dependencyMap[10], 'YellowBox'); + + YellowBox.install(); + } + } + + module.exports = AppContainer; +},410,[1,11,196,212,194,200,261,201,227,411,427],"node_modules/react-native/Libraries/ReactNative/AppContainer.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/Inspector.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + Inspector: { + displayName: "Inspector" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/Inspector.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Dimensions = _$$_REQUIRE(_dependencyMap[2], 'Dimensions'); + + var InspectorOverlay = _$$_REQUIRE(_dependencyMap[3], 'InspectorOverlay'); + + var InspectorPanel = _$$_REQUIRE(_dependencyMap[4], 'InspectorPanel'); + + var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[6], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[7], 'ReactNative'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[8], 'StyleSheet'); + + var Touchable = _$$_REQUIRE(_dependencyMap[9], 'Touchable'); + + var UIManager = _$$_REQUIRE(_dependencyMap[10], 'UIManager'); + + var View = _$$_REQUIRE(_dependencyMap[11], 'View'); + + var emptyObject = _$$_REQUIRE(_dependencyMap[12], 'fbjs/lib/emptyObject'); + + var invariant = _$$_REQUIRE(_dependencyMap[13], 'fbjs/lib/invariant'); + + var hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; + var renderers = findRenderers(); + hook.resolveRNStyle = _$$_REQUIRE(_dependencyMap[14], 'flattenStyle'); + + function findRenderers() { + var allRenderers = Object.keys(hook._renderers).map(function (key) { + return hook._renderers[key]; + }); + invariant(allRenderers.length >= 1, 'Expected to find at least one React Native renderer on DevTools hook.'); + return allRenderers; + } + + function getInspectorDataForViewTag(touchedViewTag) { + for (var i = 0; i < renderers.length; i++) { + var renderer = renderers[i]; + var inspectorData = renderer.getInspectorDataForViewTag(touchedViewTag); + + if (inspectorData.hierarchy.length > 0) { + return inspectorData; + } + } + + throw new Error('Expected to find at least one React renderer.'); + } + + var Inspector = function (_React$Component) { + function Inspector(_props) { + var _this; + + _classCallCheck(this, Inspector); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(Inspector).call(this, _props)); + + _this.attachToDevtools = function (agent) { + var _hideWait = null; + var hlSub = agent.sub('highlight', function (_ref) { + var node = _ref.node, + name = _ref.name, + props = _ref.props; + clearTimeout(_hideWait); + + if (typeof node !== 'number') { + node = ReactNative.findNodeHandle(node); + } + + UIManager.measure(node, function (x, y, width, height, left, top) { + _this.setState({ + hierarchy: [], + inspected: { + frame: { + left: left, + top: top, + width: width, + height: height + }, + style: props ? props.style : emptyObject + } + }); + }); + }); + var hideSub = agent.sub('hideHighlight', function () { + if (_this.state.inspected === null) { + return; + } + + _hideWait = setTimeout(function () { + _this.setState({ + inspected: null + }); + }, 100); + }); + _this._subs = [hlSub, hideSub]; + agent.on('shutdown', function () { + _this.setState({ + devtoolsAgent: null + }); + + _this._subs = null; + }); + + _this.setState({ + devtoolsAgent: agent + }); + }; + + _this.state = { + devtoolsAgent: null, + hierarchy: null, + panelPos: 'bottom', + inspecting: true, + perfing: false, + inspected: null, + selection: null, + inspectedViewTag: _this.props.inspectedViewTag, + networking: false + }; + return _this; + } + + _createClass(Inspector, [{ + key: "componentDidMount", + value: function componentDidMount() { + hook.on('react-devtools', this.attachToDevtools); + + if (hook.reactDevtoolsAgent) { + this.attachToDevtools(hook.reactDevtoolsAgent); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subs) { + this._subs.map(function (fn) { + return fn(); + }); + } + + hook.off('react-devtools', this.attachToDevtools); + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + this.setState({ + inspectedViewTag: newProps.inspectedViewTag + }); + } + }, { + key: "setSelection", + value: function setSelection(i) { + var _this2 = this; + + var hierarchyItem = this.state.hierarchy[i]; + + var _hierarchyItem$getIns = hierarchyItem.getInspectorData(ReactNative.findNodeHandle), + measure = _hierarchyItem$getIns.measure, + props = _hierarchyItem$getIns.props, + source = _hierarchyItem$getIns.source; + + measure(function (x, y, width, height, left, top) { + _this2.setState({ + inspected: { + frame: { + left: left, + top: top, + width: width, + height: height + }, + style: props.style, + source: source + }, + selection: i + }); + }); + } + }, { + key: "onTouchViewTag", + value: function onTouchViewTag(touchedViewTag, frame, pointerY) { + var _getInspectorDataForV = getInspectorDataForViewTag(touchedViewTag), + hierarchy = _getInspectorDataForV.hierarchy, + props = _getInspectorDataForV.props, + selection = _getInspectorDataForV.selection, + source = _getInspectorDataForV.source; + + if (this.state.devtoolsAgent) { + var offsetFromLeaf = hierarchy.length - 1 - selection; + this.state.devtoolsAgent.selectFromDOMNode(touchedViewTag, true, offsetFromLeaf); + } + + this.setState({ + panelPos: pointerY > Dimensions.get('window').height / 2 ? 'top' : 'bottom', + selection: selection, + hierarchy: hierarchy, + inspected: { + style: props.style, + frame: frame, + source: source + } + }); + } + }, { + key: "setPerfing", + value: function setPerfing(val) { + this.setState({ + perfing: val, + inspecting: false, + inspected: null, + networking: false + }); + } + }, { + key: "setInspecting", + value: function setInspecting(val) { + this.setState({ + inspecting: val, + inspected: null + }); + } + }, { + key: "setTouchTargeting", + value: function setTouchTargeting(val) { + var _this3 = this; + + Touchable.TOUCH_TARGET_DEBUG = val; + this.props.onRequestRerenderApp(function (inspectedViewTag) { + _this3.setState({ + inspectedViewTag: inspectedViewTag + }); + }); + } + }, { + key: "setNetworking", + value: function setNetworking(val) { + this.setState({ + networking: val, + perfing: false, + inspecting: false, + inspected: null + }); + } + }, { + key: "render", + value: function render() { + var panelContainerStyle = this.state.panelPos === 'bottom' ? { + bottom: 0 + } : { + top: Platform.OS === 'ios' ? 20 : 0 + }; + return React.createElement(View, { + style: styles.container, + pointerEvents: "box-none", + __source: { + fileName: _jsxFileName, + lineNumber: 249 + } + }, this.state.inspecting && React.createElement(InspectorOverlay, { + inspected: this.state.inspected, + inspectedViewTag: this.state.inspectedViewTag, + onTouchViewTag: this.onTouchViewTag.bind(this), + __source: { + fileName: _jsxFileName, + lineNumber: 251 + } + }), React.createElement(View, { + style: [styles.panelContainer, panelContainerStyle], + __source: { + fileName: _jsxFileName, + lineNumber: 257 + } + }, React.createElement(InspectorPanel, { + devtoolsIsOpen: !!this.state.devtoolsAgent, + inspecting: this.state.inspecting, + perfing: this.state.perfing, + setPerfing: this.setPerfing.bind(this), + setInspecting: this.setInspecting.bind(this), + inspected: this.state.inspected, + hierarchy: this.state.hierarchy, + selection: this.state.selection, + setSelection: this.setSelection.bind(this), + touchTargeting: Touchable.TOUCH_TARGET_DEBUG, + setTouchTargeting: this.setTouchTargeting.bind(this), + networking: this.state.networking, + setNetworking: this.setNetworking.bind(this), + __source: { + fileName: _jsxFileName, + lineNumber: 258 + } + }))); + } + }]); + + _inherits(Inspector, _React$Component); + + return Inspector; + }(React.Component); + + Inspector = _wrapComponent("Inspector")(Inspector); + var styles = StyleSheet.create({ + container: { + position: 'absolute', + backgroundColor: 'transparent', + top: 0, + left: 0, + right: 0, + bottom: 0 + }, + panelContainer: { + position: 'absolute', + left: 0, + right: 0 + } + }); + module.exports = Inspector; +},411,[1,11,203,412,416,176,200,261,201,257,218,227,323,166,226],"node_modules/react-native/Libraries/Inspector/Inspector.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + InspectorOverlay: { + displayName: "InspectorOverlay" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/InspectorOverlay.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Dimensions = _$$_REQUIRE(_dependencyMap[2], 'Dimensions'); + + var ElementBox = _$$_REQUIRE(_dependencyMap[3], 'ElementBox'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); + + var React = _$$_REQUIRE(_dependencyMap[5], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); + + var UIManager = _$$_REQUIRE(_dependencyMap[7], 'UIManager'); + + var View = _$$_REQUIRE(_dependencyMap[8], 'View'); + + var InspectorOverlay = function (_React$Component) { + function InspectorOverlay() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, InspectorOverlay); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(InspectorOverlay)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.findViewForTouchEvent = function (e) { + var _e$nativeEvent$touche = e.nativeEvent.touches[0], + locationX = _e$nativeEvent$touche.locationX, + locationY = _e$nativeEvent$touche.locationY; + UIManager.findSubviewIn(_this.props.inspectedViewTag, [locationX, locationY], function (nativeViewTag, left, top, width, height) { + _this.props.onTouchViewTag(nativeViewTag, { + left: left, + top: top, + width: width, + height: height + }, locationY); + }); + }, _this.shouldSetResponser = function (e) { + _this.findViewForTouchEvent(e); + + return true; + }, _temp)); + } + + _createClass(InspectorOverlay, [{ + key: "render", + value: function render() { + var content = null; + + if (this.props.inspected) { + content = React.createElement(ElementBox, { + frame: this.props.inspected.frame, + style: this.props.inspected.style, + __source: { + fileName: _jsxFileName, + lineNumber: 66 + } + }); + } + + return React.createElement(View, { + onStartShouldSetResponder: this.shouldSetResponser, + onResponderMove: this.findViewForTouchEvent, + style: [styles.inspector, { + height: Dimensions.get('window').height + }], + __source: { + fileName: _jsxFileName, + lineNumber: 74 + } + }, content); + } + }]); + + _inherits(InspectorOverlay, _React$Component); + + return InspectorOverlay; + }(React.Component); + + InspectorOverlay.propTypes = { + inspected: PropTypes.shape({ + frame: PropTypes.object, + style: PropTypes.any + }), + inspectedViewTag: PropTypes.number, + onTouchViewTag: PropTypes.func.isRequired + }; + InspectorOverlay = _wrapComponent("InspectorOverlay")(InspectorOverlay); + var styles = StyleSheet.create({ + inspector: { + backgroundColor: 'transparent', + position: 'absolute', + left: 0, + top: 0, + right: 0 + } + }); + module.exports = InspectorOverlay; +},412,[1,11,203,413,212,200,201,218,227],"node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/ElementBox.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + ElementBox: { + displayName: "ElementBox" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/ElementBox.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var View = _$$_REQUIRE(_dependencyMap[3], 'View'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var BorderBox = _$$_REQUIRE(_dependencyMap[5], 'BorderBox'); + + var resolveBoxStyle = _$$_REQUIRE(_dependencyMap[6], 'resolveBoxStyle'); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[7], 'flattenStyle'); + + var ElementBox = function (_React$Component) { + function ElementBox() { + _classCallCheck(this, ElementBox); + + return _possibleConstructorReturn(this, _getPrototypeOf(ElementBox).apply(this, arguments)); + } + + _createClass(ElementBox, [{ + key: "render", + value: function render() { + var style = flattenStyle(this.props.style) || {}; + var margin = resolveBoxStyle('margin', style); + var padding = resolveBoxStyle('padding', style); + var frameStyle = this.props.frame; + + if (margin) { + frameStyle = { + top: frameStyle.top - margin.top, + left: frameStyle.left - margin.left, + height: frameStyle.height + margin.top + margin.bottom, + width: frameStyle.width + margin.left + margin.right + }; + } + + var contentStyle = { + width: this.props.frame.width, + height: this.props.frame.height + }; + + if (padding) { + contentStyle = { + width: contentStyle.width - padding.left - padding.right, + height: contentStyle.height - padding.top - padding.bottom + }; + } + + return React.createElement(View, { + style: [styles.frame, frameStyle], + pointerEvents: "none", + __source: { + fileName: _jsxFileName, + lineNumber: 46 + } + }, React.createElement(BorderBox, { + box: margin, + style: styles.margin, + __source: { + fileName: _jsxFileName, + lineNumber: 47 + } + }, React.createElement(BorderBox, { + box: padding, + style: styles.padding, + __source: { + fileName: _jsxFileName, + lineNumber: 48 + } + }, React.createElement(View, { + style: [styles.content, contentStyle], + __source: { + fileName: _jsxFileName, + lineNumber: 49 + } + })))); + } + }]); + + _inherits(ElementBox, _React$Component); + + return ElementBox; + }(React.Component); + + ElementBox = _wrapComponent("ElementBox")(ElementBox); + var styles = StyleSheet.create({ + frame: { + position: 'absolute' + }, + content: { + backgroundColor: 'rgba(200, 230, 255, 0.8)' + }, + padding: { + borderColor: 'rgba(77, 255, 0, 0.3)' + }, + margin: { + borderColor: 'rgba(255, 132, 0, 0.3)' + } + }); + module.exports = ElementBox; +},413,[1,11,200,227,201,414,415,226],"node_modules/react-native/Libraries/Inspector/ElementBox.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/BorderBox.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + BorderBox: { + displayName: "BorderBox" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/BorderBox.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var View = _$$_REQUIRE(_dependencyMap[3], 'View'); + + var BorderBox = function (_React$Component) { + function BorderBox() { + _classCallCheck(this, BorderBox); + + return _possibleConstructorReturn(this, _getPrototypeOf(BorderBox).apply(this, arguments)); + } + + _createClass(BorderBox, [{ + key: "render", + value: function render() { + var box = this.props.box; + + if (!box) { + return this.props.children; + } + + var style = { + borderTopWidth: box.top, + borderBottomWidth: box.bottom, + borderLeftWidth: box.left, + borderRightWidth: box.right + }; + return React.createElement(View, { + style: [style, this.props.style], + __source: { + fileName: _jsxFileName, + lineNumber: 28 + } + }, this.props.children); + } + }]); + + _inherits(BorderBox, _React$Component); + + return BorderBox; + }(React.Component); + + BorderBox = _wrapComponent("BorderBox")(BorderBox); + module.exports = BorderBox; +},414,[1,11,200,227],"node_modules/react-native/Libraries/Inspector/BorderBox.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function resolveBoxStyle(prefix, style) { + var res = {}; + var subs = ['top', 'left', 'bottom', 'right']; + var set = false; + subs.forEach(function (sub) { + res[sub] = style[prefix] || 0; + }); + + if (style[prefix]) { + set = true; + } + + if (style[prefix + 'Vertical']) { + res.top = res.bottom = style[prefix + 'Vertical']; + set = true; + } + + if (style[prefix + 'Horizontal']) { + res.left = res.right = style[prefix + 'Horizontal']; + set = true; + } + + subs.forEach(function (sub) { + var val = style[prefix + capFirst(sub)]; + + if (val) { + res[sub] = val; + set = true; + } + }); + + if (!set) { + return; + } + + return res; + } + + function capFirst(text) { + return text[0].toUpperCase() + text.slice(1); + } + + module.exports = resolveBoxStyle; +},415,[],"node_modules/react-native/Libraries/Inspector/resolveBoxStyle.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/InspectorPanel.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + InspectorPanel: { + displayName: "InspectorPanel" + }, + Button: { + displayName: "Button" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/InspectorPanel.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ElementProperties = _$$_REQUIRE(_dependencyMap[2], 'ElementProperties'); + + var NetworkOverlay = _$$_REQUIRE(_dependencyMap[3], 'NetworkOverlay'); + + var PerformanceOverlay = _$$_REQUIRE(_dependencyMap[4], 'PerformanceOverlay'); + + var React = _$$_REQUIRE(_dependencyMap[5], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[6], 'prop-types'); + + var ScrollView = _$$_REQUIRE(_dependencyMap[7], 'ScrollView'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[8], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[9], 'Text'); + + var TouchableHighlight = _$$_REQUIRE(_dependencyMap[10], 'TouchableHighlight'); + + var View = _$$_REQUIRE(_dependencyMap[11], 'View'); + + var InspectorPanel = function (_React$Component) { + function InspectorPanel() { + _classCallCheck(this, InspectorPanel); + + return _possibleConstructorReturn(this, _getPrototypeOf(InspectorPanel).apply(this, arguments)); + } + + _createClass(InspectorPanel, [{ + key: "renderWaiting", + value: function renderWaiting() { + if (this.props.inspecting) { + return React.createElement(Text, { + style: styles.waitingText, + __source: { + fileName: _jsxFileName, + lineNumber: 28 + } + }, "Tap something to inspect it"); + } + + return React.createElement(Text, { + style: styles.waitingText, + __source: { + fileName: _jsxFileName, + lineNumber: 31 + } + }, "Nothing is inspected"); + } + }, { + key: "render", + value: function render() { + var contents; + + if (this.props.inspected) { + contents = React.createElement(ScrollView, { + style: styles.properties, + __source: { + fileName: _jsxFileName, + lineNumber: 38 + } + }, React.createElement(ElementProperties, { + style: this.props.inspected.style, + frame: this.props.inspected.frame, + source: this.props.inspected.source, + hierarchy: this.props.hierarchy, + selection: this.props.selection, + setSelection: this.props.setSelection, + __source: { + fileName: _jsxFileName, + lineNumber: 39 + } + })); + } else if (this.props.perfing) { + contents = React.createElement(PerformanceOverlay, { + __source: { + fileName: _jsxFileName, + lineNumber: 50 + } + }); + } else if (this.props.networking) { + contents = React.createElement(NetworkOverlay, { + __source: { + fileName: _jsxFileName, + lineNumber: 52 + } + }); + } else { + contents = React.createElement(View, { + style: styles.waiting, + __source: { + fileName: _jsxFileName, + lineNumber: 54 + } + }, this.renderWaiting()); + } + + return React.createElement(View, { + style: styles.container, + __source: { + fileName: _jsxFileName, + lineNumber: 57 + } + }, !this.props.devtoolsIsOpen && contents, React.createElement(View, { + style: styles.buttonRow, + __source: { + fileName: _jsxFileName, + lineNumber: 59 + } + }, React.createElement(Button, { + title: 'Inspect', + pressed: this.props.inspecting, + onClick: this.props.setInspecting, + __source: { + fileName: _jsxFileName, + lineNumber: 60 + } + }), React.createElement(Button, { + title: 'Perf', + pressed: this.props.perfing, + onClick: this.props.setPerfing, + __source: { + fileName: _jsxFileName, + lineNumber: 65 + } + }), React.createElement(Button, { + title: 'Network', + pressed: this.props.networking, + onClick: this.props.setNetworking, + __source: { + fileName: _jsxFileName, + lineNumber: 70 + } + }), React.createElement(Button, { + title: 'Touchables', + pressed: this.props.touchTargeting, + onClick: this.props.setTouchTargeting, + __source: { + fileName: _jsxFileName, + lineNumber: 75 + } + }))); + } + }]); + + _inherits(InspectorPanel, _React$Component); + + return InspectorPanel; + }(React.Component); + + InspectorPanel = _wrapComponent("InspectorPanel")(InspectorPanel); + InspectorPanel.propTypes = { + devtoolsIsOpen: PropTypes.bool, + inspecting: PropTypes.bool, + setInspecting: PropTypes.func, + inspected: PropTypes.object, + perfing: PropTypes.bool, + setPerfing: PropTypes.func, + touchTargeting: PropTypes.bool, + setTouchTargeting: PropTypes.func, + networking: PropTypes.bool, + setNetworking: PropTypes.func + }; + + var Button = function (_React$Component2) { + function Button() { + _classCallCheck(this, Button); + + return _possibleConstructorReturn(this, _getPrototypeOf(Button).apply(this, arguments)); + } + + _createClass(Button, [{ + key: "render", + value: function render() { + var _this = this; + + return React.createElement(TouchableHighlight, { + onPress: function onPress() { + return _this.props.onClick(!_this.props.pressed); + }, + style: [styles.button, this.props.pressed && styles.buttonPressed], + __source: { + fileName: _jsxFileName, + lineNumber: 102 + } + }, React.createElement(Text, { + style: styles.buttonText, + __source: { + fileName: _jsxFileName, + lineNumber: 105 + } + }, this.props.title)); + } + }]); + + _inherits(Button, _React$Component2); + + return Button; + }(React.Component); + + Button = _wrapComponent("Button")(Button); + var styles = StyleSheet.create({ + buttonRow: { + flexDirection: 'row' + }, + button: { + backgroundColor: 'rgba(0, 0, 0, 0.3)', + margin: 2, + height: 30, + justifyContent: 'center', + alignItems: 'center' + }, + buttonPressed: { + backgroundColor: 'rgba(255, 255, 255, 0.3)' + }, + buttonText: { + textAlign: 'center', + color: 'white', + margin: 5 + }, + container: { + backgroundColor: 'rgba(0, 0, 0, 0.7)' + }, + properties: { + height: 200 + }, + waiting: { + height: 100 + }, + waitingText: { + fontSize: 20, + textAlign: 'center', + marginVertical: 20, + color: 'white' + } + }); + module.exports = InspectorPanel; +},416,[1,11,417,423,426,200,212,367,201,252,420,227],"node_modules/react-native/Libraries/Inspector/InspectorPanel.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/ElementProperties.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + ElementProperties: { + displayName: "ElementProperties" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/ElementProperties.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var BoxInspector = _$$_REQUIRE(_dependencyMap[2], 'BoxInspector'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var React = _$$_REQUIRE(_dependencyMap[4], 'React'); + + var StyleInspector = _$$_REQUIRE(_dependencyMap[5], 'StyleInspector'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[7], 'Text'); + + var TouchableHighlight = _$$_REQUIRE(_dependencyMap[8], 'TouchableHighlight'); + + var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[9], 'TouchableWithoutFeedback'); + + var View = _$$_REQUIRE(_dependencyMap[10], 'View'); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[11], 'flattenStyle'); + + var mapWithSeparator = _$$_REQUIRE(_dependencyMap[12], 'mapWithSeparator'); + + var openFileInEditor = _$$_REQUIRE(_dependencyMap[13], 'openFileInEditor'); + + var ElementProperties = function (_React$Component) { + function ElementProperties() { + _classCallCheck(this, ElementProperties); + + return _possibleConstructorReturn(this, _getPrototypeOf(ElementProperties).apply(this, arguments)); + } + + _createClass(ElementProperties, [{ + key: "render", + value: function render() { + var _this = this; + + var style = flattenStyle(this.props.style); + var selection = this.props.selection; + var openFileButton; + var source = this.props.source; + + var _ref = source || {}, + fileName = _ref.fileName, + lineNumber = _ref.lineNumber; + + if (fileName && lineNumber) { + var parts = fileName.split('/'); + var fileNameShort = parts[parts.length - 1]; + openFileButton = React.createElement(TouchableHighlight, { + style: styles.openButton, + onPress: openFileInEditor.bind(null, fileName, lineNumber), + __source: { + fileName: _jsxFileName, + lineNumber: 61 + } + }, React.createElement(Text, { + style: styles.openButtonTitle, + numberOfLines: 1, + __source: { + fileName: _jsxFileName, + lineNumber: 64 + } + }, fileNameShort, ":", lineNumber)); + } + + return React.createElement(TouchableWithoutFeedback, { + __source: { + fileName: _jsxFileName, + lineNumber: 73 + } + }, React.createElement(View, { + style: styles.info, + __source: { + fileName: _jsxFileName, + lineNumber: 74 + } + }, React.createElement(View, { + style: styles.breadcrumb, + __source: { + fileName: _jsxFileName, + lineNumber: 75 + } + }, mapWithSeparator(this.props.hierarchy, function (hierarchyItem, i) { + return React.createElement(TouchableHighlight, { + key: 'item-' + i, + style: [styles.breadItem, i === selection && styles.selected], + onPress: function onPress() { + return _this.props.setSelection(i); + }, + __source: { + fileName: _jsxFileName, + lineNumber: 79 + } + }, React.createElement(Text, { + style: styles.breadItemText, + __source: { + fileName: _jsxFileName, + lineNumber: 84 + } + }, hierarchyItem.name)); + }, function (i) { + return React.createElement(Text, { + key: 'sep-' + i, + style: styles.breadSep, + __source: { + fileName: _jsxFileName, + lineNumber: 88 + } + }, "\u25B8"); + })), React.createElement(View, { + style: styles.row, + __source: { + fileName: _jsxFileName, + lineNumber: 94 + } + }, React.createElement(View, { + style: styles.col, + __source: { + fileName: _jsxFileName, + lineNumber: 95 + } + }, React.createElement(StyleInspector, { + style: style, + __source: { + fileName: _jsxFileName, + lineNumber: 96 + } + }), openFileButton), React.createElement(BoxInspector, { + style: style, + frame: this.props.frame, + __source: { + fileName: _jsxFileName, + lineNumber: 101 + } + })))); + } + }]); + + _inherits(ElementProperties, _React$Component); + + return ElementProperties; + }(React.Component); + + ElementProperties.propTypes = { + hierarchy: PropTypes.array.isRequired, + style: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.number]), + source: PropTypes.shape({ + fileName: PropTypes.string, + lineNumber: PropTypes.number + }) + }; + ElementProperties = _wrapComponent("ElementProperties")(ElementProperties); + var styles = StyleSheet.create({ + breadSep: { + fontSize: 8, + color: 'white' + }, + breadcrumb: { + flexDirection: 'row', + flexWrap: 'wrap', + alignItems: 'flex-start', + marginBottom: 5 + }, + selected: { + borderColor: 'white', + borderRadius: 5 + }, + breadItem: { + borderWidth: 1, + borderColor: 'transparent', + marginHorizontal: 2 + }, + breadItemText: { + fontSize: 10, + color: 'white', + marginHorizontal: 5 + }, + row: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-between' + }, + col: { + flex: 1 + }, + info: { + padding: 10 + }, + openButton: { + padding: 10, + backgroundColor: '#000', + marginVertical: 5, + marginRight: 5, + borderRadius: 2 + }, + openButtonTitle: { + color: 'white', + fontSize: 8 + } + }); + module.exports = ElementProperties; +},417,[1,11,418,212,200,419,201,252,420,383,227,226,421,422],"node_modules/react-native/Libraries/Inspector/ElementProperties.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/BoxInspector.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + BoxInspector: { + displayName: "BoxInspector" + }, + BoxContainer: { + displayName: "BoxContainer" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/BoxInspector.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); + + var View = _$$_REQUIRE(_dependencyMap[5], 'View'); + + var resolveBoxStyle = _$$_REQUIRE(_dependencyMap[6], 'resolveBoxStyle'); + + var blank = { + top: 0, + left: 0, + right: 0, + bottom: 0 + }; + + var BoxInspector = function (_React$Component) { + function BoxInspector() { + _classCallCheck(this, BoxInspector); + + return _possibleConstructorReturn(this, _getPrototypeOf(BoxInspector).apply(this, arguments)); + } + + _createClass(BoxInspector, [{ + key: "render", + value: function render() { + var frame = this.props.frame; + var style = this.props.style; + var margin = style && resolveBoxStyle('margin', style) || blank; + var padding = style && resolveBoxStyle('padding', style) || blank; + return React.createElement(BoxContainer, { + title: "margin", + titleStyle: styles.marginLabel, + box: margin, + __source: { + fileName: _jsxFileName, + lineNumber: 33 + } + }, React.createElement(BoxContainer, { + title: "padding", + box: padding, + __source: { + fileName: _jsxFileName, + lineNumber: 34 + } + }, React.createElement(View, { + __source: { + fileName: _jsxFileName, + lineNumber: 35 + } + }, React.createElement(Text, { + style: styles.innerText, + __source: { + fileName: _jsxFileName, + lineNumber: 36 + } + }, "(", (frame.left || 0).toFixed(1), ", ", (frame.top || 0).toFixed(1), ")"), React.createElement(Text, { + style: styles.innerText, + __source: { + fileName: _jsxFileName, + lineNumber: 39 + } + }, (frame.width || 0).toFixed(1), " \xD7", ' ', (frame.height || 0).toFixed(1))))); + } + }]); + + _inherits(BoxInspector, _React$Component); + + return BoxInspector; + }(React.Component); + + BoxInspector = _wrapComponent("BoxInspector")(BoxInspector); + + var BoxContainer = function (_React$Component2) { + function BoxContainer() { + _classCallCheck(this, BoxContainer); + + return _possibleConstructorReturn(this, _getPrototypeOf(BoxContainer).apply(this, arguments)); + } + + _createClass(BoxContainer, [{ + key: "render", + value: function render() { + var box = this.props.box; + return React.createElement(View, { + style: styles.box, + __source: { + fileName: _jsxFileName, + lineNumber: 54 + } + }, React.createElement(View, { + style: styles.row, + __source: { + fileName: _jsxFileName, + lineNumber: 55 + } + }, React.createElement(Text, { + style: [this.props.titleStyle, styles.label], + __source: { + fileName: _jsxFileName, + lineNumber: 57 + } + }, this.props.title), React.createElement(Text, { + style: styles.boxText, + __source: { + fileName: _jsxFileName, + lineNumber: 60 + } + }, box.top)), React.createElement(View, { + style: styles.row, + __source: { + fileName: _jsxFileName, + lineNumber: 62 + } + }, React.createElement(Text, { + style: styles.boxText, + __source: { + fileName: _jsxFileName, + lineNumber: 63 + } + }, box.left), this.props.children, React.createElement(Text, { + style: styles.boxText, + __source: { + fileName: _jsxFileName, + lineNumber: 65 + } + }, box.right)), React.createElement(Text, { + style: styles.boxText, + __source: { + fileName: _jsxFileName, + lineNumber: 67 + } + }, box.bottom)); + } + }]); + + _inherits(BoxContainer, _React$Component2); + + return BoxContainer; + }(React.Component); + + BoxContainer = _wrapComponent("BoxContainer")(BoxContainer); + var styles = StyleSheet.create({ + row: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-around' + }, + marginLabel: { + width: 60 + }, + label: { + fontSize: 10, + color: 'rgb(255,100,0)', + marginLeft: 5, + flex: 1, + textAlign: 'left', + top: -3 + }, + buffer: { + fontSize: 10, + color: 'yellow', + flex: 1, + textAlign: 'center' + }, + innerText: { + color: 'yellow', + fontSize: 12, + textAlign: 'center', + width: 70 + }, + box: { + borderWidth: 1, + borderColor: 'grey' + }, + boxText: { + color: 'white', + fontSize: 12, + marginHorizontal: 3, + marginVertical: 2, + textAlign: 'center' + } + }); + module.exports = BoxInspector; +},418,[1,11,200,201,252,227,415],"node_modules/react-native/Libraries/Inspector/BoxInspector.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/StyleInspector.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + StyleInspector: { + displayName: "StyleInspector" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/StyleInspector.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); + + var View = _$$_REQUIRE(_dependencyMap[5], 'View'); + + var StyleInspector = function (_React$Component) { + function StyleInspector() { + _classCallCheck(this, StyleInspector); + + return _possibleConstructorReturn(this, _getPrototypeOf(StyleInspector).apply(this, arguments)); + } + + _createClass(StyleInspector, [{ + key: "render", + value: function render() { + var _this = this; + + if (!this.props.style) { + return React.createElement(Text, { + style: styles.noStyle, + __source: { + fileName: _jsxFileName, + lineNumber: 21 + } + }, "No style"); + } + + var names = Object.keys(this.props.style); + return React.createElement(View, { + style: styles.container, + __source: { + fileName: _jsxFileName, + lineNumber: 25 + } + }, React.createElement(View, { + __source: { + fileName: _jsxFileName, + lineNumber: 26 + } + }, names.map(function (name) { + return React.createElement(Text, { + key: name, + style: styles.attr, + __source: { + fileName: _jsxFileName, + lineNumber: 28 + } + }, name, ":"); + })), React.createElement(View, { + __source: { + fileName: _jsxFileName, + lineNumber: 34 + } + }, names.map(function (name) { + var value = typeof _this.props.style[name] === 'object' ? JSON.stringify(_this.props.style[name]) : _this.props.style[name]; + return React.createElement(Text, { + key: name, + style: styles.value, + __source: { + fileName: _jsxFileName, + lineNumber: 41 + } + }, value); + }))); + } + }]); + + _inherits(StyleInspector, _React$Component); + + return StyleInspector; + }(React.Component); + + StyleInspector = _wrapComponent("StyleInspector")(StyleInspector); + var styles = StyleSheet.create({ + container: { + flexDirection: 'row' + }, + row: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-around' + }, + attr: { + fontSize: 10, + color: '#ccc' + }, + value: { + fontSize: 10, + color: 'white', + marginLeft: 10 + }, + noStyle: { + color: 'white', + fontSize: 10 + } + }); + module.exports = StyleInspector; +},419,[1,11,200,201,252,227],"node_modules/react-native/Libraries/Inspector/StyleInspector.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); + + var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[1], 'NativeMethodsMixin'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); + + var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[4], 'React'); + + var ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[5], 'ReactNativeViewAttributes'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); + + var Touchable = _$$_REQUIRE(_dependencyMap[7], 'Touchable'); + + var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[8], 'TouchableWithoutFeedback'); + + var View = _$$_REQUIRE(_dependencyMap[9], 'View'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[10], 'ViewPropTypes'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[11], 'create-react-class'); + + var ensurePositiveDelayProps = _$$_REQUIRE(_dependencyMap[12], 'ensurePositiveDelayProps'); + + var DEFAULT_PROPS = { + activeOpacity: 0.85, + delayPressOut: 100, + underlayColor: 'black' + }; + var PRESS_RETENTION_OFFSET = { + top: 20, + left: 20, + right: 20, + bottom: 30 + }; + var TouchableHighlight = createReactClass({ + displayName: 'TouchableHighlight', + propTypes: _objectSpread({}, TouchableWithoutFeedback.propTypes, { + activeOpacity: PropTypes.number, + underlayColor: ColorPropType, + style: ViewPropTypes.style, + onShowUnderlay: PropTypes.func, + onHideUnderlay: PropTypes.func, + hasTVPreferredFocus: PropTypes.bool, + tvParallaxProperties: PropTypes.object, + testOnly_pressed: PropTypes.bool + }), + mixins: [NativeMethodsMixin, Touchable.Mixin], + getDefaultProps: function getDefaultProps() { + return DEFAULT_PROPS; + }, + getInitialState: function getInitialState() { + this._isMounted = false; + + if (this.props.testOnly_pressed) { + return _objectSpread({}, this.touchableGetInitialState(), { + extraChildStyle: { + opacity: this.props.activeOpacity + }, + extraUnderlayStyle: { + backgroundColor: this.props.underlayColor + } + }); + } else { + return _objectSpread({}, this.touchableGetInitialState(), { + extraChildStyle: null, + extraUnderlayStyle: null + }); + } + }, + componentDidMount: function componentDidMount() { + this._isMounted = true; + ensurePositiveDelayProps(this.props); + }, + componentWillUnmount: function componentWillUnmount() { + this._isMounted = false; + clearTimeout(this._hideTimeout); + }, + UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { + ensurePositiveDelayProps(nextProps); + }, + viewConfig: { + uiViewClassName: 'RCTView', + validAttributes: ReactNativeViewAttributes.RCTView + }, + touchableHandleActivePressIn: function touchableHandleActivePressIn(e) { + clearTimeout(this._hideTimeout); + this._hideTimeout = null; + + this._showUnderlay(); + + this.props.onPressIn && this.props.onPressIn(e); + }, + touchableHandleActivePressOut: function touchableHandleActivePressOut(e) { + if (!this._hideTimeout) { + this._hideUnderlay(); + } + + this.props.onPressOut && this.props.onPressOut(e); + }, + touchableHandlePress: function touchableHandlePress(e) { + clearTimeout(this._hideTimeout); + + if (!Platform.isTV) { + this._showUnderlay(); + + this._hideTimeout = setTimeout(this._hideUnderlay, this.props.delayPressOut); + } + + this.props.onPress && this.props.onPress(e); + }, + touchableHandleLongPress: function touchableHandleLongPress(e) { + this.props.onLongPress && this.props.onLongPress(e); + }, + touchableGetPressRectOffset: function touchableGetPressRectOffset() { + return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET; + }, + touchableGetHitSlop: function touchableGetHitSlop() { + return this.props.hitSlop; + }, + touchableGetHighlightDelayMS: function touchableGetHighlightDelayMS() { + return this.props.delayPressIn; + }, + touchableGetLongPressDelayMS: function touchableGetLongPressDelayMS() { + return this.props.delayLongPress; + }, + touchableGetPressOutDelayMS: function touchableGetPressOutDelayMS() { + return this.props.delayPressOut; + }, + _showUnderlay: function _showUnderlay() { + if (!this._isMounted || !this._hasPressHandler()) { + return; + } + + this.setState({ + extraChildStyle: { + opacity: this.props.activeOpacity + }, + extraUnderlayStyle: { + backgroundColor: this.props.underlayColor + } + }); + this.props.onShowUnderlay && this.props.onShowUnderlay(); + }, + _hideUnderlay: function _hideUnderlay() { + clearTimeout(this._hideTimeout); + this._hideTimeout = null; + + if (this.props.testOnly_pressed) { + return; + } + + if (this._hasPressHandler()) { + this.setState({ + extraChildStyle: null, + extraUnderlayStyle: null + }); + this.props.onHideUnderlay && this.props.onHideUnderlay(); + } + }, + _hasPressHandler: function _hasPressHandler() { + return !!(this.props.onPress || this.props.onPressIn || this.props.onPressOut || this.props.onLongPress); + }, + render: function render() { + var child = React.Children.only(this.props.children); + return React.createElement(View, { + accessible: this.props.accessible !== false, + accessibilityLabel: this.props.accessibilityLabel, + accessibilityComponentType: this.props.accessibilityComponentType, + accessibilityTraits: this.props.accessibilityTraits, + style: StyleSheet.compose(this.props.style, this.state.extraUnderlayStyle), + onLayout: this.props.onLayout, + hitSlop: this.props.hitSlop, + isTVSelectable: true, + tvParallaxProperties: this.props.tvParallaxProperties, + hasTVPreferredFocus: this.props.hasTVPreferredFocus, + onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder, + onResponderTerminationRequest: this.touchableHandleResponderTerminationRequest, + onResponderGrant: this.touchableHandleResponderGrant, + onResponderMove: this.touchableHandleResponderMove, + onResponderRelease: this.touchableHandleResponderRelease, + onResponderTerminate: this.touchableHandleResponderTerminate, + nativeID: this.props.nativeID, + testID: this.props.testID, + __source: { + fileName: _jsxFileName, + lineNumber: 348 + } + }, React.cloneElement(child, { + style: StyleSheet.compose(child.props.style, this.state.extraChildStyle) + }), Touchable.renderDebugView({ + color: 'green', + hitSlop: this.props.hitSlop + })); + } + }); + module.exports = TouchableHighlight; +},420,[207,364,212,176,200,247,201,257,383,227,376,365,384],"node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function mapWithSeparator(items, itemRenderer, spacerRenderer) { + var mapped = []; + + if (items.length > 0) { + mapped.push(itemRenderer(items[0], 0, items)); + + for (var ii = 1; ii < items.length; ii++) { + mapped.push(spacerRenderer(ii - 1), itemRenderer(items[ii], ii, items)); + } + } + + return mapped; + } + + module.exports = mapWithSeparator; +},421,[],"node_modules/react-native/Libraries/Utilities/mapWithSeparator.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var getDevServer = _$$_REQUIRE(_dependencyMap[0], 'getDevServer'); + + function openFileInEditor(file, lineNumber) { + fetch(getDevServer().url + 'open-stack-frame', { + method: 'POST', + body: JSON.stringify({ + file: file, + lineNumber: lineNumber + }) + }); + } + + module.exports = openFileInEditor; +},422,[273],"node_modules/react-native/Libraries/Core/Devtools/openFileInEditor.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + var _components = { + NetworkOverlay: { + displayName: "NetworkOverlay" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/NetworkOverlay.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ListView = _$$_REQUIRE(_dependencyMap[2], 'ListView'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var ScrollView = _$$_REQUIRE(_dependencyMap[4], 'ScrollView'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[6], 'Text'); + + var TouchableHighlight = _$$_REQUIRE(_dependencyMap[7], 'TouchableHighlight'); + + var View = _$$_REQUIRE(_dependencyMap[8], 'View'); + + var WebSocketInterceptor = _$$_REQUIRE(_dependencyMap[9], 'WebSocketInterceptor'); + + var XHRInterceptor = _$$_REQUIRE(_dependencyMap[10], 'XHRInterceptor'); + + var LISTVIEW_CELL_HEIGHT = 15; + var SEPARATOR_THICKNESS = 2; + var nextXHRId = 0; + + var NetworkOverlay = function (_React$Component) { + function NetworkOverlay(props) { + var _this; + + _classCallCheck(this, NetworkOverlay); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(NetworkOverlay).call(this, props)); + _this._requests = []; + _this._detailViewItems = []; + _this._listViewDataSource = new ListView.DataSource({ + rowHasChanged: function rowHasChanged(r1, r2) { + return r1 !== r2; + } + }); + _this.state = { + dataSource: _this._listViewDataSource.cloneWithRows([]), + newDetailInfo: false, + detailRowID: null + }; + _this._listViewHighlighted = false; + _this._listViewHeight = 0; + _this._captureRequestListView = _this._captureRequestListView.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this._captureDetailScrollView = _this._captureDetailScrollView.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this._listViewOnLayout = _this._listViewOnLayout.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this._renderRow = _this._renderRow.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this._closeButtonClicked = _this._closeButtonClicked.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this._socketIdMap = {}; + _this._xhrIdMap = {}; + return _this; + } + + _createClass(NetworkOverlay, [{ + key: "_enableXHRInterception", + value: function _enableXHRInterception() { + var _this2 = this; + + if (XHRInterceptor.isInterceptorEnabled()) { + return; + } + + XHRInterceptor.setOpenCallback(function (method, url, xhr) { + xhr._index = nextXHRId++; + var xhrIndex = _this2._requests.length; + _this2._xhrIdMap[xhr._index] = xhrIndex; + var _xhr = { + type: 'XMLHttpRequest', + method: method, + url: url + }; + + _this2._requests.push(_xhr); + + _this2._detailViewItems.push([]); + + _this2._genDetailViewItem(xhrIndex); + + _this2.setState({ + dataSource: _this2._listViewDataSource.cloneWithRows(_this2._requests) + }, _this2._scrollToBottom()); + }); + XHRInterceptor.setRequestHeaderCallback(function (header, value, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + + if (xhrIndex === -1) { + return; + } + + var networkInfo = _this2._requests[xhrIndex]; + + if (!networkInfo.requestHeaders) { + networkInfo.requestHeaders = {}; + } + + networkInfo.requestHeaders[header] = value; + + _this2._genDetailViewItem(xhrIndex); + }); + XHRInterceptor.setSendCallback(function (data, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + + if (xhrIndex === -1) { + return; + } + + _this2._requests[xhrIndex].dataSent = data; + + _this2._genDetailViewItem(xhrIndex); + }); + XHRInterceptor.setHeaderReceivedCallback(function (type, size, responseHeaders, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + + if (xhrIndex === -1) { + return; + } + + var networkInfo = _this2._requests[xhrIndex]; + networkInfo.responseContentType = type; + networkInfo.responseSize = size; + networkInfo.responseHeaders = responseHeaders; + + _this2._genDetailViewItem(xhrIndex); + }); + XHRInterceptor.setResponseCallback(function (status, timeout, response, responseURL, responseType, xhr) { + var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); + + if (xhrIndex === -1) { + return; + } + + var networkInfo = _this2._requests[xhrIndex]; + networkInfo.status = status; + networkInfo.timeout = timeout; + networkInfo.response = response; + networkInfo.responseURL = responseURL; + networkInfo.responseType = responseType; + + _this2._genDetailViewItem(xhrIndex); + }); + XHRInterceptor.enableInterception(); + } + }, { + key: "_enableWebSocketInterception", + value: function _enableWebSocketInterception() { + var _this3 = this; + + if (WebSocketInterceptor.isInterceptorEnabled()) { + return; + } + + WebSocketInterceptor.setConnectCallback(function (url, protocols, options, socketId) { + var socketIndex = _this3._requests.length; + _this3._socketIdMap[socketId] = socketIndex; + var _webSocket = { + type: 'WebSocket', + url: url, + protocols: protocols + }; + + _this3._requests.push(_webSocket); + + _this3._detailViewItems.push([]); + + _this3._genDetailViewItem(socketIndex); + + _this3.setState({ + dataSource: _this3._listViewDataSource.cloneWithRows(_this3._requests) + }, _this3._scrollToBottom()); + }); + WebSocketInterceptor.setCloseCallback(function (statusCode, closeReason, socketId) { + var socketIndex = _this3._socketIdMap[socketId]; + + if (socketIndex === undefined) { + return; + } + + if (statusCode !== null && closeReason !== null) { + _this3._requests[socketIndex].status = statusCode; + _this3._requests[socketIndex].closeReason = closeReason; + } + + _this3._genDetailViewItem(socketIndex); + }); + WebSocketInterceptor.setSendCallback(function (data, socketId) { + var socketIndex = _this3._socketIdMap[socketId]; + + if (socketIndex === undefined) { + return; + } + + if (!_this3._requests[socketIndex].messages) { + _this3._requests[socketIndex].messages = ''; + } + + _this3._requests[socketIndex].messages += 'Sent: ' + JSON.stringify(data) + '\n'; + + _this3._genDetailViewItem(socketIndex); + }); + WebSocketInterceptor.setOnMessageCallback(function (socketId, message) { + var socketIndex = _this3._socketIdMap[socketId]; + + if (socketIndex === undefined) { + return; + } + + if (!_this3._requests[socketIndex].messages) { + _this3._requests[socketIndex].messages = ''; + } + + _this3._requests[socketIndex].messages += 'Received: ' + JSON.stringify(message) + '\n'; + + _this3._genDetailViewItem(socketIndex); + }); + WebSocketInterceptor.setOnCloseCallback(function (socketId, message) { + var socketIndex = _this3._socketIdMap[socketId]; + + if (socketIndex === undefined) { + return; + } + + _this3._requests[socketIndex].serverClose = message; + + _this3._genDetailViewItem(socketIndex); + }); + WebSocketInterceptor.setOnErrorCallback(function (socketId, message) { + var socketIndex = _this3._socketIdMap[socketId]; + + if (socketIndex === undefined) { + return; + } + + _this3._requests[socketIndex].serverError = message; + + _this3._genDetailViewItem(socketIndex); + }); + WebSocketInterceptor.enableInterception(); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this._enableXHRInterception(); + + this._enableWebSocketInterception(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + XHRInterceptor.disableInterception(); + WebSocketInterceptor.disableInterception(); + } + }, { + key: "_renderRow", + value: function _renderRow(rowData, sectionID, rowID, highlightRow) { + var _this4 = this; + + var urlCellViewStyle = styles.urlEvenCellView; + var methodCellViewStyle = styles.methodEvenCellView; + + if (rowID % 2 === 1) { + urlCellViewStyle = styles.urlOddCellView; + methodCellViewStyle = styles.methodOddCellView; + } + + return React.createElement(TouchableHighlight, { + onPress: function onPress() { + _this4._pressRow(rowID); + + highlightRow(sectionID, rowID); + }, + __source: { + fileName: _jsxFileName, + lineNumber: 297 + } + }, React.createElement(View, { + __source: { + fileName: _jsxFileName, + lineNumber: 302 + } + }, React.createElement(View, { + style: styles.tableRow, + __source: { + fileName: _jsxFileName, + lineNumber: 303 + } + }, React.createElement(View, { + style: urlCellViewStyle, + __source: { + fileName: _jsxFileName, + lineNumber: 304 + } + }, React.createElement(Text, { + style: styles.cellText, + numberOfLines: 1, + __source: { + fileName: _jsxFileName, + lineNumber: 305 + } + }, rowData.url)), React.createElement(View, { + style: methodCellViewStyle, + __source: { + fileName: _jsxFileName, + lineNumber: 309 + } + }, React.createElement(Text, { + style: styles.cellText, + numberOfLines: 1, + __source: { + fileName: _jsxFileName, + lineNumber: 310 + } + }, this._getTypeShortName(rowData.type)))))); + } + }, { + key: "_renderSeperator", + value: function _renderSeperator(sectionID, rowID, adjacentRowHighlighted) { + return React.createElement(View, { + key: sectionID + "-" + rowID, + style: { + height: adjacentRowHighlighted ? SEPARATOR_THICKNESS : 0, + backgroundColor: adjacentRowHighlighted ? '#3B5998' : '#CCCCCC' + }, + __source: { + fileName: _jsxFileName, + lineNumber: 326 + } + }); + } + }, { + key: "_scrollToBottom", + value: function _scrollToBottom() { + if (this._listView) { + var scrollResponder = this._listView.getScrollResponder(); + + if (scrollResponder) { + var scrollY = Math.max(this._requests.length * LISTVIEW_CELL_HEIGHT + (this._listViewHighlighted ? 2 * SEPARATOR_THICKNESS : 0) - this._listViewHeight, 0); + scrollResponder.scrollResponderScrollTo({ + x: 0, + y: scrollY, + animated: true + }); + } + } + } + }, { + key: "_captureRequestListView", + value: function _captureRequestListView(listRef) { + this._listView = listRef; + } + }, { + key: "_listViewOnLayout", + value: function _listViewOnLayout(event) { + var height = event.nativeEvent.layout.height; + this._listViewHeight = height; + } + }, { + key: "_pressRow", + value: function _pressRow(rowID) { + this._listViewHighlighted = true; + this.setState({ + detailRowID: rowID + }, this._scrollToTop()); + } + }, { + key: "_scrollToTop", + value: function _scrollToTop() { + if (this._scrollView) { + this._scrollView.scrollTo({ + y: 0, + animated: false + }); + } + } + }, { + key: "_captureDetailScrollView", + value: function _captureDetailScrollView(scrollRef) { + this._scrollView = scrollRef; + } + }, { + key: "_closeButtonClicked", + value: function _closeButtonClicked() { + this.setState({ + detailRowID: null + }); + } + }, { + key: "_getStringByValue", + value: function _getStringByValue(value) { + if (value === undefined) { + return 'undefined'; + } + + if (typeof value === 'object') { + return JSON.stringify(value); + } + + if (typeof value === 'string' && value.length > 500) { + return String(value).substr(0, 500).concat('\n***TRUNCATED TO 500 CHARACTERS***'); + } + + return value; + } + }, { + key: "_getRequestIndexByXHRID", + value: function _getRequestIndexByXHRID(index) { + if (index === undefined) { + return -1; + } + + var xhrIndex = this._xhrIdMap[index]; + + if (xhrIndex === undefined) { + return -1; + } else { + return xhrIndex; + } + } + }, { + key: "_getTypeShortName", + value: function _getTypeShortName(type) { + if (type === 'XMLHttpRequest') { + return 'XHR'; + } else if (type === 'WebSocket') { + return 'WS'; + } + + return ''; + } + }, { + key: "_genDetailViewItem", + value: function _genDetailViewItem(index) { + this._detailViewItems[index] = []; + var detailViewItem = this._detailViewItems[index]; + var requestItem = this._requests[index]; + + for (var _key in requestItem) { + detailViewItem.push(React.createElement(View, { + style: styles.detailViewRow, + key: _key, + __source: { + fileName: _jsxFileName, + lineNumber: 439 + } + }, React.createElement(Text, { + style: [styles.detailViewText, styles.detailKeyCellView], + __source: { + fileName: _jsxFileName, + lineNumber: 440 + } + }, _key), React.createElement(Text, { + style: [styles.detailViewText, styles.detailValueCellView], + __source: { + fileName: _jsxFileName, + lineNumber: 443 + } + }, this._getStringByValue(requestItem[_key])))); + } + + if (this.state.detailRowID != null && Number(this.state.detailRowID) === index) { + this.setState({ + newDetailInfo: true + }); + } + } + }, { + key: "render", + value: function render() { + return React.createElement(View, { + style: styles.container, + __source: { + fileName: _jsxFileName, + lineNumber: 460 + } + }, this.state.detailRowID != null && React.createElement(TouchableHighlight, { + style: styles.closeButton, + onPress: this._closeButtonClicked, + __source: { + fileName: _jsxFileName, + lineNumber: 462 + } + }, React.createElement(View, { + __source: { + fileName: _jsxFileName, + lineNumber: 465 + } + }, React.createElement(Text, { + style: styles.clostButtonText, + __source: { + fileName: _jsxFileName, + lineNumber: 466 + } + }, "v"))), this.state.detailRowID != null && React.createElement(ScrollView, { + style: styles.detailScrollView, + ref: this._captureDetailScrollView, + __source: { + fileName: _jsxFileName, + lineNumber: 471 + } + }, this._detailViewItems[this.state.detailRowID]), React.createElement(View, { + style: styles.listViewTitle, + __source: { + fileName: _jsxFileName, + lineNumber: 477 + } + }, this._requests.length > 0 && React.createElement(View, { + style: styles.tableRow, + __source: { + fileName: _jsxFileName, + lineNumber: 479 + } + }, React.createElement(View, { + style: styles.urlTitleCellView, + __source: { + fileName: _jsxFileName, + lineNumber: 480 + } + }, React.createElement(Text, { + style: styles.cellText, + numberOfLines: 1, + __source: { + fileName: _jsxFileName, + lineNumber: 481 + } + }, "URL")), React.createElement(View, { + style: styles.methodTitleCellView, + __source: { + fileName: _jsxFileName, + lineNumber: 485 + } + }, React.createElement(Text, { + style: styles.cellText, + numberOfLines: 1, + __source: { + fileName: _jsxFileName, + lineNumber: 486 + } + }, "Type")))), React.createElement(ListView, { + style: styles.listView, + ref: this._captureRequestListView, + dataSource: this.state.dataSource, + renderRow: this._renderRow, + enableEmptySections: true, + renderSeparator: this._renderSeperator, + onLayout: this._listViewOnLayout, + __source: { + fileName: _jsxFileName, + lineNumber: 493 + } + })); + } + }]); + + _inherits(NetworkOverlay, _React$Component); + + return NetworkOverlay; + }(React.Component); + + NetworkOverlay = _wrapComponent("NetworkOverlay")(NetworkOverlay); + var styles = StyleSheet.create({ + container: { + paddingTop: 10, + paddingBottom: 10, + paddingLeft: 5, + paddingRight: 5 + }, + listViewTitle: { + height: 20 + }, + listView: { + flex: 1, + height: 60 + }, + tableRow: { + flexDirection: 'row', + flex: 1 + }, + cellText: { + color: 'white', + fontSize: 12 + }, + methodTitleCellView: { + height: 18, + borderColor: '#DCD7CD', + borderTopWidth: 1, + borderBottomWidth: 1, + borderRightWidth: 1, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: '#444', + flex: 1 + }, + urlTitleCellView: { + height: 18, + borderColor: '#DCD7CD', + borderTopWidth: 1, + borderBottomWidth: 1, + borderLeftWidth: 1, + borderRightWidth: 1, + justifyContent: 'center', + backgroundColor: '#444', + flex: 5, + paddingLeft: 3 + }, + methodOddCellView: { + height: 15, + borderColor: '#DCD7CD', + borderRightWidth: 1, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: '#000', + flex: 1 + }, + urlOddCellView: { + height: 15, + borderColor: '#DCD7CD', + borderLeftWidth: 1, + borderRightWidth: 1, + justifyContent: 'center', + backgroundColor: '#000', + flex: 5, + paddingLeft: 3 + }, + methodEvenCellView: { + height: 15, + borderColor: '#DCD7CD', + borderRightWidth: 1, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: '#888', + flex: 1 + }, + urlEvenCellView: { + height: 15, + borderColor: '#DCD7CD', + borderLeftWidth: 1, + borderRightWidth: 1, + justifyContent: 'center', + backgroundColor: '#888', + flex: 5, + paddingLeft: 3 + }, + detailScrollView: { + flex: 1, + height: 180, + marginTop: 5, + marginBottom: 5 + }, + detailKeyCellView: { + flex: 1.3 + }, + detailValueCellView: { + flex: 2 + }, + detailViewRow: { + flexDirection: 'row', + paddingHorizontal: 3 + }, + detailViewText: { + color: 'white', + fontSize: 11 + }, + clostButtonText: { + color: 'white', + fontSize: 10 + }, + closeButton: { + marginTop: 5, + backgroundColor: '#888', + justifyContent: 'center', + alignItems: 'center' + } + }); + module.exports = NetworkOverlay; +},423,[1,11,390,200,367,201,252,420,227,424,425],"node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var RCTWebSocketModule = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').WebSocketModule; + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); + + var base64 = _$$_REQUIRE(_dependencyMap[2], 'base64-js'); + + var originalRCTWebSocketConnect = RCTWebSocketModule.connect; + var originalRCTWebSocketSend = RCTWebSocketModule.send; + var originalRCTWebSocketSendBinary = RCTWebSocketModule.sendBinary; + var originalRCTWebSocketClose = RCTWebSocketModule.close; + var eventEmitter; + var subscriptions; + var closeCallback; + var sendCallback; + var connectCallback; + var onOpenCallback; + var onMessageCallback; + var onErrorCallback; + var onCloseCallback; + var _isInterceptorEnabled = false; + var WebSocketInterceptor = { + setCloseCallback: function setCloseCallback(callback) { + closeCallback = callback; + }, + setSendCallback: function setSendCallback(callback) { + sendCallback = callback; + }, + setConnectCallback: function setConnectCallback(callback) { + connectCallback = callback; + }, + setOnOpenCallback: function setOnOpenCallback(callback) { + onOpenCallback = callback; + }, + setOnMessageCallback: function setOnMessageCallback(callback) { + onMessageCallback = callback; + }, + setOnErrorCallback: function setOnErrorCallback(callback) { + onErrorCallback = callback; + }, + setOnCloseCallback: function setOnCloseCallback(callback) { + onCloseCallback = callback; + }, + isInterceptorEnabled: function isInterceptorEnabled() { + return _isInterceptorEnabled; + }, + _unregisterEvents: function _unregisterEvents() { + subscriptions.forEach(function (e) { + return e.remove(); + }); + subscriptions = []; + }, + _registerEvents: function _registerEvents() { + subscriptions = [eventEmitter.addListener('websocketMessage', function (ev) { + if (onMessageCallback) { + onMessageCallback(ev.id, ev.type === 'binary' ? WebSocketInterceptor._arrayBufferToString(ev.data) : ev.data); + } + }), eventEmitter.addListener('websocketOpen', function (ev) { + if (onOpenCallback) { + onOpenCallback(ev.id); + } + }), eventEmitter.addListener('websocketClosed', function (ev) { + if (onCloseCallback) { + onCloseCallback(ev.id, { + code: ev.code, + reason: ev.reason + }); + } + }), eventEmitter.addListener('websocketFailed', function (ev) { + if (onErrorCallback) { + onErrorCallback(ev.id, { + message: ev.message + }); + } + })]; + }, + enableInterception: function enableInterception() { + if (_isInterceptorEnabled) { + return; + } + + eventEmitter = new NativeEventEmitter(RCTWebSocketModule); + + WebSocketInterceptor._registerEvents(); + + RCTWebSocketModule.connect = function (url, protocols, options, socketId) { + if (connectCallback) { + connectCallback(url, protocols, options, socketId); + } + + originalRCTWebSocketConnect.apply(this, arguments); + }; + + RCTWebSocketModule.send = function (data, socketId) { + if (sendCallback) { + sendCallback(data, socketId); + } + + originalRCTWebSocketSend.apply(this, arguments); + }; + + RCTWebSocketModule.sendBinary = function (data, socketId) { + if (sendCallback) { + sendCallback(WebSocketInterceptor._arrayBufferToString(data), socketId); + } + + originalRCTWebSocketSendBinary.apply(this, arguments); + }; + + RCTWebSocketModule.close = function () { + if (closeCallback) { + if (arguments.length === 3) { + closeCallback(arguments[0], arguments[1], arguments[2]); + } else { + closeCallback(null, null, arguments[0]); + } + } + + originalRCTWebSocketClose.apply(this, arguments); + }; + + _isInterceptorEnabled = true; + }, + _arrayBufferToString: function _arrayBufferToString(data) { + var value = base64.toByteArray(data).buffer; + + if (value === undefined || value === null) { + return '(no value)'; + } + + if (typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined' && value instanceof ArrayBuffer) { + return "ArrayBuffer {" + String(Array.from(new Uint8Array(value))) + "}"; + } + + return value; + }, + disableInterception: function disableInterception() { + if (!_isInterceptorEnabled) { + return; + } + + _isInterceptorEnabled = false; + RCTWebSocketModule.send = originalRCTWebSocketSend; + RCTWebSocketModule.sendBinary = originalRCTWebSocketSendBinary; + RCTWebSocketModule.close = originalRCTWebSocketClose; + RCTWebSocketModule.connect = originalRCTWebSocketConnect; + connectCallback = null; + closeCallback = null; + sendCallback = null; + onOpenCallback = null; + onMessageCallback = null; + onCloseCallback = null; + onErrorCallback = null; + + WebSocketInterceptor._unregisterEvents(); + } + }; + module.exports = WebSocketInterceptor; +},424,[168,286,289],"node_modules/react-native/Libraries/WebSocket/WebSocketInterceptor.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var XMLHttpRequest = _$$_REQUIRE(_dependencyMap[0], 'XMLHttpRequest'); + + var originalXHROpen = XMLHttpRequest.prototype.open; + var originalXHRSend = XMLHttpRequest.prototype.send; + var originalXHRSetRequestHeader = XMLHttpRequest.prototype.setRequestHeader; + var openCallback; + var sendCallback; + var requestHeaderCallback; + var headerReceivedCallback; + var responseCallback; + var _isInterceptorEnabled = false; + var XHRInterceptor = { + setOpenCallback: function setOpenCallback(callback) { + openCallback = callback; + }, + setSendCallback: function setSendCallback(callback) { + sendCallback = callback; + }, + setHeaderReceivedCallback: function setHeaderReceivedCallback(callback) { + headerReceivedCallback = callback; + }, + setResponseCallback: function setResponseCallback(callback) { + responseCallback = callback; + }, + setRequestHeaderCallback: function setRequestHeaderCallback(callback) { + requestHeaderCallback = callback; + }, + isInterceptorEnabled: function isInterceptorEnabled() { + return _isInterceptorEnabled; + }, + enableInterception: function enableInterception() { + if (_isInterceptorEnabled) { + return; + } + + XMLHttpRequest.prototype.open = function (method, url) { + if (openCallback) { + openCallback(method, url, this); + } + + originalXHROpen.apply(this, arguments); + }; + + XMLHttpRequest.prototype.setRequestHeader = function (header, value) { + if (requestHeaderCallback) { + requestHeaderCallback(header, value, this); + } + + originalXHRSetRequestHeader.apply(this, arguments); + }; + + XMLHttpRequest.prototype.send = function (data) { + var _this = this; + + if (sendCallback) { + sendCallback(data, this); + } + + if (this.addEventListener) { + this.addEventListener('readystatechange', function () { + if (!_isInterceptorEnabled) { + return; + } + + if (_this.readyState === _this.HEADERS_RECEIVED) { + var contentTypeString = _this.getResponseHeader('Content-Type'); + + var contentLengthString = _this.getResponseHeader('Content-Length'); + + var responseContentType, responseSize; + + if (contentTypeString) { + responseContentType = contentTypeString.split(';')[0]; + } + + if (contentLengthString) { + responseSize = parseInt(contentLengthString, 10); + } + + if (headerReceivedCallback) { + headerReceivedCallback(responseContentType, responseSize, _this.getAllResponseHeaders(), _this); + } + } + + if (_this.readyState === _this.DONE) { + if (responseCallback) { + responseCallback(_this.status, _this.timeout, _this.response, _this.responseURL, _this.responseType, _this); + } + } + }, false); + } + + originalXHRSend.apply(this, arguments); + }; + + _isInterceptorEnabled = true; + }, + disableInterception: function disableInterception() { + if (!_isInterceptorEnabled) { + return; + } + + _isInterceptorEnabled = false; + XMLHttpRequest.prototype.send = originalXHRSend; + XMLHttpRequest.prototype.open = originalXHROpen; + XMLHttpRequest.prototype.setRequestHeader = originalXHRSetRequestHeader; + responseCallback = null; + openCallback = null; + sendCallback = null; + headerReceivedCallback = null; + requestHeaderCallback = null; + } + }; + module.exports = XHRInterceptor; +},425,[279],"node_modules/react-native/Libraries/Network/XHRInterceptor.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + PerformanceOverlay: { + displayName: "PerformanceOverlay" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var PerformanceLogger = _$$_REQUIRE(_dependencyMap[2], 'PerformanceLogger'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[5], 'Text'); + + var View = _$$_REQUIRE(_dependencyMap[6], 'View'); + + var PerformanceOverlay = function (_React$Component) { + function PerformanceOverlay() { + _classCallCheck(this, PerformanceOverlay); + + return _possibleConstructorReturn(this, _getPrototypeOf(PerformanceOverlay).apply(this, arguments)); + } + + _createClass(PerformanceOverlay, [{ + key: "render", + value: function render() { + var perfLogs = PerformanceLogger.getTimespans(); + var items = []; + + for (var key in perfLogs) { + if (perfLogs[key].totalTime) { + var unit = key === 'BundleSize' ? 'b' : 'ms'; + items.push(React.createElement(View, { + style: styles.row, + key: key, + __source: { + fileName: _jsxFileName, + lineNumber: 28 + } + }, React.createElement(Text, { + style: [styles.text, styles.label], + __source: { + fileName: _jsxFileName, + lineNumber: 29 + } + }, key), React.createElement(Text, { + style: [styles.text, styles.totalTime], + __source: { + fileName: _jsxFileName, + lineNumber: 30 + } + }, perfLogs[key].totalTime + unit))); + } + } + + return React.createElement(View, { + style: styles.container, + __source: { + fileName: _jsxFileName, + lineNumber: 38 + } + }, items); + } + }]); + + _inherits(PerformanceOverlay, _React$Component); + + return PerformanceOverlay; + }(React.Component); + + PerformanceOverlay = _wrapComponent("PerformanceOverlay")(PerformanceOverlay); + var styles = StyleSheet.create({ + container: { + height: 100, + paddingTop: 10 + }, + label: { + flex: 1 + }, + row: { + flexDirection: 'row', + paddingHorizontal: 10 + }, + text: { + color: 'white', + fontSize: 12 + }, + totalTime: { + paddingRight: 100 + } + }); + module.exports = PerformanceOverlay; +},426,[1,11,308,200,201,252,227],"node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/YellowBox.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + YellowBox: { + displayName: "YellowBox" + }, + _component: {} + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/YellowBox.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var YellowBox; + + if (__DEV__) { + var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); + + var RCTLog = _$$_REQUIRE(_dependencyMap[4], 'RCTLog'); + + var YellowBoxList = _$$_REQUIRE(_dependencyMap[5], 'YellowBoxList'); + + var YellowBoxRegistry = _$$_REQUIRE(_dependencyMap[6], 'YellowBoxRegistry'); + + var _console = console, + error = _console.error, + warn = _console.warn; + YellowBox = _wrapComponent("YellowBox")(function (_React$Component) { + function YellowBox() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, YellowBox); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBox)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { + registry: null + }, _this._handleDismiss = function (category) { + YellowBoxRegistry.delete(category); + }, _temp)); + } + + _createClass(YellowBox, [{ + key: "render", + value: function render() { + return this.state.registry == null ? null : React.createElement(YellowBoxList, { + onDismiss: this._handleDismiss, + onDismissAll: this._handleDismissAll, + registry: this.state.registry, + __source: { + fileName: _jsxFileName, + lineNumber: 104 + } + }); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + this._subscription = YellowBoxRegistry.observe(function (registry) { + _this2.setState({ + registry: registry + }); + }); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this._subscription != null) { + this._subscription.unsubscribe(); + } + } + }, { + key: "_handleDismissAll", + value: function _handleDismissAll() { + YellowBoxRegistry.clear(); + } + }], [{ + key: "ignoreWarnings", + value: function ignoreWarnings(patterns) { + YellowBoxRegistry.addIgnorePatterns(patterns); + } + }, { + key: "install", + value: function install() { + console.error = function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + error.call.apply(error, [console].concat(args)); + + if (typeof args[0] === 'string' && args[0].startsWith('Warning: ')) { + registerWarning.apply(void 0, args); + } + }; + + console.warn = function () { + for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + args[_key3] = arguments[_key3]; + } + + warn.call.apply(warn, [console].concat(args)); + registerWarning.apply(void 0, args); + }; + + if (console.disableYellowBox === true) { + YellowBoxRegistry.setDisabled(true); + } + + Object.defineProperty(console, 'disableYellowBox', { + configurable: true, + get: function get() { + return YellowBoxRegistry.isDisabled(); + }, + set: function set(value) { + return YellowBoxRegistry.setDisabled(value); + } + }); + + if (Platform.isTesting) { + console.disableYellowBox = true; + } + + RCTLog.setWarningHandler(function () { + registerWarning.apply(void 0, arguments); + }); + } + }, { + key: "uninstall", + value: function uninstall() { + console.error = error; + console.warn = error; + delete console.disableYellowBox; + } + }]); + + _inherits(YellowBox, _React$Component); + + return YellowBox; + }(React.Component)); + + var registerWarning = function registerWarning() { + for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { + args[_key4] = arguments[_key4]; + } + + YellowBoxRegistry.add({ + args: args, + framesToPop: 2 + }); + }; + } else { + YellowBox = _wrapComponent("_component")(function (_React$Component2) { + function _class2() { + _classCallCheck(this, _class2); + + return _possibleConstructorReturn(this, _getPrototypeOf(_class2).apply(this, arguments)); + } + + _createClass(_class2, [{ + key: "render", + value: function render() { + return null; + } + }], [{ + key: "ignoreWarnings", + value: function ignoreWarnings(patterns) {} + }, { + key: "install", + value: function install() {} + }, { + key: "uninstall", + value: function uninstall() {} + }]); + + _inherits(_class2, _React$Component2); + + return _class2; + }(React.Component)); + } + + module.exports = YellowBox; +},427,[1,11,200,176,306,428,444],"node_modules/react-native/Libraries/YellowBox/YellowBox.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxList.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + + function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + + function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + + function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + YellowBoxList: { + displayName: "YellowBoxList" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxList.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Dimensions = _$$_REQUIRE(_dependencyMap[2], 'Dimensions'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var FlatList = _$$_REQUIRE(_dependencyMap[4], 'FlatList'); + + var SafeAreaView = _$$_REQUIRE(_dependencyMap[5], 'SafeAreaView'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[7], 'View'); + + var YellowBoxButton = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxButton'); + + var YellowBoxInspector = _$$_REQUIRE(_dependencyMap[9], 'YellowBoxInspector'); + + var YellowBoxListRow = _$$_REQUIRE(_dependencyMap[10], 'YellowBoxListRow'); + + var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[11], 'YellowBoxStyle'); + + var VIEWPORT_RATIO = 0.5; + var MAX_ITEMS = Math.floor(Dimensions.get('window').height * VIEWPORT_RATIO / (YellowBoxListRow.GUTTER + YellowBoxListRow.HEIGHT)); + + var YellowBoxList = function (_React$Component) { + function YellowBoxList() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, YellowBoxList); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxList)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { + selectedCategory: null + }, _this._handleInspectorDismiss = function () { + var category = _this.state.selectedCategory; + + if (category == null) { + return; + } + + _this.setState({ + selectedCategory: null + }, function () { + _this.props.onDismiss(category); + }); + }, _this._handleInspectorMinimize = function () { + _this.setState({ + selectedCategory: null + }); + }, _this._handleRowPress = function (category) { + _this.setState({ + selectedCategory: category + }); + }, _temp)); + } + + _createClass(YellowBoxList, [{ + key: "render", + value: function render() { + var _this2 = this; + + var selectedWarnings = this.state.selectedCategory == null ? null : this.props.registry.get(this.state.selectedCategory); + + if (selectedWarnings != null) { + return React.createElement(View, { + style: StyleSheet.absoluteFill, + __source: { + fileName: _jsxFileName, + lineNumber: 56 + } + }, React.createElement(YellowBoxInspector, { + onDismiss: this._handleInspectorDismiss, + onMinimize: this._handleInspectorMinimize, + warnings: selectedWarnings, + __source: { + fileName: _jsxFileName, + lineNumber: 57 + } + })); + } + + var items = []; + + for (var _iterator = this.props.registry, _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref3; + + if (_isArray) { + if (_i2 >= _iterator.length) break; + _ref3 = _iterator[_i2++]; + } else { + _i2 = _iterator.next(); + if (_i2.done) break; + _ref3 = _i2.value; + } + + var _ref5 = _ref3; + + var _ref2 = _slicedToArray(_ref5, 2); + + var _category2 = _ref2[0]; + var _warnings = _ref2[1]; + items.unshift({ + category: _category2, + warnings: _warnings + }); + } + + var listStyle = { + height: Math.min(items.length, MAX_ITEMS + 0.5) * (YellowBoxListRow.GUTTER + YellowBoxListRow.HEIGHT) + }; + return items.length === 0 ? null : React.createElement(View, { + style: styles.list, + __source: { + fileName: _jsxFileName, + lineNumber: 79 + } + }, React.createElement(View, { + pointerEvents: "box-none", + style: styles.dismissAll, + __source: { + fileName: _jsxFileName, + lineNumber: 80 + } + }, React.createElement(YellowBoxButton, { + hitSlop: { + bottom: 4, + left: 4, + right: 4, + top: 4 + }, + label: "Dismiss All", + onPress: this.props.onDismissAll, + __source: { + fileName: _jsxFileName, + lineNumber: 81 + } + })), React.createElement(FlatList, { + data: items, + keyExtractor: function keyExtractor(item) { + return item.category; + }, + renderItem: function renderItem(_ref4) { + var item = _ref4.item; + return React.createElement(YellowBoxListRow, _extends({}, item, { + onPress: _this2._handleRowPress, + __source: { + fileName: _jsxFileName, + lineNumber: 91 + } + })); + }, + scrollEnabled: items.length > MAX_ITEMS, + scrollsToTop: false, + style: listStyle, + __source: { + fileName: _jsxFileName, + lineNumber: 87 + } + }), React.createElement(SafeAreaView, { + style: styles.safeArea, + __source: { + fileName: _jsxFileName, + lineNumber: 97 + } + })); + } + }]); + + _inherits(YellowBoxList, _React$Component); + + return YellowBoxList; + }(React.Component); + + YellowBoxList = _wrapComponent("YellowBoxList")(YellowBoxList); + var styles = StyleSheet.create({ + list: { + bottom: 0, + position: 'absolute', + width: '100%' + }, + dismissAll: { + bottom: '100%', + flexDirection: 'row', + justifyContent: 'flex-end', + paddingBottom: 4, + paddingEnd: 4, + position: 'absolute', + width: '100%' + }, + safeArea: { + backgroundColor: YellowBoxStyle.getBackgroundColor(0.95), + marginTop: StyleSheet.hairlineWidth + } + }); + module.exports = YellowBoxList; +},428,[1,11,203,200,388,429,201,227,430,433,441,432],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxList.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.ios.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + SafeAreaView: { + displayName: "SafeAreaView" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[3], 'ViewPropTypes'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[4], 'requireNativeComponent'); + + var RCTSafeAreaView = requireNativeComponent('RCTSafeAreaView'); + + var SafeAreaView = function (_React$Component) { + "use strict"; + + function SafeAreaView() { + _classCallCheck(this, SafeAreaView); + + return _possibleConstructorReturn(this, _getPrototypeOf(SafeAreaView).apply(this, arguments)); + } + + _createClass(SafeAreaView, [{ + key: "render", + value: function render() { + return React.createElement(RCTSafeAreaView, _extends({}, this.props, { + __source: { + fileName: _jsxFileName, + lineNumber: 35 + } + })); + } + }]); + + _inherits(SafeAreaView, _React$Component); + + return SafeAreaView; + }(React.Component); + + SafeAreaView.propTypes = _objectSpread({}, ViewPropTypes); + SafeAreaView = _wrapComponent("SafeAreaView")(SafeAreaView); + module.exports = SafeAreaView; +},429,[1,11,200,376,229],"node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxButton.js"; + + var React = _$$_REQUIRE(_dependencyMap[0], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[1], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[2], 'Text'); + + var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[3], 'YellowBoxPressable'); + + var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[4], 'YellowBoxStyle'); + + var YellowBoxButton = function YellowBoxButton(props) { + return React.createElement(YellowBoxPressable, { + hitSlop: props.hitSlop, + onPress: props.onPress, + style: styles.root, + __source: { + fileName: _jsxFileName, + lineNumber: 28 + } + }, React.createElement(Text, { + numberOfLines: 1, + style: styles.label, + __source: { + fileName: _jsxFileName, + lineNumber: 32 + } + }, props.label)); + }; + + var styles = StyleSheet.create({ + root: { + borderRadius: 14, + height: 28, + justifyContent: 'center', + paddingHorizontal: 12 + }, + label: { + color: YellowBoxStyle.getTextColor(1), + fontSize: 12, + includeFontPadding: false, + lineHeight: 16 + } + }); + module.exports = YellowBoxButton; +},430,[200,201,252,431,432],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxButton.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxPressable.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + YellowBoxPressable: { + displayName: "YellowBoxPressable" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxPressable.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); + + var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[4], 'TouchableWithoutFeedback'); + + var View = _$$_REQUIRE(_dependencyMap[5], 'View'); + + var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[6], 'YellowBoxStyle'); + + var YellowBoxPressable = function (_React$Component) { + function YellowBoxPressable() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, YellowBoxPressable); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxPressable)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { + pressed: false + }, _this._handlePressIn = function () { + _this.setState({ + pressed: true + }); + }, _this._handlePressOut = function () { + _this.setState({ + pressed: false + }); + }, _temp)); + } + + _createClass(YellowBoxPressable, [{ + key: "render", + value: function render() { + var content = React.createElement(View, { + style: StyleSheet.compose({ + backgroundColor: this.state.pressed ? this.props.backgroundColor.pressed : this.props.backgroundColor.default + }, this.props.style), + __source: { + fileName: _jsxFileName, + lineNumber: 52 + } + }, this.props.children); + return this.props.onPress == null ? content : React.createElement(TouchableWithoutFeedback, { + hitSlop: this.props.hitSlop, + onPress: this.props.onPress, + onPressIn: this._handlePressIn, + onPressOut: this._handlePressOut, + __source: { + fileName: _jsxFileName, + lineNumber: 67 + } + }, content); + } + }]); + + _inherits(YellowBoxPressable, _React$Component); + + return YellowBoxPressable; + }(React.Component); + + YellowBoxPressable.defaultProps = { + backgroundColor: { + default: YellowBoxStyle.getBackgroundColor(0.95), + pressed: YellowBoxStyle.getHighlightColor(1) + } + }; + YellowBoxPressable = _wrapComponent("YellowBoxPressable")(YellowBoxPressable); + module.exports = YellowBoxPressable; +},431,[1,11,200,201,383,227,432],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxPressable.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var YellowBoxStyle = { + getBackgroundColor: function getBackgroundColor(opacity) { + return "rgba(250, 186, 48, " + opacity + ")"; + }, + getDividerColor: function getDividerColor(opacity) { + return "rgba(255, 255, 255, " + opacity + ")"; + }, + getHighlightColor: function getHighlightColor(opacity) { + return "rgba(252, 176, 29, " + opacity + ")"; + }, + getTextColor: function getTextColor(opacity) { + return "rgba(255, 255, 255, " + opacity + ")"; + } + }; + module.exports = YellowBoxStyle; +},432,[],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxStyle.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspector.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + YellowBoxInspector: { + displayName: "YellowBoxInspector" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspector.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var ScrollView = _$$_REQUIRE(_dependencyMap[4], 'ScrollView'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[6], 'Text'); + + var View = _$$_REQUIRE(_dependencyMap[7], 'View'); + + var YellowBoxCategory = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxCategory'); + + var YellowBoxInspectorFooter = _$$_REQUIRE(_dependencyMap[9], 'YellowBoxInspectorFooter'); + + var YellowBoxInspectorHeader = _$$_REQUIRE(_dependencyMap[10], 'YellowBoxInspectorHeader'); + + var YellowBoxInspectorSourceMapStatus = _$$_REQUIRE(_dependencyMap[11], 'YellowBoxInspectorSourceMapStatus'); + + var YellowBoxInspectorStackFrame = _$$_REQUIRE(_dependencyMap[12], 'YellowBoxInspectorStackFrame'); + + var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[13], 'YellowBoxStyle'); + + var openFileInEditor = _$$_REQUIRE(_dependencyMap[14], 'openFileInEditor'); + + var YellowBoxInspector = function (_React$Component) { + function YellowBoxInspector() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, YellowBoxInspector); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxInspector)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { + selectedIndex: 0 + }, _this._handleSelectIndex = function (selectedIndex) { + _this.setState({ + selectedIndex: selectedIndex + }); + }, _temp)); + } + + _createClass(YellowBoxInspector, [{ + key: "render", + value: function render() { + var warnings = this.props.warnings; + var selectedIndex = this.state.selectedIndex; + var warning = warnings[selectedIndex]; + return React.createElement(View, { + style: styles.root, + __source: { + fileName: _jsxFileName, + lineNumber: 55 + } + }, React.createElement(YellowBoxInspectorHeader, { + onSelectIndex: this._handleSelectIndex, + selectedIndex: selectedIndex, + warnings: warnings, + __source: { + fileName: _jsxFileName, + lineNumber: 56 + } + }), React.createElement(ScrollView, { + contentContainerStyle: styles.bodyContent, + key: selectedIndex, + style: styles.body, + __source: { + fileName: _jsxFileName, + lineNumber: 61 + } + }, React.createElement(View, { + __source: { + fileName: _jsxFileName, + lineNumber: 65 + } + }, React.createElement(View, { + style: styles.bodyHeading, + __source: { + fileName: _jsxFileName, + lineNumber: 66 + } + }, React.createElement(Text, { + style: styles.bodyHeadingText, + __source: { + fileName: _jsxFileName, + lineNumber: 67 + } + }, "Warning")), React.createElement(Text, { + style: styles.bodyText, + __source: { + fileName: _jsxFileName, + lineNumber: 69 + } + }, YellowBoxCategory.render(warning.message, styles.substitutionText))), React.createElement(View, { + style: styles.bodySection, + __source: { + fileName: _jsxFileName, + lineNumber: 76 + } + }, React.createElement(View, { + style: styles.bodyHeading, + __source: { + fileName: _jsxFileName, + lineNumber: 77 + } + }, React.createElement(Text, { + style: styles.bodyHeadingText, + __source: { + fileName: _jsxFileName, + lineNumber: 78 + } + }, "Stack"), React.createElement(YellowBoxInspectorSourceMapStatus, { + status: warning.symbolicated.status, + __source: { + fileName: _jsxFileName, + lineNumber: 79 + } + })), warning.getAvailableStack().map(function (frame, index) { + return React.createElement(YellowBoxInspectorStackFrame, { + key: index, + frame: frame, + onPress: warning.symbolicated.status === 'COMPLETE' ? function () { + openFileInEditor(frame.file, frame.lineNumber); + } : null, + __source: { + fileName: _jsxFileName, + lineNumber: 84 + } + }); + }))), React.createElement(YellowBoxInspectorFooter, { + onDismiss: this.props.onDismiss, + onMinimize: this.props.onMinimize, + __source: { + fileName: _jsxFileName, + lineNumber: 98 + } + })); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this._handleSymbolication(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps, prevState) { + if (prevProps.warnings !== this.props.warnings || prevState.selectedIndex !== this.state.selectedIndex) { + this._cancelSymbolication(); + + this._handleSymbolication(); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this._cancelSymbolication(); + } + }, { + key: "_handleSymbolication", + value: function _handleSymbolication() { + var _this2 = this; + + var warning = this.props.warnings[this.state.selectedIndex]; + + if (warning.symbolicated.status !== 'COMPLETE') { + this._symbolication = warning.symbolicate(function () { + _this2.forceUpdate(); + }); + } + } + }, { + key: "_cancelSymbolication", + value: function _cancelSymbolication() { + if (this._symbolication != null) { + this._symbolication.abort(); + + this._symbolication = null; + } + } + }]); + + _inherits(YellowBoxInspector, _React$Component); + + return YellowBoxInspector; + }(React.Component); + + YellowBoxInspector = _wrapComponent("YellowBoxInspector")(YellowBoxInspector); + var styles = StyleSheet.create({ + root: { + elevation: Platform.OS === 'android' ? Number.MAX_SAFE_INTEGER : undefined, + height: '100%' + }, + body: { + backgroundColor: YellowBoxStyle.getBackgroundColor(0.95), + borderBottomColor: YellowBoxStyle.getDividerColor(0.95), + borderBottomWidth: StyleSheet.hairlineWidth, + borderTopColor: YellowBoxStyle.getDividerColor(0.95), + borderTopWidth: StyleSheet.hairlineWidth, + flex: 1 + }, + bodyContent: { + paddingVertical: 12 + }, + bodyHeading: { + alignItems: 'center', + flexDirection: 'row', + marginBottom: 6, + paddingHorizontal: 12 + }, + bodyHeadingText: { + color: YellowBoxStyle.getTextColor(1), + flex: 1, + fontSize: 20, + fontWeight: '600', + includeFontPadding: false, + lineHeight: 28 + }, + bodyText: { + color: YellowBoxStyle.getTextColor(1), + fontSize: 14, + includeFontPadding: false, + lineHeight: 18, + paddingHorizontal: 12 + }, + substitutionText: { + color: YellowBoxStyle.getTextColor(0.6) + }, + bodySection: { + marginTop: 20 + } + }); + module.exports = YellowBoxInspector; +},433,[1,11,176,200,367,201,252,227,434,436,437,438,440,432,422],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspector.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/Data/YellowBoxCategory.js"; + + function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + + function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + + function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + + function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + + var React = _$$_REQUIRE(_dependencyMap[0], 'React'); + + var Text = _$$_REQUIRE(_dependencyMap[1], 'Text'); + + var UTFSequence = _$$_REQUIRE(_dependencyMap[2], 'UTFSequence'); + + var stringifySafe = _$$_REQUIRE(_dependencyMap[3], 'stringifySafe'); + + var SUBSTITUTION = UTFSequence.BOM + '%s'; + var YellowBoxCategory = { + parse: function parse(args) { + var categoryParts = []; + var contentParts = []; + var substitutionOffsets = []; + + var remaining = _toConsumableArray(args); + + if (typeof remaining[0] === 'string') { + var formatString = String(remaining.shift()); + var formatStringParts = formatString.split('%s'); + var substitutionCount = formatStringParts.length - 1; + + var _substitutions = remaining.splice(0, substitutionCount); + + var categoryString = ''; + var contentString = ''; + var substitutionIndex = 0; + + for (var _iterator = formatStringParts, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var _formatStringPart = _ref; + categoryString += _formatStringPart; + contentString += _formatStringPart; + + if (substitutionIndex < substitutionCount) { + if (substitutionIndex < _substitutions.length) { + var substitution = stringifySafe(_substitutions[substitutionIndex]); + substitutionOffsets.push({ + length: substitution.length, + offset: contentString.length + }); + categoryString += SUBSTITUTION; + contentString += substitution; + } else { + substitutionOffsets.push({ + length: 2, + offset: contentString.length + }); + categoryString += '%s'; + contentString += '%s'; + } + + substitutionIndex++; + } + } + + categoryParts.push(categoryString); + contentParts.push(contentString); + } + + var remainingArgs = remaining.map(stringifySafe); + categoryParts.push.apply(categoryParts, _toConsumableArray(remainingArgs)); + contentParts.push.apply(contentParts, _toConsumableArray(remainingArgs)); + return { + category: categoryParts.join(' '), + message: { + content: contentParts.join(' '), + substitutions: substitutionOffsets + } + }; + }, + render: function render(_ref2, substitutionStyle) { + var content = _ref2.content, + substitutions = _ref2.substitutions; + var elements = []; + var lastOffset = substitutions.reduce(function (prevOffset, substitution, index) { + var key = String(index); + + if (substitution.offset > prevOffset) { + var prevPart = content.substr(prevOffset, substitution.offset - prevOffset); + elements.push(React.createElement(Text, { + key: key, + __source: { + fileName: _jsxFileName, + lineNumber: 119 + } + }, prevPart)); + } + + var substititionPart = content.substr(substitution.offset, substitution.length); + elements.push(React.createElement(Text, { + key: key + '.5', + style: substitutionStyle, + __source: { + fileName: _jsxFileName, + lineNumber: 127 + } + }, substititionPart)); + return substitution.offset + substitution.length; + }, 0); + + if (lastOffset < content.length - 1) { + var lastPart = content.substr(lastOffset); + elements.push(React.createElement(Text, { + key: "-1", + __source: { + fileName: _jsxFileName, + lineNumber: 139 + } + }, lastPart)); + } + + return elements; + } + }; + module.exports = YellowBoxCategory; +},434,[200,252,435,174],"node_modules/react-native/Libraries/YellowBox/Data/YellowBoxCategory.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var deepFreezeAndThrowOnMutationInDev = _$$_REQUIRE(_dependencyMap[0], 'deepFreezeAndThrowOnMutationInDev'); + + var UTFSequence = deepFreezeAndThrowOnMutationInDev({ + BOM: "\uFEFF", + BULLET: "\u2022", + BULLET_SP: "\xA0\u2022\xA0", + MIDDOT: "\xB7", + MIDDOT_SP: "\xA0\xB7\xA0", + MIDDOT_KATAKANA: "\u30FB", + MDASH: "\u2014", + MDASH_SP: "\xA0\u2014\xA0", + NDASH: "\u2013", + NDASH_SP: "\xA0\u2013\xA0", + NBSP: "\xA0", + PIZZA: "\uD83C\uDF55", + TRIANGLE_LEFT: "\u25C0", + TRIANGLE_RIGHT: "\u25B6" + }); + module.exports = UTFSequence; +},435,[173],"node_modules/react-native/Libraries/UTFSequence.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorFooter.js"; + + var React = _$$_REQUIRE(_dependencyMap[0], 'React'); + + var SafeAreaView = _$$_REQUIRE(_dependencyMap[1], 'SafeAreaView'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[2], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[3], 'Text'); + + var View = _$$_REQUIRE(_dependencyMap[4], 'View'); + + var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[5], 'YellowBoxPressable'); + + var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[6], 'YellowBoxStyle'); + + var YellowBoxInspectorFooter = function YellowBoxInspectorFooter(props) { + return React.createElement(View, { + style: styles.root, + __source: { + fileName: _jsxFileName, + lineNumber: 27 + } + }, React.createElement(YellowBoxPressable, { + backgroundColor: { + default: 'transparent', + pressed: YellowBoxStyle.getHighlightColor(1) + }, + onPress: props.onMinimize, + style: styles.button, + __source: { + fileName: _jsxFileName, + lineNumber: 28 + } + }, React.createElement(View, { + style: styles.content, + __source: { + fileName: _jsxFileName, + lineNumber: 35 + } + }, React.createElement(Text, { + style: styles.label, + __source: { + fileName: _jsxFileName, + lineNumber: 36 + } + }, "Minimize")), React.createElement(SafeAreaView, { + __source: { + fileName: _jsxFileName, + lineNumber: 38 + } + })), React.createElement(YellowBoxPressable, { + backgroundColor: { + default: 'transparent', + pressed: YellowBoxStyle.getHighlightColor(1) + }, + onPress: props.onDismiss, + style: styles.button, + __source: { + fileName: _jsxFileName, + lineNumber: 40 + } + }, React.createElement(View, { + style: styles.content, + __source: { + fileName: _jsxFileName, + lineNumber: 47 + } + }, React.createElement(Text, { + style: styles.label, + __source: { + fileName: _jsxFileName, + lineNumber: 48 + } + }, "Dismiss")), React.createElement(SafeAreaView, { + __source: { + fileName: _jsxFileName, + lineNumber: 50 + } + }))); + }; + + var styles = StyleSheet.create({ + root: { + backgroundColor: YellowBoxStyle.getBackgroundColor(0.95), + flexDirection: 'row' + }, + button: { + flex: 1 + }, + content: { + alignItems: 'center', + height: 48, + justifyContent: 'center' + }, + label: { + color: YellowBoxStyle.getTextColor(1), + fontSize: 14, + includeFontPadding: false, + lineHeight: 18 + } + }); + module.exports = YellowBoxInspectorFooter; +},436,[200,429,201,252,227,431,432],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorFooter.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js"; + + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[1], 'React'); + + var SafeAreaView = _$$_REQUIRE(_dependencyMap[2], 'SafeAreaView'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); + + var UTFSequence = _$$_REQUIRE(_dependencyMap[5], 'UTFSequence'); + + var View = _$$_REQUIRE(_dependencyMap[6], 'View'); + + var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[7], 'YellowBoxPressable'); + + var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxStyle'); + + var YellowBoxInspectorHeader = function YellowBoxInspectorHeader(props) { + var prevIndex = props.selectedIndex - 1; + var nextIndex = props.selectedIndex + 1; + var titleText = props.warnings.length === 1 ? 'Single Occurrence' : "Occurrence " + (props.selectedIndex + 1) + " of " + props.warnings.length; + return React.createElement(SafeAreaView, { + style: styles.root, + __source: { + fileName: _jsxFileName, + lineNumber: 41 + } + }, React.createElement(View, { + style: styles.header, + __source: { + fileName: _jsxFileName, + lineNumber: 42 + } + }, React.createElement(YellowBoxInspectorHeaderButton, { + disabled: props.warnings[prevIndex] == null, + label: UTFSequence.TRIANGLE_LEFT, + onPress: function onPress() { + return props.onSelectIndex(prevIndex); + }, + __source: { + fileName: _jsxFileName, + lineNumber: 43 + } + }), React.createElement(View, { + style: styles.headerTitle, + __source: { + fileName: _jsxFileName, + lineNumber: 48 + } + }, React.createElement(Text, { + style: styles.headerTitleText, + __source: { + fileName: _jsxFileName, + lineNumber: 49 + } + }, titleText)), React.createElement(YellowBoxInspectorHeaderButton, { + disabled: props.warnings[nextIndex] == null, + label: UTFSequence.TRIANGLE_RIGHT, + onPress: function onPress() { + return props.onSelectIndex(nextIndex); + }, + __source: { + fileName: _jsxFileName, + lineNumber: 51 + } + }))); + }; + + var YellowBoxInspectorHeaderButton = function YellowBoxInspectorHeaderButton(props) { + return React.createElement(YellowBoxPressable, { + backgroundColor: { + default: 'transparent', + pressed: YellowBoxStyle.getHighlightColor(1) + }, + onPress: props.disabled ? null : props.onPress, + style: styles.headerButton, + __source: { + fileName: _jsxFileName, + lineNumber: 68 + } + }, props.disabled ? null : React.createElement(Text, { + style: styles.headerButtonText, + __source: { + fileName: _jsxFileName, + lineNumber: 76 + } + }, props.label)); + }; + + var styles = StyleSheet.create({ + root: { + backgroundColor: YellowBoxStyle.getBackgroundColor(0.95) + }, + header: { + flexDirection: 'row', + height: Platform.select({ + android: 48, + ios: 44 + }) + }, + headerButton: { + alignItems: 'center', + aspectRatio: 1, + justifyContent: 'center' + }, + headerButtonText: { + color: YellowBoxStyle.getTextColor(1), + fontSize: 16, + includeFontPadding: false, + lineHeight: 20 + }, + headerTitle: { + alignItems: 'center', + flex: 1, + justifyContent: 'center' + }, + headerTitleText: { + color: YellowBoxStyle.getTextColor(1), + fontSize: 16, + fontWeight: '600', + includeFontPadding: false, + lineHeight: 20 + } + }); + module.exports = YellowBoxInspectorHeader; +},437,[176,200,429,201,252,435,227,431,432],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + YellowBoxInspectorSourceMapStatus: { + displayName: "YellowBoxInspectorSourceMapStatus" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Animated = _$$_REQUIRE(_dependencyMap[2], 'Animated'); + + var Easing = _$$_REQUIRE(_dependencyMap[3], 'Easing'); + + var React = _$$_REQUIRE(_dependencyMap[4], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[6], 'Text'); + + var View = _$$_REQUIRE(_dependencyMap[7], 'View'); + + var YellowBoxImageSource = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxImageSource'); + + var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[9], 'YellowBoxStyle'); + + var YellowBoxInspectorSourceMapStatus = function (_React$Component) { + function YellowBoxInspectorSourceMapStatus() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, YellowBoxInspectorSourceMapStatus); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxInspectorSourceMapStatus)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { + animation: null, + rotate: null + }, _temp)); + } + + _createClass(YellowBoxInspectorSourceMapStatus, [{ + key: "render", + value: function render() { + var image; + + switch (this.props.status) { + case 'COMPLETE': + image = YellowBoxImageSource.check; + break; + + case 'FAILED': + image = YellowBoxImageSource.alertTriangle; + break; + + case 'PENDING': + image = YellowBoxImageSource.loader; + break; + } + + return image == null ? null : React.createElement(View, { + style: StyleSheet.compose(styles.root, this.props.status === 'PENDING' ? styles.pending : null), + __source: { + fileName: _jsxFileName, + lineNumber: 55 + } + }, React.createElement(Animated.Image, { + source: { + height: 16, + uri: image, + width: 16 + }, + style: StyleSheet.compose(styles.image, this.state.rotate == null ? null : { + transform: [{ + rotate: this.state.rotate + }] + }), + __source: { + fileName: _jsxFileName, + lineNumber: 60 + } + }), React.createElement(Text, { + style: styles.text, + __source: { + fileName: _jsxFileName, + lineNumber: 69 + } + }, "Source Map")); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this._updateAnimation(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + this._updateAnimation(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.state.animation != null) { + this.state.animation.stop(); + } + } + }, { + key: "_updateAnimation", + value: function _updateAnimation() { + if (this.props.status === 'PENDING') { + if (this.state.animation == null) { + var animated = new Animated.Value(0); + + var _animation = Animated.loop(Animated.timing(animated, { + duration: 2000, + easing: Easing.linear, + toValue: 1, + useNativeDriver: true + })); + + this.setState({ + animation: _animation, + rotate: animated.interpolate({ + inputRange: [0, 1], + outputRange: ['0deg', '360deg'] + }) + }, function () { + _animation.start(); + }); + } + } else { + if (this.state.animation != null) { + this.state.animation.stop(); + this.setState({ + animation: null, + rotate: null + }); + } + } + } + }]); + + _inherits(YellowBoxInspectorSourceMapStatus, _React$Component); + + return YellowBoxInspectorSourceMapStatus; + }(React.Component); + + YellowBoxInspectorSourceMapStatus = _wrapComponent("YellowBoxInspectorSourceMapStatus")(YellowBoxInspectorSourceMapStatus); + var styles = StyleSheet.create({ + root: { + alignItems: 'center', + backgroundColor: YellowBoxStyle.getTextColor(0.8), + borderRadius: 12, + flexDirection: 'row', + height: 24, + paddingHorizontal: 8 + }, + pending: { + backgroundColor: YellowBoxStyle.getTextColor(0.6) + }, + image: { + marginEnd: 4, + tintColor: YellowBoxStyle.getBackgroundColor(1) + }, + text: { + color: YellowBoxStyle.getBackgroundColor(1), + fontSize: 12, + includeFontPadding: false, + lineHeight: 16 + } + }); + module.exports = YellowBoxInspectorSourceMapStatus; +},438,[1,11,332,358,200,201,252,227,439,432],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var PixelRatio = _$$_REQUIRE(_dependencyMap[0], 'PixelRatio'); + + var scale = PixelRatio.get(); + /** + * We use inline images for YellowBox in order to avoid display latency due to + * resource contention with symbolicating stack traces. + * + * The following steps were used to create these: + * + * 1. Download SVG files from: https://feathericons.com + * 2. Rasterize SVG files to PNG files at 16dp, 36dp, and 48dp. + * 3. Convert to Base64: https://www.google.com/search?q=base64+image+encoder + * + * @see https://github.com/feathericons/feather + * @copyright 2013-2017 Cole Bemis + * @license MIT + */ + + var YellowBoxImageSource = { + alertTriangle: scale > 2 ? 'data:image/png;base64,iVBORw0KGgoA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oknrz35KEE2sABIRxm8tVIBaZgHb61UQOYmXk7aFgQVJ6QWPCnLAriYAVILnpTxD7yh/9EZiIEE4m+y29uMkGy1nQ6i9wYFRB5PwKdYP/v1msmnUe89gn695bG0iqjdXeMiRu9599csvGKZ0jlu0Ac/7d2rxX9Q37HW6QfX/ZguAAAAAElFTkSuQmCC' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAvUlEQVQ4jbWT4Q3CIBCFP40DdANxg24gIzhKuwEjuIFxAkcwTtARGicoG+iPXlMCB8UfvoQc4e7ePV4A/ogWuMlqc0W7AsEo0QMNcPplugMmwMia5KwKWkNIuIkHq3wLXGQ/Sq4IC3wkLpOfmZyKeEpIEKsDYB8VN0Afkfpg30uNiycbdKcNqXEOxdBEWoEAoqta8uZ0iqqkxwGDUrSFAXAHZpOWd/+ubD5Kz335Cx1wZna4Bh54AddauVl8ARfCLO9Xq7xGAAAAAElFTkSuQmCC', + check: scale > 2 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAqElEQVRoge3YTQ7CIBRF4bPUu/8JS6gTSaqilh95vuR+CaO2cGgYNAUzMzOzFgHlPhRaMkDAcRoltKaTeIxPtQHxGn+Q5AgJx8cQjo8hHB9DOP76Yiu/RcTmN18WLiQCjs3zBkYXVGOeLWd+xcIr5pgyEzDz7FIjISPP/FRPUM+9W4nvYVfuCSXeB3669ldEOzRFfCUSx1cicXwlEsdXIvEPKDMzM7PMbtugw3XTpNA2AAAAAElFTkSuQmCC' : scale > 1 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAf0lEQVRYhe2UvQ2AIBQGL3EBR3AESkv3bxxFN8DmWUgwvkI+En1X0cBd+IMg+DuDyDMCs413kfMiX4EMbD3l8oCaPIU85B4mYLEF5XJscrYFPRGvb/sZ4IlocubJGdH0wj1FSG77XYT0qdUi5O+8jOjyyZQRUnkZ0UUeBMF3OQC/0VsyGlxligAAAABJRU5ErkJggg==' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAASElEQVQ4jWNgGJHAgIGBIYESze8ZGBjWU6L5PAMDgwBNNCdAFZJt83qoQmRDSHK2AFQhzBCy/IxsCNkBJsDAwLAfiknWPBIBAETPFeuA4fr6AAAAAElFTkSuQmCC', + loader: scale > 2 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABXElEQVRoge2a3W3DMAyEr+0CHkGjaISOcKN4k6zQETpCR+gGzgbpQ10kcamIpKQ6avQBBPxg3pHwL2UDg/8LASxrcNdKnCwATmssrUyeWgnju/DmXs8tRP+Sh2kgAJga1rFlWj2rcMD5YqQh77QJLbzIORjyRIJQCJW5ngYo5AVlrsgkCGqbsDbAhFfxqZsSZibP0oDXQ43HQPsg82i7sBoR+VcJq2YxKcPo0IoJLRZXmYGC6ezQmQUdVqhPBVH/CNBTSMkLVlzjA8Bbocb7GoPBoADi+umZilYzbrG/JrnljOvy734iu4To/BQaDB6Rl4LciPPF9Lmjhgvi+s7w6tCIGw3WKS0P8fvWNjt0ZkGHFeq7CQXTbkZKGg2JOxrqPUZ3s6ziNdju38IjS/dLi0EQpDLX2gDQYHEX6Hx5/YcA+6H0NgAYPnCMj3x7Mxq4wTGx3Q1E578aDDR8AX0mOGD6BEN/AAAAAElFTkSuQmCC' : scale > 1 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABN0lEQVRYhe2WzU3EMBCFP34KyJEjJaQDXAIlJJ24BSow2wEdhHSwJSwd7JHbcmC0mOxMnDiWDIInWbHkN29exo4n8IvRAEFGU8OAA04yulyR60Jm7msbyIZloAMGwBfI4UWrWxM08LW/weC4iOMNTog4g0awKjBG827GxBwC3996NHizAifsSrTRmlsZm23CT9adktyXSq6ZUPdxgiXnZzW8CLcLuC3lvqA/gCt5NtjlPQL7TP0Wu1HtRRu4PO3T4TKTz2kG+AG9IN6CR/Su9iojBw69egfghWgL/pGCp+JFVPUqTjWjlsuqeAo1o6rt2C8QcNiV0UxoHPMieojmz0CfMKyhl1hN84xbI3gnz5Ftp7kH3iT5LsFdDUf6pzSJ6r2glIFDbuDNhqRH4I7Pvv4EvG/QqocP2Jh/xzzX/zUAAAAASUVORK5CYII=' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAsklEQVQ4jaWTYRHCMAyFP7gJmIQ6oChgEpBQKXMwC3MADpAAEiphDuBHC4QuDRu8u9ylyWtem7Rgw2X7GT1wsghb4beAVzhtsfYyJgs44AoEQzBkjrMId1HkKPwyZ6oMSnxYsnk1NqT7yMo34Fzhd9meGJvs7Hh3NhqCLXDI/rT0lKsR+KOJgc9RdaRRarkZvELogYsi8HqxjUhGYE+aQg1jzketwFTZXHbbEpjB8eU7PwAbLiJz46707gAAAABJRU5ErkJggg==' + }; + module.exports = YellowBoxImageSource; +},439,[202],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxImageSource.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorStackFrame.js"; + + var React = _$$_REQUIRE(_dependencyMap[0], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[1], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[2], 'Text'); + + var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[3], 'YellowBoxPressable'); + + var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[4], 'YellowBoxStyle'); + + var YellowBoxInspectorStackFrame = function YellowBoxInspectorStackFrame(props) { + var frame = props.frame, + onPress = props.onPress; + return React.createElement(YellowBoxPressable, { + backgroundColor: { + default: YellowBoxStyle.getBackgroundColor(0), + pressed: YellowBoxStyle.getHighlightColor(1) + }, + onPress: onPress, + style: styles.frame, + __source: { + fileName: _jsxFileName, + lineNumber: 31 + } + }, React.createElement(Text, { + style: styles.frameName, + __source: { + fileName: _jsxFileName, + lineNumber: 38 + } + }, frame.methodName), React.createElement(Text, { + ellipsizeMode: "middle", + numberOfLines: 1, + style: styles.frameLocation, + __source: { + fileName: _jsxFileName, + lineNumber: 39 + } + }, getFrameLocation(frame.file) + ":" + frame.lineNumber + (frame.column == null ? '' : ':' + frame.column))); + }; + + var getFrameLocation = function getFrameLocation(uri) { + var queryIndex = uri.indexOf('?'); + var query = queryIndex < 0 ? '' : uri.substr(queryIndex); + var path = queryIndex < 0 ? uri : uri.substr(0, queryIndex); + var file = path.substr(path.lastIndexOf('/') + 1); + return file + query; + }; + + var styles = StyleSheet.create({ + frame: { + paddingHorizontal: 12, + paddingVertical: 4 + }, + frameName: { + color: YellowBoxStyle.getTextColor(1), + fontSize: 14, + includeFontPadding: false, + lineHeight: 18 + }, + frameLocation: { + color: YellowBoxStyle.getTextColor(0.7), + fontSize: 12, + fontWeight: '300', + includeFontPadding: false, + lineHeight: 16 + } + }); + module.exports = YellowBoxInspectorStackFrame; +},440,[200,201,252,431,432],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorStackFrame.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxListRow.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + YellowBoxListRow: { + displayName: "YellowBoxListRow" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxListRow.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); + + var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[5], 'YellowBoxPressable'); + + var View = _$$_REQUIRE(_dependencyMap[6], 'View'); + + var YellowBoxCategory = _$$_REQUIRE(_dependencyMap[7], 'YellowBoxCategory'); + + var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxStyle'); + + var YellowBoxWarning = _$$_REQUIRE(_dependencyMap[9], 'YellowBoxWarning'); + + var YellowBoxListRow = function (_React$Component) { + function YellowBoxListRow() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, YellowBoxListRow); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxListRow)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._handlePress = function () { + _this.props.onPress(_this.props.category); + }, _temp)); + } + + _createClass(YellowBoxListRow, [{ + key: "shouldComponentUpdate", + value: function shouldComponentUpdate(nextProps) { + var prevProps = this.props; + return prevProps.category !== nextProps.category || prevProps.onPress !== nextProps.onPress || prevProps.warnings.length !== nextProps.warnings.length || prevProps.warnings.some(function (prevWarning, index) { + return prevWarning !== nextProps[index]; + }); + } + }, { + key: "render", + value: function render() { + var warnings = this.props.warnings; + return React.createElement(YellowBoxPressable, { + onPress: this._handlePress, + style: styles.root, + __source: { + fileName: _jsxFileName, + lineNumber: 50 + } + }, React.createElement(View, { + style: styles.content, + __source: { + fileName: _jsxFileName, + lineNumber: 51 + } + }, warnings.length < 2 ? null : React.createElement(Text, { + style: styles.metaText, + __source: { + fileName: _jsxFileName, + lineNumber: 53 + } + }, '(' + warnings.length + ') '), React.createElement(Text, { + numberOfLines: 2, + style: styles.bodyText, + __source: { + fileName: _jsxFileName, + lineNumber: 55 + } + }, YellowBoxCategory.render(warnings[warnings.length - 1].message, styles.substitutionText)))); + } + }]); + + _inherits(YellowBoxListRow, _React$Component); + + return YellowBoxListRow; + }(React.Component); + + YellowBoxListRow.GUTTER = StyleSheet.hairlineWidth; + YellowBoxListRow.HEIGHT = 48; + YellowBoxListRow = _wrapComponent("YellowBoxListRow")(YellowBoxListRow); + var styles = StyleSheet.create({ + root: { + height: YellowBoxListRow.HEIGHT, + justifyContent: 'center', + marginTop: YellowBoxListRow.GUTTER, + paddingHorizontal: 12 + }, + content: { + alignItems: 'flex-start', + flexDirection: 'row' + }, + bodyText: { + color: YellowBoxStyle.getTextColor(1), + flex: 1, + fontSize: 14, + includeFontPadding: false, + lineHeight: 18 + }, + metaText: { + color: YellowBoxStyle.getTextColor(0.5), + fontSize: 14, + includeFontPadding: false, + lineHeight: 18 + }, + substitutionText: { + color: YellowBoxStyle.getTextColor(0.6) + } + }); + module.exports = YellowBoxListRow; +},441,[1,11,200,201,252,431,227,434,432,442],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxListRow.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var YellowBoxCategory = _$$_REQUIRE(_dependencyMap[0], 'YellowBoxCategory'); + + var YellowBoxSymbolication = _$$_REQUIRE(_dependencyMap[1], 'YellowBoxSymbolication'); + + var parseErrorStack = _$$_REQUIRE(_dependencyMap[2], 'parseErrorStack'); + + var YellowBoxWarning = function () { + _createClass(YellowBoxWarning, null, [{ + key: "parse", + value: function parse(_ref) { + var args = _ref.args, + framesToPop = _ref.framesToPop; + return _objectSpread({}, YellowBoxCategory.parse(args), { + stack: createStack({ + framesToPop: framesToPop + 1 + }) + }); + } + }]); + + function YellowBoxWarning(message, stack) { + _classCallCheck(this, YellowBoxWarning); + + this.symbolicated = { + error: null, + stack: null, + status: 'NONE' + }; + this.message = message; + this.stack = stack; + } + + _createClass(YellowBoxWarning, [{ + key: "getAvailableStack", + value: function getAvailableStack() { + return this.symbolicated.status === 'COMPLETE' ? this.symbolicated.stack : this.stack; + } + }, { + key: "symbolicate", + value: function symbolicate(callback) { + var _this = this; + + var aborted = false; + + if (this.symbolicated.status !== 'COMPLETE') { + var updateStatus = function updateStatus(error, stack) { + if (error != null) { + _this.symbolicated = { + error: error, + stack: null, + status: 'FAILED' + }; + } else if (stack != null) { + _this.symbolicated = { + error: null, + stack: stack, + status: 'COMPLETE' + }; + } else { + _this.symbolicated = { + error: null, + stack: null, + status: 'PENDING' + }; + } + + if (!aborted) { + callback(); + } + }; + + updateStatus(null, null); + YellowBoxSymbolication.symbolicate(this.stack).then(function (stack) { + updateStatus(null, stack); + }, function (error) { + updateStatus(error, null); + }); + } + + return { + abort: function abort() { + aborted = true; + } + }; + } + }]); + + return YellowBoxWarning; + }(); + + function createStack(_ref2) { + var framesToPop = _ref2.framesToPop; + var error = new Error(); + error.framesToPop = framesToPop + 1; + return parseErrorStack(error); + } + + module.exports = YellowBoxWarning; +},442,[434,443,180],"node_modules/react-native/Libraries/YellowBox/Data/YellowBoxWarning.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var symbolicateStackTrace = _$$_REQUIRE(_dependencyMap[0], 'symbolicateStackTrace'); + + var cache = new Map(); + var YellowBoxSymbolication = { + symbolicate: function symbolicate(stack) { + var key = getCacheKey(stack); + var promise = cache.get(key); + + if (promise == null) { + promise = symbolicateStackTrace(stack).then(sanitize); + cache.set(key, promise); + } + + return promise; + } + }; + + var getCacheKey = function getCacheKey(stack) { + return JSON.stringify(stack); + }; + + var sanitize = function sanitize(maybeStack) { + if (!Array.isArray(maybeStack)) { + throw new Error('Expected stack to be an array.'); + } + + var stack = []; + + for (var _iterator = maybeStack, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var _maybeFrame = _ref; + + if (typeof _maybeFrame !== 'object' || _maybeFrame == null) { + throw new Error('Expected each stack frame to be an object.'); + } + + if (typeof _maybeFrame.column !== 'number' && _maybeFrame.column != null) { + throw new Error('Expected stack frame `column` to be a nullable number.'); + } + + if (typeof _maybeFrame.file !== 'string') { + throw new Error('Expected stack frame `file` to be a string.'); + } + + if (typeof _maybeFrame.lineNumber !== 'number') { + throw new Error('Expected stack frame `lineNumber` to be a number.'); + } + + if (typeof _maybeFrame.methodName !== 'string') { + throw new Error('Expected stack frame `methodName` to be a string.'); + } + + stack.push({ + column: _maybeFrame.column, + file: _maybeFrame.file, + lineNumber: _maybeFrame.lineNumber, + methodName: _maybeFrame.methodName + }); + } + + return stack; + }; + + module.exports = YellowBoxSymbolication; +},443,[272],"node_modules/react-native/Libraries/YellowBox/Data/YellowBoxSymbolication.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + + function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + + function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + + function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + + function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + + function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + + function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + + function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + var YellowBoxWarning = _$$_REQUIRE(_dependencyMap[0], 'YellowBoxWarning'); + + var observers = new Set(); + var ignorePatterns = new Set(); + var registry = new Map(); + var disabled = false; + var projection = new Map(); + var updateTimeout = null; + + function isWarningIgnored(warning) { + for (var _iterator = ignorePatterns, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var _pattern = _ref; + + if (warning.message.content.includes(_pattern)) { + return true; + } + } + + return false; + } + + function handleUpdate() { + projection = new Map(); + + if (!disabled) { + for (var _iterator2 = registry, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref4; + + if (_isArray2) { + if (_i2 >= _iterator2.length) break; + _ref4 = _iterator2[_i2++]; + } else { + _i2 = _iterator2.next(); + if (_i2.done) break; + _ref4 = _i2.value; + } + + var _ref5 = _ref4; + + var _ref3 = _slicedToArray(_ref5, 2); + + var _category = _ref3[0]; + var _warnings = _ref3[1]; + + var filtered = _warnings.filter(function (warning) { + return !isWarningIgnored(warning); + }); + + if (filtered.length > 0) { + projection.set(_category, filtered); + } + } + } + + if (updateTimeout == null) { + updateTimeout = setImmediate(function () { + updateTimeout = null; + + for (var _iterator3 = observers, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref7; + + if (_isArray3) { + if (_i3 >= _iterator3.length) break; + _ref7 = _iterator3[_i3++]; + } else { + _i3 = _iterator3.next(); + if (_i3.done) break; + _ref7 = _i3.value; + } + + var _ref8 = _ref7; + var _observer2 = _ref8.observer; + + _observer2(projection); + } + }); + } + } + + var YellowBoxRegistry = { + add: function add(_ref9) { + var args = _ref9.args, + framesToPop = _ref9.framesToPop; + + if (typeof args[0] === 'string' && args[0].startsWith('(ADVICE)')) { + return; + } + + var _YellowBoxWarning$par = YellowBoxWarning.parse({ + args: args, + framesToPop: framesToPop + 1 + }), + category = _YellowBoxWarning$par.category, + message = _YellowBoxWarning$par.message, + stack = _YellowBoxWarning$par.stack; + + var warnings = registry.get(category); + + if (warnings == null) { + warnings = []; + } + + warnings = _toConsumableArray(warnings).concat([new YellowBoxWarning(message, stack)]); + registry.delete(category); + registry.set(category, warnings); + handleUpdate(); + }, + delete: function _delete(category) { + if (registry.has(category)) { + registry.delete(category); + handleUpdate(); + } + }, + clear: function clear() { + if (registry.size > 0) { + registry.clear(); + handleUpdate(); + } + }, + addIgnorePatterns: function addIgnorePatterns(patterns) { + var newPatterns = patterns.filter(function (pattern) { + return !ignorePatterns.has(pattern); + }); + + if (newPatterns.length === 0) { + return; + } + + for (var _iterator4 = newPatterns, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref10; + + if (_isArray4) { + if (_i4 >= _iterator4.length) break; + _ref10 = _iterator4[_i4++]; + } else { + _i4 = _iterator4.next(); + if (_i4.done) break; + _ref10 = _i4.value; + } + + var _pattern2 = _ref10; + ignorePatterns.add(_pattern2); + } + + handleUpdate(); + }, + setDisabled: function setDisabled(value) { + if (value === disabled) { + return; + } + + disabled = value; + handleUpdate(); + }, + isDisabled: function isDisabled() { + return disabled; + }, + observe: function observe(observer) { + var subscription = { + observer: observer + }; + observers.add(subscription); + observer(projection); + return { + unsubscribe: function unsubscribe() { + observers.delete(subscription); + } + }; + } + }; + module.exports = YellowBoxRegistry; +},444,[442],"node_modules/react-native/Libraries/YellowBox/Data/YellowBoxRegistry.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var I18nManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').I18nManager || { + isRTL: false, + doLeftAndRightSwapInRTL: true, + allowRTL: function allowRTL() {}, + forceRTL: function forceRTL() {}, + swapLeftAndRightInRTL: function swapLeftAndRightInRTL() {} + }; + module.exports = I18nManager; +},445,[168],"node_modules/react-native/Libraries/ReactNative/I18nManager.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js"; + + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + NavigatorTransitionerIOS: { + displayName: "NavigatorTransitionerIOS" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var EventEmitter = _$$_REQUIRE(_dependencyMap[2], 'EventEmitter'); + + var Image = _$$_REQUIRE(_dependencyMap[3], 'Image'); + + var RCTNavigatorManager = _$$_REQUIRE(_dependencyMap[4], 'NativeModules').NavigatorManager; + + var React = _$$_REQUIRE(_dependencyMap[5], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[6], 'prop-types'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[7], 'ReactNative'); + + var StaticContainer = _$$_REQUIRE(_dependencyMap[8], 'StaticContainer.react'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[9], 'StyleSheet'); + + var TVEventHandler = _$$_REQUIRE(_dependencyMap[10], 'TVEventHandler'); + + var View = _$$_REQUIRE(_dependencyMap[11], 'View'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[12], 'ViewPropTypes'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[13], 'create-react-class'); + + var invariant = _$$_REQUIRE(_dependencyMap[14], 'fbjs/lib/invariant'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[15], 'requireNativeComponent'); + + var keyMirror = _$$_REQUIRE(_dependencyMap[16], 'fbjs/lib/keyMirror'); + + var TRANSITIONER_REF = 'transitionerRef'; + var __uid = 0; + + function getuid() { + return __uid++; + } + + var NavigatorTransitionerIOS = function (_React$Component) { + function NavigatorTransitionerIOS() { + _classCallCheck(this, NavigatorTransitionerIOS); + + return _possibleConstructorReturn(this, _getPrototypeOf(NavigatorTransitionerIOS).apply(this, arguments)); + } + + _createClass(NavigatorTransitionerIOS, [{ + key: "requestSchedulingNavigation", + value: function requestSchedulingNavigation(cb) { + RCTNavigatorManager.requestSchedulingJavaScriptNavigation(ReactNative.findNodeHandle(this), cb); + } + }, { + key: "render", + value: function render() { + return React.createElement(RCTNavigator, _extends({}, this.props, { + __source: { + fileName: _jsxFileName, + lineNumber: 50 + } + })); + } + }]); + + _inherits(NavigatorTransitionerIOS, _React$Component); + + return NavigatorTransitionerIOS; + }(React.Component); + + NavigatorTransitionerIOS = _wrapComponent("NavigatorTransitionerIOS")(NavigatorTransitionerIOS); + var SystemIconLabels = { + done: true, + cancel: true, + edit: true, + save: true, + add: true, + compose: true, + reply: true, + action: true, + organize: true, + bookmarks: true, + search: true, + refresh: true, + stop: true, + camera: true, + trash: true, + play: true, + pause: true, + rewind: true, + 'fast-forward': true, + undo: true, + redo: true, + 'page-curl': true + }; + var SystemIcons = keyMirror(SystemIconLabels); + var NavigatorIOS = createReactClass({ + displayName: 'NavigatorIOS', + propTypes: { + initialRoute: PropTypes.shape({ + component: PropTypes.func.isRequired, + title: PropTypes.string.isRequired, + titleImage: Image.propTypes.source, + passProps: PropTypes.object, + backButtonIcon: Image.propTypes.source, + backButtonTitle: PropTypes.string, + leftButtonIcon: Image.propTypes.source, + leftButtonTitle: PropTypes.string, + leftButtonSystemIcon: PropTypes.oneOf(Object.keys(SystemIcons)), + onLeftButtonPress: PropTypes.func, + rightButtonIcon: Image.propTypes.source, + rightButtonTitle: PropTypes.string, + rightButtonSystemIcon: PropTypes.oneOf(Object.keys(SystemIcons)), + onRightButtonPress: PropTypes.func, + wrapperStyle: ViewPropTypes.style, + navigationBarHidden: PropTypes.bool, + shadowHidden: PropTypes.bool, + tintColor: PropTypes.string, + barTintColor: PropTypes.string, + barStyle: PropTypes.oneOf(['default', 'black']), + titleTextColor: PropTypes.string, + translucent: PropTypes.bool + }).isRequired, + navigationBarHidden: PropTypes.bool, + shadowHidden: PropTypes.bool, + itemWrapperStyle: ViewPropTypes.style, + tintColor: PropTypes.string, + barTintColor: PropTypes.string, + barStyle: PropTypes.oneOf(['default', 'black']), + titleTextColor: PropTypes.string, + translucent: PropTypes.bool, + interactivePopGestureEnabled: PropTypes.bool + }, + navigator: undefined, + UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { + this.navigator = { + push: this.push, + pop: this.pop, + popN: this.popN, + replace: this.replace, + replaceAtIndex: this.replaceAtIndex, + replacePrevious: this.replacePrevious, + replacePreviousAndPop: this.replacePreviousAndPop, + resetTo: this.resetTo, + popToRoute: this.popToRoute, + popToTop: this.popToTop + }; + }, + componentDidMount: function componentDidMount() { + this._enableTVEventHandler(); + }, + componentWillUnmount: function componentWillUnmount() { + this._disableTVEventHandler(); + }, + getDefaultProps: function getDefaultProps() { + return { + translucent: true + }; + }, + getInitialState: function getInitialState() { + return { + idStack: [getuid()], + routeStack: [this.props.initialRoute], + requestedTopOfStack: 0, + observedTopOfStack: 0, + progress: 1, + fromIndex: 0, + toIndex: 0, + makingNavigatorRequest: false, + updatingAllIndicesAtOrBeyond: 0 + }; + }, + _toFocusOnNavigationComplete: undefined, + _handleFocusRequest: function _handleFocusRequest(item) { + if (this.state.makingNavigatorRequest) { + this._toFocusOnNavigationComplete = item; + } else { + this._getFocusEmitter().emit('focus', item); + } + }, + _focusEmitter: undefined, + _getFocusEmitter: function _getFocusEmitter() { + var focusEmitter = this._focusEmitter; + + if (!focusEmitter) { + focusEmitter = new EventEmitter(); + this._focusEmitter = focusEmitter; + } + + return focusEmitter; + }, + getChildContext: function getChildContext() { + return { + onFocusRequested: this._handleFocusRequest, + focusEmitter: this._getFocusEmitter() + }; + }, + childContextTypes: { + onFocusRequested: PropTypes.func, + focusEmitter: PropTypes.instanceOf(EventEmitter) + }, + _tryLockNavigator: function _tryLockNavigator(cb) { + this.refs[TRANSITIONER_REF].requestSchedulingNavigation(function (acquiredLock) { + return acquiredLock && cb(); + }); + }, + _handleNavigatorStackChanged: function _handleNavigatorStackChanged(e) { + var newObservedTopOfStack = e.nativeEvent.stackLength - 1; + invariant(newObservedTopOfStack <= this.state.requestedTopOfStack, 'No navigator item should be pushed without JS knowing about it %s %s', newObservedTopOfStack, this.state.requestedTopOfStack); + var wasWaitingForConfirmation = this.state.requestedTopOfStack !== this.state.observedTopOfStack; + + if (wasWaitingForConfirmation) { + invariant(newObservedTopOfStack === this.state.requestedTopOfStack, 'If waiting for observedTopOfStack to reach requestedTopOfStack, ' + 'the only valid observedTopOfStack should be requestedTopOfStack.'); + } + + var nextState = { + observedTopOfStack: newObservedTopOfStack, + makingNavigatorRequest: false, + updatingAllIndicesAtOrBeyond: null, + progress: 1, + toIndex: newObservedTopOfStack, + fromIndex: newObservedTopOfStack + }; + this.setState(nextState, this._eliminateUnneededChildren); + }, + _eliminateUnneededChildren: function _eliminateUnneededChildren() { + var updatingAllIndicesAtOrBeyond = this.state.routeStack.length > this.state.observedTopOfStack + 1 ? this.state.observedTopOfStack + 1 : null; + this.setState({ + idStack: this.state.idStack.slice(0, this.state.observedTopOfStack + 1), + routeStack: this.state.routeStack.slice(0, this.state.observedTopOfStack + 1), + requestedTopOfStack: this.state.observedTopOfStack, + makingNavigatorRequest: true, + updatingAllIndicesAtOrBeyond: updatingAllIndicesAtOrBeyond + }); + }, + push: function push(route) { + var _this = this; + + invariant(!!route, 'Must supply route to push'); + + if (this.state.requestedTopOfStack === this.state.observedTopOfStack) { + this._tryLockNavigator(function () { + var nextStack = _this.state.routeStack.concat([route]); + + var nextIDStack = _this.state.idStack.concat([getuid()]); + + _this.setState({ + idStack: nextIDStack, + routeStack: nextStack, + requestedTopOfStack: nextStack.length - 1, + makingNavigatorRequest: true, + updatingAllIndicesAtOrBeyond: nextStack.length - 1 + }); + }); + } + }, + popN: function popN(n) { + var _this2 = this; + + if (n === 0) { + return; + } + + if (this.state.requestedTopOfStack === this.state.observedTopOfStack) { + if (this.state.requestedTopOfStack > 0) { + this._tryLockNavigator(function () { + var newRequestedTopOfStack = _this2.state.requestedTopOfStack - n; + invariant(newRequestedTopOfStack >= 0, 'Cannot pop below 0'); + + _this2.setState({ + requestedTopOfStack: newRequestedTopOfStack, + makingNavigatorRequest: true, + updatingAllIndicesAtOrBeyond: _this2.state.requestedTopOfStack - n + }); + }); + } + } + }, + pop: function pop() { + this.popN(1); + }, + replaceAtIndex: function replaceAtIndex(route, index) { + invariant(!!route, 'Must supply route to replace'); + + if (index < 0) { + index += this.state.routeStack.length; + } + + if (this.state.routeStack.length <= index) { + return; + } + + var nextIDStack = this.state.idStack.slice(); + var nextRouteStack = this.state.routeStack.slice(); + nextIDStack[index] = getuid(); + nextRouteStack[index] = route; + this.setState({ + idStack: nextIDStack, + routeStack: nextRouteStack, + makingNavigatorRequest: false, + updatingAllIndicesAtOrBeyond: index + }); + }, + replace: function replace(route) { + this.replaceAtIndex(route, -1); + }, + replacePrevious: function replacePrevious(route) { + this.replaceAtIndex(route, -2); + }, + popToTop: function popToTop() { + this.popToRoute(this.state.routeStack[0]); + }, + popToRoute: function popToRoute(route) { + var indexOfRoute = this.state.routeStack.indexOf(route); + invariant(indexOfRoute !== -1, "Calling pop to route for a route that doesn't exist!"); + var numToPop = this.state.routeStack.length - indexOfRoute - 1; + this.popN(numToPop); + }, + replacePreviousAndPop: function replacePreviousAndPop(route) { + var _this3 = this; + + if (this.state.requestedTopOfStack !== this.state.observedTopOfStack) { + return; + } + + if (this.state.routeStack.length < 2) { + return; + } + + this._tryLockNavigator(function () { + _this3.replacePrevious(route); + + _this3.setState({ + requestedTopOfStack: _this3.state.requestedTopOfStack - 1, + makingNavigatorRequest: true + }); + }); + }, + resetTo: function resetTo(route) { + invariant(!!route, 'Must supply route to push'); + + if (this.state.requestedTopOfStack !== this.state.observedTopOfStack) { + return; + } + + this.replaceAtIndex(route, 0); + this.popToRoute(route); + }, + _handleNavigationComplete: function _handleNavigationComplete(e) { + e.stopPropagation(); + + if (this._toFocusOnNavigationComplete) { + this._getFocusEmitter().emit('focus', this._toFocusOnNavigationComplete); + + this._toFocusOnNavigationComplete = null; + } + + this._handleNavigatorStackChanged(e); + }, + _routeToStackItem: function _routeToStackItem(routeArg, i) { + var component = routeArg.component, + wrapperStyle = routeArg.wrapperStyle, + passProps = routeArg.passProps, + route = _objectWithoutProperties(routeArg, ["component", "wrapperStyle", "passProps"]); + + var _this$props = this.props, + itemWrapperStyle = _this$props.itemWrapperStyle, + props = _objectWithoutProperties(_this$props, ["itemWrapperStyle"]); + + var shouldUpdateChild = this.state.updatingAllIndicesAtOrBeyond != null && this.state.updatingAllIndicesAtOrBeyond >= i; + var Component = component; + return React.createElement(StaticContainer, { + key: 'nav' + i, + shouldUpdate: shouldUpdateChild, + __source: { + fileName: _jsxFileName, + lineNumber: 850 + } + }, React.createElement(RCTNavigatorItem, _extends({}, props, route, { + style: [styles.stackItem, itemWrapperStyle, wrapperStyle], + __source: { + fileName: _jsxFileName, + lineNumber: 851 + } + }), React.createElement(Component, _extends({ + navigator: this.navigator, + route: route + }, passProps, { + __source: { + fileName: _jsxFileName, + lineNumber: 855 + } + })))); + }, + _renderNavigationStackItems: function _renderNavigationStackItems() { + var shouldRecurseToNavigator = this.state.makingNavigatorRequest || this.state.updatingAllIndicesAtOrBeyond !== null; + var items = shouldRecurseToNavigator ? this.state.routeStack.map(this._routeToStackItem) : null; + return React.createElement(StaticContainer, { + shouldUpdate: shouldRecurseToNavigator, + __source: { + fileName: _jsxFileName, + lineNumber: 871 + } + }, React.createElement(NavigatorTransitionerIOS, { + ref: TRANSITIONER_REF, + style: styles.transitioner, + vertical: this.props.vertical, + requestedTopOfStack: this.state.requestedTopOfStack, + onNavigationComplete: this._handleNavigationComplete, + interactivePopGestureEnabled: this.props.interactivePopGestureEnabled, + __source: { + fileName: _jsxFileName, + lineNumber: 872 + } + }, items)); + }, + _tvEventHandler: undefined, + _enableTVEventHandler: function _enableTVEventHandler() { + this._tvEventHandler = new TVEventHandler(); + + this._tvEventHandler.enable(this, function (cmp, evt) { + if (evt && evt.eventType === 'menu') { + cmp.pop(); + } + }); + }, + _disableTVEventHandler: function _disableTVEventHandler() { + if (this._tvEventHandler) { + this._tvEventHandler.disable(); + + delete this._tvEventHandler; + } + }, + render: function render() { + return React.createElement(View, { + style: this.props.style, + __source: { + fileName: _jsxFileName, + lineNumber: 909 + } + }, this._renderNavigationStackItems()); + } + }); + var styles = StyleSheet.create({ + stackItem: { + backgroundColor: 'white', + overflow: 'hidden', + position: 'absolute', + top: 0, + left: 0, + right: 0, + bottom: 0 + }, + transitioner: { + flex: 1 + } + }); + var RCTNavigator = requireNativeComponent('RCTNavigator'); + var RCTNavigatorItem = requireNativeComponent('RCTNavItem'); + module.exports = NavigatorIOS; +},446,[1,11,195,361,168,200,212,261,447,201,327,227,376,365,166,229,210],"node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + StaticContainer: { + displayName: "StaticContainer" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/StaticContainer.react.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var StaticContainer = function (_React$Component) { + function StaticContainer() { + _classCallCheck(this, StaticContainer); + + return _possibleConstructorReturn(this, _getPrototypeOf(StaticContainer).apply(this, arguments)); + } + + _createClass(StaticContainer, [{ + key: "shouldComponentUpdate", + value: function shouldComponentUpdate(nextProps) { + return !!nextProps.shouldUpdate; + } + }, { + key: "render", + value: function render() { + var child = this.props.children; + return child === null || child === false ? null : React.Children.only(child); + } + }]); + + _inherits(StaticContainer, _React$Component); + + return StaticContainer; + }(React.Component); + + StaticContainer = _wrapComponent("StaticContainer")(StaticContainer); + module.exports = StaticContainer; +},447,[1,11,200],"node_modules/react-native/Libraries/Components/StaticContainer.react.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Picker/Picker.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var _components = { + PickerItem: { + displayName: "PickerItem" + }, + Picker: { + displayName: "Picker" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Picker/Picker.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); + + var PickerIOS = _$$_REQUIRE(_dependencyMap[3], 'PickerIOS'); + + var PickerAndroid = _$$_REQUIRE(_dependencyMap[4], 'PickerAndroid'); + + var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[6], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[7], 'prop-types'); + + var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[8], 'StyleSheetPropType'); + + var TextStylePropTypes = _$$_REQUIRE(_dependencyMap[9], 'TextStylePropTypes'); + + var UnimplementedView = _$$_REQUIRE(_dependencyMap[10], 'UnimplementedView'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[11], 'ViewPropTypes'); + + var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[12], 'ViewStylePropTypes'); + + var itemStylePropType = StyleSheetPropType(TextStylePropTypes); + var pickerStyleType = StyleSheetPropType(_objectSpread({}, ViewStylePropTypes, { + color: ColorPropType + })); + var MODE_DIALOG = 'dialog'; + var MODE_DROPDOWN = 'dropdown'; + + var PickerItem = function (_React$Component) { + function PickerItem() { + _classCallCheck(this, PickerItem); + + return _possibleConstructorReturn(this, _getPrototypeOf(PickerItem).apply(this, arguments)); + } + + _createClass(PickerItem, [{ + key: "render", + value: function render() { + throw null; + } + }]); + + _inherits(PickerItem, _React$Component); + + return PickerItem; + }(React.Component); + + PickerItem.propTypes = { + label: PropTypes.string.isRequired, + value: PropTypes.any, + color: ColorPropType, + testID: PropTypes.string + }; + PickerItem = _wrapComponent("PickerItem")(PickerItem); + + var Picker = function (_React$Component2) { + function Picker() { + _classCallCheck(this, Picker); + + return _possibleConstructorReturn(this, _getPrototypeOf(Picker).apply(this, arguments)); + } + + _createClass(Picker, [{ + key: "render", + value: function render() { + if (Platform.OS === 'ios') { + return React.createElement(PickerIOS, _extends({}, this.props, { + __source: { + fileName: _jsxFileName, + lineNumber: 155 + } + }), this.props.children); + } else if (Platform.OS === 'android') { + return React.createElement(PickerAndroid, _extends({}, this.props, { + __source: { + fileName: _jsxFileName, + lineNumber: 159 + } + }), this.props.children); + } else { + return React.createElement(UnimplementedView, { + __source: { + fileName: _jsxFileName, + lineNumber: 162 + } + }); + } + } + }]); + + _inherits(Picker, _React$Component2); + + return Picker; + }(React.Component); + + Picker.MODE_DIALOG = MODE_DIALOG; + Picker.MODE_DROPDOWN = MODE_DROPDOWN; + Picker.Item = PickerItem; + Picker.defaultProps = { + mode: MODE_DIALOG + }; + Picker.propTypes = _objectSpread({}, ViewPropTypes, { + style: pickerStyleType, + selectedValue: PropTypes.any, + onValueChange: PropTypes.func, + enabled: PropTypes.bool, + mode: PropTypes.oneOf(['dialog', 'dropdown']), + itemStyle: itemStylePropType, + prompt: PropTypes.string, + testID: PropTypes.string + }); + Picker = _wrapComponent("Picker")(Picker); + module.exports = Picker; +},448,[1,11,207,449,450,176,200,212,255,219,240,376,220],"node_modules/react-native/Libraries/Components/Picker/Picker.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Picker/PickerIOS.ios.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + PickerIOS: { + displayName: "PickerIOS" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Picker/PickerIOS.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[3], 'ReactNative'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[5], 'View'); + + var processColor = _$$_REQUIRE(_dependencyMap[6], 'processColor'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[7], 'requireNativeComponent'); + + var RCTPickerIOS = requireNativeComponent('RCTPicker'); + + var PickerIOSItem = function PickerIOSItem(props) { + return null; + }; + + var PickerIOS = function (_React$Component) { + function PickerIOS() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, PickerIOS); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PickerIOS)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._picker = null, _this.state = { + selectedIndex: 0, + items: [] + }, _this._onChange = function (event) { + if (_this.props.onChange) { + _this.props.onChange(event); + } + + if (_this.props.onValueChange) { + _this.props.onValueChange(event.nativeEvent.newValue, event.nativeEvent.newIndex); + } + + if (_this._picker && _this.state.selectedIndex !== event.nativeEvent.newIndex) { + _this._picker.setNativeProps({ + selectedIndex: _this.state.selectedIndex + }); + } + }, _temp)); + } + + _createClass(PickerIOS, [{ + key: "render", + value: function render() { + var _this2 = this; + + return React.createElement(View, { + style: this.props.style, + __source: { + fileName: _jsxFileName, + lineNumber: 112 + } + }, React.createElement(RCTPickerIOS, { + ref: function ref(picker) { + _this2._picker = picker; + }, + style: [styles.pickerIOS, this.props.itemStyle], + items: this.state.items, + selectedIndex: this.state.selectedIndex, + onChange: this._onChange, + onStartShouldSetResponder: function onStartShouldSetResponder() { + return true; + }, + onResponderTerminationRequest: function onResponderTerminationRequest() { + return false; + }, + __source: { + fileName: _jsxFileName, + lineNumber: 113 + } + })); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(props) { + var selectedIndex = 0; + var items = []; + React.Children.toArray(props.children).forEach(function (child, index) { + if (child.props.value === props.selectedValue) { + selectedIndex = index; + } + + items.push({ + value: child.props.value, + label: child.props.label, + textColor: processColor(child.props.color) + }); + }); + return { + selectedIndex: selectedIndex, + items: items + }; + } + }]); + + _inherits(PickerIOS, _React$Component); + + return PickerIOS; + }(React.Component); + + PickerIOS.Item = PickerIOSItem; + PickerIOS = _wrapComponent("PickerIOS")(PickerIOS); + var styles = StyleSheet.create({ + pickerIOS: { + height: 216 + } + }); + module.exports = PickerIOS; +},449,[1,11,200,261,201,227,221,229],"node_modules/react-native/Libraries/Components/Picker/PickerIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); +},450,[240],"node_modules/react-native/Libraries/Components/Picker/PickerAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var Image = _$$_REQUIRE(_dependencyMap[0], 'Image'); + + var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[1], 'NativeMethodsMixin'); + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[3], 'ReactNative'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[6], 'ViewPropTypes'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[7], 'create-react-class'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[8], 'requireNativeComponent'); + + var RCTProgressView = requireNativeComponent('RCTProgressView'); + var ProgressViewIOS = createReactClass({ + displayName: 'ProgressViewIOS', + mixins: [NativeMethodsMixin], + propTypes: _objectSpread({}, ViewPropTypes, { + progressViewStyle: PropTypes.oneOf(['default', 'bar']), + progress: PropTypes.number, + progressTintColor: PropTypes.string, + trackTintColor: PropTypes.string, + progressImage: Image.propTypes.source, + trackImage: Image.propTypes.source + }), + render: function render() { + return React.createElement(RCTProgressView, _extends({}, this.props, { + style: [styles.progressView, this.props.style], + __source: { + fileName: _jsxFileName, + lineNumber: 82 + } + })); + } + }); + var styles = StyleSheet.create({ + progressView: { + height: 2 + } + }); + module.exports = ProgressViewIOS; +},451,[361,364,200,261,212,201,376,365,229],"node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/SectionList.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var _components = { + SectionList: { + displayName: "SectionList" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/SectionList.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var MetroListView = _$$_REQUIRE(_dependencyMap[2], 'MetroListView'); + + var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[4], 'React'); + + var ScrollView = _$$_REQUIRE(_dependencyMap[5], 'ScrollView'); + + var VirtualizedSectionList = _$$_REQUIRE(_dependencyMap[6], 'VirtualizedSectionList'); + + var defaultProps = _objectSpread({}, VirtualizedSectionList.defaultProps, { + stickySectionHeadersEnabled: Platform.OS === 'ios' + }); + + var SectionList = function (_React$PureComponent) { + function SectionList() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, SectionList); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SectionList)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._captureRef = function (ref) { + _this._wrapperListRef = ref; + }, _temp)); + } + + _createClass(SectionList, [{ + key: "scrollToLocation", + value: function scrollToLocation(params) { + this._wrapperListRef.scrollToLocation(params); + } + }, { + key: "recordInteraction", + value: function recordInteraction() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + + listRef && listRef.recordInteraction(); + } + }, { + key: "flashScrollIndicators", + value: function flashScrollIndicators() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + + listRef && listRef.flashScrollIndicators(); + } + }, { + key: "getScrollResponder", + value: function getScrollResponder() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + + if (listRef) { + return listRef.getScrollResponder(); + } + } + }, { + key: "getScrollableNode", + value: function getScrollableNode() { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + + if (listRef) { + return listRef.getScrollableNode(); + } + } + }, { + key: "setNativeProps", + value: function setNativeProps(props) { + var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); + + if (listRef) { + listRef.setNativeProps(props); + } + } + }, { + key: "render", + value: function render() { + var List = this.props.legacyImplementation ? MetroListView : VirtualizedSectionList; + return React.createElement(List, _extends({}, this.props, { + ref: this._captureRef, + __source: { + fileName: _jsxFileName, + lineNumber: 332 + } + })); + } + }]); + + _inherits(SectionList, _React$PureComponent); + + return SectionList; + }(React.PureComponent); + + SectionList.defaultProps = defaultProps; + SectionList = _wrapComponent("SectionList")(SectionList); + module.exports = SectionList; +},452,[1,11,389,176,200,367,453],"node_modules/react-native/Libraries/Lists/SectionList.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + var _components = { + VirtualizedSectionList: { + displayName: "VirtualizedSectionList" + }, + ItemWithSeparator: { + displayName: "ItemWithSeparator" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var View = _$$_REQUIRE(_dependencyMap[3], 'View'); + + var VirtualizedList = _$$_REQUIRE(_dependencyMap[4], 'VirtualizedList'); + + var invariant = _$$_REQUIRE(_dependencyMap[5], 'fbjs/lib/invariant'); + + var VirtualizedSectionList = function (_React$PureComponent) { + _createClass(VirtualizedSectionList, [{ + key: "scrollToLocation", + value: function scrollToLocation(params) { + var index = params.itemIndex + 1; + + for (var ii = 0; ii < params.sectionIndex; ii++) { + index += this.props.sections[ii].data.length + 2; + } + + var toIndexParams = _objectSpread({}, params, { + index: index + }); + + this._listRef.scrollToIndex(toIndexParams); + } + }, { + key: "getListRef", + value: function getListRef() { + return this._listRef; + } + }]); + + function VirtualizedSectionList(props, context) { + var _this; + + _classCallCheck(this, VirtualizedSectionList); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(VirtualizedSectionList).call(this, props, context)); + + _this._keyExtractor = function (item, index) { + var info = _this._subExtractor(index); + + return info && info.key || String(index); + }; + + _this._convertViewable = function (viewable) { + invariant(viewable.index != null, 'Received a broken ViewToken'); + + var info = _this._subExtractor(viewable.index); + + if (!info) { + return null; + } + + var keyExtractor = info.section.keyExtractor || _this.props.keyExtractor; + return _objectSpread({}, viewable, { + index: info.index, + key: keyExtractor(viewable.item, info.index), + section: info.section + }); + }; + + _this._onViewableItemsChanged = function (_ref) { + var viewableItems = _ref.viewableItems, + changed = _ref.changed; + + if (_this.props.onViewableItemsChanged) { + _this.props.onViewableItemsChanged({ + viewableItems: viewableItems.map(_this._convertViewable, _assertThisInitialized(_assertThisInitialized(_this))).filter(Boolean), + changed: changed.map(_this._convertViewable, _assertThisInitialized(_assertThisInitialized(_this))).filter(Boolean) + }); + } + }; + + _this._renderItem = function (_ref2) { + var item = _ref2.item, + index = _ref2.index; + + var info = _this._subExtractor(index); + + if (!info) { + return null; + } + + var infoIndex = info.index; + + if (infoIndex == null) { + var _section = info.section; + + if (info.header === true) { + var _renderSectionHeader = _this.props.renderSectionHeader; + return _renderSectionHeader ? _renderSectionHeader({ + section: _section + }) : null; + } else { + var _renderSectionFooter = _this.props.renderSectionFooter; + return _renderSectionFooter ? _renderSectionFooter({ + section: _section + }) : null; + } + } else { + var _renderItem = info.section.renderItem || _this.props.renderItem; + + var _SeparatorComponent = _this._getSeparatorComponent(index, info); + + invariant(_renderItem, 'no renderItem!'); + return React.createElement(ItemWithSeparator, { + SeparatorComponent: _SeparatorComponent, + LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined, + cellKey: info.key, + index: infoIndex, + item: item, + leadingItem: info.leadingItem, + leadingSection: info.leadingSection, + onUpdateSeparator: _this._onUpdateSeparator, + prevCellKey: (_this._subExtractor(index - 1) || {}).key, + ref: function ref(_ref3) { + _this._cellRefs[info.key] = _ref3; + }, + renderItem: _renderItem, + section: info.section, + trailingItem: info.trailingItem, + trailingSection: info.trailingSection, + __source: { + fileName: _jsxFileName, + lineNumber: 316 + } + }); + } + }; + + _this._onUpdateSeparator = function (key, newProps) { + var ref = _this._cellRefs[key]; + ref && ref.updateSeparatorProps(newProps); + }; + + _this._cellRefs = {}; + + _this._captureRef = function (ref) { + _this._listRef = ref; + }; + + _this.state = _this._computeState(props); + return _this; + } + + _createClass(VirtualizedSectionList, [{ + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(nextProps) { + this.setState(this._computeState(nextProps)); + } + }, { + key: "_computeState", + value: function _computeState(props) { + var offset = props.ListHeaderComponent ? 1 : 0; + var stickyHeaderIndices = []; + var itemCount = props.sections.reduce(function (v, section) { + stickyHeaderIndices.push(v + offset); + return v + section.data.length + 2; + }, 0); + return { + childProps: _objectSpread({}, props, { + renderItem: this._renderItem, + ItemSeparatorComponent: undefined, + data: props.sections, + getItemCount: function getItemCount() { + return itemCount; + }, + getItem: getItem, + keyExtractor: this._keyExtractor, + onViewableItemsChanged: props.onViewableItemsChanged ? this._onViewableItemsChanged : undefined, + stickyHeaderIndices: props.stickySectionHeadersEnabled ? stickyHeaderIndices : undefined + }) + }; + } + }, { + key: "render", + value: function render() { + return React.createElement(VirtualizedList, _extends({}, this.state.childProps, { + ref: this._captureRef, + __source: { + fileName: _jsxFileName, + lineNumber: 201 + } + })); + } + }, { + key: "_subExtractor", + value: function _subExtractor(index) { + var itemIndex = index; + var defaultKeyExtractor = this.props.keyExtractor; + + for (var ii = 0; ii < this.props.sections.length; ii++) { + var _section2 = this.props.sections[ii]; + + var _key = _section2.key || String(ii); + + itemIndex -= 1; + + if (itemIndex >= _section2.data.length + 1) { + itemIndex -= _section2.data.length + 1; + } else if (itemIndex === -1) { + return { + section: _section2, + key: _key + ':header', + index: null, + header: true, + trailingSection: this.props.sections[ii + 1] + }; + } else if (itemIndex === _section2.data.length) { + return { + section: _section2, + key: _key + ':footer', + index: null, + header: false, + trailingSection: this.props.sections[ii + 1] + }; + } else { + var _keyExtractor = _section2.keyExtractor || defaultKeyExtractor; + + return { + section: _section2, + key: _key + ':' + _keyExtractor(_section2.data[itemIndex], itemIndex), + index: itemIndex, + leadingItem: _section2.data[itemIndex - 1], + leadingSection: this.props.sections[ii - 1], + trailingItem: _section2.data[itemIndex + 1], + trailingSection: this.props.sections[ii + 1] + }; + } + } + } + }, { + key: "_getSeparatorComponent", + value: function _getSeparatorComponent(index, info) { + info = info || this._subExtractor(index); + + if (!info) { + return null; + } + + var ItemSeparatorComponent = info.section.ItemSeparatorComponent || this.props.ItemSeparatorComponent; + var SectionSeparatorComponent = this.props.SectionSeparatorComponent; + var isLastItemInList = index === this.state.childProps.getItemCount() - 1; + var isLastItemInSection = info.index === info.section.data.length - 1; + + if (SectionSeparatorComponent && isLastItemInSection) { + return SectionSeparatorComponent; + } + + if (ItemSeparatorComponent && !isLastItemInSection && !isLastItemInList) { + return ItemSeparatorComponent; + } + + return null; + } + }]); + + _inherits(VirtualizedSectionList, _React$PureComponent); + + return VirtualizedSectionList; + }(React.PureComponent); + + VirtualizedSectionList.defaultProps = _objectSpread({}, VirtualizedList.defaultProps, { + data: [] + }); + VirtualizedSectionList = _wrapComponent("VirtualizedSectionList")(VirtualizedSectionList); + + var ItemWithSeparator = function (_React$Component) { + function ItemWithSeparator() { + var _getPrototypeOf2; + + var _temp, _this2; + + _classCallCheck(this, ItemWithSeparator); + + for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { + args[_key2] = arguments[_key2]; + } + + return _possibleConstructorReturn(_this2, (_temp = _this2 = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ItemWithSeparator)).call.apply(_getPrototypeOf2, [this].concat(args))), _this2.state = { + separatorProps: { + highlighted: false, + leadingItem: _this2.props.item, + leadingSection: _this2.props.leadingSection, + section: _this2.props.section, + trailingItem: _this2.props.trailingItem, + trailingSection: _this2.props.trailingSection + }, + leadingSeparatorProps: { + highlighted: false, + leadingItem: _this2.props.leadingItem, + leadingSection: _this2.props.leadingSection, + section: _this2.props.section, + trailingItem: _this2.props.item, + trailingSection: _this2.props.trailingSection + } + }, _this2._separators = { + highlight: function highlight() { + ['leading', 'trailing'].forEach(function (s) { + return _this2._separators.updateProps(s, { + highlighted: true + }); + }); + }, + unhighlight: function unhighlight() { + ['leading', 'trailing'].forEach(function (s) { + return _this2._separators.updateProps(s, { + highlighted: false + }); + }); + }, + updateProps: function updateProps(select, newProps) { + var _this2$props = _this2.props, + LeadingSeparatorComponent = _this2$props.LeadingSeparatorComponent, + cellKey = _this2$props.cellKey, + prevCellKey = _this2$props.prevCellKey; + + if (select === 'leading' && LeadingSeparatorComponent != null) { + _this2.setState(function (state) { + return { + leadingSeparatorProps: _objectSpread({}, state.leadingSeparatorProps, newProps) + }; + }); + } else { + _this2.props.onUpdateSeparator(select === 'leading' && prevCellKey || cellKey, newProps); + } + } + }, _temp)); + } + + _createClass(ItemWithSeparator, [{ + key: "updateSeparatorProps", + value: function updateSeparatorProps(newProps) { + this.setState(function (state) { + return { + separatorProps: _objectSpread({}, state.separatorProps, newProps) + }; + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + LeadingSeparatorComponent = _this$props.LeadingSeparatorComponent, + SeparatorComponent = _this$props.SeparatorComponent, + item = _this$props.item, + index = _this$props.index, + section = _this$props.section; + var element = this.props.renderItem({ + item: item, + index: index, + section: section, + separators: this._separators + }); + var leadingSeparator = LeadingSeparatorComponent && React.createElement(LeadingSeparatorComponent, _extends({}, this.state.leadingSeparatorProps, { + __source: { + fileName: _jsxFileName, + lineNumber: 502 + } + })); + var separator = SeparatorComponent && React.createElement(SeparatorComponent, _extends({}, this.state.separatorProps, { + __source: { + fileName: _jsxFileName, + lineNumber: 505 + } + })); + return leadingSeparator || separator ? React.createElement(View, { + __source: { + fileName: _jsxFileName, + lineNumber: 508 + } + }, leadingSeparator, element, separator) : element; + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(props, prevState) { + return { + separatorProps: _objectSpread({}, prevState.separatorProps, { + leadingItem: props.item, + leadingSection: props.leadingSection, + section: props.section, + trailingItem: props.trailingItem, + trailingSection: props.trailingSection + }), + leadingSeparatorProps: _objectSpread({}, prevState.leadingSeparatorProps, { + leadingItem: props.leadingItem, + leadingSection: props.leadingSection, + section: props.section, + trailingItem: props.item, + trailingSection: props.trailingSection + }) + }; + } + }]); + + _inherits(ItemWithSeparator, _React$Component); + + return ItemWithSeparator; + }(React.Component); + + ItemWithSeparator = _wrapComponent("ItemWithSeparator")(ItemWithSeparator); + + function getItem(sections, index) { + if (!sections) { + return null; + } + + var itemIdx = index - 1; + + for (var ii = 0; ii < sections.length; ii++) { + if (itemIdx === -1 || itemIdx === sections[ii].data.length) { + return sections[ii]; + } else if (itemIdx < sections[ii].data.length) { + return sections[ii].data[itemIdx]; + } else { + itemIdx -= sections[ii].data.length + 2; + } + } + + return null; + } + + module.exports = VirtualizedSectionList; +},453,[1,11,200,227,397,166],"node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[0], 'NativeMethodsMixin'); + + var React = _$$_REQUIRE(_dependencyMap[1], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[2], 'ReactNative'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[5], 'ViewPropTypes'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[6], 'create-react-class'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[7], 'requireNativeComponent'); + + var RCTSegmentedControl = requireNativeComponent('RCTSegmentedControl'); + var SEGMENTED_CONTROL_REFERENCE = 'segmentedcontrol'; + var SegmentedControlIOS = createReactClass({ + displayName: 'SegmentedControlIOS', + mixins: [NativeMethodsMixin], + propTypes: _objectSpread({}, ViewPropTypes, { + values: PropTypes.arrayOf(PropTypes.string), + selectedIndex: PropTypes.number, + onValueChange: PropTypes.func, + onChange: PropTypes.func, + enabled: PropTypes.bool, + tintColor: PropTypes.string, + momentary: PropTypes.bool + }), + getDefaultProps: function getDefaultProps() { + return { + values: [], + enabled: true + }; + }, + _onChange: function _onChange(event) { + this.props.onChange && this.props.onChange(event); + this.props.onValueChange && this.props.onValueChange(event.nativeEvent.value); + }, + render: function render() { + return React.createElement(RCTSegmentedControl, _extends({}, this.props, { + ref: SEGMENTED_CONTROL_REFERENCE, + style: [styles.segmentedControl, this.props.style], + onChange: this._onChange, + __source: { + fileName: _jsxFileName, + lineNumber: 128 + } + })); + } + }); + var styles = StyleSheet.create({ + segmentedControl: { + height: 28 + } + }); + module.exports = SegmentedControlIOS; +},454,[364,200,261,212,201,376,365,229],"node_modules/react-native/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Slider/Slider.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var ReactNative = _$$_REQUIRE(_dependencyMap[0], 'ReactNative'); + + var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[4], 'requireNativeComponent'); + + var RCTSlider = requireNativeComponent('RCTSlider'); + + var Slider = function Slider(props, forwardedRef) { + var style = StyleSheet.compose(styles.slider, props.style); + + var onValueChange = props.onValueChange && function (event) { + var userEvent = true; + + if (Platform.OS === 'android') { + userEvent = event.nativeEvent.fromUser; + } + + props.onValueChange && userEvent && props.onValueChange(event.nativeEvent.value); + }; + + var onChange = onValueChange; + + var onSlidingComplete = props.onSlidingComplete && function (event) { + props.onSlidingComplete && props.onSlidingComplete(event.nativeEvent.value); + }; + + return React.createElement(RCTSlider, _extends({}, props, { + ref: forwardedRef, + style: style, + onChange: onChange, + onSlidingComplete: onSlidingComplete, + onValueChange: onValueChange, + enabled: !props.disabled, + onStartShouldSetResponder: function onStartShouldSetResponder() { + return true; + }, + onResponderTerminationRequest: function onResponderTerminationRequest() { + return false; + }, + __source: { + fileName: _jsxFileName, + lineNumber: 229 + } + })); + }; + + var SliderWithRef = React.forwardRef(Slider); + SliderWithRef.defaultProps = { + disabled: false, + value: 0, + minimumValue: 0, + maximumValue: 1, + step: 0 + }; + SliderWithRef.displayName = 'Slider'; + var styles; + + if (Platform.OS === 'ios') { + styles = StyleSheet.create({ + slider: { + height: 40 + } + }); + } else { + styles = StyleSheet.create({ + slider: {} + }); + } + + module.exports = SliderWithRef; +},455,[261,176,200,201,229],"node_modules/react-native/Libraries/Components/Slider/Slider.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/RCTTest/SnapshotViewIOS.ios.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + SnapshotViewIOS: { + displayName: "SnapshotViewIOS" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/RCTTest/SnapshotViewIOS.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); + + var _require = _$$_REQUIRE(_dependencyMap[5], 'NativeModules'), + TestModule = _require.TestModule; + + var UIManager = _$$_REQUIRE(_dependencyMap[6], 'UIManager'); + + var View = _$$_REQUIRE(_dependencyMap[7], 'View'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[8], 'ViewPropTypes'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[9], 'requireNativeComponent'); + + var RCTSnapshot = UIManager.RCTSnapshot ? requireNativeComponent('RCTSnapshot') : View; + + var SnapshotViewIOS = function (_React$Component) { + function SnapshotViewIOS() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, SnapshotViewIOS); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SnapshotViewIOS)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.onDefaultAction = function (event) { + TestModule.verifySnapshot(TestModule.markTestPassed); + }, _temp)); + } + + _createClass(SnapshotViewIOS, [{ + key: "render", + value: function render() { + var testIdentifier = this.props.testIdentifier || 'test'; + var onSnapshotReady = this.props.onSnapshotReady || this.onDefaultAction; + return React.createElement(RCTSnapshot, _extends({ + style: style.snapshot + }, this.props, { + onSnapshotReady: onSnapshotReady, + testIdentifier: testIdentifier, + __source: { + fileName: _jsxFileName, + lineNumber: 53 + } + })); + } + }]); + + _inherits(SnapshotViewIOS, _React$Component); + + return SnapshotViewIOS; + }(React.Component); + + SnapshotViewIOS.propTypes = _objectSpread({}, ViewPropTypes, { + onSnapshotReady: PropTypes.func, + testIdentifier: PropTypes.string + }); + SnapshotViewIOS = _wrapComponent("SnapshotViewIOS")(SnapshotViewIOS); + var style = StyleSheet.create({ + snapshot: { + flex: 1 + } + }); + module.exports = SnapshotViewIOS; +},456,[1,11,200,212,201,168,218,227,376,229],"node_modules/react-native/Libraries/RCTTest/SnapshotViewIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Switch/Switch.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + Switch: { + displayName: "Switch" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/Switch/Switch.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[4], 'ReactNative'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); + + var nullthrows = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/nullthrows'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[7], 'requireNativeComponent'); + + var RCTSwitch = Platform.OS === 'android' ? requireNativeComponent('AndroidSwitch') : requireNativeComponent('RCTSwitch'); + + var Switch = function (_React$Component) { + function Switch() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, Switch); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Switch)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._rctSwitch = null, _this._onChange = function (event) { + if (Platform.OS === 'android') { + nullthrows(_this._rctSwitch).setNativeProps({ + on: _this.props.value + }); + } else { + nullthrows(_this._rctSwitch).setNativeProps({ + value: _this.props.value + }); + } + + _this.props.onChange && _this.props.onChange(event); + _this.props.onValueChange && _this.props.onValueChange(event.nativeEvent.value); + }, _temp)); + } + + _createClass(Switch, [{ + key: "render", + value: function render() { + var _this2 = this; + + var props = _objectSpread({}, this.props, { + onStartShouldSetResponder: function onStartShouldSetResponder() { + return true; + }, + onResponderTerminationRequest: function onResponderTerminationRequest() { + return false; + } + }); + + var platformProps = Platform.OS === 'android' ? { + enabled: !this.props.disabled, + on: this.props.value, + style: this.props.style, + trackTintColor: this.props.value ? this.props.onTintColor : this.props.tintColor + } : { + style: StyleSheet.compose(styles.rctSwitchIOS, this.props.style) + }; + return React.createElement(RCTSwitch, _extends({}, props, platformProps, { + ref: function ref(_ref) { + _this2._rctSwitch = _ref; + }, + onChange: this._onChange, + __source: { + fileName: _jsxFileName, + lineNumber: 144 + } + })); + } + }]); + + _inherits(Switch, _React$Component); + + return Switch; + }(React.Component); + + Switch.defaultProps = { + value: false, + disabled: false + }; + Switch = _wrapComponent("Switch")(Switch); + var styles = StyleSheet.create({ + rctSwitchIOS: { + height: 31, + width: 51 + } + }); + module.exports = Switch; +},457,[1,11,176,200,261,201,329,229],"node_modules/react-native/Libraries/Components/Switch/Switch.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var _components = { + StatusBar: { + displayName: "StatusBar" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var React = _$$_REQUIRE(_dependencyMap[2], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var ColorPropType = _$$_REQUIRE(_dependencyMap[4], 'ColorPropType'); + + var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); + + var processColor = _$$_REQUIRE(_dependencyMap[6], 'processColor'); + + var StatusBarManager = _$$_REQUIRE(_dependencyMap[7], 'NativeModules').StatusBarManager; + + function mergePropsStack(propsStack, defaultValues) { + return propsStack.reduce(function (prev, cur) { + for (var prop in cur) { + if (cur[prop] != null) { + prev[prop] = cur[prop]; + } + } + + return prev; + }, _extends({}, defaultValues)); + } + + function createStackEntry(props) { + return { + backgroundColor: props.backgroundColor != null ? { + value: props.backgroundColor, + animated: props.animated + } : null, + barStyle: props.barStyle != null ? { + value: props.barStyle, + animated: props.animated + } : null, + translucent: props.translucent, + hidden: props.hidden != null ? { + value: props.hidden, + animated: props.animated, + transition: props.showHideTransition + } : null, + networkActivityIndicatorVisible: props.networkActivityIndicatorVisible + }; + } + + var StatusBar = function (_React$Component) { + function StatusBar() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, StatusBar); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(StatusBar)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._stackEntry = null, _this._updatePropsStack = function () { + clearImmediate(StatusBar._updateImmediate); + StatusBar._updateImmediate = setImmediate(function () { + var oldProps = StatusBar._currentValues; + var mergedProps = mergePropsStack(StatusBar._propsStack, StatusBar._defaultProps); + + if (Platform.OS === 'ios') { + if (!oldProps || oldProps.barStyle.value !== mergedProps.barStyle.value) { + StatusBarManager.setStyle(mergedProps.barStyle.value, mergedProps.barStyle.animated); + } + + if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { + StatusBarManager.setHidden(mergedProps.hidden.value, mergedProps.hidden.animated ? mergedProps.hidden.transition : 'none'); + } + + if (!oldProps || oldProps.networkActivityIndicatorVisible !== mergedProps.networkActivityIndicatorVisible) { + StatusBarManager.setNetworkActivityIndicatorVisible(mergedProps.networkActivityIndicatorVisible); + } + } else if (Platform.OS === 'android') { + if (!oldProps || oldProps.barStyle.value !== mergedProps.barStyle.value) { + StatusBarManager.setStyle(mergedProps.barStyle.value); + } + + if (!oldProps || oldProps.backgroundColor.value !== mergedProps.backgroundColor.value) { + StatusBarManager.setColor(processColor(mergedProps.backgroundColor.value), mergedProps.backgroundColor.animated); + } + + if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { + StatusBarManager.setHidden(mergedProps.hidden.value); + } + + if (!oldProps || oldProps.translucent !== mergedProps.translucent) { + StatusBarManager.setTranslucent(mergedProps.translucent); + } + } + + StatusBar._currentValues = mergedProps; + }); + }, _temp)); + } + + _createClass(StatusBar, [{ + key: "componentDidMount", + value: function componentDidMount() { + this._stackEntry = createStackEntry(this.props); + + StatusBar._propsStack.push(this._stackEntry); + + this._updatePropsStack(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + var index = StatusBar._propsStack.indexOf(this._stackEntry); + + StatusBar._propsStack.splice(index, 1); + + this._updatePropsStack(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + var index = StatusBar._propsStack.indexOf(this._stackEntry); + + this._stackEntry = createStackEntry(this.props); + StatusBar._propsStack[index] = this._stackEntry; + + this._updatePropsStack(); + } + }, { + key: "render", + value: function render() { + return null; + } + }], [{ + key: "setHidden", + value: function setHidden(hidden, animation) { + animation = animation || 'none'; + StatusBar._defaultProps.hidden.value = hidden; + + if (Platform.OS === 'ios') { + StatusBarManager.setHidden(hidden, animation); + } else if (Platform.OS === 'android') { + StatusBarManager.setHidden(hidden); + } + } + }, { + key: "setBarStyle", + value: function setBarStyle(style, animated) { + animated = animated || false; + StatusBar._defaultProps.barStyle.value = style; + + if (Platform.OS === 'ios') { + StatusBarManager.setStyle(style, animated); + } else if (Platform.OS === 'android') { + StatusBarManager.setStyle(style); + } + } + }, { + key: "setNetworkActivityIndicatorVisible", + value: function setNetworkActivityIndicatorVisible(visible) { + if (Platform.OS !== 'ios') { + console.warn('`setNetworkActivityIndicatorVisible` is only available on iOS'); + return; + } + + StatusBar._defaultProps.networkActivityIndicatorVisible = visible; + StatusBarManager.setNetworkActivityIndicatorVisible(visible); + } + }, { + key: "setBackgroundColor", + value: function setBackgroundColor(color, animated) { + if (Platform.OS !== 'android') { + console.warn('`setBackgroundColor` is only available on Android'); + return; + } + + animated = animated || false; + StatusBar._defaultProps.backgroundColor.value = color; + StatusBarManager.setColor(processColor(color), animated); + } + }, { + key: "setTranslucent", + value: function setTranslucent(translucent) { + if (Platform.OS !== 'android') { + console.warn('`setTranslucent` is only available on Android'); + return; + } + + StatusBar._defaultProps.translucent = translucent; + StatusBarManager.setTranslucent(translucent); + } + }]); + + _inherits(StatusBar, _React$Component); + + return StatusBar; + }(React.Component); + + StatusBar._propsStack = []; + StatusBar._defaultProps = createStackEntry({ + animated: false, + showHideTransition: 'fade', + backgroundColor: 'black', + barStyle: 'default', + translucent: false, + hidden: false, + networkActivityIndicatorVisible: false + }); + StatusBar._updateImmediate = null; + StatusBar._currentValues = null; + StatusBar.currentHeight = StatusBarManager.HEIGHT; + StatusBar.propTypes = { + hidden: PropTypes.bool, + animated: PropTypes.bool, + backgroundColor: ColorPropType, + translucent: PropTypes.bool, + barStyle: PropTypes.oneOf(['default', 'light-content', 'dark-content']), + networkActivityIndicatorVisible: PropTypes.bool, + showHideTransition: PropTypes.oneOf(['fade', 'slide']) + }; + StatusBar.defaultProps = { + animated: false, + showHideTransition: 'fade' + }; + StatusBar = _wrapComponent("StatusBar")(StatusBar); + module.exports = StatusBar; +},458,[1,11,200,212,207,176,221,168],"node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + SwipeableFlatList: { + displayName: "SwipeableFlatList" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var SwipeableRow = _$$_REQUIRE(_dependencyMap[4], 'SwipeableRow'); + + var FlatList = _$$_REQUIRE(_dependencyMap[5], 'FlatList'); + + var SwipeableFlatList = function (_React$Component) { + function SwipeableFlatList(props, context) { + var _this; + + _classCallCheck(this, SwipeableFlatList); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(SwipeableFlatList).call(this, props, context)); + _this._flatListRef = null; + _this._shouldBounceFirstRowOnMount = false; + + _this._onScroll = function (e) { + if (_this.state.openRowKey) { + _this.setState({ + openRowKey: null + }); + } + + _this.props.onScroll && _this.props.onScroll(e); + }; + + _this._renderItem = function (info) { + var slideoutView = _this.props.renderQuickActions(info); + + var key = _this.props.keyExtractor(info.item, info.index); + + if (!slideoutView) { + return _this.props.renderItem(info); + } + + var shouldBounceOnMount = false; + + if (_this._shouldBounceFirstRowOnMount) { + _this._shouldBounceFirstRowOnMount = false; + shouldBounceOnMount = true; + } + + return React.createElement(SwipeableRow, { + slideoutView: slideoutView, + isOpen: key === _this.state.openRowKey, + maxSwipeDistance: _this._getMaxSwipeDistance(info), + onOpen: function onOpen() { + return _this._onOpen(key); + }, + onClose: function onClose() { + return _this._onClose(key); + }, + shouldBounceOnMount: shouldBounceOnMount, + onSwipeEnd: _this._setListViewScrollable, + onSwipeStart: _this._setListViewNotScrollable, + __source: { + fileName: _jsxFileName, + lineNumber: 134 + } + }, _this.props.renderItem(info)); + }; + + _this._setListViewScrollable = function () { + _this._setListViewScrollableTo(true); + }; + + _this._setListViewNotScrollable = function () { + _this._setListViewScrollableTo(false); + }; + + _this.state = { + openRowKey: null + }; + _this._shouldBounceFirstRowOnMount = _this.props.bounceFirstRowOnMount; + return _this; + } + + _createClass(SwipeableFlatList, [{ + key: "render", + value: function render() { + var _this2 = this; + + return React.createElement(FlatList, _extends({}, this.props, { + ref: function ref(_ref) { + _this2._flatListRef = _ref; + }, + onScroll: this._onScroll, + renderItem: this._renderItem, + __source: { + fileName: _jsxFileName, + lineNumber: 96 + } + })); + } + }, { + key: "_getMaxSwipeDistance", + value: function _getMaxSwipeDistance(info) { + if (typeof this.props.maxSwipeDistance === 'function') { + return this.props.maxSwipeDistance(info); + } + + return this.props.maxSwipeDistance; + } + }, { + key: "_setListViewScrollableTo", + value: function _setListViewScrollableTo(value) { + if (this._flatListRef) { + this._flatListRef.setNativeProps({ + scrollEnabled: value + }); + } + } + }, { + key: "_onOpen", + value: function _onOpen(key) { + this.setState({ + openRowKey: key + }); + } + }, { + key: "_onClose", + value: function _onClose(key) { + this.setState({ + openRowKey: null + }); + } + }]); + + _inherits(SwipeableFlatList, _React$Component); + + return SwipeableFlatList; + }(React.Component); + + SwipeableFlatList.propTypes = _objectSpread({}, FlatList.propTypes, { + bounceFirstRowOnMount: PropTypes.bool.isRequired, + maxSwipeDistance: PropTypes.oneOfType([PropTypes.number, PropTypes.func]).isRequired, + renderQuickActions: PropTypes.func.isRequired + }); + SwipeableFlatList.defaultProps = _objectSpread({}, FlatList.defaultProps, { + bounceFirstRowOnMount: true, + renderQuickActions: function renderQuickActions() { + return null; + } + }); + SwipeableFlatList = _wrapComponent("SwipeableFlatList")(SwipeableFlatList); + module.exports = SwipeableFlatList; +},459,[1,11,212,200,460,388],"node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableRow.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var Animated = _$$_REQUIRE(_dependencyMap[0], 'Animated'); + + var I18nManager = _$$_REQUIRE(_dependencyMap[1], 'I18nManager'); + + var PanResponder = _$$_REQUIRE(_dependencyMap[2], 'PanResponder'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); + + var TimerMixin = _$$_REQUIRE(_dependencyMap[6], 'react-timer-mixin'); + + var View = _$$_REQUIRE(_dependencyMap[7], 'View'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[8], 'create-react-class'); + + var emptyFunction = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/emptyFunction'); + + var IS_RTL = I18nManager.isRTL; + var CLOSED_LEFT_POSITION = 0; + var HORIZONTAL_SWIPE_DISTANCE_THRESHOLD = 10; + var HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD = 0.3; + var SLOW_SPEED_SWIPE_FACTOR = 4; + var SWIPE_DURATION = 300; + var ON_MOUNT_BOUNCE_DELAY = 700; + var ON_MOUNT_BOUNCE_DURATION = 400; + var RIGHT_SWIPE_BOUNCE_BACK_DISTANCE = 30; + var RIGHT_SWIPE_BOUNCE_BACK_DURATION = 300; + var RIGHT_SWIPE_THRESHOLD = 30 * SLOW_SPEED_SWIPE_FACTOR; + var SwipeableRow = createReactClass({ + displayName: 'SwipeableRow', + _panResponder: {}, + _previousLeft: CLOSED_LEFT_POSITION, + mixins: [TimerMixin], + propTypes: { + children: PropTypes.any, + isOpen: PropTypes.bool, + preventSwipeRight: PropTypes.bool, + maxSwipeDistance: PropTypes.number.isRequired, + onOpen: PropTypes.func.isRequired, + onClose: PropTypes.func.isRequired, + onSwipeEnd: PropTypes.func.isRequired, + onSwipeStart: PropTypes.func.isRequired, + shouldBounceOnMount: PropTypes.bool, + slideoutView: PropTypes.node.isRequired, + swipeThreshold: PropTypes.number.isRequired + }, + getInitialState: function getInitialState() { + return { + currentLeft: new Animated.Value(this._previousLeft), + isSwipeableViewRendered: false, + rowHeight: null + }; + }, + getDefaultProps: function getDefaultProps() { + return { + isOpen: false, + preventSwipeRight: false, + maxSwipeDistance: 0, + onOpen: emptyFunction, + onClose: emptyFunction, + onSwipeEnd: emptyFunction, + onSwipeStart: emptyFunction, + swipeThreshold: 30 + }; + }, + UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { + this._panResponder = PanResponder.create({ + onMoveShouldSetPanResponderCapture: this._handleMoveShouldSetPanResponderCapture, + onPanResponderGrant: this._handlePanResponderGrant, + onPanResponderMove: this._handlePanResponderMove, + onPanResponderRelease: this._handlePanResponderEnd, + onPanResponderTerminationRequest: this._onPanResponderTerminationRequest, + onPanResponderTerminate: this._handlePanResponderEnd, + onShouldBlockNativeResponder: function onShouldBlockNativeResponder(event, gestureState) { + return false; + } + }); + }, + componentDidMount: function componentDidMount() { + var _this = this; + + if (this.props.shouldBounceOnMount) { + this.setTimeout(function () { + _this._animateBounceBack(ON_MOUNT_BOUNCE_DURATION); + }, ON_MOUNT_BOUNCE_DELAY); + } + }, + UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { + if (this.props.isOpen && !nextProps.isOpen) { + this._animateToClosedPosition(); + } + }, + render: function render() { + var slideOutView; + + if (this.state.isSwipeableViewRendered && this.state.rowHeight) { + slideOutView = React.createElement(View, { + style: [styles.slideOutContainer, { + height: this.state.rowHeight + }], + __source: { + fileName: _jsxFileName, + lineNumber: 178 + } + }, this.props.slideoutView); + } + + var swipeableView = React.createElement(Animated.View, { + onLayout: this._onSwipeableViewLayout, + style: { + transform: [{ + translateX: this.state.currentLeft + }] + }, + __source: { + fileName: _jsxFileName, + lineNumber: 187 + } + }, this.props.children); + return React.createElement(View, _extends({}, this._panResponder.panHandlers, { + __source: { + fileName: _jsxFileName, + lineNumber: 195 + } + }), slideOutView, swipeableView); + }, + close: function close() { + this.props.onClose(); + + this._animateToClosedPosition(); + }, + _onSwipeableViewLayout: function _onSwipeableViewLayout(event) { + this.setState({ + isSwipeableViewRendered: true, + rowHeight: event.nativeEvent.layout.height + }); + }, + _handleMoveShouldSetPanResponderCapture: function _handleMoveShouldSetPanResponderCapture(event, gestureState) { + return gestureState.dy < 10 && this._isValidSwipe(gestureState); + }, + _handlePanResponderGrant: function _handlePanResponderGrant(event, gestureState) {}, + _handlePanResponderMove: function _handlePanResponderMove(event, gestureState) { + if (this._isSwipingExcessivelyRightFromClosedPosition(gestureState)) { + return; + } + + this.props.onSwipeStart(); + + if (this._isSwipingRightFromClosed(gestureState)) { + this._swipeSlowSpeed(gestureState); + } else { + this._swipeFullSpeed(gestureState); + } + }, + _isSwipingRightFromClosed: function _isSwipingRightFromClosed(gestureState) { + var gestureStateDx = IS_RTL ? -gestureState.dx : gestureState.dx; + return this._previousLeft === CLOSED_LEFT_POSITION && gestureStateDx > 0; + }, + _swipeFullSpeed: function _swipeFullSpeed(gestureState) { + this.state.currentLeft.setValue(this._previousLeft + gestureState.dx); + }, + _swipeSlowSpeed: function _swipeSlowSpeed(gestureState) { + this.state.currentLeft.setValue(this._previousLeft + gestureState.dx / SLOW_SPEED_SWIPE_FACTOR); + }, + _isSwipingExcessivelyRightFromClosedPosition: function _isSwipingExcessivelyRightFromClosedPosition(gestureState) { + var gestureStateDx = IS_RTL ? -gestureState.dx : gestureState.dx; + return this._isSwipingRightFromClosed(gestureState) && gestureStateDx > RIGHT_SWIPE_THRESHOLD; + }, + _onPanResponderTerminationRequest: function _onPanResponderTerminationRequest(event, gestureState) { + return false; + }, + _animateTo: function _animateTo(toValue) { + var _this2 = this; + + var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SWIPE_DURATION; + var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : emptyFunction; + Animated.timing(this.state.currentLeft, { + duration: duration, + toValue: toValue, + useNativeDriver: true + }).start(function () { + _this2._previousLeft = toValue; + callback(); + }); + }, + _animateToOpenPosition: function _animateToOpenPosition() { + var maxSwipeDistance = IS_RTL ? -this.props.maxSwipeDistance : this.props.maxSwipeDistance; + + this._animateTo(-maxSwipeDistance); + }, + _animateToOpenPositionWith: function _animateToOpenPositionWith(speed, distMoved) { + speed = speed > HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD ? speed : HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD; + var duration = Math.abs((this.props.maxSwipeDistance - Math.abs(distMoved)) / speed); + var maxSwipeDistance = IS_RTL ? -this.props.maxSwipeDistance : this.props.maxSwipeDistance; + + this._animateTo(-maxSwipeDistance, duration); + }, + _animateToClosedPosition: function _animateToClosedPosition() { + var duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SWIPE_DURATION; + + this._animateTo(CLOSED_LEFT_POSITION, duration); + }, + _animateToClosedPositionDuringBounce: function _animateToClosedPositionDuringBounce() { + this._animateToClosedPosition(RIGHT_SWIPE_BOUNCE_BACK_DURATION); + }, + _animateBounceBack: function _animateBounceBack(duration) { + var swipeBounceBackDistance = IS_RTL ? -RIGHT_SWIPE_BOUNCE_BACK_DISTANCE : RIGHT_SWIPE_BOUNCE_BACK_DISTANCE; + + this._animateTo(-swipeBounceBackDistance, duration, this._animateToClosedPositionDuringBounce); + }, + _isValidSwipe: function _isValidSwipe(gestureState) { + if (this.props.preventSwipeRight && this._previousLeft === CLOSED_LEFT_POSITION && gestureState.dx > 0) { + return false; + } + + return Math.abs(gestureState.dx) > HORIZONTAL_SWIPE_DISTANCE_THRESHOLD; + }, + _shouldAnimateRemainder: function _shouldAnimateRemainder(gestureState) { + return Math.abs(gestureState.dx) > this.props.swipeThreshold || gestureState.vx > HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD; + }, + _handlePanResponderEnd: function _handlePanResponderEnd(event, gestureState) { + var horizontalDistance = IS_RTL ? -gestureState.dx : gestureState.dx; + + if (this._isSwipingRightFromClosed(gestureState)) { + this.props.onOpen(); + + this._animateBounceBack(RIGHT_SWIPE_BOUNCE_BACK_DURATION); + } else if (this._shouldAnimateRemainder(gestureState)) { + if (horizontalDistance < 0) { + this.props.onOpen(); + + this._animateToOpenPositionWith(gestureState.vx, horizontalDistance); + } else { + this.props.onClose(); + + this._animateToClosedPosition(); + } + } else { + if (this._previousLeft === CLOSED_LEFT_POSITION) { + this._animateToClosedPosition(); + } else { + this._animateToOpenPosition(); + } + } + + this.props.onSwipeEnd(); + } + }); + + var TypedSwipeableRow = function (_React$Component) { + function TypedSwipeableRow() { + _classCallCheck(this, TypedSwipeableRow); + + return _possibleConstructorReturn(this, _getPrototypeOf(TypedSwipeableRow).apply(this, arguments)); + } + + _createClass(TypedSwipeableRow, [{ + key: "close", + value: function close() {} + }]); + + _inherits(TypedSwipeableRow, _React$Component); + + return TypedSwipeableRow; + }(React.Component); + + var styles = StyleSheet.create({ + slideOutContainer: { + bottom: 0, + left: 0, + position: 'absolute', + right: 0, + top: 0 + } + }); + module.exports = SwipeableRow; +},460,[332,445,461,200,212,201,382,227,365,184],"node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableRow.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var InteractionManager = _$$_REQUIRE(_dependencyMap[0], './InteractionManager'); + + var TouchHistoryMath = _$$_REQUIRE(_dependencyMap[1], './TouchHistoryMath'); + + var currentCentroidXOfTouchesChangedAfter = TouchHistoryMath.currentCentroidXOfTouchesChangedAfter; + var currentCentroidYOfTouchesChangedAfter = TouchHistoryMath.currentCentroidYOfTouchesChangedAfter; + var previousCentroidXOfTouchesChangedAfter = TouchHistoryMath.previousCentroidXOfTouchesChangedAfter; + var previousCentroidYOfTouchesChangedAfter = TouchHistoryMath.previousCentroidYOfTouchesChangedAfter; + var currentCentroidX = TouchHistoryMath.currentCentroidX; + var currentCentroidY = TouchHistoryMath.currentCentroidY; + var PanResponder = { + _initializeGestureState: function _initializeGestureState(gestureState) { + gestureState.moveX = 0; + gestureState.moveY = 0; + gestureState.x0 = 0; + gestureState.y0 = 0; + gestureState.dx = 0; + gestureState.dy = 0; + gestureState.vx = 0; + gestureState.vy = 0; + gestureState.numberActiveTouches = 0; + gestureState._accountsForMovesUpTo = 0; + }, + _updateGestureStateOnMove: function _updateGestureStateOnMove(gestureState, touchHistory) { + gestureState.numberActiveTouches = touchHistory.numberActiveTouches; + gestureState.moveX = currentCentroidXOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo); + gestureState.moveY = currentCentroidYOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo); + var movedAfter = gestureState._accountsForMovesUpTo; + var prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter); + var x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter); + var prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter); + var y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter); + var nextDX = gestureState.dx + (x - prevX); + var nextDY = gestureState.dy + (y - prevY); + var dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo; + gestureState.vx = (nextDX - gestureState.dx) / dt; + gestureState.vy = (nextDY - gestureState.dy) / dt; + gestureState.dx = nextDX; + gestureState.dy = nextDY; + gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp; + }, + create: function create(config) { + var interactionState = { + handle: null + }; + var gestureState = { + stateID: Math.random() + }; + + PanResponder._initializeGestureState(gestureState); + + var panHandlers = { + onStartShouldSetResponder: function onStartShouldSetResponder(e) { + return config.onStartShouldSetPanResponder === undefined ? false : config.onStartShouldSetPanResponder(e, gestureState); + }, + onMoveShouldSetResponder: function onMoveShouldSetResponder(e) { + return config.onMoveShouldSetPanResponder === undefined ? false : config.onMoveShouldSetPanResponder(e, gestureState); + }, + onStartShouldSetResponderCapture: function onStartShouldSetResponderCapture(e) { + if (e.nativeEvent.touches.length === 1) { + PanResponder._initializeGestureState(gestureState); + } + + gestureState.numberActiveTouches = e.touchHistory.numberActiveTouches; + return config.onStartShouldSetPanResponderCapture !== undefined ? config.onStartShouldSetPanResponderCapture(e, gestureState) : false; + }, + onMoveShouldSetResponderCapture: function onMoveShouldSetResponderCapture(e) { + var touchHistory = e.touchHistory; + + if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) { + return false; + } + + PanResponder._updateGestureStateOnMove(gestureState, touchHistory); + + return config.onMoveShouldSetPanResponderCapture ? config.onMoveShouldSetPanResponderCapture(e, gestureState) : false; + }, + onResponderGrant: function onResponderGrant(e) { + if (!interactionState.handle) { + interactionState.handle = InteractionManager.createInteractionHandle(); + } + + gestureState.x0 = currentCentroidX(e.touchHistory); + gestureState.y0 = currentCentroidY(e.touchHistory); + gestureState.dx = 0; + gestureState.dy = 0; + + if (config.onPanResponderGrant) { + config.onPanResponderGrant(e, gestureState); + } + + return config.onShouldBlockNativeResponder === undefined ? true : config.onShouldBlockNativeResponder(); + }, + onResponderReject: function onResponderReject(e) { + clearInteractionHandle(interactionState, config.onPanResponderReject, e, gestureState); + }, + onResponderRelease: function onResponderRelease(e) { + clearInteractionHandle(interactionState, config.onPanResponderRelease, e, gestureState); + + PanResponder._initializeGestureState(gestureState); + }, + onResponderStart: function onResponderStart(e) { + var touchHistory = e.touchHistory; + gestureState.numberActiveTouches = touchHistory.numberActiveTouches; + + if (config.onPanResponderStart) { + config.onPanResponderStart(e, gestureState); + } + }, + onResponderMove: function onResponderMove(e) { + var touchHistory = e.touchHistory; + + if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) { + return; + } + + PanResponder._updateGestureStateOnMove(gestureState, touchHistory); + + if (config.onPanResponderMove) { + config.onPanResponderMove(e, gestureState); + } + }, + onResponderEnd: function onResponderEnd(e) { + var touchHistory = e.touchHistory; + gestureState.numberActiveTouches = touchHistory.numberActiveTouches; + clearInteractionHandle(interactionState, config.onPanResponderEnd, e, gestureState); + }, + onResponderTerminate: function onResponderTerminate(e) { + clearInteractionHandle(interactionState, config.onPanResponderTerminate, e, gestureState); + + PanResponder._initializeGestureState(gestureState); + }, + onResponderTerminationRequest: function onResponderTerminationRequest(e) { + return config.onPanResponderTerminationRequest === undefined ? true : config.onPanResponderTerminationRequest(e, gestureState); + } + }; + return { + panHandlers: panHandlers, + getInteractionHandle: function getInteractionHandle() { + return interactionState.handle; + } + }; + } + }; + + function clearInteractionHandle(interactionState, callback, event, gestureState) { + if (interactionState.handle) { + InteractionManager.clearInteractionHandle(interactionState.handle); + interactionState.handle = null; + } + + if (callback) { + callback(event, gestureState); + } + } + + module.exports = PanResponder; +},461,[340,462],"node_modules/react-native/Libraries/Interaction/PanResponder.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var TouchHistoryMath = { + centroidDimension: function centroidDimension(touchHistory, touchesChangedAfter, isXAxis, ofCurrent) { + var touchBank = touchHistory.touchBank; + var total = 0; + var count = 0; + var oneTouchData = touchHistory.numberActiveTouches === 1 ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch] : null; + + if (oneTouchData !== null) { + if (oneTouchData.touchActive && oneTouchData.currentTimeStamp > touchesChangedAfter) { + total += ofCurrent && isXAxis ? oneTouchData.currentPageX : ofCurrent && !isXAxis ? oneTouchData.currentPageY : !ofCurrent && isXAxis ? oneTouchData.previousPageX : oneTouchData.previousPageY; + count = 1; + } + } else { + for (var i = 0; i < touchBank.length; i++) { + var touchTrack = touchBank[i]; + + if (touchTrack !== null && touchTrack !== undefined && touchTrack.touchActive && touchTrack.currentTimeStamp >= touchesChangedAfter) { + var toAdd = void 0; + + if (ofCurrent && isXAxis) { + toAdd = touchTrack.currentPageX; + } else if (ofCurrent && !isXAxis) { + toAdd = touchTrack.currentPageY; + } else if (!ofCurrent && isXAxis) { + toAdd = touchTrack.previousPageX; + } else { + toAdd = touchTrack.previousPageY; + } + + total += toAdd; + count++; + } + } + } + + return count > 0 ? total / count : TouchHistoryMath.noCentroid; + }, + currentCentroidXOfTouchesChangedAfter: function currentCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { + return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, true); + }, + currentCentroidYOfTouchesChangedAfter: function currentCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { + return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, true); + }, + previousCentroidXOfTouchesChangedAfter: function previousCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { + return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, false); + }, + previousCentroidYOfTouchesChangedAfter: function previousCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { + return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, false); + }, + currentCentroidX: function currentCentroidX(touchHistory) { + return TouchHistoryMath.centroidDimension(touchHistory, 0, true, true); + }, + currentCentroidY: function currentCentroidY(touchHistory) { + return TouchHistoryMath.centroidDimension(touchHistory, 0, false, true); + }, + noCentroid: -1 + }; + module.exports = TouchHistoryMath; +},462,[],"node_modules/react-native/Libraries/Interaction/TouchHistoryMath.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListView.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var _components = { + SwipeableListView: { + displayName: "SwipeableListView" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListView.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ListView = _$$_REQUIRE(_dependencyMap[2], 'ListView'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); + + var React = _$$_REQUIRE(_dependencyMap[4], 'React'); + + var SwipeableListViewDataSource = _$$_REQUIRE(_dependencyMap[5], 'SwipeableListViewDataSource'); + + var SwipeableRow = _$$_REQUIRE(_dependencyMap[6], 'SwipeableRow'); + + var SwipeableListView = function (_React$Component) { + _createClass(SwipeableListView, null, [{ + key: "getNewDataSource", + value: function getNewDataSource() { + return new SwipeableListViewDataSource({ + getRowData: function getRowData(data, sectionID, rowID) { + return data[sectionID][rowID]; + }, + getSectionHeaderData: function getSectionHeaderData(data, sectionID) { + return data[sectionID]; + }, + rowHasChanged: function rowHasChanged(row1, row2) { + return row1 !== row2; + }, + sectionHeaderHasChanged: function sectionHeaderHasChanged(s1, s2) { + return s1 !== s2; + } + }); + } + }]); + + function SwipeableListView(props, context) { + var _this; + + _classCallCheck(this, SwipeableListView); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(SwipeableListView).call(this, props, context)); + _this._listViewRef = null; + _this._shouldBounceFirstRowOnMount = false; + + _this._onScroll = function (e) { + if (_this.props.dataSource.getOpenRowID()) { + _this.setState({ + dataSource: _this.state.dataSource.setOpenRowID(null) + }); + } + + _this.props.onScroll && _this.props.onScroll(e); + }; + + _this._renderRow = function (rowData, sectionID, rowID) { + var slideoutView = _this.props.renderQuickActions(rowData, sectionID, rowID); + + if (!slideoutView) { + return _this.props.renderRow(rowData, sectionID, rowID); + } + + var shouldBounceOnMount = false; + + if (_this._shouldBounceFirstRowOnMount) { + _this._shouldBounceFirstRowOnMount = false; + shouldBounceOnMount = rowID === _this.props.dataSource.getFirstRowID(); + } + + return React.createElement(SwipeableRow, { + slideoutView: slideoutView, + isOpen: rowData.id === _this.props.dataSource.getOpenRowID(), + maxSwipeDistance: _this._getMaxSwipeDistance(rowData, sectionID, rowID), + key: rowID, + onOpen: function onOpen() { + return _this._onOpen(rowData.id); + }, + onClose: function onClose() { + return _this._onClose(rowData.id); + }, + onSwipeEnd: function onSwipeEnd() { + return _this._setListViewScrollable(true); + }, + onSwipeStart: function onSwipeStart() { + return _this._setListViewScrollable(false); + }, + shouldBounceOnMount: shouldBounceOnMount, + __source: { + fileName: _jsxFileName, + lineNumber: 213 + } + }, _this.props.renderRow(rowData, sectionID, rowID)); + }; + + _this._shouldBounceFirstRowOnMount = _this.props.bounceFirstRowOnMount; + _this.state = { + dataSource: _this.props.dataSource + }; + return _this; + } + + _createClass(SwipeableListView, [{ + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(nextProps) { + if (this.state.dataSource.getDataSource() !== nextProps.dataSource.getDataSource()) { + this.setState({ + dataSource: nextProps.dataSource + }); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + return React.createElement(ListView, _extends({}, this.props, { + ref: function ref(_ref) { + _this2._listViewRef = _ref; + }, + dataSource: this.state.dataSource.getDataSource(), + onScroll: this._onScroll, + renderRow: this._renderRow, + __source: { + fileName: _jsxFileName, + lineNumber: 121 + } + })); + } + }, { + key: "_setListViewScrollable", + value: function _setListViewScrollable(value) { + if (this._listViewRef && typeof this._listViewRef.setNativeProps === 'function') { + this._listViewRef.setNativeProps({ + scrollEnabled: value + }); + } + } + }, { + key: "getScrollResponder", + value: function getScrollResponder() { + if (this._listViewRef && typeof this._listViewRef.getScrollResponder === 'function') { + return this._listViewRef.getScrollResponder(); + } + } + }, { + key: "_getMaxSwipeDistance", + value: function _getMaxSwipeDistance(rowData, sectionID, rowID) { + if (typeof this.props.maxSwipeDistance === 'function') { + return this.props.maxSwipeDistance(rowData, sectionID, rowID); + } + + return this.props.maxSwipeDistance; + } + }, { + key: "_onOpen", + value: function _onOpen(rowID) { + this.setState({ + dataSource: this.state.dataSource.setOpenRowID(rowID) + }); + } + }, { + key: "_onClose", + value: function _onClose(rowID) { + this.setState({ + dataSource: this.state.dataSource.setOpenRowID(null) + }); + } + }]); + + _inherits(SwipeableListView, _React$Component); + + return SwipeableListView; + }(React.Component); + + SwipeableListView.propTypes = { + bounceFirstRowOnMount: PropTypes.bool.isRequired, + dataSource: PropTypes.instanceOf(SwipeableListViewDataSource).isRequired, + maxSwipeDistance: PropTypes.oneOfType([PropTypes.number, PropTypes.func]).isRequired, + renderRow: PropTypes.func.isRequired, + renderQuickActions: PropTypes.func.isRequired + }; + SwipeableListView.defaultProps = { + bounceFirstRowOnMount: false, + renderQuickActions: function renderQuickActions() { + return null; + } + }; + SwipeableListView = _wrapComponent("SwipeableListView")(SwipeableListView); + module.exports = SwipeableListView; +},463,[1,11,390,212,200,464,460],"node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListView.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var ListViewDataSource = _$$_REQUIRE(_dependencyMap[0], 'ListViewDataSource'); + + var SwipeableListViewDataSource = function () { + function SwipeableListViewDataSource(params) { + var _this = this; + + _classCallCheck(this, SwipeableListViewDataSource); + + this._dataSource = new ListViewDataSource({ + getRowData: params.getRowData, + getSectionHeaderData: params.getSectionHeaderData, + rowHasChanged: function rowHasChanged(row1, row2) { + return row1.id !== _this._previousOpenRowID && row2.id === _this._openRowID || row1.id === _this._previousOpenRowID && row2.id !== _this._openRowID || params.rowHasChanged(row1, row2); + }, + sectionHeaderHasChanged: params.sectionHeaderHasChanged + }); + } + + _createClass(SwipeableListViewDataSource, [{ + key: "cloneWithRowsAndSections", + value: function cloneWithRowsAndSections(dataBlob, sectionIdentities, rowIdentities) { + this._dataSource = this._dataSource.cloneWithRowsAndSections(dataBlob, sectionIdentities, rowIdentities); + this._dataBlob = dataBlob; + this.rowIdentities = this._dataSource.rowIdentities; + this.sectionIdentities = this._dataSource.sectionIdentities; + return this; + } + }, { + key: "getDataSource", + value: function getDataSource() { + return this._dataSource; + } + }, { + key: "getOpenRowID", + value: function getOpenRowID() { + return this._openRowID; + } + }, { + key: "getFirstRowID", + value: function getFirstRowID() { + if (this.rowIdentities) { + return this.rowIdentities[0] && this.rowIdentities[0][0]; + } + + return Object.keys(this._dataBlob)[0]; + } + }, { + key: "getLastRowID", + value: function getLastRowID() { + if (this.rowIdentities && this.rowIdentities.length) { + var lastSection = this.rowIdentities[this.rowIdentities.length - 1]; + + if (lastSection && lastSection.length) { + return lastSection[lastSection.length - 1]; + } + } + + return Object.keys(this._dataBlob)[this._dataBlob.length - 1]; + } + }, { + key: "setOpenRowID", + value: function setOpenRowID(rowID) { + this._previousOpenRowID = this._openRowID; + this._openRowID = rowID; + this._dataSource = this._dataSource.cloneWithRowsAndSections(this._dataBlob, this.sectionIdentities, this.rowIdentities); + return this; + } + }]); + + return SwipeableListViewDataSource; + }(); + + module.exports = SwipeableListViewDataSource; +},464,[392],"node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListViewDataSource.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarIOS.ios.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + TabBarIOS: { + displayName: "TabBarIOS" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarIOS.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); + + var React = _$$_REQUIRE(_dependencyMap[3], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); + + var TabBarItemIOS = _$$_REQUIRE(_dependencyMap[6], 'TabBarItemIOS'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[7], 'ViewPropTypes'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[8], 'requireNativeComponent'); + + var RCTTabBar = requireNativeComponent('RCTTabBar'); + + var TabBarIOS = function (_React$Component) { + function TabBarIOS() { + _classCallCheck(this, TabBarIOS); + + return _possibleConstructorReturn(this, _getPrototypeOf(TabBarIOS).apply(this, arguments)); + } + + _createClass(TabBarIOS, [{ + key: "render", + value: function render() { + return React.createElement(RCTTabBar, { + style: [styles.tabGroup, this.props.style], + unselectedTintColor: this.props.unselectedTintColor, + unselectedItemTintColor: this.props.unselectedItemTintColor, + tintColor: this.props.tintColor, + barTintColor: this.props.barTintColor, + barStyle: this.props.barStyle, + itemPositioning: this.props.itemPositioning, + translucent: this.props.translucent !== false, + __source: { + fileName: _jsxFileName, + lineNumber: 86 + } + }, this.props.children); + } + }]); + + _inherits(TabBarIOS, _React$Component); + + return TabBarIOS; + }(React.Component); + + TabBarIOS.Item = TabBarItemIOS; + TabBarIOS.propTypes = _objectSpread({}, ViewPropTypes, { + style: ViewPropTypes.style, + unselectedTintColor: ColorPropType, + tintColor: ColorPropType, + unselectedItemTintColor: ColorPropType, + barTintColor: ColorPropType, + barStyle: PropTypes.oneOf(['default', 'black']), + translucent: PropTypes.bool, + itemPositioning: PropTypes.oneOf(['fill', 'center', 'auto']) + }); + TabBarIOS = _wrapComponent("TabBarIOS")(TabBarIOS); + var styles = StyleSheet.create({ + tabGroup: { + flex: 1 + } + }); + module.exports = TabBarIOS; +},465,[1,11,207,200,212,201,466,376,229],"node_modules/react-native/Libraries/Components/TabBarIOS/TabBarIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + TabBarItemIOS: { + displayName: "TabBarItemIOS" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); + + var Image = _$$_REQUIRE(_dependencyMap[3], 'Image'); + + var React = _$$_REQUIRE(_dependencyMap[4], 'React'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[5], 'prop-types'); + + var StaticContainer = _$$_REQUIRE(_dependencyMap[6], 'StaticContainer.react'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[7], 'StyleSheet'); + + var View = _$$_REQUIRE(_dependencyMap[8], 'View'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[9], 'ViewPropTypes'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[10], 'requireNativeComponent'); + + var TabBarItemIOS = function (_React$Component) { + function TabBarItemIOS() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, TabBarItemIOS); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TabBarItemIOS)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { + hasBeenSelected: false + }, _temp)); + } + + _createClass(TabBarItemIOS, [{ + key: "UNSAFE_componentWillMount", + value: function UNSAFE_componentWillMount() { + if (this.props.selected) { + this.setState({ + hasBeenSelected: true + }); + } + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(nextProps) { + if (this.state.hasBeenSelected || nextProps.selected) { + this.setState({ + hasBeenSelected: true + }); + } + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + style = _this$props.style, + children = _this$props.children, + props = _objectWithoutProperties(_this$props, ["style", "children"]); + + if (this.state.hasBeenSelected) { + var tabContents = React.createElement(StaticContainer, { + shouldUpdate: this.props.selected, + __source: { + fileName: _jsxFileName, + lineNumber: 120 + } + }, children); + } else { + var tabContents = React.createElement(View, { + __source: { + fileName: _jsxFileName, + lineNumber: 125 + } + }); + } + + return React.createElement(RCTTabBarItem, _extends({}, props, { + style: [styles.tab, style], + __source: { + fileName: _jsxFileName, + lineNumber: 129 + } + }), tabContents); + } + }]); + + _inherits(TabBarItemIOS, _React$Component); + + return TabBarItemIOS; + }(React.Component); + + TabBarItemIOS.propTypes = _objectSpread({}, ViewPropTypes, { + badge: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + badgeColor: ColorPropType, + systemIcon: PropTypes.oneOf(['bookmarks', 'contacts', 'downloads', 'favorites', 'featured', 'history', 'more', 'most-recent', 'most-viewed', 'recents', 'search', 'top-rated']), + icon: Image.propTypes.source, + selectedIcon: Image.propTypes.source, + onPress: PropTypes.func, + renderAsOriginal: PropTypes.bool, + selected: PropTypes.bool, + style: ViewPropTypes.style, + title: PropTypes.string, + isTVSelectable: PropTypes.bool + }); + TabBarItemIOS = _wrapComponent("TabBarItemIOS")(TabBarItemIOS); + var styles = StyleSheet.create({ + tab: { + position: 'absolute', + top: 0, + right: 0, + bottom: 0, + left: 0 + } + }); + var RCTTabBarItem = requireNativeComponent('RCTTabBarItem'); + module.exports = TabBarItemIOS; +},466,[1,11,207,361,200,212,447,201,227,376,229],"node_modules/react-native/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/TextInput/TextInput.js"; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); + + var DocumentSelectionState = _$$_REQUIRE(_dependencyMap[1], 'DocumentSelectionState'); + + var EventEmitter = _$$_REQUIRE(_dependencyMap[2], 'EventEmitter'); + + var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[3], 'NativeMethodsMixin'); + + var Platform = _$$_REQUIRE(_dependencyMap[4], 'Platform'); + + var React = _$$_REQUIRE(_dependencyMap[5], 'React'); + + var createReactClass = _$$_REQUIRE(_dependencyMap[6], 'create-react-class'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[7], 'prop-types'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[8], 'ReactNative'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[9], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[10], 'Text'); + + var TextAncestor = _$$_REQUIRE(_dependencyMap[11], 'TextAncestor'); + + var TextInputState = _$$_REQUIRE(_dependencyMap[12], 'TextInputState'); + + var TimerMixin = _$$_REQUIRE(_dependencyMap[13], 'react-timer-mixin'); + + var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[14], 'TouchableWithoutFeedback'); + + var UIManager = _$$_REQUIRE(_dependencyMap[15], 'UIManager'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[16], 'ViewPropTypes'); + + var emptyFunction = _$$_REQUIRE(_dependencyMap[17], 'fbjs/lib/emptyFunction'); + + var invariant = _$$_REQUIRE(_dependencyMap[18], 'fbjs/lib/invariant'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[19], 'requireNativeComponent'); + + var warning = _$$_REQUIRE(_dependencyMap[20], 'fbjs/lib/warning'); + + var AndroidTextInput; + var RCTMultilineTextInputView; + var RCTSinglelineTextInputView; + + if (Platform.OS === 'android') { + AndroidTextInput = requireNativeComponent('AndroidTextInput'); + } else if (Platform.OS === 'ios') { + RCTMultilineTextInputView = requireNativeComponent('RCTMultilineTextInputView'); + RCTSinglelineTextInputView = requireNativeComponent('RCTSinglelineTextInputView'); + } + + var onlyMultiline = { + onTextInput: true, + children: true + }; + var DataDetectorTypes = ['phoneNumber', 'link', 'address', 'calendarEvent', 'none', 'all']; + var TextInput = createReactClass({ + displayName: 'TextInput', + statics: { + State: { + currentlyFocusedField: TextInputState.currentlyFocusedField, + focusTextInput: function focusTextInput(textFieldID) { + console.warn('`focusTextInput` is deprecated, use the `focus` method of the `TextInput` ref instead.'); + TextInputState.focusTextInput(textFieldID); + }, + blurTextInput: function blurTextInput(textFieldID) { + console.warn('`blurTextInput` is deprecated, use `Keyboard.dismiss` or the `blur` method of the `TextInput` ref.'); + TextInputState.blurTextInput(textFieldID); + } + } + }, + propTypes: _objectSpread({}, ViewPropTypes, { + autoCapitalize: PropTypes.oneOf(['none', 'sentences', 'words', 'characters']), + autoCorrect: PropTypes.bool, + spellCheck: PropTypes.bool, + autoFocus: PropTypes.bool, + allowFontScaling: PropTypes.bool, + editable: PropTypes.bool, + keyboardType: PropTypes.oneOf(['default', 'email-address', 'numeric', 'phone-pad', 'number-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search', 'visible-password']), + keyboardAppearance: PropTypes.oneOf(['default', 'light', 'dark']), + returnKeyType: PropTypes.oneOf(['done', 'go', 'next', 'search', 'send', 'none', 'previous', 'default', 'emergency-call', 'google', 'join', 'route', 'yahoo']), + returnKeyLabel: PropTypes.string, + maxLength: PropTypes.number, + numberOfLines: PropTypes.number, + disableFullscreenUI: PropTypes.bool, + enablesReturnKeyAutomatically: PropTypes.bool, + multiline: PropTypes.bool, + textBreakStrategy: PropTypes.oneOf(['simple', 'highQuality', 'balanced']), + onBlur: PropTypes.func, + onFocus: PropTypes.func, + onChange: PropTypes.func, + onChangeText: PropTypes.func, + onContentSizeChange: PropTypes.func, + onTextInput: PropTypes.func, + onEndEditing: PropTypes.func, + onSelectionChange: PropTypes.func, + onSubmitEditing: PropTypes.func, + onKeyPress: PropTypes.func, + onLayout: PropTypes.func, + onScroll: PropTypes.func, + placeholder: PropTypes.string, + placeholderTextColor: ColorPropType, + secureTextEntry: PropTypes.bool, + selectionColor: ColorPropType, + selectionState: PropTypes.instanceOf(DocumentSelectionState), + selection: PropTypes.shape({ + start: PropTypes.number.isRequired, + end: PropTypes.number + }), + value: PropTypes.string, + defaultValue: PropTypes.string, + clearButtonMode: PropTypes.oneOf(['never', 'while-editing', 'unless-editing', 'always']), + clearTextOnFocus: PropTypes.bool, + selectTextOnFocus: PropTypes.bool, + blurOnSubmit: PropTypes.bool, + style: Text.propTypes.style, + underlineColorAndroid: ColorPropType, + inlineImageLeft: PropTypes.string, + inlineImagePadding: PropTypes.number, + dataDetectorTypes: PropTypes.oneOfType([PropTypes.oneOf(DataDetectorTypes), PropTypes.arrayOf(PropTypes.oneOf(DataDetectorTypes))]), + caretHidden: PropTypes.bool, + contextMenuHidden: PropTypes.bool, + inputAccessoryViewID: PropTypes.string, + textContentType: PropTypes.oneOf(['none', 'URL', 'addressCity', 'addressCityAndState', 'addressState', 'countryName', 'creditCardNumber', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'nickname', 'organizationName', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'username', 'password']) + }), + getDefaultProps: function getDefaultProps() { + return { + allowFontScaling: true, + underlineColorAndroid: 'transparent' + }; + }, + mixins: [NativeMethodsMixin, TimerMixin], + isFocused: function isFocused() { + return TextInputState.currentlyFocusedField() === ReactNative.findNodeHandle(this._inputRef); + }, + _inputRef: undefined, + _focusSubscription: undefined, + _lastNativeText: undefined, + _lastNativeSelection: undefined, + componentDidMount: function componentDidMount() { + var _this = this; + + this._lastNativeText = this.props.value; + var tag = ReactNative.findNodeHandle(this._inputRef); + + if (tag != null) { + TextInputState.registerInput(tag); + } + + if (this.context.focusEmitter) { + this._focusSubscription = this.context.focusEmitter.addListener('focus', function (el) { + if (_this === el) { + _this.requestAnimationFrame(_this.focus); + } else if (_this.isFocused()) { + _this.blur(); + } + }); + + if (this.props.autoFocus) { + this.context.onFocusRequested(this); + } + } else { + if (this.props.autoFocus) { + this.requestAnimationFrame(this.focus); + } + } + }, + componentWillUnmount: function componentWillUnmount() { + this._focusSubscription && this._focusSubscription.remove(); + + if (this.isFocused()) { + this.blur(); + } + + var tag = ReactNative.findNodeHandle(this._inputRef); + + if (tag != null) { + TextInputState.unregisterInput(tag); + } + }, + contextTypes: { + onFocusRequested: PropTypes.func, + focusEmitter: PropTypes.instanceOf(EventEmitter) + }, + clear: function clear() { + this.setNativeProps({ + text: '' + }); + }, + render: function render() { + var textInput; + + if (Platform.OS === 'ios') { + textInput = UIManager.RCTVirtualText ? this._renderIOS() : this._renderIOSLegacy(); + } else if (Platform.OS === 'android') { + textInput = this._renderAndroid(); + } + + return React.createElement(TextAncestor.Provider, { + value: true, + __source: { + fileName: _jsxFileName, + lineNumber: 875 + } + }, textInput); + }, + _getText: function _getText() { + return typeof this.props.value === 'string' ? this.props.value : typeof this.props.defaultValue === 'string' ? this.props.defaultValue : ''; + }, + _setNativeRef: function _setNativeRef(ref) { + this._inputRef = ref; + }, + _renderIOSLegacy: function _renderIOSLegacy() { + var textContainer; + + var props = _extends({}, this.props); + + props.style = [this.props.style]; + + if (props.selection && props.selection.end == null) { + props.selection = { + start: props.selection.start, + end: props.selection.start + }; + } + + if (!props.multiline) { + if (__DEV__) { + for (var propKey in onlyMultiline) { + if (props[propKey]) { + var error = new Error('TextInput prop `' + propKey + '` is only supported with multiline.'); + warning(false, '%s', error.stack); + } + } + } + + textContainer = React.createElement(RCTSinglelineTextInputView, _extends({ + ref: this._setNativeRef + }, props, { + onFocus: this._onFocus, + onBlur: this._onBlur, + onChange: this._onChange, + onSelectionChange: this._onSelectionChange, + onSelectionChangeShouldSetResponder: emptyFunction.thatReturnsTrue, + text: this._getText(), + __source: { + fileName: _jsxFileName, + lineNumber: 918 + } + })); + } else { + var children = props.children; + var childCount = 0; + React.Children.forEach(children, function () { + return ++childCount; + }); + invariant(!(props.value && childCount), 'Cannot specify both value and children.'); + + if (childCount >= 1) { + children = React.createElement(Text, { + style: props.style, + allowFontScaling: props.allowFontScaling, + __source: { + fileName: _jsxFileName, + lineNumber: 939 + } + }, children); + } + + if (props.inputView) { + children = [children, props.inputView]; + } + + props.style.unshift(styles.multilineInput); + textContainer = React.createElement(RCTMultilineTextInputView, _extends({ + ref: this._setNativeRef + }, props, { + children: children, + onFocus: this._onFocus, + onBlur: this._onBlur, + onChange: this._onChange, + onContentSizeChange: this.props.onContentSizeChange, + onSelectionChange: this._onSelectionChange, + onTextInput: this._onTextInput, + onSelectionChangeShouldSetResponder: emptyFunction.thatReturnsTrue, + text: this._getText(), + dataDetectorTypes: this.props.dataDetectorTypes, + onScroll: this._onScroll, + __source: { + fileName: _jsxFileName, + lineNumber: 949 + } + })); + } + + return React.createElement(TouchableWithoutFeedback, { + onLayout: props.onLayout, + onPress: this._onPress, + rejectResponderTermination: true, + accessible: props.accessible, + accessibilityLabel: props.accessibilityLabel, + accessibilityTraits: props.accessibilityTraits, + nativeID: this.props.nativeID, + testID: props.testID, + __source: { + fileName: _jsxFileName, + lineNumber: 968 + } + }, textContainer); + }, + _renderIOS: function _renderIOS() { + var props = _extends({}, this.props); + + props.style = [this.props.style]; + + if (props.selection && props.selection.end == null) { + props.selection = { + start: props.selection.start, + end: props.selection.start + }; + } + + var RCTTextInputView = props.multiline ? RCTMultilineTextInputView : RCTSinglelineTextInputView; + + if (props.multiline) { + props.style.unshift(styles.multilineInput); + } + + var textContainer = React.createElement(RCTTextInputView, _extends({ + ref: this._setNativeRef + }, props, { + onFocus: this._onFocus, + onBlur: this._onBlur, + onChange: this._onChange, + onContentSizeChange: this.props.onContentSizeChange, + onSelectionChange: this._onSelectionChange, + onTextInput: this._onTextInput, + onSelectionChangeShouldSetResponder: emptyFunction.thatReturnsTrue, + text: this._getText(), + dataDetectorTypes: this.props.dataDetectorTypes, + onScroll: this._onScroll, + __source: { + fileName: _jsxFileName, + lineNumber: 1002 + } + })); + return React.createElement(TouchableWithoutFeedback, { + onLayout: props.onLayout, + onPress: this._onPress, + rejectResponderTermination: true, + accessible: props.accessible, + accessibilityLabel: props.accessibilityLabel, + accessibilityTraits: props.accessibilityTraits, + nativeID: this.props.nativeID, + testID: props.testID, + __source: { + fileName: _jsxFileName, + lineNumber: 1019 + } + }, textContainer); + }, + _renderAndroid: function _renderAndroid() { + var props = _extends({}, this.props); + + props.style = [this.props.style]; + props.autoCapitalize = UIManager.AndroidTextInput.Constants.AutoCapitalizationType[props.autoCapitalize || 'sentences']; + var children = this.props.children; + var childCount = 0; + React.Children.forEach(children, function () { + return ++childCount; + }); + invariant(!(this.props.value && childCount), 'Cannot specify both value and children.'); + + if (childCount > 1) { + children = React.createElement(Text, { + __source: { + fileName: _jsxFileName, + lineNumber: 1051 + } + }, children); + } + + if (props.selection && props.selection.end == null) { + props.selection = { + start: props.selection.start, + end: props.selection.start + }; + } + + var textContainer = React.createElement(AndroidTextInput, _extends({ + ref: this._setNativeRef + }, props, { + mostRecentEventCount: 0, + onFocus: this._onFocus, + onBlur: this._onBlur, + onChange: this._onChange, + onSelectionChange: this._onSelectionChange, + onTextInput: this._onTextInput, + text: this._getText(), + children: children, + disableFullscreenUI: this.props.disableFullscreenUI, + textBreakStrategy: this.props.textBreakStrategy, + onScroll: this._onScroll, + __source: { + fileName: _jsxFileName, + lineNumber: 1062 + } + })); + return React.createElement(TouchableWithoutFeedback, { + onLayout: props.onLayout, + onPress: this._onPress, + accessible: this.props.accessible, + accessibilityLabel: this.props.accessibilityLabel, + accessibilityComponentType: this.props.accessibilityComponentType, + nativeID: this.props.nativeID, + testID: this.props.testID, + __source: { + fileName: _jsxFileName, + lineNumber: 1080 + } + }, textContainer); + }, + _onFocus: function _onFocus(event) { + if (this.props.onFocus) { + this.props.onFocus(event); + } + + if (this.props.selectionState) { + this.props.selectionState.focus(); + } + }, + _onPress: function _onPress(event) { + if (this.props.editable || this.props.editable === undefined) { + this.focus(); + } + }, + _onChange: function _onChange(event) { + if (this._inputRef) { + this._inputRef.setNativeProps({ + mostRecentEventCount: event.nativeEvent.eventCount + }); + } + + var text = event.nativeEvent.text; + this.props.onChange && this.props.onChange(event); + this.props.onChangeText && this.props.onChangeText(text); + + if (!this._inputRef) { + return; + } + + this._lastNativeText = text; + this.forceUpdate(); + }, + _onSelectionChange: function _onSelectionChange(event) { + this.props.onSelectionChange && this.props.onSelectionChange(event); + + if (!this._inputRef) { + return; + } + + this._lastNativeSelection = event.nativeEvent.selection; + + if (this.props.selection || this.props.selectionState) { + this.forceUpdate(); + } + }, + componentDidUpdate: function componentDidUpdate() { + var nativeProps = {}; + + if (this._lastNativeText !== this.props.value && typeof this.props.value === 'string') { + nativeProps.text = this.props.value; + } + + var selection = this.props.selection; + + if (this._lastNativeSelection && selection && (this._lastNativeSelection.start !== selection.start || this._lastNativeSelection.end !== selection.end)) { + nativeProps.selection = this.props.selection; + } + + if (Object.keys(nativeProps).length > 0 && this._inputRef) { + this._inputRef.setNativeProps(nativeProps); + } + + if (this.props.selectionState && selection) { + this.props.selectionState.update(selection.start, selection.end); + } + }, + _onBlur: function _onBlur(event) { + this.blur(); + + if (this.props.onBlur) { + this.props.onBlur(event); + } + + if (this.props.selectionState) { + this.props.selectionState.blur(); + } + }, + _onTextInput: function _onTextInput(event) { + this.props.onTextInput && this.props.onTextInput(event); + }, + _onScroll: function _onScroll(event) { + this.props.onScroll && this.props.onScroll(event); + } + }); + + var InternalTextInputType = function (_ReactNative$NativeCo) { + function InternalTextInputType() { + _classCallCheck(this, InternalTextInputType); + + return _possibleConstructorReturn(this, _getPrototypeOf(InternalTextInputType).apply(this, arguments)); + } + + _createClass(InternalTextInputType, [{ + key: "clear", + value: function clear() {} + }, { + key: "isFocused", + value: function isFocused() {} + }]); + + _inherits(InternalTextInputType, _ReactNative$NativeCo); + + return InternalTextInputType; + }(ReactNative.NativeComponent); + + var TypedTextInput = TextInput; + var styles = StyleSheet.create({ + multilineInput: { + paddingTop: 5 + } + }); + module.exports = TypedTextInput; +},467,[207,468,195,364,176,200,365,212,261,201,252,228,325,382,383,218,376,184,166,229,183],"node_modules/react-native/Libraries/Components/TextInput/TextInput.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var mixInEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'mixInEventEmitter'); + + var DocumentSelectionState = function () { + function DocumentSelectionState(anchor, focus) { + _classCallCheck(this, DocumentSelectionState); + + this._anchorOffset = anchor; + this._focusOffset = focus; + this._hasFocus = false; + } + + _createClass(DocumentSelectionState, [{ + key: "update", + value: function update(anchor, focus) { + if (this._anchorOffset !== anchor || this._focusOffset !== focus) { + this._anchorOffset = anchor; + this._focusOffset = focus; + this.emit('update'); + } + } + }, { + key: "constrainLength", + value: function constrainLength(maxLength) { + this.update(Math.min(this._anchorOffset, maxLength), Math.min(this._focusOffset, maxLength)); + } + }, { + key: "focus", + value: function focus() { + if (!this._hasFocus) { + this._hasFocus = true; + this.emit('focus'); + } + } + }, { + key: "blur", + value: function blur() { + if (this._hasFocus) { + this._hasFocus = false; + this.emit('blur'); + } + } + }, { + key: "hasFocus", + value: function hasFocus() { + return this._hasFocus; + } + }, { + key: "isCollapsed", + value: function isCollapsed() { + return this._anchorOffset === this._focusOffset; + } + }, { + key: "isBackward", + value: function isBackward() { + return this._anchorOffset > this._focusOffset; + } + }, { + key: "getAnchorOffset", + value: function getAnchorOffset() { + return this._hasFocus ? this._anchorOffset : null; + } + }, { + key: "getFocusOffset", + value: function getFocusOffset() { + return this._hasFocus ? this._focusOffset : null; + } + }, { + key: "getStartOffset", + value: function getStartOffset() { + return this._hasFocus ? Math.min(this._anchorOffset, this._focusOffset) : null; + } + }, { + key: "getEndOffset", + value: function getEndOffset() { + return this._hasFocus ? Math.max(this._anchorOffset, this._focusOffset) : null; + } + }, { + key: "overlaps", + value: function overlaps(start, end) { + return this.hasFocus() && this.getStartOffset() <= end && start <= this.getEndOffset(); + } + }]); + + return DocumentSelectionState; + }(); + + mixInEventEmitter(DocumentSelectionState, { + blur: true, + focus: true, + update: true + }); + module.exports = DocumentSelectionState; +},468,[469],"node_modules/react-native/Libraries/vendor/document/selection/DocumentSelectionState.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'EventEmitter'); + + var EventEmitterWithHolding = _$$_REQUIRE(_dependencyMap[1], 'EventEmitterWithHolding'); + + var EventHolder = _$$_REQUIRE(_dependencyMap[2], 'EventHolder'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var keyOf = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/keyOf'); + + var TYPES_KEY = keyOf({ + __types: true + }); + + function mixInEventEmitter(cls, types) { + invariant(types, 'Must supply set of valid event types'); + var target = cls.prototype || cls; + invariant(!target.__eventEmitter, 'An active emitter is already mixed in'); + var ctor = cls.constructor; + + if (ctor) { + invariant(ctor === Object || ctor === Function, 'Mix EventEmitter into a class, not an instance'); + } + + if (target.hasOwnProperty(TYPES_KEY)) { + _extends(target.__types, types); + } else if (target.__types) { + target.__types = _extends({}, target.__types, types); + } else { + target.__types = types; + } + + _extends(target, EventEmitterMixin); + } + + var EventEmitterMixin = { + emit: function emit(eventType, a, b, c, d, e, _) { + return this.__getEventEmitter().emit(eventType, a, b, c, d, e, _); + }, + emitAndHold: function emitAndHold(eventType, a, b, c, d, e, _) { + return this.__getEventEmitter().emitAndHold(eventType, a, b, c, d, e, _); + }, + addListener: function addListener(eventType, listener, context) { + return this.__getEventEmitter().addListener(eventType, listener, context); + }, + once: function once(eventType, listener, context) { + return this.__getEventEmitter().once(eventType, listener, context); + }, + addRetroactiveListener: function addRetroactiveListener(eventType, listener, context) { + return this.__getEventEmitter().addRetroactiveListener(eventType, listener, context); + }, + addListenerMap: function addListenerMap(listenerMap, context) { + return this.__getEventEmitter().addListenerMap(listenerMap, context); + }, + addRetroactiveListenerMap: function addRetroactiveListenerMap(listenerMap, context) { + return this.__getEventEmitter().addListenerMap(listenerMap, context); + }, + removeAllListeners: function removeAllListeners() { + this.__getEventEmitter().removeAllListeners(); + }, + removeCurrentListener: function removeCurrentListener() { + this.__getEventEmitter().removeCurrentListener(); + }, + releaseHeldEventType: function releaseHeldEventType(eventType) { + this.__getEventEmitter().releaseHeldEventType(eventType); + }, + __getEventEmitter: function __getEventEmitter() { + if (!this.__eventEmitter) { + var emitter = new EventEmitter(); + + if (__DEV__) { + var EventValidator = _$$_REQUIRE(_dependencyMap[5], 'EventValidator'); + + emitter = EventValidator.addValidation(emitter, this.__types); + } + + var holder = new EventHolder(); + this.__eventEmitter = new EventEmitterWithHolding(emitter, holder); + } + + return this.__eventEmitter; + } + }; + module.exports = mixInEventEmitter; +},469,[195,470,471,166,472,473],"node_modules/react-native/Libraries/vendor/emitter/mixInEventEmitter.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var EventEmitterWithHolding = function () { + function EventEmitterWithHolding(emitter, holder) { + _classCallCheck(this, EventEmitterWithHolding); + + this._emitter = emitter; + this._eventHolder = holder; + this._currentEventToken = null; + this._emittingHeldEvents = false; + } + + _createClass(EventEmitterWithHolding, [{ + key: "addListener", + value: function addListener(eventType, listener, context) { + return this._emitter.addListener(eventType, listener, context); + } + }, { + key: "once", + value: function once(eventType, listener, context) { + return this._emitter.once(eventType, listener, context); + } + }, { + key: "addRetroactiveListener", + value: function addRetroactiveListener(eventType, listener, context) { + var subscription = this._emitter.addListener(eventType, listener, context); + + this._emittingHeldEvents = true; + + this._eventHolder.emitToListener(eventType, listener, context); + + this._emittingHeldEvents = false; + return subscription; + } + }, { + key: "removeAllListeners", + value: function removeAllListeners(eventType) { + this._emitter.removeAllListeners(eventType); + } + }, { + key: "removeCurrentListener", + value: function removeCurrentListener() { + this._emitter.removeCurrentListener(); + } + }, { + key: "listeners", + value: function listeners(eventType) { + return this._emitter.listeners(eventType); + } + }, { + key: "emit", + value: function emit(eventType) { + var _this$_emitter; + + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + (_this$_emitter = this._emitter).emit.apply(_this$_emitter, [eventType].concat(args)); + } + }, { + key: "emitAndHold", + value: function emitAndHold(eventType) { + var _this$_eventHolder, _this$_emitter2; + + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + + this._currentEventToken = (_this$_eventHolder = this._eventHolder).holdEvent.apply(_this$_eventHolder, [eventType].concat(args)); + + (_this$_emitter2 = this._emitter).emit.apply(_this$_emitter2, [eventType].concat(args)); + + this._currentEventToken = null; + } + }, { + key: "releaseCurrentEvent", + value: function releaseCurrentEvent() { + if (this._currentEventToken) { + this._eventHolder.releaseEvent(this._currentEventToken); + } else if (this._emittingHeldEvents) { + this._eventHolder.releaseCurrentEvent(); + } + } + }, { + key: "releaseHeldEventType", + value: function releaseHeldEventType(eventType) { + this._eventHolder.releaseEventType(eventType); + } + }]); + + return EventEmitterWithHolding; + }(); + + module.exports = EventEmitterWithHolding; +},470,[],"node_modules/react-native/Libraries/vendor/emitter/EventEmitterWithHolding.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); + + var EventHolder = function () { + function EventHolder() { + _classCallCheck(this, EventHolder); + + this._heldEvents = {}; + this._currentEventKey = null; + } + + _createClass(EventHolder, [{ + key: "holdEvent", + value: function holdEvent(eventType) { + this._heldEvents[eventType] = this._heldEvents[eventType] || []; + var eventsOfType = this._heldEvents[eventType]; + var key = { + eventType: eventType, + index: eventsOfType.length + }; + + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + eventsOfType.push(args); + return key; + } + }, { + key: "emitToListener", + value: function emitToListener(eventType, listener, context) { + var _this = this; + + var eventsOfType = this._heldEvents[eventType]; + + if (!eventsOfType) { + return; + } + + var origEventKey = this._currentEventKey; + eventsOfType.forEach(function (eventHeld, index) { + if (!eventHeld) { + return; + } + + _this._currentEventKey = { + eventType: eventType, + index: index + }; + listener.apply(context, eventHeld); + }); + this._currentEventKey = origEventKey; + } + }, { + key: "releaseCurrentEvent", + value: function releaseCurrentEvent() { + invariant(this._currentEventKey !== null, 'Not in an emitting cycle; there is no current event'); + this._currentEventKey && this.releaseEvent(this._currentEventKey); + } + }, { + key: "releaseEvent", + value: function releaseEvent(token) { + delete this._heldEvents[token.eventType][token.index]; + } + }, { + key: "releaseEventType", + value: function releaseEventType(type) { + this._heldEvents[type] = []; + } + }]); + + return EventHolder; + }(); + + module.exports = EventHolder; +},471,[166],"node_modules/react-native/Libraries/vendor/emitter/EventHolder.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var keyOf = function keyOf(oneKeyObj) { + var key; + + for (key in oneKeyObj) { + if (!oneKeyObj.hasOwnProperty(key)) { + continue; + } + + return key; + } + + return null; + }; + + module.exports = keyOf; +},472,[],"node_modules/react-native/node_modules/fbjs/lib/keyOf.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var EventValidator = { + addValidation: function addValidation(emitter, types) { + var eventTypes = Object.keys(types); + var emitterWithValidation = Object.create(emitter); + + _extends(emitterWithValidation, { + emit: function emit(type, a, b, c, d, e, _) { + assertAllowsEventType(type, eventTypes); + return emitter.emit.call(this, type, a, b, c, d, e, _); + } + }); + + return emitterWithValidation; + } + }; + + function assertAllowsEventType(type, allowedTypes) { + if (allowedTypes.indexOf(type) === -1) { + throw new TypeError(errorMessageFor(type, allowedTypes)); + } + } + + function errorMessageFor(type, allowedTypes) { + var message = 'Unknown event type "' + type + '". '; + + if (__DEV__) { + message += recommendationFor(type, allowedTypes); + } + + message += 'Known event types: ' + allowedTypes.join(', ') + '.'; + return message; + } + + if (__DEV__) { + var recommendationFor = function recommendationFor(type, allowedTypes) { + var closestTypeRecommendation = closestTypeFor(type, allowedTypes); + + if (isCloseEnough(closestTypeRecommendation, type)) { + return 'Did you mean "' + closestTypeRecommendation.type + '"? '; + } else { + return ''; + } + }; + + var closestTypeFor = function closestTypeFor(type, allowedTypes) { + var typeRecommendations = allowedTypes.map(typeRecommendationFor.bind(this, type)); + return typeRecommendations.sort(recommendationSort)[0]; + }; + + var typeRecommendationFor = function typeRecommendationFor(type, recommendedType) { + return { + type: recommendedType, + distance: damerauLevenshteinDistance(type, recommendedType) + }; + }; + + var recommendationSort = function recommendationSort(recommendationA, recommendationB) { + if (recommendationA.distance < recommendationB.distance) { + return -1; + } else if (recommendationA.distance > recommendationB.distance) { + return 1; + } else { + return 0; + } + }; + + var isCloseEnough = function isCloseEnough(closestType, actualType) { + return closestType.distance / actualType.length < 0.334; + }; + + var damerauLevenshteinDistance = function damerauLevenshteinDistance(a, b) { + var i, j; + var d = []; + + for (i = 0; i <= a.length; i++) { + d[i] = [i]; + } + + for (j = 1; j <= b.length; j++) { + d[0][j] = j; + } + + for (i = 1; i <= a.length; i++) { + for (j = 1; j <= b.length; j++) { + var cost = a.charAt(i - 1) === b.charAt(j - 1) ? 0 : 1; + d[i][j] = Math.min(d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + cost); + + if (i > 1 && j > 1 && a.charAt(i - 1) === b.charAt(j - 2) && a.charAt(i - 2) === b.charAt(j - 1)) { + d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + cost); + } + } + } + + return d[a.length][b.length]; + }; + } + + module.exports = EventValidator; +},473,[],"node_modules/react-native/Libraries/vendor/emitter/EventValidator.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var warning = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/warning'); + + var ToastAndroid = { + show: function show(message, duration) { + warning(false, 'ToastAndroid is not supported on this platform.'); + } + }; + module.exports = ToastAndroid; +},474,[183],"node_modules/react-native/Libraries/Components/ToastAndroid/ToastAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); +},475,[240],"node_modules/react-native/Libraries/Components/ToolbarAndroid/ToolbarAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); +},476,[240],"node_modules/react-native/Libraries/Components/ViewPager/ViewPagerAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; + + var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/WebView/WebView.ios.js"; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + WebView: { + displayName: "WebView" + } + }; + + var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/Components/WebView/WebView.ios.js", + components: _components, + locals: [module], + imports: [_default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var ActivityIndicator = _$$_REQUIRE(_dependencyMap[2], 'ActivityIndicator'); + + var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[3], 'EdgeInsetsPropType'); + + var Linking = _$$_REQUIRE(_dependencyMap[4], 'Linking'); + + var PropTypes = _$$_REQUIRE(_dependencyMap[5], 'prop-types'); + + var React = _$$_REQUIRE(_dependencyMap[6], 'React'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[7], 'ReactNative'); + + var ScrollView = _$$_REQUIRE(_dependencyMap[8], 'ScrollView'); + + var StyleSheet = _$$_REQUIRE(_dependencyMap[9], 'StyleSheet'); + + var Text = _$$_REQUIRE(_dependencyMap[10], 'Text'); + + var UIManager = _$$_REQUIRE(_dependencyMap[11], 'UIManager'); + + var View = _$$_REQUIRE(_dependencyMap[12], 'View'); + + var ViewPropTypes = _$$_REQUIRE(_dependencyMap[13], 'ViewPropTypes'); + + var WebViewShared = _$$_REQUIRE(_dependencyMap[14], 'WebViewShared'); + + var deprecatedPropType = _$$_REQUIRE(_dependencyMap[15], 'deprecatedPropType'); + + var invariant = _$$_REQUIRE(_dependencyMap[16], 'fbjs/lib/invariant'); + + var keyMirror = _$$_REQUIRE(_dependencyMap[17], 'fbjs/lib/keyMirror'); + + var processDecelerationRate = _$$_REQUIRE(_dependencyMap[18], 'processDecelerationRate'); + + var requireNativeComponent = _$$_REQUIRE(_dependencyMap[19], 'requireNativeComponent'); + + var resolveAssetSource = _$$_REQUIRE(_dependencyMap[20], 'resolveAssetSource'); + + var RCTWebViewManager = _$$_REQUIRE(_dependencyMap[21], 'NativeModules').WebViewManager; + + var BGWASH = 'rgba(255,255,255,0.8)'; + var RCT_WEBVIEW_REF = 'webview'; + var WebViewState = keyMirror({ + IDLE: null, + LOADING: null, + ERROR: null + }); + var NavigationType = keyMirror({ + click: true, + formsubmit: true, + backforward: true, + reload: true, + formresubmit: true, + other: true + }); + var JSNavigationScheme = 'react-js-navigation'; + var DataDetectorTypes = ['phoneNumber', 'link', 'address', 'calendarEvent', 'none', 'all']; + + var defaultRenderLoading = function defaultRenderLoading() { + return React.createElement(View, { + style: styles.loadingView, + __source: { + fileName: _jsxFileName, + lineNumber: 74 + } + }, React.createElement(ActivityIndicator, { + __source: { + fileName: _jsxFileName, + lineNumber: 75 + } + })); + }; + + var defaultRenderError = function defaultRenderError(errorDomain, errorCode, errorDesc) { + return React.createElement(View, { + style: styles.errorContainer, + __source: { + fileName: _jsxFileName, + lineNumber: 79 + } + }, React.createElement(Text, { + style: styles.errorTextTitle, + __source: { + fileName: _jsxFileName, + lineNumber: 80 + } + }, "Error loading page"), React.createElement(Text, { + style: styles.errorText, + __source: { + fileName: _jsxFileName, + lineNumber: 81 + } + }, 'Domain: ' + errorDomain), React.createElement(Text, { + style: styles.errorText, + __source: { + fileName: _jsxFileName, + lineNumber: 82 + } + }, 'Error Code: ' + errorCode), React.createElement(Text, { + style: styles.errorText, + __source: { + fileName: _jsxFileName, + lineNumber: 83 + } + }, 'Description: ' + errorDesc)); + }; + + var WebView = function (_React$Component) { + function WebView() { + var _getPrototypeOf2; + + var _temp, _this; + + _classCallCheck(this, WebView); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WebView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { + viewState: WebViewState.IDLE, + lastErrorEvent: null, + startInLoadingState: true + }, _this.goForward = function () { + UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.goForward, null); + }, _this.goBack = function () { + UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.goBack, null); + }, _this.reload = function () { + _this.setState({ + viewState: WebViewState.LOADING + }); + + UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.reload, null); + }, _this.stopLoading = function () { + UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.stopLoading, null); + }, _this.postMessage = function (data) { + UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.postMessage, [String(data)]); + }, _this.injectJavaScript = function (data) { + UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.injectJavaScript, [data]); + }, _this._updateNavigationState = function (event) { + if (_this.props.onNavigationStateChange) { + _this.props.onNavigationStateChange(event.nativeEvent); + } + }, _this.getWebViewHandle = function () { + return ReactNative.findNodeHandle(_this.refs[RCT_WEBVIEW_REF]); + }, _this._onLoadingStart = function (event) { + var onLoadStart = _this.props.onLoadStart; + onLoadStart && onLoadStart(event); + + _this._updateNavigationState(event); + }, _this._onLoadingError = function (event) { + event.persist(); + var _this$props = _this.props, + onError = _this$props.onError, + onLoadEnd = _this$props.onLoadEnd; + onError && onError(event); + onLoadEnd && onLoadEnd(event); + console.warn('Encountered an error loading page', event.nativeEvent); + + _this.setState({ + lastErrorEvent: event.nativeEvent, + viewState: WebViewState.ERROR + }); + }, _this._onLoadingFinish = function (event) { + var _this$props2 = _this.props, + onLoad = _this$props2.onLoad, + onLoadEnd = _this$props2.onLoadEnd; + onLoad && onLoad(event); + onLoadEnd && onLoadEnd(event); + + _this.setState({ + viewState: WebViewState.IDLE + }); + + _this._updateNavigationState(event); + }, _this._onMessage = function (event) { + var onMessage = _this.props.onMessage; + onMessage && onMessage(event); + }, _temp)); + } + + _createClass(WebView, [{ + key: "UNSAFE_componentWillMount", + value: function UNSAFE_componentWillMount() { + if (this.props.startInLoadingState) { + this.setState({ + viewState: WebViewState.LOADING + }); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var otherView = null; + + if (this.state.viewState === WebViewState.LOADING) { + otherView = (this.props.renderLoading || defaultRenderLoading)(); + } else if (this.state.viewState === WebViewState.ERROR) { + var errorEvent = this.state.lastErrorEvent; + invariant(errorEvent != null, 'lastErrorEvent expected to be non-null'); + otherView = (this.props.renderError || defaultRenderError)(errorEvent.domain, errorEvent.code, errorEvent.description); + } else if (this.state.viewState !== WebViewState.IDLE) { + console.error('RCTWebView invalid state encountered: ' + this.state.loading); + } + + var webViewStyles = [styles.container, styles.webView, this.props.style]; + + if (this.state.viewState === WebViewState.LOADING || this.state.viewState === WebViewState.ERROR) { + webViewStyles.push(styles.hidden); + } + + var nativeConfig = this.props.nativeConfig || {}; + var viewManager = nativeConfig.viewManager || RCTWebViewManager; + var compiledWhitelist = (this.props.originWhitelist || []).map(WebViewShared.originWhitelistToRegex); + + var onShouldStartLoadWithRequest = function onShouldStartLoadWithRequest(event) { + var shouldStart = true; + var url = event.nativeEvent.url; + var origin = WebViewShared.extractOrigin(url); + var passesWhitelist = compiledWhitelist.some(function (x) { + return new RegExp(x).test(origin); + }); + shouldStart = shouldStart && passesWhitelist; + + if (!passesWhitelist) { + Linking.openURL(url); + } + + if (_this2.props.onShouldStartLoadWithRequest) { + shouldStart = shouldStart && _this2.props.onShouldStartLoadWithRequest(event.nativeEvent); + } + + viewManager.startLoadWithResult(!!shouldStart, event.nativeEvent.lockIdentifier); + }; + + var decelerationRate = processDecelerationRate(this.props.decelerationRate); + var source = this.props.source || {}; + + if (this.props.html) { + source.html = this.props.html; + } else if (this.props.url) { + source.uri = this.props.url; + } + + var messagingEnabled = typeof this.props.onMessage === 'function'; + var NativeWebView = nativeConfig.component || RCTWebView; + var webView = React.createElement(NativeWebView, _extends({ + ref: RCT_WEBVIEW_REF, + key: "webViewKey", + style: webViewStyles, + source: resolveAssetSource(source), + injectedJavaScript: this.props.injectedJavaScript, + bounces: this.props.bounces, + scrollEnabled: this.props.scrollEnabled, + decelerationRate: decelerationRate, + contentInset: this.props.contentInset, + automaticallyAdjustContentInsets: this.props.automaticallyAdjustContentInsets, + onLoadingStart: this._onLoadingStart, + onLoadingFinish: this._onLoadingFinish, + onLoadingError: this._onLoadingError, + messagingEnabled: messagingEnabled, + onMessage: this._onMessage, + onShouldStartLoadWithRequest: onShouldStartLoadWithRequest, + scalesPageToFit: this.props.scalesPageToFit, + allowsInlineMediaPlayback: this.props.allowsInlineMediaPlayback, + mediaPlaybackRequiresUserAction: this.props.mediaPlaybackRequiresUserAction, + dataDetectorTypes: this.props.dataDetectorTypes + }, nativeConfig.props, { + __source: { + fileName: _jsxFileName, + lineNumber: 476 + } + })); + return React.createElement(View, { + style: styles.container, + __source: { + fileName: _jsxFileName, + lineNumber: 506 + } + }, webView, otherView); + } + }]); + + _inherits(WebView, _React$Component); + + return WebView; + }(React.Component); + + WebView.JSNavigationScheme = JSNavigationScheme; + WebView.NavigationType = NavigationType; + WebView.propTypes = _objectSpread({}, ViewPropTypes, { + html: deprecatedPropType(PropTypes.string, 'Use the `source` prop instead.'), + url: deprecatedPropType(PropTypes.string, 'Use the `source` prop instead.'), + source: PropTypes.oneOfType([PropTypes.shape({ + uri: PropTypes.string, + method: PropTypes.string, + headers: PropTypes.object, + body: PropTypes.string + }), PropTypes.shape({ + html: PropTypes.string, + baseUrl: PropTypes.string + }), PropTypes.number]), + renderError: PropTypes.func, + renderLoading: PropTypes.func, + onLoad: PropTypes.func, + onLoadEnd: PropTypes.func, + onLoadStart: PropTypes.func, + onError: PropTypes.func, + bounces: PropTypes.bool, + decelerationRate: ScrollView.propTypes.decelerationRate, + scrollEnabled: PropTypes.bool, + automaticallyAdjustContentInsets: PropTypes.bool, + contentInset: EdgeInsetsPropType, + onNavigationStateChange: PropTypes.func, + onMessage: PropTypes.func, + startInLoadingState: PropTypes.bool, + style: ViewPropTypes.style, + dataDetectorTypes: PropTypes.oneOfType([PropTypes.oneOf(DataDetectorTypes), PropTypes.arrayOf(PropTypes.oneOf(DataDetectorTypes))]), + javaScriptEnabled: PropTypes.bool, + thirdPartyCookiesEnabled: PropTypes.bool, + domStorageEnabled: PropTypes.bool, + injectedJavaScript: PropTypes.string, + userAgent: PropTypes.string, + scalesPageToFit: PropTypes.bool, + onShouldStartLoadWithRequest: PropTypes.func, + allowsInlineMediaPlayback: PropTypes.bool, + mediaPlaybackRequiresUserAction: PropTypes.bool, + originWhitelist: PropTypes.arrayOf(PropTypes.string), + injectJavaScript: PropTypes.func, + mixedContentMode: PropTypes.oneOf(['never', 'always', 'compatibility']), + nativeConfig: PropTypes.shape({ + component: PropTypes.any, + props: PropTypes.object, + viewManager: PropTypes.object + }) + }); + WebView.defaultProps = { + originWhitelist: WebViewShared.defaultOriginWhitelist, + scalesPageToFit: true + }; + WebView = _wrapComponent("WebView")(WebView); + var RCTWebView = requireNativeComponent('RCTWebView'); + var styles = StyleSheet.create({ + container: { + flex: 1 + }, + errorContainer: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: BGWASH + }, + errorText: { + fontSize: 14, + textAlign: 'center', + marginBottom: 2 + }, + errorTextTitle: { + fontSize: 15, + fontWeight: '500', + marginBottom: 10 + }, + hidden: { + height: 0, + flex: 0 + }, + loadingView: { + backgroundColor: BGWASH, + flex: 1, + justifyContent: 'center', + alignItems: 'center', + height: 100 + }, + webView: { + backgroundColor: '#ffffff' + } + }); + module.exports = WebView; +},477,[1,11,199,254,478,212,200,261,367,201,252,218,227,376,479,217,166,210,381,229,235,168],"node_modules/react-native/Libraries/Components/WebView/WebView.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'NativeEventEmitter'); + + var NativeModules = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'); + + var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var LinkingManager = Platform.OS === 'android' ? NativeModules.IntentAndroid : NativeModules.LinkingManager; + + var Linking = function (_NativeEventEmitter) { + function Linking() { + _classCallCheck(this, Linking); + + return _possibleConstructorReturn(this, _getPrototypeOf(Linking).call(this, LinkingManager)); + } + + _createClass(Linking, [{ + key: "addEventListener", + value: function addEventListener(type, handler) { + this.addListener(type, handler); + } + }, { + key: "removeEventListener", + value: function removeEventListener(type, handler) { + this.removeListener(type, handler); + } + }, { + key: "openURL", + value: function openURL(url) { + this._validateURL(url); + + return LinkingManager.openURL(url); + } + }, { + key: "canOpenURL", + value: function canOpenURL(url) { + this._validateURL(url); + + return LinkingManager.canOpenURL(url); + } + }, { + key: "getInitialURL", + value: function getInitialURL() { + return LinkingManager.getInitialURL(); + } + }, { + key: "_validateURL", + value: function _validateURL(url) { + invariant(typeof url === 'string', 'Invalid URL: should be a string. Was: ' + url); + invariant(url, 'Invalid URL: cannot be empty'); + } + }]); + + _inherits(Linking, _NativeEventEmitter); + + return Linking; + }(NativeEventEmitter); + + module.exports = new Linking(); +},478,[286,168,176,166],"node_modules/react-native/Libraries/Linking/Linking.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var escapeStringRegexp = _$$_REQUIRE(_dependencyMap[0], 'escape-string-regexp'); + + var WebViewShared = { + defaultOriginWhitelist: ['http://*', 'https://*'], + extractOrigin: function extractOrigin(url) { + var result = /^[A-Za-z0-9]+:(\/\/)?[^/]*/.exec(url); + return result === null ? null : result[0]; + }, + originWhitelistToRegex: function originWhitelistToRegex(originWhitelist) { + return escapeStringRegexp(originWhitelist).replace(/\\\*/g, '.*'); + } + }; + module.exports = WebViewShared; +},479,[480],"node_modules/react-native/Libraries/Components/WebView/WebViewShared.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; + + module.exports = function (str) { + if (typeof str !== 'string') { + throw new TypeError('Expected a string'); + } + + return str.replace(matchOperatorsRe, '\\$&'); + }; +},480,[],"node_modules/escape-string-regexp/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var RCTActionSheetManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').ActionSheetManager; + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var processColor = _$$_REQUIRE(_dependencyMap[2], 'processColor'); + + var ActionSheetIOS = { + showActionSheetWithOptions: function showActionSheetWithOptions(options, callback) { + invariant(typeof options === 'object' && options !== null, 'Options must be a valid object'); + invariant(typeof callback === 'function', 'Must provide a valid callback'); + RCTActionSheetManager.showActionSheetWithOptions(_objectSpread({}, options, { + tintColor: processColor(options.tintColor) + }), callback); + }, + showShareActionSheetWithOptions: function showShareActionSheetWithOptions(options, failureCallback, successCallback) { + invariant(typeof options === 'object' && options !== null, 'Options must be a valid object'); + invariant(typeof failureCallback === 'function', 'Must provide a valid failureCallback'); + invariant(typeof successCallback === 'function', 'Must provide a valid successCallback'); + RCTActionSheetManager.showShareActionSheetWithOptions(_objectSpread({}, options, { + tintColor: processColor(options.tintColor) + }), failureCallback, successCallback); + } + }; + module.exports = ActionSheetIOS; +},481,[168,166,221],"node_modules/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); + + var BugReporting = _$$_REQUIRE(_dependencyMap[1], 'BugReporting'); + + var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); + + var ReactNative = _$$_REQUIRE(_dependencyMap[3], 'ReactNative'); + + var SceneTracker = _$$_REQUIRE(_dependencyMap[4], 'SceneTracker'); + + var infoLog = _$$_REQUIRE(_dependencyMap[5], 'infoLog'); + + var invariant = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/invariant'); + + var renderApplication = _$$_REQUIRE(_dependencyMap[7], 'renderApplication'); + + var runnables = {}; + var runCount = 1; + var sections = {}; + var tasks = new Map(); + + var componentProviderInstrumentationHook = function componentProviderInstrumentationHook(component) { + return component(); + }; + + var wrapperComponentProvider; + var AppRegistry = { + setWrapperComponentProvider: function setWrapperComponentProvider(provider) { + wrapperComponentProvider = provider; + }, + registerConfig: function registerConfig(config) { + config.forEach(function (appConfig) { + if (appConfig.run) { + AppRegistry.registerRunnable(appConfig.appKey, appConfig.run); + } else { + invariant(appConfig.component != null, 'AppRegistry.registerConfig(...): Every config is expected to set ' + 'either `run` or `component`, but `%s` has neither.', appConfig.appKey); + AppRegistry.registerComponent(appConfig.appKey, appConfig.component, appConfig.section); + } + }); + }, + registerComponent: function registerComponent(appKey, componentProvider, section) { + runnables[appKey] = { + componentProvider: componentProvider, + run: function run(appParameters) { + renderApplication(componentProviderInstrumentationHook(componentProvider), appParameters.initialProps, appParameters.rootTag, wrapperComponentProvider && wrapperComponentProvider(appParameters), appParameters.fabric); + } + }; + + if (section) { + sections[appKey] = runnables[appKey]; + } + + return appKey; + }, + registerRunnable: function registerRunnable(appKey, run) { + runnables[appKey] = { + run: run + }; + return appKey; + }, + registerSection: function registerSection(appKey, component) { + AppRegistry.registerComponent(appKey, component, true); + }, + getAppKeys: function getAppKeys() { + return Object.keys(runnables); + }, + getSectionKeys: function getSectionKeys() { + return Object.keys(sections); + }, + getSections: function getSections() { + return _objectSpread({}, sections); + }, + getRunnable: function getRunnable(appKey) { + return runnables[appKey]; + }, + getRegistry: function getRegistry() { + return { + sections: AppRegistry.getSectionKeys(), + runnables: _objectSpread({}, runnables) + }; + }, + setComponentProviderInstrumentationHook: function setComponentProviderInstrumentationHook(hook) { + componentProviderInstrumentationHook = hook; + }, + runApplication: function runApplication(appKey, appParameters) { + var msg = 'Running application "' + appKey + '" with appParams: ' + JSON.stringify(appParameters) + '. ' + '__DEV__ === ' + String(__DEV__) + ', development-level warning are ' + (__DEV__ ? 'ON' : 'OFF') + ', performance optimizations are ' + (__DEV__ ? 'OFF' : 'ON'); + infoLog(msg); + BugReporting.addSource('AppRegistry.runApplication' + runCount++, function () { + return msg; + }); + invariant(runnables[appKey] && runnables[appKey].run, 'Application ' + appKey + ' has not been registered.\n\n' + "Hint: This error often happens when you're running the packager " + '(local dev server) from a wrong folder. For example you have ' + 'multiple apps and the packager is still running for the app you ' + 'were working on before.\nIf this is the case, simply kill the old ' + 'packager instance (e.g. close the packager terminal window) ' + 'and start the packager in the correct app folder (e.g. cd into app ' + "folder and run 'npm start').\n\n" + 'This error can also happen due to a require() error during ' + 'initialization or failure to call AppRegistry.registerComponent.\n\n'); + SceneTracker.setActiveScene({ + name: appKey + }); + runnables[appKey].run(appParameters); + }, + unmountApplicationComponentAtRootTag: function unmountApplicationComponentAtRootTag(rootTag) { + ReactNative.unmountComponentAtNodeAndRemoveContainer(rootTag); + }, + registerHeadlessTask: function registerHeadlessTask(taskKey, task) { + if (tasks.has(taskKey)) { + console.warn("registerHeadlessTask called multiple times for same key '" + taskKey + "'"); + } + + tasks.set(taskKey, task); + }, + startHeadlessTask: function startHeadlessTask(taskId, taskKey, data) { + var taskProvider = tasks.get(taskKey); + + if (!taskProvider) { + throw new Error("No task registered for key " + taskKey); + } + + taskProvider()(data).then(function () { + return NativeModules.HeadlessJsTaskSupport.notifyTaskFinished(taskId); + }).catch(function (reason) { + console.error(reason); + NativeModules.HeadlessJsTaskSupport.notifyTaskFinished(taskId); + }); + } + }; + BatchedBridge.registerCallableModule('AppRegistry', AppRegistry); + module.exports = AppRegistry; +},482,[169,483,168,261,485,309,166,486],"node_modules/react-native/Libraries/ReactNative/AppRegistry.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + + function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + + function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + + function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'RCTDeviceEventEmitter'); + + var Map = _$$_REQUIRE(_dependencyMap[1], 'Map'); + + var infoLog = _$$_REQUIRE(_dependencyMap[2], 'infoLog'); + + function defaultExtras() { + BugReporting.addFileSource('react_hierarchy.txt', function () { + return _$$_REQUIRE(_dependencyMap[3], 'dumpReactTree')(); + }); + } + + var BugReporting = function () { + function BugReporting() { + _classCallCheck(this, BugReporting); + } + + _createClass(BugReporting, null, [{ + key: "_maybeInit", + value: function _maybeInit() { + if (!BugReporting._subscription) { + BugReporting._subscription = RCTDeviceEventEmitter.addListener('collectBugExtraData', BugReporting.collectExtraData, null); + defaultExtras(); + } + + if (!BugReporting._redboxSubscription) { + BugReporting._redboxSubscription = RCTDeviceEventEmitter.addListener('collectRedBoxExtraData', BugReporting.collectExtraData, null); + } + } + }, { + key: "addSource", + value: function addSource(key, callback) { + return this._addSource(key, callback, BugReporting._extraSources); + } + }, { + key: "addFileSource", + value: function addFileSource(key, callback) { + return this._addSource(key, callback, BugReporting._fileSources); + } + }, { + key: "_addSource", + value: function _addSource(key, callback, source) { + BugReporting._maybeInit(); + + if (source.has(key)) { + console.warn("BugReporting.add* called multiple times for same key '" + key + "'"); + } + + source.set(key, callback); + return { + remove: function remove() { + source.delete(key); + } + }; + } + }, { + key: "collectExtraData", + value: function collectExtraData() { + var extraData = {}; + + for (var _iterator = BugReporting._extraSources, _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref3; + + if (_isArray) { + if (_i2 >= _iterator.length) break; + _ref3 = _iterator[_i2++]; + } else { + _i2 = _iterator.next(); + if (_i2.done) break; + _ref3 = _i2.value; + } + + var _ref7 = _ref3; + + var _ref2 = _slicedToArray(_ref7, 2); + + var _key3 = _ref2[0]; + var _callback2 = _ref2[1]; + extraData[_key3] = _callback2(); + } + + var fileData = {}; + + for (var _iterator2 = BugReporting._fileSources, _isArray2 = Array.isArray(_iterator2), _i3 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { + var _ref6; + + if (_isArray2) { + if (_i3 >= _iterator2.length) break; + _ref6 = _iterator2[_i3++]; + } else { + _i3 = _iterator2.next(); + if (_i3.done) break; + _ref6 = _i3.value; + } + + var _ref8 = _ref6; + + var _ref5 = _slicedToArray(_ref8, 2); + + var _key4 = _ref5[0]; + var _callback3 = _ref5[1]; + fileData[_key4] = _callback3(); + } + + infoLog('BugReporting extraData:', extraData); + + var BugReportingNativeModule = _$$_REQUIRE(_dependencyMap[4], 'NativeModules').BugReporting; + + BugReportingNativeModule && BugReportingNativeModule.setExtraData && BugReportingNativeModule.setExtraData(extraData, fileData); + + var RedBoxNativeModule = _$$_REQUIRE(_dependencyMap[4], 'NativeModules').RedBox; + + RedBoxNativeModule && RedBoxNativeModule.setExtraData && RedBoxNativeModule.setExtraData(extraData, 'From BugReporting.js'); + return { + extras: extraData, + files: fileData + }; + } + }]); + + return BugReporting; + }(); + + BugReporting._extraSources = new Map(); + BugReporting._fileSources = new Map(); + BugReporting._subscription = null; + BugReporting._redboxSubscription = null; + module.exports = BugReporting; +},483,[194,266,309,484,168],"node_modules/react-native/Libraries/BugReporting/BugReporting.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function dumpReactTree() { + try { + return getReactTree(); + } catch (e) { + return 'Failed to dump react tree: ' + e; + } + } + + function getReactTree() { + return 'React tree dumps have been temporarily disabled while React is ' + 'upgraded to Fiber.'; + } + + module.exports = dumpReactTree; +},484,[],"node_modules/react-native/Libraries/BugReporting/dumpReactTree.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _listeners = []; + var _activeScene = { + name: 'default' + }; + var SceneTracker = { + setActiveScene: function setActiveScene(scene) { + _activeScene = scene; + + _listeners.forEach(function (listener) { + return listener(_activeScene); + }); + }, + getActiveScene: function getActiveScene() { + return _activeScene; + }, + addActiveSceneChangedListener: function addActiveSceneChangedListener(callback) { + _listeners.push(callback); + + return { + remove: function remove() { + _listeners = _listeners.filter(function (listener) { + return callback !== listener; + }); + } + }; + } + }; + module.exports = SceneTracker; +},485,[],"node_modules/react-native/Libraries/Utilities/SceneTracker.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native/Libraries/ReactNative/renderApplication.js"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var AppContainer = _$$_REQUIRE(_dependencyMap[0], 'AppContainer'); + + var React = _$$_REQUIRE(_dependencyMap[1], 'React'); + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + _$$_REQUIRE(_dependencyMap[3], 'BackHandler'); + + function renderApplication(RootComponent, initialProps, rootTag, WrapperComponent, fabric) { + invariant(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag); + var renderable = React.createElement(AppContainer, { + rootTag: rootTag, + WrapperComponent: WrapperComponent, + __source: { + fileName: _jsxFileName, + lineNumber: 31 + } + }, React.createElement(RootComponent, _extends({}, initialProps, { + rootTag: rootTag, + __source: { + fileName: _jsxFileName, + lineNumber: 32 + } + }))); + + if (RootComponent.prototype != null && RootComponent.prototype.unstable_isAsyncReactComponent === true) { + var AsyncMode = React.unstable_AsyncMode; + renderable = React.createElement(AsyncMode, { + __source: { + fileName: _jsxFileName, + lineNumber: 48 + } + }, renderable); + } + + if (fabric) { + _$$_REQUIRE(_dependencyMap[4], 'ReactFabric').render(renderable, rootTag); + } else { + _$$_REQUIRE(_dependencyMap[5], 'ReactNative').render(renderable, rootTag); + } + } + + module.exports = renderApplication; +},486,[410,200,166,487,488,261],"node_modules/react-native/Libraries/ReactNative/renderApplication.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var TVEventHandler = _$$_REQUIRE(_dependencyMap[1], 'TVEventHandler'); + + function emptyFunction() {} + + var BackHandler; + + if (Platform.isTV) { + var _tvEventHandler = new TVEventHandler(); + + var _backPressSubscriptions = new Set(); + + _tvEventHandler.enable(this, function (cmp, evt) { + if (evt && evt.eventType === 'menu') { + var invokeDefault = true; + var subscriptions = Array.from(_backPressSubscriptions.values()).reverse(); + + for (var i = 0; i < subscriptions.length; ++i) { + if (subscriptions[i]()) { + invokeDefault = false; + break; + } + } + + if (invokeDefault) { + BackHandler.exitApp(); + } + } + }); + + BackHandler = { + exitApp: emptyFunction, + addEventListener: function addEventListener(eventName, handler) { + _backPressSubscriptions.add(handler); + + return { + remove: function remove() { + return BackHandler.removeEventListener(eventName, handler); + } + }; + }, + removeEventListener: function removeEventListener(eventName, handler) { + _backPressSubscriptions.delete(handler); + } + }; + } else { + BackHandler = { + exitApp: emptyFunction, + addEventListener: function addEventListener() { + return { + remove: emptyFunction + }; + }, + removeEventListener: emptyFunction + }; + } + + module.exports = BackHandler; +},487,[176,327],"node_modules/react-native/Libraries/Utilities/BackHandler.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); + + var ReactFabric; + + if (__DEV__) { + ReactFabric = _$$_REQUIRE(_dependencyMap[1], 'ReactFabric-dev'); + } else { + ReactFabric = _$$_REQUIRE(_dependencyMap[2], 'ReactFabric-prod'); + } + + BatchedBridge.registerCallableModule('ReactFabric', ReactFabric); + module.exports = ReactFabric; +},488,[169,489,491],"node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + if (__DEV__) { + (function () { + "use strict"; + + _$$_REQUIRE(_dependencyMap[0], "InitializeCore"); + + var invariant = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"); + + var warning = _$$_REQUIRE(_dependencyMap[2], "fbjs/lib/warning"); + + var ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[3], "ReactNativeViewConfigRegistry"); + + var UIManager = _$$_REQUIRE(_dependencyMap[4], "UIManager"); + + var React = _$$_REQUIRE(_dependencyMap[5], "react"); + + var emptyObject = _$$_REQUIRE(_dependencyMap[6], "fbjs/lib/emptyObject"); + + var deepDiffer = _$$_REQUIRE(_dependencyMap[7], "deepDiffer"); + + var flattenStyle = _$$_REQUIRE(_dependencyMap[8], "flattenStyle"); + + var deepFreezeAndThrowOnMutationInDev = _$$_REQUIRE(_dependencyMap[9], "deepFreezeAndThrowOnMutationInDev"); + + var TextInputState = _$$_REQUIRE(_dependencyMap[10], "TextInputState"); + + var FabricUIManager = _$$_REQUIRE(_dependencyMap[11], "FabricUIManager"); + + var checkPropTypes = _$$_REQUIRE(_dependencyMap[12], "prop-types/checkPropTypes"); + + var ExceptionsManager = _$$_REQUIRE(_dependencyMap[13], "ExceptionsManager"); + + var invokeGuardedCallback = function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + this._hasCaughtError = false; + this._caughtError = null; + var funcArgs = Array.prototype.slice.call(arguments, 3); + + try { + func.apply(context, funcArgs); + } catch (error) { + this._caughtError = error; + this._hasCaughtError = true; + } + }; + + { + if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { + var fakeNode = document.createElement("react"); + + var invokeGuardedCallbackDev = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { + invariant(typeof document !== "undefined", "The `document` global was defined when React was initialized, but is not " + "defined anymore. This can happen in a test environment if a component " + "schedules an update from an asynchronous callback, but the test has already " + "finished running. To solve this, you can either unmount the component at " + "the end of your test (and ensure that any asynchronous operations get " + "canceled in `componentWillUnmount`), or you can change the test itself " + "to be asynchronous."); + var evt = document.createEvent("Event"); + var didError = true; + var funcArgs = Array.prototype.slice.call(arguments, 3); + + function callCallback() { + fakeNode.removeEventListener(evtType, callCallback, false); + func.apply(context, funcArgs); + didError = false; + } + + var error = void 0; + var didSetError = false; + var isCrossOriginError = false; + + function onError(event) { + error = event.error; + didSetError = true; + + if (error === null && event.colno === 0 && event.lineno === 0) { + isCrossOriginError = true; + } + } + + var evtType = "react-" + (name ? name : "invokeguardedcallback"); + window.addEventListener("error", onError); + fakeNode.addEventListener(evtType, callCallback, false); + evt.initEvent(evtType, false, false); + fakeNode.dispatchEvent(evt); + + if (didError) { + if (!didSetError) { + error = new Error("An error was thrown inside one of your components, but React " + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + "your browser. Try triggering the error in production mode, " + "or switching to a modern browser. If you suspect that this is " + "actually an issue with React, please file an issue."); + } else if (isCrossOriginError) { + error = new Error("A cross-origin error was thrown. React doesn't have access to " + "the actual error object in development. " + "See https://fb.me/react-crossorigin-error for more information."); + } + + this._hasCaughtError = true; + this._caughtError = error; + } else { + this._hasCaughtError = false; + this._caughtError = null; + } + + window.removeEventListener("error", onError); + }; + + invokeGuardedCallback = invokeGuardedCallbackDev; + } + } + var invokeGuardedCallback$1 = invokeGuardedCallback; + var ReactErrorUtils = { + _caughtError: null, + _hasCaughtError: false, + _rethrowError: null, + _hasRethrowError: false, + invokeGuardedCallback: function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback$1.apply(ReactErrorUtils, arguments); + }, + invokeGuardedCallbackAndCatchFirstError: function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + ReactErrorUtils.invokeGuardedCallback.apply(this, arguments); + + if (ReactErrorUtils.hasCaughtError()) { + var error = ReactErrorUtils.clearCaughtError(); + + if (!ReactErrorUtils._hasRethrowError) { + ReactErrorUtils._hasRethrowError = true; + ReactErrorUtils._rethrowError = error; + } + } + }, + rethrowCaughtError: function rethrowCaughtError() { + return _rethrowCaughtError.apply(ReactErrorUtils, arguments); + }, + hasCaughtError: function hasCaughtError() { + return ReactErrorUtils._hasCaughtError; + }, + clearCaughtError: function clearCaughtError() { + if (ReactErrorUtils._hasCaughtError) { + var error = ReactErrorUtils._caughtError; + ReactErrorUtils._caughtError = null; + ReactErrorUtils._hasCaughtError = false; + return error; + } else { + invariant(false, "clearCaughtError was called but no error was captured. This error " + "is likely caused by a bug in React. Please file an issue."); + } + } + }; + + var _rethrowCaughtError = function _rethrowCaughtError() { + if (ReactErrorUtils._hasRethrowError) { + var error = ReactErrorUtils._rethrowError; + ReactErrorUtils._rethrowError = null; + ReactErrorUtils._hasRethrowError = false; + throw error; + } + }; + + var eventPluginOrder = null; + var namesToPlugins = {}; + + function recomputePluginOrdering() { + if (!eventPluginOrder) { + return; + } + + for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName]; + var pluginIndex = eventPluginOrder.indexOf(pluginName); + invariant(pluginIndex > -1, "EventPluginRegistry: Cannot inject event plugins that do not exist in " + "the plugin ordering, `%s`.", pluginName); + + if (plugins[pluginIndex]) { + continue; + } + + invariant(pluginModule.extractEvents, "EventPluginRegistry: Event plugins must implement an `extractEvents` " + "method, but `%s` does not.", pluginName); + plugins[pluginIndex] = pluginModule; + var publishedEvents = pluginModule.eventTypes; + + for (var eventName in publishedEvents) { + invariant(publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName), "EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.", eventName, pluginName); + } + } + } + + function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { + invariant(!eventNameDispatchConfigs.hasOwnProperty(eventName), "EventPluginHub: More than one plugin attempted to publish the same " + "event name, `%s`.", eventName); + eventNameDispatchConfigs[eventName] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + + if (phasedRegistrationNames) { + for (var phaseName in phasedRegistrationNames) { + if (phasedRegistrationNames.hasOwnProperty(phaseName)) { + var phasedRegistrationName = phasedRegistrationNames[phaseName]; + publishRegistrationName(phasedRegistrationName, pluginModule, eventName); + } + } + + return true; + } else if (dispatchConfig.registrationName) { + publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); + return true; + } + + return false; + } + + function publishRegistrationName(registrationName, pluginModule, eventName) { + invariant(!registrationNameModules[registrationName], "EventPluginHub: More than one plugin attempted to publish the same " + "registration name, `%s`.", registrationName); + registrationNameModules[registrationName] = pluginModule; + registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; + { + var lowerCasedName = registrationName.toLowerCase(); + } + } + + var plugins = []; + var eventNameDispatchConfigs = {}; + var registrationNameModules = {}; + var registrationNameDependencies = {}; + + function injectEventPluginOrder(injectedEventPluginOrder) { + invariant(!eventPluginOrder, "EventPluginRegistry: Cannot inject event plugin ordering more than " + "once. You are likely trying to load more than one copy of React."); + eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); + recomputePluginOrdering(); + } + + function injectEventPluginsByName(injectedNamesToPlugins) { + var isOrderingDirty = false; + + for (var pluginName in injectedNamesToPlugins) { + if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { + continue; + } + + var pluginModule = injectedNamesToPlugins[pluginName]; + + if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { + invariant(!namesToPlugins[pluginName], "EventPluginRegistry: Cannot inject two different event plugins " + "using the same name, `%s`.", pluginName); + namesToPlugins[pluginName] = pluginModule; + isOrderingDirty = true; + } + } + + if (isOrderingDirty) { + recomputePluginOrdering(); + } + } + + var getFiberCurrentPropsFromNode = null; + var getInstanceFromNode = null; + var getNodeFromInstance = null; + var injection$1 = { + injectComponentTree: function injectComponentTree(Injected) { + getFiberCurrentPropsFromNode = Injected.getFiberCurrentPropsFromNode; + getInstanceFromNode = Injected.getInstanceFromNode; + getNodeFromInstance = Injected.getNodeFromInstance; + { + !(getNodeFromInstance && getInstanceFromNode) ? warning(false, "EventPluginUtils.injection.injectComponentTree(...): Injected " + "module is missing getNodeFromInstance or getInstanceFromNode.") : void 0; + } + } + }; + var validateEventDispatches = void 0; + { + validateEventDispatches = function validateEventDispatches(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + var listenersIsArr = Array.isArray(dispatchListeners); + var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; + var instancesIsArr = Array.isArray(dispatchInstances); + var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; + !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warning(false, "EventPluginUtils: Invalid `event`.") : void 0; + }; + } + + function executeDispatch(event, simulated, listener, inst) { + var type = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); + event.currentTarget = null; + } + + function executeDispatchesInOrder(event, simulated) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + { + validateEventDispatches(event); + } + + if (Array.isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } + + executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]); + } + } else if (dispatchListeners) { + executeDispatch(event, simulated, dispatchListeners, dispatchInstances); + } + + event._dispatchListeners = null; + event._dispatchInstances = null; + } + + function executeDispatchesInOrderStopAtTrueImpl(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + { + validateEventDispatches(event); + } + + if (Array.isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } + + if (dispatchListeners[i](event, dispatchInstances[i])) { + return dispatchInstances[i]; + } + } + } else if (dispatchListeners) { + if (dispatchListeners(event, dispatchInstances)) { + return dispatchInstances; + } + } + + return null; + } + + function executeDispatchesInOrderStopAtTrue(event) { + var ret = executeDispatchesInOrderStopAtTrueImpl(event); + event._dispatchInstances = null; + event._dispatchListeners = null; + return ret; + } + + function executeDirectDispatch(event) { + { + validateEventDispatches(event); + } + var dispatchListener = event._dispatchListeners; + var dispatchInstance = event._dispatchInstances; + invariant(!Array.isArray(dispatchListener), "executeDirectDispatch(...): Invalid `event`."); + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + var res = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return res; + } + + function hasDispatches(event) { + return !!event._dispatchListeners; + } + + function accumulateInto(current, next) { + invariant(next != null, "accumulateInto(...): Accumulated items must not be null or undefined."); + + if (current == null) { + return next; + } + + if (Array.isArray(current)) { + if (Array.isArray(next)) { + current.push.apply(current, next); + return current; + } + + current.push(next); + return current; + } + + if (Array.isArray(next)) { + return [current].concat(next); + } + + return [current, next]; + } + + function forEachAccumulated(arr, cb, scope) { + if (Array.isArray(arr)) { + arr.forEach(cb, scope); + } else if (arr) { + cb.call(scope, arr); + } + } + + var eventQueue = null; + + var executeDispatchesAndRelease = function executeDispatchesAndRelease(event, simulated) { + if (event) { + executeDispatchesInOrder(event, simulated); + + if (!event.isPersistent()) { + event.constructor.release(event); + } + } + }; + + var executeDispatchesAndReleaseSimulated = function executeDispatchesAndReleaseSimulated(e) { + return executeDispatchesAndRelease(e, true); + }; + + var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { + return executeDispatchesAndRelease(e, false); + }; + + function isInteractive(tag) { + return tag === "button" || tag === "input" || tag === "select" || tag === "textarea"; + } + + function shouldPreventMouseEvent(name, type, props) { + switch (name) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + return !!(props.disabled && isInteractive(type)); + + default: + return false; + } + } + + var injection = { + injectEventPluginOrder: injectEventPluginOrder, + injectEventPluginsByName: injectEventPluginsByName + }; + + function getListener(inst, registrationName) { + var listener = void 0; + var stateNode = inst.stateNode; + + if (!stateNode) { + return null; + } + + var props = getFiberCurrentPropsFromNode(stateNode); + + if (!props) { + return null; + } + + listener = props[registrationName]; + + if (shouldPreventMouseEvent(registrationName, inst.type, props)) { + return null; + } + + invariant(!listener || typeof listener === "function", "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); + return listener; + } + + function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = null; + + for (var i = 0; i < plugins.length; i++) { + var possiblePlugin = plugins[i]; + + if (possiblePlugin) { + var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + + if (extractedEvents) { + events = accumulateInto(events, extractedEvents); + } + } + } + + return events; + } + + function runEventsInBatch(events, simulated) { + if (events !== null) { + eventQueue = accumulateInto(eventQueue, events); + } + + var processingEventQueue = eventQueue; + eventQueue = null; + + if (!processingEventQueue) { + return; + } + + if (simulated) { + forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated); + } else { + forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); + } + + invariant(!eventQueue, "processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); + ReactErrorUtils.rethrowCaughtError(); + } + + function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); + runEventsInBatch(events, false); + } + + var IndeterminateComponent = 0; + var FunctionalComponent = 1; + var ClassComponent = 2; + var HostRoot = 3; + var HostPortal = 4; + var HostComponent = 5; + var HostText = 6; + var Fragment = 10; + var Mode = 11; + var ContextConsumer = 12; + var ContextProvider = 13; + var ForwardRef = 14; + var Profiler = 15; + var TimeoutComponent = 16; + + function getParent(inst) { + do { + inst = inst.return; + } while (inst && inst.tag !== HostComponent); + + if (inst) { + return inst; + } + + return null; + } + + function getLowestCommonAncestor(instA, instB) { + var depthA = 0; + + for (var tempA = instA; tempA; tempA = getParent(tempA)) { + depthA++; + } + + var depthB = 0; + + for (var tempB = instB; tempB; tempB = getParent(tempB)) { + depthB++; + } + + while (depthA - depthB > 0) { + instA = getParent(instA); + depthA--; + } + + while (depthB - depthA > 0) { + instB = getParent(instB); + depthB--; + } + + var depth = depthA; + + while (depth--) { + if (instA === instB || instA === instB.alternate) { + return instA; + } + + instA = getParent(instA); + instB = getParent(instB); + } + + return null; + } + + function isAncestor(instA, instB) { + while (instB) { + if (instA === instB || instA === instB.alternate) { + return true; + } + + instB = getParent(instB); + } + + return false; + } + + function getParentInstance(inst) { + return getParent(inst); + } + + function traverseTwoPhase(inst, fn, arg) { + var path = []; + + while (inst) { + path.push(inst); + inst = getParent(inst); + } + + var i = void 0; + + for (i = path.length; i-- > 0;) { + fn(path[i], "captured", arg); + } + + for (i = 0; i < path.length; i++) { + fn(path[i], "bubbled", arg); + } + } + + function listenerAtPhase(inst, event, propagationPhase) { + var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; + return getListener(inst, registrationName); + } + + function accumulateDirectionalDispatches(inst, phase, event) { + { + !inst ? warning(false, "Dispatching inst must not be null") : void 0; + } + var listener = listenerAtPhase(inst, event, phase); + + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + + function accumulateTwoPhaseDispatchesSingle(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + } + + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + var parentInst = targetInst ? getParentInstance(targetInst) : null; + traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); + } + } + + function accumulateDispatches(inst, ignoredDirection, event) { + if (inst && event && event.dispatchConfig.registrationName) { + var registrationName = event.dispatchConfig.registrationName; + var listener = getListener(inst, registrationName); + + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + } + + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + accumulateDispatches(event._targetInst, null, event); + } + } + + function accumulateTwoPhaseDispatches(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); + } + + function accumulateTwoPhaseDispatchesSkipTarget(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); + } + + function accumulateDirectDispatches(events) { + forEachAccumulated(events, accumulateDirectDispatchesSingle); + } + + var didWarnForAddedNewProperty = false; + var EVENT_POOL_SIZE = 10; + var shouldBeReleasedProperties = ["dispatchConfig", "_targetInst", "nativeEvent", "isDefaultPrevented", "isPropagationStopped", "_dispatchListeners", "_dispatchInstances"]; + var EventInterface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + + function functionThatReturnsTrue() { + return true; + } + + function functionThatReturnsFalse() { + return false; + } + + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + { + delete this.nativeEvent; + delete this.preventDefault; + delete this.stopPropagation; + } + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + var Interface = this.constructor.Interface; + + for (var propName in Interface) { + if (!Interface.hasOwnProperty(propName)) { + continue; + } + + { + delete this[propName]; + } + var normalize = Interface[propName]; + + if (normalize) { + this[propName] = normalize(nativeEvent); + } else { + if (propName === "target") { + this.target = nativeEventTarget; + } else { + this[propName] = nativeEvent[propName]; + } + } + } + + var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; + + if (defaultPrevented) { + this.isDefaultPrevented = functionThatReturnsTrue; + } else { + this.isDefaultPrevented = functionThatReturnsFalse; + } + + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + + _extends(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = true; + var event = this.nativeEvent; + + if (!event) { + return; + } + + if (event.preventDefault) { + event.preventDefault(); + } else if (typeof event.returnValue !== "unknown") { + event.returnValue = false; + } + + this.isDefaultPrevented = functionThatReturnsTrue; + }, + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + + if (!event) { + return; + } + + if (event.stopPropagation) { + event.stopPropagation(); + } else if (typeof event.cancelBubble !== "unknown") { + event.cancelBubble = true; + } + + this.isPropagationStopped = functionThatReturnsTrue; + }, + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; + }, + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface; + + for (var propName in Interface) { + { + Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); + } + } + + for (var i = 0; i < shouldBeReleasedProperties.length; i++) { + this[shouldBeReleasedProperties[i]] = null; + } + + { + Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)); + Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", function () {})); + Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", function () {})); + } + } + }); + + SyntheticEvent.Interface = EventInterface; + + SyntheticEvent.extend = function (Interface) { + var Super = this; + + var E = function E() {}; + + E.prototype = Super.prototype; + var prototype = new E(); + + function Class() { + return Super.apply(this, arguments); + } + + _extends(prototype, Class.prototype); + + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = _extends({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + + { + var isProxySupported = typeof Proxy === "function" && !Object.isSealed(new Proxy({}, {})); + + if (isProxySupported) { + SyntheticEvent = new Proxy(SyntheticEvent, { + construct: function construct(target, args) { + return this.apply(target, Object.create(target.prototype), args); + }, + apply: function apply(constructor, that, args) { + return new Proxy(constructor.apply(that, args), { + set: function set(target, prop, value) { + if (prop !== "isPersistent" && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) { + !(didWarnForAddedNewProperty || target.isPersistent()) ? warning(false, "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + "The property is never released. See " + "https://fb.me/react-event-pooling for more information.") : void 0; + didWarnForAddedNewProperty = true; + } + + target[prop] = value; + return true; + } + }); + } + }); + } + } + addEventPoolingTo(SyntheticEvent); + + function getPooledWarningPropertyDefinition(propName, getVal) { + var isFunction = typeof getVal === "function"; + return { + configurable: true, + set: set, + get: get$$1 + }; + + function set(val) { + var action = isFunction ? "setting the method" : "setting the property"; + warn(action, "This is effectively a no-op"); + return val; + } + + function get$$1() { + var action = isFunction ? "accessing the method" : "accessing the property"; + var result = isFunction ? "This is a no-op function" : "This is set to null"; + warn(action, result); + return getVal; + } + + function warn(action, result) { + var warningCondition = false; + !warningCondition ? warning(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + "If you must keep the original synthetic event around, use event.persist(). " + "See https://fb.me/react-event-pooling for more information.", action, propName, result) : void 0; + } + } + + function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + var EventConstructor = this; + + if (EventConstructor.eventPool.length) { + var instance = EventConstructor.eventPool.pop(); + EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + + return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + + function releasePooledEvent(event) { + var EventConstructor = this; + invariant(event instanceof EventConstructor, "Trying to release an event instance into a pool of a different type."); + event.destructor(); + + if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { + EventConstructor.eventPool.push(event); + } + } + + function addEventPoolingTo(EventConstructor) { + EventConstructor.eventPool = []; + EventConstructor.getPooled = getPooledEvent; + EventConstructor.release = releasePooledEvent; + } + + var SyntheticEvent$1 = SyntheticEvent; + var ResponderSyntheticEvent = SyntheticEvent$1.extend({ + touchHistory: function touchHistory(nativeEvent) { + return null; + } + }); + var TOP_TOUCH_START = "topTouchStart"; + var TOP_TOUCH_MOVE = "topTouchMove"; + var TOP_TOUCH_END = "topTouchEnd"; + var TOP_TOUCH_CANCEL = "topTouchCancel"; + var TOP_SCROLL = "topScroll"; + var TOP_SELECTION_CHANGE = "topSelectionChange"; + + function isStartish(topLevelType) { + return topLevelType === TOP_TOUCH_START; + } + + function isMoveish(topLevelType) { + return topLevelType === TOP_TOUCH_MOVE; + } + + function isEndish(topLevelType) { + return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL; + } + + var startDependencies = [TOP_TOUCH_START]; + var moveDependencies = [TOP_TOUCH_MOVE]; + var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END]; + var MAX_TOUCH_BANK = 20; + var touchBank = []; + var touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; + } + + function createTouchRecord(touch) { + return { + touchActive: true, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }; + } + + function resetTouchRecord(touchRecord, touch) { + touchRecord.touchActive = true; + touchRecord.startPageX = touch.pageX; + touchRecord.startPageY = touch.pageY; + touchRecord.startTimeStamp = timestampForTouch(touch); + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchRecord.previousPageX = touch.pageX; + touchRecord.previousPageY = touch.pageY; + touchRecord.previousTimeStamp = timestampForTouch(touch); + } + + function getTouchIdentifier(_ref) { + var identifier = _ref.identifier; + invariant(identifier != null, "Touch object is missing identifier."); + { + !(identifier <= MAX_TOUCH_BANK) ? warning(false, "Touch identifier %s is greater than maximum supported %s which causes " + "performance issues backfilling array locations for all of the indices.", identifier, MAX_TOUCH_BANK) : void 0; + } + return identifier; + } + + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch); + var touchRecord = touchBank[identifier]; + + if (touchRecord) { + resetTouchRecord(touchRecord, touch); + } else { + touchBank[identifier] = createTouchRecord(touch); + } + + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + + if (touchRecord) { + touchRecord.touchActive = true; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + console.error("Cannot record touch move without a touch start.\n" + "Touch Move: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + } + + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + + if (touchRecord) { + touchRecord.touchActive = false; + touchRecord.previousPageX = touchRecord.currentPageX; + touchRecord.previousPageY = touchRecord.currentPageY; + touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; + touchRecord.currentPageX = touch.pageX; + touchRecord.currentPageY = touch.pageY; + touchRecord.currentTimeStamp = timestampForTouch(touch); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } else { + console.error("Cannot record touch end without a touch start.\n" + "Touch End: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + } + + function printTouch(touch) { + return JSON.stringify({ + identifier: touch.identifier, + pageX: touch.pageX, + pageY: touch.pageY, + timestamp: timestampForTouch(touch) + }); + } + + function printTouchBank() { + var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); + + if (touchBank.length > MAX_TOUCH_BANK) { + printed += " (original size: " + touchBank.length + ")"; + } + + return printed; + } + + var ResponderTouchHistoryStore = { + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + if (isMoveish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchMove); + } else if (isStartish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchStart); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + + if (touchHistory.numberActiveTouches === 1) { + touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; + } + } else if (isEndish(topLevelType)) { + nativeEvent.changedTouches.forEach(recordTouchEnd); + touchHistory.numberActiveTouches = nativeEvent.touches.length; + + if (touchHistory.numberActiveTouches === 1) { + for (var i = 0; i < touchBank.length; i++) { + var touchTrackToCheck = touchBank[i]; + + if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { + touchHistory.indexOfSingleActiveTouch = i; + break; + } + } + + { + var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; + !(activeRecord != null && activeRecord.touchActive) ? warning(false, "Cannot find single active touch.") : void 0; + } + } + } + }, + touchHistory: touchHistory + }; + + function accumulate(current, next) { + invariant(next != null, "accumulate(...): Accumulated items must be not be null or undefined."); + + if (current == null) { + return next; + } + + if (Array.isArray(current)) { + return current.concat(next); + } + + if (Array.isArray(next)) { + return [current].concat(next); + } + + return [current, next]; + } + + var responderInst = null; + var trackedTouchCount = 0; + + var changeResponder = function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + + if (ResponderEventPlugin.GlobalResponderHandler !== null) { + ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + }; + + var eventTypes$1 = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies + }, + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: [TOP_SCROLL] + }, + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: [TOP_SELECTION_CHANGE] + }, + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies + }, + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] + } + }; + + function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var shouldSetEventType = isStartish(topLevelType) ? eventTypes$1.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes$1.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes$1.selectionChangeShouldSetResponder : eventTypes$1.scrollShouldSetResponder; + var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); + var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; + var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); + shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + + if (skipOverBubbleShouldSetFrom) { + accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); + } else { + accumulateTwoPhaseDispatches(shouldSetEvent); + } + + var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); + + if (!shouldSetEvent.isPersistent()) { + shouldSetEvent.constructor.release(shouldSetEvent); + } + + if (!wantsResponderInst || wantsResponderInst === responderInst) { + return null; + } + + var extracted = void 0; + var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); + grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(grantEvent); + var blockHostResponder = executeDirectDispatch(grantEvent) === true; + + if (responderInst) { + var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); + terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminationRequestEvent); + var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); + + if (!terminationRequestEvent.isPersistent()) { + terminationRequestEvent.constructor.release(terminationRequestEvent); + } + + if (shouldSwitch) { + var terminateEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminate, responderInst, nativeEvent, nativeEventTarget); + terminateEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(terminateEvent); + extracted = accumulate(extracted, [grantEvent, terminateEvent]); + changeResponder(wantsResponderInst, blockHostResponder); + } else { + var rejectEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderReject, wantsResponderInst, nativeEvent, nativeEventTarget); + rejectEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(rejectEvent); + extracted = accumulate(extracted, rejectEvent); + } + } else { + extracted = accumulate(extracted, grantEvent); + changeResponder(wantsResponderInst, blockHostResponder); + } + + return extracted; + } + + function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { + return topLevelInst && (topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType)); + } + + function noResponderTouches(nativeEvent) { + var touches = nativeEvent.touches; + + if (!touches || touches.length === 0) { + return true; + } + + for (var i = 0; i < touches.length; i++) { + var activeTouch = touches[i]; + var target = activeTouch.target; + + if (target !== null && target !== undefined && target !== 0) { + var targetInst = getInstanceFromNode(target); + + if (isAncestor(responderInst, targetInst)) { + return false; + } + } + } + + return true; + } + + var ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes$1, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (isStartish(topLevelType)) { + trackedTouchCount += 1; + } else if (isEndish(topLevelType)) { + if (trackedTouchCount >= 0) { + trackedTouchCount -= 1; + } else { + console.error("Ended a touch event which was not counted in `trackedTouchCount`."); + return null; + } + } + + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; + var isResponderTouchStart = responderInst && isStartish(topLevelType); + var isResponderTouchMove = responderInst && isMoveish(topLevelType); + var isResponderTouchEnd = responderInst && isEndish(topLevelType); + var incrementalTouch = isResponderTouchStart ? eventTypes$1.responderStart : isResponderTouchMove ? eventTypes$1.responderMove : isResponderTouchEnd ? eventTypes$1.responderEnd : null; + + if (incrementalTouch) { + var gesture = ResponderSyntheticEvent.getPooled(incrementalTouch, responderInst, nativeEvent, nativeEventTarget); + gesture.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(gesture); + extracted = accumulate(extracted, gesture); + } + + var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL; + var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent); + var finalTouch = isResponderTerminate ? eventTypes$1.responderTerminate : isResponderRelease ? eventTypes$1.responderRelease : null; + + if (finalTouch) { + var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); + finalEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; + accumulateDirectDispatches(finalEvent); + extracted = accumulate(extracted, finalEvent); + changeResponder(null); + } + + return extracted; + }, + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + } + }; + var customBubblingEventTypes$1 = ReactNativeViewConfigRegistry.customBubblingEventTypes; + var customDirectEventTypes$1 = ReactNativeViewConfigRegistry.customDirectEventTypes; + var eventTypes$2 = ReactNativeViewConfigRegistry.eventTypes; + var ReactNativeBridgeEventPlugin = { + eventTypes: eventTypes$2, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (targetInst == null) { + return null; + } + + var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType]; + var directDispatchConfig = customDirectEventTypes$1[topLevelType]; + invariant(bubbleDispatchConfig || directDispatchConfig, 'Unsupported top level event type "%s" dispatched', topLevelType); + var event = SyntheticEvent$1.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + + if (bubbleDispatchConfig) { + accumulateTwoPhaseDispatches(event); + } else if (directDispatchConfig) { + accumulateDirectDispatches(event); + } else { + return null; + } + + return event; + } + }; + var ReactNativeEventPluginOrder = ["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]; + injection.injectEventPluginOrder(ReactNativeEventPluginOrder); + injection.injectEventPluginsByName({ + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin + }); + + function getInstanceFromInstance(instanceHandle) { + return instanceHandle; + } + + function getTagFromInstance(inst) { + var tag = inst.stateNode.canonical._nativeTag; + invariant(tag, "All native instances should have a tag."); + return tag; + } + + function getFiberCurrentPropsFromNode$1(inst) { + return inst.canonical.currentProps; + } + + var ReactFabricComponentTree = Object.freeze({ + getClosestInstanceFromNode: getInstanceFromInstance, + getInstanceFromNode: getInstanceFromInstance, + getNodeFromInstance: getTagFromInstance, + getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode$1 + }); + var ReactFabricGlobalResponderHandler = { + onChange: function onChange(from, to, blockNativeResponder) { + if (to !== null) { + var tag = to.stateNode.canonical._nativeTag; + UIManager.setJSResponder(tag, blockNativeResponder); + } else { + UIManager.clearJSResponder(); + } + } + }; + injection$1.injectComponentTree(ReactFabricComponentTree); + ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactFabricGlobalResponderHandler); + + function get$1(key) { + return key._reactInternalFiber; + } + + function set(key, value) { + key._reactInternalFiber = value; + } + + var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var ReactCurrentOwner = ReactInternals.ReactCurrentOwner; + var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame; + var hasSymbol = typeof Symbol === "function" && (typeof Symbol === "function" ? Symbol.for : "@@for"); + var REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 0xeac7; + var REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 0xeaca; + var REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 0xeacb; + var REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 0xeacc; + var REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 0xead2; + var REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 0xeacd; + var REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 0xeace; + var REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 0xeacf; + var REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 0xead0; + var REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout") : 0xead1; + var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable === "undefined") { + return null; + } + + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + + if (typeof maybeIterator === "function") { + return maybeIterator; + } + + return null; + } + + function getComponentName(fiber) { + var type = fiber.type; + + if (typeof type === "function") { + return type.displayName || type.name; + } + + if (typeof type === "string") { + return type; + } + + switch (type) { + case REACT_ASYNC_MODE_TYPE: + return "AsyncMode"; + + case REACT_CONTEXT_TYPE: + return "Context.Consumer"; + + case REACT_FRAGMENT_TYPE: + return "ReactFragment"; + + case REACT_PORTAL_TYPE: + return "ReactPortal"; + + case REACT_PROFILER_TYPE: + return "Profiler(" + fiber.pendingProps.id + ")"; + + case REACT_PROVIDER_TYPE: + return "Context.Provider"; + + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + + case REACT_TIMEOUT_TYPE: + return "Timeout"; + } + + if (typeof type === "object" && type !== null) { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + var functionName = type.render.displayName || type.render.name || ""; + return functionName !== "" ? "ForwardRef(" + functionName + ")" : "ForwardRef"; + } + } + + return null; + } + + var NoEffect = 0; + var PerformedWork = 1; + var Placement = 2; + var Update = 4; + var PlacementAndUpdate = 6; + var Deletion = 8; + var ContentReset = 16; + var Callback = 32; + var DidCapture = 64; + var Ref = 128; + var Snapshot = 256; + var HostEffectMask = 511; + var Incomplete = 512; + var ShouldCapture = 1024; + var MOUNTING = 1; + var MOUNTED = 2; + var UNMOUNTED = 3; + + function isFiberMountedImpl(fiber) { + var node = fiber; + + if (!fiber.alternate) { + if ((node.effectTag & Placement) !== NoEffect) { + return MOUNTING; + } + + while (node.return) { + node = node.return; + + if ((node.effectTag & Placement) !== NoEffect) { + return MOUNTING; + } + } + } else { + while (node.return) { + node = node.return; + } + } + + if (node.tag === HostRoot) { + return MOUNTED; + } + + return UNMOUNTED; + } + + function isFiberMounted(fiber) { + return isFiberMountedImpl(fiber) === MOUNTED; + } + + function isMounted(component) { + { + var owner = ReactCurrentOwner.current; + + if (owner !== null && owner.tag === ClassComponent) { + var ownerFiber = owner; + var instance = ownerFiber.stateNode; + !instance._warnedAboutRefsInRender ? warning(false, "%s is accessing isMounted inside its render() function. " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentName(ownerFiber) || "A component") : void 0; + instance._warnedAboutRefsInRender = true; + } + } + var fiber = get$1(component); + + if (!fiber) { + return false; + } + + return isFiberMountedImpl(fiber) === MOUNTED; + } + + function assertIsMounted(fiber) { + invariant(isFiberMountedImpl(fiber) === MOUNTED, "Unable to find node on an unmounted component."); + } + + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + + if (!alternate) { + var state = isFiberMountedImpl(fiber); + invariant(state !== UNMOUNTED, "Unable to find node on an unmounted component."); + + if (state === MOUNTING) { + return null; + } + + return fiber; + } + + var a = fiber; + var b = alternate; + + while (true) { + var parentA = a.return; + var parentB = parentA ? parentA.alternate : null; + + if (!parentA || !parentB) { + break; + } + + if (parentA.child === parentB.child) { + var child = parentA.child; + + while (child) { + if (child === a) { + assertIsMounted(parentA); + return fiber; + } + + if (child === b) { + assertIsMounted(parentA); + return alternate; + } + + child = child.sibling; + } + + invariant(false, "Unable to find node on an unmounted component."); + } + + if (a.return !== b.return) { + a = parentA; + b = parentB; + } else { + var didFindChild = false; + var _child = parentA.child; + + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentA; + b = parentB; + break; + } + + if (_child === b) { + didFindChild = true; + b = parentA; + a = parentB; + break; + } + + _child = _child.sibling; + } + + if (!didFindChild) { + _child = parentB.child; + + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentB; + b = parentA; + break; + } + + if (_child === b) { + didFindChild = true; + b = parentB; + a = parentA; + break; + } + + _child = _child.sibling; + } + + invariant(didFindChild, "Child was not found in either parent set. This indicates a bug " + "in React related to the return pointer. Please file an issue."); + } + } + + invariant(a.alternate === b, "Return fibers should always be each others' alternates. " + "This error is likely caused by a bug in React. Please file an issue."); + } + + invariant(a.tag === HostRoot, "Unable to find node on an unmounted component."); + + if (a.stateNode.current === a) { + return fiber; + } + + return alternate; + } + + function findCurrentHostFiber(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + + if (!currentParent) { + return null; + } + + var node = currentParent; + + while (true) { + if (node.tag === HostComponent || node.tag === HostText) { + return node; + } else if (node.child) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === currentParent) { + return null; + } + + while (!node.sibling) { + if (!node.return || node.return === currentParent) { + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + + return null; + } + + function findCurrentHostFiberWithNoPortals(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + + if (!currentParent) { + return null; + } + + var node = currentParent; + + while (true) { + if (node.tag === HostComponent || node.tag === HostText) { + return node; + } else if (node.child && node.tag !== HostPortal) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === currentParent) { + return null; + } + + while (!node.sibling) { + if (!node.return || node.return === currentParent) { + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + + return null; + } + + function mountSafeCallback(context, callback) { + return function () { + if (!callback) { + return undefined; + } + + if (typeof context.__isMounted === "boolean") { + if (!context.__isMounted) { + return undefined; + } + } else if (typeof context.isMounted === "function") { + if (!context.isMounted()) { + return undefined; + } + } + + return callback.apply(context, arguments); + }; + } + + function throwOnStylesProp(component, props) { + if (props.styles !== undefined) { + var owner = component._owner || null; + var name = component.constructor.displayName; + var msg = "`styles` is not a supported property of `" + name + "`, did " + "you mean `style` (singular)?"; + + if (owner && owner.constructor && owner.constructor.displayName) { + msg += "\n\nCheck the `" + owner.constructor.displayName + "` parent " + " component."; + } + + throw new Error(msg); + } + } + + function warnForStyleProps(props, validAttributes) { + for (var key in validAttributes.style) { + if (!(validAttributes[key] || props[key] === undefined)) { + console.error("You are setting the style `{ " + key + ": ... }` as a prop. You " + "should nest it in a style object. " + "E.g. `{ style: { " + key + ": ... } }`"); + } + } + } + + var emptyObject$1 = {}; + var removedKeys = null; + var removedKeyCount = 0; + + function defaultDiffer(prevProp, nextProp) { + if (typeof nextProp !== "object" || nextProp === null) { + return true; + } else { + return deepDiffer(prevProp, nextProp); + } + } + + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (Array.isArray(node)) { + var i = node.length; + + while (i-- && removedKeyCount > 0) { + restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); + } + } else if (node && removedKeyCount > 0) { + var obj = node; + + for (var propKey in removedKeys) { + if (!removedKeys[propKey]) { + continue; + } + + var _nextProp = obj[propKey]; + + if (_nextProp === undefined) { + continue; + } + + var attributeConfig = validAttributes[propKey]; + + if (!attributeConfig) { + continue; + } + + if (typeof _nextProp === "function") { + _nextProp = true; + } + + if (typeof _nextProp === "undefined") { + _nextProp = null; + } + + if (typeof attributeConfig !== "object") { + updatePayload[propKey] = _nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(_nextProp) : _nextProp; + updatePayload[propKey] = nextValue; + } + + removedKeys[propKey] = false; + removedKeyCount--; + } + } + } + + function diffNestedArrayProperty(updatePayload, prevArray, nextArray, validAttributes) { + var minLength = prevArray.length < nextArray.length ? prevArray.length : nextArray.length; + var i = void 0; + + for (i = 0; i < minLength; i++) { + updatePayload = diffNestedProperty(updatePayload, prevArray[i], nextArray[i], validAttributes); + } + + for (; i < prevArray.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevArray[i], validAttributes); + } + + for (; i < nextArray.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextArray[i], validAttributes); + } + + return updatePayload; + } + + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) { + return updatePayload; + } + + if (!prevProp || !nextProp) { + if (nextProp) { + return addNestedProperty(updatePayload, nextProp, validAttributes); + } + + if (prevProp) { + return clearNestedProperty(updatePayload, prevProp, validAttributes); + } + + return updatePayload; + } + + if (!Array.isArray(prevProp) && !Array.isArray(nextProp)) { + return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + } + + if (Array.isArray(prevProp) && Array.isArray(nextProp)) { + return diffNestedArrayProperty(updatePayload, prevProp, nextProp, validAttributes); + } + + if (Array.isArray(prevProp)) { + return diffProperties(updatePayload, flattenStyle(prevProp), nextProp, validAttributes); + } + + return diffProperties(updatePayload, prevProp, flattenStyle(nextProp), validAttributes); + } + + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) { + return updatePayload; + } + + if (!Array.isArray(nextProp)) { + return addProperties(updatePayload, nextProp, validAttributes); + } + + for (var i = 0; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + + return updatePayload; + } + + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) { + return updatePayload; + } + + if (!Array.isArray(prevProp)) { + return clearProperties(updatePayload, prevProp, validAttributes); + } + + for (var i = 0; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + + return updatePayload; + } + + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig = void 0; + var nextProp = void 0; + var prevProp = void 0; + + for (var propKey in nextProps) { + attributeConfig = validAttributes[propKey]; + + if (!attributeConfig) { + continue; + } + + prevProp = prevProps[propKey]; + nextProp = nextProps[propKey]; + + if (typeof nextProp === "function") { + nextProp = true; + + if (typeof prevProp === "function") { + prevProp = true; + } + } + + if (typeof nextProp === "undefined") { + nextProp = null; + + if (typeof prevProp === "undefined") { + prevProp = null; + } + } + + if (removedKeys) { + removedKeys[propKey] = false; + } + + if (updatePayload && updatePayload[propKey] !== undefined) { + if (typeof attributeConfig !== "object") { + updatePayload[propKey] = nextProp; + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + updatePayload[propKey] = nextValue; + } + + continue; + } + + if (prevProp === nextProp) { + continue; + } + + if (typeof attributeConfig !== "object") { + if (defaultDiffer(prevProp, nextProp)) { + (updatePayload || (updatePayload = {}))[propKey] = nextProp; + } + } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + var shouldUpdate = prevProp === undefined || (typeof attributeConfig.diff === "function" ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp)); + + if (shouldUpdate) { + var _nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; + + (updatePayload || (updatePayload = {}))[propKey] = _nextValue; + } + } else { + removedKeys = null; + removedKeyCount = 0; + updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig); + + if (removedKeyCount > 0 && updatePayload) { + restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig); + removedKeys = null; + } + } + } + + for (var _propKey in prevProps) { + if (nextProps[_propKey] !== undefined) { + continue; + } + + attributeConfig = validAttributes[_propKey]; + + if (!attributeConfig) { + continue; + } + + if (updatePayload && updatePayload[_propKey] !== undefined) { + continue; + } + + prevProp = prevProps[_propKey]; + + if (prevProp === undefined) { + continue; + } + + if (typeof attributeConfig !== "object" || typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { + (updatePayload || (updatePayload = {}))[_propKey] = null; + + if (!removedKeys) { + removedKeys = {}; + } + + if (!removedKeys[_propKey]) { + removedKeys[_propKey] = true; + removedKeyCount++; + } + } else { + updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig); + } + } + + return updatePayload; + } + + function addProperties(updatePayload, props, validAttributes) { + return diffProperties(updatePayload, emptyObject$1, props, validAttributes); + } + + function clearProperties(updatePayload, prevProps, validAttributes) { + return diffProperties(updatePayload, prevProps, emptyObject$1, validAttributes); + } + + function create(props, validAttributes) { + return addProperties(null, props, validAttributes); + } + + function diff(prevProps, nextProps, validAttributes) { + return diffProperties(null, prevProps, nextProps, validAttributes); + } + + var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function"; + var now$1 = hasNativePerformanceNow ? function () { + return performance.now(); + } : function () { + return Date.now(); + }; + var scheduledCallback = null; + var frameDeadline = 0; + var frameDeadlineObject = { + timeRemaining: function timeRemaining() { + return frameDeadline - now$1(); + }, + didTimeout: false + }; + + function setTimeoutCallback() { + frameDeadline = now$1() + 5; + var callback = scheduledCallback; + scheduledCallback = null; + + if (callback !== null) { + callback(frameDeadlineObject); + } + } + + function scheduleDeferredCallback$1(callback, options) { + scheduledCallback = callback; + var timeoutId = setTimeout(setTimeoutCallback, 1); + return timeoutId; + } + + function cancelDeferredCallback$1(callbackID) { + scheduledCallback = null; + clearTimeout(callbackID); + } + + var fiberHostComponent = null; + var restoreTarget = null; + var restoreQueue = null; + + function restoreStateOfTarget(target) { + var internalInstance = getInstanceFromNode(target); + + if (!internalInstance) { + return; + } + + invariant(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === "function", "Fiber needs to be injected to handle a fiber target for controlled " + "events. This error is likely caused by a bug in React. Please file an issue."); + var props = getFiberCurrentPropsFromNode(internalInstance.stateNode); + fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props); + } + + function needsStateRestore() { + return restoreTarget !== null || restoreQueue !== null; + } + + function restoreStateIfNeeded() { + if (!restoreTarget) { + return; + } + + var target = restoreTarget; + var queuedTargets = restoreQueue; + restoreTarget = null; + restoreQueue = null; + restoreStateOfTarget(target); + + if (queuedTargets) { + for (var i = 0; i < queuedTargets.length; i++) { + restoreStateOfTarget(queuedTargets[i]); + } + } + } + + var _batchedUpdates = function _batchedUpdates(fn, bookkeeping) { + return fn(bookkeeping); + }; + + var _interactiveUpdates = function _interactiveUpdates(fn, a, b) { + return fn(a, b); + }; + + var _flushInteractiveUpdates = function _flushInteractiveUpdates() {}; + + var isBatching = false; + + function batchedUpdates(fn, bookkeeping) { + if (isBatching) { + return fn(bookkeeping); + } + + isBatching = true; + + try { + return _batchedUpdates(fn, bookkeeping); + } finally { + isBatching = false; + var controlledComponentsHavePendingUpdates = needsStateRestore(); + + if (controlledComponentsHavePendingUpdates) { + _flushInteractiveUpdates(); + + restoreStateIfNeeded(); + } + } + } + + var injection$2 = { + injectRenderer: function injectRenderer(renderer) { + _batchedUpdates = renderer.batchedUpdates; + _interactiveUpdates = renderer.interactiveUpdates; + _flushInteractiveUpdates = renderer.flushInteractiveUpdates; + } + }; + + function dispatchEvent(target, topLevelType, nativeEvent) { + var targetFiber = target; + batchedUpdates(function () { + runExtractedEventsInBatch(topLevelType, targetFiber, nativeEvent, nativeEvent.target); + }); + } + + function shim() { + invariant(false, "The current renderer does not support mutation. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } + + var supportsMutation = false; + var appendChild$1 = shim; + var appendChildToContainer = shim; + var commitTextUpdate = shim; + var commitMount = shim; + var commitUpdate = shim; + var insertBefore = shim; + var insertInContainerBefore = shim; + var removeChild = shim; + var removeChildFromContainer = shim; + var resetTextContent = shim; + + function shim$1() { + invariant(false, "The current renderer does not support hyration. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } + + var supportsHydration = false; + var canHydrateInstance = shim$1; + var canHydrateTextInstance = shim$1; + var getNextHydratableSibling = shim$1; + var getFirstHydratableChild = shim$1; + var hydrateInstance = shim$1; + var hydrateTextInstance = shim$1; + var didNotMatchHydratedContainerTextInstance = shim$1; + var didNotMatchHydratedTextInstance = shim$1; + var didNotHydrateContainerInstance = shim$1; + var didNotHydrateInstance = shim$1; + var didNotFindHydratableContainerInstance = shim$1; + var didNotFindHydratableContainerTextInstance = shim$1; + var didNotFindHydratableInstance = shim$1; + var didNotFindHydratableTextInstance = shim$1; + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + + var nextReactTag = 2; + + if (FabricUIManager.registerEventHandler) { + FabricUIManager.registerEventHandler(dispatchEvent); + } + + var ReactFabricHostComponent = function () { + function ReactFabricHostComponent(tag, viewConfig, props) { + _classCallCheck(this, ReactFabricHostComponent); + + this._nativeTag = tag; + this.viewConfig = viewConfig; + this.currentProps = props; + } + + ReactFabricHostComponent.prototype.blur = function blur() { + TextInputState.blurTextInput(this._nativeTag); + }; + + ReactFabricHostComponent.prototype.focus = function focus() { + TextInputState.focusTextInput(this._nativeTag); + }; + + ReactFabricHostComponent.prototype.measure = function measure(callback) { + UIManager.measure(this._nativeTag, mountSafeCallback(this, callback)); + }; + + ReactFabricHostComponent.prototype.measureInWindow = function measureInWindow(callback) { + UIManager.measureInWindow(this._nativeTag, mountSafeCallback(this, callback)); + }; + + ReactFabricHostComponent.prototype.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(this._nativeTag, relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }; + + ReactFabricHostComponent.prototype.setNativeProps = function setNativeProps(nativeProps) { + { + warnForStyleProps(nativeProps, this.viewConfig.validAttributes); + } + var updatePayload = create(nativeProps, this.viewConfig.validAttributes); + + if (updatePayload != null) { + UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, updatePayload); + } + }; + + return ReactFabricHostComponent; + }(); + + function appendInitialChild(parentInstance, child) { + FabricUIManager.appendChild(parentInstance.node, child.node); + } + + function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { + var tag = nextReactTag; + nextReactTag += 2; + var viewConfig = ReactNativeViewConfigRegistry.get(type); + { + for (var key in viewConfig.validAttributes) { + if (props.hasOwnProperty(key)) { + deepFreezeAndThrowOnMutationInDev(props[key]); + } + } + } + invariant(type !== "RCTView" || !hostContext.isInAParentText, "Nesting of within is not currently supported."); + var updatePayload = create(props, viewConfig.validAttributes); + var node = FabricUIManager.createNode(tag, viewConfig.uiViewClassName, rootContainerInstance, updatePayload, internalInstanceHandle); + var component = new ReactFabricHostComponent(tag, viewConfig, props); + return { + node: node, + canonical: component + }; + } + + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + invariant(hostContext.isInAParentText, "Text strings must be rendered within a component."); + var tag = nextReactTag; + nextReactTag += 2; + var node = FabricUIManager.createNode(tag, "RCTRawText", rootContainerInstance, { + text: text + }, internalInstanceHandle); + return { + node: node + }; + } + + function finalizeInitialChildren(parentInstance, type, props, rootContainerInstance, hostContext) { + return false; + } + + function getRootHostContext(rootContainerInstance) { + return { + isInAParentText: false + }; + } + + function getChildHostContext(parentHostContext, type, rootContainerInstance) { + var prevIsInAParentText = parentHostContext.isInAParentText; + var isInAParentText = type === "AndroidTextInput" || type === "RCTMultilineTextInputView" || type === "RCTSinglelineTextInputView" || type === "RCTText" || type === "RCTVirtualText"; + + if (prevIsInAParentText !== isInAParentText) { + return { + isInAParentText: isInAParentText + }; + } else { + return parentHostContext; + } + } + + function getPublicInstance(instance) { + return instance.canonical; + } + + function prepareForCommit(containerInfo) {} + + function prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, hostContext) { + var viewConfig = instance.canonical.viewConfig; + var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); + instance.canonical.currentProps = newProps; + return updatePayload; + } + + function resetAfterCommit(containerInfo) {} + + function shouldDeprioritizeSubtree(type, props) { + return false; + } + + function shouldSetTextContent(type, props) { + return false; + } + + var isPrimaryRenderer = false; + var now = now$1; + var scheduleDeferredCallback = scheduleDeferredCallback$1; + var cancelDeferredCallback = cancelDeferredCallback$1; + var supportsPersistence = true; + + function cloneInstance(instance, updatePayload, type, oldProps, newProps, internalInstanceHandle, keepChildren, recyclableInstance) { + var node = instance.node; + var clone = void 0; + + if (keepChildren) { + if (updatePayload !== null) { + clone = FabricUIManager.cloneNodeWithNewProps(node, updatePayload, internalInstanceHandle); + } else { + clone = FabricUIManager.cloneNode(node, internalInstanceHandle); + } + } else { + if (updatePayload !== null) { + clone = FabricUIManager.cloneNodeWithNewChildrenAndProps(node, updatePayload, internalInstanceHandle); + } else { + clone = FabricUIManager.cloneNodeWithNewChildren(node, internalInstanceHandle); + } + } + + return { + node: clone, + canonical: instance.canonical + }; + } + + function createContainerChildSet(container) { + return FabricUIManager.createChildSet(container); + } + + function appendChildToContainerChildSet(childSet, child) { + FabricUIManager.appendChildToSet(childSet, child.node); + } + + function finalizeContainerChildren(container, newChildren) { + FabricUIManager.completeRoot(container, newChildren); + } + + var describeComponentFrame = function describeComponentFrame(name, source, ownerName) { + return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); + }; + + function describeFiber(fiber) { + switch (fiber.tag) { + case IndeterminateComponent: + case FunctionalComponent: + case ClassComponent: + case HostComponent: + var owner = fiber._debugOwner; + var source = fiber._debugSource; + var name = getComponentName(fiber); + var ownerName = null; + + if (owner) { + ownerName = getComponentName(owner); + } + + return describeComponentFrame(name, source, ownerName); + + default: + return ""; + } + } + + function getStackAddendumByWorkInProgressFiber(workInProgress) { + var info = ""; + var node = workInProgress; + + do { + info += describeFiber(node); + node = node.return; + } while (node); + + return info; + } + + function getCurrentFiberOwnerName() { + { + var fiber = ReactDebugCurrentFiber.current; + + if (fiber === null) { + return null; + } + + var owner = fiber._debugOwner; + + if (owner !== null && typeof owner !== "undefined") { + return getComponentName(owner); + } + } + return null; + } + + function getCurrentFiberStackAddendum() { + { + var fiber = ReactDebugCurrentFiber.current; + + if (fiber === null) { + return null; + } + + return getStackAddendumByWorkInProgressFiber(fiber); + } + return null; + } + + function resetCurrentFiber() { + ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFiber.current = null; + ReactDebugCurrentFiber.phase = null; + } + + function setCurrentFiber(fiber) { + ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackAddendum; + ReactDebugCurrentFiber.current = fiber; + ReactDebugCurrentFiber.phase = null; + } + + function setCurrentPhase(phase) { + ReactDebugCurrentFiber.phase = phase; + } + + var ReactDebugCurrentFiber = { + current: null, + phase: null, + resetCurrentFiber: resetCurrentFiber, + setCurrentFiber: setCurrentFiber, + setCurrentPhase: setCurrentPhase, + getCurrentFiberOwnerName: getCurrentFiberOwnerName, + getCurrentFiberStackAddendum: getCurrentFiberStackAddendum + }; + var debugRenderPhaseSideEffects = false; + var debugRenderPhaseSideEffectsForStrictMode = false; + var enableUserTimingAPI = true; + var enableGetDerivedStateFromCatch = false; + var enableSuspense = false; + var warnAboutDeprecatedLifecycles = false; + var warnAboutLegacyContextAPI = false; + var replayFailedUnitOfWorkWithInvokeGuardedCallback = true; + var enableProfilerTimer = true; + var reactEmoji = "\u269B"; + var warningEmoji = "\u26D4"; + var supportsUserTiming = typeof performance !== "undefined" && typeof performance.mark === "function" && typeof performance.clearMarks === "function" && typeof performance.measure === "function" && typeof performance.clearMeasures === "function"; + var currentFiber = null; + var currentPhase = null; + var currentPhaseFiber = null; + var isCommitting = false; + var hasScheduledUpdateInCurrentCommit = false; + var hasScheduledUpdateInCurrentPhase = false; + var commitCountInCurrentWorkLoop = 0; + var effectCountInCurrentCommit = 0; + var isWaitingForCallback = false; + var labelsInCurrentCommit = new Set(); + + var formatMarkName = function formatMarkName(markName) { + return reactEmoji + " " + markName; + }; + + var formatLabel = function formatLabel(label, warning$$1) { + var prefix = warning$$1 ? warningEmoji + " " : reactEmoji + " "; + var suffix = warning$$1 ? " Warning: " + warning$$1 : ""; + return "" + prefix + label + suffix; + }; + + var beginMark = function beginMark(markName) { + performance.mark(formatMarkName(markName)); + }; + + var clearMark = function clearMark(markName) { + performance.clearMarks(formatMarkName(markName)); + }; + + var endMark = function endMark(label, markName, warning$$1) { + var formattedMarkName = formatMarkName(markName); + var formattedLabel = formatLabel(label, warning$$1); + + try { + performance.measure(formattedLabel, formattedMarkName); + } catch (err) {} + + performance.clearMarks(formattedMarkName); + performance.clearMeasures(formattedLabel); + }; + + var getFiberMarkName = function getFiberMarkName(label, debugID) { + return label + " (#" + debugID + ")"; + }; + + var getFiberLabel = function getFiberLabel(componentName, isMounted, phase) { + if (phase === null) { + return componentName + " [" + (isMounted ? "update" : "mount") + "]"; + } else { + return componentName + "." + phase; + } + }; + + var beginFiberMark = function beginFiberMark(fiber, phase) { + var componentName = getComponentName(fiber) || "Unknown"; + var debugID = fiber._debugID; + var isMounted = fiber.alternate !== null; + var label = getFiberLabel(componentName, isMounted, phase); + + if (isCommitting && labelsInCurrentCommit.has(label)) { + return false; + } + + labelsInCurrentCommit.add(label); + var markName = getFiberMarkName(label, debugID); + beginMark(markName); + return true; + }; + + var clearFiberMark = function clearFiberMark(fiber, phase) { + var componentName = getComponentName(fiber) || "Unknown"; + var debugID = fiber._debugID; + var isMounted = fiber.alternate !== null; + var label = getFiberLabel(componentName, isMounted, phase); + var markName = getFiberMarkName(label, debugID); + clearMark(markName); + }; + + var endFiberMark = function endFiberMark(fiber, phase, warning$$1) { + var componentName = getComponentName(fiber) || "Unknown"; + var debugID = fiber._debugID; + var isMounted = fiber.alternate !== null; + var label = getFiberLabel(componentName, isMounted, phase); + var markName = getFiberMarkName(label, debugID); + endMark(label, markName, warning$$1); + }; + + var shouldIgnoreFiber = function shouldIgnoreFiber(fiber) { + switch (fiber.tag) { + case HostRoot: + case HostComponent: + case HostText: + case HostPortal: + case Fragment: + case ContextProvider: + case ContextConsumer: + case Mode: + return true; + + default: + return false; + } + }; + + var clearPendingPhaseMeasurement = function clearPendingPhaseMeasurement() { + if (currentPhase !== null && currentPhaseFiber !== null) { + clearFiberMark(currentPhaseFiber, currentPhase); + } + + currentPhaseFiber = null; + currentPhase = null; + hasScheduledUpdateInCurrentPhase = false; + }; + + var pauseTimers = function pauseTimers() { + var fiber = currentFiber; + + while (fiber) { + if (fiber._debugIsCurrentlyTiming) { + endFiberMark(fiber, null, null); + } + + fiber = fiber.return; + } + }; + + var resumeTimersRecursively = function resumeTimersRecursively(fiber) { + if (fiber.return !== null) { + resumeTimersRecursively(fiber.return); + } + + if (fiber._debugIsCurrentlyTiming) { + beginFiberMark(fiber, null); + } + }; + + var resumeTimers = function resumeTimers() { + if (currentFiber !== null) { + resumeTimersRecursively(currentFiber); + } + }; + + function recordEffect() { + if (enableUserTimingAPI) { + effectCountInCurrentCommit++; + } + } + + function recordScheduleUpdate() { + if (enableUserTimingAPI) { + if (isCommitting) { + hasScheduledUpdateInCurrentCommit = true; + } + + if (currentPhase !== null && currentPhase !== "componentWillMount" && currentPhase !== "componentWillReceiveProps") { + hasScheduledUpdateInCurrentPhase = true; + } + } + } + + function startRequestCallbackTimer() { + if (enableUserTimingAPI) { + if (supportsUserTiming && !isWaitingForCallback) { + isWaitingForCallback = true; + beginMark("(Waiting for async callback...)"); + } + } + } + + function stopRequestCallbackTimer(didExpire, expirationTime) { + if (enableUserTimingAPI) { + if (supportsUserTiming) { + isWaitingForCallback = false; + var warning$$1 = didExpire ? "React was blocked by main thread" : null; + endMark("(Waiting for async callback... will force flush in " + expirationTime + " ms)", "(Waiting for async callback...)", warning$$1); + } + } + } + + function startWorkTimer(fiber) { + if (enableUserTimingAPI) { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } + + currentFiber = fiber; + + if (!beginFiberMark(fiber, null)) { + return; + } + + fiber._debugIsCurrentlyTiming = true; + } + } + + function cancelWorkTimer(fiber) { + if (enableUserTimingAPI) { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } + + fiber._debugIsCurrentlyTiming = false; + clearFiberMark(fiber, null); + } + } + + function stopWorkTimer(fiber) { + if (enableUserTimingAPI) { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } + + currentFiber = fiber.return; + + if (!fiber._debugIsCurrentlyTiming) { + return; + } + + fiber._debugIsCurrentlyTiming = false; + endFiberMark(fiber, null, null); + } + } + + function stopFailedWorkTimer(fiber) { + if (enableUserTimingAPI) { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } + + currentFiber = fiber.return; + + if (!fiber._debugIsCurrentlyTiming) { + return; + } + + fiber._debugIsCurrentlyTiming = false; + var warning$$1 = "An error was thrown inside this error boundary"; + endFiberMark(fiber, null, warning$$1); + } + } + + function startPhaseTimer(fiber, phase) { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + clearPendingPhaseMeasurement(); + + if (!beginFiberMark(fiber, phase)) { + return; + } + + currentPhaseFiber = fiber; + currentPhase = phase; + } + } + + function stopPhaseTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + if (currentPhase !== null && currentPhaseFiber !== null) { + var warning$$1 = hasScheduledUpdateInCurrentPhase ? "Scheduled a cascading update" : null; + endFiberMark(currentPhaseFiber, currentPhase, warning$$1); + } + + currentPhase = null; + currentPhaseFiber = null; + } + } + + function startWorkLoopTimer(nextUnitOfWork) { + if (enableUserTimingAPI) { + currentFiber = nextUnitOfWork; + + if (!supportsUserTiming) { + return; + } + + commitCountInCurrentWorkLoop = 0; + beginMark("(React Tree Reconciliation)"); + resumeTimers(); + } + } + + function stopWorkLoopTimer(interruptedBy, didCompleteRoot) { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var warning$$1 = null; + + if (interruptedBy !== null) { + if (interruptedBy.tag === HostRoot) { + warning$$1 = "A top-level update interrupted the previous render"; + } else { + var componentName = getComponentName(interruptedBy) || "Unknown"; + warning$$1 = "An update to " + componentName + " interrupted the previous render"; + } + } else if (commitCountInCurrentWorkLoop > 1) { + warning$$1 = "There were cascading updates"; + } + + commitCountInCurrentWorkLoop = 0; + var label = didCompleteRoot ? "(React Tree Reconciliation: Completed Root)" : "(React Tree Reconciliation: Yielded)"; + pauseTimers(); + endMark(label, "(React Tree Reconciliation)", warning$$1); + } + } + + function startCommitTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + isCommitting = true; + hasScheduledUpdateInCurrentCommit = false; + labelsInCurrentCommit.clear(); + beginMark("(Committing Changes)"); + } + } + + function stopCommitTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var warning$$1 = null; + + if (hasScheduledUpdateInCurrentCommit) { + warning$$1 = "Lifecycle hook scheduled a cascading update"; + } else if (commitCountInCurrentWorkLoop > 0) { + warning$$1 = "Caused by a cascading update in earlier commit"; + } + + hasScheduledUpdateInCurrentCommit = false; + commitCountInCurrentWorkLoop++; + isCommitting = false; + labelsInCurrentCommit.clear(); + endMark("(Committing Changes)", "(Committing Changes)", warning$$1); + } + } + + function startCommitSnapshotEffectsTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + effectCountInCurrentCommit = 0; + beginMark("(Committing Snapshot Effects)"); + } + } + + function stopCommitSnapshotEffectsTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var count = effectCountInCurrentCommit; + effectCountInCurrentCommit = 0; + endMark("(Committing Snapshot Effects: " + count + " Total)", "(Committing Snapshot Effects)", null); + } + } + + function startCommitHostEffectsTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + effectCountInCurrentCommit = 0; + beginMark("(Committing Host Effects)"); + } + } + + function stopCommitHostEffectsTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var count = effectCountInCurrentCommit; + effectCountInCurrentCommit = 0; + endMark("(Committing Host Effects: " + count + " Total)", "(Committing Host Effects)", null); + } + } + + function startCommitLifeCyclesTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + effectCountInCurrentCommit = 0; + beginMark("(Calling Lifecycle Methods)"); + } + } + + function stopCommitLifeCyclesTimer() { + if (enableUserTimingAPI) { + if (!supportsUserTiming) { + return; + } + + var count = effectCountInCurrentCommit; + effectCountInCurrentCommit = 0; + endMark("(Calling Lifecycle Methods: " + count + " Total)", "(Calling Lifecycle Methods)", null); + } + } + + var valueStack = []; + var fiberStack = void 0; + { + fiberStack = []; + } + var index = -1; + + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + + function pop(cursor, fiber) { + if (index < 0) { + { + warning(false, "Unexpected pop."); + } + return; + } + + { + if (fiber !== fiberStack[index]) { + warning(false, "Unexpected Fiber popped."); + } + } + cursor.current = valueStack[index]; + valueStack[index] = null; + { + fiberStack[index] = null; + } + index--; + } + + function push(cursor, value, fiber) { + index++; + valueStack[index] = cursor.current; + { + fiberStack[index] = fiber; + } + cursor.current = value; + } + + function checkThatStackIsEmpty() { + { + if (index !== -1) { + warning(false, "Expected an empty stack. Something was not reset properly."); + } + } + } + + function resetStackAfterFatalErrorInDev() { + { + index = -1; + valueStack.length = 0; + fiberStack.length = 0; + } + } + + var warnedAboutMissingGetChildContext = void 0; + { + warnedAboutMissingGetChildContext = {}; + } + var contextStackCursor = createCursor(emptyObject); + var didPerformWorkStackCursor = createCursor(false); + var previousContext = emptyObject; + + function getUnmaskedContext(workInProgress) { + var hasOwnContext = isContextProvider(workInProgress); + + if (hasOwnContext) { + return previousContext; + } + + return contextStackCursor.current; + } + + function cacheContext(workInProgress, unmaskedContext, maskedContext) { + var instance = workInProgress.stateNode; + instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; + instance.__reactInternalMemoizedMaskedChildContext = maskedContext; + } + + function getMaskedContext(workInProgress, unmaskedContext) { + var type = workInProgress.type; + var contextTypes = type.contextTypes; + + if (!contextTypes) { + return emptyObject; + } + + var instance = workInProgress.stateNode; + + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { + return instance.__reactInternalMemoizedMaskedChildContext; + } + + var context = {}; + + for (var key in contextTypes) { + context[key] = unmaskedContext[key]; + } + + { + var name = getComponentName(workInProgress) || "Unknown"; + checkPropTypes(contextTypes, context, "context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum); + } + + if (instance) { + cacheContext(workInProgress, unmaskedContext, context); + } + + return context; + } + + function hasContextChanged() { + return didPerformWorkStackCursor.current; + } + + function isContextConsumer(fiber) { + return fiber.tag === ClassComponent && fiber.type.contextTypes != null; + } + + function isContextProvider(fiber) { + return fiber.tag === ClassComponent && fiber.type.childContextTypes != null; + } + + function popContextProvider(fiber) { + if (!isContextProvider(fiber)) { + return; + } + + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + + function popTopLevelContextObject(fiber) { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + + function pushTopLevelContextObject(fiber, context, didChange) { + invariant(contextStackCursor.current === emptyObject, "Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue."); + push(contextStackCursor, context, fiber); + push(didPerformWorkStackCursor, didChange, fiber); + } + + function processChildContext(fiber, parentContext) { + var instance = fiber.stateNode; + var childContextTypes = fiber.type.childContextTypes; + + if (typeof instance.getChildContext !== "function") { + { + var componentName = getComponentName(fiber) || "Unknown"; + + if (!warnedAboutMissingGetChildContext[componentName]) { + warnedAboutMissingGetChildContext[componentName] = true; + warning(false, "%s.childContextTypes is specified but there is no getChildContext() method " + "on the instance. You can either define getChildContext() on %s or remove " + "childContextTypes from it.", componentName, componentName); + } + } + return parentContext; + } + + var childContext = void 0; + { + ReactDebugCurrentFiber.setCurrentPhase("getChildContext"); + } + startPhaseTimer(fiber, "getChildContext"); + childContext = instance.getChildContext(); + stopPhaseTimer(); + { + ReactDebugCurrentFiber.setCurrentPhase(null); + } + + for (var contextKey in childContext) { + invariant(contextKey in childContextTypes, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); + } + + { + var name = getComponentName(fiber) || "Unknown"; + checkPropTypes(childContextTypes, childContext, "child context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum); + } + return _extends({}, parentContext, childContext); + } + + function pushContextProvider(workInProgress) { + if (!isContextProvider(workInProgress)) { + return false; + } + + var instance = workInProgress.stateNode; + var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; + previousContext = contextStackCursor.current; + push(contextStackCursor, memoizedMergedChildContext, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); + return true; + } + + function invalidateContextProvider(workInProgress, didChange) { + var instance = workInProgress.stateNode; + invariant(instance, "Expected to have an instance by this point. " + "This error is likely caused by a bug in React. Please file an issue."); + + if (didChange) { + var mergedContext = processChildContext(workInProgress, previousContext); + instance.__reactInternalMemoizedMergedChildContext = mergedContext; + pop(didPerformWorkStackCursor, workInProgress); + pop(contextStackCursor, workInProgress); + push(contextStackCursor, mergedContext, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } else { + pop(didPerformWorkStackCursor, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } + } + + function findCurrentUnmaskedContext(fiber) { + invariant(isFiberMounted(fiber) && fiber.tag === ClassComponent, "Expected subtree parent to be a mounted class component. " + "This error is likely caused by a bug in React. Please file an issue."); + var node = fiber; + + while (node.tag !== HostRoot) { + if (isContextProvider(node)) { + return node.stateNode.__reactInternalMemoizedMergedChildContext; + } + + var parent = node.return; + invariant(parent, "Found unexpected detached subtree parent. " + "This error is likely caused by a bug in React. Please file an issue."); + node = parent; + } + + return node.stateNode.context; + } + + var MAX_SIGNED_31_BIT_INT = 1073741823; + var NoWork = 0; + var Sync = 1; + var Never = MAX_SIGNED_31_BIT_INT; + var UNIT_SIZE = 10; + var MAGIC_NUMBER_OFFSET = 2; + + function msToExpirationTime(ms) { + return (ms / UNIT_SIZE | 0) + MAGIC_NUMBER_OFFSET; + } + + function expirationTimeToMs(expirationTime) { + return (expirationTime - MAGIC_NUMBER_OFFSET) * UNIT_SIZE; + } + + function ceiling(num, precision) { + return ((num / precision | 0) + 1) * precision; + } + + function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) { + return MAGIC_NUMBER_OFFSET + ceiling(currentTime - MAGIC_NUMBER_OFFSET + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE); + } + + var NoContext = 0; + var AsyncMode = 1; + var StrictMode = 2; + var ProfileMode = 4; + var hasBadMapPolyfill = void 0; + { + hasBadMapPolyfill = false; + + try { + var nonExtensibleObject = Object.preventExtensions({}); + var testMap = new Map([[nonExtensibleObject, null]]); + var testSet = new Set([nonExtensibleObject]); + testMap.set(0, 0); + testSet.add(0); + } catch (e) { + hasBadMapPolyfill = true; + } + } + var debugCounter = void 0; + { + debugCounter = 1; + } + + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.type = null; + this.stateNode = null; + this.return = null; + this.child = null; + this.sibling = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.memoizedProps = null; + this.updateQueue = null; + this.memoizedState = null; + this.mode = mode; + this.effectTag = NoEffect; + this.nextEffect = null; + this.firstEffect = null; + this.lastEffect = null; + this.expirationTime = NoWork; + this.alternate = null; + + if (enableProfilerTimer) { + this.actualDuration = 0; + this.actualStartTime = 0; + this.selfBaseTime = 0; + this.treeBaseTime = 0; + } + + { + this._debugID = debugCounter++; + this._debugSource = null; + this._debugOwner = null; + this._debugIsCurrentlyTiming = false; + + if (!hasBadMapPolyfill && typeof Object.preventExtensions === "function") { + Object.preventExtensions(this); + } + } + } + + var createFiber = function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + }; + + function shouldConstruct(Component) { + return !!(Component.prototype && Component.prototype.isReactComponent); + } + + function createWorkInProgress(current, pendingProps, expirationTime) { + var workInProgress = current.alternate; + + if (workInProgress === null) { + workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); + workInProgress.type = current.type; + workInProgress.stateNode = current.stateNode; + { + workInProgress._debugID = current._debugID; + workInProgress._debugSource = current._debugSource; + workInProgress._debugOwner = current._debugOwner; + } + workInProgress.alternate = current; + current.alternate = workInProgress; + } else { + workInProgress.pendingProps = pendingProps; + workInProgress.effectTag = NoEffect; + workInProgress.nextEffect = null; + workInProgress.firstEffect = null; + workInProgress.lastEffect = null; + + if (enableProfilerTimer) { + workInProgress.actualDuration = 0; + workInProgress.actualStartTime = 0; + } + } + + workInProgress.expirationTime = expirationTime; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + + if (enableProfilerTimer) { + workInProgress.selfBaseTime = current.selfBaseTime; + workInProgress.treeBaseTime = current.treeBaseTime; + } + + return workInProgress; + } + + function createHostRootFiber(isAsync) { + var mode = isAsync ? AsyncMode | StrictMode : NoContext; + return createFiber(HostRoot, null, null, mode); + } + + function createFiberFromElement(element, mode, expirationTime) { + var owner = null; + { + owner = element._owner; + } + var fiber = void 0; + var type = element.type; + var key = element.key; + var pendingProps = element.props; + var fiberTag = void 0; + + if (typeof type === "function") { + fiberTag = shouldConstruct(type) ? ClassComponent : IndeterminateComponent; + } else if (typeof type === "string") { + fiberTag = HostComponent; + } else { + switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, expirationTime, key); + + case REACT_ASYNC_MODE_TYPE: + fiberTag = Mode; + mode |= AsyncMode | StrictMode; + break; + + case REACT_STRICT_MODE_TYPE: + fiberTag = Mode; + mode |= StrictMode; + break; + + case REACT_PROFILER_TYPE: + return createFiberFromProfiler(pendingProps, mode, expirationTime, key); + + case REACT_TIMEOUT_TYPE: + fiberTag = TimeoutComponent; + mode |= StrictMode; + break; + + default: + fiberTag = getFiberTagFromObjectType(type, owner); + break; + } + } + + fiber = createFiber(fiberTag, pendingProps, key, mode); + fiber.type = type; + fiber.expirationTime = expirationTime; + { + fiber._debugSource = element._source; + fiber._debugOwner = element._owner; + } + return fiber; + } + + function getFiberTagFromObjectType(type, owner) { + var $$typeof = typeof type === "object" && type !== null ? type.$$typeof : null; + + switch ($$typeof) { + case REACT_PROVIDER_TYPE: + return ContextProvider; + + case REACT_CONTEXT_TYPE: + return ContextConsumer; + + case REACT_FORWARD_REF_TYPE: + return ForwardRef; + + default: + { + var info = ""; + { + if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) { + info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and " + "named imports."; + } + + var ownerName = owner ? getComponentName(owner) : null; + + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + } + invariant(false, "Element type is invalid: expected a string (for built-in " + "components) or a class/function (for composite components) " + "but got: %s.%s", type == null ? type : typeof type, info); + } + } + } + + function createFiberFromFragment(elements, mode, expirationTime, key) { + var fiber = createFiber(Fragment, elements, key, mode); + fiber.expirationTime = expirationTime; + return fiber; + } + + function createFiberFromProfiler(pendingProps, mode, expirationTime, key) { + { + if (typeof pendingProps.id !== "string" || typeof pendingProps.onRender !== "function") { + invariant(false, 'Profiler must specify an "id" string and "onRender" function as props'); + } + } + var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); + fiber.type = REACT_PROFILER_TYPE; + fiber.expirationTime = expirationTime; + return fiber; + } + + function createFiberFromText(content, mode, expirationTime) { + var fiber = createFiber(HostText, content, null, mode); + fiber.expirationTime = expirationTime; + return fiber; + } + + function createFiberFromHostInstanceForDeletion() { + var fiber = createFiber(HostComponent, null, null, NoContext); + fiber.type = "DELETED"; + return fiber; + } + + function createFiberFromPortal(portal, mode, expirationTime) { + var pendingProps = portal.children !== null ? portal.children : []; + var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); + fiber.expirationTime = expirationTime; + fiber.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return fiber; + } + + function assignFiberPropertiesInDEV(target, source) { + if (target === null) { + target = createFiber(IndeterminateComponent, null, null, NoContext); + } + + target.tag = source.tag; + target.key = source.key; + target.type = source.type; + target.stateNode = source.stateNode; + target.return = source.return; + target.child = source.child; + target.sibling = source.sibling; + target.index = source.index; + target.ref = source.ref; + target.pendingProps = source.pendingProps; + target.memoizedProps = source.memoizedProps; + target.updateQueue = source.updateQueue; + target.memoizedState = source.memoizedState; + target.mode = source.mode; + target.effectTag = source.effectTag; + target.nextEffect = source.nextEffect; + target.firstEffect = source.firstEffect; + target.lastEffect = source.lastEffect; + target.expirationTime = source.expirationTime; + target.alternate = source.alternate; + + if (enableProfilerTimer) { + target.actualDuration = source.actualDuration; + target.actualStartTime = source.actualStartTime; + target.selfBaseTime = source.selfBaseTime; + target.treeBaseTime = source.treeBaseTime; + } + + target._debugID = source._debugID; + target._debugSource = source._debugSource; + target._debugOwner = source._debugOwner; + target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming; + return target; + } + + function createFiberRoot(containerInfo, isAsync, hydrate) { + var uninitializedFiber = createHostRootFiber(isAsync); + var root = { + current: uninitializedFiber, + containerInfo: containerInfo, + pendingChildren: null, + earliestPendingTime: NoWork, + latestPendingTime: NoWork, + earliestSuspendedTime: NoWork, + latestSuspendedTime: NoWork, + latestPingedTime: NoWork, + didError: false, + pendingCommitExpirationTime: NoWork, + finishedWork: null, + context: null, + pendingContext: null, + hydrate: hydrate, + nextExpirationTimeToWorkOn: NoWork, + expirationTime: NoWork, + firstBatch: null, + nextScheduledRoot: null + }; + uninitializedFiber.stateNode = root; + return root; + } + + var onCommitFiberRoot = null; + var onCommitFiberUnmount = null; + var hasLoggedError = false; + + function catchErrors(fn) { + return function (arg) { + try { + return fn(arg); + } catch (err) { + if (true && !hasLoggedError) { + hasLoggedError = true; + warning(false, "React DevTools encountered an error: %s", err); + } + } + }; + } + + function injectInternals(internals) { + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { + return false; + } + + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + + if (hook.isDisabled) { + return true; + } + + if (!hook.supportsFiber) { + { + warning(false, "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + "https://fb.me/react-devtools"); + } + return true; + } + + try { + var rendererID = hook.inject(internals); + onCommitFiberRoot = catchErrors(function (root) { + return hook.onCommitFiberRoot(rendererID, root); + }); + onCommitFiberUnmount = catchErrors(function (fiber) { + return hook.onCommitFiberUnmount(rendererID, fiber); + }); + } catch (err) { + { + warning(false, "React DevTools encountered an error: %s.", err); + } + } + + return true; + } + + function onCommitRoot(root) { + if (typeof onCommitFiberRoot === "function") { + onCommitFiberRoot(root); + } + } + + function onCommitUnmount(fiber) { + if (typeof onCommitFiberUnmount === "function") { + onCommitFiberUnmount(fiber); + } + } + + var lowPriorityWarning = function lowPriorityWarning() {}; + + { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = "Warning: " + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + + if (typeof console !== "undefined") { + console.warn(message); + } + + try { + throw new Error(message); + } catch (x) {} + }; + + lowPriorityWarning = function lowPriorityWarning(condition, format) { + if (format === undefined) { + throw new Error("`warning(condition, format, ...args)` requires a warning " + "message argument"); + } + + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(undefined, [format].concat(args)); + } + }; + } + var lowPriorityWarning$1 = lowPriorityWarning; + var ReactStrictModeWarnings = { + discardPendingWarnings: function discardPendingWarnings() {}, + flushPendingDeprecationWarnings: function flushPendingDeprecationWarnings() {}, + flushPendingUnsafeLifecycleWarnings: function flushPendingUnsafeLifecycleWarnings() {}, + recordDeprecationWarnings: function recordDeprecationWarnings(fiber, instance) {}, + recordUnsafeLifecycleWarnings: function recordUnsafeLifecycleWarnings(fiber, instance) {}, + recordLegacyContextWarning: function recordLegacyContextWarning(fiber, instance) {}, + flushLegacyContextWarning: function flushLegacyContextWarning() {} + }; + { + var LIFECYCLE_SUGGESTIONS = { + UNSAFE_componentWillMount: "componentDidMount", + UNSAFE_componentWillReceiveProps: "static getDerivedStateFromProps", + UNSAFE_componentWillUpdate: "componentDidUpdate" + }; + var pendingComponentWillMountWarnings = []; + var pendingComponentWillReceivePropsWarnings = []; + var pendingComponentWillUpdateWarnings = []; + var pendingUnsafeLifecycleWarnings = new Map(); + var pendingLegacyContextWarning = new Map(); + var didWarnAboutDeprecatedLifecycles = new Set(); + var didWarnAboutUnsafeLifecycles = new Set(); + var didWarnAboutLegacyContext = new Set(); + + var setToSortedString = function setToSortedString(set) { + var array = []; + set.forEach(function (value) { + array.push(value); + }); + return array.sort().join(", "); + }; + + ReactStrictModeWarnings.discardPendingWarnings = function () { + pendingComponentWillMountWarnings = []; + pendingComponentWillReceivePropsWarnings = []; + pendingComponentWillUpdateWarnings = []; + pendingUnsafeLifecycleWarnings = new Map(); + pendingLegacyContextWarning = new Map(); + }; + + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { + pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) { + var lifecyclesWarningMesages = []; + Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) { + var lifecycleWarnings = lifecycleWarningsMap[lifecycle]; + + if (lifecycleWarnings.length > 0) { + var componentNames = new Set(); + lifecycleWarnings.forEach(function (fiber) { + componentNames.add(getComponentName(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + var formatted = lifecycle.replace("UNSAFE_", ""); + var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle]; + var sortedComponentNames = setToSortedString(componentNames); + lifecyclesWarningMesages.push(formatted + ": Please update the following components to use " + (suggestion + " instead: " + sortedComponentNames)); + } + }); + + if (lifecyclesWarningMesages.length > 0) { + var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); + warning(false, "Unsafe lifecycle methods were found within a strict-mode tree:%s" + "\n\n%s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-strict-mode-warnings", strictRootComponentStack, lifecyclesWarningMesages.join("\n\n")); + } + }); + pendingUnsafeLifecycleWarnings = new Map(); + }; + + var findStrictRoot = function findStrictRoot(fiber) { + var maybeStrictRoot = null; + var node = fiber; + + while (node !== null) { + if (node.mode & StrictMode) { + maybeStrictRoot = node; + } + + node = node.return; + } + + return maybeStrictRoot; + }; + + ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () { + if (pendingComponentWillMountWarnings.length > 0) { + var uniqueNames = new Set(); + pendingComponentWillMountWarnings.forEach(function (fiber) { + uniqueNames.add(getComponentName(fiber) || "Component"); + didWarnAboutDeprecatedLifecycles.add(fiber.type); + }); + var sortedNames = setToSortedString(uniqueNames); + lowPriorityWarning$1(false, "componentWillMount is deprecated and will be removed in the next major version. " + "Use componentDidMount instead. As a temporary workaround, " + "you can rename to UNSAFE_componentWillMount." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", sortedNames); + pendingComponentWillMountWarnings = []; + } + + if (pendingComponentWillReceivePropsWarnings.length > 0) { + var _uniqueNames = new Set(); + + pendingComponentWillReceivePropsWarnings.forEach(function (fiber) { + _uniqueNames.add(getComponentName(fiber) || "Component"); + + didWarnAboutDeprecatedLifecycles.add(fiber.type); + }); + + var _sortedNames = setToSortedString(_uniqueNames); + + lowPriorityWarning$1(false, "componentWillReceiveProps is deprecated and will be removed in the next major version. " + "Use static getDerivedStateFromProps instead." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", _sortedNames); + pendingComponentWillReceivePropsWarnings = []; + } + + if (pendingComponentWillUpdateWarnings.length > 0) { + var _uniqueNames2 = new Set(); + + pendingComponentWillUpdateWarnings.forEach(function (fiber) { + _uniqueNames2.add(getComponentName(fiber) || "Component"); + + didWarnAboutDeprecatedLifecycles.add(fiber.type); + }); + + var _sortedNames2 = setToSortedString(_uniqueNames2); + + lowPriorityWarning$1(false, "componentWillUpdate is deprecated and will be removed in the next major version. " + "Use componentDidUpdate instead. As a temporary workaround, " + "you can rename to UNSAFE_componentWillUpdate." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", _sortedNames2); + pendingComponentWillUpdateWarnings = []; + } + }; + + ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) { + if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) { + return; + } + + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { + pendingComponentWillMountWarnings.push(fiber); + } + + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + pendingComponentWillReceivePropsWarnings.push(fiber); + } + + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + pendingComponentWillUpdateWarnings.push(fiber); + } + }; + + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { + var strictRoot = findStrictRoot(fiber); + + if (strictRoot === null) { + warning(false, "Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); + return; + } + + if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { + return; + } + + var warningsForRoot = void 0; + + if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) { + warningsForRoot = { + UNSAFE_componentWillMount: [], + UNSAFE_componentWillReceiveProps: [], + UNSAFE_componentWillUpdate: [] + }; + pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot); + } else { + warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot); + } + + var unsafeLifecycles = []; + + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === "function") { + unsafeLifecycles.push("UNSAFE_componentWillMount"); + } + + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === "function") { + unsafeLifecycles.push("UNSAFE_componentWillReceiveProps"); + } + + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === "function") { + unsafeLifecycles.push("UNSAFE_componentWillUpdate"); + } + + if (unsafeLifecycles.length > 0) { + unsafeLifecycles.forEach(function (lifecycle) { + warningsForRoot[lifecycle].push(fiber); + }); + } + }; + + ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { + var strictRoot = findStrictRoot(fiber); + + if (strictRoot === null) { + warning(false, "Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); + return; + } + + if (didWarnAboutLegacyContext.has(fiber.type)) { + return; + } + + var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); + + if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === "function") { + if (warningsForRoot === undefined) { + warningsForRoot = []; + pendingLegacyContextWarning.set(strictRoot, warningsForRoot); + } + + warningsForRoot.push(fiber); + } + }; + + ReactStrictModeWarnings.flushLegacyContextWarning = function () { + pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) { + var uniqueNames = new Set(); + fiberArray.forEach(function (fiber) { + uniqueNames.add(getComponentName(fiber) || "Component"); + didWarnAboutLegacyContext.add(fiber.type); + }); + var sortedNames = setToSortedString(uniqueNames); + var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); + warning(false, "Legacy context API has been detected within a strict-mode tree: %s" + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-strict-mode-warnings", strictRootComponentStack, sortedNames); + }); + }; + } + var ReactFiberInstrumentation = { + debugTool: null + }; + var ReactFiberInstrumentation_1 = ReactFiberInstrumentation; + + function markPendingPriorityLevel(root, expirationTime) { + root.didError = false; + var earliestPendingTime = root.earliestPendingTime; + + if (earliestPendingTime === NoWork) { + root.earliestPendingTime = root.latestPendingTime = expirationTime; + } else { + if (earliestPendingTime > expirationTime) { + root.earliestPendingTime = expirationTime; + } else { + var latestPendingTime = root.latestPendingTime; + + if (latestPendingTime < expirationTime) { + root.latestPendingTime = expirationTime; + } + } + } + + findNextPendingPriorityLevel(root); + } + + function markCommittedPriorityLevels(root, currentTime, earliestRemainingTime) { + root.didError = false; + + if (earliestRemainingTime === NoWork) { + root.earliestPendingTime = NoWork; + root.latestPendingTime = NoWork; + root.earliestSuspendedTime = NoWork; + root.latestSuspendedTime = NoWork; + root.latestPingedTime = NoWork; + findNextPendingPriorityLevel(root); + return; + } + + var latestPendingTime = root.latestPendingTime; + + if (latestPendingTime !== NoWork) { + if (latestPendingTime < earliestRemainingTime) { + root.earliestPendingTime = root.latestPendingTime = NoWork; + } else { + var earliestPendingTime = root.earliestPendingTime; + + if (earliestPendingTime < earliestRemainingTime) { + root.earliestPendingTime = root.latestPendingTime; + } + } + } + + var earliestSuspendedTime = root.earliestSuspendedTime; + + if (earliestSuspendedTime === NoWork) { + markPendingPriorityLevel(root, earliestRemainingTime); + findNextPendingPriorityLevel(root); + return; + } + + var latestSuspendedTime = root.latestSuspendedTime; + + if (earliestRemainingTime > latestSuspendedTime) { + root.earliestSuspendedTime = NoWork; + root.latestSuspendedTime = NoWork; + root.latestPingedTime = NoWork; + markPendingPriorityLevel(root, earliestRemainingTime); + findNextPendingPriorityLevel(root); + return; + } + + if (earliestRemainingTime < earliestSuspendedTime) { + markPendingPriorityLevel(root, earliestRemainingTime); + findNextPendingPriorityLevel(root); + return; + } + + findNextPendingPriorityLevel(root); + } + + function hasLowerPriorityWork(root, renderExpirationTime) { + return renderExpirationTime !== root.latestPendingTime && renderExpirationTime !== root.latestSuspendedTime; + } + + function markSuspendedPriorityLevel(root, suspendedTime, didError) { + if (didError && !hasLowerPriorityWork(root, suspendedTime)) { + root.didError = true; + findNextPendingPriorityLevel(root); + return; + } + + var earliestPendingTime = root.earliestPendingTime; + var latestPendingTime = root.latestPendingTime; + + if (earliestPendingTime === suspendedTime) { + if (latestPendingTime === suspendedTime) { + root.earliestPendingTime = root.latestPendingTime = NoWork; + } else { + root.earliestPendingTime = latestPendingTime; + } + } else if (latestPendingTime === suspendedTime) { + root.latestPendingTime = earliestPendingTime; + } + + var latestSuspendedTime = root.latestSuspendedTime; + + if (latestSuspendedTime === suspendedTime) { + root.latestPingedTime = NoWork; + } + + var earliestSuspendedTime = root.earliestSuspendedTime; + + if (earliestSuspendedTime === NoWork) { + root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime; + } else { + if (earliestSuspendedTime > suspendedTime) { + root.earliestSuspendedTime = suspendedTime; + } else if (latestSuspendedTime < suspendedTime) { + root.latestSuspendedTime = suspendedTime; + } + } + + findNextPendingPriorityLevel(root); + } + + function markPingedPriorityLevel(root, pingedTime) { + var latestSuspendedTime = root.latestSuspendedTime; + + if (latestSuspendedTime !== NoWork && latestSuspendedTime <= pingedTime) { + var latestPingedTime = root.latestPingedTime; + + if (latestPingedTime === NoWork || latestPingedTime < pingedTime) { + root.latestPingedTime = pingedTime; + } + } + + findNextPendingPriorityLevel(root); + } + + function findNextPendingPriorityLevel(root) { + var earliestSuspendedTime = root.earliestSuspendedTime; + var earliestPendingTime = root.earliestPendingTime; + var nextExpirationTimeToWorkOn = void 0; + var expirationTime = void 0; + + if (earliestSuspendedTime === NoWork) { + nextExpirationTimeToWorkOn = expirationTime = earliestPendingTime; + } else if (earliestPendingTime !== NoWork) { + nextExpirationTimeToWorkOn = earliestPendingTime; + expirationTime = earliestSuspendedTime < earliestPendingTime ? earliestSuspendedTime : earliestPendingTime; + } else { + nextExpirationTimeToWorkOn = expirationTime = root.latestPingedTime; + } + + if (root.didError) { + expirationTime = Sync; + } + + root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn; + root.expirationTime = expirationTime; + } + + var UpdateState = 0; + var ReplaceState = 1; + var ForceUpdate = 2; + var CaptureUpdate = 3; + var hasForceUpdate = false; + var didWarnUpdateInsideUpdate = void 0; + var currentlyProcessingQueue = void 0; + var resetCurrentlyProcessingQueue = void 0; + { + didWarnUpdateInsideUpdate = false; + currentlyProcessingQueue = null; + + resetCurrentlyProcessingQueue = function resetCurrentlyProcessingQueue() { + currentlyProcessingQueue = null; + }; + } + + function createUpdateQueue(baseState) { + var queue = { + expirationTime: NoWork, + baseState: baseState, + firstUpdate: null, + lastUpdate: null, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + return queue; + } + + function cloneUpdateQueue(currentQueue) { + var queue = { + expirationTime: currentQueue.expirationTime, + baseState: currentQueue.baseState, + firstUpdate: currentQueue.firstUpdate, + lastUpdate: currentQueue.lastUpdate, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + return queue; + } + + function createUpdate(expirationTime) { + return { + expirationTime: expirationTime, + tag: UpdateState, + payload: null, + callback: null, + next: null, + nextEffect: null + }; + } + + function appendUpdateToQueue(queue, update, expirationTime) { + if (queue.lastUpdate === null) { + queue.firstUpdate = queue.lastUpdate = update; + } else { + queue.lastUpdate.next = update; + queue.lastUpdate = update; + } + + if (queue.expirationTime === NoWork || queue.expirationTime > expirationTime) { + queue.expirationTime = expirationTime; + } + } + + function enqueueUpdate(fiber, update, expirationTime) { + var alternate = fiber.alternate; + var queue1 = void 0; + var queue2 = void 0; + + if (alternate === null) { + queue1 = fiber.updateQueue; + queue2 = null; + + if (queue1 === null) { + queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); + } + } else { + queue1 = fiber.updateQueue; + queue2 = alternate.updateQueue; + + if (queue1 === null) { + if (queue2 === null) { + queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); + queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState); + } else { + queue1 = fiber.updateQueue = cloneUpdateQueue(queue2); + } + } else { + if (queue2 === null) { + queue2 = alternate.updateQueue = cloneUpdateQueue(queue1); + } else {} + } + } + + if (queue2 === null || queue1 === queue2) { + appendUpdateToQueue(queue1, update, expirationTime); + } else { + if (queue1.lastUpdate === null || queue2.lastUpdate === null) { + appendUpdateToQueue(queue1, update, expirationTime); + appendUpdateToQueue(queue2, update, expirationTime); + } else { + appendUpdateToQueue(queue1, update, expirationTime); + queue2.lastUpdate = update; + } + } + + { + if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) { + warning(false, "An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); + didWarnUpdateInsideUpdate = true; + } + } + } + + function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { + var workInProgressQueue = workInProgress.updateQueue; + + if (workInProgressQueue === null) { + workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState); + } else { + workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); + } + + if (workInProgressQueue.lastCapturedUpdate === null) { + workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update; + } else { + workInProgressQueue.lastCapturedUpdate.next = update; + workInProgressQueue.lastCapturedUpdate = update; + } + + if (workInProgressQueue.expirationTime === NoWork || workInProgressQueue.expirationTime > renderExpirationTime) { + workInProgressQueue.expirationTime = renderExpirationTime; + } + } + + function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { + var current = workInProgress.alternate; + + if (current !== null) { + if (queue === current.updateQueue) { + queue = workInProgress.updateQueue = cloneUpdateQueue(queue); + } + } + + return queue; + } + + function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case ReplaceState: + { + var _payload = update.payload; + + if (typeof _payload === "function") { + { + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + _payload.call(instance, prevState, nextProps); + } + } + return _payload.call(instance, prevState, nextProps); + } + + return _payload; + } + + case CaptureUpdate: + { + workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture; + } + + case UpdateState: + { + var _payload2 = update.payload; + var partialState = void 0; + + if (typeof _payload2 === "function") { + { + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + _payload2.call(instance, prevState, nextProps); + } + } + partialState = _payload2.call(instance, prevState, nextProps); + } else { + partialState = _payload2; + } + + if (partialState === null || partialState === undefined) { + return prevState; + } + + return _extends({}, prevState, partialState); + } + + case ForceUpdate: + { + hasForceUpdate = true; + return prevState; + } + } + + return prevState; + } + + function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { + hasForceUpdate = false; + + if (queue.expirationTime === NoWork || queue.expirationTime > renderExpirationTime) { + return; + } + + queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); + { + currentlyProcessingQueue = queue; + } + var newBaseState = queue.baseState; + var newFirstUpdate = null; + var newExpirationTime = NoWork; + var update = queue.firstUpdate; + var resultState = newBaseState; + + while (update !== null) { + var updateExpirationTime = update.expirationTime; + + if (updateExpirationTime > renderExpirationTime) { + if (newFirstUpdate === null) { + newFirstUpdate = update; + newBaseState = resultState; + } + + if (newExpirationTime === NoWork || newExpirationTime > updateExpirationTime) { + newExpirationTime = updateExpirationTime; + } + } else { + resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); + var _callback = update.callback; + + if (_callback !== null) { + workInProgress.effectTag |= Callback; + update.nextEffect = null; + + if (queue.lastEffect === null) { + queue.firstEffect = queue.lastEffect = update; + } else { + queue.lastEffect.nextEffect = update; + queue.lastEffect = update; + } + } + } + + update = update.next; + } + + var newFirstCapturedUpdate = null; + update = queue.firstCapturedUpdate; + + while (update !== null) { + var _updateExpirationTime = update.expirationTime; + + if (_updateExpirationTime > renderExpirationTime) { + if (newFirstCapturedUpdate === null) { + newFirstCapturedUpdate = update; + + if (newFirstUpdate === null) { + newBaseState = resultState; + } + } + + if (newExpirationTime === NoWork || newExpirationTime > _updateExpirationTime) { + newExpirationTime = _updateExpirationTime; + } + } else { + resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); + var _callback2 = update.callback; + + if (_callback2 !== null) { + workInProgress.effectTag |= Callback; + update.nextEffect = null; + + if (queue.lastCapturedEffect === null) { + queue.firstCapturedEffect = queue.lastCapturedEffect = update; + } else { + queue.lastCapturedEffect.nextEffect = update; + queue.lastCapturedEffect = update; + } + } + } + + update = update.next; + } + + if (newFirstUpdate === null) { + queue.lastUpdate = null; + } + + if (newFirstCapturedUpdate === null) { + queue.lastCapturedUpdate = null; + } else { + workInProgress.effectTag |= Callback; + } + + if (newFirstUpdate === null && newFirstCapturedUpdate === null) { + newBaseState = resultState; + } + + queue.baseState = newBaseState; + queue.firstUpdate = newFirstUpdate; + queue.firstCapturedUpdate = newFirstCapturedUpdate; + queue.expirationTime = newExpirationTime; + workInProgress.memoizedState = resultState; + { + currentlyProcessingQueue = null; + } + } + + function callCallback(callback, context) { + invariant(typeof callback === "function", "Invalid argument passed as callback. Expected a function. Instead " + "received: %s", callback); + callback.call(context); + } + + function resetHasForceUpdateBeforeProcessing() { + hasForceUpdate = false; + } + + function checkHasForceUpdateAfterProcessing() { + return hasForceUpdate; + } + + function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) { + if (finishedQueue.firstCapturedUpdate !== null) { + if (finishedQueue.lastUpdate !== null) { + finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate; + finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate; + } + + finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null; + } + + var effect = finishedQueue.firstEffect; + finishedQueue.firstEffect = finishedQueue.lastEffect = null; + + while (effect !== null) { + var _callback3 = effect.callback; + + if (_callback3 !== null) { + effect.callback = null; + callCallback(_callback3, instance); + } + + effect = effect.nextEffect; + } + + effect = finishedQueue.firstCapturedEffect; + finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; + + while (effect !== null) { + var _callback4 = effect.callback; + + if (_callback4 !== null) { + effect.callback = null; + callCallback(_callback4, instance); + } + + effect = effect.nextEffect; + } + } + + function createCapturedValue(value, source) { + return { + value: value, + source: source, + stack: getStackAddendumByWorkInProgressFiber(source) + }; + } + + var providerCursor = createCursor(null); + var valueCursor = createCursor(null); + var changedBitsCursor = createCursor(0); + var rendererSigil = void 0; + { + rendererSigil = {}; + } + + function pushProvider(providerFiber) { + var context = providerFiber.type._context; + + if (isPrimaryRenderer) { + push(changedBitsCursor, context._changedBits, providerFiber); + push(valueCursor, context._currentValue, providerFiber); + push(providerCursor, providerFiber, providerFiber); + context._currentValue = providerFiber.pendingProps.value; + context._changedBits = providerFiber.stateNode; + { + !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warning(false, "Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported.") : void 0; + context._currentRenderer = rendererSigil; + } + } else { + push(changedBitsCursor, context._changedBits2, providerFiber); + push(valueCursor, context._currentValue2, providerFiber); + push(providerCursor, providerFiber, providerFiber); + context._currentValue2 = providerFiber.pendingProps.value; + context._changedBits2 = providerFiber.stateNode; + { + !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warning(false, "Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported.") : void 0; + context._currentRenderer2 = rendererSigil; + } + } + } + + function popProvider(providerFiber) { + var changedBits = changedBitsCursor.current; + var currentValue = valueCursor.current; + pop(providerCursor, providerFiber); + pop(valueCursor, providerFiber); + pop(changedBitsCursor, providerFiber); + var context = providerFiber.type._context; + + if (isPrimaryRenderer) { + context._currentValue = currentValue; + context._changedBits = changedBits; + } else { + context._currentValue2 = currentValue; + context._changedBits2 = changedBits; + } + } + + function getContextCurrentValue(context) { + return isPrimaryRenderer ? context._currentValue : context._currentValue2; + } + + function getContextChangedBits(context) { + return isPrimaryRenderer ? context._changedBits : context._changedBits2; + } + + var NO_CONTEXT = {}; + var contextStackCursor$1 = createCursor(NO_CONTEXT); + var contextFiberStackCursor = createCursor(NO_CONTEXT); + var rootInstanceStackCursor = createCursor(NO_CONTEXT); + + function requiredContext(c) { + invariant(c !== NO_CONTEXT, "Expected host context to exist. This error is likely caused by a bug " + "in React. Please file an issue."); + return c; + } + + function getRootHostContainer() { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + return rootInstance; + } + + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, NO_CONTEXT, fiber); + var nextRootContext = getRootHostContext(nextRootInstance); + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); + } + + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + + function getHostContext() { + var context = requiredContext(contextStackCursor$1.current); + return context; + } + + function pushHostContext(fiber) { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var nextContext = getChildHostContext(context, fiber.type, rootInstance); + + if (context === nextContext) { + return; + } + + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, nextContext, fiber); + } + + function popHostContext(fiber) { + if (contextFiberStackCursor.current !== fiber) { + return; + } + + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + } + + var commitTime = 0; + + function getCommitTime() { + return commitTime; + } + + function recordCommitTime() { + if (!enableProfilerTimer) { + return; + } + + commitTime = now(); + } + + var fiberStack$1 = void 0; + { + fiberStack$1 = []; + } + var timerPausedAt = 0; + var totalElapsedPauseTime = 0; + + function checkActualRenderTimeStackEmpty() { + if (!enableProfilerTimer) { + return; + } + + { + !(fiberStack$1.length === 0) ? warning(false, "Expected an empty stack. Something was not reset properly.") : void 0; + } + } + + function markActualRenderTimeStarted(fiber) { + if (!enableProfilerTimer) { + return; + } + + { + fiberStack$1.push(fiber); + } + fiber.actualDuration = now() - fiber.actualDuration - totalElapsedPauseTime; + fiber.actualStartTime = now(); + } + + function pauseActualRenderTimerIfRunning() { + if (!enableProfilerTimer) { + return; + } + + if (timerPausedAt === 0) { + timerPausedAt = now(); + } + } + + function recordElapsedActualRenderTime(fiber) { + if (!enableProfilerTimer) { + return; + } + + { + !(fiber === fiberStack$1.pop()) ? warning(false, "Unexpected Fiber (%s) popped.", getComponentName(fiber)) : void 0; + } + fiber.actualDuration = now() - totalElapsedPauseTime - fiber.actualDuration; + } + + function resetActualRenderTimer() { + if (!enableProfilerTimer) { + return; + } + + totalElapsedPauseTime = 0; + } + + function resumeActualRenderTimerIfPaused() { + if (!enableProfilerTimer) { + return; + } + + if (timerPausedAt > 0) { + totalElapsedPauseTime += now() - timerPausedAt; + timerPausedAt = 0; + } + } + + var baseStartTime = -1; + + function recordElapsedBaseRenderTimeIfRunning(fiber) { + if (!enableProfilerTimer) { + return; + } + + if (baseStartTime !== -1) { + fiber.selfBaseTime = now() - baseStartTime; + } + } + + function startBaseRenderTimer() { + if (!enableProfilerTimer) { + return; + } + + { + if (baseStartTime !== -1) { + warning(false, "Cannot start base timer that is already running. " + "This error is likely caused by a bug in React. " + "Please file an issue."); + } + } + baseStartTime = now(); + } + + function stopBaseRenderTimerIfRunning() { + if (!enableProfilerTimer) { + return; + } + + baseStartTime = -1; + } + + var hasOwnProperty = Object.prototype.hasOwnProperty; + + function is(x, y) { + if (x === y) { + return x !== 0 || y !== 0 || 1 / x === 1 / y; + } else { + return x !== x && y !== y; + } + } + + function shallowEqual(objA, objB) { + if (is(objA, objB)) { + return true; + } + + if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) { + return false; + } + + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + + if (keysA.length !== keysB.length) { + return false; + } + + for (var i = 0; i < keysA.length; i++) { + if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) { + return false; + } + } + + return true; + } + + var fakeInternalInstance = {}; + var isArray = Array.isArray; + var didWarnAboutStateAssignmentForComponent = void 0; + var didWarnAboutUninitializedState = void 0; + var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0; + var didWarnAboutLegacyLifecyclesAndDerivedState = void 0; + var didWarnAboutUndefinedDerivedState = void 0; + var warnOnUndefinedDerivedState = void 0; + var warnOnInvalidCallback = void 0; + { + didWarnAboutStateAssignmentForComponent = new Set(); + didWarnAboutUninitializedState = new Set(); + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); + didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); + didWarnAboutUndefinedDerivedState = new Set(); + var didWarnOnInvalidCallback = new Set(); + + warnOnInvalidCallback = function warnOnInvalidCallback(callback, callerName) { + if (callback === null || typeof callback === "function") { + return; + } + + var key = callerName + "_" + callback; + + if (!didWarnOnInvalidCallback.has(key)) { + didWarnOnInvalidCallback.add(key); + warning(false, "%s(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callerName, callback); + } + }; + + warnOnUndefinedDerivedState = function warnOnUndefinedDerivedState(workInProgress, partialState) { + if (partialState === undefined) { + var componentName = getComponentName(workInProgress) || "Component"; + + if (!didWarnAboutUndefinedDerivedState.has(componentName)) { + didWarnAboutUndefinedDerivedState.add(componentName); + warning(false, "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. " + "You have returned undefined.", componentName); + } + } + }; + + Object.defineProperty(fakeInternalInstance, "_processChildContext", { + enumerable: false, + value: function value() { + invariant(false, "_processChildContext is not available in React 16+. This likely " + "means you have multiple copies of React and are attempting to nest " + "a React 15 tree inside a React 16 tree using " + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + "to make sure you have only one copy of React (and ideally, switch " + "to ReactDOM.createPortal)."); + } + }); + Object.freeze(fakeInternalInstance); + } + + function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { + var prevState = workInProgress.memoizedState; + { + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + getDerivedStateFromProps(nextProps, prevState); + } + } + var partialState = getDerivedStateFromProps(nextProps, prevState); + { + warnOnUndefinedDerivedState(workInProgress, partialState); + } + var memoizedState = partialState === null || partialState === undefined ? prevState : _extends({}, prevState, partialState); + workInProgress.memoizedState = memoizedState; + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null && updateQueue.expirationTime === NoWork) { + updateQueue.baseState = memoizedState; + } + } + + var classComponentUpdater = { + isMounted: isMounted, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + var fiber = get$1(inst); + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, fiber); + var update = createUpdate(expirationTime); + update.payload = payload; + + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "setState"); + } + update.callback = callback; + } + + enqueueUpdate(fiber, update, expirationTime); + scheduleWork(fiber, expirationTime); + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + var fiber = get$1(inst); + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, fiber); + var update = createUpdate(expirationTime); + update.tag = ReplaceState; + update.payload = payload; + + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "replaceState"); + } + update.callback = callback; + } + + enqueueUpdate(fiber, update, expirationTime); + scheduleWork(fiber, expirationTime); + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + var fiber = get$1(inst); + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, fiber); + var update = createUpdate(expirationTime); + update.tag = ForceUpdate; + + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, "forceUpdate"); + } + update.callback = callback; + } + + enqueueUpdate(fiber, update, expirationTime); + scheduleWork(fiber, expirationTime); + } + }; + + function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { + var instance = workInProgress.stateNode; + var ctor = workInProgress.type; + + if (typeof instance.shouldComponentUpdate === "function") { + startPhaseTimer(workInProgress, "shouldComponentUpdate"); + var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, newContext); + stopPhaseTimer(); + { + !(shouldUpdate !== undefined) ? warning(false, "%s.shouldComponentUpdate(): Returned undefined instead of a " + "boolean value. Make sure to return true or false.", getComponentName(workInProgress) || "Component") : void 0; + } + return shouldUpdate; + } + + if (ctor.prototype && ctor.prototype.isPureReactComponent) { + return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); + } + + return true; + } + + function checkClassInstance(workInProgress) { + var instance = workInProgress.stateNode; + var type = workInProgress.type; + { + var name = getComponentName(workInProgress) || "Component"; + var renderPresent = instance.render; + + if (!renderPresent) { + if (type.prototype && typeof type.prototype.render === "function") { + warning(false, "%s(...): No `render` method found on the returned component " + "instance: did you accidentally return an object from the constructor?", name); + } else { + warning(false, "%s(...): No `render` method found on the returned component " + "instance: you may have forgotten to define `render`.", name); + } + } + + var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state; + !noGetInitialStateOnES6 ? warning(false, "getInitialState was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Did you mean to define a state property instead?", name) : void 0; + var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved; + !noGetDefaultPropsOnES6 ? warning(false, "getDefaultProps was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Use a static property to define defaultProps instead.", name) : void 0; + var noInstancePropTypes = !instance.propTypes; + !noInstancePropTypes ? warning(false, "propTypes was defined as an instance property on %s. Use a static " + "property to define propTypes instead.", name) : void 0; + var noInstanceContextTypes = !instance.contextTypes; + !noInstanceContextTypes ? warning(false, "contextTypes was defined as an instance property on %s. Use a static " + "property to define contextTypes instead.", name) : void 0; + var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== "function"; + !noComponentShouldUpdate ? warning(false, "%s has a method called " + "componentShouldUpdate(). Did you mean shouldComponentUpdate()? " + "The name is phrased as a question because the function is " + "expected to return a value.", name) : void 0; + + if (type.prototype && type.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== "undefined") { + warning(false, "%s has a method called shouldComponentUpdate(). " + "shouldComponentUpdate should not be used when extending React.PureComponent. " + "Please extend React.Component if shouldComponentUpdate is used.", getComponentName(workInProgress) || "A pure component"); + } + + var noComponentDidUnmount = typeof instance.componentDidUnmount !== "function"; + !noComponentDidUnmount ? warning(false, "%s has a method called " + "componentDidUnmount(). But there is no such lifecycle method. " + "Did you mean componentWillUnmount()?", name) : void 0; + var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== "function"; + !noComponentDidReceiveProps ? warning(false, "%s has a method called " + "componentDidReceiveProps(). But there is no such lifecycle method. " + "If you meant to update the state in response to changing props, " + "use componentWillReceiveProps(). If you meant to fetch data or " + "run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name) : void 0; + var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== "function"; + !noComponentWillRecieveProps ? warning(false, "%s has a method called " + "componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name) : void 0; + var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== "function"; + !noUnsafeComponentWillRecieveProps ? warning(false, "%s has a method called " + "UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name) : void 0; + var hasMutatedProps = instance.props !== workInProgress.pendingProps; + !(instance.props === undefined || !hasMutatedProps) ? warning(false, "%s(...): When calling super() in `%s`, make sure to pass " + "up the same props that your component's constructor was passed.", name, name) : void 0; + var noInstanceDefaultProps = !instance.defaultProps; + !noInstanceDefaultProps ? warning(false, "Setting defaultProps as an instance property on %s is not supported and will be ignored." + " Instead, define defaultProps as a static property on %s.", name, name) : void 0; + + if (typeof instance.getSnapshotBeforeUpdate === "function" && typeof instance.componentDidUpdate !== "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type)) { + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type); + warning(false, "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). " + "This component defines getSnapshotBeforeUpdate() only.", getComponentName(workInProgress)); + } + + var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== "function"; + !noInstanceGetDerivedStateFromProps ? warning(false, "%s: getDerivedStateFromProps() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name) : void 0; + var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromCatch !== "function"; + !noInstanceGetDerivedStateFromCatch ? warning(false, "%s: getDerivedStateFromCatch() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name) : void 0; + var noStaticGetSnapshotBeforeUpdate = typeof type.getSnapshotBeforeUpdate !== "function"; + !noStaticGetSnapshotBeforeUpdate ? warning(false, "%s: getSnapshotBeforeUpdate() is defined as a static method " + "and will be ignored. Instead, declare it as an instance method.", name) : void 0; + var _state = instance.state; + + if (_state && (typeof _state !== "object" || isArray(_state))) { + warning(false, "%s.state: must be set to an object or null", name); + } + + if (typeof instance.getChildContext === "function") { + !(typeof type.childContextTypes === "object") ? warning(false, "%s.getChildContext(): childContextTypes must be defined in order to " + "use getChildContext().", name) : void 0; + } + } + } + + function adoptClassInstance(workInProgress, instance) { + instance.updater = classComponentUpdater; + workInProgress.stateNode = instance; + set(instance, workInProgress); + { + instance._reactInternalInstance = fakeInternalInstance; + } + } + + function constructClassInstance(workInProgress, props, renderExpirationTime) { + var ctor = workInProgress.type; + var unmaskedContext = getUnmaskedContext(workInProgress); + var needsContext = isContextConsumer(workInProgress); + var context = needsContext ? getMaskedContext(workInProgress, unmaskedContext) : emptyObject; + { + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + new ctor(props, context); + } + } + var instance = new ctor(props, context); + var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; + adoptClassInstance(workInProgress, instance); + { + if (typeof ctor.getDerivedStateFromProps === "function" && state === null) { + var componentName = getComponentName(workInProgress) || "Component"; + + if (!didWarnAboutUninitializedState.has(componentName)) { + didWarnAboutUninitializedState.add(componentName); + warning(false, "%s: Did not properly initialize state during construction. " + "Expected state to be an object, but it was %s.", componentName, instance.state === null ? "null" : "undefined"); + } + } + + if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { + foundWillMountName = "componentWillMount"; + } else if (typeof instance.UNSAFE_componentWillMount === "function") { + foundWillMountName = "UNSAFE_componentWillMount"; + } + + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + foundWillReceivePropsName = "componentWillReceiveProps"; + } else if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"; + } + + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + foundWillUpdateName = "componentWillUpdate"; + } else if (typeof instance.UNSAFE_componentWillUpdate === "function") { + foundWillUpdateName = "UNSAFE_componentWillUpdate"; + } + + if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { + var _componentName = getComponentName(workInProgress) || "Component"; + + var newApiName = typeof ctor.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + + if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { + didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); + warning(false, "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + "https://fb.me/react-async-component-lifecycle-hooks", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "", foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ""); + } + } + } + } + + if (needsContext) { + cacheContext(workInProgress, unmaskedContext, context); + } + + return instance; + } + + function callComponentWillMount(workInProgress, instance) { + startPhaseTimer(workInProgress, "componentWillMount"); + var oldState = instance.state; + + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + + stopPhaseTimer(); + + if (oldState !== instance.state) { + { + warning(false, "%s.componentWillMount(): Assigning directly to this.state is " + "deprecated (except inside a component's " + "constructor). Use setState instead.", getComponentName(workInProgress) || "Component"); + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + + function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { + var oldState = instance.state; + startPhaseTimer(workInProgress, "componentWillReceiveProps"); + + if (typeof instance.componentWillReceiveProps === "function") { + instance.componentWillReceiveProps(newProps, newContext); + } + + if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + instance.UNSAFE_componentWillReceiveProps(newProps, newContext); + } + + stopPhaseTimer(); + + if (instance.state !== oldState) { + { + var componentName = getComponentName(workInProgress) || "Component"; + + if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { + didWarnAboutStateAssignmentForComponent.add(componentName); + warning(false, "%s.componentWillReceiveProps(): Assigning directly to " + "this.state is deprecated (except inside a component's " + "constructor). Use setState instead.", componentName); + } + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + + function mountClassInstance(workInProgress, renderExpirationTime) { + var ctor = workInProgress.type; + { + checkClassInstance(workInProgress); + } + var instance = workInProgress.stateNode; + var props = workInProgress.pendingProps; + var unmaskedContext = getUnmaskedContext(workInProgress); + instance.props = props; + instance.state = workInProgress.memoizedState; + instance.refs = emptyObject; + instance.context = getMaskedContext(workInProgress, unmaskedContext); + { + if (workInProgress.mode & StrictMode) { + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance); + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance); + } + + if (warnAboutDeprecatedLifecycles) { + ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance); + } + } + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime); + instance.state = workInProgress.memoizedState; + } + + var getDerivedStateFromProps = workInProgress.type.getDerivedStateFromProps; + + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); + instance.state = workInProgress.memoizedState; + } + + if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + callComponentWillMount(workInProgress, instance); + updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime); + instance.state = workInProgress.memoizedState; + } + } + + if (typeof instance.componentDidMount === "function") { + workInProgress.effectTag |= Update; + } + } + + function resumeMountClassInstance(workInProgress, renderExpirationTime) { + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + var oldProps = workInProgress.memoizedProps; + var newProps = workInProgress.pendingProps; + instance.props = oldProps; + var oldContext = instance.context; + var newUnmaskedContext = getUnmaskedContext(workInProgress); + var newContext = getMaskedContext(workInProgress, newUnmaskedContext); + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (oldProps !== newProps || oldContext !== newContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, newContext); + } + } + + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime); + newState = workInProgress.memoizedState; + } + + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + if (typeof instance.componentDidMount === "function") { + workInProgress.effectTag |= Update; + } + + return false; + } + + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); + + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + startPhaseTimer(workInProgress, "componentWillMount"); + + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + + stopPhaseTimer(); + } + + if (typeof instance.componentDidMount === "function") { + workInProgress.effectTag |= Update; + } + } else { + if (typeof instance.componentDidMount === "function") { + workInProgress.effectTag |= Update; + } + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } + + instance.props = newProps; + instance.state = newState; + instance.context = newContext; + return shouldUpdate; + } + + function updateClassInstance(current, workInProgress, renderExpirationTime) { + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + var oldProps = workInProgress.memoizedProps; + var newProps = workInProgress.pendingProps; + instance.props = oldProps; + var oldContext = instance.context; + var newUnmaskedContext = getUnmaskedContext(workInProgress); + var newContext = getMaskedContext(workInProgress, newUnmaskedContext); + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (oldProps !== newProps || oldContext !== newContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, newContext); + } + } + + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime); + newState = workInProgress.memoizedState; + } + + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + if (typeof instance.componentDidUpdate === "function") { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Update; + } + } + + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Snapshot; + } + } + + return false; + } + + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); + + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { + startPhaseTimer(workInProgress, "componentWillUpdate"); + + if (typeof instance.componentWillUpdate === "function") { + instance.componentWillUpdate(newProps, newState, newContext); + } + + if (typeof instance.UNSAFE_componentWillUpdate === "function") { + instance.UNSAFE_componentWillUpdate(newProps, newState, newContext); + } + + stopPhaseTimer(); + } + + if (typeof instance.componentDidUpdate === "function") { + workInProgress.effectTag |= Update; + } + + if (typeof instance.getSnapshotBeforeUpdate === "function") { + workInProgress.effectTag |= Snapshot; + } + } else { + if (typeof instance.componentDidUpdate === "function") { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Update; + } + } + + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Snapshot; + } + } + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } + + instance.props = newProps; + instance.state = newState; + instance.context = newContext; + return shouldUpdate; + } + + var getCurrentFiberStackAddendum$2 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum; + var didWarnAboutMaps = void 0; + var didWarnAboutStringRefInStrictMode = void 0; + var ownerHasKeyUseWarning = void 0; + var ownerHasFunctionTypeWarning = void 0; + + var warnForMissingKey = function warnForMissingKey(child) {}; + + { + didWarnAboutMaps = false; + didWarnAboutStringRefInStrictMode = {}; + ownerHasKeyUseWarning = {}; + ownerHasFunctionTypeWarning = {}; + + warnForMissingKey = function warnForMissingKey(child) { + if (child === null || typeof child !== "object") { + return; + } + + if (!child._store || child._store.validated || child.key != null) { + return; + } + + invariant(typeof child._store === "object", "React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue."); + child._store.validated = true; + var currentComponentErrorInfo = "Each child in an array or iterator should have a unique " + '"key" prop. See https://fb.me/react-warning-keys for ' + "more information." + (getCurrentFiberStackAddendum$2() || ""); + + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + warning(false, "Each child in an array or iterator should have a unique " + '"key" prop. See https://fb.me/react-warning-keys for ' + "more information.%s", getCurrentFiberStackAddendum$2()); + }; + } + var isArray$1 = Array.isArray; + + function coerceRef(returnFiber, current, element) { + var mixedRef = element.ref; + + if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { + { + if (returnFiber.mode & StrictMode) { + var componentName = getComponentName(returnFiber) || "Component"; + + if (!didWarnAboutStringRefInStrictMode[componentName]) { + warning(false, 'A string ref, "%s", has been found within a strict mode tree. ' + "String refs are a source of potential bugs and should be avoided. " + "We recommend using createRef() instead." + "\n%s" + "\n\nLearn more about using refs safely here:" + "\nhttps://fb.me/react-strict-mode-string-ref", mixedRef, getStackAddendumByWorkInProgressFiber(returnFiber)); + didWarnAboutStringRefInStrictMode[componentName] = true; + } + } + } + + if (element._owner) { + var owner = element._owner; + var inst = void 0; + + if (owner) { + var ownerFiber = owner; + invariant(ownerFiber.tag === ClassComponent, "Stateless function components cannot have refs."); + inst = ownerFiber.stateNode; + } + + invariant(inst, "Missing owner for string ref %s. This error is likely caused by a " + "bug in React. Please file an issue.", mixedRef); + var stringRef = "" + mixedRef; + + if (current !== null && current.ref !== null && typeof current.ref === "function" && current.ref._stringRef === stringRef) { + return current.ref; + } + + var ref = function ref(value) { + var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; + + if (value === null) { + delete refs[stringRef]; + } else { + refs[stringRef] = value; + } + }; + + ref._stringRef = stringRef; + return ref; + } else { + invariant(typeof mixedRef === "string", "Expected ref to be a function or a string."); + invariant(element._owner, "Element ref was specified as a string (%s) but no owner was set. This could happen for one of" + " the following reasons:\n" + "1. You may be adding a ref to a functional component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + "See https://fb.me/react-refs-must-have-owner for more information.", mixedRef); + } + } + + return mixedRef; + } + + function throwOnInvalidObjectType(returnFiber, newChild) { + if (returnFiber.type !== "textarea") { + var addendum = ""; + { + addendum = " If you meant to render a collection of children, use an array " + "instead." + (getCurrentFiberStackAddendum$2() || ""); + } + invariant(false, "Objects are not valid as a React child (found: %s).%s", Object.prototype.toString.call(newChild) === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild, addendum); + } + } + + function warnOnFunctionType() { + var currentComponentErrorInfo = "Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it." + (getCurrentFiberStackAddendum$2() || ""); + + if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true; + warning(false, "Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it.%s", getCurrentFiberStackAddendum$2() || ""); + } + + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (!shouldTrackSideEffects) { + return; + } + + var last = returnFiber.lastEffect; + + if (last !== null) { + last.nextEffect = childToDelete; + returnFiber.lastEffect = childToDelete; + } else { + returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; + } + + childToDelete.nextEffect = null; + childToDelete.effectTag = Deletion; + } + + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) { + return null; + } + + var childToDelete = currentFirstChild; + + while (childToDelete !== null) { + deleteChild(returnFiber, childToDelete); + childToDelete = childToDelete.sibling; + } + + return null; + } + + function mapRemainingChildren(returnFiber, currentFirstChild) { + var existingChildren = new Map(); + var existingChild = currentFirstChild; + + while (existingChild !== null) { + if (existingChild.key !== null) { + existingChildren.set(existingChild.key, existingChild); + } else { + existingChildren.set(existingChild.index, existingChild); + } + + existingChild = existingChild.sibling; + } + + return existingChildren; + } + + function useFiber(fiber, pendingProps, expirationTime) { + var clone = createWorkInProgress(fiber, pendingProps, expirationTime); + clone.index = 0; + clone.sibling = null; + return clone; + } + + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + + if (!shouldTrackSideEffects) { + return lastPlacedIndex; + } + + var current = newFiber.alternate; + + if (current !== null) { + var oldIndex = current.index; + + if (oldIndex < lastPlacedIndex) { + newFiber.effectTag = Placement; + return lastPlacedIndex; + } else { + return oldIndex; + } + } else { + newFiber.effectTag = Placement; + return lastPlacedIndex; + } + } + + function placeSingleChild(newFiber) { + if (shouldTrackSideEffects && newFiber.alternate === null) { + newFiber.effectTag = Placement; + } + + return newFiber; + } + + function updateTextNode(returnFiber, current, textContent, expirationTime) { + if (current === null || current.tag !== HostText) { + var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, textContent, expirationTime); + existing.return = returnFiber; + return existing; + } + } + + function updateElement(returnFiber, current, element, expirationTime) { + if (current !== null && current.type === element.type) { + var existing = useFiber(current, element.props, expirationTime); + existing.ref = coerceRef(returnFiber, current, element); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } else { + var created = createFiberFromElement(element, returnFiber.mode, expirationTime); + created.ref = coerceRef(returnFiber, current, element); + created.return = returnFiber; + return created; + } + } + + function updatePortal(returnFiber, current, portal, expirationTime) { + if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { + var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, portal.children || [], expirationTime); + existing.return = returnFiber; + return existing; + } + } + + function updateFragment(returnFiber, current, fragment, expirationTime, key) { + if (current === null || current.tag !== Fragment) { + var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current, fragment, expirationTime); + existing.return = returnFiber; + return existing; + } + } + + function createChild(returnFiber, newChild, expirationTime) { + if (typeof newChild === "string" || typeof newChild === "number") { + var created = createFiberFromText("" + newChild, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } + + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime); + + _created.ref = coerceRef(returnFiber, null, newChild); + _created.return = returnFiber; + return _created; + } + + case REACT_PORTAL_TYPE: + { + var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); + + _created2.return = returnFiber; + return _created2; + } + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) { + var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null); + + _created3.return = returnFiber; + return _created3; + } + + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === "function") { + warnOnFunctionType(); + } + } + return null; + } + + function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { + var key = oldFiber !== null ? oldFiber.key : null; + + if (typeof newChild === "string" || typeof newChild === "number") { + if (key !== null) { + return null; + } + + return updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); + } + + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + if (newChild.key === key) { + if (newChild.type === REACT_FRAGMENT_TYPE) { + return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key); + } + + return updateElement(returnFiber, oldFiber, newChild, expirationTime); + } else { + return null; + } + } + + case REACT_PORTAL_TYPE: + { + if (newChild.key === key) { + return updatePortal(returnFiber, oldFiber, newChild, expirationTime); + } else { + return null; + } + } + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) { + if (key !== null) { + return null; + } + + return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); + } + + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === "function") { + warnOnFunctionType(); + } + } + return null; + } + + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { + if (typeof newChild === "string" || typeof newChild === "number") { + var matchedFiber = existingChildren.get(newIdx) || null; + return updateTextNode(returnFiber, matchedFiber, "" + newChild, expirationTime); + } + + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + + if (newChild.type === REACT_FRAGMENT_TYPE) { + return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key); + } + + return updateElement(returnFiber, _matchedFiber, newChild, expirationTime); + } + + case REACT_PORTAL_TYPE: + { + var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + + return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime); + } + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) { + var _matchedFiber3 = existingChildren.get(newIdx) || null; + + return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null); + } + + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === "function") { + warnOnFunctionType(); + } + } + return null; + } + + function warnOnInvalidKey(child, knownKeys) { + { + if (typeof child !== "object" || child === null) { + return knownKeys; + } + + switch (child.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + warnForMissingKey(child); + var key = child.key; + + if (typeof key !== "string") { + break; + } + + if (knownKeys === null) { + knownKeys = new Set(); + knownKeys.add(key); + break; + } + + if (!knownKeys.has(key)) { + knownKeys.add(key); + break; + } + + warning(false, "Encountered two children with the same key, `%s`. " + "Keys should be unique so that components maintain their identity " + "across updates. Non-unique keys may cause children to be " + "duplicated and/or omitted — the behavior is unsupported and " + "could change in a future version.%s", key, getCurrentFiberStackAddendum$2()); + break; + + default: + break; + } + } + return knownKeys; + } + + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { + { + var knownKeys = null; + + for (var i = 0; i < newChildren.length; i++) { + var child = newChildren[i]; + knownKeys = warnOnInvalidKey(child, knownKeys); + } + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + + for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); + + if (newFiber === null) { + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + + break; + } + + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (newIdx === newChildren.length) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + + if (oldFiber === null) { + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime); + + if (!_newFiber) { + continue; + } + + lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber; + } else { + previousNewFiber.sibling = _newFiber; + } + + previousNewFiber = _newFiber; + } + + return resultingFirstChild; + } + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime); + + if (_newFiber2) { + if (shouldTrackSideEffects) { + if (_newFiber2.alternate !== null) { + existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); + } + } + + lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber2; + } else { + previousNewFiber.sibling = _newFiber2; + } + + previousNewFiber = _newFiber2; + } + } + + if (shouldTrackSideEffects) { + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + + return resultingFirstChild; + } + + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { + var iteratorFn = getIteratorFn(newChildrenIterable); + invariant(typeof iteratorFn === "function", "An object is not an iterable. This error is likely caused by a bug in " + "React. Please file an issue."); + { + if (newChildrenIterable.entries === iteratorFn) { + !didWarnAboutMaps ? warning(false, "Using Maps as children is unsupported and will likely yield " + "unexpected results. Convert it to a sequence/iterable of keyed " + "ReactElements instead.%s", getCurrentFiberStackAddendum$2()) : void 0; + didWarnAboutMaps = true; + } + + var _newChildren = iteratorFn.call(newChildrenIterable); + + if (_newChildren) { + var knownKeys = null; + + var _step = _newChildren.next(); + + for (; !_step.done; _step = _newChildren.next()) { + var child = _step.value; + knownKeys = warnOnInvalidKey(child, knownKeys); + } + } + } + var newChildren = iteratorFn.call(newChildrenIterable); + invariant(newChildren != null, "An iterable object provided no iterator."); + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + var step = newChildren.next(); + + for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + + var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); + + if (newFiber === null) { + if (!oldFiber) { + oldFiber = nextOldFiber; + } + + break; + } + + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (step.done) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + + if (oldFiber === null) { + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber3 = createChild(returnFiber, step.value, expirationTime); + + if (_newFiber3 === null) { + continue; + } + + lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber3; + } else { + previousNewFiber.sibling = _newFiber3; + } + + previousNewFiber = _newFiber3; + } + + return resultingFirstChild; + } + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime); + + if (_newFiber4 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber4.alternate !== null) { + existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); + } + } + + lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber4; + } else { + previousNewFiber.sibling = _newFiber4; + } + + previousNewFiber = _newFiber4; + } + } + + if (shouldTrackSideEffects) { + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + + return resultingFirstChild; + } + + function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) { + if (currentFirstChild !== null && currentFirstChild.tag === HostText) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + var existing = useFiber(currentFirstChild, textContent, expirationTime); + existing.return = returnFiber; + return existing; + } + + deleteRemainingChildren(returnFiber, currentFirstChild); + var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } + + function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) { + var key = element.key; + var child = currentFirstChild; + + while (child !== null) { + if (child.key === key) { + if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.type === element.type) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime); + existing.ref = coerceRef(returnFiber, child, element); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } else { + deleteRemainingChildren(returnFiber, child); + break; + } + } else { + deleteChild(returnFiber, child); + } + + child = child.sibling; + } + + if (element.type === REACT_FRAGMENT_TYPE) { + var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key); + created.return = returnFiber; + return created; + } else { + var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime); + + _created4.ref = coerceRef(returnFiber, currentFirstChild, element); + _created4.return = returnFiber; + return _created4; + } + } + + function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) { + var key = portal.key; + var child = currentFirstChild; + + while (child !== null) { + if (child.key === key) { + if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, portal.children || [], expirationTime); + existing.return = returnFiber; + return existing; + } else { + deleteRemainingChildren(returnFiber, child); + break; + } + } else { + deleteChild(returnFiber, child); + } + + child = child.sibling; + } + + var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } + + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) { + var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; + + if (isUnkeyedTopLevelFragment) { + newChild = newChild.props.children; + } + + var isObject = typeof newChild === "object" && newChild !== null; + + if (isObject) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime)); + + case REACT_PORTAL_TYPE: + return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime)); + } + } + + if (typeof newChild === "string" || typeof newChild === "number") { + return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, expirationTime)); + } + + if (isArray$1(newChild)) { + return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); + } + + if (getIteratorFn(newChild)) { + return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); + } + + if (isObject) { + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === "function") { + warnOnFunctionType(); + } + } + + if (typeof newChild === "undefined" && !isUnkeyedTopLevelFragment) { + switch (returnFiber.tag) { + case ClassComponent: + { + { + var instance = returnFiber.stateNode; + + if (instance.render._isMockFunction) { + break; + } + } + } + + case FunctionalComponent: + { + var Component = returnFiber.type; + invariant(false, "%s(...): Nothing was returned from render. This usually means a " + "return statement is missing. Or, to render nothing, " + "return null.", Component.displayName || Component.name || "Component"); + } + } + } + + return deleteRemainingChildren(returnFiber, currentFirstChild); + } + + return reconcileChildFibers; + } + + var reconcileChildFibers = ChildReconciler(true); + var mountChildFibers = ChildReconciler(false); + + function cloneChildFibers(current, workInProgress) { + invariant(current === null || workInProgress.child === current.child, "Resuming work not yet implemented."); + + if (workInProgress.child === null) { + return; + } + + var currentChild = workInProgress.child; + var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); + workInProgress.child = newChild; + newChild.return = workInProgress; + + while (currentChild.sibling !== null) { + currentChild = currentChild.sibling; + newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); + newChild.return = workInProgress; + } + + newChild.sibling = null; + } + + var hydrationParentFiber = null; + var nextHydratableInstance = null; + var isHydrating = false; + + function enterHydrationState(fiber) { + if (!supportsHydration) { + return false; + } + + var parentInstance = fiber.stateNode.containerInfo; + nextHydratableInstance = getFirstHydratableChild(parentInstance); + hydrationParentFiber = fiber; + isHydrating = true; + return true; + } + + function deleteHydratableInstance(returnFiber, instance) { + { + switch (returnFiber.tag) { + case HostRoot: + didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance); + break; + + case HostComponent: + didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance); + break; + } + } + var childToDelete = createFiberFromHostInstanceForDeletion(); + childToDelete.stateNode = instance; + childToDelete.return = returnFiber; + childToDelete.effectTag = Deletion; + + if (returnFiber.lastEffect !== null) { + returnFiber.lastEffect.nextEffect = childToDelete; + returnFiber.lastEffect = childToDelete; + } else { + returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; + } + } + + function insertNonHydratedInstance(returnFiber, fiber) { + fiber.effectTag |= Placement; + { + switch (returnFiber.tag) { + case HostRoot: + { + var parentContainer = returnFiber.stateNode.containerInfo; + + switch (fiber.tag) { + case HostComponent: + var type = fiber.type; + var props = fiber.pendingProps; + didNotFindHydratableContainerInstance(parentContainer, type, props); + break; + + case HostText: + var text = fiber.pendingProps; + didNotFindHydratableContainerTextInstance(parentContainer, text); + break; + } + + break; + } + + case HostComponent: + { + var parentType = returnFiber.type; + var parentProps = returnFiber.memoizedProps; + var parentInstance = returnFiber.stateNode; + + switch (fiber.tag) { + case HostComponent: + var _type = fiber.type; + var _props = fiber.pendingProps; + didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props); + break; + + case HostText: + var _text = fiber.pendingProps; + didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text); + break; + } + + break; + } + + default: + return; + } + } + } + + function tryHydrate(fiber, nextInstance) { + switch (fiber.tag) { + case HostComponent: + { + var type = fiber.type; + var props = fiber.pendingProps; + var instance = canHydrateInstance(nextInstance, type, props); + + if (instance !== null) { + fiber.stateNode = instance; + return true; + } + + return false; + } + + case HostText: + { + var text = fiber.pendingProps; + var textInstance = canHydrateTextInstance(nextInstance, text); + + if (textInstance !== null) { + fiber.stateNode = textInstance; + return true; + } + + return false; + } + + default: + return false; + } + } + + function tryToClaimNextHydratableInstance(fiber) { + if (!isHydrating) { + return; + } + + var nextInstance = nextHydratableInstance; + + if (!nextInstance) { + insertNonHydratedInstance(hydrationParentFiber, fiber); + isHydrating = false; + hydrationParentFiber = fiber; + return; + } + + var firstAttemptedInstance = nextInstance; + + if (!tryHydrate(fiber, nextInstance)) { + nextInstance = getNextHydratableSibling(firstAttemptedInstance); + + if (!nextInstance || !tryHydrate(fiber, nextInstance)) { + insertNonHydratedInstance(hydrationParentFiber, fiber); + isHydrating = false; + hydrationParentFiber = fiber; + return; + } + + deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance); + } + + hydrationParentFiber = fiber; + nextHydratableInstance = getFirstHydratableChild(nextInstance); + } + + function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { + if (!supportsHydration) { + invariant(false, "Expected prepareToHydrateHostInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + + var instance = fiber.stateNode; + var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); + fiber.updateQueue = updatePayload; + + if (updatePayload !== null) { + return true; + } + + return false; + } + + function prepareToHydrateHostTextInstance(fiber) { + if (!supportsHydration) { + invariant(false, "Expected prepareToHydrateHostTextInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); + } + + var textInstance = fiber.stateNode; + var textContent = fiber.memoizedProps; + var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber); + { + if (shouldUpdate) { + var returnFiber = hydrationParentFiber; + + if (returnFiber !== null) { + switch (returnFiber.tag) { + case HostRoot: + { + var parentContainer = returnFiber.stateNode.containerInfo; + didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent); + break; + } + + case HostComponent: + { + var parentType = returnFiber.type; + var parentProps = returnFiber.memoizedProps; + var parentInstance = returnFiber.stateNode; + didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent); + break; + } + } + } + } + } + return shouldUpdate; + } + + function popToNextHostParent(fiber) { + var parent = fiber.return; + + while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) { + parent = parent.return; + } + + hydrationParentFiber = parent; + } + + function popHydrationState(fiber) { + if (!supportsHydration) { + return false; + } + + if (fiber !== hydrationParentFiber) { + return false; + } + + if (!isHydrating) { + popToNextHostParent(fiber); + isHydrating = true; + return false; + } + + var type = fiber.type; + + if (fiber.tag !== HostComponent || type !== "head" && type !== "body" && !shouldSetTextContent(type, fiber.memoizedProps)) { + var nextInstance = nextHydratableInstance; + + while (nextInstance) { + deleteHydratableInstance(fiber, nextInstance); + nextInstance = getNextHydratableSibling(nextInstance); + } + } + + popToNextHostParent(fiber); + nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null; + return true; + } + + function resetHydrationState() { + if (!supportsHydration) { + return; + } + + hydrationParentFiber = null; + nextHydratableInstance = null; + isHydrating = false; + } + + var getCurrentFiberStackAddendum$1 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum; + var didWarnAboutBadClass = void 0; + var didWarnAboutGetDerivedStateOnFunctionalComponent = void 0; + var didWarnAboutStatelessRefs = void 0; + { + didWarnAboutBadClass = {}; + didWarnAboutGetDerivedStateOnFunctionalComponent = {}; + didWarnAboutStatelessRefs = {}; + } + + function reconcileChildren(current, workInProgress, nextChildren) { + reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); + } + + function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { + if (current === null) { + workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + } else { + workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); + } + } + + function updateForwardRef(current, workInProgress) { + var render = workInProgress.type.render; + var nextProps = workInProgress.pendingProps; + var ref = workInProgress.ref; + + if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextProps) { + var currentRef = current !== null ? current.ref : null; + + if (ref === currentRef) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + } + + var nextChildren = void 0; + { + ReactCurrentOwner.current = workInProgress; + ReactDebugCurrentFiber.setCurrentPhase("render"); + nextChildren = render(nextProps, ref); + ReactDebugCurrentFiber.setCurrentPhase(null); + } + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextProps); + return workInProgress.child; + } + + function updateFragment(current, workInProgress) { + var nextChildren = workInProgress.pendingProps; + + if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextChildren) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextChildren); + return workInProgress.child; + } + + function updateMode(current, workInProgress) { + var nextChildren = workInProgress.pendingProps.children; + + if (hasContextChanged()) {} else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextChildren); + return workInProgress.child; + } + + function updateProfiler(current, workInProgress) { + var nextProps = workInProgress.pendingProps; + + if (enableProfilerTimer) { + workInProgress.effectTag |= Update; + } + + if (workInProgress.memoizedProps === nextProps) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var nextChildren = nextProps.children; + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextProps); + return workInProgress.child; + } + + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + + if (current === null && ref !== null || current !== null && current.ref !== ref) { + workInProgress.effectTag |= Ref; + } + } + + function updateFunctionalComponent(current, workInProgress) { + var fn = workInProgress.type; + var nextProps = workInProgress.pendingProps; + + if (hasContextChanged()) {} else { + if (workInProgress.memoizedProps === nextProps) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + } + + var unmaskedContext = getUnmaskedContext(workInProgress); + var context = getMaskedContext(workInProgress, unmaskedContext); + var nextChildren = void 0; + { + ReactCurrentOwner.current = workInProgress; + ReactDebugCurrentFiber.setCurrentPhase("render"); + nextChildren = fn(nextProps, context); + ReactDebugCurrentFiber.setCurrentPhase(null); + } + workInProgress.effectTag |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextProps); + return workInProgress.child; + } + + function updateClassComponent(current, workInProgress, renderExpirationTime) { + var hasContext = pushContextProvider(workInProgress); + var shouldUpdate = void 0; + + if (current === null) { + if (workInProgress.stateNode === null) { + constructClassInstance(workInProgress, workInProgress.pendingProps, renderExpirationTime); + mountClassInstance(workInProgress, renderExpirationTime); + shouldUpdate = true; + } else { + shouldUpdate = resumeMountClassInstance(workInProgress, renderExpirationTime); + } + } else { + shouldUpdate = updateClassInstance(current, workInProgress, renderExpirationTime); + } + + return finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime); + } + + function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { + markRef(current, workInProgress); + var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect; + + if (!shouldUpdate && !didCaptureError) { + if (hasContext) { + invalidateContextProvider(workInProgress, false); + } + + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + ReactCurrentOwner.current = workInProgress; + var nextChildren = void 0; + + if (didCaptureError && (!enableGetDerivedStateFromCatch || typeof ctor.getDerivedStateFromCatch !== "function")) { + nextChildren = null; + + if (enableProfilerTimer) { + stopBaseRenderTimerIfRunning(); + } + } else { + { + ReactDebugCurrentFiber.setCurrentPhase("render"); + nextChildren = instance.render(); + + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + instance.render(); + } + + ReactDebugCurrentFiber.setCurrentPhase(null); + } + } + + workInProgress.effectTag |= PerformedWork; + + if (didCaptureError) { + reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime); + workInProgress.child = null; + } + + reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime); + memoizeState(workInProgress, instance.state); + memoizeProps(workInProgress, instance.props); + + if (hasContext) { + invalidateContextProvider(workInProgress, true); + } + + return workInProgress.child; + } + + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + + if (root.pendingContext) { + pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); + } else if (root.context) { + pushTopLevelContextObject(workInProgress, root.context, false); + } + + pushHostContainer(workInProgress, root.containerInfo); + } + + function updateHostRoot(current, workInProgress, renderExpirationTime) { + pushHostRootContext(workInProgress); + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + var nextProps = workInProgress.pendingProps; + var prevState = workInProgress.memoizedState; + var prevChildren = prevState !== null ? prevState.element : null; + processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime); + var nextState = workInProgress.memoizedState; + var nextChildren = nextState.element; + + if (nextChildren === prevChildren) { + resetHydrationState(); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var root = workInProgress.stateNode; + + if ((current === null || current.child === null) && root.hydrate && enterHydrationState(workInProgress)) { + workInProgress.effectTag |= Placement; + workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + } else { + resetHydrationState(); + reconcileChildren(current, workInProgress, nextChildren); + } + + return workInProgress.child; + } + + resetHydrationState(); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + function updateHostComponent(current, workInProgress, renderExpirationTime) { + pushHostContext(workInProgress); + + if (current === null) { + tryToClaimNextHydratableInstance(workInProgress); + } + + var type = workInProgress.type; + var memoizedProps = workInProgress.memoizedProps; + var nextProps = workInProgress.pendingProps; + var prevProps = current !== null ? current.memoizedProps : null; + + if (hasContextChanged()) {} else if (memoizedProps === nextProps) { + var isHidden = workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps); + + if (isHidden) { + workInProgress.expirationTime = Never; + } + + if (!isHidden || renderExpirationTime !== Never) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + } + + var nextChildren = nextProps.children; + var isDirectTextChild = shouldSetTextContent(type, nextProps); + + if (isDirectTextChild) { + nextChildren = null; + } else if (prevProps && shouldSetTextContent(type, prevProps)) { + workInProgress.effectTag |= ContentReset; + } + + markRef(current, workInProgress); + + if (renderExpirationTime !== Never && workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps)) { + workInProgress.expirationTime = Never; + workInProgress.memoizedProps = nextProps; + return null; + } + + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextProps); + return workInProgress.child; + } + + function updateHostText(current, workInProgress) { + if (current === null) { + tryToClaimNextHydratableInstance(workInProgress); + } + + var nextProps = workInProgress.pendingProps; + memoizeProps(workInProgress, nextProps); + return null; + } + + function mountIndeterminateComponent(current, workInProgress, renderExpirationTime) { + invariant(current === null, "An indeterminate component should never have mounted. This error is " + "likely caused by a bug in React. Please file an issue."); + var fn = workInProgress.type; + var props = workInProgress.pendingProps; + var unmaskedContext = getUnmaskedContext(workInProgress); + var context = getMaskedContext(workInProgress, unmaskedContext); + var value = void 0; + { + if (fn.prototype && typeof fn.prototype.render === "function") { + var componentName = getComponentName(workInProgress) || "Unknown"; + + if (!didWarnAboutBadClass[componentName]) { + warning(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + "This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName); + didWarnAboutBadClass[componentName] = true; + } + } + + if (workInProgress.mode & StrictMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); + } + + ReactCurrentOwner.current = workInProgress; + value = fn(props, context); + } + workInProgress.effectTag |= PerformedWork; + + if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { + var Component = workInProgress.type; + workInProgress.tag = ClassComponent; + workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null; + var getDerivedStateFromProps = Component.getDerivedStateFromProps; + + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); + } + + var hasContext = pushContextProvider(workInProgress); + adoptClassInstance(workInProgress, value); + mountClassInstance(workInProgress, renderExpirationTime); + return finishClassComponent(current, workInProgress, true, hasContext, renderExpirationTime); + } else { + workInProgress.tag = FunctionalComponent; + { + var _Component = workInProgress.type; + + if (_Component) { + !!_Component.childContextTypes ? warning(false, "%s(...): childContextTypes cannot be defined on a functional component.", _Component.displayName || _Component.name || "Component") : void 0; + } + + if (workInProgress.ref !== null) { + var info = ""; + var ownerName = ReactDebugCurrentFiber.getCurrentFiberOwnerName(); + + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + + var warningKey = ownerName || workInProgress._debugID || ""; + var debugSource = workInProgress._debugSource; + + if (debugSource) { + warningKey = debugSource.fileName + ":" + debugSource.lineNumber; + } + + if (!didWarnAboutStatelessRefs[warningKey]) { + didWarnAboutStatelessRefs[warningKey] = true; + warning(false, "Stateless function components cannot be given refs. " + "Attempts to access this ref will fail.%s%s", info, ReactDebugCurrentFiber.getCurrentFiberStackAddendum()); + } + } + + if (typeof fn.getDerivedStateFromProps === "function") { + var _componentName = getComponentName(workInProgress) || "Unknown"; + + if (!didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName]) { + warning(false, "%s: Stateless functional components do not support getDerivedStateFromProps.", _componentName); + didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName] = true; + } + } + } + reconcileChildren(current, workInProgress, value); + memoizeProps(workInProgress, props); + return workInProgress.child; + } + } + + function updateTimeoutComponent(current, workInProgress, renderExpirationTime) { + if (enableSuspense) { + var nextProps = workInProgress.pendingProps; + var prevProps = workInProgress.memoizedProps; + var prevDidTimeout = workInProgress.memoizedState; + var alreadyCaptured = (workInProgress.effectTag & DidCapture) === NoEffect; + var nextDidTimeout = !alreadyCaptured; + + if (hasContextChanged()) {} else if (nextProps === prevProps && nextDidTimeout === prevDidTimeout) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var render = nextProps.children; + var nextChildren = render(nextDidTimeout); + workInProgress.memoizedProps = nextProps; + workInProgress.memoizedState = nextDidTimeout; + reconcileChildren(current, workInProgress, nextChildren); + return workInProgress.child; + } else { + return null; + } + } + + function updatePortalComponent(current, workInProgress, renderExpirationTime) { + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + var nextChildren = workInProgress.pendingProps; + + if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextChildren) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + if (current === null) { + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + memoizeProps(workInProgress, nextChildren); + } else { + reconcileChildren(current, workInProgress, nextChildren); + memoizeProps(workInProgress, nextChildren); + } + + return workInProgress.child; + } + + function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { + var fiber = workInProgress.child; + + if (fiber !== null) { + fiber.return = workInProgress; + } + + while (fiber !== null) { + var nextFiber = void 0; + + switch (fiber.tag) { + case ContextConsumer: + var observedBits = fiber.stateNode | 0; + + if (fiber.type === context && (observedBits & changedBits) !== 0) { + var node = fiber; + + while (node !== null) { + var alternate = node.alternate; + + if (node.expirationTime === NoWork || node.expirationTime > renderExpirationTime) { + node.expirationTime = renderExpirationTime; + + if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) { + alternate.expirationTime = renderExpirationTime; + } + } else if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) { + alternate.expirationTime = renderExpirationTime; + } else { + break; + } + + node = node.return; + } + + nextFiber = null; + } else { + nextFiber = fiber.child; + } + + break; + + case ContextProvider: + nextFiber = fiber.type === workInProgress.type ? null : fiber.child; + break; + + default: + nextFiber = fiber.child; + break; + } + + if (nextFiber !== null) { + nextFiber.return = fiber; + } else { + nextFiber = fiber; + + while (nextFiber !== null) { + if (nextFiber === workInProgress) { + nextFiber = null; + break; + } + + var sibling = nextFiber.sibling; + + if (sibling !== null) { + sibling.return = nextFiber.return; + nextFiber = sibling; + break; + } + + nextFiber = nextFiber.return; + } + } + + fiber = nextFiber; + } + } + + function updateContextProvider(current, workInProgress, renderExpirationTime) { + var providerType = workInProgress.type; + var context = providerType._context; + var newProps = workInProgress.pendingProps; + var oldProps = workInProgress.memoizedProps; + var canBailOnProps = true; + + if (hasContextChanged()) { + canBailOnProps = false; + } else if (oldProps === newProps) { + workInProgress.stateNode = 0; + pushProvider(workInProgress); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var newValue = newProps.value; + workInProgress.memoizedProps = newProps; + { + var providerPropTypes = workInProgress.type.propTypes; + + if (providerPropTypes) { + checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider", getCurrentFiberStackAddendum$1); + } + } + var changedBits = void 0; + + if (oldProps === null) { + changedBits = MAX_SIGNED_31_BIT_INT; + } else { + if (oldProps.value === newProps.value) { + if (oldProps.children === newProps.children && canBailOnProps) { + workInProgress.stateNode = 0; + pushProvider(workInProgress); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + changedBits = 0; + } else { + var oldValue = oldProps.value; + + if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { + if (oldProps.children === newProps.children && canBailOnProps) { + workInProgress.stateNode = 0; + pushProvider(workInProgress); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + changedBits = 0; + } else { + changedBits = typeof context._calculateChangedBits === "function" ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; + { + !((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits) ? warning(false, "calculateChangedBits: Expected the return value to be a " + "31-bit integer. Instead received: %s", changedBits) : void 0; + } + changedBits |= 0; + + if (changedBits === 0) { + if (oldProps.children === newProps.children && canBailOnProps) { + workInProgress.stateNode = 0; + pushProvider(workInProgress); + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + } else { + propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); + } + } + } + } + + workInProgress.stateNode = changedBits; + pushProvider(workInProgress); + var newChildren = newProps.children; + reconcileChildren(current, workInProgress, newChildren); + return workInProgress.child; + } + + function updateContextConsumer(current, workInProgress, renderExpirationTime) { + var context = workInProgress.type; + var newProps = workInProgress.pendingProps; + var oldProps = workInProgress.memoizedProps; + var newValue = getContextCurrentValue(context); + var changedBits = getContextChangedBits(context); + + if (hasContextChanged()) {} else if (changedBits === 0 && oldProps === newProps) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + workInProgress.memoizedProps = newProps; + var observedBits = newProps.unstable_observedBits; + + if (observedBits === undefined || observedBits === null) { + observedBits = MAX_SIGNED_31_BIT_INT; + } + + workInProgress.stateNode = observedBits; + + if ((changedBits & observedBits) !== 0) { + propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); + } else if (oldProps === newProps) { + return bailoutOnAlreadyFinishedWork(current, workInProgress); + } + + var render = newProps.children; + { + !(typeof render === "function") ? warning(false, "A context consumer was rendered with multiple children, or a child " + "that isn't a function. A context consumer expects a single child " + "that is a function. If you did pass a function, make sure there " + "is no trailing or leading whitespace around it.") : void 0; + } + var newChildren = void 0; + { + ReactCurrentOwner.current = workInProgress; + ReactDebugCurrentFiber.setCurrentPhase("render"); + newChildren = render(newValue); + ReactDebugCurrentFiber.setCurrentPhase(null); + } + workInProgress.effectTag |= PerformedWork; + reconcileChildren(current, workInProgress, newChildren); + return workInProgress.child; + } + + function bailoutOnAlreadyFinishedWork(current, workInProgress) { + cancelWorkTimer(workInProgress); + + if (enableProfilerTimer) { + stopBaseRenderTimerIfRunning(); + } + + cloneChildFibers(current, workInProgress); + return workInProgress.child; + } + + function bailoutOnLowPriority(current, workInProgress) { + cancelWorkTimer(workInProgress); + + if (enableProfilerTimer) { + stopBaseRenderTimerIfRunning(); + } + + switch (workInProgress.tag) { + case HostRoot: + pushHostRootContext(workInProgress); + break; + + case ClassComponent: + pushContextProvider(workInProgress); + break; + + case HostPortal: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + + case ContextProvider: + pushProvider(workInProgress); + break; + } + + return null; + } + + function memoizeProps(workInProgress, nextProps) { + workInProgress.memoizedProps = nextProps; + } + + function memoizeState(workInProgress, nextState) { + workInProgress.memoizedState = nextState; + } + + function beginWork(current, workInProgress, renderExpirationTime) { + if (enableProfilerTimer) { + if (workInProgress.mode & ProfileMode) { + markActualRenderTimeStarted(workInProgress); + } + } + + if (workInProgress.expirationTime === NoWork || workInProgress.expirationTime > renderExpirationTime) { + return bailoutOnLowPriority(current, workInProgress); + } + + switch (workInProgress.tag) { + case IndeterminateComponent: + return mountIndeterminateComponent(current, workInProgress, renderExpirationTime); + + case FunctionalComponent: + return updateFunctionalComponent(current, workInProgress); + + case ClassComponent: + return updateClassComponent(current, workInProgress, renderExpirationTime); + + case HostRoot: + return updateHostRoot(current, workInProgress, renderExpirationTime); + + case HostComponent: + return updateHostComponent(current, workInProgress, renderExpirationTime); + + case HostText: + return updateHostText(current, workInProgress); + + case TimeoutComponent: + return updateTimeoutComponent(current, workInProgress, renderExpirationTime); + + case HostPortal: + return updatePortalComponent(current, workInProgress, renderExpirationTime); + + case ForwardRef: + return updateForwardRef(current, workInProgress); + + case Fragment: + return updateFragment(current, workInProgress); + + case Mode: + return updateMode(current, workInProgress); + + case Profiler: + return updateProfiler(current, workInProgress); + + case ContextProvider: + return updateContextProvider(current, workInProgress, renderExpirationTime); + + case ContextConsumer: + return updateContextConsumer(current, workInProgress, renderExpirationTime); + + default: + invariant(false, "Unknown unit of work tag. This error is likely caused by a bug in " + "React. Please file an issue."); + } + } + + function markUpdate(workInProgress) { + workInProgress.effectTag |= Update; + } + + function markRef$1(workInProgress) { + workInProgress.effectTag |= Ref; + } + + function appendAllChildren(parent, workInProgress) { + var node = workInProgress.child; + + while (node !== null) { + if (node.tag === HostComponent || node.tag === HostText) { + appendInitialChild(parent, node.stateNode); + } else if (node.tag === HostPortal) {} else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === workInProgress) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + var updateHostContainer = void 0; + var updateHostComponent$1 = void 0; + var updateHostText$1 = void 0; + + if (supportsMutation) { + updateHostContainer = function updateHostContainer(workInProgress) {}; + + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { + workInProgress.updateQueue = updatePayload; + + if (updatePayload) { + markUpdate(workInProgress); + } + }; + + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + if (oldText !== newText) { + markUpdate(workInProgress); + } + }; + } else if (supportsPersistence) { + var appendAllChildrenToContainer = function appendAllChildrenToContainer(containerChildSet, workInProgress) { + var node = workInProgress.child; + + while (node !== null) { + if (node.tag === HostComponent || node.tag === HostText) { + appendChildToContainerChildSet(containerChildSet, node.stateNode); + } else if (node.tag === HostPortal) {} else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === workInProgress) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + }; + + updateHostContainer = function updateHostContainer(workInProgress) { + var portalOrRoot = workInProgress.stateNode; + var childrenUnchanged = workInProgress.firstEffect === null; + + if (childrenUnchanged) {} else { + var container = portalOrRoot.containerInfo; + var newChildSet = createContainerChildSet(container); + appendAllChildrenToContainer(newChildSet, workInProgress); + portalOrRoot.pendingChildren = newChildSet; + markUpdate(workInProgress); + finalizeContainerChildren(container, newChildSet); + } + }; + + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { + var childrenUnchanged = workInProgress.firstEffect === null; + var currentInstance = current.stateNode; + + if (childrenUnchanged && updatePayload === null) { + workInProgress.stateNode = currentInstance; + } else { + var recyclableInstance = workInProgress.stateNode; + var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance); + + if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) { + markUpdate(workInProgress); + } + + workInProgress.stateNode = newInstance; + + if (childrenUnchanged) { + markUpdate(workInProgress); + } else { + appendAllChildren(newInstance, workInProgress); + } + } + }; + + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + if (oldText !== newText) { + var rootContainerInstance = getRootHostContainer(); + var currentHostContext = getHostContext(); + workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress); + markUpdate(workInProgress); + } + }; + } else { + updateHostContainer = function updateHostContainer(workInProgress) {}; + + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) {}; + + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) {}; + } + + function completeWork(current, workInProgress, renderExpirationTime) { + var newProps = workInProgress.pendingProps; + + if (enableProfilerTimer) { + if (workInProgress.mode & ProfileMode) { + recordElapsedActualRenderTime(workInProgress); + } + } + + switch (workInProgress.tag) { + case FunctionalComponent: + return null; + + case ClassComponent: + { + popContextProvider(workInProgress); + return null; + } + + case HostRoot: + { + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + var fiberRoot = workInProgress.stateNode; + + if (fiberRoot.pendingContext) { + fiberRoot.context = fiberRoot.pendingContext; + fiberRoot.pendingContext = null; + } + + if (current === null || current.child === null) { + popHydrationState(workInProgress); + workInProgress.effectTag &= ~Placement; + } + + updateHostContainer(workInProgress); + return null; + } + + case HostComponent: + { + popHostContext(workInProgress); + var rootContainerInstance = getRootHostContainer(); + var type = workInProgress.type; + + if (current !== null && workInProgress.stateNode != null) { + var oldProps = current.memoizedProps; + var instance = workInProgress.stateNode; + var currentHostContext = getHostContext(); + var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); + updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext); + + if (current.ref !== workInProgress.ref) { + markRef$1(workInProgress); + } + } else { + if (!newProps) { + invariant(workInProgress.stateNode !== null, "We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + return null; + } + + var _currentHostContext = getHostContext(); + + var wasHydrated = popHydrationState(workInProgress); + + if (wasHydrated) { + if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, _currentHostContext)) { + markUpdate(workInProgress); + } + } else { + var _instance = createInstance(type, newProps, rootContainerInstance, _currentHostContext, workInProgress); + + appendAllChildren(_instance, workInProgress); + + if (finalizeInitialChildren(_instance, type, newProps, rootContainerInstance, _currentHostContext)) { + markUpdate(workInProgress); + } + + workInProgress.stateNode = _instance; + } + + if (workInProgress.ref !== null) { + markRef$1(workInProgress); + } + } + + return null; + } + + case HostText: + { + var newText = newProps; + + if (current && workInProgress.stateNode != null) { + var oldText = current.memoizedProps; + updateHostText$1(current, workInProgress, oldText, newText); + } else { + if (typeof newText !== "string") { + invariant(workInProgress.stateNode !== null, "We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); + return null; + } + + var _rootContainerInstance = getRootHostContainer(); + + var _currentHostContext2 = getHostContext(); + + var _wasHydrated = popHydrationState(workInProgress); + + if (_wasHydrated) { + if (prepareToHydrateHostTextInstance(workInProgress)) { + markUpdate(workInProgress); + } + } else { + workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext2, workInProgress); + } + } + + return null; + } + + case ForwardRef: + return null; + + case TimeoutComponent: + return null; + + case Fragment: + return null; + + case Mode: + return null; + + case Profiler: + return null; + + case HostPortal: + popHostContainer(workInProgress); + updateHostContainer(workInProgress); + return null; + + case ContextProvider: + popProvider(workInProgress); + return null; + + case ContextConsumer: + return null; + + case IndeterminateComponent: + invariant(false, "An indeterminate component should have become determinate before " + "completing. This error is likely caused by a bug in React. Please " + "file an issue."); + + default: + invariant(false, "Unknown unit of work tag. This error is likely caused by a bug in " + "React. Please file an issue."); + } + } + + function showErrorDialog(capturedError) { + var componentStack = capturedError.componentStack, + error = capturedError.error; + var errorToHandle = void 0; + + if (error instanceof Error) { + var message = error.message, + name = error.name; + var summary = message ? name + ": " + message : name; + errorToHandle = error; + + try { + errorToHandle.message = summary + "\n\nThis error is located at:" + componentStack; + } catch (e) {} + } else if (typeof error === "string") { + errorToHandle = new Error(error + "\n\nThis error is located at:" + componentStack); + } else { + errorToHandle = new Error("Unspecified error at:" + componentStack); + } + + ExceptionsManager.handleException(errorToHandle, false); + return false; + } + + function logCapturedError(capturedError) { + var logError = showErrorDialog(capturedError); + + if (logError === false) { + return; + } + + var error = capturedError.error; + var suppressLogging = error && error.suppressReactErrorLogging; + + if (suppressLogging) { + return; + } + + { + var componentName = capturedError.componentName, + componentStack = capturedError.componentStack, + errorBoundaryName = capturedError.errorBoundaryName, + errorBoundaryFound = capturedError.errorBoundaryFound, + willRetry = capturedError.willRetry; + var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:"; + var errorBoundaryMessage = void 0; + + if (errorBoundaryFound && errorBoundaryName) { + if (willRetry) { + errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); + } else { + errorBoundaryMessage = "This error was initially handled by the error boundary " + errorBoundaryName + ".\n" + "Recreating the tree from scratch failed so React will unmount the tree."; + } + } else { + errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + "Visit https://fb.me/react-error-boundaries to learn more about error boundaries."; + } + + var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + ("" + errorBoundaryMessage); + console.error(combinedMessage); + } + } + + var invokeGuardedCallback$3 = ReactErrorUtils.invokeGuardedCallback; + var hasCaughtError$1 = ReactErrorUtils.hasCaughtError; + var clearCaughtError$1 = ReactErrorUtils.clearCaughtError; + var didWarnAboutUndefinedSnapshotBeforeUpdate = null; + { + didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); + } + + function logError(boundary, errorInfo) { + var source = errorInfo.source; + var stack = errorInfo.stack; + + if (stack === null && source !== null) { + stack = getStackAddendumByWorkInProgressFiber(source); + } + + var capturedError = { + componentName: source !== null ? getComponentName(source) : null, + componentStack: stack !== null ? stack : "", + error: errorInfo.value, + errorBoundary: null, + errorBoundaryName: null, + errorBoundaryFound: false, + willRetry: false + }; + + if (boundary !== null && boundary.tag === ClassComponent) { + capturedError.errorBoundary = boundary.stateNode; + capturedError.errorBoundaryName = getComponentName(boundary); + capturedError.errorBoundaryFound = true; + capturedError.willRetry = true; + } + + try { + logCapturedError(capturedError); + } catch (e) { + var suppressLogging = e && e.suppressReactErrorLogging; + + if (!suppressLogging) { + console.error(e); + } + } + } + + var callComponentWillUnmountWithTimer = function callComponentWillUnmountWithTimer(current, instance) { + startPhaseTimer(current, "componentWillUnmount"); + instance.props = current.memoizedProps; + instance.state = current.memoizedState; + instance.componentWillUnmount(); + stopPhaseTimer(); + }; + + function safelyCallComponentWillUnmount(current, instance) { + { + invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance); + + if (hasCaughtError$1()) { + var unmountError = clearCaughtError$1(); + captureCommitPhaseError(current, unmountError); + } + } + } + + function safelyDetachRef(current) { + var ref = current.ref; + + if (ref !== null) { + if (typeof ref === "function") { + { + invokeGuardedCallback$3(null, ref, null, null); + + if (hasCaughtError$1()) { + var refError = clearCaughtError$1(); + captureCommitPhaseError(current, refError); + } + } + } else { + ref.current = null; + } + } + } + + function commitBeforeMutationLifeCycles(current, finishedWork) { + switch (finishedWork.tag) { + case ClassComponent: + { + if (finishedWork.effectTag & Snapshot) { + if (current !== null) { + var prevProps = current.memoizedProps; + var prevState = current.memoizedState; + startPhaseTimer(finishedWork, "getSnapshotBeforeUpdate"); + var instance = finishedWork.stateNode; + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState); + { + var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; + + if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) { + didWarnSet.add(finishedWork.type); + warning(false, "%s.getSnapshotBeforeUpdate(): A snapshot value (or null) " + "must be returned. You have returned undefined.", getComponentName(finishedWork)); + } + } + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + stopPhaseTimer(); + } + } + + return; + } + + case HostRoot: + case HostComponent: + case HostText: + case HostPortal: + return; + + default: + { + invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); + } + } + } + + function commitLifeCycles(finishedRoot, current, finishedWork, currentTime, committedExpirationTime) { + switch (finishedWork.tag) { + case ClassComponent: + { + var instance = finishedWork.stateNode; + + if (finishedWork.effectTag & Update) { + if (current === null) { + startPhaseTimer(finishedWork, "componentDidMount"); + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + instance.componentDidMount(); + stopPhaseTimer(); + } else { + var prevProps = current.memoizedProps; + var prevState = current.memoizedState; + startPhaseTimer(finishedWork, "componentDidUpdate"); + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + stopPhaseTimer(); + } + } + + var updateQueue = finishedWork.updateQueue; + + if (updateQueue !== null) { + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime); + } + + return; + } + + case HostRoot: + { + var _updateQueue = finishedWork.updateQueue; + + if (_updateQueue !== null) { + var _instance = null; + + if (finishedWork.child !== null) { + switch (finishedWork.child.tag) { + case HostComponent: + _instance = getPublicInstance(finishedWork.child.stateNode); + break; + + case ClassComponent: + _instance = finishedWork.child.stateNode; + break; + } + } + + commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime); + } + + return; + } + + case HostComponent: + { + var _instance2 = finishedWork.stateNode; + + if (current === null && finishedWork.effectTag & Update) { + var type = finishedWork.type; + var props = finishedWork.memoizedProps; + commitMount(_instance2, type, props, finishedWork); + } + + return; + } + + case HostText: + { + return; + } + + case HostPortal: + { + return; + } + + case Profiler: + { + return; + } + + case TimeoutComponent: + { + return; + } + + default: + { + invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); + } + } + } + + function commitAttachRef(finishedWork) { + var ref = finishedWork.ref; + + if (ref !== null) { + var instance = finishedWork.stateNode; + var instanceToUse = void 0; + + switch (finishedWork.tag) { + case HostComponent: + instanceToUse = getPublicInstance(instance); + break; + + default: + instanceToUse = instance; + } + + if (typeof ref === "function") { + ref(instanceToUse); + } else { + { + if (!ref.hasOwnProperty("current")) { + warning(false, "Unexpected ref object provided for %s. " + "Use either a ref-setter function or React.createRef().%s", getComponentName(finishedWork), getStackAddendumByWorkInProgressFiber(finishedWork)); + } + } + ref.current = instanceToUse; + } + } + } + + function commitDetachRef(current) { + var currentRef = current.ref; + + if (currentRef !== null) { + if (typeof currentRef === "function") { + currentRef(null); + } else { + currentRef.current = null; + } + } + } + + function commitUnmount(current) { + if (typeof onCommitUnmount === "function") { + onCommitUnmount(current); + } + + switch (current.tag) { + case ClassComponent: + { + safelyDetachRef(current); + var instance = current.stateNode; + + if (typeof instance.componentWillUnmount === "function") { + safelyCallComponentWillUnmount(current, instance); + } + + return; + } + + case HostComponent: + { + safelyDetachRef(current); + return; + } + + case HostPortal: + { + if (supportsMutation) { + unmountHostComponents(current); + } else if (supportsPersistence) { + emptyPortalContainer(current); + } + + return; + } + } + } + + function commitNestedUnmounts(root) { + var node = root; + + while (true) { + commitUnmount(node); + + if (node.child !== null && (!supportsMutation || node.tag !== HostPortal)) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === root) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === root) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function detachFiber(current) { + current.return = null; + current.child = null; + + if (current.alternate) { + current.alternate.child = null; + current.alternate.return = null; + } + } + + function emptyPortalContainer(current) { + if (!supportsPersistence) { + return; + } + + var portal = current.stateNode; + var containerInfo = portal.containerInfo; + var emptyChildSet = createContainerChildSet(containerInfo); + } + + function commitContainer(finishedWork) { + if (!supportsPersistence) { + return; + } + + switch (finishedWork.tag) { + case ClassComponent: + { + return; + } + + case HostComponent: + { + return; + } + + case HostText: + { + return; + } + + case HostRoot: + case HostPortal: + { + var portalOrRoot = finishedWork.stateNode; + var containerInfo = portalOrRoot.containerInfo, + _pendingChildren = portalOrRoot.pendingChildren; + return; + } + + default: + { + invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); + } + } + } + + function getHostParentFiber(fiber) { + var parent = fiber.return; + + while (parent !== null) { + if (isHostParent(parent)) { + return parent; + } + + parent = parent.return; + } + + invariant(false, "Expected to find a host parent. This error is likely caused by a bug " + "in React. Please file an issue."); + } + + function isHostParent(fiber) { + return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; + } + + function getHostSibling(fiber) { + var node = fiber; + + siblings: while (true) { + while (node.sibling === null) { + if (node.return === null || isHostParent(node.return)) { + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + + while (node.tag !== HostComponent && node.tag !== HostText) { + if (node.effectTag & Placement) { + continue siblings; + } + + if (node.child === null || node.tag === HostPortal) { + continue siblings; + } else { + node.child.return = node; + node = node.child; + } + } + + if (!(node.effectTag & Placement)) { + return node.stateNode; + } + } + } + + function commitPlacement(finishedWork) { + if (!supportsMutation) { + return; + } + + var parentFiber = getHostParentFiber(finishedWork); + var parent = void 0; + var isContainer = void 0; + + switch (parentFiber.tag) { + case HostComponent: + parent = parentFiber.stateNode; + isContainer = false; + break; + + case HostRoot: + parent = parentFiber.stateNode.containerInfo; + isContainer = true; + break; + + case HostPortal: + parent = parentFiber.stateNode.containerInfo; + isContainer = true; + break; + + default: + invariant(false, "Invalid host parent fiber. This error is likely caused by a bug " + "in React. Please file an issue."); + } + + if (parentFiber.effectTag & ContentReset) { + resetTextContent(parent); + parentFiber.effectTag &= ~ContentReset; + } + + var before = getHostSibling(finishedWork); + var node = finishedWork; + + while (true) { + if (node.tag === HostComponent || node.tag === HostText) { + if (before) { + if (isContainer) { + insertInContainerBefore(parent, node.stateNode, before); + } else { + insertBefore(parent, node.stateNode, before); + } + } else { + if (isContainer) { + appendChildToContainer(parent, node.stateNode); + } else { + appendChild$1(parent, node.stateNode); + } + } + } else if (node.tag === HostPortal) {} else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === finishedWork) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function unmountHostComponents(current) { + var node = current; + var currentParentIsValid = false; + var currentParent = void 0; + var currentParentIsContainer = void 0; + + while (true) { + if (!currentParentIsValid) { + var parent = node.return; + + findParent: while (true) { + invariant(parent !== null, "Expected to find a host parent. This error is likely caused by " + "a bug in React. Please file an issue."); + + switch (parent.tag) { + case HostComponent: + currentParent = parent.stateNode; + currentParentIsContainer = false; + break findParent; + + case HostRoot: + currentParent = parent.stateNode.containerInfo; + currentParentIsContainer = true; + break findParent; + + case HostPortal: + currentParent = parent.stateNode.containerInfo; + currentParentIsContainer = true; + break findParent; + } + + parent = parent.return; + } + + currentParentIsValid = true; + } + + if (node.tag === HostComponent || node.tag === HostText) { + commitNestedUnmounts(node); + + if (currentParentIsContainer) { + removeChildFromContainer(currentParent, node.stateNode); + } else { + removeChild(currentParent, node.stateNode); + } + } else if (node.tag === HostPortal) { + currentParent = node.stateNode.containerInfo; + + if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + } else { + commitUnmount(node); + + if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + } + + if (node === current) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === current) { + return; + } + + node = node.return; + + if (node.tag === HostPortal) { + currentParentIsValid = false; + } + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function commitDeletion(current) { + if (supportsMutation) { + unmountHostComponents(current); + } else { + commitNestedUnmounts(current); + } + + detachFiber(current); + } + + function commitWork(current, finishedWork) { + if (!supportsMutation) { + commitContainer(finishedWork); + return; + } + + switch (finishedWork.tag) { + case ClassComponent: + { + return; + } + + case HostComponent: + { + var instance = finishedWork.stateNode; + + if (instance != null) { + var newProps = finishedWork.memoizedProps; + var oldProps = current !== null ? current.memoizedProps : newProps; + var type = finishedWork.type; + var updatePayload = finishedWork.updateQueue; + finishedWork.updateQueue = null; + + if (updatePayload !== null) { + commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork); + } + } + + return; + } + + case HostText: + { + invariant(finishedWork.stateNode !== null, "This should have a text node initialized. This error is likely " + "caused by a bug in React. Please file an issue."); + var textInstance = finishedWork.stateNode; + var newText = finishedWork.memoizedProps; + var oldText = current !== null ? current.memoizedProps : newText; + commitTextUpdate(textInstance, oldText, newText); + return; + } + + case HostRoot: + { + return; + } + + case Profiler: + { + if (enableProfilerTimer) { + var onRender = finishedWork.memoizedProps.onRender; + onRender(finishedWork.memoizedProps.id, current === null ? "mount" : "update", finishedWork.actualDuration, finishedWork.treeBaseTime, finishedWork.actualStartTime, getCommitTime()); + } + + return; + } + + case TimeoutComponent: + { + return; + } + + default: + { + invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); + } + } + } + + function commitResetTextContent(current) { + if (!supportsMutation) { + return; + } + + resetTextContent(current.stateNode); + } + + function createRootErrorUpdate(fiber, errorInfo, expirationTime) { + var update = createUpdate(expirationTime); + update.tag = CaptureUpdate; + update.payload = { + element: null + }; + var error = errorInfo.value; + + update.callback = function () { + onUncaughtError(error); + logError(fiber, errorInfo); + }; + + return update; + } + + function createClassErrorUpdate(fiber, errorInfo, expirationTime) { + var update = createUpdate(expirationTime); + update.tag = CaptureUpdate; + var getDerivedStateFromCatch = fiber.type.getDerivedStateFromCatch; + + if (enableGetDerivedStateFromCatch && typeof getDerivedStateFromCatch === "function") { + var error = errorInfo.value; + + update.payload = function () { + return getDerivedStateFromCatch(error); + }; + } + + var inst = fiber.stateNode; + + if (inst !== null && typeof inst.componentDidCatch === "function") { + update.callback = function callback() { + if (!enableGetDerivedStateFromCatch || getDerivedStateFromCatch !== "function") { + markLegacyErrorBoundaryAsFailed(this); + } + + var error = errorInfo.value; + var stack = errorInfo.stack; + logError(fiber, errorInfo); + this.componentDidCatch(error, { + componentStack: stack !== null ? stack : "" + }); + }; + } + + return update; + } + + function schedulePing(finishedWork) { + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, finishedWork); + var recoveryUpdate = createUpdate(expirationTime); + enqueueUpdate(finishedWork, recoveryUpdate, expirationTime); + scheduleWork(finishedWork, expirationTime); + } + + function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime, currentTimeMs) { + sourceFiber.effectTag |= Incomplete; + sourceFiber.firstEffect = sourceFiber.lastEffect = null; + + if (enableSuspense && value !== null && typeof value === "object" && typeof value.then === "function") { + var thenable = value; + var expirationTimeMs = expirationTimeToMs(renderExpirationTime); + var startTimeMs = expirationTimeMs - 5000; + var elapsedMs = currentTimeMs - startTimeMs; + + if (elapsedMs < 0) { + elapsedMs = 0; + } + + var remainingTimeMs = expirationTimeMs - currentTimeMs; + var _workInProgress = returnFiber; + var earliestTimeoutMs = -1; + + searchForEarliestTimeout: do { + if (_workInProgress.tag === TimeoutComponent) { + var current = _workInProgress.alternate; + + if (current !== null && current.memoizedState === true) { + earliestTimeoutMs = 0; + break searchForEarliestTimeout; + } + + var timeoutPropMs = _workInProgress.pendingProps.ms; + + if (typeof timeoutPropMs === "number") { + if (timeoutPropMs <= 0) { + earliestTimeoutMs = 0; + break searchForEarliestTimeout; + } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) { + earliestTimeoutMs = timeoutPropMs; + } + } else if (earliestTimeoutMs === -1) { + earliestTimeoutMs = remainingTimeMs; + } + } + + _workInProgress = _workInProgress.return; + } while (_workInProgress !== null); + + var msUntilTimeout = earliestTimeoutMs - elapsedMs; + + if (renderExpirationTime === Never || msUntilTimeout > 0) { + markTimeout(root, thenable, msUntilTimeout, renderExpirationTime); + + var onResolveOrReject = function onResolveOrReject() { + retrySuspendedRoot(root, renderExpirationTime); + }; + + thenable.then(onResolveOrReject, onResolveOrReject); + return; + } else { + _workInProgress = returnFiber; + + do { + switch (_workInProgress.tag) { + case HostRoot: + { + var message = renderExpirationTime === Sync ? "A synchronous update was suspended, but no fallback UI " + "was provided." : "An update was suspended for longer than the timeout, " + "but no fallback UI was provided."; + value = new Error(message); + break; + } + + case TimeoutComponent: + { + if ((_workInProgress.effectTag & DidCapture) === NoEffect) { + _workInProgress.effectTag |= ShouldCapture; + + var _onResolveOrReject = schedulePing.bind(null, _workInProgress); + + thenable.then(_onResolveOrReject, _onResolveOrReject); + return; + } + + break; + } + } + + _workInProgress = _workInProgress.return; + } while (_workInProgress !== null); + } + } else { + markError(root); + + if (!root.didError && renderExpirationTime !== Sync || hasLowerPriorityWork(root, renderExpirationTime)) { + return; + } + } + + value = createCapturedValue(value, sourceFiber); + var workInProgress = returnFiber; + + do { + switch (workInProgress.tag) { + case HostRoot: + { + var _errorInfo = value; + workInProgress.effectTag |= ShouldCapture; + var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime); + enqueueCapturedUpdate(workInProgress, update, renderExpirationTime); + return; + } + + case ClassComponent: + var errorInfo = value; + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + + if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromCatch === "function" && enableGetDerivedStateFromCatch || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { + workInProgress.effectTag |= ShouldCapture; + + var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime); + + enqueueCapturedUpdate(workInProgress, _update, renderExpirationTime); + return; + } + + break; + + default: + break; + } + + workInProgress = workInProgress.return; + } while (workInProgress !== null); + } + + function unwindWork(workInProgress, renderExpirationTime) { + if (enableProfilerTimer) { + if (workInProgress.mode & ProfileMode) { + recordElapsedActualRenderTime(workInProgress); + } + } + + switch (workInProgress.tag) { + case ClassComponent: + { + popContextProvider(workInProgress); + var effectTag = workInProgress.effectTag; + + if (effectTag & ShouldCapture) { + workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; + return workInProgress; + } + + return null; + } + + case HostRoot: + { + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + var _effectTag = workInProgress.effectTag; + + if (_effectTag & ShouldCapture) { + workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; + return workInProgress; + } + + return null; + } + + case HostComponent: + { + popHostContext(workInProgress); + return null; + } + + case TimeoutComponent: + { + var _effectTag2 = workInProgress.effectTag; + + if (_effectTag2 & ShouldCapture) { + workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; + return workInProgress; + } + + return null; + } + + case HostPortal: + popHostContainer(workInProgress); + return null; + + case ContextProvider: + popProvider(workInProgress); + return null; + + default: + return null; + } + } + + function unwindInterruptedWork(interruptedWork) { + if (enableProfilerTimer) { + if (interruptedWork.mode & ProfileMode) { + resumeActualRenderTimerIfPaused(); + recordElapsedActualRenderTime(interruptedWork); + } + } + + switch (interruptedWork.tag) { + case ClassComponent: + { + popContextProvider(interruptedWork); + break; + } + + case HostRoot: + { + popHostContainer(interruptedWork); + popTopLevelContextObject(interruptedWork); + break; + } + + case HostComponent: + { + popHostContext(interruptedWork); + break; + } + + case HostPortal: + popHostContainer(interruptedWork); + break; + + case ContextProvider: + popProvider(interruptedWork); + break; + + default: + break; + } + } + + var invokeGuardedCallback$2 = ReactErrorUtils.invokeGuardedCallback; + var hasCaughtError = ReactErrorUtils.hasCaughtError; + var clearCaughtError = ReactErrorUtils.clearCaughtError; + var didWarnAboutStateTransition = void 0; + var didWarnSetStateChildContext = void 0; + var warnAboutUpdateOnUnmounted = void 0; + var warnAboutInvalidUpdates = void 0; + { + didWarnAboutStateTransition = false; + didWarnSetStateChildContext = false; + var didWarnStateUpdateForUnmountedComponent = {}; + + warnAboutUpdateOnUnmounted = function warnAboutUpdateOnUnmounted(fiber) { + var componentName = getComponentName(fiber) || "ReactClass"; + + if (didWarnStateUpdateForUnmountedComponent[componentName]) { + return; + } + + warning(false, "Can't call setState (or forceUpdate) on an unmounted component. This " + "is a no-op, but it indicates a memory leak in your application. To " + "fix, cancel all subscriptions and asynchronous tasks in the " + "componentWillUnmount method.%s", getStackAddendumByWorkInProgressFiber(fiber)); + didWarnStateUpdateForUnmountedComponent[componentName] = true; + }; + + warnAboutInvalidUpdates = function warnAboutInvalidUpdates(instance) { + switch (ReactDebugCurrentFiber.phase) { + case "getChildContext": + if (didWarnSetStateChildContext) { + return; + } + + warning(false, "setState(...): Cannot call setState() inside getChildContext()"); + didWarnSetStateChildContext = true; + break; + + case "render": + if (didWarnAboutStateTransition) { + return; + } + + warning(false, "Cannot update during an existing state transition (such as within " + "`render` or another component's constructor). Render methods should " + "be a pure function of props and state; constructor side-effects are " + "an anti-pattern, but can be moved to `componentWillMount`."); + didWarnAboutStateTransition = true; + break; + } + }; + } + var originalStartTimeMs = now(); + var mostRecentCurrentTime = msToExpirationTime(0); + var mostRecentCurrentTimeMs = originalStartTimeMs; + var lastUniqueAsyncExpiration = 0; + var expirationContext = NoWork; + var isWorking = false; + var nextUnitOfWork = null; + var nextRoot = null; + var nextRenderExpirationTime = NoWork; + var nextLatestTimeoutMs = -1; + var nextRenderDidError = false; + var nextEffect = null; + var isCommitting$1 = false; + var legacyErrorBoundariesThatAlreadyFailed = null; + var interruptedBy = null; + var stashedWorkInProgressProperties = void 0; + var replayUnitOfWork = void 0; + var isReplayingFailedUnitOfWork = void 0; + var originalReplayError = void 0; + var rethrowOriginalError = void 0; + + if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { + stashedWorkInProgressProperties = null; + isReplayingFailedUnitOfWork = false; + originalReplayError = null; + + replayUnitOfWork = function replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy) { + if (thrownValue !== null && typeof thrownValue === "object" && typeof thrownValue.then === "function") { + return; + } + + if (stashedWorkInProgressProperties === null) { + warning(false, "Could not replay rendering after an error. This is likely a bug in React. " + "Please file an issue."); + return; + } + + assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties); + + switch (failedUnitOfWork.tag) { + case HostRoot: + popHostContainer(failedUnitOfWork); + popTopLevelContextObject(failedUnitOfWork); + break; + + case HostComponent: + popHostContext(failedUnitOfWork); + break; + + case ClassComponent: + popContextProvider(failedUnitOfWork); + break; + + case HostPortal: + popHostContainer(failedUnitOfWork); + break; + + case ContextProvider: + popProvider(failedUnitOfWork); + break; + } + + isReplayingFailedUnitOfWork = true; + originalReplayError = thrownValue; + invokeGuardedCallback$2(null, workLoop, null, isYieldy); + isReplayingFailedUnitOfWork = false; + originalReplayError = null; + + if (hasCaughtError()) { + clearCaughtError(); + + if (enableProfilerTimer) { + if (failedUnitOfWork.mode & ProfileMode) { + recordElapsedActualRenderTime(failedUnitOfWork); + } + + stopBaseRenderTimerIfRunning(); + } + } else { + nextUnitOfWork = failedUnitOfWork; + } + }; + + rethrowOriginalError = function rethrowOriginalError() { + throw originalReplayError; + }; + } + + function resetStack() { + if (nextUnitOfWork !== null) { + var interruptedWork = nextUnitOfWork.return; + + while (interruptedWork !== null) { + unwindInterruptedWork(interruptedWork); + interruptedWork = interruptedWork.return; + } + } + + { + ReactStrictModeWarnings.discardPendingWarnings(); + checkThatStackIsEmpty(); + } + nextRoot = null; + nextRenderExpirationTime = NoWork; + nextLatestTimeoutMs = -1; + nextRenderDidError = false; + nextUnitOfWork = null; + } + + function commitAllHostEffects() { + while (nextEffect !== null) { + { + ReactDebugCurrentFiber.setCurrentFiber(nextEffect); + } + recordEffect(); + var effectTag = nextEffect.effectTag; + + if (effectTag & ContentReset) { + commitResetTextContent(nextEffect); + } + + if (effectTag & Ref) { + var current = nextEffect.alternate; + + if (current !== null) { + commitDetachRef(current); + } + } + + var primaryEffectTag = effectTag & (Placement | Update | Deletion); + + switch (primaryEffectTag) { + case Placement: + { + commitPlacement(nextEffect); + nextEffect.effectTag &= ~Placement; + break; + } + + case PlacementAndUpdate: + { + commitPlacement(nextEffect); + nextEffect.effectTag &= ~Placement; + var _current = nextEffect.alternate; + commitWork(_current, nextEffect); + break; + } + + case Update: + { + var _current2 = nextEffect.alternate; + commitWork(_current2, nextEffect); + break; + } + + case Deletion: + { + commitDeletion(nextEffect); + break; + } + } + + nextEffect = nextEffect.nextEffect; + } + + { + ReactDebugCurrentFiber.resetCurrentFiber(); + } + } + + function commitBeforeMutationLifecycles() { + while (nextEffect !== null) { + var effectTag = nextEffect.effectTag; + + if (effectTag & Snapshot) { + recordEffect(); + var current = nextEffect.alternate; + commitBeforeMutationLifeCycles(current, nextEffect); + } + + nextEffect = nextEffect.nextEffect; + } + } + + function commitAllLifeCycles(finishedRoot, currentTime, committedExpirationTime) { + { + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); + + if (warnAboutDeprecatedLifecycles) { + ReactStrictModeWarnings.flushPendingDeprecationWarnings(); + } + + if (warnAboutLegacyContextAPI) { + ReactStrictModeWarnings.flushLegacyContextWarning(); + } + } + + while (nextEffect !== null) { + var effectTag = nextEffect.effectTag; + + if (effectTag & (Update | Callback)) { + recordEffect(); + var current = nextEffect.alternate; + commitLifeCycles(finishedRoot, current, nextEffect, currentTime, committedExpirationTime); + } + + if (effectTag & Ref) { + recordEffect(); + commitAttachRef(nextEffect); + } + + var next = nextEffect.nextEffect; + nextEffect.nextEffect = null; + nextEffect = next; + } + } + + function isAlreadyFailedLegacyErrorBoundary(instance) { + return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); + } + + function markLegacyErrorBoundaryAsFailed(instance) { + if (legacyErrorBoundariesThatAlreadyFailed === null) { + legacyErrorBoundariesThatAlreadyFailed = new Set([instance]); + } else { + legacyErrorBoundariesThatAlreadyFailed.add(instance); + } + } + + function commitRoot(root, finishedWork) { + isWorking = true; + isCommitting$1 = true; + startCommitTimer(); + invariant(root.current !== finishedWork, "Cannot commit the same tree as before. This is probably a bug " + "related to the return field. This error is likely caused by a bug " + "in React. Please file an issue."); + var committedExpirationTime = root.pendingCommitExpirationTime; + invariant(committedExpirationTime !== NoWork, "Cannot commit an incomplete root. This error is likely caused by a " + "bug in React. Please file an issue."); + root.pendingCommitExpirationTime = NoWork; + var earliestRemainingTime = finishedWork.expirationTime; + var currentTime = recalculateCurrentTime(); + markCommittedPriorityLevels(root, currentTime, earliestRemainingTime); + ReactCurrentOwner.current = null; + var firstEffect = void 0; + + if (finishedWork.effectTag > PerformedWork) { + if (finishedWork.lastEffect !== null) { + finishedWork.lastEffect.nextEffect = finishedWork; + firstEffect = finishedWork.firstEffect; + } else { + firstEffect = finishedWork; + } + } else { + firstEffect = finishedWork.firstEffect; + } + + prepareForCommit(root.containerInfo); + nextEffect = firstEffect; + startCommitSnapshotEffectsTimer(); + + while (nextEffect !== null) { + var didError = false; + var error = void 0; + { + invokeGuardedCallback$2(null, commitBeforeMutationLifecycles, null); + + if (hasCaughtError()) { + didError = true; + error = clearCaughtError(); + } + } + + if (didError) { + invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); + captureCommitPhaseError(nextEffect, error); + + if (nextEffect !== null) { + nextEffect = nextEffect.nextEffect; + } + } + } + + stopCommitSnapshotEffectsTimer(); + + if (enableProfilerTimer) { + recordCommitTime(); + } + + nextEffect = firstEffect; + startCommitHostEffectsTimer(); + + while (nextEffect !== null) { + var _didError = false; + + var _error = void 0; + + { + invokeGuardedCallback$2(null, commitAllHostEffects, null); + + if (hasCaughtError()) { + _didError = true; + _error = clearCaughtError(); + } + } + + if (_didError) { + invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); + captureCommitPhaseError(nextEffect, _error); + + if (nextEffect !== null) { + nextEffect = nextEffect.nextEffect; + } + } + } + + stopCommitHostEffectsTimer(); + resetAfterCommit(root.containerInfo); + root.current = finishedWork; + nextEffect = firstEffect; + startCommitLifeCyclesTimer(); + + while (nextEffect !== null) { + var _didError2 = false; + + var _error2 = void 0; + + { + invokeGuardedCallback$2(null, commitAllLifeCycles, null, root, currentTime, committedExpirationTime); + + if (hasCaughtError()) { + _didError2 = true; + _error2 = clearCaughtError(); + } + } + + if (_didError2) { + invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); + captureCommitPhaseError(nextEffect, _error2); + + if (nextEffect !== null) { + nextEffect = nextEffect.nextEffect; + } + } + } + + if (enableProfilerTimer) { + { + checkActualRenderTimeStackEmpty(); + } + resetActualRenderTimer(); + } + + isCommitting$1 = false; + isWorking = false; + stopCommitLifeCyclesTimer(); + stopCommitTimer(); + + if (typeof onCommitRoot === "function") { + onCommitRoot(finishedWork.stateNode); + } + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork); + } + + var expirationTime = root.expirationTime; + + if (expirationTime === NoWork) { + legacyErrorBoundariesThatAlreadyFailed = null; + } + + onCommit(root, expirationTime); + } + + function resetExpirationTime(workInProgress, renderTime) { + if (renderTime !== Never && workInProgress.expirationTime === Never) { + return; + } + + var newExpirationTime = NoWork; + + switch (workInProgress.tag) { + case HostRoot: + case ClassComponent: + { + var updateQueue = workInProgress.updateQueue; + + if (updateQueue !== null) { + newExpirationTime = updateQueue.expirationTime; + } + } + } + + if (enableProfilerTimer && workInProgress.mode & ProfileMode) { + var treeBaseTime = workInProgress.selfBaseTime; + var child = workInProgress.child; + + while (child !== null) { + treeBaseTime += child.treeBaseTime; + + if (child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > child.expirationTime)) { + newExpirationTime = child.expirationTime; + } + + child = child.sibling; + } + + workInProgress.treeBaseTime = treeBaseTime; + } else { + var _child = workInProgress.child; + + while (_child !== null) { + if (_child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > _child.expirationTime)) { + newExpirationTime = _child.expirationTime; + } + + _child = _child.sibling; + } + } + + workInProgress.expirationTime = newExpirationTime; + } + + function completeUnitOfWork(workInProgress) { + while (true) { + var current = workInProgress.alternate; + { + ReactDebugCurrentFiber.setCurrentFiber(workInProgress); + } + var returnFiber = workInProgress.return; + var siblingFiber = workInProgress.sibling; + + if ((workInProgress.effectTag & Incomplete) === NoEffect) { + var next = completeWork(current, workInProgress, nextRenderExpirationTime); + stopWorkTimer(workInProgress); + resetExpirationTime(workInProgress, nextRenderExpirationTime); + { + ReactDebugCurrentFiber.resetCurrentFiber(); + } + + if (next !== null) { + stopWorkTimer(workInProgress); + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); + } + + return next; + } + + if (returnFiber !== null && (returnFiber.effectTag & Incomplete) === NoEffect) { + if (returnFiber.firstEffect === null) { + returnFiber.firstEffect = workInProgress.firstEffect; + } + + if (workInProgress.lastEffect !== null) { + if (returnFiber.lastEffect !== null) { + returnFiber.lastEffect.nextEffect = workInProgress.firstEffect; + } + + returnFiber.lastEffect = workInProgress.lastEffect; + } + + var effectTag = workInProgress.effectTag; + + if (effectTag > PerformedWork) { + if (returnFiber.lastEffect !== null) { + returnFiber.lastEffect.nextEffect = workInProgress; + } else { + returnFiber.firstEffect = workInProgress; + } + + returnFiber.lastEffect = workInProgress; + } + } + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); + } + + if (siblingFiber !== null) { + return siblingFiber; + } else if (returnFiber !== null) { + workInProgress = returnFiber; + continue; + } else { + return null; + } + } else { + var _next = unwindWork(workInProgress, nextRenderExpirationTime); + + if (workInProgress.effectTag & DidCapture) { + stopFailedWorkTimer(workInProgress); + } else { + stopWorkTimer(workInProgress); + } + + { + ReactDebugCurrentFiber.resetCurrentFiber(); + } + + if (_next !== null) { + stopWorkTimer(workInProgress); + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); + } + + _next.effectTag &= HostEffectMask; + return _next; + } + + if (returnFiber !== null) { + returnFiber.firstEffect = returnFiber.lastEffect = null; + returnFiber.effectTag |= Incomplete; + } + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); + } + + if (siblingFiber !== null) { + return siblingFiber; + } else if (returnFiber !== null) { + workInProgress = returnFiber; + continue; + } else { + return null; + } + } + } + + return null; + } + + function performUnitOfWork(workInProgress) { + var current = workInProgress.alternate; + startWorkTimer(workInProgress); + { + ReactDebugCurrentFiber.setCurrentFiber(workInProgress); + } + + if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { + stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress); + } + + var next = void 0; + + if (enableProfilerTimer) { + if (workInProgress.mode & ProfileMode) { + startBaseRenderTimer(); + } + + next = beginWork(current, workInProgress, nextRenderExpirationTime); + + if (workInProgress.mode & ProfileMode) { + recordElapsedBaseRenderTimeIfRunning(workInProgress); + stopBaseRenderTimerIfRunning(); + } + } else { + next = beginWork(current, workInProgress, nextRenderExpirationTime); + } + + { + ReactDebugCurrentFiber.resetCurrentFiber(); + + if (isReplayingFailedUnitOfWork) { + rethrowOriginalError(); + } + } + + if (true && ReactFiberInstrumentation_1.debugTool) { + ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress); + } + + if (next === null) { + next = completeUnitOfWork(workInProgress); + } + + ReactCurrentOwner.current = null; + return next; + } + + function workLoop(isYieldy) { + if (!isYieldy) { + while (nextUnitOfWork !== null) { + nextUnitOfWork = performUnitOfWork(nextUnitOfWork); + } + } else { + while (nextUnitOfWork !== null && !shouldYield()) { + nextUnitOfWork = performUnitOfWork(nextUnitOfWork); + } + + if (enableProfilerTimer) { + pauseActualRenderTimerIfRunning(); + } + } + } + + function renderRoot(root, isYieldy) { + invariant(!isWorking, "renderRoot was called recursively. This error is likely caused " + "by a bug in React. Please file an issue."); + isWorking = true; + var expirationTime = root.nextExpirationTimeToWorkOn; + + if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) { + resetStack(); + nextRoot = root; + nextRenderExpirationTime = expirationTime; + nextLatestTimeoutMs = -1; + nextRenderDidError = false; + nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime); + root.pendingCommitExpirationTime = NoWork; + } + + var didFatal = false; + startWorkLoopTimer(nextUnitOfWork); + + do { + try { + workLoop(isYieldy); + } catch (thrownValue) { + if (enableProfilerTimer) { + stopBaseRenderTimerIfRunning(); + } + + if (nextUnitOfWork === null) { + didFatal = true; + onUncaughtError(thrownValue); + } else { + { + resetCurrentlyProcessingQueue(); + } + var failedUnitOfWork = nextUnitOfWork; + + if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { + replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy); + } + + invariant(nextUnitOfWork !== null, "Failed to replay rendering after an error. This " + "is likely caused by a bug in React. Please file an issue " + "with a reproducing case to help us find it."); + var sourceFiber = nextUnitOfWork; + var returnFiber = sourceFiber.return; + + if (returnFiber === null) { + didFatal = true; + onUncaughtError(thrownValue); + break; + } + + throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime, mostRecentCurrentTimeMs); + nextUnitOfWork = completeUnitOfWork(sourceFiber); + } + } + + break; + } while (true); + + isWorking = false; + + if (didFatal) { + var didCompleteRoot = false; + stopWorkLoopTimer(interruptedBy, didCompleteRoot); + interruptedBy = null; + { + resetStackAfterFatalErrorInDev(); + } + onFatal(root); + } else if (nextUnitOfWork === null) { + var rootWorkInProgress = root.current.alternate; + invariant(rootWorkInProgress !== null, "Finished root should have a work-in-progress. This error is likely " + "caused by a bug in React. Please file an issue."); + + if ((rootWorkInProgress.effectTag & Incomplete) === NoEffect) { + var _didCompleteRoot = true; + stopWorkLoopTimer(interruptedBy, _didCompleteRoot); + interruptedBy = null; + onComplete(root, rootWorkInProgress, expirationTime); + } else { + var _didCompleteRoot2 = false; + stopWorkLoopTimer(interruptedBy, _didCompleteRoot2); + interruptedBy = null; + markSuspendedPriorityLevel(root, expirationTime, nextRenderDidError); + var suspendedExpirationTime = expirationTime; + var newExpirationTime = root.expirationTime; + onSuspend(root, suspendedExpirationTime, newExpirationTime, nextLatestTimeoutMs); + } + } else { + var _didCompleteRoot3 = false; + stopWorkLoopTimer(interruptedBy, _didCompleteRoot3); + interruptedBy = null; + onYield(root); + } + } + + function dispatch(sourceFiber, value, expirationTime) { + invariant(!isWorking || isCommitting$1, "dispatch: Cannot dispatch during the render phase."); + var fiber = sourceFiber.return; + + while (fiber !== null) { + switch (fiber.tag) { + case ClassComponent: + var ctor = fiber.type; + var instance = fiber.stateNode; + + if (typeof ctor.getDerivedStateFromCatch === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { + var errorInfo = createCapturedValue(value, sourceFiber); + var update = createClassErrorUpdate(fiber, errorInfo, expirationTime); + enqueueUpdate(fiber, update, expirationTime); + scheduleWork(fiber, expirationTime); + return; + } + + break; + + case HostRoot: + { + var _errorInfo = createCapturedValue(value, sourceFiber); + + var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime); + + enqueueUpdate(fiber, _update, expirationTime); + scheduleWork(fiber, expirationTime); + return; + } + } + + fiber = fiber.return; + } + + if (sourceFiber.tag === HostRoot) { + var rootFiber = sourceFiber; + + var _errorInfo2 = createCapturedValue(value, rootFiber); + + var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime); + + enqueueUpdate(rootFiber, _update2, expirationTime); + scheduleWork(rootFiber, expirationTime); + } + } + + function captureCommitPhaseError(fiber, error) { + return dispatch(fiber, error, Sync); + } + + function computeAsyncExpiration(currentTime) { + var expirationMs = 5000; + var bucketSizeMs = 250; + return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs); + } + + function computeInteractiveExpiration(currentTime) { + var expirationMs = void 0; + { + expirationMs = 500; + } + var bucketSizeMs = 100; + return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs); + } + + function computeUniqueAsyncExpiration() { + var currentTime = recalculateCurrentTime(); + var result = computeAsyncExpiration(currentTime); + + if (result <= lastUniqueAsyncExpiration) { + result = lastUniqueAsyncExpiration + 1; + } + + lastUniqueAsyncExpiration = result; + return lastUniqueAsyncExpiration; + } + + function computeExpirationForFiber(currentTime, fiber) { + var expirationTime = void 0; + + if (expirationContext !== NoWork) { + expirationTime = expirationContext; + } else if (isWorking) { + if (isCommitting$1) { + expirationTime = Sync; + } else { + expirationTime = nextRenderExpirationTime; + } + } else { + if (fiber.mode & AsyncMode) { + if (isBatchingInteractiveUpdates) { + expirationTime = computeInteractiveExpiration(currentTime); + } else { + expirationTime = computeAsyncExpiration(currentTime); + } + } else { + expirationTime = Sync; + } + } + + if (isBatchingInteractiveUpdates) { + if (lowestPendingInteractiveExpirationTime === NoWork || expirationTime > lowestPendingInteractiveExpirationTime) { + lowestPendingInteractiveExpirationTime = expirationTime; + } + } + + return expirationTime; + } + + function markTimeout(root, thenable, timeoutMs, suspendedTime) { + if (timeoutMs >= 0 && nextLatestTimeoutMs < timeoutMs) { + nextLatestTimeoutMs = timeoutMs; + } + } + + function markError(root) { + nextRenderDidError = true; + } + + function retrySuspendedRoot(root, suspendedTime) { + markPingedPriorityLevel(root, suspendedTime); + var retryTime = root.expirationTime; + + if (retryTime !== NoWork) { + requestWork(root, retryTime); + } + } + + function scheduleWork(fiber, expirationTime) { + recordScheduleUpdate(); + { + if (fiber.tag === ClassComponent) { + var instance = fiber.stateNode; + warnAboutInvalidUpdates(instance); + } + } + var node = fiber; + + while (node !== null) { + if (node.expirationTime === NoWork || node.expirationTime > expirationTime) { + node.expirationTime = expirationTime; + } + + if (node.alternate !== null) { + if (node.alternate.expirationTime === NoWork || node.alternate.expirationTime > expirationTime) { + node.alternate.expirationTime = expirationTime; + } + } + + if (node.return === null) { + if (node.tag === HostRoot) { + var root = node.stateNode; + + if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime < nextRenderExpirationTime) { + interruptedBy = fiber; + resetStack(); + } + + markPendingPriorityLevel(root, expirationTime); + + if (!isWorking || isCommitting$1 || nextRoot !== root) { + var rootExpirationTime = root.expirationTime; + requestWork(root, rootExpirationTime); + } + + if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { + invariant(false, "Maximum update depth exceeded. This can happen when a " + "component repeatedly calls setState inside " + "componentWillUpdate or componentDidUpdate. React limits " + "the number of nested updates to prevent infinite loops."); + } + } else { + { + if (fiber.tag === ClassComponent) { + warnAboutUpdateOnUnmounted(fiber); + } + } + return; + } + } + + node = node.return; + } + } + + function recalculateCurrentTime() { + mostRecentCurrentTimeMs = now() - originalStartTimeMs; + mostRecentCurrentTime = msToExpirationTime(mostRecentCurrentTimeMs); + return mostRecentCurrentTime; + } + + function deferredUpdates(fn) { + var previousExpirationContext = expirationContext; + var currentTime = recalculateCurrentTime(); + expirationContext = computeAsyncExpiration(currentTime); + + try { + return fn(); + } finally { + expirationContext = previousExpirationContext; + } + } + + function syncUpdates(fn, a, b, c, d) { + var previousExpirationContext = expirationContext; + expirationContext = Sync; + + try { + return fn(a, b, c, d); + } finally { + expirationContext = previousExpirationContext; + } + } + + var firstScheduledRoot = null; + var lastScheduledRoot = null; + var callbackExpirationTime = NoWork; + var callbackID = void 0; + var isRendering = false; + var nextFlushedRoot = null; + var nextFlushedExpirationTime = NoWork; + var lowestPendingInteractiveExpirationTime = NoWork; + var deadlineDidExpire = false; + var hasUnhandledError = false; + var unhandledError = null; + var deadline = null; + var isBatchingUpdates = false; + var isUnbatchingUpdates = false; + var isBatchingInteractiveUpdates = false; + var completedBatches = null; + var NESTED_UPDATE_LIMIT = 1000; + var nestedUpdateCount = 0; + var timeHeuristicForUnitOfWork = 1; + + function scheduleCallbackWithExpirationTime(expirationTime) { + if (callbackExpirationTime !== NoWork) { + if (expirationTime > callbackExpirationTime) { + return; + } else { + if (callbackID !== null) { + cancelDeferredCallback(callbackID); + } + } + } else { + startRequestCallbackTimer(); + } + + callbackExpirationTime = expirationTime; + var currentMs = now() - originalStartTimeMs; + var expirationTimeMs = expirationTimeToMs(expirationTime); + var timeout = expirationTimeMs - currentMs; + callbackID = scheduleDeferredCallback(performAsyncWork, { + timeout: timeout + }); + } + + function onFatal(root) { + root.finishedWork = null; + } + + function onComplete(root, finishedWork, expirationTime) { + root.pendingCommitExpirationTime = expirationTime; + root.finishedWork = finishedWork; + } + + function onSuspend(root, suspendedExpirationTime, expirationTime, timeoutMs) { + if (timeoutMs >= 0) { + var suspendedRoot = root; + setTimeout(function () { + retrySuspendedRoot(suspendedRoot, suspendedExpirationTime); + }, timeoutMs); + } + + root.expirationTime = expirationTime; + } + + function onYield(root) { + root.finishedWork = null; + } + + function onCommit(root, expirationTime) { + root.expirationTime = expirationTime; + root.finishedWork = null; + } + + function requestWork(root, expirationTime) { + addRootToSchedule(root, expirationTime); + + if (isRendering) { + return; + } + + if (isBatchingUpdates) { + if (isUnbatchingUpdates) { + nextFlushedRoot = root; + nextFlushedExpirationTime = Sync; + performWorkOnRoot(root, Sync, false); + } + + return; + } + + if (expirationTime === Sync) { + performSyncWork(); + } else { + scheduleCallbackWithExpirationTime(expirationTime); + } + } + + function addRootToSchedule(root, expirationTime) { + if (root.nextScheduledRoot === null) { + root.expirationTime = expirationTime; + + if (lastScheduledRoot === null) { + firstScheduledRoot = lastScheduledRoot = root; + root.nextScheduledRoot = root; + } else { + lastScheduledRoot.nextScheduledRoot = root; + lastScheduledRoot = root; + lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; + } + } else { + var remainingExpirationTime = root.expirationTime; + + if (remainingExpirationTime === NoWork || expirationTime < remainingExpirationTime) { + root.expirationTime = expirationTime; + } + } + } + + function findHighestPriorityRoot() { + var highestPriorityWork = NoWork; + var highestPriorityRoot = null; + + if (lastScheduledRoot !== null) { + var previousScheduledRoot = lastScheduledRoot; + var root = firstScheduledRoot; + + while (root !== null) { + var remainingExpirationTime = root.expirationTime; + + if (remainingExpirationTime === NoWork) { + invariant(previousScheduledRoot !== null && lastScheduledRoot !== null, "Should have a previous and last root. This error is likely " + "caused by a bug in React. Please file an issue."); + + if (root === root.nextScheduledRoot) { + root.nextScheduledRoot = null; + firstScheduledRoot = lastScheduledRoot = null; + break; + } else if (root === firstScheduledRoot) { + var next = root.nextScheduledRoot; + firstScheduledRoot = next; + lastScheduledRoot.nextScheduledRoot = next; + root.nextScheduledRoot = null; + } else if (root === lastScheduledRoot) { + lastScheduledRoot = previousScheduledRoot; + lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; + root.nextScheduledRoot = null; + break; + } else { + previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot; + root.nextScheduledRoot = null; + } + + root = previousScheduledRoot.nextScheduledRoot; + } else { + if (highestPriorityWork === NoWork || remainingExpirationTime < highestPriorityWork) { + highestPriorityWork = remainingExpirationTime; + highestPriorityRoot = root; + } + + if (root === lastScheduledRoot) { + break; + } + + previousScheduledRoot = root; + root = root.nextScheduledRoot; + } + } + } + + var previousFlushedRoot = nextFlushedRoot; + + if (previousFlushedRoot !== null && previousFlushedRoot === highestPriorityRoot && highestPriorityWork === Sync) { + nestedUpdateCount++; + } else { + nestedUpdateCount = 0; + } + + nextFlushedRoot = highestPriorityRoot; + nextFlushedExpirationTime = highestPriorityWork; + } + + function performAsyncWork(dl) { + performWork(NoWork, dl); + } + + function performSyncWork() { + performWork(Sync, null); + } + + function performWork(minExpirationTime, dl) { + deadline = dl; + findHighestPriorityRoot(); + + if (enableProfilerTimer) { + resumeActualRenderTimerIfPaused(); + } + + if (enableUserTimingAPI && deadline !== null) { + var didExpire = nextFlushedExpirationTime < recalculateCurrentTime(); + var timeout = expirationTimeToMs(nextFlushedExpirationTime); + stopRequestCallbackTimer(didExpire, timeout); + } + + if (deadline !== null) { + while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime)) { + recalculateCurrentTime(); + performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, true); + findHighestPriorityRoot(); + } + } else { + while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime)) { + performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false); + findHighestPriorityRoot(); + } + } + + if (deadline !== null) { + callbackExpirationTime = NoWork; + callbackID = null; + } + + if (nextFlushedExpirationTime !== NoWork) { + scheduleCallbackWithExpirationTime(nextFlushedExpirationTime); + } + + deadline = null; + deadlineDidExpire = false; + finishRendering(); + } + + function flushRoot(root, expirationTime) { + invariant(!isRendering, "work.commit(): Cannot commit while already rendering. This likely " + "means you attempted to commit from inside a lifecycle method."); + nextFlushedRoot = root; + nextFlushedExpirationTime = expirationTime; + performWorkOnRoot(root, expirationTime, false); + performSyncWork(); + finishRendering(); + } + + function finishRendering() { + nestedUpdateCount = 0; + + if (completedBatches !== null) { + var batches = completedBatches; + completedBatches = null; + + for (var i = 0; i < batches.length; i++) { + var batch = batches[i]; + + try { + batch._onComplete(); + } catch (error) { + if (!hasUnhandledError) { + hasUnhandledError = true; + unhandledError = error; + } + } + } + } + + if (hasUnhandledError) { + var error = unhandledError; + unhandledError = null; + hasUnhandledError = false; + throw error; + } + } + + function performWorkOnRoot(root, expirationTime, isYieldy) { + invariant(!isRendering, "performWorkOnRoot was called recursively. This error is likely caused " + "by a bug in React. Please file an issue."); + isRendering = true; + + if (!isYieldy) { + var finishedWork = root.finishedWork; + + if (finishedWork !== null) { + completeRoot$1(root, finishedWork, expirationTime); + } else { + root.finishedWork = null; + renderRoot(root, false); + finishedWork = root.finishedWork; + + if (finishedWork !== null) { + completeRoot$1(root, finishedWork, expirationTime); + } + } + } else { + var _finishedWork = root.finishedWork; + + if (_finishedWork !== null) { + completeRoot$1(root, _finishedWork, expirationTime); + } else { + root.finishedWork = null; + renderRoot(root, true); + _finishedWork = root.finishedWork; + + if (_finishedWork !== null) { + if (!shouldYield()) { + completeRoot$1(root, _finishedWork, expirationTime); + } else { + root.finishedWork = _finishedWork; + + if (enableProfilerTimer) { + pauseActualRenderTimerIfRunning(); + } + } + } + } + } + + isRendering = false; + } + + function completeRoot$1(root, finishedWork, expirationTime) { + var firstBatch = root.firstBatch; + + if (firstBatch !== null && firstBatch._expirationTime <= expirationTime) { + if (completedBatches === null) { + completedBatches = [firstBatch]; + } else { + completedBatches.push(firstBatch); + } + + if (firstBatch._defer) { + root.finishedWork = finishedWork; + root.expirationTime = NoWork; + return; + } + } + + root.finishedWork = null; + commitRoot(root, finishedWork); + } + + function shouldYield() { + if (deadline === null || deadlineDidExpire) { + return false; + } + + if (deadline.timeRemaining() > timeHeuristicForUnitOfWork) { + return false; + } + + deadlineDidExpire = true; + return true; + } + + function onUncaughtError(error) { + invariant(nextFlushedRoot !== null, "Should be working on a root. This error is likely caused by a bug in " + "React. Please file an issue."); + nextFlushedRoot.expirationTime = NoWork; + + if (!hasUnhandledError) { + hasUnhandledError = true; + unhandledError = error; + } + } + + function batchedUpdates$1(fn, a) { + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = true; + + try { + return fn(a); + } finally { + isBatchingUpdates = previousIsBatchingUpdates; + + if (!isBatchingUpdates && !isRendering) { + performSyncWork(); + } + } + } + + function unbatchedUpdates(fn, a) { + if (isBatchingUpdates && !isUnbatchingUpdates) { + isUnbatchingUpdates = true; + + try { + return fn(a); + } finally { + isUnbatchingUpdates = false; + } + } + + return fn(a); + } + + function flushSync(fn, a) { + invariant(!isRendering, "flushSync was called from inside a lifecycle method. It cannot be " + "called when React is already rendering."); + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = true; + + try { + return syncUpdates(fn, a); + } finally { + isBatchingUpdates = previousIsBatchingUpdates; + performSyncWork(); + } + } + + function interactiveUpdates$1(fn, a, b) { + if (isBatchingInteractiveUpdates) { + return fn(a, b); + } + + if (!isBatchingUpdates && !isRendering && lowestPendingInteractiveExpirationTime !== NoWork) { + performWork(lowestPendingInteractiveExpirationTime, null); + lowestPendingInteractiveExpirationTime = NoWork; + } + + var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates; + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingInteractiveUpdates = true; + isBatchingUpdates = true; + + try { + return fn(a, b); + } finally { + isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates; + isBatchingUpdates = previousIsBatchingUpdates; + + if (!isBatchingUpdates && !isRendering) { + performSyncWork(); + } + } + } + + function flushInteractiveUpdates$1() { + if (!isRendering && lowestPendingInteractiveExpirationTime !== NoWork) { + performWork(lowestPendingInteractiveExpirationTime, null); + lowestPendingInteractiveExpirationTime = NoWork; + } + } + + function flushControlled(fn) { + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = true; + + try { + syncUpdates(fn); + } finally { + isBatchingUpdates = previousIsBatchingUpdates; + + if (!isBatchingUpdates && !isRendering) { + performWork(Sync, null); + } + } + } + + var didWarnAboutNestedUpdates = void 0; + { + didWarnAboutNestedUpdates = false; + } + + function getContextForSubtree(parentComponent) { + if (!parentComponent) { + return emptyObject; + } + + var fiber = get$1(parentComponent); + var parentContext = findCurrentUnmaskedContext(fiber); + return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext; + } + + function scheduleRootUpdate(current, element, expirationTime, callback) { + { + if (ReactDebugCurrentFiber.phase === "render" && ReactDebugCurrentFiber.current !== null && !didWarnAboutNestedUpdates) { + didWarnAboutNestedUpdates = true; + warning(false, "Render methods should be a pure function of props and state; " + "triggering nested component updates from render is not allowed. " + "If necessary, trigger nested updates in componentDidUpdate.\n\n" + "Check the render method of %s.", getComponentName(ReactDebugCurrentFiber.current) || "Unknown"); + } + } + var update = createUpdate(expirationTime); + update.payload = { + element: element + }; + callback = callback === undefined ? null : callback; + + if (callback !== null) { + !(typeof callback === "function") ? warning(false, "render(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callback) : void 0; + update.callback = callback; + } + + enqueueUpdate(current, update, expirationTime); + scheduleWork(current, expirationTime); + return expirationTime; + } + + function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { + var current = container.current; + { + if (ReactFiberInstrumentation_1.debugTool) { + if (current.alternate === null) { + ReactFiberInstrumentation_1.debugTool.onMountContainer(container); + } else if (element === null) { + ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container); + } else { + ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container); + } + } + } + var context = getContextForSubtree(parentComponent); + + if (container.context === null) { + container.context = context; + } else { + container.pendingContext = context; + } + + return scheduleRootUpdate(current, element, expirationTime, callback); + } + + function findHostInstance$1(component) { + var fiber = get$1(component); + + if (fiber === undefined) { + if (typeof component.render === "function") { + invariant(false, "Unable to find node on an unmounted component."); + } else { + invariant(false, "Argument appears to not be a ReactComponent. Keys: %s", Object.keys(component)); + } + } + + var hostFiber = findCurrentHostFiber(fiber); + + if (hostFiber === null) { + return null; + } + + return hostFiber.stateNode; + } + + function createContainer(containerInfo, isAsync, hydrate) { + return createFiberRoot(containerInfo, isAsync, hydrate); + } + + function updateContainer(element, container, parentComponent, callback) { + var current = container.current; + var currentTime = recalculateCurrentTime(); + var expirationTime = computeExpirationForFiber(currentTime, current); + return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback); + } + + function getPublicRootInstance(container) { + var containerFiber = container.current; + + if (!containerFiber.child) { + return null; + } + + switch (containerFiber.child.tag) { + case HostComponent: + return getPublicInstance(containerFiber.child.stateNode); + + default: + return containerFiber.child.stateNode; + } + } + + function findHostInstanceWithNoPortals(fiber) { + var hostFiber = findCurrentHostFiberWithNoPortals(fiber); + + if (hostFiber === null) { + return null; + } + + return hostFiber.stateNode; + } + + function injectIntoDevTools(devToolsConfig) { + var _findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + return injectInternals(_extends({}, devToolsConfig, { + findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { + var hostFiber = findCurrentHostFiber(fiber); + + if (hostFiber === null) { + return null; + } + + return hostFiber.stateNode; + }, + findFiberByHostInstance: function findFiberByHostInstance(instance) { + if (!_findFiberByHostInstance) { + return null; + } + + return _findFiberByHostInstance(instance); + } + })); + } + + var ReactFabricRenderer = Object.freeze({ + updateContainerAtExpirationTime: updateContainerAtExpirationTime, + createContainer: createContainer, + updateContainer: updateContainer, + flushRoot: flushRoot, + requestWork: requestWork, + computeUniqueAsyncExpiration: computeUniqueAsyncExpiration, + batchedUpdates: batchedUpdates$1, + unbatchedUpdates: unbatchedUpdates, + deferredUpdates: deferredUpdates, + syncUpdates: syncUpdates, + interactiveUpdates: interactiveUpdates$1, + flushInteractiveUpdates: flushInteractiveUpdates$1, + flushControlled: flushControlled, + flushSync: flushSync, + getPublicRootInstance: getPublicRootInstance, + findHostInstance: findHostInstance$1, + findHostInstanceWithNoPortals: findHostInstanceWithNoPortals, + injectIntoDevTools: injectIntoDevTools + }); + + function _createPortal(children, containerInfo, implementation) { + var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + return { + $$typeof: REACT_PORTAL_TYPE, + key: key == null ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + + var ReactVersion = "16.4.1"; + + var NativeMethodsMixin = function NativeMethodsMixin(findNodeHandle, findHostInstance) { + var NativeMethodsMixin = { + measure: function measure(callback) { + UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); + }, + measureInWindow: function measureInWindow(callback) { + UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); + }, + measureLayout: function measureLayout(relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }, + setNativeProps: function setNativeProps(nativeProps) { + var maybeInstance = void 0; + + try { + maybeInstance = findHostInstance(this); + } catch (error) {} + + if (maybeInstance == null) { + return; + } + + var viewConfig = maybeInstance.viewConfig; + { + warnForStyleProps(nativeProps, viewConfig.validAttributes); + } + var updatePayload = create(nativeProps, viewConfig.validAttributes); + + if (updatePayload != null) { + UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, updatePayload); + } + }, + focus: function focus() { + TextInputState.focusTextInput(findNodeHandle(this)); + }, + blur: function blur() { + TextInputState.blurTextInput(findNodeHandle(this)); + } + }; + { + var NativeMethodsMixin_DEV = NativeMethodsMixin; + invariant(!NativeMethodsMixin_DEV.componentWillMount && !NativeMethodsMixin_DEV.componentWillReceiveProps && !NativeMethodsMixin_DEV.UNSAFE_componentWillMount && !NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps, "Do not override existing functions."); + + NativeMethodsMixin_DEV.componentWillMount = function () { + throwOnStylesProp(this, this.props); + }; + + NativeMethodsMixin_DEV.componentWillReceiveProps = function (newProps) { + throwOnStylesProp(this, newProps); + }; + + NativeMethodsMixin_DEV.UNSAFE_componentWillMount = function () { + throwOnStylesProp(this, this.props); + }; + + NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps = function (newProps) { + throwOnStylesProp(this, newProps); + }; + + NativeMethodsMixin_DEV.componentWillMount.__suppressDeprecationWarning = true; + NativeMethodsMixin_DEV.componentWillReceiveProps.__suppressDeprecationWarning = true; + } + return NativeMethodsMixin; + }; + + function _classCallCheck$1(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + + function _possibleConstructorReturn(self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return call && (typeof call === "object" || typeof call === "function") ? call : self; + } + + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; + } + + var ReactNativeComponent = function ReactNativeComponent(findNodeHandle, findHostInstance) { + var ReactNativeComponent = function (_React$Component) { + _inherits(ReactNativeComponent, _React$Component); + + function ReactNativeComponent() { + _classCallCheck$1(this, ReactNativeComponent); + + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } + + ReactNativeComponent.prototype.blur = function blur() { + TextInputState.blurTextInput(findNodeHandle(this)); + }; + + ReactNativeComponent.prototype.focus = function focus() { + TextInputState.focusTextInput(findNodeHandle(this)); + }; + + ReactNativeComponent.prototype.measure = function measure(callback) { + UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); + }; + + ReactNativeComponent.prototype.measureInWindow = function measureInWindow(callback) { + UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); + }; + + ReactNativeComponent.prototype.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }; + + ReactNativeComponent.prototype.setNativeProps = function setNativeProps(nativeProps) { + var maybeInstance = void 0; + + try { + maybeInstance = findHostInstance(this); + } catch (error) {} + + if (maybeInstance == null) { + return; + } + + var viewConfig = maybeInstance.viewConfig || maybeInstance.canonical.viewConfig; + var updatePayload = create(nativeProps, viewConfig.validAttributes); + + if (updatePayload != null) { + UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, updatePayload); + } + }; + + return ReactNativeComponent; + }(React.Component); + + return ReactNativeComponent; + }; + + var instanceCache = {}; + + function getInstanceFromTag(tag) { + return instanceCache[tag] || null; + } + + var getInspectorDataForViewTag = void 0; + { + var traverseOwnerTreeUp = function traverseOwnerTreeUp(hierarchy, instance) { + if (instance) { + hierarchy.unshift(instance); + traverseOwnerTreeUp(hierarchy, instance._debugOwner); + } + }; + + var getOwnerHierarchy = function getOwnerHierarchy(instance) { + var hierarchy = []; + traverseOwnerTreeUp(hierarchy, instance); + return hierarchy; + }; + + var lastNonHostInstance = function lastNonHostInstance(hierarchy) { + for (var i = hierarchy.length - 1; i > 1; i--) { + var instance = hierarchy[i]; + + if (instance.tag !== HostComponent) { + return instance; + } + } + + return hierarchy[0]; + }; + + var getHostProps = function getHostProps(fiber) { + var host = findCurrentHostFiber(fiber); + + if (host) { + return host.memoizedProps || emptyObject; + } + + return emptyObject; + }; + + var getHostNode = function getHostNode(fiber, findNodeHandle) { + var hostNode = void 0; + + while (fiber) { + if (fiber.stateNode !== null && fiber.tag === HostComponent) { + hostNode = findNodeHandle(fiber.stateNode); + } + + if (hostNode) { + return hostNode; + } + + fiber = fiber.child; + } + + return null; + }; + + var createHierarchy = function createHierarchy(fiberHierarchy) { + return fiberHierarchy.map(function (fiber) { + return { + name: getComponentName(fiber), + getInspectorData: function getInspectorData(findNodeHandle) { + return { + measure: function measure(callback) { + return UIManager.measure(getHostNode(fiber, findNodeHandle), callback); + }, + props: getHostProps(fiber), + source: fiber._debugSource + }; + } + }; + }); + }; + + getInspectorDataForViewTag = function getInspectorDataForViewTag(viewTag) { + var closestInstance = getInstanceFromTag(viewTag); + + if (!closestInstance) { + return { + hierarchy: [], + props: emptyObject, + selection: null, + source: null + }; + } + + var fiber = findCurrentFiberUsingSlowPath(closestInstance); + var fiberHierarchy = getOwnerHierarchy(fiber); + var instance = lastNonHostInstance(fiberHierarchy); + var hierarchy = createHierarchy(fiberHierarchy); + var props = getHostProps(instance); + var source = instance._debugSource; + var selection = fiberHierarchy.indexOf(instance); + return { + hierarchy: hierarchy, + props: props, + selection: selection, + source: source + }; + }; + } + var findHostInstance = findHostInstance$1; + + function findNodeHandle(componentOrHandle) { + { + var owner = ReactCurrentOwner.current; + + if (owner !== null && owner.stateNode !== null) { + !owner.stateNode._warnedAboutRefsInRender ? warning(false, "%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentName(owner) || "A component") : void 0; + owner.stateNode._warnedAboutRefsInRender = true; + } + } + + if (componentOrHandle == null) { + return null; + } + + if (typeof componentOrHandle === "number") { + return componentOrHandle; + } + + if (componentOrHandle._nativeTag) { + return componentOrHandle._nativeTag; + } + + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { + return componentOrHandle.canonical._nativeTag; + } + + var hostInstance = findHostInstance(componentOrHandle); + + if (hostInstance == null) { + return hostInstance; + } + + if (hostInstance.canonical) { + return hostInstance.canonical._nativeTag; + } + + return hostInstance._nativeTag; + } + + injection$2.injectRenderer(ReactFabricRenderer); + var roots = new Map(); + var ReactFabric = { + NativeComponent: ReactNativeComponent(findNodeHandle, findHostInstance), + findNodeHandle: findNodeHandle, + render: function render(element, containerTag, callback) { + var root = roots.get(containerTag); + + if (!root) { + root = createContainer(containerTag, false, false); + roots.set(containerTag, root); + } + + updateContainer(element, root, null, callback); + return getPublicRootInstance(root); + }, + unmountComponentAtNode: function unmountComponentAtNode(containerTag) { + var root = roots.get(containerTag); + + if (root) { + updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + } + }, + createPortal: function createPortal(children, containerTag) { + var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + return _createPortal(children, containerTag, null, key); + }, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + NativeMethodsMixin: NativeMethodsMixin(findNodeHandle, findHostInstance) + } + }; + injectIntoDevTools({ + findFiberByHostInstance: getInstanceFromInstance, + getInspectorDataForViewTag: getInspectorDataForViewTag, + bundleType: 1, + version: ReactVersion, + rendererPackageName: "react-native-renderer" + }); + var ReactFabric$2 = Object.freeze({ + default: ReactFabric + }); + var ReactFabric$3 = ReactFabric$2 && ReactFabric || ReactFabric$2; + var fabric = ReactFabric$3.default ? ReactFabric$3.default : ReactFabric$3; + module.exports = fabric; + })(); + } +},489,[263,166,183,231,218,1,323,324,226,173,325,490,9,271],"node_modules/react-native/Libraries/Renderer/oss/ReactFabric-dev.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var FabricUIManager = global.nativeFabricUIManager; + module.exports = FabricUIManager; +},490,[],"node_modules/react-native/Libraries/ReactNative/FabricUIManager.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + _$$_REQUIRE(_dependencyMap[0], "InitializeCore"); + + var invariant = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"), + ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[2], "ReactNativeViewConfigRegistry"), + UIManager = _$$_REQUIRE(_dependencyMap[3], "UIManager"), + React = _$$_REQUIRE(_dependencyMap[4], "react"), + emptyObject = _$$_REQUIRE(_dependencyMap[5], "fbjs/lib/emptyObject"), + deepDiffer = _$$_REQUIRE(_dependencyMap[6], "deepDiffer"), + flattenStyle = _$$_REQUIRE(_dependencyMap[7], "flattenStyle"), + TextInputState = _$$_REQUIRE(_dependencyMap[8], "TextInputState"), + FabricUIManager = _$$_REQUIRE(_dependencyMap[9], "FabricUIManager"), + ExceptionsManager = _$$_REQUIRE(_dependencyMap[10], "ExceptionsManager"); + + function _invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + this._hasCaughtError = !1; + this._caughtError = null; + var funcArgs = Array.prototype.slice.call(arguments, 3); + + try { + func.apply(context, funcArgs); + } catch (error) { + this._caughtError = error, this._hasCaughtError = !0; + } + } + + var ReactErrorUtils = { + _caughtError: null, + _hasCaughtError: !1, + _rethrowError: null, + _hasRethrowError: !1, + invokeGuardedCallback: function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + _invokeGuardedCallback.apply(ReactErrorUtils, arguments); + }, + invokeGuardedCallbackAndCatchFirstError: function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + ReactErrorUtils.invokeGuardedCallback.apply(this, arguments); + + if (ReactErrorUtils.hasCaughtError()) { + var error = ReactErrorUtils.clearCaughtError(); + ReactErrorUtils._hasRethrowError || (ReactErrorUtils._hasRethrowError = !0, ReactErrorUtils._rethrowError = error); + } + }, + rethrowCaughtError: function rethrowCaughtError() { + return _rethrowCaughtError.apply(ReactErrorUtils, arguments); + }, + hasCaughtError: function hasCaughtError() { + return ReactErrorUtils._hasCaughtError; + }, + clearCaughtError: function clearCaughtError() { + if (ReactErrorUtils._hasCaughtError) { + var error = ReactErrorUtils._caughtError; + ReactErrorUtils._caughtError = null; + ReactErrorUtils._hasCaughtError = !1; + return error; + } + + invariant(!1, "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); + } + }; + + function _rethrowCaughtError() { + if (ReactErrorUtils._hasRethrowError) { + var error = ReactErrorUtils._rethrowError; + ReactErrorUtils._rethrowError = null; + ReactErrorUtils._hasRethrowError = !1; + throw error; + } + } + + var eventPluginOrder = null, + namesToPlugins = {}; + + function recomputePluginOrdering() { + if (eventPluginOrder) for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName], + pluginIndex = eventPluginOrder.indexOf(pluginName); + invariant(-1 < pluginIndex, "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.", pluginName); + + if (!plugins[pluginIndex]) { + invariant(pluginModule.extractEvents, "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.", pluginName); + plugins[pluginIndex] = pluginModule; + pluginIndex = pluginModule.eventTypes; + + for (var eventName in pluginIndex) { + var JSCompiler_inline_result = void 0; + var dispatchConfig = pluginIndex[eventName], + pluginModule$jscomp$0 = pluginModule, + eventName$jscomp$0 = eventName; + invariant(!eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0), "EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.", eventName$jscomp$0); + eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + + if (phasedRegistrationNames) { + for (JSCompiler_inline_result in phasedRegistrationNames) { + phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule$jscomp$0, eventName$jscomp$0); + } + + JSCompiler_inline_result = !0; + } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule$jscomp$0, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; + + invariant(JSCompiler_inline_result, "EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.", eventName, pluginName); + } + } + } + } + + function publishRegistrationName(registrationName, pluginModule) { + invariant(!registrationNameModules[registrationName], "EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.", registrationName); + registrationNameModules[registrationName] = pluginModule; + } + + var plugins = [], + eventNameDispatchConfigs = {}, + registrationNameModules = {}, + getFiberCurrentPropsFromNode = null, + getInstanceFromNode = null, + getNodeFromInstance = null; + + function executeDispatch(event, simulated, listener, inst) { + simulated = event.type || "unknown-event"; + event.currentTarget = getNodeFromInstance(inst); + ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(simulated, listener, void 0, event); + event.currentTarget = null; + } + + function executeDirectDispatch(event) { + var dispatchListener = event._dispatchListeners, + dispatchInstance = event._dispatchInstances; + invariant(!Array.isArray(dispatchListener), "executeDirectDispatch(...): Invalid `event`."); + event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; + dispatchListener = dispatchListener ? dispatchListener(event) : null; + event.currentTarget = null; + event._dispatchListeners = null; + event._dispatchInstances = null; + return dispatchListener; + } + + function accumulateInto(current, next) { + invariant(null != next, "accumulateInto(...): Accumulated items must not be null or undefined."); + if (null == current) return next; + + if (Array.isArray(current)) { + if (Array.isArray(next)) return current.push.apply(current, next), current; + current.push(next); + return current; + } + + return Array.isArray(next) ? [current].concat(next) : [current, next]; + } + + function forEachAccumulated(arr, cb, scope) { + Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); + } + + var eventQueue = null; + + function executeDispatchesAndReleaseTopLevel(e) { + if (e) { + var dispatchListeners = e._dispatchListeners, + dispatchInstances = e._dispatchInstances; + if (Array.isArray(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) { + executeDispatch(e, !1, dispatchListeners[i], dispatchInstances[i]); + } else dispatchListeners && executeDispatch(e, !1, dispatchListeners, dispatchInstances); + e._dispatchListeners = null; + e._dispatchInstances = null; + e.isPersistent() || e.constructor.release(e); + } + } + + var injection = { + injectEventPluginOrder: function injectEventPluginOrder(injectedEventPluginOrder) { + invariant(!eventPluginOrder, "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); + eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); + recomputePluginOrdering(); + }, + injectEventPluginsByName: function injectEventPluginsByName(injectedNamesToPlugins) { + var isOrderingDirty = !1, + pluginName; + + for (pluginName in injectedNamesToPlugins) { + if (injectedNamesToPlugins.hasOwnProperty(pluginName)) { + var pluginModule = injectedNamesToPlugins[pluginName]; + namesToPlugins.hasOwnProperty(pluginName) && namesToPlugins[pluginName] === pluginModule || (invariant(!namesToPlugins[pluginName], "EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.", pluginName), namesToPlugins[pluginName] = pluginModule, isOrderingDirty = !0); + } + } + + isOrderingDirty && recomputePluginOrdering(); + } + }; + + function getListener(inst, registrationName) { + var listener = inst.stateNode; + if (!listener) return null; + var props = getFiberCurrentPropsFromNode(listener); + if (!props) return null; + listener = props[registrationName]; + + a: switch (registrationName) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst)); + inst = !props; + break a; + + default: + inst = !1; + } + + if (inst) return null; + invariant(!listener || "function" === typeof listener, "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); + return listener; + } + + function getParent(inst) { + do { + inst = inst.return; + } while (inst && 5 !== inst.tag); + + return inst ? inst : null; + } + + function traverseTwoPhase(inst, fn, arg) { + for (var path = []; inst;) { + path.push(inst), inst = getParent(inst); + } + + for (inst = path.length; 0 < inst--;) { + fn(path[inst], "captured", arg); + } + + for (inst = 0; inst < path.length; inst++) { + fn(path[inst], "bubbled", arg); + } + } + + function accumulateDirectionalDispatches(inst, phase, event) { + if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + + function accumulateTwoPhaseDispatchesSingle(event) { + event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + + function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + var targetInst = event._targetInst; + targetInst = targetInst ? getParent(targetInst) : null; + traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); + } + } + + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + var inst = event._targetInst; + + if (inst && event && event.dispatchConfig.registrationName) { + var listener = getListener(inst, event.dispatchConfig.registrationName); + listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); + } + } + } + + var shouldBeReleasedProperties = "dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "); + + function functionThatReturnsTrue() { + return !0; + } + + function functionThatReturnsFalse() { + return !1; + } + + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + dispatchConfig = this.constructor.Interface; + + for (var propName in dispatchConfig) { + dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); + } + + this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + + _extends(SyntheticEvent.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = !0; + var event = this.nativeEvent; + event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); + }, + stopPropagation: function stopPropagation() { + var event = this.nativeEvent; + event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); + }, + persist: function persist() { + this.isPersistent = functionThatReturnsTrue; + }, + isPersistent: functionThatReturnsFalse, + destructor: function destructor() { + var Interface = this.constructor.Interface, + propName; + + for (propName in Interface) { + this[propName] = null; + } + + for (Interface = 0; Interface < shouldBeReleasedProperties.length; Interface++) { + this[shouldBeReleasedProperties[Interface]] = null; + } + } + }); + + SyntheticEvent.Interface = { + type: null, + target: null, + currentTarget: function currentTarget() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function timeStamp(event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + + SyntheticEvent.extend = function (Interface) { + function E() {} + + function Class() { + return Super.apply(this, arguments); + } + + var Super = this; + E.prototype = Super.prototype; + var prototype = new E(); + + _extends(prototype, Class.prototype); + + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = _extends({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + + addEventPoolingTo(SyntheticEvent); + + function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + if (this.eventPool.length) { + var instance = this.eventPool.pop(); + this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + + return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + + function releasePooledEvent(event) { + invariant(event instanceof this, "Trying to release an event instance into a pool of a different type."); + event.destructor(); + 10 > this.eventPool.length && this.eventPool.push(event); + } + + function addEventPoolingTo(EventConstructor) { + EventConstructor.eventPool = []; + EventConstructor.getPooled = getPooledEvent; + EventConstructor.release = releasePooledEvent; + } + + var ResponderSyntheticEvent = SyntheticEvent.extend({ + touchHistory: function touchHistory() { + return null; + } + }); + + function isStartish(topLevelType) { + return "topTouchStart" === topLevelType; + } + + function isMoveish(topLevelType) { + return "topTouchMove" === topLevelType; + } + + var startDependencies = ["topTouchStart"], + moveDependencies = ["topTouchMove"], + endDependencies = ["topTouchCancel", "topTouchEnd"], + touchBank = [], + touchHistory = { + touchBank: touchBank, + numberActiveTouches: 0, + indexOfSingleActiveTouch: -1, + mostRecentTimeStamp: 0 + }; + + function timestampForTouch(touch) { + return touch.timeStamp || touch.timestamp; + } + + function getTouchIdentifier(_ref) { + _ref = _ref.identifier; + invariant(null != _ref, "Touch object is missing identifier."); + return _ref; + } + + function recordTouchStart(touch) { + var identifier = getTouchIdentifier(touch), + touchRecord = touchBank[identifier]; + touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { + touchActive: !0, + startPageX: touch.pageX, + startPageY: touch.pageY, + startTimeStamp: timestampForTouch(touch), + currentPageX: touch.pageX, + currentPageY: touch.pageY, + currentTimeStamp: timestampForTouch(touch), + previousPageX: touch.pageX, + previousPageY: touch.pageY, + previousTimeStamp: timestampForTouch(touch) + }, touchBank[identifier] = touchRecord); + touchHistory.mostRecentTimeStamp = timestampForTouch(touch); + } + + function recordTouchMove(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord ? (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)) : console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + + function recordTouchEnd(touch) { + var touchRecord = touchBank[getTouchIdentifier(touch)]; + touchRecord ? (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)) : console.error("Cannot record touch end without a touch start.\nTouch End: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); + } + + function printTouch(touch) { + return JSON.stringify({ + identifier: touch.identifier, + pageX: touch.pageX, + pageY: touch.pageY, + timestamp: timestampForTouch(touch) + }); + } + + function printTouchBank() { + var printed = JSON.stringify(touchBank.slice(0, 20)); + 20 < touchBank.length && (printed += " (original size: " + touchBank.length + ")"); + return printed; + } + + var ResponderTouchHistoryStore = { + recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { + if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) { + if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { + touchHistory.indexOfSingleActiveTouch = topLevelType; + break; + } + } + }, + touchHistory: touchHistory + }; + + function accumulate(current, next) { + invariant(null != next, "accumulate(...): Accumulated items must be not be null or undefined."); + return null == current ? next : Array.isArray(current) ? current.concat(next) : Array.isArray(next) ? [current].concat(next) : [current, next]; + } + + var responderInst = null, + trackedTouchCount = 0; + + function changeResponder(nextResponderInst, blockHostResponder) { + var oldResponderInst = responderInst; + responderInst = nextResponderInst; + if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); + } + + var eventTypes$1 = { + startShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onStartShouldSetResponder", + captured: "onStartShouldSetResponderCapture" + }, + dependencies: startDependencies + }, + scrollShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onScrollShouldSetResponder", + captured: "onScrollShouldSetResponderCapture" + }, + dependencies: ["topScroll"] + }, + selectionChangeShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onSelectionChangeShouldSetResponder", + captured: "onSelectionChangeShouldSetResponderCapture" + }, + dependencies: ["topSelectionChange"] + }, + moveShouldSetResponder: { + phasedRegistrationNames: { + bubbled: "onMoveShouldSetResponder", + captured: "onMoveShouldSetResponderCapture" + }, + dependencies: moveDependencies + }, + responderStart: { + registrationName: "onResponderStart", + dependencies: startDependencies + }, + responderMove: { + registrationName: "onResponderMove", + dependencies: moveDependencies + }, + responderEnd: { + registrationName: "onResponderEnd", + dependencies: endDependencies + }, + responderRelease: { + registrationName: "onResponderRelease", + dependencies: endDependencies + }, + responderTerminationRequest: { + registrationName: "onResponderTerminationRequest", + dependencies: [] + }, + responderGrant: { + registrationName: "onResponderGrant", + dependencies: [] + }, + responderReject: { + registrationName: "onResponderReject", + dependencies: [] + }, + responderTerminate: { + registrationName: "onResponderTerminate", + dependencies: [] + } + }, + ResponderEventPlugin = { + _getResponder: function _getResponder() { + return responderInst; + }, + eventTypes: eventTypes$1, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."), null; + ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); + + if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { + var JSCompiler_temp = isStartish(topLevelType) ? eventTypes$1.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes$1.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes$1.selectionChangeShouldSetResponder : eventTypes$1.scrollShouldSetResponder; + if (responderInst) b: { + var JSCompiler_temp$jscomp$0 = responderInst; + + for (var depthA = 0, tempA = JSCompiler_temp$jscomp$0; tempA; tempA = getParent(tempA)) { + depthA++; + } + + tempA = 0; + + for (var tempB = targetInst; tempB; tempB = getParent(tempB)) { + tempA++; + } + + for (; 0 < depthA - tempA;) { + JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0), depthA--; + } + + for (; 0 < tempA - depthA;) { + targetInst = getParent(targetInst), tempA--; + } + + for (; depthA--;) { + if (JSCompiler_temp$jscomp$0 === targetInst || JSCompiler_temp$jscomp$0 === targetInst.alternate) break b; + JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0); + targetInst = getParent(targetInst); + } + + JSCompiler_temp$jscomp$0 = null; + } else JSCompiler_temp$jscomp$0 = targetInst; + targetInst = JSCompiler_temp$jscomp$0 === responderInst; + JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(JSCompiler_temp, JSCompiler_temp$jscomp$0, nativeEvent, nativeEventTarget); + JSCompiler_temp$jscomp$0.touchHistory = ResponderTouchHistoryStore.touchHistory; + targetInst ? forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateTwoPhaseDispatchesSingle); + + b: { + JSCompiler_temp = JSCompiler_temp$jscomp$0._dispatchListeners; + targetInst = JSCompiler_temp$jscomp$0._dispatchInstances; + if (Array.isArray(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !JSCompiler_temp$jscomp$0.isPropagationStopped(); depthA++) { + if (JSCompiler_temp[depthA](JSCompiler_temp$jscomp$0, targetInst[depthA])) { + JSCompiler_temp = targetInst[depthA]; + break b; + } + } else if (JSCompiler_temp && JSCompiler_temp(JSCompiler_temp$jscomp$0, targetInst)) { + JSCompiler_temp = targetInst; + break b; + } + JSCompiler_temp = null; + } + + JSCompiler_temp$jscomp$0._dispatchInstances = null; + JSCompiler_temp$jscomp$0._dispatchListeners = null; + JSCompiler_temp$jscomp$0.isPersistent() || JSCompiler_temp$jscomp$0.constructor.release(JSCompiler_temp$jscomp$0); + JSCompiler_temp && JSCompiler_temp !== responderInst ? (JSCompiler_temp$jscomp$0 = void 0, targetInst = ResponderSyntheticEvent.getPooled(eventTypes$1.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), targetInst.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(targetInst, accumulateDirectDispatchesSingle), depthA = !0 === executeDirectDispatch(targetInst), responderInst ? (tempA = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), tempA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(tempA, accumulateDirectDispatchesSingle), tempB = !tempA._dispatchListeners || executeDirectDispatch(tempA), tempA.isPersistent() || tempA.constructor.release(tempA), tempB ? (tempA = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminate, responderInst, nativeEvent, nativeEventTarget), tempA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(tempA, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [targetInst, tempA]), changeResponder(JSCompiler_temp, depthA)) : (JSCompiler_temp = ResponderSyntheticEvent.getPooled(eventTypes$1.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), JSCompiler_temp.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(JSCompiler_temp, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, JSCompiler_temp))) : (JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, targetInst), changeResponder(JSCompiler_temp, depthA)), JSCompiler_temp = JSCompiler_temp$jscomp$0) : JSCompiler_temp = null; + } else JSCompiler_temp = null; + + JSCompiler_temp$jscomp$0 = responderInst && isStartish(topLevelType); + targetInst = responderInst && isMoveish(topLevelType); + depthA = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); + if (JSCompiler_temp$jscomp$0 = JSCompiler_temp$jscomp$0 ? eventTypes$1.responderStart : targetInst ? eventTypes$1.responderMove : depthA ? eventTypes$1.responderEnd : null) JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(JSCompiler_temp$jscomp$0, responderInst, nativeEvent, nativeEventTarget), JSCompiler_temp$jscomp$0.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateDirectDispatchesSingle), JSCompiler_temp = accumulate(JSCompiler_temp, JSCompiler_temp$jscomp$0); + JSCompiler_temp$jscomp$0 = responderInst && "topTouchCancel" === topLevelType; + if (topLevelType = responderInst && !JSCompiler_temp$jscomp$0 && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { + if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (targetInst = 0; targetInst < topLevelType.length; targetInst++) { + if (depthA = topLevelType[targetInst].target, null !== depthA && void 0 !== depthA && 0 !== depthA) { + tempA = getInstanceFromNode(depthA); + + b: { + for (depthA = responderInst; tempA;) { + if (depthA === tempA || depthA === tempA.alternate) { + depthA = !0; + break b; + } + + tempA = getParent(tempA); + } + + depthA = !1; + } + + if (depthA) { + topLevelType = !1; + break a; + } + } + } + topLevelType = !0; + } + if (topLevelType = JSCompiler_temp$jscomp$0 ? eventTypes$1.responderTerminate : topLevelType ? eventTypes$1.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp = accumulate(JSCompiler_temp, nativeEvent), changeResponder(null); + return JSCompiler_temp; + }, + GlobalResponderHandler: null, + injection: { + injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { + ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; + } + } + }, + customBubblingEventTypes$1 = ReactNativeViewConfigRegistry.customBubblingEventTypes, + customDirectEventTypes$1 = ReactNativeViewConfigRegistry.customDirectEventTypes, + ReactNativeBridgeEventPlugin = { + eventTypes: ReactNativeViewConfigRegistry.eventTypes, + extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + if (null == targetInst) return null; + var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType], + directDispatchConfig = customDirectEventTypes$1[topLevelType]; + invariant(bubbleDispatchConfig || directDispatchConfig, 'Unsupported top level event type "%s" dispatched', topLevelType); + topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); + if (bubbleDispatchConfig) forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle);else return null; + return topLevelType; + } + }; + injection.injectEventPluginOrder(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); + injection.injectEventPluginsByName({ + ResponderEventPlugin: ResponderEventPlugin, + ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin + }); + + function getInstanceFromInstance(instanceHandle) { + return instanceHandle; + } + + var Injected$jscomp$inline_574 = { + getClosestInstanceFromNode: getInstanceFromInstance, + getInstanceFromNode: getInstanceFromInstance, + getNodeFromInstance: function getNodeFromInstance(inst) { + inst = inst.stateNode.canonical._nativeTag; + invariant(inst, "All native instances should have a tag."); + return inst; + }, + getFiberCurrentPropsFromNode: function getFiberCurrentPropsFromNode(inst) { + return inst.canonical.currentProps; + } + }; + getFiberCurrentPropsFromNode = Injected$jscomp$inline_574.getFiberCurrentPropsFromNode; + getInstanceFromNode = Injected$jscomp$inline_574.getInstanceFromNode; + getNodeFromInstance = Injected$jscomp$inline_574.getNodeFromInstance; + ResponderEventPlugin.injection.injectGlobalResponderHandler({ + onChange: function onChange(from, to, blockNativeResponder) { + null !== to ? UIManager.setJSResponder(to.stateNode.canonical._nativeTag, blockNativeResponder) : UIManager.clearJSResponder(); + } + }); + var ReactCurrentOwner = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, + hasSymbol = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.for : "@@for"), + REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 60103, + REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 60106, + REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 60107, + REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 60108, + REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 60114, + REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 60109, + REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 60110, + REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 60111, + REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 60112, + REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout") : 60113, + MAYBE_ITERATOR_SYMBOL = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); + + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "undefined" === typeof maybeIterable) return null; + maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + + function getComponentName(fiber) { + var type = fiber.type; + if ("function" === typeof type) return type.displayName || type.name; + if ("string" === typeof type) return type; + + switch (type) { + case REACT_ASYNC_MODE_TYPE: + return "AsyncMode"; + + case REACT_CONTEXT_TYPE: + return "Context.Consumer"; + + case REACT_FRAGMENT_TYPE: + return "ReactFragment"; + + case REACT_PORTAL_TYPE: + return "ReactPortal"; + + case REACT_PROFILER_TYPE: + return "Profiler(" + fiber.pendingProps.id + ")"; + + case REACT_PROVIDER_TYPE: + return "Context.Provider"; + + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + + case REACT_TIMEOUT_TYPE: + return "Timeout"; + } + + if ("object" === typeof type && null !== type) switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return fiber = type.render.displayName || type.render.name || "", "" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"; + } + return null; + } + + function isFiberMountedImpl(fiber) { + var node = fiber; + if (fiber.alternate) for (; node.return;) { + node = node.return; + } else { + if (0 !== (node.effectTag & 2)) return 1; + + for (; node.return;) { + if (node = node.return, 0 !== (node.effectTag & 2)) return 1; + } + } + return 3 === node.tag ? 2 : 3; + } + + function assertIsMounted(fiber) { + invariant(2 === isFiberMountedImpl(fiber), "Unable to find node on an unmounted component."); + } + + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) return alternate = isFiberMountedImpl(fiber), invariant(3 !== alternate, "Unable to find node on an unmounted component."), 1 === alternate ? null : fiber; + + for (var a = fiber, b = alternate;;) { + var parentA = a.return, + parentB = parentA ? parentA.alternate : null; + if (!parentA || !parentB) break; + + if (parentA.child === parentB.child) { + for (var child = parentA.child; child;) { + if (child === a) return assertIsMounted(parentA), fiber; + if (child === b) return assertIsMounted(parentA), alternate; + child = child.sibling; + } + + invariant(!1, "Unable to find node on an unmounted component."); + } + + if (a.return !== b.return) a = parentA, b = parentB;else { + child = !1; + + for (var _child = parentA.child; _child;) { + if (_child === a) { + child = !0; + a = parentA; + b = parentB; + break; + } + + if (_child === b) { + child = !0; + b = parentA; + a = parentB; + break; + } + + _child = _child.sibling; + } + + if (!child) { + for (_child = parentB.child; _child;) { + if (_child === a) { + child = !0; + a = parentB; + b = parentA; + break; + } + + if (_child === b) { + child = !0; + b = parentB; + a = parentA; + break; + } + + _child = _child.sibling; + } + + invariant(child, "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); + } + } + invariant(a.alternate === b, "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); + } + + invariant(3 === a.tag, "Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + if (!parent) return null; + + for (var node = parent;;) { + if (5 === node.tag || 6 === node.tag) return node; + if (node.child) node.child.return = node, node = node.child;else { + if (node === parent) break; + + for (; !node.sibling;) { + if (!node.return || node.return === parent) return null; + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + return null; + } + + function findCurrentHostFiberWithNoPortals(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + if (!parent) return null; + + for (var node = parent;;) { + if (5 === node.tag || 6 === node.tag) return node; + if (node.child && 4 !== node.tag) node.child.return = node, node = node.child;else { + if (node === parent) break; + + for (; !node.sibling;) { + if (!node.return || node.return === parent) return null; + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + return null; + } + + function mountSafeCallback(context, callback) { + return function () { + if (callback) { + if ("boolean" === typeof context.__isMounted) { + if (!context.__isMounted) return; + } else if ("function" === typeof context.isMounted && !context.isMounted()) return; + + return callback.apply(context, arguments); + } + }; + } + + var emptyObject$1 = {}, + removedKeys = null, + removedKeyCount = 0; + + function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { + if (Array.isArray(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) { + restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); + } else if (node && 0 < removedKeyCount) for (i in removedKeys) { + if (removedKeys[i]) { + var _nextProp = node[i]; + + if (void 0 !== _nextProp) { + var attributeConfig = validAttributes[i]; + + if (attributeConfig) { + "function" === typeof _nextProp && (_nextProp = !0); + "undefined" === typeof _nextProp && (_nextProp = null); + if ("object" !== typeof attributeConfig) updatePayload[i] = _nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) _nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(_nextProp) : _nextProp, updatePayload[i] = _nextProp; + removedKeys[i] = !1; + removedKeyCount--; + } + } + } + } + } + + function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { + if (!updatePayload && prevProp === nextProp) return updatePayload; + if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; + if (!Array.isArray(prevProp) && !Array.isArray(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); + + if (Array.isArray(prevProp) && Array.isArray(nextProp)) { + var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, + i; + + for (i = 0; i < minLength; i++) { + updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); + } + + for (; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + + for (; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + + return updatePayload; + } + + return Array.isArray(prevProp) ? diffProperties(updatePayload, flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, flattenStyle(nextProp), validAttributes); + } + + function addNestedProperty(updatePayload, nextProp, validAttributes) { + if (!nextProp) return updatePayload; + if (!Array.isArray(nextProp)) return diffProperties(updatePayload, emptyObject$1, nextProp, validAttributes); + + for (var i = 0; i < nextProp.length; i++) { + updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); + } + + return updatePayload; + } + + function clearNestedProperty(updatePayload, prevProp, validAttributes) { + if (!prevProp) return updatePayload; + if (!Array.isArray(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject$1, validAttributes); + + for (var i = 0; i < prevProp.length; i++) { + updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); + } + + return updatePayload; + } + + function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { + var attributeConfig, propKey; + + for (propKey in nextProps) { + if (attributeConfig = validAttributes[propKey]) { + var prevProp = prevProps[propKey]; + var nextProp = nextProps[propKey]; + "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); + "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); + removedKeys && (removedKeys[propKey] = !1); + if (updatePayload && void 0 !== updatePayload[propKey]) { + if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { + if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; + } + } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) ("object" !== typeof nextProp || null === nextProp || deepDiffer(prevProp, nextProp)) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { + if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : "object" !== typeof nextProp || null === nextProp || deepDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; + } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); + } + } + + for (var _propKey in prevProps) { + void 0 === nextProps[_propKey] && (!(attributeConfig = validAttributes[_propKey]) || updatePayload && void 0 !== updatePayload[_propKey] || (prevProp = prevProps[_propKey], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[_propKey] = null, removedKeys || (removedKeys = {}), removedKeys[_propKey] || (removedKeys[_propKey] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); + } + + return updatePayload; + } + + var now$1 = "object" === typeof performance && "function" === typeof performance.now ? function () { + return performance.now(); + } : function () { + return Date.now(); + }, + scheduledCallback = null, + frameDeadline = 0, + frameDeadlineObject = { + timeRemaining: function timeRemaining() { + return frameDeadline - now$1(); + }, + didTimeout: !1 + }; + + function setTimeoutCallback() { + frameDeadline = now$1() + 5; + var callback = scheduledCallback; + scheduledCallback = null; + null !== callback && callback(frameDeadlineObject); + } + + var restoreTarget = null, + restoreQueue = null; + + function restoreStateOfTarget(target) { + if (target = getInstanceFromNode(target)) { + invariant(null, "Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue."); + var props = getFiberCurrentPropsFromNode(target.stateNode); + null.restoreControlledState(target.stateNode, target.type, props); + } + } + + function _batchedUpdates(fn, bookkeeping) { + return fn(bookkeeping); + } + + function _flushInteractiveUpdates() {} + + var isBatching = !1; + + function batchedUpdates(fn, bookkeeping) { + if (isBatching) return fn(bookkeeping); + isBatching = !0; + + try { + return _batchedUpdates(fn, bookkeeping); + } finally { + if (isBatching = !1, null !== restoreTarget || null !== restoreQueue) if (_flushInteractiveUpdates(), restoreTarget && (bookkeeping = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(bookkeeping), fn)) for (bookkeeping = 0; bookkeeping < fn.length; bookkeeping++) { + restoreStateOfTarget(fn[bookkeeping]); + } + } + } + + function dispatchEvent(target, topLevelType, nativeEvent) { + batchedUpdates(function () { + var events = nativeEvent.target; + + for (var events$jscomp$0 = null, i = 0; i < plugins.length; i++) { + var possiblePlugin = plugins[i]; + possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, target, nativeEvent, events)) && (events$jscomp$0 = accumulateInto(events$jscomp$0, possiblePlugin)); + } + + events = events$jscomp$0; + null !== events && (eventQueue = accumulateInto(eventQueue, events)); + events = eventQueue; + eventQueue = null; + events && (forEachAccumulated(events, executeDispatchesAndReleaseTopLevel), invariant(!eventQueue, "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."), ReactErrorUtils.rethrowCaughtError()); + }); + } + + function shim$1() { + invariant(!1, "The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue."); + } + + var nextReactTag = 2; + FabricUIManager.registerEventHandler && FabricUIManager.registerEventHandler(dispatchEvent); + + var ReactFabricHostComponent = function () { + function ReactFabricHostComponent(tag, viewConfig, props) { + if (!(this instanceof ReactFabricHostComponent)) throw new TypeError("Cannot call a class as a function"); + this._nativeTag = tag; + this.viewConfig = viewConfig; + this.currentProps = props; + } + + ReactFabricHostComponent.prototype.blur = function () { + TextInputState.blurTextInput(this._nativeTag); + }; + + ReactFabricHostComponent.prototype.focus = function () { + TextInputState.focusTextInput(this._nativeTag); + }; + + ReactFabricHostComponent.prototype.measure = function (callback) { + UIManager.measure(this._nativeTag, mountSafeCallback(this, callback)); + }; + + ReactFabricHostComponent.prototype.measureInWindow = function (callback) { + UIManager.measureInWindow(this._nativeTag, mountSafeCallback(this, callback)); + }; + + ReactFabricHostComponent.prototype.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(this._nativeTag, relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }; + + ReactFabricHostComponent.prototype.setNativeProps = function (nativeProps) { + nativeProps = diffProperties(null, emptyObject$1, nativeProps, this.viewConfig.validAttributes); + null != nativeProps && UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, nativeProps); + }; + + return ReactFabricHostComponent; + }(); + + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + invariant(hostContext.isInAParentText, "Text strings must be rendered within a component."); + hostContext = nextReactTag; + nextReactTag += 2; + return { + node: FabricUIManager.createNode(hostContext, "RCTRawText", rootContainerInstance, { + text: text + }, internalInstanceHandle) + }; + } + + function getStackAddendumByWorkInProgressFiber(workInProgress) { + var info = ""; + + do { + a: switch (workInProgress.tag) { + case 0: + case 1: + case 2: + case 5: + var owner = workInProgress._debugOwner, + source = workInProgress._debugSource; + var JSCompiler_inline_result = getComponentName(workInProgress); + var ownerName = null; + owner && (ownerName = getComponentName(owner)); + owner = source; + JSCompiler_inline_result = "\n in " + (JSCompiler_inline_result || "Unknown") + (owner ? " (at " + owner.fileName.replace(/^.*[\\\/]/, "") + ":" + owner.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); + break a; + + default: + JSCompiler_inline_result = ""; + } + + info += JSCompiler_inline_result; + workInProgress = workInProgress.return; + } while (workInProgress); + + return info; + } + + new Set(); + var valueStack = [], + index = -1; + + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + + function pop(cursor) { + 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); + } + + function push(cursor, value) { + index++; + valueStack[index] = cursor.current; + cursor.current = value; + } + + var contextStackCursor = createCursor(emptyObject), + didPerformWorkStackCursor = createCursor(!1), + previousContext = emptyObject; + + function getUnmaskedContext(workInProgress) { + return isContextProvider(workInProgress) ? previousContext : contextStackCursor.current; + } + + function getMaskedContext(workInProgress, unmaskedContext) { + var contextTypes = workInProgress.type.contextTypes; + if (!contextTypes) return emptyObject; + var instance = workInProgress.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; + var context = {}, + key; + + for (key in contextTypes) { + context[key] = unmaskedContext[key]; + } + + instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); + return context; + } + + function isContextProvider(fiber) { + return 2 === fiber.tag && null != fiber.type.childContextTypes; + } + + function popContextProvider(fiber) { + isContextProvider(fiber) && (pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber)); + } + + function popTopLevelContextObject(fiber) { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + + function pushTopLevelContextObject(fiber, context, didChange) { + invariant(contextStackCursor.current === emptyObject, "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); + push(contextStackCursor, context, fiber); + push(didPerformWorkStackCursor, didChange, fiber); + } + + function processChildContext(fiber, parentContext) { + var instance = fiber.stateNode, + childContextTypes = fiber.type.childContextTypes; + if ("function" !== typeof instance.getChildContext) return parentContext; + instance = instance.getChildContext(); + + for (var contextKey in instance) { + invariant(contextKey in childContextTypes, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); + } + + return _extends({}, parentContext, instance); + } + + function pushContextProvider(workInProgress) { + if (!isContextProvider(workInProgress)) return !1; + var instance = workInProgress.stateNode; + instance = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; + previousContext = contextStackCursor.current; + push(contextStackCursor, instance, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); + return !0; + } + + function invalidateContextProvider(workInProgress, didChange) { + var instance = workInProgress.stateNode; + invariant(instance, "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); + + if (didChange) { + var mergedContext = processChildContext(workInProgress, previousContext); + instance.__reactInternalMemoizedMergedChildContext = mergedContext; + pop(didPerformWorkStackCursor, workInProgress); + pop(contextStackCursor, workInProgress); + push(contextStackCursor, mergedContext, workInProgress); + } else pop(didPerformWorkStackCursor, workInProgress); + + push(didPerformWorkStackCursor, didChange, workInProgress); + } + + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.sibling = this.child = this.return = this.stateNode = this.type = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.memoizedState = this.updateQueue = this.memoizedProps = null; + this.mode = mode; + this.effectTag = 0; + this.lastEffect = this.firstEffect = this.nextEffect = null; + this.expirationTime = 0; + this.alternate = null; + } + + function createWorkInProgress(current, pendingProps, expirationTime) { + var workInProgress = current.alternate; + null === workInProgress ? (workInProgress = new FiberNode(current.tag, pendingProps, current.key, current.mode), workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.effectTag = 0, workInProgress.nextEffect = null, workInProgress.firstEffect = null, workInProgress.lastEffect = null); + workInProgress.expirationTime = expirationTime; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + return workInProgress; + } + + function createFiberFromElement(element, mode, expirationTime) { + var type = element.type, + key = element.key; + element = element.props; + if ("function" === typeof type) var fiberTag = type.prototype && type.prototype.isReactComponent ? 2 : 0;else if ("string" === typeof type) fiberTag = 5;else switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(element.children, mode, expirationTime, key); + + case REACT_ASYNC_MODE_TYPE: + fiberTag = 11; + mode |= 3; + break; + + case REACT_STRICT_MODE_TYPE: + fiberTag = 11; + mode |= 2; + break; + + case REACT_PROFILER_TYPE: + return type = new FiberNode(15, element, key, mode | 4), type.type = REACT_PROFILER_TYPE, type.expirationTime = expirationTime, type; + + case REACT_TIMEOUT_TYPE: + fiberTag = 16; + mode |= 2; + break; + + default: + a: { + switch ("object" === typeof type && null !== type ? type.$$typeof : null) { + case REACT_PROVIDER_TYPE: + fiberTag = 13; + break a; + + case REACT_CONTEXT_TYPE: + fiberTag = 12; + break a; + + case REACT_FORWARD_REF_TYPE: + fiberTag = 14; + break a; + + default: + invariant(!1, "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", null == type ? type : typeof type, ""); + } + + fiberTag = void 0; + } + + } + mode = new FiberNode(fiberTag, element, key, mode); + mode.type = type; + mode.expirationTime = expirationTime; + return mode; + } + + function createFiberFromFragment(elements, mode, expirationTime, key) { + elements = new FiberNode(10, elements, key, mode); + elements.expirationTime = expirationTime; + return elements; + } + + function createFiberFromText(content, mode, expirationTime) { + content = new FiberNode(6, content, null, mode); + content.expirationTime = expirationTime; + return content; + } + + function createFiberFromPortal(portal, mode, expirationTime) { + mode = new FiberNode(4, null !== portal.children ? portal.children : [], portal.key, mode); + mode.expirationTime = expirationTime; + mode.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + implementation: portal.implementation + }; + return mode; + } + + function createFiberRoot(containerInfo, isAsync, hydrate) { + isAsync = new FiberNode(3, null, null, isAsync ? 3 : 0); + containerInfo = { + current: isAsync, + containerInfo: containerInfo, + pendingChildren: null, + earliestPendingTime: 0, + latestPendingTime: 0, + earliestSuspendedTime: 0, + latestSuspendedTime: 0, + latestPingedTime: 0, + didError: !1, + pendingCommitExpirationTime: 0, + finishedWork: null, + context: null, + pendingContext: null, + hydrate: hydrate, + nextExpirationTimeToWorkOn: 0, + expirationTime: 0, + firstBatch: null, + nextScheduledRoot: null + }; + return isAsync.stateNode = containerInfo; + } + + var onCommitFiberRoot = null, + onCommitFiberUnmount = null; + + function catchErrors(fn) { + return function (arg) { + try { + return fn(arg); + } catch (err) {} + }; + } + + function injectInternals(internals) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled || !hook.supportsFiber) return !0; + + try { + var rendererID = hook.inject(internals); + onCommitFiberRoot = catchErrors(function (root) { + return hook.onCommitFiberRoot(rendererID, root); + }); + onCommitFiberUnmount = catchErrors(function (fiber) { + return hook.onCommitFiberUnmount(rendererID, fiber); + }); + } catch (err) {} + + return !0; + } + + function onCommitRoot(root) { + "function" === typeof onCommitFiberRoot && onCommitFiberRoot(root); + } + + function onCommitUnmount(fiber) { + "function" === typeof onCommitFiberUnmount && onCommitFiberUnmount(fiber); + } + + function markPendingPriorityLevel(root, expirationTime) { + root.didError = !1; + var earliestPendingTime = root.earliestPendingTime; + 0 === earliestPendingTime ? root.earliestPendingTime = root.latestPendingTime = expirationTime : earliestPendingTime > expirationTime ? root.earliestPendingTime = expirationTime : root.latestPendingTime < expirationTime && (root.latestPendingTime = expirationTime); + findNextPendingPriorityLevel(root); + } + + function findNextPendingPriorityLevel(root) { + var earliestSuspendedTime = root.earliestSuspendedTime, + earliestPendingTime = root.earliestPendingTime; + if (0 === earliestSuspendedTime) var nextExpirationTimeToWorkOn = earliestSuspendedTime = earliestPendingTime;else 0 !== earliestPendingTime ? (nextExpirationTimeToWorkOn = earliestPendingTime, earliestSuspendedTime = earliestSuspendedTime < earliestPendingTime ? earliestSuspendedTime : earliestPendingTime) : nextExpirationTimeToWorkOn = earliestSuspendedTime = root.latestPingedTime; + root.didError && (earliestSuspendedTime = 1); + root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn; + root.expirationTime = earliestSuspendedTime; + } + + var hasForceUpdate = !1; + + function createUpdateQueue(baseState) { + return { + expirationTime: 0, + baseState: baseState, + firstUpdate: null, + lastUpdate: null, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + + function cloneUpdateQueue(currentQueue) { + return { + expirationTime: currentQueue.expirationTime, + baseState: currentQueue.baseState, + firstUpdate: currentQueue.firstUpdate, + lastUpdate: currentQueue.lastUpdate, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + + function createUpdate(expirationTime) { + return { + expirationTime: expirationTime, + tag: 0, + payload: null, + callback: null, + next: null, + nextEffect: null + }; + } + + function appendUpdateToQueue(queue, update, expirationTime) { + null === queue.lastUpdate ? queue.firstUpdate = queue.lastUpdate = update : (queue.lastUpdate.next = update, queue.lastUpdate = update); + if (0 === queue.expirationTime || queue.expirationTime > expirationTime) queue.expirationTime = expirationTime; + } + + function enqueueUpdate(fiber, update, expirationTime) { + var alternate = fiber.alternate; + + if (null === alternate) { + var queue1 = fiber.updateQueue; + var queue2 = null; + null === queue1 && (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState)); + } else queue1 = fiber.updateQueue, queue2 = alternate.updateQueue, null === queue1 ? null === queue2 ? (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState), queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState)) : queue1 = fiber.updateQueue = cloneUpdateQueue(queue2) : null === queue2 && (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1)); + + null === queue2 || queue1 === queue2 ? appendUpdateToQueue(queue1, update, expirationTime) : null === queue1.lastUpdate || null === queue2.lastUpdate ? (appendUpdateToQueue(queue1, update, expirationTime), appendUpdateToQueue(queue2, update, expirationTime)) : (appendUpdateToQueue(queue1, update, expirationTime), queue2.lastUpdate = update); + } + + function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { + var workInProgressQueue = workInProgress.updateQueue; + workInProgressQueue = null === workInProgressQueue ? workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState) : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); + null === workInProgressQueue.lastCapturedUpdate ? workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update : (workInProgressQueue.lastCapturedUpdate.next = update, workInProgressQueue.lastCapturedUpdate = update); + if (0 === workInProgressQueue.expirationTime || workInProgressQueue.expirationTime > renderExpirationTime) workInProgressQueue.expirationTime = renderExpirationTime; + } + + function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { + var current = workInProgress.alternate; + null !== current && queue === current.updateQueue && (queue = workInProgress.updateQueue = cloneUpdateQueue(queue)); + return queue; + } + + function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case 1: + return workInProgress = update.payload, "function" === typeof workInProgress ? workInProgress.call(instance, prevState, nextProps) : workInProgress; + + case 3: + workInProgress.effectTag = workInProgress.effectTag & -1025 | 64; + + case 0: + workInProgress = update.payload; + nextProps = "function" === typeof workInProgress ? workInProgress.call(instance, prevState, nextProps) : workInProgress; + if (null === nextProps || void 0 === nextProps) break; + return _extends({}, prevState, nextProps); + + case 2: + hasForceUpdate = !0; + } + + return prevState; + } + + function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { + hasForceUpdate = !1; + + if (!(0 === queue.expirationTime || queue.expirationTime > renderExpirationTime)) { + queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); + + for (var newBaseState = queue.baseState, newFirstUpdate = null, newExpirationTime = 0, update = queue.firstUpdate, resultState = newBaseState; null !== update;) { + var updateExpirationTime = update.expirationTime; + + if (updateExpirationTime > renderExpirationTime) { + if (null === newFirstUpdate && (newFirstUpdate = update, newBaseState = resultState), 0 === newExpirationTime || newExpirationTime > updateExpirationTime) newExpirationTime = updateExpirationTime; + } else resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance), null !== update.callback && (workInProgress.effectTag |= 32, update.nextEffect = null, null === queue.lastEffect ? queue.firstEffect = queue.lastEffect = update : (queue.lastEffect.nextEffect = update, queue.lastEffect = update)); + + update = update.next; + } + + updateExpirationTime = null; + + for (update = queue.firstCapturedUpdate; null !== update;) { + var _updateExpirationTime = update.expirationTime; + + if (_updateExpirationTime > renderExpirationTime) { + if (null === updateExpirationTime && (updateExpirationTime = update, null === newFirstUpdate && (newBaseState = resultState)), 0 === newExpirationTime || newExpirationTime > _updateExpirationTime) newExpirationTime = _updateExpirationTime; + } else resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance), null !== update.callback && (workInProgress.effectTag |= 32, update.nextEffect = null, null === queue.lastCapturedEffect ? queue.firstCapturedEffect = queue.lastCapturedEffect = update : (queue.lastCapturedEffect.nextEffect = update, queue.lastCapturedEffect = update)); + + update = update.next; + } + + null === newFirstUpdate && (queue.lastUpdate = null); + null === updateExpirationTime ? queue.lastCapturedUpdate = null : workInProgress.effectTag |= 32; + null === newFirstUpdate && null === updateExpirationTime && (newBaseState = resultState); + queue.baseState = newBaseState; + queue.firstUpdate = newFirstUpdate; + queue.firstCapturedUpdate = updateExpirationTime; + queue.expirationTime = newExpirationTime; + workInProgress.memoizedState = resultState; + } + } + + function callCallback(callback, context) { + invariant("function" === typeof callback, "Invalid argument passed as callback. Expected a function. Instead received: %s", callback); + callback.call(context); + } + + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + null !== finishedQueue.firstCapturedUpdate && (null !== finishedQueue.lastUpdate && (finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate, finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate), finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null); + finishedWork = finishedQueue.firstEffect; + + for (finishedQueue.firstEffect = finishedQueue.lastEffect = null; null !== finishedWork;) { + var _callback3 = finishedWork.callback; + null !== _callback3 && (finishedWork.callback = null, callCallback(_callback3, instance)); + finishedWork = finishedWork.nextEffect; + } + + finishedWork = finishedQueue.firstCapturedEffect; + + for (finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; null !== finishedWork;) { + finishedQueue = finishedWork.callback, null !== finishedQueue && (finishedWork.callback = null, callCallback(finishedQueue, instance)), finishedWork = finishedWork.nextEffect; + } + } + + function createCapturedValue(value, source) { + return { + value: value, + source: source, + stack: getStackAddendumByWorkInProgressFiber(source) + }; + } + + var providerCursor = createCursor(null), + valueCursor = createCursor(null), + changedBitsCursor = createCursor(0); + + function pushProvider(providerFiber) { + var context = providerFiber.type._context; + push(changedBitsCursor, context._changedBits2, providerFiber); + push(valueCursor, context._currentValue2, providerFiber); + push(providerCursor, providerFiber, providerFiber); + context._currentValue2 = providerFiber.pendingProps.value; + context._changedBits2 = providerFiber.stateNode; + } + + function popProvider(providerFiber) { + var changedBits = changedBitsCursor.current, + currentValue = valueCursor.current; + pop(providerCursor, providerFiber); + pop(valueCursor, providerFiber); + pop(changedBitsCursor, providerFiber); + providerFiber = providerFiber.type._context; + providerFiber._currentValue2 = currentValue; + providerFiber._changedBits2 = changedBits; + } + + var NO_CONTEXT = {}, + contextStackCursor$1 = createCursor(NO_CONTEXT), + contextFiberStackCursor = createCursor(NO_CONTEXT), + rootInstanceStackCursor = createCursor(NO_CONTEXT); + + function requiredContext(c) { + invariant(c !== NO_CONTEXT, "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); + return c; + } + + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, NO_CONTEXT, fiber); + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, { + isInAParentText: !1 + }, fiber); + } + + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber)); + } + + var hasOwnProperty = Object.prototype.hasOwnProperty; + + function is(x, y) { + return x === y ? 0 !== x || 0 !== y || 1 / x === 1 / y : x !== x && y !== y; + } + + function shallowEqual(objA, objB) { + if (is(objA, objB)) return !0; + if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; + var keysA = Object.keys(objA), + keysB = Object.keys(objB); + if (keysA.length !== keysB.length) return !1; + + for (keysB = 0; keysB < keysA.length; keysB++) { + if (!hasOwnProperty.call(objB, keysA[keysB]) || !is(objA[keysA[keysB]], objB[keysA[keysB]])) return !1; + } + + return !0; + } + + function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { + var prevState = workInProgress.memoizedState; + getDerivedStateFromProps = getDerivedStateFromProps(nextProps, prevState); + prevState = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? prevState : _extends({}, prevState, getDerivedStateFromProps); + workInProgress.memoizedState = prevState; + workInProgress = workInProgress.updateQueue; + null !== workInProgress && 0 === workInProgress.expirationTime && (workInProgress.baseState = prevState); + } + + var classComponentUpdater = { + isMounted: function isMounted(component) { + return (component = component._reactInternalFiber) ? 2 === isFiberMountedImpl(component) : !1; + }, + enqueueSetState: function enqueueSetState(inst, payload, callback) { + inst = inst._reactInternalFiber; + var currentTime = recalculateCurrentTime(); + currentTime = computeExpirationForFiber(currentTime, inst); + var update = createUpdate(currentTime); + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update, currentTime); + scheduleWork(inst, currentTime); + }, + enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { + inst = inst._reactInternalFiber; + var currentTime = recalculateCurrentTime(); + currentTime = computeExpirationForFiber(currentTime, inst); + var update = createUpdate(currentTime); + update.tag = 1; + update.payload = payload; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update, currentTime); + scheduleWork(inst, currentTime); + }, + enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { + inst = inst._reactInternalFiber; + var currentTime = recalculateCurrentTime(); + currentTime = computeExpirationForFiber(currentTime, inst); + var update = createUpdate(currentTime); + update.tag = 2; + void 0 !== callback && null !== callback && (update.callback = callback); + enqueueUpdate(inst, update, currentTime); + scheduleWork(inst, currentTime); + } + }; + + function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { + var instance = workInProgress.stateNode; + workInProgress = workInProgress.type; + return "function" === typeof instance.shouldComponentUpdate ? instance.shouldComponentUpdate(newProps, newState, newContext) : workInProgress.prototype && workInProgress.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; + } + + function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { + workInProgress = instance.state; + "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, newContext); + "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, newContext); + instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + + function mountClassInstance(workInProgress, renderExpirationTime) { + var ctor = workInProgress.type, + instance = workInProgress.stateNode, + props = workInProgress.pendingProps, + unmaskedContext = getUnmaskedContext(workInProgress); + instance.props = props; + instance.state = workInProgress.memoizedState; + instance.refs = emptyObject; + instance.context = getMaskedContext(workInProgress, unmaskedContext); + unmaskedContext = workInProgress.updateQueue; + null !== unmaskedContext && (processUpdateQueue(workInProgress, unmaskedContext, props, instance, renderExpirationTime), instance.state = workInProgress.memoizedState); + unmaskedContext = workInProgress.type.getDerivedStateFromProps; + "function" === typeof unmaskedContext && (applyDerivedStateFromProps(workInProgress, unmaskedContext, props), instance.state = workInProgress.memoizedState); + "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), unmaskedContext = workInProgress.updateQueue, null !== unmaskedContext && (processUpdateQueue(workInProgress, unmaskedContext, props, instance, renderExpirationTime), instance.state = workInProgress.memoizedState)); + "function" === typeof instance.componentDidMount && (workInProgress.effectTag |= 4); + } + + var isArray$1 = Array.isArray; + + function coerceRef(returnFiber, current, element) { + returnFiber = element.ref; + + if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { + if (element._owner) { + element = element._owner; + var inst = void 0; + element && (invariant(2 === element.tag, "Stateless function components cannot have refs."), inst = element.stateNode); + invariant(inst, "Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.", returnFiber); + var stringRef = "" + returnFiber; + if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; + + current = function current(value) { + var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; + null === value ? delete refs[stringRef] : refs[stringRef] = value; + }; + + current._stringRef = stringRef; + return current; + } + + invariant("string" === typeof returnFiber, "Expected ref to be a function or a string."); + invariant(element._owner, "Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a functional component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.", returnFiber); + } + + return returnFiber; + } + + function throwOnInvalidObjectType(returnFiber, newChild) { + "textarea" !== returnFiber.type && invariant(!1, "Objects are not valid as a React child (found: %s).%s", "[object Object]" === Object.prototype.toString.call(newChild) ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild, ""); + } + + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (shouldTrackSideEffects) { + var last = returnFiber.lastEffect; + null !== last ? (last.nextEffect = childToDelete, returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; + childToDelete.nextEffect = null; + childToDelete.effectTag = 8; + } + } + + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) return null; + + for (; null !== currentFirstChild;) { + deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + } + + return null; + } + + function mapRemainingChildren(returnFiber, currentFirstChild) { + for (returnFiber = new Map(); null !== currentFirstChild;) { + null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; + } + + return returnFiber; + } + + function useFiber(fiber, pendingProps, expirationTime) { + fiber = createWorkInProgress(fiber, pendingProps, expirationTime); + fiber.index = 0; + fiber.sibling = null; + return fiber; + } + + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) return lastPlacedIndex; + newIndex = newFiber.alternate; + if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.effectTag = 2, lastPlacedIndex) : newIndex; + newFiber.effectTag = 2; + return lastPlacedIndex; + } + + function placeSingleChild(newFiber) { + shouldTrackSideEffects && null === newFiber.alternate && (newFiber.effectTag = 2); + return newFiber; + } + + function updateTextNode(returnFiber, current, textContent, expirationTime) { + if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, expirationTime), current.return = returnFiber, current; + current = useFiber(current, textContent, expirationTime); + current.return = returnFiber; + return current; + } + + function updateElement(returnFiber, current, element, expirationTime) { + if (null !== current && current.type === element.type) return expirationTime = useFiber(current, element.props, expirationTime), expirationTime.ref = coerceRef(returnFiber, current, element), expirationTime.return = returnFiber, expirationTime; + expirationTime = createFiberFromElement(element, returnFiber.mode, expirationTime); + expirationTime.ref = coerceRef(returnFiber, current, element); + expirationTime.return = returnFiber; + return expirationTime; + } + + function updatePortal(returnFiber, current, portal, expirationTime) { + if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, expirationTime), current.return = returnFiber, current; + current = useFiber(current, portal.children || [], expirationTime); + current.return = returnFiber; + return current; + } + + function updateFragment(returnFiber, current, fragment, expirationTime, key) { + if (null === current || 10 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key), current.return = returnFiber, current; + current = useFiber(current, fragment, expirationTime); + current.return = returnFiber; + return current; + } + + function createChild(returnFiber, newChild, expirationTime) { + if ("string" === typeof newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, expirationTime), newChild.return = returnFiber, newChild; + + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return expirationTime = createFiberFromElement(newChild, returnFiber.mode, expirationTime), expirationTime.ref = coerceRef(returnFiber, null, newChild), expirationTime.return = returnFiber, expirationTime; + + case REACT_PORTAL_TYPE: + return newChild = createFiberFromPortal(newChild, returnFiber.mode, expirationTime), newChild.return = returnFiber, newChild; + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null), newChild.return = returnFiber, newChild; + throwOnInvalidObjectType(returnFiber, newChild); + } + + return null; + } + + function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { + var key = null !== oldFiber ? oldFiber.key : null; + if ("string" === typeof newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); + + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return newChild.key === key ? newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key) : updateElement(returnFiber, oldFiber, newChild, expirationTime) : null; + + case REACT_PORTAL_TYPE: + return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, expirationTime) : null; + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + + return null; + } + + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { + if ("string" === typeof newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, expirationTime); + + if ("object" === typeof newChild && null !== newChild) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, existingChildren, newChild.props.children, expirationTime, newChild.key) : updateElement(returnFiber, existingChildren, newChild, expirationTime); + + case REACT_PORTAL_TYPE: + return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, expirationTime); + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, expirationTime, null); + throwOnInvalidObjectType(returnFiber, newChild); + } + + return null; + } + + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { + for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); + + if (null === newFiber) { + null === oldFiber && (oldFiber = nextOldFiber); + break; + } + + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; + + if (null === oldFiber) { + for (; newIdx < newChildren.length; newIdx++) { + if (oldFiber = createChild(returnFiber, newChildren[newIdx], expirationTime)) currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber; + } + + return resultingFirstChild; + } + + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { + if (nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], expirationTime)) shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber; + } + + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + return resultingFirstChild; + } + + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { + var iteratorFn = getIteratorFn(newChildrenIterable); + invariant("function" === typeof iteratorFn, "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); + newChildrenIterable = iteratorFn.call(newChildrenIterable); + invariant(null != newChildrenIterable, "An iterable object provided no iterator."); + + for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { + oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; + var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); + + if (null === newFiber) { + oldFiber || (oldFiber = nextOldFiber); + break; + } + + shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); + currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); + null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; + + if (null === oldFiber) { + for (; !step.done; newIdx++, step = newChildrenIterable.next()) { + step = createChild(returnFiber, step.value, expirationTime), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + } + + return iteratorFn; + } + + for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) { + step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, expirationTime), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); + } + + shouldTrackSideEffects && oldFiber.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + return iteratorFn; + } + + return function (returnFiber, currentFirstChild, newChild, expirationTime) { + var isUnkeyedTopLevelFragment = "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key; + isUnkeyedTopLevelFragment && (newChild = newChild.props.children); + var isObject = "object" === typeof newChild && null !== newChild; + if (isObject) switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + a: { + isObject = newChild.key; + + for (isUnkeyedTopLevelFragment = currentFirstChild; null !== isUnkeyedTopLevelFragment;) { + if (isUnkeyedTopLevelFragment.key === isObject) { + if (10 === isUnkeyedTopLevelFragment.tag ? newChild.type === REACT_FRAGMENT_TYPE : isUnkeyedTopLevelFragment.type === newChild.type) { + deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment.sibling); + currentFirstChild = useFiber(isUnkeyedTopLevelFragment, newChild.type === REACT_FRAGMENT_TYPE ? newChild.props.children : newChild.props, expirationTime); + currentFirstChild.ref = coerceRef(returnFiber, isUnkeyedTopLevelFragment, newChild); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } else { + deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment); + break; + } + } else deleteChild(returnFiber, isUnkeyedTopLevelFragment); + isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling; + } + + newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, expirationTime, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (expirationTime = createFiberFromElement(newChild, returnFiber.mode, expirationTime), expirationTime.ref = coerceRef(returnFiber, currentFirstChild, newChild), expirationTime.return = returnFiber, returnFiber = expirationTime); + } + + return placeSingleChild(returnFiber); + + case REACT_PORTAL_TYPE: + a: { + for (isUnkeyedTopLevelFragment = newChild.key; null !== currentFirstChild;) { + if (currentFirstChild.key === isUnkeyedTopLevelFragment) { + if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + currentFirstChild = useFiber(currentFirstChild, newChild.children || [], expirationTime); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + break a; + } else { + deleteRemainingChildren(returnFiber, currentFirstChild); + break; + } + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; + } + + currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); + currentFirstChild.return = returnFiber; + returnFiber = currentFirstChild; + } + + return placeSingleChild(returnFiber); + } + if ("string" === typeof newChild || "number" === typeof newChild) return newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild, expirationTime), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, expirationTime), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber); + if (isArray$1(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); + if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); + isObject && throwOnInvalidObjectType(returnFiber, newChild); + if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment) switch (returnFiber.tag) { + case 2: + case 1: + expirationTime = returnFiber.type, invariant(!1, "%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.", expirationTime.displayName || expirationTime.name || "Component"); + } + return deleteRemainingChildren(returnFiber, currentFirstChild); + }; + } + + var reconcileChildFibers = ChildReconciler(!0), + mountChildFibers = ChildReconciler(!1), + hydrationParentFiber = null, + nextHydratableInstance = null, + isHydrating = !1; + + function tryHydrate(fiber, nextInstance) { + switch (fiber.tag) { + case 5: + return nextInstance = shim$1(nextInstance, fiber.type, fiber.pendingProps), null !== nextInstance ? (fiber.stateNode = nextInstance, !0) : !1; + + case 6: + return nextInstance = shim$1(nextInstance, fiber.pendingProps), null !== nextInstance ? (fiber.stateNode = nextInstance, !0) : !1; + + default: + return !1; + } + } + + function tryToClaimNextHydratableInstance(fiber$jscomp$0) { + if (isHydrating) { + var nextInstance = nextHydratableInstance; + + if (nextInstance) { + var firstAttemptedInstance = nextInstance; + + if (!tryHydrate(fiber$jscomp$0, nextInstance)) { + nextInstance = shim$1(firstAttemptedInstance); + + if (!nextInstance || !tryHydrate(fiber$jscomp$0, nextInstance)) { + fiber$jscomp$0.effectTag |= 2; + isHydrating = !1; + hydrationParentFiber = fiber$jscomp$0; + return; + } + + var returnFiber = hydrationParentFiber, + fiber = new FiberNode(5, null, null, 0); + fiber.type = "DELETED"; + fiber.stateNode = firstAttemptedInstance; + fiber.return = returnFiber; + fiber.effectTag = 8; + null !== returnFiber.lastEffect ? (returnFiber.lastEffect.nextEffect = fiber, returnFiber.lastEffect = fiber) : returnFiber.firstEffect = returnFiber.lastEffect = fiber; + } + + hydrationParentFiber = fiber$jscomp$0; + nextHydratableInstance = shim$1(nextInstance); + } else fiber$jscomp$0.effectTag |= 2, isHydrating = !1, hydrationParentFiber = fiber$jscomp$0; + } + } + + function reconcileChildren(current, workInProgress, nextChildren) { + reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); + } + + function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { + workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); + } + + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.effectTag |= 128; + } + + function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { + markRef(current, workInProgress); + var didCaptureError = 0 !== (workInProgress.effectTag & 64); + if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, !1), bailoutOnAlreadyFinishedWork(current, workInProgress); + shouldUpdate = workInProgress.stateNode; + ReactCurrentOwner.current = workInProgress; + var nextChildren = didCaptureError ? null : shouldUpdate.render(); + workInProgress.effectTag |= 1; + didCaptureError && (reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime), workInProgress.child = null); + reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime); + workInProgress.memoizedState = shouldUpdate.state; + workInProgress.memoizedProps = shouldUpdate.props; + hasContext && invalidateContextProvider(workInProgress, !0); + return workInProgress.child; + } + + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); + pushHostContainer(workInProgress, root.containerInfo); + } + + function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { + var fiber = workInProgress.child; + null !== fiber && (fiber.return = workInProgress); + + for (; null !== fiber;) { + switch (fiber.tag) { + case 12: + var nextFiber = fiber.stateNode | 0; + + if (fiber.type === context && 0 !== (nextFiber & changedBits)) { + for (nextFiber = fiber; null !== nextFiber;) { + var alternate = nextFiber.alternate; + if (0 === nextFiber.expirationTime || nextFiber.expirationTime > renderExpirationTime) nextFiber.expirationTime = renderExpirationTime, null !== alternate && (0 === alternate.expirationTime || alternate.expirationTime > renderExpirationTime) && (alternate.expirationTime = renderExpirationTime);else if (null !== alternate && (0 === alternate.expirationTime || alternate.expirationTime > renderExpirationTime)) alternate.expirationTime = renderExpirationTime;else break; + nextFiber = nextFiber.return; + } + + nextFiber = null; + } else nextFiber = fiber.child; + + break; + + case 13: + nextFiber = fiber.type === workInProgress.type ? null : fiber.child; + break; + + default: + nextFiber = fiber.child; + } + + if (null !== nextFiber) nextFiber.return = fiber;else for (nextFiber = fiber; null !== nextFiber;) { + if (nextFiber === workInProgress) { + nextFiber = null; + break; + } + + fiber = nextFiber.sibling; + + if (null !== fiber) { + fiber.return = nextFiber.return; + nextFiber = fiber; + break; + } + + nextFiber = nextFiber.return; + } + fiber = nextFiber; + } + } + + function updateContextProvider(current, workInProgress, renderExpirationTime) { + var context = workInProgress.type._context, + newProps = workInProgress.pendingProps, + oldProps = workInProgress.memoizedProps, + canBailOnProps = !0; + if (didPerformWorkStackCursor.current) canBailOnProps = !1;else if (oldProps === newProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); + var newValue = newProps.value; + workInProgress.memoizedProps = newProps; + if (null === oldProps) newValue = 1073741823;else if (oldProps.value === newProps.value) { + if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); + newValue = 0; + } else { + var oldValue = oldProps.value; + + if (oldValue === newValue && (0 !== oldValue || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { + if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); + newValue = 0; + } else if (newValue = "function" === typeof context._calculateChangedBits ? context._calculateChangedBits(oldValue, newValue) : 1073741823, newValue |= 0, 0 === newValue) { + if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); + } else propagateContextChange(workInProgress, context, newValue, renderExpirationTime); + } + workInProgress.stateNode = newValue; + pushProvider(workInProgress); + reconcileChildren(current, workInProgress, newProps.children); + return workInProgress.child; + } + + function bailoutOnAlreadyFinishedWork(current, workInProgress) { + invariant(null === current || workInProgress.child === current.child, "Resuming work not yet implemented."); + + if (null !== workInProgress.child) { + current = workInProgress.child; + var newChild = createWorkInProgress(current, current.pendingProps, current.expirationTime); + workInProgress.child = newChild; + + for (newChild.return = workInProgress; null !== current.sibling;) { + current = current.sibling, newChild = newChild.sibling = createWorkInProgress(current, current.pendingProps, current.expirationTime), newChild.return = workInProgress; + } + + newChild.sibling = null; + } + + return workInProgress.child; + } + + function beginWork(current, workInProgress, renderExpirationTime) { + if (0 === workInProgress.expirationTime || workInProgress.expirationTime > renderExpirationTime) { + switch (workInProgress.tag) { + case 3: + pushHostRootContext(workInProgress); + break; + + case 2: + pushContextProvider(workInProgress); + break; + + case 4: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + + case 13: + pushProvider(workInProgress); + } + + return null; + } + + switch (workInProgress.tag) { + case 0: + invariant(null === current, "An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue."); + var fn = workInProgress.type, + props = workInProgress.pendingProps, + unmaskedContext = getUnmaskedContext(workInProgress); + unmaskedContext = getMaskedContext(workInProgress, unmaskedContext); + fn = fn(props, unmaskedContext); + workInProgress.effectTag |= 1; + "object" === typeof fn && null !== fn && "function" === typeof fn.render && void 0 === fn.$$typeof ? (unmaskedContext = workInProgress.type, workInProgress.tag = 2, workInProgress.memoizedState = null !== fn.state && void 0 !== fn.state ? fn.state : null, unmaskedContext = unmaskedContext.getDerivedStateFromProps, "function" === typeof unmaskedContext && applyDerivedStateFromProps(workInProgress, unmaskedContext, props), props = pushContextProvider(workInProgress), fn.updater = classComponentUpdater, workInProgress.stateNode = fn, fn._reactInternalFiber = workInProgress, mountClassInstance(workInProgress, renderExpirationTime), current = finishClassComponent(current, workInProgress, !0, props, renderExpirationTime)) : (workInProgress.tag = 1, reconcileChildren(current, workInProgress, fn), workInProgress.memoizedProps = props, current = workInProgress.child); + return current; + + case 1: + return props = workInProgress.type, renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime ? (fn = getUnmaskedContext(workInProgress), fn = getMaskedContext(workInProgress, fn), props = props(renderExpirationTime, fn), workInProgress.effectTag |= 1, reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 2: + props = pushContextProvider(workInProgress); + if (null === current) { + if (null === workInProgress.stateNode) { + var props$jscomp$0 = workInProgress.pendingProps, + ctor = workInProgress.type; + fn = getUnmaskedContext(workInProgress); + var needsContext = 2 === workInProgress.tag && null != workInProgress.type.contextTypes; + unmaskedContext = needsContext ? getMaskedContext(workInProgress, fn) : emptyObject; + props$jscomp$0 = new ctor(props$jscomp$0, unmaskedContext); + workInProgress.memoizedState = null !== props$jscomp$0.state && void 0 !== props$jscomp$0.state ? props$jscomp$0.state : null; + props$jscomp$0.updater = classComponentUpdater; + workInProgress.stateNode = props$jscomp$0; + props$jscomp$0._reactInternalFiber = workInProgress; + needsContext && (needsContext = workInProgress.stateNode, needsContext.__reactInternalMemoizedUnmaskedChildContext = fn, needsContext.__reactInternalMemoizedMaskedChildContext = unmaskedContext); + mountClassInstance(workInProgress, renderExpirationTime); + fn = !0; + } else { + ctor = workInProgress.type; + fn = workInProgress.stateNode; + needsContext = workInProgress.memoizedProps; + unmaskedContext = workInProgress.pendingProps; + fn.props = needsContext; + var oldContext = fn.context; + props$jscomp$0 = getUnmaskedContext(workInProgress); + props$jscomp$0 = getMaskedContext(workInProgress, props$jscomp$0); + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + (ctor = "function" === typeof getDerivedStateFromProps || "function" === typeof fn.getSnapshotBeforeUpdate) || "function" !== typeof fn.UNSAFE_componentWillReceiveProps && "function" !== typeof fn.componentWillReceiveProps || (needsContext !== unmaskedContext || oldContext !== props$jscomp$0) && callComponentWillReceiveProps(workInProgress, fn, unmaskedContext, props$jscomp$0); + hasForceUpdate = !1; + var oldState = workInProgress.memoizedState; + oldContext = fn.state = oldState; + var updateQueue = workInProgress.updateQueue; + null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, unmaskedContext, fn, renderExpirationTime), oldContext = workInProgress.memoizedState); + needsContext !== unmaskedContext || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, unmaskedContext), oldContext = workInProgress.memoizedState), (needsContext = hasForceUpdate || checkShouldComponentUpdate(workInProgress, needsContext, unmaskedContext, oldState, oldContext, props$jscomp$0)) ? (ctor || "function" !== typeof fn.UNSAFE_componentWillMount && "function" !== typeof fn.componentWillMount || ("function" === typeof fn.componentWillMount && fn.componentWillMount(), "function" === typeof fn.UNSAFE_componentWillMount && fn.UNSAFE_componentWillMount()), "function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4)) : ("function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4), workInProgress.memoizedProps = unmaskedContext, workInProgress.memoizedState = oldContext), fn.props = unmaskedContext, fn.state = oldContext, fn.context = props$jscomp$0, fn = needsContext) : ("function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4), fn = !1); + } + } else ctor = workInProgress.type, fn = workInProgress.stateNode, unmaskedContext = workInProgress.memoizedProps, needsContext = workInProgress.pendingProps, fn.props = unmaskedContext, oldContext = fn.context, props$jscomp$0 = getUnmaskedContext(workInProgress), props$jscomp$0 = getMaskedContext(workInProgress, props$jscomp$0), getDerivedStateFromProps = ctor.getDerivedStateFromProps, (ctor = "function" === typeof getDerivedStateFromProps || "function" === typeof fn.getSnapshotBeforeUpdate) || "function" !== typeof fn.UNSAFE_componentWillReceiveProps && "function" !== typeof fn.componentWillReceiveProps || (unmaskedContext !== needsContext || oldContext !== props$jscomp$0) && callComponentWillReceiveProps(workInProgress, fn, needsContext, props$jscomp$0), hasForceUpdate = !1, oldContext = workInProgress.memoizedState, oldState = fn.state = oldContext, updateQueue = workInProgress.updateQueue, null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, needsContext, fn, renderExpirationTime), oldState = workInProgress.memoizedState), unmaskedContext !== needsContext || oldContext !== oldState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, needsContext), oldState = workInProgress.memoizedState), (getDerivedStateFromProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, unmaskedContext, needsContext, oldContext, oldState, props$jscomp$0)) ? (ctor || "function" !== typeof fn.UNSAFE_componentWillUpdate && "function" !== typeof fn.componentWillUpdate || ("function" === typeof fn.componentWillUpdate && fn.componentWillUpdate(needsContext, oldState, props$jscomp$0), "function" === typeof fn.UNSAFE_componentWillUpdate && fn.UNSAFE_componentWillUpdate(needsContext, oldState, props$jscomp$0)), "function" === typeof fn.componentDidUpdate && (workInProgress.effectTag |= 4), "function" === typeof fn.getSnapshotBeforeUpdate && (workInProgress.effectTag |= 256)) : ("function" !== typeof fn.componentDidUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 4), "function" !== typeof fn.getSnapshotBeforeUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 256), workInProgress.memoizedProps = needsContext, workInProgress.memoizedState = oldState), fn.props = needsContext, fn.state = oldState, fn.context = props$jscomp$0, fn = getDerivedStateFromProps) : ("function" !== typeof fn.componentDidUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 4), "function" !== typeof fn.getSnapshotBeforeUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 256), fn = !1); + return finishClassComponent(current, workInProgress, fn, props, renderExpirationTime); + + case 3: + return pushHostRootContext(workInProgress), props = workInProgress.updateQueue, null !== props ? (fn = workInProgress.memoizedState, fn = null !== fn ? fn.element : null, processUpdateQueue(workInProgress, props, workInProgress.pendingProps, null, renderExpirationTime), renderExpirationTime = workInProgress.memoizedState.element, renderExpirationTime === fn ? current = bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, renderExpirationTime), current = workInProgress.child)) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 5: + return requiredContext(rootInstanceStackCursor.current), renderExpirationTime = requiredContext(contextStackCursor$1.current), props = workInProgress.type, props = "AndroidTextInput" === props || "RCTMultilineTextInputView" === props || "RCTSinglelineTextInputView" === props || "RCTText" === props || "RCTVirtualText" === props, props = renderExpirationTime.isInAParentText !== props ? { + isInAParentText: props + } : renderExpirationTime, renderExpirationTime !== props && (push(contextFiberStackCursor, workInProgress, workInProgress), push(contextStackCursor$1, props, workInProgress)), null === current && tryToClaimNextHydratableInstance(workInProgress), props = workInProgress.memoizedProps, renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || props !== renderExpirationTime ? (props = renderExpirationTime.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 6: + return null === current && tryToClaimNextHydratableInstance(workInProgress), workInProgress.memoizedProps = workInProgress.pendingProps, null; + + case 16: + return null; + + case 4: + return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), props = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== props ? (null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, props, renderExpirationTime) : reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = props, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 14: + return props = workInProgress.type.render, renderExpirationTime = workInProgress.pendingProps, fn = workInProgress.ref, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime || fn !== (null !== current ? current.ref : null) ? (props = props(renderExpirationTime, fn), reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 10: + return renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime ? (reconcileChildren(current, workInProgress, renderExpirationTime), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 11: + return renderExpirationTime = workInProgress.pendingProps.children, didPerformWorkStackCursor.current || null !== renderExpirationTime && workInProgress.memoizedProps !== renderExpirationTime ? (reconcileChildren(current, workInProgress, renderExpirationTime), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; + + case 15: + return renderExpirationTime = workInProgress.pendingProps, workInProgress.memoizedProps === renderExpirationTime ? current = bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, renderExpirationTime.children), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child), current; + + case 13: + return updateContextProvider(current, workInProgress, renderExpirationTime); + + case 12: + a: if (fn = workInProgress.type, unmaskedContext = workInProgress.pendingProps, needsContext = workInProgress.memoizedProps, props = fn._currentValue2, props$jscomp$0 = fn._changedBits2, didPerformWorkStackCursor.current || 0 !== props$jscomp$0 || needsContext !== unmaskedContext) { + workInProgress.memoizedProps = unmaskedContext; + ctor = unmaskedContext.unstable_observedBits; + if (void 0 === ctor || null === ctor) ctor = 1073741823; + workInProgress.stateNode = ctor; + if (0 !== (props$jscomp$0 & ctor)) propagateContextChange(workInProgress, fn, props$jscomp$0, renderExpirationTime);else if (needsContext === unmaskedContext) { + current = bailoutOnAlreadyFinishedWork(current, workInProgress); + break a; + } + renderExpirationTime = unmaskedContext.children; + renderExpirationTime = renderExpirationTime(props); + workInProgress.effectTag |= 1; + reconcileChildren(current, workInProgress, renderExpirationTime); + current = workInProgress.child; + } else current = bailoutOnAlreadyFinishedWork(current, workInProgress); + + return current; + + default: + invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); + } + } + + function appendAllChildren(parent, workInProgress) { + for (var node = workInProgress.child; null !== node;) { + if (5 === node.tag || 6 === node.tag) FabricUIManager.appendChild(parent.node, node.stateNode.node);else if (4 !== node.tag && null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) break; + + for (; null === node.sibling;) { + if (null === node.return || node.return === workInProgress) return; + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + var updateHostContainer = void 0, + updateHostComponent$1 = void 0, + updateHostText$1 = void 0; + + updateHostContainer = function updateHostContainer(workInProgress) { + var portalOrRoot = workInProgress.stateNode; + + if (null !== workInProgress.firstEffect) { + var container = portalOrRoot.containerInfo, + newChildSet = FabricUIManager.createChildSet(container); + + a: for (var node = workInProgress.child; null !== node;) { + if (5 === node.tag || 6 === node.tag) FabricUIManager.appendChildToSet(newChildSet, node.stateNode.node);else if (4 !== node.tag && null !== node.child) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress) break a; + + for (; null === node.sibling;) { + if (null === node.return || node.return === workInProgress) break a; + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + + portalOrRoot.pendingChildren = newChildSet; + workInProgress.effectTag |= 4; + FabricUIManager.completeRoot(container, newChildSet); + } + }; + + updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload) { + var childrenUnchanged = null === workInProgress.firstEffect; + current = current.stateNode; + if (childrenUnchanged && null === updatePayload) workInProgress.stateNode = current;else { + var node = current.node; + updatePayload = { + node: childrenUnchanged ? null !== updatePayload ? FabricUIManager.cloneNodeWithNewProps(node, updatePayload, workInProgress) : FabricUIManager.cloneNode(node, workInProgress) : null !== updatePayload ? FabricUIManager.cloneNodeWithNewChildrenAndProps(node, updatePayload, workInProgress) : FabricUIManager.cloneNodeWithNewChildren(node, workInProgress), + canonical: current.canonical + }; + workInProgress.stateNode = updatePayload; + childrenUnchanged ? workInProgress.effectTag |= 4 : appendAllChildren(updatePayload, workInProgress); + } + }; + + updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { + oldText !== newText && (current = requiredContext(rootInstanceStackCursor.current), oldText = requiredContext(contextStackCursor$1.current), workInProgress.stateNode = createTextInstance(newText, current, oldText, workInProgress), workInProgress.effectTag |= 4); + }; + + function completeWork(current, workInProgress) { + var newProps = workInProgress.pendingProps; + + switch (workInProgress.tag) { + case 1: + return null; + + case 2: + return popContextProvider(workInProgress), null; + + case 3: + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + newProps = workInProgress.stateNode; + newProps.pendingContext && (newProps.context = newProps.pendingContext, newProps.pendingContext = null); + if (null === current || null === current.child) workInProgress.effectTag &= -3; + updateHostContainer(workInProgress); + return null; + + case 5: + popHostContext(workInProgress); + var rootContainerInstance = requiredContext(rootInstanceStackCursor.current), + type = workInProgress.type; + + if (null !== current && null != workInProgress.stateNode) { + var oldProps = current.memoizedProps, + instance = workInProgress.stateNode, + currentHostContext = requiredContext(contextStackCursor$1.current), + updatePayload = diffProperties(null, oldProps, newProps, instance.canonical.viewConfig.validAttributes); + instance.canonical.currentProps = newProps; + updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext); + current.ref !== workInProgress.ref && (workInProgress.effectTag |= 128); + } else { + if (!newProps) return invariant(null !== workInProgress.stateNode, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), null; + instance = requiredContext(contextStackCursor$1.current); + current = nextReactTag; + nextReactTag += 2; + oldProps = ReactNativeViewConfigRegistry.get(type); + invariant("RCTView" !== type || !instance.isInAParentText, "Nesting of within is not currently supported."); + type = diffProperties(null, emptyObject$1, newProps, oldProps.validAttributes); + rootContainerInstance = FabricUIManager.createNode(current, oldProps.uiViewClassName, rootContainerInstance, type, workInProgress); + newProps = new ReactFabricHostComponent(current, oldProps, newProps); + newProps = { + node: rootContainerInstance, + canonical: newProps + }; + appendAllChildren(newProps, workInProgress); + workInProgress.stateNode = newProps; + null !== workInProgress.ref && (workInProgress.effectTag |= 128); + } + + return null; + + case 6: + if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { + if ("string" !== typeof newProps) return invariant(null !== workInProgress.stateNode, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), null; + rootContainerInstance = requiredContext(rootInstanceStackCursor.current); + type = requiredContext(contextStackCursor$1.current); + workInProgress.stateNode = createTextInstance(newProps, rootContainerInstance, type, workInProgress); + } + return null; + + case 14: + return null; + + case 16: + return null; + + case 10: + return null; + + case 11: + return null; + + case 15: + return null; + + case 4: + return popHostContainer(workInProgress), updateHostContainer(workInProgress), null; + + case 13: + return popProvider(workInProgress), null; + + case 12: + return null; + + case 0: + invariant(!1, "An indeterminate component should have become determinate before completing. This error is likely caused by a bug in React. Please file an issue."); + + default: + invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); + } + } + + function logError(boundary, errorInfo) { + var source = errorInfo.source, + stack = errorInfo.stack; + null === stack && null !== source && (stack = getStackAddendumByWorkInProgressFiber(source)); + null !== source && getComponentName(source); + source = null !== stack ? stack : ""; + errorInfo = errorInfo.value; + null !== boundary && 2 === boundary.tag && getComponentName(boundary); + + try { + if (errorInfo instanceof Error) { + var message = errorInfo.message, + name = errorInfo.name; + var errorToHandle = errorInfo; + + try { + errorToHandle.message = (message ? name + ": " + message : name) + "\n\nThis error is located at:" + source; + } catch (e) {} + } else errorToHandle = "string" === typeof errorInfo ? Error(errorInfo + "\n\nThis error is located at:" + source) : Error("Unspecified error at:" + source); + + ExceptionsManager.handleException(errorToHandle, !1); + } catch (e) { + e && e.suppressReactErrorLogging || console.error(e); + } + } + + function safelyDetachRef(current) { + var ref = current.ref; + if (null !== ref) if ("function" === typeof ref) try { + ref(null); + } catch (refError) { + captureCommitPhaseError(current, refError); + } else ref.current = null; + } + + function commitWork(current, finishedWork) { + switch (finishedWork.tag) { + case 2: + break; + + case 5: + break; + + case 6: + break; + + case 3: + case 4: + break; + + default: + invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + } + + function createRootErrorUpdate(fiber, errorInfo, expirationTime) { + expirationTime = createUpdate(expirationTime); + expirationTime.tag = 3; + expirationTime.payload = { + element: null + }; + var error = errorInfo.value; + + expirationTime.callback = function () { + onUncaughtError(error); + logError(fiber, errorInfo); + }; + + return expirationTime; + } + + function createClassErrorUpdate(fiber, errorInfo, expirationTime) { + expirationTime = createUpdate(expirationTime); + expirationTime.tag = 3; + var inst = fiber.stateNode; + null !== inst && "function" === typeof inst.componentDidCatch && (expirationTime.callback = function () { + null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this); + var error = errorInfo.value, + stack = errorInfo.stack; + logError(fiber, errorInfo); + this.componentDidCatch(error, { + componentStack: null !== stack ? stack : "" + }); + }); + return expirationTime; + } + + function unwindWork(workInProgress) { + switch (workInProgress.tag) { + case 2: + popContextProvider(workInProgress); + var effectTag = workInProgress.effectTag; + return effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; + + case 3: + return popHostContainer(workInProgress), popTopLevelContextObject(workInProgress), effectTag = workInProgress.effectTag, effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; + + case 5: + return popHostContext(workInProgress), null; + + case 16: + return effectTag = workInProgress.effectTag, effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; + + case 4: + return popHostContainer(workInProgress), null; + + case 13: + return popProvider(workInProgress), null; + + default: + return null; + } + } + + var originalStartTimeMs = now$1(), + mostRecentCurrentTime = 2, + mostRecentCurrentTimeMs = originalStartTimeMs, + lastUniqueAsyncExpiration = 0, + expirationContext = 0, + isWorking = !1, + nextUnitOfWork = null, + nextRoot = null, + nextRenderExpirationTime = 0, + nextLatestTimeoutMs = -1, + nextRenderDidError = !1, + nextEffect = null, + isCommitting$1 = !1, + legacyErrorBoundariesThatAlreadyFailed = null; + + function resetStack() { + if (null !== nextUnitOfWork) for (var interruptedWork = nextUnitOfWork.return; null !== interruptedWork;) { + var interruptedWork$jscomp$0 = interruptedWork; + + switch (interruptedWork$jscomp$0.tag) { + case 2: + popContextProvider(interruptedWork$jscomp$0); + break; + + case 3: + popHostContainer(interruptedWork$jscomp$0); + popTopLevelContextObject(interruptedWork$jscomp$0); + break; + + case 5: + popHostContext(interruptedWork$jscomp$0); + break; + + case 4: + popHostContainer(interruptedWork$jscomp$0); + break; + + case 13: + popProvider(interruptedWork$jscomp$0); + } + + interruptedWork = interruptedWork.return; + } + nextRoot = null; + nextRenderExpirationTime = 0; + nextLatestTimeoutMs = -1; + nextRenderDidError = !1; + nextUnitOfWork = null; + } + + function completeUnitOfWork(workInProgress$jscomp$0) { + for (;;) { + var current = workInProgress$jscomp$0.alternate, + returnFiber = workInProgress$jscomp$0.return, + siblingFiber = workInProgress$jscomp$0.sibling; + + if (0 === (workInProgress$jscomp$0.effectTag & 512)) { + current = completeWork(current, workInProgress$jscomp$0, nextRenderExpirationTime); + var workInProgress = workInProgress$jscomp$0; + + if (1073741823 === nextRenderExpirationTime || 1073741823 !== workInProgress.expirationTime) { + var newExpirationTime = 0; + + switch (workInProgress.tag) { + case 3: + case 2: + var updateQueue = workInProgress.updateQueue; + null !== updateQueue && (newExpirationTime = updateQueue.expirationTime); + } + + for (updateQueue = workInProgress.child; null !== updateQueue;) { + 0 !== updateQueue.expirationTime && (0 === newExpirationTime || newExpirationTime > updateQueue.expirationTime) && (newExpirationTime = updateQueue.expirationTime), updateQueue = updateQueue.sibling; + } + + workInProgress.expirationTime = newExpirationTime; + } + + if (null !== current) return current; + null !== returnFiber && 0 === (returnFiber.effectTag & 512) && (null === returnFiber.firstEffect && (returnFiber.firstEffect = workInProgress$jscomp$0.firstEffect), null !== workInProgress$jscomp$0.lastEffect && (null !== returnFiber.lastEffect && (returnFiber.lastEffect.nextEffect = workInProgress$jscomp$0.firstEffect), returnFiber.lastEffect = workInProgress$jscomp$0.lastEffect), 1 < workInProgress$jscomp$0.effectTag && (null !== returnFiber.lastEffect ? returnFiber.lastEffect.nextEffect = workInProgress$jscomp$0 : returnFiber.firstEffect = workInProgress$jscomp$0, returnFiber.lastEffect = workInProgress$jscomp$0)); + } else { + workInProgress$jscomp$0 = unwindWork(workInProgress$jscomp$0, nextRenderExpirationTime); + if (null !== workInProgress$jscomp$0) return workInProgress$jscomp$0.effectTag &= 511, workInProgress$jscomp$0; + null !== returnFiber && (returnFiber.firstEffect = returnFiber.lastEffect = null, returnFiber.effectTag |= 512); + } + + if (null !== siblingFiber) return siblingFiber; + if (null !== returnFiber) workInProgress$jscomp$0 = returnFiber;else break; + } + + return null; + } + + function performUnitOfWork(workInProgress) { + var next = beginWork(workInProgress.alternate, workInProgress, nextRenderExpirationTime); + null === next && (next = completeUnitOfWork(workInProgress)); + ReactCurrentOwner.current = null; + return next; + } + + function renderRoot(root$jscomp$0, isYieldy) { + invariant(!isWorking, "renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."); + isWorking = !0; + var expirationTime = root$jscomp$0.nextExpirationTimeToWorkOn; + if (expirationTime !== nextRenderExpirationTime || root$jscomp$0 !== nextRoot || null === nextUnitOfWork) resetStack(), nextRoot = root$jscomp$0, nextRenderExpirationTime = expirationTime, nextLatestTimeoutMs = -1, nextRenderDidError = !1, nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime), root$jscomp$0.pendingCommitExpirationTime = 0; + var didFatal = !1; + + do { + try { + if (isYieldy) for (; null !== nextUnitOfWork && !shouldYield();) { + nextUnitOfWork = performUnitOfWork(nextUnitOfWork); + } else for (; null !== nextUnitOfWork;) { + nextUnitOfWork = performUnitOfWork(nextUnitOfWork); + } + } catch (thrownValue) { + if (null === nextUnitOfWork) didFatal = !0, onUncaughtError(thrownValue);else { + invariant(null !== nextUnitOfWork, "Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it."); + isYieldy = nextUnitOfWork; + var returnFiber = isYieldy.return; + + if (null === returnFiber) { + didFatal = !0; + onUncaughtError(thrownValue); + break; + } + + a: { + var root = root$jscomp$0, + returnFiber$jscomp$0 = returnFiber, + sourceFiber = isYieldy, + value = thrownValue; + returnFiber = nextRenderExpirationTime; + sourceFiber.effectTag |= 512; + sourceFiber.firstEffect = sourceFiber.lastEffect = null; + nextRenderDidError = !0; + + if ((root.didError || 1 === returnFiber) && (returnFiber === root.latestPendingTime || returnFiber === root.latestSuspendedTime)) { + value = createCapturedValue(value, sourceFiber); + root = returnFiber$jscomp$0; + + do { + switch (root.tag) { + case 3: + root.effectTag |= 1024; + value = createRootErrorUpdate(root, value, returnFiber); + enqueueCapturedUpdate(root, value, returnFiber); + break a; + + case 2: + if (returnFiber$jscomp$0 = value, sourceFiber = root.stateNode, 0 === (root.effectTag & 64) && null !== sourceFiber && "function" === typeof sourceFiber.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(sourceFiber))) { + root.effectTag |= 1024; + value = createClassErrorUpdate(root, returnFiber$jscomp$0, returnFiber); + enqueueCapturedUpdate(root, value, returnFiber); + break a; + } + + } + + root = root.return; + } while (null !== root); + } + } + + nextUnitOfWork = completeUnitOfWork(isYieldy); + } + } + + break; + } while (1); + + isWorking = !1; + didFatal ? root$jscomp$0.finishedWork = null : null === nextUnitOfWork ? (didFatal = root$jscomp$0.current.alternate, invariant(null !== didFatal, "Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue."), 0 === (didFatal.effectTag & 512) ? (root$jscomp$0.pendingCommitExpirationTime = expirationTime, root$jscomp$0.finishedWork = didFatal) : (!nextRenderDidError || expirationTime !== root$jscomp$0.latestPendingTime && expirationTime !== root$jscomp$0.latestSuspendedTime ? (didFatal = root$jscomp$0.earliestPendingTime, isYieldy = root$jscomp$0.latestPendingTime, didFatal === expirationTime ? root$jscomp$0.earliestPendingTime = isYieldy === expirationTime ? root$jscomp$0.latestPendingTime = 0 : isYieldy : isYieldy === expirationTime && (root$jscomp$0.latestPendingTime = didFatal), didFatal = root$jscomp$0.latestSuspendedTime, didFatal === expirationTime && (root$jscomp$0.latestPingedTime = 0), isYieldy = root$jscomp$0.earliestSuspendedTime, 0 === isYieldy ? root$jscomp$0.earliestSuspendedTime = root$jscomp$0.latestSuspendedTime = expirationTime : isYieldy > expirationTime ? root$jscomp$0.earliestSuspendedTime = expirationTime : didFatal < expirationTime && (root$jscomp$0.latestSuspendedTime = expirationTime)) : root$jscomp$0.didError = !0, findNextPendingPriorityLevel(root$jscomp$0), onSuspend(root$jscomp$0, expirationTime, root$jscomp$0.expirationTime, nextLatestTimeoutMs))) : root$jscomp$0.finishedWork = null; + } + + function captureCommitPhaseError(fiber, error) { + var JSCompiler_inline_result; + + a: { + invariant(!isWorking || isCommitting$1, "dispatch: Cannot dispatch during the render phase."); + + for (JSCompiler_inline_result = fiber.return; null !== JSCompiler_inline_result;) { + switch (JSCompiler_inline_result.tag) { + case 2: + var instance = JSCompiler_inline_result.stateNode; + + if ("function" === typeof JSCompiler_inline_result.type.getDerivedStateFromCatch || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { + fiber = createCapturedValue(error, fiber); + fiber = createClassErrorUpdate(JSCompiler_inline_result, fiber, 1); + enqueueUpdate(JSCompiler_inline_result, fiber, 1); + scheduleWork(JSCompiler_inline_result, 1); + JSCompiler_inline_result = void 0; + break a; + } + + break; + + case 3: + fiber = createCapturedValue(error, fiber); + fiber = createRootErrorUpdate(JSCompiler_inline_result, fiber, 1); + enqueueUpdate(JSCompiler_inline_result, fiber, 1); + scheduleWork(JSCompiler_inline_result, 1); + JSCompiler_inline_result = void 0; + break a; + } + + JSCompiler_inline_result = JSCompiler_inline_result.return; + } + + 3 === fiber.tag && (JSCompiler_inline_result = createCapturedValue(error, fiber), JSCompiler_inline_result = createRootErrorUpdate(fiber, JSCompiler_inline_result, 1), enqueueUpdate(fiber, JSCompiler_inline_result, 1), scheduleWork(fiber, 1)); + JSCompiler_inline_result = void 0; + } + + return JSCompiler_inline_result; + } + + function computeExpirationForFiber(currentTime, fiber) { + currentTime = 0 !== expirationContext ? expirationContext : isWorking ? isCommitting$1 ? 1 : nextRenderExpirationTime : fiber.mode & 1 ? isBatchingInteractiveUpdates ? 2 + 10 * (((currentTime - 2 + 15) / 10 | 0) + 1) : 2 + 25 * (((currentTime - 2 + 500) / 25 | 0) + 1) : 1; + isBatchingInteractiveUpdates && (0 === lowestPendingInteractiveExpirationTime || currentTime > lowestPendingInteractiveExpirationTime) && (lowestPendingInteractiveExpirationTime = currentTime); + return currentTime; + } + + function scheduleWork(fiber, expirationTime) { + for (; null !== fiber;) { + if (0 === fiber.expirationTime || fiber.expirationTime > expirationTime) fiber.expirationTime = expirationTime; + null !== fiber.alternate && (0 === fiber.alternate.expirationTime || fiber.alternate.expirationTime > expirationTime) && (fiber.alternate.expirationTime = expirationTime); + if (null === fiber.return) if (3 === fiber.tag) { + var root = fiber.stateNode; + !isWorking && 0 !== nextRenderExpirationTime && expirationTime < nextRenderExpirationTime && resetStack(); + markPendingPriorityLevel(root, expirationTime); + isWorking && !isCommitting$1 && nextRoot === root || requestWork(root, root.expirationTime); + nestedUpdateCount > NESTED_UPDATE_LIMIT && invariant(!1, "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); + } else break; + fiber = fiber.return; + } + } + + function recalculateCurrentTime() { + mostRecentCurrentTimeMs = now$1() - originalStartTimeMs; + return mostRecentCurrentTime = (mostRecentCurrentTimeMs / 10 | 0) + 2; + } + + function syncUpdates(fn, a, b, c, d) { + var previousExpirationContext = expirationContext; + expirationContext = 1; + + try { + return fn(a, b, c, d); + } finally { + expirationContext = previousExpirationContext; + } + } + + var firstScheduledRoot = null, + lastScheduledRoot = null, + callbackExpirationTime = 0, + callbackID = void 0, + isRendering = !1, + nextFlushedRoot = null, + nextFlushedExpirationTime = 0, + lowestPendingInteractiveExpirationTime = 0, + deadlineDidExpire = !1, + hasUnhandledError = !1, + unhandledError = null, + deadline = null, + isBatchingUpdates = !1, + isUnbatchingUpdates = !1, + isBatchingInteractiveUpdates = !1, + completedBatches = null, + NESTED_UPDATE_LIMIT = 1e3, + nestedUpdateCount = 0, + timeHeuristicForUnitOfWork = 1; + + function scheduleCallbackWithExpirationTime(expirationTime) { + if (0 !== callbackExpirationTime) { + if (expirationTime > callbackExpirationTime) return; + + if (null !== callbackID) { + var callbackID$jscomp$0 = callbackID; + scheduledCallback = null; + clearTimeout(callbackID$jscomp$0); + } + } + + callbackExpirationTime = expirationTime; + now$1(); + scheduledCallback = performAsyncWork; + callbackID = setTimeout(setTimeoutCallback, 1); + } + + function onSuspend(root, suspendedExpirationTime, expirationTime, timeoutMs) { + 0 <= timeoutMs && setTimeout(function () { + var latestSuspendedTime = root.latestSuspendedTime; + 0 !== latestSuspendedTime && latestSuspendedTime <= suspendedExpirationTime && (latestSuspendedTime = root.latestPingedTime, 0 === latestSuspendedTime || latestSuspendedTime < suspendedExpirationTime) && (root.latestPingedTime = suspendedExpirationTime); + findNextPendingPriorityLevel(root); + latestSuspendedTime = root.expirationTime; + 0 !== latestSuspendedTime && requestWork(root, latestSuspendedTime); + }, timeoutMs); + root.expirationTime = expirationTime; + } + + function requestWork(root, expirationTime) { + if (null === root.nextScheduledRoot) root.expirationTime = expirationTime, null === lastScheduledRoot ? (firstScheduledRoot = lastScheduledRoot = root, root.nextScheduledRoot = root) : (lastScheduledRoot = lastScheduledRoot.nextScheduledRoot = root, lastScheduledRoot.nextScheduledRoot = firstScheduledRoot);else { + var remainingExpirationTime = root.expirationTime; + if (0 === remainingExpirationTime || expirationTime < remainingExpirationTime) root.expirationTime = expirationTime; + } + isRendering || (isBatchingUpdates ? isUnbatchingUpdates && (nextFlushedRoot = root, nextFlushedExpirationTime = 1, performWorkOnRoot(root, 1, !1)) : 1 === expirationTime ? performWork(1, null) : scheduleCallbackWithExpirationTime(expirationTime)); + } + + function findHighestPriorityRoot() { + var highestPriorityWork = 0, + highestPriorityRoot = null; + if (null !== lastScheduledRoot) for (var previousScheduledRoot = lastScheduledRoot, root = firstScheduledRoot; null !== root;) { + var remainingExpirationTime = root.expirationTime; + + if (0 === remainingExpirationTime) { + invariant(null !== previousScheduledRoot && null !== lastScheduledRoot, "Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue."); + + if (root === root.nextScheduledRoot) { + firstScheduledRoot = lastScheduledRoot = root.nextScheduledRoot = null; + break; + } else if (root === firstScheduledRoot) firstScheduledRoot = remainingExpirationTime = root.nextScheduledRoot, lastScheduledRoot.nextScheduledRoot = remainingExpirationTime, root.nextScheduledRoot = null;else if (root === lastScheduledRoot) { + lastScheduledRoot = previousScheduledRoot; + lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; + root.nextScheduledRoot = null; + break; + } else previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot, root.nextScheduledRoot = null; + + root = previousScheduledRoot.nextScheduledRoot; + } else { + if (0 === highestPriorityWork || remainingExpirationTime < highestPriorityWork) highestPriorityWork = remainingExpirationTime, highestPriorityRoot = root; + if (root === lastScheduledRoot) break; + previousScheduledRoot = root; + root = root.nextScheduledRoot; + } + } + previousScheduledRoot = nextFlushedRoot; + null !== previousScheduledRoot && previousScheduledRoot === highestPriorityRoot && 1 === highestPriorityWork ? nestedUpdateCount++ : nestedUpdateCount = 0; + nextFlushedRoot = highestPriorityRoot; + nextFlushedExpirationTime = highestPriorityWork; + } + + function performAsyncWork(dl) { + performWork(0, dl); + } + + function performWork(minExpirationTime, dl) { + deadline = dl; + findHighestPriorityRoot(); + if (null !== deadline) for (; null !== nextFlushedRoot && 0 !== nextFlushedExpirationTime && (0 === minExpirationTime || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime);) { + recalculateCurrentTime(), performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !0), findHighestPriorityRoot(); + } else for (; null !== nextFlushedRoot && 0 !== nextFlushedExpirationTime && (0 === minExpirationTime || minExpirationTime >= nextFlushedExpirationTime);) { + performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !1), findHighestPriorityRoot(); + } + null !== deadline && (callbackExpirationTime = 0, callbackID = null); + 0 !== nextFlushedExpirationTime && scheduleCallbackWithExpirationTime(nextFlushedExpirationTime); + deadline = null; + deadlineDidExpire = !1; + finishRendering(); + } + + function finishRendering() { + nestedUpdateCount = 0; + + if (null !== completedBatches) { + var batches = completedBatches; + completedBatches = null; + + for (var i = 0; i < batches.length; i++) { + var batch = batches[i]; + + try { + batch._onComplete(); + } catch (error) { + hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); + } + } + } + + if (hasUnhandledError) throw batches = unhandledError, unhandledError = null, hasUnhandledError = !1, batches; + } + + function performWorkOnRoot(root, expirationTime, isYieldy) { + invariant(!isRendering, "performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."); + isRendering = !0; + isYieldy ? (isYieldy = root.finishedWork, null !== isYieldy ? completeRoot$1(root, isYieldy, expirationTime) : (root.finishedWork = null, renderRoot(root, !0), isYieldy = root.finishedWork, null !== isYieldy && (shouldYield() ? root.finishedWork = isYieldy : completeRoot$1(root, isYieldy, expirationTime)))) : (isYieldy = root.finishedWork, null !== isYieldy ? completeRoot$1(root, isYieldy, expirationTime) : (root.finishedWork = null, renderRoot(root, !1), isYieldy = root.finishedWork, null !== isYieldy && completeRoot$1(root, isYieldy, expirationTime))); + isRendering = !1; + } + + function completeRoot$1(root, finishedWork$jscomp$0, expirationTime) { + var firstBatch = root.firstBatch; + + if (null !== firstBatch && firstBatch._expirationTime <= expirationTime && (null === completedBatches ? completedBatches = [firstBatch] : completedBatches.push(firstBatch), firstBatch._defer)) { + root.finishedWork = finishedWork$jscomp$0; + root.expirationTime = 0; + return; + } + + root.finishedWork = null; + isCommitting$1 = isWorking = !0; + invariant(root.current !== finishedWork$jscomp$0, "Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue."); + expirationTime = root.pendingCommitExpirationTime; + invariant(0 !== expirationTime, "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); + root.pendingCommitExpirationTime = 0; + firstBatch = finishedWork$jscomp$0.expirationTime; + recalculateCurrentTime(); + root.didError = !1; + if (0 === firstBatch) root.earliestPendingTime = 0, root.latestPendingTime = 0, root.earliestSuspendedTime = 0, root.latestSuspendedTime = 0, root.latestPingedTime = 0;else { + var latestPendingTime = root.latestPendingTime; + 0 !== latestPendingTime && (latestPendingTime < firstBatch ? root.earliestPendingTime = root.latestPendingTime = 0 : root.earliestPendingTime < firstBatch && (root.earliestPendingTime = root.latestPendingTime)); + latestPendingTime = root.earliestSuspendedTime; + 0 === latestPendingTime ? markPendingPriorityLevel(root, firstBatch) : firstBatch > root.latestSuspendedTime ? (root.earliestSuspendedTime = 0, root.latestSuspendedTime = 0, root.latestPingedTime = 0, markPendingPriorityLevel(root, firstBatch)) : firstBatch < latestPendingTime && markPendingPriorityLevel(root, firstBatch); + } + findNextPendingPriorityLevel(root); + ReactCurrentOwner.current = null; + 1 < finishedWork$jscomp$0.effectTag ? null !== finishedWork$jscomp$0.lastEffect ? (finishedWork$jscomp$0.lastEffect.nextEffect = finishedWork$jscomp$0, firstBatch = finishedWork$jscomp$0.firstEffect) : firstBatch = finishedWork$jscomp$0 : firstBatch = finishedWork$jscomp$0.firstEffect; + + for (nextEffect = firstBatch; null !== nextEffect;) { + latestPendingTime = !1; + var error = void 0; + + try { + for (; null !== nextEffect;) { + if (nextEffect.effectTag & 256) { + var current = nextEffect.alternate, + finishedWork = nextEffect; + + switch (finishedWork.tag) { + case 2: + if (finishedWork.effectTag & 256 && null !== current) { + var prevProps = current.memoizedProps, + prevState = current.memoizedState, + instance = finishedWork.stateNode; + instance.props = finishedWork.memoizedProps; + instance.state = finishedWork.memoizedState; + var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState); + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + + break; + + case 3: + case 5: + case 6: + case 4: + break; + + default: + invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + } + + nextEffect = nextEffect.nextEffect; + } + } catch (e) { + latestPendingTime = !0, error = e; + } + + latestPendingTime && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, error), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); + } + + for (nextEffect = firstBatch; null !== nextEffect;) { + current = !1; + prevProps = void 0; + + try { + for (; null !== nextEffect;) { + var effectTag = nextEffect.effectTag; + + if (effectTag & 128) { + var current$jscomp$0 = nextEffect.alternate; + + if (null !== current$jscomp$0) { + var currentRef = current$jscomp$0.ref; + null !== currentRef && ("function" === typeof currentRef ? currentRef(null) : currentRef.current = null); + } + } + + switch (effectTag & 14) { + case 2: + nextEffect.effectTag &= -3; + break; + + case 6: + nextEffect.effectTag &= -3; + commitWork(nextEffect.alternate, nextEffect); + break; + + case 4: + commitWork(nextEffect.alternate, nextEffect); + break; + + case 8: + prevState = nextEffect; + + a: for (snapshot = instance = prevState;;) { + latestPendingTime = snapshot; + "function" === typeof onCommitUnmount && onCommitUnmount(latestPendingTime); + + switch (latestPendingTime.tag) { + case 2: + safelyDetachRef(latestPendingTime); + var instance$jscomp$0 = latestPendingTime.stateNode; + if ("function" === typeof instance$jscomp$0.componentWillUnmount) try { + instance$jscomp$0.props = latestPendingTime.memoizedProps, instance$jscomp$0.state = latestPendingTime.memoizedState, instance$jscomp$0.componentWillUnmount(); + } catch (unmountError) { + captureCommitPhaseError(latestPendingTime, unmountError); + } + break; + + case 5: + safelyDetachRef(latestPendingTime); + break; + + case 4: + FabricUIManager.createChildSet(latestPendingTime.stateNode.containerInfo); + } + + if (null !== snapshot.child) snapshot.child.return = snapshot, snapshot = snapshot.child;else { + if (snapshot === instance) break; + + for (; null === snapshot.sibling;) { + if (null === snapshot.return || snapshot.return === instance) break a; + snapshot = snapshot.return; + } + + snapshot.sibling.return = snapshot.return; + snapshot = snapshot.sibling; + } + } + + prevState.return = null; + prevState.child = null; + prevState.alternate && (prevState.alternate.child = null, prevState.alternate.return = null); + } + + nextEffect = nextEffect.nextEffect; + } + } catch (e) { + current = !0, prevProps = e; + } + + current && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, prevProps), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); + } + + root.current = finishedWork$jscomp$0; + + for (nextEffect = firstBatch; null !== nextEffect;) { + effectTag = !1; + current$jscomp$0 = void 0; + + try { + for (currentRef = expirationTime; null !== nextEffect;) { + var effectTag$jscomp$0 = nextEffect.effectTag; + + if (effectTag$jscomp$0 & 36) { + var current$jscomp$1 = nextEffect.alternate; + instance$jscomp$0 = nextEffect; + firstBatch = currentRef; + + switch (instance$jscomp$0.tag) { + case 2: + var instance$jscomp$1 = instance$jscomp$0.stateNode; + if (instance$jscomp$0.effectTag & 4) if (null === current$jscomp$1) instance$jscomp$1.props = instance$jscomp$0.memoizedProps, instance$jscomp$1.state = instance$jscomp$0.memoizedState, instance$jscomp$1.componentDidMount();else { + var prevProps$jscomp$0 = current$jscomp$1.memoizedProps, + prevState$jscomp$0 = current$jscomp$1.memoizedState; + instance$jscomp$1.props = instance$jscomp$0.memoizedProps; + instance$jscomp$1.state = instance$jscomp$0.memoizedState; + instance$jscomp$1.componentDidUpdate(prevProps$jscomp$0, prevState$jscomp$0, instance$jscomp$1.__reactInternalSnapshotBeforeUpdate); + } + var updateQueue = instance$jscomp$0.updateQueue; + null !== updateQueue && (instance$jscomp$1.props = instance$jscomp$0.memoizedProps, instance$jscomp$1.state = instance$jscomp$0.memoizedState, commitUpdateQueue(instance$jscomp$0, updateQueue, instance$jscomp$1, firstBatch)); + break; + + case 3: + var _updateQueue = instance$jscomp$0.updateQueue; + + if (null !== _updateQueue) { + current = null; + if (null !== instance$jscomp$0.child) switch (instance$jscomp$0.child.tag) { + case 5: + current = instance$jscomp$0.child.stateNode.canonical; + break; + + case 2: + current = instance$jscomp$0.child.stateNode; + } + commitUpdateQueue(instance$jscomp$0, _updateQueue, current, firstBatch); + } + + break; + + case 5: + null === current$jscomp$1 && instance$jscomp$0.effectTag & 4 && invariant(!1, "The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."); + break; + + case 6: + break; + + case 4: + break; + + case 15: + break; + + case 16: + break; + + default: + invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + } + + if (effectTag$jscomp$0 & 128) { + instance$jscomp$0 = void 0; + var ref = nextEffect.ref; + + if (null !== ref) { + var instance$jscomp$2 = nextEffect.stateNode; + + switch (nextEffect.tag) { + case 5: + instance$jscomp$0 = instance$jscomp$2.canonical; + break; + + default: + instance$jscomp$0 = instance$jscomp$2; + } + + "function" === typeof ref ? ref(instance$jscomp$0) : ref.current = instance$jscomp$0; + } + } + + var next = nextEffect.nextEffect; + nextEffect.nextEffect = null; + nextEffect = next; + } + } catch (e) { + effectTag = !0, current$jscomp$0 = e; + } + + effectTag && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, current$jscomp$0), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); + } + + isWorking = isCommitting$1 = !1; + "function" === typeof onCommitRoot && onCommitRoot(finishedWork$jscomp$0.stateNode); + finishedWork$jscomp$0 = root.expirationTime; + 0 === finishedWork$jscomp$0 && (legacyErrorBoundariesThatAlreadyFailed = null); + root.expirationTime = finishedWork$jscomp$0; + root.finishedWork = null; + } + + function shouldYield() { + return null === deadline || deadlineDidExpire || deadline.timeRemaining() > timeHeuristicForUnitOfWork ? !1 : deadlineDidExpire = !0; + } + + function onUncaughtError(error) { + invariant(null !== nextFlushedRoot, "Should be working on a root. This error is likely caused by a bug in React. Please file an issue."); + nextFlushedRoot.expirationTime = 0; + hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); + } + + function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { + var current = container.current; + + if (parentComponent) { + parentComponent = parentComponent._reactInternalFiber; + var parentContext; + + b: { + invariant(2 === isFiberMountedImpl(parentComponent) && 2 === parentComponent.tag, "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); + + for (parentContext = parentComponent; 3 !== parentContext.tag;) { + if (isContextProvider(parentContext)) { + parentContext = parentContext.stateNode.__reactInternalMemoizedMergedChildContext; + break b; + } + + parentContext = parentContext.return; + invariant(parentContext, "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); + } + + parentContext = parentContext.stateNode.context; + } + + parentComponent = isContextProvider(parentComponent) ? processChildContext(parentComponent, parentContext) : parentContext; + } else parentComponent = emptyObject; + + null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; + container = callback; + callback = createUpdate(expirationTime); + callback.payload = { + element: element + }; + container = void 0 === container ? null : container; + null !== container && (callback.callback = container); + enqueueUpdate(current, callback, expirationTime); + scheduleWork(current, expirationTime); + return expirationTime; + } + + function findHostInstance$1(component) { + var fiber = component._reactInternalFiber; + void 0 === fiber && ("function" === typeof component.render ? invariant(!1, "Unable to find node on an unmounted component.") : invariant(!1, "Argument appears to not be a ReactComponent. Keys: %s", Object.keys(component))); + component = findCurrentHostFiber(fiber); + return null === component ? null : component.stateNode; + } + + function updateContainer(element, container, parentComponent, callback) { + var current = container.current, + currentTime = recalculateCurrentTime(); + current = computeExpirationForFiber(currentTime, current); + return updateContainerAtExpirationTime(element, container, parentComponent, current, callback); + } + + function getPublicRootInstance(container) { + container = container.current; + if (!container.child) return null; + + switch (container.child.tag) { + case 5: + return container.child.stateNode.canonical; + + default: + return container.child.stateNode; + } + } + + function injectIntoDevTools(devToolsConfig) { + var _findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + return injectInternals(_extends({}, devToolsConfig, { + findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { + fiber = findCurrentHostFiber(fiber); + return null === fiber ? null : fiber.stateNode; + }, + findFiberByHostInstance: function findFiberByHostInstance(instance) { + return _findFiberByHostInstance ? _findFiberByHostInstance(instance) : null; + } + })); + } + + var ReactFabricRenderer = { + updateContainerAtExpirationTime: updateContainerAtExpirationTime, + createContainer: function createContainer(containerInfo, isAsync, hydrate) { + return createFiberRoot(containerInfo, isAsync, hydrate); + }, + updateContainer: updateContainer, + flushRoot: function flushRoot(root, expirationTime) { + invariant(!isRendering, "work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method."); + nextFlushedRoot = root; + nextFlushedExpirationTime = expirationTime; + performWorkOnRoot(root, expirationTime, !1); + performWork(1, null); + finishRendering(); + }, + requestWork: requestWork, + computeUniqueAsyncExpiration: function computeUniqueAsyncExpiration() { + var result = 2 + 25 * (((recalculateCurrentTime() - 2 + 500) / 25 | 0) + 1); + result <= lastUniqueAsyncExpiration && (result = lastUniqueAsyncExpiration + 1); + return lastUniqueAsyncExpiration = result; + }, + batchedUpdates: function batchedUpdates(fn, a) { + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = !0; + + try { + return fn(a); + } finally { + (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); + } + }, + unbatchedUpdates: function unbatchedUpdates(fn, a) { + if (isBatchingUpdates && !isUnbatchingUpdates) { + isUnbatchingUpdates = !0; + + try { + return fn(a); + } finally { + isUnbatchingUpdates = !1; + } + } + + return fn(a); + }, + deferredUpdates: function deferredUpdates(fn) { + var previousExpirationContext = expirationContext; + expirationContext = 2 + 25 * (((recalculateCurrentTime() - 2 + 500) / 25 | 0) + 1); + + try { + return fn(); + } finally { + expirationContext = previousExpirationContext; + } + }, + syncUpdates: syncUpdates, + interactiveUpdates: function interactiveUpdates(fn, a, b) { + if (isBatchingInteractiveUpdates) return fn(a, b); + isBatchingUpdates || isRendering || 0 === lowestPendingInteractiveExpirationTime || (performWork(lowestPendingInteractiveExpirationTime, null), lowestPendingInteractiveExpirationTime = 0); + var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates, + previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = isBatchingInteractiveUpdates = !0; + + try { + return fn(a, b); + } finally { + isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates, (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); + } + }, + flushInteractiveUpdates: function flushInteractiveUpdates() { + isRendering || 0 === lowestPendingInteractiveExpirationTime || (performWork(lowestPendingInteractiveExpirationTime, null), lowestPendingInteractiveExpirationTime = 0); + }, + flushControlled: function flushControlled(fn) { + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = !0; + + try { + syncUpdates(fn); + } finally { + (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); + } + }, + flushSync: function flushSync(fn, a) { + invariant(!isRendering, "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering."); + var previousIsBatchingUpdates = isBatchingUpdates; + isBatchingUpdates = !0; + + try { + return syncUpdates(fn, a); + } finally { + isBatchingUpdates = previousIsBatchingUpdates, performWork(1, null); + } + }, + getPublicRootInstance: getPublicRootInstance, + findHostInstance: findHostInstance$1, + findHostInstanceWithNoPortals: function findHostInstanceWithNoPortals(fiber) { + fiber = findCurrentHostFiberWithNoPortals(fiber); + return null === fiber ? null : fiber.stateNode; + }, + injectIntoDevTools: injectIntoDevTools + }; + + function _createPortal(children, containerInfo, implementation) { + var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; + return { + $$typeof: REACT_PORTAL_TYPE, + key: null == key ? null : "" + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + + function _inherits(subClass, superClass) { + if ("function" !== typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: !1, + writable: !0, + configurable: !0 + } + }); + superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); + } + + var getInspectorDataForViewTag = void 0; + + getInspectorDataForViewTag = function getInspectorDataForViewTag() { + invariant(!1, "getInspectorDataForViewTag() is not available in production"); + }; + + function findNodeHandle(componentOrHandle) { + if (null == componentOrHandle) return null; + if ("number" === typeof componentOrHandle) return componentOrHandle; + if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; + if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; + componentOrHandle = findHostInstance$1(componentOrHandle); + return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; + } + + _batchedUpdates = ReactFabricRenderer.batchedUpdates; + _flushInteractiveUpdates = ReactFabricRenderer.flushInteractiveUpdates; + var roots = new Map(), + ReactFabric = { + NativeComponent: function (findNodeHandle, findHostInstance) { + return function (_React$Component) { + function ReactNativeComponent() { + if (!(this instanceof ReactNativeComponent)) throw new TypeError("Cannot call a class as a function"); + + var call = _React$Component.apply(this, arguments); + + if (!this) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !call || "object" !== typeof call && "function" !== typeof call ? this : call; + } + + _inherits(ReactNativeComponent, _React$Component); + + ReactNativeComponent.prototype.blur = function () { + TextInputState.blurTextInput(findNodeHandle(this)); + }; + + ReactNativeComponent.prototype.focus = function () { + TextInputState.focusTextInput(findNodeHandle(this)); + }; + + ReactNativeComponent.prototype.measure = function (callback) { + UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); + }; + + ReactNativeComponent.prototype.measureInWindow = function (callback) { + UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); + }; + + ReactNativeComponent.prototype.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }; + + ReactNativeComponent.prototype.setNativeProps = function (nativeProps) { + var maybeInstance = void 0; + + try { + maybeInstance = findHostInstance(this); + } catch (error) {} + + if (null != maybeInstance) { + var viewConfig = maybeInstance.viewConfig || maybeInstance.canonical.viewConfig; + nativeProps = diffProperties(null, emptyObject$1, nativeProps, viewConfig.validAttributes); + null != nativeProps && UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, nativeProps); + } + }; + + return ReactNativeComponent; + }(React.Component); + }(findNodeHandle, findHostInstance$1), + findNodeHandle: findNodeHandle, + render: function render(element, containerTag, callback) { + var root = roots.get(containerTag); + root || (root = createFiberRoot(containerTag, !1, !1), roots.set(containerTag, root)); + updateContainer(element, root, null, callback); + return getPublicRootInstance(root); + }, + unmountComponentAtNode: function unmountComponentAtNode(containerTag) { + var root = roots.get(containerTag); + root && updateContainer(null, root, null, function () { + roots.delete(containerTag); + }); + }, + createPortal: function createPortal(children, containerTag) { + return _createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); + }, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + NativeMethodsMixin: function (findNodeHandle, findHostInstance) { + return { + measure: function measure(callback) { + UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); + }, + measureInWindow: function measureInWindow(callback) { + UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); + }, + measureLayout: function measureLayout(relativeToNativeNode, onSuccess, onFail) { + UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); + }, + setNativeProps: function setNativeProps(nativeProps) { + var maybeInstance = void 0; + + try { + maybeInstance = findHostInstance(this); + } catch (error) {} + + if (null != maybeInstance) { + var viewConfig = maybeInstance.viewConfig; + nativeProps = diffProperties(null, emptyObject$1, nativeProps, viewConfig.validAttributes); + null != nativeProps && UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, nativeProps); + } + }, + focus: function focus() { + TextInputState.focusTextInput(findNodeHandle(this)); + }, + blur: function blur() { + TextInputState.blurTextInput(findNodeHandle(this)); + } + }; + }(findNodeHandle, findHostInstance$1) + } + }; + injectIntoDevTools({ + findFiberByHostInstance: getInstanceFromInstance, + getInspectorDataForViewTag: getInspectorDataForViewTag, + bundleType: 0, + version: "16.4.1", + rendererPackageName: "react-native-renderer" + }); + var ReactFabric$2 = { + default: ReactFabric + }, + ReactFabric$3 = ReactFabric$2 && ReactFabric || ReactFabric$2; + module.exports = ReactFabric$3.default ? ReactFabric$3.default : ReactFabric$3; +},491,[263,166,231,218,1,323,324,226,325,490,271],"node_modules/react-native/Libraries/Renderer/oss/ReactFabric-prod.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + + function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + + function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + + function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); + + var RCTAsyncStorage = NativeModules.AsyncRocksDBStorage || NativeModules.AsyncSQLiteDBStorage || NativeModules.AsyncLocalStorage; + var AsyncStorage = { + _getRequests: [], + _getKeys: [], + _immediate: null, + getItem: function getItem(key, callback) { + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiGet([key], function (errors, result) { + var value = result && result[0] && result[0][1] ? result[0][1] : null; + var errs = convertErrors(errors); + callback && callback(errs && errs[0], value); + + if (errs) { + reject(errs[0]); + } else { + resolve(value); + } + }); + }); + }, + setItem: function setItem(key, value, callback) { + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiSet([[key, value]], function (errors) { + var errs = convertErrors(errors); + callback && callback(errs && errs[0]); + + if (errs) { + reject(errs[0]); + } else { + resolve(null); + } + }); + }); + }, + removeItem: function removeItem(key, callback) { + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiRemove([key], function (errors) { + var errs = convertErrors(errors); + callback && callback(errs && errs[0]); + + if (errs) { + reject(errs[0]); + } else { + resolve(null); + } + }); + }); + }, + mergeItem: function mergeItem(key, value, callback) { + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiMerge([[key, value]], function (errors) { + var errs = convertErrors(errors); + callback && callback(errs && errs[0]); + + if (errs) { + reject(errs[0]); + } else { + resolve(null); + } + }); + }); + }, + clear: function clear(callback) { + return new Promise(function (resolve, reject) { + RCTAsyncStorage.clear(function (error) { + callback && callback(convertError(error)); + + if (error && convertError(error)) { + reject(convertError(error)); + } else { + resolve(null); + } + }); + }); + }, + getAllKeys: function getAllKeys(callback) { + return new Promise(function (resolve, reject) { + RCTAsyncStorage.getAllKeys(function (error, keys) { + callback && callback(convertError(error), keys); + + if (error) { + reject(convertError(error)); + } else { + resolve(keys); + } + }); + }); + }, + flushGetRequests: function flushGetRequests() { + var getRequests = this._getRequests; + var getKeys = this._getKeys; + this._getRequests = []; + this._getKeys = []; + RCTAsyncStorage.multiGet(getKeys, function (errors, result) { + var map = {}; + result && result.forEach(function (_ref) { + var _ref2 = _slicedToArray(_ref, 2), + key = _ref2[0], + value = _ref2[1]; + + map[key] = value; + return value; + }); + var reqLength = getRequests.length; + + for (var i = 0; i < reqLength; i++) { + var request = getRequests[i]; + var requestKeys = request.keys; + var requestResult = requestKeys.map(function (key) { + return [key, map[key]]; + }); + request.callback && request.callback(null, requestResult); + request.resolve && request.resolve(requestResult); + } + }); + }, + multiGet: function multiGet(keys, callback) { + var _this = this; + + if (!this._immediate) { + this._immediate = setImmediate(function () { + _this._immediate = null; + + _this.flushGetRequests(); + }); + } + + var getRequest = { + keys: keys, + callback: callback, + keyIndex: this._getKeys.length, + resolve: null, + reject: null + }; + var promiseResult = new Promise(function (resolve, reject) { + getRequest.resolve = resolve; + getRequest.reject = reject; + }); + + this._getRequests.push(getRequest); + + keys.forEach(function (key) { + if (_this._getKeys.indexOf(key) === -1) { + _this._getKeys.push(key); + } + }); + return promiseResult; + }, + multiSet: function multiSet(keyValuePairs, callback) { + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiSet(keyValuePairs, function (errors) { + var error = convertErrors(errors); + callback && callback(error); + + if (error) { + reject(error); + } else { + resolve(null); + } + }); + }); + }, + multiRemove: function multiRemove(keys, callback) { + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiRemove(keys, function (errors) { + var error = convertErrors(errors); + callback && callback(error); + + if (error) { + reject(error); + } else { + resolve(null); + } + }); + }); + }, + multiMerge: function multiMerge(keyValuePairs, callback) { + return new Promise(function (resolve, reject) { + RCTAsyncStorage.multiMerge(keyValuePairs, function (errors) { + var error = convertErrors(errors); + callback && callback(error); + + if (error) { + reject(error); + } else { + resolve(null); + } + }); + }); + } + }; + + if (!RCTAsyncStorage.multiMerge) { + delete AsyncStorage.mergeItem; + delete AsyncStorage.multiMerge; + } + + function convertErrors(errs) { + if (!errs) { + return null; + } + + return (Array.isArray(errs) ? errs : [errs]).map(function (e) { + return convertError(e); + }); + } + + function convertError(error) { + if (!error) { + return null; + } + + var out = new Error(error.message); + out.key = error.key; + return out; + } + + module.exports = AsyncStorage; +},492,[168],"node_modules/react-native/Libraries/Storage/AsyncStorage.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var BackHandler = _$$_REQUIRE(_dependencyMap[0], 'BackHandler'); + + var warning = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/warning'); + + var BackAndroid = { + exitApp: function exitApp() { + warning(false, 'BackAndroid is deprecated. Please use BackHandler instead.'); + BackHandler.exitApp(); + }, + addEventListener: function addEventListener(eventName, handler) { + warning(false, 'BackAndroid is deprecated. Please use BackHandler instead.'); + return BackHandler.addEventListener(eventName, handler); + }, + removeEventListener: function removeEventListener(eventName, handler) { + warning(false, 'BackAndroid is deprecated. Please use BackHandler instead.'); + BackHandler.removeEventListener(eventName, handler); + } + }; + module.exports = BackAndroid; +},493,[487,183],"node_modules/react-native/Libraries/Utilities/BackAndroid.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); + + var checkPropTypes = PropTypes.checkPropTypes; + + var RCTCameraRollManager = _$$_REQUIRE(_dependencyMap[1], 'NativeModules').CameraRollManager; + + var createStrictShapeTypeChecker = _$$_REQUIRE(_dependencyMap[2], 'createStrictShapeTypeChecker'); + + var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); + + var GROUP_TYPES_OPTIONS = { + Album: 'Album', + All: 'All', + Event: 'Event', + Faces: 'Faces', + Library: 'Library', + PhotoStream: 'PhotoStream', + SavedPhotos: 'SavedPhotos' + }; + var ASSET_TYPE_OPTIONS = { + All: 'All', + Videos: 'Videos', + Photos: 'Photos' + }; + var getPhotosParamChecker = createStrictShapeTypeChecker({ + first: PropTypes.number.isRequired, + after: PropTypes.string, + groupTypes: PropTypes.oneOf(Object.keys(GROUP_TYPES_OPTIONS)), + groupName: PropTypes.string, + assetType: PropTypes.oneOf(Object.keys(ASSET_TYPE_OPTIONS)), + mimeTypes: PropTypes.arrayOf(PropTypes.string) + }); + var getPhotosReturnChecker = createStrictShapeTypeChecker({ + edges: PropTypes.arrayOf(createStrictShapeTypeChecker({ + node: createStrictShapeTypeChecker({ + type: PropTypes.string.isRequired, + group_name: PropTypes.string.isRequired, + image: createStrictShapeTypeChecker({ + uri: PropTypes.string.isRequired, + height: PropTypes.number.isRequired, + width: PropTypes.number.isRequired, + isStored: PropTypes.bool, + playableDuration: PropTypes.number.isRequired + }).isRequired, + timestamp: PropTypes.number.isRequired, + location: createStrictShapeTypeChecker({ + latitude: PropTypes.number, + longitude: PropTypes.number, + altitude: PropTypes.number, + heading: PropTypes.number, + speed: PropTypes.number + }) + }).isRequired + })).isRequired, + page_info: createStrictShapeTypeChecker({ + has_next_page: PropTypes.bool.isRequired, + start_cursor: PropTypes.string, + end_cursor: PropTypes.string + }).isRequired + }); + + var CameraRoll = function () { + function CameraRoll() { + _classCallCheck(this, CameraRoll); + } + + _createClass(CameraRoll, null, [{ + key: "saveImageWithTag", + value: function saveImageWithTag(tag) { + console.warn('`CameraRoll.saveImageWithTag()` is deprecated. Use `CameraRoll.saveToCameraRoll()` instead.'); + return this.saveToCameraRoll(tag, 'photo'); + } + }, { + key: "deletePhotos", + value: function deletePhotos(photos) { + return RCTCameraRollManager.deletePhotos(photos); + } + }, { + key: "saveToCameraRoll", + value: function saveToCameraRoll(tag, type) { + invariant(typeof tag === 'string', 'CameraRoll.saveToCameraRoll must be a valid string.'); + invariant(type === 'photo' || type === 'video' || type === undefined, "The second argument to saveToCameraRoll must be 'photo' or 'video'. You passed " + (type || 'unknown')); + var mediaType = 'photo'; + + if (type) { + mediaType = type; + } else if (['mov', 'mp4'].indexOf(tag.split('.').slice(-1)[0]) >= 0) { + mediaType = 'video'; + } + + return RCTCameraRollManager.saveToCameraRoll(tag, mediaType); + } + }, { + key: "getPhotos", + value: function getPhotos(params) { + if (__DEV__) { + checkPropTypes({ + params: getPhotosParamChecker + }, { + params: params + }, 'params', 'CameraRoll.getPhotos'); + } + + if (arguments.length > 1) { + console.warn('CameraRoll.getPhotos(tag, success, error) is deprecated. Use the returned Promise instead'); + var successCallback = arguments[1]; + + if (__DEV__) { + var callback = arguments[1]; + + successCallback = function successCallback(response) { + checkPropTypes({ + response: getPhotosReturnChecker + }, { + response: response + }, 'response', 'CameraRoll.getPhotos callback'); + callback(response); + }; + } + + var errorCallback = arguments[2] || function () {}; + + RCTCameraRollManager.getPhotos(params).then(successCallback, errorCallback); + } + + return RCTCameraRollManager.getPhotos(params); + } + }]); + + return CameraRoll; + }(); + + CameraRoll.GroupTypesOptions = GROUP_TYPES_OPTIONS; + CameraRoll.AssetTypeOptions = ASSET_TYPE_OPTIONS; + module.exports = CameraRoll; +},494,[212,168,256,166],"node_modules/react-native/Libraries/CameraRoll/CameraRoll.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Clipboard = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').Clipboard; + + module.exports = { + getString: function getString() { + return Clipboard.getString(); + }, + setString: function setString(content) { + Clipboard.setString(content); + } + }; +},495,[168],"node_modules/react-native/Libraries/Components/Clipboard/Clipboard.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var DatePickerAndroid = { + open: function open(options) { + return regeneratorRuntime.async(function open$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + return _context.abrupt("return", Promise.reject({ + message: 'DatePickerAndroid is not supported on this platform.' + })); + + case 1: + case "end": + return _context.stop(); + } + } + }, null, this); + } + }; + module.exports = DatePickerAndroid; +},496,[],"node_modules/react-native/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var RCTImagePicker = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').ImagePickerIOS; + + var ImagePickerIOS = { + canRecordVideos: function canRecordVideos(callback) { + return RCTImagePicker.canRecordVideos(callback); + }, + canUseCamera: function canUseCamera(callback) { + return RCTImagePicker.canUseCamera(callback); + }, + openCameraDialog: function openCameraDialog(config, successCallback, cancelCallback) { + config = _objectSpread({ + videoMode: false + }, config); + return RCTImagePicker.openCameraDialog(config, successCallback, cancelCallback); + }, + openSelectDialog: function openSelectDialog(config, successCallback, cancelCallback) { + config = _objectSpread({ + showImages: true, + showVideos: false + }, config); + return RCTImagePicker.openSelectDialog(config, successCallback, cancelCallback); + } + }; + module.exports = ImagePickerIOS; +},497,[168],"node_modules/react-native/Libraries/CameraRoll/ImagePickerIOS.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var Map = _$$_REQUIRE(_dependencyMap[0], 'Map'); + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); + + var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); + + var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); + + var RCTNetInfo = NativeModules.NetInfo; + var NetInfoEventEmitter = new NativeEventEmitter(RCTNetInfo); + var DEVICE_CONNECTIVITY_EVENT = 'networkStatusDidChange'; + + var _subscriptions = new Map(); + + var _isConnectedDeprecated; + + if (Platform.OS === 'ios') { + _isConnectedDeprecated = function _isConnectedDeprecated(reachability) { + return reachability !== 'none' && reachability !== 'unknown'; + }; + } else if (Platform.OS === 'android') { + _isConnectedDeprecated = function _isConnectedDeprecated(connectionType) { + return connectionType !== 'NONE' && connectionType !== 'UNKNOWN'; + }; + } + + function _isConnected(connection) { + return connection.type !== 'none' && connection.type !== 'unknown'; + } + + var _isConnectedSubscriptions = new Map(); + + var NetInfo = { + addEventListener: function addEventListener(eventName, handler) { + var listener; + + if (eventName === 'connectionChange') { + listener = NetInfoEventEmitter.addListener(DEVICE_CONNECTIVITY_EVENT, function (appStateData) { + handler({ + type: appStateData.connectionType, + effectiveType: appStateData.effectiveConnectionType + }); + }); + } else if (eventName === 'change') { + console.warn('NetInfo\'s "change" event is deprecated. Listen to the "connectionChange" event instead.'); + listener = NetInfoEventEmitter.addListener(DEVICE_CONNECTIVITY_EVENT, function (appStateData) { + handler(appStateData.network_info); + }); + } else { + console.warn('Trying to subscribe to unknown event: "' + eventName + '"'); + return { + remove: function remove() {} + }; + } + + _subscriptions.set(handler, listener); + + return { + remove: function remove() { + return NetInfo.removeEventListener(eventName, handler); + } + }; + }, + removeEventListener: function removeEventListener(eventName, handler) { + var listener = _subscriptions.get(handler); + + if (!listener) { + return; + } + + listener.remove(); + + _subscriptions.delete(handler); + }, + fetch: function fetch() { + console.warn('NetInfo.fetch() is deprecated. Use NetInfo.getConnectionInfo() instead.'); + return RCTNetInfo.getCurrentConnectivity().then(function (resp) { + return resp.network_info; + }); + }, + getConnectionInfo: function getConnectionInfo() { + return RCTNetInfo.getCurrentConnectivity().then(function (resp) { + return { + type: resp.connectionType, + effectiveType: resp.effectiveConnectionType + }; + }); + }, + isConnected: { + addEventListener: function addEventListener(eventName, handler) { + var listener = function listener(connection) { + if (eventName === 'change') { + handler(_isConnectedDeprecated(connection)); + } else if (eventName === 'connectionChange') { + handler(_isConnected(connection)); + } + }; + + _isConnectedSubscriptions.set(handler, listener); + + NetInfo.addEventListener(eventName, listener); + return { + remove: function remove() { + return NetInfo.isConnected.removeEventListener(eventName, handler); + } + }; + }, + removeEventListener: function removeEventListener(eventName, handler) { + var listener = _isConnectedSubscriptions.get(handler); + + NetInfo.removeEventListener(eventName, listener); + + _isConnectedSubscriptions.delete(handler); + }, + fetch: function fetch() { + return NetInfo.getConnectionInfo().then(_isConnected); + } + }, + isConnectionExpensive: function isConnectionExpensive() { + return Platform.OS === 'android' ? RCTNetInfo.isConnectionMetered() : Promise.reject(new Error('Currently not supported on iOS')); + } + }; + module.exports = NetInfo; +},498,[266,286,168,176],"node_modules/react-native/Libraries/Network/NetInfo.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'NativeEventEmitter'); + + var RCTPushNotificationManager = _$$_REQUIRE(_dependencyMap[1], 'NativeModules').PushNotificationManager; + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + var PushNotificationEmitter = new NativeEventEmitter(RCTPushNotificationManager); + + var _notifHandlers = new Map(); + + var DEVICE_NOTIF_EVENT = 'remoteNotificationReceived'; + var NOTIF_REGISTER_EVENT = 'remoteNotificationsRegistered'; + var NOTIF_REGISTRATION_ERROR_EVENT = 'remoteNotificationRegistrationError'; + var DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived'; + + var PushNotificationIOS = function () { + _createClass(PushNotificationIOS, null, [{ + key: "presentLocalNotification", + value: function presentLocalNotification(details) { + RCTPushNotificationManager.presentLocalNotification(details); + } + }, { + key: "scheduleLocalNotification", + value: function scheduleLocalNotification(details) { + RCTPushNotificationManager.scheduleLocalNotification(details); + } + }, { + key: "cancelAllLocalNotifications", + value: function cancelAllLocalNotifications() { + RCTPushNotificationManager.cancelAllLocalNotifications(); + } + }, { + key: "removeAllDeliveredNotifications", + value: function removeAllDeliveredNotifications() { + RCTPushNotificationManager.removeAllDeliveredNotifications(); + } + }, { + key: "getDeliveredNotifications", + value: function getDeliveredNotifications(callback) { + RCTPushNotificationManager.getDeliveredNotifications(callback); + } + }, { + key: "removeDeliveredNotifications", + value: function removeDeliveredNotifications(identifiers) { + RCTPushNotificationManager.removeDeliveredNotifications(identifiers); + } + }, { + key: "setApplicationIconBadgeNumber", + value: function setApplicationIconBadgeNumber(number) { + RCTPushNotificationManager.setApplicationIconBadgeNumber(number); + } + }, { + key: "getApplicationIconBadgeNumber", + value: function getApplicationIconBadgeNumber(callback) { + RCTPushNotificationManager.getApplicationIconBadgeNumber(callback); + } + }, { + key: "cancelLocalNotifications", + value: function cancelLocalNotifications(userInfo) { + RCTPushNotificationManager.cancelLocalNotifications(userInfo); + } + }, { + key: "getScheduledLocalNotifications", + value: function getScheduledLocalNotifications(callback) { + RCTPushNotificationManager.getScheduledLocalNotifications(callback); + } + }, { + key: "addEventListener", + value: function addEventListener(type, handler) { + invariant(type === 'notification' || type === 'register' || type === 'registrationError' || type === 'localNotification', 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); + var listener; + + if (type === 'notification') { + listener = PushNotificationEmitter.addListener(DEVICE_NOTIF_EVENT, function (notifData) { + handler(new PushNotificationIOS(notifData)); + }); + } else if (type === 'localNotification') { + listener = PushNotificationEmitter.addListener(DEVICE_LOCAL_NOTIF_EVENT, function (notifData) { + handler(new PushNotificationIOS(notifData)); + }); + } else if (type === 'register') { + listener = PushNotificationEmitter.addListener(NOTIF_REGISTER_EVENT, function (registrationInfo) { + handler(registrationInfo.deviceToken); + }); + } else if (type === 'registrationError') { + listener = PushNotificationEmitter.addListener(NOTIF_REGISTRATION_ERROR_EVENT, function (errorInfo) { + handler(errorInfo); + }); + } + + _notifHandlers.set(type, listener); + } + }, { + key: "removeEventListener", + value: function removeEventListener(type, handler) { + invariant(type === 'notification' || type === 'register' || type === 'registrationError' || type === 'localNotification', 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); + + var listener = _notifHandlers.get(type); + + if (!listener) { + return; + } + + listener.remove(); + + _notifHandlers.delete(type); + } + }, { + key: "requestPermissions", + value: function requestPermissions(permissions) { + var requestedPermissions = {}; + + if (permissions) { + requestedPermissions = { + alert: !!permissions.alert, + badge: !!permissions.badge, + sound: !!permissions.sound + }; + } else { + requestedPermissions = { + alert: true, + badge: true, + sound: true + }; + } + + return RCTPushNotificationManager.requestPermissions(requestedPermissions); + } + }, { + key: "abandonPermissions", + value: function abandonPermissions() { + RCTPushNotificationManager.abandonPermissions(); + } + }, { + key: "checkPermissions", + value: function checkPermissions(callback) { + invariant(typeof callback === 'function', 'Must provide a valid callback'); + RCTPushNotificationManager.checkPermissions(callback); + } + }, { + key: "getInitialNotification", + value: function getInitialNotification() { + return RCTPushNotificationManager.getInitialNotification().then(function (notification) { + return notification && new PushNotificationIOS(notification); + }); + } + }]); + + function PushNotificationIOS(nativeNotif) { + var _this = this; + + _classCallCheck(this, PushNotificationIOS); + + this._data = {}; + this._remoteNotificationCompleteCallbackCalled = false; + this._isRemote = nativeNotif.remote; + + if (this._isRemote) { + this._notificationId = nativeNotif.notificationId; + } + + if (nativeNotif.remote) { + Object.keys(nativeNotif).forEach(function (notifKey) { + var notifVal = nativeNotif[notifKey]; + + if (notifKey === 'aps') { + _this._alert = notifVal.alert; + _this._sound = notifVal.sound; + _this._badgeCount = notifVal.badge; + _this._category = notifVal.category; + _this._contentAvailable = notifVal['content-available']; + _this._threadID = notifVal['thread-id']; + } else { + _this._data[notifKey] = notifVal; + } + }); + } else { + this._badgeCount = nativeNotif.applicationIconBadgeNumber; + this._sound = nativeNotif.soundName; + this._alert = nativeNotif.alertBody; + this._data = nativeNotif.userInfo; + this._category = nativeNotif.category; + } + } + + _createClass(PushNotificationIOS, [{ + key: "finish", + value: function finish(fetchResult) { + if (!this._isRemote || !this._notificationId || this._remoteNotificationCompleteCallbackCalled) { + return; + } + + this._remoteNotificationCompleteCallbackCalled = true; + RCTPushNotificationManager.onFinishRemoteNotification(this._notificationId, fetchResult); + } + }, { + key: "getMessage", + value: function getMessage() { + return this._alert; + } + }, { + key: "getSound", + value: function getSound() { + return this._sound; + } + }, { + key: "getCategory", + value: function getCategory() { + return this._category; + } + }, { + key: "getAlert", + value: function getAlert() { + return this._alert; + } + }, { + key: "getContentAvailable", + value: function getContentAvailable() { + return this._contentAvailable; + } + }, { + key: "getBadgeCount", + value: function getBadgeCount() { + return this._badgeCount; + } + }, { + key: "getData", + value: function getData() { + return this._data; + } + }, { + key: "getThreadID", + value: function getThreadID() { + return this._threadID; + } + }]); + + return PushNotificationIOS; + }(); + + PushNotificationIOS.FetchResult = { + NewData: 'UIBackgroundFetchResultNewData', + NoData: 'UIBackgroundFetchResultNoData', + ResultFailed: 'UIBackgroundFetchResultFailed' + }; + module.exports = PushNotificationIOS; +},499,[286,168,166],"node_modules/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'RCTDeviceEventEmitter'); + + var RCTSettingsManager = _$$_REQUIRE(_dependencyMap[1], 'NativeModules').SettingsManager; + + var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); + + var subscriptions = []; + var Settings = { + _settings: RCTSettingsManager && RCTSettingsManager.settings, + get: function get(key) { + return this._settings[key]; + }, + set: function set(settings) { + this._settings = _extends(this._settings, settings); + RCTSettingsManager.setValues(settings); + }, + watchKeys: function watchKeys(keys, callback) { + if (typeof keys === 'string') { + keys = [keys]; + } + + invariant(Array.isArray(keys), 'keys should be a string or array of strings'); + var sid = subscriptions.length; + subscriptions.push({ + keys: keys, + callback: callback + }); + return sid; + }, + clearWatch: function clearWatch(watchId) { + if (watchId < subscriptions.length) { + subscriptions[watchId] = { + keys: [], + callback: null + }; + } + }, + _sendObservations: function _sendObservations(body) { + var _this = this; + + Object.keys(body).forEach(function (key) { + var newValue = body[key]; + var didChange = _this._settings[key] !== newValue; + _this._settings[key] = newValue; + + if (didChange) { + subscriptions.forEach(function (sub) { + if (sub.keys.indexOf(key) !== -1 && sub.callback) { + sub.callback(); + } + }); + } + }); + } + }; + RCTDeviceEventEmitter.addListener('settingsUpdated', Settings._sendObservations.bind(Settings)); + module.exports = Settings; +},500,[194,168,166],"node_modules/react-native/Libraries/Settings/Settings.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var processColor = _$$_REQUIRE(_dependencyMap[2], 'processColor'); + + var _require = _$$_REQUIRE(_dependencyMap[3], 'NativeModules'), + ActionSheetManager = _require.ActionSheetManager, + ShareModule = _require.ShareModule; + + var Share = function () { + function Share() { + _classCallCheck(this, Share); + } + + _createClass(Share, null, [{ + key: "share", + value: function share(content) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + invariant(typeof content === 'object' && content !== null, 'Content to share must be a valid object'); + invariant(typeof content.url === 'string' || typeof content.message === 'string', 'At least one of URL and message is required'); + invariant(typeof options === 'object' && options !== null, 'Options must be a valid object'); + + if (Platform.OS === 'android') { + invariant(!content.title || typeof content.title === 'string', 'Invalid title: title should be a string.'); + return ShareModule.share(content, options.dialogTitle); + } else if (Platform.OS === 'ios') { + return new Promise(function (resolve, reject) { + ActionSheetManager.showShareActionSheetWithOptions(_objectSpread({}, content, options, { + tintColor: processColor(options.tintColor) + }), function (error) { + return reject(error); + }, function (success, activityType) { + if (success) { + resolve({ + action: 'sharedAction', + activityType: activityType + }); + } else { + resolve({ + action: 'dismissedAction' + }); + } + }); + }); + } else { + return Promise.reject(new Error('Unsupported platform')); + } + } + }, { + key: "sharedAction", + get: function get() { + return 'sharedAction'; + } + }, { + key: "dismissedAction", + get: function get() { + return 'dismissedAction'; + } + }]); + + return Share; + }(); + + module.exports = Share; +},501,[176,166,221,168],"node_modules/react-native/Libraries/Share/Share.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'NativeEventEmitter'); + + var _require = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'), + StatusBarManager = _require.StatusBarManager; + + var StatusBarIOS = function (_NativeEventEmitter) { + function StatusBarIOS() { + _classCallCheck(this, StatusBarIOS); + + return _possibleConstructorReturn(this, _getPrototypeOf(StatusBarIOS).apply(this, arguments)); + } + + _inherits(StatusBarIOS, _NativeEventEmitter); + + return StatusBarIOS; + }(NativeEventEmitter); + + module.exports = new StatusBarIOS(StatusBarManager); +},502,[286,168],"node_modules/react-native/Libraries/Components/StatusBar/StatusBarIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var TimePickerAndroid = { + open: function open(options) { + return regeneratorRuntime.async(function open$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + return _context.abrupt("return", Promise.reject({ + message: 'TimePickerAndroid is not supported on this platform.' + })); + + case 1: + case "end": + return _context.stop(); + } + } + }, null, this); + } + }; + module.exports = TimePickerAndroid; +},503,[],"node_modules/react-native/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var RCTVibration = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').Vibration; + + var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); + + var _vibrating = false; + var _id = 0; + + function vibrateByPattern(pattern) { + var repeat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + if (_vibrating) { + return; + } + + _vibrating = true; + + if (pattern[0] === 0) { + RCTVibration.vibrate(); + pattern = pattern.slice(1); + } + + if (pattern.length === 0) { + _vibrating = false; + return; + } + + setTimeout(function () { + return vibrateScheduler(++_id, pattern, repeat, 1); + }, pattern[0]); + } + + function vibrateScheduler(id, pattern, repeat, nextIndex) { + if (!_vibrating || id !== _id) { + return; + } + + RCTVibration.vibrate(); + + if (nextIndex >= pattern.length) { + if (repeat) { + nextIndex = 0; + } else { + _vibrating = false; + return; + } + } + + setTimeout(function () { + return vibrateScheduler(id, pattern, repeat, nextIndex + 1); + }, pattern[nextIndex]); + } + + var Vibration = { + vibrate: function vibrate() { + var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 400; + var repeat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + if (Platform.OS === 'android') { + if (typeof pattern === 'number') { + RCTVibration.vibrate(pattern); + } else if (Array.isArray(pattern)) { + RCTVibration.vibrateByPattern(pattern, repeat ? 0 : -1); + } else { + throw new Error('Vibration pattern should be a number or array'); + } + } else { + if (_vibrating) { + return; + } + + if (typeof pattern === 'number') { + RCTVibration.vibrate(); + } else if (Array.isArray(pattern)) { + vibrateByPattern(pattern, repeat); + } else { + throw new Error('Vibration pattern should be a number or array'); + } + } + }, + cancel: function cancel() { + if (Platform.OS === 'ios') { + _vibrating = false; + } else { + RCTVibration.cancel(); + } + } + }; + module.exports = Vibration; +},504,[168,176],"node_modules/react-native/Libraries/Vibration/Vibration.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + 'use strict'; + + var RCTVibration = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').Vibration; + + var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); + + var VibrationIOS = { + vibrate: function vibrate() { + invariant(arguments[0] === undefined, 'Vibration patterns not supported.'); + RCTVibration.vibrate(); + } + }; + module.exports = VibrationIOS; +},505,[168,166],"node_modules/react-native/Libraries/Vibration/VibrationIOS.ios.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + var ReactNative = _$$_REQUIRE(_dependencyMap[0], 'ReactNative'); + + var UIManager = _$$_REQUIRE(_dependencyMap[1], 'UIManager'); + + module.exports = function takeSnapshot(view, options) { + if (typeof view !== 'number' && view !== 'window') { + view = ReactNative.findNodeHandle(view) || 'window'; + } + + return UIManager.__takeSnapshot(view, options); + }; +},506,[261,218],"node_modules/react-native/Libraries/ReactNative/takeSnapshot.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Util; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); + + function Util() {} + + Util.isPortrait = function () { + var dim = _reactNative.Dimensions.get("screen"); + + return dim.height >= dim.width; + }; + + Util.secondToTime = function (time) { + return ~~(time / 60) + ":" + (time % 60 < 10 ? "0" : "") + time % 60; + }; + + Util.normalizeSeconds = function (number) { + var sec_num = parseInt(number, 10); + var hours = Math.floor(sec_num / 3600); + var minutes = Math.floor((sec_num - hours * 3600) / 60); + var seconds = sec_num - hours * 3600 - minutes * 60; + + if (hours < 10) { + hours = "0" + hours; + } + + if (minutes < 10) { + minutes = "0" + minutes; + } + + if (seconds < 10) { + seconds = "0" + seconds; + } + + return hours + ':' + minutes + ':' + seconds; + }; +},507,[165],"Utils.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "TextTrackType", { + enumerable: true, + get: function get() { + return _TextTrackType.default; + } + }); + Object.defineProperty(exports, "FilterType", { + enumerable: true, + get: function get() { + return _FilterType.default; + } + }); + exports.default = void 0; + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); + + var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../react-transform-hmr/lib/index.js")); + + var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); + + var _resolveAssetSource = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "react-native/Libraries/Image/resolveAssetSource")); + + var _TextTrackType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./TextTrackType")); + + var _FilterType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./FilterType")); + + var _VideoResizeMode = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "./VideoResizeMode.js")); + + var _jsxFileName = "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native-video/Video.js"; + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } + + var _components = { + Video: { + displayName: "Video" + } + }; + + var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ + filename: "/Users/amishra/Development/github/react-native-video/examples/embed-and-fullscreen/node_modules/react-native-video/Video.js", + components: _components, + locals: [module], + imports: [_react.default] + }); + + function _wrapComponent(id) { + return function (Component) { + return _reactTransformHmrLibIndexJs2(Component, id); + }; + } + + var styles = _reactNative.StyleSheet.create({ + base: { + overflow: 'hidden' + } + }); + + var Video = _wrapComponent("Video")(function (_Component) { + function Video(props) { + var _this; + + _classCallCheck(this, Video); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(Video).call(this, props)); + + _this.seek = function (time) { + var tolerance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100; + if (isNaN(time)) throw new Error('Specified time is not a number'); + + if (_reactNative.Platform.OS === 'ios') { + _this.setNativeProps({ + seek: { + time: time, + tolerance: tolerance + } + }); + } else { + _this.setNativeProps({ + seek: time + }); + } + }; + + _this.presentFullscreenPlayer = function () { + _this.setNativeProps({ + fullscreen: true + }); + }; + + _this.dismissFullscreenPlayer = function () { + _this.setNativeProps({ + fullscreen: false + }); + }; + + _this.save = function _callee(options) { + return regeneratorRuntime.async(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return regeneratorRuntime.awrap(_reactNative.NativeModules.VideoManager.save(options, (0, _reactNative.findNodeHandle)(_this._root))); + + case 2: + return _context.abrupt("return", _context.sent); + + case 3: + case "end": + return _context.stop(); + } + } + }, null, this); + }; + + _this._assignRoot = function (component) { + _this._root = component; + }; + + _this._onLoadStart = function (event) { + if (_this.props.onLoadStart) { + _this.props.onLoadStart(event.nativeEvent); + } + }; + + _this._onLoad = function (event) { + if (_this.props.onLoad) { + _this.props.onLoad(event.nativeEvent); + } + }; + + _this._onError = function (event) { + if (_this.props.onError) { + _this.props.onError(event.nativeEvent); + } + }; + + _this._onProgress = function (event) { + if (_this.props.onProgress) { + _this.props.onProgress(event.nativeEvent); + } + }; + + _this._onBandwidthUpdate = function (event) { + if (_this.props.onBandwidthUpdate) { + _this.props.onBandwidthUpdate(event.nativeEvent); + } + }; + + _this._onSeek = function (event) { + if (_this.state.showPoster && !_this.props.audioOnly) { + _this.setState({ + showPoster: false + }); + } + + if (_this.props.onSeek) { + _this.props.onSeek(event.nativeEvent); + } + }; + + _this._onEnd = function (event) { + if (_this.props.onEnd) { + _this.props.onEnd(event.nativeEvent); + } + }; + + _this._onTimedMetadata = function (event) { + if (_this.props.onTimedMetadata) { + _this.props.onTimedMetadata(event.nativeEvent); + } + }; + + _this._onFullscreenPlayerWillPresent = function (event) { + if (_this.props.onFullscreenPlayerWillPresent) { + _this.props.onFullscreenPlayerWillPresent(event.nativeEvent); + } + }; + + _this._onFullscreenPlayerDidPresent = function (event) { + if (_this.props.onFullscreenPlayerDidPresent) { + _this.props.onFullscreenPlayerDidPresent(event.nativeEvent); + } + }; + + _this._onFullscreenPlayerWillDismiss = function (event) { + if (_this.props.onFullscreenPlayerWillDismiss) { + _this.props.onFullscreenPlayerWillDismiss(event.nativeEvent); + } + }; + + _this._onFullscreenPlayerDidDismiss = function (event) { + if (_this.props.onFullscreenPlayerDidDismiss) { + _this.props.onFullscreenPlayerDidDismiss(event.nativeEvent); + } + }; + + _this._onReadyForDisplay = function (event) { + if (_this.props.onReadyForDisplay) { + _this.props.onReadyForDisplay(event.nativeEvent); + } + }; + + _this._onPlaybackStalled = function (event) { + if (_this.props.onPlaybackStalled) { + _this.props.onPlaybackStalled(event.nativeEvent); + } + }; + + _this._onPlaybackResume = function (event) { + if (_this.props.onPlaybackResume) { + _this.props.onPlaybackResume(event.nativeEvent); + } + }; + + _this._onPlaybackRateChange = function (event) { + if (_this.state.showPoster && event.nativeEvent.playbackRate !== 0 && !_this.props.audioOnly) { + _this.setState({ + showPoster: false + }); + } + + if (_this.props.onPlaybackRateChange) { + _this.props.onPlaybackRateChange(event.nativeEvent); + } + }; + + _this._onExternalPlaybackChange = function (event) { + if (_this.props.onExternalPlaybackChange) { + _this.props.onExternalPlaybackChange(event.nativeEvent); + } + }; + + _this._onAudioBecomingNoisy = function () { + if (_this.props.onAudioBecomingNoisy) { + _this.props.onAudioBecomingNoisy(); + } + }; + + _this._onAudioFocusChanged = function (event) { + if (_this.props.onAudioFocusChanged) { + _this.props.onAudioFocusChanged(event.nativeEvent); + } + }; + + _this._onBuffer = function (event) { + if (_this.props.onBuffer) { + _this.props.onBuffer(event.nativeEvent); + } + }; + + _this.state = { + showPoster: true + }; + return _this; + } + + _createClass(Video, [{ + key: "setNativeProps", + value: function setNativeProps(nativeProps) { + this._root.setNativeProps(nativeProps); + } + }, { + key: "toTypeString", + value: function toTypeString(x) { + switch (typeof x) { + case "object": + return x instanceof Date ? x.toISOString() : JSON.stringify(x); + + case "undefined": + return ""; + + default: + return x.toString(); + } + } + }, { + key: "stringsOnlyObject", + value: function stringsOnlyObject(obj) { + var _this2 = this; + + var strObj = {}; + Object.keys(obj).forEach(function (x) { + strObj[x] = _this2.toTypeString(obj[x]); + }); + return strObj; + } + }, { + key: "render", + value: function render() { + var resizeMode = this.props.resizeMode; + var source = (0, _resolveAssetSource.default)(this.props.source) || {}; + var uri = source.uri || ''; + + if (uri && uri.match(/^\//)) { + uri = "file://" + uri; + } + + var isNetwork = !!(uri && uri.match(/^https?:/)); + var isAsset = !!(uri && uri.match(/^(assets-library|ipod-library|file|content|ms-appx|ms-appdata):/)); + var nativeResizeMode; + + if (resizeMode === _VideoResizeMode.default.stretch) { + nativeResizeMode = _reactNative.NativeModules.UIManager.RCTVideo.Constants.ScaleToFill; + } else if (resizeMode === _VideoResizeMode.default.contain) { + nativeResizeMode = _reactNative.NativeModules.UIManager.RCTVideo.Constants.ScaleAspectFit; + } else if (resizeMode === _VideoResizeMode.default.cover) { + nativeResizeMode = _reactNative.NativeModules.UIManager.RCTVideo.Constants.ScaleAspectFill; + } else { + nativeResizeMode = _reactNative.NativeModules.UIManager.RCTVideo.Constants.ScaleNone; + } + + var nativeProps = _extends({}, this.props); + + _extends(nativeProps, { + style: [styles.base, nativeProps.style], + resizeMode: nativeResizeMode, + src: { + uri: uri, + isNetwork: isNetwork, + isAsset: isAsset, + type: source.type || '', + mainVer: source.mainVer || 0, + patchVer: source.patchVer || 0, + requestHeaders: source.headers ? this.stringsOnlyObject(source.headers) : {} + }, + onVideoLoadStart: this._onLoadStart, + onVideoLoad: this._onLoad, + onVideoError: this._onError, + onVideoProgress: this._onProgress, + onVideoSeek: this._onSeek, + onVideoEnd: this._onEnd, + onVideoBuffer: this._onBuffer, + onVideoBandwidthUpdate: this._onBandwidthUpdate, + onTimedMetadata: this._onTimedMetadata, + onVideoAudioBecomingNoisy: this._onAudioBecomingNoisy, + onVideoExternalPlaybackChange: this._onExternalPlaybackChange, + onVideoFullscreenPlayerWillPresent: this._onFullscreenPlayerWillPresent, + onVideoFullscreenPlayerDidPresent: this._onFullscreenPlayerDidPresent, + onVideoFullscreenPlayerWillDismiss: this._onFullscreenPlayerWillDismiss, + onVideoFullscreenPlayerDidDismiss: this._onFullscreenPlayerDidDismiss, + onReadyForDisplay: this._onReadyForDisplay, + onPlaybackStalled: this._onPlaybackStalled, + onPlaybackResume: this._onPlaybackResume, + onPlaybackRateChange: this._onPlaybackRateChange, + onAudioFocusChanged: this._onAudioFocusChanged, + onAudioBecomingNoisy: this._onAudioBecomingNoisy + }); + + var posterStyle = _objectSpread({}, _reactNative.StyleSheet.absoluteFillObject, { + resizeMode: this.props.posterResizeMode || 'contain' + }); + + return _react.default.createElement(_react.default.Fragment, { + __source: { + fileName: _jsxFileName, + lineNumber: 278 + } + }, _react.default.createElement(RCTVideo, _extends({ + ref: this._assignRoot + }, nativeProps, { + __source: { + fileName: _jsxFileName, + lineNumber: 279 + } + })), this.props.poster && this.state.showPoster && _react.default.createElement(_reactNative.View, { + style: nativeProps.style, + __source: { + fileName: _jsxFileName, + lineNumber: 282 + } + }, _react.default.createElement(_reactNative.Image, { + style: posterStyle, + source: { + uri: this.props.poster + }, + __source: { + fileName: _jsxFileName, + lineNumber: 283 + } + }))); + } + }]); + + _inherits(Video, _Component); + + return Video; + }(_react.Component)); + + var _default2 = Video; + exports.default = _default2; + Video.propTypes = _objectSpread({ + filter: _propTypes.default.oneOf([_FilterType.default.NONE, _FilterType.default.INVERT, _FilterType.default.MONOCHROME, _FilterType.default.POSTERIZE, _FilterType.default.FALSE, _FilterType.default.MAXIMUMCOMPONENT, _FilterType.default.MINIMUMCOMPONENT, _FilterType.default.CHROME, _FilterType.default.FADE, _FilterType.default.INSTANT, _FilterType.default.MONO, _FilterType.default.NOIR, _FilterType.default.PROCESS, _FilterType.default.TONAL, _FilterType.default.TRANSFER, _FilterType.default.SEPIA]), + filterEnabled: _propTypes.default.bool, + src: _propTypes.default.object, + seek: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object]), + fullscreen: _propTypes.default.bool, + onVideoLoadStart: _propTypes.default.func, + onVideoLoad: _propTypes.default.func, + onVideoBuffer: _propTypes.default.func, + onVideoError: _propTypes.default.func, + onVideoProgress: _propTypes.default.func, + onVideoBandwidthUpdate: _propTypes.default.func, + onVideoSeek: _propTypes.default.func, + onVideoEnd: _propTypes.default.func, + onTimedMetadata: _propTypes.default.func, + onVideoAudioBecomingNoisy: _propTypes.default.func, + onVideoExternalPlaybackChange: _propTypes.default.func, + onVideoFullscreenPlayerWillPresent: _propTypes.default.func, + onVideoFullscreenPlayerDidPresent: _propTypes.default.func, + onVideoFullscreenPlayerWillDismiss: _propTypes.default.func, + onVideoFullscreenPlayerDidDismiss: _propTypes.default.func, + source: _propTypes.default.oneOfType([_propTypes.default.shape({ + uri: _propTypes.default.string + }), _propTypes.default.number]), + maxBitRate: _propTypes.default.number, + resizeMode: _propTypes.default.string, + poster: _propTypes.default.string, + posterResizeMode: _reactNative.Image.propTypes.resizeMode, + repeat: _propTypes.default.bool, + allowsExternalPlayback: _propTypes.default.bool, + selectedAudioTrack: _propTypes.default.shape({ + type: _propTypes.default.string.isRequired, + value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]) + }), + selectedVideoTrack: _propTypes.default.shape({ + type: _propTypes.default.string.isRequired, + value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]) + }), + selectedTextTrack: _propTypes.default.shape({ + type: _propTypes.default.string.isRequired, + value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]) + }), + textTracks: _propTypes.default.arrayOf(_propTypes.default.shape({ + title: _propTypes.default.string, + uri: _propTypes.default.string.isRequired, + type: _propTypes.default.oneOf([_TextTrackType.default.SRT, _TextTrackType.default.TTML, _TextTrackType.default.VTT]), + language: _propTypes.default.string.isRequired + })), + paused: _propTypes.default.bool, + muted: _propTypes.default.bool, + volume: _propTypes.default.number, + bufferConfig: _propTypes.default.shape({ + minBufferMs: _propTypes.default.number, + maxBufferMs: _propTypes.default.number, + bufferForPlaybackMs: _propTypes.default.number, + bufferForPlaybackAfterRebufferMs: _propTypes.default.number + }), + stereoPan: _propTypes.default.number, + rate: _propTypes.default.number, + playInBackground: _propTypes.default.bool, + playWhenInactive: _propTypes.default.bool, + ignoreSilentSwitch: _propTypes.default.oneOf(['ignore', 'obey']), + reportBandwidth: _propTypes.default.bool, + disableFocus: _propTypes.default.bool, + controls: _propTypes.default.bool, + audioOnly: _propTypes.default.bool, + currentTime: _propTypes.default.number, + fullscreenAutorotate: _propTypes.default.bool, + fullscreenOrientation: _propTypes.default.oneOf(['all', 'landscape', 'portrait']), + progressUpdateInterval: _propTypes.default.number, + useTextureView: _propTypes.default.bool, + hideShutterView: _propTypes.default.bool, + onLoadStart: _propTypes.default.func, + onLoad: _propTypes.default.func, + onBuffer: _propTypes.default.func, + onError: _propTypes.default.func, + onProgress: _propTypes.default.func, + onBandwidthUpdate: _propTypes.default.func, + onSeek: _propTypes.default.func, + onEnd: _propTypes.default.func, + onFullscreenPlayerWillPresent: _propTypes.default.func, + onFullscreenPlayerDidPresent: _propTypes.default.func, + onFullscreenPlayerWillDismiss: _propTypes.default.func, + onFullscreenPlayerDidDismiss: _propTypes.default.func, + onReadyForDisplay: _propTypes.default.func, + onPlaybackStalled: _propTypes.default.func, + onPlaybackResume: _propTypes.default.func, + onPlaybackRateChange: _propTypes.default.func, + onAudioFocusChanged: _propTypes.default.func, + onAudioBecomingNoisy: _propTypes.default.func, + onExternalPlaybackChange: _propTypes.default.func, + scaleX: _propTypes.default.number, + scaleY: _propTypes.default.number, + translateX: _propTypes.default.number, + translateY: _propTypes.default.number, + rotation: _propTypes.default.number + }, _reactNative.ViewPropTypes); + var RCTVideo = (0, _reactNative.requireNativeComponent)('RCTVideo', Video, { + nativeOnly: { + src: true, + seek: true, + fullscreen: true + } + }); +},508,[1,11,212,165,235,509,510,511],"node_modules/react-native-video/Video.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _default = { + SRT: 'application/x-subrip', + TTML: 'application/ttml+xml', + VTT: 'text/vtt' + }; + exports.default = _default; +},509,[],"node_modules/react-native-video/TextTrackType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _default = { + NONE: '', + INVERT: 'CIColorInvert', + MONOCHROME: 'CIColorMonochrome', + POSTERIZE: 'CIColorPosterize', + FALSE: 'CIFalseColor', + MAXIMUMCOMPONENT: 'CIMaximumComponent', + MINIMUMCOMPONENT: 'CIMinimumComponent', + CHROME: 'CIPhotoEffectChrome', + FADE: 'CIPhotoEffectFade', + INSTANT: 'CIPhotoEffectInstant', + MONO: 'CIPhotoEffectMono', + NOIR: 'CIPhotoEffectNoir', + PROCESS: 'CIPhotoEffectProcess', + TONAL: 'CIPhotoEffectTonal', + TRANSFER: 'CIPhotoEffectTransfer', + SEPIA: 'CISepiaTone' + }; + exports.default = _default; +},510,[],"node_modules/react-native-video/FilterType.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + + var _keymirror = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "keymirror")); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var _default = (0, _keymirror.default)({ + contain: null, + cover: null, + stretch: null + }); + + exports.default = _default; +},511,[512],"node_modules/react-native-video/VideoResizeMode.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + "use strict"; + + var keyMirror = function keyMirror(obj) { + var ret = {}; + var key; + + if (!(obj instanceof Object && !Array.isArray(obj))) { + throw new Error('keyMirror(...): Argument must be an object.'); + } + + for (key in obj) { + if (!obj.hasOwnProperty(key)) { + continue; + } + + ret[key] = key; + } + + return ret; + }; + + module.exports = keyMirror; +},512,[],"node_modules/keymirror/index.js"); +__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets", + "scales": [1], + "hash": "19584c6683a76683b635cd5c3d966064", + "name": "broadchurch", + "type": "mp4" + }); +},513,[236],"broadchurch.mp4"); +require(263); +require(0); +//# sourceMappingURL=index.ios.map \ No newline at end of file diff --git a/examples/embed-and-fullscreen/.vscode/.react/index.ios.map b/examples/embed-and-fullscreen/.vscode/.react/index.ios.map new file mode 100644 index 00000000..4d96ff48 --- /dev/null +++ b/examples/embed-and-fullscreen/.vscode/.react/index.ios.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../../../../../../__prelude__","../../node_modules/metro/src/lib/polyfills/require.js","../../node_modules/react-native/Libraries/polyfills/Object.es6.js","../../node_modules/react-native/Libraries/polyfills/console.js","../../node_modules/react-native/Libraries/polyfills/error-guard.js","../../node_modules/react-native/Libraries/polyfills/Number.es6.js","../../node_modules/react-native/Libraries/polyfills/String.prototype.es6.js","../../node_modules/react-native/Libraries/polyfills/Array.prototype.es6.js","../../node_modules/react-native/Libraries/polyfills/Array.es6.js","../../node_modules/react-native/Libraries/polyfills/Object.es7.js","../../node_modules/react-native/Libraries/polyfills/babelHelpers.js","../../index.ios.js","../../node_modules/react/index.js","../../node_modules/react/cjs/react.production.min.js","../../node_modules/object-assign/index.js","../../node_modules/fbjs/lib/invariant.js","../../node_modules/fbjs/lib/emptyObject.js","../../node_modules/fbjs/lib/emptyFunction.js","../../node_modules/react/cjs/react.development.js","../../node_modules/fbjs/lib/warning.js","../../node_modules/prop-types/checkPropTypes.js","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/react-transform-hmr/lib/index.js","../../node_modules/react-proxy/modules/index.js","../../node_modules/react-proxy/modules/supportsProtoAssignment.js","../../node_modules/react-proxy/modules/createClassProxy.js","../../node_modules/lodash/find.js","../../node_modules/lodash/_createFind.js","../../node_modules/lodash/_baseIteratee.js","../../node_modules/lodash/_baseMatches.js","../../node_modules/lodash/_baseIsMatch.js","../../node_modules/lodash/_Stack.js","../../node_modules/lodash/_ListCache.js","../../node_modules/lodash/_listCacheClear.js","../../node_modules/lodash/_listCacheDelete.js","../../node_modules/lodash/_assocIndexOf.js","../../node_modules/lodash/eq.js","../../node_modules/lodash/_listCacheGet.js","../../node_modules/lodash/_listCacheHas.js","../../node_modules/lodash/_listCacheSet.js","../../node_modules/lodash/_stackClear.js","../../node_modules/lodash/_stackDelete.js","../../node_modules/lodash/_stackGet.js","../../node_modules/lodash/_stackHas.js","../../node_modules/lodash/_stackSet.js","../../node_modules/lodash/_Map.js","../../node_modules/lodash/_getNative.js","../../node_modules/lodash/_baseIsNative.js","../../node_modules/lodash/isFunction.js","../../node_modules/lodash/_baseGetTag.js","../../node_modules/lodash/_Symbol.js","../../node_modules/lodash/_root.js","../../node_modules/lodash/_freeGlobal.js","../../node_modules/lodash/_getRawTag.js","../../node_modules/lodash/_objectToString.js","../../node_modules/lodash/isObject.js","../../node_modules/lodash/_isMasked.js","../../node_modules/lodash/_coreJsData.js","../../node_modules/lodash/_toSource.js","../../node_modules/lodash/_getValue.js","../../node_modules/lodash/_MapCache.js","../../node_modules/lodash/_mapCacheClear.js","../../node_modules/lodash/_Hash.js","../../node_modules/lodash/_hashClear.js","../../node_modules/lodash/_nativeCreate.js","../../node_modules/lodash/_hashDelete.js","../../node_modules/lodash/_hashGet.js","../../node_modules/lodash/_hashHas.js","../../node_modules/lodash/_hashSet.js","../../node_modules/lodash/_mapCacheDelete.js","../../node_modules/lodash/_getMapData.js","../../node_modules/lodash/_isKeyable.js","../../node_modules/lodash/_mapCacheGet.js","../../node_modules/lodash/_mapCacheHas.js","../../node_modules/lodash/_mapCacheSet.js","../../node_modules/lodash/_baseIsEqual.js","../../node_modules/lodash/_baseIsEqualDeep.js","../../node_modules/lodash/_equalArrays.js","../../node_modules/lodash/_SetCache.js","../../node_modules/lodash/_setCacheAdd.js","../../node_modules/lodash/_setCacheHas.js","../../node_modules/lodash/_arraySome.js","../../node_modules/lodash/_cacheHas.js","../../node_modules/lodash/_equalByTag.js","../../node_modules/lodash/_Uint8Array.js","../../node_modules/lodash/_mapToArray.js","../../node_modules/lodash/_setToArray.js","../../node_modules/lodash/_equalObjects.js","../../node_modules/lodash/_getAllKeys.js","../../node_modules/lodash/_baseGetAllKeys.js","../../node_modules/lodash/_arrayPush.js","../../node_modules/lodash/isArray.js","../../node_modules/lodash/_getSymbols.js","../../node_modules/lodash/_arrayFilter.js","../../node_modules/lodash/stubArray.js","../../node_modules/lodash/keys.js","../../node_modules/lodash/_arrayLikeKeys.js","../../node_modules/lodash/_baseTimes.js","../../node_modules/lodash/isArguments.js","../../node_modules/lodash/_baseIsArguments.js","../../node_modules/lodash/isObjectLike.js","../../node_modules/lodash/isBuffer.js","../../node_modules/lodash/stubFalse.js","../../node_modules/lodash/_isIndex.js","../../node_modules/lodash/isTypedArray.js","../../node_modules/lodash/_baseIsTypedArray.js","../../node_modules/lodash/isLength.js","../../node_modules/lodash/_baseUnary.js","../../node_modules/lodash/_nodeUtil.js","../../node_modules/lodash/_baseKeys.js","../../node_modules/lodash/_isPrototype.js","../../node_modules/lodash/_nativeKeys.js","../../node_modules/lodash/_overArg.js","../../node_modules/lodash/isArrayLike.js","../../node_modules/lodash/_getTag.js","../../node_modules/lodash/_DataView.js","../../node_modules/lodash/_Promise.js","../../node_modules/lodash/_Set.js","../../node_modules/lodash/_WeakMap.js","../../node_modules/lodash/_getMatchData.js","../../node_modules/lodash/_isStrictComparable.js","../../node_modules/lodash/_matchesStrictComparable.js","../../node_modules/lodash/_baseMatchesProperty.js","../../node_modules/lodash/get.js","../../node_modules/lodash/_baseGet.js","../../node_modules/lodash/_castPath.js","../../node_modules/lodash/_isKey.js","../../node_modules/lodash/isSymbol.js","../../node_modules/lodash/_stringToPath.js","../../node_modules/lodash/_memoizeCapped.js","../../node_modules/lodash/memoize.js","../../node_modules/lodash/toString.js","../../node_modules/lodash/_baseToString.js","../../node_modules/lodash/_arrayMap.js","../../node_modules/lodash/_toKey.js","../../node_modules/lodash/hasIn.js","../../node_modules/lodash/_baseHasIn.js","../../node_modules/lodash/_hasPath.js","../../node_modules/lodash/identity.js","../../node_modules/lodash/property.js","../../node_modules/lodash/_baseProperty.js","../../node_modules/lodash/_basePropertyDeep.js","../../node_modules/lodash/findIndex.js","../../node_modules/lodash/_baseFindIndex.js","../../node_modules/lodash/toInteger.js","../../node_modules/lodash/toFinite.js","../../node_modules/lodash/toNumber.js","../../node_modules/react-proxy/modules/createPrototypeProxy.js","../../node_modules/lodash/assign.js","../../node_modules/lodash/_assignValue.js","../../node_modules/lodash/_baseAssignValue.js","../../node_modules/lodash/_defineProperty.js","../../node_modules/lodash/_copyObject.js","../../node_modules/lodash/_createAssigner.js","../../node_modules/lodash/_baseRest.js","../../node_modules/lodash/_overRest.js","../../node_modules/lodash/_apply.js","../../node_modules/lodash/_setToString.js","../../node_modules/lodash/_baseSetToString.js","../../node_modules/lodash/constant.js","../../node_modules/lodash/_shortOut.js","../../node_modules/lodash/_isIterateeCall.js","../../node_modules/lodash/difference.js","../../node_modules/lodash/_baseDifference.js","../../node_modules/lodash/_arrayIncludes.js","../../node_modules/lodash/_baseIndexOf.js","../../node_modules/lodash/_baseIsNaN.js","../../node_modules/lodash/_strictIndexOf.js","../../node_modules/lodash/_arrayIncludesWith.js","../../node_modules/lodash/_baseFlatten.js","../../node_modules/lodash/_isFlattenable.js","../../node_modules/lodash/isArrayLikeObject.js","../../node_modules/react-proxy/modules/bindAutoBindMethods.js","../../node_modules/react-proxy/modules/deleteUnknownAutoBindMethods.js","../../node_modules/react-deep-force-update/lib/index.js","../../node_modules/global/window.js","../../node_modules/react-native/Libraries/react-native/react-native-implementation.js","../../node_modules/react-native/node_modules/fbjs/lib/invariant.js","../../node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js","../../node_modules/react-native/Libraries/BatchedBridge/NativeModules.js","../../node_modules/react-native/Libraries/BatchedBridge/BatchedBridge.js","../../node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","../../node_modules/react-native/Libraries/vendor/core/ErrorUtils.js","../../node_modules/react-native/Libraries/Performance/Systrace.js","../../node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js","../../node_modules/react-native/Libraries/Utilities/stringifySafe.js","../../node_modules/react-native/Libraries/Core/Timers/JSTimers.js","../../node_modules/react-native/Libraries/Utilities/Platform.ios.js","../../node_modules/react-native/node_modules/fbjs/lib/performanceNow.js","../../node_modules/react-native/node_modules/fbjs/lib/performance.js","../../node_modules/react-native/node_modules/fbjs/lib/ExecutionEnvironment.js","../../node_modules/react-native/Libraries/Core/Devtools/parseErrorStack.js","../../node_modules/stacktrace-parser/index.js","../../node_modules/stacktrace-parser/lib/stacktrace-parser.js","../../node_modules/react-native/node_modules/fbjs/lib/warning.js","../../node_modules/react-native/node_modules/fbjs/lib/emptyFunction.js","../../node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js","../../node_modules/react-native/Libraries/Promise.js","../../node_modules/react-native/node_modules/fbjs/lib/Promise.native.js","../../node_modules/promise/setimmediate/es6-extensions.js","../../node_modules/promise/setimmediate/core.js","../../node_modules/promise/setimmediate/done.js","../../node_modules/promise/setimmediate/rejection-tracking.js","../../node_modules/pretty-format/index.js","../../node_modules/pretty-format/printString.js","../../node_modules/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.js","../../node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js","../../node_modules/react-native/Libraries/vendor/emitter/EmitterSubscription.js","../../node_modules/react-native/Libraries/vendor/emitter/EventSubscription.js","../../node_modules/react-native/Libraries/vendor/emitter/EventSubscriptionVendor.js","../../node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js","../../node_modules/react-native/Libraries/react-native/React.js","../../node_modules/react-native/Libraries/StyleSheet/StyleSheet.js","../../node_modules/react-native/Libraries/Utilities/PixelRatio.js","../../node_modules/react-native/Libraries/Utilities/Dimensions.js","../../node_modules/react-native/Libraries/Utilities/DeviceInfo.js","../../node_modules/react-native/Libraries/Components/View/ReactNativeStyleAttributes.js","../../node_modules/react-native/Libraries/Image/ImageStylePropTypes.js","../../node_modules/react-native/Libraries/StyleSheet/ColorPropType.js","../../node_modules/react-native/Libraries/Color/normalizeColor.js","../../node_modules/react-native/Libraries/Image/ImageResizeMode.js","../../node_modules/react-native/node_modules/fbjs/lib/keyMirror.js","../../node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js","../../node_modules/prop-types/index.js","../../node_modules/prop-types/factoryWithTypeCheckers.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/react-native/Libraries/Components/View/ShadowPropTypesIOS.js","../../node_modules/react-native/Libraries/StyleSheet/TransformPropTypes.js","../../node_modules/react-native/Libraries/Utilities/deprecatedPropType.js","../../node_modules/react-native/Libraries/ReactNative/UIManager.js","../../node_modules/react-native/Libraries/Text/TextStylePropTypes.js","../../node_modules/react-native/Libraries/Components/View/ViewStylePropTypes.js","../../node_modules/react-native/Libraries/StyleSheet/processColor.js","../../node_modules/react-native/Libraries/StyleSheet/processTransform.js","../../node_modules/react-native/Libraries/Utilities/MatrixMath.js","../../node_modules/react-native/Libraries/Utilities/differ/sizesDiffer.js","../../node_modules/react-native/Libraries/StyleSheet/StyleSheetValidation.js","../../node_modules/react-native/Libraries/StyleSheet/flattenStyle.js","../../node_modules/react-native/Libraries/Components/View/View.js","../../node_modules/react-native/Libraries/Text/TextAncestor.js","../../node_modules/react-native/Libraries/ReactNative/requireNativeComponent.js","../../node_modules/react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js","../../node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js","../../node_modules/react-native/Libraries/Utilities/differ/insetsDiffer.js","../../node_modules/react-native/Libraries/Utilities/differ/matricesDiffer.js","../../node_modules/react-native/Libraries/Utilities/differ/pointsDiffer.js","../../node_modules/react-native/Libraries/Image/resolveAssetSource.js","../../node_modules/react-native/Libraries/Image/AssetRegistry.js","../../node_modules/react-native/Libraries/Image/AssetSourceResolver.js","../../node_modules/react-native/local-cli/bundle/assetPathUtils.js","../../node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js","../../node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js","../../node_modules/react-native/Libraries/ART/ReactNativeART.js","../../node_modules/art/core/color.js","../../node_modules/react-native/Libraries/ART/ARTSerializablePath.js","../../node_modules/art/core/class.js","../../node_modules/art/core/path.js","../../node_modules/art/core/transform.js","../../node_modules/react-native/Libraries/Components/View/ReactNativeViewAttributes.js","../../node_modules/react-native/Libraries/vendor/core/merge.js","../../node_modules/react-native/Libraries/vendor/core/mergeInto.js","../../node_modules/react-native/Libraries/vendor/core/mergeHelpers.js","../../node_modules/react-native/Libraries/Components/Button.js","../../node_modules/react-native/Libraries/Text/Text.js","../../node_modules/react-native/Libraries/Text/TextPropTypes.js","../../node_modules/react-native/Libraries/StyleSheet/EdgeInsetsPropType.js","../../node_modules/react-native/Libraries/StyleSheet/StyleSheetPropType.js","../../node_modules/react-native/Libraries/Utilities/createStrictShapeTypeChecker.js","../../node_modules/react-native/Libraries/Components/Touchable/Touchable.js","../../node_modules/react-native/Libraries/Components/Touchable/BoundingDimensions.js","../../node_modules/react-native/Libraries/Components/Touchable/PooledClass.js","../../node_modules/react-native/Libraries/Components/Touchable/Position.js","../../node_modules/react-native/Libraries/Renderer/shims/ReactNative.js","../../node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js","../../node_modules/react-native/Libraries/Core/InitializeCore.js","../../node_modules/react-native/Libraries/Utilities/PolyfillFunctions.js","../../node_modules/react-native/Libraries/vendor/core/_shouldPolyfillES6Collection.js","../../node_modules/react-native/Libraries/vendor/core/Map.js","../../node_modules/react-native/Libraries/vendor/core/guid.js","../../node_modules/react-native/node_modules/fbjs/lib/isNode.js","../../node_modules/react-native/Libraries/vendor/core/toIterator.js","../../node_modules/react-native/Libraries/vendor/core/Set.js","../../node_modules/react-native/Libraries/Core/ExceptionsManager.js","../../node_modules/react-native/Libraries/Core/Devtools/symbolicateStackTrace.js","../../node_modules/react-native/Libraries/Core/Devtools/getDevServer.js","../../node_modules/react-native/Libraries/Network/fetch.js","../../node_modules/react-native/Libraries/vendor/core/whatwg-fetch.js","../../node_modules/react-native/Libraries/Core/ReactNativeVersionCheck.js","../../node_modules/react-native/Libraries/Core/ReactNativeVersion.js","../../node_modules/regenerator-runtime/runtime.js","../../node_modules/react-native/Libraries/Network/XMLHttpRequest.js","../../node_modules/event-target-shim/lib/event-target.js","../../node_modules/event-target-shim/lib/commons.js","../../node_modules/event-target-shim/lib/custom-event-target.js","../../node_modules/event-target-shim/lib/event-wrapper.js","../../node_modules/react-native/Libraries/Network/RCTNetworking.ios.js","../../node_modules/react-native/Libraries/EventEmitter/MissingNativeEventEmitterShim.js","../../node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js","../../node_modules/react-native/Libraries/Network/convertRequestBody.js","../../node_modules/react-native/Libraries/Utilities/binaryToBase64.js","../../node_modules/base64-js/index.js","../../node_modules/react-native/Libraries/Blob/Blob.js","../../node_modules/react-native/Libraries/Blob/BlobManager.js","../../node_modules/react-native/Libraries/Blob/BlobRegistry.js","../../node_modules/react-native/Libraries/Network/FormData.js","../../node_modules/react-native/Libraries/WebSocket/WebSocket.js","../../node_modules/react-native/Libraries/WebSocket/WebSocketEvent.js","../../node_modules/react-native/Libraries/Blob/File.js","../../node_modules/react-native/Libraries/Blob/FileReader.js","../../node_modules/react-native/Libraries/Blob/URL.js","../../node_modules/react-native/Libraries/Alert/Alert.js","../../node_modules/react-native/Libraries/Alert/AlertIOS.js","../../node_modules/react-native/Libraries/Geolocation/Geolocation.js","../../node_modules/react-native/Libraries/Utilities/logError.js","../../node_modules/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js","../../node_modules/react-native/Libraries/Utilities/HeapCapture.js","../../node_modules/react-native/Libraries/Performance/SamplingProfiler.js","../../node_modules/react-native/Libraries/Utilities/RCTLog.js","../../node_modules/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.js","../../node_modules/react-native/Libraries/Utilities/PerformanceLogger.js","../../node_modules/react-native/Libraries/Utilities/infoLog.js","../../node_modules/react-native/Libraries/Utilities/JSDevSupportModule.js","../../node_modules/react-native/Libraries/Utilities/HMRClient.js","../../node_modules/metro/src/lib/bundle-modules/HMRClient.js","../../node_modules/metro/src/lib/bundle-modules/MetroClient.js","../../node_modules/eventemitter3/index.js","../../node_modules/react-native/Libraries/Utilities/HMRLoadingView.ios.js","../../node_modules/react-native/Libraries/Core/Devtools/setupDevtools.js","../../node_modules/react-native/Libraries/AppState/AppState.js","../../node_modules/react-devtools-core/build/backend.js","../../node_modules/react-native/Libraries/JSInspector/JSInspector.js","../../node_modules/react-native/Libraries/JSInspector/NetworkAgent.js","../../node_modules/react-native/Libraries/JSInspector/InspectorAgent.js","../../node_modules/react-native/Libraries/EventEmitter/RCTEventEmitter.js","../../node_modules/react-native/node_modules/fbjs/lib/emptyObject.js","../../node_modules/react-native/Libraries/Utilities/differ/deepDiffer.js","../../node_modules/react-native/Libraries/Components/TextInput/TextInputState.js","../../node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js","../../node_modules/react-native/Libraries/Components/AppleTV/TVEventHandler.js","../../node_modules/react-native/node_modules/fbjs/lib/TouchEventUtils.js","../../node_modules/react-native/node_modules/fbjs/lib/nullthrows.js","../../node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js","../../node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js","../../node_modules/react-native/Libraries/Animated/src/Animated.js","../../node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js","../../node_modules/react-native/Libraries/Animated/src/AnimatedEvent.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedValue.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedInterpolation.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedNode.js","../../node_modules/react-native/Libraries/Animated/src/NativeAnimatedHelper.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedWithChildren.js","../../node_modules/react-native/Libraries/Interaction/InteractionManager.js","../../node_modules/react-native/Libraries/Interaction/TaskQueue.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedAddition.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedDiffClamp.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedDivision.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedModulo.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedMultiplication.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedProps.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedStyle.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedTransform.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedSubtraction.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedTracking.js","../../node_modules/react-native/Libraries/Animated/src/nodes/AnimatedValueXY.js","../../node_modules/react-native/Libraries/Animated/src/animations/DecayAnimation.js","../../node_modules/react-native/Libraries/Animated/src/animations/Animation.js","../../node_modules/react-native/Libraries/Animated/src/animations/SpringAnimation.js","../../node_modules/react-native/Libraries/Animated/src/SpringConfig.js","../../node_modules/react-native/Libraries/Animated/src/animations/TimingAnimation.js","../../node_modules/react-native/Libraries/Animated/src/Easing.js","../../node_modules/react-native/Libraries/Animated/src/bezier.js","../../node_modules/react-native/Libraries/Animated/src/createAnimatedComponent.js","../../node_modules/react-native/Libraries/Image/Image.ios.js","../../node_modules/react-native/Libraries/Image/ImageProps.js","../../node_modules/react-native/Libraries/Image/ImageSourcePropType.js","../../node_modules/react-native/Libraries/Renderer/shims/NativeMethodsMixin.js","../../node_modules/create-react-class/index.js","../../node_modules/create-react-class/factory.js","../../node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js","../../node_modules/react-native/Libraries/StyleSheet/PointPropType.js","../../node_modules/react-native/Libraries/Components/ScrollResponder.js","../../node_modules/react-native/Libraries/Interaction/FrameRateLogger.js","../../node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js","../../node_modules/react-native/Libraries/LayoutAnimation/LayoutAnimation.js","../../node_modules/react-native/Libraries/Utilities/dismissKeyboard.js","../../node_modules/react-native/Libraries/Components/Subscribable.js","../../node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js","../../node_modules/react-native/Libraries/Components/View/ViewPropTypes.js","../../node_modules/react-native/Libraries/Components/View/PlatformViewPropTypes.js","../../node_modules/react-native/Libraries/Components/AppleTV/TVViewPropTypes.js","../../node_modules/react-native/Libraries/Components/View/ViewAccessibility.js","../../node_modules/react-native/Libraries/Components/ScrollView/InternalScrollViewType.js","../../node_modules/react-native/Libraries/Components/ScrollView/processDecelerationRate.js","../../node_modules/react-timer-mixin/TimerMixin.js","../../node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js","../../node_modules/react-native/Libraries/Components/Touchable/ensurePositiveDelayProps.js","../../node_modules/react-native/Libraries/Components/CheckBox/CheckBox.ios.js","../../node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.ios.js","../../node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js","../../node_modules/react-native/Libraries/Lists/FlatList.js","../../node_modules/react-native/Libraries/Lists/MetroListView.js","../../node_modules/react-native/Libraries/Lists/ListView/ListView.js","../../node_modules/react-native/Libraries/Lists/ListView/InternalListViewType.js","../../node_modules/react-native/Libraries/Lists/ListView/ListViewDataSource.js","../../node_modules/react-native/Libraries/vendor/core/isEmpty.js","../../node_modules/react-native/Libraries/Components/StaticRenderer.js","../../node_modules/react-clone-referenced-element/cloneReferencedElement.js","../../node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js","../../node_modules/react-native/Libraries/Lists/VirtualizedList.js","../../node_modules/react-native/Libraries/Interaction/Batchinator.js","../../node_modules/react-native/Libraries/Lists/FillRateHelper.js","../../node_modules/react-native/Libraries/Lists/ViewabilityHelper.js","../../node_modules/react-native/Libraries/Lists/VirtualizeUtils.js","../../node_modules/react-native/Libraries/Image/ImageBackground.js","../../node_modules/react-native/Libraries/Components/Touchable/ensureComponentIsNative.js","../../node_modules/react-native/Libraries/Image/ImageEditor.js","../../node_modules/react-native/Libraries/Image/ImageStore.js","../../node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js","../../node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js","../../node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js","../../node_modules/react-native/Libraries/Modal/Modal.js","../../node_modules/react-native/Libraries/ReactNative/AppContainer.js","../../node_modules/react-native/Libraries/Inspector/Inspector.js","../../node_modules/react-native/Libraries/Inspector/InspectorOverlay.js","../../node_modules/react-native/Libraries/Inspector/ElementBox.js","../../node_modules/react-native/Libraries/Inspector/BorderBox.js","../../node_modules/react-native/Libraries/Inspector/resolveBoxStyle.js","../../node_modules/react-native/Libraries/Inspector/InspectorPanel.js","../../node_modules/react-native/Libraries/Inspector/ElementProperties.js","../../node_modules/react-native/Libraries/Inspector/BoxInspector.js","../../node_modules/react-native/Libraries/Inspector/StyleInspector.js","../../node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js","../../node_modules/react-native/Libraries/Utilities/mapWithSeparator.js","../../node_modules/react-native/Libraries/Core/Devtools/openFileInEditor.js","../../node_modules/react-native/Libraries/Inspector/NetworkOverlay.js","../../node_modules/react-native/Libraries/WebSocket/WebSocketInterceptor.js","../../node_modules/react-native/Libraries/Network/XHRInterceptor.js","../../node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js","../../node_modules/react-native/Libraries/YellowBox/YellowBox.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxList.js","../../node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.ios.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxButton.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxPressable.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxStyle.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspector.js","../../node_modules/react-native/Libraries/YellowBox/Data/YellowBoxCategory.js","../../node_modules/react-native/Libraries/UTFSequence.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorFooter.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxImageSource.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorStackFrame.js","../../node_modules/react-native/Libraries/YellowBox/UI/YellowBoxListRow.js","../../node_modules/react-native/Libraries/YellowBox/Data/YellowBoxWarning.js","../../node_modules/react-native/Libraries/YellowBox/Data/YellowBoxSymbolication.js","../../node_modules/react-native/Libraries/YellowBox/Data/YellowBoxRegistry.js","../../node_modules/react-native/Libraries/ReactNative/I18nManager.js","../../node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js","../../node_modules/react-native/Libraries/Components/StaticContainer.react.js","../../node_modules/react-native/Libraries/Components/Picker/Picker.js","../../node_modules/react-native/Libraries/Components/Picker/PickerIOS.ios.js","../../node_modules/react-native/Libraries/Components/Picker/PickerAndroid.ios.js","../../node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js","../../node_modules/react-native/Libraries/Lists/SectionList.js","../../node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js","../../node_modules/react-native/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js","../../node_modules/react-native/Libraries/Components/Slider/Slider.js","../../node_modules/react-native/Libraries/RCTTest/SnapshotViewIOS.ios.js","../../node_modules/react-native/Libraries/Components/Switch/Switch.js","../../node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js","../../node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js","../../node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableRow.js","../../node_modules/react-native/Libraries/Interaction/PanResponder.js","../../node_modules/react-native/Libraries/Interaction/TouchHistoryMath.js","../../node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListView.js","../../node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListViewDataSource.js","../../node_modules/react-native/Libraries/Components/TabBarIOS/TabBarIOS.ios.js","../../node_modules/react-native/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js","../../node_modules/react-native/Libraries/Components/TextInput/TextInput.js","../../node_modules/react-native/Libraries/vendor/document/selection/DocumentSelectionState.js","../../node_modules/react-native/Libraries/vendor/emitter/mixInEventEmitter.js","../../node_modules/react-native/Libraries/vendor/emitter/EventEmitterWithHolding.js","../../node_modules/react-native/Libraries/vendor/emitter/EventHolder.js","../../node_modules/react-native/node_modules/fbjs/lib/keyOf.js","../../node_modules/react-native/Libraries/vendor/emitter/EventValidator.js","../../node_modules/react-native/Libraries/Components/ToastAndroid/ToastAndroid.ios.js","../../node_modules/react-native/Libraries/Components/ToolbarAndroid/ToolbarAndroid.ios.js","../../node_modules/react-native/Libraries/Components/ViewPager/ViewPagerAndroid.ios.js","../../node_modules/react-native/Libraries/Components/WebView/WebView.ios.js","../../node_modules/react-native/Libraries/Linking/Linking.js","../../node_modules/react-native/Libraries/Components/WebView/WebViewShared.js","../../node_modules/escape-string-regexp/index.js","../../node_modules/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js","../../node_modules/react-native/Libraries/ReactNative/AppRegistry.js","../../node_modules/react-native/Libraries/BugReporting/BugReporting.js","../../node_modules/react-native/Libraries/BugReporting/dumpReactTree.js","../../node_modules/react-native/Libraries/Utilities/SceneTracker.js","../../node_modules/react-native/Libraries/ReactNative/renderApplication.js","../../node_modules/react-native/Libraries/Utilities/BackHandler.ios.js","../../node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js","../../node_modules/react-native/Libraries/Renderer/oss/ReactFabric-dev.js","../../node_modules/react-native/Libraries/ReactNative/FabricUIManager.js","../../node_modules/react-native/Libraries/Renderer/oss/ReactFabric-prod.js","../../node_modules/react-native/Libraries/Storage/AsyncStorage.js","../../node_modules/react-native/Libraries/Utilities/BackAndroid.js","../../node_modules/react-native/Libraries/CameraRoll/CameraRoll.js","../../node_modules/react-native/Libraries/Components/Clipboard/Clipboard.js","../../node_modules/react-native/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js","../../node_modules/react-native/Libraries/CameraRoll/ImagePickerIOS.js","../../node_modules/react-native/Libraries/Network/NetInfo.js","../../node_modules/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js","../../node_modules/react-native/Libraries/Settings/Settings.ios.js","../../node_modules/react-native/Libraries/Share/Share.js","../../node_modules/react-native/Libraries/Components/StatusBar/StatusBarIOS.ios.js","../../node_modules/react-native/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js","../../node_modules/react-native/Libraries/Vibration/Vibration.js","../../node_modules/react-native/Libraries/Vibration/VibrationIOS.ios.js","../../node_modules/react-native/Libraries/ReactNative/takeSnapshot.js","../../Utils.js","../../node_modules/react-native-video/Video.js","../../node_modules/react-native-video/TextTrackType.js","../../node_modules/react-native-video/FilterType.js","../../node_modules/react-native-video/VideoResizeMode.js","../../node_modules/keymirror/index.js","../../broadchurch.mp4"],"names":["PRINT_REQUIRE_PATHS","global","require","metroRequire","__d","define","modules","__NUM_MODULES__","Array","Object","create","__DEV__","verboseNamesToModuleIds","factory","moduleId","dependencyMap","inverseDependencies","arguments","__accept","console","warn","exports","undefined","hasError","isInitialized","path","Error","hot","createHotReloadingObject","verboseName","moduleIdReallyIsNumber","module","guardedLoadModule","inGuard","ErrorUtils","returnValue","loadModuleImplementation","e","reportFatalError","ID_MASK_SHIFT","LOCAL_ID_MASK","unpackModuleId","segmentId","localId","packModuleId","value","nativeRequire","_unpackModuleId","unknownModuleError","moduleThrewError","error","Systrace","_module","log","beginEvent","moduleObject","endEvent","id","message","displayName","getModules","acceptCallback","accept","callback","disposeCallback","dispose","metroAcceptAll","dependentModules","patchedModules","length","notAccepted","filter","metroAccept","parents","i","push","apply","mod","assign","target","sources","TypeError","nextIndex","nextSource","key","hasOwnProperty","prototype","call","inspect","obj","opts","ctx","seen","stylize","stylizeNoColor","formatValue","depth","str","styleType","arrayToHash","array","hash","forEach","val","idx","recurseTimes","primitive","formatPrimitive","keys","visibleKeys","isError","indexOf","formatError","isFunction","name","isRegExp","RegExp","toString","isDate","Date","base","braces","isArray","n","toUTCString","output","formatArray","map","formatProperty","pop","reduceToSingleString","isUndefined","isString","simple","JSON","stringify","replace","isNumber","isBoolean","isNull","l","String","match","desc","getOwnPropertyDescriptor","get","set","split","line","join","substr","numLinesEst","reduce","prev","cur","ar","arg","isNullOrUndefined","isSymbol","re","isObject","objectToString","d","isPrimitive","o","prop","OBJECT_COLUMN_NAME","LOG_LEVELS","trace","info","INSPECTOR_LEVELS","INSPECTOR_FRAMES_TO_SKIP","getNativeLogFunction","level","logLevel","slice","__inspectorLog","nativeLoggingHook","repeat","element","consoleTablePolyfill","rows","data","row","columns","sort","stringRows","columnWidths","k","j","cellStr","Math","max","joinRow","space","cells","cell","extraSpaces","separators","columnWidth","separatorRow","header","table","originalConsole","debug","descriptor","defineProperty","reactNativeMethod","methodName","print","consoleLoggingStub","_inGuard","_globalHandler","onError","setGlobalHandler","fun","getGlobalHandler","reportError","applyWithGuard","context","args","applyWithGuardIfNeeded","guard","guarded","Number","EPSILON","pow","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","isNaN","globalIsNaN","configurable","enumerable","writable","startsWith","search","string","pos","start","min","endsWith","stringLength","searchString","end","lastIndexOf","count","Infinity","RangeError","result","includes","codePointAt","position","size","index","first","charCodeAt","second","findIndex","predicate","list","find","searchElement","O","len","parseInt","currentElement","from","arrayLike","mapFn","thisArg","C","items","symbolIterator","Symbol","iterator","mapping","usingIterator","ret","it","next","done","entries","object","values","babelHelpers","_classCallCheck","instance","Constructor","classCallCheck","_defineProperties","props","_createClass","protoProps","staticProps","createClass","_defineProperty","_extends","extends","source","_setPrototypeOf","p","setPrototypeOf","__proto__","_superPropBase","property","getPrototypeOf","superPropBase","_get","receiver","_inherits","subClass","superClass","inherits","_construct","Parent","Class","construct","a","bind","_getPrototypeOf","_assertThisInitialized","self","ReferenceError","assertThisInitialized","_wrapNativeSuper","_cache","Map","wrapNativeSuper","has","Wrapper","constructor","Super","_interopRequireDefault","__esModule","default","interopRequireDefault","_interopRequireWildcard","newObj","interopRequireWildcard","_objectWithoutProperties","excluded","sourceKeys","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","objectWithoutProperties","_possibleConstructorReturn","possibleConstructorReturn","_arrayWithHoles","arr","arrayWithHoles","_arrayWithoutHoles","arr2","arrayWithoutHoles","_iterableToArrayLimit","_arr","_n","_d","_e","_i","_s","err","return","iterableToArrayLimit","_nonIterableRest","nonIterableRest","_nonIterableSpread","nonIterableSpread","_slicedToArray","slicedToArray","_taggedTemplateLiteral","strings","raw","freeze","defineProperties","taggedTemplateLiteral","_toArray","iterableToArray","toArray","_toConsumableArray","toConsumableArray","_taggedTemplateLiteralLoose","taggedTemplateLiteralLoose","_objectSpread","ownKeys","concat","sym","objectSpread","_iterableToArray","iter","onLayout","resizeVideoPlayer","styles","container","videoPlayer","width","state","orientationWidth","height","orientationHeight","onPress","presentFullscreenPlayer","Dimensions","Util","isPortrait","setState","Component","StyleSheet","flex","justifyContent","alignItems","backgroundColor","AppRegistry","registerComponent","VideoPlayer","process","env","NODE_ENV","q","r","for","t","u","v","w","x","y","z","A","B","D","b","c","encodeURIComponent","E","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","F","refs","updater","isReactComponent","forceUpdate","G","H","I","isPureReactComponent","J","current","K","L","ref","__self","__source","M","g","h","f","children","m","defaultProps","$$typeof","type","_owner","N","escape","P","Q","keyPrefix","func","R","S","T","U","V","W","thatReturnsArgument","X","Children","thatReturnsNull","only","createRef","PureComponent","createContext","_calculateChangedBits","_defaultValue","_currentValue","_currentValue2","_changedBits","_changedBits2","Provider","Consumer","_context","forwardRef","render","Fragment","StrictMode","unstable_AsyncMode","unstable_Profiler","createElement","cloneElement","createFactory","isValidElement","version","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","Y","Z","propIsEnumerable","toObject","shouldUseNative","test1","getOwnPropertyNames","test2","fromCharCode","order2","test3","letter","to","symbols","s","validateFormat","format","invariant","condition","argIndex","framesToPop","emptyObject","makeEmptyFunction","emptyFunction","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsThis","_assign","warning","checkPropTypes","ReactVersion","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_TIMEOUT_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","enableSuspense","lowPriorityWarning","printWarning","_len","_key","_len2","_key2","lowPriorityWarning$1","didWarnStateUpdateForUnmountedComponent","warnNoop","publicInstance","callerName","_constructor","componentName","warningKey","ReactNoopUpdateQueue","completeState","partialState","deprecatedAPIs","replaceState","defineDeprecationWarning","fnName","ComponentDummy","pureComponentPrototype","refObject","seal","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","isReactWarning","hasValidKey","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","owner","_store","propName","childrenLength","childArray","cloneAndReplaceKey","oldElement","newKey","newElement","_self","_source","ReactDebugCurrentFrame","getCurrentStack","getStackAddendum","impl","SEPARATOR","SUBSEPARATOR","escapeRegex","escaperLookup","escapedString","didWarnAboutMaps","userProvidedKeyEscapeRegex","escapeUserProvidedKey","text","POOL_SIZE","traverseContextPool","getPooledTraverseContext","mapResult","mapFunction","mapContext","traverseContext","releaseTraverseContext","traverseAllChildrenImpl","nameSoFar","invokeCallback","getComponentKey","child","nextName","subtreeCount","nextNamePrefix","iteratorFn","step","ii","addendum","childrenString","traverseAllChildren","component","forEachSingleChild","bookKeeping","forEachChildren","forEachFunc","forEachContext","mapSingleChildIntoContext","childKey","mappedChild","mapIntoWithKeyPrefixInternal","prefix","escapedPrefix","mapChildren","countChildren","onlyChild","defaultValue","calculateChangedBits","_currentRenderer","_currentRenderer2","propTypes","describeComponentFrame","ownerName","fileName","lineNumber","isValidElementType","getComponentName","fiber","pendingProps","functionName","currentlyValidatingElement","propTypesMisspellWarningShown","getDisplayName","stack","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","elementProps","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","parentName","validateExplicitKey","validated","currentComponentErrorInfo","childOwner","validateChildKeys","node","validatePropTypes","PropTypes","getDefaultProps","isReactClassApproved","validateFragmentProps","fragment","createElementWithValidation","validType","sourceInfo","typeString","createFactoryWithValidation","validatedFactory","cloneElementWithValidation","React","Timeout","ReactComponentTreeHook","React$2","React$3","react","ReactPropTypesSecret","loggedTypeFailures","typeSpecs","location","getStack","typeSpecName","ex","sliceIterator","proxyReactComponents","_reactProxy","_globalWindow","_globalWindow2","componentProxies","__reactComponentProxies","_ref","filename","components","imports","locals","_imports","_locals","some","isInFunction","getForceUpdate","wrapWithProxy","ReactClass","uniqueId","_components$uniqueId","_components$uniqueId$isInFunction","_components$uniqueId$displayName","globalUniqueId","instances","update","setTimeout","createProxy","_supportsProtoAssignment","_supportsProtoAssignment2","_createClassProxy","_createClassProxy2","_reactDeepForceUpdate","_reactDeepForceUpdate2","supportsProtoAssignment","supports","proxyClass","createClassProxy","_find","_find2","_createPrototypeProxy","_createPrototypeProxy2","_bindAutoBindMethods","_bindAutoBindMethods2","_deleteUnknownAutoBindMethods","_deleteUnknownAutoBindMethods2","RESERVED_STATICS","isEqualDescriptor","allProxies","findProxy","pair","_ref2","addProxy","proxy","InitialComponent","existingProxy","prototypeProxy","CurrentComponent","ProxyComponent","staticDescriptors","wasStaticModifiedByUser","currentDescriptor","instantiate","params","Function","NextComponent","__getCurrent","mountedInstances","staticDescriptor","getCurrent","createFallback","createFind","baseIteratee","isArrayLike","findIndexFunc","collection","fromIndex","iterable","iteratee","baseMatches","baseMatchesProperty","identity","baseIsMatch","getMatchData","matchesStrictComparable","matchData","Stack","baseIsEqual","COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG","customizer","noCustomizer","objValue","srcValue","ListCache","stackClear","stackDelete","stackGet","stackHas","stackSet","__data__","clear","listCacheClear","listCacheDelete","listCacheGet","listCacheHas","listCacheSet","entry","assocIndexOf","arrayProto","splice","lastIndex","eq","other","MapCache","LARGE_ARRAY_SIZE","pairs","getNative","root","baseIsNative","getValue","isMasked","toSource","reRegExpChar","reIsHostCtor","funcProto","objectProto","funcToString","reIsNative","pattern","test","baseGetTag","asyncTag","funcTag","genTag","proxyTag","tag","getRawTag","nullTag","undefinedTag","symToStringTag","toStringTag","freeGlobal","freeSelf","nativeObjectToString","isOwn","unmasked","coreJsData","maskSrcKey","uid","exec","IE_PROTO","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","Hash","hashClear","hashDelete","hashGet","hashHas","hashSet","nativeCreate","HASH_UNDEFINED","getMapData","isKeyable","baseIsEqualDeep","isObjectLike","bitmask","equalArrays","equalByTag","equalObjects","getTag","isBuffer","isTypedArray","argsTag","arrayTag","objectTag","equalFunc","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","SetCache","arraySome","cacheHas","isPartial","arrLength","othLength","stacked","arrValue","othValue","compared","othIndex","setCacheAdd","setCacheHas","add","cache","Uint8Array","mapToArray","setToArray","boolTag","dateTag","errorTag","mapTag","numberTag","regexpTag","setTag","stringTag","symbolTag","arrayBufferTag","dataViewTag","symbolProto","symbolValueOf","valueOf","byteLength","byteOffset","buffer","convert","getAllKeys","objProps","objLength","othProps","skipCtor","objCtor","othCtor","baseGetAllKeys","getSymbols","arrayPush","keysFunc","symbolsFunc","offset","arrayFilter","stubArray","nativeGetSymbols","symbol","resIndex","arrayLikeKeys","baseKeys","baseTimes","isArguments","isIndex","inherited","isArr","isArg","isBuff","isType","skipIndexes","baseIsArguments","stubFalse","freeExports","nodeType","freeModule","moduleExports","Buffer","nativeIsBuffer","reIsUint","baseIsTypedArray","baseUnary","nodeUtil","nodeIsTypedArray","isLength","weakMapTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","freeProcess","types","binding","isPrototype","nativeKeys","Ctor","proto","overArg","transform","DataView","Promise","Set","WeakMap","promiseTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","ArrayBuffer","resolve","ctorString","isStrictComparable","hasIn","isKey","toKey","baseGet","castPath","stringToPath","reIsDeepProp","reIsPlainProp","memoizeCapped","rePropName","reEscapeChar","number","quote","subString","memoize","MAX_MEMOIZE_SIZE","FUNC_ERROR_TEXT","resolver","memoized","Cache","baseToString","arrayMap","INFINITY","symbolToString","baseHasIn","hasPath","hasFunc","baseProperty","basePropertyDeep","baseFindIndex","toInteger","nativeMax","fromRight","toFinite","remainder","toNumber","MAX_INTEGER","sign","NAN","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","isBinary","createPrototypeProxy","_assign2","_difference","_difference2","proxyToString","proxyMethod","proxiedMethod","proxiedComponentDidMount","componentDidMount","proxiedComponentWillUnmount","componentWillUnmount","defineProxyProperty","defineProxyPropertyWithValue","_ref$enumerable","_ref$writable","createAutoBindMap","__reactAutoBindMap","createAutoBindPairs","__reactAutoBindPairs","method","currentNames","previousName","removedNames","assignValue","copyObject","createAssigner","baseAssignValue","isNew","newValue","baseRest","isIterateeCall","assigner","overRest","setToString","otherArgs","baseSetToString","shortOut","constant","HOT_COUNT","HOT_SPAN","nativeNow","now","lastCalled","stamp","remaining","baseDifference","baseFlatten","isArrayLikeObject","difference","arrayIncludes","arrayIncludesWith","comparator","isCommon","valuesLength","outer","computed","valuesIndex","baseIndexOf","baseIsNaN","strictIndexOf","isFlattenable","isStrict","spreadableSymbol","isConcatSpreadable","bindAutoBindMethods","bindAutoBindMethod","boundMethod","__reactBoundContext","__reactBoundMethod","__reactBoundArguments","_bind","newThis","reboundMethod","bindAutoBindMethodsFromMap","autoBindKey","bindAutoBindMethodsFromArray","deleteUnknownAutoBindMethods","shouldDeleteClassicInstanceMethod","shouldDeleteModernInstanceMethod","prototypeDescriptor","shouldDeleteInstanceMethod","names","traverseRenderedChildren","internalInstance","argument","_renderedComponent","_renderedChildren","setPendingForceUpdate","_pendingForceUpdate","forceUpdateIfPending","_instance","deepForceUpdateStack","_reactInternalInstance","deepForceUpdate","_reactInternalFiber","stateNode","sibling","win","window","ReactNative","AccessibilityInfo","ActivityIndicator","ART","Button","CheckBox","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","ImageEditor","ImageStore","InputAccessoryView","KeyboardAvoidingView","ListView","MaskedViewIOS","Modal","NavigatorIOS","Picker","PickerIOS","ProgressBarAndroid","ProgressViewIOS","SafeAreaView","ScrollView","SectionList","SegmentedControlIOS","Slider","SnapshotViewIOS","Switch","RefreshControl","StatusBar","SwipeableFlatList","SwipeableListView","TabBarIOS","Text","TextInput","ToastAndroid","ToolbarAndroid","Touchable","TouchableHighlight","TouchableNativeFeedback","TouchableOpacity","TouchableWithoutFeedback","View","ViewPagerAndroid","VirtualizedList","WebView","ActionSheetIOS","Alert","AlertIOS","Animated","AppState","AsyncStorage","BackAndroid","BackHandler","CameraRoll","Clipboard","DatePickerAndroid","DeviceInfo","Easing","findNodeHandle","I18nManager","ImagePickerIOS","InteractionManager","Keyboard","LayoutAnimation","Linking","NativeEventEmitter","NetInfo","PanResponder","PermissionsAndroid","PixelRatio","PushNotificationIOS","Settings","Share","StatusBarIOS","TimePickerAndroid","TVEventHandler","UIManager","unstable_batchedUpdates","Vibration","VibrationIOS","YellowBox","DeviceEventEmitter","NativeAppEventEmitter","NativeModules","Platform","processColor","requireNativeComponent","takeSnapshot","ColorPropType","EdgeInsetsPropType","PointPropType","ViewPropTypes","Navigator","RCTDeviceEventEmitter","AccessibilityManager","VOICE_OVER_EVENT","ANNOUNCEMENT_DID_FINISH_EVENT","_subscriptions","fetch","reject","getCurrentVoiceOverState","addEventListener","eventName","handler","listener","addListener","remove","removeEventListener","setAccessibilityFocus","reactTag","announceForAccessibility","announcement","delete","BatchedBridge","genModule","moduleID","moduleName","constants","methods","promiseMethods","syncMethods","methodID","isPromise","arrayContains","isSync","methodType","genMethod","createDebugLookup","__fbGenNativeModule","loadModule","nativeRequireModuleConfig","fn","enqueueNativeCall","createErrorFromErrorData","errorData","nativeCallSyncHook","lastArg","secondLastArg","hasSuccessCallback","hasErrorCallback","onSuccess","onFail","callbackCount","extraErrorInfo","nativeModuleProxy","nativeExtensions","bridgeConfig","__fbBatchedBridgeConfig","defineLazyObjectProperty","remoteModuleConfig","MessageQueue","deepFreezeAndThrowOnMutationInDev","stringifySafe","TO_JS","TO_NATIVE","MODULE_IDS","METHOD_IDS","PARAMS","MIN_TIME_BETWEEN_FLUSHES_MS","TRACE_TAG_REACT_APPS","DEBUG_INFO_LIMIT","JSTimers","_lazyCallableModules","_queue","_successCallbacks","_failureCallbacks","_callID","_lastFlush","_eventLoopStartTime","getTime","_debugInfo","_remoteModuleTable","_remoteMethodTable","callFunctionReturnFlushedQueue","callFunctionReturnResultAndFlushedQueue","flushedQueue","invokeCallbackAndReturnFlushedQueue","__guard","__callFunction","cbID","__invokeCallback","__callImmediates","queue","onSucc","nativeTraceBeginAsyncFlow","isValidArgument","every","nativeFlushQueueImmediate","counterEvent","__spy","isFinite","__shouldPauseOnThrow","DebuggerInternal","shouldPauseOnThrow","callImmediates","moduleMethods","getCallableModule","callID","isSuccess","errorMessage","profileName","spyOrToggle","TRACE_TAG_JS_VM_CALLS","_enabled","_asyncCookie","_markStack","_markStackIndex","_canInstallReactHook","REACT_MARKER","userTimingPolyfill","mark","markName","systraceLabel","indexOfId","cutoffIndex","measure","measureName","startMark","endMark","topMark","clearMarks","clearMeasures","installReactHook","performance","setEnabled","enabled","nativeTraceBeginLegacy","nativeTraceEndLegacy","isEnabled","nativeTraceBeginSection","nativeTraceEndSection","beginAsyncEvent","cookie","nativeTraceBeginAsyncSection","endAsyncEvent","nativeTraceEndAsyncSection","nativeTraceCounter","isFrozen","isSealed","throwOnImmutableMutation","Timing","_performanceNow","performanceNow","FRAME_DURATION","IDLE_CALLBACK_FRAME_DEADLINE","MAX_TIMER_DURATION_MS","IS_ANDROID","OS","ANDROID_LONG_TIMER_MESSAGE","callbacks","timerIDs","immediates","requestIdleCallbacks","requestIdleCallbackTimeouts","identifiers","GUID","errors","hasEmittedTimeDriftWarning","_getFreeIndex","freeIndex","_allocateCallback","parseErrorStack","shift","_callTimer","timerID","frameTime","didTimeout","timerIndex","identifier","_clearIndex","timeRemaining","_callImmediatesPass","passImmediates","_freeCallback","deleteTimer","duration","createTimer","setInterval","setImmediate","requestAnimationFrame","requestIdleCallback","options","setSendIdleEvents","timeout","timeoutId","clearTimeout","deadline","cancelIdleCallback","clearInterval","clearImmediate","cancelAnimationFrame","callTimers","timersToCall","errorCount","callIdleCallbacks","passIdleCallbacks","emitTimeDriftWarning","warningMessage","ExportedJSTimers","Version","PlatformConstants","osVersion","isPad","interfaceIdiom","isTVOS","isTV","isTesting","select","ios","ExecutionEnvironment","canUseDOM","msPerformance","webkitPerformance","document","canUseWorkers","Worker","canUseEventListeners","attachEvent","canUseViewport","screen","isInWorker","stacktraceParser","parse","UNKNOWN_FUNCTION","StackTraceParser","stackString","chrome","gecko","lines","parts","valueSet","setValue","enable","allRejections","onUnhandled","stringValue","onHandled","onSettled","then","TRUE","valuePromise","FALSE","NULL","UNDEFINED","ZERO","EMPTYSTRING","_61","_65","_55","all","res","race","onRejected","noop","LAST_ERROR","IS_ERROR","getThen","tryCallOne","tryCallTwo","_40","_72","doResolve","_37","_87","onFulfilled","safeThen","handle","Handler","deferred","handleResolved","cb","promise","finale","reason","DEFAULT_WHITELIST","disable","displayId","rejections","_51","logged","matchWhitelist","whitelist","logError","errStr","cls","printString","toISOString","errorToString","regExpToString","SYMBOL_REGEXP","NEWLINE_REGEXP","isToStringedArrayType","toStringed","printNumber","isNegativeZero","printFunction","printFunctionName","printSymbol","printError","printBasicValue","typeOf","printList","indent","prevIndent","spacing","edgeSpacing","maxDepth","currentDepth","plugins","callToJSON","body","innerIndent","printArguments","printArray","printMap","printObject","printSet","printComplexValue","hitMaxDepth","toJSON","printPlugin","plugin","boundPrint","boundIndent","indentation","basic","DEFAULTS","validateOptions","normalizeOptions","createIndent","prettyFormat","pluginsResult","basicResult","ESCAPED_CHARACTERS","EventEmitter","EventSubscriptionVendor","checkNativeEventModule","eventType","sharedSubscriber","subscription","emitter","removeSubscription","EmitterSubscription","subscriber","_subscriber","addSubscription","removeCurrentListener","removeAllSubscriptions","_currentSubscription","subscriptions","getSubscriptionsForType","EventSubscription","_subscriptionsForType","subscriptionsForType","RCTActivityIndicator","GRAY","style","forwardedRef","restProps","sizeStyle","sizeSmall","sizeLarge","nativeProps","styleAttr","indeterminate","ActivityIndicatorWithRef","animating","color","hidesWhenStopped","ReactNativeStyleAttributes","StyleSheetValidation","flatten","hairlineWidth","roundToNearestPixel","absoluteFill","left","right","top","bottom","absoluteFillObject","compose","style1","style2","setStyleAttributePreprocessor","validateStyle","scale","fontScale","layoutSize","round","ratio","eventEmitter","dimensionsInitialized","dimensions","dims","windowPhysicalPixels","screenPhysicalPixels","emit","dim","removeListener","nativeExtensionsEnabled","ImageStylePropTypes","TextStylePropTypes","ViewStylePropTypes","keyMirror","processTransform","sizesDiffer","shadowOffset","diff","colorAttributes","borderBottomColor","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderStartColor","borderEndColor","shadowColor","textDecorationColor","tintColor","textShadowColor","overlayColor","ImageResizeMode","LayoutPropTypes","ReactPropTypes","ShadowPropTypesIOS","TransformPropTypes","resizeMode","oneOf","backfaceVisibility","borderWidth","borderRadius","overflow","opacity","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","normalizeColor","colorPropType","isRequired","propFullName","matchers","getMatchers","hex6","rgb","parse255","rgba","parse1","hex3","hex8","hex4","hsl","hslToRgb","parse360","parsePercentage","hsla","hue2rgb","NUMBER","PERCENTAGE","cachedMatchers","int","parseFloat","num","transparent","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","burntsienna","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","contain","cover","stretch","center","display","oneOfType","minWidth","maxWidth","minHeight","maxHeight","margin","marginVertical","marginHorizontal","marginTop","marginBottom","marginLeft","marginRight","marginStart","marginEnd","padding","paddingVertical","paddingHorizontal","paddingTop","paddingBottom","paddingLeft","paddingRight","paddingStart","paddingEnd","borderTopWidth","borderStartWidth","borderEndWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","flexDirection","flexWrap","alignSelf","alignContent","flexGrow","flexShrink","flexBasis","aspectRatio","zIndex","direction","throwOnDirectAccess","emptyFunctionThatReturnsNull","ITERATOR_SYMBOL","ANONYMOUS","createPrimitiveTypeChecker","bool","any","createAnyTypeChecker","arrayOf","createArrayOfTypeChecker","createElementTypeChecker","instanceOf","createInstanceTypeChecker","createNodeChecker","objectOf","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","shape","createShapeTypeChecker","exact","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","isNode","shapeTypes","allKeys","shim","getShim","shadowOpacity","shadowRadius","deprecatedPropType","TransformMatrixPropType","DecomposedMatrixPropType","perspective","rotate","rotateX","rotateY","rotateZ","scaleX","scaleY","translateX","translateY","skewX","skewY","transformMatrix","decomposedMatrix","rotation","explanation","rest","__takeSnapshot","viewConfig","viewName","Manager","viewManager","commands","ViewManagerNames","residual","__residual","_","viewManagerName","getConstantsForViewManager","__makePartial","fontFamily","fontSize","fontStyle","fontWeight","fontVariant","textShadowOffset","textShadowRadius","letterSpacing","lineHeight","textAlign","textAlignVertical","includeFontPadding","textDecorationLine","textDecorationStyle","textTransform","writingDirection","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderStyle","elevation","int32Color","MatrixMath","_validateTransforms","createIdentityMatrix","transformation","multiplyInto","_multiplyTransform","reusePerspectiveCommand","reuseRotateXCommand","_convertToRadians","reuseRotateYCommand","reuseRotateZCommand","reuseScaleCommand","reuseScaleXCommand","reuseScaleYCommand","reuseTranslate3dCommand","reuseTranslate2dCommand","reuseSkewXCommand","reuseSkewYCommand","matrixMathFunction","matrixToApply","argsWithIdentity","floatValue","PI","_validateTransform","multivalueTransforms","createCopy","createOrthographic","near","far","tx","ty","tz","createFrustum","r_width","r_height","r_depth","createPerspective","fovInRadians","aspect","createTranslate2d","mat","matrixCommand","createScale","factor","reuseScale3dCommand","reuseScaleZCommand","radians","cos","sin","amount","createRotateZ","out","a00","a01","a02","a03","a10","a11","a12","a13","a20","a21","a22","a23","a30","a31","a32","a33","b0","b1","b2","b3","determinant","matrix","m00","m01","m02","m03","m10","m11","m12","m13","m20","m21","m22","m23","m30","m31","m32","m33","inverse","det","transpose","multiplyVectorByMatrix","vx","vy","vz","vw","v3Length","sqrt","v3Normalize","vector","im","v3Dot","v3Combine","aScale","bScale","v3Cross","quaternionToDegreesXYZ","qx","qy","qz","qw","qw2","qx2","qy2","qz2","unit","conv","atan2","roundTo3Places","asin","decomposeMatrix","quaternion","skew","translation","perspectiveMatrix","rightHandSide","inversePerspectiveMatrix","transposedInversePerspectiveMatrix","pdum3","rotationDegrees","dummySize","one","two","caller","allStylePropTypes","message1","message2","styleError","validateStyleProp","stylePropTypes","addValidStylePropTypes","flattenStyle","styleLength","computedStyle","TextAncestor","RCTView","ViewToExport","hasTextAncestor","createReactNativeComponentClass","insetsDiffer","matricesDiffer","pointsDiffer","resolveAssetSource","uiViewClassName","NativeProps","baseModuleName","bubblingEventTypes","directEventTypes","baseModule","validAttributes","typeName","getDifferForType","getProcessorForType","hasAttachedDefaultEventTypes","attachDefaultEventTypes","merge","getDefaultEventTypes","genericBubblingEventTypes","genericDirectEventTypes","destination","sourceValue","destinationValue","processColorArray","colors","register","customBubblingEventTypes","customDirectEventTypes","eventTypes","viewConfigCallbacks","viewConfigs","processEventTypes","topLevelType","dummyInsets","dummyPoint","AssetRegistry","AssetSourceResolver","_customSourceTransformer","_serverURL","_scriptURL","_sourceCodeScriptURL","getSourceCodeScriptURL","sourceCode","SourceCode","scriptURL","getDevServerURL","sourceCodeScriptURL","_coerceLocalScriptURL","substring","getScriptURL","setCustomSourceTransformer","transformer","asset","getAssetByID","defaultAsset","pickScale","assets","registerAsset","assetId","assetPathUtils","getScaledAssetPath","scales","scaleSuffix","assetDir","getBasePath","getAssetPathInDrawableFolder","drawbleFolder","getAndroidResourceFolderName","getAndroidResourceIdentifier","serverUrl","jsbundleUrl","isLoadedFromServer","assetServerURL","isLoadedFromFileSystem","drawableFolderInBundle","resourceIdentifierWithoutScale","scaledAssetURLNearBundle","fromSource","__packager_asset","uri","deviceScale","getAndroidAssetSuffix","drawableFileTypes","suffix","androidFolder","folderPath","toLowerCase","basePath","httpServerLocation","UnimplementedView","unimplementedView","Color","Path","Transform","ReactNativeViewAttributes","arrayDiffer","fontAndLinesDiffer","font","SurfaceViewAttributes","UIView","NodeAttributes","GroupAttributes","clipping","RenderableAttributes","fill","stroke","strokeWidth","strokeCap","strokeJoin","strokeDash","ShapeAttributes","TextAttributes","alignment","frame","NativeSurfaceView","NativeGroup","NativeShape","NativeText","childrenAsString","Surface","isInSurface","extractNumber","childContextTypes","pooledTransform","extractTransform","transformTo","move","originX","originY","xx","yx","xy","yy","extractOpacity","visible","Group","contextTypes","ClippingRectangle","propsExcludingXAndY","SOLID_COLOR","LINEAR_GRADIENT","RADIAL_GRADIENT","PATTERN","insertColorIntoArray","targetArray","atIndex","alpha","insertColorsIntoArray","stops","insertOffsetsIntoArray","multi","reverse","offsetNumber","offsetString","insertColorStopsIntoArray","insertDoubleColorStopsIntoArray","applyBoundingBoxToBrushData","brushData","extractBrush","colorOrBrush","_brush","_bb","extractColor","extractStrokeCap","extractStrokeJoin","Shape","cachedFontObjectsFromString","fontFamilyPrefix","fontFamilySuffix","extractSingleFontFamily","fontFamilyString","parseFontString","regexp","isBold","isItalic","extractFont","newLine","extractFontAndLines","extractAlignment","textPath","textFrame","LinearGradient","x1","y1","x2","y2","angle","abs","RadialGradient","fx","fy","rx","ry","cx","cy","Pattern","url","ReactART","results","isColor","namedColor","toUpperCase","limit","listMatch","hexMatch","parseRGB","bit","parseHEX","parseHSB","hsb","br","hue","floor","parseHSL","toHSB","delta","saturation","brightness","rr","gr","toHSL","lightness","toHEX","hex","toRGB","detach","MOVE_TO","CLOSE","LINE_TO","CURVE_TO","ARC","SerializablePath","initialize","reset","applyToPath","onReset","onMove","sx","sy","onLine","onBezierCurve","p1x","p1y","p2x","p2y","_arcToBezier","onArc","ey","sa","ea","ccw","onClose","mixins","mixin","last","cmd","curve","arc","moveTo","lineTo","curveTo","arcTo","penY","penX","close","penDownX","penDownY","_pivotX","_pivotY","c1x","c1y","c2x","c2y","counterClockwise","tX","tY","clockwise","large","rad","rxry","rycx","rxcy","cxd","cyd","counterArc","counterArcTo","gx","gy","v1","v2","s1x","s1y","l1x","l1y","l2x","l2y","r2x","r2y","r1x","r1y","l2r1x","l2r1y","ceil","cp1x","cp1y","cp2x","cp2y","_transform","translate","deg","rotateTo","flip","scaleTo","resizeTo","inversePoint","point","pointerEvents","accessible","accessibilityActions","accessibilityLabel","accessibilityComponentType","accessibilityLiveRegion","accessibilityTraits","importantForAccessibility","nativeID","testID","renderToHardwareTextureAndroid","shouldRasterizeIOS","onAccessibilityAction","onAccessibilityTap","onMagicTap","collapsable","needsOffscreenAlphaCompositing","removeClippedSubviews","mergeInto","mergeHelpers","checkMergeObjectArg","checkMergeIntoObjectArg","MAX_MERGE_DEPTH","isTerminal","normalizeMergeArg","checkMergeArrayArgs","checkMergeObjectArgs","checkMergeLevel","checkArrayStrategy","strategy","ArrayStrategies","Clobber","Concat","IndexByIndex","title","hasTVPreferredFocus","disabled","buttonStyles","button","textStyles","buttonDisabled","textDisabled","formattedTitle","android","TextPropTypes","nullthrows","PRESS_RECT_OFFSET","isHighlighted","numberOfLines","ellipsizeMode","allowFontScaling","selectable","selectionColor","adjustsFontSizeToFit","minimumFontScale","textBreakStrategy","TouchableText","Mixin","touchableGetInitialState","createResponderHandlers","_createResponseHandlers","responseHandlers","isTouchable","TOUCH_TARGET_DEBUG","onStartShouldSetResponder","shouldSetResponder","_attachTouchHandlers","onResponderGrant","event","dispatchID","touchableHandleResponderGrant","onResponderMove","touchableHandleResponderMove","onResponderRelease","touchableHandleResponderRelease","onResponderTerminate","touchableHandleResponderTerminate","onResponderTerminationRequest","touchableHandleResponderTerminationRequest","touchableGetPressRectOffset","touchableHandleActivePressIn","suppressHighlighting","touchableHandleActivePressOut","touchableHandlePress","touchableHandleLongPress","onLongPress","pressRetentionOffset","nextProps","prevState","RCTText","RCTVirtualText","StyleSheetPropType","stylePropType","shapePropType","newProps","locationName","BoundingDimensions","Position","TouchEventUtils","States","NOT_RESPONDER","RESPONDER_INACTIVE_PRESS_IN","RESPONDER_INACTIVE_PRESS_OUT","RESPONDER_ACTIVE_PRESS_IN","RESPONDER_ACTIVE_PRESS_OUT","RESPONDER_ACTIVE_LONG_PRESS_IN","RESPONDER_ACTIVE_LONG_PRESS_OUT","ERROR","IsActive","IsPressingIn","IsLongPressingIn","Signals","DELAY","RESPONDER_GRANT","RESPONDER_RELEASE","RESPONDER_TERMINATED","ENTER_PRESS_RECT","LEAVE_PRESS_RECT","LONG_PRESS_DETECTED","Transitions","HIGHLIGHT_DELAY_MS","PRESS_EXPAND_PX","LONG_PRESS_THRESHOLD","LONG_PRESS_DELAY_MS","LONG_PRESS_ALLOWED_MOVEMENT","TouchableMixin","_tvEventHandler","cmp","evt","myTag","dispatchConfig","touchableDelayTimeout","longPressDelayTimeout","pressOutDelayTimeout","touchable","touchState","responderID","rejectResponderTermination","touchableHandleStartShouldSetResponder","touchableLongPressCancelsPress","currentTarget","persist","_receiveSignal","delayMS","touchableGetHighlightDelayMS","_handleDelay","longDelayMS","touchableGetLongPressDelayMS","_handleLongDelay","positionOnActivate","dimensionsOnActivate","pressRectOffset","pressExpandLeft","pressExpandTop","pressExpandRight","pressExpandBottom","hitSlop","touchableGetHitSlop","touch","extractSingleTouch","nativeEvent","pageX","pageY","pressInLocation","movedDistance","_getDistanceBetweenPoints","_cancelLongPressDelayTimeout","isTouchWithinActive","curState","_remeasureMetricsOnActivation","_handleQueryLayout","globalX","globalY","release","getPooled","signal","nextState","_performSideEffectsForTransition","_isHighlight","_savePressInLocation","locationX","locationY","aX","aY","bX","bY","deltaX","deltaY","curIsHighlight","newIsHighlight","isFinalSignal","_startHighlight","_endHighlight","hasLongPressHandler","pressIsLongButStillCallOnPress","shouldInvokePress","_playTouchSound","playTouchSound","touchableGetPressOutDelayMS","renderDebugView","debugHitSlopStyle","hexColor","PooledClass","twoArgumentPooler","destructor","getPooledFromElement","offsetWidth","offsetHeight","addPoolingTo","oneArgumentPooler","copyFieldsFrom","Klass","instancePool","a1","a2","threeArgumentPooler","a3","fourArgumentPooler","a4","standardReleaser","poolSize","DEFAULT_POOL_SIZE","DEFAULT_POOLER","CopyConstructor","pooler","NewKlass","ReactNativeViewConfigRegistry","RCTEventEmitter","deepDiffer","TextInputState","ExceptionsManager","invokeGuardedCallback","_hasCaughtError","_caughtError","funcArgs","dispatchEvent","createEvent","fakeNode","invokeGuardedCallbackDev","didError","callCallback","evtType","didSetError","isCrossOriginError","colno","lineno","initEvent","invokeGuardedCallback$1","ReactErrorUtils","_rethrowError","_hasRethrowError","invokeGuardedCallbackAndCatchFirstError","hasCaughtError","clearCaughtError","rethrowCaughtError","eventPluginOrder","namesToPlugins","recomputePluginOrdering","pluginName","pluginModule","pluginIndex","extractEvents","publishedEvents","publishEventForPlugin","eventNameDispatchConfigs","phasedRegistrationNames","phaseName","phasedRegistrationName","publishRegistrationName","registrationName","registrationNameModules","registrationNameDependencies","dependencies","lowerCasedName","injectEventPluginOrder","injectedEventPluginOrder","injectEventPluginsByName","injectedNamesToPlugins","isOrderingDirty","getFiberCurrentPropsFromNode","getInstanceFromNode","getNodeFromInstance","injection$1","injectComponentTree","Injected","validateEventDispatches","dispatchListeners","_dispatchListeners","dispatchInstances","_dispatchInstances","listenersIsArr","listenersLen","instancesIsArr","instancesLen","executeDispatch","simulated","inst","executeDispatchesInOrder","isPropagationStopped","executeDispatchesInOrderStopAtTrueImpl","executeDispatchesInOrderStopAtTrue","executeDirectDispatch","dispatchListener","dispatchInstance","hasDispatches","accumulateInto","forEachAccumulated","scope","eventQueue","executeDispatchesAndRelease","isPersistent","executeDispatchesAndReleaseSimulated","executeDispatchesAndReleaseTopLevel","isInteractive","shouldPreventMouseEvent","injection","getListener","targetInst","nativeEventTarget","events","possiblePlugin","extractedEvents","runEventsInBatch","processingEventQueue","runExtractedEventsInBatch","IndeterminateComponent","FunctionalComponent","ClassComponent","HostRoot","HostPortal","HostComponent","HostText","Mode","ContextConsumer","ContextProvider","ForwardRef","Profiler","TimeoutComponent","getParent","getLowestCommonAncestor","instA","instB","depthA","tempA","depthB","tempB","alternate","isAncestor","getParentInstance","traverseTwoPhase","listenerAtPhase","propagationPhase","accumulateDirectionalDispatches","phase","accumulateTwoPhaseDispatchesSingle","_targetInst","accumulateTwoPhaseDispatchesSingleSkipTarget","parentInst","accumulateDispatches","ignoredDirection","accumulateDirectDispatchesSingle","accumulateTwoPhaseDispatches","accumulateTwoPhaseDispatchesSkipTarget","accumulateDirectDispatches","didWarnForAddedNewProperty","EVENT_POOL_SIZE","shouldBeReleasedProperties","EventInterface","eventPhase","bubbles","cancelable","timeStamp","defaultPrevented","isTrusted","functionThatReturnsTrue","functionThatReturnsFalse","SyntheticEvent","preventDefault","stopPropagation","Interface","normalize","isDefaultPrevented","cancelBubble","getPooledWarningPropertyDefinition","extend","addEventPoolingTo","isProxySupported","Proxy","that","getVal","get$$1","action","warningCondition","getPooledEvent","nativeInst","EventConstructor","eventPool","releasePooledEvent","SyntheticEvent$1","ResponderSyntheticEvent","touchHistory","TOP_TOUCH_START","TOP_TOUCH_MOVE","TOP_TOUCH_END","TOP_TOUCH_CANCEL","TOP_SCROLL","TOP_SELECTION_CHANGE","isStartish","isMoveish","isEndish","startDependencies","moveDependencies","endDependencies","MAX_TOUCH_BANK","touchBank","numberActiveTouches","indexOfSingleActiveTouch","mostRecentTimeStamp","timestampForTouch","timestamp","createTouchRecord","touchActive","startPageX","startPageY","startTimeStamp","currentPageX","currentPageY","currentTimeStamp","previousPageX","previousPageY","previousTimeStamp","resetTouchRecord","touchRecord","getTouchIdentifier","recordTouchStart","recordTouchMove","printTouch","printTouchBank","recordTouchEnd","printed","ResponderTouchHistoryStore","recordTouchTrack","changedTouches","touches","touchTrackToCheck","activeRecord","accumulate","responderInst","trackedTouchCount","changeResponder","nextResponderInst","blockHostResponder","oldResponderInst","ResponderEventPlugin","GlobalResponderHandler","onChange","eventTypes$1","startShouldSetResponder","bubbled","captured","scrollShouldSetResponder","selectionChangeShouldSetResponder","moveShouldSetResponder","responderStart","responderMove","responderEnd","responderRelease","responderTerminationRequest","responderGrant","responderReject","responderTerminate","setResponderAndExtractTransfer","shouldSetEventType","bubbleShouldSetFrom","skipOverBubbleShouldSetFrom","shouldSetEvent","wantsResponderInst","extracted","grantEvent","terminationRequestEvent","shouldSwitch","terminateEvent","rejectEvent","canTriggerTransfer","topLevelInst","responderIgnoreScroll","noResponderTouches","activeTouch","_getResponder","isResponderTouchStart","isResponderTouchMove","isResponderTouchEnd","incrementalTouch","gesture","isResponderTerminate","isResponderRelease","finalTouch","finalEvent","injectGlobalResponderHandler","customBubblingEventTypes$1","customDirectEventTypes$1","eventTypes$2","ReactNativeBridgeEventPlugin","bubbleDispatchConfig","directDispatchConfig","ReactNativeEventPluginOrder","instanceCache","instanceProps","precacheFiberNode","hostInst","uncacheFiberNode","getInstanceFromTag","getTagFromInstance","_nativeTag","canonical","getFiberCurrentPropsFromNode$1","updateFiberProps","ReactNativeComponentTree","getClosestInstanceFromNode","fiberHostComponent","restoreTarget","restoreQueue","restoreStateOfTarget","restoreControlledState","needsStateRestore","restoreStateIfNeeded","queuedTargets","_batchedUpdates","bookkeeping","_interactiveUpdates","_flushInteractiveUpdates","isBatching","batchedUpdates","controlledComponentsHavePendingUpdates","injection$2","injectRenderer","renderer","interactiveUpdates","flushInteractiveUpdates","EMPTY_NATIVE_EVENT","touchSubsequence","indices","removeTouchesAtIndices","rippedOut","temp","fillAt","_receiveRootNodeIDEvent","rootNodeID","nativeEventParam","receiveEvent","receiveTouches","eventTopLevelType","changedIndices","jj","ReactNativeEventEmitter","registrationNames","ReactNativeGlobalResponderHandler","blockNativeResponder","setJSResponder","clearJSResponder","get$1","ReactInternals","NoEffect","PerformedWork","Placement","Update","PlacementAndUpdate","Deletion","ContentReset","Callback","DidCapture","Ref","Snapshot","HostEffectMask","Incomplete","ShouldCapture","MOUNTING","MOUNTED","UNMOUNTED","isFiberMountedImpl","effectTag","isFiberMounted","ownerFiber","_warnedAboutRefsInRender","assertIsMounted","findCurrentFiberUsingSlowPath","parentA","parentB","didFindChild","_child","findCurrentHostFiber","parent","currentParent","findCurrentHostFiberWithNoPortals","emptyObject$1","removedKeys","removedKeyCount","defaultDiffer","prevProp","nextProp","restoreDeletedValuesInNestedArray","updatePayload","propKey","_nextProp","attributeConfig","nextValue","diffNestedArrayProperty","prevArray","nextArray","minLength","diffNestedProperty","clearNestedProperty","addNestedProperty","diffProperties","addProperties","clearProperties","prevProps","shouldUpdate","_nextValue","_propKey","mountSafeCallback","__isMounted","throwOnStylesProp","msg","warnForStyleProps","ReactNativeFiberHostComponent","_children","blur","blurTextInput","focus","focusTextInput","measureInWindow","measureLayout","relativeToNativeNode","setNativeProps","updateView","hasNativePerformanceNow","now$1","scheduledCallback","frameDeadline","frameDeadlineObject","setTimeoutCallback","scheduleDeferredCallback$1","cancelDeferredCallback$1","callbackID","supportsPersistence","cloneInstance","createContainerChildSet","appendChildToContainerChildSet","finalizeContainerChildren","replaceContainerChildren","shim$1","supportsHydration","canHydrateInstance","canHydrateTextInstance","getNextHydratableSibling","getFirstHydratableChild","hydrateInstance","hydrateTextInstance","didNotMatchHydratedContainerTextInstance","didNotMatchHydratedTextInstance","didNotHydrateContainerInstance","didNotHydrateInstance","didNotFindHydratableContainerInstance","didNotFindHydratableContainerTextInstance","didNotFindHydratableInstance","didNotFindHydratableTextInstance","nextReactTag","allocateTag","recursivelyUncacheFiberNode","appendInitialChild","parentInstance","createInstance","rootContainerInstance","hostContext","internalInstanceHandle","isInAParentText","createView","createTextInstance","finalizeInitialChildren","nativeTags","setChildren","getRootHostContext","getChildHostContext","parentHostContext","prevIsInAParentText","getPublicInstance","prepareForCommit","containerInfo","prepareUpdate","oldProps","resetAfterCommit","isPrimaryRenderer","scheduleDeferredCallback","cancelDeferredCallback","shouldDeprioritizeSubtree","shouldSetTextContent","supportsMutation","appendChild","childTag","manageChildren","appendChildToContainer","commitTextUpdate","textInstance","oldText","newText","commitUpdate","updatePayloadTODO","insertBefore","beforeChild","beforeChildIndex","_beforeChildIndex","insertInContainerBefore","removeChild","removeChildFromContainer","resetTextContent","describeFiber","_debugOwner","_debugSource","getStackAddendumByWorkInProgressFiber","workInProgress","getCurrentFiberOwnerName","ReactDebugCurrentFiber","getCurrentFiberStackAddendum","resetCurrentFiber","setCurrentFiber","setCurrentPhase","debugRenderPhaseSideEffects","debugRenderPhaseSideEffectsForStrictMode","enableGetDerivedStateFromCatch","enableUserTimingAPI","replayFailedUnitOfWorkWithInvokeGuardedCallback","warnAboutDeprecatedLifecycles","warnAboutLegacyContextAPI","enableProfilerTimer","reactEmoji","warningEmoji","supportsUserTiming","currentFiber","currentPhase","currentPhaseFiber","isCommitting","hasScheduledUpdateInCurrentCommit","hasScheduledUpdateInCurrentPhase","commitCountInCurrentWorkLoop","effectCountInCurrentCommit","isWaitingForCallback","labelsInCurrentCommit","formatMarkName","formatLabel","label","warning$$1","beginMark","clearMark","formattedMarkName","formattedLabel","getFiberMarkName","debugID","getFiberLabel","beginFiberMark","_debugID","clearFiberMark","endFiberMark","shouldIgnoreFiber","clearPendingPhaseMeasurement","pauseTimers","_debugIsCurrentlyTiming","resumeTimersRecursively","resumeTimers","recordEffect","recordScheduleUpdate","startRequestCallbackTimer","stopRequestCallbackTimer","didExpire","expirationTime","startWorkTimer","cancelWorkTimer","stopWorkTimer","stopFailedWorkTimer","startPhaseTimer","stopPhaseTimer","startWorkLoopTimer","nextUnitOfWork","stopWorkLoopTimer","interruptedBy","didCompleteRoot","startCommitTimer","stopCommitTimer","startCommitSnapshotEffectsTimer","stopCommitSnapshotEffectsTimer","startCommitHostEffectsTimer","stopCommitHostEffectsTimer","startCommitLifeCyclesTimer","stopCommitLifeCyclesTimer","valueStack","fiberStack","createCursor","cursor","checkThatStackIsEmpty","resetStackAfterFatalErrorInDev","warnedAboutMissingGetChildContext","contextStackCursor","didPerformWorkStackCursor","previousContext","getUnmaskedContext","hasOwnContext","isContextProvider","cacheContext","unmaskedContext","maskedContext","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","getMaskedContext","hasContextChanged","isContextConsumer","popContextProvider","popTopLevelContextObject","pushTopLevelContextObject","didChange","processChildContext","parentContext","getChildContext","childContext","contextKey","pushContextProvider","memoizedMergedChildContext","__reactInternalMemoizedMergedChildContext","invalidateContextProvider","mergedContext","findCurrentUnmaskedContext","MAX_SIGNED_31_BIT_INT","NoWork","Sync","Never","UNIT_SIZE","MAGIC_NUMBER_OFFSET","msToExpirationTime","ms","expirationTimeToMs","ceiling","precision","computeExpirationBucket","currentTime","expirationInMs","bucketSizeMs","NoContext","AsyncMode","ProfileMode","hasBadMapPolyfill","nonExtensibleObject","preventExtensions","testMap","testSet","debugCounter","FiberNode","mode","memoizedProps","updateQueue","memoizedState","nextEffect","firstEffect","lastEffect","actualDuration","actualStartTime","selfBaseTime","treeBaseTime","createFiber","shouldConstruct","createWorkInProgress","createHostRootFiber","isAsync","createFiberFromElement","fiberTag","createFiberFromFragment","createFiberFromProfiler","getFiberTagFromObjectType","elements","onRender","createFiberFromText","content","createFiberFromHostInstanceForDeletion","createFiberFromPortal","portal","pendingChildren","implementation","assignFiberPropertiesInDEV","createFiberRoot","hydrate","uninitializedFiber","earliestPendingTime","latestPendingTime","earliestSuspendedTime","latestSuspendedTime","latestPingedTime","pendingCommitExpirationTime","finishedWork","pendingContext","nextExpirationTimeToWorkOn","firstBatch","nextScheduledRoot","onCommitFiberRoot","onCommitFiberUnmount","hasLoggedError","catchErrors","injectInternals","internals","__REACT_DEVTOOLS_GLOBAL_HOOK__","hook","isDisabled","supportsFiber","rendererID","inject","onCommitRoot","onCommitUnmount","ReactStrictModeWarnings","discardPendingWarnings","flushPendingDeprecationWarnings","flushPendingUnsafeLifecycleWarnings","recordDeprecationWarnings","recordUnsafeLifecycleWarnings","recordLegacyContextWarning","flushLegacyContextWarning","LIFECYCLE_SUGGESTIONS","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate","pendingComponentWillMountWarnings","pendingComponentWillReceivePropsWarnings","pendingComponentWillUpdateWarnings","pendingUnsafeLifecycleWarnings","pendingLegacyContextWarning","didWarnAboutDeprecatedLifecycles","didWarnAboutUnsafeLifecycles","didWarnAboutLegacyContext","setToSortedString","lifecycleWarningsMap","strictRoot","lifecyclesWarningMesages","lifecycle","lifecycleWarnings","componentNames","formatted","suggestion","sortedComponentNames","strictRootComponentStack","findStrictRoot","maybeStrictRoot","uniqueNames","sortedNames","_uniqueNames","_sortedNames","_uniqueNames2","_sortedNames2","componentWillMount","__suppressDeprecationWarning","componentWillReceiveProps","componentWillUpdate","warningsForRoot","unsafeLifecycles","fiberArray","ReactFiberInstrumentation","debugTool","ReactFiberInstrumentation_1","markPendingPriorityLevel","findNextPendingPriorityLevel","markCommittedPriorityLevels","earliestRemainingTime","hasLowerPriorityWork","renderExpirationTime","markSuspendedPriorityLevel","suspendedTime","markPingedPriorityLevel","pingedTime","UpdateState","ReplaceState","ForceUpdate","CaptureUpdate","hasForceUpdate","didWarnUpdateInsideUpdate","currentlyProcessingQueue","resetCurrentlyProcessingQueue","createUpdateQueue","baseState","firstUpdate","lastUpdate","firstCapturedUpdate","lastCapturedUpdate","firstCapturedEffect","lastCapturedEffect","cloneUpdateQueue","currentQueue","createUpdate","payload","appendUpdateToQueue","enqueueUpdate","queue1","queue2","enqueueCapturedUpdate","workInProgressQueue","ensureWorkInProgressQueueIsAClone","getStateFromUpdate","_payload","_payload2","processUpdateQueue","newBaseState","newFirstUpdate","newExpirationTime","resultState","updateExpirationTime","_callback","newFirstCapturedUpdate","_updateExpirationTime","_callback2","resetHasForceUpdateBeforeProcessing","checkHasForceUpdateAfterProcessing","commitUpdateQueue","finishedQueue","effect","_callback3","_callback4","createCapturedValue","providerCursor","valueCursor","changedBitsCursor","rendererSigil","pushProvider","providerFiber","popProvider","changedBits","currentValue","getContextCurrentValue","getContextChangedBits","NO_CONTEXT","contextStackCursor$1","contextFiberStackCursor","rootInstanceStackCursor","requiredContext","getRootHostContainer","rootInstance","pushHostContainer","nextRootInstance","nextRootContext","popHostContainer","getHostContext","pushHostContext","nextContext","popHostContext","commitTime","getCommitTime","recordCommitTime","fiberStack$1","timerPausedAt","totalElapsedPauseTime","checkActualRenderTimeStackEmpty","markActualRenderTimeStarted","pauseActualRenderTimerIfRunning","recordElapsedActualRenderTime","resetActualRenderTimer","resumeActualRenderTimerIfPaused","baseStartTime","recordElapsedBaseRenderTimeIfRunning","startBaseRenderTimer","stopBaseRenderTimerIfRunning","shallowEqual","objA","objB","keysA","keysB","fakeInternalInstance","didWarnAboutStateAssignmentForComponent","didWarnAboutUninitializedState","didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate","didWarnAboutLegacyLifecyclesAndDerivedState","didWarnAboutUndefinedDerivedState","warnOnUndefinedDerivedState","warnOnInvalidCallback","didWarnOnInvalidCallback","applyDerivedStateFromProps","getDerivedStateFromProps","classComponentUpdater","recalculateCurrentTime","computeExpirationForFiber","scheduleWork","checkShouldComponentUpdate","oldState","newState","newContext","ctor","shouldComponentUpdate","checkClassInstance","renderPresent","noGetInitialStateOnES6","getInitialState","noGetDefaultPropsOnES6","noInstancePropTypes","noInstanceContextTypes","noComponentShouldUpdate","componentShouldUpdate","noComponentDidUnmount","componentDidUnmount","noComponentDidReceiveProps","componentDidReceiveProps","noComponentWillRecieveProps","componentWillRecieveProps","noUnsafeComponentWillRecieveProps","UNSAFE_componentWillRecieveProps","hasMutatedProps","noInstanceDefaultProps","getSnapshotBeforeUpdate","componentDidUpdate","noInstanceGetDerivedStateFromProps","noInstanceGetDerivedStateFromCatch","getDerivedStateFromCatch","noStaticGetSnapshotBeforeUpdate","_state","adoptClassInstance","constructClassInstance","needsContext","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","_componentName","newApiName","callComponentWillMount","callComponentWillReceiveProps","mountClassInstance","resumeMountClassInstance","oldContext","newUnmaskedContext","hasNewLifecycles","updateClassInstance","getCurrentFiberStackAddendum$2","didWarnAboutStringRefInStrictMode","ownerHasFunctionTypeWarning","warnForMissingKey","isArray$1","coerceRef","returnFiber","mixedRef","stringRef","_stringRef","throwOnInvalidObjectType","newChild","warnOnFunctionType","ChildReconciler","shouldTrackSideEffects","deleteChild","childToDelete","deleteRemainingChildren","currentFirstChild","mapRemainingChildren","existingChildren","existingChild","useFiber","clone","placeChild","newFiber","lastPlacedIndex","newIndex","oldIndex","placeSingleChild","updateTextNode","textContent","created","existing","updateElement","updatePortal","updateFragment","createChild","_created","_created2","_created3","updateSlot","oldFiber","updateFromMap","newIdx","matchedFiber","_matchedFiber","_matchedFiber2","_matchedFiber3","warnOnInvalidKey","knownKeys","reconcileChildrenArray","newChildren","resultingFirstChild","previousNewFiber","nextOldFiber","_newFiber","_newFiber2","reconcileChildrenIterator","newChildrenIterable","_newChildren","_step","_newFiber3","_newFiber4","reconcileSingleTextNode","reconcileSingleElement","_created4","reconcileSinglePortal","reconcileChildFibers","isUnkeyedTopLevelFragment","_isMockFunction","mountChildFibers","cloneChildFibers","currentChild","hydrationParentFiber","nextHydratableInstance","isHydrating","enterHydrationState","deleteHydratableInstance","insertNonHydratedInstance","parentContainer","parentProps","_type","_props","_text","tryHydrate","nextInstance","tryToClaimNextHydratableInstance","firstAttemptedInstance","prepareToHydrateHostInstance","prepareToHydrateHostTextInstance","popToNextHostParent","popHydrationState","resetHydrationState","getCurrentFiberStackAddendum$1","didWarnAboutBadClass","didWarnAboutGetDerivedStateOnFunctionalComponent","didWarnAboutStatelessRefs","reconcileChildren","nextChildren","reconcileChildrenAtExpirationTime","updateForwardRef","currentRef","bailoutOnAlreadyFinishedWork","memoizeProps","updateMode","updateProfiler","markRef","updateFunctionalComponent","updateClassComponent","hasContext","finishClassComponent","didCaptureError","memoizeState","pushHostRootContext","updateHostRoot","prevChildren","updateHostComponent","isHidden","isDirectTextChild","updateHostText","mountIndeterminateComponent","_Component","debugSource","updateTimeoutComponent","prevDidTimeout","alreadyCaptured","nextDidTimeout","updatePortalComponent","propagateContextChange","nextFiber","observedBits","updateContextProvider","providerType","canBailOnProps","providerPropTypes","oldValue","updateContextConsumer","unstable_observedBits","bailoutOnLowPriority","beginWork","markUpdate","markRef$1","appendAllChildren","updateHostContainer","updateHostComponent$1","updateHostText$1","currentHostContext","appendAllChildrenToContainer","containerChildSet","portalOrRoot","childrenUnchanged","newChildSet","currentInstance","recyclableInstance","newInstance","completeWork","fiberRoot","_currentHostContext","wasHydrated","_rootContainerInstance","_currentHostContext2","_wasHydrated","showErrorDialog","capturedError","componentStack","errorToHandle","summary","handleException","logCapturedError","suppressLogging","suppressReactErrorLogging","errorBoundaryName","errorBoundaryFound","willRetry","componentNameMessage","errorBoundaryMessage","combinedMessage","invokeGuardedCallback$3","hasCaughtError$1","clearCaughtError$1","didWarnAboutUndefinedSnapshotBeforeUpdate","boundary","errorInfo","errorBoundary","callComponentWillUnmountWithTimer","safelyCallComponentWillUnmount","unmountError","captureCommitPhaseError","safelyDetachRef","refError","commitBeforeMutationLifeCycles","snapshot","didWarnSet","__reactInternalSnapshotBeforeUpdate","commitLifeCycles","finishedRoot","committedExpirationTime","_updateQueue","_instance2","commitAttachRef","instanceToUse","commitDetachRef","commitUnmount","unmountHostComponents","emptyPortalContainer","commitNestedUnmounts","detachFiber","emptyChildSet","commitContainer","_pendingChildren","getHostParentFiber","isHostParent","getHostSibling","siblings","commitPlacement","parentFiber","isContainer","before","currentParentIsValid","currentParentIsContainer","findParent","commitDeletion","commitWork","commitResetTextContent","createRootErrorUpdate","onUncaughtError","createClassErrorUpdate","componentDidCatch","markLegacyErrorBoundaryAsFailed","schedulePing","recoveryUpdate","throwException","sourceFiber","currentTimeMs","thenable","expirationTimeMs","startTimeMs","elapsedMs","remainingTimeMs","_workInProgress","earliestTimeoutMs","searchForEarliestTimeout","timeoutPropMs","msUntilTimeout","markTimeout","onResolveOrReject","retrySuspendedRoot","_onResolveOrReject","markError","_errorInfo","isAlreadyFailedLegacyErrorBoundary","_update","unwindWork","_effectTag","_effectTag2","unwindInterruptedWork","interruptedWork","invokeGuardedCallback$2","didWarnAboutStateTransition","didWarnSetStateChildContext","warnAboutUpdateOnUnmounted","warnAboutInvalidUpdates","originalStartTimeMs","mostRecentCurrentTime","mostRecentCurrentTimeMs","lastUniqueAsyncExpiration","expirationContext","isWorking","nextRoot","nextRenderExpirationTime","nextLatestTimeoutMs","nextRenderDidError","isCommitting$1","legacyErrorBoundariesThatAlreadyFailed","stashedWorkInProgressProperties","replayUnitOfWork","isReplayingFailedUnitOfWork","originalReplayError","rethrowOriginalError","failedUnitOfWork","thrownValue","isYieldy","workLoop","resetStack","commitAllHostEffects","primaryEffectTag","_current","_current2","commitBeforeMutationLifecycles","commitAllLifeCycles","commitRoot","_didError","_error","_didError2","_error2","onCommitWork","onCommit","resetExpirationTime","renderTime","completeUnitOfWork","siblingFiber","onCompleteWork","_next","performUnitOfWork","onBeginWork","shouldYield","renderRoot","didFatal","onFatal","rootWorkInProgress","_didCompleteRoot","onComplete","_didCompleteRoot2","suspendedExpirationTime","onSuspend","_didCompleteRoot3","onYield","dispatch","rootFiber","_errorInfo2","_update2","computeAsyncExpiration","expirationMs","computeInteractiveExpiration","computeUniqueAsyncExpiration","isBatchingInteractiveUpdates","lowestPendingInteractiveExpirationTime","timeoutMs","retryTime","requestWork","rootExpirationTime","nestedUpdateCount","NESTED_UPDATE_LIMIT","deferredUpdates","previousExpirationContext","syncUpdates","firstScheduledRoot","lastScheduledRoot","callbackExpirationTime","isRendering","nextFlushedRoot","nextFlushedExpirationTime","deadlineDidExpire","hasUnhandledError","unhandledError","isBatchingUpdates","isUnbatchingUpdates","completedBatches","timeHeuristicForUnitOfWork","scheduleCallbackWithExpirationTime","currentMs","performAsyncWork","suspendedRoot","addRootToSchedule","performWorkOnRoot","performSyncWork","remainingExpirationTime","findHighestPriorityRoot","highestPriorityWork","highestPriorityRoot","previousScheduledRoot","previousFlushedRoot","dl","performWork","minExpirationTime","finishRendering","flushRoot","batches","batch","_onComplete","completeRoot","_finishedWork","_expirationTime","_defer","batchedUpdates$1","previousIsBatchingUpdates","unbatchedUpdates","flushSync","interactiveUpdates$1","previousIsBatchingInteractiveUpdates","flushInteractiveUpdates$1","flushControlled","didWarnAboutNestedUpdates","getContextForSubtree","parentComponent","scheduleRootUpdate","updateContainerAtExpirationTime","onMountContainer","onUnmountContainer","onUpdateContainer","findHostInstance$1","hostFiber","createContainer","updateContainer","getPublicRootInstance","containerFiber","findHostInstanceWithNoPortals","injectIntoDevTools","devToolsConfig","findFiberByHostInstance","findHostInstanceByFiber","ReactNativeFiberRenderer","findHostInstance","createPortal","NativeMethodsMixin","maybeInstance","NativeMethodsMixin_DEV","_classCallCheck$1","ReactNativeComponent","_React$Component","getInspectorDataForViewTag","traverseOwnerTreeUp","hierarchy","unshift","getOwnerHierarchy","lastNonHostInstance","getHostProps","host","getHostNode","hostNode","createHierarchy","fiberHierarchy","getInspectorData","viewTag","closestInstance","selection","componentOrHandle","hostInstance","computeComponentStackForErrorReporting","roots","ReactNativeRenderer","NativeComponent","containerTag","unmountComponentAtNode","unmountComponentAtNodeAndRemoveContainer","removeRootView","bundleType","rendererPackageName","ReactNativeRenderer$2","ReactNativeRenderer$3","reactNativeRenderer","polyfillObjectProperty","polyfillGlobal","GLOBAL","_shouldPolyfillCollection","__RCTProfileIsProfiling","installConsoleErrorReporter","__fbDisableExceptionsManager","handleError","isFatal","ee","ReactNativeVersionCheck","checkVersions","regeneratorRuntime","defineLazyTimer","Headers","Request","Response","alert","navigator","registerLazyCallableModule","__fetchSegment","SegmentFetcher","fetchSegment","errorObject","code","registerCallableModule","JSInspector","registerAgent","backupName","_shouldActuallyPolyfillES6Collection","collectionName","Collection","_shouldPolyfillES6Collection","guid","toIterator","KIND_KEY","KIND_VALUE","KIND_KEY_VALUE","KEY_PREFIX","SECRET_SIZE_PROP","OLD_IE_HASH_PREFIX","initMap","getIndex","_mapData","setIndex","MapIterator","boundCallback","mapData","kind","_map","_nextIndex","_kind","createIterResultObject","record","getHash","_objectIndex","prefixedKey","_stringIndex","_otherIndex","shouldDelete","isES5","isExtensible","getIENodeHash","uniqueID","documentElement","hashProperty","hashCounter","random","doc","ownerDocument","defaultView","Node","nodeName","KIND_KEY_VAL","ArrayIterator","_iteratedObject","StringIterator","_iteratedString","initSet","exceptionID","reportException","currentExceptionID","reportFatalException","reportSoftException","symbolicateStackTrace","prettyStack","updateExceptionMessage","catch","_errorOriginal","reactConsoleErrorHandler","reportErrorsAsExceptions","getDevServer","isSourcedFromDisk","sourcePath","devServer","bundleLoadedFromServer","stackCopy","foundInternalSource","file","response","json","_cachedDevServerURL","FALLBACK","whatwg","support","searchParams","blob","Blob","formData","arrayBuffer","viewClasses","isDataView","isPrototypeOf","isArrayBufferView","isView","normalizeName","normalizeValue","iteratorFor","headers","append","consumed","bodyUsed","fileReaderReady","reader","onload","onerror","readBlobAsArrayBuffer","FileReader","readAsArrayBuffer","readBlobAsText","readAsText","readArrayBufferAsText","buf","view","chars","bufferClone","Body","_initBody","_bodyInit","_bodyText","_bodyBlob","FormData","_bodyFormData","URLSearchParams","_bodyArrayBuffer","rejected","decode","normalizeMethod","upcased","input","credentials","referrer","form","trim","bytes","decodeURIComponent","parseHeaders","rawHeaders","preProcessedHeaders","bodyInit","status","ok","statusText","redirectStatuses","redirect","init","request","xhr","XMLHttpRequest","getAllResponseHeaders","responseURL","responseText","ontimeout","open","withCredentials","setRequestHeader","send","polyfill","ReactNativeVersion","nativeVersion","reactNativeVersion","major","minor","_formatVersion","patch","prerelease","Op","hasOwn","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","inModule","runtime","wrap","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","Context","_invoke","makeInvokeMethod","tryCatch","GenStateSuspendedStart","GenStateSuspendedYield","GenStateExecuting","GenStateCompleted","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","isGeneratorFunction","genFun","awrap","__await","AsyncIterator","invoke","unwrapped","previousPromise","enqueue","callInvokeWithMethodAndArg","async","doneResult","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","iteratorMethod","skipTempReset","charAt","stop","rootEntry","rootRecord","rval","exception","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","EventTarget","RCTNetworking","base64","BlobManager","isAvailable","addNetworkingHandler","UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE","SUPPORTED_RESPONSE_TYPES","arraybuffer","REQUEST_EVENTS","XHR_EVENTS","XMLHttpRequestEventTarget","interceptor","_interceptor","readyState","upload","_aborted","_hasError","_method","_response","_url","_timedOut","_trackingName","_incrementalEvents","_reset","responseHeaders","_requestId","_cachedResponse","_headers","_responseType","_lowerCaseResponseHeaders","_clearSubscriptions","requestId","requestSent","progress","total","lengthComputable","loaded","setResponseHeaders","setReadyState","responseReceived","dataReceived","__didReceiveDataProgress","timeOutError","loadingFailed","loadingFinished","sub","headerName","trackingName","incrementalEvents","onreadystatechange","onprogress","__didUploadProgress","__didReceiveResponse","__didReceiveData","__didReceiveIncrementalData","__didCompleteResponse","nativeResponseType","sendRequest","__didCreateRequest","abortRequest","lcaseHeaders","responseType","toByteArray","createFromOptions","Commons","CustomEventTarget","EventWrapper","LISTENERS","CAPTURE","BUBBLE","ATTRIBUTE","newNode","defineCustomEventTarget","createEventWrapper","STOP_IMMEDIATE_PROPAGATION_FLAG","HAS_EVENTTARGET_INTERFACE","capture","wrapped","handleEvent","createUniqueKey","toFixed","getAttributeListener","eventTarget","setAttributeListener","EventTargetBase","descripter","CANCELED_FLAG","ORIGINAL_EVENT","wrapperPrototypeDefinition","stopImmediatePropagation","propertyDefinition","Boolean","detail","MissingNativeEventEmitterShim","RCTNetworkingNative","Networking","convertRequestBody","incrementalUpdates","clearCookies","MissingNativeRCTNetworkingShim","throwMissingNativeModule","nativeModuleName","nativeEventEmitterName","_nativeModuleName","_nativeEventEmitterName","nativeModule","_nativeModule","listeners","removeListeners","binaryToBase64","getParts","fromByteArray","lookup","revLookup","Arr","getLens","b64","validLen","placeHoldersLen","lens","_byteLength","tmp","curByte","tripletToBase64","encodeChunk","uint8","extraBytes","maxChunkLength","len2","createFromParts","blobId","_data","BlobRegistry","BlobModule","uuidv4","part","ArrayBufferView","acc","curr","unescape","encodeURI","lastModified","unregister","socketId","addWebSocketHandler","removeWebSocketHandler","sendOverSocket","registry","_parts","contentDisposition","fieldName","WebSocketEvent","WebSocketModule","CONNECTING","OPEN","CLOSING","CLOSED","CLOSE_NORMAL","WEBSOCKET_EVENTS","nextWebSocketId","WebSocket","protocols","unrecognized","origin","_eventEmitter","_socketId","_registerEvents","connect","_close","sendBinary","ping","statusCode","closeReason","_binaryType","ev","_unregisterEvents","binaryType","eventInitDict","File","FileReaderModule","READER_EVENTS","EMPTY","_readyState","_result","readAsDataURL","_setReadyState","encoding","BLOB_URL_PREFIX","BLOB_URI_SCHEME","BLOB_URI_HOST","URL","buttons","AlertAndroid","validButtons","buttonPositive","buttonNegative","buttonNeutral","DialogManagerAndroid","showAlert","buttonKey","buttonClicked","dismissed","onDismiss","RCTAlertManager","AlertManager","callbackOrButtons","prompt","keyboardType","alertWithArgs","cancelButtonKey","destructiveButtonKey","btn","btnDef","RCTLocationObserver","LocationObserver","LocationEventEmitter","updatesEnabled","Geolocation","setRNConfiguration","setConfiguration","requestAuthorization","getCurrentPosition","geo_success","geo_error","geo_options","hasPermission","check","PERMISSIONS","ACCESS_FINE_LOCATION","RESULTS","GRANTED","watchPosition","success","startObserving","watchID","clearWatch","sub1","noWatchers","stopObserving","READ_CALENDAR","WRITE_CALENDAR","CAMERA","READ_CONTACTS","WRITE_CONTACTS","GET_ACCOUNTS","ACCESS_COARSE_LOCATION","RECORD_AUDIO","READ_PHONE_STATE","CALL_PHONE","READ_CALL_LOG","WRITE_CALL_LOG","ADD_VOICEMAIL","USE_SIP","PROCESS_OUTGOING_CALLS","BODY_SENSORS","SEND_SMS","RECEIVE_SMS","READ_SMS","RECEIVE_WAP_PUSH","RECEIVE_MMS","READ_EXTERNAL_STORAGE","WRITE_EXTERNAL_STORAGE","DENIED","NEVER_ASK_AGAIN","permission","checkPermission","rationale","shouldShowRequestPermissionRationale","shouldShowRationale","requestPermission","permissions","requestMultiplePermissions","HeapCapture","captureHeap","nativeCaptureHeap","JSCHeapCapture","captureComplete","SamplingProfiler","poke","token","pokeSamplingProfiler","JSCSamplingProfiler","operationComplete","levelsMap","fatal","warningHandler","RCTLog","logIfNoNativeHook","logToConsole","logFn","setWarningHandler","RCTNativeAppEventEmitter","infoLog","nativeQPLTimestamp","nativePerformanceNow","timespans","extras","cookies","PRINT_TO_CONSOLE","PerformanceLogger","addTimespan","lengthInMs","description","totalTime","startTimespan","startTime","stopTimespan","timespan","endTime","clearCompleted","clearExceptTimespans","previous","currentTimestamp","getTimespans","hasTimespan","logTimespans","addTimespans","newTimespans","labels","setExtra","attemptedValue","getExtras","logExtras","JSDevSupport","JSDevSupportModule","getJSHierarchy","onFailure","ERROR_CODE_VIEW_NOT_FOUND","ERROR_CODE_EXCEPTION","MetroHMRClient","HMRClient","platform","bundleEntry","port","HMRLoadingView","wsHostPort","wsUrl","hmrClient","on","showMessage","RCTRedBox","RedBox","dismiss","RCTExceptionsManager","dismissRedbox","hide","MetroClient","_ws","onclose","onmessage","_data$body","sourceMappingURLs","sourceURLs","injectFunction","nativeInjectHMRUpdate","eval","Events","EE","once","_events","_eventsCount","clearEvent","eventNames","handlers","listenerCount","a5","removeAllListeners","off","prefixed","DevLoadingView","reactDevTools","isAppActive","currentState","connectToDevTools","__REACT_DEVTOOLS_PORT__","resolveRNStyle","RCTAppState","_eventHandlers","change","memoryWarning","initialAppState","eventUpdated","appStateData","app_state","getCurrentAppState","MissingNativeAppStateShim","amd","ReactDevToolsBackend","stacktrace","parseOpera","parseV8OrIE","parseFFOrSafari","extractLocation","columnNumber","parseOpera9","parseOpera11","parseOpera10","inspected","meta","run","nextTick","browser","argv","versions","prependListener","prependOnceListener","cwd","chdir","umask","websocket","onopen","rnStyle","rnStyleMeasure","addBridge","listen","internalInstancesById","idsByInternalInstances","renderers","elementData","reactInternals","$r","_prevSelected","_scrollUpdate","capabilities","scroll","scrollIntoView","dom","editTextContent","_updateScroll","_onScroll","_onClick","_onMouseOver","_onResize","_setState","_setProps","_setContext","_makeGlobal","highlight","highlightMany","_inspectEnabled","getNodeForID","$node","$type","$inst","$0","selectFromDOMNode","scrollToNode","forget","ELEMENT_NODE","parentElement","scrollIntoViewIfNeeded","getNativeFromReactElement","getIDForNode","quiet","offsetFromLeaf","getId","getReactElementFromNative","setInProps","setInState","setInContext","$tmp","canUpdate","_maxListeners","defaultMaxListeners","setMaxListeners","newListener","warned","_cbs","_inspectables","_cid","_listeners","_buffer","_flushHandle","_callers","_paused","_wall","_handleMessage","scheduleFlush","flushBufferWhileIdle","flushBufferSlice","setInspectable","cleaned","cancelFlush","_inspectResponse","_handleCall","toPrimitive","unscopables","gs","__description__","__name__","keyFor","hasInstance","species","foo","bar","trzy","contains","readOnly","_reactFragment","uninspectable","_committedNodes","_isRecording","_recordingStartTime","_agent","_maxActualDuration","_takeCommitSnapshotForRoot","_onIsRecording","_onMountOrUpdate","_onRootCommitted","_onUnmount","memoizedInteractions","committedNodes","_renderers","helpers","checkDCE","Mount","_renderNewRootComponent","reactBuildType","_fiberRoots","getFiberRoots","handleCommitFiberUnmount","handleCommitFiberRoot","setReactInternals","walkTree","onMounted","addRoot","onUnmounted","onUpdated","rootCommitted","onUpdatedProfileTimes","reactDevtoolsAgent","__internals","cleanup","Reconciler","nativeTagToRootNodeID","ComponentTree","getID","getNode","_rootNodeID","parentNode","renderComponent","mountComponent","updateComponent","unmountComponent","performUpdateIfNecessary","receiveComponent","_instancesByReactRootID","_instancesByContainerID","_currentElement","_nativeNode","_hostNode","isReactTopLevelWrapper","_stringText","overrideProps","ReactTypeOfWork","gte","CoroutineComponent","CoroutineHandlerPhase","FunctionComponent","IncompleteClassComponent","LazyComponent","MemoComponent","SimpleMemoComponent","SuspenseComponent","YieldComponent","ReactSymbols","CONCURRENT_MODE_NUMBER","CONCURRENT_MODE_SYMBOL_STRING","DEPRECATED_ASYNC_MODE_SYMBOL_STRING","CONTEXT_CONSUMER_NUMBER","CONTEXT_CONSUMER_SYMBOL_STRING","CONTEXT_PROVIDER_NUMBER","CONTEXT_PROVIDER_SYMBOL_STRING","FORWARD_REF_NUMBER","FORWARD_REF_SYMBOL_STRING","MEMO_NUMBER","MEMO_SYMBOL_STRING","PROFILER_NUMBER","PROFILER_SYMBOL_STRING","STRICT_MODE_NUMBER","STRICT_MODE_SYMBOL_STRING","SUSPENSE_NUMBER","SUSPENSE_SYMBOL_STRING","DEPRECATED_PLACEHOLDER_SYMBOL_STRING","ReactTypeOfSideEffect","elementType","$","te","_reactResult","ne","oe","ie","ae","se","ue","ce","treeBaseDuration","containsHooks","NODE_DEBUG","SEMVER_SPEC_VERSION","src","loose","build","valid","clean","SemVer","compare","compareMain","comparePre","inc","compareIdentifiers","semver","operator","rcompareIdentifiers","compareLoose","rcompare","rsort","gt","lt","neq","lte","Comparator","parseRange","le","fe","pe","de","intersects","Range","range","toComparators","satisfies","maxSatisfying","minSatisfying","validRange","ltr","gtr","outside","coerce","_isBuffer","AssertionError","actual","expected","stackStartFunction","multiline","ignoreCase","Float32Array","Float64Array","generatedMessage","captureStackTrace","fail","equal","notEqual","deepEqual","deepStrictEqual","notDeepEqual","notDeepStrictEqual","strictEqual","notStrictEqual","throws","doesNotThrow","ifError","deprecate","noDeprecation","throwDeprecation","traceDeprecation","showHidden","_extend","customInspect","debuglog","pid","bold","italic","underline","special","boolean","null","date","getHours","getMinutes","getSeconds","getDate","getMonth","copy","readUInt8","super_","onCall","oldName","newName","attr","measuredLayout","getArgs","setArgs","getEvalOrigin","evalOrigin","setEvalOrigin","getFunctionName","getFileName","getLineNumber","getColumnNumber","hideHighlight","refreshMultiOverlay","startInspecting","stopInspecting","_win","_onSelect","_overlay","_multiOverlay","_subs","_inspecting","onHover","onMouseDown","onClick","_button","removeMultiOverlay","COMMENT_NODE","removeOverlay","refresh","innerHTML","border","outline","onclick","monospace","background","tip","family","sizes","normal","nameSpan","borderRight","dimSpan","getBoundingClientRect","borderTop","borderBottom","borderLeft","innerHeight","innerWidth","getComputedStyle","frameElement","sansSerif","small","_currentNodes","boxSizing","useContext","useState","useReducer","useRef","useLayoutEffect","useEffect","useImperativeHandle","useCallback","useMemo","useDebugValue","stackError","readContext","subHooks","currentDispatcherRef","elementID","hooksTree","__registerInspectorAgent","getTimestamp","__inspectorTimestamp","InspectorAgent","Interceptor","agent","_requests","initialPriority","documentURL","frameId","loaderId","initiator","sendEvent","requestHeaders","mimeType","_getMimeType","connectionReused","connectionId","encodedDataLength","securityState","existingData","dataLength","errorText","contentType","NetworkAgent","maxResourceBufferSize","maxTotalBufferSize","setInterceptor","getData","base64Encoded","DOMAIN","eventSender","_eventSender","twoKey","inputs","_currentlyFocusedID","currentlyFocusedField","textFieldID","dispatchViewManagerCommand","AndroidTextInput","Commands","registerInput","unregisterInput","isTextInput","JSCompiler_inline_result","pluginModule$jscomp$0","eventName$jscomp$0","JSCompiler_temp","JSCompiler_temp$jscomp$0","events$jscomp$0","fiber$jscomp$0","props$jscomp$0","node$jscomp$0","interruptedWork$jscomp$0","workInProgress$jscomp$0","root$jscomp$0","returnFiber$jscomp$0","callbackID$jscomp$0","finishedWork$jscomp$0","current$jscomp$0","effectTag$jscomp$0","current$jscomp$1","instance$jscomp$0","prevProps$jscomp$0","prevState$jscomp$0","instance$jscomp$1","TVNavigationEventEmitter","__nativeTVNavigationEventListener","__nativeTVNavigationEventEmitter","hasTouches","hasChangedTouches","DummyTouchableNativeFeedback","SelectableBackground","SelectableBackgroundBorderless","Ripple","canUseNativeForeground","TimerMixin","createReactClass","ensurePositiveDelayProps","PRESS_RETENTION_OFFSET","activeOpacity","tvParallaxProperties","anim","Value","_getChildStyleOpacityWithDefault","_opacityInactive","setOpacityTo","timing","toValue","easing","inOut","quad","useNativeDriver","_opacityActive","onPressIn","onPressOut","delayPressIn","delayLongPress","delayPressOut","childStyle","AnimatedImplementation","createAnimatedComponent","AnimatedEvent","attachNativeEvent","AnimatedAddition","AnimatedDiffClamp","AnimatedDivision","AnimatedInterpolation","AnimatedModulo","AnimatedMultiplication","AnimatedNode","AnimatedProps","AnimatedSubtraction","AnimatedTracking","AnimatedValue","AnimatedValueXY","DecayAnimation","SpringAnimation","TimingAnimation","subtract","divide","multiply","modulo","modulus","diffClamp","_combineCallbacks","maybeVectorAnim","configX","configY","parallel","stopTogether","spring","animatedValue","configuration","singleValue","singleConfig","stopTracking","track","animate","stopAnimation","resetAnimation","_startNativeLoop","iterations","_isUsingNativeDriver","decay","sequence","animations","finished","animation","doneCount","hasEnded","endResult","delay","time","stagger","loop","isFinished","iterationsSoFar","restart","forkEvent","__addListener","unforkEvent","__removeListener","argMapping","animatedEvent","__isNative","__getHandler","ValueXY","Interpolation","__PropsOnlyForTests","NativeAnimatedHelper","shouldUseNativeDriver","viewRef","eventMappings","traverse","__makeNative","nativeEventPath","animatedValueTag","__getNativeTag","API","addAnimatedEventToView","removeAnimatedEventFromView","_argMapping","_callListeners","_attachedEvent","_validateMapping","recMapping","recEvt","mappingKey","AnimatedWithChildren","NativeAnimatedAPI","_uniqueId","_flush","rootNode","animatedStyles","findAnimatedStyles","__getChildren","animatedStyle","_startingValue","_value","_offset","_animation","_startListeningToNativeValueUpdates","_updateValue","setAnimatedNodeValue","setAnimatedNodeOffset","flattenAnimatedNodeOffset","extractAnimatedNodeOffset","_stopListeningForNativeValueUpdates","__nativeAnimatedValueListener","startListeningToAnimatedNodeValue","nativeEventEmitter","stopListeningToAnimatedNodeValue","__getValue","__isInteraction","createInteractionHandle","previousAnimation","clearInteractionHandle","_tracking","__detach","tracking","flush","linear","createInterpolation","outputRange","createInterpolationFromStringOutputRange","checkInfiniteRange","inputRange","checkValidInputRange","extrapolateLeft","extrapolate","extrapolateRight","findRange","interpolate","inputMin","inputMax","outputMin","outputMax","colorToRgba","stringShapeRegex","checkPattern","outputRanges","interpolations","shouldRound","isRgbOrRgba","rounded","_parent","_config","_interpolation","parentValue","__addChild","__removeChild","degrees","validateInterpolation","__transformDataType","__createInterpolation","__nativeTag","dropAnimatedNode","assertNativeAnimatedModule","nativeTag","generateNewNodeTag","createAnimatedNode","__getNativeConfig","NativeAnimatedModule","__nativeAnimatedNodeTagCount","__nativeAnimationIdCount","connectAnimatedNodes","parentTag","disconnectAnimatedNodes","startAnimatingNode","animationId","nodeTag","endCallback","connectAnimatedNodeToView","disconnectAnimatedNodeFromView","eventMapping","animatedNodeTag","STYLES_WHITELIST","TRANSFORM_WHITELIST","SUPPORTED_INTERPOLATION_PARAMS","addWhitelistedStyleProp","addWhitelistedTransformProp","addWhitelistedInterpolationParam","param","validateTransform","configs","validateStyles","generateNewAnimationId","_warnedMissingNativeAnimated","__attach","TaskQueue","_emitter","DEBUG_DELAY","DEBUG","interactionStart","interactionComplete","runAfterInteractions","task","tasks","_scheduleUpdate","_taskQueue","enqueueTasks","cancel","cancelTasks","_inc","_addInteractionSet","_deleteInteractionSet","setDeadline","_deadline","_interactionSet","onMoreTasks","_nextUpdateHandle","_processUpdate","interactionCount","nextInteractionCount","hasTasksToProcess","processNext","getEventLoopRunningTime","_onMoreTasks","_queueStack","popable","_getCurrentQueue","tasksToCancel","gen","_genPromise","stackIdx","queueStackSize","_a","_b","_min","_max","_lastValue","_modulus","AnimatedStyle","__getAnimatedValue","_animatedView","__disconnectAnimatedView","__connectAnimatedView","animatedView","nativeViewTag","propsConfig","AnimatedTransform","_style","updatedStyle","_walkStyleAndGetValues","_walkStyleAndGetAnimatedValues","styleConfig","styleKey","transforms","_transforms","transConfigs","animationClass","animationConfig","_animationClass","_animationConfig","_useNativeDriver","__getNativeAnimationConfig","valueIn","setOffset","flattenOffset","extractOffset","jointCallback","Animation","_deceleration","deceleration","_velocity","velocity","isInteraction","__iterations","fromValue","onUpdate","onEnd","__active","_fromValue","_onUpdate","__onEnd","_startTime","__startNativeAnimation","_animationFrame","exp","__debouncedOnEnd","__nativeId","SpringConfig","withDefault","_overshootClamping","overshootClamping","_restDisplacementThreshold","restDisplacementThreshold","_restSpeedThreshold","restSpeedThreshold","_initialVelocity","_lastVelocity","_toValue","_delay","stiffness","damping","mass","bounciness","speed","tension","friction","_stiffness","_damping","_mass","springConfig","fromBouncinessAndSpeed","fromOrigamiTensionAndFriction","initialVelocity","_startPosition","_lastPosition","_lastTime","_frameTime","internalState","getInternalState","lastPosition","lastVelocity","lastTime","_timeout","MAX_STEPS","deltaTime","v0","zeta","omega0","omega1","x0","envelope","isOvershooting","isVelocity","isDisplacement","stiffnessFromOrigamiValue","oValue","dampingFromOrigamiValue","startValue","endValue","projectNormal","linearInterpolation","quadraticOutInterpolation","b3Friction1","b3Friction2","b3Friction3","b3Nobounce","bouncyTension","bouncyFriction","_easeInOut","easeInOut","ease","_easing","_duration","frameDuration","frames","dt","bezier","_bezier","NEWTON_ITERATIONS","NEWTON_MIN_SLOPE","SUBDIVISION_PRECISION","SUBDIVISION_MAX_ITERATIONS","kSplineTableSize","kSampleStepSize","float32ArraySupported","aA1","aA2","calcBezier","aT","getSlope","binarySubdivide","aA","aB","mX1","mX2","currentX","currentT","newtonRaphsonIterate","aGuessT","currentSlope","mY1","mY2","sampleValues","getTForX","intervalStart","currentSample","lastSample","dist","guessForT","initialSlope","BezierEasing","AnimatedComponent","_invokeAnimatedPropsCallbackOnMount","_eventDetachers","_animatedPropsCallback","_component","__skipSetNativeProps_FOR_TESTS_ONLY","_propsAnimated","_setComponentRef","_detachNativeEvents","_attachProps","setNativeView","_attachNativeEvents","scrollableNode","getScrollableNode","oldPropsAnimated","_prevComponent","ImageProps","ImageViewManager","RCTImageView","statics","getSize","failure","prefetch","prefetchImage","ImageSourcePropType","defaultSource","blurRadius","capInsets","resizeMethod","onLoadStart","onProgress","onPartialLoad","onLoad","onLoadEnd","ImageURISourcePropType","bundle","_invariant","MIXINS_KEY","ReactPropTypeLocationNames","ReactComponent","injectedMixins","ReactClassInterface","ReactClassStaticInterface","RESERVED_SPEC_KEYS","mixSpecIntoComponent","validateTypeDef","createMergedResultFunction","mixStaticSpecIntoComponent","autobind","typeDef","validateMethodOverride","isAlreadyDefined","specPolicy","ReactClassMixin","spec","typeofSpec","isMixinValid","autoBindPairs","isReactClassMethod","shouldAutoBind","createChainedFunction","isReserved","mergeIntoWithNoDuplicateKeys","mergedResult","chainedFunction","IsMountedPreMixin","IsMountedPostMixin","__didWarnIsMounted","ReactClassComponent","initialState","ScrollResponder","ScrollViewStickyHeader","InternalScrollViewType","dismissKeyboard","processDecelerationRate","AndroidScrollView","AndroidHorizontalScrollContentView","AndroidHorizontalScrollView","RCTScrollView","RCTScrollContentView","automaticallyAdjustContentInsets","contentInset","contentOffset","bounces","bouncesZoom","alwaysBounceHorizontal","alwaysBounceVertical","centerContent","contentContainerStyle","decelerationRate","horizontal","indicatorStyle","invertStickyHeaders","directionalLockEnabled","canCancelContentTouches","keyboardDismissMode","keyboardShouldPersistTaps","maintainVisibleContentPosition","minIndexForVisible","autoscrollToTopThreshold","maximumZoomScale","minimumZoomScale","nestedScrollEnabled","onMomentumScrollBegin","onMomentumScrollEnd","onScroll","onScrollBeginDrag","onScrollEndDrag","onContentSizeChange","pagingEnabled","pinchGestureEnabled","scrollEnabled","scrollEventThrottle","scrollIndicatorInsets","scrollsToTop","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","stickyHeaderIndices","snapToInterval","snapToAlignment","zoomScale","contentInsetAdjustmentBehavior","refreshControl","endFillColor","scrollPerfTag","overScrollMode","DEPRECATED_sendUpdatedChildFrames","scrollBarThumbImage","_scrollAnimatedValue","_scrollAnimatedValueAttachment","_stickyHeaderRefs","_headerLayoutYs","scrollResponderMixinGetInitialState","layoutHeight","_updateAnimatedNodeAttachment","_scrollViewRef","getScrollResponder","getInnerViewNode","_innerViewRef","scrollTo","animated","scrollResponderScrollTo","scrollToEnd","scrollResponderScrollToEnd","scrollWithoutAnimationTo","flashScrollIndicators","scrollResponderFlashScrollIndicators","_getKeyForIndex","_setStickyHeaderRef","_onStickyHeaderLayout","layoutY","layout","indexOfIndex","previousHeaderIndex","previousHeader","setNextHeaderY","_handleScroll","isTouching","scrollResponderHandleScroll","_handleLayout","_handleContentOnLayout","_setScrollViewRef","_setInnerViewRef","ScrollViewClass","ScrollContentContainerViewClass","contentContainerHorizontal","childLayoutProps","contentSizeChangeProps","hasStickyHeaders","contentContainer","baseStyle","baseHorizontal","baseVertical","scrollResponderHandleMomentumScrollBegin","scrollResponderHandleMomentumScrollEnd","scrollResponderHandleResponderGrant","onResponderReject","scrollResponderHandleResponderReject","scrollResponderHandleResponderRelease","scrollResponderHandleTerminate","scrollResponderHandleTerminationRequest","scrollResponderHandleScrollBeginDrag","scrollResponderHandleScrollEndDrag","onScrollShouldSetResponder","scrollResponderHandleScrollShouldSetResponder","scrollResponderHandleStartShouldSetResponder","onStartShouldSetResponderCapture","scrollResponderHandleStartShouldSetResponderCapture","onTouchEnd","scrollResponderHandleTouchEnd","onTouchMove","scrollResponderHandleTouchMove","onTouchStart","scrollResponderHandleTouchStart","onTouchCancel","scrollResponderHandleTouchCancel","sendMomentumEvents","TypedScrollView","FrameRateLogger","Subscribable","ScrollViewManager","IS_ANIMATING_TOUCH_START_THRESHOLD_MS","ScrollResponderMixin","lastMomentumScrollBeginTime","lastMomentumScrollEndTime","observedScrollSinceBecomingResponder","becameResponderWhileAnimating","currentlyFocusedTextInput","scrollResponderIsAnimating","keyboardNeverPersistTaps","onScrollResponderKeyboardDismissed","beginScroll","endScroll","timeSinceLastMomentumScrollEnd","isAnimating","scrollResponderGetScrollableNode","scrollResponderScrollWithoutAnimationTo","offsetX","offsetY","scrollResponderZoomTo","rect","zoomToRect","scrollResponderScrollNativeHandleToKeyboard","nodeHandle","additionalOffset","preventNegativeScrollOffset","additionalScrollOffset","scrollResponderTextInputFocusError","scrollResponderInputMeasureAndScrollToKeyboard","keyboardScreenY","keyboardWillOpenTo","endCoordinates","screenY","scrollOffsetY","addListenerOn","scrollResponderKeyboardWillShow","scrollResponderKeyboardWillHide","scrollResponderKeyboardDidShow","scrollResponderKeyboardDidHide","onKeyboardWillShow","onKeyboardWillHide","onKeyboardDidShow","onKeyboardDidHide","setGlobalOptions","optionsClone","reportStackTraces","setContext","KeyboardObserver","KeyboardEventEmitter","scheduleLayoutAnimation","configureNext","Types","TypesEnum","easeInEaseOut","easeIn","easeOut","keyboard","PropertiesEnum","scaleXY","Properties","animType","springDamping","configType","checkConfig","onAnimationDidEnd","configureNextLayoutAnimation","creationProp","Presets","_subscribableSubscriptions","AnimatedView","measured","nextHeaderLayoutY","_onLayout","inverted","scrollViewHeight","stickStartPoint","collisionPoint","scrollAnimatedValue","PlatformViewPropTypes","AccessibilityComponentTypes","AccessibilityTraits","accessibilityViewIsModal","accessibilityElementsHidden","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","TVViewPropTypes","isTVSelectable","tvParallaxShiftDistanceX","tvParallaxShiftDistanceY","tvParallaxTiltAngle","tvParallaxMagnification","setter","_setter","_clearer","clearer","_timeouts","_clearTimeout","_setTimeout","_intervals","_clearInterval","_setInterval","_immediates","_clearImmediate","_setImmediate","_rafs","_cancelAnimationFrame","_requestAnimationFrame","getName","RCTDatePickerIOS","_picker","_onChange","nativeTimeStamp","onDateChange","propsTimeStamp","initialDate","picker","datePickerIOS","locale","maximumDate","minimumDate","minuteInterval","timeZoneOffsetInMinutes","DefaultProps","MetroListView","numColumns","_listRef","scrollToIndex","scrollToItem","scrollToOffset","recordInteraction","_hasWarnedLegacy","_virtualizedListPairs","_captureRef","_getItem","kk","item","_getItemCount","_keyExtractor","keyExtractor","_renderItem","renderItem","columnWrapperStyle","_checkProps","viewabilityConfigCallbackPairs","viewabilityConfig","onViewableItemsChanged","_createOnViewableItemsChanged","getItem","getItemCount","legacyImplementation","changed","viewableItems","_pushMultiColumnViewable","_computeState","ds","DataSource","rowHasChanged","itemA","itemB","sectionHeaderHasChanged","getSectionHeaderData","dataBlob","sectionID","sectionHeaderData","_renderFooter","_renderRow","rowID","highlightRow","_renderSectionHeader","section","renderSectionHeader","_renderSeparator","sID","rID","FooterComponent","sections","SeparatorComponent","sectionIn","cloneWithRowsAndSections","cloneWithRows","renderScrollComponent","onRefresh","refreshing","InternalListViewType","ListViewDataSource","RCTScrollViewManager","StaticRenderer","cloneReferencedElement","isEmpty","DEFAULT_PAGE_SIZE","DEFAULT_INITIAL_ROWS","DEFAULT_SCROLL_RENDER_AHEAD","DEFAULT_END_REACHED_THRESHOLD","DEFAULT_SCROLL_CALLBACK_THROTTLE","_childFrames","_sentEndForContentLength","_scrollComponent","_prevRenderedRowsCount","_visibleRows","scrollProperties","dataSource","renderSeparator","renderRow","initialListSize","onEndReached","onEndReachedThreshold","pageSize","renderFooter","renderHeader","scrollRenderAheadDistance","onChangeVisibleRows","stickySectionHeadersEnabled","enableEmptySections","getMetrics","contentLength","totalRows","getRowAndSectionCount","getRowCount","renderedRows","curRenderedRowsCount","visibleRows","highlightedRow","visibleLength","_measureAndUpdateScrollProps","_renderMoreRowsIfNeeded","_onRowHighlighted","bodyComponents","allRowIDs","rowIdentities","rowCount","stickySectionHeaderIndices","footer","totalIndex","sectionIdx","sectionIdentities","rowIDs","rowIdx","comboID","shouldUpdateRow","rowShouldUpdate","getRowData","adjacentRowHighlighted","separator","_setScrollComponentRef","_onContentSizeChange","scrollComponent","calculateChildFrames","_updateVisibleRows","_maybeCallOnEndReached","_getDistanceFromEnd","distanceFromEnd","_pageInNewRows","rowsToRender","updatedFrames","newFrame","isVertical","visibleMin","visibleMax","visibilityChanged","changedRows","visibleSection","rowVisible","layoutMeasurement","contentSize","updatedChildFrames","defaultGetRowData","defaultGetSectionHeaderData","_rowHasChanged","_getRowData","_sectionHeaderHasChanged","_getSectionHeaderData","_dataBlob","_dirtyRows","_dirtySections","_cachedRowCount","rowIds","s1","newSource","countRows","_calculateDirtyArrays","sectionIndex","rowIndex","needsUpdate","accessIndex","prevDataBlob","prevSectionIDs","prevRowIDs","prevSectionsHash","keyedDictionaryFromArray","prevRowsHash","dirty","sIndex","rIndex","cloneRef","originalRef","AndroidSwipeRefreshLayout","RefreshLayoutConsts","Constants","SIZE","NativeRefreshControl","_nativeRef","_lastNativeRefreshing","_onRefresh","Batchinator","FillRateHelper","ViewabilityHelper","computeWindowedRenderLimits","_usedIndexForKey","_keylessItemComponentName","veryLast","_getFrameMetricsApprox","_footerLength","_scrollMetrics","_scrollRef","getItemLayout","onScrollToIndexFailed","viewOffset","viewPosition","_highestMeasuredFrameIndex","averageItemLength","_averageCellLength","highestMeasuredFrameIndex","itemCount","_nestedChildLists","childList","_viewabilityTuples","viewabilityHelper","_updateViewableItems","virtualizedList","getScrollMetrics","_getScrollMetrics","getOutermostParentListRef","_getOutermostParentListRef","getNestedChildState","_getNestedChildState","registerAsNestedChild","_registerAsNestedChild","unregisterAsNestedChild","_unregisterAsNestedChild","virtualizedCell","cellKey","_hasMore","_isNestedWithSameOrientation","existingChildData","childListsInCell","_cellKeysToChildListKeys","_hasInteracted","_onUpdateSeparators","_cellRefs","updateSeparatorProps","_frames","_hasDataChangedSinceEndReached","_hasWarned","_headerLength","_indicesToKeys","_hasDoneInitialScroll","_offsetFromParentVirtualizedList","_prevParentOffset","dOffset","_totalCellLength","_totalCellsMeasured","_captureScrollRef","_defaultRenderScrollComponent","progressViewOffset","_onCellUnmount","inLayout","measureLayoutRelativeToContainingList","_selectLength","_scheduleCellsToRenderUpdate","_onLayoutEmpty","_onLayoutFooter","_onLayoutHeader","initialScrollIndex","_convertParentScrollMetrics","metrics","_selectOffset","perf","prevDt","_fillRateHelper","activate","_computeBlankness","_onScrollBeginDrag","tuple","_onScrollEndDrag","_onMomentumScrollEnd","_updateCellsToRender","isVirtualizationDisabled","_isVirtualizationDisabled","renderAhead","maxToRenderPerBatch","newFirst","newLast","cellKeyForIndex","childListKeys","someChildHasMore","hasMore","_createViewToken","isViewable","_getFrameMetrics","frameType","windowSize","_updateCellsToRenderBatcher","updateCellsBatchingPeriod","initialNumToRender","storedState","listKey","_getCellKey","abort","deactivateAndFlush","stickyIndicesFromProps","inversionStyle","CellRendererComponent","ItemSeparatorComponent","stickyOffset","ListHeaderComponent","prevCellKey","_onCellLayout","disableVirtualization","nestedContext","flatStyles","ListEmptyComponent","ListFooterComponent","horizontallyInverted","verticallyInverted","spacerKey","lastInitialIndex","_pushCells","firstAfterInitial","insertedStickySpacer","initBlock","stickyBlock","leadSpace","trailSpace","firstSpace","lastFrame","endFrame","tailSpacerLength","scrollProps","_renderDebugOverlay","extraData","resetViewableIndices","computeBlankness","scrollMetrics","framesInLayout","windowTop","frameLast","windowLen","visTop","visLen","hiPri","scrollingThreshold","distTop","distBottom","schedule","CellRenderer","separatorProps","highlighted","leadingItem","_separators","onUpdateSeparators","unhighlight","updateProps","onUnmount","fillRateHelper","itemSeparator","cellStyle","VirtualizedCellWrapper","_taskHandle","timeoutHandle","Info","any_blank_count","any_blank_ms","any_blank_speed_sum","mostly_blank_count","mostly_blank_ms","pixels_blank","pixels_sampled","pixels_scrolled","total_time_spent","sample_count","_minSampleCount","_sampleRate","sampleRate","minSampleCount","getFrameMetrics","_anyBlankStartTime","_info","_mostlyBlankStartTime","_samplesStartTime","_resetData","derived","avg_blankness","avg_speed","avg_speed_when_any_blank","any_blank_per_min","any_blank_time_frac","mostly_blank_per_min","mostly_blank_time_frac","scrollSpeed","blankTop","firstFrame","blankBottom","bottomEdge","blankness","viewAreaCoveragePercentThreshold","_timers","_viewableIndices","_viewableItems","scrollOffset","viewportHeight","renderRange","itemVisiblePercentThreshold","viewAreaMode","viewablePercentThreshold","viewableIndices","firstVisible","_isViewable","createViewToken","waitForInteraction","computeViewableItems","minimumViewTime","_onUpdateSync","viewableIndicesToCheck","prevItems","nextItems","viewable","itemLength","_isEntirelyVisible","pixels","_getPixelsVisible","percent","visibleHeight","elementsThatOverlapOffsets","offsets","outLength","trailingOffset","newRangeCount","getFrameMetricsApprox","visibleBegin","visibleEnd","overscanLength","leadFactor","fillPreference","overscanBegin","overscanEnd","lastItemOffset","overscanFirst","overscanLast","newCellCount","maxNewCells","firstWillAddMore","firstShouldIncrement","lastWillAddMore","lastShouldIncrement","VirtualizeUtils","ensureComponentIsNative","_viewRef","imageStyle","imageRef","RCTImageEditingManager","ImageEditingManager","cropData","cropImage","RCTImageStoreManager","ImageStoreManager","hasImageForTag","removeImageForTag","base64ImageData","addImageFromBase64","getBase64ForTag","RCTInputAccessoryView","_frame","_onKeyboardChange","_relativeKeyboardHeight","keyboardFrame","keyboardY","keyboardVerticalOffset","behavior","bottomHeight","heightStyle","RCTMaskedView","_hasWarnedInvalidRenderMask","maskElement","otherViewProps","AppContainer","RCTModalHostView","ModalEventEmitter","ModalManager","uniqueModalIdentifier","_confirmProps","_identifier","_eventSubscription","modalID","containerStyles","animationType","presentationStyle","innerChildren","rootTag","hardwareAccelerated","onRequestClose","onShow","modal","_shouldSetResponder","supportedOrientations","onOrientationChange","side","isRTL","inspector","mainKey","_subscription","Inspector","_mainRef","updateInspectedViewTag","yellowBox","innerView","appContainer","WrapperComponent","install","InspectorOverlay","InspectorPanel","findRenderers","allRenderers","touchedViewTag","inspectorData","attachToDevtools","_hideWait","hlSub","hideSub","devtoolsAgent","panelPos","inspecting","perfing","inspectedViewTag","networking","hierarchyItem","pointerY","onRequestRerenderApp","panelContainerStyle","onTouchViewTag","panelContainer","setPerfing","setInspecting","setSelection","setTouchTargeting","setNetworking","ElementBox","findViewForTouchEvent","findSubviewIn","shouldSetResponser","BorderBox","resolveBoxStyle","frameStyle","contentStyle","box","subs","capFirst","ElementProperties","NetworkOverlay","PerformanceOverlay","waitingText","contents","properties","waiting","renderWaiting","devtoolsIsOpen","buttonRow","touchTargeting","pressed","buttonPressed","buttonText","BoxInspector","StyleInspector","mapWithSeparator","openFileInEditor","openFileButton","fileNameShort","openButton","openButtonTitle","breadcrumb","breadItem","selected","breadItemText","breadSep","col","blank","marginLabel","innerText","BoxContainer","titleStyle","boxText","noStyle","DEFAULT_PROPS","underlayColor","onShowUnderlay","onHideUnderlay","testOnly_pressed","_isMounted","extraChildStyle","extraUnderlayStyle","_hideTimeout","_showUnderlay","_hideUnderlay","_hasPressHandler","itemRenderer","spacerRenderer","mapped","WebSocketInterceptor","XHRInterceptor","LISTVIEW_CELL_HEIGHT","SEPARATOR_THICKNESS","nextXHRId","_detailViewItems","_listViewDataSource","r1","r2","newDetailInfo","detailRowID","_listViewHighlighted","_listViewHeight","_captureRequestListView","_captureDetailScrollView","_listViewOnLayout","_closeButtonClicked","_socketIdMap","_xhrIdMap","isInterceptorEnabled","setOpenCallback","_index","xhrIndex","_xhr","_genDetailViewItem","_scrollToBottom","setRequestHeaderCallback","_getRequestIndexByXHRID","networkInfo","setSendCallback","dataSent","setHeaderReceivedCallback","responseContentType","responseSize","setResponseCallback","enableInterception","setConnectCallback","socketIndex","_webSocket","setCloseCallback","messages","setOnMessageCallback","setOnCloseCallback","serverClose","setOnErrorCallback","serverError","_enableXHRInterception","_enableWebSocketInterception","disableInterception","rowData","urlCellViewStyle","urlEvenCellView","methodCellViewStyle","methodEvenCellView","urlOddCellView","methodOddCellView","_pressRow","tableRow","cellText","_getTypeShortName","_listView","scrollResponder","scrollY","listRef","_scrollToTop","_scrollView","scrollRef","detailViewItem","requestItem","detailViewRow","detailViewText","detailKeyCellView","detailValueCellView","_getStringByValue","closeButton","clostButtonText","detailScrollView","listViewTitle","urlTitleCellView","methodTitleCellView","listView","_renderSeperator","RCTWebSocketModule","originalRCTWebSocketConnect","originalRCTWebSocketSend","originalRCTWebSocketSendBinary","originalRCTWebSocketClose","closeCallback","sendCallback","connectCallback","onOpenCallback","onMessageCallback","onErrorCallback","onCloseCallback","setOnOpenCallback","_arrayBufferToString","originalXHROpen","originalXHRSend","originalXHRSetRequestHeader","openCallback","requestHeaderCallback","headerReceivedCallback","responseCallback","contentTypeString","getResponseHeader","contentLengthString","perfLogs","YellowBoxList","YellowBoxRegistry","_handleDismiss","category","_handleDismissAll","observe","unsubscribe","patterns","addIgnorePatterns","registerWarning","disableYellowBox","setDisabled","YellowBoxButton","YellowBoxInspector","YellowBoxListRow","YellowBoxStyle","VIEWPORT_RATIO","MAX_ITEMS","GUTTER","HEIGHT","selectedCategory","_handleInspectorDismiss","_handleInspectorMinimize","_handleRowPress","selectedWarnings","warnings","listStyle","dismissAll","onDismissAll","safeArea","getBackgroundColor","RCTSafeAreaView","YellowBoxPressable","getTextColor","_handlePressIn","_handlePressOut","getHighlightColor","getDividerColor","YellowBoxCategory","YellowBoxInspectorFooter","YellowBoxInspectorHeader","YellowBoxInspectorSourceMapStatus","YellowBoxInspectorStackFrame","selectedIndex","_handleSelectIndex","bodyContent","bodyHeading","bodyHeadingText","bodyText","substitutionText","bodySection","symbolicated","getAvailableStack","onMinimize","_handleSymbolication","_cancelSymbolication","_symbolication","symbolicate","UTFSequence","SUBSTITUTION","BOM","categoryParts","contentParts","substitutionOffsets","formatString","formatStringParts","substitutionCount","substitutions","categoryString","contentString","substitutionIndex","formatStringPart","substitution","remainingArgs","substitutionStyle","lastOffset","prevOffset","prevPart","substititionPart","lastPart","BULLET","BULLET_SP","MIDDOT","MIDDOT_SP","MIDDOT_KATAKANA","MDASH","MDASH_SP","NDASH","NDASH_SP","NBSP","PIZZA","TRIANGLE_LEFT","TRIANGLE_RIGHT","prevIndex","titleText","onSelectIndex","headerTitle","headerTitleText","YellowBoxInspectorHeaderButton","headerButton","headerButtonText","YellowBoxImageSource","image","alertTriangle","loader","pending","_updateAnimation","frameName","frameLocation","getFrameLocation","column","queryIndex","query","YellowBoxWarning","_handlePress","prevWarning","metaText","YellowBoxSymbolication","createStack","aborted","updateStatus","getCacheKey","sanitize","maybeStack","maybeFrame","observers","ignorePatterns","projection","updateTimeout","isWarningIgnored","handleUpdate","filtered","observer","newPatterns","doLeftAndRightSwapInRTL","allowRTL","forceRTL","swapLeftAndRightInRTL","RCTNavigatorManager","NavigatorManager","StaticContainer","TRANSITIONER_REF","__uid","getuid","NavigatorTransitionerIOS","requestSchedulingJavaScriptNavigation","SystemIconLabels","edit","save","reply","organize","bookmarks","camera","trash","play","pause","rewind","undo","redo","SystemIcons","initialRoute","titleImage","passProps","backButtonIcon","backButtonTitle","leftButtonIcon","leftButtonTitle","leftButtonSystemIcon","onLeftButtonPress","rightButtonIcon","rightButtonTitle","rightButtonSystemIcon","onRightButtonPress","wrapperStyle","navigationBarHidden","shadowHidden","barTintColor","barStyle","titleTextColor","translucent","itemWrapperStyle","interactivePopGestureEnabled","popN","replaceAtIndex","replacePrevious","replacePreviousAndPop","resetTo","popToRoute","popToTop","_enableTVEventHandler","_disableTVEventHandler","idStack","routeStack","requestedTopOfStack","observedTopOfStack","toIndex","makingNavigatorRequest","updatingAllIndicesAtOrBeyond","_toFocusOnNavigationComplete","_handleFocusRequest","_getFocusEmitter","_focusEmitter","focusEmitter","onFocusRequested","_tryLockNavigator","requestSchedulingNavigation","acquiredLock","_handleNavigatorStackChanged","newObservedTopOfStack","stackLength","wasWaitingForConfirmation","_eliminateUnneededChildren","route","nextStack","nextIDStack","newRequestedTopOfStack","nextRouteStack","indexOfRoute","numToPop","_handleNavigationComplete","_routeToStackItem","routeArg","shouldUpdateChild","stackItem","_renderNavigationStackItems","shouldRecurseToNavigator","transitioner","vertical","RCTNavigator","RCTNavigatorItem","PickerAndroid","itemStylePropType","pickerStyleType","MODE_DIALOG","MODE_DROPDOWN","PickerItem","Item","selectedValue","onValueChange","itemStyle","RCTPickerIOS","PickerIOSItem","pickerIOS","textColor","RCTProgressView","progressViewStyle","progressTintColor","trackTintColor","progressImage","trackImage","progressView","VirtualizedSectionList","_wrapperListRef","scrollToLocation","getListRef","List","itemIndex","toIndexParams","_subExtractor","_convertViewable","_onViewableItemsChanged","infoIndex","renderSectionFooter","_getSeparatorComponent","SectionSeparatorComponent","leadingSection","_onUpdateSeparator","trailingItem","trailingSection","childProps","defaultKeyExtractor","isLastItemInList","isLastItemInSection","ItemWithSeparator","leadingSeparatorProps","LeadingSeparatorComponent","onUpdateSeparator","leadingSeparator","itemIdx","RCTSegmentedControl","SEGMENTED_CONTROL_REFERENCE","momentary","segmentedControl","RCTSlider","slider","userEvent","fromUser","onSlidingComplete","SliderWithRef","minimumValue","maximumValue","TestModule","RCTSnapshot","onDefaultAction","verifySnapshot","markTestPassed","testIdentifier","onSnapshotReady","RCTSwitch","_rctSwitch","platformProps","onTintColor","rctSwitchIOS","StatusBarManager","mergePropsStack","propsStack","defaultValues","createStackEntry","hidden","transition","showHideTransition","networkActivityIndicatorVisible","_stackEntry","_updatePropsStack","_updateImmediate","_currentValues","mergedProps","_propsStack","_defaultProps","setStyle","setHidden","setNetworkActivityIndicatorVisible","setColor","setTranslucent","currentHeight","SwipeableRow","_flatListRef","_shouldBounceFirstRowOnMount","openRowKey","slideoutView","renderQuickActions","shouldBounceOnMount","_getMaxSwipeDistance","_onOpen","_onClose","_setListViewScrollable","_setListViewNotScrollable","_setListViewScrollableTo","bounceFirstRowOnMount","maxSwipeDistance","IS_RTL","CLOSED_LEFT_POSITION","HORIZONTAL_SWIPE_DISTANCE_THRESHOLD","HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD","SLOW_SPEED_SWIPE_FACTOR","SWIPE_DURATION","ON_MOUNT_BOUNCE_DELAY","ON_MOUNT_BOUNCE_DURATION","RIGHT_SWIPE_BOUNCE_BACK_DISTANCE","RIGHT_SWIPE_BOUNCE_BACK_DURATION","RIGHT_SWIPE_THRESHOLD","_panResponder","_previousLeft","isOpen","preventSwipeRight","onOpen","onSwipeEnd","onSwipeStart","swipeThreshold","currentLeft","isSwipeableViewRendered","rowHeight","onMoveShouldSetPanResponderCapture","_handleMoveShouldSetPanResponderCapture","onPanResponderGrant","_handlePanResponderGrant","onPanResponderMove","_handlePanResponderMove","onPanResponderRelease","_handlePanResponderEnd","onPanResponderTerminationRequest","_onPanResponderTerminationRequest","onPanResponderTerminate","onShouldBlockNativeResponder","gestureState","_animateBounceBack","_animateToClosedPosition","slideOutView","slideOutContainer","swipeableView","_onSwipeableViewLayout","panHandlers","dy","_isValidSwipe","_isSwipingExcessivelyRightFromClosedPosition","_isSwipingRightFromClosed","_swipeSlowSpeed","_swipeFullSpeed","gestureStateDx","dx","_animateTo","_animateToOpenPosition","_animateToOpenPositionWith","distMoved","_animateToClosedPositionDuringBounce","swipeBounceBackDistance","_shouldAnimateRemainder","horizontalDistance","TypedSwipeableRow","TouchHistoryMath","currentCentroidXOfTouchesChangedAfter","currentCentroidYOfTouchesChangedAfter","previousCentroidXOfTouchesChangedAfter","previousCentroidYOfTouchesChangedAfter","currentCentroidX","currentCentroidY","_initializeGestureState","moveX","moveY","y0","_accountsForMovesUpTo","_updateGestureStateOnMove","movedAfter","prevX","prevY","nextDX","nextDY","interactionState","stateID","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","onStartShouldSetPanResponderCapture","onPanResponderReject","onResponderStart","onPanResponderStart","onResponderEnd","onPanResponderEnd","getInteractionHandle","centroidDimension","touchesChangedAfter","isXAxis","ofCurrent","oneTouchData","touchTrack","toAdd","noCentroid","SwipeableListViewDataSource","row1","row2","s2","_listViewRef","getOpenRowID","setOpenRowID","getFirstRowID","getDataSource","_dataSource","_previousOpenRowID","_openRowID","lastSection","TabBarItemIOS","RCTTabBar","tabGroup","unselectedTintColor","unselectedItemTintColor","itemPositioning","hasBeenSelected","tabContents","tab","badge","badgeColor","systemIcon","icon","selectedIcon","renderAsOriginal","RCTTabBarItem","DocumentSelectionState","RCTMultilineTextInputView","RCTSinglelineTextInputView","onlyMultiline","onTextInput","DataDetectorTypes","State","autoCapitalize","autoCorrect","spellCheck","autoFocus","editable","keyboardAppearance","returnKeyType","returnKeyLabel","maxLength","disableFullscreenUI","enablesReturnKeyAutomatically","onBlur","onFocus","onChangeText","onEndEditing","onSelectionChange","onSubmitEditing","onKeyPress","placeholder","placeholderTextColor","secureTextEntry","selectionState","clearButtonMode","clearTextOnFocus","selectTextOnFocus","blurOnSubmit","underlineColorAndroid","inlineImageLeft","inlineImagePadding","dataDetectorTypes","caretHidden","contextMenuHidden","inputAccessoryViewID","textContentType","isFocused","_inputRef","_focusSubscription","_lastNativeText","_lastNativeSelection","el","textInput","_renderIOS","_renderIOSLegacy","_renderAndroid","_getText","_setNativeRef","textContainer","_onFocus","_onBlur","_onSelectionChange","childCount","inputView","multilineInput","_onTextInput","_onPress","RCTTextInputView","AutoCapitalizationType","mostRecentEventCount","eventCount","InternalTextInputType","TypedTextInput","mixInEventEmitter","anchor","_anchorOffset","_focusOffset","_hasFocus","hasFocus","getStartOffset","getEndOffset","EventEmitterWithHolding","EventHolder","keyOf","TYPES_KEY","__types","__eventEmitter","EventEmitterMixin","__getEventEmitter","emitAndHold","addRetroactiveListener","addListenerMap","listenerMap","addRetroactiveListenerMap","releaseHeldEventType","EventValidator","addValidation","holder","_eventHolder","_currentEventToken","_emittingHeldEvents","emitToListener","holdEvent","releaseEvent","releaseCurrentEvent","releaseEventType","_heldEvents","_currentEventKey","eventsOfType","origEventKey","eventHeld","oneKeyObj","emitterWithValidation","assertAllowsEventType","allowedTypes","errorMessageFor","recommendationFor","closestTypeRecommendation","closestTypeFor","isCloseEnough","typeRecommendations","typeRecommendationFor","recommendationSort","recommendedType","distance","damerauLevenshteinDistance","recommendationA","recommendationB","closestType","actualType","cost","show","WebViewShared","RCTWebViewManager","WebViewManager","BGWASH","RCT_WEBVIEW_REF","WebViewState","IDLE","NavigationType","click","formsubmit","backforward","reload","formresubmit","JSNavigationScheme","defaultRenderLoading","loadingView","defaultRenderError","errorDomain","errorCode","errorDesc","errorContainer","errorTextTitle","viewState","lastErrorEvent","startInLoadingState","goForward","getWebViewHandle","RCTWebView","goBack","stopLoading","postMessage","injectJavaScript","_updateNavigationState","onNavigationStateChange","_onLoadingStart","_onLoadingError","_onLoadingFinish","_onMessage","onMessage","otherView","renderLoading","errorEvent","renderError","domain","loading","webViewStyles","webView","nativeConfig","compiledWhitelist","originWhitelist","originWhitelistToRegex","onShouldStartLoadWithRequest","shouldStart","extractOrigin","passesWhitelist","openURL","startLoadWithResult","lockIdentifier","html","messagingEnabled","NativeWebView","injectedJavaScript","scalesPageToFit","allowsInlineMediaPlayback","mediaPlaybackRequiresUserAction","baseUrl","javaScriptEnabled","thirdPartyCookiesEnabled","domStorageEnabled","userAgent","mixedContentMode","defaultOriginWhitelist","LinkingManager","IntentAndroid","_validateURL","canOpenURL","getInitialURL","escapeStringRegexp","matchOperatorsRe","RCTActionSheetManager","ActionSheetManager","showActionSheetWithOptions","showShareActionSheetWithOptions","failureCallback","successCallback","BugReporting","SceneTracker","renderApplication","runnables","runCount","componentProviderInstrumentationHook","wrapperComponentProvider","setWrapperComponentProvider","provider","registerConfig","appConfig","registerRunnable","appKey","componentProvider","appParameters","initialProps","fabric","registerSection","getAppKeys","getSectionKeys","getSections","getRunnable","getRegistry","setComponentProviderInstrumentationHook","runApplication","addSource","setActiveScene","unmountApplicationComponentAtRootTag","registerHeadlessTask","taskKey","startHeadlessTask","taskId","taskProvider","HeadlessJsTaskSupport","notifyTaskFinished","defaultExtras","addFileSource","collectExtraData","_redboxSubscription","_addSource","_extraSources","_fileSources","_maybeInit","fileData","BugReportingNativeModule","setExtraData","RedBoxNativeModule","files","dumpReactTree","getReactTree","_activeScene","scene","getActiveScene","addActiveSceneChangedListener","RootComponent","renderable","unstable_isAsyncReactComponent","_backPressSubscriptions","invokeDefault","exitApp","ReactFabric","FabricUIManager","getInstanceFromInstance","instanceHandle","currentProps","ReactFabricComponentTree","ReactFabricGlobalResponderHandler","targetFiber","appendChild$1","commitMount","registerEventHandler","ReactFabricHostComponent","createNode","keepChildren","cloneNodeWithNewProps","cloneNode","cloneNodeWithNewChildrenAndProps","cloneNodeWithNewChildren","createChildSet","childSet","appendChildToSet","completeRoot$1","ReactFabricRenderer","ReactFabric$2","ReactFabric$3","nativeFabricUIManager","Injected$jscomp$inline_574","instance$jscomp$2","RCTAsyncStorage","AsyncRocksDBStorage","AsyncSQLiteDBStorage","AsyncLocalStorage","_getRequests","_getKeys","_immediate","multiGet","errs","convertErrors","setItem","multiSet","removeItem","multiRemove","mergeItem","multiMerge","convertError","flushGetRequests","getRequests","getKeys","reqLength","requestKeys","requestResult","getRequest","keyIndex","promiseResult","keyValuePairs","RCTCameraRollManager","CameraRollManager","GROUP_TYPES_OPTIONS","Album","All","Event","Faces","Library","PhotoStream","SavedPhotos","ASSET_TYPE_OPTIONS","Videos","Photos","getPhotosParamChecker","after","groupTypes","groupName","assetType","mimeTypes","getPhotosReturnChecker","edges","group_name","isStored","playableDuration","latitude","longitude","altitude","heading","page_info","has_next_page","start_cursor","end_cursor","saveToCameraRoll","photos","deletePhotos","mediaType","errorCallback","getPhotos","GroupTypesOptions","AssetTypeOptions","getString","setString","RCTImagePicker","canRecordVideos","canUseCamera","openCameraDialog","cancelCallback","videoMode","openSelectDialog","showImages","showVideos","RCTNetInfo","NetInfoEventEmitter","DEVICE_CONNECTIVITY_EVENT","_isConnectedDeprecated","reachability","connectionType","_isConnected","connection","_isConnectedSubscriptions","effectiveType","effectiveConnectionType","network_info","getCurrentConnectivity","resp","getConnectionInfo","isConnected","isConnectionExpensive","isConnectionMetered","RCTPushNotificationManager","PushNotificationManager","PushNotificationEmitter","_notifHandlers","DEVICE_NOTIF_EVENT","NOTIF_REGISTER_EVENT","NOTIF_REGISTRATION_ERROR_EVENT","DEVICE_LOCAL_NOTIF_EVENT","details","presentLocalNotification","scheduleLocalNotification","cancelAllLocalNotifications","removeAllDeliveredNotifications","getDeliveredNotifications","removeDeliveredNotifications","setApplicationIconBadgeNumber","getApplicationIconBadgeNumber","userInfo","cancelLocalNotifications","getScheduledLocalNotifications","notifData","registrationInfo","deviceToken","requestedPermissions","sound","requestPermissions","abandonPermissions","checkPermissions","getInitialNotification","notification","nativeNotif","_remoteNotificationCompleteCallbackCalled","_isRemote","remote","_notificationId","notificationId","notifVal","notifKey","_alert","_sound","_badgeCount","_category","_contentAvailable","_threadID","applicationIconBadgeNumber","soundName","alertBody","fetchResult","onFinishRemoteNotification","FetchResult","NewData","NoData","ResultFailed","RCTSettingsManager","SettingsManager","_settings","settings","setValues","watchKeys","sid","watchId","_sendObservations","ShareModule","share","dialogTitle","activityType","RCTVibration","_vibrating","_id","vibrateByPattern","vibrate","vibrateScheduler","secondToTime","normalizeSeconds","sec_num","hours","minutes","seconds","seek","tolerance","fullscreen","dismissFullscreenPlayer","VideoManager","_root","_assignRoot","_onLoadStart","_onLoad","_onError","_onProgress","_onBandwidthUpdate","onBandwidthUpdate","_onSeek","showPoster","audioOnly","onSeek","_onEnd","_onTimedMetadata","onTimedMetadata","_onFullscreenPlayerWillPresent","onFullscreenPlayerWillPresent","_onFullscreenPlayerDidPresent","onFullscreenPlayerDidPresent","_onFullscreenPlayerWillDismiss","onFullscreenPlayerWillDismiss","_onFullscreenPlayerDidDismiss","onFullscreenPlayerDidDismiss","_onReadyForDisplay","onReadyForDisplay","_onPlaybackStalled","onPlaybackStalled","_onPlaybackResume","onPlaybackResume","_onPlaybackRateChange","playbackRate","onPlaybackRateChange","_onExternalPlaybackChange","onExternalPlaybackChange","_onAudioBecomingNoisy","onAudioBecomingNoisy","_onAudioFocusChanged","onAudioFocusChanged","_onBuffer","onBuffer","strObj","toTypeString","isNetwork","isAsset","nativeResizeMode","VideoResizeMode","RCTVideo","ScaleToFill","ScaleAspectFit","ScaleAspectFill","ScaleNone","mainVer","patchVer","stringsOnlyObject","onVideoLoadStart","onVideoLoad","onVideoError","onVideoProgress","onVideoSeek","onVideoEnd","onVideoBuffer","onVideoBandwidthUpdate","onVideoAudioBecomingNoisy","onVideoExternalPlaybackChange","onVideoFullscreenPlayerWillPresent","onVideoFullscreenPlayerDidPresent","onVideoFullscreenPlayerWillDismiss","onVideoFullscreenPlayerDidDismiss","posterStyle","posterResizeMode","poster","Video","FilterType","NONE","INVERT","MONOCHROME","POSTERIZE","MAXIMUMCOMPONENT","MINIMUMCOMPONENT","CHROME","FADE","INSTANT","MONO","NOIR","PROCESS","TONAL","TRANSFER","SEPIA","filterEnabled","maxBitRate","allowsExternalPlayback","selectedAudioTrack","selectedVideoTrack","selectedTextTrack","textTracks","TextTrackType","SRT","TTML","VTT","language","paused","muted","volume","bufferConfig","minBufferMs","maxBufferMs","bufferForPlaybackMs","bufferForPlaybackAfterRebufferMs","stereoPan","rate","playInBackground","playWhenInactive","ignoreSilentSwitch","reportBandwidth","disableFocus","controls","fullscreenAutorotate","fullscreenOrientation","progressUpdateInterval","useTextureView","hideShutterView","nativeOnly"],"mappings":";;ACWA;;AA8CA,MAAMA,sBAAsB,KAA5B;AAEAC,SAAOC,OAAP,GAAiBC,YAAjB;AACAF,SAAOG,GAAP,GAAaC,MAAb;AAEA,MAAMC,UACN,OAAOC,eAAP,KAA2B,QAA3B,GACAC,MAAMD,kBAAkB,CAAxB,CADA,GAEAE,OAAOC,MAAP,CAAc,IAAd,CAHA;;AAIA,MAAIC,OAAJ,EAAa;AACX,QAAIC,0BAGJH,OAAOC,MAAP,CAAc,IAAd,CAHA;AAID;;AAED,WAASL,MAAT,CACAQ,OADA,EAEAC,QAFA,EAGAC,aAHA,EAIA;AACE,QAAIT,QAAQQ,QAAR,KAAqB,IAAzB,EAA+B;AAC7B,UAAIH,OAAJ,EAAa;AAGX,YAAMK,sBAAsBC,U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AC5B,QAAI4L,MAAM,EAAV;AACA,QAAIjM,GAAJ;;AACA,QAAI,EAAEK,eAAehF,MAAf,IAAyB,CAACD,MAAMkH,OAAN,CAAcjC,GAAd,CAA5B,CAAJ,EAAqD;AACnD,YAAM,IAAI/D,KAAJ,CAAU,6CAAV,CAAN;AACD;;AACD,SAAK0D,GAAL,IAAYK,GAAZ,EAAiB;AACf,UAAI,CAACA,IAAIJ,cAAJ,CAAmBD,GAAnB,CAAL,EAA8B;AAC5B;AACD;;AACDiM,UAAIjM,GAAJ,IAAWA,GAAX;AACD;;AACD,WAAOiM,GAAP;AACD,GAbD;;AAeAtP,SAAOV,OAAP,GAAiB6mD,SAAjB;;;8GCpDA;AAAC,wBAAmB,IAApB;AAAyB,0BAAqB,SAA9C;AAAwD,cAAS,CAAC,CAAD,CAAjE;AAAqE,YAAO,kCAA5E;AAA+G,YAAO,aAAtH;AAAoI,YAAO;AAA3I,G","sourceRoot":"","file":"index.ios.bundle"} \ No newline at end of file diff --git a/examples/embed-and-fullscreen/.vscode/launch.json b/examples/embed-and-fullscreen/.vscode/launch.json new file mode 100644 index 00000000..c45152d1 --- /dev/null +++ b/examples/embed-and-fullscreen/.vscode/launch.json @@ -0,0 +1,79 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug Android Simulator", + "program": "${workspaceRoot}/.vscode/launchReactNative.js", + "type": "reactnative", + "request": "launch", + "platform": "android", + "sourceMaps": true, + "trace": "log", + "outDir": "${workspaceRoot}/.vscode/.react" + }, + { + "name": "Debug Android Device", + "program": "${workspaceRoot}/.vscode/launchReactNative.js", + "type": "reactnative", + "request": "launch", + "platform": "android", + "target": "device", + "sourceMaps": true, + "outDir": "${workspaceRoot}/.vscode/.react" + }, + { + "name": "Debug iPhone 6", + "program": "${workspaceRoot}/.vscode/launchReactNative.js", + "type": "reactnative", + "request": "launch", + "platform": "ios", + "sourceMaps": true, + "trace": "log", + "target": "iPhone 6", + "outDir": "${workspaceRoot}/.vscode/.react" + }, + { + "name": "Debug iPhone X", + "program": "${workspaceRoot}/.vscode/launchReactNative.js", + "type": "reactnative", + "request": "launch", + "platform": "ios", + "sourceMaps": true, + "trace": "log", + "target": "iPhone X", + "outDir": "${workspaceRoot}/.vscode/.react" + }, + { + "name": "Debug iPad Air", + "program": "${workspaceRoot}/.vscode/launchReactNative.js", + "type": "reactnative", + "request": "launch", + "platform": "ios", + "sourceMaps": true, + "trace": "log", + "target": "iPad Air", + "outDir": "${workspaceRoot}/.vscode/.react" + }, + { + "name": "Debug iOS Device", + "program": "${workspaceRoot}/.vscode/launchReactNative.js", + "type": "reactnative", + "request": "launch", + "platform": "ios", + "target": "device", + "sourceMaps": true, + "outDir": "${workspaceRoot}/.vscode/.react" + }, + { + "name": "Attach to packager", + "program": "${workspaceRoot}/.vscode/launchReactNative.js", + "type": "reactnative", + "request": "attach", + "sourceMaps": true, + "outDir": "${workspaceRoot}/.vscode/.react" + } + ] +} \ No newline at end of file diff --git a/examples/embed-and-fullscreen/.vscode/settings.json b/examples/embed-and-fullscreen/.vscode/settings.json new file mode 100644 index 00000000..0e5681cb --- /dev/null +++ b/examples/embed-and-fullscreen/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "editor.insertSpaces": true, + "editor.tabSize": 2, + "java.configuration.updateBuildConfiguration": "disabled" +} \ No newline at end of file diff --git a/examples/embed-and-fullscreen/.watchmanconfig b/examples/embed-and-fullscreen/.watchmanconfig new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/examples/embed-and-fullscreen/.watchmanconfig @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/examples/embed-and-fullscreen/Utils.js b/examples/embed-and-fullscreen/Utils.js new file mode 100644 index 00000000..248c5dd1 --- /dev/null +++ b/examples/embed-and-fullscreen/Utils.js @@ -0,0 +1,31 @@ +import { Dimensions } from "react-native"; + +export default function Util() {} + +Util.isPortrait = () => { + const dim = Dimensions.get("screen"); + return dim.height >= dim.width; +}; + +/** + * Return a timer for video from< time in seconds + * ~~ is used as faster substitute for Math.floor() function + * https://stackoverflow.com/questions/5971645/what-is-the-double-tilde-operator-in-javascript + * @param time + * @returns {string} + */ +Util.secondToTime = (time) => { + return ~~(time / 60) + ":" + (time % 60 < 10 ? "0" : "") + time % 60; +}; + +Util.normalizeSeconds = (number) => { + let sec_num = parseInt(number, 10); // don't forget the second param + let hours = Math.floor(sec_num / 3600); + let minutes = Math.floor((sec_num - (hours * 3600)) / 60); + let seconds = sec_num - (hours * 3600) - (minutes * 60); + + if (hours < 10) {hours = "0"+hours;} + if (minutes < 10) {minutes = "0"+minutes;} + if (seconds < 10) {seconds = "0"+seconds;} + return hours+':'+minutes+':'+seconds; +}; \ No newline at end of file diff --git a/examples/embed-and-fullscreen/broadchurch.mp4 b/examples/embed-and-fullscreen/broadchurch.mp4 new file mode 100644 index 00000000..7a7a4949 Binary files /dev/null and b/examples/embed-and-fullscreen/broadchurch.mp4 differ diff --git a/examples/embed-and-fullscreen/index.ios.js b/examples/embed-and-fullscreen/index.ios.js new file mode 100644 index 00000000..ba2f1ceb --- /dev/null +++ b/examples/embed-and-fullscreen/index.ios.js @@ -0,0 +1,81 @@ +'use strict'; +import React, { + Component +} from 'react'; + +import { + AppRegistry, + StyleSheet, + View, + Dimensions, + Text, + Button +} from 'react-native'; + +import Util from './Utils' + +import Video from 'react-native-video'; + +export default class VideoPlayer extends Component { + constructor(props) { + super(props); + this.onLayout = this.onLayout.bind(this); + } + + componentWillMount() { + this.resizeVideoPlayer(); + } + + render() { + return + Here's some pre-Text + + } + + onPress() { + if (this.videoPlayer!=null) + this.videoPlayer.presentFullscreenPlayer(); + } + + resizeVideoPlayer() { + // Always in 16 /9 aspect ratio + let {width, height} = Dimensions.get('window'); + + if (Util.isPortrait()) { + this.setState({ + orientationWidth: width * 0.8, + orientationHeight: width * 0.8 * 0.56, + }); + } else { + this.setState({ + orientationHeight: height * 0.8, + orientationWidth: height * 0.8 * 1.77 + }); + } + } + + onLayout(e) { + console.log('on layout called'); + this.resizeVideoPlayer(); + } +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: 'white', + }, +}); + +AppRegistry.registerComponent('VideoPlayer', () => VideoPlayer); diff --git a/examples/embed-and-fullscreen/index.windows.js b/examples/embed-and-fullscreen/index.windows.js new file mode 100644 index 00000000..a3d21c6f --- /dev/null +++ b/examples/embed-and-fullscreen/index.windows.js @@ -0,0 +1,210 @@ +'use strict'; + +import React, { + Component +} from 'react'; + +import { + AppRegistry, + StyleSheet, + Text, + TouchableOpacity, + View, +} from 'react-native'; + +import Video from 'react-native-video'; + +class VideoPlayer extends Component { + constructor(props) { + super(props); + this.onLoad = this.onLoad.bind(this); + this.onProgress = this.onProgress.bind(this); + } + + state = { + rate: 1, + volume: 1, + muted: false, + resizeMode: 'contain', + duration: 0.0, + currentTime: 0.0, + }; + + onLoad(data) { + this.setState({duration: data.duration}); + } + + onProgress(data) { + this.setState({currentTime: data.currentTime}); + } + + getCurrentTimePercentage() { + if (this.state.currentTime > 0) { + return parseFloat(this.state.currentTime) / parseFloat(this.state.duration); + } else { + return 0; + } + } + + renderRateControl(rate) { + const isSelected = (this.state.rate == rate); + + return ( + { this.setState({rate: rate}) }}> + + {rate}x + + + ) + } + + renderResizeModeControl(resizeMode) { + const isSelected = (this.state.resizeMode == resizeMode); + + return ( + { this.setState({resizeMode: resizeMode}) }}> + + {resizeMode} + + + ) + } + + renderVolumeControl(volume) { + const isSelected = (this.state.volume == volume); + + return ( + { this.setState({volume: volume}) }}> + + {volume * 100}% + + + ) + } + + render() { + const flexCompleted = this.getCurrentTimePercentage() * 100; + const flexRemaining = (1 - this.getCurrentTimePercentage()) * 100; + + return ( + + {this.setState({paused: !this.state.paused})}}> + + + + + + {this.renderRateControl(0.25)} + {this.renderRateControl(0.5)} + {this.renderRateControl(1.0)} + {this.renderRateControl(1.5)} + {this.renderRateControl(2.0)} + + + + {this.renderVolumeControl(0.5)} + {this.renderVolumeControl(1)} + {this.renderVolumeControl(1.5)} + + + + {this.renderResizeModeControl('cover')} + {this.renderResizeModeControl('contain')} + {this.renderResizeModeControl('stretch')} + + + + + + + + + + + + ); + } +} + + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: 'black', + }, + fullScreen: { + position: 'absolute', + top: 0, + left: 0, + bottom: 0, + right: 0, + }, + controls: { + backgroundColor: "transparent", + borderRadius: 5, + position: 'absolute', + bottom: 20, + left: 20, + right: 20, + }, + progress: { + flex: 1, + flexDirection: 'row', + borderRadius: 3, + overflow: 'hidden', + }, + innerProgressCompleted: { + height: 20, + backgroundColor: '#cccccc', + }, + innerProgressRemaining: { + height: 20, + backgroundColor: '#2C2C2C', + }, + generalControls: { + flex: 1, + flexDirection: 'row', + borderRadius: 4, + overflow: 'hidden', + paddingBottom: 10, + }, + rateControl: { + flex: 1, + flexDirection: 'row', + justifyContent: 'center', + }, + volumeControl: { + flex: 1, + flexDirection: 'row', + justifyContent: 'center', + }, + resizeModeControl: { + flex: 1, + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'center', + }, + controlOption: { + alignSelf: 'center', + fontSize: 11, + color: "white", + paddingLeft: 2, + paddingRight: 2, + lineHeight: 12, + }, +}); + +AppRegistry.registerComponent('VideoPlayer', () => VideoPlayer); diff --git a/examples/embed-and-fullscreen/ios/AppDelegate.h b/examples/embed-and-fullscreen/ios/AppDelegate.h new file mode 100644 index 00000000..a9654d5e --- /dev/null +++ b/examples/embed-and-fullscreen/ios/AppDelegate.h @@ -0,0 +1,16 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +@interface AppDelegate : UIResponder + +@property (nonatomic, strong) UIWindow *window; + +@end diff --git a/examples/embed-and-fullscreen/ios/AppDelegate.m b/examples/embed-and-fullscreen/ios/AppDelegate.m new file mode 100644 index 00000000..74dbce6d --- /dev/null +++ b/examples/embed-and-fullscreen/ios/AppDelegate.m @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import "AppDelegate.h" + +#import "RCTRootView.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + NSURL *jsCodeLocation; + + // Loading JavaScript code - uncomment the one you want. + + // OPTION 1 + // Load from development server. Start the server from the repository root: + // + // $ npm start + // + // To run on device, change `localhost` to the IP address of your computer, and make sure your computer and + // iOS device are on the same Wi-Fi network. + jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]; + + // OPTION 2 + // Load from pre-bundled file on disk. To re-generate the static bundle, run + // + // $ curl 'http://localhost:8081/index.ios.bundle?dev=false&minify=true' -o iOS/main.jsbundle + // + // and uncomment the next following line + // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; + + RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation + moduleName:@"VideoPlayer" + initialProperties: nil + launchOptions:launchOptions]; + + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; + UIViewController *rootViewController = [[UIViewController alloc] init]; + rootViewController.view = rootView; + self.window.rootViewController = rootViewController; + [self.window makeKeyAndVisible]; + return YES; +} + +@end diff --git a/examples/embed-and-fullscreen/ios/Base.lproj/LaunchScreen.xib b/examples/embed-and-fullscreen/ios/Base.lproj/LaunchScreen.xib new file mode 100644 index 00000000..187346b0 --- /dev/null +++ b/examples/embed-and-fullscreen/ios/Base.lproj/LaunchScreen.xib @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/embed-and-fullscreen/ios/Info.plist b/examples/embed-and-fullscreen/ios/Info.plist new file mode 100644 index 00000000..45532a3a --- /dev/null +++ b/examples/embed-and-fullscreen/ios/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + 2 + LSApplicationCategoryType + + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/examples/embed-and-fullscreen/ios/VideoPlayer-tvOS.plist b/examples/embed-and-fullscreen/ios/VideoPlayer-tvOS.plist new file mode 100644 index 00000000..ecbd496b --- /dev/null +++ b/examples/embed-and-fullscreen/ios/VideoPlayer-tvOS.plist @@ -0,0 +1,53 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSExceptionDomains + + localhost + + NSExceptionAllowsInsecureHTTPLoads + + + + + NSLocationWhenInUseUsageDescription + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/examples/embed-and-fullscreen/ios/VideoPlayer.xcodeproj/project.pbxproj b/examples/embed-and-fullscreen/ios/VideoPlayer.xcodeproj/project.pbxproj new file mode 100644 index 00000000..0d077be9 --- /dev/null +++ b/examples/embed-and-fullscreen/ios/VideoPlayer.xcodeproj/project.pbxproj @@ -0,0 +1,1216 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; + 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; + 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; + 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; + 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; + 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; + 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; + 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; + 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; + 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; + 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; + 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; + 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; + 8C2A0F841E2560A100E31596 /* libRCTVideo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8C2A0F791E25608300E31596 /* libRCTVideo.a */; }; + FA3566AB216D5D7000E01ABD /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; + FA3566AC216D5D7000E01ABD /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; + FA3566AD216D5D7000E01ABD /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; + FA3566AE216D5D7000E01ABD /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; + FA3566AF216D5D7000E01ABD /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; + FA3566B0216D5D7000E01ABD /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; + FA3566C8216D5DA900E01ABD /* libRCTVideo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D1107C542111145500073188 /* libRCTVideo.a */; }; + FA8681B8216D5C6D0010C92A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; + FA8681B9216D5C6D0010C92A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + FA8681C8216D5C6D0010C92A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; + FA8B47A5216D777200AB07CF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 134814201AA4EA6300B7C361; + remoteInfo = RCTActionSheet; + }; + 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 134814201AA4EA6300B7C361; + remoteInfo = RCTGeolocation; + }; + 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 58B5115D1A9E6B3D00147676; + remoteInfo = RCTImage; + }; + 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 58B511DB1A9E6C8500147676; + remoteInfo = RCTNetwork; + }; + 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; + remoteInfo = RCTVibration; + }; + 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 134814201AA4EA6300B7C361; + remoteInfo = RCTSettings; + }; + 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3C86DF461ADF2C930047B81A; + remoteInfo = RCTWebSocket; + }; + 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; + remoteInfo = React; + }; + 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; + remoteInfo = "RCTImage-tvOS"; + }; + 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 2D2A28471D9B043800D4039D; + remoteInfo = "RCTLinking-tvOS"; + }; + 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 2D2A28541D9B044C00D4039D; + remoteInfo = "RCTNetwork-tvOS"; + }; + 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 2D2A28611D9B046600D4039D; + remoteInfo = "RCTSettings-tvOS"; + }; + 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 2D2A287B1D9B048500D4039D; + remoteInfo = "RCTText-tvOS"; + }; + 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 2D2A28881D9B049200D4039D; + remoteInfo = "RCTWebSocket-tvOS"; + }; + 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 2D2A28131D9B038B00D4039D; + remoteInfo = "React-tvOS"; + }; + 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3D3C059A1DE3340900C268FA; + remoteInfo = yoga; + }; + 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3D3C06751DE3340C00C268FA; + remoteInfo = "yoga-tvOS"; + }; + 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; + remoteInfo = cxxreact; + }; + 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; + remoteInfo = "cxxreact-tvOS"; + }; + 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; + remoteInfo = jschelpers; + }; + 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; + remoteInfo = "jschelpers-tvOS"; + }; + 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 134814201AA4EA6300B7C361; + remoteInfo = RCTAnimation; + }; + 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 2D2A28201D9B03D100D4039D; + remoteInfo = "RCTAnimation-tvOS"; + }; + 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 134814201AA4EA6300B7C361; + remoteInfo = RCTLinking; + }; + 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 58B5119B1A9E6C1200147676; + remoteInfo = RCTText; + }; + 8C2A0F781E25608300E31596 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8C2A0F651E25608300E31596 /* RCTVideo.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 134814201AA4EA6300B7C361; + remoteInfo = RCTVideo; + }; + D1107C532111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8C2A0F651E25608300E31596 /* RCTVideo.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 641E28441F0EEC8500443AF6; + remoteInfo = "RCTVideo-tvOS"; + }; + D1107C592111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; + remoteInfo = fishhook; + }; + D1107C5B2111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; + remoteInfo = "fishhook-tvOS"; + }; + D1107C6D2111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = EBF21BDC1FC498900052F4D5; + remoteInfo = jsinspector; + }; + D1107C6F2111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; + remoteInfo = "jsinspector-tvOS"; + }; + D1107C712111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; + remoteInfo = "third-party"; + }; + D1107C732111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; + remoteInfo = "third-party-tvOS"; + }; + D1107C752111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 139D7E881E25C6D100323FB7; + remoteInfo = "double-conversion"; + }; + D1107C772111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 3D383D621EBD27B9005632C8; + remoteInfo = "double-conversion-tvOS"; + }; + D1107C792111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; + remoteInfo = privatedata; + }; + D1107C7B2111145500073188 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; + remoteInfo = "privatedata-tvOS"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; + 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; + 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; + 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; + 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; + 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; + 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; + 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; + 13B07F961A680F5B00A75B9A /* VideoPlayer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VideoPlayer.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = VideoPlayer/AppDelegate.h; sourceTree = ""; }; + 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = VideoPlayer/AppDelegate.m; sourceTree = ""; }; + 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = VideoPlayer/Images.xcassets; sourceTree = ""; }; + 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = VideoPlayer/Info.plist; sourceTree = ""; }; + 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = VideoPlayer/main.m; sourceTree = ""; }; + 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; + 39CBB10045CEBFA9BBB9645E /* libPods-VideoPlayer.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-VideoPlayer.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; + 627363E07276C06249D7CEBF /* libPods-VideoPlayer-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-VideoPlayer-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; + 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; + 8C2A0F651E25608300E31596 /* RCTVideo.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVideo.xcodeproj; path = "../node_modules/react-native-video/ios/RCTVideo.xcodeproj"; sourceTree = ""; }; + FA8681CE216D5C6D0010C92A /* VideoPlayer-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "VideoPlayer-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + FA8681D0216D5C6E0010C92A /* VideoPlayer-tvOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "VideoPlayer-tvOS.plist"; path = "/Users/amishra/Development/react-native-video-nfb/examples/basic/ios/VideoPlayer-tvOS.plist"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 146834051AC3E58100842450 /* libReact.a in Frameworks */, + 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, + 8C2A0F841E2560A100E31596 /* libRCTVideo.a in Frameworks */, + 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, + 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, + 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, + 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, + 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, + 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, + 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, + 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, + 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + FA8681BA216D5C6D0010C92A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + FA8B47A5216D777200AB07CF /* libReact.a in Frameworks */, + FA3566AB216D5D7000E01ABD /* libRCTImage-tvOS.a in Frameworks */, + FA3566AC216D5D7000E01ABD /* libRCTLinking-tvOS.a in Frameworks */, + FA3566AD216D5D7000E01ABD /* libRCTNetwork-tvOS.a in Frameworks */, + FA3566AE216D5D7000E01ABD /* libRCTSettings-tvOS.a in Frameworks */, + FA3566AF216D5D7000E01ABD /* libRCTText-tvOS.a in Frameworks */, + FA3566B0216D5D7000E01ABD /* libRCTWebSocket-tvOS.a in Frameworks */, + FA3566C8216D5DA900E01ABD /* libRCTVideo.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 00C302A81ABCB8CE00DB3ED1 /* Products */ = { + isa = PBXGroup; + children = ( + 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, + ); + name = Products; + sourceTree = ""; + }; + 00C302B61ABCB90400DB3ED1 /* Products */ = { + isa = PBXGroup; + children = ( + 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, + ); + name = Products; + sourceTree = ""; + }; + 00C302BC1ABCB91800DB3ED1 /* Products */ = { + isa = PBXGroup; + children = ( + 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, + 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, + ); + name = Products; + sourceTree = ""; + }; + 00C302D41ABCB9D200DB3ED1 /* Products */ = { + isa = PBXGroup; + children = ( + 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, + 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, + ); + name = Products; + sourceTree = ""; + }; + 00C302E01ABCB9EE00DB3ED1 /* Products */ = { + isa = PBXGroup; + children = ( + 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, + ); + name = Products; + sourceTree = ""; + }; + 139105B71AF99BAD00B5F7CC /* Products */ = { + isa = PBXGroup; + children = ( + 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, + 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, + ); + name = Products; + sourceTree = ""; + }; + 139FDEE71B06529A00C62182 /* Products */ = { + isa = PBXGroup; + children = ( + 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, + 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, + D1107C5A2111145500073188 /* libfishhook.a */, + D1107C5C2111145500073188 /* libfishhook-tvOS.a */, + ); + name = Products; + sourceTree = ""; + }; + 13B07FAE1A68108700A75B9A /* VideoPlayer */ = { + isa = PBXGroup; + children = ( + 008F07F21AC5B25A0029DE68 /* main.jsbundle */, + 13B07FAF1A68108700A75B9A /* AppDelegate.h */, + 13B07FB01A68108700A75B9A /* AppDelegate.m */, + 13B07FB51A68108700A75B9A /* Images.xcassets */, + 13B07FB61A68108700A75B9A /* Info.plist */, + 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, + 13B07FB71A68108700A75B9A /* main.m */, + ); + name = VideoPlayer; + sourceTree = ""; + }; + 146834001AC3E56700842450 /* Products */ = { + isa = PBXGroup; + children = ( + 146834041AC3E56700842450 /* libReact.a */, + 3DAD3EA31DF850E9000B6D8A /* libReact.a */, + 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, + 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, + 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, + 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, + 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, + 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, + D1107C6E2111145500073188 /* libjsinspector.a */, + D1107C702111145500073188 /* libjsinspector-tvOS.a */, + D1107C722111145500073188 /* libthird-party.a */, + D1107C742111145500073188 /* libthird-party.a */, + D1107C762111145500073188 /* libdouble-conversion.a */, + D1107C782111145500073188 /* libdouble-conversion.a */, + D1107C7A2111145500073188 /* libprivatedata.a */, + D1107C7C2111145500073188 /* libprivatedata-tvOS.a */, + ); + name = Products; + sourceTree = ""; + }; + 5E91572E1DD0AC6500FF2AA8 /* Products */ = { + isa = PBXGroup; + children = ( + 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, + 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, + ); + name = Products; + sourceTree = ""; + }; + 78C398B11ACF4ADC00677621 /* Products */ = { + isa = PBXGroup; + children = ( + 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, + 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, + ); + name = Products; + sourceTree = ""; + }; + 832341AE1AAA6A7D00B99B32 /* Libraries */ = { + isa = PBXGroup; + children = ( + 8C2A0F651E25608300E31596 /* RCTVideo.xcodeproj */, + 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, + 146833FF1AC3E56700842450 /* React.xcodeproj */, + 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, + 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, + 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, + 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, + 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, + 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, + 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, + 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, + 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, + ); + name = Libraries; + sourceTree = ""; + }; + 832341B11AAA6A8300B99B32 /* Products */ = { + isa = PBXGroup; + children = ( + 832341B51AAA6A8300B99B32 /* libRCTText.a */, + 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, + ); + name = Products; + sourceTree = ""; + }; + 83CBB9F61A601CBA00E9B192 = { + isa = PBXGroup; + children = ( + FA8681CF216D5C6D0010C92A /* Resources-iPad */, + 13B07FAE1A68108700A75B9A /* VideoPlayer */, + 832341AE1AAA6A7D00B99B32 /* Libraries */, + 83CBBA001A601CBA00E9B192 /* Products */, + FA35669C216D5D7000E01ABD /* Frameworks */, + ); + indentWidth = 2; + sourceTree = ""; + tabWidth = 2; + }; + 83CBBA001A601CBA00E9B192 /* Products */ = { + isa = PBXGroup; + children = ( + 13B07F961A680F5B00A75B9A /* VideoPlayer.app */, + FA8681CE216D5C6D0010C92A /* VideoPlayer-tvOS.app */, + ); + name = Products; + sourceTree = ""; + }; + 8C2A0F661E25608300E31596 /* Products */ = { + isa = PBXGroup; + children = ( + 8C2A0F791E25608300E31596 /* libRCTVideo.a */, + D1107C542111145500073188 /* libRCTVideo.a */, + ); + name = Products; + sourceTree = ""; + }; + FA35669C216D5D7000E01ABD /* Frameworks */ = { + isa = PBXGroup; + children = ( + 39CBB10045CEBFA9BBB9645E /* libPods-VideoPlayer.a */, + 627363E07276C06249D7CEBF /* libPods-VideoPlayer-tvOS.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + FA8681CF216D5C6D0010C92A /* Resources-iPad */ = { + isa = PBXGroup; + children = ( + FA8681D0216D5C6E0010C92A /* VideoPlayer-tvOS.plist */, + ); + name = "Resources-iPad"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 13B07F861A680F5B00A75B9A /* VideoPlayer */ = { + isa = PBXNativeTarget; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "VideoPlayer" */; + buildPhases = ( + 13B07F871A680F5B00A75B9A /* Sources */, + 13B07F8C1A680F5B00A75B9A /* Frameworks */, + 13B07F8E1A680F5B00A75B9A /* Resources */, + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = VideoPlayer; + productName = "Hello World"; + productReference = 13B07F961A680F5B00A75B9A /* VideoPlayer.app */; + productType = "com.apple.product-type.application"; + }; + FA8681B6216D5C6D0010C92A /* VideoPlayer-tvOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = FA8681CB216D5C6D0010C92A /* Build configuration list for PBXNativeTarget "VideoPlayer-tvOS" */; + buildPhases = ( + FA8681B7216D5C6D0010C92A /* Sources */, + FA8681BA216D5C6D0010C92A /* Frameworks */, + FA8681C7216D5C6D0010C92A /* Resources */, + FA8681CA216D5C6D0010C92A /* Bundle React Native code and images */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "VideoPlayer-tvOS"; + productName = "Hello World"; + productReference = FA8681CE216D5C6D0010C92A /* VideoPlayer-tvOS.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 83CBB9F71A601CBA00E9B192 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0610; + ORGANIZATIONNAME = Facebook; + }; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "VideoPlayer" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 83CBB9F61A601CBA00E9B192; + productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; + ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; + }, + { + ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; + ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; + }, + { + ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; + ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; + }, + { + ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; + ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; + }, + { + ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; + ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; + }, + { + ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; + ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; + }, + { + ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; + ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; + }, + { + ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; + ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; + }, + { + ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; + ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; + }, + { + ProductGroup = 8C2A0F661E25608300E31596 /* Products */; + ProjectRef = 8C2A0F651E25608300E31596 /* RCTVideo.xcodeproj */; + }, + { + ProductGroup = 139FDEE71B06529A00C62182 /* Products */; + ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; + }, + { + ProductGroup = 146834001AC3E56700842450 /* Products */; + ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; + }, + ); + projectRoot = ""; + targets = ( + 13B07F861A680F5B00A75B9A /* VideoPlayer */, + FA8681B6216D5C6D0010C92A /* VideoPlayer-tvOS */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXReferenceProxy section */ + 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTActionSheet.a; + remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTGeolocation.a; + remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTImage.a; + remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTNetwork.a; + remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTVibration.a; + remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTSettings.a; + remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTWebSocket.a; + remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 146834041AC3E56700842450 /* libReact.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libReact.a; + remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libRCTImage-tvOS.a"; + remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libRCTLinking-tvOS.a"; + remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libRCTNetwork-tvOS.a"; + remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libRCTSettings-tvOS.a"; + remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libRCTText-tvOS.a"; + remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libRCTWebSocket-tvOS.a"; + remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libReact.a; + remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libyoga.a; + remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libyoga.a; + remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libcxxreact.a; + remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libcxxreact.a; + remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libjschelpers.a; + remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libjschelpers.a; + remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTAnimation.a; + remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTAnimation.a; + remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTLinking.a; + remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTText.a; + remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 8C2A0F791E25608300E31596 /* libRCTVideo.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTVideo.a; + remoteRef = 8C2A0F781E25608300E31596 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C542111145500073188 /* libRCTVideo.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libRCTVideo.a; + remoteRef = D1107C532111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C5A2111145500073188 /* libfishhook.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libfishhook.a; + remoteRef = D1107C592111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C5C2111145500073188 /* libfishhook-tvOS.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libfishhook-tvOS.a"; + remoteRef = D1107C5B2111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C6E2111145500073188 /* libjsinspector.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libjsinspector.a; + remoteRef = D1107C6D2111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C702111145500073188 /* libjsinspector-tvOS.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libjsinspector-tvOS.a"; + remoteRef = D1107C6F2111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C722111145500073188 /* libthird-party.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libthird-party.a"; + remoteRef = D1107C712111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C742111145500073188 /* libthird-party.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libthird-party.a"; + remoteRef = D1107C732111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C762111145500073188 /* libdouble-conversion.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libdouble-conversion.a"; + remoteRef = D1107C752111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C782111145500073188 /* libdouble-conversion.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libdouble-conversion.a"; + remoteRef = D1107C772111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C7A2111145500073188 /* libprivatedata.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libprivatedata.a; + remoteRef = D1107C792111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1107C7C2111145500073188 /* libprivatedata-tvOS.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libprivatedata-tvOS.a"; + remoteRef = D1107C7B2111145500073188 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + +/* Begin PBXResourcesBuildPhase section */ + 13B07F8E1A680F5B00A75B9A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, + 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + FA8681C7216D5C6D0010C92A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + FA8681C8216D5C6D0010C92A /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Bundle React Native code and images"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; + }; + FA8681CA216D5C6D0010C92A /* Bundle React Native code and images */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Bundle React Native code and images"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 13B07F871A680F5B00A75B9A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, + 13B07FC11A68108700A75B9A /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + FA8681B7216D5C6D0010C92A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + FA8681B8216D5C6D0010C92A /* AppDelegate.m in Sources */, + FA8681B9216D5C6D0010C92A /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 13B07FB21A68108700A75B9A /* Base */, + ); + name = LaunchScreen.xib; + path = VideoPlayer; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 13B07F941A680F5B00A75B9A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = 1; + DEAD_CODE_STRIPPING = NO; + HEADER_SEARCH_PATHS = "$(inherited)"; + INFOPLIST_FILE = VideoPlayer/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_NAME = VideoPlayer; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 13B07F951A680F5B00A75B9A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = 1; + HEADER_SEARCH_PATHS = "$(inherited)"; + INFOPLIST_FILE = VideoPlayer/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_NAME = VideoPlayer; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; + 83CBBA201A601CBA00E9B192 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 83CBBA211A601CBA00E9B192 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + FA8681CC216D5C6D0010C92A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = 1; + DEAD_CODE_STRIPPING = NO; + INFOPLIST_FILE = "VideoPlayer-tvOS.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.VideoPlayer-tvOS"; + PRODUCT_NAME = "VideoPlayer-tvOS"; + SDKROOT = appletvos; + SUPPORTED_PLATFORMS = "appletvsimulator appletvos"; + TARGETED_DEVICE_FAMILY = 3; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + FA8681CD216D5C6D0010C92A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = 1; + INFOPLIST_FILE = "VideoPlayer-tvOS.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.VideoPlayer-tvOS"; + PRODUCT_NAME = "VideoPlayer-tvOS"; + SDKROOT = appletvos; + SUPPORTED_PLATFORMS = "appletvsimulator appletvos"; + TARGETED_DEVICE_FAMILY = 3; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "VideoPlayer" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 13B07F941A680F5B00A75B9A /* Debug */, + 13B07F951A680F5B00A75B9A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "VideoPlayer" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 83CBBA201A601CBA00E9B192 /* Debug */, + 83CBBA211A601CBA00E9B192 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + FA8681CB216D5C6D0010C92A /* Build configuration list for PBXNativeTarget "VideoPlayer-tvOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + FA8681CC216D5C6D0010C92A /* Debug */, + FA8681CD216D5C6D0010C92A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; +} diff --git a/examples/embed-and-fullscreen/ios/VideoPlayer.xcodeproj/xcshareddata/xcschemes/VideoPlayer-tvOS.xcscheme b/examples/embed-and-fullscreen/ios/VideoPlayer.xcodeproj/xcshareddata/xcschemes/VideoPlayer-tvOS.xcscheme new file mode 100644 index 00000000..75b3d2eb --- /dev/null +++ b/examples/embed-and-fullscreen/ios/VideoPlayer.xcodeproj/xcshareddata/xcschemes/VideoPlayer-tvOS.xcscheme @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/embed-and-fullscreen/ios/VideoPlayer.xcodeproj/xcshareddata/xcschemes/VideoPlayer.xcscheme b/examples/embed-and-fullscreen/ios/VideoPlayer.xcodeproj/xcshareddata/xcschemes/VideoPlayer.xcscheme new file mode 100644 index 00000000..48a64467 --- /dev/null +++ b/examples/embed-and-fullscreen/ios/VideoPlayer.xcodeproj/xcshareddata/xcschemes/VideoPlayer.xcscheme @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/embed-and-fullscreen/ios/VideoPlayer/AppDelegate.h b/examples/embed-and-fullscreen/ios/VideoPlayer/AppDelegate.h new file mode 100644 index 00000000..a9654d5e --- /dev/null +++ b/examples/embed-and-fullscreen/ios/VideoPlayer/AppDelegate.h @@ -0,0 +1,16 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +@interface AppDelegate : UIResponder + +@property (nonatomic, strong) UIWindow *window; + +@end diff --git a/examples/embed-and-fullscreen/ios/VideoPlayer/AppDelegate.m b/examples/embed-and-fullscreen/ios/VideoPlayer/AppDelegate.m new file mode 100644 index 00000000..6c27cb41 --- /dev/null +++ b/examples/embed-and-fullscreen/ios/VideoPlayer/AppDelegate.m @@ -0,0 +1,37 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import "AppDelegate.h" + +#import +#import + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + NSURL *jsCodeLocation; + + jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; + + RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation + moduleName:@"VideoPlayer" + initialProperties:nil + launchOptions:launchOptions]; + rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; + + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; + UIViewController *rootViewController = [UIViewController new]; + rootViewController.view = rootView; + self.window.rootViewController = rootViewController; + [self.window makeKeyAndVisible]; + return YES; +} + +@end diff --git a/examples/embed-and-fullscreen/ios/VideoPlayer/Base.lproj/LaunchScreen.xib b/examples/embed-and-fullscreen/ios/VideoPlayer/Base.lproj/LaunchScreen.xib new file mode 100644 index 00000000..9d8b0c89 --- /dev/null +++ b/examples/embed-and-fullscreen/ios/VideoPlayer/Base.lproj/LaunchScreen.xib @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/embed-and-fullscreen/ios/VideoPlayer/Info.plist b/examples/embed-and-fullscreen/ios/VideoPlayer/Info.plist new file mode 100644 index 00000000..2fb6a11c --- /dev/null +++ b/examples/embed-and-fullscreen/ios/VideoPlayer/Info.plist @@ -0,0 +1,54 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + NSLocationWhenInUseUsageDescription + + NSAppTransportSecurity + + + NSExceptionDomains + + localhost + + NSExceptionAllowsInsecureHTTPLoads + + + + + + diff --git a/examples/embed-and-fullscreen/ios/VideoPlayer/main.m b/examples/embed-and-fullscreen/ios/VideoPlayer/main.m new file mode 100644 index 00000000..3d767fcb --- /dev/null +++ b/examples/embed-and-fullscreen/ios/VideoPlayer/main.m @@ -0,0 +1,18 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/examples/embed-and-fullscreen/ios/main.jsbundle b/examples/embed-and-fullscreen/ios/main.jsbundle new file mode 100644 index 00000000..4f50ea33 --- /dev/null +++ b/examples/embed-and-fullscreen/ios/main.jsbundle @@ -0,0 +1,5 @@ +// Offline JS +// To re-generate the offline bundle, run this from root of your project +// $ curl 'http://localhost:8081/index.ios.bundle?dev=false&minify=true' -o iOS/main.jsbundle + +throw new Error('Offline JS file is empty. See iOS/main.jsbundle for instructions'); diff --git a/examples/embed-and-fullscreen/ios/main.m b/examples/embed-and-fullscreen/ios/main.m new file mode 100644 index 00000000..cb502bc1 --- /dev/null +++ b/examples/embed-and-fullscreen/ios/main.m @@ -0,0 +1,19 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} + diff --git a/examples/embed-and-fullscreen/rn-cli.config.js b/examples/embed-and-fullscreen/rn-cli.config.js new file mode 100644 index 00000000..1b84294b --- /dev/null +++ b/examples/embed-and-fullscreen/rn-cli.config.js @@ -0,0 +1,7 @@ +const blacklist = require('metro').createBlacklist; + +module.exports = { + getBlacklistRE: function() { + return blacklist([/node_modules\/react-native-video\/examples\/.*/]); + } +}; diff --git a/ios/Video/RCTVideo.h b/ios/Video/RCTVideo.h index 05527a57..19d5d19f 100644 --- a/ios/Video/RCTVideo.h +++ b/ios/Video/RCTVideo.h @@ -15,8 +15,10 @@ @class RCTEventDispatcher; #if __has_include() @interface RCTVideo : UIView -#else +#elif TARGET_OS_TV @interface RCTVideo : UIView +#else +@interface RCTVideo : UIView #endif @property (nonatomic, copy) RCTBubblingEventBlock onVideoLoadStart; @@ -38,6 +40,8 @@ @property (nonatomic, copy) RCTBubblingEventBlock onPlaybackResume; @property (nonatomic, copy) RCTBubblingEventBlock onPlaybackRateChange; @property (nonatomic, copy) RCTBubblingEventBlock onVideoExternalPlaybackChange; +@property (nonatomic, copy) RCTBubblingEventBlock onPictureInPictureStatusChanged; +@property (nonatomic, copy) RCTBubblingEventBlock onRestoreUserInterfaceForPictureInPictureStop; - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER; diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index c151b3d0..dcadee85 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -64,6 +64,7 @@ static int const RCTVideoUnset = -1; BOOL _playbackStalled; BOOL _playInBackground; BOOL _playWhenInactive; + BOOL _pictureInPicture; NSString * _ignoreSilentSwitch; NSString * _resizeMode; BOOL _fullscreen; @@ -76,6 +77,10 @@ static int const RCTVideoUnset = -1; #if __has_include() RCTVideoCache * _videoCache; #endif +#if TARGET_OS_IOS + void (^__strong _Nonnull _restoreUserInterfaceForPIPStopCompletionHandler)(BOOL); + AVPictureInPictureController *_pipController; +#endif } - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher @@ -100,7 +105,11 @@ static int const RCTVideoUnset = -1; _playInBackground = false; _allowsExternalPlayback = YES; _playWhenInactive = false; + _pictureInPicture = false; _ignoreSilentSwitch = @"inherit"; // inherit, ignore, obey +#if TARGET_OS_IOS + _restoreUserInterfaceForPIPStopCompletionHandler = NULL; +#endif #if __has_include() _videoCache = [RCTVideoCache sharedInstance]; #endif @@ -137,7 +146,6 @@ static int const RCTVideoUnset = -1; viewController.view.frame = self.bounds; viewController.player = player; - viewController.view.frame = self.bounds; return viewController; } @@ -197,6 +205,7 @@ static int const RCTVideoUnset = -1; [self removePlayerLayer]; [self removePlayerItemObservers]; [_player removeObserver:self forKeyPath:playbackRate context:nil]; + [_player removeObserver:self forKeyPath:externalPlaybackActive context: nil]; } #pragma mark - App lifecycle handlers @@ -466,6 +475,10 @@ static int const RCTVideoUnset = -1; bool shouldCache = [RCTConvert BOOL:[source objectForKey:@"shouldCache"]]; NSString *uri = [source objectForKey:@"uri"]; NSString *type = [source objectForKey:@"type"]; + if (!uri || [uri isEqualToString:@""]) { + DebugLog(@"Could not find video URL in source '%@'", source); + return; + } NSURL *url = isNetwork || isAsset ? [NSURL URLWithString:uri] @@ -565,6 +578,27 @@ static int const RCTVideoUnset = -1; - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + // when controls==true, this is a hack to reset the rootview when rotation happens in fullscreen + if (object == _playerViewController.contentOverlayView) { + if ([keyPath isEqualToString:@"frame"]) { + + CGRect oldRect = [change[NSKeyValueChangeOldKey] CGRectValue]; + CGRect newRect = [change[NSKeyValueChangeNewKey] CGRectValue]; + + if (!CGRectEqualToRect(oldRect, newRect)) { + if (CGRectEqualToRect(newRect, [UIScreen mainScreen].bounds)) { + NSLog(@"in fullscreen"); + } else NSLog(@"not fullscreen"); + + [self.reactViewController.view setFrame:[UIScreen mainScreen].bounds]; + [self.reactViewController.view setNeedsLayout]; + } + + return; + } else + return [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; + } + if (object == _playerItem) { // When timeMetadata is read the event onTimedMetadata is triggered if ([keyPath isEqualToString:timedMetadata]) { @@ -781,6 +815,44 @@ static int const RCTVideoUnset = -1; _playWhenInactive = playWhenInactive; } +- (void)setPictureInPicture:(BOOL)pictureInPicture +{ + #if TARGET_OS_IOS + if (_pictureInPicture == pictureInPicture) { + return; + } + + _pictureInPicture = pictureInPicture; + if (_pipController && _pictureInPicture && ![_pipController isPictureInPictureActive]) { + dispatch_async(dispatch_get_main_queue(), ^{ + [_pipController startPictureInPicture]; + }); + } else if (_pipController && !_pictureInPicture && [_pipController isPictureInPictureActive]) { + dispatch_async(dispatch_get_main_queue(), ^{ + [_pipController stopPictureInPicture]; + }); + } + #endif +} + +#if TARGET_OS_IOS +- (void)setRestoreUserInterfaceForPIPStopCompletionHandler:(BOOL)restore +{ + if (_restoreUserInterfaceForPIPStopCompletionHandler != NULL) { + _restoreUserInterfaceForPIPStopCompletionHandler(restore); + _restoreUserInterfaceForPIPStopCompletionHandler = NULL; + } +} + +- (void)setupPipController { + if (!_pipController && _playerLayer && [AVPictureInPictureController isPictureInPictureSupported]) { + // Create new controller passing reference to the AVPlayerLayer + _pipController = [[AVPictureInPictureController alloc] initWithPlayerLayer:_playerLayer]; + _pipController.delegate = self; + } +} +#endif + - (void)setIgnoreSilentSwitch:(NSString *)ignoreSilentSwitch { _ignoreSilentSwitch = ignoreSilentSwitch; @@ -1215,7 +1287,14 @@ static int const RCTVideoUnset = -1; // to prevent video from being animated when resizeMode is 'cover' // resize mode must be set before subview is added [self setResizeMode:_resizeMode]; - [self addSubview:_playerViewController.view]; + + if (_controls) { + UIViewController *viewController = [self reactViewController]; + [viewController addChildViewController:_playerViewController]; + [self addSubview:_playerViewController.view]; + } + + [_playerViewController.contentOverlayView addObserver:self forKeyPath:@"frame" options:NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld context:NULL]; } } @@ -1235,6 +1314,9 @@ static int const RCTVideoUnset = -1; [self.layer addSublayer:_playerLayer]; self.layer.needsDisplayOnBoundsChange = YES; + #if TARGET_OS_IOS + [self setupPipController]; + #endif } } @@ -1405,6 +1487,7 @@ static int const RCTVideoUnset = -1; [self removePlayerLayer]; + [_playerViewController.contentOverlayView removeObserver:self forKeyPath:@"frame"]; [_playerViewController.view removeFromSuperview]; _playerViewController = nil; @@ -1491,4 +1574,44 @@ static int const RCTVideoUnset = -1; return array[0]; } +#pragma mark - Picture in Picture + +#if TARGET_OS_IOS +- (void)pictureInPictureControllerDidStopPictureInPicture:(AVPictureInPictureController *)pictureInPictureController { + if (self.onPictureInPictureStatusChanged) { + self.onPictureInPictureStatusChanged(@{ + @"isActive": [NSNumber numberWithBool:false] + }); + } +} + +- (void)pictureInPictureControllerDidStartPictureInPicture:(AVPictureInPictureController *)pictureInPictureController { + if (self.onPictureInPictureStatusChanged) { + self.onPictureInPictureStatusChanged(@{ + @"isActive": [NSNumber numberWithBool:true] + }); + } +} + +- (void)pictureInPictureControllerWillStopPictureInPicture:(AVPictureInPictureController *)pictureInPictureController { + +} + +- (void)pictureInPictureControllerWillStartPictureInPicture:(AVPictureInPictureController *)pictureInPictureController { + +} + +- (void)pictureInPictureController:(AVPictureInPictureController *)pictureInPictureController failedToStartPictureInPictureWithError:(NSError *)error { + +} + +- (void)pictureInPictureController:(AVPictureInPictureController *)pictureInPictureController restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:(void (^)(BOOL))completionHandler { + NSAssert(_restoreUserInterfaceForPIPStopCompletionHandler == NULL, @"restoreUserInterfaceForPIPStopCompletionHandler was not called after picture in picture was exited."); + if (self.onRestoreUserInterfaceForPictureInPictureStop) { + self.onRestoreUserInterfaceForPictureInPictureStop(@{}); + } + _restoreUserInterfaceForPIPStopCompletionHandler = completionHandler; +} +#endif + @end diff --git a/ios/Video/RCTVideoManager.m b/ios/Video/RCTVideoManager.m index 1ca1b5b4..a608f32e 100644 --- a/ios/Video/RCTVideoManager.m +++ b/ios/Video/RCTVideoManager.m @@ -32,6 +32,7 @@ RCT_EXPORT_VIEW_PROPERTY(controls, BOOL); RCT_EXPORT_VIEW_PROPERTY(volume, float); RCT_EXPORT_VIEW_PROPERTY(playInBackground, BOOL); RCT_EXPORT_VIEW_PROPERTY(playWhenInactive, BOOL); +RCT_EXPORT_VIEW_PROPERTY(pictureInPicture, BOOL); RCT_EXPORT_VIEW_PROPERTY(ignoreSilentSwitch, NSString); RCT_EXPORT_VIEW_PROPERTY(rate, float); RCT_EXPORT_VIEW_PROPERTY(seek, NSDictionary); @@ -42,6 +43,7 @@ RCT_EXPORT_VIEW_PROPERTY(fullscreenOrientation, NSString); RCT_EXPORT_VIEW_PROPERTY(filter, NSString); RCT_EXPORT_VIEW_PROPERTY(filterEnabled, BOOL); RCT_EXPORT_VIEW_PROPERTY(progressUpdateInterval, float); +RCT_EXPORT_VIEW_PROPERTY(restoreUserInterfaceForPIPStopCompletionHandler, BOOL); /* Should support: onLoadStart, onLoad, and onError to stay consistent with Image */ RCT_EXPORT_VIEW_PROPERTY(onVideoLoadStart, RCTBubblingEventBlock); RCT_EXPORT_VIEW_PROPERTY(onVideoLoad, RCTBubblingEventBlock); @@ -77,6 +79,8 @@ RCT_REMAP_METHOD(save, } }]; } +RCT_EXPORT_VIEW_PROPERTY(onPictureInPictureStatusChanged, RCTBubblingEventBlock); +RCT_EXPORT_VIEW_PROPERTY(onRestoreUserInterfaceForPictureInPictureStop, RCTBubblingEventBlock); - (NSDictionary *)constantsToExport {