TypeSquare Webfonts SAKURA for SAKURA Rental Server - Version 2.0.0

Version Description

Download this release

Release Info

Developer sakurainternet
Plugin Icon 128x128 TypeSquare Webfonts SAKURA for SAKURA Rental Server
Version 2.0.0
Comparing to
See all releases

Code changes from version 1.0.4 to 2.0.0

Files changed (3) hide show
  1. bin/install-wp-tests.sh +0 -120
  2. inc/admin-root.php +210 -27
  3. inc/app.js +10841 -386
bin/install-wp-tests.sh DELETED
@@ -1,120 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- if [ $# -lt 3 ]; then
4
- echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]"
5
- exit 1
6
- fi
7
-
8
- DB_NAME=$1
9
- DB_USER=$2
10
- DB_PASS=$3
11
- DB_HOST=${4-localhost}
12
- WP_VERSION=${5-latest}
13
-
14
- WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wordpress-tests-lib}
15
- WP_CORE_DIR=${WP_CORE_DIR-/tmp/wordpress/}
16
-
17
- download() {
18
- if [ `which curl` ]; then
19
- curl -s "$1" > "$2";
20
- elif [ `which wget` ]; then
21
- wget -nv -O "$2" "$1"
22
- fi
23
- }
24
-
25
- if [[ $WP_VERSION =~ [0-9]+\.[0-9]+(\.[0-9]+)? ]]; then
26
- WP_TESTS_TAG="tags/$WP_VERSION"
27
- elif [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
28
- WP_TESTS_TAG="trunk"
29
- else
30
- # http serves a single offer, whereas https serves multiple. we only want one
31
- download http://api.wordpress.org/core/version-check/1.7/ /tmp/wp-latest.json
32
- grep '[0-9]+\.[0-9]+(\.[0-9]+)?' /tmp/wp-latest.json
33
- LATEST_VERSION=$(grep -o '"version":"[^"]*' /tmp/wp-latest.json | sed 's/"version":"//')
34
- if [[ -z "$LATEST_VERSION" ]]; then
35
- echo "Latest WordPress version could not be found"
36
- exit 1
37
- fi
38
- WP_TESTS_TAG="tags/$LATEST_VERSION"
39
- fi
40
-
41
- set -ex
42
-
43
- install_wp() {
44
-
45
- if [ -d $WP_CORE_DIR ]; then
46
- return;
47
- fi
48
-
49
- mkdir -p $WP_CORE_DIR
50
-
51
- if [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
52
- mkdir -p /tmp/wordpress-nightly
53
- download https://wordpress.org/nightly-builds/wordpress-latest.zip /tmp/wordpress-nightly/wordpress-nightly.zip
54
- unzip -q /tmp/wordpress-nightly/wordpress-nightly.zip -d /tmp/wordpress-nightly/
55
- mv /tmp/wordpress-nightly/wordpress/* $WP_CORE_DIR
56
- else
57
- if [ $WP_VERSION == 'latest' ]; then
58
- local ARCHIVE_NAME='latest'
59
- else
60
- local ARCHIVE_NAME="wordpress-$WP_VERSION"
61
- fi
62
- download https://wordpress.org/${ARCHIVE_NAME}.tar.gz /tmp/wordpress.tar.gz
63
- tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR
64
- fi
65
-
66
- download https://raw.github.com/markoheijnen/wp-mysqli/master/db.php $WP_CORE_DIR/wp-content/db.php
67
- }
68
-
69
- install_test_suite() {
70
- # portable in-place argument for both GNU sed and Mac OSX sed
71
- if [[ $(uname -s) == 'Darwin' ]]; then
72
- local ioption='-i .bak'
73
- else
74
- local ioption='-i'
75
- fi
76
-
77
- # set up testing suite if it doesn't yet exist
78
- if [ ! -d $WP_TESTS_DIR ]; then
79
- # set up testing suite
80
- mkdir -p $WP_TESTS_DIR
81
- svn co --quiet https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/includes/ $WP_TESTS_DIR/includes
82
- fi
83
-
84
- cd $WP_TESTS_DIR
85
-
86
- if [ ! -f wp-tests-config.php ]; then
87
- download https://develop.svn.wordpress.org/${WP_TESTS_TAG}/wp-tests-config-sample.php "$WP_TESTS_DIR"/wp-tests-config.php
88
- sed $ioption "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR':" "$WP_TESTS_DIR"/wp-tests-config.php
89
- sed $ioption "s/youremptytestdbnamehere/$DB_NAME/" "$WP_TESTS_DIR"/wp-tests-config.php
90
- sed $ioption "s/yourusernamehere/$DB_USER/" "$WP_TESTS_DIR"/wp-tests-config.php
91
- sed $ioption "s/yourpasswordhere/$DB_PASS/" "$WP_TESTS_DIR"/wp-tests-config.php
92
- sed $ioption "s|localhost|${DB_HOST}|" "$WP_TESTS_DIR"/wp-tests-config.php
93
- fi
94
-
95
- }
96
-
97
- install_db() {
98
- # parse DB_HOST for port or socket references
99
- local PARTS=(${DB_HOST//\:/ })
100
- local DB_HOSTNAME=${PARTS[0]};
101
- local DB_SOCK_OR_PORT=${PARTS[1]};
102
- local EXTRA=""
103
-
104
- if ! [ -z $DB_HOSTNAME ] ; then
105
- if [ $(echo $DB_SOCK_OR_PORT | grep -e '^[0-9]\{1,\}$') ]; then
106
- EXTRA=" --host=$DB_HOSTNAME --port=$DB_SOCK_OR_PORT --protocol=tcp"
107
- elif ! [ -z $DB_SOCK_OR_PORT ] ; then
108
- EXTRA=" --socket=$DB_SOCK_OR_PORT"
109
- elif ! [ -z $DB_HOSTNAME ] ; then
110
- EXTRA=" --host=$DB_HOSTNAME --protocol=tcp"
111
- fi
112
- fi
113
-
114
- # create database
115
- mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS"$EXTRA
116
- }
117
-
118
- install_wp
119
- install_test_suite
120
- install_db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/admin-root.php CHANGED
@@ -51,7 +51,7 @@ class TypeSquare_Admin_Root extends TypeSquare_Admin_Base {
51
  $option .= "{$fonttheme_name} ( {$font_text} )";
52
  $option .= '</option>';
53
  }
54
- $html .= '<h4>'. __( 'フォントテーマから選ぶ', self::$text_domain ) . '</h4>';
55
  $html .= "<select name='typesquare_fonttheme[theme]'>{$option}</select>";
56
  return $html;
57
  }
@@ -121,9 +121,10 @@ class TypeSquare_Admin_Root extends TypeSquare_Admin_Base {
121
  echo $this->get_font_theme_form();
122
  echo '<hr/>';
123
  echo "<div class='ts-custome_form_row'>";
124
- echo '<h3>■'. __( '上級者向けのカスタマイズ', self::$text_domain ). '</h3>';
125
- echo "<div class='ts-custome_form'>";
126
  echo $this->get_font_target_form();
 
127
  echo $this->_get_post_font_form();
128
  echo '</div>';
129
  echo '</div>';
@@ -139,47 +140,64 @@ class TypeSquare_Admin_Root extends TypeSquare_Admin_Base {
139
  $html = '';
140
  $html .= '<hr/>';
141
  $html .= "<form method='post' action=''>";
142
- $html .= '<h4>'. __( 'フォントテーマ個別表示設定' , self::$text_domain ). '</h4>';
143
- $html .= '<p>'. __( '各画面でフォントテーマを個別に変更できる機能のON/OFFを設定します。' , self::$text_domain ). '</p>';
144
  $html .= wp_nonce_field( 'ts_update_font_settings' , 'ts_update_font_settings' , true , false );
145
  $html .= "<table class='widefat form-table'>";
146
- $html .= '<thead>';
147
- $html .= "<tr><th> {$keys['show_post_form']}</th></tr>";
148
- $html .= '</thead>';
149
  $html .= '<tbody>';
 
150
  $value = esc_attr( $param['typesquare_themes']['show_post_form'] );
151
- if ( ! $value ) {
152
- $value = 'false';
153
- }
154
- $html .= '<td><label>';
155
- $html .= "<input name='{$option_name}[show_post_form]' type='radio' id='show_post_form' value='true' class='code' ". checked( $value, 'true', false ). '/>';
156
- $html .= __( '表示する' , self::$text_domain );
157
- $html .= '</label> ';
158
  $html .= '<label>';
159
- $html .= "<input name='{$option_name}[show_post_form]' type='radio' id='show_post_form' value='false' class='code' ". checked( $value, 'false', false ). '/>';
160
- $html .= __( '表示しない' , self::$text_domain );
 
161
  $html .= '</label>';
162
- $html .= '<p>'. __( 'デフォルトでは非表示となっています。' , self::$text_domain ). '</p>';
163
  $html .= '</td></tr>';
 
164
  $html .= '</tbody>';
165
  $html .= '</table>';
166
- $html .= get_submit_button( __( 'フォントテーマ表示設定を更新する', self::$text_domain ) );
167
  $html .= '</form>';
168
  return $html;
169
 
170
  }
171
 
172
  public function get_font_theme_form() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  $option_name = 'typesquare_fonttheme';
174
  $fonts = TypeSquare_ST_Fonts::get_instance();
175
  $param = $fonts->get_fonttheme_params();
176
  $all_font_theme = $fonts->load_all_font_data( );
 
 
 
 
 
 
177
  $html = '';
178
  $html .= '<hr/>';
179
- $html .= "<form method='post' action=''>";
180
- $html .= '<h3>■'. __( 'フォントテーマ設定' , self::$text_domain ). '</h3>';
181
  $html .= '<p>'. __( 'フォントテーマを選択してください。' , self::$text_domain ). '<br/>';
182
- $html .= '<strong>'. __( '※カスタムフォントテーマからフォントテーマをカスタマイズ作成することができます。' , self::$text_domain ). '</strong></p>';
183
  $html .= wp_nonce_field( 'ts_update_font_settings' , 'ts_update_font_settings' , true , false );
184
  $html .= "<table class='widefat form-table'>";
185
  $html .= '<thead>';
@@ -187,13 +205,18 @@ class TypeSquare_Admin_Root extends TypeSquare_Admin_Base {
187
  $html .= '</thead>';
188
  $html .= '<tbody>';
189
  $html .= '<tr><td>';
190
- $html .= "<select name='{$option_name}[font_theme]'>";
191
  $html .= "<option value='false'>テーマを設定しない</option>";
 
 
 
 
 
192
  foreach ( $all_font_theme as $fonttheme_key => $fonttheme ) {
193
  $fonttheme_name = esc_attr( $fonttheme['name'] );
194
  $font_text = $this->_get_fonttheme_text( $fonttheme );
195
  $selected = '';
196
- if ( $fonttheme_key == $param['typesquare_themes']['font_theme'] ) {
197
  $selected = 'selected';
198
  }
199
  $html .= "<option value='{$fonttheme_key}' {$selected}>";
@@ -201,14 +224,146 @@ class TypeSquare_Admin_Root extends TypeSquare_Admin_Base {
201
  $html .= '</option>';
202
  }
203
  $html .= '</select>';
 
 
 
 
 
 
 
 
 
 
 
204
  $html .= '</td></tr>';
205
  $html .= '</tbody>';
206
  $html .= '</table>';
207
- $html .= get_submit_button( __( 'フォントテーマを更新する', self::$text_domain ) );
208
  $html .= '</form>';
209
  return $html;
210
  }
211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  private function _get_fonttheme_text( $fonttheme ) {
213
  $font_text = '';
214
  if ( isset( $fonttheme['fonts']['title'] ) ) {
@@ -245,7 +400,7 @@ class TypeSquare_Admin_Root extends TypeSquare_Admin_Base {
245
  $param = $fonts->get_fonttheme_params();
246
  $html = '';
247
  $html .= "<form method='post' action=''>";
248
- $html .= '<h4>'. __( 'フォント設定クラス' , self::$text_domain ). '</h4>';
249
  $html .= '<p>'. __( 'フォントを適用するクラスを指定します。' , self::$text_domain ). '</p>';
250
  $html .= "<table class='widefat form-table'>";
251
  $html .= '<thead>';
@@ -258,12 +413,40 @@ class TypeSquare_Admin_Root extends TypeSquare_Admin_Base {
258
  $html .= "<td><input type='text' name='typesquare_fonttheme[lead_target]' value='{$data['lead_target']}' required/></td>";
259
  $html .= "<td><input type='text' name='typesquare_fonttheme[text_target]' value='{$data['text_target']}' required/></td>";
260
  $html .= "<td><input type='text' name='typesquare_fonttheme[bold_target]' value='{$data['bold_target']}' required/></td></tr>";
 
 
 
261
  $html .= '</tbody>';
262
  $html .= '</table>';
263
- $html .= get_submit_button( __( '設定クラスを更新する', self::$text_domain ) );
264
  $html .= wp_nonce_field( 'ts_update_font_settings' , 'ts_update_font_settings' , true , false );
265
  $html .= '</form>';
266
  return $html;
267
  }
268
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  }
51
  $option .= "{$fonttheme_name} ( {$font_text} )";
52
  $option .= '</option>';
53
  }
54
+ $html .= '<h3>'. __( 'フォントテーマから選ぶ', self::$text_domain ) . '</h3>';
55
  $html .= "<select name='typesquare_fonttheme[theme]'>{$option}</select>";
56
  return $html;
57
  }
121
  echo $this->get_font_theme_form();
122
  echo '<hr/>';
123
  echo "<div class='ts-custome_form_row'>";
124
+ echo '<span><h3 class="toggleText toggleAdvanced mTop20">'. __( '上級者向けのカスタマイズ', self::$text_domain ). '<span class="advancedTriangle">▼</span></h3></span>';
125
+ echo "<div class='ts-custome_form hidden'>";
126
  echo $this->get_font_target_form();
127
+ echo $this->update_font_list_form();
128
  echo $this->_get_post_font_form();
129
  echo '</div>';
130
  echo '</div>';
140
  $html = '';
141
  $html .= '<hr/>';
142
  $html .= "<form method='post' action=''>";
143
+ $html .= '<h3>'. __( '個別記事フォント設定' , self::$text_domain ). '</h3>';
144
+ $html .= '<p>'. __( '個別記事作成画面にフォント設定を表示します。' , self::$text_domain ). '</p>';
145
  $html .= wp_nonce_field( 'ts_update_font_settings' , 'ts_update_font_settings' , true , false );
146
  $html .= "<table class='widefat form-table'>";
 
 
 
147
  $html .= '<tbody>';
148
+ $html .= "<tr><th> {$keys['show_post_form']}</th><td>";
149
  $value = esc_attr( $param['typesquare_themes']['show_post_form'] );
 
 
 
 
 
 
 
150
  $html .= '<label>';
151
+ $html .= "<input name='{$option_name}[show_post_form]' type='hidden' id='show_post_form' value='false' class='code'/>";
152
+ $html .= "<input name='{$option_name}[show_post_form]' value='true' id='show_post_form' type='checkbox' class='code' ".checked( $value, 'true', true )."/>";
153
+ $html .= __( '有効化する' , self::$text_domain );
154
  $html .= '</label>';
155
+ $html .= '<p>'. __( 'デフォルトではフォントテーマ設定が無効化されています。' , self::$text_domain ). '</p>';
156
  $html .= '</td></tr>';
157
+ $html .= '<tr><th></th><td style="position: relative; left: -208px;">' . get_submit_button( __( '個別記事フォント設定を更新する', self::$text_domain ) ) . '</td></tr>';
158
  $html .= '</tbody>';
159
  $html .= '</table>';
 
160
  $html .= '</form>';
161
  return $html;
162
 
163
  }
164
 
165
  public function get_font_theme_form() {
166
+ $current = get_option('typesquare_fonttheme');
167
+ $options = get_option( 'typesquare_custom_theme' );
168
+ $edit_theme = false;
169
+ $display = 'display:none';
170
+ if ( isset( $_POST['typesquare_fonttheme'] ) ) {
171
+ $edit_theme = esc_attr( $_POST['typesquare_fonttheme']['font_theme'] );
172
+ $display = "";
173
+ }
174
+ $edit_theme = '';
175
+ if( isset($_POST['ts_change_edit_theme']) ){
176
+ $edit_theme = 'change';
177
+ }
178
+ $edit_mode = '';
179
+ if( isset( $_POST['ts_edit_mode'] ) ) {
180
+ $edit_mode = $_POST['ts_edit_mode'];
181
+ }
182
+ if($edit_theme === 'change'){$display = 'display:none';}
183
+ if($edit_mode === 'delete' || $edit_mode === 'new' || $edit_theme === 'false' || !$edit_theme || !$edit_theme){ $display = 'display:none'; }
184
+ else{$display = "";}
185
  $option_name = 'typesquare_fonttheme';
186
  $fonts = TypeSquare_ST_Fonts::get_instance();
187
  $param = $fonts->get_fonttheme_params();
188
  $all_font_theme = $fonts->load_all_font_data( );
189
+ $font_theme = TypeSquare_ST_Fonttheme::get_instance();
190
+ $custom_theme_json = $font_theme->get_custom_theme_json();
191
+ if ( $current['font_theme'] && $options['theme'][ $current['font_theme'] ] && $edit_mode !== 'new' ) { $display = ""; }
192
+ if( isset($_POST['typesquare_fonttheme']['font_theme']) && $_POST['typesquare_fonttheme']['font_theme'] !== 'new'){
193
+ $param['typesquare_themes']['font_theme'] = $_POST['typesquare_fonttheme']['font_theme'];
194
+ }
195
  $html = '';
196
  $html .= '<hr/>';
197
+ $html .= "<form method='post' action='' id='custmeFontForm'>";
198
+ $html .= '<h3>'. __( 'フォントテーマ設定' , self::$text_domain ). '</h3>';
199
  $html .= '<p>'. __( 'フォントテーマを選択してください。' , self::$text_domain ). '<br/>';
200
+ $html .= '<strong>'. __( '※「新しくテーマを作成する」から、自由にフォントテーマを作成できます。' , self::$text_domain ). '</strong></p>';
201
  $html .= wp_nonce_field( 'ts_update_font_settings' , 'ts_update_font_settings' , true , false );
202
  $html .= "<table class='widefat form-table'>";
203
  $html .= '<thead>';
205
  $html .= '</thead>';
206
  $html .= '<tbody>';
207
  $html .= '<tr><td>';
208
+ $html .= "<select id='fontThemeSelect' name='{$option_name}[font_theme]'>";
209
  $html .= "<option value='false'>テーマを設定しない</option>";
210
+ $newSelect = '';
211
+ if($edit_mode === 'new'){
212
+ $newSelect = 'selected';
213
+ }
214
+ $html .= "<option value='new' {$newSelect}>新しくテーマを作成する</option>";
215
  foreach ( $all_font_theme as $fonttheme_key => $fonttheme ) {
216
  $fonttheme_name = esc_attr( $fonttheme['name'] );
217
  $font_text = $this->_get_fonttheme_text( $fonttheme );
218
  $selected = '';
219
+ if ( $fonttheme_key == $param['typesquare_themes']['font_theme'] && $fonttheme_key !== 'false' && !$newSelect ) {
220
  $selected = 'selected';
221
  }
222
  $html .= "<option value='{$fonttheme_key}' {$selected}>";
224
  $html .= '</option>';
225
  }
226
  $html .= '</select>';
227
+ $html .= $this->_get_custome_font_theme_list_form();
228
+ $html .= "<table>";
229
+ $html .= "<th>";
230
+ $html .= get_submit_button( __( 'フォントテーマを更新する', self::$text_domain ), 'primary', 'fontThemeUpdateButton');
231
+ $html .= "</th>";
232
+ $html .= "<th>";
233
+ $style = array("style"=>"margin-top:15px;".$display);
234
+ $html .= get_submit_button( __( 'フォントテーマを削除する', self::$text_domain ), 'delete', 'fontThemeDeleteButton', null, $style);
235
+ $html .= "</th>";
236
+ $html .= "</table>";
237
+ $html .= '<input type="hidden" name="typesquare_nonce_postmeta" id="typesquare_nonce_postmeta" value="' . wp_create_nonce( plugin_basename( __FILE__ ) ) . '" />';
238
  $html .= '</td></tr>';
239
  $html .= '</tbody>';
240
  $html .= '</table>';
 
241
  $html .= '</form>';
242
  return $html;
243
  }
244
 
245
+ public function _get_custome_font_theme_list_form() {
246
+ $options = get_option( 'typesquare_custom_theme' );
247
+ $current = get_option('typesquare_fonttheme');
248
+ $edit_theme = false;
249
+ $hidden = ' hidden';
250
+ $require = '';
251
+ if ( isset( $_POST['typesquare_fonttheme'] ) && isset( $_POST['ts_change_edit_theme'] ) ) {
252
+ $edit_theme = esc_attr( $_POST['typesquare_fonttheme']['font_theme'] );
253
+ $hidden = ' hidden';
254
+ }else if($current['font_theme'] && $current['font_theme'] !== 'false'){
255
+ $edit_theme = $current['font_theme'];
256
+ }
257
+ $fonts = TypeSquare_ST_Fonts::get_instance();
258
+ /* @TODO Debug Code
259
+ $option_name = 'typesquare_fonttheme';
260
+ $param = get_option( $option_name );
261
+ unset($param['fonts']);
262
+ update_option( $option_name, $param );
263
+ $param = $fonts->get_fonttheme_options();
264
+ */
265
+ $edit_mode = '';
266
+ if( isset( $_POST['ts_edit_mode'] ) ) {
267
+ $edit_mode = $_POST['ts_edit_mode'];
268
+ }
269
+ $font_list = $theme_id = $theme_name = '';
270
+ if ( $edit_theme && $options['theme'][ $edit_theme ] ) {
271
+ $theme_name = $options['theme'][ $edit_theme ]['name'];
272
+ $theme_id = $options['theme'][ $edit_theme ]['id'];
273
+ $font_list = $options['fonts'][ $edit_theme ];
274
+ $hidden = ' ';
275
+ $edit_mode = 'update';
276
+ }
277
+ $html = '';
278
+ if ( $theme_id ) {
279
+ $theme_input = "<input type='hidden' id='ts_custome_theme_id' name='typesquare_custom_theme[id]' value='{$theme_id}' />";
280
+ $html .= "<input type='hidden' name='ts_edit_mode' value='update' />";
281
+ $html .= $theme_input;
282
+ } else {
283
+ $theme_id = uniqid();
284
+ $theme_input = false;
285
+ $html .= "<input type='hidden' name='ts_edit_mode' value='update' />";
286
+ if(!$edit_theme || !$edit_mode || $edit_theme === 'false' || $edit_mode === 'delete' || $edit_mode === 'update'){
287
+ $theme_id = '';
288
+ }
289
+ if($theme_id !== ''){
290
+ $html .= "<input type='hidden' id='ts_custome_theme_id' name='typesquare_custom_theme[id]' value='{$theme_id}' maxlength='16' style='width:100%;' pattern='^[0-9A-Za-z]+$' required/>";
291
+ }else {
292
+ $html .= '<input type="hidden" name="ts_custome_theme_id" id="typesquare_custom_theme[id]" value="' . wp_create_nonce( plugin_basename( __FILE__ ) ) . '" />';
293
+ }
294
+ }
295
+ if($edit_mode === 'new'){
296
+ $hidden = ' ';
297
+ }
298
+ if($edit_theme === 'new'){
299
+ $hidden = ' ';
300
+ }
301
+ if(!$edit_theme || !$edit_mode || $edit_theme === 'false' || $edit_mode === 'delete'){
302
+ $hidden = ' hidden';
303
+ }
304
+ if($hidden === ' '){
305
+ $require = 'required';
306
+ }
307
+ $html .= '<hr/>';
308
+ $html .= "<div id='customeFontThemeForm'{$hidden}>";
309
+ $html .= wp_nonce_field( 'ts_update_font_name_setting', 'ts_update_font_name_setting', true , false );
310
+ $html .= "<table class='widefat' style='border: 0px'>";
311
+ $html .= '<tbody>';
312
+ $html .= "<tr><th width='20%''>テーマタイトル</th><td>";
313
+ $html .= "<input type='hidden' id='current_custome_font_name' value='{$theme_name}'/>";
314
+ $html .= "<input type='text' id='custome_font_name' name='typesquare_custom_theme[name]' value='{$theme_name}' maxlength='16' style='width:30%;' {$require}/>";
315
+ $html .= '</td></tr>';
316
+ $html .= '</tbody>';
317
+ $html .= '</table>';
318
+ $html .= "<div id='ts-react-search-font'></div>";
319
+ $html .= "</div>";
320
+ $html .= $this->_get_script( $font_list );
321
+ return $html;
322
+ }
323
+
324
+ private function _get_script( $font_list ) {
325
+ $vars = "var form_id = '#". self::MENU_FONTTHEME. "';";
326
+ $vars .= "var notify_text = '". __( 'フォントを1種類以上選択してください。', self::$text_domain ). "';";
327
+ $vars .= "var unique_id ='". uniqid() ."';";
328
+ $options = get_option('typesquare_custom_theme');
329
+ $vars .= "var option_font_list = ". json_encode( $options ) .";";
330
+ $vars .= "var plugin_base = '".wp_create_nonce( plugin_basename( __FILE__ ) )."';";
331
+ $fonts = TypeSquare_ST_Fonts::get_instance();
332
+ $all_font_theme = $fonts->load_all_font_data( );
333
+ $vars .= 'var all_font_list = '. json_encode( $all_font_theme ) .';';
334
+ $script = <<<EOM
335
+ {$vars}
336
+ jQuery( document ).ready(function() {
337
+ jQuery( form_id ).submit(function() {
338
+ var title = jQuery( 'select[name="typesquare_custom_theme[fonts][title][font]"]' ).val();
339
+ var lead = jQuery( 'select[name="typesquare_custom_theme[fonts][lead][font]"]' ).val();
340
+ var text = jQuery( 'select[name="typesquare_custom_theme[fonts][text][font]"]' ).val();
341
+ var bold = jQuery( 'select[name="typesquare_custom_theme[fonts][bold][font]"]' ).val();
342
+ if (
343
+ title === 'false' &&
344
+ lead === 'false' &&
345
+ text === 'false' &&
346
+ bold === 'false'
347
+ ) {
348
+ alert( notify_text );
349
+ return false;
350
+ }
351
+ });
352
+ });
353
+ EOM;
354
+ $html = '<script>';
355
+ $endpoint = path_join( TS_PLUGIN_URL , 'inc/font.json' );
356
+ $html .= "var json_endpoint = '{$endpoint}';";
357
+ if ( $font_list ) {
358
+ $html .= "var current_font = ". json_encode( $font_list ) .';';
359
+ } else {
360
+ $html .= "var current_font = false;";
361
+ }
362
+ $html .= $script;
363
+ $html .= '</script>';
364
+ return $html;
365
+ }
366
+
367
  private function _get_fonttheme_text( $fonttheme ) {
368
  $font_text = '';
369
  if ( isset( $fonttheme['fonts']['title'] ) ) {
400
  $param = $fonts->get_fonttheme_params();
401
  $html = '';
402
  $html .= "<form method='post' action=''>";
403
+ $html .= '<h3>'. __( 'フォント設定クラス' , self::$text_domain ). '</h3>';
404
  $html .= '<p>'. __( 'フォントを適用するクラスを指定します。' , self::$text_domain ). '</p>';
405
  $html .= "<table class='widefat form-table'>";
406
  $html .= '<thead>';
413
  $html .= "<td><input type='text' name='typesquare_fonttheme[lead_target]' value='{$data['lead_target']}' required/></td>";
414
  $html .= "<td><input type='text' name='typesquare_fonttheme[text_target]' value='{$data['text_target']}' required/></td>";
415
  $html .= "<td><input type='text' name='typesquare_fonttheme[bold_target]' value='{$data['bold_target']}' required/></td></tr>";
416
+ $html .= "<tr><td>";
417
+ $html .= get_submit_button( __( '設定クラスを更新する', self::$text_domain ) );
418
+ $html .= "</td></tr>";
419
  $html .= '</tbody>';
420
  $html .= '</table>';
 
421
  $html .= wp_nonce_field( 'ts_update_font_settings' , 'ts_update_font_settings' , true , false );
422
  $html .= '</form>';
423
  return $html;
424
  }
425
 
426
+ public function update_font_list_form() {
427
+ $fonts = TypeSquare_ST_Fonts::get_instance();
428
+ $auth_param = $this->get_auth_params();
429
+ if ( false == $auth_param['typesquare_auth']['api_status'] ) {
430
+ return;
431
+ }
432
+ $font_file_path = path_join( TS_PLUGIN_PATH , 'inc/font.json' );
433
+ $param = date("y/m/d", filemtime($font_file_path));
434
+ $html = '';
435
+ $html .= "<form method='post' action=''>";
436
+ $html .= '<h3>'. __( 'フォント一覧の更新' , self::$text_domain ). '</h3>';
437
+ $html .= '<p>'. __( '利用可能フォントの一覧を最新版に更新します。' , self::$text_domain ). '</p>';
438
+ $html .= "<table class='widefat form-table'>";
439
+ $html .= '<thead>';
440
+ $html .= "<tr></tr>";
441
+ $html .= '</thead>';
442
+ $html .= "<tbody>";
443
+ $html .= "<tr><td style='width: 1%;'>".get_submit_button( __( 'フォント一覧を更新する', self::$text_domain ) )."</td>";
444
+ $html .= "<td>最終更新日: ".$param."</td></tr>";
445
+ $html .= '</tbody>';
446
+ $html .= '</table>';
447
+ $html .= wp_nonce_field( 'ts_update_font_list' , 'ts_update_font_list' , true , false );
448
+ $html .= '</form>';
449
+ return $html;
450
+ }
451
+
452
  }
inc/app.js CHANGED
@@ -1,5 +1,5 @@
1
  (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2
- // Load Reacts
3
  'use strict';
4
 
5
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -10,6 +10,8 @@ var _react2 = _interopRequireDefault(_react);
10
 
11
  var _reactDom = require('react-dom');
12
 
 
 
13
  var Thead = _react2['default'].createClass({
14
  displayName: 'Thead',
15
 
@@ -517,7 +519,146 @@ if (document.getElementById("ts-react-search-font") != null) {
517
  (0, _reactDom.render)(_react2['default'].createElement(App, { pageType: 'post' }), document.getElementById('ts-react-post-search-font'));
518
  }
519
 
520
- },{"react":159,"react-dom":30}],2:[function(require,module,exports){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
521
  (function (process){
522
  /**
523
  * Copyright 2013-2015, Facebook, Inc.
@@ -604,8 +745,8 @@ var EventListener = {
604
 
605
  module.exports = EventListener;
606
  }).call(this,require('_process'))
607
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9mYmpzL2xpYi9FdmVudExpc3RlbmVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ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bGxiYWNrIGZ1bmN0aW9uLlxuICAgKiBAcmV0dXJuIHtvYmplY3R9IE9iamVjdCB3aXRoIGEgYHJlbW92ZWAgbWV0aG9kLlxuICAgKi9cbiAgY2FwdHVyZTogZnVuY3Rpb24gKHRhcmdldCwgZXZlbnRUeXBlLCBjYWxsYmFjaykge1xuICAgIGlmICh0YXJnZXQuYWRkRXZlbnRMaXN0ZW5lcikge1xuICAgICAgdGFyZ2V0LmFkZEV2ZW50TGlzdGVuZXIoZXZlbnRUeXBlLCBjYWxsYmFjaywgdHJ1ZSk7XG4gICAgICByZXR1cm4ge1xuICAgICAgICByZW1vdmU6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICB0YXJnZXQucmVtb3ZlRXZlbnRMaXN0ZW5lcihldmVudFR5cGUsIGNhbGxiYWNrLCB0cnVlKTtcbiAgICAgICAgfVxuICAgICAgfTtcbiAgICB9IGVsc2Uge1xuICAgICAgaWYgKHByb2Nlc3MuZW52Lk5PREVfRU5WICE9PSAncHJvZHVjdGlvbicpIHtcbiAgICAgICAgY29uc29sZS5lcnJvcignQXR0ZW1wdGVkIHRvIGxpc3RlbiB0byBldmVudHMgZHVyaW5nIHRoZSBjYXB0dXJlIHBoYXNlIG9uIGEgJyArICdicm93c2VyIHRoYXQgZG9lcyBub3Qgc3VwcG9ydCB0aGUgY2FwdHVyZSBwaGFzZS4gWW91ciBhcHBsaWNhdGlvbiAnICsgJ3dpbGwgbm90IHJlY2VpdmUgc29tZSBldmVudHMuJyk7XG4gICAgICB9XG4gICAgICByZXR1cm4ge1xuICAgICAgICByZW1vdmU6IGVtcHR5RnVuY3Rpb25cbiAgICAgIH07XG4gICAgfVxuICB9LFxuXG4gIHJlZ2lzdGVyRGVmYXVsdDogZnVuY3Rpb24gKCkge31cbn07XG5cbm1vZHVsZS5leHBvcnRzID0gRXZlbnRMaXN0ZW5lcjsiXX0=
608
- },{"./emptyFunction":9,"_process":29}],3:[function(require,module,exports){
609
  /**
610
  * Copyright 2013-2015, Facebook, Inc.
611
  * All rights reserved.
@@ -642,7 +783,7 @@ var ExecutionEnvironment = {
642
  };
643
 
644
  module.exports = ExecutionEnvironment;
645
- },{}],4:[function(require,module,exports){
646
  /**
647
  * Copyright 2013-2015, Facebook, Inc.
648
  * All rights reserved.
@@ -675,7 +816,7 @@ function camelize(string) {
675
  }
676
 
677
  module.exports = camelize;
678
- },{}],5:[function(require,module,exports){
679
  /**
680
  * Copyright 2013-2015, Facebook, Inc.
681
  * All rights reserved.
@@ -716,7 +857,7 @@ function camelizeStyleName(string) {
716
  }
717
 
718
  module.exports = camelizeStyleName;
719
- },{"./camelize":4}],6:[function(require,module,exports){
720
  /**
721
  * Copyright 2013-2015, Facebook, Inc.
722
  * All rights reserved.
@@ -772,7 +913,7 @@ function containsNode(_x, _x2) {
772
  }
773
 
774
  module.exports = containsNode;
775
- },{"./isTextNode":19}],7:[function(require,module,exports){
776
  /**
777
  * Copyright 2013-2015, Facebook, Inc.
778
  * All rights reserved.
@@ -858,7 +999,7 @@ function createArrayFromMixed(obj) {
858
  }
859
 
860
  module.exports = createArrayFromMixed;
861
- },{"./toArray":27}],8:[function(require,module,exports){
862
  (function (process){
863
  /**
864
  * Copyright 2013-2015, Facebook, Inc.
@@ -945,8 +1086,8 @@ function createNodesFromMarkup(markup, handleScript) {
945
 
946
  module.exports = createNodesFromMarkup;
947
  }).call(this,require('_process'))
948
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9mYmpzL2xpYi9jcmVhdGVOb2Rlc0Zyb21NYXJrdXAuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTt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ment":3,"./createArrayFromMixed":7,"./getMarkupWrap":13,"./invariant":17,"_process":29}],9:[function(require,module,exports){
950
  /**
951
  * Copyright 2013-2015, Facebook, Inc.
952
  * All rights reserved.
@@ -985,7 +1126,7 @@ emptyFunction.thatReturnsArgument = function (arg) {
985
  };
986
 
987
  module.exports = emptyFunction;
988
- },{}],10:[function(require,module,exports){
989
  (function (process){
990
  /**
991
  * Copyright 2013-2015, Facebook, Inc.
@@ -1008,8 +1149,8 @@ if (process.env.NODE_ENV !== 'production') {
1008
 
1009
  module.exports = emptyObject;
1010
  }).call(this,require('_process'))
1011
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9mYmpzL2xpYi9lbXB0eU9iamVjdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsImZpbGUiOiJnZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgMjAxMy0yMDE1LCBGYWNlYm9vaywgSW5jLlxuICogQWxsIHJpZ2h0cyByZXNlcnZlZC5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBCU0Qtc3R5bGUgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS4gQW4gYWRkaXRpb25hbCBncmFudFxuICogb2YgcGF0ZW50IHJpZ2h0cyBjYW4gYmUgZm91bmQgaW4gdGhlIFBBVEVOVFMgZmlsZSBpbiB0aGUgc2FtZSBkaXJlY3RvcnkuXG4gKlxuICogQHByb3ZpZGVzTW9kdWxlIGVtcHR5T2JqZWN0XG4gKi9cblxuJ3VzZSBzdHJpY3QnO1xuXG52YXIgZW1wdHlPYmplY3QgPSB7fTtcblxuaWYgKHByb2Nlc3MuZW52Lk5PREVfRU5WICE9PSAncHJvZHVjdGlvbicpIHtcbiAgT2JqZWN0LmZyZWV6ZShlbXB0eU9iamVjdCk7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gZW1wdHlPYmplY3Q7Il19
1012
- },{"_process":29}],11:[function(require,module,exports){
1013
  /**
1014
  * Copyright 2013-2015, Facebook, Inc.
1015
  * All rights reserved.
@@ -1036,7 +1177,7 @@ function focusNode(node) {
1036
  }
1037
 
1038
  module.exports = focusNode;
1039
- },{}],12:[function(require,module,exports){
1040
  /**
1041
  * Copyright 2013-2015, Facebook, Inc.
1042
  * All rights reserved.
@@ -1072,7 +1213,7 @@ function getActiveElement() /*?DOMElement*/{
1072
  }
1073
 
1074
  module.exports = getActiveElement;
1075
- },{}],13:[function(require,module,exports){
1076
  (function (process){
1077
  /**
1078
  * Copyright 2013-2015, Facebook, Inc.
@@ -1170,8 +1311,8 @@ function getMarkupWrap(nodeName) {
1170
 
1171
  module.exports = getMarkupWrap;
1172
  }).call(this,require('_process'))
1173
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9mYmpzL2xpYi9nZXRNYXJrdXBXcmFwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNB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ICcqJztcbiAgfVxuICBpZiAoIXNob3VsZFdyYXAuaGFzT3duUHJvcGVydHkobm9kZU5hbWUpKSB7XG4gICAgaWYgKG5vZGVOYW1lID09PSAnKicpIHtcbiAgICAgIGR1bW15Tm9kZS5pbm5lckhUTUwgPSAnPGxpbmsgLz4nO1xuICAgIH0gZWxzZSB7XG4gICAgICBkdW1teU5vZGUuaW5uZXJIVE1MID0gJzwnICsgbm9kZU5hbWUgKyAnPjwvJyArIG5vZGVOYW1lICsgJz4nO1xuICAgIH1cbiAgICBzaG91bGRXcmFwW25vZGVOYW1lXSA9ICFkdW1teU5vZGUuZmlyc3RDaGlsZDtcbiAgfVxuICByZXR1cm4gc2hvdWxkV3JhcFtub2RlTmFtZV0gPyBtYXJrdXBXcmFwW25vZGVOYW1lXSA6IG51bGw7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gZ2V0TWFya3VwV3JhcDsiXX0=
1174
- },{"./ExecutionEnvironment":3,"./invariant":17,"_process":29}],14:[function(require,module,exports){
1175
  /**
1176
  * Copyright 2013-2015, Facebook, Inc.
1177
  * All rights reserved.
@@ -1210,7 +1351,7 @@ function getUnboundedScrollPosition(scrollable) {
1210
  }
1211
 
1212
  module.exports = getUnboundedScrollPosition;
1213
- },{}],15:[function(require,module,exports){
1214
  /**
1215
  * Copyright 2013-2015, Facebook, Inc.
1216
  * All rights reserved.
@@ -1244,7 +1385,7 @@ function hyphenate(string) {
1244
  }
1245
 
1246
  module.exports = hyphenate;
1247
- },{}],16:[function(require,module,exports){
1248
  /**
1249
  * Copyright 2013-2015, Facebook, Inc.
1250
  * All rights reserved.
@@ -1284,7 +1425,7 @@ function hyphenateStyleName(string) {
1284
  }
1285
 
1286
  module.exports = hyphenateStyleName;
1287
- },{"./hyphenate":15}],17:[function(require,module,exports){
1288
  (function (process){
1289
  /**
1290
  * Copyright 2013-2015, Facebook, Inc.
@@ -1337,8 +1478,8 @@ function invariant(condition, format, a, b, c, d, e, f) {
1337
 
1338
  module.exports = inv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c3NhZ2UgYW5kIGFkZGl0aW9uYWwgaGVscGZ1bCB3YXJuaW5ncy4nKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdmFyIGFyZ3MgPSBbYSwgYiwgYywgZCwgZSwgZl07XG4gICAgICB2YXIgYXJnSW5kZXggPSAwO1xuICAgICAgZXJyb3IgPSBuZXcgRXJyb3IoZm9ybWF0LnJlcGxhY2UoLyVzL2csIGZ1bmN0aW9uICgpIHtcbiAgICAgICAgcmV0dXJuIGFyZ3NbYXJnSW5kZXgrK107XG4gICAgICB9KSk7XG4gICAgICBlcnJvci5uYW1lID0gJ0ludmFyaWFudCBWaW9sYXRpb24nO1xuICAgIH1cblxuICAgIGVycm9yLmZyYW1lc1RvUG9wID0gMTsgLy8gd2UgZG9uJ3QgY2FyZSBhYm91dCBpbnZhcmlhbnQncyBvd24gZnJhbWVcbiAgICB0aHJvdyBlcnJvcjtcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGludmFyaWFudDsiXX0=
1341
- },{"_process":29}],18:[function(require,module,exports){
1342
  /**
1343
  * Copyright 2013-2015, Facebook, Inc.
1344
  * All rights reserved.
@@ -1362,7 +1503,7 @@ function isNode(object) {
1362
  }
1363
 
1364
  module.exports = isNode;
1365
- },{}],19:[function(require,module,exports){
1366
  /**
1367
  * Copyright 2013-2015, Facebook, Inc.
1368
  * All rights reserved.
@@ -1388,7 +1529,7 @@ function isTextNode(object) {
1388
  }
1389
 
1390
  module.exports = isTextNode;
1391
- },{"./isNode":18}],20:[function(require,module,exports){
1392
  (function (process){
1393
  /**
1394
  * Copyright 2013-2015, Facebook, Inc.
@@ -1439,8 +1580,8 @@ var keyMirror = function (obj) {
1439
 
1440
  module.exports = keyMirror;
1441
  }).call(this,require('_process'))
1442
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9mYmpzL2xpYi9rZXlNaXJyb3IuanMiXSwibmFt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V0dXJuIHJldDtcbn07XG5cbm1vZHVsZS5leHBvcnRzID0ga2V5TWlycm9yOyJdfQ==
1443
- },{"./invariant":17,"_process":29}],21:[function(require,module,exports){
1444
  /**
1445
  * Copyright 2013-2015, Facebook, Inc.
1446
  * All rights reserved.
@@ -1476,7 +1617,7 @@ var keyOf = function (oneKeyObj) {
1476
  };
1477
 
1478
  module.exports = keyOf;
1479
- },{}],22:[function(require,module,exports){
1480
  /**
1481
  * Copyright 2013-2015, Facebook, Inc.
1482
  * All rights reserved.
@@ -1528,7 +1669,7 @@ function mapObject(object, callback, context) {
1528
  }
1529
 
1530
  module.exports = mapObject;
1531
- },{}],23:[function(require,module,exports){
1532
  /**
1533
  * Copyright 2013-2015, Facebook, Inc.
1534
  * All rights reserved.
@@ -1560,7 +1701,7 @@ function memoizeStringOnly(callback) {
1560
  }
1561
 
1562
  module.exports = memoizeStringOnly;
1563
- },{}],24:[function(require,module,exports){
1564
  /**
1565
  * Copyright 2013-2015, Facebook, Inc.
1566
  * All rights reserved.
@@ -1584,7 +1725,7 @@ if (ExecutionEnvironment.canUseDOM) {
1584
  }
1585
 
1586
  module.exports = performance || {};
1587
- },{"./ExecutionEnvironment":3}],25:[function(require,module,exports){
1588
  /**
1589
  * Copyright 2013-2015, Facebook, Inc.
1590
  * All rights reserved.
@@ -1597,211 +1738,10522 @@ module.exports = performance || {};
1597
  * @typechecks
1598
  */
1599
 
1600
- 'use strict';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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;
 
 
 
1605
 
1606
- /**
1607
- * Detect if we can use `window.performance.now()` and gracefully fallback to
1608
- * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now
1609
- * because of Facebook's testing infrastructure.
1610
- */
1611
- if (performance.now) {
1612
- performanceNow = function () {
1613
- return performance.now();
1614
- };
1615
- } else {
1616
- performanceNow = function () {
1617
- return Date.now();
1618
- };
1619
  }
1620
 
1621
- module.exports = performanceNow;
1622
- },{"./performance":24}],26:[function(require,module,exports){
1623
- /**
1624
- * Copyright 2013-2015, Facebook, Inc.
1625
- * All rights reserved.
1626
- *
1627
- * This source code is licensed under the BSD-style license found in the
1628
- * LICENSE file in the root directory of this source tree. An additional grant
1629
- * of patent rights can be found in the PATENTS file in the same directory.
1630
- *
1631
- * @providesModule shallowEqual
1632
- * @typechecks
1633
- *
1634
- */
1635
 
1636
- 'use strict';
1637
 
1638
- var hasOwnProperty = Object.prototype.hasOwnProperty;
1639
 
1640
- /**
1641
- * Performs equality by iterating through keys on an object and returning false
1642
- * when any key has values which are not strictly equal between the arguments.
1643
- * Returns true when the values of all keys are strictly equal.
1644
- */
1645
- function shallowEqual(objA, objB) {
1646
- if (objA === objB) {
1647
- return true;
1648
- }
1649
 
1650
- if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
1651
- return false;
1652
- }
1653
 
1654
- var keysA = Object.keys(objA);
1655
- var keysB = Object.keys(objB);
1656
 
1657
- if (keysA.length !== keysB.length) {
1658
- return false;
1659
- }
 
1660
 
1661
- // Test for A's keys different from B.
1662
- var bHasOwnProperty = hasOwnProperty.bind(objB);
1663
- for (var i = 0; i < keysA.length; i++) {
1664
- if (!bHasOwnProperty(keysA[i]) || objA[keysA[i]] !== objB[keysA[i]]) {
1665
- return false;
1666
- }
1667
- }
1668
 
1669
- return true;
 
 
 
 
 
 
 
1670
  }
1671
 
1672
- module.exports = shallowEqual;
1673
- },{}],27:[function(require,module,exports){
1674
- (function (process){
1675
- /**
1676
- * Copyright 2013-2015, Facebook, Inc.
1677
- * All rights reserved.
1678
- *
1679
- * This source code is licensed under the BSD-style license found in the
1680
- * LICENSE file in the root directory of this source tree. An additional grant
1681
- * of patent rights can be found in the PATENTS file in the same directory.
1682
- *
1683
- * @providesModule toArray
1684
- * @typechecks
1685
- */
1686
 
1687
- 'use strict';
1688
 
1689
- var invariant = require('./invariant');
1690
 
1691
- /**
1692
- * Convert array-like objects to arrays.
1693
- *
1694
- * This API assumes the caller knows the contents of the data type. For less
1695
- * well defined inputs use createArrayFromMixed.
1696
- *
1697
- * @param {object|function|filelist} obj
1698
- * @return {array}
1699
- */
1700
- function toArray(obj) {
1701
- var length = obj.length;
1702
 
1703
- // Some browse builtin objects can report typeof 'function' (e.g. NodeList in
1704
- // old versions of Safari).
1705
- !(!Array.isArray(obj) && (typeof obj === 'object' || typeof obj === 'function')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : undefined;
1706
 
1707
- !(typeof length === 'number') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : undefined;
 
 
1708
 
1709
- !(length === 0 || length - 1 in obj) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : undefined;
 
 
 
1710
 
1711
- // Old IE doesn't give collections access to hasOwnProperty. Assume inputs
1712
- // without method will throw during the slice call and skip straight to the
1713
- // fallback.
1714
- if (obj.hasOwnProperty) {
 
 
 
 
 
 
1715
  try {
1716
- return Array.prototype.slice.call(obj);
 
 
 
 
1717
  } catch (e) {
1718
- // IE < 9 does not support Array#slice on collections objects
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1719
  }
1720
- }
1721
-
1722
- // Fall back to copying key by key. This assumes all keys have a value,
1723
- // so will not preserve sparsely populated inputs.
1724
- var ret = Array(length);
1725
- for (var ii = 0; ii < length; ii++) {
1726
- ret[ii] = obj[ii];
1727
- }
1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sZW5ndGgpO1xuICBmb3IgKHZhciBpaSA9IDA7IGlpIDwgbGVuZ3RoOyBpaSsrKSB7XG4gICAgcmV0W2lpXSA9IG9ialtpaV07XG4gIH1cbiAgcmV0dXJuIHJldDtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSB0b0FycmF5OyJdfQ==
1734
- },{"./invariant":17,"_process":29}],28:[function(require,module,exports){
1735
- (function (process){
1736
- /**
1737
- * Copyright 2014-2015, Facebook, Inc.
1738
- * All rights reserved.
1739
- *
1740
- * This source code is licensed under the BSD-style license found in the
1741
- * LICENSE file in the root directory of this source tree. An additional grant
1742
- * of patent rights can be found in the PATENTS file in the same directory.
1743
- *
1744
- * @providesModule warning
1745
- */
1746
-
1747
- 'use strict';
1748
-
1749
- var emptyFunction = require('./emptyFunction');
1750
-
1751
- /**
1752
- * Similar to invariant but only logs a warning if the condition is not met.
1753
- * This can be used to log issues in development environments in critical
1754
- * paths. Removing the logging code for production environments will keep the
1755
- * same logic and follow the same code paths.
1756
- */
1757
 
1758
- var warning = emptyFunction;
1759
 
1760
- if (process.env.NODE_ENV !== 'production') {
1761
- warning = function (condition, format) {
1762
- for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1763
- args[_key - 2] = arguments[_key];
 
1764
  }
1765
-
1766
- if (format === undefined) {
1767
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
 
1768
  }
1769
-
1770
- if (format.indexOf('Failed Composite propType: ') === 0) {
1771
- return; // Ignore CompositeComponent proptype check.
 
 
 
 
 
 
 
 
 
1772
  }
1773
 
1774
- if (!condition) {
1775
- var argIndex = 0;
1776
- var message = 'Warning: ' + format.replace(/%s/g, function () {
1777
- return args[argIndex++];
1778
- });
1779
- if (typeof console !== 'undefined') {
1780
- console.error(message);
1781
- }
1782
- try {
1783
- // --- Welcome to debugging React ---
1784
- // This error was thrown as a convenience so that you can use this stack
1785
- // to find the callsite that caused this warning to fire.
1786
- throw new Error(message);
1787
- } catch (x) {}
1788
- }
1789
- };
1790
- }
1791
 
1792
- module.exports = warning;
1793
- }).call(this,require('_process'))
1794
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9mYmpzL2xpYi93YXJuaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IDIwMTQtMjAxNSwgRmFjZWJvb2ssIEluYy5cbiAqIEFsbCByaWdodHMgcmVzZXJ2ZWQuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgQlNELXN0eWxlIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuIEFuIGFkZGl0aW9uYWwgZ3JhbnRcbiAqIG9mIHBhdGVudCByaWdodHMgY2FuIGJlIGZvdW5kIGluIHR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4uYXJncylgIHJlcXVpcmVzIGEgd2FybmluZyAnICsgJ21lc3NhZ2UgYXJndW1lbnQnKTtcbiAgICB9XG5cbiAgICBpZiAoZm9ybWF0LmluZGV4T2YoJ0ZhaWxlZCBDb21wb3NpdGUgcHJvcFR5cGU6ICcpID09PSAwKSB7XG4gICAgICByZXR1cm47IC8vIElnbm9yZSBDb21wb3NpdGVDb21wb25lbnQgcHJvcHR5cGUgY2hlY2suXG4gICAgfVxuXG4gICAgaWYgKCFjb25kaXRpb24pIHtcbiAgICAgIHZhciBhcmdJbmRleCA9IDA7XG4gICAgICB2YXIgbWVzc2FnZSA9ICdXYXJuaW5nOiAnICsgZm9ybWF0LnJlcGxhY2UoLyVzL2csIGZ1bmN0aW9uICgpIHtcbiAgICAgICAgcmV0dXJuIGFyZ3NbYXJnSW5kZXgrK107XG4gICAgICB9KTtcbiAgICAgIGlmICh0eXBlb2YgY29uc29sZSAhPT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgICAgY29uc29sZS5lcnJvcihtZXNzYWdlKTtcbiAgICAgIH1cbiAgICAgIHRyeSB7XG4gICAgICAgIC8vIC0tLSBXZWxjb21lIHRvIGRlYnVnZ2luZyBSZWFjdCAtLS1cbiAgICAgICAgLy8gVGhpcyBlcnJvciB3YXMgdGhyb3duIGFzIGEgY29udmVuaWVuY2Ugc28gdGhhdCB5b3UgY2FuIHVzZSB0aGlzIHN0YWNrXG4gICAgICAgIC8vIHRvIGZpbmQgdGhlIGNhbGxzaXRlIHRoYXQgY2F1c2VkIHRoaXMgd2FybmluZyB0byBmaXJlLlxuICAgICAgICB0aHJvdyBuZXcgRXJyb3IobWVzc2FnZSk7XG4gICAgICB9IGNhdGNoICh4KSB7fVxuICAgIH1cbiAgfTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSB3YXJuaW5nOyJdfQ==
1795
- },{"./emptyFunction":9,"_process":29}],29:[function(require,module,exports){
1796
- // shim for using process in browser
1797
 
1798
- var process = module.exports = {};
1799
  var queue = [];
1800
  var draining = false;
1801
  var currentQueue;
1802
  var queueIndex = -1;
1803
 
1804
  function cleanUpNextTick() {
 
 
 
1805
  draining = false;
1806
  if (currentQueue.length) {
1807
  queue = currentQueue.concat(queue);
@@ -1817,7 +12269,7 @@ function drainQueue() {
1817
  if (draining) {
1818
  return;
1819
  }
1820
- var timeout = setTimeout(cleanUpNextTick);
1821
  draining = true;
1822
 
1823
  var len = queue.length;
@@ -1834,7 +12286,7 @@ function drainQueue() {
1834
  }
1835
  currentQueue = null;
1836
  draining = false;
1837
- clearTimeout(timeout);
1838
  }
1839
 
1840
  process.nextTick = function (fun) {
@@ -1846,7 +12298,7 @@ process.nextTick = function (fun) {
1846
  }
1847
  queue.push(new Item(fun, args));
1848
  if (queue.length === 1 && !draining) {
1849
- setTimeout(drainQueue, 0);
1850
  }
1851
  };
1852
 
@@ -1885,12 +12337,12 @@ process.chdir = function (dir) {
1885
  };
1886
  process.umask = function() { return 0; };
1887
 
1888
- },{}],30:[function(require,module,exports){
1889
  'use strict';
1890
 
1891
  module.exports = require('react/lib/ReactDOM');
1892
 
1893
- },{"react/lib/ReactDOM":65}],31:[function(require,module,exports){
1894
  /**
1895
  * Copyright 2013-2015, Facebook, Inc.
1896
  * All rights reserved.
@@ -1927,7 +12379,7 @@ var AutoFocusUtils = {
1927
  };
1928
 
1929
  module.exports = AutoFocusUtils;
1930
- },{"./ReactMount":95,"./findDOMNode":138,"fbjs/lib/focusNode":11}],32:[function(require,module,exports){
1931
  /**
1932
  * Copyright 2013-2015 Facebook, Inc.
1933
  * All rights reserved.
@@ -2333,7 +12785,7 @@ var BeforeInputEventPlugin = {
2333
  };
2334
 
2335
  module.exports = BeforeInputEventPlugin;
2336
- },{"./EventConstants":44,"./EventPropagators":48,"./FallbackCompositionState":49,"./SyntheticCompositionEvent":120,"./SyntheticInputEvent":124,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/keyOf":21}],33:[function(require,module,exports){
2337
  /**
2338
  * Copyright 2013-2015, Facebook, Inc.
2339
  * All rights reserved.
@@ -2473,7 +12925,7 @@ var CSSProperty = {
2473
  };
2474
 
2475
  module.exports = CSSProperty;
2476
- },{}],34:[function(require,module,exports){
2477
  (function (process){
2478
  /**
2479
  * Copyright 2013-2015, Facebook, Inc.
@@ -2651,8 +13103,8 @@ ReactPerf.measureMethods(CSSPropertyOperations, 'CSSPropertyOperations', {
2651
 
2652
  module.exports = CSSPropertyOperations;
2653
  }).call(this,require('_process'))
2654
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvQ1NTUHJvcGVydHlPcGVyYXRpb25zLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQ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ReactPerf":101,"./dangerousStyleValue":135,"_process":29,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/camelizeStyleName":5,"fbjs/lib/hyphenateStyleName":16,"fbjs/lib/memoizeStringOnly":23,"fbjs/lib/warning":28}],35:[function(require,module,exports){
2656
  (function (process){
2657
  /**
2658
  * Copyright 2013-2015, Facebook, Inc.
@@ -2748,8 +13200,8 @@ PooledClass.addPoolingTo(CallbackQueue);
2748
 
2749
  module.exports = CallbackQueue;
2750
  }).call(this,require('_process'))
2751
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvQ2FsbGJhY2tRdWV1ZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUN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gICogYFBvb2xlZENsYXNzYCBsb29rcyBmb3IgdGhpcy5cbiAgICovXG4gIGRlc3RydWN0b3I6IGZ1bmN0aW9uICgpIHtcbiAgICB0aGlzLnJlc2V0KCk7XG4gIH1cblxufSk7XG5cblBvb2xlZENsYXNzLmFkZFBvb2xpbmdUbyhDYWxsYmFja1F1ZXVlKTtcblxubW9kdWxlLmV4cG9ydHMgPSBDYWxsYmFja1F1ZXVlOyJdfQ==
2752
- },{"./Object.assign":52,"./PooledClass":53,"_process":29,"fbjs/lib/invariant":17}],36:[function(require,module,exports){
2753
  /**
2754
  * Copyright 2013-2015, Facebook, Inc.
2755
  * All rights reserved.
@@ -3071,7 +13523,7 @@ var ChangeEventPlugin = {
3071
  };
3072
 
3073
  module.exports = ChangeEventPlugin;
3074
- },{"./EventConstants":44,"./EventPluginHub":45,"./EventPropagators":48,"./ReactUpdates":113,"./SyntheticEvent":122,"./getEventTarget":144,"./isEventSupported":149,"./isTextInputElement":150,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/keyOf":21}],37:[function(require,module,exports){
3075
  /**
3076
  * Copyright 2013-2015, Facebook, Inc.
3077
  * All rights reserved.
@@ -3095,7 +13547,7 @@ var ClientReactRootIndex = {
3095
  };
3096
 
3097
  module.exports = ClientReactRootIndex;
3098
- },{}],38:[function(require,module,exports){
3099
  (function (process){
3100
  /**
3101
  * Copyright 2013-2015, Facebook, Inc.
@@ -3227,8 +13679,8 @@ ReactPerf.measureMethods(DOMChildrenOperations, 'DOMChildrenOperations', {
3227
 
3228
  module.exports = DOMChildrenOperations;
3229
  }).call(this,require('_process'))
3230
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvRE9NQ2hpbGRyZW5PcGVyYXRpb25zLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO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ICAgfVxuICAgIH1cbiAgfVxuXG59O1xuXG5SZWFjdFBlcmYubWVhc3VyZU1ldGhvZHMoRE9NQ2hpbGRyZW5PcGVyYXRpb25zLCAnRE9NQ2hpbGRyZW5PcGVyYXRpb25zJywge1xuICB1cGRhdGVUZXh0Q29udGVudDogJ3VwZGF0ZVRleHRDb250ZW50J1xufSk7XG5cbm1vZHVsZS5leHBvcnRzID0gRE9NQ2hpbGRyZW5PcGVyYXRpb25zOyJdfQ==
3231
- },{"./Danger":41,"./ReactMultiChildUpdateTypes":97,"./ReactPerf":101,"./setInnerHTML":154,"./setTextContent":155,"_process":29,"fbjs/lib/invariant":17}],39:[function(require,module,exports){
3232
  (function (process){
3233
  /**
3234
  * Copyright 2013-2015, Facebook, Inc.
@@ -3465,8 +13917,8 @@ var DOMProperty = {
3465
 
3466
  module.exports = DOMProperty;
3467
  }).call(this,require('_process'))
3468
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvRE9NUHJvcGVydHkuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQ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ZWZhdWx0VmFsdWVDYWNoZVtub2RlTmFtZV0gPSBub2RlRGVmYXVsdHMgPSB7fTtcbiAgICB9XG4gICAgaWYgKCEocHJvcCBpbiBub2RlRGVmYXVsdHMpKSB7XG4gICAgICB0ZXN0RWxlbWVudCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQobm9kZU5hbWUpO1xuICAgICAgbm9kZURlZmF1bHRzW3Byb3BdID0gdGVzdEVsZW1lbnRbcHJvcF07XG4gICAgfVxuICAgIHJldHVybiBub2RlRGVmYXVsdHNbcHJvcF07XG4gIH0sXG5cbiAgaW5qZWN0aW9uOiBET01Qcm9wZXJ0eUluamVjdGlvblxufTtcblxubW9kdWxlLmV4cG9ydHMgPSBET01Qcm9wZXJ0eTsiXX0=
3469
- },{"_process":29,"fbjs/lib/invariant":17}],40:[function(require,module,exports){
3470
  (function (process){
3471
  /**
3472
  * Copyright 2013-2015, Facebook, Inc.
@@ -3694,8 +14146,8 @@ ReactPerf.measureMethods(DOMPropertyOperations, 'DOMPropertyOperations', {
3694
 
3695
  module.exports = DOMPropertyOperations;
3696
  }).call(this,require('_process'))
3697
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvRE9NUHJvcGVydHlPcGVyYXRpb25zLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUN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uICB9XG5cbn07XG5cblJlYWN0UGVyZi5tZWFzdXJlTWV0aG9kcyhET01Qcm9wZXJ0eU9wZXJhdGlvbnMsICdET01Qcm9wZXJ0eU9wZXJhdGlvbnMnLCB7XG4gIHNldFZhbHVlRm9yUHJvcGVydHk6ICdzZXRWYWx1ZUZvclByb3BlcnR5JyxcbiAgc2V0VmFsdWVGb3JBdHRyaWJ1dGU6ICdzZXRWYWx1ZUZvckF0dHJpYnV0ZScsXG4gIGRlbGV0ZVZhbHVlRm9yUHJvcGVydHk6ICdkZWxldGVWYWx1ZUZvclByb3BlcnR5J1xufSk7XG5cbm1vZHVsZS5leHBvcnRzID0gRE9NUHJvcGVydHlPcGVyYXRpb25zOyJdfQ==
3698
- },{"./DOMProperty":39,"./ReactPerf":101,"./quoteAttributeValueForBrowser":152,"_process":29,"fbjs/lib/warning":28}],41:[function(require,module,exports){
3699
  (function (process){
3700
  /**
3701
  * Copyright 2013-2015, Facebook, Inc.
@@ -3843,8 +14295,8 @@ var Danger = {
3843
 
3844
  module.exports = Danger;
3845
  }).call(this,require('_process'))
3846
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvRGFuZ2VyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTt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yIHNsb3cuIElmIHlvdSB3YW50IHRvIHJlbmRlciB0byB0aGUgcm9vdCB5b3UgbXVzdCB1c2UgJyArICdzZXJ2ZXIgcmVuZGVyaW5nLiBTZWUgUmVhY3RET01TZXJ2ZXIucmVuZGVyVG9TdHJpbmcoKS4nKSA6IGludmFyaWFudChmYWxzZSkgOiB1bmRlZmluZWQ7XG5cbiAgICB2YXIgbmV3Q2hpbGQ7XG4gICAgaWYgKHR5cGVvZiBtYXJrdXAgPT09ICdzdHJpbmcnKSB7XG4gICAgICBuZXdDaGlsZCA9IGNyZWF0ZU5vZGVzRnJvbU1hcmt1cChtYXJrdXAsIGVtcHR5RnVuY3Rpb24pWzBdO1xuICAgIH0gZWxzZSB7XG4gICAgICBuZXdDaGlsZCA9IG1hcmt1cDtcbiAgICB9XG4gICAgb2xkQ2hpbGQucGFyZW50Tm9kZS5yZXBsYWNlQ2hpbGQobmV3Q2hpbGQsIG9sZENoaWxkKTtcbiAgfVxuXG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IERhbmdlcjsiXX0=
3847
- },{"_process":29,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/createNodesFromMarkup":8,"fbjs/lib/emptyFunction":9,"fbjs/lib/getMarkupWrap":13,"fbjs/lib/invariant":17}],42:[function(require,module,exports){
3848
  /**
3849
  * Copyright 2013-2015, Facebook, Inc.
3850
  * All rights reserved.
@@ -3872,7 +14324,7 @@ var keyOf = require('fbjs/lib/keyOf');
3872
  var DefaultEventPluginOrder = [keyOf({ ResponderEventPlugin: null }), keyOf({ SimpleEventPlugin: null }), keyOf({ TapEventPlugin: null }), keyOf({ EnterLeaveEventPlugin: null }), keyOf({ ChangeEventPlugin: null }), keyOf({ SelectEventPlugin: null }), keyOf({ BeforeInputEventPlugin: null })];
3873
 
3874
  module.exports = DefaultEventPluginOrder;
3875
- },{"fbjs/lib/keyOf":21}],43:[function(require,module,exports){
3876
  /**
3877
  * Copyright 2013-2015, Facebook, Inc.
3878
  * All rights reserved.
@@ -3997,7 +14449,7 @@ var EnterLeaveEventPlugin = {
3997
  };
3998
 
3999
  module.exports = EnterLeaveEventPlugin;
4000
- },{"./EventConstants":44,"./EventPropagators":48,"./ReactMount":95,"./SyntheticMouseEvent":126,"fbjs/lib/keyOf":21}],44:[function(require,module,exports){
4001
  /**
4002
  * Copyright 2013-2015, Facebook, Inc.
4003
  * All rights reserved.
@@ -4090,7 +14542,7 @@ var EventConstants = {
4090
  };
4091
 
4092
  module.exports = EventConstants;
4093
- },{"fbjs/lib/keyMirror":20}],45:[function(require,module,exports){
4094
  (function (process){
4095
  /**
4096
  * Copyright 2013-2015, Facebook, Inc.
@@ -4372,8 +14824,8 @@ var EventPluginHub = {
4372
 
4373
  module.exports = EventPluginHub;
4374
  }).call(this,require('_process'))
4375
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvRXZlbnRQbHVnaW5IdWIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUN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XG4gICAgUmVhY3RFcnJvclV0aWxzLnJldGhyb3dDYXVnaHRFcnJvcigpO1xuICB9LFxuXG4gIC8qKlxuICAgKiBUaGVzZSBhcmUgbmVlZGVkIGZvciB0ZXN0cyBvbmx5LiBEbyBub3QgdXNlIVxuICAgKi9cbiAgX19wdXJnZTogZnVuY3Rpb24gKCkge1xuICAgIGxpc3RlbmVyQmFuayA9IHt9O1xuICB9LFxuXG4gIF9fZ2V0TGlzdGVuZXJCYW5rOiBmdW5jdGlvbiAoKSB7XG4gICAgcmV0dXJuIGxpc3RlbmVyQmFuaztcbiAgfVxuXG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IEV2ZW50UGx1Z2luSHViOyJdfQ==
4376
- },{"./EventPluginRegistry":46,"./EventPluginUtils":47,"./ReactErrorUtils":86,"./accumulateInto":132,"./forEachAccumulated":140,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],46:[function(require,module,exports){
4377
  (function (process){
4378
  /**
4379
  * Copyright 2013-2015, Facebook, Inc.
@@ -4596,8 +15048,8 @@ var EventPluginRegistry = {
4596
 
4597
  module.exports = EventPluginRegistry;
4598
  }).call(this,require('_process'))
4599
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvRXZlbnRQbHVnaW5SZWdpc3RyeS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Q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hwb3J0cyA9IEV2ZW50UGx1Z2luUmVnaXN0cnk7Il19
4600
- },{"_process":29,"fbjs/lib/invariant":17}],47:[function(require,module,exports){
4601
  (function (process){
4602
  /**
4603
  * Copyright 2013-2015, Facebook, Inc.
@@ -4802,8 +15254,8 @@ var EventPluginUtils = {
4802
 
4803
  module.exports = EventPluginUtils;
4804
  }).call(this,require('_process'))
4805
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvRXZlbnRQbHVnaW5VdGlscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0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2g6IGV4ZWN1dGVEaXJlY3REaXNwYXRjaCxcbiAgZXhlY3V0ZURpc3BhdGNoZXNJbk9yZGVyOiBleGVjdXRlRGlzcGF0Y2hlc0luT3JkZXIsXG4gIGV4ZWN1dGVEaXNwYXRjaGVzSW5PcmRlclN0b3BBdFRydWU6IGV4ZWN1dGVEaXNwYXRjaGVzSW5PcmRlclN0b3BBdFRydWUsXG4gIGhhc0Rpc3BhdGNoZXM6IGhhc0Rpc3BhdGNoZXMsXG5cbiAgZ2V0Tm9kZTogZnVuY3Rpb24gKGlkKSB7XG4gICAgcmV0dXJuIGluamVjdGlvbi5Nb3VudC5nZXROb2RlKGlkKTtcbiAgfSxcbiAgZ2V0SUQ6IGZ1bmN0aW9uIChub2RlKSB7XG4gICAgcmV0dXJuIGluamVjdGlvbi5Nb3VudC5nZXRJRChub2RlKTtcbiAgfSxcblxuICBpbmplY3Rpb246IGluamVjdGlvblxufTtcblxubW9kdWxlLmV4cG9ydHMgPSBFdmVudFBsdWdpblV0aWxzOyJdfQ==
4806
- },{"./EventConstants":44,"./ReactErrorUtils":86,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],48:[function(require,module,exports){
4807
  (function (process){
4808
  /**
4809
  * Copyright 2013-2015, Facebook, Inc.
@@ -4941,8 +15393,8 @@ var EventPropagators = {
4941
 
4942
  module.exports = EventPropagators;
4943
  }).call(this,require('_process'))
4944
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvRXZlbnRQcm9wYWdhdG9ycy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0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heXMgd2FudCB0byBjb2xsZWN0IHRoZSBlbnRpcmUgc2V0IG9mIGRpc3BhdGNoZXMgYmVmb3JlIGV4ZWN1dGluZyBldmVudCBhXG4gKiBzaW5nbGUgb25lLlxuICpcbiAqIEBjb25zdHJ1Y3RvciBFdmVudFByb3BhZ2F0b3JzXG4gKi9cbnZhciBFdmVudFByb3BhZ2F0b3JzID0ge1xuICBhY2N1bXVsYXRlVHdvUGhhc2VEaXNwYXRjaGVzOiBhY2N1bXVsYXRlVHdvUGhhc2VEaXNwYXRjaGVzLFxuICBhY2N1bXVsYXRlVHdvUGhhc2VEaXNwYXRjaGVzU2tpcFRhcmdldDogYWNjdW11bGF0ZVR3b1BoYXNlRGlzcGF0Y2hlc1NraXBUYXJnZXQsXG4gIGFjY3VtdWxhdGVEaXJlY3REaXNwYXRjaGVzOiBhY2N1bXVsYXRlRGlyZWN0RGlzcGF0Y2hlcyxcbiAgYWNjdW11bGF0ZUVudGVyTGVhdmVEaXNwYXRjaGVzOiBhY2N1bXVsYXRlRW50ZXJMZWF2ZURpc3BhdGNoZXNcbn07XG5cbm1vZHVsZS5leHBvcnRzID0gRXZlbnRQcm9wYWdhdG9yczsiXX0=
4945
- },{"./EventConstants":44,"./EventPluginHub":45,"./accumulateInto":132,"./forEachAccumulated":140,"_process":29,"fbjs/lib/warning":28}],49:[function(require,module,exports){
4946
  /**
4947
  * Copyright 2013-2015, Facebook, Inc.
4948
  * All rights reserved.
@@ -5038,7 +15490,7 @@ assign(FallbackCompositionState.prototype, {
5038
  PooledClass.addPoolingTo(FallbackCompositionState);
5039
 
5040
  module.exports = FallbackCompositionState;
5041
- },{"./Object.assign":52,"./PooledClass":53,"./getTextContentAccessor":147}],50:[function(require,module,exports){
5042
  /**
5043
  * Copyright 2013-2015, Facebook, Inc.
5044
  * All rights reserved.
@@ -5269,7 +15721,7 @@ var HTMLDOMPropertyConfig = {
5269
  };
5270
 
5271
  module.exports = HTMLDOMPropertyConfig;
5272
- },{"./DOMProperty":39,"fbjs/lib/ExecutionEnvironment":3}],51:[function(require,module,exports){
5273
  (function (process){
5274
  /**
5275
  * Copyright 2013-2015, Facebook, Inc.
@@ -5406,8 +15858,8 @@ var LinkedValueUtils = {
5406
 
5407
  module.exports = LinkedValueUtils;
5408
  }).call(this,require('_process'))
5409
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvTGlua2VkVmFsdWVVdGlscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FB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k7XG4gICAgICByZXR1cm4gaW5wdXRQcm9wcy5jaGVja2VkTGluay52YWx1ZTtcbiAgICB9XG4gICAgcmV0dXJuIGlucHV0UHJvcHMuY2hlY2tlZDtcbiAgfSxcblxuICAvKipcbiAgICogQHBhcmFtIHtvYmplY3R9IGlucHV0UHJvcHMgUHJvcHMgZm9yIGZvcm0gY29tcG9uZW50XG4gICAqIEBwYXJhbSB7U3ludGhldGljRXZlbnR9IGV2ZW50IGNoYW5nZSBldmVudCB0byBoYW5kbGVcbiAgICovXG4gIGV4ZWN1dGVPbkNoYW5nZTogZnVuY3Rpb24gKGlucHV0UHJvcHMsIGV2ZW50KSB7XG4gICAgaWYgKGlucHV0UHJvcHMudmFsdWVMaW5rKSB7XG4gICAgICBfYXNzZXJ0VmFsdWVMaW5rKGlucHV0UHJvcHMpO1xuICAgICAgcmV0dXJuIGlucHV0UHJvcHMudmFsdWVMaW5rLnJlcXVlc3RDaGFuZ2UoZXZlbnQudGFyZ2V0LnZhbHVlKTtcbiAgICB9IGVsc2UgaWYgKGlucHV0UHJvcHMuY2hlY2tlZExpbmspIHtcbiAgICAgIF9hc3NlcnRDaGVja2VkTGluayhpbnB1dFByb3BzKTtcbiAgICAgIHJldHVybiBpbnB1dFByb3BzLmNoZWNrZWRMaW5rLnJlcXVlc3RDaGFuZ2UoZXZlbnQudGFyZ2V0LmNoZWNrZWQpO1xuICAgIH0gZWxzZSBpZiAoaW5wdXRQcm9wcy5vbkNoYW5nZSkge1xuICAgICAgcmV0dXJuIGlucHV0UHJvcHMub25DaGFuZ2UuY2FsbCh1bmRlZmluZWQsIGV2ZW50KTtcbiAgICB9XG4gIH1cbn07XG5cbm1vZHVsZS5leHBvcnRzID0gTGlua2VkVmFsdWVVdGlsczsiXX0=
5410
- },{"./ReactPropTypeLocations":103,"./ReactPropTypes":104,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],52:[function(require,module,exports){
5411
  /**
5412
  * Copyright 2014-2015, Facebook, Inc.
5413
  * All rights reserved.
@@ -5455,7 +15907,7 @@ function assign(target, sources) {
5455
  }
5456
 
5457
  module.exports = assign;
5458
- },{}],53:[function(require,module,exports){
5459
  (function (process){
5460
  /**
5461
  * Copyright 2013-2015, Facebook, Inc.
@@ -5577,8 +16029,8 @@ var PooledClass = {
5577
 
5578
  module.exports = PooledClass;
5579
  }).call(this,require('_process'))
5580
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUG9vbGVkQ2xhc3MuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FB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W5nVG8gPSBmdW5jdGlvbiAoQ29weUNvbnN0cnVjdG9yLCBwb29sZXIpIHtcbiAgdmFyIE5ld0tsYXNzID0gQ29weUNvbnN0cnVjdG9yO1xuICBOZXdLbGFzcy5pbnN0YW5jZVBvb2wgPSBbXTtcbiAgTmV3S2xhc3MuZ2V0UG9vbGVkID0gcG9vbGVyIHx8IERFRkFVTFRfUE9PTEVSO1xuICBpZiAoIU5ld0tsYXNzLnBvb2xTaXplKSB7XG4gICAgTmV3S2xhc3MucG9vbFNpemUgPSBERUZBVUxUX1BPT0xfU0laRTtcbiAgfVxuICBOZXdLbGFzcy5yZWxlYXNlID0gc3RhbmRhcmRSZWxlYXNlcjtcbiAgcmV0dXJuIE5ld0tsYXNzO1xufTtcblxudmFyIFBvb2xlZENsYXNzID0ge1xuICBhZGRQb29saW5nVG86IGFkZFBvb2xpbmdUbyxcbiAgb25lQXJndW1lbnRQb29sZXI6IG9uZUFyZ3VtZW50UG9vbGVyLFxuICB0d29Bcmd1bWVudFBvb2xlcjogdHdvQXJndW1lbnRQb29sZXIsXG4gIHRocmVlQXJndW1lbnRQb29sZXI6IHRocmVlQXJndW1lbnRQb29sZXIsXG4gIGZvdXJBcmd1bWVudFBvb2xlcjogZm91ckFyZ3VtZW50UG9vbGVyLFxuICBmaXZlQXJndW1lbnRQb29sZXI6IGZpdmVBcmd1bWVudFBvb2xlclxufTtcblxubW9kdWxlLmV4cG9ydHMgPSBQb29sZWRDbGFzczsiXX0=
5581
- },{"_process":29,"fbjs/lib/invariant":17}],54:[function(require,module,exports){
5582
  /**
5583
  * Copyright 2013-2015, Facebook, Inc.
5584
  * All rights reserved.
@@ -5619,7 +16071,7 @@ React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOM;
5619
  React.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOMServer;
5620
 
5621
  module.exports = React;
5622
- },{"./Object.assign":52,"./ReactDOM":65,"./ReactDOMServer":75,"./ReactIsomorphic":93,"./deprecated":136}],55:[function(require,module,exports){
5623
  (function (process){
5624
  /**
5625
  * Copyright 2013-2015, Facebook, Inc.
@@ -5658,8 +16110,8 @@ var ReactBrowserComponentMixin = {
5658
 
5659
  module.exports = ReactBrowserComponentMixin;
5660
  }).call(this,require('_process'))
5661
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RCcm93c2VyQ29tcG9uZW50TWl4aW4uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsImZpbGUiOiJnZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgMjAxMy0yMDE1LCBGYWNlYm9vaywgSW5jLlxuICogQWxsIHJpZ2h0cyByZXNlcnZlZC5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBCU0Qtc3R5bGUgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS4gQW4gYWRkaXRpb25hbCBncmFudFxuICogb2YgcGF0ZW50IHJpZ2h0cyBjYW4gYmUgZm91bmQgaW4gdGhlIFBBVEVOVFMgZmls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gIHJldHVybiBmaW5kRE9NTm9kZSh0aGlzKTtcbiAgfVxufTtcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdEJyb3dzZXJDb21wb25lbnRNaXhpbjsiXX0=
5662
- },{"./ReactInstanceMap":92,"./findDOMNode":138,"_process":29,"fbjs/lib/warning":28}],56:[function(require,module,exports){
5663
  /**
5664
  * Copyright 2013-2015, Facebook, Inc.
5665
  * All rights reserved.
@@ -5984,7 +16436,7 @@ ReactPerf.measureMethods(ReactBrowserEventEmitter, 'ReactBrowserEventEmitter', {
5984
  });
5985
 
5986
  module.exports = ReactBrowserEventEmitter;
5987
- },{"./EventConstants":44,"./EventPluginHub":45,"./EventPluginRegistry":46,"./Object.assign":52,"./ReactEventEmitterMixin":87,"./ReactPerf":101,"./ViewportMetrics":131,"./isEventSupported":149}],57:[function(require,module,exports){
5988
  (function (process){
5989
  /**
5990
  * Copyright 2014-2015, Facebook, Inc.
@@ -6109,8 +16561,8 @@ var ReactChildReconciler = {
6109
 
6110
  module.exports = ReactChildReconciler;
6111
  }).call(this,require('_process'))
6112
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RDaGlsZFJlY29uY2lsZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUF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tZSBpbiByZW5kZXJlZENoaWxkcmVuKSB7XG4gICAgICBpZiAocmVuZGVyZWRDaGlsZHJlbi5oYXNPd25Qcm9wZXJ0eShuYW1lKSkge1xuICAgICAgICB2YXIgcmVuZGVyZWRDaGlsZCA9IHJlbmRlcmVkQ2hpbGRyZW5bbmFtZV07XG4gICAgICAgIFJlYWN0UmVjb25jaWxlci51bm1vdW50Q29tcG9uZW50KHJlbmRlcmVkQ2hpbGQpO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0Q2hpbGRSZWNvbmNpbGVyOyJdfQ==
6113
- },{"./ReactReconciler":106,"./instantiateReactComponent":148,"./shouldUpdateReactComponent":156,"./traverseAllChildren":157,"_process":29,"fbjs/lib/warning":28}],58:[function(require,module,exports){
6114
  /**
6115
  * Copyright 2013-2015, Facebook, Inc.
6116
  * All rights reserved.
@@ -6293,7 +16745,7 @@ var ReactChildren = {
6293
  };
6294
 
6295
  module.exports = ReactChildren;
6296
- },{"./PooledClass":53,"./ReactElement":82,"./traverseAllChildren":157,"fbjs/lib/emptyFunction":9}],59:[function(require,module,exports){
6297
  (function (process){
6298
  /**
6299
  * Copyright 2013-2015, Facebook, Inc.
@@ -7067,8 +17519,8 @@ var ReactClass = {
7067
 
7068
  module.exports = ReactClass;
7069
  }).call(this,require('_process'))
7070
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RDbGFzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO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uICAgIH1cblxuICAgIHJldHVybiBDb25zdHJ1Y3RvcjtcbiAgfSxcblxuICBpbmplY3Rpb246IHtcbiAgICBpbmplY3RNaXhpbjogZnVuY3Rpb24gKG1peGluKSB7XG4gICAgICBpbmplY3RlZE1peGlucy5wdXNoKG1peGluKTtcbiAgICB9XG4gIH1cblxufTtcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdENsYXNzOyJdfQ==
7071
- },{"./Object.assign":52,"./ReactComponent":60,"./ReactElement":82,"./ReactNoopUpdateQueue":99,"./ReactPropTypeLocationNames":102,"./ReactPropTypeLocations":103,"_process":29,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17,"fbjs/lib/keyMirror":20,"fbjs/lib/keyOf":21,"fbjs/lib/warning":28}],60:[function(require,module,exports){
7072
  (function (process){
7073
  /**
7074
  * Copyright 2013-2015, Facebook, Inc.
@@ -7193,8 +17645,8 @@ if (process.env.NODE_ENV !== 'production') {
7193
 
7194
  module.exports = ReactComponent;
7195
  }).call(this,require('_process'))
7196
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RDb21wb25lbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FB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Il19
7197
- },{"./ReactNoopUpdateQueue":99,"./canDefineProperty":134,"_process":29,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],61:[function(require,module,exports){
7198
  /**
7199
  * Copyright 2013-2015, Facebook, Inc.
7200
  * All rights reserved.
@@ -7236,7 +17688,7 @@ var ReactComponentBrowserEnvironment = {
7236
  };
7237
 
7238
  module.exports = ReactComponentBrowserEnvironment;
7239
- },{"./ReactDOMIDOperations":70,"./ReactMount":95}],62:[function(require,module,exports){
7240
  (function (process){
7241
  /**
7242
  * Copyright 2014-2015, Facebook, Inc.
@@ -7290,8 +17742,8 @@ var ReactComponentEnvironment = {
7290
 
7291
  module.exports = ReactComponentEnvironment;
7292
  }).call(this,require('_process'))
7293
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RDb21wb25lbnRFbnZpcm9ubWVudC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6ImdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAyMDE0LTIwMTUsIE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xufTtcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdENvbXBvbmVudEVudmlyb25tZW50OyJdfQ==
7294
- },{"_process":29,"fbjs/lib/invariant":17}],63:[function(require,module,exports){
7295
  (function (process){
7296
  /**
7297
  * Copyright 2013-2015, Facebook, Inc.
@@ -7988,8 +18440,8 @@ var ReactCompositeComponent = {
7988
 
7989
  module.exports = ReactCompositeComponent;
7990
  }).call(this,require('_process'))
7991
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RDb21wb3NpdGVDb21wb25lbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0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ICAgKi9cbiAgZ2V0UHVibGljSW5zdGFuY2U6IGZ1bmN0aW9uICgpIHtcbiAgICB2YXIgaW5zdCA9IHRoaXMuX2luc3RhbmNlO1xuICAgIGlmIChpbnN0IGluc3RhbmNlb2YgU3RhdGVsZXNzQ29tcG9uZW50KSB7XG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG4gICAgcmV0dXJuIGluc3Q7XG4gIH0sXG5cbiAgLy8gU3R1YlxuICBfaW5zdGFudGlhdGVSZWFjdENvbXBvbmVudDogbnVsbFxuXG59O1xuXG5SZWFjdFBlcmYubWVhc3VyZU1ldGhvZHMoUmVhY3RDb21wb3NpdGVDb21wb25lbnRNaXhpbiwgJ1JlYWN0Q29tcG9zaXRlQ29tcG9uZW50Jywge1xuICBtb3VudENvbXBvbmVudDogJ21vdW50Q29tcG9uZW50JyxcbiAgdXBkYXRlQ29tcG9uZW50OiAndXBkYXRlQ29tcG9uZW50JyxcbiAgX3JlbmRlclZhbGlkYXRlZENvbXBvbmVudDogJ19yZW5kZXJWYWxpZGF0ZWRDb21wb25lbnQnXG59KTtcblxudmFyIFJlYWN0Q29tcG9zaXRlQ29tcG9uZW50ID0ge1xuXG4gIE1peGluOiBSZWFjdENvbXBvc2l0ZUNvbXBvbmVudE1peGluXG5cbn07XG5cbm1vZHVsZS5leHBvcnRzID0gUmVhY3RDb21wb3NpdGVDb21wb25lbnQ7Il19
7992
- },{"./Object.assign":52,"./ReactComponentEnvironment":62,"./ReactCurrentOwner":64,"./ReactElement":82,"./ReactInstanceMap":92,"./ReactPerf":101,"./ReactPropTypeLocationNames":102,"./ReactPropTypeLocations":103,"./ReactReconciler":106,"./ReactUpdateQueue":112,"./shouldUpdateReactComponent":156,"_process":29,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],64:[function(require,module,exports){
7993
  /**
7994
  * Copyright 2013-2015, Facebook, Inc.
7995
  * All rights reserved.
@@ -8020,7 +18472,7 @@ var ReactCurrentOwner = {
8020
  };
8021
 
8022
  module.exports = ReactCurrentOwner;
8023
- },{}],65:[function(require,module,exports){
8024
  (function (process){
8025
  /**
8026
  * Copyright 2013-2015, Facebook, Inc.
@@ -8115,8 +18567,8 @@ if (process.env.NODE_ENV !== 'production') {
8115
 
8116
  module.exports = React;
8117
  }).call(this,require('_process'))
8118
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RET00uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW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W1zXG4gICAgQXJyYXkuaXNBcnJheSwgQXJyYXkucHJvdG90eXBlLmV2ZXJ5LCBBcnJheS5wcm90b3R5cGUuZm9yRWFjaCwgQXJyYXkucHJvdG90eXBlLmluZGV4T2YsIEFycmF5LnByb3RvdHlwZS5tYXAsIERhdGUubm93LCBGdW5jdGlvbi5wcm90b3R5cGUuYmluZCwgT2JqZWN0LmtleXMsIFN0cmluZy5wcm90b3R5cGUuc3BsaXQsIFN0cmluZy5wcm90b3R5cGUudHJpbSxcblxuICAgIC8vIHNoYW1zXG4gICAgT2JqZWN0LmNyZWF0ZSwgT2JqZWN0LmZyZWV6ZV07XG5cbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGV4cGVjdGVkRmVhdHVyZXMubGVuZ3RoOyBpKyspIHtcbiAgICAgIGlmICghZXhwZWN0ZWRGZWF0dXJlc1tpXSkge1xuICAgICAgICBjb25zb2xlLmVycm9yKCdPbmUgb3IgbW9yZSBFUzUgc2hpbS9zaGFtcyBleHBlY3RlZCBieSBSZWFjdCBhcmUgbm90IGF2YWlsYWJsZTogJyArICdodHRwczovL2ZiLm1lL3JlYWN0LXdhcm5pbmctcG9seWZpbGxzJyk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0OyJdfQ==
8119
- },{"./ReactCurrentOwner":64,"./ReactDOMTextComponent":76,"./ReactDefaultInjection":79,"./ReactInstanceHandles":91,"./ReactMount":95,"./ReactPerf":101,"./ReactReconciler":106,"./ReactUpdates":113,"./ReactVersion":114,"./findDOMNode":138,"./renderSubtreeIntoContainer":153,"_process":29,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/warning":28}],66:[function(require,module,exports){
8120
  /**
8121
  * Copyright 2013-2015, Facebook, Inc.
8122
  * All rights reserved.
@@ -8167,7 +18619,7 @@ var ReactDOMButton = {
8167
  };
8168
 
8169
  module.exports = ReactDOMButton;
8170
- },{}],67:[function(require,module,exports){
8171
  (function (process){
8172
  /**
8173
  * Copyright 2013-2015, Facebook, Inc.
@@ -9132,8 +19584,8 @@ assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mix
9132
 
9133
  module.exports = ReactDOMComponent;
9134
  }).call(this,require('_process'))
9135
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RET01Db21wb25lbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFD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JmLm1lYXN1cmVNZXRob2RzKFJlYWN0RE9NQ29tcG9uZW50LCAnUmVhY3RET01Db21wb25lbnQnLCB7XG4gIG1vdW50Q29tcG9uZW50OiAnbW91bnRDb21wb25lbnQnLFxuICB1cGRhdGVDb21wb25lbnQ6ICd1cGRhdGVDb21wb25lbnQnXG59KTtcblxuYXNzaWduKFJlYWN0RE9NQ29tcG9uZW50LnByb3RvdHlwZSwgUmVhY3RET01Db21wb25lbnQuTWl4aW4sIFJlYWN0TXVsdGlDaGlsZC5NaXhpbik7XG5cbm1vZHVsZS5leHBvcnRzID0gUmVhY3RET01Db21wb25lbnQ7Il19
9136
- },{"./AutoFocusUtils":31,"./CSSPropertyOperations":34,"./DOMProperty":39,"./DOMPropertyOperations":40,"./EventConstants":44,"./Object.assign":52,"./ReactBrowserEventEmitter":56,"./ReactComponentBrowserEnvironment":61,"./ReactDOMButton":66,"./ReactDOMInput":71,"./ReactDOMOption":72,"./ReactDOMSelect":73,"./ReactDOMTextarea":77,"./ReactMount":95,"./ReactMultiChild":96,"./ReactPerf":101,"./ReactUpdateQueue":112,"./canDefineProperty":134,"./escapeTextContentForBrowser":137,"./isEventSupported":149,"./setInnerHTML":154,"./setTextContent":155,"./validateDOMNesting":158,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/keyOf":21,"fbjs/lib/shallowEqual":26,"fbjs/lib/warning":28}],68:[function(require,module,exports){
9137
  (function (process){
9138
  /**
9139
  * Copyright 2013-2015, Facebook, Inc.
@@ -9313,8 +19765,8 @@ var ReactDOMFactories = mapObject({
9313
 
9314
  module.exports = ReactDOMFactories;
9315
  }).call(this,require('_process'))
9316
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RET01GYWN0b3JpZXMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0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sOiAndWwnLFxuICAndmFyJzogJ3ZhcicsXG4gIHZpZGVvOiAndmlkZW8nLFxuICB3YnI6ICd3YnInLFxuXG4gIC8vIFNWR1xuICBjaXJjbGU6ICdjaXJjbGUnLFxuICBjbGlwUGF0aDogJ2NsaXBQYXRoJyxcbiAgZGVmczogJ2RlZnMnLFxuICBlbGxpcHNlOiAnZWxsaXBzZScsXG4gIGc6ICdnJyxcbiAgaW1hZ2U6ICdpbWFnZScsXG4gIGxpbmU6ICdsaW5lJyxcbiAgbGluZWFyR3JhZGllbnQ6ICdsaW5lYXJHcmFkaWVudCcsXG4gIG1hc2s6ICdtYXNrJyxcbiAgcGF0aDogJ3BhdGgnLFxuICBwYXR0ZXJuOiAncGF0dGVybicsXG4gIHBvbHlnb246ICdwb2x5Z29uJyxcbiAgcG9seWxpbmU6ICdwb2x5bGluZScsXG4gIHJhZGlhbEdyYWRpZW50OiAncmFkaWFsR3JhZGllbnQnLFxuICByZWN0OiAncmVjdCcsXG4gIHN0b3A6ICdzdG9wJyxcbiAgc3ZnOiAnc3ZnJyxcbiAgdGV4dDogJ3RleHQnLFxuICB0c3BhbjogJ3RzcGFuJ1xuXG59LCBjcmVhdGVET01GYWN0b3J5KTtcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdERPTUZhY3RvcmllczsiXX0=
9317
- },{"./ReactElement":82,"./ReactElementValidator":83,"_process":29,"fbjs/lib/mapObject":22}],69:[function(require,module,exports){
9318
  /**
9319
  * Copyright 2013-2015, Facebook, Inc.
9320
  * All rights reserved.
@@ -9333,7 +19785,7 @@ var ReactDOMFeatureFlags = {
9333
  };
9334
 
9335
  module.exports = ReactDOMFeatureFlags;
9336
- },{}],70:[function(require,module,exports){
9337
  (function (process){
9338
  /**
9339
  * Copyright 2013-2015, Facebook, Inc.
@@ -9430,8 +19882,8 @@ ReactPerf.measureMethods(ReactDOMIDOperations, 'ReactDOMIDOperations', {
9430
 
9431
  module.exports = ReactDOMIDOperations;
9432
  }).call(this,require('_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ZHJlblVwZGF0ZXMnXG59KTtcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdERPTUlET3BlcmF0aW9uczsiXX0=
9434
- },{"./DOMChildrenOperations":38,"./DOMPropertyOperations":40,"./ReactMount":95,"./ReactPerf":101,"_process":29,"fbjs/lib/invariant":17}],71:[function(require,module,exports){
9435
  (function (process){
9436
  /**
9437
  * Copyright 2013-2015, Facebook, Inc.
@@ -9587,8 +20039,8 @@ function _handleChange(event) {
9587
 
9588
  module.exports = ReactDOMInput;
9589
  }).call(this,require('_process'))
9590
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RET01JbnB1dC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FB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hbHNlLCAnUmVhY3RET01JbnB1dDogTWl4aW5nIFJlYWN0IGFuZCBub24tUmVhY3QgcmFkaW8gaW5wdXRzIHdpdGggdGhlICcgKyAnc2FtZSBgbmFtZWAgaXMgbm90IHN1cHBvcnRlZC4nKSA6IGludmFyaWFudChmYWxzZSkgOiB1bmRlZmluZWQ7XG4gICAgICB2YXIgb3RoZXJJbnN0YW5jZSA9IGluc3RhbmNlc0J5UmVhY3RJRFtvdGhlcklEXTtcbiAgICAgICFvdGhlckluc3RhbmNlID8gcHJvY2Vzcy5lbnYuTk9ERV9FTlYgIT09ICdwcm9kdWN0aW9uJyA/IGludmFyaWFudChmYWxzZSwgJ1JlYWN0RE9NSW5wdXQ6IFVua25vd24gcmFkaW8gYnV0dG9uIElEICVzLicsIG90aGVySUQpIDogaW52YXJpYW50KGZhbHNlKSA6IHVuZGVmaW5lZDtcbiAgICAgIC8vIElmIHRoaXMgaXMgYSBjb250cm9sbGVkIHJhZGlvIGJ1dHRvbiBncm91cCwgZm9yY2luZyB0aGUgaW5wdXQgdGhhdFxuICAgICAgLy8gd2FzIHByZXZpb3VzbHkgY2hlY2tlZCB0byB1cGRhdGUgd2lsbCBjYXVzZSBpdCB0byBiZSBjb21lIHJlLWNoZWNrZWRcbiAgICAgIC8vIGFzIGFwcHJvcHJpYXRlLlxuICAgICAgUmVhY3RVcGRhdGVzLmFzYXAoZm9yY2VVcGRhdGVJZk1vdW50ZWQsIG90aGVySW5zdGFuY2UpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiByZXR1cm5WYWx1ZTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdERPTUlucHV0OyJdfQ==
9591
- },{"./LinkedValueUtils":51,"./Object.assign":52,"./ReactDOMIDOperations":70,"./ReactMount":95,"./ReactUpdates":113,"_process":29,"fbjs/lib/invariant":17}],72:[function(require,module,exports){
9592
  (function (process){
9593
  /**
9594
  * Copyright 2013-2015, Facebook, Inc.
@@ -9680,8 +20132,8 @@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cnIHx8IHR5cGVvZiBjaGlsZCA9PT0gJ251bWJlcicpIHtcbiAgICAgICAgY29udGVudCArPSBjaGlsZDtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHByb2Nlc3MuZW52Lk5PREVfRU5WICE9PSAncHJvZHVjdGlvbicgPyB3YXJuaW5nKGZhbHNlLCAnT25seSBzdHJpbmdzIGFuZCBudW1iZXJzIGFyZSBzdXBwb3J0ZWQgYXMgPG9wdGlvbj4gY2hpbGRyZW4uJykgOiB1bmRlZmluZWQ7XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICBpZiAoY29udGVudCkge1xuICAgICAgbmF0aXZlUHJvcHMuY2hpbGRyZW4gPSBjb250ZW50O1xuICAgIH1cblxuICAgIHJldHVybiBuYXRpdmVQcm9wcztcbiAgfVxuXG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0RE9NT3B0aW9uOyJdfQ==
9684
- },{"./Object.assign":52,"./ReactChildren":58,"./ReactDOMSelect":73,"_process":29,"fbjs/lib/warning":28}],73:[function(require,module,exports){
9685
  (function (process){
9686
  /**
9687
  * Copyright 2013-2015, Facebook, Inc.
@@ -9872,8 +20324,8 @@ function _handleChange(event) {
9872
 
9873
  module.exports = ReactDOMSelect;
9874
  }).call(this,require('_process'))
9875
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RET01TZWxlY3QuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtB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tils":51,"./Object.assign":52,"./ReactMount":95,"./ReactUpdates":113,"_process":29,"fbjs/lib/warning":28}],74:[function(require,module,exports){
9877
  /**
9878
  * Copyright 2013-2015, Facebook, Inc.
9879
  * All rights reserved.
@@ -10086,7 +20538,7 @@ var ReactDOMSelection = {
10086
  };
10087
 
10088
  module.exports = ReactDOMSelection;
10089
- },{"./getNodeForCharacterOffset":146,"./getTextContentAccessor":147,"fbjs/lib/ExecutionEnvironment":3}],75:[function(require,module,exports){
10090
  /**
10091
  * Copyright 2013-2015, Facebook, Inc.
10092
  * All rights reserved.
@@ -10113,7 +20565,7 @@ var ReactDOMServer = {
10113
  };
10114
 
10115
  module.exports = ReactDOMServer;
10116
- },{"./ReactDefaultInjection":79,"./ReactServerRendering":110,"./ReactVersion":114}],76:[function(require,module,exports){
10117
  (function (process){
10118
  /**
10119
  * Copyright 2013-2015, Facebook, Inc.
@@ -10243,8 +20695,8 @@ assign(ReactDOMTextComponent.prototype, {
10243
 
10244
  module.exports = ReactDOMTextComponent;
10245
  }).call(this,require('_process'))
10246
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RET01UZXh0Q29tcG9uZW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQT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EKTtcbiAgfVxuXG59KTtcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdERPTVRleHRDb21wb25lbnQ7Il19
10247
- },{"./DOMChildrenOperations":38,"./DOMPropertyOperations":40,"./Object.assign":52,"./ReactComponentBrowserEnvironment":61,"./ReactMount":95,"./escapeTextContentForBrowser":137,"./setTextContent":155,"./validateDOMNesting":158,"_process":29}],77:[function(require,module,exports){
10248
  (function (process){
10249
  /**
10250
  * Copyright 2013-2015, Facebook, Inc.
@@ -10360,8 +20812,8 @@ function _handleChange(event) {
10360
 
10361
  module.exports = ReactDOMTextarea;
10362
  }).call(this,require('_process'))
10363
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RET01UZXh0YXJlYS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNB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dClcbiAgICB9O1xuICB9LFxuXG4gIHVwZGF0ZVdyYXBwZXI6IGZ1bmN0aW9uIChpbnN0KSB7XG4gICAgdmFyIHByb3BzID0gaW5zdC5fY3VycmVudEVsZW1lbnQucHJvcHM7XG4gICAgdmFyIHZhbHVlID0gTGlua2VkVmFsdWVVdGlscy5nZXRWYWx1ZShwcm9wcyk7XG4gICAgaWYgKHZhbHVlICE9IG51bGwpIHtcbiAgICAgIC8vIENhc3QgYHZhbHVlYCB0byBhIHN0cmluZyB0byBlbnN1cmUgdGhlIHZhbHVlIGlzIHNldCBjb3JyZWN0bHkuIFdoaWxlXG4gICAgICAvLyBicm93c2VycyB0eXBpY2FsbHkgZG8gdGhpcyBhcyBuZWNlc3NhcnksIGpzZG9tIGRvZXNuJ3QuXG4gICAgICBSZWFjdERPTUlET3BlcmF0aW9ucy51cGRhdGVQcm9wZXJ0eUJ5SUQoaW5zdC5fcm9vdE5vZGVJRCwgJ3ZhbHVlJywgJycgKyB2YWx1ZSk7XG4gICAgfVxuICB9XG59O1xuXG5mdW5jdGlvbiBfaGFuZGxlQ2hhbmdlKGV2ZW50KSB7XG4gIHZhciBwcm9wcyA9IHRoaXMuX2N1cnJlbnRFbGVtZW50LnByb3BzO1xuICB2YXIgcmV0dXJuVmFsdWUgPSBMaW5rZWRWYWx1ZVV0aWxzLmV4ZWN1dGVPbkNoYW5nZShwcm9wcywgZXZlbnQpO1xuICBSZWFjdFVwZGF0ZXMuYXNhcChmb3JjZVVwZGF0ZUlmTW91bnRlZCwgdGhpcyk7XG4gIHJldHVybiByZXR1cm5WYWx1ZTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdERPTVRleHRhcmVhOyJdfQ==
10364
- },{"./LinkedValueUtils":51,"./Object.assign":52,"./ReactDOMIDOperations":70,"./ReactUpdates":113,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],78:[function(require,module,exports){
10365
  /**
10366
  * Copyright 2013-2015, Facebook, Inc.
10367
  * All rights reserved.
@@ -10429,7 +20881,7 @@ var ReactDefaultBatchingStrategy = {
10429
  };
10430
 
10431
  module.exports = ReactDefaultBatchingStrategy;
10432
- },{"./Object.assign":52,"./ReactUpdates":113,"./Transaction":130,"fbjs/lib/emptyFunction":9}],79:[function(require,module,exports){
10433
  (function (process){
10434
  /**
10435
  * Copyright 2013-2015, Facebook, Inc.
@@ -10529,8 +20981,8 @@ module.exports = {
10529
  inject: inject
10530
  };
10531
  }).call(this,require('_process'))
10532
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3REZWZhdWx0SW5qZWN0aW9uLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7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KSB7XG4gICAgICB2YXIgUmVhY3REZWZhdWx0UGVyZiA9IHJlcXVpcmUoJy4vUmVhY3REZWZhdWx0UGVyZicpO1xuICAgICAgUmVhY3REZWZhdWx0UGVyZi5zdGFydCgpO1xuICAgIH1cbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgaW5qZWN0OiBpbmplY3Rcbn07Il19
10533
- },{"./BeforeInputEventPlugin":32,"./ChangeEventPlugin":36,"./ClientReactRootIndex":37,"./DefaultEventPluginOrder":42,"./EnterLeaveEventPlugin":43,"./HTMLDOMPropertyConfig":50,"./ReactBrowserComponentMixin":55,"./ReactComponentBrowserEnvironment":61,"./ReactDOMComponent":67,"./ReactDOMTextComponent":76,"./ReactDefaultBatchingStrategy":78,"./ReactDefaultPerf":80,"./ReactEventListener":88,"./ReactInjection":89,"./ReactInstanceHandles":91,"./ReactMount":95,"./ReactReconcileTransaction":105,"./SVGDOMPropertyConfig":115,"./SelectEventPlugin":116,"./ServerReactRootIndex":117,"./SimpleEventPlugin":118,"_process":29,"fbjs/lib/ExecutionEnvironment":3}],80:[function(require,module,exports){
10534
  /**
10535
  * Copyright 2013-2015, Facebook, Inc.
10536
  * All rights reserved.
@@ -10768,7 +21220,7 @@ var ReactDefaultPerf = {
10768
  };
10769
 
10770
  module.exports = ReactDefaultPerf;
10771
- },{"./DOMProperty":39,"./ReactDefaultPerfAnalysis":81,"./ReactMount":95,"./ReactPerf":101,"fbjs/lib/performanceNow":25}],81:[function(require,module,exports){
10772
  /**
10773
  * Copyright 2013-2015, Facebook, Inc.
10774
  * All rights reserved.
@@ -10970,7 +21422,7 @@ var ReactDefaultPerfAnalysis = {
10970
  };
10971
 
10972
  module.exports = ReactDefaultPerfAnalysis;
10973
- },{"./Object.assign":52}],82:[function(require,module,exports){
10974
  (function (process){
10975
  /**
10976
  * Copyright 2014-2015, Facebook, Inc.
@@ -11220,8 +21672,8 @@ ReactElement.isValidElement = function (object) {
11220
 
11221
  module.exports = ReactEl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biAob2JqZWN0KSB7XG4gIHJldHVybiB0eXBlb2Ygb2JqZWN0ID09PSAnb2JqZWN0JyAmJiBvYmplY3QgIT09IG51bGwgJiYgb2JqZWN0LiQkdHlwZW9mID09PSBSRUFDVF9FTEVNRU5UX1RZUEU7XG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0RWxlbWVudDsiXX0=
11224
- },{"./Object.assign":52,"./ReactCurrentOwner":64,"./canDefineProperty":134,"_process":29}],83:[function(require,module,exports){
11225
  (function (process){
11226
  /**
11227
  * Copyright 2014-2015, Facebook, Inc.
@@ -11505,8 +21957,8 @@ var ReactElementValidator = {
11505
 
11506
  module.exports = ReactElementValidator;
11507
  }).call(this,require('_process'))
11508
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RFbGVtZW50VmFsaWRhdG9yLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTt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MoYXJndW1lbnRzW2ldLCBuZXdFbGVtZW50LnR5cGUpO1xuICAgIH1cbiAgICB2YWxpZGF0ZVByb3BUeXBlcyhuZXdFbGVtZW50KTtcbiAgICByZXR1cm4gbmV3RWxlbWVudDtcbiAgfVxuXG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0RWxlbWVudFZhbGlkYXRvcjsiXX0=
11509
- },{"./ReactCurrentOwner":64,"./ReactElement":82,"./ReactPropTypeLocationNames":102,"./ReactPropTypeLocations":103,"./canDefineProperty":134,"./getIteratorFn":145,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],84:[function(require,module,exports){
11510
  /**
11511
  * Copyright 2014-2015, Facebook, Inc.
11512
  * All rights reserved.
@@ -11534,6 +21986,10 @@ var ReactEmptyComponentInjection = {
11534
  }
11535
  };
11536
 
 
 
 
 
11537
  var ReactEmptyComponent = function (instantiate) {
11538
  this._currentElement = null;
11539
  this._rootNodeID = null;
@@ -11542,7 +21998,7 @@ var ReactEmptyComponent = function (instantiate) {
11542
  assign(ReactEmptyComponent.prototype, {
11543
  construct: function (element) {},
11544
  mountComponent: function (rootID, transaction, context) {
11545
- ReactEmptyComponentRegistry.registerNullComponentID(rootID);
11546
  this._rootNodeID = rootID;
11547
  return ReactReconciler.mountComponent(this._renderedComponent, rootID, transaction, context);
11548
  },
@@ -11558,7 +22014,7 @@ assign(ReactEmptyComponent.prototype, {
11558
  ReactEmptyComponent.injection = ReactEmptyComponentInjection;
11559
 
11560
  module.exports = ReactEmptyComponent;
11561
- },{"./Object.assign":52,"./ReactElement":82,"./ReactEmptyComponentRegistry":85,"./ReactReconciler":106}],85:[function(require,module,exports){
11562
  /**
11563
  * Copyright 2014-2015, Facebook, Inc.
11564
  * All rights reserved.
@@ -11607,7 +22063,7 @@ var ReactEmptyComponentRegistry = {
11607
  };
11608
 
11609
  module.exports = ReactEmptyComponentRegistry;
11610
- },{}],86:[function(require,module,exports){
11611
  (function (process){
11612
  /**
11613
  * Copyright 2013-2015, Facebook, Inc.
@@ -11687,8 +22143,8 @@ if (process.env.NODE_ENV !== 'production') {
11687
 
11688
  module.exports = ReactErrorUtils;
11689
  }).call(this,require('_process'))
11690
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RFcnJvclV0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6ImdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAyMDEzLTIwMTUsIEZhY2Vib29rLCBJbmMuXG4gKiBBbGwgcmlnaHRzIHJlc2VydmVkLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEJTRC1zd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W5jdGlvbicgJiYgdHlwZW9mIGRvY3VtZW50ICE9PSAndW5kZWZpbmVkJyAmJiB0eXBlb2YgZG9jdW1lbnQuY3JlYXRlRXZlbnQgPT09ICdmdW5jdGlvbicpIHtcbiAgICB2YXIgZmFrZU5vZGUgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdyZWFjdCcpO1xuICAgIFJlYWN0RXJyb3JVdGlscy5pbnZva2VHdWFyZGVkQ2FsbGJhY2sgPSBmdW5jdGlvbiAobmFtZSwgZnVuYywgYSwgYikge1xuICAgICAgdmFyIGJvdW5kRnVuYyA9IGZ1bmMuYmluZChudWxsLCBhLCBiKTtcbiAgICAgIHZhciBldnRUeXBlID0gJ3JlYWN0LScgKyBuYW1lO1xuICAgICAgZmFrZU5vZGUuYWRkRXZlbnRMaXN0ZW5lcihldnRUeXBlLCBib3VuZEZ1bmMsIGZhbHNlKTtcbiAgICAgIHZhciBldnQgPSBkb2N1bWVudC5jcmVhdGVFdmVudCgnRXZlbnQnKTtcbiAgICAgIGV2dC5pbml0RXZlbnQoZXZ0VHlwZSwgZmFsc2UsIGZhbHNlKTtcbiAgICAgIGZha2VOb2RlLmRpc3BhdGNoRXZlbnQoZXZ0KTtcbiAgICAgIGZha2VOb2RlLnJlbW92ZUV2ZW50TGlzdGVuZXIoZXZ0VHlwZSwgYm91bmRGdW5jLCBmYWxzZSk7XG4gICAgfTtcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0RXJyb3JVdGlsczsiXX0=
11691
- },{"_process":29}],87:[function(require,module,exports){
11692
  /**
11693
  * Copyright 2013-2015, Facebook, Inc.
11694
  * All rights reserved.
@@ -11727,7 +22183,7 @@ var ReactEventEmitterMixin = {
11727
  };
11728
 
11729
  module.exports = ReactEventEmitterMixin;
11730
- },{"./EventPluginHub":45}],88:[function(require,module,exports){
11731
  /**
11732
  * Copyright 2013-2015, Facebook, Inc.
11733
  * All rights reserved.
@@ -11939,7 +22395,7 @@ var ReactEventListener = {
11939
  };
11940
 
11941
  module.exports = ReactEventListener;
11942
- },{"./Object.assign":52,"./PooledClass":53,"./ReactInstanceHandles":91,"./ReactMount":95,"./ReactUpdates":113,"./getEventTarget":144,"fbjs/lib/EventListener":2,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/getUnboundedScrollPosition":14}],89:[function(require,module,exports){
11943
  /**
11944
  * Copyright 2013-2015, Facebook, Inc.
11945
  * All rights reserved.
@@ -11978,7 +22434,7 @@ var ReactInjection = {
11978
  };
11979
 
11980
  module.exports = ReactInjection;
11981
- },{"./DOMProperty":39,"./EventPluginHub":45,"./ReactBrowserEventEmitter":56,"./ReactClass":59,"./ReactComponentEnvironment":62,"./ReactEmptyComponent":84,"./ReactNativeComponent":98,"./ReactPerf":101,"./ReactRootIndex":108,"./ReactUpdates":113}],90:[function(require,module,exports){
11982
  /**
11983
  * Copyright 2013-2015, Facebook, Inc.
11984
  * All rights reserved.
@@ -12103,7 +22559,7 @@ var ReactInputSelection = {
12103
  };
12104
 
12105
  module.exports = ReactInputSelection;
12106
- },{"./ReactDOMSelection":74,"fbjs/lib/containsNode":6,"fbjs/lib/focusNode":11,"fbjs/lib/getActiveElement":12}],91:[function(require,module,exports){
12107
  (function (process){
12108
  /**
12109
  * Copyright 2013-2015, Facebook, Inc.
@@ -12408,8 +22864,8 @@ var ReactInstanceHandles = {
12408
 
12409
  module.exports = ReactInstanceHandles;
12410
  }).call(this,require('_process'))
12411
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RJbnN0YW5jZUhhbmRsZXMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0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NhbGxiYWNrIHdpdGguXG4gICAqIEBpbnRlcm5hbFxuICAgKi9cbiAgdHJhdmVyc2VBbmNlc3RvcnM6IGZ1bmN0aW9uICh0YXJnZXRJRCwgY2IsIGFyZykge1xuICAgIHRyYXZlcnNlUGFyZW50UGF0aCgnJywgdGFyZ2V0SUQsIGNiLCBhcmcsIHRydWUsIGZhbHNlKTtcbiAgfSxcblxuICBnZXRGaXJzdENvbW1vbkFuY2VzdG9ySUQ6IGdldEZpcnN0Q29tbW9uQW5jZXN0b3JJRCxcblxuICAvKipcbiAgICogRXhwb3NlZCBmb3IgdW5pdCB0ZXN0aW5nLlxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgX2dldE5leHREZXNjZW5kYW50SUQ6IGdldE5leHREZXNjZW5kYW50SUQsXG5cbiAgaXNBbmNlc3RvcklET2Y6IGlzQW5jZXN0b3JJRE9mLFxuXG4gIFNFUEFSQVRPUjogU0VQQVJBVE9SXG5cbn07XG5cbm1vZHVsZS5leHBvcnRzID0gUmVhY3RJbnN0YW5jZUhhbmRsZXM7Il19
12412
- },{"./ReactRootIndex":108,"_process":29,"fbjs/lib/invariant":17}],92:[function(require,module,exports){
12413
  /**
12414
  * Copyright 2013-2015, Facebook, Inc.
12415
  * All rights reserved.
@@ -12457,7 +22913,7 @@ var ReactInstanceMap = {
12457
  };
12458
 
12459
  module.exports = ReactInstanceMap;
12460
- },{}],93:[function(require,module,exports){
12461
  (function (process){
12462
  /**
12463
  * Copyright 2013-2015, Facebook, Inc.
@@ -12534,8 +22990,8 @@ var React = {
12534
 
12535
  module.exports = React;
12536
  }).call(this,require('_process'))
12537
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RJc29tb3JwaGljLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO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WN0RE9NRmFjdG9yaWVzLFxuXG4gIHZlcnNpb246IFJlYWN0VmVyc2lvbixcblxuICAvLyBIb29rIGZvciBKU1ggc3ByZWFkLCBkb24ndCB1c2UgdGhpcyBmb3IgYW55dGhpbmcgZWxzZS5cbiAgX19zcHJlYWQ6IGFzc2lnblxufTtcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdDsiXX0=
12538
- },{"./Object.assign":52,"./ReactChildren":58,"./ReactClass":59,"./ReactComponent":60,"./ReactDOMFactories":68,"./ReactElement":82,"./ReactElementValidator":83,"./ReactPropTypes":104,"./ReactVersion":114,"./onlyChild":151,"_process":29}],94:[function(require,module,exports){
12539
  /**
12540
  * Copyright 2013-2015, Facebook, Inc.
12541
  * All rights reserved.
@@ -12581,7 +23037,7 @@ var ReactMarkupChecksum = {
12581
  };
12582
 
12583
  module.exports = ReactMarkupChecksum;
12584
- },{"./adler32":133}],95:[function(require,module,exports){
12585
  (function (process){
12586
  /**
12587
  * Copyright 2013-2015, Facebook, Inc.
@@ -13434,8 +23890,8 @@ ReactPerf.measureMethods(ReactMount, 'ReactMount', {
13434
 
13435
  module.exports = ReactMount;
13436
  }).call(this,require('_process'))
13437
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RNb3VudC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtB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iBnZXROb2RlLFxuXG4gIGdldE5vZGVGcm9tSW5zdGFuY2U6IGdldE5vZGVGcm9tSW5zdGFuY2UsXG5cbiAgaXNWYWxpZDogaXNWYWxpZCxcblxuICBwdXJnZUlEOiBwdXJnZUlEXG59O1xuXG5SZWFjdFBlcmYubWVhc3VyZU1ldGhvZHMoUmVhY3RNb3VudCwgJ1JlYWN0TW91bnQnLCB7XG4gIF9yZW5kZXJOZXdSb290Q29tcG9uZW50OiAnX3JlbmRlck5ld1Jvb3RDb21wb25lbnQnLFxuICBfbW91bnRJbWFnZUludG9Ob2RlOiAnX21vdW50SW1hZ2VJbnRvTm9kZSdcbn0pO1xuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0TW91bnQ7Il19
13438
- },{"./DOMProperty":39,"./Object.assign":52,"./ReactBrowserEventEmitter":56,"./ReactCurrentOwner":64,"./ReactDOMFeatureFlags":69,"./ReactElement":82,"./ReactEmptyComponentRegistry":85,"./ReactInstanceHandles":91,"./ReactInstanceMap":92,"./ReactMarkupChecksum":94,"./ReactPerf":101,"./ReactReconciler":106,"./ReactUpdateQueue":112,"./ReactUpdates":113,"./instantiateReactComponent":148,"./setInnerHTML":154,"./shouldUpdateReactComponent":156,"./validateDOMNesting":158,"_process":29,"fbjs/lib/containsNode":6,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],96:[function(require,module,exports){
13439
  (function (process){
13440
  /**
13441
  * Copyright 2013-2015, Facebook, Inc.
@@ -13934,8 +24390,8 @@ var ReactMultiChild = {
13934
 
13935
  module.exports = ReactMultiChild;
13936
  }).call(this,require('_process'))
13937
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RNdWx0aUNoaWxkLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQ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dW5tb3VudENoaWxkKHByZXZDaGlsZHJlbltuYW1lXSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIC8vIFNldCBuZXcgdGV4dCBjb250ZW50LlxuICAgICAgICB0aGlzLnNldFRleHRDb250ZW50KG5leHRDb250ZW50KTtcbiAgICAgICAgZXJyb3JUaHJvd24gPSBmYWxzZTtcbiAgICAgIH0gZmluYWxseSB7XG4gICAgICAgIHVwZGF0ZURlcHRoLS07XG4gICAgICAgIGlmICghdXBkYXRlRGVwdGgpIHtcbiAgICAgICAgICBpZiAoZXJyb3JUaHJvd24pIHtcbiAgICAgICAgICAgIGNsZWFyUXVldWUoKTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcHJvY2Vzc1F1ZXVlKCk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIFJlcGxhY2VzIGFueSByZW5kZXJlZCBjaGlsZHJlbiB3aXRoIGEgbWFya3VwIHN0cmluZy5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBuZXh0TWFya3VwIFN0cmluZyBvZiBtYXJrdXAuXG4gICAgICogQGludGVybmFsXG4gICAgICovXG4gICAgdXBkYXRlTWFya3VwOiBmdW5jdGlvbiAobmV4dE1hcmt1cCkge1xuICAgICAgdXBkYXRlRGVwdGgrKztcbiAgICAgIHZhciBlcnJvclRocm93biA9IHRydWU7XG4gICAgICB0cnkge1xuICAgICAgICB2YXIgcHJldkNoaWxkcmVuID0gdGhpcy5fcmVuZGVyZWRDaGlsZHJlbjtcbiAgICAgICAgLy8gUmVtb3ZlIGFueSByZW5kZXJlZCBjaGlsZHJlbi5cbiAgICAgICAgUmVhY3RDaGlsZFJlY29uY2lsZXIudW5tb3VudENoaWxkcmVuKHByZXZDaGlsZHJlbik7XG4gICAgICAgIGZvciAodmFyIG5hbWUgaW4gcHJldkNoaWxkcmVuKSB7XG4gICAgICAgICA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xpbmVkIGZvciBwZXJmb3JtYW5jZSwgc2VlIGBSZWFjdEluc3RhbmNlSGFuZGxlcy5jcmVhdGVSZWFjdElEYC5cbiAgICAgIHZhciByb290SUQgPSB0aGlzLl9yb290Tm9kZUlEICsgbmFtZTtcbiAgICAgIHZhciBtb3VudEltYWdlID0gUmVhY3RSZWNvbmNpbGVyLm1vdW50Q29tcG9uZW50KGNoaWxkLCByb290SUQsIHRyYW5zYWN0aW9uLCBjb250ZXh0KTtcbiAgICAgIGNoaWxkLl9tb3VudEluZGV4ID0gaW5kZXg7XG4gICAgICB0aGlzLmNyZWF0ZUNoaWxkKGNoaWxkLCBtb3VudEltYWdlKTtcbiAgICB9LFxuXG4gICAgLyoqXG4gICAgICogVW5tb3VudHMgYSByZW5kZXJlZCBjaGlsZC5cbiAgICAgKlxuICAgICAqIE5PVEU6IFRoaXMgaXMgcGFydCBvZiBgdXBkYXRlQ2hpbGRyZW5gIGFuZCBpcyBoZXJlIGZvciByZWFkYWJpbGl0eS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7UmVhY3RDb21wb25lbnR9IGNoaWxkIENvbXBvbmVudCB0byB1bm1vdW50LlxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgX3VubW91bnRDaGlsZDogZnVuY3Rpb24gKGNoaWxkKSB7XG4gICAgICB0aGlzLnJlbW92ZUNoaWxkKGNoaWxkKTtcbiAgICAgIGNoaWxkLl9tb3VudEluZGV4ID0gbnVsbDtcbiAgICB9XG5cbiAgfVxuXG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0TXVsdGlDaGlsZDsiXX0=
13938
- },{"./ReactChildReconciler":57,"./ReactComponentEnvironment":62,"./ReactCurrentOwner":64,"./ReactMultiChildUpdateTypes":97,"./ReactReconciler":106,"./flattenChildren":139,"_process":29}],97:[function(require,module,exports){
13939
  /**
13940
  * Copyright 2013-2015, Facebook, Inc.
13941
  * All rights reserved.
@@ -13968,7 +24424,7 @@ var ReactMultiChildUpdateTypes = keyMirror({
13968
  });
13969
 
13970
  module.exports = ReactMultiChildUpdateTypes;
13971
- },{"fbjs/lib/keyMirror":20}],98:[function(require,module,exports){
13972
  (function (process){
13973
  /**
13974
  * Copyright 2014-2015, Facebook, Inc.
@@ -14065,8 +24521,8 @@ var ReactNativeComponent = {
14065
 
14066
  module.exports = ReactNativeComponent;
14067
  }).call(this,require('_process'))
14068
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3ROYXRpdmVDb21wb25lbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwi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wZSkgOiBpbnZhcmlhbnQoZmFsc2UpIDogdW5kZWZpbmVkO1xuICByZXR1cm4gbmV3IGdlbmVyaWNDb21wb25lbnRDbGFzcyhlbGVtZW50LnR5cGUsIGVsZW1lbnQucHJvcHMpO1xufVxuXG4vKipcbiAqIEBwYXJhbSB7UmVhY3RUZXh0fSB0ZXh0XG4gKiBAcmV0dXJuIHtSZWFjdENvbXBvbmVudH1cbiAqL1xuZnVuY3Rpb24gY3JlYXRlSW5zdGFuY2VGb3JUZXh0KHRleHQpIHtcbiAgcmV0dXJuIG5ldyB0ZXh0Q29tcG9uZW50Q2xhc3ModGV4dCk7XG59XG5cbi8qKlxuICogQHBhcmFtIHtSZWFjdENvbXBvbmVudH0gY29tcG9uZW50XG4gKiBAcmV0dXJuIHtib29sZWFufVxuICovXG5mdW5jdGlvbiBpc1RleHRDb21wb25lbnQoY29tcG9uZW50KSB7XG4gIHJldHVybiBjb21wb25lbnQgaW5zdGFuY2VvZiB0ZXh0Q29tcG9uZW50Q2xhc3M7XG59XG5cbnZhciBSZWFjdE5hdGl2ZUNvbXBvbmVudCA9IHtcbiAgZ2V0Q29tcG9uZW50Q2xhc3NGb3JFbGVtZW50OiBnZXRDb21wb25lbnRDbGFzc0ZvckVsZW1lbnQsXG4gIGNyZWF0ZUludGVybmFsQ29tcG9uZW50OiBjcmVhdGVJbnRlcm5hbENvbXBvbmVudCxcbiAgY3JlYXRlSW5zdGFuY2VGb3JUZXh0OiBjcmVhdGVJbnN0YW5jZUZvclRleHQsXG4gIGlzVGV4dENvbXBvbmVudDogaXNUZXh0Q29tcG9uZW50LFxuICBpbmplY3Rpb246IFJlYWN0TmF0aXZlQ29tcG9uZW50SW5qZWN0aW9uXG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0TmF0aXZlQ29tcG9uZW50OyJdfQ==
14069
- },{"./Object.assign":52,"_process":29,"fbjs/lib/invariant":17}],99:[function(require,module,exports){
14070
  (function (process){
14071
  /**
14072
  * Copyright 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iBmdW5jdGlvbiAocHVibGljSW5zdGFuY2UsIHByb3BzKSB7XG4gICAgd2FyblREWihwdWJsaWNJbnN0YW5jZSwgJ3JlcGxhY2VQcm9wcycpO1xuICB9XG5cbn07XG5cbm1vZHVsZS5leHBvcnRzID0gUmVhY3ROb29wVXBkYXRlUXVldWU7Il19
14191
- },{"_process":29,"fbjs/lib/warning":28}],100:[function(require,module,exports){
14192
  (function (process){
14193
  /**
14194
  * Copyright 2013-2015, Facebook, Inc.
@@ -14282,8 +24738,8 @@ var ReactOwner = {
14282
 
14283
  module.exports = ReactOwner;
14284
  }).call(this,require('_process'))
14285
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RPd25lci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQT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gJyhkZXRhaWxzOiBodHRwczovL2ZiLm1lL3JlYWN0LXJlZnMtbXVzdC1oYXZlLW93bmVyKS4nKSA6IGludmFyaWFudChmYWxzZSkgOiB1bmRlZmluZWQ7XG4gICAgLy8gQ2hlY2sgdGhhdCBgY29tcG9uZW50YCBpcyBzdGlsbCB0aGUgY3VycmVudCByZWYgYmVjYXVzZSB3ZSBkbyBub3Qgd2FudCB0b1xuICAgIC8vIGRldGFjaCB0aGUgcmVmIGlmIGFub3RoZXIgY29tcG9uZW50IHN0b2xlIGl0LlxuICAgIGlmIChvd25lci5nZXRQdWJsaWNJbnN0YW5jZSgpLnJlZnNbcmVmXSA9PT0gY29tcG9uZW50LmdldFB1YmxpY0luc3RhbmNlKCkpIHtcbiAgICAgIG93bmVyLmRldGFjaFJlZihyZWYpO1xuICAgIH1cbiAgfVxuXG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0T3duZXI7Il19
14286
- },{"_process":29,"fbjs/lib/invariant":17}],101:[function(require,module,exports){
14287
  (function (process){
14288
  /**
14289
  * Copyright 2013-2015, Facebook, Inc.
@@ -14382,8 +24838,8 @@ function _noMeasure(objName, fnName, func) {
14382
 
14383
  module.exports = ReactPerf;
14384
  }).call(this,require('_process'))
14385
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RQZXJmLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Q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md1bWVudHMpO1xuICAgICAgfTtcbiAgICAgIHdyYXBwZXIuZGlzcGxheU5hbWUgPSBvYmpOYW1lICsgJ18nICsgZm5OYW1lO1xuICAgICAgcmV0dXJuIHdyYXBwZXI7XG4gICAgfVxuICAgIHJldHVybiBmdW5jO1xuICB9LFxuXG4gIGluamVjdGlvbjoge1xuICAgIC8qKlxuICAgICAqIEBwYXJhbSB7ZnVuY3Rpb259IG1lYXN1cmVcbiAgICAgKi9cbiAgICBpbmplY3RNZWFzdXJlOiBmdW5jdGlvbiAobWVhc3VyZSkge1xuICAgICAgUmVhY3RQZXJmLnN0b3JlZE1lYXN1cmUgPSBtZWFzdXJlO1xuICAgIH1cbiAgfVxufTtcblxuLyoqXG4gKiBTaW1wbHkgcGFzc2VzIHRocm91Z2ggdGhlIG1lYXN1cmVkIGZ1bmN0aW9uLCB3aXRob3V0IG1lYXN1cmluZyBpdC5cbiAqXG4gKiBAcGFyYW0ge3N0cmluZ30gb2JqTmFtZVxuICogQHBhcmFtIHtzdHJpbmd9IGZuTmFtZVxuICogQHBhcmFtIHtmdW5jdGlvbn0gZnVuY1xuICogQHJldHVybiB7ZnVuY3Rpb259XG4gKi9cbmZ1bmN0aW9uIF9ub01lYXN1cmUob2JqTmFtZSwgZm5OYW1lLCBmdW5jKSB7XG4gIHJldHVybiBmdW5jO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0UGVyZjsiXX0=
14386
- },{"_process":29}],102:[function(require,module,exports){
14387
  (function (process){
14388
  /**
14389
  * Copyright 2013-2015, Facebook, Inc.
@@ -14410,8 +24866,8 @@ if (process.env.NODE_ENV !== 'production') {
14410
 
14411
  module.exports = ReactPropTypeLocationNames;
14412
  }).call(this,require('_process'))
14413
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RQcm9wVHlwZUxvY2F0aW9uTmFtZXM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J1xuICB9O1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IFJlYWN0UHJvcFR5cGVMb2NhdGlvbk5hbWVzOyJdfQ==
14414
- },{"_process":29}],103:[function(require,module,exports){
14415
  /**
14416
  * Copyright 2013-2015, Facebook, Inc.
14417
  * All rights reserved.
@@ -14434,7 +24890,7 @@ var ReactPropTypeLocations = keyMirror({
14434
  });
14435
 
14436
  module.exports = ReactPropTypeLocations;
14437
- },{"fbjs/lib/keyMirror":20}],104:[function(require,module,exports){
14438
  /**
14439
  * Copyright 2013-2015, Facebook, Inc.
14440
  * All rights reserved.
@@ -14791,7 +25247,7 @@ function getClassName(propValue) {
14791
  }
14792
 
14793
  module.exports = ReactPropTypes;
14794
- },{"./ReactElement":82,"./ReactPropTypeLocationNames":102,"./getIteratorFn":145,"fbjs/lib/emptyFunction":9}],105:[function(require,module,exports){
14795
  /**
14796
  * Copyright 2013-2015, Facebook, Inc.
14797
  * All rights reserved.
@@ -14943,7 +25399,7 @@ assign(ReactReconcileTransaction.prototype, Transaction.Mixin, Mixin);
14943
  PooledClass.addPoolingTo(ReactReconcileTransaction);
14944
 
14945
  module.exports = ReactReconcileTransaction;
14946
- },{"./CallbackQueue":35,"./Object.assign":52,"./PooledClass":53,"./ReactBrowserEventEmitter":56,"./ReactDOMFeatureFlags":69,"./ReactInputSelection":90,"./Transaction":130}],106:[function(require,module,exports){
14947
  /**
14948
  * Copyright 2013-2015, Facebook, Inc.
14949
  * All rights reserved.
@@ -15051,7 +25507,7 @@ var ReactReconciler = {
15051
  };
15052
 
15053
  module.exports = ReactReconciler;
15054
- },{"./ReactRef":107}],107:[function(require,module,exports){
15055
  /**
15056
  * Copyright 2013-2015, Facebook, Inc.
15057
  * All rights reserved.
@@ -15130,7 +25586,7 @@ ReactRef.detachRefs = function (instance, element) {
15130
  };
15131
 
15132
  module.exports = ReactRef;
15133
- },{"./ReactOwner":100}],108:[function(require,module,exports){
15134
  /**
15135
  * Copyright 2013-2015, Facebook, Inc.
15136
  * All rights reserved.
@@ -15160,7 +25616,7 @@ var ReactRootIndex = {
15160
  };
15161
 
15162
  module.exports = ReactRootIndex;
15163
- },{}],109:[function(require,module,exports){
15164
  /**
15165
  * Copyright 2014-2015, Facebook, Inc.
15166
  * All rights reserved.
@@ -15184,7 +25640,7 @@ var ReactServerBatchingStrategy = {
15184
  };
15185
 
15186
  module.exports = ReactServerBatchingStrategy;
15187
- },{}],110:[function(require,module,exports){
15188
  (function (process){
15189
  /**
15190
  * Copyright 2013-2015, Facebook, Inc.
@@ -15270,8 +25726,8 @@ module.exports = {
15270
  renderToStaticMarkup: renderToStaticMarkup
15271
  };
15272
  }).call(this,require('_process'))
15273
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RTZXJ2ZXJSZW5kZXJpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ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F0Y2hpbmcgc3RyYXRlZ3kgc2luY2UgdGhlc2UgdHdvIHJlbmRlcmVyc1xuICAgIC8vIGN1cnJlbnRseSBzaGFyZSB0aGVzZSBzdGF0ZWZ1bCBtb2R1bGVzLlxuICAgIFJlYWN0VXBkYXRlcy5pbmplY3Rpb24uaW5qZWN0QmF0Y2hpbmdTdHJhdGVneShSZWFjdERlZmF1bHRCYXRjaGluZ1N0cmF0ZWd5KTtcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgcmVuZGVyVG9TdHJpbmc6IHJlbmRlclRvU3RyaW5nLFxuICByZW5kZXJUb1N0YXRpY01hcmt1cDogcmVuZGVyVG9TdGF0aWNNYXJrdXBcbn07Il19
15274
- },{"./ReactDefaultBatchingStrategy":78,"./ReactElement":82,"./ReactInstanceHandles":91,"./ReactMarkupChecksum":94,"./ReactServerBatchingStrategy":109,"./ReactServerRenderingTransaction":111,"./ReactUpdates":113,"./instantiateReactComponent":148,"_process":29,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17}],111:[function(require,module,exports){
15275
  /**
15276
  * Copyright 2014-2015, Facebook, Inc.
15277
  * All rights reserved.
@@ -15359,7 +25815,7 @@ assign(ReactServerRenderingTransaction.prototype, Transaction.Mixin, Mixin);
15359
  PooledClass.addPoolingTo(ReactServerRenderingTransaction);
15360
 
15361
  module.exports = ReactServerRenderingTransaction;
15362
- },{"./CallbackQueue":35,"./Object.assign":52,"./PooledClass":53,"./Transaction":130,"fbjs/lib/emptyFunction":9}],112:[function(require,module,exports){
15363
  (function (process){
15364
  /**
15365
  * Copyright 2015, Facebook, Inc.
@@ -15619,8 +26075,8 @@ var ReactUpdateQueue = {
15619
 
15620
  module.exports = ReactUpdateQueue;
15621
  }).call(this,require('_process'))
15622
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvUmVhY3RVcGRhd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ZWxlbWVudCBpZiBpdCBleGlzdHMsIG90aGVyd2lzZSB3aXRoIGV4aXN0aW5nXG4gICAgLy8gZWxlbWVudCBwcm9wcy5cbiAgICB2YXIgd3JhcEVsZW1lbnQgPSB0b3BMZXZlbFdyYXBwZXIuX3BlbmRpbmdFbGVtZW50IHx8IHRvcExldmVsV3JhcHBlci5fY3VycmVudEVsZW1lbnQ7XG4gICAgdmFyIGVsZW1lbnQgPSB3cmFwRWxlbWVudC5wcm9wcztcbiAgICB0b3BMZXZlbFdyYXBwZXIuX3BlbmRpbmdFbGVtZW50ID0gUmVhY3RFbGVtZW50LmNsb25lQW5kUmVwbGFjZVByb3BzKHdyYXBFbGVtZW50LCBSZWFjdEVsZW1lbnQuY2xvbmVBbmRSZXBsYWNlUHJvcHMoZWxlbWVudCwgcHJvcHMpKTtcblxuICAgIGVucXVldWVVcGRhdGUodG9wTGV2ZWxXcmFwcGVyKTtcbiAgfSxcblxuICBlbnF1ZXVlRWxlbWVudEludGVybmFsOiBmdW5jdGlvbiAoaW50ZXJuYWxJbnN0YW5jZSwgbmV3RWxlbWVudCkge1xuICAgIGludGVybmFsSW5zdGFuY2UuX3BlbmRpbmdFbGVtZW50ID0gbmV3RWxlbWVudDtcbiAgICBlbnF1ZXVlVXBkYXRlKGludGVybmFsSW5zdGFuY2UpO1xuICB9XG5cbn07XG5cbm1vZHVsZS5leHBvcnRzID0gUmVhY3RVcGRhdGVRdWV1ZTsiXX0=
15623
- },{"./Object.assign":52,"./ReactCurrentOwner":64,"./ReactElement":82,"./ReactInstanceMap":92,"./ReactUpdates":113,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],113:[function(require,module,exports){
15624
  (function (process){
15625
  /**
15626
  * Copyright 2013-2015, Facebook, Inc.
@@ -15846,8 +26302,8 @@ var ReactUpdates = {
15846
 
15847
  module.exports = ReactUpdates;
15848
  }).call(this,require('_process'))
15849
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uI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JhdGNoaW5nVXBkYXRlcyBib29sZWFuIGF0dHJpYnV0ZScpIDogaW52YXJpYW50KGZhbHNlKSA6IHVuZGVmaW5lZDtcbiAgICBiYXRjaGluZ1N0cmF0ZWd5ID0gX2JhdGNoaW5nU3RyYXRlZ3k7XG4gIH1cbn07XG5cbnZhciBSZWFjdFVwZGF0ZXMgPSB7XG4gIC8qKlxuICAgKiBSZWFjdCByZWZlcmVuY2VzIGBSZWFjdFJlY29uY2lsZVRyYW5zYWN0aW9uYCB1c2luZyB0aGlzIHByb3BlcnR5IGluIG9yZGVyXG4gICAqIHRvIGFsbG93IGRlcGVuZGVuY3kgaW5qZWN0aW9uLlxuICAgKlxuICAgKiBAaW50ZXJuYWxcbiAgICovXG4gIFJlYWN0UmVjb25jaWxlVHJhbnNhY3Rpb246IG51bGwsXG5cbiAgYmF0Y2hlZFVwZGF0ZXM6IGJhdGNoZWRVcGRhdGVzLFxuICBlbnF1ZXVlVXBkYXRlOiBlbnF1ZXVlVXBkYXRlLFxuICBmbHVzaEJhdGNoZWRVcGRhdGVzOiBmbHVzaEJhdGNoZWRVcGRhdGVzLFxuICBpbmplY3Rpb246IFJlYWN0VXBkYXRlc0luamVjdGlvbixcbiAgYXNhcDogYXNhcFxufTtcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdFVwZGF0ZXM7Il19
15850
- },{"./CallbackQueue":35,"./Object.assign":52,"./PooledClass":53,"./ReactPerf":101,"./ReactReconciler":106,"./Transaction":130,"_process":29,"fbjs/lib/invariant":17}],114:[function(require,module,exports){
15851
  /**
15852
  * Copyright 2013-2015, Facebook, Inc.
15853
  * All rights reserved.
@@ -15861,8 +26317,8 @@ module.exports = ReactUpdates;
15861
 
15862
  'use strict';
15863
 
15864
- module.exports = '0.14.7';
15865
- },{}],115:[function(require,module,exports){
15866
  /**
15867
  * Copyright 2013-2015, Facebook, Inc.
15868
  * All rights reserved.
@@ -15990,7 +26446,7 @@ var SVGDOMPropertyConfig = {
15990
  };
15991
 
15992
  module.exports = SVGDOMPropertyConfig;
15993
- },{"./DOMProperty":39}],116:[function(require,module,exports){
15994
  /**
15995
  * Copyright 2013-2015, Facebook, Inc.
15996
  * All rights reserved.
@@ -16192,7 +26648,7 @@ var SelectEventPlugin = {
16192
  };
16193
 
16194
  module.exports = SelectEventPlugin;
16195
- },{"./EventConstants":44,"./EventPropagators":48,"./ReactInputSelection":90,"./SyntheticEvent":122,"./isTextInputElement":150,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/getActiveElement":12,"fbjs/lib/keyOf":21,"fbjs/lib/shallowEqual":26}],117:[function(require,module,exports){
16196
  /**
16197
  * Copyright 2013-2015, Facebook, Inc.
16198
  * All rights reserved.
@@ -16222,7 +26678,7 @@ var ServerReactRootIndex = {
16222
  };
16223
 
16224
  module.exports = ServerReactRootIndex;
16225
- },{}],118:[function(require,module,exports){
16226
  (function (process){
16227
  /**
16228
  * Copyright 2013-2015, Facebook, Inc.
@@ -16812,8 +27268,8 @@ var SimpleEventPlugin = {
16812
 
16813
  module.exports = SimpleEventPlugin;
16814
  }).call(this,require('_process'))
16815
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvU2ltcGxlRXZlbnRQbHVnaW4uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FB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2lkXTtcbiAgICB9XG4gIH1cblxufTtcblxubW9kdWxlLmV4cG9ydHMgPSBTaW1wbGVFdmVudFBsdWdpbjsiXX0=
16816
- },{"./EventConstants":44,"./EventPropagators":48,"./ReactMount":95,"./SyntheticClipboardEvent":119,"./SyntheticDragEvent":121,"./SyntheticEvent":122,"./SyntheticFocusEvent":123,"./SyntheticKeyboardEvent":125,"./SyntheticMouseEvent":126,"./SyntheticTouchEvent":127,"./SyntheticUIEvent":128,"./SyntheticWheelEvent":129,"./getEventCharCode":141,"_process":29,"fbjs/lib/EventListener":2,"fbjs/lib/emptyFunction":9,"fbjs/lib/invariant":17,"fbjs/lib/keyOf":21}],119:[function(require,module,exports){
16817
  /**
16818
  * Copyright 2013-2015, Facebook, Inc.
16819
  * All rights reserved.
@@ -16853,7 +27309,7 @@ function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, na
16853
  SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface);
16854
 
16855
  module.exports = SyntheticClipboardEvent;
16856
- },{"./SyntheticEvent":122}],120:[function(require,module,exports){
16857
  /**
16858
  * Copyright 2013-2015, Facebook, Inc.
16859
  * All rights reserved.
@@ -16891,7 +27347,7 @@ function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent,
16891
  SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);
16892
 
16893
  module.exports = SyntheticCompositionEvent;
16894
- },{"./SyntheticEvent":122}],121:[function(require,module,exports){
16895
  /**
16896
  * Copyright 2013-2015, Facebook, Inc.
16897
  * All rights reserved.
@@ -16929,7 +27385,7 @@ function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeE
16929
  SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);
16930
 
16931
  module.exports = SyntheticDragEvent;
16932
- },{"./SyntheticMouseEvent":126}],122:[function(require,module,exports){
16933
  (function (process){
16934
  /**
16935
  * Copyright 2013-2015, Facebook, Inc.
@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/warning":28}],123:[function(require,module,exports){
17117
  /**
17118
  * Copyright 2013-2015, Facebook, Inc.
17119
  * All rights reserved.
@@ -17151,7 +27607,7 @@ function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, native
17151
  SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);
17152
 
17153
  module.exports = SyntheticFocusEvent;
17154
- },{"./SyntheticUIEvent":128}],124:[function(require,module,exports){
17155
  /**
17156
  * Copyright 2013-2015, Facebook, Inc.
17157
  * All rights reserved.
@@ -17190,7 +27646,7 @@ function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, native
17190
  SyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface);
17191
 
17192
  module.exports = SyntheticInputEvent;
17193
- },{"./SyntheticEvent":122}],125:[function(require,module,exports){
17194
  /**
17195
  * Copyright 2013-2015, Facebook, Inc.
17196
  * All rights reserved.
@@ -17276,7 +27732,7 @@ function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nat
17276
  SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface);
17277
 
17278
  module.exports = SyntheticKeyboardEvent;
17279
- },{"./SyntheticUIEvent":128,"./getEventCharCode":141,"./getEventKey":142,"./getEventModifierState":143}],126:[function(require,module,exports){
17280
  /**
17281
  * Copyright 2013-2015, Facebook, Inc.
17282
  * All rights reserved.
@@ -17350,7 +27806,7 @@ function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, native
17350
  SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface);
17351
 
17352
  module.exports = SyntheticMouseEvent;
17353
- },{"./SyntheticUIEvent":128,"./ViewportMetrics":131,"./getEventModifierState":143}],127:[function(require,module,exports){
17354
  /**
17355
  * Copyright 2013-2015, Facebook, Inc.
17356
  * All rights reserved.
@@ -17397,7 +27853,7 @@ function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, native
17397
  SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface);
17398
 
17399
  module.exports = SyntheticTouchEvent;
17400
- },{"./SyntheticUIEvent":128,"./getEventModifierState":143}],128:[function(require,module,exports){
17401
  /**
17402
  * Copyright 2013-2015, Facebook, Inc.
17403
  * All rights reserved.
@@ -17458,7 +27914,7 @@ function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEve
17458
  SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface);
17459
 
17460
  module.exports = SyntheticUIEvent;
17461
- },{"./SyntheticEvent":122,"./getEventTarget":144}],129:[function(require,module,exports){
17462
  /**
17463
  * Copyright 2013-2015, Facebook, Inc.
17464
  * All rights reserved.
@@ -17514,7 +27970,7 @@ function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, native
17514
  SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface);
17515
 
17516
  module.exports = SyntheticWheelEvent;
17517
- },{"./SyntheticMouseEvent":126}],130:[function(require,module,exports){
17518
  (function (process){
17519
  /**
17520
  * Copyright 2013-2015, Facebook, Inc.
@@ -17748,8 +28204,8 @@ var Transaction = {
17748
 
17749
  module.exports = Transaction;
17750
  }).call(this,require('_process'))
17751
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvVHJhbnNhY3Rpb24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E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ICAgICAgICAgICAgICAgICAgICsgICAgICAgICtcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICB8XG4gKiAgICAgICAgICAgICAgICAgICAgKy0tLS0tLS0tLS0tLS0tLS0tfC0tLS0tLS0tfC0tLS0tLS0tLS0tLS0tK1xuICogICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgIHYgICAgICAgIHwgICAgICAgICAgICAgIHxcbiAqICAgICAgICAgICAgICAgICAgICB8ICAgICAgKy0tLS0tLS0tLS0tLS0tLSsgICB8ICAgICAgICAgICAgICB8XG4gKiAgICAgICAgICAgICAgICAgICAgfCAgICstLXwgICAgd3JhcHBlcjEgICB8LS0tfC0tLS0rICAgICAgICAgfFxuICogICAgICAgICAgICAgICAgICAgIHwgICB8ICArLS0tLS0tLS0tLS0tLS0tKyAgIHYgICAgfCAgICAgICAgIHxcbiAqICAgICAgICAgICAgICAgICAgICB8ICAgfCAgICAgICAgICArLS0tLS0tLS0tLS0tLSsgIHwgICAgICAgICB8XG4gKiAgICAgICAgICAgICAgICAgICAgfCAgIHwgICAgICstLS0tfCAgIHdyYXBwZXIyICB8LS0tLS0tLS0rICAgfFxuICogICAgICAgICAgICAgICAgICAgIHwgICB8ICAgICB8ICAgICstLS0tLS0tLS0tLS0tKyAgfCAgICAgfCAgIHxcbiAqICAgICAgICAgICAgICAgICAgICB8ICAgfCAgICAgfCAgICAgICAgICAgICAgICAgICAgIHwgICAgIHwgICB8XG4gKiAgICAgICAgICAgICAgICAgICAgfCAgIHYgICAgIHYgICAgICAgICAgICAgICAgICAgICB2ICAgICB2ICAgfCB3cmFwcGVyXG4gKiAgICAgICAgICAgICAgICAgICAgfCArLS0tKyArLS0tKyAgICstLS0tLS0tLS0rICAgKy0tLSsgKy0tLSsgfCBpbnZhcmlhbnRzXG4gKiBwZXJmb3JtKGFueU1ldGhvZCkgfCB8ICAgfCB8ICAgfCAgIHwgICAgICAgICB8ICAgfCAgIHwgf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AgIH1cbiAgICAgIH1cbiAgICB9XG4gICAgdGhpcy53cmFwcGVySW5pdERhdGEubGVuZ3RoID0gMDtcbiAgfVxufTtcblxudmFyIFRyYW5zYWN0aW9uID0ge1xuXG4gIE1peGluOiBNaXhpbixcblxuICAvKipcbiAgICogVG9rZW4gdG8gbG9vayBmb3IgdG8gZGV0ZXJtaW5lIGlmIGFuIGVycm9yIG9jY3VycmVkLlxuICAgKi9cbiAgT0JTRVJWRURfRVJST1I6IHt9XG5cbn07XG5cbm1vZHVsZS5leHBvcnRzID0gVHJhbnNhY3Rpb247Il19
17752
- },{"_process":29,"fbjs/lib/invariant":17}],131:[function(require,module,exports){
17753
  /**
17754
  * Copyright 2013-2015, Facebook, Inc.
17755
  * All rights reserved.
@@ -17777,7 +28233,7 @@ var ViewportMetrics = {
17777
  };
17778
 
17779
  module.exports = ViewportMetrics;
17780
- },{}],132:[function(require,module,exports){
17781
  (function (process){
17782
  /**
17783
  * Copyright 2014-2015, Facebook, Inc.
@@ -17839,8 +28295,8 @@ function accumulateInto(current, next) {
17839
 
17840
  module.exports = accumulateInto;
17841
  }).call(this,require('_process'))
17842
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvYWNjdW11bGF0ZUludG8uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUF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c0FycmF5ICYmIG5leHRJc0FycmF5KSB7XG4gICAgY3VycmVudC5wdXNoLmFwcGx5KGN1cnJlbnQsIG5leHQpO1xuICAgIHJldHVybiBjdXJyZW50O1xuICB9XG5cbiAgaWYgKGN1cnJlbnRJc0FycmF5KSB7XG4gICAgY3VycmVudC5wdXNoKG5leHQpO1xuICAgIHJldHVybiBjdXJyZW50O1xuICB9XG5cbiAgaWYgKG5leHRJc0FycmF5KSB7XG4gICAgLy8gQSBiaXQgdG9vIGRhbmdlcm91cyB0byBtdXRhdGUgYG5leHRgLlxuICAgIHJldHVybiBbY3VycmVudF0uY29uY2F0KG5leHQpO1xuICB9XG5cbiAgcmV0dXJuIFtjdXJyZW50LCBuZXh0XTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBhY2N1bXVsYXRlSW50bzsiXX0=
17843
- },{"_process":29,"fbjs/lib/invariant":17}],133:[function(require,module,exports){
17844
  /**
17845
  * Copyright 2013-2015, Facebook, Inc.
17846
  * All rights reserved.
@@ -17883,7 +28339,7 @@ function adler32(data) {
17883
  }
17884
 
17885
  module.exports = adler32;
17886
- },{}],134:[function(require,module,exports){
17887
  (function (process){
17888
  /**
17889
  * Copyright 2013-2015, Facebook, Inc.
@@ -17910,8 +28366,8 @@ if (process.env.NODE_ENV !== 'production') {
17910
 
17911
  module.exports = canDefineProperty;
17912
  }).call(this,require('_process'))
17913
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvY2FuRGVmaW5lUHJvcGVydHkuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsImZpbGUiOiJnZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgMjAxMy0yMDE1LCBGYWNlYm9vaywgSW5jLlxuICogQWxsIHJpZ2h0cyByZXNlcnZlZC5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBCU0Qtc3R5bGUgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS4gQW4gYWRkaXRpb25hbCBncmFudFxuICogb2YgcGF0ZW50IHJpZ2h0cyBjYW4gYmUgZm91bmQgaW4gdGhlIFBBVEVOVFMgZmlsZSBpbiB0aGUgc2FtZSBkaXJlY3RvcnkuXG4gKlxuICogQHByb3ZpZGVzTW9kdWxlIGNhbkRlZmluZVByb3BlcnR5XG4gKi9cblxuJ3VzZSBzdHJpY3QnO1xuXG52YXIgY2FuRGVmaW5lUHJvcGVydHkgPSBmYWxzZTtcbmlmIChwcm9jZXNzLmVudi5OT0RFX0VOViAhPT0gJ3Byb2R1Y3Rpb24nKSB7XG4gIHRyeSB7XG4gICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHt9LCAneCcsIHsgZ2V0OiBmdW5jdGlvbiAoKSB7fSB9KTtcbiAgICBjYW5EZWZpbmVQcm9wZXJ0eSA9IHRydWU7XG4gIH0gY2F0Y2ggKHgpIHtcbiAgICAvLyBJRSB3aWxsIGZhaWwgb24gZGVmaW5lUHJvcGVydHlcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGNhbkRlZmluZVByb3BlcnR5OyJdfQ==
17914
- },{"_process":29}],135:[function(require,module,exports){
17915
  /**
17916
  * Copyright 2013-2015, Facebook, Inc.
17917
  * All rights reserved.
@@ -17967,7 +28423,7 @@ function dangerousStyleValue(name, value) {
17967
  }
17968
 
17969
  module.exports = dangerousStyleValue;
17970
- },{"./CSSProperty":33}],136:[function(require,module,exports){
17971
  (function (process){
17972
  /**
17973
  * Copyright 2013-2015, Facebook, Inc.
@@ -18018,8 +28474,8 @@ function deprecated(fnName, newModule, newPackage, ctx, fn) {
18018
 
18019
  module.exports = deprecated;
18020
  }).call(this,require('_process'))
18021
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvZGVwcmVjYXRlZC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6ImdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAyMDEzLTIwMTUsIEZhY2Vib29rLCBJbmMuXG4gKiBBbGwgcmlnaHRzIHJlc2VydmVkLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEJTRC1zdHlsZSBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLiB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G9ydHMgPSBkZXByZWNhdGVkOyJdfQ==
18022
- },{"./Object.assign":52,"_process":29,"fbjs/lib/warning":28}],137:[function(require,module,exports){
18023
  /**
18024
  * Copyright 2013-2015, Facebook, Inc.
18025
  * All rights reserved.
@@ -18058,7 +28514,7 @@ function escapeTextContentForBrowser(text) {
18058
  }
18059
 
18060
  module.exports = escapeTextContentForBrowser;
18061
- },{}],138:[function(require,module,exports){
18062
  (function (process){
18063
  /**
18064
  * Copyright 2013-2015, Facebook, Inc.
@@ -18110,8 +28566,8 @@ function findDOMNode(componentOrElement) {
18110
 
18111
  module.exports = findDOMNode;
18112
  }).call(this,require('_process'))
18113
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvZmluZERPTU5vZGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6ImdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAyMDEzLTIwMTUsIEZhY2Vib29rLCBJbmMuXG4gKiBBbGwgcmlnaHRzIHJlc2VydmVkLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW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BvbmVudE9yRWxlbWVudCk7XG4gIH1cbiAgIShjb21wb25lbnRPckVsZW1lbnQucmVuZGVyID09IG51bGwgfHwgdHlwZW9mIGNvbXBvbmVudE9yRWxlbWVudC5yZW5kZXIgIT09ICdmdW5jdGlvbicpID8gcHJvY2Vzcy5lbnYuTk9ERV9FTlYgIT09ICdwcm9kdWN0aW9uJyA/IGludmFyaWFudChmYWxzZSwgJ2ZpbmRET01Ob2RlIHdhcyBjYWxsZWQgb24gYW4gdW5tb3VudGVkIGNvbXBvbmVudC4nKSA6IGludmFyaWFudChmYWxzZSkgOiB1bmRlZmluZWQ7XG4gICFmYWxzZSA/IHByb2Nlc3MuZW52Lk5PREVfRU5WICE9PSAncHJvZHVjdGlvbicgPyBpbnZhcmlhbnQoZmFsc2UsICdFbGVtZW50IGFwcGVhcnMgdG8gYmUgbmVpdGhlciBSZWFjdENvbXBvbmVudCBub3IgRE9NTm9kZSAoa2V5czogJXMpJywgT2JqZWN0LmtleXMoY29tcG9uZW50T3JFbGVtZW50KSkgOiBpbnZhcmlhbnQoZmFsc2UpIDogdW5kZWZpbmVkO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGZpbmRET01Ob2RlOyJdfQ==
18114
- },{"./ReactCurrentOwner":64,"./ReactInstanceMap":92,"./ReactMount":95,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],139:[function(require,module,exports){
18115
  (function (process){
18116
  /**
18117
  * Copyright 2013-2015, Facebook, Inc.
@@ -18162,8 +28618,8 @@ function flattenChildren(children) {
18162
 
18163
  module.exports = flattenChildren;
18164
  }).call(this,require('_process'))
18165
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvZmxhdHRlbkNoaWxkcmVuLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ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GFzIGBwcm9wcy5jaGlsZHJlbmAuIEFueSBudWxsXG4gKiBjaGlsZHJlbiB3aWxsIG5vdCBiZSBpbmNsdWRlZCBpbiB0aGUgcmVzdWx0aW5nIG9iamVjdC5cbiAqIEByZXR1cm4geyFvYmplY3R9IGZsYXR0ZW5lZCBjaGlsZHJlbiBrZXllZCBieSBuYW1lLlxuICovXG5mdW5jdGlvbiBmbGF0dGVuQ2hpbGRyZW4oY2hpbGRyZW4pIHtcbiAgaWYgKGNoaWxkcmVuID09IG51bGwpIHtcbiAgICByZXR1cm4gY2hpbGRyZW47XG4gIH1cbiAgdmFyIHJlc3VsdCA9IHt9O1xuICB0cmF2ZXJzZUFsbENoaWxkcmVuKGNoaWxkcmVuLCBmbGF0dGVuU2luZ2xlQ2hpbGRJbnRvQ29udGV4dCwgcmVzdWx0KTtcbiAgcmV0dXJuIHJlc3VsdDtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBmbGF0dGVuQ2hpbGRyZW47Il19
18166
- },{"./traverseAllChildren":157,"_process":29,"fbjs/lib/warning":28}],140:[function(require,module,exports){
18167
  /**
18168
  * Copyright 2013-2015, Facebook, Inc.
18169
  * All rights reserved.
@@ -18193,7 +28649,7 @@ var forEachAccumulated = function (arr, cb, scope) {
18193
  };
18194
 
18195
  module.exports = forEachAccumulated;
18196
- },{}],141:[function(require,module,exports){
18197
  /**
18198
  * Copyright 2013-2015, Facebook, Inc.
18199
  * All rights reserved.
@@ -18244,7 +28700,7 @@ function getEventCharCode(nativeEvent) {
18244
  }
18245
 
18246
  module.exports = getEventCharCode;
18247
- },{}],142:[function(require,module,exports){
18248
  /**
18249
  * Copyright 2013-2015, Facebook, Inc.
18250
  * All rights reserved.
@@ -18348,7 +28804,7 @@ function getEventKey(nativeEvent) {
18348
  }
18349
 
18350
  module.exports = getEventKey;
18351
- },{"./getEventCharCode":141}],143:[function(require,module,exports){
18352
  /**
18353
  * Copyright 2013-2015, Facebook, Inc.
18354
  * All rights reserved.
@@ -18393,7 +28849,7 @@ function getEventModifierState(nativeEvent) {
18393
  }
18394
 
18395
  module.exports = getEventModifierState;
18396
- },{}],144:[function(require,module,exports){
18397
  /**
18398
  * Copyright 2013-2015, Facebook, Inc.
18399
  * All rights reserved.
@@ -18423,7 +28879,7 @@ function getEventTarget(nativeEvent) {
18423
  }
18424
 
18425
  module.exports = getEventTarget;
18426
- },{}],145:[function(require,module,exports){
18427
  /**
18428
  * Copyright 2013-2015, Facebook, Inc.
18429
  * All rights reserved.
@@ -18464,7 +28920,7 @@ function getIteratorFn(maybeIterable) {
18464
  }
18465
 
18466
  module.exports = getIteratorFn;
18467
- },{}],146:[function(require,module,exports){
18468
  /**
18469
  * Copyright 2013-2015, Facebook, Inc.
18470
  * All rights reserved.
@@ -18538,7 +28994,7 @@ function getNodeForCharacterOffset(root, offset) {
18538
  }
18539
 
18540
  module.exports = getNodeForCharacterOffset;
18541
- },{}],147:[function(require,module,exports){
18542
  /**
18543
  * Copyright 2013-2015, Facebook, Inc.
18544
  * All rights reserved.
@@ -18572,7 +29028,7 @@ function getTextContentAccessor() {
18572
  }
18573
 
18574
  module.exports = getTextContentAccessor;
18575
- },{"fbjs/lib/ExecutionEnvironment":3}],148:[function(require,module,exports){
18576
  (function (process){
18577
  /**
18578
  * Copyright 2013-2015, Facebook, Inc.
@@ -18687,8 +29143,8 @@ function instantiateReactComponent(node) {
18687
 
18688
  module.exports = instantiateReactComponent;
18689
  }).call(this,require('_process'))
18690
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvaW5zdGFudGlhdGVSZWFjdENvbXBvbmVudC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ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VyID0gZmFsc2U7XG4gIH1cblxuICAvLyBJbnRlcm5hbCBpbnN0YW5jZXMgc2hvdWxkIGZ1bGx5IGNvbnN0cnVjdGVkIGF0IHRoaXMgcG9pbnQsIHNvIHRoZXkgc2hvdWxkXG4gIC8vIG5vdCBnZXQgYW55IG5ldyBmaWVsZHMgYWRkZWQgdG8gdGhlbSBhdCB0aGlzIHBvaW50LlxuICBpZiAocHJvY2Vzcy5lbnYuTk9ERV9FTlYgIT09ICdwcm9kdWN0aW9uJykge1xuICAgIGlmIChPYmplY3QucHJldmVudEV4dGVuc2lvbnMpIHtcbiAgICAgIE9iamVjdC5wcmV2ZW50RXh0ZW5zaW9ucyhpbnN0YW5jZSk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGluc3RhbmNlO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGluc3RhbnRpYXRlUmVhY3RDb21wb25lbnQ7Il19
18691
- },{"./Object.assign":52,"./ReactCompositeComponent":63,"./ReactEmptyComponent":84,"./ReactNativeComponent":98,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],149:[function(require,module,exports){
18692
  /**
18693
  * Copyright 2013-2015, Facebook, Inc.
18694
  * All rights reserved.
@@ -18749,7 +29205,7 @@ function isEventSupported(eventNameSuffix, capture) {
18749
  }
18750
 
18751
  module.exports = isEventSupported;
18752
- },{"fbjs/lib/ExecutionEnvironment":3}],150:[function(require,module,exports){
18753
  /**
18754
  * Copyright 2013-2015, Facebook, Inc.
18755
  * All rights reserved.
@@ -18790,7 +29246,7 @@ function isTextInputElement(elem) {
18790
  }
18791
 
18792
  module.exports = isTextInputElement;
18793
- },{}],151:[function(require,module,exports){
18794
  (function (process){
18795
  /**
18796
  * Copyright 2013-2015, Facebook, Inc.
@@ -18826,8 +29282,8 @@ function onlyChild(children) {
18826
 
18827
  module.exports = onlyChild;
18828
  }).call(this,require('_process'))
18829
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIj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ports){
18831
  /**
18832
  * Copyright 2013-2015, Facebook, Inc.
18833
  * All rights reserved.
@@ -18854,7 +29310,7 @@ function quoteAttributeValueForBrowser(value) {
18854
  }
18855
 
18856
  module.exports = quoteAttributeValueForBrowser;
18857
- },{"./escapeTextContentForBrowser":137}],153:[function(require,module,exports){
18858
  /**
18859
  * Copyright 2013-2015, Facebook, Inc.
18860
  * All rights reserved.
@@ -18871,7 +29327,7 @@ module.exports = quoteAttributeValueForBrowser;
18871
  var ReactMount = require('./ReactMount');
18872
 
18873
  module.exports = ReactMount.renderSubtreeIntoContainer;
18874
- },{"./ReactMount":95}],154:[function(require,module,exports){
18875
  /**
18876
  * Copyright 2013-2015, Facebook, Inc.
18877
  * All rights reserved.
@@ -18962,7 +29418,7 @@ if (ExecutionEnvironment.canUseDOM) {
18962
  }
18963
 
18964
  module.exports = setInnerHTML;
18965
- },{"fbjs/lib/ExecutionEnvironment":3}],155:[function(require,module,exports){
18966
  /**
18967
  * Copyright 2013-2015, Facebook, Inc.
18968
  * All rights reserved.
@@ -19003,7 +29459,7 @@ if (ExecutionEnvironment.canUseDOM) {
19003
  }
19004
 
19005
  module.exports = setTextContent;
19006
- },{"./escapeTextContentForBrowser":137,"./setInnerHTML":154,"fbjs/lib/ExecutionEnvironment":3}],156:[function(require,module,exports){
19007
  /**
19008
  * Copyright 2013-2015, Facebook, Inc.
19009
  * All rights reserved.
@@ -19047,7 +29503,7 @@ function shouldUpdateReactComponent(prevElement, nextElement) {
19047
  }
19048
 
19049
  module.exports = shouldUpdateReactComponent;
19050
- },{}],157:[function(require,module,exports){
19051
  (function (process){
19052
  /**
19053
  * Copyright 2013-2015, Facebook, Inc.
@@ -19239,8 +29695,8 @@ function traverseAllChildren(children, callback, traverseContext) {
19239
 
19240
  module.exports = traverseAllChildren;
19241
  }).call(this,require('_process'))
19242
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlc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sbCkge1xuICAgIHJldHVybiAwO1xuICB9XG5cbiAgcmV0dXJuIHRyYXZlcnNlQWxsQ2hpbGRyZW5JbXBsKGNoaWxkcmVuLCAnJywgY2FsbGJhY2ssIHRyYXZlcnNlQ29udGV4dCk7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gdHJhdmVyc2VBbGxDaGlsZHJlbjsiXX0=
19243
- },{"./ReactCurrentOwner":64,"./ReactElement":82,"./ReactInstanceHandles":91,"./getIteratorFn":145,"_process":29,"fbjs/lib/invariant":17,"fbjs/lib/warning":28}],158:[function(require,module,exports){
19244
  (function (process){
19245
  /**
19246
  * Copyright 2015, Facebook, Inc.
@@ -19606,11 +30062,11 @@ if (process.env.NODE_ENV !== 'production') {
19606
 
19607
  module.exports = validateDOMNesting;
19608
  }).call(this,require('_process'))
19609
- //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9yZWFjdC9saWIvdmFsaWRhdGVET01OZXN0aW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQT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jtcbiAgICAgIH0pO1xuICAgICAgdmFyIGFuY2VzdG9yT3duZXJOYW1lcyA9IGFuY2VzdG9yT3duZXJzLnNsaWNlKGRlZXBlc3RDb21tb24gKyAxKS5tYXAoZnVuY3Rpb24gKGluc3QpIHtcbiAgICAgICAgcmV0dXJuIGluc3QuZ2V0TmFtZSgpIHx8IFVOS05PV047XG4gICAgICB9KTtcbiAgICAgIHZhciBvd25lckluZm8gPSBbXS5jb25jYXQoXG4gICAgICAvLyBJZiB0aGUgcGFyZW50IGFuZC
1
  (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2
+ // Load Library
3
  'use strict';
4
 
5
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
10
 
11
  var _reactDom = require('react-dom');
12
 
13
+ require('./functions/events.jsx');
14
+
15
  var Thead = _react2['default'].createClass({
16
  displayName: 'Thead',
17
 
519
  (0, _reactDom.render)(_react2['default'].createElement(App, { pageType: 'post' }), document.getElementById('ts-react-post-search-font'));
520
  }
521
 
522
+ },{"./functions/events.jsx":2,"react":161,"react-dom":32}],2:[function(require,module,exports){
523
+ 'use strict';
524
+
525
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
526
+
527
+ var _jquery = require('jquery');
528
+
529
+ var _jquery2 = _interopRequireDefault(_jquery);
530
+
531
+ (0, _jquery2['default'])(function ($) {
532
+
533
+ // フォントテーマ設定
534
+ $('#fontThemeSelect').change(function () {
535
+ var selectTheme = $(this).val();
536
+ // 初期非表示
537
+ $('#customeFontThemeForm').hide();
538
+ $('#fontThemeDeleteButton').hide();
539
+ // 新しくテーマを作成する。表示
540
+ if (selectTheme === 'new') {
541
+ $('input[name=ts_edit_mode]').val('new');
542
+ $('#ts_custome_theme_id').val(unique_id);
543
+ $("<input>", {
544
+ type: "hidden",
545
+ name: "ts_change_edit_theme",
546
+ value: "change"
547
+ }).appendTo("#custmeFontForm");
548
+ $('#custmeFontForm').submit();
549
+ // カスタムテーマ選択。表示
550
+ } else if (selectTheme !== 'false') {
551
+ $('#custome_font_name').removeAttr('required');
552
+ $('input[name=ts_edit_mode]').val('update');
553
+ $('#ts_custome_theme_id').val('');
554
+ var custome_fonts = option_font_list.theme;
555
+ $.each(custome_fonts, function (i, cs_font) {
556
+ if (cs_font.id === selectTheme) {
557
+ $('input[name=ts_edit_mode]').val('update');
558
+ $('#ts_custome_theme_id').val(cs_font.id);
559
+ $("<input>", {
560
+ type: "hidden",
561
+ name: "ts_change_edit_theme",
562
+ value: "change"
563
+ }).appendTo("#custmeFontForm");
564
+ $('#custmeFontForm').submit();
565
+ }
566
+ });
567
+ } else {
568
+ $('#custome_font_name').removeAttr('required');
569
+ $('input[name=ts_edit_mode]').val('update');
570
+ $('#ts_custome_theme_id').val('');
571
+ $('#fontThemeDeleteButton').hide();
572
+ }
573
+ });
574
+
575
+ // フォントテーマ更新ボタン押下処理
576
+ $('#fontThemeUpdateButton').click(function () {
577
+ var nameDuplicateMessage = "同一名のカスタムフォントテーマは作成できません";
578
+ var countOverMessage = "カスタムフォントテーマは10個を超えて作成できません";
579
+
580
+ var warningFlg = 0;
581
+
582
+ // カスタムテーマ以外の選択
583
+ if ($('#customeFontThemeForm').is(':hidden')) {
584
+ return true;
585
+ }
586
+
587
+ // 同一名チェック
588
+ var all_font_theme = all_font_list;
589
+ var custome_font_name = $('#custome_font_name').val();
590
+ if (custome_font_name !== $('#current_custome_font_name').val()) {
591
+ $.each(all_font_theme, function (i, af_font) {
592
+ if (af_font.name === custome_font_name) {
593
+ warningFlg = 1;
594
+ return false;
595
+ }
596
+ });
597
+ }
598
+ // 個数チェック
599
+ var custome_fonts = option_font_list.theme;
600
+ var custome_font_count = Object.keys(custome_fonts).length;
601
+ if (custome_font_count >= 10 && !$('#current_custome_font_name').val()) {
602
+ warningFlg = 2;
603
+ }
604
+
605
+ // エラー切り分け
606
+ switch (warningFlg) {
607
+ case 1:
608
+ // 同一名警告
609
+ alert(nameDuplicateMessage);
610
+ return false;
611
+ break;
612
+ case 2:
613
+ // 11個以上警告
614
+ alert(countOverMessage);
615
+ return false;
616
+ break;
617
+ default:
618
+ if ($('#custome_font_name').val()) {
619
+ $('#custmeFontForm').submit();
620
+ }
621
+ }
622
+ });
623
+
624
+ // フォントテーマ削除ボタン押下処理
625
+ $('#fontThemeDeleteButton').click(function () {
626
+ var dialogMessage = $('#current_custome_font_name').val() + 'を削除します。よろしいですか?';
627
+ var fontDeleteConfirmDialog = window.confirm(dialogMessage);
628
+
629
+ if (fontDeleteConfirmDialog) {
630
+ $('input[name=ts_edit_mode]').val('delete');
631
+ $('#custmeFontForm').submit();
632
+ } else {
633
+ return false;
634
+ }
635
+ });
636
+
637
+ // localStorageのactiveAdvancedを取得
638
+ var activeAdvanced = localStorage.getItem('activeAdvanced');
639
+ if (activeAdvanced === 'true') {
640
+ $('.ts-custome_form').css('display', 'block');
641
+ $('.ts-custome_form').addClass('ts-active');
642
+ $('.advancedTriangle').addClass('open');
643
+ }
644
+
645
+ // 「上級者向けのカスタマイズ」クリック時イベント
646
+ $(".toggleAdvanced").on('click', function () {
647
+ $('.ts-custome_form').slideToggle('normal', function () {
648
+ if ($('.ts-custome_form').hasClass('ts-active')) {
649
+ $('.ts-custome_form').removeClass('ts-active');
650
+ $('.advancedTriangle').removeClass('open');
651
+ localStorage.setItem('activeAdvanced', false);
652
+ } else {
653
+ $('.ts-custome_form').addClass('ts-active');
654
+ $('.advancedTriangle').addClass('open');
655
+ localStorage.setItem('activeAdvanced', true);
656
+ }
657
+ });
658
+ });
659
+ });
660
+
661
+ },{"jquery":30}],3:[function(require,module,exports){
662
  (function (process){
663
  /**
664
  * Copyright 2013-2015, Facebook, Inc.
745
 
746
  module.exports = EventListener;
747
  }).call(this,require('_process'))
748
+
749
+ },{"./emptyFunction":10,"_process":31}],4:[function(require,module,exports){
750
  /**
751
  * Copyright 2013-2015, Facebook, Inc.
752
  * All rights reserved.
783
  };
784
 
785
  module.exports = ExecutionEnvironment;
786
+ },{}],5:[function(require,module,exports){
787
  /**
788
  * Copyright 2013-2015, Facebook, Inc.
789
  * All rights reserved.
816
  }
817
 
818
  module.exports = camelize;
819
+ },{}],6:[function(require,module,exports){
820
  /**
821
  * Copyright 2013-2015, Facebook, Inc.
822
  * All rights reserved.
857
  }
858
 
859
  module.exports = camelizeStyleName;
860
+ },{"./camelize":5}],7:[function(require,module,exports){
861
  /**
862
  * Copyright 2013-2015, Facebook, Inc.
863
  * All rights reserved.
913
  }
914
 
915
  module.exports = containsNode;
916
+ },{"./isTextNode":20}],8:[function(require,module,exports){
917
  /**
918
  * Copyright 2013-2015, Facebook, Inc.
919
  * All rights reserved.
999
  }
1000
 
1001
  module.exports = createArrayFromMixed;
1002
+ },{"./toArray":28}],9:[function(require,module,exports){
1003
  (function (process){
1004
  /**
1005
  * Copyright 2013-2015, Facebook, Inc.
1086
 
1087
  module.exports = createNodesFromMarkup;
1088
  }).call(this,require('_process'))
1089
+
1090
+ },{"./ExecutionEnvironment":4,"./createArrayFromMixed":8,"./getMarkupWrap":14,"./invariant":18,"_process":31}],10:[function(require,module,exports){
1091
  /**
1092
  * Copyright 2013-2015, Facebook, Inc.
1093
  * All rights reserved.
1126
  };
1127
 
1128
  module.exports = emptyFunction;
1129
+ },{}],11:[function(require,module,exports){
1130
  (function (process){
1131
  /**
1132
  * Copyright 2013-2015, Facebook, Inc.
1149
 
1150
  module.exports = emptyObject;
1151
  }).call(this,require('_process'))
1152
+
1153
+ },{"_process":31}],12:[function(require,module,exports){
1154
  /**
1155
  * Copyright 2013-2015, Facebook, Inc.
1156
  * All rights reserved.
1177
  }
1178
 
1179
  module.exports = focusNode;
1180
+ },{}],13:[function(require,module,exports){
1181
  /**
1182
  * Copyright 2013-2015, Facebook, Inc.
1183
  * All rights reserved.
1213
  }
1214
 
1215
  module.exports = getActiveElement;
1216
+ },{}],14:[function(require,module,exports){
1217
  (function (process){
1218
  /**
1219
  * Copyright 2013-2015, Facebook, Inc.
1311
 
1312
  module.exports = getMarkupWrap;
1313
  }).call(this,require('_process'))
1314
+
1315
+ },{"./ExecutionEnvironment":4,"./invariant":18,"_process":31}],15:[function(require,module,exports){
1316
  /**
1317
  * Copyright 2013-2015, Facebook, Inc.
1318
  * All rights reserved.
1351
  }
1352
 
1353
  module.exports = getUnboundedScrollPosition;
1354
+ },{}],16:[function(require,module,exports){
1355
  /**
1356
  * Copyright 2013-2015, Facebook, Inc.
1357
  * All rights reserved.
1385
  }
1386
 
1387
  module.exports = hyphenate;
1388
+ },{}],17:[function(require,module,exports){
1389
  /**
1390
  * Copyright 2013-2015, Facebook, Inc.
1391
  * All rights reserved.
1425
  }
1426
 
1427
  module.exports = hyphenateStyleName;
1428
+ },{"./hyphenate":16}],18:[function(require,module,exports){
1429
  (function (process){
1430
  /**
1431
  * Copyright 2013-2015, Facebook, Inc.
1478
 
1479
  module.exports = invariant;
1480
  }).call(this,require('_process'))
1481
+
1482
+ },{"_process":31}],19:[function(require,module,exports){
1483
  /**
1484
  * Copyright 2013-2015, Facebook, Inc.
1485
  * All rights reserved.
1503
  }
1504
 
1505
  module.exports = isNode;
1506
+ },{}],20:[function(require,module,exports){
1507
  /**
1508
  * Copyright 2013-2015, Facebook, Inc.
1509
  * All rights reserved.
1529
  }
1530
 
1531
  module.exports = isTextNode;
1532
+ },{"./isNode":19}],21:[function(require,module,exports){
1533
  (function (process){
1534
  /**
1535
  * Copyright 2013-2015, Facebook, Inc.
1580
 
1581
  module.exports = keyMirror;
1582
  }).call(this,require('_process'))
1583
+
1584
+ },{"./invariant":18,"_process":31}],22:[function(require,module,exports){
1585
  /**
1586
  * Copyright 2013-2015, Facebook, Inc.
1587
  * All rights reserved.
1617
  };
1618
 
1619
  module.exports = keyOf;
1620
+ },{}],23:[function(require,module,exports){
1621
  /**
1622
  * Copyright 2013-2015, Facebook, Inc.
1623
  * All rights reserved.
1669
  }
1670
 
1671
  module.exports = mapObject;
1672
+ },{}],24:[function(require,module,exports){
1673
  /**
1674
  * Copyright 2013-2015, Facebook, Inc.
1675
  * All rights reserved.
1701
  }
1702
 
1703
  module.exports = memoizeStringOnly;
1704
+ },{}],25:[function(require,module,exports){
1705
  /**
1706
  * Copyright 2013-2015, Facebook, Inc.
1707
  * All rights reserved.
1725
  }
1726
 
1727
  module.exports = performance || {};
1728
+ },{"./ExecutionEnvironment":4}],26:[function(require,module,exports){
1729
  /**
1730
  * Copyright 2013-2015, Facebook, Inc.
1731
  * All rights reserved.
1738
  * @typechecks
1739
  */
1740
 
1741
+ 'use strict';
1742
+
1743
+ var performance = require('./performance');
1744
+
1745
+ var performanceNow;
1746
+
1747
+ /**
1748
+ * Detect if we can use `window.performance.now()` and gracefully fallback to
1749
+ * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now
1750
+ * because of Facebook's testing infrastructure.
1751
+ */
1752
+ if (performance.now) {
1753
+ performanceNow = function () {
1754
+ return performance.now();
1755
+ };
1756
+ } else {
1757
+ performanceNow = function () {
1758
+ return Date.now();
1759
+ };
1760
+ }
1761
+
1762
+ module.exports = performanceNow;
1763
+ },{"./performance":25}],27:[function(require,module,exports){
1764
+ /**
1765
+ * Copyright 2013-2015, Facebook, Inc.
1766
+ * All rights reserved.
1767
+ *
1768
+ * This source code is licensed under the BSD-style license found in the
1769
+ * LICENSE file in the root directory of this source tree. An additional grant
1770
+ * of patent rights can be found in the PATENTS file in the same directory.
1771
+ *
1772
+ * @providesModule shallowEqual
1773
+ * @typechecks
1774
+ *
1775
+ */
1776
+
1777
+ 'use strict';
1778
+
1779
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1780
+
1781
+ /**
1782
+ * Performs equality by iterating through keys on an object and returning false
1783
+ * when any key has values which are not strictly equal between the arguments.
1784
+ * Returns true when the values of all keys are strictly equal.
1785
+ */
1786
+ function shallowEqual(objA, objB) {
1787
+ if (objA === objB) {
1788
+ return true;
1789
+ }
1790
+
1791
+ if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
1792
+ return false;
1793
+ }
1794
+
1795
+ var keysA = Object.keys(objA);
1796
+ var keysB = Object.keys(objB);
1797
+
1798
+ if (keysA.length !== keysB.length) {
1799
+ return false;
1800
+ }
1801
+
1802
+ // Test for A's keys different from B.
1803
+ var bHasOwnProperty = hasOwnProperty.bind(objB);
1804
+ for (var i = 0; i < keysA.length; i++) {
1805
+ if (!bHasOwnProperty(keysA[i]) || objA[keysA[i]] !== objB[keysA[i]]) {
1806
+ return false;
1807
+ }
1808
+ }
1809
+
1810
+ return true;
1811
+ }
1812
+
1813
+ module.exports = shallowEqual;
1814
+ },{}],28:[function(require,module,exports){
1815
+ (function (process){
1816
+ /**
1817
+ * Copyright 2013-2015, Facebook, Inc.
1818
+ * All rights reserved.
1819
+ *
1820
+ * This source code is licensed under the BSD-style license found in the
1821
+ * LICENSE file in the root directory of this source tree. An additional grant
1822
+ * of patent rights can be found in the PATENTS file in the same directory.
1823
+ *
1824
+ * @providesModule toArray
1825
+ * @typechecks
1826
+ */
1827
+
1828
+ 'use strict';
1829
+
1830
+ var invariant = require('./invariant');
1831
+
1832
+ /**
1833
+ * Convert array-like objects to arrays.
1834
+ *
1835
+ * This API assumes the caller knows the contents of the data type. For less
1836
+ * well defined inputs use createArrayFromMixed.
1837
+ *
1838
+ * @param {object|function|filelist} obj
1839
+ * @return {array}
1840
+ */
1841
+ function toArray(obj) {
1842
+ var length = obj.length;
1843
+
1844
+ // Some browse builtin objects can report typeof 'function' (e.g. NodeList in
1845
+ // old versions of Safari).
1846
+ !(!Array.isArray(obj) && (typeof obj === 'object' || typeof obj === 'function')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : undefined;
1847
+
1848
+ !(typeof length === 'number') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : undefined;
1849
+
1850
+ !(length === 0 || length - 1 in obj) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : undefined;
1851
+
1852
+ // Old IE doesn't give collections access to hasOwnProperty. Assume inputs
1853
+ // without method will throw during the slice call and skip straight to the
1854
+ // fallback.
1855
+ if (obj.hasOwnProperty) {
1856
+ try {
1857
+ return Array.prototype.slice.call(obj);
1858
+ } catch (e) {
1859
+ // IE < 9 does not support Array#slice on collections objects
1860
+ }
1861
+ }
1862
+
1863
+ // Fall back to copying key by key. This assumes all keys have a value,
1864
+ // so will not preserve sparsely populated inputs.
1865
+ var ret = Array(length);
1866
+ for (var ii = 0; ii < length; ii++) {
1867
+ ret[ii] = obj[ii];
1868
+ }
1869
+ return ret;
1870
+ }
1871
+
1872
+ module.exports = toArray;
1873
+ }).call(this,require('_process'))
1874
+
1875
+ },{"./invariant":18,"_process":31}],29:[function(require,module,exports){
1876
+ (function (process){
1877
+ /**
1878
+ * Copyright 2014-2015, Facebook, Inc.
1879
+ * All rights reserved.
1880
+ *
1881
+ * This source code is licensed under the BSD-style license found in the
1882
+ * LICENSE file in the root directory of this source tree. An additional grant
1883
+ * of patent rights can be found in the PATENTS file in the same directory.
1884
+ *
1885
+ * @providesModule warning
1886
+ */
1887
+
1888
+ 'use strict';
1889
+
1890
+ var emptyFunction = require('./emptyFunction');
1891
+
1892
+ /**
1893
+ * Similar to invariant but only logs a warning if the condition is not met.
1894
+ * This can be used to log issues in development environments in critical
1895
+ * paths. Removing the logging code for production environments will keep the
1896
+ * same logic and follow the same code paths.
1897
+ */
1898
+
1899
+ var warning = emptyFunction;
1900
+
1901
+ if (process.env.NODE_ENV !== 'production') {
1902
+ warning = function (condition, format) {
1903
+ for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1904
+ args[_key - 2] = arguments[_key];
1905
+ }
1906
+
1907
+ if (format === undefined) {
1908
+ throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
1909
+ }
1910
+
1911
+ if (format.indexOf('Failed Composite propType: ') === 0) {
1912
+ return; // Ignore CompositeComponent proptype check.
1913
+ }
1914
+
1915
+ if (!condition) {
1916
+ var argIndex = 0;
1917
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
1918
+ return args[argIndex++];
1919
+ });
1920
+ if (typeof console !== 'undefined') {
1921
+ console.error(message);
1922
+ }
1923
+ try {
1924
+ // --- Welcome to debugging React ---
1925
+ // This error was thrown as a convenience so that you can use this stack
1926
+ // to find the callsite that caused this warning to fire.
1927
+ throw new Error(message);
1928
+ } catch (x) {}
1929
+ }
1930
+ };
1931
+ }
1932
+
1933
+ module.exports = warning;
1934
+ }).call(this,require('_process'))
1935
+
1936
+ },{"./emptyFunction":10,"_process":31}],30:[function(require,module,exports){
1937
+ /*!
1938
+ * jQuery JavaScript Library v3.1.1
1939
+ * https://jquery.com/
1940
+ *
1941
+ * Includes Sizzle.js
1942
+ * https://sizzlejs.com/
1943
+ *
1944
+ * Copyright jQuery Foundation and other contributors
1945
+ * Released under the MIT license
1946
+ * https://jquery.org/license
1947
+ *
1948
+ * Date: 2016-09-22T22:30Z
1949
+ */
1950
+ ( function( global, factory ) {
1951
+
1952
+ "use strict";
1953
+
1954
+ if ( typeof module === "object" && typeof module.exports === "object" ) {
1955
+
1956
+ // For CommonJS and CommonJS-like environments where a proper `window`
1957
+ // is present, execute the factory and get jQuery.
1958
+ // For environments that do not have a `window` with a `document`
1959
+ // (such as Node.js), expose a factory as module.exports.
1960
+ // This accentuates the need for the creation of a real `window`.
1961
+ // e.g. var jQuery = require("jquery")(window);
1962
+ // See ticket #14549 for more info.
1963
+ module.exports = global.document ?
1964
+ factory( global, true ) :
1965
+ function( w ) {
1966
+ if ( !w.document ) {
1967
+ throw new Error( "jQuery requires a window with a document" );
1968
+ }
1969
+ return factory( w );
1970
+ };
1971
+ } else {
1972
+ factory( global );
1973
+ }
1974
+
1975
+ // Pass this if window is not defined yet
1976
+ } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
1977
+
1978
+ // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
1979
+ // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
1980
+ // arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
1981
+ // enough that all such attempts are guarded in a try block.
1982
+ "use strict";
1983
+
1984
+ var arr = [];
1985
+
1986
+ var document = window.document;
1987
+
1988
+ var getProto = Object.getPrototypeOf;
1989
+
1990
+ var slice = arr.slice;
1991
+
1992
+ var concat = arr.concat;
1993
+
1994
+ var push = arr.push;
1995
+
1996
+ var indexOf = arr.indexOf;
1997
+
1998
+ var class2type = {};
1999
+
2000
+ var toString = class2type.toString;
2001
+
2002
+ var hasOwn = class2type.hasOwnProperty;
2003
+
2004
+ var fnToString = hasOwn.toString;
2005
+
2006
+ var ObjectFunctionString = fnToString.call( Object );
2007
+
2008
+ var support = {};
2009
+
2010
+
2011
+
2012
+ function DOMEval( code, doc ) {
2013
+ doc = doc || document;
2014
+
2015
+ var script = doc.createElement( "script" );
2016
+
2017
+ script.text = code;
2018
+ doc.head.appendChild( script ).parentNode.removeChild( script );
2019
+ }
2020
+ /* global Symbol */
2021
+ // Defining this global in .eslintrc.json would create a danger of using the global
2022
+ // unguarded in another place, it seems safer to define global only for this module
2023
+
2024
+
2025
+
2026
+ var
2027
+ version = "3.1.1",
2028
+
2029
+ // Define a local copy of jQuery
2030
+ jQuery = function( selector, context ) {
2031
+
2032
+ // The jQuery object is actually just the init constructor 'enhanced'
2033
+ // Need init if jQuery is called (just allow error to be thrown if not included)
2034
+ return new jQuery.fn.init( selector, context );
2035
+ },
2036
+
2037
+ // Support: Android <=4.0 only
2038
+ // Make sure we trim BOM and NBSP
2039
+ rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
2040
+
2041
+ // Matches dashed string for camelizing
2042
+ rmsPrefix = /^-ms-/,
2043
+ rdashAlpha = /-([a-z])/g,
2044
+
2045
+ // Used by jQuery.camelCase as callback to replace()
2046
+ fcamelCase = function( all, letter ) {
2047
+ return letter.toUpperCase();
2048
+ };
2049
+
2050
+ jQuery.fn = jQuery.prototype = {
2051
+
2052
+ // The current version of jQuery being used
2053
+ jquery: version,
2054
+
2055
+ constructor: jQuery,
2056
+
2057
+ // The default length of a jQuery object is 0
2058
+ length: 0,
2059
+
2060
+ toArray: function() {
2061
+ return slice.call( this );
2062
+ },
2063
+
2064
+ // Get the Nth element in the matched element set OR
2065
+ // Get the whole matched element set as a clean array
2066
+ get: function( num ) {
2067
+
2068
+ // Return all the elements in a clean array
2069
+ if ( num == null ) {
2070
+ return slice.call( this );
2071
+ }
2072
+
2073
+ // Return just the one element from the set
2074
+ return num < 0 ? this[ num + this.length ] : this[ num ];
2075
+ },
2076
+
2077
+ // Take an array of elements and push it onto the stack
2078
+ // (returning the new matched element set)
2079
+ pushStack: function( elems ) {
2080
+
2081
+ // Build a new jQuery matched element set
2082
+ var ret = jQuery.merge( this.constructor(), elems );
2083
+
2084
+ // Add the old object onto the stack (as a reference)
2085
+ ret.prevObject = this;
2086
+
2087
+ // Return the newly-formed element set
2088
+ return ret;
2089
+ },
2090
+
2091
+ // Execute a callback for every element in the matched set.
2092
+ each: function( callback ) {
2093
+ return jQuery.each( this, callback );
2094
+ },
2095
+
2096
+ map: function( callback ) {
2097
+ return this.pushStack( jQuery.map( this, function( elem, i ) {
2098
+ return callback.call( elem, i, elem );
2099
+ } ) );
2100
+ },
2101
+
2102
+ slice: function() {
2103
+ return this.pushStack( slice.apply( this, arguments ) );
2104
+ },
2105
+
2106
+ first: function() {
2107
+ return this.eq( 0 );
2108
+ },
2109
+
2110
+ last: function() {
2111
+ return this.eq( -1 );
2112
+ },
2113
+
2114
+ eq: function( i ) {
2115
+ var len = this.length,
2116
+ j = +i + ( i < 0 ? len : 0 );
2117
+ return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
2118
+ },
2119
+
2120
+ end: function() {
2121
+ return this.prevObject || this.constructor();
2122
+ },
2123
+
2124
+ // For internal use only.
2125
+ // Behaves like an Array's method, not like a jQuery method.
2126
+ push: push,
2127
+ sort: arr.sort,
2128
+ splice: arr.splice
2129
+ };
2130
+
2131
+ jQuery.extend = jQuery.fn.extend = function() {
2132
+ var options, name, src, copy, copyIsArray, clone,
2133
+ target = arguments[ 0 ] || {},
2134
+ i = 1,
2135
+ length = arguments.length,
2136
+ deep = false;
2137
+
2138
+ // Handle a deep copy situation
2139
+ if ( typeof target === "boolean" ) {
2140
+ deep = target;
2141
+
2142
+ // Skip the boolean and the target
2143
+ target = arguments[ i ] || {};
2144
+ i++;
2145
+ }
2146
+
2147
+ // Handle case when target is a string or something (possible in deep copy)
2148
+ if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
2149
+ target = {};
2150
+ }
2151
+
2152
+ // Extend jQuery itself if only one argument is passed
2153
+ if ( i === length ) {
2154
+ target = this;
2155
+ i--;
2156
+ }
2157
+
2158
+ for ( ; i < length; i++ ) {
2159
+
2160
+ // Only deal with non-null/undefined values
2161
+ if ( ( options = arguments[ i ] ) != null ) {
2162
+
2163
+ // Extend the base object
2164
+ for ( name in options ) {
2165
+ src = target[ name ];
2166
+ copy = options[ name ];
2167
+
2168
+ // Prevent never-ending loop
2169
+ if ( target === copy ) {
2170
+ continue;
2171
+ }
2172
+
2173
+ // Recurse if we're merging plain objects or arrays
2174
+ if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
2175
+ ( copyIsArray = jQuery.isArray( copy ) ) ) ) {
2176
+
2177
+ if ( copyIsArray ) {
2178
+ copyIsArray = false;
2179
+ clone = src && jQuery.isArray( src ) ? src : [];
2180
+
2181
+ } else {
2182
+ clone = src && jQuery.isPlainObject( src ) ? src : {};
2183
+ }
2184
+
2185
+ // Never move original objects, clone them
2186
+ target[ name ] = jQuery.extend( deep, clone, copy );
2187
+
2188
+ // Don't bring in undefined values
2189
+ } else if ( copy !== undefined ) {
2190
+ target[ name ] = copy;
2191
+ }
2192
+ }
2193
+ }
2194
+ }
2195
+
2196
+ // Return the modified object
2197
+ return target;
2198
+ };
2199
+
2200
+ jQuery.extend( {
2201
+
2202
+ // Unique for each copy of jQuery on the page
2203
+ expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
2204
+
2205
+ // Assume jQuery is ready without the ready module
2206
+ isReady: true,
2207
+
2208
+ error: function( msg ) {
2209
+ throw new Error( msg );
2210
+ },
2211
+
2212
+ noop: function() {},
2213
+
2214
+ isFunction: function( obj ) {
2215
+ return jQuery.type( obj ) === "function";
2216
+ },
2217
+
2218
+ isArray: Array.isArray,
2219
+
2220
+ isWindow: function( obj ) {
2221
+ return obj != null && obj === obj.window;
2222
+ },
2223
+
2224
+ isNumeric: function( obj ) {
2225
+
2226
+ // As of jQuery 3.0, isNumeric is limited to
2227
+ // strings and numbers (primitives or objects)
2228
+ // that can be coerced to finite numbers (gh-2662)
2229
+ var type = jQuery.type( obj );
2230
+ return ( type === "number" || type === "string" ) &&
2231
+
2232
+ // parseFloat NaNs numeric-cast false positives ("")
2233
+ // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
2234
+ // subtraction forces infinities to NaN
2235
+ !isNaN( obj - parseFloat( obj ) );
2236
+ },
2237
+
2238
+ isPlainObject: function( obj ) {
2239
+ var proto, Ctor;
2240
+
2241
+ // Detect obvious negatives
2242
+ // Use toString instead of jQuery.type to catch host objects
2243
+ if ( !obj || toString.call( obj ) !== "[object Object]" ) {
2244
+ return false;
2245
+ }
2246
+
2247
+ proto = getProto( obj );
2248
+
2249
+ // Objects with no prototype (e.g., `Object.create( null )`) are plain
2250
+ if ( !proto ) {
2251
+ return true;
2252
+ }
2253
+
2254
+ // Objects with prototype are plain iff they were constructed by a global Object function
2255
+ Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
2256
+ return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
2257
+ },
2258
+
2259
+ isEmptyObject: function( obj ) {
2260
+
2261
+ /* eslint-disable no-unused-vars */
2262
+ // See https://github.com/eslint/eslint/issues/6125
2263
+ var name;
2264
+
2265
+ for ( name in obj ) {
2266
+ return false;
2267
+ }
2268
+ return true;
2269
+ },
2270
+
2271
+ type: function( obj ) {
2272
+ if ( obj == null ) {
2273
+ return obj + "";
2274
+ }
2275
+
2276
+ // Support: Android <=2.3 only (functionish RegExp)
2277
+ return typeof obj === "object" || typeof obj === "function" ?
2278
+ class2type[ toString.call( obj ) ] || "object" :
2279
+ typeof obj;
2280
+ },
2281
+
2282
+ // Evaluates a script in a global context
2283
+ globalEval: function( code ) {
2284
+ DOMEval( code );
2285
+ },
2286
+
2287
+ // Convert dashed to camelCase; used by the css and data modules
2288
+ // Support: IE <=9 - 11, Edge 12 - 13
2289
+ // Microsoft forgot to hump their vendor prefix (#9572)
2290
+ camelCase: function( string ) {
2291
+ return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
2292
+ },
2293
+
2294
+ nodeName: function( elem, name ) {
2295
+ return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
2296
+ },
2297
+
2298
+ each: function( obj, callback ) {
2299
+ var length, i = 0;
2300
+
2301
+ if ( isArrayLike( obj ) ) {
2302
+ length = obj.length;
2303
+ for ( ; i < length; i++ ) {
2304
+ if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
2305
+ break;
2306
+ }
2307
+ }
2308
+ } else {
2309
+ for ( i in obj ) {
2310
+ if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
2311
+ break;
2312
+ }
2313
+ }
2314
+ }
2315
+
2316
+ return obj;
2317
+ },
2318
+
2319
+ // Support: Android <=4.0 only
2320
+ trim: function( text ) {
2321
+ return text == null ?
2322
+ "" :
2323
+ ( text + "" ).replace( rtrim, "" );
2324
+ },
2325
+
2326
+ // results is for internal usage only
2327
+ makeArray: function( arr, results ) {
2328
+ var ret = results || [];
2329
+
2330
+ if ( arr != null ) {
2331
+ if ( isArrayLike( Object( arr ) ) ) {
2332
+ jQuery.merge( ret,
2333
+ typeof arr === "string" ?
2334
+ [ arr ] : arr
2335
+ );
2336
+ } else {
2337
+ push.call( ret, arr );
2338
+ }
2339
+ }
2340
+
2341
+ return ret;
2342
+ },
2343
+
2344
+ inArray: function( elem, arr, i ) {
2345
+ return arr == null ? -1 : indexOf.call( arr, elem, i );
2346
+ },
2347
+
2348
+ // Support: Android <=4.0 only, PhantomJS 1 only
2349
+ // push.apply(_, arraylike) throws on ancient WebKit
2350
+ merge: function( first, second ) {
2351
+ var len = +second.length,
2352
+ j = 0,
2353
+ i = first.length;
2354
+
2355
+ for ( ; j < len; j++ ) {
2356
+ first[ i++ ] = second[ j ];
2357
+ }
2358
+
2359
+ first.length = i;
2360
+
2361
+ return first;
2362
+ },
2363
+
2364
+ grep: function( elems, callback, invert ) {
2365
+ var callbackInverse,
2366
+ matches = [],
2367
+ i = 0,
2368
+ length = elems.length,
2369
+ callbackExpect = !invert;
2370
+
2371
+ // Go through the array, only saving the items
2372
+ // that pass the validator function
2373
+ for ( ; i < length; i++ ) {
2374
+ callbackInverse = !callback( elems[ i ], i );
2375
+ if ( callbackInverse !== callbackExpect ) {
2376
+ matches.push( elems[ i ] );
2377
+ }
2378
+ }
2379
+
2380
+ return matches;
2381
+ },
2382
+
2383
+ // arg is for internal usage only
2384
+ map: function( elems, callback, arg ) {
2385
+ var length, value,
2386
+ i = 0,
2387
+ ret = [];
2388
+
2389
+ // Go through the array, translating each of the items to their new values
2390
+ if ( isArrayLike( elems ) ) {
2391
+ length = elems.length;
2392
+ for ( ; i < length; i++ ) {
2393
+ value = callback( elems[ i ], i, arg );
2394
+
2395
+ if ( value != null ) {
2396
+ ret.push( value );
2397
+ }
2398
+ }
2399
+
2400
+ // Go through every key on the object,
2401
+ } else {
2402
+ for ( i in elems ) {
2403
+ value = callback( elems[ i ], i, arg );
2404
+
2405
+ if ( value != null ) {
2406
+ ret.push( value );
2407
+ }
2408
+ }
2409
+ }
2410
+
2411
+ // Flatten any nested arrays
2412
+ return concat.apply( [], ret );
2413
+ },
2414
+
2415
+ // A global GUID counter for objects
2416
+ guid: 1,
2417
+
2418
+ // Bind a function to a context, optionally partially applying any
2419
+ // arguments.
2420
+ proxy: function( fn, context ) {
2421
+ var tmp, args, proxy;
2422
+
2423
+ if ( typeof context === "string" ) {
2424
+ tmp = fn[ context ];
2425
+ context = fn;
2426
+ fn = tmp;
2427
+ }
2428
+
2429
+ // Quick check to determine if target is callable, in the spec
2430
+ // this throws a TypeError, but we will just return undefined.
2431
+ if ( !jQuery.isFunction( fn ) ) {
2432
+ return undefined;
2433
+ }
2434
+
2435
+ // Simulated bind
2436
+ args = slice.call( arguments, 2 );
2437
+ proxy = function() {
2438
+ return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
2439
+ };
2440
+
2441
+ // Set the guid of unique handler to the same of original handler, so it can be removed
2442
+ proxy.guid = fn.guid = fn.guid || jQuery.guid++;
2443
+
2444
+ return proxy;
2445
+ },
2446
+
2447
+ now: Date.now,
2448
+
2449
+ // jQuery.support is not used in Core but other projects attach their
2450
+ // properties to it so it needs to exist.
2451
+ support: support
2452
+ } );
2453
+
2454
+ if ( typeof Symbol === "function" ) {
2455
+ jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
2456
+ }
2457
+
2458
+ // Populate the class2type map
2459
+ jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
2460
+ function( i, name ) {
2461
+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
2462
+ } );
2463
+
2464
+ function isArrayLike( obj ) {
2465
+
2466
+ // Support: real iOS 8.2 only (not reproducible in simulator)
2467
+ // `in` check used to prevent JIT error (gh-2145)
2468
+ // hasOwn isn't used here due to false negatives
2469
+ // regarding Nodelist length in IE
2470
+ var length = !!obj && "length" in obj && obj.length,
2471
+ type = jQuery.type( obj );
2472
+
2473
+ if ( type === "function" || jQuery.isWindow( obj ) ) {
2474
+ return false;
2475
+ }
2476
+
2477
+ return type === "array" || length === 0 ||
2478
+ typeof length === "number" && length > 0 && ( length - 1 ) in obj;
2479
+ }
2480
+ var Sizzle =
2481
+ /*!
2482
+ * Sizzle CSS Selector Engine v2.3.3
2483
+ * https://sizzlejs.com/
2484
+ *
2485
+ * Copyright jQuery Foundation and other contributors
2486
+ * Released under the MIT license
2487
+ * http://jquery.org/license
2488
+ *
2489
+ * Date: 2016-08-08
2490
+ */
2491
+ (function( window ) {
2492
+
2493
+ var i,
2494
+ support,
2495
+ Expr,
2496
+ getText,
2497
+ isXML,
2498
+ tokenize,
2499
+ compile,
2500
+ select,
2501
+ outermostContext,
2502
+ sortInput,
2503
+ hasDuplicate,
2504
+
2505
+ // Local document vars
2506
+ setDocument,
2507
+ document,
2508
+ docElem,
2509
+ documentIsHTML,
2510
+ rbuggyQSA,
2511
+ rbuggyMatches,
2512
+ matches,
2513
+ contains,
2514
+
2515
+ // Instance-specific data
2516
+ expando = "sizzle" + 1 * new Date(),
2517
+ preferredDoc = window.document,
2518
+ dirruns = 0,
2519
+ done = 0,
2520
+ classCache = createCache(),
2521
+ tokenCache = createCache(),
2522
+ compilerCache = createCache(),
2523
+ sortOrder = function( a, b ) {
2524
+ if ( a === b ) {
2525
+ hasDuplicate = true;
2526
+ }
2527
+ return 0;
2528
+ },
2529
+
2530
+ // Instance methods
2531
+ hasOwn = ({}).hasOwnProperty,
2532
+ arr = [],
2533
+ pop = arr.pop,
2534
+ push_native = arr.push,
2535
+ push = arr.push,
2536
+ slice = arr.slice,
2537
+ // Use a stripped-down indexOf as it's faster than native
2538
+ // https://jsperf.com/thor-indexof-vs-for/5
2539
+ indexOf = function( list, elem ) {
2540
+ var i = 0,
2541
+ len = list.length;
2542
+ for ( ; i < len; i++ ) {
2543
+ if ( list[i] === elem ) {
2544
+ return i;
2545
+ }
2546
+ }
2547
+ return -1;
2548
+ },
2549
+
2550
+ booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
2551
+
2552
+ // Regular expressions
2553
+
2554
+ // http://www.w3.org/TR/css3-selectors/#whitespace
2555
+ whitespace = "[\\x20\\t\\r\\n\\f]",
2556
+
2557
+ // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
2558
+ identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
2559
+
2560
+ // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
2561
+ attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
2562
+ // Operator (capture 2)
2563
+ "*([*^$|!~]?=)" + whitespace +
2564
+ // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
2565
+ "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
2566
+ "*\\]",
2567
+
2568
+ pseudos = ":(" + identifier + ")(?:\\((" +
2569
+ // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
2570
+ // 1. quoted (capture 3; capture 4 or capture 5)
2571
+ "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
2572
+ // 2. simple (capture 6)
2573
+ "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
2574
+ // 3. anything else (capture 2)
2575
+ ".*" +
2576
+ ")\\)|)",
2577
+
2578
+ // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
2579
+ rwhitespace = new RegExp( whitespace + "+", "g" ),
2580
+ rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
2581
+
2582
+ rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
2583
+ rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
2584
+
2585
+ rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
2586
+
2587
+ rpseudo = new RegExp( pseudos ),
2588
+ ridentifier = new RegExp( "^" + identifier + "$" ),
2589
+
2590
+ matchExpr = {
2591
+ "ID": new RegExp( "^#(" + identifier + ")" ),
2592
+ "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
2593
+ "TAG": new RegExp( "^(" + identifier + "|[*])" ),
2594
+ "ATTR": new RegExp( "^" + attributes ),
2595
+ "PSEUDO": new RegExp( "^" + pseudos ),
2596
+ "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
2597
+ "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
2598
+ "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
2599
+ "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
2600
+ // For use in libraries implementing .is()
2601
+ // We use this for POS matching in `select`
2602
+ "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
2603
+ whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
2604
+ },
2605
+
2606
+ rinputs = /^(?:input|select|textarea|button)$/i,
2607
+ rheader = /^h\d$/i,
2608
+
2609
+ rnative = /^[^{]+\{\s*\[native \w/,
2610
+
2611
+ // Easily-parseable/retrievable ID or TAG or CLASS selectors
2612
+ rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
2613
+
2614
+ rsibling = /[+~]/,
2615
+
2616
+ // CSS escapes
2617
+ // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
2618
+ runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
2619
+ funescape = function( _, escaped, escapedWhitespace ) {
2620
+ var high = "0x" + escaped - 0x10000;
2621
+ // NaN means non-codepoint
2622
+ // Support: Firefox<24
2623
+ // Workaround erroneous numeric interpretation of +"0x"
2624
+ return high !== high || escapedWhitespace ?
2625
+ escaped :
2626
+ high < 0 ?
2627
+ // BMP codepoint
2628
+ String.fromCharCode( high + 0x10000 ) :
2629
+ // Supplemental Plane codepoint (surrogate pair)
2630
+ String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
2631
+ },
2632
+
2633
+ // CSS string/identifier serialization
2634
+ // https://drafts.csswg.org/cssom/#common-serializing-idioms
2635
+ rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
2636
+ fcssescape = function( ch, asCodePoint ) {
2637
+ if ( asCodePoint ) {
2638
+
2639
+ // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
2640
+ if ( ch === "\0" ) {
2641
+ return "\uFFFD";
2642
+ }
2643
+
2644
+ // Control characters and (dependent upon position) numbers get escaped as code points
2645
+ return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
2646
+ }
2647
+
2648
+ // Other potentially-special ASCII characters get backslash-escaped
2649
+ return "\\" + ch;
2650
+ },
2651
+
2652
+ // Used for iframes
2653
+ // See setDocument()
2654
+ // Removing the function wrapper causes a "Permission Denied"
2655
+ // error in IE
2656
+ unloadHandler = function() {
2657
+ setDocument();
2658
+ },
2659
+
2660
+ disabledAncestor = addCombinator(
2661
+ function( elem ) {
2662
+ return elem.disabled === true && ("form" in elem || "label" in elem);
2663
+ },
2664
+ { dir: "parentNode", next: "legend" }
2665
+ );
2666
+
2667
+ // Optimize for push.apply( _, NodeList )
2668
+ try {
2669
+ push.apply(
2670
+ (arr = slice.call( preferredDoc.childNodes )),
2671
+ preferredDoc.childNodes
2672
+ );
2673
+ // Support: Android<4.0
2674
+ // Detect silently failing push.apply
2675
+ arr[ preferredDoc.childNodes.length ].nodeType;
2676
+ } catch ( e ) {
2677
+ push = { apply: arr.length ?
2678
+
2679
+ // Leverage slice if possible
2680
+ function( target, els ) {
2681
+ push_native.apply( target, slice.call(els) );
2682
+ } :
2683
+
2684
+ // Support: IE<9
2685
+ // Otherwise append directly
2686
+ function( target, els ) {
2687
+ var j = target.length,
2688
+ i = 0;
2689
+ // Can't trust NodeList.length
2690
+ while ( (target[j++] = els[i++]) ) {}
2691
+ target.length = j - 1;
2692
+ }
2693
+ };
2694
+ }
2695
+
2696
+ function Sizzle( selector, context, results, seed ) {
2697
+ var m, i, elem, nid, match, groups, newSelector,
2698
+ newContext = context && context.ownerDocument,
2699
+
2700
+ // nodeType defaults to 9, since context defaults to document
2701
+ nodeType = context ? context.nodeType : 9;
2702
+
2703
+ results = results || [];
2704
+
2705
+ // Return early from calls with invalid selector or context
2706
+ if ( typeof selector !== "string" || !selector ||
2707
+ nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
2708
+
2709
+ return results;
2710
+ }
2711
+
2712
+ // Try to shortcut find operations (as opposed to filters) in HTML documents
2713
+ if ( !seed ) {
2714
+
2715
+ if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
2716
+ setDocument( context );
2717
+ }
2718
+ context = context || document;
2719
+
2720
+ if ( documentIsHTML ) {
2721
+
2722
+ // If the selector is sufficiently simple, try using a "get*By*" DOM method
2723
+ // (excepting DocumentFragment context, where the methods don't exist)
2724
+ if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
2725
+
2726
+ // ID selector
2727
+ if ( (m = match[1]) ) {
2728
+
2729
+ // Document context
2730
+ if ( nodeType === 9 ) {
2731
+ if ( (elem = context.getElementById( m )) ) {
2732
+
2733
+ // Support: IE, Opera, Webkit
2734
+ // TODO: identify versions
2735
+ // getElementById can match elements by name instead of ID
2736
+ if ( elem.id === m ) {
2737
+ results.push( elem );
2738
+ return results;
2739
+ }
2740
+ } else {
2741
+ return results;
2742
+ }
2743
+
2744
+ // Element context
2745
+ } else {
2746
+
2747
+ // Support: IE, Opera, Webkit
2748
+ // TODO: identify versions
2749
+ // getElementById can match elements by name instead of ID
2750
+ if ( newContext && (elem = newContext.getElementById( m )) &&
2751
+ contains( context, elem ) &&
2752
+ elem.id === m ) {
2753
+
2754
+ results.push( elem );
2755
+ return results;
2756
+ }
2757
+ }
2758
+
2759
+ // Type selector
2760
+ } else if ( match[2] ) {
2761
+ push.apply( results, context.getElementsByTagName( selector ) );
2762
+ return results;
2763
+
2764
+ // Class selector
2765
+ } else if ( (m = match[3]) && support.getElementsByClassName &&
2766
+ context.getElementsByClassName ) {
2767
+
2768
+ push.apply( results, context.getElementsByClassName( m ) );
2769
+ return results;
2770
+ }
2771
+ }
2772
+
2773
+ // Take advantage of querySelectorAll
2774
+ if ( support.qsa &&
2775
+ !compilerCache[ selector + " " ] &&
2776
+ (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
2777
+
2778
+ if ( nodeType !== 1 ) {
2779
+ newContext = context;
2780
+ newSelector = selector;
2781
+
2782
+ // qSA looks outside Element context, which is not what we want
2783
+ // Thanks to Andrew Dupont for this workaround technique
2784
+ // Support: IE <=8
2785
+ // Exclude object elements
2786
+ } else if ( context.nodeName.toLowerCase() !== "object" ) {
2787
+
2788
+ // Capture the context ID, setting it first if necessary
2789
+ if ( (nid = context.getAttribute( "id" )) ) {
2790
+ nid = nid.replace( rcssescape, fcssescape );
2791
+ } else {
2792
+ context.setAttribute( "id", (nid = expando) );
2793
+ }
2794
+
2795
+ // Prefix every selector in the list
2796
+ groups = tokenize( selector );
2797
+ i = groups.length;
2798
+ while ( i-- ) {
2799
+ groups[i] = "#" + nid + " " + toSelector( groups[i] );
2800
+ }
2801
+ newSelector = groups.join( "," );
2802
+
2803
+ // Expand context for sibling selectors
2804
+ newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
2805
+ context;
2806
+ }
2807
+
2808
+ if ( newSelector ) {
2809
+ try {
2810
+ push.apply( results,
2811
+ newContext.querySelectorAll( newSelector )
2812
+ );
2813
+ return results;
2814
+ } catch ( qsaError ) {
2815
+ } finally {
2816
+ if ( nid === expando ) {
2817
+ context.removeAttribute( "id" );
2818
+ }
2819
+ }
2820
+ }
2821
+ }
2822
+ }
2823
+ }
2824
+
2825
+ // All others
2826
+ return select( selector.replace( rtrim, "$1" ), context, results, seed );
2827
+ }
2828
+
2829
+ /**
2830
+ * Create key-value caches of limited size
2831
+ * @returns {function(string, object)} Returns the Object data after storing it on itself with
2832
+ * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
2833
+ * deleting the oldest entry
2834
+ */
2835
+ function createCache() {
2836
+ var keys = [];
2837
+
2838
+ function cache( key, value ) {
2839
+ // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
2840
+ if ( keys.push( key + " " ) > Expr.cacheLength ) {
2841
+ // Only keep the most recent entries
2842
+ delete cache[ keys.shift() ];
2843
+ }
2844
+ return (cache[ key + " " ] = value);
2845
+ }
2846
+ return cache;
2847
+ }
2848
+
2849
+ /**
2850
+ * Mark a function for special use by Sizzle
2851
+ * @param {Function} fn The function to mark
2852
+ */
2853
+ function markFunction( fn ) {
2854
+ fn[ expando ] = true;
2855
+ return fn;
2856
+ }
2857
+
2858
+ /**
2859
+ * Support testing using an element
2860
+ * @param {Function} fn Passed the created element and returns a boolean result
2861
+ */
2862
+ function assert( fn ) {
2863
+ var el = document.createElement("fieldset");
2864
+
2865
+ try {
2866
+ return !!fn( el );
2867
+ } catch (e) {
2868
+ return false;
2869
+ } finally {
2870
+ // Remove from its parent by default
2871
+ if ( el.parentNode ) {
2872
+ el.parentNode.removeChild( el );
2873
+ }
2874
+ // release memory in IE
2875
+ el = null;
2876
+ }
2877
+ }
2878
+
2879
+ /**
2880
+ * Adds the same handler for all of the specified attrs
2881
+ * @param {String} attrs Pipe-separated list of attributes
2882
+ * @param {Function} handler The method that will be applied
2883
+ */
2884
+ function addHandle( attrs, handler ) {
2885
+ var arr = attrs.split("|"),
2886
+ i = arr.length;
2887
+
2888
+ while ( i-- ) {
2889
+ Expr.attrHandle[ arr[i] ] = handler;
2890
+ }
2891
+ }
2892
+
2893
+ /**
2894
+ * Checks document order of two siblings
2895
+ * @param {Element} a
2896
+ * @param {Element} b
2897
+ * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
2898
+ */
2899
+ function siblingCheck( a, b ) {
2900
+ var cur = b && a,
2901
+ diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
2902
+ a.sourceIndex - b.sourceIndex;
2903
+
2904
+ // Use IE sourceIndex if available on both nodes
2905
+ if ( diff ) {
2906
+ return diff;
2907
+ }
2908
+
2909
+ // Check if b follows a
2910
+ if ( cur ) {
2911
+ while ( (cur = cur.nextSibling) ) {
2912
+ if ( cur === b ) {
2913
+ return -1;
2914
+ }
2915
+ }
2916
+ }
2917
+
2918
+ return a ? 1 : -1;
2919
+ }
2920
+
2921
+ /**
2922
+ * Returns a function to use in pseudos for input types
2923
+ * @param {String} type
2924
+ */
2925
+ function createInputPseudo( type ) {
2926
+ return function( elem ) {
2927
+ var name = elem.nodeName.toLowerCase();
2928
+ return name === "input" && elem.type === type;
2929
+ };
2930
+ }
2931
+
2932
+ /**
2933
+ * Returns a function to use in pseudos for buttons
2934
+ * @param {String} type
2935
+ */
2936
+ function createButtonPseudo( type ) {
2937
+ return function( elem ) {
2938
+ var name = elem.nodeName.toLowerCase();
2939
+ return (name === "input" || name === "button") && elem.type === type;
2940
+ };
2941
+ }
2942
+
2943
+ /**
2944
+ * Returns a function to use in pseudos for :enabled/:disabled
2945
+ * @param {Boolean} disabled true for :disabled; false for :enabled
2946
+ */
2947
+ function createDisabledPseudo( disabled ) {
2948
+
2949
+ // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
2950
+ return function( elem ) {
2951
+
2952
+ // Only certain elements can match :enabled or :disabled
2953
+ // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
2954
+ // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
2955
+ if ( "form" in elem ) {
2956
+
2957
+ // Check for inherited disabledness on relevant non-disabled elements:
2958
+ // * listed form-associated elements in a disabled fieldset
2959
+ // https://html.spec.whatwg.org/multipage/forms.html#category-listed
2960
+ // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
2961
+ // * option elements in a disabled optgroup
2962
+ // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
2963
+ // All such elements have a "form" property.
2964
+ if ( elem.parentNode && elem.disabled === false ) {
2965
+
2966
+ // Option elements defer to a parent optgroup if present
2967
+ if ( "label" in elem ) {
2968
+ if ( "label" in elem.parentNode ) {
2969
+ return elem.parentNode.disabled === disabled;
2970
+ } else {
2971
+ return elem.disabled === disabled;
2972
+ }
2973
+ }
2974
+
2975
+ // Support: IE 6 - 11
2976
+ // Use the isDisabled shortcut property to check for disabled fieldset ancestors
2977
+ return elem.isDisabled === disabled ||
2978
+
2979
+ // Where there is no isDisabled, check manually
2980
+ /* jshint -W018 */
2981
+ elem.isDisabled !== !disabled &&
2982
+ disabledAncestor( elem ) === disabled;
2983
+ }
2984
+
2985
+ return elem.disabled === disabled;
2986
+
2987
+ // Try to winnow out elements that can't be disabled before trusting the disabled property.
2988
+ // Some victims get caught in our net (label, legend, menu, track), but it shouldn't
2989
+ // even exist on them, let alone have a boolean value.
2990
+ } else if ( "label" in elem ) {
2991
+ return elem.disabled === disabled;
2992
+ }
2993
+
2994
+ // Remaining elements are neither :enabled nor :disabled
2995
+ return false;
2996
+ };
2997
+ }
2998
+
2999
+ /**
3000
+ * Returns a function to use in pseudos for positionals
3001
+ * @param {Function} fn
3002
+ */
3003
+ function createPositionalPseudo( fn ) {
3004
+ return markFunction(function( argument ) {
3005
+ argument = +argument;
3006
+ return markFunction(function( seed, matches ) {
3007
+ var j,
3008
+ matchIndexes = fn( [], seed.length, argument ),
3009
+ i = matchIndexes.length;
3010
+
3011
+ // Match elements found at the specified indexes
3012
+ while ( i-- ) {
3013
+ if ( seed[ (j = matchIndexes[i]) ] ) {
3014
+ seed[j] = !(matches[j] = seed[j]);
3015
+ }
3016
+ }
3017
+ });
3018
+ });
3019
+ }
3020
+
3021
+ /**
3022
+ * Checks a node for validity as a Sizzle context
3023
+ * @param {Element|Object=} context
3024
+ * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
3025
+ */
3026
+ function testContext( context ) {
3027
+ return context && typeof context.getElementsByTagName !== "undefined" && context;
3028
+ }
3029
+
3030
+ // Expose support vars for convenience
3031
+ support = Sizzle.support = {};
3032
+
3033
+ /**
3034
+ * Detects XML nodes
3035
+ * @param {Element|Object} elem An element or a document
3036
+ * @returns {Boolean} True iff elem is a non-HTML XML node
3037
+ */
3038
+ isXML = Sizzle.isXML = function( elem ) {
3039
+ // documentElement is verified for cases where it doesn't yet exist
3040
+ // (such as loading iframes in IE - #4833)
3041
+ var documentElement = elem && (elem.ownerDocument || elem).documentElement;
3042
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
3043
+ };
3044
+
3045
+ /**
3046
+ * Sets document-related variables once based on the current document
3047
+ * @param {Element|Object} [doc] An element or document object to use to set the document
3048
+ * @returns {Object} Returns the current document
3049
+ */
3050
+ setDocument = Sizzle.setDocument = function( node ) {
3051
+ var hasCompare, subWindow,
3052
+ doc = node ? node.ownerDocument || node : preferredDoc;
3053
+
3054
+ // Return early if doc is invalid or already selected
3055
+ if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
3056
+ return document;
3057
+ }
3058
+
3059
+ // Update global variables
3060
+ document = doc;
3061
+ docElem = document.documentElement;
3062
+ documentIsHTML = !isXML( document );
3063
+
3064
+ // Support: IE 9-11, Edge
3065
+ // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
3066
+ if ( preferredDoc !== document &&
3067
+ (subWindow = document.defaultView) && subWindow.top !== subWindow ) {
3068
+
3069
+ // Support: IE 11, Edge
3070
+ if ( subWindow.addEventListener ) {
3071
+ subWindow.addEventListener( "unload", unloadHandler, false );
3072
+
3073
+ // Support: IE 9 - 10 only
3074
+ } else if ( subWindow.attachEvent ) {
3075
+ subWindow.attachEvent( "onunload", unloadHandler );
3076
+ }
3077
+ }
3078
+
3079
+ /* Attributes
3080
+ ---------------------------------------------------------------------- */
3081
+
3082
+ // Support: IE<8
3083
+ // Verify that getAttribute really returns attributes and not properties
3084
+ // (excepting IE8 booleans)
3085
+ support.attributes = assert(function( el ) {
3086
+ el.className = "i";
3087
+ return !el.getAttribute("className");
3088
+ });
3089
+
3090
+ /* getElement(s)By*
3091
+ ---------------------------------------------------------------------- */
3092
+
3093
+ // Check if getElementsByTagName("*") returns only elements
3094
+ support.getElementsByTagName = assert(function( el ) {
3095
+ el.appendChild( document.createComment("") );
3096
+ return !el.getElementsByTagName("*").length;
3097
+ });
3098
+
3099
+ // Support: IE<9
3100
+ support.getElementsByClassName = rnative.test( document.getElementsByClassName );
3101
+
3102
+ // Support: IE<10
3103
+ // Check if getElementById returns elements by name
3104
+ // The broken getElementById methods don't pick up programmatically-set names,
3105
+ // so use a roundabout getElementsByName test
3106
+ support.getById = assert(function( el ) {
3107
+ docElem.appendChild( el ).id = expando;
3108
+ return !document.getElementsByName || !document.getElementsByName( expando ).length;
3109
+ });
3110
+
3111
+ // ID filter and find
3112
+ if ( support.getById ) {
3113
+ Expr.filter["ID"] = function( id ) {
3114
+ var attrId = id.replace( runescape, funescape );
3115
+ return function( elem ) {
3116
+ return elem.getAttribute("id") === attrId;
3117
+ };
3118
+ };
3119
+ Expr.find["ID"] = function( id, context ) {
3120
+ if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
3121
+ var elem = context.getElementById( id );
3122
+ return elem ? [ elem ] : [];
3123
+ }
3124
+ };
3125
+ } else {
3126
+ Expr.filter["ID"] = function( id ) {
3127
+ var attrId = id.replace( runescape, funescape );
3128
+ return function( elem ) {
3129
+ var node = typeof elem.getAttributeNode !== "undefined" &&
3130
+ elem.getAttributeNode("id");
3131
+ return node && node.value === attrId;
3132
+ };
3133
+ };
3134
+
3135
+ // Support: IE 6 - 7 only
3136
+ // getElementById is not reliable as a find shortcut
3137
+ Expr.find["ID"] = function( id, context ) {
3138
+ if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
3139
+ var node, i, elems,
3140
+ elem = context.getElementById( id );
3141
+
3142
+ if ( elem ) {
3143
+
3144
+ // Verify the id attribute
3145
+ node = elem.getAttributeNode("id");
3146
+ if ( node && node.value === id ) {
3147
+ return [ elem ];
3148
+ }
3149
+
3150
+ // Fall back on getElementsByName
3151
+ elems = context.getElementsByName( id );
3152
+ i = 0;
3153
+ while ( (elem = elems[i++]) ) {
3154
+ node = elem.getAttributeNode("id");
3155
+ if ( node && node.value === id ) {
3156
+ return [ elem ];
3157
+ }
3158
+ }
3159
+ }
3160
+
3161
+ return [];
3162
+ }
3163
+ };
3164
+ }
3165
+
3166
+ // Tag
3167
+ Expr.find["TAG"] = support.getElementsByTagName ?
3168
+ function( tag, context ) {
3169
+ if ( typeof context.getElementsByTagName !== "undefined" ) {
3170
+ return context.getElementsByTagName( tag );
3171
+
3172
+ // DocumentFragment nodes don't have gEBTN
3173
+ } else if ( support.qsa ) {
3174
+ return context.querySelectorAll( tag );
3175
+ }
3176
+ } :
3177
+
3178
+ function( tag, context ) {
3179
+ var elem,
3180
+ tmp = [],
3181
+ i = 0,
3182
+ // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
3183
+ results = context.getElementsByTagName( tag );
3184
+
3185
+ // Filter out possible comments
3186
+ if ( tag === "*" ) {
3187
+ while ( (elem = results[i++]) ) {
3188
+ if ( elem.nodeType === 1 ) {
3189
+ tmp.push( elem );
3190
+ }
3191
+ }
3192
+
3193
+ return tmp;
3194
+ }
3195
+ return results;
3196
+ };
3197
+
3198
+ // Class
3199
+ Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
3200
+ if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
3201
+ return context.getElementsByClassName( className );
3202
+ }
3203
+ };
3204
+
3205
+ /* QSA/matchesSelector
3206
+ ---------------------------------------------------------------------- */
3207
+
3208
+ // QSA and matchesSelector support
3209
+
3210
+ // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
3211
+ rbuggyMatches = [];
3212
+
3213
+ // qSa(:focus) reports false when true (Chrome 21)
3214
+ // We allow this because of a bug in IE8/9 that throws an error
3215
+ // whenever `document.activeElement` is accessed on an iframe
3216
+ // So, we allow :focus to pass through QSA all the time to avoid the IE error
3217
+ // See https://bugs.jquery.com/ticket/13378
3218
+ rbuggyQSA = [];
3219
+
3220
+ if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
3221
+ // Build QSA regex
3222
+ // Regex strategy adopted from Diego Perini
3223
+ assert(function( el ) {
3224
+ // Select is set to empty string on purpose
3225
+ // This is to test IE's treatment of not explicitly
3226
+ // setting a boolean content attribute,
3227
+ // since its presence should be enough
3228
+ // https://bugs.jquery.com/ticket/12359
3229
+ docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
3230
+ "<select id='" + expando + "-\r\\' msallowcapture=''>" +
3231
+ "<option selected=''></option></select>";
3232
+
3233
+ // Support: IE8, Opera 11-12.16
3234
+ // Nothing should be selected when empty strings follow ^= or $= or *=
3235
+ // The test attribute must be unknown in Opera but "safe" for WinRT
3236
+ // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
3237
+ if ( el.querySelectorAll("[msallowcapture^='']").length ) {
3238
+ rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
3239
+ }
3240
+
3241
+ // Support: IE8
3242
+ // Boolean attributes and "value" are not treated correctly
3243
+ if ( !el.querySelectorAll("[selected]").length ) {
3244
+ rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
3245
+ }
3246
+
3247
+ // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
3248
+ if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
3249
+ rbuggyQSA.push("~=");
3250
+ }
3251
+
3252
+ // Webkit/Opera - :checked should return selected option elements
3253
+ // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
3254
+ // IE8 throws error here and will not see later tests
3255
+ if ( !el.querySelectorAll(":checked").length ) {
3256
+ rbuggyQSA.push(":checked");
3257
+ }
3258
+
3259
+ // Support: Safari 8+, iOS 8+
3260
+ // https://bugs.webkit.org/show_bug.cgi?id=136851
3261
+ // In-page `selector#id sibling-combinator selector` fails
3262
+ if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
3263
+ rbuggyQSA.push(".#.+[+~]");
3264
+ }
3265
+ });
3266
+
3267
+ assert(function( el ) {
3268
+ el.innerHTML = "<a href='' disabled='disabled'></a>" +
3269
+ "<select disabled='disabled'><option/></select>";
3270
+
3271
+ // Support: Windows 8 Native Apps
3272
+ // The type and name attributes are restricted during .innerHTML assignment
3273
+ var input = document.createElement("input");
3274
+ input.setAttribute( "type", "hidden" );
3275
+ el.appendChild( input ).setAttribute( "name", "D" );
3276
+
3277
+ // Support: IE8
3278
+ // Enforce case-sensitivity of name attribute
3279
+ if ( el.querySelectorAll("[name=d]").length ) {
3280
+ rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
3281
+ }
3282
+
3283
+ // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
3284
+ // IE8 throws error here and will not see later tests
3285
+ if ( el.querySelectorAll(":enabled").length !== 2 ) {
3286
+ rbuggyQSA.push( ":enabled", ":disabled" );
3287
+ }
3288
+
3289
+ // Support: IE9-11+
3290
+ // IE's :disabled selector does not pick up the children of disabled fieldsets
3291
+ docElem.appendChild( el ).disabled = true;
3292
+ if ( el.querySelectorAll(":disabled").length !== 2 ) {
3293
+ rbuggyQSA.push( ":enabled", ":disabled" );
3294
+ }
3295
+
3296
+ // Opera 10-11 does not throw on post-comma invalid pseudos
3297
+ el.querySelectorAll("*,:x");
3298
+ rbuggyQSA.push(",.*:");
3299
+ });
3300
+ }
3301
+
3302
+ if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
3303
+ docElem.webkitMatchesSelector ||
3304
+ docElem.mozMatchesSelector ||
3305
+ docElem.oMatchesSelector ||
3306
+ docElem.msMatchesSelector) )) ) {
3307
+
3308
+ assert(function( el ) {
3309
+ // Check to see if it's possible to do matchesSelector
3310
+ // on a disconnected node (IE 9)
3311
+ support.disconnectedMatch = matches.call( el, "*" );
3312
+
3313
+ // This should fail with an exception
3314
+ // Gecko does not error, returns false instead
3315
+ matches.call( el, "[s!='']:x" );
3316
+ rbuggyMatches.push( "!=", pseudos );
3317
+ });
3318
+ }
3319
+
3320
+ rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
3321
+ rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
3322
+
3323
+ /* Contains
3324
+ ---------------------------------------------------------------------- */
3325
+ hasCompare = rnative.test( docElem.compareDocumentPosition );
3326
+
3327
+ // Element contains another
3328
+ // Purposefully self-exclusive
3329
+ // As in, an element does not contain itself
3330
+ contains = hasCompare || rnative.test( docElem.contains ) ?
3331
+ function( a, b ) {
3332
+ var adown = a.nodeType === 9 ? a.documentElement : a,
3333
+ bup = b && b.parentNode;
3334
+ return a === bup || !!( bup && bup.nodeType === 1 && (
3335
+ adown.contains ?
3336
+ adown.contains( bup ) :
3337
+ a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
3338
+ ));
3339
+ } :
3340
+ function( a, b ) {
3341
+ if ( b ) {
3342
+ while ( (b = b.parentNode) ) {
3343
+ if ( b === a ) {
3344
+ return true;
3345
+ }
3346
+ }
3347
+ }
3348
+ return false;
3349
+ };
3350
+
3351
+ /* Sorting
3352
+ ---------------------------------------------------------------------- */
3353
+
3354
+ // Document order sorting
3355
+ sortOrder = hasCompare ?
3356
+ function( a, b ) {
3357
+
3358
+ // Flag for duplicate removal
3359
+ if ( a === b ) {
3360
+ hasDuplicate = true;
3361
+ return 0;
3362
+ }
3363
+
3364
+ // Sort on method existence if only one input has compareDocumentPosition
3365
+ var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
3366
+ if ( compare ) {
3367
+ return compare;
3368
+ }
3369
+
3370
+ // Calculate position if both inputs belong to the same document
3371
+ compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
3372
+ a.compareDocumentPosition( b ) :
3373
+
3374
+ // Otherwise we know they are disconnected
3375
+ 1;
3376
+
3377
+ // Disconnected nodes
3378
+ if ( compare & 1 ||
3379
+ (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
3380
+
3381
+ // Choose the first element that is related to our preferred document
3382
+ if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
3383
+ return -1;
3384
+ }
3385
+ if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
3386
+ return 1;
3387
+ }
3388
+
3389
+ // Maintain original order
3390
+ return sortInput ?
3391
+ ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
3392
+ 0;
3393
+ }
3394
+
3395
+ return compare & 4 ? -1 : 1;
3396
+ } :
3397
+ function( a, b ) {
3398
+ // Exit early if the nodes are identical
3399
+ if ( a === b ) {
3400
+ hasDuplicate = true;
3401
+ return 0;
3402
+ }
3403
+
3404
+ var cur,
3405
+ i = 0,
3406
+ aup = a.parentNode,
3407
+ bup = b.parentNode,
3408
+ ap = [ a ],
3409
+ bp = [ b ];
3410
+
3411
+ // Parentless nodes are either documents or disconnected
3412
+ if ( !aup || !bup ) {
3413
+ return a === document ? -1 :
3414
+ b === document ? 1 :
3415
+ aup ? -1 :
3416
+ bup ? 1 :
3417
+ sortInput ?
3418
+ ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
3419
+ 0;
3420
+
3421
+ // If the nodes are siblings, we can do a quick check
3422
+ } else if ( aup === bup ) {
3423
+ return siblingCheck( a, b );
3424
+ }
3425
+
3426
+ // Otherwise we need full lists of their ancestors for comparison
3427
+ cur = a;
3428
+ while ( (cur = cur.parentNode) ) {
3429
+ ap.unshift( cur );
3430
+ }
3431
+ cur = b;
3432
+ while ( (cur = cur.parentNode) ) {
3433
+ bp.unshift( cur );
3434
+ }
3435
+
3436
+ // Walk down the tree looking for a discrepancy
3437
+ while ( ap[i] === bp[i] ) {
3438
+ i++;
3439
+ }
3440
+
3441
+ return i ?
3442
+ // Do a sibling check if the nodes have a common ancestor
3443
+ siblingCheck( ap[i], bp[i] ) :
3444
+
3445
+ // Otherwise nodes in our document sort first
3446
+ ap[i] === preferredDoc ? -1 :
3447
+ bp[i] === preferredDoc ? 1 :
3448
+ 0;
3449
+ };
3450
+
3451
+ return document;
3452
+ };
3453
+
3454
+ Sizzle.matches = function( expr, elements ) {
3455
+ return Sizzle( expr, null, null, elements );
3456
+ };
3457
+
3458
+ Sizzle.matchesSelector = function( elem, expr ) {
3459
+ // Set document vars if needed
3460
+ if ( ( elem.ownerDocument || elem ) !== document ) {
3461
+ setDocument( elem );
3462
+ }
3463
+
3464
+ // Make sure that attribute selectors are quoted
3465
+ expr = expr.replace( rattributeQuotes, "='$1']" );
3466
+
3467
+ if ( support.matchesSelector && documentIsHTML &&
3468
+ !compilerCache[ expr + " " ] &&
3469
+ ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
3470
+ ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
3471
+
3472
+ try {
3473
+ var ret = matches.call( elem, expr );
3474
+
3475
+ // IE 9's matchesSelector returns false on disconnected nodes
3476
+ if ( ret || support.disconnectedMatch ||
3477
+ // As well, disconnected nodes are said to be in a document
3478
+ // fragment in IE 9
3479
+ elem.document && elem.document.nodeType !== 11 ) {
3480
+ return ret;
3481
+ }
3482
+ } catch (e) {}
3483
+ }
3484
+
3485
+ return Sizzle( expr, document, null, [ elem ] ).length > 0;
3486
+ };
3487
+
3488
+ Sizzle.contains = function( context, elem ) {
3489
+ // Set document vars if needed
3490
+ if ( ( context.ownerDocument || context ) !== document ) {
3491
+ setDocument( context );
3492
+ }
3493
+ return contains( context, elem );
3494
+ };
3495
+
3496
+ Sizzle.attr = function( elem, name ) {
3497
+ // Set document vars if needed
3498
+ if ( ( elem.ownerDocument || elem ) !== document ) {
3499
+ setDocument( elem );
3500
+ }
3501
+
3502
+ var fn = Expr.attrHandle[ name.toLowerCase() ],
3503
+ // Don't get fooled by Object.prototype properties (jQuery #13807)
3504
+ val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
3505
+ fn( elem, name, !documentIsHTML ) :
3506
+ undefined;
3507
+
3508
+ return val !== undefined ?
3509
+ val :
3510
+ support.attributes || !documentIsHTML ?
3511
+ elem.getAttribute( name ) :
3512
+ (val = elem.getAttributeNode(name)) && val.specified ?
3513
+ val.value :
3514
+ null;
3515
+ };
3516
+
3517
+ Sizzle.escape = function( sel ) {
3518
+ return (sel + "").replace( rcssescape, fcssescape );
3519
+ };
3520
+
3521
+ Sizzle.error = function( msg ) {
3522
+ throw new Error( "Syntax error, unrecognized expression: " + msg );
3523
+ };
3524
+
3525
+ /**
3526
+ * Document sorting and removing duplicates
3527
+ * @param {ArrayLike} results
3528
+ */
3529
+ Sizzle.uniqueSort = function( results ) {
3530
+ var elem,
3531
+ duplicates = [],
3532
+ j = 0,
3533
+ i = 0;
3534
+
3535
+ // Unless we *know* we can detect duplicates, assume their presence
3536
+ hasDuplicate = !support.detectDuplicates;
3537
+ sortInput = !support.sortStable && results.slice( 0 );
3538
+ results.sort( sortOrder );
3539
+
3540
+ if ( hasDuplicate ) {
3541
+ while ( (elem = results[i++]) ) {
3542
+ if ( elem === results[ i ] ) {
3543
+ j = duplicates.push( i );
3544
+ }
3545
+ }
3546
+ while ( j-- ) {
3547
+ results.splice( duplicates[ j ], 1 );
3548
+ }
3549
+ }
3550
+
3551
+ // Clear input after sorting to release objects
3552
+ // See https://github.com/jquery/sizzle/pull/225
3553
+ sortInput = null;
3554
+
3555
+ return results;
3556
+ };
3557
+
3558
+ /**
3559
+ * Utility function for retrieving the text value of an array of DOM nodes
3560
+ * @param {Array|Element} elem
3561
+ */
3562
+ getText = Sizzle.getText = function( elem ) {
3563
+ var node,
3564
+ ret = "",
3565
+ i = 0,
3566
+ nodeType = elem.nodeType;
3567
+
3568
+ if ( !nodeType ) {
3569
+ // If no nodeType, this is expected to be an array
3570
+ while ( (node = elem[i++]) ) {
3571
+ // Do not traverse comment nodes
3572
+ ret += getText( node );
3573
+ }
3574
+ } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
3575
+ // Use textContent for elements
3576
+ // innerText usage removed for consistency of new lines (jQuery #11153)
3577
+ if ( typeof elem.textContent === "string" ) {
3578
+ return elem.textContent;
3579
+ } else {
3580
+ // Traverse its children
3581
+ for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
3582
+ ret += getText( elem );
3583
+ }
3584
+ }
3585
+ } else if ( nodeType === 3 || nodeType === 4 ) {
3586
+ return elem.nodeValue;
3587
+ }
3588
+ // Do not include comment or processing instruction nodes
3589
+
3590
+ return ret;
3591
+ };
3592
+
3593
+ Expr = Sizzle.selectors = {
3594
+
3595
+ // Can be adjusted by the user
3596
+ cacheLength: 50,
3597
+
3598
+ createPseudo: markFunction,
3599
+
3600
+ match: matchExpr,
3601
+
3602
+ attrHandle: {},
3603
+
3604
+ find: {},
3605
+
3606
+ relative: {
3607
+ ">": { dir: "parentNode", first: true },
3608
+ " ": { dir: "parentNode" },
3609
+ "+": { dir: "previousSibling", first: true },
3610
+ "~": { dir: "previousSibling" }
3611
+ },
3612
+
3613
+ preFilter: {
3614
+ "ATTR": function( match ) {
3615
+ match[1] = match[1].replace( runescape, funescape );
3616
+
3617
+ // Move the given value to match[3] whether quoted or unquoted
3618
+ match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
3619
+
3620
+ if ( match[2] === "~=" ) {
3621
+ match[3] = " " + match[3] + " ";
3622
+ }
3623
+
3624
+ return match.slice( 0, 4 );
3625
+ },
3626
+
3627
+ "CHILD": function( match ) {
3628
+ /* matches from matchExpr["CHILD"]
3629
+ 1 type (only|nth|...)
3630
+ 2 what (child|of-type)
3631
+ 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
3632
+ 4 xn-component of xn+y argument ([+-]?\d*n|)
3633
+ 5 sign of xn-component
3634
+ 6 x of xn-component
3635
+ 7 sign of y-component
3636
+ 8 y of y-component
3637
+ */
3638
+ match[1] = match[1].toLowerCase();
3639
+
3640
+ if ( match[1].slice( 0, 3 ) === "nth" ) {
3641
+ // nth-* requires argument
3642
+ if ( !match[3] ) {
3643
+ Sizzle.error( match[0] );
3644
+ }
3645
+
3646
+ // numeric x and y parameters for Expr.filter.CHILD
3647
+ // remember that false/true cast respectively to 0/1
3648
+ match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
3649
+ match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
3650
+
3651
+ // other types prohibit arguments
3652
+ } else if ( match[3] ) {
3653
+ Sizzle.error( match[0] );
3654
+ }
3655
+
3656
+ return match;
3657
+ },
3658
+
3659
+ "PSEUDO": function( match ) {
3660
+ var excess,
3661
+ unquoted = !match[6] && match[2];
3662
+
3663
+ if ( matchExpr["CHILD"].test( match[0] ) ) {
3664
+ return null;
3665
+ }
3666
+
3667
+ // Accept quoted arguments as-is
3668
+ if ( match[3] ) {
3669
+ match[2] = match[4] || match[5] || "";
3670
+
3671
+ // Strip excess characters from unquoted arguments
3672
+ } else if ( unquoted && rpseudo.test( unquoted ) &&
3673
+ // Get excess from tokenize (recursively)
3674
+ (excess = tokenize( unquoted, true )) &&
3675
+ // advance to the next closing parenthesis
3676
+ (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
3677
+
3678
+ // excess is a negative index
3679
+ match[0] = match[0].slice( 0, excess );
3680
+ match[2] = unquoted.slice( 0, excess );
3681
+ }
3682
+
3683
+ // Return only captures needed by the pseudo filter method (type and argument)
3684
+ return match.slice( 0, 3 );
3685
+ }
3686
+ },
3687
+
3688
+ filter: {
3689
+
3690
+ "TAG": function( nodeNameSelector ) {
3691
+ var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
3692
+ return nodeNameSelector === "*" ?
3693
+ function() { return true; } :
3694
+ function( elem ) {
3695
+ return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
3696
+ };
3697
+ },
3698
+
3699
+ "CLASS": function( className ) {
3700
+ var pattern = classCache[ className + " " ];
3701
+
3702
+ return pattern ||
3703
+ (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
3704
+ classCache( className, function( elem ) {
3705
+ return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
3706
+ });
3707
+ },
3708
+
3709
+ "ATTR": function( name, operator, check ) {
3710
+ return function( elem ) {
3711
+ var result = Sizzle.attr( elem, name );
3712
+
3713
+ if ( result == null ) {
3714
+ return operator === "!=";
3715
+ }
3716
+ if ( !operator ) {
3717
+ return true;
3718
+ }
3719
+
3720
+ result += "";
3721
+
3722
+ return operator === "=" ? result === check :
3723
+ operator === "!=" ? result !== check :
3724
+ operator === "^=" ? check && result.indexOf( check ) === 0 :
3725
+ operator === "*=" ? check && result.indexOf( check ) > -1 :
3726
+ operator === "$=" ? check && result.slice( -check.length ) === check :
3727
+ operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
3728
+ operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
3729
+ false;
3730
+ };
3731
+ },
3732
+
3733
+ "CHILD": function( type, what, argument, first, last ) {
3734
+ var simple = type.slice( 0, 3 ) !== "nth",
3735
+ forward = type.slice( -4 ) !== "last",
3736
+ ofType = what === "of-type";
3737
+
3738
+ return first === 1 && last === 0 ?
3739
+
3740
+ // Shortcut for :nth-*(n)
3741
+ function( elem ) {
3742
+ return !!elem.parentNode;
3743
+ } :
3744
+
3745
+ function( elem, context, xml ) {
3746
+ var cache, uniqueCache, outerCache, node, nodeIndex, start,
3747
+ dir = simple !== forward ? "nextSibling" : "previousSibling",
3748
+ parent = elem.parentNode,
3749
+ name = ofType && elem.nodeName.toLowerCase(),
3750
+ useCache = !xml && !ofType,
3751
+ diff = false;
3752
+
3753
+ if ( parent ) {
3754
+
3755
+ // :(first|last|only)-(child|of-type)
3756
+ if ( simple ) {
3757
+ while ( dir ) {
3758
+ node = elem;
3759
+ while ( (node = node[ dir ]) ) {
3760
+ if ( ofType ?
3761
+ node.nodeName.toLowerCase() === name :
3762
+ node.nodeType === 1 ) {
3763
+
3764
+ return false;
3765
+ }
3766
+ }
3767
+ // Reverse direction for :only-* (if we haven't yet done so)
3768
+ start = dir = type === "only" && !start && "nextSibling";
3769
+ }
3770
+ return true;
3771
+ }
3772
+
3773
+ start = [ forward ? parent.firstChild : parent.lastChild ];
3774
+
3775
+ // non-xml :nth-child(...) stores cache data on `parent`
3776
+ if ( forward && useCache ) {
3777
+
3778
+ // Seek `elem` from a previously-cached index
3779
+
3780
+ // ...in a gzip-friendly way
3781
+ node = parent;
3782
+ outerCache = node[ expando ] || (node[ expando ] = {});
3783
+
3784
+ // Support: IE <9 only
3785
+ // Defend against cloned attroperties (jQuery gh-1709)
3786
+ uniqueCache = outerCache[ node.uniqueID ] ||
3787
+ (outerCache[ node.uniqueID ] = {});
3788
+
3789
+ cache = uniqueCache[ type ] || [];
3790
+ nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
3791
+ diff = nodeIndex && cache[ 2 ];
3792
+ node = nodeIndex && parent.childNodes[ nodeIndex ];
3793
+
3794
+ while ( (node = ++nodeIndex && node && node[ dir ] ||
3795
+
3796
+ // Fallback to seeking `elem` from the start
3797
+ (diff = nodeIndex = 0) || start.pop()) ) {
3798
+
3799
+ // When found, cache indexes on `parent` and break
3800
+ if ( node.nodeType === 1 && ++diff && node === elem ) {
3801
+ uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
3802
+ break;
3803
+ }
3804
+ }
3805
+
3806
+ } else {
3807
+ // Use previously-cached element index if available
3808
+ if ( useCache ) {
3809
+ // ...in a gzip-friendly way
3810
+ node = elem;
3811
+ outerCache = node[ expando ] || (node[ expando ] = {});
3812
+
3813
+ // Support: IE <9 only
3814
+ // Defend against cloned attroperties (jQuery gh-1709)
3815
+ uniqueCache = outerCache[ node.uniqueID ] ||
3816
+ (outerCache[ node.uniqueID ] = {});
3817
+
3818
+ cache = uniqueCache[ type ] || [];
3819
+ nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
3820
+ diff = nodeIndex;
3821
+ }
3822
+
3823
+ // xml :nth-child(...)
3824
+ // or :nth-last-child(...) or :nth(-last)?-of-type(...)
3825
+ if ( diff === false ) {
3826
+ // Use the same loop as above to seek `elem` from the start
3827
+ while ( (node = ++nodeIndex && node && node[ dir ] ||
3828
+ (diff = nodeIndex = 0) || start.pop()) ) {
3829
+
3830
+ if ( ( ofType ?
3831
+ node.nodeName.toLowerCase() === name :
3832
+ node.nodeType === 1 ) &&
3833
+ ++diff ) {
3834
+
3835
+ // Cache the index of each encountered element
3836
+ if ( useCache ) {
3837
+ outerCache = node[ expando ] || (node[ expando ] = {});
3838
+
3839
+ // Support: IE <9 only
3840
+ // Defend against cloned attroperties (jQuery gh-1709)
3841
+ uniqueCache = outerCache[ node.uniqueID ] ||
3842
+ (outerCache[ node.uniqueID ] = {});
3843
+
3844
+ uniqueCache[ type ] = [ dirruns, diff ];
3845
+ }
3846
+
3847
+ if ( node === elem ) {
3848
+ break;
3849
+ }
3850
+ }
3851
+ }
3852
+ }
3853
+ }
3854
+
3855
+ // Incorporate the offset, then check against cycle size
3856
+ diff -= last;
3857
+ return diff === first || ( diff % first === 0 && diff / first >= 0 );
3858
+ }
3859
+ };
3860
+ },
3861
+
3862
+ "PSEUDO": function( pseudo, argument ) {
3863
+ // pseudo-class names are case-insensitive
3864
+ // http://www.w3.org/TR/selectors/#pseudo-classes
3865
+ // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
3866
+ // Remember that setFilters inherits from pseudos
3867
+ var args,
3868
+ fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
3869
+ Sizzle.error( "unsupported pseudo: " + pseudo );
3870
+
3871
+ // The user may use createPseudo to indicate that
3872
+ // arguments are needed to create the filter function
3873
+ // just as Sizzle does
3874
+ if ( fn[ expando ] ) {
3875
+ return fn( argument );
3876
+ }
3877
+
3878
+ // But maintain support for old signatures
3879
+ if ( fn.length > 1 ) {
3880
+ args = [ pseudo, pseudo, "", argument ];
3881
+ return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
3882
+ markFunction(function( seed, matches ) {
3883
+ var idx,
3884
+ matched = fn( seed, argument ),
3885
+ i = matched.length;
3886
+ while ( i-- ) {
3887
+ idx = indexOf( seed, matched[i] );
3888
+ seed[ idx ] = !( matches[ idx ] = matched[i] );
3889
+ }
3890
+ }) :
3891
+ function( elem ) {
3892
+ return fn( elem, 0, args );
3893
+ };
3894
+ }
3895
+
3896
+ return fn;
3897
+ }
3898
+ },
3899
+
3900
+ pseudos: {
3901
+ // Potentially complex pseudos
3902
+ "not": markFunction(function( selector ) {
3903
+ // Trim the selector passed to compile
3904
+ // to avoid treating leading and trailing
3905
+ // spaces as combinators
3906
+ var input = [],
3907
+ results = [],
3908
+ matcher = compile( selector.replace( rtrim, "$1" ) );
3909
+
3910
+ return matcher[ expando ] ?
3911
+ markFunction(function( seed, matches, context, xml ) {
3912
+ var elem,
3913
+ unmatched = matcher( seed, null, xml, [] ),
3914
+ i = seed.length;
3915
+
3916
+ // Match elements unmatched by `matcher`
3917
+ while ( i-- ) {
3918
+ if ( (elem = unmatched[i]) ) {
3919
+ seed[i] = !(matches[i] = elem);
3920
+ }
3921
+ }
3922
+ }) :
3923
+ function( elem, context, xml ) {
3924
+ input[0] = elem;
3925
+ matcher( input, null, xml, results );
3926
+ // Don't keep the element (issue #299)
3927
+ input[0] = null;
3928
+ return !results.pop();
3929
+ };
3930
+ }),
3931
+
3932
+ "has": markFunction(function( selector ) {
3933
+ return function( elem ) {
3934
+ return Sizzle( selector, elem ).length > 0;
3935
+ };
3936
+ }),
3937
+
3938
+ "contains": markFunction(function( text ) {
3939
+ text = text.replace( runescape, funescape );
3940
+ return function( elem ) {
3941
+ return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
3942
+ };
3943
+ }),
3944
+
3945
+ // "Whether an element is represented by a :lang() selector
3946
+ // is based solely on the element's language value
3947
+ // being equal to the identifier C,
3948
+ // or beginning with the identifier C immediately followed by "-".
3949
+ // The matching of C against the element's language value is performed case-insensitively.
3950
+ // The identifier C does not have to be a valid language name."
3951
+ // http://www.w3.org/TR/selectors/#lang-pseudo
3952
+ "lang": markFunction( function( lang ) {
3953
+ // lang value must be a valid identifier
3954
+ if ( !ridentifier.test(lang || "") ) {
3955
+ Sizzle.error( "unsupported lang: " + lang );
3956
+ }
3957
+ lang = lang.replace( runescape, funescape ).toLowerCase();
3958
+ return function( elem ) {
3959
+ var elemLang;
3960
+ do {
3961
+ if ( (elemLang = documentIsHTML ?
3962
+ elem.lang :
3963
+ elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
3964
+
3965
+ elemLang = elemLang.toLowerCase();
3966
+ return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
3967
+ }
3968
+ } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
3969
+ return false;
3970
+ };
3971
+ }),
3972
+
3973
+ // Miscellaneous
3974
+ "target": function( elem ) {
3975
+ var hash = window.location && window.location.hash;
3976
+ return hash && hash.slice( 1 ) === elem.id;
3977
+ },
3978
+
3979
+ "root": function( elem ) {
3980
+ return elem === docElem;
3981
+ },
3982
+
3983
+ "focus": function( elem ) {
3984
+ return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
3985
+ },
3986
+
3987
+ // Boolean properties
3988
+ "enabled": createDisabledPseudo( false ),
3989
+ "disabled": createDisabledPseudo( true ),
3990
+
3991
+ "checked": function( elem ) {
3992
+ // In CSS3, :checked should return both checked and selected elements
3993
+ // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
3994
+ var nodeName = elem.nodeName.toLowerCase();
3995
+ return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
3996
+ },
3997
+
3998
+ "selected": function( elem ) {
3999
+ // Accessing this property makes selected-by-default
4000
+ // options in Safari work properly
4001
+ if ( elem.parentNode ) {
4002
+ elem.parentNode.selectedIndex;
4003
+ }
4004
+
4005
+ return elem.selected === true;
4006
+ },
4007
+
4008
+ // Contents
4009
+ "empty": function( elem ) {
4010
+ // http://www.w3.org/TR/selectors/#empty-pseudo
4011
+ // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
4012
+ // but not by others (comment: 8; processing instruction: 7; etc.)
4013
+ // nodeType < 6 works because attributes (2) do not appear as children
4014
+ for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
4015
+ if ( elem.nodeType < 6 ) {
4016
+ return false;
4017
+ }
4018
+ }
4019
+ return true;
4020
+ },
4021
+
4022
+ "parent": function( elem ) {
4023
+ return !Expr.pseudos["empty"]( elem );
4024
+ },
4025
+
4026
+ // Element/input types
4027
+ "header": function( elem ) {
4028
+ return rheader.test( elem.nodeName );
4029
+ },
4030
+
4031
+ "input": function( elem ) {
4032
+ return rinputs.test( elem.nodeName );
4033
+ },
4034
+
4035
+ "button": function( elem ) {
4036
+ var name = elem.nodeName.toLowerCase();
4037
+ return name === "input" && elem.type === "button" || name === "button";
4038
+ },
4039
+
4040
+ "text": function( elem ) {
4041
+ var attr;
4042
+ return elem.nodeName.toLowerCase() === "input" &&
4043
+ elem.type === "text" &&
4044
+
4045
+ // Support: IE<8
4046
+ // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
4047
+ ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
4048
+ },
4049
+
4050
+ // Position-in-collection
4051
+ "first": createPositionalPseudo(function() {
4052
+ return [ 0 ];
4053
+ }),
4054
+
4055
+ "last": createPositionalPseudo(function( matchIndexes, length ) {
4056
+ return [ length - 1 ];
4057
+ }),
4058
+
4059
+ "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
4060
+ return [ argument < 0 ? argument + length : argument ];
4061
+ }),
4062
+
4063
+ "even": createPositionalPseudo(function( matchIndexes, length ) {
4064
+ var i = 0;
4065
+ for ( ; i < length; i += 2 ) {
4066
+ matchIndexes.push( i );
4067
+ }
4068
+ return matchIndexes;
4069
+ }),
4070
+
4071
+ "odd": createPositionalPseudo(function( matchIndexes, length ) {
4072
+ var i = 1;
4073
+ for ( ; i < length; i += 2 ) {
4074
+ matchIndexes.push( i );
4075
+ }
4076
+ return matchIndexes;
4077
+ }),
4078
+
4079
+ "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
4080
+ var i = argument < 0 ? argument + length : argument;
4081
+ for ( ; --i >= 0; ) {
4082
+ matchIndexes.push( i );
4083
+ }
4084
+ return matchIndexes;
4085
+ }),
4086
+
4087
+ "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
4088
+ var i = argument < 0 ? argument + length : argument;
4089
+ for ( ; ++i < length; ) {
4090
+ matchIndexes.push( i );
4091
+ }
4092
+ return matchIndexes;
4093
+ })
4094
+ }
4095
+ };
4096
+
4097
+ Expr.pseudos["nth"] = Expr.pseudos["eq"];
4098
+
4099
+ // Add button/input type pseudos
4100
+ for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
4101
+ Expr.pseudos[ i ] = createInputPseudo( i );
4102
+ }
4103
+ for ( i in { submit: true, reset: true } ) {
4104
+ Expr.pseudos[ i ] = createButtonPseudo( i );
4105
+ }
4106
+
4107
+ // Easy API for creating new setFilters
4108
+ function setFilters() {}
4109
+ setFilters.prototype = Expr.filters = Expr.pseudos;
4110
+ Expr.setFilters = new setFilters();
4111
+
4112
+ tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
4113
+ var matched, match, tokens, type,
4114
+ soFar, groups, preFilters,
4115
+ cached = tokenCache[ selector + " " ];
4116
+
4117
+ if ( cached ) {
4118
+ return parseOnly ? 0 : cached.slice( 0 );
4119
+ }
4120
+
4121
+ soFar = selector;
4122
+ groups = [];
4123
+ preFilters = Expr.preFilter;
4124
+
4125
+ while ( soFar ) {
4126
+
4127
+ // Comma and first run
4128
+ if ( !matched || (match = rcomma.exec( soFar )) ) {
4129
+ if ( match ) {
4130
+ // Don't consume trailing commas as valid
4131
+ soFar = soFar.slice( match[0].length ) || soFar;
4132
+ }
4133
+ groups.push( (tokens = []) );
4134
+ }
4135
+
4136
+ matched = false;
4137
+
4138
+ // Combinators
4139
+ if ( (match = rcombinators.exec( soFar )) ) {
4140
+ matched = match.shift();
4141
+ tokens.push({
4142
+ value: matched,
4143
+ // Cast descendant combinators to space
4144
+ type: match[0].replace( rtrim, " " )
4145
+ });
4146
+ soFar = soFar.slice( matched.length );
4147
+ }
4148
+
4149
+ // Filters
4150
+ for ( type in Expr.filter ) {
4151
+ if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
4152
+ (match = preFilters[ type ]( match ))) ) {
4153
+ matched = match.shift();
4154
+ tokens.push({
4155
+ value: matched,
4156
+ type: type,
4157
+ matches: match
4158
+ });
4159
+ soFar = soFar.slice( matched.length );
4160
+ }
4161
+ }
4162
+
4163
+ if ( !matched ) {
4164
+ break;
4165
+ }
4166
+ }
4167
+
4168
+ // Return the length of the invalid excess
4169
+ // if we're just parsing
4170
+ // Otherwise, throw an error or return tokens
4171
+ return parseOnly ?
4172
+ soFar.length :
4173
+ soFar ?
4174
+ Sizzle.error( selector ) :
4175
+ // Cache the tokens
4176
+ tokenCache( selector, groups ).slice( 0 );
4177
+ };
4178
+
4179
+ function toSelector( tokens ) {
4180
+ var i = 0,
4181
+ len = tokens.length,
4182
+ selector = "";
4183
+ for ( ; i < len; i++ ) {
4184
+ selector += tokens[i].value;
4185
+ }
4186
+ return selector;
4187
+ }
4188
+
4189
+ function addCombinator( matcher, combinator, base ) {
4190
+ var dir = combinator.dir,
4191
+ skip = combinator.next,
4192
+ key = skip || dir,
4193
+ checkNonElements = base && key === "parentNode",
4194
+ doneName = done++;
4195
+
4196
+ return combinator.first ?
4197
+ // Check against closest ancestor/preceding element
4198
+ function( elem, context, xml ) {
4199
+ while ( (elem = elem[ dir ]) ) {
4200
+ if ( elem.nodeType === 1 || checkNonElements ) {
4201
+ return matcher( elem, context, xml );
4202
+ }
4203
+ }
4204
+ return false;
4205
+ } :
4206
+
4207
+ // Check against all ancestor/preceding elements
4208
+ function( elem, context, xml ) {
4209
+ var oldCache, uniqueCache, outerCache,
4210
+ newCache = [ dirruns, doneName ];
4211
+
4212
+ // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
4213
+ if ( xml ) {
4214
+ while ( (elem = elem[ dir ]) ) {
4215
+ if ( elem.nodeType === 1 || checkNonElements ) {
4216
+ if ( matcher( elem, context, xml ) ) {
4217
+ return true;
4218
+ }
4219
+ }
4220
+ }
4221
+ } else {
4222
+ while ( (elem = elem[ dir ]) ) {
4223
+ if ( elem.nodeType === 1 || checkNonElements ) {
4224
+ outerCache = elem[ expando ] || (elem[ expando ] = {});
4225
+
4226
+ // Support: IE <9 only
4227
+ // Defend against cloned attroperties (jQuery gh-1709)
4228
+ uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
4229
+
4230
+ if ( skip && skip === elem.nodeName.toLowerCase() ) {
4231
+ elem = elem[ dir ] || elem;
4232
+ } else if ( (oldCache = uniqueCache[ key ]) &&
4233
+ oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
4234
+
4235
+ // Assign to newCache so results back-propagate to previous elements
4236
+ return (newCache[ 2 ] = oldCache[ 2 ]);
4237
+ } else {
4238
+ // Reuse newcache so results back-propagate to previous elements
4239
+ uniqueCache[ key ] = newCache;
4240
+
4241
+ // A match means we're done; a fail means we have to keep checking
4242
+ if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
4243
+ return true;
4244
+ }
4245
+ }
4246
+ }
4247
+ }
4248
+ }
4249
+ return false;
4250
+ };
4251
+ }
4252
+
4253
+ function elementMatcher( matchers ) {
4254
+ return matchers.length > 1 ?
4255
+ function( elem, context, xml ) {
4256
+ var i = matchers.length;
4257
+ while ( i-- ) {
4258
+ if ( !matchers[i]( elem, context, xml ) ) {
4259
+ return false;
4260
+ }
4261
+ }
4262
+ return true;
4263
+ } :
4264
+ matchers[0];
4265
+ }
4266
+
4267
+ function multipleContexts( selector, contexts, results ) {
4268
+ var i = 0,
4269
+ len = contexts.length;
4270
+ for ( ; i < len; i++ ) {
4271
+ Sizzle( selector, contexts[i], results );
4272
+ }
4273
+ return results;
4274
+ }
4275
+
4276
+ function condense( unmatched, map, filter, context, xml ) {
4277
+ var elem,
4278
+ newUnmatched = [],
4279
+ i = 0,
4280
+ len = unmatched.length,
4281
+ mapped = map != null;
4282
+
4283
+ for ( ; i < len; i++ ) {
4284
+ if ( (elem = unmatched[i]) ) {
4285
+ if ( !filter || filter( elem, context, xml ) ) {
4286
+ newUnmatched.push( elem );
4287
+ if ( mapped ) {
4288
+ map.push( i );
4289
+ }
4290
+ }
4291
+ }
4292
+ }
4293
+
4294
+ return newUnmatched;
4295
+ }
4296
+
4297
+ function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
4298
+ if ( postFilter && !postFilter[ expando ] ) {
4299
+ postFilter = setMatcher( postFilter );
4300
+ }
4301
+ if ( postFinder && !postFinder[ expando ] ) {
4302
+ postFinder = setMatcher( postFinder, postSelector );
4303
+ }
4304
+ return markFunction(function( seed, results, context, xml ) {
4305
+ var temp, i, elem,
4306
+ preMap = [],
4307
+ postMap = [],
4308
+ preexisting = results.length,
4309
+
4310
+ // Get initial elements from seed or context
4311
+ elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
4312
+
4313
+ // Prefilter to get matcher input, preserving a map for seed-results synchronization
4314
+ matcherIn = preFilter && ( seed || !selector ) ?
4315
+ condense( elems, preMap, preFilter, context, xml ) :
4316
+ elems,
4317
+
4318
+ matcherOut = matcher ?
4319
+ // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
4320
+ postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
4321
+
4322
+ // ...intermediate processing is necessary
4323
+ [] :
4324
+
4325
+ // ...otherwise use results directly
4326
+ results :
4327
+ matcherIn;
4328
+
4329
+ // Find primary matches
4330
+ if ( matcher ) {
4331
+ matcher( matcherIn, matcherOut, context, xml );
4332
+ }
4333
+
4334
+ // Apply postFilter
4335
+ if ( postFilter ) {
4336
+ temp = condense( matcherOut, postMap );
4337
+ postFilter( temp, [], context, xml );
4338
+
4339
+ // Un-match failing elements by moving them back to matcherIn
4340
+ i = temp.length;
4341
+ while ( i-- ) {
4342
+ if ( (elem = temp[i]) ) {
4343
+ matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
4344
+ }
4345
+ }
4346
+ }
4347
+
4348
+ if ( seed ) {
4349
+ if ( postFinder || preFilter ) {
4350
+ if ( postFinder ) {
4351
+ // Get the final matcherOut by condensing this intermediate into postFinder contexts
4352
+ temp = [];
4353
+ i = matcherOut.length;
4354
+ while ( i-- ) {
4355
+ if ( (elem = matcherOut[i]) ) {
4356
+ // Restore matcherIn since elem is not yet a final match
4357
+ temp.push( (matcherIn[i] = elem) );
4358
+ }
4359
+ }
4360
+ postFinder( null, (matcherOut = []), temp, xml );
4361
+ }
4362
+
4363
+ // Move matched elements from seed to results to keep them synchronized
4364
+ i = matcherOut.length;
4365
+ while ( i-- ) {
4366
+ if ( (elem = matcherOut[i]) &&
4367
+ (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
4368
+
4369
+ seed[temp] = !(results[temp] = elem);
4370
+ }
4371
+ }
4372
+ }
4373
+
4374
+ // Add elements to results, through postFinder if defined
4375
+ } else {
4376
+ matcherOut = condense(
4377
+ matcherOut === results ?
4378
+ matcherOut.splice( preexisting, matcherOut.length ) :
4379
+ matcherOut
4380
+ );
4381
+ if ( postFinder ) {
4382
+ postFinder( null, results, matcherOut, xml );
4383
+ } else {
4384
+ push.apply( results, matcherOut );
4385
+ }
4386
+ }
4387
+ });
4388
+ }
4389
+
4390
+ function matcherFromTokens( tokens ) {
4391
+ var checkContext, matcher, j,
4392
+ len = tokens.length,
4393
+ leadingRelative = Expr.relative[ tokens[0].type ],
4394
+ implicitRelative = leadingRelative || Expr.relative[" "],
4395
+ i = leadingRelative ? 1 : 0,
4396
+
4397
+ // The foundational matcher ensures that elements are reachable from top-level context(s)
4398
+ matchContext = addCombinator( function( elem ) {
4399
+ return elem === checkContext;
4400
+ }, implicitRelative, true ),
4401
+ matchAnyContext = addCombinator( function( elem ) {
4402
+ return indexOf( checkContext, elem ) > -1;
4403
+ }, implicitRelative, true ),
4404
+ matchers = [ function( elem, context, xml ) {
4405
+ var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
4406
+ (checkContext = context).nodeType ?
4407
+ matchContext( elem, context, xml ) :
4408
+ matchAnyContext( elem, context, xml ) );
4409
+ // Avoid hanging onto element (issue #299)
4410
+ checkContext = null;
4411
+ return ret;
4412
+ } ];
4413
+
4414
+ for ( ; i < len; i++ ) {
4415
+ if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
4416
+ matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
4417
+ } else {
4418
+ matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
4419
+
4420
+ // Return special upon seeing a positional matcher
4421
+ if ( matcher[ expando ] ) {
4422
+ // Find the next relative operator (if any) for proper handling
4423
+ j = ++i;
4424
+ for ( ; j < len; j++ ) {
4425
+ if ( Expr.relative[ tokens[j].type ] ) {
4426
+ break;
4427
+ }
4428
+ }
4429
+ return setMatcher(
4430
+ i > 1 && elementMatcher( matchers ),
4431
+ i > 1 && toSelector(
4432
+ // If the preceding token was a descendant combinator, insert an implicit any-element `*`
4433
+ tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
4434
+ ).replace( rtrim, "$1" ),
4435
+ matcher,
4436
+ i < j && matcherFromTokens( tokens.slice( i, j ) ),
4437
+ j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
4438
+ j < len && toSelector( tokens )
4439
+ );
4440
+ }
4441
+ matchers.push( matcher );
4442
+ }
4443
+ }
4444
+
4445
+ return elementMatcher( matchers );
4446
+ }
4447
+
4448
+ function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
4449
+ var bySet = setMatchers.length > 0,
4450
+ byElement = elementMatchers.length > 0,
4451
+ superMatcher = function( seed, context, xml, results, outermost ) {
4452
+ var elem, j, matcher,
4453
+ matchedCount = 0,
4454
+ i = "0",
4455
+ unmatched = seed && [],
4456
+ setMatched = [],
4457
+ contextBackup = outermostContext,
4458
+ // We must always have either seed elements or outermost context
4459
+ elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
4460
+ // Use integer dirruns iff this is the outermost matcher
4461
+ dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
4462
+ len = elems.length;
4463
+
4464
+ if ( outermost ) {
4465
+ outermostContext = context === document || context || outermost;
4466
+ }
4467
+
4468
+ // Add elements passing elementMatchers directly to results
4469
+ // Support: IE<9, Safari
4470
+ // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
4471
+ for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
4472
+ if ( byElement && elem ) {
4473
+ j = 0;
4474
+ if ( !context && elem.ownerDocument !== document ) {
4475
+ setDocument( elem );
4476
+ xml = !documentIsHTML;
4477
+ }
4478
+ while ( (matcher = elementMatchers[j++]) ) {
4479
+ if ( matcher( elem, context || document, xml) ) {
4480
+ results.push( elem );
4481
+ break;
4482
+ }
4483
+ }
4484
+ if ( outermost ) {
4485
+ dirruns = dirrunsUnique;
4486
+ }
4487
+ }
4488
+
4489
+ // Track unmatched elements for set filters
4490
+ if ( bySet ) {
4491
+ // They will have gone through all possible matchers
4492
+ if ( (elem = !matcher && elem) ) {
4493
+ matchedCount--;
4494
+ }
4495
+
4496
+ // Lengthen the array for every element, matched or not
4497
+ if ( seed ) {
4498
+ unmatched.push( elem );
4499
+ }
4500
+ }
4501
+ }
4502
+
4503
+ // `i` is now the count of elements visited above, and adding it to `matchedCount`
4504
+ // makes the latter nonnegative.
4505
+ matchedCount += i;
4506
+
4507
+ // Apply set filters to unmatched elements
4508
+ // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
4509
+ // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
4510
+ // no element matchers and no seed.
4511
+ // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
4512
+ // case, which will result in a "00" `matchedCount` that differs from `i` but is also
4513
+ // numerically zero.
4514
+ if ( bySet && i !== matchedCount ) {
4515
+ j = 0;
4516
+ while ( (matcher = setMatchers[j++]) ) {
4517
+ matcher( unmatched, setMatched, context, xml );
4518
+ }
4519
+
4520
+ if ( seed ) {
4521
+ // Reintegrate element matches to eliminate the need for sorting
4522
+ if ( matchedCount > 0 ) {
4523
+ while ( i-- ) {
4524
+ if ( !(unmatched[i] || setMatched[i]) ) {
4525
+ setMatched[i] = pop.call( results );
4526
+ }
4527
+ }
4528
+ }
4529
+
4530
+ // Discard index placeholder values to get only actual matches
4531
+ setMatched = condense( setMatched );
4532
+ }
4533
+
4534
+ // Add matches to results
4535
+ push.apply( results, setMatched );
4536
+
4537
+ // Seedless set matches succeeding multiple successful matchers stipulate sorting
4538
+ if ( outermost && !seed && setMatched.length > 0 &&
4539
+ ( matchedCount + setMatchers.length ) > 1 ) {
4540
+
4541
+ Sizzle.uniqueSort( results );
4542
+ }
4543
+ }
4544
+
4545
+ // Override manipulation of globals by nested matchers
4546
+ if ( outermost ) {
4547
+ dirruns = dirrunsUnique;
4548
+ outermostContext = contextBackup;
4549
+ }
4550
+
4551
+ return unmatched;
4552
+ };
4553
+
4554
+ return bySet ?
4555
+ markFunction( superMatcher ) :
4556
+ superMatcher;
4557
+ }
4558
+
4559
+ compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
4560
+ var i,
4561
+ setMatchers = [],
4562
+ elementMatchers = [],
4563
+ cached = compilerCache[ selector + " " ];
4564
+
4565
+ if ( !cached ) {
4566
+ // Generate a function of recursive functions that can be used to check each element
4567
+ if ( !match ) {
4568
+ match = tokenize( selector );
4569
+ }
4570
+ i = match.length;
4571
+ while ( i-- ) {
4572
+ cached = matcherFromTokens( match[i] );
4573
+ if ( cached[ expando ] ) {
4574
+ setMatchers.push( cached );
4575
+ } else {
4576
+ elementMatchers.push( cached );
4577
+ }
4578
+ }
4579
+
4580
+ // Cache the compiled function
4581
+ cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
4582
+
4583
+ // Save selector and tokenization
4584
+ cached.selector = selector;
4585
+ }
4586
+ return cached;
4587
+ };
4588
+
4589
+ /**
4590
+ * A low-level selection function that works with Sizzle's compiled
4591
+ * selector functions
4592
+ * @param {String|Function} selector A selector or a pre-compiled
4593
+ * selector function built with Sizzle.compile
4594
+ * @param {Element} context
4595
+ * @param {Array} [results]
4596
+ * @param {Array} [seed] A set of elements to match against
4597
+ */
4598
+ select = Sizzle.select = function( selector, context, results, seed ) {
4599
+ var i, tokens, token, type, find,
4600
+ compiled = typeof selector === "function" && selector,
4601
+ match = !seed && tokenize( (selector = compiled.selector || selector) );
4602
+
4603
+ results = results || [];
4604
+
4605
+ // Try to minimize operations if there is only one selector in the list and no seed
4606
+ // (the latter of which guarantees us context)
4607
+ if ( match.length === 1 ) {
4608
+
4609
+ // Reduce context if the leading compound selector is an ID
4610
+ tokens = match[0] = match[0].slice( 0 );
4611
+ if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
4612
+ context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {
4613
+
4614
+ context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
4615
+ if ( !context ) {
4616
+ return results;
4617
+
4618
+ // Precompiled matchers will still verify ancestry, so step up a level
4619
+ } else if ( compiled ) {
4620
+ context = context.parentNode;
4621
+ }
4622
+
4623
+ selector = selector.slice( tokens.shift().value.length );
4624
+ }
4625
+
4626
+ // Fetch a seed set for right-to-left matching
4627
+ i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
4628
+ while ( i-- ) {
4629
+ token = tokens[i];
4630
+
4631
+ // Abort if we hit a combinator
4632
+ if ( Expr.relative[ (type = token.type) ] ) {
4633
+ break;
4634
+ }
4635
+ if ( (find = Expr.find[ type ]) ) {
4636
+ // Search, expanding context for leading sibling combinators
4637
+ if ( (seed = find(
4638
+ token.matches[0].replace( runescape, funescape ),
4639
+ rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
4640
+ )) ) {
4641
+
4642
+ // If seed is empty or no tokens remain, we can return early
4643
+ tokens.splice( i, 1 );
4644
+ selector = seed.length && toSelector( tokens );
4645
+ if ( !selector ) {
4646
+ push.apply( results, seed );
4647
+ return results;
4648
+ }
4649
+
4650
+ break;
4651
+ }
4652
+ }
4653
+ }
4654
+ }
4655
+
4656
+ // Compile and execute a filtering function if one is not provided
4657
+ // Provide `match` to avoid retokenization if we modified the selector above
4658
+ ( compiled || compile( selector, match ) )(
4659
+ seed,
4660
+ context,
4661
+ !documentIsHTML,
4662
+ results,
4663
+ !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
4664
+ );
4665
+ return results;
4666
+ };
4667
+
4668
+ // One-time assignments
4669
+
4670
+ // Sort stability
4671
+ support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
4672
+
4673
+ // Support: Chrome 14-35+
4674
+ // Always assume duplicates if they aren't passed to the comparison function
4675
+ support.detectDuplicates = !!hasDuplicate;
4676
+
4677
+ // Initialize against the default document
4678
+ setDocument();
4679
+
4680
+ // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
4681
+ // Detached nodes confoundingly follow *each other*
4682
+ support.sortDetached = assert(function( el ) {
4683
+ // Should return 1, but returns 4 (following)
4684
+ return el.compareDocumentPosition( document.createElement("fieldset") ) & 1;
4685
+ });
4686
+
4687
+ // Support: IE<8
4688
+ // Prevent attribute/property "interpolation"
4689
+ // https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
4690
+ if ( !assert(function( el ) {
4691
+ el.innerHTML = "<a href='#'></a>";
4692
+ return el.firstChild.getAttribute("href") === "#" ;
4693
+ }) ) {
4694
+ addHandle( "type|href|height|width", function( elem, name, isXML ) {
4695
+ if ( !isXML ) {
4696
+ return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
4697
+ }
4698
+ });
4699
+ }
4700
+
4701
+ // Support: IE<9
4702
+ // Use defaultValue in place of getAttribute("value")
4703
+ if ( !support.attributes || !assert(function( el ) {
4704
+ el.innerHTML = "<input/>";
4705
+ el.firstChild.setAttribute( "value", "" );
4706
+ return el.firstChild.getAttribute( "value" ) === "";
4707
+ }) ) {
4708
+ addHandle( "value", function( elem, name, isXML ) {
4709
+ if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
4710
+ return elem.defaultValue;
4711
+ }
4712
+ });
4713
+ }
4714
+
4715
+ // Support: IE<9
4716
+ // Use getAttributeNode to fetch booleans when getAttribute lies
4717
+ if ( !assert(function( el ) {
4718
+ return el.getAttribute("disabled") == null;
4719
+ }) ) {
4720
+ addHandle( booleans, function( elem, name, isXML ) {
4721
+ var val;
4722
+ if ( !isXML ) {
4723
+ return elem[ name ] === true ? name.toLowerCase() :
4724
+ (val = elem.getAttributeNode( name )) && val.specified ?
4725
+ val.value :
4726
+ null;
4727
+ }
4728
+ });
4729
+ }
4730
+
4731
+ return Sizzle;
4732
+
4733
+ })( window );
4734
+
4735
+
4736
+
4737
+ jQuery.find = Sizzle;
4738
+ jQuery.expr = Sizzle.selectors;
4739
+
4740
+ // Deprecated
4741
+ jQuery.expr[ ":" ] = jQuery.expr.pseudos;
4742
+ jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
4743
+ jQuery.text = Sizzle.getText;
4744
+ jQuery.isXMLDoc = Sizzle.isXML;
4745
+ jQuery.contains = Sizzle.contains;
4746
+ jQuery.escapeSelector = Sizzle.escape;
4747
+
4748
+
4749
+
4750
+
4751
+ var dir = function( elem, dir, until ) {
4752
+ var matched = [],
4753
+ truncate = until !== undefined;
4754
+
4755
+ while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
4756
+ if ( elem.nodeType === 1 ) {
4757
+ if ( truncate && jQuery( elem ).is( until ) ) {
4758
+ break;
4759
+ }
4760
+ matched.push( elem );
4761
+ }
4762
+ }
4763
+ return matched;
4764
+ };
4765
+
4766
+
4767
+ var siblings = function( n, elem ) {
4768
+ var matched = [];
4769
+
4770
+ for ( ; n; n = n.nextSibling ) {
4771
+ if ( n.nodeType === 1 && n !== elem ) {
4772
+ matched.push( n );
4773
+ }
4774
+ }
4775
+
4776
+ return matched;
4777
+ };
4778
+
4779
+
4780
+ var rneedsContext = jQuery.expr.match.needsContext;
4781
+
4782
+ var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
4783
+
4784
+
4785
+
4786
+ var risSimple = /^.[^:#\[\.,]*$/;
4787
+
4788
+ // Implement the identical functionality for filter and not
4789
+ function winnow( elements, qualifier, not ) {
4790
+ if ( jQuery.isFunction( qualifier ) ) {
4791
+ return jQuery.grep( elements, function( elem, i ) {
4792
+ return !!qualifier.call( elem, i, elem ) !== not;
4793
+ } );
4794
+ }
4795
+
4796
+ // Single element
4797
+ if ( qualifier.nodeType ) {
4798
+ return jQuery.grep( elements, function( elem ) {
4799
+ return ( elem === qualifier ) !== not;
4800
+ } );
4801
+ }
4802
+
4803
+ // Arraylike of elements (jQuery, arguments, Array)
4804
+ if ( typeof qualifier !== "string" ) {
4805
+ return jQuery.grep( elements, function( elem ) {
4806
+ return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
4807
+ } );
4808
+ }
4809
+
4810
+ // Simple selector that can be filtered directly, removing non-Elements
4811
+ if ( risSimple.test( qualifier ) ) {
4812
+ return jQuery.filter( qualifier, elements, not );
4813
+ }
4814
+
4815
+ // Complex selector, compare the two sets, removing non-Elements
4816
+ qualifier = jQuery.filter( qualifier, elements );
4817
+ return jQuery.grep( elements, function( elem ) {
4818
+ return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;
4819
+ } );
4820
+ }
4821
+
4822
+ jQuery.filter = function( expr, elems, not ) {
4823
+ var elem = elems[ 0 ];
4824
+
4825
+ if ( not ) {
4826
+ expr = ":not(" + expr + ")";
4827
+ }
4828
+
4829
+ if ( elems.length === 1 && elem.nodeType === 1 ) {
4830
+ return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
4831
+ }
4832
+
4833
+ return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
4834
+ return elem.nodeType === 1;
4835
+ } ) );
4836
+ };
4837
+
4838
+ jQuery.fn.extend( {
4839
+ find: function( selector ) {
4840
+ var i, ret,
4841
+ len = this.length,
4842
+ self = this;
4843
+
4844
+ if ( typeof selector !== "string" ) {
4845
+ return this.pushStack( jQuery( selector ).filter( function() {
4846
+ for ( i = 0; i < len; i++ ) {
4847
+ if ( jQuery.contains( self[ i ], this ) ) {
4848
+ return true;
4849
+ }
4850
+ }
4851
+ } ) );
4852
+ }
4853
+
4854
+ ret = this.pushStack( [] );
4855
+
4856
+ for ( i = 0; i < len; i++ ) {
4857
+ jQuery.find( selector, self[ i ], ret );
4858
+ }
4859
+
4860
+ return len > 1 ? jQuery.uniqueSort( ret ) : ret;
4861
+ },
4862
+ filter: function( selector ) {
4863
+ return this.pushStack( winnow( this, selector || [], false ) );
4864
+ },
4865
+ not: function( selector ) {
4866
+ return this.pushStack( winnow( this, selector || [], true ) );
4867
+ },
4868
+ is: function( selector ) {
4869
+ return !!winnow(
4870
+ this,
4871
+
4872
+ // If this is a positional/relative selector, check membership in the returned set
4873
+ // so $("p:first").is("p:last") won't return true for a doc with two "p".
4874
+ typeof selector === "string" && rneedsContext.test( selector ) ?
4875
+ jQuery( selector ) :
4876
+ selector || [],
4877
+ false
4878
+ ).length;
4879
+ }
4880
+ } );
4881
+
4882
+
4883
+ // Initialize a jQuery object
4884
+
4885
+
4886
+ // A central reference to the root jQuery(document)
4887
+ var rootjQuery,
4888
+
4889
+ // A simple way to check for HTML strings
4890
+ // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
4891
+ // Strict HTML recognition (#11290: must start with <)
4892
+ // Shortcut simple #id case for speed
4893
+ rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
4894
+
4895
+ init = jQuery.fn.init = function( selector, context, root ) {
4896
+ var match, elem;
4897
+
4898
+ // HANDLE: $(""), $(null), $(undefined), $(false)
4899
+ if ( !selector ) {
4900
+ return this;
4901
+ }
4902
+
4903
+ // Method init() accepts an alternate rootjQuery
4904
+ // so migrate can support jQuery.sub (gh-2101)
4905
+ root = root || rootjQuery;
4906
+
4907
+ // Handle HTML strings
4908
+ if ( typeof selector === "string" ) {
4909
+ if ( selector[ 0 ] === "<" &&
4910
+ selector[ selector.length - 1 ] === ">" &&
4911
+ selector.length >= 3 ) {
4912
+
4913
+ // Assume that strings that start and end with <> are HTML and skip the regex check
4914
+ match = [ null, selector, null ];
4915
+
4916
+ } else {
4917
+ match = rquickExpr.exec( selector );
4918
+ }
4919
+
4920
+ // Match html or make sure no context is specified for #id
4921
+ if ( match && ( match[ 1 ] || !context ) ) {
4922
+
4923
+ // HANDLE: $(html) -> $(array)
4924
+ if ( match[ 1 ] ) {
4925
+ context = context instanceof jQuery ? context[ 0 ] : context;
4926
+
4927
+ // Option to run scripts is true for back-compat
4928
+ // Intentionally let the error be thrown if parseHTML is not present
4929
+ jQuery.merge( this, jQuery.parseHTML(
4930
+ match[ 1 ],
4931
+ context && context.nodeType ? context.ownerDocument || context : document,
4932
+ true
4933
+ ) );
4934
+
4935
+ // HANDLE: $(html, props)
4936
+ if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
4937
+ for ( match in context ) {
4938
+
4939
+ // Properties of context are called as methods if possible
4940
+ if ( jQuery.isFunction( this[ match ] ) ) {
4941
+ this[ match ]( context[ match ] );
4942
+
4943
+ // ...and otherwise set as attributes
4944
+ } else {
4945
+ this.attr( match, context[ match ] );
4946
+ }
4947
+ }
4948
+ }
4949
+
4950
+ return this;
4951
+
4952
+ // HANDLE: $(#id)
4953
+ } else {
4954
+ elem = document.getElementById( match[ 2 ] );
4955
+
4956
+ if ( elem ) {
4957
+
4958
+ // Inject the element directly into the jQuery object
4959
+ this[ 0 ] = elem;
4960
+ this.length = 1;
4961
+ }
4962
+ return this;
4963
+ }
4964
+
4965
+ // HANDLE: $(expr, $(...))
4966
+ } else if ( !context || context.jquery ) {
4967
+ return ( context || root ).find( selector );
4968
+
4969
+ // HANDLE: $(expr, context)
4970
+ // (which is just equivalent to: $(context).find(expr)
4971
+ } else {
4972
+ return this.constructor( context ).find( selector );
4973
+ }
4974
+
4975
+ // HANDLE: $(DOMElement)
4976
+ } else if ( selector.nodeType ) {
4977
+ this[ 0 ] = selector;
4978
+ this.length = 1;
4979
+ return this;
4980
+
4981
+ // HANDLE: $(function)
4982
+ // Shortcut for document ready
4983
+ } else if ( jQuery.isFunction( selector ) ) {
4984
+ return root.ready !== undefined ?
4985
+ root.ready( selector ) :
4986
+
4987
+ // Execute immediately if ready is not present
4988
+ selector( jQuery );
4989
+ }
4990
+
4991
+ return jQuery.makeArray( selector, this );
4992
+ };
4993
+
4994
+ // Give the init function the jQuery prototype for later instantiation
4995
+ init.prototype = jQuery.fn;
4996
+
4997
+ // Initialize central reference
4998
+ rootjQuery = jQuery( document );
4999
+
5000
+
5001
+ var rparentsprev = /^(?:parents|prev(?:Until|All))/,
5002
+
5003
+ // Methods guaranteed to produce a unique set when starting from a unique set
5004
+ guaranteedUnique = {
5005
+ children: true,
5006
+ contents: true,
5007
+ next: true,
5008
+ prev: true
5009
+ };
5010
+
5011
+ jQuery.fn.extend( {
5012
+ has: function( target ) {
5013
+ var targets = jQuery( target, this ),
5014
+ l = targets.length;
5015
+
5016
+ return this.filter( function() {
5017
+ var i = 0;
5018
+ for ( ; i < l; i++ ) {
5019
+ if ( jQuery.contains( this, targets[ i ] ) ) {
5020
+ return true;
5021
+ }
5022
+ }
5023
+ } );
5024
+ },
5025
+
5026
+ closest: function( selectors, context ) {
5027
+ var cur,
5028
+ i = 0,
5029
+ l = this.length,
5030
+ matched = [],
5031
+ targets = typeof selectors !== "string" && jQuery( selectors );
5032
+
5033
+ // Positional selectors never match, since there's no _selection_ context
5034
+ if ( !rneedsContext.test( selectors ) ) {
5035
+ for ( ; i < l; i++ ) {
5036
+ for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
5037
+
5038
+ // Always skip document fragments
5039
+ if ( cur.nodeType < 11 && ( targets ?
5040
+ targets.index( cur ) > -1 :
5041
+
5042
+ // Don't pass non-elements to Sizzle
5043
+ cur.nodeType === 1 &&
5044
+ jQuery.find.matchesSelector( cur, selectors ) ) ) {
5045
+
5046
+ matched.push( cur );
5047
+ break;
5048
+ }
5049
+ }
5050
+ }
5051
+ }
5052
+
5053
+ return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
5054
+ },
5055
+
5056
+ // Determine the position of an element within the set
5057
+ index: function( elem ) {
5058
+
5059
+ // No argument, return index in parent
5060
+ if ( !elem ) {
5061
+ return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
5062
+ }
5063
+
5064
+ // Index in selector
5065
+ if ( typeof elem === "string" ) {
5066
+ return indexOf.call( jQuery( elem ), this[ 0 ] );
5067
+ }
5068
+
5069
+ // Locate the position of the desired element
5070
+ return indexOf.call( this,
5071
+
5072
+ // If it receives a jQuery object, the first element is used
5073
+ elem.jquery ? elem[ 0 ] : elem
5074
+ );
5075
+ },
5076
+
5077
+ add: function( selector, context ) {
5078
+ return this.pushStack(
5079
+ jQuery.uniqueSort(
5080
+ jQuery.merge( this.get(), jQuery( selector, context ) )
5081
+ )
5082
+ );
5083
+ },
5084
+
5085
+ addBack: function( selector ) {
5086
+ return this.add( selector == null ?
5087
+ this.prevObject : this.prevObject.filter( selector )
5088
+ );
5089
+ }
5090
+ } );
5091
+
5092
+ function sibling( cur, dir ) {
5093
+ while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
5094
+ return cur;
5095
+ }
5096
+
5097
+ jQuery.each( {
5098
+ parent: function( elem ) {
5099
+ var parent = elem.parentNode;
5100
+ return parent && parent.nodeType !== 11 ? parent : null;
5101
+ },
5102
+ parents: function( elem ) {
5103
+ return dir( elem, "parentNode" );
5104
+ },
5105
+ parentsUntil: function( elem, i, until ) {
5106
+ return dir( elem, "parentNode", until );
5107
+ },
5108
+ next: function( elem ) {
5109
+ return sibling( elem, "nextSibling" );
5110
+ },
5111
+ prev: function( elem ) {
5112
+ return sibling( elem, "previousSibling" );
5113
+ },
5114
+ nextAll: function( elem ) {
5115
+ return dir( elem, "nextSibling" );
5116
+ },
5117
+ prevAll: function( elem ) {
5118
+ return dir( elem, "previousSibling" );
5119
+ },
5120
+ nextUntil: function( elem, i, until ) {
5121
+ return dir( elem, "nextSibling", until );
5122
+ },
5123
+ prevUntil: function( elem, i, until ) {
5124
+ return dir( elem, "previousSibling", until );
5125
+ },
5126
+ siblings: function( elem ) {
5127
+ return siblings( ( elem.parentNode || {} ).firstChild, elem );
5128
+ },
5129
+ children: function( elem ) {
5130
+ return siblings( elem.firstChild );
5131
+ },
5132
+ contents: function( elem ) {
5133
+ return elem.contentDocument || jQuery.merge( [], elem.childNodes );
5134
+ }
5135
+ }, function( name, fn ) {
5136
+ jQuery.fn[ name ] = function( until, selector ) {
5137
+ var matched = jQuery.map( this, fn, until );
5138
+
5139
+ if ( name.slice( -5 ) !== "Until" ) {
5140
+ selector = until;
5141
+ }
5142
+
5143
+ if ( selector && typeof selector === "string" ) {
5144
+ matched = jQuery.filter( selector, matched );
5145
+ }
5146
+
5147
+ if ( this.length > 1 ) {
5148
+
5149
+ // Remove duplicates
5150
+ if ( !guaranteedUnique[ name ] ) {
5151
+ jQuery.uniqueSort( matched );
5152
+ }
5153
+
5154
+ // Reverse order for parents* and prev-derivatives
5155
+ if ( rparentsprev.test( name ) ) {
5156
+ matched.reverse();
5157
+ }
5158
+ }
5159
+
5160
+ return this.pushStack( matched );
5161
+ };
5162
+ } );
5163
+ var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g );
5164
+
5165
+
5166
+
5167
+ // Convert String-formatted options into Object-formatted ones
5168
+ function createOptions( options ) {
5169
+ var object = {};
5170
+ jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
5171
+ object[ flag ] = true;
5172
+ } );
5173
+ return object;
5174
+ }
5175
+
5176
+ /*
5177
+ * Create a callback list using the following parameters:
5178
+ *
5179
+ * options: an optional list of space-separated options that will change how
5180
+ * the callback list behaves or a more traditional option object
5181
+ *
5182
+ * By default a callback list will act like an event callback list and can be
5183
+ * "fired" multiple times.
5184
+ *
5185
+ * Possible options:
5186
+ *
5187
+ * once: will ensure the callback list can only be fired once (like a Deferred)
5188
+ *
5189
+ * memory: will keep track of previous values and will call any callback added
5190
+ * after the list has been fired right away with the latest "memorized"
5191
+ * values (like a Deferred)
5192
+ *
5193
+ * unique: will ensure a callback can only be added once (no duplicate in the list)
5194
+ *
5195
+ * stopOnFalse: interrupt callings when a callback returns false
5196
+ *
5197
+ */
5198
+ jQuery.Callbacks = function( options ) {
5199
+
5200
+ // Convert options from String-formatted to Object-formatted if needed
5201
+ // (we check in cache first)
5202
+ options = typeof options === "string" ?
5203
+ createOptions( options ) :
5204
+ jQuery.extend( {}, options );
5205
+
5206
+ var // Flag to know if list is currently firing
5207
+ firing,
5208
+
5209
+ // Last fire value for non-forgettable lists
5210
+ memory,
5211
+
5212
+ // Flag to know if list was already fired
5213
+ fired,
5214
+
5215
+ // Flag to prevent firing
5216
+ locked,
5217
+
5218
+ // Actual callback list
5219
+ list = [],
5220
+
5221
+ // Queue of execution data for repeatable lists
5222
+ queue = [],
5223
+
5224
+ // Index of currently firing callback (modified by add/remove as needed)
5225
+ firingIndex = -1,
5226
+
5227
+ // Fire callbacks
5228
+ fire = function() {
5229
+
5230
+ // Enforce single-firing
5231
+ locked = options.once;
5232
+
5233
+ // Execute callbacks for all pending executions,
5234
+ // respecting firingIndex overrides and runtime changes
5235
+ fired = firing = true;
5236
+ for ( ; queue.length; firingIndex = -1 ) {
5237
+ memory = queue.shift();
5238
+ while ( ++firingIndex < list.length ) {
5239
+
5240
+ // Run callback and check for early termination
5241
+ if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
5242
+ options.stopOnFalse ) {
5243
+
5244
+ // Jump to end and forget the data so .add doesn't re-fire
5245
+ firingIndex = list.length;
5246
+ memory = false;
5247
+ }
5248
+ }
5249
+ }
5250
+
5251
+ // Forget the data if we're done with it
5252
+ if ( !options.memory ) {
5253
+ memory = false;
5254
+ }
5255
+
5256
+ firing = false;
5257
+
5258
+ // Clean up if we're done firing for good
5259
+ if ( locked ) {
5260
+
5261
+ // Keep an empty list if we have data for future add calls
5262
+ if ( memory ) {
5263
+ list = [];
5264
+
5265
+ // Otherwise, this object is spent
5266
+ } else {
5267
+ list = "";
5268
+ }
5269
+ }
5270
+ },
5271
+
5272
+ // Actual Callbacks object
5273
+ self = {
5274
+
5275
+ // Add a callback or a collection of callbacks to the list
5276
+ add: function() {
5277
+ if ( list ) {
5278
+
5279
+ // If we have memory from a past run, we should fire after adding
5280
+ if ( memory && !firing ) {
5281
+ firingIndex = list.length - 1;
5282
+ queue.push( memory );
5283
+ }
5284
+
5285
+ ( function add( args ) {
5286
+ jQuery.each( args, function( _, arg ) {
5287
+ if ( jQuery.isFunction( arg ) ) {
5288
+ if ( !options.unique || !self.has( arg ) ) {
5289
+ list.push( arg );
5290
+ }
5291
+ } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
5292
+
5293
+ // Inspect recursively
5294
+ add( arg );
5295
+ }
5296
+ } );
5297
+ } )( arguments );
5298
+
5299
+ if ( memory && !firing ) {
5300
+ fire();
5301
+ }
5302
+ }
5303
+ return this;
5304
+ },
5305
+
5306
+ // Remove a callback from the list
5307
+ remove: function() {
5308
+ jQuery.each( arguments, function( _, arg ) {
5309
+ var index;
5310
+ while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
5311
+ list.splice( index, 1 );
5312
+
5313
+ // Handle firing indexes
5314
+ if ( index <= firingIndex ) {
5315
+ firingIndex--;
5316
+ }
5317
+ }
5318
+ } );
5319
+ return this;
5320
+ },
5321
+
5322
+ // Check if a given callback is in the list.
5323
+ // If no argument is given, return whether or not list has callbacks attached.
5324
+ has: function( fn ) {
5325
+ return fn ?
5326
+ jQuery.inArray( fn, list ) > -1 :
5327
+ list.length > 0;
5328
+ },
5329
+
5330
+ // Remove all callbacks from the list
5331
+ empty: function() {
5332
+ if ( list ) {
5333
+ list = [];
5334
+ }
5335
+ return this;
5336
+ },
5337
+
5338
+ // Disable .fire and .add
5339
+ // Abort any current/pending executions
5340
+ // Clear all callbacks and values
5341
+ disable: function() {
5342
+ locked = queue = [];
5343
+ list = memory = "";
5344
+ return this;
5345
+ },
5346
+ disabled: function() {
5347
+ return !list;
5348
+ },
5349
+
5350
+ // Disable .fire
5351
+ // Also disable .add unless we have memory (since it would have no effect)
5352
+ // Abort any pending executions
5353
+ lock: function() {
5354
+ locked = queue = [];
5355
+ if ( !memory && !firing ) {
5356
+ list = memory = "";
5357
+ }
5358
+ return this;
5359
+ },
5360
+ locked: function() {
5361
+ return !!locked;
5362
+ },
5363
+
5364
+ // Call all callbacks with the given context and arguments
5365
+ fireWith: function( context, args ) {
5366
+ if ( !locked ) {
5367
+ args = args || [];
5368
+ args = [ context, args.slice ? args.slice() : args ];
5369
+ queue.push( args );
5370
+ if ( !firing ) {
5371
+ fire();
5372
+ }
5373
+ }
5374
+ return this;
5375
+ },
5376
+
5377
+ // Call all the callbacks with the given arguments
5378
+ fire: function() {
5379
+ self.fireWith( this, arguments );
5380
+ return this;
5381
+ },
5382
+
5383
+ // To know if the callbacks have already been called at least once
5384
+ fired: function() {
5385
+ return !!fired;
5386
+ }
5387
+ };
5388
+
5389
+ return self;
5390
+ };
5391
+
5392
+
5393
+ function Identity( v ) {
5394
+ return v;
5395
+ }
5396
+ function Thrower( ex ) {
5397
+ throw ex;
5398
+ }
5399
+
5400
+ function adoptValue( value, resolve, reject ) {
5401
+ var method;
5402
+
5403
+ try {
5404
+
5405
+ // Check for promise aspect first to privilege synchronous behavior
5406
+ if ( value && jQuery.isFunction( ( method = value.promise ) ) ) {
5407
+ method.call( value ).done( resolve ).fail( reject );
5408
+
5409
+ // Other thenables
5410
+ } else if ( value && jQuery.isFunction( ( method = value.then ) ) ) {
5411
+ method.call( value, resolve, reject );
5412
+
5413
+ // Other non-thenables
5414
+ } else {
5415
+
5416
+ // Support: Android 4.0 only
5417
+ // Strict mode functions invoked without .call/.apply get global-object context
5418
+ resolve.call( undefined, value );
5419
+ }
5420
+
5421
+ // For Promises/A+, convert exceptions into rejections
5422
+ // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
5423
+ // Deferred#then to conditionally suppress rejection.
5424
+ } catch ( value ) {
5425
+
5426
+ // Support: Android 4.0 only
5427
+ // Strict mode functions invoked without .call/.apply get global-object context
5428
+ reject.call( undefined, value );
5429
+ }
5430
+ }
5431
+
5432
+ jQuery.extend( {
5433
+
5434
+ Deferred: function( func ) {
5435
+ var tuples = [
5436
+
5437
+ // action, add listener, callbacks,
5438
+ // ... .then handlers, argument index, [final state]
5439
+ [ "notify", "progress", jQuery.Callbacks( "memory" ),
5440
+ jQuery.Callbacks( "memory" ), 2 ],
5441
+ [ "resolve", "done", jQuery.Callbacks( "once memory" ),
5442
+ jQuery.Callbacks( "once memory" ), 0, "resolved" ],
5443
+ [ "reject", "fail", jQuery.Callbacks( "once memory" ),
5444
+ jQuery.Callbacks( "once memory" ), 1, "rejected" ]
5445
+ ],
5446
+ state = "pending",
5447
+ promise = {
5448
+ state: function() {
5449
+ return state;
5450
+ },
5451
+ always: function() {
5452
+ deferred.done( arguments ).fail( arguments );
5453
+ return this;
5454
+ },
5455
+ "catch": function( fn ) {
5456
+ return promise.then( null, fn );
5457
+ },
5458
+
5459
+ // Keep pipe for back-compat
5460
+ pipe: function( /* fnDone, fnFail, fnProgress */ ) {
5461
+ var fns = arguments;
5462
+
5463
+ return jQuery.Deferred( function( newDefer ) {
5464
+ jQuery.each( tuples, function( i, tuple ) {
5465
+
5466
+ // Map tuples (progress, done, fail) to arguments (done, fail, progress)
5467
+ var fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
5468
+
5469
+ // deferred.progress(function() { bind to newDefer or newDefer.notify })
5470
+ // deferred.done(function() { bind to newDefer or newDefer.resolve })
5471
+ // deferred.fail(function() { bind to newDefer or newDefer.reject })
5472
+ deferred[ tuple[ 1 ] ]( function() {
5473
+ var returned = fn && fn.apply( this, arguments );
5474
+ if ( returned && jQuery.isFunction( returned.promise ) ) {
5475
+ returned.promise()
5476
+ .progress( newDefer.notify )
5477
+ .done( newDefer.resolve )
5478
+ .fail( newDefer.reject );
5479
+ } else {
5480
+ newDefer[ tuple[ 0 ] + "With" ](
5481
+ this,
5482
+ fn ? [ returned ] : arguments
5483
+ );
5484
+ }
5485
+ } );
5486
+ } );
5487
+ fns = null;
5488
+ } ).promise();
5489
+ },
5490
+ then: function( onFulfilled, onRejected, onProgress ) {
5491
+ var maxDepth = 0;
5492
+ function resolve( depth, deferred, handler, special ) {
5493
+ return function() {
5494
+ var that = this,
5495
+ args = arguments,
5496
+ mightThrow = function() {
5497
+ var returned, then;
5498
+
5499
+ // Support: Promises/A+ section 2.3.3.3.3
5500
+ // https://promisesaplus.com/#point-59
5501
+ // Ignore double-resolution attempts
5502
+ if ( depth < maxDepth ) {
5503
+ return;
5504
+ }
5505
+
5506
+ returned = handler.apply( that, args );
5507
+
5508
+ // Support: Promises/A+ section 2.3.1
5509
+ // https://promisesaplus.com/#point-48
5510
+ if ( returned === deferred.promise() ) {
5511
+ throw new TypeError( "Thenable self-resolution" );
5512
+ }
5513
+
5514
+ // Support: Promises/A+ sections 2.3.3.1, 3.5
5515
+ // https://promisesaplus.com/#point-54
5516
+ // https://promisesaplus.com/#point-75
5517
+ // Retrieve `then` only once
5518
+ then = returned &&
5519
+
5520
+ // Support: Promises/A+ section 2.3.4
5521
+ // https://promisesaplus.com/#point-64
5522
+ // Only check objects and functions for thenability
5523
+ ( typeof returned === "object" ||
5524
+ typeof returned === "function" ) &&
5525
+ returned.then;
5526
+
5527
+ // Handle a returned thenable
5528
+ if ( jQuery.isFunction( then ) ) {
5529
+
5530
+ // Special processors (notify) just wait for resolution
5531
+ if ( special ) {
5532
+ then.call(
5533
+ returned,
5534
+ resolve( maxDepth, deferred, Identity, special ),
5535
+ resolve( maxDepth, deferred, Thrower, special )
5536
+ );
5537
+
5538
+ // Normal processors (resolve) also hook into progress
5539
+ } else {
5540
+
5541
+ // ...and disregard older resolution values
5542
+ maxDepth++;
5543
+
5544
+ then.call(
5545
+ returned,
5546
+ resolve( maxDepth, deferred, Identity, special ),
5547
+ resolve( maxDepth, deferred, Thrower, special ),
5548
+ resolve( maxDepth, deferred, Identity,
5549
+ deferred.notifyWith )
5550
+ );
5551
+ }
5552
+
5553
+ // Handle all other returned values
5554
+ } else {
5555
+
5556
+ // Only substitute handlers pass on context
5557
+ // and multiple values (non-spec behavior)
5558
+ if ( handler !== Identity ) {
5559
+ that = undefined;
5560
+ args = [ returned ];
5561
+ }
5562
+
5563
+ // Process the value(s)
5564
+ // Default process is resolve
5565
+ ( special || deferred.resolveWith )( that, args );
5566
+ }
5567
+ },
5568
+
5569
+ // Only normal processors (resolve) catch and reject exceptions
5570
+ process = special ?
5571
+ mightThrow :
5572
+ function() {
5573
+ try {
5574
+ mightThrow();
5575
+ } catch ( e ) {
5576
+
5577
+ if ( jQuery.Deferred.exceptionHook ) {
5578
+ jQuery.Deferred.exceptionHook( e,
5579
+ process.stackTrace );
5580
+ }
5581
+
5582
+ // Support: Promises/A+ section 2.3.3.3.4.1
5583
+ // https://promisesaplus.com/#point-61
5584
+ // Ignore post-resolution exceptions
5585
+ if ( depth + 1 >= maxDepth ) {
5586
+
5587
+ // Only substitute handlers pass on context
5588
+ // and multiple values (non-spec behavior)
5589
+ if ( handler !== Thrower ) {
5590
+ that = undefined;
5591
+ args = [ e ];
5592
+ }
5593
+
5594
+ deferred.rejectWith( that, args );
5595
+ }
5596
+ }
5597
+ };
5598
+
5599
+ // Support: Promises/A+ section 2.3.3.3.1
5600
+ // https://promisesaplus.com/#point-57
5601
+ // Re-resolve promises immediately to dodge false rejection from
5602
+ // subsequent errors
5603
+ if ( depth ) {
5604
+ process();
5605
+ } else {
5606
+
5607
+ // Call an optional hook to record the stack, in case of exception
5608
+ // since it's otherwise lost when execution goes async
5609
+ if ( jQuery.Deferred.getStackHook ) {
5610
+ process.stackTrace = jQuery.Deferred.getStackHook();
5611
+ }
5612
+ window.setTimeout( process );
5613
+ }
5614
+ };
5615
+ }
5616
+
5617
+ return jQuery.Deferred( function( newDefer ) {
5618
+
5619
+ // progress_handlers.add( ... )
5620
+ tuples[ 0 ][ 3 ].add(
5621
+ resolve(
5622
+ 0,
5623
+ newDefer,
5624
+ jQuery.isFunction( onProgress ) ?
5625
+ onProgress :
5626
+ Identity,
5627
+ newDefer.notifyWith
5628
+ )
5629
+ );
5630
+
5631
+ // fulfilled_handlers.add( ... )
5632
+ tuples[ 1 ][ 3 ].add(
5633
+ resolve(
5634
+ 0,
5635
+ newDefer,
5636
+ jQuery.isFunction( onFulfilled ) ?
5637
+ onFulfilled :
5638
+ Identity
5639
+ )
5640
+ );
5641
+
5642
+ // rejected_handlers.add( ... )
5643
+ tuples[ 2 ][ 3 ].add(
5644
+ resolve(
5645
+ 0,
5646
+ newDefer,
5647
+ jQuery.isFunction( onRejected ) ?
5648
+ onRejected :
5649
+ Thrower
5650
+ )
5651
+ );
5652
+ } ).promise();
5653
+ },
5654
+
5655
+ // Get a promise for this deferred
5656
+ // If obj is provided, the promise aspect is added to the object
5657
+ promise: function( obj ) {
5658
+ return obj != null ? jQuery.extend( obj, promise ) : promise;
5659
+ }
5660
+ },
5661
+ deferred = {};
5662
+
5663
+ // Add list-specific methods
5664
+ jQuery.each( tuples, function( i, tuple ) {
5665
+ var list = tuple[ 2 ],
5666
+ stateString = tuple[ 5 ];
5667
+
5668
+ // promise.progress = list.add
5669
+ // promise.done = list.add
5670
+ // promise.fail = list.add
5671
+ promise[ tuple[ 1 ] ] = list.add;
5672
+
5673
+ // Handle state
5674
+ if ( stateString ) {
5675
+ list.add(
5676
+ function() {
5677
+
5678
+ // state = "resolved" (i.e., fulfilled)
5679
+ // state = "rejected"
5680
+ state = stateString;
5681
+ },
5682
+
5683
+ // rejected_callbacks.disable
5684
+ // fulfilled_callbacks.disable
5685
+ tuples[ 3 - i ][ 2 ].disable,
5686
+
5687
+ // progress_callbacks.lock
5688
+ tuples[ 0 ][ 2 ].lock
5689
+ );
5690
+ }
5691
+
5692
+ // progress_handlers.fire
5693
+ // fulfilled_handlers.fire
5694
+ // rejected_handlers.fire
5695
+ list.add( tuple[ 3 ].fire );
5696
+
5697
+ // deferred.notify = function() { deferred.notifyWith(...) }
5698
+ // deferred.resolve = function() { deferred.resolveWith(...) }
5699
+ // deferred.reject = function() { deferred.rejectWith(...) }
5700
+ deferred[ tuple[ 0 ] ] = function() {
5701
+ deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
5702
+ return this;
5703
+ };
5704
+
5705
+ // deferred.notifyWith = list.fireWith
5706
+ // deferred.resolveWith = list.fireWith
5707
+ // deferred.rejectWith = list.fireWith
5708
+ deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
5709
+ } );
5710
+
5711
+ // Make the deferred a promise
5712
+ promise.promise( deferred );
5713
+
5714
+ // Call given func if any
5715
+ if ( func ) {
5716
+ func.call( deferred, deferred );
5717
+ }
5718
+
5719
+ // All done!
5720
+ return deferred;
5721
+ },
5722
+
5723
+ // Deferred helper
5724
+ when: function( singleValue ) {
5725
+ var
5726
+
5727
+ // count of uncompleted subordinates
5728
+ remaining = arguments.length,
5729
+
5730
+ // count of unprocessed arguments
5731
+ i = remaining,
5732
+
5733
+ // subordinate fulfillment data
5734
+ resolveContexts = Array( i ),
5735
+ resolveValues = slice.call( arguments ),
5736
+
5737
+ // the master Deferred
5738
+ master = jQuery.Deferred(),
5739
+
5740
+ // subordinate callback factory
5741
+ updateFunc = function( i ) {
5742
+ return function( value ) {
5743
+ resolveContexts[ i ] = this;
5744
+ resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
5745
+ if ( !( --remaining ) ) {
5746
+ master.resolveWith( resolveContexts, resolveValues );
5747
+ }
5748
+ };
5749
+ };
5750
+
5751
+ // Single- and empty arguments are adopted like Promise.resolve
5752
+ if ( remaining <= 1 ) {
5753
+ adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject );
5754
+
5755
+ // Use .then() to unwrap secondary thenables (cf. gh-3000)
5756
+ if ( master.state() === "pending" ||
5757
+ jQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
5758
+
5759
+ return master.then();
5760
+ }
5761
+ }
5762
+
5763
+ // Multiple arguments are aggregated like Promise.all array elements
5764
+ while ( i-- ) {
5765
+ adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
5766
+ }
5767
+
5768
+ return master.promise();
5769
+ }
5770
+ } );
5771
+
5772
+
5773
+ // These usually indicate a programmer mistake during development,
5774
+ // warn about them ASAP rather than swallowing them by default.
5775
+ var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
5776
+
5777
+ jQuery.Deferred.exceptionHook = function( error, stack ) {
5778
+
5779
+ // Support: IE 8 - 9 only
5780
+ // Console exists when dev tools are open, which can happen at any time
5781
+ if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
5782
+ window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
5783
+ }
5784
+ };
5785
+
5786
+
5787
+
5788
+
5789
+ jQuery.readyException = function( error ) {
5790
+ window.setTimeout( function() {
5791
+ throw error;
5792
+ } );
5793
+ };
5794
+
5795
+
5796
+
5797
+
5798
+ // The deferred used on DOM ready
5799
+ var readyList = jQuery.Deferred();
5800
+
5801
+ jQuery.fn.ready = function( fn ) {
5802
+
5803
+ readyList
5804
+ .then( fn )
5805
+
5806
+ // Wrap jQuery.readyException in a function so that the lookup
5807
+ // happens at the time of error handling instead of callback
5808
+ // registration.
5809
+ .catch( function( error ) {
5810
+ jQuery.readyException( error );
5811
+ } );
5812
+
5813
+ return this;
5814
+ };
5815
+
5816
+ jQuery.extend( {
5817
+
5818
+ // Is the DOM ready to be used? Set to true once it occurs.
5819
+ isReady: false,
5820
+
5821
+ // A counter to track how many items to wait for before
5822
+ // the ready event fires. See #6781
5823
+ readyWait: 1,
5824
+
5825
+ // Hold (or release) the ready event
5826
+ holdReady: function( hold ) {
5827
+ if ( hold ) {
5828
+ jQuery.readyWait++;
5829
+ } else {
5830
+ jQuery.ready( true );
5831
+ }
5832
+ },
5833
+
5834
+ // Handle when the DOM is ready
5835
+ ready: function( wait ) {
5836
+
5837
+ // Abort if there are pending holds or we're already ready
5838
+ if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
5839
+ return;
5840
+ }
5841
+
5842
+ // Remember that the DOM is ready
5843
+ jQuery.isReady = true;
5844
+
5845
+ // If a normal DOM Ready event fired, decrement, and wait if need be
5846
+ if ( wait !== true && --jQuery.readyWait > 0 ) {
5847
+ return;
5848
+ }
5849
+
5850
+ // If there are functions bound, to execute
5851
+ readyList.resolveWith( document, [ jQuery ] );
5852
+ }
5853
+ } );
5854
+
5855
+ jQuery.ready.then = readyList.then;
5856
+
5857
+ // The ready event handler and self cleanup method
5858
+ function completed() {
5859
+ document.removeEventListener( "DOMContentLoaded", completed );
5860
+ window.removeEventListener( "load", completed );
5861
+ jQuery.ready();
5862
+ }
5863
+
5864
+ // Catch cases where $(document).ready() is called
5865
+ // after the browser event has already occurred.
5866
+ // Support: IE <=9 - 10 only
5867
+ // Older IE sometimes signals "interactive" too soon
5868
+ if ( document.readyState === "complete" ||
5869
+ ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
5870
+
5871
+ // Handle it asynchronously to allow scripts the opportunity to delay ready
5872
+ window.setTimeout( jQuery.ready );
5873
+
5874
+ } else {
5875
+
5876
+ // Use the handy event callback
5877
+ document.addEventListener( "DOMContentLoaded", completed );
5878
+
5879
+ // A fallback to window.onload, that will always work
5880
+ window.addEventListener( "load", completed );
5881
+ }
5882
+
5883
+
5884
+
5885
+
5886
+ // Multifunctional method to get and set values of a collection
5887
+ // The value/s can optionally be executed if it's a function
5888
+ var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
5889
+ var i = 0,
5890
+ len = elems.length,
5891
+ bulk = key == null;
5892
+
5893
+ // Sets many values
5894
+ if ( jQuery.type( key ) === "object" ) {
5895
+ chainable = true;
5896
+ for ( i in key ) {
5897
+ access( elems, fn, i, key[ i ], true, emptyGet, raw );
5898
+ }
5899
+
5900
+ // Sets one value
5901
+ } else if ( value !== undefined ) {
5902
+ chainable = true;
5903
+
5904
+ if ( !jQuery.isFunction( value ) ) {
5905
+ raw = true;
5906
+ }
5907
+
5908
+ if ( bulk ) {
5909
+
5910
+ // Bulk operations run against the entire set
5911
+ if ( raw ) {
5912
+ fn.call( elems, value );
5913
+ fn = null;
5914
+
5915
+ // ...except when executing function values
5916
+ } else {
5917
+ bulk = fn;
5918
+ fn = function( elem, key, value ) {
5919
+ return bulk.call( jQuery( elem ), value );
5920
+ };
5921
+ }
5922
+ }
5923
+
5924
+ if ( fn ) {
5925
+ for ( ; i < len; i++ ) {
5926
+ fn(
5927
+ elems[ i ], key, raw ?
5928
+ value :
5929
+ value.call( elems[ i ], i, fn( elems[ i ], key ) )
5930
+ );
5931
+ }
5932
+ }
5933
+ }
5934
+
5935
+ if ( chainable ) {
5936
+ return elems;
5937
+ }
5938
+
5939
+ // Gets
5940
+ if ( bulk ) {
5941
+ return fn.call( elems );
5942
+ }
5943
+
5944
+ return len ? fn( elems[ 0 ], key ) : emptyGet;
5945
+ };
5946
+ var acceptData = function( owner ) {
5947
+
5948
+ // Accepts only:
5949
+ // - Node
5950
+ // - Node.ELEMENT_NODE
5951
+ // - Node.DOCUMENT_NODE
5952
+ // - Object
5953
+ // - Any
5954
+ return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
5955
+ };
5956
+
5957
+
5958
+
5959
+
5960
+ function Data() {
5961
+ this.expando = jQuery.expando + Data.uid++;
5962
+ }
5963
+
5964
+ Data.uid = 1;
5965
+
5966
+ Data.prototype = {
5967
+
5968
+ cache: function( owner ) {
5969
+
5970
+ // Check if the owner object already has a cache
5971
+ var value = owner[ this.expando ];
5972
+
5973
+ // If not, create one
5974
+ if ( !value ) {
5975
+ value = {};
5976
+
5977
+ // We can accept data for non-element nodes in modern browsers,
5978
+ // but we should not, see #8335.
5979
+ // Always return an empty object.
5980
+ if ( acceptData( owner ) ) {
5981
+
5982
+ // If it is a node unlikely to be stringify-ed or looped over
5983
+ // use plain assignment
5984
+ if ( owner.nodeType ) {
5985
+ owner[ this.expando ] = value;
5986
+
5987
+ // Otherwise secure it in a non-enumerable property
5988
+ // configurable must be true to allow the property to be
5989
+ // deleted when data is removed
5990
+ } else {
5991
+ Object.defineProperty( owner, this.expando, {
5992
+ value: value,
5993
+ configurable: true
5994
+ } );
5995
+ }
5996
+ }
5997
+ }
5998
+
5999
+ return value;
6000
+ },
6001
+ set: function( owner, data, value ) {
6002
+ var prop,
6003
+ cache = this.cache( owner );
6004
+
6005
+ // Handle: [ owner, key, value ] args
6006
+ // Always use camelCase key (gh-2257)
6007
+ if ( typeof data === "string" ) {
6008
+ cache[ jQuery.camelCase( data ) ] = value;
6009
+
6010
+ // Handle: [ owner, { properties } ] args
6011
+ } else {
6012
+
6013
+ // Copy the properties one-by-one to the cache object
6014
+ for ( prop in data ) {
6015
+ cache[ jQuery.camelCase( prop ) ] = data[ prop ];
6016
+ }
6017
+ }
6018
+ return cache;
6019
+ },
6020
+ get: function( owner, key ) {
6021
+ return key === undefined ?
6022
+ this.cache( owner ) :
6023
+
6024
+ // Always use camelCase key (gh-2257)
6025
+ owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ];
6026
+ },
6027
+ access: function( owner, key, value ) {
6028
+
6029
+ // In cases where either:
6030
+ //
6031
+ // 1. No key was specified
6032
+ // 2. A string key was specified, but no value provided
6033
+ //
6034
+ // Take the "read" path and allow the get method to determine
6035
+ // which value to return, respectively either:
6036
+ //
6037
+ // 1. The entire cache object
6038
+ // 2. The data stored at the key
6039
+ //
6040
+ if ( key === undefined ||
6041
+ ( ( key && typeof key === "string" ) && value === undefined ) ) {
6042
+
6043
+ return this.get( owner, key );
6044
+ }
6045
+
6046
+ // When the key is not a string, or both a key and value
6047
+ // are specified, set or extend (existing objects) with either:
6048
+ //
6049
+ // 1. An object of properties
6050
+ // 2. A key and value
6051
+ //
6052
+ this.set( owner, key, value );
6053
+
6054
+ // Since the "set" path can have two possible entry points
6055
+ // return the expected data based on which path was taken[*]
6056
+ return value !== undefined ? value : key;
6057
+ },
6058
+ remove: function( owner, key ) {
6059
+ var i,
6060
+ cache = owner[ this.expando ];
6061
+
6062
+ if ( cache === undefined ) {
6063
+ return;
6064
+ }
6065
+
6066
+ if ( key !== undefined ) {
6067
+
6068
+ // Support array or space separated string of keys
6069
+ if ( jQuery.isArray( key ) ) {
6070
+
6071
+ // If key is an array of keys...
6072
+ // We always set camelCase keys, so remove that.
6073
+ key = key.map( jQuery.camelCase );
6074
+ } else {
6075
+ key = jQuery.camelCase( key );
6076
+
6077
+ // If a key with the spaces exists, use it.
6078
+ // Otherwise, create an array by matching non-whitespace
6079
+ key = key in cache ?
6080
+ [ key ] :
6081
+ ( key.match( rnothtmlwhite ) || [] );
6082
+ }
6083
+
6084
+ i = key.length;
6085
+
6086
+ while ( i-- ) {
6087
+ delete cache[ key[ i ] ];
6088
+ }
6089
+ }
6090
+
6091
+ // Remove the expando if there's no more data
6092
+ if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
6093
+
6094
+ // Support: Chrome <=35 - 45
6095
+ // Webkit & Blink performance suffers when deleting properties
6096
+ // from DOM nodes, so set to undefined instead
6097
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
6098
+ if ( owner.nodeType ) {
6099
+ owner[ this.expando ] = undefined;
6100
+ } else {
6101
+ delete owner[ this.expando ];
6102
+ }
6103
+ }
6104
+ },
6105
+ hasData: function( owner ) {
6106
+ var cache = owner[ this.expando ];
6107
+ return cache !== undefined && !jQuery.isEmptyObject( cache );
6108
+ }
6109
+ };
6110
+ var dataPriv = new Data();
6111
+
6112
+ var dataUser = new Data();
6113
+
6114
+
6115
+
6116
+ // Implementation Summary
6117
+ //
6118
+ // 1. Enforce API surface and semantic compatibility with 1.9.x branch
6119
+ // 2. Improve the module's maintainability by reducing the storage
6120
+ // paths to a single mechanism.
6121
+ // 3. Use the same single mechanism to support "private" and "user" data.
6122
+ // 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
6123
+ // 5. Avoid exposing implementation details on user objects (eg. expando properties)
6124
+ // 6. Provide a clear path for implementation upgrade to WeakMap in 2014
6125
+
6126
+ var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
6127
+ rmultiDash = /[A-Z]/g;
6128
+
6129
+ function getData( data ) {
6130
+ if ( data === "true" ) {
6131
+ return true;
6132
+ }
6133
+
6134
+ if ( data === "false" ) {
6135
+ return false;
6136
+ }
6137
+
6138
+ if ( data === "null" ) {
6139
+ return null;
6140
+ }
6141
+
6142
+ // Only convert to a number if it doesn't change the string
6143
+ if ( data === +data + "" ) {
6144
+ return +data;
6145
+ }
6146
+
6147
+ if ( rbrace.test( data ) ) {
6148
+ return JSON.parse( data );
6149
+ }
6150
+
6151
+ return data;
6152
+ }
6153
+
6154
+ function dataAttr( elem, key, data ) {
6155
+ var name;
6156
+
6157
+ // If nothing was found internally, try to fetch any
6158
+ // data from the HTML5 data-* attribute
6159
+ if ( data === undefined && elem.nodeType === 1 ) {
6160
+ name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
6161
+ data = elem.getAttribute( name );
6162
+
6163
+ if ( typeof data === "string" ) {
6164
+ try {
6165
+ data = getData( data );
6166
+ } catch ( e ) {}
6167
+
6168
+ // Make sure we set the data so it isn't changed later
6169
+ dataUser.set( elem, key, data );
6170
+ } else {
6171
+ data = undefined;
6172
+ }
6173
+ }
6174
+ return data;
6175
+ }
6176
+
6177
+ jQuery.extend( {
6178
+ hasData: function( elem ) {
6179
+ return dataUser.hasData( elem ) || dataPriv.hasData( elem );
6180
+ },
6181
+
6182
+ data: function( elem, name, data ) {
6183
+ return dataUser.access( elem, name, data );
6184
+ },
6185
+
6186
+ removeData: function( elem, name ) {
6187
+ dataUser.remove( elem, name );
6188
+ },
6189
+
6190
+ // TODO: Now that all calls to _data and _removeData have been replaced
6191
+ // with direct calls to dataPriv methods, these can be deprecated.
6192
+ _data: function( elem, name, data ) {
6193
+ return dataPriv.access( elem, name, data );
6194
+ },
6195
+
6196
+ _removeData: function( elem, name ) {
6197
+ dataPriv.remove( elem, name );
6198
+ }
6199
+ } );
6200
+
6201
+ jQuery.fn.extend( {
6202
+ data: function( key, value ) {
6203
+ var i, name, data,
6204
+ elem = this[ 0 ],
6205
+ attrs = elem && elem.attributes;
6206
+
6207
+ // Gets all values
6208
+ if ( key === undefined ) {
6209
+ if ( this.length ) {
6210
+ data = dataUser.get( elem );
6211
+
6212
+ if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
6213
+ i = attrs.length;
6214
+ while ( i-- ) {
6215
+
6216
+ // Support: IE 11 only
6217
+ // The attrs elements can be null (#14894)
6218
+ if ( attrs[ i ] ) {
6219
+ name = attrs[ i ].name;
6220
+ if ( name.indexOf( "data-" ) === 0 ) {
6221
+ name = jQuery.camelCase( name.slice( 5 ) );
6222
+ dataAttr( elem, name, data[ name ] );
6223
+ }
6224
+ }
6225
+ }
6226
+ dataPriv.set( elem, "hasDataAttrs", true );
6227
+ }
6228
+ }
6229
+
6230
+ return data;
6231
+ }
6232
+
6233
+ // Sets multiple values
6234
+ if ( typeof key === "object" ) {
6235
+ return this.each( function() {
6236
+ dataUser.set( this, key );
6237
+ } );
6238
+ }
6239
+
6240
+ return access( this, function( value ) {
6241
+ var data;
6242
+
6243
+ // The calling jQuery object (element matches) is not empty
6244
+ // (and therefore has an element appears at this[ 0 ]) and the
6245
+ // `value` parameter was not undefined. An empty jQuery object
6246
+ // will result in `undefined` for elem = this[ 0 ] which will
6247
+ // throw an exception if an attempt to read a data cache is made.
6248
+ if ( elem && value === undefined ) {
6249
+
6250
+ // Attempt to get data from the cache
6251
+ // The key will always be camelCased in Data
6252
+ data = dataUser.get( elem, key );
6253
+ if ( data !== undefined ) {
6254
+ return data;
6255
+ }
6256
+
6257
+ // Attempt to "discover" the data in
6258
+ // HTML5 custom data-* attrs
6259
+ data = dataAttr( elem, key );
6260
+ if ( data !== undefined ) {
6261
+ return data;
6262
+ }
6263
+
6264
+ // We tried really hard, but the data doesn't exist.
6265
+ return;
6266
+ }
6267
+
6268
+ // Set the data...
6269
+ this.each( function() {
6270
+
6271
+ // We always store the camelCased key
6272
+ dataUser.set( this, key, value );
6273
+ } );
6274
+ }, null, value, arguments.length > 1, null, true );
6275
+ },
6276
+
6277
+ removeData: function( key ) {
6278
+ return this.each( function() {
6279
+ dataUser.remove( this, key );
6280
+ } );
6281
+ }
6282
+ } );
6283
+
6284
+
6285
+ jQuery.extend( {
6286
+ queue: function( elem, type, data ) {
6287
+ var queue;
6288
+
6289
+ if ( elem ) {
6290
+ type = ( type || "fx" ) + "queue";
6291
+ queue = dataPriv.get( elem, type );
6292
+
6293
+ // Speed up dequeue by getting out quickly if this is just a lookup
6294
+ if ( data ) {
6295
+ if ( !queue || jQuery.isArray( data ) ) {
6296
+ queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
6297
+ } else {
6298
+ queue.push( data );
6299
+ }
6300
+ }
6301
+ return queue || [];
6302
+ }
6303
+ },
6304
+
6305
+ dequeue: function( elem, type ) {
6306
+ type = type || "fx";
6307
+
6308
+ var queue = jQuery.queue( elem, type ),
6309
+ startLength = queue.length,
6310
+ fn = queue.shift(),
6311
+ hooks = jQuery._queueHooks( elem, type ),
6312
+ next = function() {
6313
+ jQuery.dequeue( elem, type );
6314
+ };
6315
+
6316
+ // If the fx queue is dequeued, always remove the progress sentinel
6317
+ if ( fn === "inprogress" ) {
6318
+ fn = queue.shift();
6319
+ startLength--;
6320
+ }
6321
+
6322
+ if ( fn ) {
6323
+
6324
+ // Add a progress sentinel to prevent the fx queue from being
6325
+ // automatically dequeued
6326
+ if ( type === "fx" ) {
6327
+ queue.unshift( "inprogress" );
6328
+ }
6329
+
6330
+ // Clear up the last queue stop function
6331
+ delete hooks.stop;
6332
+ fn.call( elem, next, hooks );
6333
+ }
6334
+
6335
+ if ( !startLength && hooks ) {
6336
+ hooks.empty.fire();
6337
+ }
6338
+ },
6339
+
6340
+ // Not public - generate a queueHooks object, or return the current one
6341
+ _queueHooks: function( elem, type ) {
6342
+ var key = type + "queueHooks";
6343
+ return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
6344
+ empty: jQuery.Callbacks( "once memory" ).add( function() {
6345
+ dataPriv.remove( elem, [ type + "queue", key ] );
6346
+ } )
6347
+ } );
6348
+ }
6349
+ } );
6350
+
6351
+ jQuery.fn.extend( {
6352
+ queue: function( type, data ) {
6353
+ var setter = 2;
6354
+
6355
+ if ( typeof type !== "string" ) {
6356
+ data = type;
6357
+ type = "fx";
6358
+ setter--;
6359
+ }
6360
+
6361
+ if ( arguments.length < setter ) {
6362
+ return jQuery.queue( this[ 0 ], type );
6363
+ }
6364
+
6365
+ return data === undefined ?
6366
+ this :
6367
+ this.each( function() {
6368
+ var queue = jQuery.queue( this, type, data );
6369
+
6370
+ // Ensure a hooks for this queue
6371
+ jQuery._queueHooks( this, type );
6372
+
6373
+ if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
6374
+ jQuery.dequeue( this, type );
6375
+ }
6376
+ } );
6377
+ },
6378
+ dequeue: function( type ) {
6379
+ return this.each( function() {
6380
+ jQuery.dequeue( this, type );
6381
+ } );
6382
+ },
6383
+ clearQueue: function( type ) {
6384
+ return this.queue( type || "fx", [] );
6385
+ },
6386
+
6387
+ // Get a promise resolved when queues of a certain type
6388
+ // are emptied (fx is the type by default)
6389
+ promise: function( type, obj ) {
6390
+ var tmp,
6391
+ count = 1,
6392
+ defer = jQuery.Deferred(),
6393
+ elements = this,
6394
+ i = this.length,
6395
+ resolve = function() {
6396
+ if ( !( --count ) ) {
6397
+ defer.resolveWith( elements, [ elements ] );
6398
+ }
6399
+ };
6400
+
6401
+ if ( typeof type !== "string" ) {
6402
+ obj = type;
6403
+ type = undefined;
6404
+ }
6405
+ type = type || "fx";
6406
+
6407
+ while ( i-- ) {
6408
+ tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
6409
+ if ( tmp && tmp.empty ) {
6410
+ count++;
6411
+ tmp.empty.add( resolve );
6412
+ }
6413
+ }
6414
+ resolve();
6415
+ return defer.promise( obj );
6416
+ }
6417
+ } );
6418
+ var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
6419
+
6420
+ var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
6421
+
6422
+
6423
+ var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
6424
+
6425
+ var isHiddenWithinTree = function( elem, el ) {
6426
+
6427
+ // isHiddenWithinTree might be called from jQuery#filter function;
6428
+ // in that case, element will be second argument
6429
+ elem = el || elem;
6430
+
6431
+ // Inline style trumps all
6432
+ return elem.style.display === "none" ||
6433
+ elem.style.display === "" &&
6434
+
6435
+ // Otherwise, check computed style
6436
+ // Support: Firefox <=43 - 45
6437
+ // Disconnected elements can have computed display: none, so first confirm that elem is
6438
+ // in the document.
6439
+ jQuery.contains( elem.ownerDocument, elem ) &&
6440
+
6441
+ jQuery.css( elem, "display" ) === "none";
6442
+ };
6443
+
6444
+ var swap = function( elem, options, callback, args ) {
6445
+ var ret, name,
6446
+ old = {};
6447
+
6448
+ // Remember the old values, and insert the new ones
6449
+ for ( name in options ) {
6450
+ old[ name ] = elem.style[ name ];
6451
+ elem.style[ name ] = options[ name ];
6452
+ }
6453
+
6454
+ ret = callback.apply( elem, args || [] );
6455
+
6456
+ // Revert the old values
6457
+ for ( name in options ) {
6458
+ elem.style[ name ] = old[ name ];
6459
+ }
6460
+
6461
+ return ret;
6462
+ };
6463
+
6464
+
6465
+
6466
+
6467
+ function adjustCSS( elem, prop, valueParts, tween ) {
6468
+ var adjusted,
6469
+ scale = 1,
6470
+ maxIterations = 20,
6471
+ currentValue = tween ?
6472
+ function() {
6473
+ return tween.cur();
6474
+ } :
6475
+ function() {
6476
+ return jQuery.css( elem, prop, "" );
6477
+ },
6478
+ initial = currentValue(),
6479
+ unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
6480
+
6481
+ // Starting value computation is required for potential unit mismatches
6482
+ initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
6483
+ rcssNum.exec( jQuery.css( elem, prop ) );
6484
+
6485
+ if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
6486
+
6487
+ // Trust units reported by jQuery.css
6488
+ unit = unit || initialInUnit[ 3 ];
6489
+
6490
+ // Make sure we update the tween properties later on
6491
+ valueParts = valueParts || [];
6492
+
6493
+ // Iteratively approximate from a nonzero starting point
6494
+ initialInUnit = +initial || 1;
6495
+
6496
+ do {
6497
+
6498
+ // If previous iteration zeroed out, double until we get *something*.
6499
+ // Use string for doubling so we don't accidentally see scale as unchanged below
6500
+ scale = scale || ".5";
6501
+
6502
+ // Adjust and apply
6503
+ initialInUnit = initialInUnit / scale;
6504
+ jQuery.style( elem, prop, initialInUnit + unit );
6505
+
6506
+ // Update scale, tolerating zero or NaN from tween.cur()
6507
+ // Break the loop if scale is unchanged or perfect, or if we've just had enough.
6508
+ } while (
6509
+ scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
6510
+ );
6511
+ }
6512
+
6513
+ if ( valueParts ) {
6514
+ initialInUnit = +initialInUnit || +initial || 0;
6515
+
6516
+ // Apply relative offset (+=/-=) if specified
6517
+ adjusted = valueParts[ 1 ] ?
6518
+ initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
6519
+ +valueParts[ 2 ];
6520
+ if ( tween ) {
6521
+ tween.unit = unit;
6522
+ tween.start = initialInUnit;
6523
+ tween.end = adjusted;
6524
+ }
6525
+ }
6526
+ return adjusted;
6527
+ }
6528
+
6529
+
6530
+ var defaultDisplayMap = {};
6531
+
6532
+ function getDefaultDisplay( elem ) {
6533
+ var temp,
6534
+ doc = elem.ownerDocument,
6535
+ nodeName = elem.nodeName,
6536
+ display = defaultDisplayMap[ nodeName ];
6537
+
6538
+ if ( display ) {
6539
+ return display;
6540
+ }
6541
+
6542
+ temp = doc.body.appendChild( doc.createElement( nodeName ) );
6543
+ display = jQuery.css( temp, "display" );
6544
+
6545
+ temp.parentNode.removeChild( temp );
6546
+
6547
+ if ( display === "none" ) {
6548
+ display = "block";
6549
+ }
6550
+ defaultDisplayMap[ nodeName ] = display;
6551
+
6552
+ return display;
6553
+ }
6554
+
6555
+ function showHide( elements, show ) {
6556
+ var display, elem,
6557
+ values = [],
6558
+ index = 0,
6559
+ length = elements.length;
6560
+
6561
+ // Determine new display value for elements that need to change
6562
+ for ( ; index < length; index++ ) {
6563
+ elem = elements[ index ];
6564
+ if ( !elem.style ) {
6565
+ continue;
6566
+ }
6567
+
6568
+ display = elem.style.display;
6569
+ if ( show ) {
6570
+
6571
+ // Since we force visibility upon cascade-hidden elements, an immediate (and slow)
6572
+ // check is required in this first loop unless we have a nonempty display value (either
6573
+ // inline or about-to-be-restored)
6574
+ if ( display === "none" ) {
6575
+ values[ index ] = dataPriv.get( elem, "display" ) || null;
6576
+ if ( !values[ index ] ) {
6577
+ elem.style.display = "";
6578
+ }
6579
+ }
6580
+ if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
6581
+ values[ index ] = getDefaultDisplay( elem );
6582
+ }
6583
+ } else {
6584
+ if ( display !== "none" ) {
6585
+ values[ index ] = "none";
6586
+
6587
+ // Remember what we're overwriting
6588
+ dataPriv.set( elem, "display", display );
6589
+ }
6590
+ }
6591
+ }
6592
+
6593
+ // Set the display of the elements in a second loop to avoid constant reflow
6594
+ for ( index = 0; index < length; index++ ) {
6595
+ if ( values[ index ] != null ) {
6596
+ elements[ index ].style.display = values[ index ];
6597
+ }
6598
+ }
6599
+
6600
+ return elements;
6601
+ }
6602
+
6603
+ jQuery.fn.extend( {
6604
+ show: function() {
6605
+ return showHide( this, true );
6606
+ },
6607
+ hide: function() {
6608
+ return showHide( this );
6609
+ },
6610
+ toggle: function( state ) {
6611
+ if ( typeof state === "boolean" ) {
6612
+ return state ? this.show() : this.hide();
6613
+ }
6614
+
6615
+ return this.each( function() {
6616
+ if ( isHiddenWithinTree( this ) ) {
6617
+ jQuery( this ).show();
6618
+ } else {
6619
+ jQuery( this ).hide();
6620
+ }
6621
+ } );
6622
+ }
6623
+ } );
6624
+ var rcheckableType = ( /^(?:checkbox|radio)$/i );
6625
+
6626
+ var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i );
6627
+
6628
+ var rscriptType = ( /^$|\/(?:java|ecma)script/i );
6629
+
6630
+
6631
+
6632
+ // We have to close these tags to support XHTML (#13200)
6633
+ var wrapMap = {
6634
+
6635
+ // Support: IE <=9 only
6636
+ option: [ 1, "<select multiple='multiple'>", "</select>" ],
6637
+
6638
+ // XHTML parsers do not magically insert elements in the
6639
+ // same way that tag soup parsers do. So we cannot shorten
6640
+ // this by omitting <tbody> or other required elements.
6641
+ thead: [ 1, "<table>", "</table>" ],
6642
+ col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
6643
+ tr: [ 2, "<table><tbody>", "</tbody></table>" ],
6644
+ td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
6645
+
6646
+ _default: [ 0, "", "" ]
6647
+ };
6648
+
6649
+ // Support: IE <=9 only
6650
+ wrapMap.optgroup = wrapMap.option;
6651
+
6652
+ wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
6653
+ wrapMap.th = wrapMap.td;
6654
+
6655
+
6656
+ function getAll( context, tag ) {
6657
+
6658
+ // Support: IE <=9 - 11 only
6659
+ // Use typeof to avoid zero-argument method invocation on host objects (#15151)
6660
+ var ret;
6661
+
6662
+ if ( typeof context.getElementsByTagName !== "undefined" ) {
6663
+ ret = context.getElementsByTagName( tag || "*" );
6664
+
6665
+ } else if ( typeof context.querySelectorAll !== "undefined" ) {
6666
+ ret = context.querySelectorAll( tag || "*" );
6667
+
6668
+ } else {
6669
+ ret = [];
6670
+ }
6671
+
6672
+ if ( tag === undefined || tag && jQuery.nodeName( context, tag ) ) {
6673
+ return jQuery.merge( [ context ], ret );
6674
+ }
6675
+
6676
+ return ret;
6677
+ }
6678
+
6679
+
6680
+ // Mark scripts as having already been evaluated
6681
+ function setGlobalEval( elems, refElements ) {
6682
+ var i = 0,
6683
+ l = elems.length;
6684
+
6685
+ for ( ; i < l; i++ ) {
6686
+ dataPriv.set(
6687
+ elems[ i ],
6688
+ "globalEval",
6689
+ !refElements || dataPriv.get( refElements[ i ], "globalEval" )
6690
+ );
6691
+ }
6692
+ }
6693
+
6694
+
6695
+ var rhtml = /<|&#?\w+;/;
6696
+
6697
+ function buildFragment( elems, context, scripts, selection, ignored ) {
6698
+ var elem, tmp, tag, wrap, contains, j,
6699
+ fragment = context.createDocumentFragment(),
6700
+ nodes = [],
6701
+ i = 0,
6702
+ l = elems.length;
6703
+
6704
+ for ( ; i < l; i++ ) {
6705
+ elem = elems[ i ];
6706
+
6707
+ if ( elem || elem === 0 ) {
6708
+
6709
+ // Add nodes directly
6710
+ if ( jQuery.type( elem ) === "object" ) {
6711
+
6712
+ // Support: Android <=4.0 only, PhantomJS 1 only
6713
+ // push.apply(_, arraylike) throws on ancient WebKit
6714
+ jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
6715
+
6716
+ // Convert non-html into a text node
6717
+ } else if ( !rhtml.test( elem ) ) {
6718
+ nodes.push( context.createTextNode( elem ) );
6719
+
6720
+ // Convert html into DOM nodes
6721
+ } else {
6722
+ tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
6723
+
6724
+ // Deserialize a standard representation
6725
+ tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
6726
+ wrap = wrapMap[ tag ] || wrapMap._default;
6727
+ tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
6728
+
6729
+ // Descend through wrappers to the right content
6730
+ j = wrap[ 0 ];
6731
+ while ( j-- ) {
6732
+ tmp = tmp.lastChild;
6733
+ }
6734
+
6735
+ // Support: Android <=4.0 only, PhantomJS 1 only
6736
+ // push.apply(_, arraylike) throws on ancient WebKit
6737
+ jQuery.merge( nodes, tmp.childNodes );
6738
+
6739
+ // Remember the top-level container
6740
+ tmp = fragment.firstChild;
6741
+
6742
+ // Ensure the created nodes are orphaned (#12392)
6743
+ tmp.textContent = "";
6744
+ }
6745
+ }
6746
+ }
6747
+
6748
+ // Remove wrapper from fragment
6749
+ fragment.textContent = "";
6750
+
6751
+ i = 0;
6752
+ while ( ( elem = nodes[ i++ ] ) ) {
6753
+
6754
+ // Skip elements already in the context collection (trac-4087)
6755
+ if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
6756
+ if ( ignored ) {
6757
+ ignored.push( elem );
6758
+ }
6759
+ continue;
6760
+ }
6761
+
6762
+ contains = jQuery.contains( elem.ownerDocument, elem );
6763
+
6764
+ // Append to fragment
6765
+ tmp = getAll( fragment.appendChild( elem ), "script" );
6766
+
6767
+ // Preserve script evaluation history
6768
+ if ( contains ) {
6769
+ setGlobalEval( tmp );
6770
+ }
6771
+
6772
+ // Capture executables
6773
+ if ( scripts ) {
6774
+ j = 0;
6775
+ while ( ( elem = tmp[ j++ ] ) ) {
6776
+ if ( rscriptType.test( elem.type || "" ) ) {
6777
+ scripts.push( elem );
6778
+ }
6779
+ }
6780
+ }
6781
+ }
6782
+
6783
+ return fragment;
6784
+ }
6785
+
6786
+
6787
+ ( function() {
6788
+ var fragment = document.createDocumentFragment(),
6789
+ div = fragment.appendChild( document.createElement( "div" ) ),
6790
+ input = document.createElement( "input" );
6791
+
6792
+ // Support: Android 4.0 - 4.3 only
6793
+ // Check state lost if the name is set (#11217)
6794
+ // Support: Windows Web Apps (WWA)
6795
+ // `name` and `type` must use .setAttribute for WWA (#14901)
6796
+ input.setAttribute( "type", "radio" );
6797
+ input.setAttribute( "checked", "checked" );
6798
+ input.setAttribute( "name", "t" );
6799
+
6800
+ div.appendChild( input );
6801
+
6802
+ // Support: Android <=4.1 only
6803
+ // Older WebKit doesn't clone checked state correctly in fragments
6804
+ support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
6805
+
6806
+ // Support: IE <=11 only
6807
+ // Make sure textarea (and checkbox) defaultValue is properly cloned
6808
+ div.innerHTML = "<textarea>x</textarea>";
6809
+ support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
6810
+ } )();
6811
+ var documentElement = document.documentElement;
6812
+
6813
+
6814
+
6815
+ var
6816
+ rkeyEvent = /^key/,
6817
+ rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
6818
+ rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
6819
+
6820
+ function returnTrue() {
6821
+ return true;
6822
+ }
6823
+
6824
+ function returnFalse() {
6825
+ return false;
6826
+ }
6827
+
6828
+ // Support: IE <=9 only
6829
+ // See #13393 for more info
6830
+ function safeActiveElement() {
6831
+ try {
6832
+ return document.activeElement;
6833
+ } catch ( err ) { }
6834
+ }
6835
+
6836
+ function on( elem, types, selector, data, fn, one ) {
6837
+ var origFn, type;
6838
+
6839
+ // Types can be a map of types/handlers
6840
+ if ( typeof types === "object" ) {
6841
+
6842
+ // ( types-Object, selector, data )
6843
+ if ( typeof selector !== "string" ) {
6844
+
6845
+ // ( types-Object, data )
6846
+ data = data || selector;
6847
+ selector = undefined;
6848
+ }
6849
+ for ( type in types ) {
6850
+ on( elem, type, selector, data, types[ type ], one );
6851
+ }
6852
+ return elem;
6853
+ }
6854
+
6855
+ if ( data == null && fn == null ) {
6856
+
6857
+ // ( types, fn )
6858
+ fn = selector;
6859
+ data = selector = undefined;
6860
+ } else if ( fn == null ) {
6861
+ if ( typeof selector === "string" ) {
6862
+
6863
+ // ( types, selector, fn )
6864
+ fn = data;
6865
+ data = undefined;
6866
+ } else {
6867
+
6868
+ // ( types, data, fn )
6869
+ fn = data;
6870
+ data = selector;
6871
+ selector = undefined;
6872
+ }
6873
+ }
6874
+ if ( fn === false ) {
6875
+ fn = returnFalse;
6876
+ } else if ( !fn ) {
6877
+ return elem;
6878
+ }
6879
+
6880
+ if ( one === 1 ) {
6881
+ origFn = fn;
6882
+ fn = function( event ) {
6883
+
6884
+ // Can use an empty set, since event contains the info
6885
+ jQuery().off( event );
6886
+ return origFn.apply( this, arguments );
6887
+ };
6888
+
6889
+ // Use same guid so caller can remove using origFn
6890
+ fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
6891
+ }
6892
+ return elem.each( function() {
6893
+ jQuery.event.add( this, types, fn, data, selector );
6894
+ } );
6895
+ }
6896
+
6897
+ /*
6898
+ * Helper functions for managing events -- not part of the public interface.
6899
+ * Props to Dean Edwards' addEvent library for many of the ideas.
6900
+ */
6901
+ jQuery.event = {
6902
+
6903
+ global: {},
6904
+
6905
+ add: function( elem, types, handler, data, selector ) {
6906
+
6907
+ var handleObjIn, eventHandle, tmp,
6908
+ events, t, handleObj,
6909
+ special, handlers, type, namespaces, origType,
6910
+ elemData = dataPriv.get( elem );
6911
+
6912
+ // Don't attach events to noData or text/comment nodes (but allow plain objects)
6913
+ if ( !elemData ) {
6914
+ return;
6915
+ }
6916
+
6917
+ // Caller can pass in an object of custom data in lieu of the handler
6918
+ if ( handler.handler ) {
6919
+ handleObjIn = handler;
6920
+ handler = handleObjIn.handler;
6921
+ selector = handleObjIn.selector;
6922
+ }
6923
+
6924
+ // Ensure that invalid selectors throw exceptions at attach time
6925
+ // Evaluate against documentElement in case elem is a non-element node (e.g., document)
6926
+ if ( selector ) {
6927
+ jQuery.find.matchesSelector( documentElement, selector );
6928
+ }
6929
+
6930
+ // Make sure that the handler has a unique ID, used to find/remove it later
6931
+ if ( !handler.guid ) {
6932
+ handler.guid = jQuery.guid++;
6933
+ }
6934
+
6935
+ // Init the element's event structure and main handler, if this is the first
6936
+ if ( !( events = elemData.events ) ) {
6937
+ events = elemData.events = {};
6938
+ }
6939
+ if ( !( eventHandle = elemData.handle ) ) {
6940
+ eventHandle = elemData.handle = function( e ) {
6941
+
6942
+ // Discard the second event of a jQuery.event.trigger() and
6943
+ // when an event is called after a page has unloaded
6944
+ return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
6945
+ jQuery.event.dispatch.apply( elem, arguments ) : undefined;
6946
+ };
6947
+ }
6948
+
6949
+ // Handle multiple events separated by a space
6950
+ types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
6951
+ t = types.length;
6952
+ while ( t-- ) {
6953
+ tmp = rtypenamespace.exec( types[ t ] ) || [];
6954
+ type = origType = tmp[ 1 ];
6955
+ namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
6956
+
6957
+ // There *must* be a type, no attaching namespace-only handlers
6958
+ if ( !type ) {
6959
+ continue;
6960
+ }
6961
+
6962
+ // If event changes its type, use the special event handlers for the changed type
6963
+ special = jQuery.event.special[ type ] || {};
6964
+
6965
+ // If selector defined, determine special event api type, otherwise given type
6966
+ type = ( selector ? special.delegateType : special.bindType ) || type;
6967
+
6968
+ // Update special based on newly reset type
6969
+ special = jQuery.event.special[ type ] || {};
6970
+
6971
+ // handleObj is passed to all event handlers
6972
+ handleObj = jQuery.extend( {
6973
+ type: type,
6974
+ origType: origType,
6975
+ data: data,
6976
+ handler: handler,
6977
+ guid: handler.guid,
6978
+ selector: selector,
6979
+ needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
6980
+ namespace: namespaces.join( "." )
6981
+ }, handleObjIn );
6982
+
6983
+ // Init the event handler queue if we're the first
6984
+ if ( !( handlers = events[ type ] ) ) {
6985
+ handlers = events[ type ] = [];
6986
+ handlers.delegateCount = 0;
6987
+
6988
+ // Only use addEventListener if the special events handler returns false
6989
+ if ( !special.setup ||
6990
+ special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
6991
+
6992
+ if ( elem.addEventListener ) {
6993
+ elem.addEventListener( type, eventHandle );
6994
+ }
6995
+ }
6996
+ }
6997
+
6998
+ if ( special.add ) {
6999
+ special.add.call( elem, handleObj );
7000
+
7001
+ if ( !handleObj.handler.guid ) {
7002
+ handleObj.handler.guid = handler.guid;
7003
+ }
7004
+ }
7005
+
7006
+ // Add to the element's handler list, delegates in front
7007
+ if ( selector ) {
7008
+ handlers.splice( handlers.delegateCount++, 0, handleObj );
7009
+ } else {
7010
+ handlers.push( handleObj );
7011
+ }
7012
+
7013
+ // Keep track of which events have ever been used, for event optimization
7014
+ jQuery.event.global[ type ] = true;
7015
+ }
7016
+
7017
+ },
7018
+
7019
+ // Detach an event or set of events from an element
7020
+ remove: function( elem, types, handler, selector, mappedTypes ) {
7021
+
7022
+ var j, origCount, tmp,
7023
+ events, t, handleObj,
7024
+ special, handlers, type, namespaces, origType,
7025
+ elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
7026
+
7027
+ if ( !elemData || !( events = elemData.events ) ) {
7028
+ return;
7029
+ }
7030
+
7031
+ // Once for each type.namespace in types; type may be omitted
7032
+ types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
7033
+ t = types.length;
7034
+ while ( t-- ) {
7035
+ tmp = rtypenamespace.exec( types[ t ] ) || [];
7036
+ type = origType = tmp[ 1 ];
7037
+ namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
7038
+
7039
+ // Unbind all events (on this namespace, if provided) for the element
7040
+ if ( !type ) {
7041
+ for ( type in events ) {
7042
+ jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
7043
+ }
7044
+ continue;
7045
+ }
7046
+
7047
+ special = jQuery.event.special[ type ] || {};
7048
+ type = ( selector ? special.delegateType : special.bindType ) || type;
7049
+ handlers = events[ type ] || [];
7050
+ tmp = tmp[ 2 ] &&
7051
+ new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
7052
+
7053
+ // Remove matching events
7054
+ origCount = j = handlers.length;
7055
+ while ( j-- ) {
7056
+ handleObj = handlers[ j ];
7057
+
7058
+ if ( ( mappedTypes || origType === handleObj.origType ) &&
7059
+ ( !handler || handler.guid === handleObj.guid ) &&
7060
+ ( !tmp || tmp.test( handleObj.namespace ) ) &&
7061
+ ( !selector || selector === handleObj.selector ||
7062
+ selector === "**" && handleObj.selector ) ) {
7063
+ handlers.splice( j, 1 );
7064
+
7065
+ if ( handleObj.selector ) {
7066
+ handlers.delegateCount--;
7067
+ }
7068
+ if ( special.remove ) {
7069
+ special.remove.call( elem, handleObj );
7070
+ }
7071
+ }
7072
+ }
7073
+
7074
+ // Remove generic event handler if we removed something and no more handlers exist
7075
+ // (avoids potential for endless recursion during removal of special event handlers)
7076
+ if ( origCount && !handlers.length ) {
7077
+ if ( !special.teardown ||
7078
+ special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
7079
+
7080
+ jQuery.removeEvent( elem, type, elemData.handle );
7081
+ }
7082
+
7083
+ delete events[ type ];
7084
+ }
7085
+ }
7086
+
7087
+ // Remove data and the expando if it's no longer used
7088
+ if ( jQuery.isEmptyObject( events ) ) {
7089
+ dataPriv.remove( elem, "handle events" );
7090
+ }
7091
+ },
7092
+
7093
+ dispatch: function( nativeEvent ) {
7094
+
7095
+ // Make a writable jQuery.Event from the native event object
7096
+ var event = jQuery.event.fix( nativeEvent );
7097
+
7098
+ var i, j, ret, matched, handleObj, handlerQueue,
7099
+ args = new Array( arguments.length ),
7100
+ handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
7101
+ special = jQuery.event.special[ event.type ] || {};
7102
+
7103
+ // Use the fix-ed jQuery.Event rather than the (read-only) native event
7104
+ args[ 0 ] = event;
7105
+
7106
+ for ( i = 1; i < arguments.length; i++ ) {
7107
+ args[ i ] = arguments[ i ];
7108
+ }
7109
+
7110
+ event.delegateTarget = this;
7111
+
7112
+ // Call the preDispatch hook for the mapped type, and let it bail if desired
7113
+ if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
7114
+ return;
7115
+ }
7116
+
7117
+ // Determine handlers
7118
+ handlerQueue = jQuery.event.handlers.call( this, event, handlers );
7119
+
7120
+ // Run delegates first; they may want to stop propagation beneath us
7121
+ i = 0;
7122
+ while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
7123
+ event.currentTarget = matched.elem;
7124
+
7125
+ j = 0;
7126
+ while ( ( handleObj = matched.handlers[ j++ ] ) &&
7127
+ !event.isImmediatePropagationStopped() ) {
7128
+
7129
+ // Triggered event must either 1) have no namespace, or 2) have namespace(s)
7130
+ // a subset or equal to those in the bound event (both can have no namespace).
7131
+ if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
7132
+
7133
+ event.handleObj = handleObj;
7134
+ event.data = handleObj.data;
7135
+
7136
+ ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
7137
+ handleObj.handler ).apply( matched.elem, args );
7138
+
7139
+ if ( ret !== undefined ) {
7140
+ if ( ( event.result = ret ) === false ) {
7141
+ event.preventDefault();
7142
+ event.stopPropagation();
7143
+ }
7144
+ }
7145
+ }
7146
+ }
7147
+ }
7148
+
7149
+ // Call the postDispatch hook for the mapped type
7150
+ if ( special.postDispatch ) {
7151
+ special.postDispatch.call( this, event );
7152
+ }
7153
+
7154
+ return event.result;
7155
+ },
7156
+
7157
+ handlers: function( event, handlers ) {
7158
+ var i, handleObj, sel, matchedHandlers, matchedSelectors,
7159
+ handlerQueue = [],
7160
+ delegateCount = handlers.delegateCount,
7161
+ cur = event.target;
7162
+
7163
+ // Find delegate handlers
7164
+ if ( delegateCount &&
7165
+
7166
+ // Support: IE <=9
7167
+ // Black-hole SVG <use> instance trees (trac-13180)
7168
+ cur.nodeType &&
7169
+
7170
+ // Support: Firefox <=42
7171
+ // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
7172
+ // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
7173
+ // Support: IE 11 only
7174
+ // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
7175
+ !( event.type === "click" && event.button >= 1 ) ) {
7176
+
7177
+ for ( ; cur !== this; cur = cur.parentNode || this ) {
7178
+
7179
+ // Don't check non-elements (#13208)
7180
+ // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
7181
+ if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
7182
+ matchedHandlers = [];
7183
+ matchedSelectors = {};
7184
+ for ( i = 0; i < delegateCount; i++ ) {
7185
+ handleObj = handlers[ i ];
7186
+
7187
+ // Don't conflict with Object.prototype properties (#13203)
7188
+ sel = handleObj.selector + " ";
7189
+
7190
+ if ( matchedSelectors[ sel ] === undefined ) {
7191
+ matchedSelectors[ sel ] = handleObj.needsContext ?
7192
+ jQuery( sel, this ).index( cur ) > -1 :
7193
+ jQuery.find( sel, this, null, [ cur ] ).length;
7194
+ }
7195
+ if ( matchedSelectors[ sel ] ) {
7196
+ matchedHandlers.push( handleObj );
7197
+ }
7198
+ }
7199
+ if ( matchedHandlers.length ) {
7200
+ handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
7201
+ }
7202
+ }
7203
+ }
7204
+ }
7205
+
7206
+ // Add the remaining (directly-bound) handlers
7207
+ cur = this;
7208
+ if ( delegateCount < handlers.length ) {
7209
+ handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
7210
+ }
7211
+
7212
+ return handlerQueue;
7213
+ },
7214
+
7215
+ addProp: function( name, hook ) {
7216
+ Object.defineProperty( jQuery.Event.prototype, name, {
7217
+ enumerable: true,
7218
+ configurable: true,
7219
+
7220
+ get: jQuery.isFunction( hook ) ?
7221
+ function() {
7222
+ if ( this.originalEvent ) {
7223
+ return hook( this.originalEvent );
7224
+ }
7225
+ } :
7226
+ function() {
7227
+ if ( this.originalEvent ) {
7228
+ return this.originalEvent[ name ];
7229
+ }
7230
+ },
7231
+
7232
+ set: function( value ) {
7233
+ Object.defineProperty( this, name, {
7234
+ enumerable: true,
7235
+ configurable: true,
7236
+ writable: true,
7237
+ value: value
7238
+ } );
7239
+ }
7240
+ } );
7241
+ },
7242
+
7243
+ fix: function( originalEvent ) {
7244
+ return originalEvent[ jQuery.expando ] ?
7245
+ originalEvent :
7246
+ new jQuery.Event( originalEvent );
7247
+ },
7248
+
7249
+ special: {
7250
+ load: {
7251
+
7252
+ // Prevent triggered image.load events from bubbling to window.load
7253
+ noBubble: true
7254
+ },
7255
+ focus: {
7256
+
7257
+ // Fire native event if possible so blur/focus sequence is correct
7258
+ trigger: function() {
7259
+ if ( this !== safeActiveElement() && this.focus ) {
7260
+ this.focus();
7261
+ return false;
7262
+ }
7263
+ },
7264
+ delegateType: "focusin"
7265
+ },
7266
+ blur: {
7267
+ trigger: function() {
7268
+ if ( this === safeActiveElement() && this.blur ) {
7269
+ this.blur();
7270
+ return false;
7271
+ }
7272
+ },
7273
+ delegateType: "focusout"
7274
+ },
7275
+ click: {
7276
+
7277
+ // For checkbox, fire native event so checked state will be right
7278
+ trigger: function() {
7279
+ if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
7280
+ this.click();
7281
+ return false;
7282
+ }
7283
+ },
7284
+
7285
+ // For cross-browser consistency, don't fire native .click() on links
7286
+ _default: function( event ) {
7287
+ return jQuery.nodeName( event.target, "a" );
7288
+ }
7289
+ },
7290
+
7291
+ beforeunload: {
7292
+ postDispatch: function( event ) {
7293
+
7294
+ // Support: Firefox 20+
7295
+ // Firefox doesn't alert if the returnValue field is not set.
7296
+ if ( event.result !== undefined && event.originalEvent ) {
7297
+ event.originalEvent.returnValue = event.result;
7298
+ }
7299
+ }
7300
+ }
7301
+ }
7302
+ };
7303
+
7304
+ jQuery.removeEvent = function( elem, type, handle ) {
7305
+
7306
+ // This "if" is needed for plain objects
7307
+ if ( elem.removeEventListener ) {
7308
+ elem.removeEventListener( type, handle );
7309
+ }
7310
+ };
7311
+
7312
+ jQuery.Event = function( src, props ) {
7313
+
7314
+ // Allow instantiation without the 'new' keyword
7315
+ if ( !( this instanceof jQuery.Event ) ) {
7316
+ return new jQuery.Event( src, props );
7317
+ }
7318
+
7319
+ // Event object
7320
+ if ( src && src.type ) {
7321
+ this.originalEvent = src;
7322
+ this.type = src.type;
7323
+
7324
+ // Events bubbling up the document may have been marked as prevented
7325
+ // by a handler lower down the tree; reflect the correct value.
7326
+ this.isDefaultPrevented = src.defaultPrevented ||
7327
+ src.defaultPrevented === undefined &&
7328
+
7329
+ // Support: Android <=2.3 only
7330
+ src.returnValue === false ?
7331
+ returnTrue :
7332
+ returnFalse;
7333
+
7334
+ // Create target properties
7335
+ // Support: Safari <=6 - 7 only
7336
+ // Target should not be a text node (#504, #13143)
7337
+ this.target = ( src.target && src.target.nodeType === 3 ) ?
7338
+ src.target.parentNode :
7339
+ src.target;
7340
+
7341
+ this.currentTarget = src.currentTarget;
7342
+ this.relatedTarget = src.relatedTarget;
7343
+
7344
+ // Event type
7345
+ } else {
7346
+ this.type = src;
7347
+ }
7348
+
7349
+ // Put explicitly provided properties onto the event object
7350
+ if ( props ) {
7351
+ jQuery.extend( this, props );
7352
+ }
7353
+
7354
+ // Create a timestamp if incoming event doesn't have one
7355
+ this.timeStamp = src && src.timeStamp || jQuery.now();
7356
+
7357
+ // Mark it as fixed
7358
+ this[ jQuery.expando ] = true;
7359
+ };
7360
+
7361
+ // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
7362
+ // https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
7363
+ jQuery.Event.prototype = {
7364
+ constructor: jQuery.Event,
7365
+ isDefaultPrevented: returnFalse,
7366
+ isPropagationStopped: returnFalse,
7367
+ isImmediatePropagationStopped: returnFalse,
7368
+ isSimulated: false,
7369
+
7370
+ preventDefault: function() {
7371
+ var e = this.originalEvent;
7372
+
7373
+ this.isDefaultPrevented = returnTrue;
7374
+
7375
+ if ( e && !this.isSimulated ) {
7376
+ e.preventDefault();
7377
+ }
7378
+ },
7379
+ stopPropagation: function() {
7380
+ var e = this.originalEvent;
7381
+
7382
+ this.isPropagationStopped = returnTrue;
7383
+
7384
+ if ( e && !this.isSimulated ) {
7385
+ e.stopPropagation();
7386
+ }
7387
+ },
7388
+ stopImmediatePropagation: function() {
7389
+ var e = this.originalEvent;
7390
+
7391
+ this.isImmediatePropagationStopped = returnTrue;
7392
+
7393
+ if ( e && !this.isSimulated ) {
7394
+ e.stopImmediatePropagation();
7395
+ }
7396
+
7397
+ this.stopPropagation();
7398
+ }
7399
+ };
7400
+
7401
+ // Includes all common event props including KeyEvent and MouseEvent specific props
7402
+ jQuery.each( {
7403
+ altKey: true,
7404
+ bubbles: true,
7405
+ cancelable: true,
7406
+ changedTouches: true,
7407
+ ctrlKey: true,
7408
+ detail: true,
7409
+ eventPhase: true,
7410
+ metaKey: true,
7411
+ pageX: true,
7412
+ pageY: true,
7413
+ shiftKey: true,
7414
+ view: true,
7415
+ "char": true,
7416
+ charCode: true,
7417
+ key: true,
7418
+ keyCode: true,
7419
+ button: true,
7420
+ buttons: true,
7421
+ clientX: true,
7422
+ clientY: true,
7423
+ offsetX: true,
7424
+ offsetY: true,
7425
+ pointerId: true,
7426
+ pointerType: true,
7427
+ screenX: true,
7428
+ screenY: true,
7429
+ targetTouches: true,
7430
+ toElement: true,
7431
+ touches: true,
7432
+
7433
+ which: function( event ) {
7434
+ var button = event.button;
7435
+
7436
+ // Add which for key events
7437
+ if ( event.which == null && rkeyEvent.test( event.type ) ) {
7438
+ return event.charCode != null ? event.charCode : event.keyCode;
7439
+ }
7440
+
7441
+ // Add which for click: 1 === left; 2 === middle; 3 === right
7442
+ if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
7443
+ if ( button & 1 ) {
7444
+ return 1;
7445
+ }
7446
+
7447
+ if ( button & 2 ) {
7448
+ return 3;
7449
+ }
7450
+
7451
+ if ( button & 4 ) {
7452
+ return 2;
7453
+ }
7454
+
7455
+ return 0;
7456
+ }
7457
+
7458
+ return event.which;
7459
+ }
7460
+ }, jQuery.event.addProp );
7461
+
7462
+ // Create mouseenter/leave events using mouseover/out and event-time checks
7463
+ // so that event delegation works in jQuery.
7464
+ // Do the same for pointerenter/pointerleave and pointerover/pointerout
7465
+ //
7466
+ // Support: Safari 7 only
7467
+ // Safari sends mouseenter too often; see:
7468
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=470258
7469
+ // for the description of the bug (it existed in older Chrome versions as well).
7470
+ jQuery.each( {
7471
+ mouseenter: "mouseover",
7472
+ mouseleave: "mouseout",
7473
+ pointerenter: "pointerover",
7474
+ pointerleave: "pointerout"
7475
+ }, function( orig, fix ) {
7476
+ jQuery.event.special[ orig ] = {
7477
+ delegateType: fix,
7478
+ bindType: fix,
7479
+
7480
+ handle: function( event ) {
7481
+ var ret,
7482
+ target = this,
7483
+ related = event.relatedTarget,
7484
+ handleObj = event.handleObj;
7485
+
7486
+ // For mouseenter/leave call the handler if related is outside the target.
7487
+ // NB: No relatedTarget if the mouse left/entered the browser window
7488
+ if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
7489
+ event.type = handleObj.origType;
7490
+ ret = handleObj.handler.apply( this, arguments );
7491
+ event.type = fix;
7492
+ }
7493
+ return ret;
7494
+ }
7495
+ };
7496
+ } );
7497
+
7498
+ jQuery.fn.extend( {
7499
+
7500
+ on: function( types, selector, data, fn ) {
7501
+ return on( this, types, selector, data, fn );
7502
+ },
7503
+ one: function( types, selector, data, fn ) {
7504
+ return on( this, types, selector, data, fn, 1 );
7505
+ },
7506
+ off: function( types, selector, fn ) {
7507
+ var handleObj, type;
7508
+ if ( types && types.preventDefault && types.handleObj ) {
7509
+
7510
+ // ( event ) dispatched jQuery.Event
7511
+ handleObj = types.handleObj;
7512
+ jQuery( types.delegateTarget ).off(
7513
+ handleObj.namespace ?
7514
+ handleObj.origType + "." + handleObj.namespace :
7515
+ handleObj.origType,
7516
+ handleObj.selector,
7517
+ handleObj.handler
7518
+ );
7519
+ return this;
7520
+ }
7521
+ if ( typeof types === "object" ) {
7522
+
7523
+ // ( types-object [, selector] )
7524
+ for ( type in types ) {
7525
+ this.off( type, selector, types[ type ] );
7526
+ }
7527
+ return this;
7528
+ }
7529
+ if ( selector === false || typeof selector === "function" ) {
7530
+
7531
+ // ( types [, fn] )
7532
+ fn = selector;
7533
+ selector = undefined;
7534
+ }
7535
+ if ( fn === false ) {
7536
+ fn = returnFalse;
7537
+ }
7538
+ return this.each( function() {
7539
+ jQuery.event.remove( this, types, fn, selector );
7540
+ } );
7541
+ }
7542
+ } );
7543
+
7544
+
7545
+ var
7546
+
7547
+ /* eslint-disable max-len */
7548
+
7549
+ // See https://github.com/eslint/eslint/issues/3229
7550
+ rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
7551
+
7552
+ /* eslint-enable */
7553
+
7554
+ // Support: IE <=10 - 11, Edge 12 - 13
7555
+ // In IE/Edge using regex groups here causes severe slowdowns.
7556
+ // See https://connect.microsoft.com/IE/feedback/details/1736512/
7557
+ rnoInnerhtml = /<script|<style|<link/i,
7558
+
7559
+ // checked="checked" or checked
7560
+ rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
7561
+ rscriptTypeMasked = /^true\/(.*)/,
7562
+ rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
7563
+
7564
+ function manipulationTarget( elem, content ) {
7565
+ if ( jQuery.nodeName( elem, "table" ) &&
7566
+ jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
7567
+
7568
+ return elem.getElementsByTagName( "tbody" )[ 0 ] || elem;
7569
+ }
7570
+
7571
+ return elem;
7572
+ }
7573
+
7574
+ // Replace/restore the type attribute of script elements for safe DOM manipulation
7575
+ function disableScript( elem ) {
7576
+ elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
7577
+ return elem;
7578
+ }
7579
+ function restoreScript( elem ) {
7580
+ var match = rscriptTypeMasked.exec( elem.type );
7581
+
7582
+ if ( match ) {
7583
+ elem.type = match[ 1 ];
7584
+ } else {
7585
+ elem.removeAttribute( "type" );
7586
+ }
7587
+
7588
+ return elem;
7589
+ }
7590
+
7591
+ function cloneCopyEvent( src, dest ) {
7592
+ var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
7593
+
7594
+ if ( dest.nodeType !== 1 ) {
7595
+ return;
7596
+ }
7597
+
7598
+ // 1. Copy private data: events, handlers, etc.
7599
+ if ( dataPriv.hasData( src ) ) {
7600
+ pdataOld = dataPriv.access( src );
7601
+ pdataCur = dataPriv.set( dest, pdataOld );
7602
+ events = pdataOld.events;
7603
+
7604
+ if ( events ) {
7605
+ delete pdataCur.handle;
7606
+ pdataCur.events = {};
7607
+
7608
+ for ( type in events ) {
7609
+ for ( i = 0, l = events[ type ].length; i < l; i++ ) {
7610
+ jQuery.event.add( dest, type, events[ type ][ i ] );
7611
+ }
7612
+ }
7613
+ }
7614
+ }
7615
+
7616
+ // 2. Copy user data
7617
+ if ( dataUser.hasData( src ) ) {
7618
+ udataOld = dataUser.access( src );
7619
+ udataCur = jQuery.extend( {}, udataOld );
7620
+
7621
+ dataUser.set( dest, udataCur );
7622
+ }
7623
+ }
7624
+
7625
+ // Fix IE bugs, see support tests
7626
+ function fixInput( src, dest ) {
7627
+ var nodeName = dest.nodeName.toLowerCase();
7628
+
7629
+ // Fails to persist the checked state of a cloned checkbox or radio button.
7630
+ if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
7631
+ dest.checked = src.checked;
7632
+
7633
+ // Fails to return the selected option to the default selected state when cloning options
7634
+ } else if ( nodeName === "input" || nodeName === "textarea" ) {
7635
+ dest.defaultValue = src.defaultValue;
7636
+ }
7637
+ }
7638
+
7639
+ function domManip( collection, args, callback, ignored ) {
7640
+
7641
+ // Flatten any nested arrays
7642
+ args = concat.apply( [], args );
7643
+
7644
+ var fragment, first, scripts, hasScripts, node, doc,
7645
+ i = 0,
7646
+ l = collection.length,
7647
+ iNoClone = l - 1,
7648
+ value = args[ 0 ],
7649
+ isFunction = jQuery.isFunction( value );
7650
+
7651
+ // We can't cloneNode fragments that contain checked, in WebKit
7652
+ if ( isFunction ||
7653
+ ( l > 1 && typeof value === "string" &&
7654
+ !support.checkClone && rchecked.test( value ) ) ) {
7655
+ return collection.each( function( index ) {
7656
+ var self = collection.eq( index );
7657
+ if ( isFunction ) {
7658
+ args[ 0 ] = value.call( this, index, self.html() );
7659
+ }
7660
+ domManip( self, args, callback, ignored );
7661
+ } );
7662
+ }
7663
+
7664
+ if ( l ) {
7665
+ fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
7666
+ first = fragment.firstChild;
7667
+
7668
+ if ( fragment.childNodes.length === 1 ) {
7669
+ fragment = first;
7670
+ }
7671
+
7672
+ // Require either new content or an interest in ignored elements to invoke the callback
7673
+ if ( first || ignored ) {
7674
+ scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
7675
+ hasScripts = scripts.length;
7676
+
7677
+ // Use the original fragment for the last item
7678
+ // instead of the first because it can end up
7679
+ // being emptied incorrectly in certain situations (#8070).
7680
+ for ( ; i < l; i++ ) {
7681
+ node = fragment;
7682
+
7683
+ if ( i !== iNoClone ) {
7684
+ node = jQuery.clone( node, true, true );
7685
+
7686
+ // Keep references to cloned scripts for later restoration
7687
+ if ( hasScripts ) {
7688
+
7689
+ // Support: Android <=4.0 only, PhantomJS 1 only
7690
+ // push.apply(_, arraylike) throws on ancient WebKit
7691
+ jQuery.merge( scripts, getAll( node, "script" ) );
7692
+ }
7693
+ }
7694
+
7695
+ callback.call( collection[ i ], node, i );
7696
+ }
7697
+
7698
+ if ( hasScripts ) {
7699
+ doc = scripts[ scripts.length - 1 ].ownerDocument;
7700
+
7701
+ // Reenable scripts
7702
+ jQuery.map( scripts, restoreScript );
7703
+
7704
+ // Evaluate executable scripts on first document insertion
7705
+ for ( i = 0; i < hasScripts; i++ ) {
7706
+ node = scripts[ i ];
7707
+ if ( rscriptType.test( node.type || "" ) &&
7708
+ !dataPriv.access( node, "globalEval" ) &&
7709
+ jQuery.contains( doc, node ) ) {
7710
+
7711
+ if ( node.src ) {
7712
+
7713
+ // Optional AJAX dependency, but won't run scripts if not present
7714
+ if ( jQuery._evalUrl ) {
7715
+ jQuery._evalUrl( node.src );
7716
+ }
7717
+ } else {
7718
+ DOMEval( node.textContent.replace( rcleanScript, "" ), doc );
7719
+ }
7720
+ }
7721
+ }
7722
+ }
7723
+ }
7724
+ }
7725
+
7726
+ return collection;
7727
+ }
7728
+
7729
+ function remove( elem, selector, keepData ) {
7730
+ var node,
7731
+ nodes = selector ? jQuery.filter( selector, elem ) : elem,
7732
+ i = 0;
7733
+
7734
+ for ( ; ( node = nodes[ i ] ) != null; i++ ) {
7735
+ if ( !keepData && node.nodeType === 1 ) {
7736
+ jQuery.cleanData( getAll( node ) );
7737
+ }
7738
+
7739
+ if ( node.parentNode ) {
7740
+ if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
7741
+ setGlobalEval( getAll( node, "script" ) );
7742
+ }
7743
+ node.parentNode.removeChild( node );
7744
+ }
7745
+ }
7746
+
7747
+ return elem;
7748
+ }
7749
+
7750
+ jQuery.extend( {
7751
+ htmlPrefilter: function( html ) {
7752
+ return html.replace( rxhtmlTag, "<$1></$2>" );
7753
+ },
7754
+
7755
+ clone: function( elem, dataAndEvents, deepDataAndEvents ) {
7756
+ var i, l, srcElements, destElements,
7757
+ clone = elem.cloneNode( true ),
7758
+ inPage = jQuery.contains( elem.ownerDocument, elem );
7759
+
7760
+ // Fix IE cloning issues
7761
+ if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
7762
+ !jQuery.isXMLDoc( elem ) ) {
7763
+
7764
+ // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
7765
+ destElements = getAll( clone );
7766
+ srcElements = getAll( elem );
7767
+
7768
+ for ( i = 0, l = srcElements.length; i < l; i++ ) {
7769
+ fixInput( srcElements[ i ], destElements[ i ] );
7770
+ }
7771
+ }
7772
+
7773
+ // Copy the events from the original to the clone
7774
+ if ( dataAndEvents ) {
7775
+ if ( deepDataAndEvents ) {
7776
+ srcElements = srcElements || getAll( elem );
7777
+ destElements = destElements || getAll( clone );
7778
+
7779
+ for ( i = 0, l = srcElements.length; i < l; i++ ) {
7780
+ cloneCopyEvent( srcElements[ i ], destElements[ i ] );
7781
+ }
7782
+ } else {
7783
+ cloneCopyEvent( elem, clone );
7784
+ }
7785
+ }
7786
+
7787
+ // Preserve script evaluation history
7788
+ destElements = getAll( clone, "script" );
7789
+ if ( destElements.length > 0 ) {
7790
+ setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
7791
+ }
7792
+
7793
+ // Return the cloned set
7794
+ return clone;
7795
+ },
7796
+
7797
+ cleanData: function( elems ) {
7798
+ var data, elem, type,
7799
+ special = jQuery.event.special,
7800
+ i = 0;
7801
+
7802
+ for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
7803
+ if ( acceptData( elem ) ) {
7804
+ if ( ( data = elem[ dataPriv.expando ] ) ) {
7805
+ if ( data.events ) {
7806
+ for ( type in data.events ) {
7807
+ if ( special[ type ] ) {
7808
+ jQuery.event.remove( elem, type );
7809
+
7810
+ // This is a shortcut to avoid jQuery.event.remove's overhead
7811
+ } else {
7812
+ jQuery.removeEvent( elem, type, data.handle );
7813
+ }
7814
+ }
7815
+ }
7816
+
7817
+ // Support: Chrome <=35 - 45+
7818
+ // Assign undefined instead of using delete, see Data#remove
7819
+ elem[ dataPriv.expando ] = undefined;
7820
+ }
7821
+ if ( elem[ dataUser.expando ] ) {
7822
+
7823
+ // Support: Chrome <=35 - 45+
7824
+ // Assign undefined instead of using delete, see Data#remove
7825
+ elem[ dataUser.expando ] = undefined;
7826
+ }
7827
+ }
7828
+ }
7829
+ }
7830
+ } );
7831
+
7832
+ jQuery.fn.extend( {
7833
+ detach: function( selector ) {
7834
+ return remove( this, selector, true );
7835
+ },
7836
+
7837
+ remove: function( selector ) {
7838
+ return remove( this, selector );
7839
+ },
7840
+
7841
+ text: function( value ) {
7842
+ return access( this, function( value ) {
7843
+ return value === undefined ?
7844
+ jQuery.text( this ) :
7845
+ this.empty().each( function() {
7846
+ if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
7847
+ this.textContent = value;
7848
+ }
7849
+ } );
7850
+ }, null, value, arguments.length );
7851
+ },
7852
+
7853
+ append: function() {
7854
+ return domManip( this, arguments, function( elem ) {
7855
+ if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
7856
+ var target = manipulationTarget( this, elem );
7857
+ target.appendChild( elem );
7858
+ }
7859
+ } );
7860
+ },
7861
+
7862
+ prepend: function() {
7863
+ return domManip( this, arguments, function( elem ) {
7864
+ if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
7865
+ var target = manipulationTarget( this, elem );
7866
+ target.insertBefore( elem, target.firstChild );
7867
+ }
7868
+ } );
7869
+ },
7870
+
7871
+ before: function() {
7872
+ return domManip( this, arguments, function( elem ) {
7873
+ if ( this.parentNode ) {
7874
+ this.parentNode.insertBefore( elem, this );
7875
+ }
7876
+ } );
7877
+ },
7878
+
7879
+ after: function() {
7880
+ return domManip( this, arguments, function( elem ) {
7881
+ if ( this.parentNode ) {
7882
+ this.parentNode.insertBefore( elem, this.nextSibling );
7883
+ }
7884
+ } );
7885
+ },
7886
+
7887
+ empty: function() {
7888
+ var elem,
7889
+ i = 0;
7890
+
7891
+ for ( ; ( elem = this[ i ] ) != null; i++ ) {
7892
+ if ( elem.nodeType === 1 ) {
7893
+
7894
+ // Prevent memory leaks
7895
+ jQuery.cleanData( getAll( elem, false ) );
7896
+
7897
+ // Remove any remaining nodes
7898
+ elem.textContent = "";
7899
+ }
7900
+ }
7901
+
7902
+ return this;
7903
+ },
7904
+
7905
+ clone: function( dataAndEvents, deepDataAndEvents ) {
7906
+ dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
7907
+ deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
7908
+
7909
+ return this.map( function() {
7910
+ return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
7911
+ } );
7912
+ },
7913
+
7914
+ html: function( value ) {
7915
+ return access( this, function( value ) {
7916
+ var elem = this[ 0 ] || {},
7917
+ i = 0,
7918
+ l = this.length;
7919
+
7920
+ if ( value === undefined && elem.nodeType === 1 ) {
7921
+ return elem.innerHTML;
7922
+ }
7923
+
7924
+ // See if we can take a shortcut and just use innerHTML
7925
+ if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
7926
+ !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
7927
+
7928
+ value = jQuery.htmlPrefilter( value );
7929
+
7930
+ try {
7931
+ for ( ; i < l; i++ ) {
7932
+ elem = this[ i ] || {};
7933
+
7934
+ // Remove element nodes and prevent memory leaks
7935
+ if ( elem.nodeType === 1 ) {
7936
+ jQuery.cleanData( getAll( elem, false ) );
7937
+ elem.innerHTML = value;
7938
+ }
7939
+ }
7940
+
7941
+ elem = 0;
7942
+
7943
+ // If using innerHTML throws an exception, use the fallback method
7944
+ } catch ( e ) {}
7945
+ }
7946
+
7947
+ if ( elem ) {
7948
+ this.empty().append( value );
7949
+ }
7950
+ }, null, value, arguments.length );
7951
+ },
7952
+
7953
+ replaceWith: function() {
7954
+ var ignored = [];
7955
+
7956
+ // Make the changes, replacing each non-ignored context element with the new content
7957
+ return domManip( this, arguments, function( elem ) {
7958
+ var parent = this.parentNode;
7959
+
7960
+ if ( jQuery.inArray( this, ignored ) < 0 ) {
7961
+ jQuery.cleanData( getAll( this ) );
7962
+ if ( parent ) {
7963
+ parent.replaceChild( elem, this );
7964
+ }
7965
+ }
7966
+
7967
+ // Force callback invocation
7968
+ }, ignored );
7969
+ }
7970
+ } );
7971
+
7972
+ jQuery.each( {
7973
+ appendTo: "append",
7974
+ prependTo: "prepend",
7975
+ insertBefore: "before",
7976
+ insertAfter: "after",
7977
+ replaceAll: "replaceWith"
7978
+ }, function( name, original ) {
7979
+ jQuery.fn[ name ] = function( selector ) {
7980
+ var elems,
7981
+ ret = [],
7982
+ insert = jQuery( selector ),
7983
+ last = insert.length - 1,
7984
+ i = 0;
7985
+
7986
+ for ( ; i <= last; i++ ) {
7987
+ elems = i === last ? this : this.clone( true );
7988
+ jQuery( insert[ i ] )[ original ]( elems );
7989
+
7990
+ // Support: Android <=4.0 only, PhantomJS 1 only
7991
+ // .get() because push.apply(_, arraylike) throws on ancient WebKit
7992
+ push.apply( ret, elems.get() );
7993
+ }
7994
+
7995
+ return this.pushStack( ret );
7996
+ };
7997
+ } );
7998
+ var rmargin = ( /^margin/ );
7999
+
8000
+ var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
8001
+
8002
+ var getStyles = function( elem ) {
8003
+
8004
+ // Support: IE <=11 only, Firefox <=30 (#15098, #14150)
8005
+ // IE throws on elements created in popups
8006
+ // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
8007
+ var view = elem.ownerDocument.defaultView;
8008
+
8009
+ if ( !view || !view.opener ) {
8010
+ view = window;
8011
+ }
8012
+
8013
+ return view.getComputedStyle( elem );
8014
+ };
8015
+
8016
+
8017
+
8018
+ ( function() {
8019
+
8020
+ // Executing both pixelPosition & boxSizingReliable tests require only one layout
8021
+ // so they're executed at the same time to save the second computation.
8022
+ function computeStyleTests() {
8023
+
8024
+ // This is a singleton, we need to execute it only once
8025
+ if ( !div ) {
8026
+ return;
8027
+ }
8028
+
8029
+ div.style.cssText =
8030
+ "box-sizing:border-box;" +
8031
+ "position:relative;display:block;" +
8032
+ "margin:auto;border:1px;padding:1px;" +
8033
+ "top:1%;width:50%";
8034
+ div.innerHTML = "";
8035
+ documentElement.appendChild( container );
8036
+
8037
+ var divStyle = window.getComputedStyle( div );
8038
+ pixelPositionVal = divStyle.top !== "1%";
8039
+
8040
+ // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
8041
+ reliableMarginLeftVal = divStyle.marginLeft === "2px";
8042
+ boxSizingReliableVal = divStyle.width === "4px";
8043
+
8044
+ // Support: Android 4.0 - 4.3 only
8045
+ // Some styles come back with percentage values, even though they shouldn't
8046
+ div.style.marginRight = "50%";
8047
+ pixelMarginRightVal = divStyle.marginRight === "4px";
8048
+
8049
+ documentElement.removeChild( container );
8050
+
8051
+ // Nullify the div so it wouldn't be stored in the memory and
8052
+ // it will also be a sign that checks already performed
8053
+ div = null;
8054
+ }
8055
+
8056
+ var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
8057
+ container = document.createElement( "div" ),
8058
+ div = document.createElement( "div" );
8059
+
8060
+ // Finish early in limited (non-browser) environments
8061
+ if ( !div.style ) {
8062
+ return;
8063
+ }
8064
+
8065
+ // Support: IE <=9 - 11 only
8066
+ // Style of cloned element affects source element cloned (#8908)
8067
+ div.style.backgroundClip = "content-box";
8068
+ div.cloneNode( true ).style.backgroundClip = "";
8069
+ support.clearCloneStyle = div.style.backgroundClip === "content-box";
8070
+
8071
+ container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
8072
+ "padding:0;margin-top:1px;position:absolute";
8073
+ container.appendChild( div );
8074
+
8075
+ jQuery.extend( support, {
8076
+ pixelPosition: function() {
8077
+ computeStyleTests();
8078
+ return pixelPositionVal;
8079
+ },
8080
+ boxSizingReliable: function() {
8081
+ computeStyleTests();
8082
+ return boxSizingReliableVal;
8083
+ },
8084
+ pixelMarginRight: function() {
8085
+ computeStyleTests();
8086
+ return pixelMarginRightVal;
8087
+ },
8088
+ reliableMarginLeft: function() {
8089
+ computeStyleTests();
8090
+ return reliableMarginLeftVal;
8091
+ }
8092
+ } );
8093
+ } )();
8094
+
8095
+
8096
+ function curCSS( elem, name, computed ) {
8097
+ var width, minWidth, maxWidth, ret,
8098
+ style = elem.style;
8099
+
8100
+ computed = computed || getStyles( elem );
8101
+
8102
+ // Support: IE <=9 only
8103
+ // getPropertyValue is only needed for .css('filter') (#12537)
8104
+ if ( computed ) {
8105
+ ret = computed.getPropertyValue( name ) || computed[ name ];
8106
+
8107
+ if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
8108
+ ret = jQuery.style( elem, name );
8109
+ }
8110
+
8111
+ // A tribute to the "awesome hack by Dean Edwards"
8112
+ // Android Browser returns percentage for some values,
8113
+ // but width seems to be reliably pixels.
8114
+ // This is against the CSSOM draft spec:
8115
+ // https://drafts.csswg.org/cssom/#resolved-values
8116
+ if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
8117
+
8118
+ // Remember the original values
8119
+ width = style.width;
8120
+ minWidth = style.minWidth;
8121
+ maxWidth = style.maxWidth;
8122
+
8123
+ // Put in the new values to get a computed value out
8124
+ style.minWidth = style.maxWidth = style.width = ret;
8125
+ ret = computed.width;
8126
+
8127
+ // Revert the changed values
8128
+ style.width = width;
8129
+ style.minWidth = minWidth;
8130
+ style.maxWidth = maxWidth;
8131
+ }
8132
+ }
8133
+
8134
+ return ret !== undefined ?
8135
+
8136
+ // Support: IE <=9 - 11 only
8137
+ // IE returns zIndex value as an integer.
8138
+ ret + "" :
8139
+ ret;
8140
+ }
8141
+
8142
+
8143
+ function addGetHookIf( conditionFn, hookFn ) {
8144
+
8145
+ // Define the hook, we'll check on the first run if it's really needed.
8146
+ return {
8147
+ get: function() {
8148
+ if ( conditionFn() ) {
8149
+
8150
+ // Hook not needed (or it's not possible to use it due
8151
+ // to missing dependency), remove it.
8152
+ delete this.get;
8153
+ return;
8154
+ }
8155
+
8156
+ // Hook needed; redefine it so that the support test is not executed again.
8157
+ return ( this.get = hookFn ).apply( this, arguments );
8158
+ }
8159
+ };
8160
+ }
8161
+
8162
+
8163
+ var
8164
+
8165
+ // Swappable if display is none or starts with table
8166
+ // except "table", "table-cell", or "table-caption"
8167
+ // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
8168
+ rdisplayswap = /^(none|table(?!-c[ea]).+)/,
8169
+ cssShow = { position: "absolute", visibility: "hidden", display: "block" },
8170
+ cssNormalTransform = {
8171
+ letterSpacing: "0",
8172
+ fontWeight: "400"
8173
+ },
8174
+
8175
+ cssPrefixes = [ "Webkit", "Moz", "ms" ],
8176
+ emptyStyle = document.createElement( "div" ).style;
8177
+
8178
+ // Return a css property mapped to a potentially vendor prefixed property
8179
+ function vendorPropName( name ) {
8180
+
8181
+ // Shortcut for names that are not vendor prefixed
8182
+ if ( name in emptyStyle ) {
8183
+ return name;
8184
+ }
8185
+
8186
+ // Check for vendor prefixed names
8187
+ var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
8188
+ i = cssPrefixes.length;
8189
+
8190
+ while ( i-- ) {
8191
+ name = cssPrefixes[ i ] + capName;
8192
+ if ( name in emptyStyle ) {
8193
+ return name;
8194
+ }
8195
+ }
8196
+ }
8197
+
8198
+ function setPositiveNumber( elem, value, subtract ) {
8199
+
8200
+ // Any relative (+/-) values have already been
8201
+ // normalized at this point
8202
+ var matches = rcssNum.exec( value );
8203
+ return matches ?
8204
+
8205
+ // Guard against undefined "subtract", e.g., when used as in cssHooks
8206
+ Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
8207
+ value;
8208
+ }
8209
+
8210
+ function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
8211
+ var i,
8212
+ val = 0;
8213
+
8214
+ // If we already have the right measurement, avoid augmentation
8215
+ if ( extra === ( isBorderBox ? "border" : "content" ) ) {
8216
+ i = 4;
8217
+
8218
+ // Otherwise initialize for horizontal or vertical properties
8219
+ } else {
8220
+ i = name === "width" ? 1 : 0;
8221
+ }
8222
+
8223
+ for ( ; i < 4; i += 2 ) {
8224
+
8225
+ // Both box models exclude margin, so add it if we want it
8226
+ if ( extra === "margin" ) {
8227
+ val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
8228
+ }
8229
+
8230
+ if ( isBorderBox ) {
8231
+
8232
+ // border-box includes padding, so remove it if we want content
8233
+ if ( extra === "content" ) {
8234
+ val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
8235
+ }
8236
+
8237
+ // At this point, extra isn't border nor margin, so remove border
8238
+ if ( extra !== "margin" ) {
8239
+ val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
8240
+ }
8241
+ } else {
8242
+
8243
+ // At this point, extra isn't content, so add padding
8244
+ val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
8245
+
8246
+ // At this point, extra isn't content nor padding, so add border
8247
+ if ( extra !== "padding" ) {
8248
+ val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
8249
+ }
8250
+ }
8251
+ }
8252
+
8253
+ return val;
8254
+ }
8255
+
8256
+ function getWidthOrHeight( elem, name, extra ) {
8257
+
8258
+ // Start with offset property, which is equivalent to the border-box value
8259
+ var val,
8260
+ valueIsBorderBox = true,
8261
+ styles = getStyles( elem ),
8262
+ isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
8263
+
8264
+ // Support: IE <=11 only
8265
+ // Running getBoundingClientRect on a disconnected node
8266
+ // in IE throws an error.
8267
+ if ( elem.getClientRects().length ) {
8268
+ val = elem.getBoundingClientRect()[ name ];
8269
+ }
8270
+
8271
+ // Some non-html elements return undefined for offsetWidth, so check for null/undefined
8272
+ // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
8273
+ // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
8274
+ if ( val <= 0 || val == null ) {
8275
+
8276
+ // Fall back to computed then uncomputed css if necessary
8277
+ val = curCSS( elem, name, styles );
8278
+ if ( val < 0 || val == null ) {
8279
+ val = elem.style[ name ];
8280
+ }
8281
+
8282
+ // Computed unit is not pixels. Stop here and return.
8283
+ if ( rnumnonpx.test( val ) ) {
8284
+ return val;
8285
+ }
8286
+
8287
+ // Check for style in case a browser which returns unreliable values
8288
+ // for getComputedStyle silently falls back to the reliable elem.style
8289
+ valueIsBorderBox = isBorderBox &&
8290
+ ( support.boxSizingReliable() || val === elem.style[ name ] );
8291
+
8292
+ // Normalize "", auto, and prepare for extra
8293
+ val = parseFloat( val ) || 0;
8294
+ }
8295
+
8296
+ // Use the active box-sizing model to add/subtract irrelevant styles
8297
+ return ( val +
8298
+ augmentWidthOrHeight(
8299
+ elem,
8300
+ name,
8301
+ extra || ( isBorderBox ? "border" : "content" ),
8302
+ valueIsBorderBox,
8303
+ styles
8304
+ )
8305
+ ) + "px";
8306
+ }
8307
+
8308
+ jQuery.extend( {
8309
+
8310
+ // Add in style property hooks for overriding the default
8311
+ // behavior of getting and setting a style property
8312
+ cssHooks: {
8313
+ opacity: {
8314
+ get: function( elem, computed ) {
8315
+ if ( computed ) {
8316
+
8317
+ // We should always get a number back from opacity
8318
+ var ret = curCSS( elem, "opacity" );
8319
+ return ret === "" ? "1" : ret;
8320
+ }
8321
+ }
8322
+ }
8323
+ },
8324
+
8325
+ // Don't automatically add "px" to these possibly-unitless properties
8326
+ cssNumber: {
8327
+ "animationIterationCount": true,
8328
+ "columnCount": true,
8329
+ "fillOpacity": true,
8330
+ "flexGrow": true,
8331
+ "flexShrink": true,
8332
+ "fontWeight": true,
8333
+ "lineHeight": true,
8334
+ "opacity": true,
8335
+ "order": true,
8336
+ "orphans": true,
8337
+ "widows": true,
8338
+ "zIndex": true,
8339
+ "zoom": true
8340
+ },
8341
+
8342
+ // Add in properties whose names you wish to fix before
8343
+ // setting or getting the value
8344
+ cssProps: {
8345
+ "float": "cssFloat"
8346
+ },
8347
+
8348
+ // Get and set the style property on a DOM Node
8349
+ style: function( elem, name, value, extra ) {
8350
+
8351
+ // Don't set styles on text and comment nodes
8352
+ if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
8353
+ return;
8354
+ }
8355
+
8356
+ // Make sure that we're working with the right name
8357
+ var ret, type, hooks,
8358
+ origName = jQuery.camelCase( name ),
8359
+ style = elem.style;
8360
+
8361
+ name = jQuery.cssProps[ origName ] ||
8362
+ ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
8363
+
8364
+ // Gets hook for the prefixed version, then unprefixed version
8365
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
8366
+
8367
+ // Check if we're setting a value
8368
+ if ( value !== undefined ) {
8369
+ type = typeof value;
8370
+
8371
+ // Convert "+=" or "-=" to relative numbers (#7345)
8372
+ if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
8373
+ value = adjustCSS( elem, name, ret );
8374
+
8375
+ // Fixes bug #9237
8376
+ type = "number";
8377
+ }
8378
+
8379
+ // Make sure that null and NaN values aren't set (#7116)
8380
+ if ( value == null || value !== value ) {
8381
+ return;
8382
+ }
8383
+
8384
+ // If a number was passed in, add the unit (except for certain CSS properties)
8385
+ if ( type === "number" ) {
8386
+ value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
8387
+ }
8388
+
8389
+ // background-* props affect original clone's values
8390
+ if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
8391
+ style[ name ] = "inherit";
8392
+ }
8393
+
8394
+ // If a hook was provided, use that value, otherwise just set the specified value
8395
+ if ( !hooks || !( "set" in hooks ) ||
8396
+ ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
8397
+
8398
+ style[ name ] = value;
8399
+ }
8400
+
8401
+ } else {
8402
+
8403
+ // If a hook was provided get the non-computed value from there
8404
+ if ( hooks && "get" in hooks &&
8405
+ ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
8406
+
8407
+ return ret;
8408
+ }
8409
+
8410
+ // Otherwise just get the value from the style object
8411
+ return style[ name ];
8412
+ }
8413
+ },
8414
+
8415
+ css: function( elem, name, extra, styles ) {
8416
+ var val, num, hooks,
8417
+ origName = jQuery.camelCase( name );
8418
+
8419
+ // Make sure that we're working with the right name
8420
+ name = jQuery.cssProps[ origName ] ||
8421
+ ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
8422
+
8423
+ // Try prefixed name followed by the unprefixed name
8424
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
8425
+
8426
+ // If a hook was provided get the computed value from there
8427
+ if ( hooks && "get" in hooks ) {
8428
+ val = hooks.get( elem, true, extra );
8429
+ }
8430
+
8431
+ // Otherwise, if a way to get the computed value exists, use that
8432
+ if ( val === undefined ) {
8433
+ val = curCSS( elem, name, styles );
8434
+ }
8435
+
8436
+ // Convert "normal" to computed value
8437
+ if ( val === "normal" && name in cssNormalTransform ) {
8438
+ val = cssNormalTransform[ name ];
8439
+ }
8440
+
8441
+ // Make numeric if forced or a qualifier was provided and val looks numeric
8442
+ if ( extra === "" || extra ) {
8443
+ num = parseFloat( val );
8444
+ return extra === true || isFinite( num ) ? num || 0 : val;
8445
+ }
8446
+ return val;
8447
+ }
8448
+ } );
8449
+
8450
+ jQuery.each( [ "height", "width" ], function( i, name ) {
8451
+ jQuery.cssHooks[ name ] = {
8452
+ get: function( elem, computed, extra ) {
8453
+ if ( computed ) {
8454
+
8455
+ // Certain elements can have dimension info if we invisibly show them
8456
+ // but it must have a current display style that would benefit
8457
+ return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
8458
+
8459
+ // Support: Safari 8+
8460
+ // Table columns in Safari have non-zero offsetWidth & zero
8461
+ // getBoundingClientRect().width unless display is changed.
8462
+ // Support: IE <=11 only
8463
+ // Running getBoundingClientRect on a disconnected node
8464
+ // in IE throws an error.
8465
+ ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
8466
+ swap( elem, cssShow, function() {
8467
+ return getWidthOrHeight( elem, name, extra );
8468
+ } ) :
8469
+ getWidthOrHeight( elem, name, extra );
8470
+ }
8471
+ },
8472
+
8473
+ set: function( elem, value, extra ) {
8474
+ var matches,
8475
+ styles = extra && getStyles( elem ),
8476
+ subtract = extra && augmentWidthOrHeight(
8477
+ elem,
8478
+ name,
8479
+ extra,
8480
+ jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
8481
+ styles
8482
+ );
8483
+
8484
+ // Convert to pixels if value adjustment is needed
8485
+ if ( subtract && ( matches = rcssNum.exec( value ) ) &&
8486
+ ( matches[ 3 ] || "px" ) !== "px" ) {
8487
+
8488
+ elem.style[ name ] = value;
8489
+ value = jQuery.css( elem, name );
8490
+ }
8491
+
8492
+ return setPositiveNumber( elem, value, subtract );
8493
+ }
8494
+ };
8495
+ } );
8496
+
8497
+ jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
8498
+ function( elem, computed ) {
8499
+ if ( computed ) {
8500
+ return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
8501
+ elem.getBoundingClientRect().left -
8502
+ swap( elem, { marginLeft: 0 }, function() {
8503
+ return elem.getBoundingClientRect().left;
8504
+ } )
8505
+ ) + "px";
8506
+ }
8507
+ }
8508
+ );
8509
+
8510
+ // These hooks are used by animate to expand properties
8511
+ jQuery.each( {
8512
+ margin: "",
8513
+ padding: "",
8514
+ border: "Width"
8515
+ }, function( prefix, suffix ) {
8516
+ jQuery.cssHooks[ prefix + suffix ] = {
8517
+ expand: function( value ) {
8518
+ var i = 0,
8519
+ expanded = {},
8520
+
8521
+ // Assumes a single number if not a string
8522
+ parts = typeof value === "string" ? value.split( " " ) : [ value ];
8523
+
8524
+ for ( ; i < 4; i++ ) {
8525
+ expanded[ prefix + cssExpand[ i ] + suffix ] =
8526
+ parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
8527
+ }
8528
+
8529
+ return expanded;
8530
+ }
8531
+ };
8532
+
8533
+ if ( !rmargin.test( prefix ) ) {
8534
+ jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
8535
+ }
8536
+ } );
8537
+
8538
+ jQuery.fn.extend( {
8539
+ css: function( name, value ) {
8540
+ return access( this, function( elem, name, value ) {
8541
+ var styles, len,
8542
+ map = {},
8543
+ i = 0;
8544
+
8545
+ if ( jQuery.isArray( name ) ) {
8546
+ styles = getStyles( elem );
8547
+ len = name.length;
8548
+
8549
+ for ( ; i < len; i++ ) {
8550
+ map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
8551
+ }
8552
+
8553
+ return map;
8554
+ }
8555
+
8556
+ return value !== undefined ?
8557
+ jQuery.style( elem, name, value ) :
8558
+ jQuery.css( elem, name );
8559
+ }, name, value, arguments.length > 1 );
8560
+ }
8561
+ } );
8562
+
8563
+
8564
+ function Tween( elem, options, prop, end, easing ) {
8565
+ return new Tween.prototype.init( elem, options, prop, end, easing );
8566
+ }
8567
+ jQuery.Tween = Tween;
8568
+
8569
+ Tween.prototype = {
8570
+ constructor: Tween,
8571
+ init: function( elem, options, prop, end, easing, unit ) {
8572
+ this.elem = elem;
8573
+ this.prop = prop;
8574
+ this.easing = easing || jQuery.easing._default;
8575
+ this.options = options;
8576
+ this.start = this.now = this.cur();
8577
+ this.end = end;
8578
+ this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
8579
+ },
8580
+ cur: function() {
8581
+ var hooks = Tween.propHooks[ this.prop ];
8582
+
8583
+ return hooks && hooks.get ?
8584
+ hooks.get( this ) :
8585
+ Tween.propHooks._default.get( this );
8586
+ },
8587
+ run: function( percent ) {
8588
+ var eased,
8589
+ hooks = Tween.propHooks[ this.prop ];
8590
+
8591
+ if ( this.options.duration ) {
8592
+ this.pos = eased = jQuery.easing[ this.easing ](
8593
+ percent, this.options.duration * percent, 0, 1, this.options.duration
8594
+ );
8595
+ } else {
8596
+ this.pos = eased = percent;
8597
+ }
8598
+ this.now = ( this.end - this.start ) * eased + this.start;
8599
+
8600
+ if ( this.options.step ) {
8601
+ this.options.step.call( this.elem, this.now, this );
8602
+ }
8603
+
8604
+ if ( hooks && hooks.set ) {
8605
+ hooks.set( this );
8606
+ } else {
8607
+ Tween.propHooks._default.set( this );
8608
+ }
8609
+ return this;
8610
+ }
8611
+ };
8612
+
8613
+ Tween.prototype.init.prototype = Tween.prototype;
8614
+
8615
+ Tween.propHooks = {
8616
+ _default: {
8617
+ get: function( tween ) {
8618
+ var result;
8619
+
8620
+ // Use a property on the element directly when it is not a DOM element,
8621
+ // or when there is no matching style property that exists.
8622
+ if ( tween.elem.nodeType !== 1 ||
8623
+ tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
8624
+ return tween.elem[ tween.prop ];
8625
+ }
8626
+
8627
+ // Passing an empty string as a 3rd parameter to .css will automatically
8628
+ // attempt a parseFloat and fallback to a string if the parse fails.
8629
+ // Simple values such as "10px" are parsed to Float;
8630
+ // complex values such as "rotate(1rad)" are returned as-is.
8631
+ result = jQuery.css( tween.elem, tween.prop, "" );
8632
+
8633
+ // Empty strings, null, undefined and "auto" are converted to 0.
8634
+ return !result || result === "auto" ? 0 : result;
8635
+ },
8636
+ set: function( tween ) {
8637
+
8638
+ // Use step hook for back compat.
8639
+ // Use cssHook if its there.
8640
+ // Use .style if available and use plain properties where available.
8641
+ if ( jQuery.fx.step[ tween.prop ] ) {
8642
+ jQuery.fx.step[ tween.prop ]( tween );
8643
+ } else if ( tween.elem.nodeType === 1 &&
8644
+ ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
8645
+ jQuery.cssHooks[ tween.prop ] ) ) {
8646
+ jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
8647
+ } else {
8648
+ tween.elem[ tween.prop ] = tween.now;
8649
+ }
8650
+ }
8651
+ }
8652
+ };
8653
+
8654
+ // Support: IE <=9 only
8655
+ // Panic based approach to setting things on disconnected nodes
8656
+ Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
8657
+ set: function( tween ) {
8658
+ if ( tween.elem.nodeType && tween.elem.parentNode ) {
8659
+ tween.elem[ tween.prop ] = tween.now;
8660
+ }
8661
+ }
8662
+ };
8663
+
8664
+ jQuery.easing = {
8665
+ linear: function( p ) {
8666
+ return p;
8667
+ },
8668
+ swing: function( p ) {
8669
+ return 0.5 - Math.cos( p * Math.PI ) / 2;
8670
+ },
8671
+ _default: "swing"
8672
+ };
8673
+
8674
+ jQuery.fx = Tween.prototype.init;
8675
+
8676
+ // Back compat <1.8 extension point
8677
+ jQuery.fx.step = {};
8678
+
8679
+
8680
+
8681
+
8682
+ var
8683
+ fxNow, timerId,
8684
+ rfxtypes = /^(?:toggle|show|hide)$/,
8685
+ rrun = /queueHooks$/;
8686
+
8687
+ function raf() {
8688
+ if ( timerId ) {
8689
+ window.requestAnimationFrame( raf );
8690
+ jQuery.fx.tick();
8691
+ }
8692
+ }
8693
+
8694
+ // Animations created synchronously will run synchronously
8695
+ function createFxNow() {
8696
+ window.setTimeout( function() {
8697
+ fxNow = undefined;
8698
+ } );
8699
+ return ( fxNow = jQuery.now() );
8700
+ }
8701
+
8702
+ // Generate parameters to create a standard animation
8703
+ function genFx( type, includeWidth ) {
8704
+ var which,
8705
+ i = 0,
8706
+ attrs = { height: type };
8707
+
8708
+ // If we include width, step value is 1 to do all cssExpand values,
8709
+ // otherwise step value is 2 to skip over Left and Right
8710
+ includeWidth = includeWidth ? 1 : 0;
8711
+ for ( ; i < 4; i += 2 - includeWidth ) {
8712
+ which = cssExpand[ i ];
8713
+ attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
8714
+ }
8715
+
8716
+ if ( includeWidth ) {
8717
+ attrs.opacity = attrs.width = type;
8718
+ }
8719
+
8720
+ return attrs;
8721
+ }
8722
+
8723
+ function createTween( value, prop, animation ) {
8724
+ var tween,
8725
+ collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
8726
+ index = 0,
8727
+ length = collection.length;
8728
+ for ( ; index < length; index++ ) {
8729
+ if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
8730
+
8731
+ // We're done with this property
8732
+ return tween;
8733
+ }
8734
+ }
8735
+ }
8736
+
8737
+ function defaultPrefilter( elem, props, opts ) {
8738
+ var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
8739
+ isBox = "width" in props || "height" in props,
8740
+ anim = this,
8741
+ orig = {},
8742
+ style = elem.style,
8743
+ hidden = elem.nodeType && isHiddenWithinTree( elem ),
8744
+ dataShow = dataPriv.get( elem, "fxshow" );
8745
+
8746
+ // Queue-skipping animations hijack the fx hooks
8747
+ if ( !opts.queue ) {
8748
+ hooks = jQuery._queueHooks( elem, "fx" );
8749
+ if ( hooks.unqueued == null ) {
8750
+ hooks.unqueued = 0;
8751
+ oldfire = hooks.empty.fire;
8752
+ hooks.empty.fire = function() {
8753
+ if ( !hooks.unqueued ) {
8754
+ oldfire();
8755
+ }
8756
+ };
8757
+ }
8758
+ hooks.unqueued++;
8759
+
8760
+ anim.always( function() {
8761
+
8762
+ // Ensure the complete handler is called before this completes
8763
+ anim.always( function() {
8764
+ hooks.unqueued--;
8765
+ if ( !jQuery.queue( elem, "fx" ).length ) {
8766
+ hooks.empty.fire();
8767
+ }
8768
+ } );
8769
+ } );
8770
+ }
8771
+
8772
+ // Detect show/hide animations
8773
+ for ( prop in props ) {
8774
+ value = props[ prop ];
8775
+ if ( rfxtypes.test( value ) ) {
8776
+ delete props[ prop ];
8777
+ toggle = toggle || value === "toggle";
8778
+ if ( value === ( hidden ? "hide" : "show" ) ) {
8779
+
8780
+ // Pretend to be hidden if this is a "show" and
8781
+ // there is still data from a stopped show/hide
8782
+ if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
8783
+ hidden = true;
8784
+
8785
+ // Ignore all other no-op show/hide data
8786
+ } else {
8787
+ continue;
8788
+ }
8789
+ }
8790
+ orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
8791
+ }
8792
+ }
8793
+
8794
+ // Bail out if this is a no-op like .hide().hide()
8795
+ propTween = !jQuery.isEmptyObject( props );
8796
+ if ( !propTween && jQuery.isEmptyObject( orig ) ) {
8797
+ return;
8798
+ }
8799
+
8800
+ // Restrict "overflow" and "display" styles during box animations
8801
+ if ( isBox && elem.nodeType === 1 ) {
8802
+
8803
+ // Support: IE <=9 - 11, Edge 12 - 13
8804
+ // Record all 3 overflow attributes because IE does not infer the shorthand
8805
+ // from identically-valued overflowX and overflowY
8806
+ opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
8807
+
8808
+ // Identify a display type, preferring old show/hide data over the CSS cascade
8809
+ restoreDisplay = dataShow && dataShow.display;
8810
+ if ( restoreDisplay == null ) {
8811
+ restoreDisplay = dataPriv.get( elem, "display" );
8812
+ }
8813
+ display = jQuery.css( elem, "display" );
8814
+ if ( display === "none" ) {
8815
+ if ( restoreDisplay ) {
8816
+ display = restoreDisplay;
8817
+ } else {
8818
+
8819
+ // Get nonempty value(s) by temporarily forcing visibility
8820
+ showHide( [ elem ], true );
8821
+ restoreDisplay = elem.style.display || restoreDisplay;
8822
+ display = jQuery.css( elem, "display" );
8823
+ showHide( [ elem ] );
8824
+ }
8825
+ }
8826
+
8827
+ // Animate inline elements as inline-block
8828
+ if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
8829
+ if ( jQuery.css( elem, "float" ) === "none" ) {
8830
+
8831
+ // Restore the original display value at the end of pure show/hide animations
8832
+ if ( !propTween ) {
8833
+ anim.done( function() {
8834
+ style.display = restoreDisplay;
8835
+ } );
8836
+ if ( restoreDisplay == null ) {
8837
+ display = style.display;
8838
+ restoreDisplay = display === "none" ? "" : display;
8839
+ }
8840
+ }
8841
+ style.display = "inline-block";
8842
+ }
8843
+ }
8844
+ }
8845
+
8846
+ if ( opts.overflow ) {
8847
+ style.overflow = "hidden";
8848
+ anim.always( function() {
8849
+ style.overflow = opts.overflow[ 0 ];
8850
+ style.overflowX = opts.overflow[ 1 ];
8851
+ style.overflowY = opts.overflow[ 2 ];
8852
+ } );
8853
+ }
8854
+
8855
+ // Implement show/hide animations
8856
+ propTween = false;
8857
+ for ( prop in orig ) {
8858
+
8859
+ // General show/hide setup for this element animation
8860
+ if ( !propTween ) {
8861
+ if ( dataShow ) {
8862
+ if ( "hidden" in dataShow ) {
8863
+ hidden = dataShow.hidden;
8864
+ }
8865
+ } else {
8866
+ dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
8867
+ }
8868
+
8869
+ // Store hidden/visible for toggle so `.stop().toggle()` "reverses"
8870
+ if ( toggle ) {
8871
+ dataShow.hidden = !hidden;
8872
+ }
8873
+
8874
+ // Show elements before animating them
8875
+ if ( hidden ) {
8876
+ showHide( [ elem ], true );
8877
+ }
8878
+
8879
+ /* eslint-disable no-loop-func */
8880
+
8881
+ anim.done( function() {
8882
+
8883
+ /* eslint-enable no-loop-func */
8884
+
8885
+ // The final step of a "hide" animation is actually hiding the element
8886
+ if ( !hidden ) {
8887
+ showHide( [ elem ] );
8888
+ }
8889
+ dataPriv.remove( elem, "fxshow" );
8890
+ for ( prop in orig ) {
8891
+ jQuery.style( elem, prop, orig[ prop ] );
8892
+ }
8893
+ } );
8894
+ }
8895
+
8896
+ // Per-property setup
8897
+ propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
8898
+ if ( !( prop in dataShow ) ) {
8899
+ dataShow[ prop ] = propTween.start;
8900
+ if ( hidden ) {
8901
+ propTween.end = propTween.start;
8902
+ propTween.start = 0;
8903
+ }
8904
+ }
8905
+ }
8906
+ }
8907
+
8908
+ function propFilter( props, specialEasing ) {
8909
+ var index, name, easing, value, hooks;
8910
+
8911
+ // camelCase, specialEasing and expand cssHook pass
8912
+ for ( index in props ) {
8913
+ name = jQuery.camelCase( index );
8914
+ easing = specialEasing[ name ];
8915
+ value = props[ index ];
8916
+ if ( jQuery.isArray( value ) ) {
8917
+ easing = value[ 1 ];
8918
+ value = props[ index ] = value[ 0 ];
8919
+ }
8920
+
8921
+ if ( index !== name ) {
8922
+ props[ name ] = value;
8923
+ delete props[ index ];
8924
+ }
8925
+
8926
+ hooks = jQuery.cssHooks[ name ];
8927
+ if ( hooks && "expand" in hooks ) {
8928
+ value = hooks.expand( value );
8929
+ delete props[ name ];
8930
+
8931
+ // Not quite $.extend, this won't overwrite existing keys.
8932
+ // Reusing 'index' because we have the correct "name"
8933
+ for ( index in value ) {
8934
+ if ( !( index in props ) ) {
8935
+ props[ index ] = value[ index ];
8936
+ specialEasing[ index ] = easing;
8937
+ }
8938
+ }
8939
+ } else {
8940
+ specialEasing[ name ] = easing;
8941
+ }
8942
+ }
8943
+ }
8944
+
8945
+ function Animation( elem, properties, options ) {
8946
+ var result,
8947
+ stopped,
8948
+ index = 0,
8949
+ length = Animation.prefilters.length,
8950
+ deferred = jQuery.Deferred().always( function() {
8951
+
8952
+ // Don't match elem in the :animated selector
8953
+ delete tick.elem;
8954
+ } ),
8955
+ tick = function() {
8956
+ if ( stopped ) {
8957
+ return false;
8958
+ }
8959
+ var currentTime = fxNow || createFxNow(),
8960
+ remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
8961
+
8962
+ // Support: Android 2.3 only
8963
+ // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
8964
+ temp = remaining / animation.duration || 0,
8965
+ percent = 1 - temp,
8966
+ index = 0,
8967
+ length = animation.tweens.length;
8968
+
8969
+ for ( ; index < length; index++ ) {
8970
+ animation.tweens[ index ].run( percent );
8971
+ }
8972
+
8973
+ deferred.notifyWith( elem, [ animation, percent, remaining ] );
8974
+
8975
+ if ( percent < 1 && length ) {
8976
+ return remaining;
8977
+ } else {
8978
+ deferred.resolveWith( elem, [ animation ] );
8979
+ return false;
8980
+ }
8981
+ },
8982
+ animation = deferred.promise( {
8983
+ elem: elem,
8984
+ props: jQuery.extend( {}, properties ),
8985
+ opts: jQuery.extend( true, {
8986
+ specialEasing: {},
8987
+ easing: jQuery.easing._default
8988
+ }, options ),
8989
+ originalProperties: properties,
8990
+ originalOptions: options,
8991
+ startTime: fxNow || createFxNow(),
8992
+ duration: options.duration,
8993
+ tweens: [],
8994
+ createTween: function( prop, end ) {
8995
+ var tween = jQuery.Tween( elem, animation.opts, prop, end,
8996
+ animation.opts.specialEasing[ prop ] || animation.opts.easing );
8997
+ animation.tweens.push( tween );
8998
+ return tween;
8999
+ },
9000
+ stop: function( gotoEnd ) {
9001
+ var index = 0,
9002
+
9003
+ // If we are going to the end, we want to run all the tweens
9004
+ // otherwise we skip this part
9005
+ length = gotoEnd ? animation.tweens.length : 0;
9006
+ if ( stopped ) {
9007
+ return this;
9008
+ }
9009
+ stopped = true;
9010
+ for ( ; index < length; index++ ) {
9011
+ animation.tweens[ index ].run( 1 );
9012
+ }
9013
+
9014
+ // Resolve when we played the last frame; otherwise, reject
9015
+ if ( gotoEnd ) {
9016
+ deferred.notifyWith( elem, [ animation, 1, 0 ] );
9017
+ deferred.resolveWith( elem, [ animation, gotoEnd ] );
9018
+ } else {
9019
+ deferred.rejectWith( elem, [ animation, gotoEnd ] );
9020
+ }
9021
+ return this;
9022
+ }
9023
+ } ),
9024
+ props = animation.props;
9025
+
9026
+ propFilter( props, animation.opts.specialEasing );
9027
+
9028
+ for ( ; index < length; index++ ) {
9029
+ result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
9030
+ if ( result ) {
9031
+ if ( jQuery.isFunction( result.stop ) ) {
9032
+ jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
9033
+ jQuery.proxy( result.stop, result );
9034
+ }
9035
+ return result;
9036
+ }
9037
+ }
9038
+
9039
+ jQuery.map( props, createTween, animation );
9040
+
9041
+ if ( jQuery.isFunction( animation.opts.start ) ) {
9042
+ animation.opts.start.call( elem, animation );
9043
+ }
9044
+
9045
+ jQuery.fx.timer(
9046
+ jQuery.extend( tick, {
9047
+ elem: elem,
9048
+ anim: animation,
9049
+ queue: animation.opts.queue
9050
+ } )
9051
+ );
9052
+
9053
+ // attach callbacks from options
9054
+ return animation.progress( animation.opts.progress )
9055
+ .done( animation.opts.done, animation.opts.complete )
9056
+ .fail( animation.opts.fail )
9057
+ .always( animation.opts.always );
9058
+ }
9059
+
9060
+ jQuery.Animation = jQuery.extend( Animation, {
9061
+
9062
+ tweeners: {
9063
+ "*": [ function( prop, value ) {
9064
+ var tween = this.createTween( prop, value );
9065
+ adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
9066
+ return tween;
9067
+ } ]
9068
+ },
9069
+
9070
+ tweener: function( props, callback ) {
9071
+ if ( jQuery.isFunction( props ) ) {
9072
+ callback = props;
9073
+ props = [ "*" ];
9074
+ } else {
9075
+ props = props.match( rnothtmlwhite );
9076
+ }
9077
+
9078
+ var prop,
9079
+ index = 0,
9080
+ length = props.length;
9081
+
9082
+ for ( ; index < length; index++ ) {
9083
+ prop = props[ index ];
9084
+ Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
9085
+ Animation.tweeners[ prop ].unshift( callback );
9086
+ }
9087
+ },
9088
+
9089
+ prefilters: [ defaultPrefilter ],
9090
+
9091
+ prefilter: function( callback, prepend ) {
9092
+ if ( prepend ) {
9093
+ Animation.prefilters.unshift( callback );
9094
+ } else {
9095
+ Animation.prefilters.push( callback );
9096
+ }
9097
+ }
9098
+ } );
9099
+
9100
+ jQuery.speed = function( speed, easing, fn ) {
9101
+ var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
9102
+ complete: fn || !fn && easing ||
9103
+ jQuery.isFunction( speed ) && speed,
9104
+ duration: speed,
9105
+ easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
9106
+ };
9107
+
9108
+ // Go to the end state if fx are off or if document is hidden
9109
+ if ( jQuery.fx.off || document.hidden ) {
9110
+ opt.duration = 0;
9111
+
9112
+ } else {
9113
+ if ( typeof opt.duration !== "number" ) {
9114
+ if ( opt.duration in jQuery.fx.speeds ) {
9115
+ opt.duration = jQuery.fx.speeds[ opt.duration ];
9116
+
9117
+ } else {
9118
+ opt.duration = jQuery.fx.speeds._default;
9119
+ }
9120
+ }
9121
+ }
9122
+
9123
+ // Normalize opt.queue - true/undefined/null -> "fx"
9124
+ if ( opt.queue == null || opt.queue === true ) {
9125
+ opt.queue = "fx";
9126
+ }
9127
+
9128
+ // Queueing
9129
+ opt.old = opt.complete;
9130
+
9131
+ opt.complete = function() {
9132
+ if ( jQuery.isFunction( opt.old ) ) {
9133
+ opt.old.call( this );
9134
+ }
9135
+
9136
+ if ( opt.queue ) {
9137
+ jQuery.dequeue( this, opt.queue );
9138
+ }
9139
+ };
9140
+
9141
+ return opt;
9142
+ };
9143
+
9144
+ jQuery.fn.extend( {
9145
+ fadeTo: function( speed, to, easing, callback ) {
9146
+
9147
+ // Show any hidden elements after setting opacity to 0
9148
+ return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
9149
+
9150
+ // Animate to the value specified
9151
+ .end().animate( { opacity: to }, speed, easing, callback );
9152
+ },
9153
+ animate: function( prop, speed, easing, callback ) {
9154
+ var empty = jQuery.isEmptyObject( prop ),
9155
+ optall = jQuery.speed( speed, easing, callback ),
9156
+ doAnimation = function() {
9157
+
9158
+ // Operate on a copy of prop so per-property easing won't be lost
9159
+ var anim = Animation( this, jQuery.extend( {}, prop ), optall );
9160
+
9161
+ // Empty animations, or finishing resolves immediately
9162
+ if ( empty || dataPriv.get( this, "finish" ) ) {
9163
+ anim.stop( true );
9164
+ }
9165
+ };
9166
+ doAnimation.finish = doAnimation;
9167
+
9168
+ return empty || optall.queue === false ?
9169
+ this.each( doAnimation ) :
9170
+ this.queue( optall.queue, doAnimation );
9171
+ },
9172
+ stop: function( type, clearQueue, gotoEnd ) {
9173
+ var stopQueue = function( hooks ) {
9174
+ var stop = hooks.stop;
9175
+ delete hooks.stop;
9176
+ stop( gotoEnd );
9177
+ };
9178
+
9179
+ if ( typeof type !== "string" ) {
9180
+ gotoEnd = clearQueue;
9181
+ clearQueue = type;
9182
+ type = undefined;
9183
+ }
9184
+ if ( clearQueue && type !== false ) {
9185
+ this.queue( type || "fx", [] );
9186
+ }
9187
+
9188
+ return this.each( function() {
9189
+ var dequeue = true,
9190
+ index = type != null && type + "queueHooks",
9191
+ timers = jQuery.timers,
9192
+ data = dataPriv.get( this );
9193
+
9194
+ if ( index ) {
9195
+ if ( data[ index ] && data[ index ].stop ) {
9196
+ stopQueue( data[ index ] );
9197
+ }
9198
+ } else {
9199
+ for ( index in data ) {
9200
+ if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
9201
+ stopQueue( data[ index ] );
9202
+ }
9203
+ }
9204
+ }
9205
+
9206
+ for ( index = timers.length; index--; ) {
9207
+ if ( timers[ index ].elem === this &&
9208
+ ( type == null || timers[ index ].queue === type ) ) {
9209
+
9210
+ timers[ index ].anim.stop( gotoEnd );
9211
+ dequeue = false;
9212
+ timers.splice( index, 1 );
9213
+ }
9214
+ }
9215
+
9216
+ // Start the next in the queue if the last step wasn't forced.
9217
+ // Timers currently will call their complete callbacks, which
9218
+ // will dequeue but only if they were gotoEnd.
9219
+ if ( dequeue || !gotoEnd ) {
9220
+ jQuery.dequeue( this, type );
9221
+ }
9222
+ } );
9223
+ },
9224
+ finish: function( type ) {
9225
+ if ( type !== false ) {
9226
+ type = type || "fx";
9227
+ }
9228
+ return this.each( function() {
9229
+ var index,
9230
+ data = dataPriv.get( this ),
9231
+ queue = data[ type + "queue" ],
9232
+ hooks = data[ type + "queueHooks" ],
9233
+ timers = jQuery.timers,
9234
+ length = queue ? queue.length : 0;
9235
+
9236
+ // Enable finishing flag on private data
9237
+ data.finish = true;
9238
+
9239
+ // Empty the queue first
9240
+ jQuery.queue( this, type, [] );
9241
+
9242
+ if ( hooks && hooks.stop ) {
9243
+ hooks.stop.call( this, true );
9244
+ }
9245
+
9246
+ // Look for any active animations, and finish them
9247
+ for ( index = timers.length; index--; ) {
9248
+ if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
9249
+ timers[ index ].anim.stop( true );
9250
+ timers.splice( index, 1 );
9251
+ }
9252
+ }
9253
+
9254
+ // Look for any animations in the old queue and finish them
9255
+ for ( index = 0; index < length; index++ ) {
9256
+ if ( queue[ index ] && queue[ index ].finish ) {
9257
+ queue[ index ].finish.call( this );
9258
+ }
9259
+ }
9260
+
9261
+ // Turn off finishing flag
9262
+ delete data.finish;
9263
+ } );
9264
+ }
9265
+ } );
9266
+
9267
+ jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
9268
+ var cssFn = jQuery.fn[ name ];
9269
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
9270
+ return speed == null || typeof speed === "boolean" ?
9271
+ cssFn.apply( this, arguments ) :
9272
+ this.animate( genFx( name, true ), speed, easing, callback );
9273
+ };
9274
+ } );
9275
+
9276
+ // Generate shortcuts for custom animations
9277
+ jQuery.each( {
9278
+ slideDown: genFx( "show" ),
9279
+ slideUp: genFx( "hide" ),
9280
+ slideToggle: genFx( "toggle" ),
9281
+ fadeIn: { opacity: "show" },
9282
+ fadeOut: { opacity: "hide" },
9283
+ fadeToggle: { opacity: "toggle" }
9284
+ }, function( name, props ) {
9285
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
9286
+ return this.animate( props, speed, easing, callback );
9287
+ };
9288
+ } );
9289
+
9290
+ jQuery.timers = [];
9291
+ jQuery.fx.tick = function() {
9292
+ var timer,
9293
+ i = 0,
9294
+ timers = jQuery.timers;
9295
+
9296
+ fxNow = jQuery.now();
9297
+
9298
+ for ( ; i < timers.length; i++ ) {
9299
+ timer = timers[ i ];
9300
+
9301
+ // Checks the timer has not already been removed
9302
+ if ( !timer() && timers[ i ] === timer ) {
9303
+ timers.splice( i--, 1 );
9304
+ }
9305
+ }
9306
+
9307
+ if ( !timers.length ) {
9308
+ jQuery.fx.stop();
9309
+ }
9310
+ fxNow = undefined;
9311
+ };
9312
+
9313
+ jQuery.fx.timer = function( timer ) {
9314
+ jQuery.timers.push( timer );
9315
+ if ( timer() ) {
9316
+ jQuery.fx.start();
9317
+ } else {
9318
+ jQuery.timers.pop();
9319
+ }
9320
+ };
9321
+
9322
+ jQuery.fx.interval = 13;
9323
+ jQuery.fx.start = function() {
9324
+ if ( !timerId ) {
9325
+ timerId = window.requestAnimationFrame ?
9326
+ window.requestAnimationFrame( raf ) :
9327
+ window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
9328
+ }
9329
+ };
9330
+
9331
+ jQuery.fx.stop = function() {
9332
+ if ( window.cancelAnimationFrame ) {
9333
+ window.cancelAnimationFrame( timerId );
9334
+ } else {
9335
+ window.clearInterval( timerId );
9336
+ }
9337
+
9338
+ timerId = null;
9339
+ };
9340
+
9341
+ jQuery.fx.speeds = {
9342
+ slow: 600,
9343
+ fast: 200,
9344
+
9345
+ // Default speed
9346
+ _default: 400
9347
+ };
9348
+
9349
+
9350
+ // Based off of the plugin by Clint Helfers, with permission.
9351
+ // https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
9352
+ jQuery.fn.delay = function( time, type ) {
9353
+ time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
9354
+ type = type || "fx";
9355
+
9356
+ return this.queue( type, function( next, hooks ) {
9357
+ var timeout = window.setTimeout( next, time );
9358
+ hooks.stop = function() {
9359
+ window.clearTimeout( timeout );
9360
+ };
9361
+ } );
9362
+ };
9363
+
9364
+
9365
+ ( function() {
9366
+ var input = document.createElement( "input" ),
9367
+ select = document.createElement( "select" ),
9368
+ opt = select.appendChild( document.createElement( "option" ) );
9369
+
9370
+ input.type = "checkbox";
9371
+
9372
+ // Support: Android <=4.3 only
9373
+ // Default value for a checkbox should be "on"
9374
+ support.checkOn = input.value !== "";
9375
+
9376
+ // Support: IE <=11 only
9377
+ // Must access selectedIndex to make default options select
9378
+ support.optSelected = opt.selected;
9379
+
9380
+ // Support: IE <=11 only
9381
+ // An input loses its value after becoming a radio
9382
+ input = document.createElement( "input" );
9383
+ input.value = "t";
9384
+ input.type = "radio";
9385
+ support.radioValue = input.value === "t";
9386
+ } )();
9387
+
9388
+
9389
+ var boolHook,
9390
+ attrHandle = jQuery.expr.attrHandle;
9391
+
9392
+ jQuery.fn.extend( {
9393
+ attr: function( name, value ) {
9394
+ return access( this, jQuery.attr, name, value, arguments.length > 1 );
9395
+ },
9396
+
9397
+ removeAttr: function( name ) {
9398
+ return this.each( function() {
9399
+ jQuery.removeAttr( this, name );
9400
+ } );
9401
+ }
9402
+ } );
9403
+
9404
+ jQuery.extend( {
9405
+ attr: function( elem, name, value ) {
9406
+ var ret, hooks,
9407
+ nType = elem.nodeType;
9408
+
9409
+ // Don't get/set attributes on text, comment and attribute nodes
9410
+ if ( nType === 3 || nType === 8 || nType === 2 ) {
9411
+ return;
9412
+ }
9413
+
9414
+ // Fallback to prop when attributes are not supported
9415
+ if ( typeof elem.getAttribute === "undefined" ) {
9416
+ return jQuery.prop( elem, name, value );
9417
+ }
9418
+
9419
+ // Attribute hooks are determined by the lowercase version
9420
+ // Grab necessary hook if one is defined
9421
+ if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
9422
+ hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
9423
+ ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
9424
+ }
9425
+
9426
+ if ( value !== undefined ) {
9427
+ if ( value === null ) {
9428
+ jQuery.removeAttr( elem, name );
9429
+ return;
9430
+ }
9431
+
9432
+ if ( hooks && "set" in hooks &&
9433
+ ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
9434
+ return ret;
9435
+ }
9436
+
9437
+ elem.setAttribute( name, value + "" );
9438
+ return value;
9439
+ }
9440
+
9441
+ if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
9442
+ return ret;
9443
+ }
9444
+
9445
+ ret = jQuery.find.attr( elem, name );
9446
+
9447
+ // Non-existent attributes return null, we normalize to undefined
9448
+ return ret == null ? undefined : ret;
9449
+ },
9450
+
9451
+ attrHooks: {
9452
+ type: {
9453
+ set: function( elem, value ) {
9454
+ if ( !support.radioValue && value === "radio" &&
9455
+ jQuery.nodeName( elem, "input" ) ) {
9456
+ var val = elem.value;
9457
+ elem.setAttribute( "type", value );
9458
+ if ( val ) {
9459
+ elem.value = val;
9460
+ }
9461
+ return value;
9462
+ }
9463
+ }
9464
+ }
9465
+ },
9466
+
9467
+ removeAttr: function( elem, value ) {
9468
+ var name,
9469
+ i = 0,
9470
+
9471
+ // Attribute names can contain non-HTML whitespace characters
9472
+ // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
9473
+ attrNames = value && value.match( rnothtmlwhite );
9474
+
9475
+ if ( attrNames && elem.nodeType === 1 ) {
9476
+ while ( ( name = attrNames[ i++ ] ) ) {
9477
+ elem.removeAttribute( name );
9478
+ }
9479
+ }
9480
+ }
9481
+ } );
9482
+
9483
+ // Hooks for boolean attributes
9484
+ boolHook = {
9485
+ set: function( elem, value, name ) {
9486
+ if ( value === false ) {
9487
+
9488
+ // Remove boolean attributes when set to false
9489
+ jQuery.removeAttr( elem, name );
9490
+ } else {
9491
+ elem.setAttribute( name, name );
9492
+ }
9493
+ return name;
9494
+ }
9495
+ };
9496
+
9497
+ jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
9498
+ var getter = attrHandle[ name ] || jQuery.find.attr;
9499
+
9500
+ attrHandle[ name ] = function( elem, name, isXML ) {
9501
+ var ret, handle,
9502
+ lowercaseName = name.toLowerCase();
9503
+
9504
+ if ( !isXML ) {
9505
+
9506
+ // Avoid an infinite loop by temporarily removing this function from the getter
9507
+ handle = attrHandle[ lowercaseName ];
9508
+ attrHandle[ lowercaseName ] = ret;
9509
+ ret = getter( elem, name, isXML ) != null ?
9510
+ lowercaseName :
9511
+ null;
9512
+ attrHandle[ lowercaseName ] = handle;
9513
+ }
9514
+ return ret;
9515
+ };
9516
+ } );
9517
+
9518
+
9519
+
9520
+
9521
+ var rfocusable = /^(?:input|select|textarea|button)$/i,
9522
+ rclickable = /^(?:a|area)$/i;
9523
+
9524
+ jQuery.fn.extend( {
9525
+ prop: function( name, value ) {
9526
+ return access( this, jQuery.prop, name, value, arguments.length > 1 );
9527
+ },
9528
+
9529
+ removeProp: function( name ) {
9530
+ return this.each( function() {
9531
+ delete this[ jQuery.propFix[ name ] || name ];
9532
+ } );
9533
+ }
9534
+ } );
9535
+
9536
+ jQuery.extend( {
9537
+ prop: function( elem, name, value ) {
9538
+ var ret, hooks,
9539
+ nType = elem.nodeType;
9540
+
9541
+ // Don't get/set properties on text, comment and attribute nodes
9542
+ if ( nType === 3 || nType === 8 || nType === 2 ) {
9543
+ return;
9544
+ }
9545
+
9546
+ if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
9547
+
9548
+ // Fix name and attach hooks
9549
+ name = jQuery.propFix[ name ] || name;
9550
+ hooks = jQuery.propHooks[ name ];
9551
+ }
9552
+
9553
+ if ( value !== undefined ) {
9554
+ if ( hooks && "set" in hooks &&
9555
+ ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
9556
+ return ret;
9557
+ }
9558
+
9559
+ return ( elem[ name ] = value );
9560
+ }
9561
+
9562
+ if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
9563
+ return ret;
9564
+ }
9565
+
9566
+ return elem[ name ];
9567
+ },
9568
+
9569
+ propHooks: {
9570
+ tabIndex: {
9571
+ get: function( elem ) {
9572
+
9573
+ // Support: IE <=9 - 11 only
9574
+ // elem.tabIndex doesn't always return the
9575
+ // correct value when it hasn't been explicitly set
9576
+ // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
9577
+ // Use proper attribute retrieval(#12072)
9578
+ var tabindex = jQuery.find.attr( elem, "tabindex" );
9579
+
9580
+ if ( tabindex ) {
9581
+ return parseInt( tabindex, 10 );
9582
+ }
9583
+
9584
+ if (
9585
+ rfocusable.test( elem.nodeName ) ||
9586
+ rclickable.test( elem.nodeName ) &&
9587
+ elem.href
9588
+ ) {
9589
+ return 0;
9590
+ }
9591
+
9592
+ return -1;
9593
+ }
9594
+ }
9595
+ },
9596
+
9597
+ propFix: {
9598
+ "for": "htmlFor",
9599
+ "class": "className"
9600
+ }
9601
+ } );
9602
+
9603
+ // Support: IE <=11 only
9604
+ // Accessing the selectedIndex property
9605
+ // forces the browser to respect setting selected
9606
+ // on the option
9607
+ // The getter ensures a default option is selected
9608
+ // when in an optgroup
9609
+ // eslint rule "no-unused-expressions" is disabled for this code
9610
+ // since it considers such accessions noop
9611
+ if ( !support.optSelected ) {
9612
+ jQuery.propHooks.selected = {
9613
+ get: function( elem ) {
9614
+
9615
+ /* eslint no-unused-expressions: "off" */
9616
+
9617
+ var parent = elem.parentNode;
9618
+ if ( parent && parent.parentNode ) {
9619
+ parent.parentNode.selectedIndex;
9620
+ }
9621
+ return null;
9622
+ },
9623
+ set: function( elem ) {
9624
+
9625
+ /* eslint no-unused-expressions: "off" */
9626
+
9627
+ var parent = elem.parentNode;
9628
+ if ( parent ) {
9629
+ parent.selectedIndex;
9630
+
9631
+ if ( parent.parentNode ) {
9632
+ parent.parentNode.selectedIndex;
9633
+ }
9634
+ }
9635
+ }
9636
+ };
9637
+ }
9638
+
9639
+ jQuery.each( [
9640
+ "tabIndex",
9641
+ "readOnly",
9642
+ "maxLength",
9643
+ "cellSpacing",
9644
+ "cellPadding",
9645
+ "rowSpan",
9646
+ "colSpan",
9647
+ "useMap",
9648
+ "frameBorder",
9649
+ "contentEditable"
9650
+ ], function() {
9651
+ jQuery.propFix[ this.toLowerCase() ] = this;
9652
+ } );
9653
+
9654
+
9655
+
9656
+
9657
+ // Strip and collapse whitespace according to HTML spec
9658
+ // https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace
9659
+ function stripAndCollapse( value ) {
9660
+ var tokens = value.match( rnothtmlwhite ) || [];
9661
+ return tokens.join( " " );
9662
+ }
9663
+
9664
+
9665
+ function getClass( elem ) {
9666
+ return elem.getAttribute && elem.getAttribute( "class" ) || "";
9667
+ }
9668
+
9669
+ jQuery.fn.extend( {
9670
+ addClass: function( value ) {
9671
+ var classes, elem, cur, curValue, clazz, j, finalValue,
9672
+ i = 0;
9673
+
9674
+ if ( jQuery.isFunction( value ) ) {
9675
+ return this.each( function( j ) {
9676
+ jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
9677
+ } );
9678
+ }
9679
+
9680
+ if ( typeof value === "string" && value ) {
9681
+ classes = value.match( rnothtmlwhite ) || [];
9682
+
9683
+ while ( ( elem = this[ i++ ] ) ) {
9684
+ curValue = getClass( elem );
9685
+ cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
9686
+
9687
+ if ( cur ) {
9688
+ j = 0;
9689
+ while ( ( clazz = classes[ j++ ] ) ) {
9690
+ if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
9691
+ cur += clazz + " ";
9692
+ }
9693
+ }
9694
+
9695
+ // Only assign if different to avoid unneeded rendering.
9696
+ finalValue = stripAndCollapse( cur );
9697
+ if ( curValue !== finalValue ) {
9698
+ elem.setAttribute( "class", finalValue );
9699
+ }
9700
+ }
9701
+ }
9702
+ }
9703
+
9704
+ return this;
9705
+ },
9706
+
9707
+ removeClass: function( value ) {
9708
+ var classes, elem, cur, curValue, clazz, j, finalValue,
9709
+ i = 0;
9710
+
9711
+ if ( jQuery.isFunction( value ) ) {
9712
+ return this.each( function( j ) {
9713
+ jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
9714
+ } );
9715
+ }
9716
+
9717
+ if ( !arguments.length ) {
9718
+ return this.attr( "class", "" );
9719
+ }
9720
+
9721
+ if ( typeof value === "string" && value ) {
9722
+ classes = value.match( rnothtmlwhite ) || [];
9723
+
9724
+ while ( ( elem = this[ i++ ] ) ) {
9725
+ curValue = getClass( elem );
9726
+
9727
+ // This expression is here for better compressibility (see addClass)
9728
+ cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
9729
+
9730
+ if ( cur ) {
9731
+ j = 0;
9732
+ while ( ( clazz = classes[ j++ ] ) ) {
9733
+
9734
+ // Remove *all* instances
9735
+ while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
9736
+ cur = cur.replace( " " + clazz + " ", " " );
9737
+ }
9738
+ }
9739
+
9740
+ // Only assign if different to avoid unneeded rendering.
9741
+ finalValue = stripAndCollapse( cur );
9742
+ if ( curValue !== finalValue ) {
9743
+ elem.setAttribute( "class", finalValue );
9744
+ }
9745
+ }
9746
+ }
9747
+ }
9748
+
9749
+ return this;
9750
+ },
9751
+
9752
+ toggleClass: function( value, stateVal ) {
9753
+ var type = typeof value;
9754
+
9755
+ if ( typeof stateVal === "boolean" && type === "string" ) {
9756
+ return stateVal ? this.addClass( value ) : this.removeClass( value );
9757
+ }
9758
+
9759
+ if ( jQuery.isFunction( value ) ) {
9760
+ return this.each( function( i ) {
9761
+ jQuery( this ).toggleClass(
9762
+ value.call( this, i, getClass( this ), stateVal ),
9763
+ stateVal
9764
+ );
9765
+ } );
9766
+ }
9767
+
9768
+ return this.each( function() {
9769
+ var className, i, self, classNames;
9770
+
9771
+ if ( type === "string" ) {
9772
+
9773
+ // Toggle individual class names
9774
+ i = 0;
9775
+ self = jQuery( this );
9776
+ classNames = value.match( rnothtmlwhite ) || [];
9777
+
9778
+ while ( ( className = classNames[ i++ ] ) ) {
9779
+
9780
+ // Check each className given, space separated list
9781
+ if ( self.hasClass( className ) ) {
9782
+ self.removeClass( className );
9783
+ } else {
9784
+ self.addClass( className );
9785
+ }
9786
+ }
9787
+
9788
+ // Toggle whole class name
9789
+ } else if ( value === undefined || type === "boolean" ) {
9790
+ className = getClass( this );
9791
+ if ( className ) {
9792
+
9793
+ // Store className if set
9794
+ dataPriv.set( this, "__className__", className );
9795
+ }
9796
+
9797
+ // If the element has a class name or if we're passed `false`,
9798
+ // then remove the whole classname (if there was one, the above saved it).
9799
+ // Otherwise bring back whatever was previously saved (if anything),
9800
+ // falling back to the empty string if nothing was stored.
9801
+ if ( this.setAttribute ) {
9802
+ this.setAttribute( "class",
9803
+ className || value === false ?
9804
+ "" :
9805
+ dataPriv.get( this, "__className__" ) || ""
9806
+ );
9807
+ }
9808
+ }
9809
+ } );
9810
+ },
9811
+
9812
+ hasClass: function( selector ) {
9813
+ var className, elem,
9814
+ i = 0;
9815
+
9816
+ className = " " + selector + " ";
9817
+ while ( ( elem = this[ i++ ] ) ) {
9818
+ if ( elem.nodeType === 1 &&
9819
+ ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) {
9820
+ return true;
9821
+ }
9822
+ }
9823
+
9824
+ return false;
9825
+ }
9826
+ } );
9827
+
9828
+
9829
+
9830
+
9831
+ var rreturn = /\r/g;
9832
+
9833
+ jQuery.fn.extend( {
9834
+ val: function( value ) {
9835
+ var hooks, ret, isFunction,
9836
+ elem = this[ 0 ];
9837
+
9838
+ if ( !arguments.length ) {
9839
+ if ( elem ) {
9840
+ hooks = jQuery.valHooks[ elem.type ] ||
9841
+ jQuery.valHooks[ elem.nodeName.toLowerCase() ];
9842
+
9843
+ if ( hooks &&
9844
+ "get" in hooks &&
9845
+ ( ret = hooks.get( elem, "value" ) ) !== undefined
9846
+ ) {
9847
+ return ret;
9848
+ }
9849
+
9850
+ ret = elem.value;
9851
+
9852
+ // Handle most common string cases
9853
+ if ( typeof ret === "string" ) {
9854
+ return ret.replace( rreturn, "" );
9855
+ }
9856
+
9857
+ // Handle cases where value is null/undef or number
9858
+ return ret == null ? "" : ret;
9859
+ }
9860
+
9861
+ return;
9862
+ }
9863
+
9864
+ isFunction = jQuery.isFunction( value );
9865
+
9866
+ return this.each( function( i ) {
9867
+ var val;
9868
+
9869
+ if ( this.nodeType !== 1 ) {
9870
+ return;
9871
+ }
9872
+
9873
+ if ( isFunction ) {
9874
+ val = value.call( this, i, jQuery( this ).val() );
9875
+ } else {
9876
+ val = value;
9877
+ }
9878
+
9879
+ // Treat null/undefined as ""; convert numbers to string
9880
+ if ( val == null ) {
9881
+ val = "";
9882
+
9883
+ } else if ( typeof val === "number" ) {
9884
+ val += "";
9885
+
9886
+ } else if ( jQuery.isArray( val ) ) {
9887
+ val = jQuery.map( val, function( value ) {
9888
+ return value == null ? "" : value + "";
9889
+ } );
9890
+ }
9891
+
9892
+ hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
9893
+
9894
+ // If set returns undefined, fall back to normal setting
9895
+ if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
9896
+ this.value = val;
9897
+ }
9898
+ } );
9899
+ }
9900
+ } );
9901
+
9902
+ jQuery.extend( {
9903
+ valHooks: {
9904
+ option: {
9905
+ get: function( elem ) {
9906
+
9907
+ var val = jQuery.find.attr( elem, "value" );
9908
+ return val != null ?
9909
+ val :
9910
+
9911
+ // Support: IE <=10 - 11 only
9912
+ // option.text throws exceptions (#14686, #14858)
9913
+ // Strip and collapse whitespace
9914
+ // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
9915
+ stripAndCollapse( jQuery.text( elem ) );
9916
+ }
9917
+ },
9918
+ select: {
9919
+ get: function( elem ) {
9920
+ var value, option, i,
9921
+ options = elem.options,
9922
+ index = elem.selectedIndex,
9923
+ one = elem.type === "select-one",
9924
+ values = one ? null : [],
9925
+ max = one ? index + 1 : options.length;
9926
+
9927
+ if ( index < 0 ) {
9928
+ i = max;
9929
+
9930
+ } else {
9931
+ i = one ? index : 0;
9932
+ }
9933
+
9934
+ // Loop through all the selected options
9935
+ for ( ; i < max; i++ ) {
9936
+ option = options[ i ];
9937
+
9938
+ // Support: IE <=9 only
9939
+ // IE8-9 doesn't update selected after form reset (#2551)
9940
+ if ( ( option.selected || i === index ) &&
9941
+
9942
+ // Don't return options that are disabled or in a disabled optgroup
9943
+ !option.disabled &&
9944
+ ( !option.parentNode.disabled ||
9945
+ !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
9946
+
9947
+ // Get the specific value for the option
9948
+ value = jQuery( option ).val();
9949
+
9950
+ // We don't need an array for one selects
9951
+ if ( one ) {
9952
+ return value;
9953
+ }
9954
+
9955
+ // Multi-Selects return an array
9956
+ values.push( value );
9957
+ }
9958
+ }
9959
+
9960
+ return values;
9961
+ },
9962
+
9963
+ set: function( elem, value ) {
9964
+ var optionSet, option,
9965
+ options = elem.options,
9966
+ values = jQuery.makeArray( value ),
9967
+ i = options.length;
9968
+
9969
+ while ( i-- ) {
9970
+ option = options[ i ];
9971
+
9972
+ /* eslint-disable no-cond-assign */
9973
+
9974
+ if ( option.selected =
9975
+ jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
9976
+ ) {
9977
+ optionSet = true;
9978
+ }
9979
+
9980
+ /* eslint-enable no-cond-assign */
9981
+ }
9982
+
9983
+ // Force browsers to behave consistently when non-matching value is set
9984
+ if ( !optionSet ) {
9985
+ elem.selectedIndex = -1;
9986
+ }
9987
+ return values;
9988
+ }
9989
+ }
9990
+ }
9991
+ } );
9992
+
9993
+ // Radios and checkboxes getter/setter
9994
+ jQuery.each( [ "radio", "checkbox" ], function() {
9995
+ jQuery.valHooks[ this ] = {
9996
+ set: function( elem, value ) {
9997
+ if ( jQuery.isArray( value ) ) {
9998
+ return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
9999
+ }
10000
+ }
10001
+ };
10002
+ if ( !support.checkOn ) {
10003
+ jQuery.valHooks[ this ].get = function( elem ) {
10004
+ return elem.getAttribute( "value" ) === null ? "on" : elem.value;
10005
+ };
10006
+ }
10007
+ } );
10008
+
10009
+
10010
+
10011
+
10012
+ // Return jQuery for attributes-only inclusion
10013
+
10014
+
10015
+ var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
10016
+
10017
+ jQuery.extend( jQuery.event, {
10018
+
10019
+ trigger: function( event, data, elem, onlyHandlers ) {
10020
+
10021
+ var i, cur, tmp, bubbleType, ontype, handle, special,
10022
+ eventPath = [ elem || document ],
10023
+ type = hasOwn.call( event, "type" ) ? event.type : event,
10024
+ namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
10025
+
10026
+ cur = tmp = elem = elem || document;
10027
+
10028
+ // Don't do events on text and comment nodes
10029
+ if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
10030
+ return;
10031
+ }
10032
+
10033
+ // focus/blur morphs to focusin/out; ensure we're not firing them right now
10034
+ if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
10035
+ return;
10036
+ }
10037
+
10038
+ if ( type.indexOf( "." ) > -1 ) {
10039
+
10040
+ // Namespaced trigger; create a regexp to match event type in handle()
10041
+ namespaces = type.split( "." );
10042
+ type = namespaces.shift();
10043
+ namespaces.sort();
10044
+ }
10045
+ ontype = type.indexOf( ":" ) < 0 && "on" + type;
10046
+
10047
+ // Caller can pass in a jQuery.Event object, Object, or just an event type string
10048
+ event = event[ jQuery.expando ] ?
10049
+ event :
10050
+ new jQuery.Event( type, typeof event === "object" && event );
10051
+
10052
+ // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
10053
+ event.isTrigger = onlyHandlers ? 2 : 3;
10054
+ event.namespace = namespaces.join( "." );
10055
+ event.rnamespace = event.namespace ?
10056
+ new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
10057
+ null;
10058
+
10059
+ // Clean up the event in case it is being reused
10060
+ event.result = undefined;
10061
+ if ( !event.target ) {
10062
+ event.target = elem;
10063
+ }
10064
+
10065
+ // Clone any incoming data and prepend the event, creating the handler arg list
10066
+ data = data == null ?
10067
+ [ event ] :
10068
+ jQuery.makeArray( data, [ event ] );
10069
+
10070
+ // Allow special events to draw outside the lines
10071
+ special = jQuery.event.special[ type ] || {};
10072
+ if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
10073
+ return;
10074
+ }
10075
+
10076
+ // Determine event propagation path in advance, per W3C events spec (#9951)
10077
+ // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
10078
+ if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
10079
+
10080
+ bubbleType = special.delegateType || type;
10081
+ if ( !rfocusMorph.test( bubbleType + type ) ) {
10082
+ cur = cur.parentNode;
10083
+ }
10084
+ for ( ; cur; cur = cur.parentNode ) {
10085
+ eventPath.push( cur );
10086
+ tmp = cur;
10087
+ }
10088
+
10089
+ // Only add window if we got to document (e.g., not plain obj or detached DOM)
10090
+ if ( tmp === ( elem.ownerDocument || document ) ) {
10091
+ eventPath.push( tmp.defaultView || tmp.parentWindow || window );
10092
+ }
10093
+ }
10094
+
10095
+ // Fire handlers on the event path
10096
+ i = 0;
10097
+ while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
10098
+
10099
+ event.type = i > 1 ?
10100
+ bubbleType :
10101
+ special.bindType || type;
10102
+
10103
+ // jQuery handler
10104
+ handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
10105
+ dataPriv.get( cur, "handle" );
10106
+ if ( handle ) {
10107
+ handle.apply( cur, data );
10108
+ }
10109
+
10110
+ // Native handler
10111
+ handle = ontype && cur[ ontype ];
10112
+ if ( handle && handle.apply && acceptData( cur ) ) {
10113
+ event.result = handle.apply( cur, data );
10114
+ if ( event.result === false ) {
10115
+ event.preventDefault();
10116
+ }
10117
+ }
10118
+ }
10119
+ event.type = type;
10120
+
10121
+ // If nobody prevented the default action, do it now
10122
+ if ( !onlyHandlers && !event.isDefaultPrevented() ) {
10123
+
10124
+ if ( ( !special._default ||
10125
+ special._default.apply( eventPath.pop(), data ) === false ) &&
10126
+ acceptData( elem ) ) {
10127
+
10128
+ // Call a native DOM method on the target with the same name as the event.
10129
+ // Don't do default actions on window, that's where global variables be (#6170)
10130
+ if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
10131
+
10132
+ // Don't re-trigger an onFOO event when we call its FOO() method
10133
+ tmp = elem[ ontype ];
10134
+
10135
+ if ( tmp ) {
10136
+ elem[ ontype ] = null;
10137
+ }
10138
+
10139
+ // Prevent re-triggering of the same event, since we already bubbled it above
10140
+ jQuery.event.triggered = type;
10141
+ elem[ type ]();
10142
+ jQuery.event.triggered = undefined;
10143
+
10144
+ if ( tmp ) {
10145
+ elem[ ontype ] = tmp;
10146
+ }
10147
+ }
10148
+ }
10149
+ }
10150
+
10151
+ return event.result;
10152
+ },
10153
+
10154
+ // Piggyback on a donor event to simulate a different one
10155
+ // Used only for `focus(in | out)` events
10156
+ simulate: function( type, elem, event ) {
10157
+ var e = jQuery.extend(
10158
+ new jQuery.Event(),
10159
+ event,
10160
+ {
10161
+ type: type,
10162
+ isSimulated: true
10163
+ }
10164
+ );
10165
+
10166
+ jQuery.event.trigger( e, null, elem );
10167
+ }
10168
+
10169
+ } );
10170
+
10171
+ jQuery.fn.extend( {
10172
+
10173
+ trigger: function( type, data ) {
10174
+ return this.each( function() {
10175
+ jQuery.event.trigger( type, data, this );
10176
+ } );
10177
+ },
10178
+ triggerHandler: function( type, data ) {
10179
+ var elem = this[ 0 ];
10180
+ if ( elem ) {
10181
+ return jQuery.event.trigger( type, data, elem, true );
10182
+ }
10183
+ }
10184
+ } );
10185
+
10186
+
10187
+ jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
10188
+ "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
10189
+ "change select submit keydown keypress keyup contextmenu" ).split( " " ),
10190
+ function( i, name ) {
10191
+
10192
+ // Handle event binding
10193
+ jQuery.fn[ name ] = function( data, fn ) {
10194
+ return arguments.length > 0 ?
10195
+ this.on( name, null, data, fn ) :
10196
+ this.trigger( name );
10197
+ };
10198
+ } );
10199
+
10200
+ jQuery.fn.extend( {
10201
+ hover: function( fnOver, fnOut ) {
10202
+ return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
10203
+ }
10204
+ } );
10205
+
10206
+
10207
+
10208
+
10209
+ support.focusin = "onfocusin" in window;
10210
+
10211
+
10212
+ // Support: Firefox <=44
10213
+ // Firefox doesn't have focus(in | out) events
10214
+ // Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
10215
+ //
10216
+ // Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
10217
+ // focus(in | out) events fire after focus & blur events,
10218
+ // which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
10219
+ // Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
10220
+ if ( !support.focusin ) {
10221
+ jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
10222
+
10223
+ // Attach a single capturing handler on the document while someone wants focusin/focusout
10224
+ var handler = function( event ) {
10225
+ jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
10226
+ };
10227
+
10228
+ jQuery.event.special[ fix ] = {
10229
+ setup: function() {
10230
+ var doc = this.ownerDocument || this,
10231
+ attaches = dataPriv.access( doc, fix );
10232
+
10233
+ if ( !attaches ) {
10234
+ doc.addEventListener( orig, handler, true );
10235
+ }
10236
+ dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
10237
+ },
10238
+ teardown: function() {
10239
+ var doc = this.ownerDocument || this,
10240
+ attaches = dataPriv.access( doc, fix ) - 1;
10241
+
10242
+ if ( !attaches ) {
10243
+ doc.removeEventListener( orig, handler, true );
10244
+ dataPriv.remove( doc, fix );
10245
+
10246
+ } else {
10247
+ dataPriv.access( doc, fix, attaches );
10248
+ }
10249
+ }
10250
+ };
10251
+ } );
10252
+ }
10253
+ var location = window.location;
10254
+
10255
+ var nonce = jQuery.now();
10256
+
10257
+ var rquery = ( /\?/ );
10258
+
10259
+
10260
+
10261
+ // Cross-browser xml parsing
10262
+ jQuery.parseXML = function( data ) {
10263
+ var xml;
10264
+ if ( !data || typeof data !== "string" ) {
10265
+ return null;
10266
+ }
10267
+
10268
+ // Support: IE 9 - 11 only
10269
+ // IE throws on parseFromString with invalid input.
10270
+ try {
10271
+ xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
10272
+ } catch ( e ) {
10273
+ xml = undefined;
10274
+ }
10275
+
10276
+ if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
10277
+ jQuery.error( "Invalid XML: " + data );
10278
+ }
10279
+ return xml;
10280
+ };
10281
+
10282
+
10283
+ var
10284
+ rbracket = /\[\]$/,
10285
+ rCRLF = /\r?\n/g,
10286
+ rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
10287
+ rsubmittable = /^(?:input|select|textarea|keygen)/i;
10288
+
10289
+ function buildParams( prefix, obj, traditional, add ) {
10290
+ var name;
10291
+
10292
+ if ( jQuery.isArray( obj ) ) {
10293
+
10294
+ // Serialize array item.
10295
+ jQuery.each( obj, function( i, v ) {
10296
+ if ( traditional || rbracket.test( prefix ) ) {
10297
+
10298
+ // Treat each array item as a scalar.
10299
+ add( prefix, v );
10300
+
10301
+ } else {
10302
+
10303
+ // Item is non-scalar (array or object), encode its numeric index.
10304
+ buildParams(
10305
+ prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
10306
+ v,
10307
+ traditional,
10308
+ add
10309
+ );
10310
+ }
10311
+ } );
10312
+
10313
+ } else if ( !traditional && jQuery.type( obj ) === "object" ) {
10314
+
10315
+ // Serialize object item.
10316
+ for ( name in obj ) {
10317
+ buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
10318
+ }
10319
+
10320
+ } else {
10321
+
10322
+ // Serialize scalar item.
10323
+ add( prefix, obj );
10324
+ }
10325
+ }
10326
+
10327
+ // Serialize an array of form elements or a set of
10328
+ // key/values into a query string
10329
+ jQuery.param = function( a, traditional ) {
10330
+ var prefix,
10331
+ s = [],
10332
+ add = function( key, valueOrFunction ) {
10333
+
10334
+ // If value is a function, invoke it and use its return value
10335
+ var value = jQuery.isFunction( valueOrFunction ) ?
10336
+ valueOrFunction() :
10337
+ valueOrFunction;
10338
+
10339
+ s[ s.length ] = encodeURIComponent( key ) + "=" +
10340
+ encodeURIComponent( value == null ? "" : value );
10341
+ };
10342
+
10343
+ // If an array was passed in, assume that it is an array of form elements.
10344
+ if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
10345
+
10346
+ // Serialize the form elements
10347
+ jQuery.each( a, function() {
10348
+ add( this.name, this.value );
10349
+ } );
10350
+
10351
+ } else {
10352
+
10353
+ // If traditional, encode the "old" way (the way 1.3.2 or older
10354
+ // did it), otherwise encode params recursively.
10355
+ for ( prefix in a ) {
10356
+ buildParams( prefix, a[ prefix ], traditional, add );
10357
+ }
10358
+ }
10359
+
10360
+ // Return the resulting serialization
10361
+ return s.join( "&" );
10362
+ };
10363
+
10364
+ jQuery.fn.extend( {
10365
+ serialize: function() {
10366
+ return jQuery.param( this.serializeArray() );
10367
+ },
10368
+ serializeArray: function() {
10369
+ return this.map( function() {
10370
+
10371
+ // Can add propHook for "elements" to filter or add form elements
10372
+ var elements = jQuery.prop( this, "elements" );
10373
+ return elements ? jQuery.makeArray( elements ) : this;
10374
+ } )
10375
+ .filter( function() {
10376
+ var type = this.type;
10377
+
10378
+ // Use .is( ":disabled" ) so that fieldset[disabled] works
10379
+ return this.name && !jQuery( this ).is( ":disabled" ) &&
10380
+ rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
10381
+ ( this.checked || !rcheckableType.test( type ) );
10382
+ } )
10383
+ .map( function( i, elem ) {
10384
+ var val = jQuery( this ).val();
10385
+
10386
+ if ( val == null ) {
10387
+ return null;
10388
+ }
10389
+
10390
+ if ( jQuery.isArray( val ) ) {
10391
+ return jQuery.map( val, function( val ) {
10392
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
10393
+ } );
10394
+ }
10395
+
10396
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
10397
+ } ).get();
10398
+ }
10399
+ } );
10400
+
10401
+
10402
+ var
10403
+ r20 = /%20/g,
10404
+ rhash = /#.*$/,
10405
+ rantiCache = /([?&])_=[^&]*/,
10406
+ rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
10407
+
10408
+ // #7653, #8125, #8152: local protocol detection
10409
+ rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
10410
+ rnoContent = /^(?:GET|HEAD)$/,
10411
+ rprotocol = /^\/\//,
10412
+
10413
+ /* Prefilters
10414
+ * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
10415
+ * 2) These are called:
10416
+ * - BEFORE asking for a transport
10417
+ * - AFTER param serialization (s.data is a string if s.processData is true)
10418
+ * 3) key is the dataType
10419
+ * 4) the catchall symbol "*" can be used
10420
+ * 5) execution will start with transport dataType and THEN continue down to "*" if needed
10421
+ */
10422
+ prefilters = {},
10423
+
10424
+ /* Transports bindings
10425
+ * 1) key is the dataType
10426
+ * 2) the catchall symbol "*" can be used
10427
+ * 3) selection will start with transport dataType and THEN go to "*" if needed
10428
+ */
10429
+ transports = {},
10430
+
10431
+ // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
10432
+ allTypes = "*/".concat( "*" ),
10433
+
10434
+ // Anchor tag for parsing the document origin
10435
+ originAnchor = document.createElement( "a" );
10436
+ originAnchor.href = location.href;
10437
+
10438
+ // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
10439
+ function addToPrefiltersOrTransports( structure ) {
10440
+
10441
+ // dataTypeExpression is optional and defaults to "*"
10442
+ return function( dataTypeExpression, func ) {
10443
+
10444
+ if ( typeof dataTypeExpression !== "string" ) {
10445
+ func = dataTypeExpression;
10446
+ dataTypeExpression = "*";
10447
+ }
10448
+
10449
+ var dataType,
10450
+ i = 0,
10451
+ dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];
10452
+
10453
+ if ( jQuery.isFunction( func ) ) {
10454
+
10455
+ // For each dataType in the dataTypeExpression
10456
+ while ( ( dataType = dataTypes[ i++ ] ) ) {
10457
+
10458
+ // Prepend if requested
10459
+ if ( dataType[ 0 ] === "+" ) {
10460
+ dataType = dataType.slice( 1 ) || "*";
10461
+ ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
10462
+
10463
+ // Otherwise append
10464
+ } else {
10465
+ ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
10466
+ }
10467
+ }
10468
+ }
10469
+ };
10470
+ }
10471
+
10472
+ // Base inspection function for prefilters and transports
10473
+ function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
10474
+
10475
+ var inspected = {},
10476
+ seekingTransport = ( structure === transports );
10477
+
10478
+ function inspect( dataType ) {
10479
+ var selected;
10480
+ inspected[ dataType ] = true;
10481
+ jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
10482
+ var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
10483
+ if ( typeof dataTypeOrTransport === "string" &&
10484
+ !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
10485
+
10486
+ options.dataTypes.unshift( dataTypeOrTransport );
10487
+ inspect( dataTypeOrTransport );
10488
+ return false;
10489
+ } else if ( seekingTransport ) {
10490
+ return !( selected = dataTypeOrTransport );
10491
+ }
10492
+ } );
10493
+ return selected;
10494
+ }
10495
+
10496
+ return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
10497
+ }
10498
+
10499
+ // A special extend for ajax options
10500
+ // that takes "flat" options (not to be deep extended)
10501
+ // Fixes #9887
10502
+ function ajaxExtend( target, src ) {
10503
+ var key, deep,
10504
+ flatOptions = jQuery.ajaxSettings.flatOptions || {};
10505
+
10506
+ for ( key in src ) {
10507
+ if ( src[ key ] !== undefined ) {
10508
+ ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
10509
+ }
10510
+ }
10511
+ if ( deep ) {
10512
+ jQuery.extend( true, target, deep );
10513
+ }
10514
+
10515
+ return target;
10516
+ }
10517
+
10518
+ /* Handles responses to an ajax request:
10519
+ * - finds the right dataType (mediates between content-type and expected dataType)
10520
+ * - returns the corresponding response
10521
+ */
10522
+ function ajaxHandleResponses( s, jqXHR, responses ) {
10523
+
10524
+ var ct, type, finalDataType, firstDataType,
10525
+ contents = s.contents,
10526
+ dataTypes = s.dataTypes;
10527
+
10528
+ // Remove auto dataType and get content-type in the process
10529
+ while ( dataTypes[ 0 ] === "*" ) {
10530
+ dataTypes.shift();
10531
+ if ( ct === undefined ) {
10532
+ ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
10533
+ }
10534
+ }
10535
+
10536
+ // Check if we're dealing with a known content-type
10537
+ if ( ct ) {
10538
+ for ( type in contents ) {
10539
+ if ( contents[ type ] && contents[ type ].test( ct ) ) {
10540
+ dataTypes.unshift( type );
10541
+ break;
10542
+ }
10543
+ }
10544
+ }
10545
+
10546
+ // Check to see if we have a response for the expected dataType
10547
+ if ( dataTypes[ 0 ] in responses ) {
10548
+ finalDataType = dataTypes[ 0 ];
10549
+ } else {
10550
+
10551
+ // Try convertible dataTypes
10552
+ for ( type in responses ) {
10553
+ if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
10554
+ finalDataType = type;
10555
+ break;
10556
+ }
10557
+ if ( !firstDataType ) {
10558
+ firstDataType = type;
10559
+ }
10560
+ }
10561
+
10562
+ // Or just use first one
10563
+ finalDataType = finalDataType || firstDataType;
10564
+ }
10565
+
10566
+ // If we found a dataType
10567
+ // We add the dataType to the list if needed
10568
+ // and return the corresponding response
10569
+ if ( finalDataType ) {
10570
+ if ( finalDataType !== dataTypes[ 0 ] ) {
10571
+ dataTypes.unshift( finalDataType );
10572
+ }
10573
+ return responses[ finalDataType ];
10574
+ }
10575
+ }
10576
+
10577
+ /* Chain conversions given the request and the original response
10578
+ * Also sets the responseXXX fields on the jqXHR instance
10579
+ */
10580
+ function ajaxConvert( s, response, jqXHR, isSuccess ) {
10581
+ var conv2, current, conv, tmp, prev,
10582
+ converters = {},
10583
+
10584
+ // Work with a copy of dataTypes in case we need to modify it for conversion
10585
+ dataTypes = s.dataTypes.slice();
10586
+
10587
+ // Create converters map with lowercased keys
10588
+ if ( dataTypes[ 1 ] ) {
10589
+ for ( conv in s.converters ) {
10590
+ converters[ conv.toLowerCase() ] = s.converters[ conv ];
10591
+ }
10592
+ }
10593
+
10594
+ current = dataTypes.shift();
10595
+
10596
+ // Convert to each sequential dataType
10597
+ while ( current ) {
10598
+
10599
+ if ( s.responseFields[ current ] ) {
10600
+ jqXHR[ s.responseFields[ current ] ] = response;
10601
+ }
10602
+
10603
+ // Apply the dataFilter if provided
10604
+ if ( !prev && isSuccess && s.dataFilter ) {
10605
+ response = s.dataFilter( response, s.dataType );
10606
+ }
10607
+
10608
+ prev = current;
10609
+ current = dataTypes.shift();
10610
+
10611
+ if ( current ) {
10612
+
10613
+ // There's only work to do if current dataType is non-auto
10614
+ if ( current === "*" ) {
10615
+
10616
+ current = prev;
10617
+
10618
+ // Convert response if prev dataType is non-auto and differs from current
10619
+ } else if ( prev !== "*" && prev !== current ) {
10620
+
10621
+ // Seek a direct converter
10622
+ conv = converters[ prev + " " + current ] || converters[ "* " + current ];
10623
+
10624
+ // If none found, seek a pair
10625
+ if ( !conv ) {
10626
+ for ( conv2 in converters ) {
10627
+
10628
+ // If conv2 outputs current
10629
+ tmp = conv2.split( " " );
10630
+ if ( tmp[ 1 ] === current ) {
10631
+
10632
+ // If prev can be converted to accepted input
10633
+ conv = converters[ prev + " " + tmp[ 0 ] ] ||
10634
+ converters[ "* " + tmp[ 0 ] ];
10635
+ if ( conv ) {
10636
+
10637
+ // Condense equivalence converters
10638
+ if ( conv === true ) {
10639
+ conv = converters[ conv2 ];
10640
+
10641
+ // Otherwise, insert the intermediate dataType
10642
+ } else if ( converters[ conv2 ] !== true ) {
10643
+ current = tmp[ 0 ];
10644
+ dataTypes.unshift( tmp[ 1 ] );
10645
+ }
10646
+ break;
10647
+ }
10648
+ }
10649
+ }
10650
+ }
10651
+
10652
+ // Apply converter (if not an equivalence)
10653
+ if ( conv !== true ) {
10654
+
10655
+ // Unless errors are allowed to bubble, catch and return them
10656
+ if ( conv && s.throws ) {
10657
+ response = conv( response );
10658
+ } else {
10659
+ try {
10660
+ response = conv( response );
10661
+ } catch ( e ) {
10662
+ return {
10663
+ state: "parsererror",
10664
+ error: conv ? e : "No conversion from " + prev + " to " + current
10665
+ };
10666
+ }
10667
+ }
10668
+ }
10669
+ }
10670
+ }
10671
+ }
10672
+
10673
+ return { state: "success", data: response };
10674
+ }
10675
+
10676
+ jQuery.extend( {
10677
+
10678
+ // Counter for holding the number of active queries
10679
+ active: 0,
10680
+
10681
+ // Last-Modified header cache for next request
10682
+ lastModified: {},
10683
+ etag: {},
10684
+
10685
+ ajaxSettings: {
10686
+ url: location.href,
10687
+ type: "GET",
10688
+ isLocal: rlocalProtocol.test( location.protocol ),
10689
+ global: true,
10690
+ processData: true,
10691
+ async: true,
10692
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
10693
+
10694
+ /*
10695
+ timeout: 0,
10696
+ data: null,
10697
+ dataType: null,
10698
+ username: null,
10699
+ password: null,
10700
+ cache: null,
10701
+ throws: false,
10702
+ traditional: false,
10703
+ headers: {},
10704
+ */
10705
+
10706
+ accepts: {
10707
+ "*": allTypes,
10708
+ text: "text/plain",
10709
+ html: "text/html",
10710
+ xml: "application/xml, text/xml",
10711
+ json: "application/json, text/javascript"
10712
+ },
10713
+
10714
+ contents: {
10715
+ xml: /\bxml\b/,
10716
+ html: /\bhtml/,
10717
+ json: /\bjson\b/
10718
+ },
10719
+
10720
+ responseFields: {
10721
+ xml: "responseXML",
10722
+ text: "responseText",
10723
+ json: "responseJSON"
10724
+ },
10725
+
10726
+ // Data converters
10727
+ // Keys separate source (or catchall "*") and destination types with a single space
10728
+ converters: {
10729
+
10730
+ // Convert anything to text
10731
+ "* text": String,
10732
+
10733
+ // Text to html (true = no transformation)
10734
+ "text html": true,
10735
+
10736
+ // Evaluate text as a json expression
10737
+ "text json": JSON.parse,
10738
+
10739
+ // Parse text as xml
10740
+ "text xml": jQuery.parseXML
10741
+ },
10742
+
10743
+ // For options that shouldn't be deep extended:
10744
+ // you can add your own custom options here if
10745
+ // and when you create one that shouldn't be
10746
+ // deep extended (see ajaxExtend)
10747
+ flatOptions: {
10748
+ url: true,
10749
+ context: true
10750
+ }
10751
+ },
10752
+
10753
+ // Creates a full fledged settings object into target
10754
+ // with both ajaxSettings and settings fields.
10755
+ // If target is omitted, writes into ajaxSettings.
10756
+ ajaxSetup: function( target, settings ) {
10757
+ return settings ?
10758
+
10759
+ // Building a settings object
10760
+ ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
10761
+
10762
+ // Extending ajaxSettings
10763
+ ajaxExtend( jQuery.ajaxSettings, target );
10764
+ },
10765
+
10766
+ ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
10767
+ ajaxTransport: addToPrefiltersOrTransports( transports ),
10768
+
10769
+ // Main method
10770
+ ajax: function( url, options ) {
10771
+
10772
+ // If url is an object, simulate pre-1.5 signature
10773
+ if ( typeof url === "object" ) {
10774
+ options = url;
10775
+ url = undefined;
10776
+ }
10777
+
10778
+ // Force options to be an object
10779
+ options = options || {};
10780
+
10781
+ var transport,
10782
+
10783
+ // URL without anti-cache param
10784
+ cacheURL,
10785
+
10786
+ // Response headers
10787
+ responseHeadersString,
10788
+ responseHeaders,
10789
+
10790
+ // timeout handle
10791
+ timeoutTimer,
10792
+
10793
+ // Url cleanup var
10794
+ urlAnchor,
10795
+
10796
+ // Request state (becomes false upon send and true upon completion)
10797
+ completed,
10798
+
10799
+ // To know if global events are to be dispatched
10800
+ fireGlobals,
10801
+
10802
+ // Loop variable
10803
+ i,
10804
+
10805
+ // uncached part of the url
10806
+ uncached,
10807
+
10808
+ // Create the final options object
10809
+ s = jQuery.ajaxSetup( {}, options ),
10810
+
10811
+ // Callbacks context
10812
+ callbackContext = s.context || s,
10813
+
10814
+ // Context for global events is callbackContext if it is a DOM node or jQuery collection
10815
+ globalEventContext = s.context &&
10816
+ ( callbackContext.nodeType || callbackContext.jquery ) ?
10817
+ jQuery( callbackContext ) :
10818
+ jQuery.event,
10819
+
10820
+ // Deferreds
10821
+ deferred = jQuery.Deferred(),
10822
+ completeDeferred = jQuery.Callbacks( "once memory" ),
10823
+
10824
+ // Status-dependent callbacks
10825
+ statusCode = s.statusCode || {},
10826
+
10827
+ // Headers (they are sent all at once)
10828
+ requestHeaders = {},
10829
+ requestHeadersNames = {},
10830
+
10831
+ // Default abort message
10832
+ strAbort = "canceled",
10833
+
10834
+ // Fake xhr
10835
+ jqXHR = {
10836
+ readyState: 0,
10837
+
10838
+ // Builds headers hashtable if needed
10839
+ getResponseHeader: function( key ) {
10840
+ var match;
10841
+ if ( completed ) {
10842
+ if ( !responseHeaders ) {
10843
+ responseHeaders = {};
10844
+ while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
10845
+ responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
10846
+ }
10847
+ }
10848
+ match = responseHeaders[ key.toLowerCase() ];
10849
+ }
10850
+ return match == null ? null : match;
10851
+ },
10852
+
10853
+ // Raw string
10854
+ getAllResponseHeaders: function() {
10855
+ return completed ? responseHeadersString : null;
10856
+ },
10857
+
10858
+ // Caches the header
10859
+ setRequestHeader: function( name, value ) {
10860
+ if ( completed == null ) {
10861
+ name = requestHeadersNames[ name.toLowerCase() ] =
10862
+ requestHeadersNames[ name.toLowerCase() ] || name;
10863
+ requestHeaders[ name ] = value;
10864
+ }
10865
+ return this;
10866
+ },
10867
+
10868
+ // Overrides response content-type header
10869
+ overrideMimeType: function( type ) {
10870
+ if ( completed == null ) {
10871
+ s.mimeType = type;
10872
+ }
10873
+ return this;
10874
+ },
10875
+
10876
+ // Status-dependent callbacks
10877
+ statusCode: function( map ) {
10878
+ var code;
10879
+ if ( map ) {
10880
+ if ( completed ) {
10881
+
10882
+ // Execute the appropriate callbacks
10883
+ jqXHR.always( map[ jqXHR.status ] );
10884
+ } else {
10885
+
10886
+ // Lazy-add the new callbacks in a way that preserves old ones
10887
+ for ( code in map ) {
10888
+ statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
10889
+ }
10890
+ }
10891
+ }
10892
+ return this;
10893
+ },
10894
+
10895
+ // Cancel the request
10896
+ abort: function( statusText ) {
10897
+ var finalText = statusText || strAbort;
10898
+ if ( transport ) {
10899
+ transport.abort( finalText );
10900
+ }
10901
+ done( 0, finalText );
10902
+ return this;
10903
+ }
10904
+ };
10905
+
10906
+ // Attach deferreds
10907
+ deferred.promise( jqXHR );
10908
+
10909
+ // Add protocol if not provided (prefilters might expect it)
10910
+ // Handle falsy url in the settings object (#10093: consistency with old signature)
10911
+ // We also use the url parameter if available
10912
+ s.url = ( ( url || s.url || location.href ) + "" )
10913
+ .replace( rprotocol, location.protocol + "//" );
10914
+
10915
+ // Alias method option to type as per ticket #12004
10916
+ s.type = options.method || options.type || s.method || s.type;
10917
+
10918
+ // Extract dataTypes list
10919
+ s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ];
10920
+
10921
+ // A cross-domain request is in order when the origin doesn't match the current origin.
10922
+ if ( s.crossDomain == null ) {
10923
+ urlAnchor = document.createElement( "a" );
10924
+
10925
+ // Support: IE <=8 - 11, Edge 12 - 13
10926
+ // IE throws exception on accessing the href property if url is malformed,
10927
+ // e.g. http://example.com:80x/
10928
+ try {
10929
+ urlAnchor.href = s.url;
10930
+
10931
+ // Support: IE <=8 - 11 only
10932
+ // Anchor's host property isn't correctly set when s.url is relative
10933
+ urlAnchor.href = urlAnchor.href;
10934
+ s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
10935
+ urlAnchor.protocol + "//" + urlAnchor.host;
10936
+ } catch ( e ) {
10937
+
10938
+ // If there is an error parsing the URL, assume it is crossDomain,
10939
+ // it can be rejected by the transport if it is invalid
10940
+ s.crossDomain = true;
10941
+ }
10942
+ }
10943
+
10944
+ // Convert data if not already a string
10945
+ if ( s.data && s.processData && typeof s.data !== "string" ) {
10946
+ s.data = jQuery.param( s.data, s.traditional );
10947
+ }
10948
+
10949
+ // Apply prefilters
10950
+ inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
10951
+
10952
+ // If request was aborted inside a prefilter, stop there
10953
+ if ( completed ) {
10954
+ return jqXHR;
10955
+ }
10956
+
10957
+ // We can fire global events as of now if asked to
10958
+ // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
10959
+ fireGlobals = jQuery.event && s.global;
10960
+
10961
+ // Watch for a new set of requests
10962
+ if ( fireGlobals && jQuery.active++ === 0 ) {
10963
+ jQuery.event.trigger( "ajaxStart" );
10964
+ }
10965
+
10966
+ // Uppercase the type
10967
+ s.type = s.type.toUpperCase();
10968
+
10969
+ // Determine if request has content
10970
+ s.hasContent = !rnoContent.test( s.type );
10971
+
10972
+ // Save the URL in case we're toying with the If-Modified-Since
10973
+ // and/or If-None-Match header later on
10974
+ // Remove hash to simplify url manipulation
10975
+ cacheURL = s.url.replace( rhash, "" );
10976
+
10977
+ // More options handling for requests with no content
10978
+ if ( !s.hasContent ) {
10979
+
10980
+ // Remember the hash so we can put it back
10981
+ uncached = s.url.slice( cacheURL.length );
10982
+
10983
+ // If data is available, append data to url
10984
+ if ( s.data ) {
10985
+ cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
10986
+
10987
+ // #9682: remove data so that it's not used in an eventual retry
10988
+ delete s.data;
10989
+ }
10990
+
10991
+ // Add or update anti-cache param if needed
10992
+ if ( s.cache === false ) {
10993
+ cacheURL = cacheURL.replace( rantiCache, "$1" );
10994
+ uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached;
10995
+ }
10996
+
10997
+ // Put hash and anti-cache on the URL that will be requested (gh-1732)
10998
+ s.url = cacheURL + uncached;
10999
+
11000
+ // Change '%20' to '+' if this is encoded form body content (gh-2658)
11001
+ } else if ( s.data && s.processData &&
11002
+ ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
11003
+ s.data = s.data.replace( r20, "+" );
11004
+ }
11005
+
11006
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
11007
+ if ( s.ifModified ) {
11008
+ if ( jQuery.lastModified[ cacheURL ] ) {
11009
+ jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
11010
+ }
11011
+ if ( jQuery.etag[ cacheURL ] ) {
11012
+ jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
11013
+ }
11014
+ }
11015
+
11016
+ // Set the correct header, if data is being sent
11017
+ if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
11018
+ jqXHR.setRequestHeader( "Content-Type", s.contentType );
11019
+ }
11020
+
11021
+ // Set the Accepts header for the server, depending on the dataType
11022
+ jqXHR.setRequestHeader(
11023
+ "Accept",
11024
+ s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
11025
+ s.accepts[ s.dataTypes[ 0 ] ] +
11026
+ ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
11027
+ s.accepts[ "*" ]
11028
+ );
11029
+
11030
+ // Check for headers option
11031
+ for ( i in s.headers ) {
11032
+ jqXHR.setRequestHeader( i, s.headers[ i ] );
11033
+ }
11034
+
11035
+ // Allow custom headers/mimetypes and early abort
11036
+ if ( s.beforeSend &&
11037
+ ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
11038
+
11039
+ // Abort if not done already and return
11040
+ return jqXHR.abort();
11041
+ }
11042
+
11043
+ // Aborting is no longer a cancellation
11044
+ strAbort = "abort";
11045
+
11046
+ // Install callbacks on deferreds
11047
+ completeDeferred.add( s.complete );
11048
+ jqXHR.done( s.success );
11049
+ jqXHR.fail( s.error );
11050
+
11051
+ // Get transport
11052
+ transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
11053
+
11054
+ // If no transport, we auto-abort
11055
+ if ( !transport ) {
11056
+ done( -1, "No Transport" );
11057
+ } else {
11058
+ jqXHR.readyState = 1;
11059
+
11060
+ // Send global event
11061
+ if ( fireGlobals ) {
11062
+ globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
11063
+ }
11064
+
11065
+ // If request was aborted inside ajaxSend, stop there
11066
+ if ( completed ) {
11067
+ return jqXHR;
11068
+ }
11069
+
11070
+ // Timeout
11071
+ if ( s.async && s.timeout > 0 ) {
11072
+ timeoutTimer = window.setTimeout( function() {
11073
+ jqXHR.abort( "timeout" );
11074
+ }, s.timeout );
11075
+ }
11076
+
11077
+ try {
11078
+ completed = false;
11079
+ transport.send( requestHeaders, done );
11080
+ } catch ( e ) {
11081
+
11082
+ // Rethrow post-completion exceptions
11083
+ if ( completed ) {
11084
+ throw e;
11085
+ }
11086
+
11087
+ // Propagate others as results
11088
+ done( -1, e );
11089
+ }
11090
+ }
11091
+
11092
+ // Callback for when everything is done
11093
+ function done( status, nativeStatusText, responses, headers ) {
11094
+ var isSuccess, success, error, response, modified,
11095
+ statusText = nativeStatusText;
11096
+
11097
+ // Ignore repeat invocations
11098
+ if ( completed ) {
11099
+ return;
11100
+ }
11101
+
11102
+ completed = true;
11103
+
11104
+ // Clear timeout if it exists
11105
+ if ( timeoutTimer ) {
11106
+ window.clearTimeout( timeoutTimer );
11107
+ }
11108
+
11109
+ // Dereference transport for early garbage collection
11110
+ // (no matter how long the jqXHR object will be used)
11111
+ transport = undefined;
11112
+
11113
+ // Cache response headers
11114
+ responseHeadersString = headers || "";
11115
+
11116
+ // Set readyState
11117
+ jqXHR.readyState = status > 0 ? 4 : 0;
11118
+
11119
+ // Determine if successful
11120
+ isSuccess = status >= 200 && status < 300 || status === 304;
11121
+
11122
+ // Get response data
11123
+ if ( responses ) {
11124
+ response = ajaxHandleResponses( s, jqXHR, responses );
11125
+ }
11126
+
11127
+ // Convert no matter what (that way responseXXX fields are always set)
11128
+ response = ajaxConvert( s, response, jqXHR, isSuccess );
11129
+
11130
+ // If successful, handle type chaining
11131
+ if ( isSuccess ) {
11132
+
11133
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
11134
+ if ( s.ifModified ) {
11135
+ modified = jqXHR.getResponseHeader( "Last-Modified" );
11136
+ if ( modified ) {
11137
+ jQuery.lastModified[ cacheURL ] = modified;
11138
+ }
11139
+ modified = jqXHR.getResponseHeader( "etag" );
11140
+ if ( modified ) {
11141
+ jQuery.etag[ cacheURL ] = modified;
11142
+ }
11143
+ }
11144
+
11145
+ // if no content
11146
+ if ( status === 204 || s.type === "HEAD" ) {
11147
+ statusText = "nocontent";
11148
+
11149
+ // if not modified
11150
+ } else if ( status === 304 ) {
11151
+ statusText = "notmodified";
11152
+
11153
+ // If we have data, let's convert it
11154
+ } else {
11155
+ statusText = response.state;
11156
+ success = response.data;
11157
+ error = response.error;
11158
+ isSuccess = !error;
11159
+ }
11160
+ } else {
11161
+
11162
+ // Extract error from statusText and normalize for non-aborts
11163
+ error = statusText;
11164
+ if ( status || !statusText ) {
11165
+ statusText = "error";
11166
+ if ( status < 0 ) {
11167
+ status = 0;
11168
+ }
11169
+ }
11170
+ }
11171
+
11172
+ // Set data for the fake xhr object
11173
+ jqXHR.status = status;
11174
+ jqXHR.statusText = ( nativeStatusText || statusText ) + "";
11175
+
11176
+ // Success/Error
11177
+ if ( isSuccess ) {
11178
+ deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
11179
+ } else {
11180
+ deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
11181
+ }
11182
+
11183
+ // Status-dependent callbacks
11184
+ jqXHR.statusCode( statusCode );
11185
+ statusCode = undefined;
11186
+
11187
+ if ( fireGlobals ) {
11188
+ globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
11189
+ [ jqXHR, s, isSuccess ? success : error ] );
11190
+ }
11191
+
11192
+ // Complete
11193
+ completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
11194
+
11195
+ if ( fireGlobals ) {
11196
+ globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
11197
+
11198
+ // Handle the global AJAX counter
11199
+ if ( !( --jQuery.active ) ) {
11200
+ jQuery.event.trigger( "ajaxStop" );
11201
+ }
11202
+ }
11203
+ }
11204
+
11205
+ return jqXHR;
11206
+ },
11207
+
11208
+ getJSON: function( url, data, callback ) {
11209
+ return jQuery.get( url, data, callback, "json" );
11210
+ },
11211
+
11212
+ getScript: function( url, callback ) {
11213
+ return jQuery.get( url, undefined, callback, "script" );
11214
+ }
11215
+ } );
11216
+
11217
+ jQuery.each( [ "get", "post" ], function( i, method ) {
11218
+ jQuery[ method ] = function( url, data, callback, type ) {
11219
+
11220
+ // Shift arguments if data argument was omitted
11221
+ if ( jQuery.isFunction( data ) ) {
11222
+ type = type || callback;
11223
+ callback = data;
11224
+ data = undefined;
11225
+ }
11226
+
11227
+ // The url can be an options object (which then must have .url)
11228
+ return jQuery.ajax( jQuery.extend( {
11229
+ url: url,
11230
+ type: method,
11231
+ dataType: type,
11232
+ data: data,
11233
+ success: callback
11234
+ }, jQuery.isPlainObject( url ) && url ) );
11235
+ };
11236
+ } );
11237
+
11238
+
11239
+ jQuery._evalUrl = function( url ) {
11240
+ return jQuery.ajax( {
11241
+ url: url,
11242
+
11243
+ // Make this explicit, since user can override this through ajaxSetup (#11264)
11244
+ type: "GET",
11245
+ dataType: "script",
11246
+ cache: true,
11247
+ async: false,
11248
+ global: false,
11249
+ "throws": true
11250
+ } );
11251
+ };
11252
+
11253
+
11254
+ jQuery.fn.extend( {
11255
+ wrapAll: function( html ) {
11256
+ var wrap;
11257
+
11258
+ if ( this[ 0 ] ) {
11259
+ if ( jQuery.isFunction( html ) ) {
11260
+ html = html.call( this[ 0 ] );
11261
+ }
11262
+
11263
+ // The elements to wrap the target around
11264
+ wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
11265
+
11266
+ if ( this[ 0 ].parentNode ) {
11267
+ wrap.insertBefore( this[ 0 ] );
11268
+ }
11269
+
11270
+ wrap.map( function() {
11271
+ var elem = this;
11272
+
11273
+ while ( elem.firstElementChild ) {
11274
+ elem = elem.firstElementChild;
11275
+ }
11276
+
11277
+ return elem;
11278
+ } ).append( this );
11279
+ }
11280
+
11281
+ return this;
11282
+ },
11283
+
11284
+ wrapInner: function( html ) {
11285
+ if ( jQuery.isFunction( html ) ) {
11286
+ return this.each( function( i ) {
11287
+ jQuery( this ).wrapInner( html.call( this, i ) );
11288
+ } );
11289
+ }
11290
+
11291
+ return this.each( function() {
11292
+ var self = jQuery( this ),
11293
+ contents = self.contents();
11294
+
11295
+ if ( contents.length ) {
11296
+ contents.wrapAll( html );
11297
+
11298
+ } else {
11299
+ self.append( html );
11300
+ }
11301
+ } );
11302
+ },
11303
+
11304
+ wrap: function( html ) {
11305
+ var isFunction = jQuery.isFunction( html );
11306
+
11307
+ return this.each( function( i ) {
11308
+ jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
11309
+ } );
11310
+ },
11311
+
11312
+ unwrap: function( selector ) {
11313
+ this.parent( selector ).not( "body" ).each( function() {
11314
+ jQuery( this ).replaceWith( this.childNodes );
11315
+ } );
11316
+ return this;
11317
+ }
11318
+ } );
11319
+
11320
+
11321
+ jQuery.expr.pseudos.hidden = function( elem ) {
11322
+ return !jQuery.expr.pseudos.visible( elem );
11323
+ };
11324
+ jQuery.expr.pseudos.visible = function( elem ) {
11325
+ return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
11326
+ };
11327
+
11328
+
11329
+
11330
+
11331
+ jQuery.ajaxSettings.xhr = function() {
11332
+ try {
11333
+ return new window.XMLHttpRequest();
11334
+ } catch ( e ) {}
11335
+ };
11336
+
11337
+ var xhrSuccessStatus = {
11338
+
11339
+ // File protocol always yields status code 0, assume 200
11340
+ 0: 200,
11341
+
11342
+ // Support: IE <=9 only
11343
+ // #1450: sometimes IE returns 1223 when it should be 204
11344
+ 1223: 204
11345
+ },
11346
+ xhrSupported = jQuery.ajaxSettings.xhr();
11347
+
11348
+ support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
11349
+ support.ajax = xhrSupported = !!xhrSupported;
11350
+
11351
+ jQuery.ajaxTransport( function( options ) {
11352
+ var callback, errorCallback;
11353
+
11354
+ // Cross domain only allowed if supported through XMLHttpRequest
11355
+ if ( support.cors || xhrSupported && !options.crossDomain ) {
11356
+ return {
11357
+ send: function( headers, complete ) {
11358
+ var i,
11359
+ xhr = options.xhr();
11360
+
11361
+ xhr.open(
11362
+ options.type,
11363
+ options.url,
11364
+ options.async,
11365
+ options.username,
11366
+ options.password
11367
+ );
11368
+
11369
+ // Apply custom fields if provided
11370
+ if ( options.xhrFields ) {
11371
+ for ( i in options.xhrFields ) {
11372
+ xhr[ i ] = options.xhrFields[ i ];
11373
+ }
11374
+ }
11375
+
11376
+ // Override mime type if needed
11377
+ if ( options.mimeType && xhr.overrideMimeType ) {
11378
+ xhr.overrideMimeType( options.mimeType );
11379
+ }
11380
+
11381
+ // X-Requested-With header
11382
+ // For cross-domain requests, seeing as conditions for a preflight are
11383
+ // akin to a jigsaw puzzle, we simply never set it to be sure.
11384
+ // (it can always be set on a per-request basis or even using ajaxSetup)
11385
+ // For same-domain requests, won't change header if already provided.
11386
+ if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
11387
+ headers[ "X-Requested-With" ] = "XMLHttpRequest";
11388
+ }
11389
+
11390
+ // Set headers
11391
+ for ( i in headers ) {
11392
+ xhr.setRequestHeader( i, headers[ i ] );
11393
+ }
11394
+
11395
+ // Callback
11396
+ callback = function( type ) {
11397
+ return function() {
11398
+ if ( callback ) {
11399
+ callback = errorCallback = xhr.onload =
11400
+ xhr.onerror = xhr.onabort = xhr.onreadystatechange = null;
11401
+
11402
+ if ( type === "abort" ) {
11403
+ xhr.abort();
11404
+ } else if ( type === "error" ) {
11405
+
11406
+ // Support: IE <=9 only
11407
+ // On a manual native abort, IE9 throws
11408
+ // errors on any property access that is not readyState
11409
+ if ( typeof xhr.status !== "number" ) {
11410
+ complete( 0, "error" );
11411
+ } else {
11412
+ complete(
11413
+
11414
+ // File: protocol always yields status 0; see #8605, #14207
11415
+ xhr.status,
11416
+ xhr.statusText
11417
+ );
11418
+ }
11419
+ } else {
11420
+ complete(
11421
+ xhrSuccessStatus[ xhr.status ] || xhr.status,
11422
+ xhr.statusText,
11423
+
11424
+ // Support: IE <=9 only
11425
+ // IE9 has no XHR2 but throws on binary (trac-11426)
11426
+ // For XHR2 non-text, let the caller handle it (gh-2498)
11427
+ ( xhr.responseType || "text" ) !== "text" ||
11428
+ typeof xhr.responseText !== "string" ?
11429
+ { binary: xhr.response } :
11430
+ { text: xhr.responseText },
11431
+ xhr.getAllResponseHeaders()
11432
+ );
11433
+ }
11434
+ }
11435
+ };
11436
+ };
11437
+
11438
+ // Listen to events
11439
+ xhr.onload = callback();
11440
+ errorCallback = xhr.onerror = callback( "error" );
11441
+
11442
+ // Support: IE 9 only
11443
+ // Use onreadystatechange to replace onabort
11444
+ // to handle uncaught aborts
11445
+ if ( xhr.onabort !== undefined ) {
11446
+ xhr.onabort = errorCallback;
11447
+ } else {
11448
+ xhr.onreadystatechange = function() {
11449
+
11450
+ // Check readyState before timeout as it changes
11451
+ if ( xhr.readyState === 4 ) {
11452
+
11453
+ // Allow onerror to be called first,
11454
+ // but that will not handle a native abort
11455
+ // Also, save errorCallback to a variable
11456
+ // as xhr.onerror cannot be accessed
11457
+ window.setTimeout( function() {
11458
+ if ( callback ) {
11459
+ errorCallback();
11460
+ }
11461
+ } );
11462
+ }
11463
+ };
11464
+ }
11465
+
11466
+ // Create the abort callback
11467
+ callback = callback( "abort" );
11468
+
11469
+ try {
11470
+
11471
+ // Do send the request (this may raise an exception)
11472
+ xhr.send( options.hasContent && options.data || null );
11473
+ } catch ( e ) {
11474
+
11475
+ // #14683: Only rethrow if this hasn't been notified as an error yet
11476
+ if ( callback ) {
11477
+ throw e;
11478
+ }
11479
+ }
11480
+ },
11481
+
11482
+ abort: function() {
11483
+ if ( callback ) {
11484
+ callback();
11485
+ }
11486
+ }
11487
+ };
11488
+ }
11489
+ } );
11490
+
11491
+
11492
+
11493
+
11494
+ // Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
11495
+ jQuery.ajaxPrefilter( function( s ) {
11496
+ if ( s.crossDomain ) {
11497
+ s.contents.script = false;
11498
+ }
11499
+ } );
11500
+
11501
+ // Install script dataType
11502
+ jQuery.ajaxSetup( {
11503
+ accepts: {
11504
+ script: "text/javascript, application/javascript, " +
11505
+ "application/ecmascript, application/x-ecmascript"
11506
+ },
11507
+ contents: {
11508
+ script: /\b(?:java|ecma)script\b/
11509
+ },
11510
+ converters: {
11511
+ "text script": function( text ) {
11512
+ jQuery.globalEval( text );
11513
+ return text;
11514
+ }
11515
+ }
11516
+ } );
11517
+
11518
+ // Handle cache's special case and crossDomain
11519
+ jQuery.ajaxPrefilter( "script", function( s ) {
11520
+ if ( s.cache === undefined ) {
11521
+ s.cache = false;
11522
+ }
11523
+ if ( s.crossDomain ) {
11524
+ s.type = "GET";
11525
+ }
11526
+ } );
11527
+
11528
+ // Bind script tag hack transport
11529
+ jQuery.ajaxTransport( "script", function( s ) {
11530
+
11531
+ // This transport only deals with cross domain requests
11532
+ if ( s.crossDomain ) {
11533
+ var script, callback;
11534
+ return {
11535
+ send: function( _, complete ) {
11536
+ script = jQuery( "<script>" ).prop( {
11537
+ charset: s.scriptCharset,
11538
+ src: s.url
11539
+ } ).on(
11540
+ "load error",
11541
+ callback = function( evt ) {
11542
+ script.remove();
11543
+ callback = null;
11544
+ if ( evt ) {
11545
+ complete( evt.type === "error" ? 404 : 200, evt.type );
11546
+ }
11547
+ }
11548
+ );
11549
+
11550
+ // Use native DOM manipulation to avoid our domManip AJAX trickery
11551
+ document.head.appendChild( script[ 0 ] );
11552
+ },
11553
+ abort: function() {
11554
+ if ( callback ) {
11555
+ callback();
11556
+ }
11557
+ }
11558
+ };
11559
+ }
11560
+ } );
11561
+
11562
+
11563
+
11564
+
11565
+ var oldCallbacks = [],
11566
+ rjsonp = /(=)\?(?=&|$)|\?\?/;
11567
+
11568
+ // Default jsonp settings
11569
+ jQuery.ajaxSetup( {
11570
+ jsonp: "callback",
11571
+ jsonpCallback: function() {
11572
+ var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
11573
+ this[ callback ] = true;
11574
+ return callback;
11575
+ }
11576
+ } );
11577
+
11578
+ // Detect, normalize options and install callbacks for jsonp requests
11579
+ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
11580
+
11581
+ var callbackName, overwritten, responseContainer,
11582
+ jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
11583
+ "url" :
11584
+ typeof s.data === "string" &&
11585
+ ( s.contentType || "" )
11586
+ .indexOf( "application/x-www-form-urlencoded" ) === 0 &&
11587
+ rjsonp.test( s.data ) && "data"
11588
+ );
11589
+
11590
+ // Handle iff the expected data type is "jsonp" or we have a parameter to set
11591
+ if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
11592
+
11593
+ // Get callback name, remembering preexisting value associated with it
11594
+ callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
11595
+ s.jsonpCallback() :
11596
+ s.jsonpCallback;
11597
+
11598
+ // Insert callback into url or form data
11599
+ if ( jsonProp ) {
11600
+ s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
11601
+ } else if ( s.jsonp !== false ) {
11602
+ s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
11603
+ }
11604
+
11605
+ // Use data converter to retrieve json after script execution
11606
+ s.converters[ "script json" ] = function() {
11607
+ if ( !responseContainer ) {
11608
+ jQuery.error( callbackName + " was not called" );
11609
+ }
11610
+ return responseContainer[ 0 ];
11611
+ };
11612
+
11613
+ // Force json dataType
11614
+ s.dataTypes[ 0 ] = "json";
11615
+
11616
+ // Install callback
11617
+ overwritten = window[ callbackName ];
11618
+ window[ callbackName ] = function() {
11619
+ responseContainer = arguments;
11620
+ };
11621
+
11622
+ // Clean-up function (fires after converters)
11623
+ jqXHR.always( function() {
11624
+
11625
+ // If previous value didn't exist - remove it
11626
+ if ( overwritten === undefined ) {
11627
+ jQuery( window ).removeProp( callbackName );
11628
+
11629
+ // Otherwise restore preexisting value
11630
+ } else {
11631
+ window[ callbackName ] = overwritten;
11632
+ }
11633
+
11634
+ // Save back as free
11635
+ if ( s[ callbackName ] ) {
11636
+
11637
+ // Make sure that re-using the options doesn't screw things around
11638
+ s.jsonpCallback = originalSettings.jsonpCallback;
11639
+
11640
+ // Save the callback name for future use
11641
+ oldCallbacks.push( callbackName );
11642
+ }
11643
+
11644
+ // Call if it was a function and we have a response
11645
+ if ( responseContainer && jQuery.isFunction( overwritten ) ) {
11646
+ overwritten( responseContainer[ 0 ] );
11647
+ }
11648
+
11649
+ responseContainer = overwritten = undefined;
11650
+ } );
11651
+
11652
+ // Delegate to script
11653
+ return "script";
11654
+ }
11655
+ } );
11656
+
11657
+
11658
+
11659
+
11660
+ // Support: Safari 8 only
11661
+ // In Safari 8 documents created via document.implementation.createHTMLDocument
11662
+ // collapse sibling forms: the second one becomes a child of the first one.
11663
+ // Because of that, this security measure has to be disabled in Safari 8.
11664
+ // https://bugs.webkit.org/show_bug.cgi?id=137337
11665
+ support.createHTMLDocument = ( function() {
11666
+ var body = document.implementation.createHTMLDocument( "" ).body;
11667
+ body.innerHTML = "<form></form><form></form>";
11668
+ return body.childNodes.length === 2;
11669
+ } )();
11670
+
11671
+
11672
+ // Argument "data" should be string of html
11673
+ // context (optional): If specified, the fragment will be created in this context,
11674
+ // defaults to document
11675
+ // keepScripts (optional): If true, will include scripts passed in the html string
11676
+ jQuery.parseHTML = function( data, context, keepScripts ) {
11677
+ if ( typeof data !== "string" ) {
11678
+ return [];
11679
+ }
11680
+ if ( typeof context === "boolean" ) {
11681
+ keepScripts = context;
11682
+ context = false;
11683
+ }
11684
+
11685
+ var base, parsed, scripts;
11686
+
11687
+ if ( !context ) {
11688
+
11689
+ // Stop scripts or inline event handlers from being executed immediately
11690
+ // by using document.implementation
11691
+ if ( support.createHTMLDocument ) {
11692
+ context = document.implementation.createHTMLDocument( "" );
11693
+
11694
+ // Set the base href for the created document
11695
+ // so any parsed elements with URLs
11696
+ // are based on the document's URL (gh-2965)
11697
+ base = context.createElement( "base" );
11698
+ base.href = document.location.href;
11699
+ context.head.appendChild( base );
11700
+ } else {
11701
+ context = document;
11702
+ }
11703
+ }
11704
+
11705
+ parsed = rsingleTag.exec( data );
11706
+ scripts = !keepScripts && [];
11707
+
11708
+ // Single tag
11709
+ if ( parsed ) {
11710
+ return [ context.createElement( parsed[ 1 ] ) ];
11711
+ }
11712
+
11713
+ parsed = buildFragment( [ data ], context, scripts );
11714
+
11715
+ if ( scripts && scripts.length ) {
11716
+ jQuery( scripts ).remove();
11717
+ }
11718
+
11719
+ return jQuery.merge( [], parsed.childNodes );
11720
+ };
11721
+
11722
+
11723
+ /**
11724
+ * Load a url into a page
11725
+ */
11726
+ jQuery.fn.load = function( url, params, callback ) {
11727
+ var selector, type, response,
11728
+ self = this,
11729
+ off = url.indexOf( " " );
11730
+
11731
+ if ( off > -1 ) {
11732
+ selector = stripAndCollapse( url.slice( off ) );
11733
+ url = url.slice( 0, off );
11734
+ }
11735
+
11736
+ // If it's a function
11737
+ if ( jQuery.isFunction( params ) ) {
11738
+
11739
+ // We assume that it's the callback
11740
+ callback = params;
11741
+ params = undefined;
11742
+
11743
+ // Otherwise, build a param string
11744
+ } else if ( params && typeof params === "object" ) {
11745
+ type = "POST";
11746
+ }
11747
+
11748
+ // If we have elements to modify, make the request
11749
+ if ( self.length > 0 ) {
11750
+ jQuery.ajax( {
11751
+ url: url,
11752
+
11753
+ // If "type" variable is undefined, then "GET" method will be used.
11754
+ // Make value of this field explicit since
11755
+ // user can override it through ajaxSetup method
11756
+ type: type || "GET",
11757
+ dataType: "html",
11758
+ data: params
11759
+ } ).done( function( responseText ) {
11760
+
11761
+ // Save response for use in complete callback
11762
+ response = arguments;
11763
+
11764
+ self.html( selector ?
11765
+
11766
+ // If a selector was specified, locate the right elements in a dummy div
11767
+ // Exclude scripts to avoid IE 'Permission Denied' errors
11768
+ jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
11769
+
11770
+ // Otherwise use the full result
11771
+ responseText );
11772
+
11773
+ // If the request succeeds, this function gets "data", "status", "jqXHR"
11774
+ // but they are ignored because response was set above.
11775
+ // If it fails, this function gets "jqXHR", "status", "error"
11776
+ } ).always( callback && function( jqXHR, status ) {
11777
+ self.each( function() {
11778
+ callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
11779
+ } );
11780
+ } );
11781
+ }
11782
+
11783
+ return this;
11784
+ };
11785
+
11786
+
11787
+
11788
+
11789
+ // Attach a bunch of functions for handling common AJAX events
11790
+ jQuery.each( [
11791
+ "ajaxStart",
11792
+ "ajaxStop",
11793
+ "ajaxComplete",
11794
+ "ajaxError",
11795
+ "ajaxSuccess",
11796
+ "ajaxSend"
11797
+ ], function( i, type ) {
11798
+ jQuery.fn[ type ] = function( fn ) {
11799
+ return this.on( type, fn );
11800
+ };
11801
+ } );
11802
+
11803
+
11804
+
11805
+
11806
+ jQuery.expr.pseudos.animated = function( elem ) {
11807
+ return jQuery.grep( jQuery.timers, function( fn ) {
11808
+ return elem === fn.elem;
11809
+ } ).length;
11810
+ };
11811
+
11812
+
11813
+
11814
+
11815
+ /**
11816
+ * Gets a window from an element
11817
+ */
11818
+ function getWindow( elem ) {
11819
+ return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
11820
+ }
11821
+
11822
+ jQuery.offset = {
11823
+ setOffset: function( elem, options, i ) {
11824
+ var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
11825
+ position = jQuery.css( elem, "position" ),
11826
+ curElem = jQuery( elem ),
11827
+ props = {};
11828
+
11829
+ // Set position first, in-case top/left are set even on static elem
11830
+ if ( position === "static" ) {
11831
+ elem.style.position = "relative";
11832
+ }
11833
+
11834
+ curOffset = curElem.offset();
11835
+ curCSSTop = jQuery.css( elem, "top" );
11836
+ curCSSLeft = jQuery.css( elem, "left" );
11837
+ calculatePosition = ( position === "absolute" || position === "fixed" ) &&
11838
+ ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
11839
+
11840
+ // Need to be able to calculate position if either
11841
+ // top or left is auto and position is either absolute or fixed
11842
+ if ( calculatePosition ) {
11843
+ curPosition = curElem.position();
11844
+ curTop = curPosition.top;
11845
+ curLeft = curPosition.left;
11846
+
11847
+ } else {
11848
+ curTop = parseFloat( curCSSTop ) || 0;
11849
+ curLeft = parseFloat( curCSSLeft ) || 0;
11850
+ }
11851
+
11852
+ if ( jQuery.isFunction( options ) ) {
11853
+
11854
+ // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
11855
+ options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
11856
+ }
11857
+
11858
+ if ( options.top != null ) {
11859
+ props.top = ( options.top - curOffset.top ) + curTop;
11860
+ }
11861
+ if ( options.left != null ) {
11862
+ props.left = ( options.left - curOffset.left ) + curLeft;
11863
+ }
11864
+
11865
+ if ( "using" in options ) {
11866
+ options.using.call( elem, props );
11867
+
11868
+ } else {
11869
+ curElem.css( props );
11870
+ }
11871
+ }
11872
+ };
11873
+
11874
+ jQuery.fn.extend( {
11875
+ offset: function( options ) {
11876
+
11877
+ // Preserve chaining for setter
11878
+ if ( arguments.length ) {
11879
+ return options === undefined ?
11880
+ this :
11881
+ this.each( function( i ) {
11882
+ jQuery.offset.setOffset( this, options, i );
11883
+ } );
11884
+ }
11885
+
11886
+ var docElem, win, rect, doc,
11887
+ elem = this[ 0 ];
11888
+
11889
+ if ( !elem ) {
11890
+ return;
11891
+ }
11892
+
11893
+ // Support: IE <=11 only
11894
+ // Running getBoundingClientRect on a
11895
+ // disconnected node in IE throws an error
11896
+ if ( !elem.getClientRects().length ) {
11897
+ return { top: 0, left: 0 };
11898
+ }
11899
+
11900
+ rect = elem.getBoundingClientRect();
11901
+
11902
+ // Make sure element is not hidden (display: none)
11903
+ if ( rect.width || rect.height ) {
11904
+ doc = elem.ownerDocument;
11905
+ win = getWindow( doc );
11906
+ docElem = doc.documentElement;
11907
+
11908
+ return {
11909
+ top: rect.top + win.pageYOffset - docElem.clientTop,
11910
+ left: rect.left + win.pageXOffset - docElem.clientLeft
11911
+ };
11912
+ }
11913
+
11914
+ // Return zeros for disconnected and hidden elements (gh-2310)
11915
+ return rect;
11916
+ },
11917
+
11918
+ position: function() {
11919
+ if ( !this[ 0 ] ) {
11920
+ return;
11921
+ }
11922
+
11923
+ var offsetParent, offset,
11924
+ elem = this[ 0 ],
11925
+ parentOffset = { top: 0, left: 0 };
11926
+
11927
+ // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
11928
+ // because it is its only offset parent
11929
+ if ( jQuery.css( elem, "position" ) === "fixed" ) {
11930
+
11931
+ // Assume getBoundingClientRect is there when computed position is fixed
11932
+ offset = elem.getBoundingClientRect();
11933
+
11934
+ } else {
11935
+
11936
+ // Get *real* offsetParent
11937
+ offsetParent = this.offsetParent();
11938
+
11939
+ // Get correct offsets
11940
+ offset = this.offset();
11941
+ if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
11942
+ parentOffset = offsetParent.offset();
11943
+ }
11944
+
11945
+ // Add offsetParent borders
11946
+ parentOffset = {
11947
+ top: parentOffset.top + jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ),
11948
+ left: parentOffset.left + jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true )
11949
+ };
11950
+ }
11951
+
11952
+ // Subtract parent offsets and element margins
11953
+ return {
11954
+ top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
11955
+ left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
11956
+ };
11957
+ },
11958
+
11959
+ // This method will return documentElement in the following cases:
11960
+ // 1) For the element inside the iframe without offsetParent, this method will return
11961
+ // documentElement of the parent window
11962
+ // 2) For the hidden or detached element
11963
+ // 3) For body or html element, i.e. in case of the html node - it will return itself
11964
+ //
11965
+ // but those exceptions were never presented as a real life use-cases
11966
+ // and might be considered as more preferable results.
11967
+ //
11968
+ // This logic, however, is not guaranteed and can change at any point in the future
11969
+ offsetParent: function() {
11970
+ return this.map( function() {
11971
+ var offsetParent = this.offsetParent;
11972
+
11973
+ while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
11974
+ offsetParent = offsetParent.offsetParent;
11975
+ }
11976
+
11977
+ return offsetParent || documentElement;
11978
+ } );
11979
+ }
11980
+ } );
11981
+
11982
+ // Create scrollLeft and scrollTop methods
11983
+ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
11984
+ var top = "pageYOffset" === prop;
11985
+
11986
+ jQuery.fn[ method ] = function( val ) {
11987
+ return access( this, function( elem, method, val ) {
11988
+ var win = getWindow( elem );
11989
+
11990
+ if ( val === undefined ) {
11991
+ return win ? win[ prop ] : elem[ method ];
11992
+ }
11993
+
11994
+ if ( win ) {
11995
+ win.scrollTo(
11996
+ !top ? val : win.pageXOffset,
11997
+ top ? val : win.pageYOffset
11998
+ );
11999
+
12000
+ } else {
12001
+ elem[ method ] = val;
12002
+ }
12003
+ }, method, val, arguments.length );
12004
+ };
12005
+ } );
12006
+
12007
+ // Support: Safari <=7 - 9.1, Chrome <=37 - 49
12008
+ // Add the top/left cssHooks using jQuery.fn.position
12009
+ // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
12010
+ // Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
12011
+ // getComputedStyle returns percent when specified for top/left/bottom/right;
12012
+ // rather than make the css module depend on the offset module, just check for it here
12013
+ jQuery.each( [ "top", "left" ], function( i, prop ) {
12014
+ jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
12015
+ function( elem, computed ) {
12016
+ if ( computed ) {
12017
+ computed = curCSS( elem, prop );
12018
+
12019
+ // If curCSS returns percentage, fallback to offset
12020
+ return rnumnonpx.test( computed ) ?
12021
+ jQuery( elem ).position()[ prop ] + "px" :
12022
+ computed;
12023
+ }
12024
+ }
12025
+ );
12026
+ } );
12027
+
12028
+
12029
+ // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
12030
+ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
12031
+ jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
12032
+ function( defaultExtra, funcName ) {
12033
+
12034
+ // Margin is only for outerHeight, outerWidth
12035
+ jQuery.fn[ funcName ] = function( margin, value ) {
12036
+ var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
12037
+ extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
12038
+
12039
+ return access( this, function( elem, type, value ) {
12040
+ var doc;
12041
+
12042
+ if ( jQuery.isWindow( elem ) ) {
12043
+
12044
+ // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
12045
+ return funcName.indexOf( "outer" ) === 0 ?
12046
+ elem[ "inner" + name ] :
12047
+ elem.document.documentElement[ "client" + name ];
12048
+ }
12049
+
12050
+ // Get document width or height
12051
+ if ( elem.nodeType === 9 ) {
12052
+ doc = elem.documentElement;
12053
+
12054
+ // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
12055
+ // whichever is greatest
12056
+ return Math.max(
12057
+ elem.body[ "scroll" + name ], doc[ "scroll" + name ],
12058
+ elem.body[ "offset" + name ], doc[ "offset" + name ],
12059
+ doc[ "client" + name ]
12060
+ );
12061
+ }
12062
+
12063
+ return value === undefined ?
12064
+
12065
+ // Get width or height on the element, requesting but not forcing parseFloat
12066
+ jQuery.css( elem, type, extra ) :
12067
+
12068
+ // Set width or height on the element
12069
+ jQuery.style( elem, type, value, extra );
12070
+ }, type, chainable ? margin : undefined, chainable );
12071
+ };
12072
+ } );
12073
+ } );
12074
+
12075
+
12076
+ jQuery.fn.extend( {
12077
+
12078
+ bind: function( types, data, fn ) {
12079
+ return this.on( types, null, data, fn );
12080
+ },
12081
+ unbind: function( types, fn ) {
12082
+ return this.off( types, null, fn );
12083
+ },
12084
+
12085
+ delegate: function( selector, types, data, fn ) {
12086
+ return this.on( types, selector, data, fn );
12087
+ },
12088
+ undelegate: function( selector, types, fn ) {
12089
+
12090
+ // ( namespace ) or ( selector, types [, fn] )
12091
+ return arguments.length === 1 ?
12092
+ this.off( selector, "**" ) :
12093
+ this.off( types, selector || "**", fn );
12094
+ }
12095
+ } );
12096
+
12097
+ jQuery.parseJSON = JSON.parse;
12098
+
12099
+
12100
+
12101
 
12102
+ // Register as a named AMD module, since jQuery can be concatenated with other
12103
+ // files that may use define, but not via a proper concatenation script that
12104
+ // understands anonymous AMD modules. A named AMD is safest and most robust
12105
+ // way to register. Lowercase jquery is used because AMD module names are
12106
+ // derived from file names, and jQuery is normally delivered in a lowercase
12107
+ // file name. Do this after creating the global so that if an AMD module wants
12108
+ // to call noConflict to hide this version of jQuery, it will work.
12109
 
12110
+ // Note that for maximum portability, libraries that are not jQuery should
12111
+ // declare themselves as anonymous modules, and avoid setting a global if an
12112
+ // AMD loader is present. jQuery is a special case. For more information, see
12113
+ // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
12114
 
12115
+ if ( typeof define === "function" && define.amd ) {
12116
+ define( "jquery", [], function() {
12117
+ return jQuery;
12118
+ } );
 
 
 
 
 
 
 
 
 
12119
  }
12120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12121
 
 
12122
 
 
12123
 
12124
+ var
 
 
 
 
 
 
 
 
12125
 
12126
+ // Map over jQuery in case of overwrite
12127
+ _jQuery = window.jQuery,
 
12128
 
12129
+ // Map over the $ in case of overwrite
12130
+ _$ = window.$;
12131
 
12132
+ jQuery.noConflict = function( deep ) {
12133
+ if ( window.$ === jQuery ) {
12134
+ window.$ = _$;
12135
+ }
12136
 
12137
+ if ( deep && window.jQuery === jQuery ) {
12138
+ window.jQuery = _jQuery;
12139
+ }
 
 
 
 
12140
 
12141
+ return jQuery;
12142
+ };
12143
+
12144
+ // Expose jQuery and $ identifiers, even in AMD
12145
+ // (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
12146
+ // and CommonJS for browser emulators (#13566)
12147
+ if ( !noGlobal ) {
12148
+ window.jQuery = window.$ = jQuery;
12149
  }
12150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12151
 
 
12152
 
 
12153
 
 
 
 
 
 
 
 
 
 
 
 
12154
 
12155
+ return jQuery;
12156
+ } );
 
12157
 
12158
+ },{}],31:[function(require,module,exports){
12159
+ // shim for using process in browser
12160
+ var process = module.exports = {};
12161
 
12162
+ // cached from whatever global is present so that test runners that stub it
12163
+ // don't break things. But we need to wrap it in a try catch in case it is
12164
+ // wrapped in strict mode code which doesn't define any globals. It's inside a
12165
+ // function because try/catches deoptimize in certain engines.
12166
 
12167
+ var cachedSetTimeout;
12168
+ var cachedClearTimeout;
12169
+
12170
+ function defaultSetTimout() {
12171
+ throw new Error('setTimeout has not been defined');
12172
+ }
12173
+ function defaultClearTimeout () {
12174
+ throw new Error('clearTimeout has not been defined');
12175
+ }
12176
+ (function () {
12177
  try {
12178
+ if (typeof setTimeout === 'function') {
12179
+ cachedSetTimeout = setTimeout;
12180
+ } else {
12181
+ cachedSetTimeout = defaultSetTimout;
12182
+ }
12183
  } catch (e) {
12184
+ cachedSetTimeout = defaultSetTimout;
12185
+ }
12186
+ try {
12187
+ if (typeof clearTimeout === 'function') {
12188
+ cachedClearTimeout = clearTimeout;
12189
+ } else {
12190
+ cachedClearTimeout = defaultClearTimeout;
12191
+ }
12192
+ } catch (e) {
12193
+ cachedClearTimeout = defaultClearTimeout;
12194
+ }
12195
+ } ())
12196
+ function runTimeout(fun) {
12197
+ if (cachedSetTimeout === setTimeout) {
12198
+ //normal enviroments in sane situations
12199
+ return setTimeout(fun, 0);
12200
+ }
12201
+ // if setTimeout wasn't available but was latter defined
12202
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
12203
+ cachedSetTimeout = setTimeout;
12204
+ return setTimeout(fun, 0);
12205
+ }
12206
+ try {
12207
+ // when when somebody has screwed with setTimeout but no I.E. maddness
12208
+ return cachedSetTimeout(fun, 0);
12209
+ } catch(e){
12210
+ try {
12211
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
12212
+ return cachedSetTimeout.call(null, fun, 0);
12213
+ } catch(e){
12214
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
12215
+ return cachedSetTimeout.call(this, fun, 0);
12216
+ }
12217
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12218
 
 
12219
 
12220
+ }
12221
+ function runClearTimeout(marker) {
12222
+ if (cachedClearTimeout === clearTimeout) {
12223
+ //normal enviroments in sane situations
12224
+ return clearTimeout(marker);
12225
  }
12226
+ // if clearTimeout wasn't available but was latter defined
12227
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
12228
+ cachedClearTimeout = clearTimeout;
12229
+ return clearTimeout(marker);
12230
  }
12231
+ try {
12232
+ // when when somebody has screwed with setTimeout but no I.E. maddness
12233
+ return cachedClearTimeout(marker);
12234
+ } catch (e){
12235
+ try {
12236
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
12237
+ return cachedClearTimeout.call(null, marker);
12238
+ } catch (e){
12239
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
12240
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
12241
+ return cachedClearTimeout.call(this, marker);
12242
+ }
12243
  }
12244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12245
 
 
 
 
 
 
12246
 
12247
+ }
12248
  var queue = [];
12249
  var draining = false;
12250
  var currentQueue;
12251
  var queueIndex = -1;
12252
 
12253
  function cleanUpNextTick() {
12254
+ if (!draining || !currentQueue) {
12255
+ return;
12256
+ }
12257
  draining = false;
12258
  if (currentQueue.length) {
12259
  queue = currentQueue.concat(queue);
12269
  if (draining) {
12270
  return;
12271
  }
12272
+ var timeout = runTimeout(cleanUpNextTick);
12273
  draining = true;
12274
 
12275
  var len = queue.length;
12286
  }
12287
  currentQueue = null;
12288
  draining = false;
12289
+ runClearTimeout(timeout);
12290
  }
12291
 
12292
  process.nextTick = function (fun) {
12298
  }
12299
  queue.push(new Item(fun, args));
12300
  if (queue.length === 1 && !draining) {
12301
+ runTimeout(drainQueue);
12302
  }
12303
  };
12304
 
12337
  };
12338
  process.umask = function() { return 0; };
12339
 
12340
+ },{}],32:[function(require,module,exports){
12341
  'use strict';
12342
 
12343
  module.exports = require('react/lib/ReactDOM');
12344
 
12345
+ },{"react/lib/ReactDOM":67}],33:[function(require,module,exports){
12346
  /**
12347
  * Copyright 2013-2015, Facebook, Inc.
12348
  * All rights reserved.
12379
  };
12380
 
12381
  module.exports = AutoFocusUtils;
12382
+ },{"./ReactMount":97,"./findDOMNode":140,"fbjs/lib/focusNode":12}],34:[function(require,module,exports){
12383
  /**
12384
  * Copyright 2013-2015 Facebook, Inc.
12385
  * All rights reserved.
12785
  };
12786
 
12787
  module.exports = BeforeInputEventPlugin;
12788
+ },{"./EventConstants":46,"./EventPropagators":50,"./FallbackCompositionState":51,"./SyntheticCompositionEvent":122,"./SyntheticInputEvent":126,"fbjs/lib/ExecutionEnvironment":4,"fbjs/lib/keyOf":22}],35:[function(require,module,exports){
12789
  /**
12790
  * Copyright 2013-2015, Facebook, Inc.
12791
  * All rights reserved.
12925
  };
12926
 
12927
  module.exports = CSSProperty;
12928
+ },{}],36:[function(require,module,exports){
12929
  (function (process){
12930
  /**
12931
  * Copyright 2013-2015, Facebook, Inc.
13103
 
13104
  module.exports = CSSPropertyOperations;
13105
  }).call(this,require('_process'))
13106
+
13107
+ },{"./CSSProperty":35,"./ReactPerf":103,"./dangerousStyleValue":137,"_process":31,"fbjs/lib/ExecutionEnvironment":4,"fbjs/lib/camelizeStyleName":6,"fbjs/lib/hyphenateStyleName":17,"fbjs/lib/memoizeStringOnly":24,"fbjs/lib/warning":29}],37:[function(require,module,exports){
13108
  (function (process){
13109
  /**
13110
  * Copyright 2013-2015, Facebook, Inc.
13200
 
13201
  module.exports = CallbackQueue;
13202
  }).call(this,require('_process'))
13203
+
13204
+ },{"./Object.assign":54,"./PooledClass":55,"_process":31,"fbjs/lib/invariant":18}],38:[function(require,module,exports){
13205
  /**
13206
  * Copyright 2013-2015, Facebook, Inc.
13207
  * All rights reserved.
13523
  };
13524
 
13525
  module.exports = ChangeEventPlugin;
13526
+ },{"./EventConstants":46,"./EventPluginHub":47,"./EventPropagators":50,"./ReactUpdates":115,"./SyntheticEvent":124,"./getEventTarget":146,"./isEventSupported":151,"./isTextInputElement":152,"fbjs/lib/ExecutionEnvironment":4,"fbjs/lib/keyOf":22}],39:[function(require,module,exports){
13527
  /**
13528
  * Copyright 2013-2015, Facebook, Inc.
13529
  * All rights reserved.
13547
  };
13548
 
13549
  module.exports = ClientReactRootIndex;
13550
+ },{}],40:[function(require,module,exports){
13551
  (function (process){
13552
  /**
13553
  * Copyright 2013-2015, Facebook, Inc.
13679
 
13680
  module.exports = DOMChildrenOperations;
13681
  }).call(this,require('_process'))
13682
+
13683
+ },{"./Danger":43,"./ReactMultiChildUpdateTypes":99,"./ReactPerf":103,"./setInnerHTML":156,"./setTextContent":157,"_process":31,"fbjs/lib/invariant":18}],41:[function(require,module,exports){
13684
  (function (process){
13685
  /**
13686
  * Copyright 2013-2015, Facebook, Inc.
13917
 
13918
  module.exports = DOMProperty;
13919
  }).call(this,require('_process'))
13920
+
13921
+ },{"_process":31,"fbjs/lib/invariant":18}],42:[function(require,module,exports){
13922
  (function (process){
13923
  /**
13924
  * Copyright 2013-2015, Facebook, Inc.
14146
 
14147
  module.exports = DOMPropertyOperations;
14148
  }).call(this,require('_process'))
14149
+
14150
+ },{"./DOMProperty":41,"./ReactPerf":103,"./quoteAttributeValueForBrowser":154,"_process":31,"fbjs/lib/warning":29}],43:[function(require,module,exports){
14151
  (function (process){
14152
  /**
14153
  * Copyright 2013-2015, Facebook, Inc.
14295
 
14296
  module.exports = Danger;
14297
  }).call(this,require('_process'))
14298
+
14299
+ },{"_process":31,"fbjs/lib/ExecutionEnvironment":4,"fbjs/lib/createNodesFromMarkup":9,"fbjs/lib/emptyFunction":10,"fbjs/lib/getMarkupWrap":14,"fbjs/lib/invariant":18}],44:[function(require,module,exports){
14300
  /**
14301
  * Copyright 2013-2015, Facebook, Inc.
14302
  * All rights reserved.
14324
  var DefaultEventPluginOrder = [keyOf({ ResponderEventPlugin: null }), keyOf({ SimpleEventPlugin: null }), keyOf({ TapEventPlugin: null }), keyOf({ EnterLeaveEventPlugin: null }), keyOf({ ChangeEventPlugin: null }), keyOf({ SelectEventPlugin: null }), keyOf({ BeforeInputEventPlugin: null })];
14325
 
14326
  module.exports = DefaultEventPluginOrder;
14327
+ },{"fbjs/lib/keyOf":22}],45:[function(require,module,exports){
14328
  /**
14329
  * Copyright 2013-2015, Facebook, Inc.
14330
  * All rights reserved.
14449
  };
14450
 
14451
  module.exports = EnterLeaveEventPlugin;
14452
+ },{"./EventConstants":46,"./EventPropagators":50,"./ReactMount":97,"./SyntheticMouseEvent":128,"fbjs/lib/keyOf":22}],46:[function(require,module,exports){
14453
  /**
14454
  * Copyright 2013-2015, Facebook, Inc.
14455
  * All rights reserved.
14542
  };
14543
 
14544
  module.exports = EventConstants;
14545
+ },{"fbjs/lib/keyMirror":21}],47:[function(require,module,exports){
14546
  (function (process){
14547
  /**
14548
  * Copyright 2013-2015, Facebook, Inc.
14824
 
14825
  module.exports = EventPluginHub;
14826
  }).call(this,require('_process'))
14827
+
14828
+ },{"./EventPluginRegistry":48,"./EventPluginUtils":49,"./ReactErrorUtils":88,"./accumulateInto":134,"./forEachAccumulated":142,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],48:[function(require,module,exports){
14829
  (function (process){
14830
  /**
14831
  * Copyright 2013-2015, Facebook, Inc.
15048
 
15049
  module.exports = EventPluginRegistry;
15050
  }).call(this,require('_process'))
15051
+
15052
+ },{"_process":31,"fbjs/lib/invariant":18}],49:[function(require,module,exports){
15053
  (function (process){
15054
  /**
15055
  * Copyright 2013-2015, Facebook, Inc.
15254
 
15255
  module.exports = EventPluginUtils;
15256
  }).call(this,require('_process'))
15257
+
15258
+ },{"./EventConstants":46,"./ReactErrorUtils":88,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],50:[function(require,module,exports){
15259
  (function (process){
15260
  /**
15261
  * Copyright 2013-2015, Facebook, Inc.
15393
 
15394
  module.exports = EventPropagators;
15395
  }).call(this,require('_process'))
15396
+
15397
+ },{"./EventConstants":46,"./EventPluginHub":47,"./accumulateInto":134,"./forEachAccumulated":142,"_process":31,"fbjs/lib/warning":29}],51:[function(require,module,exports){
15398
  /**
15399
  * Copyright 2013-2015, Facebook, Inc.
15400
  * All rights reserved.
15490
  PooledClass.addPoolingTo(FallbackCompositionState);
15491
 
15492
  module.exports = FallbackCompositionState;
15493
+ },{"./Object.assign":54,"./PooledClass":55,"./getTextContentAccessor":149}],52:[function(require,module,exports){
15494
  /**
15495
  * Copyright 2013-2015, Facebook, Inc.
15496
  * All rights reserved.
15721
  };
15722
 
15723
  module.exports = HTMLDOMPropertyConfig;
15724
+ },{"./DOMProperty":41,"fbjs/lib/ExecutionEnvironment":4}],53:[function(require,module,exports){
15725
  (function (process){
15726
  /**
15727
  * Copyright 2013-2015, Facebook, Inc.
15858
 
15859
  module.exports = LinkedValueUtils;
15860
  }).call(this,require('_process'))
15861
+
15862
+ },{"./ReactPropTypeLocations":105,"./ReactPropTypes":106,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],54:[function(require,module,exports){
15863
  /**
15864
  * Copyright 2014-2015, Facebook, Inc.
15865
  * All rights reserved.
15907
  }
15908
 
15909
  module.exports = assign;
15910
+ },{}],55:[function(require,module,exports){
15911
  (function (process){
15912
  /**
15913
  * Copyright 2013-2015, Facebook, Inc.
16029
 
16030
  module.exports = PooledClass;
16031
  }).call(this,require('_process'))
16032
+
16033
+ },{"_process":31,"fbjs/lib/invariant":18}],56:[function(require,module,exports){
16034
  /**
16035
  * Copyright 2013-2015, Facebook, Inc.
16036
  * All rights reserved.
16071
  React.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOMServer;
16072
 
16073
  module.exports = React;
16074
+ },{"./Object.assign":54,"./ReactDOM":67,"./ReactDOMServer":77,"./ReactIsomorphic":95,"./deprecated":138}],57:[function(require,module,exports){
16075
  (function (process){
16076
  /**
16077
  * Copyright 2013-2015, Facebook, Inc.
16110
 
16111
  module.exports = ReactBrowserComponentMixin;
16112
  }).call(this,require('_process'))
16113
+
16114
+ },{"./ReactInstanceMap":94,"./findDOMNode":140,"_process":31,"fbjs/lib/warning":29}],58:[function(require,module,exports){
16115
  /**
16116
  * Copyright 2013-2015, Facebook, Inc.
16117
  * All rights reserved.
16436
  });
16437
 
16438
  module.exports = ReactBrowserEventEmitter;
16439
+ },{"./EventConstants":46,"./EventPluginHub":47,"./EventPluginRegistry":48,"./Object.assign":54,"./ReactEventEmitterMixin":89,"./ReactPerf":103,"./ViewportMetrics":133,"./isEventSupported":151}],59:[function(require,module,exports){
16440
  (function (process){
16441
  /**
16442
  * Copyright 2014-2015, Facebook, Inc.
16561
 
16562
  module.exports = ReactChildReconciler;
16563
  }).call(this,require('_process'))
16564
+
16565
+ },{"./ReactReconciler":108,"./instantiateReactComponent":150,"./shouldUpdateReactComponent":158,"./traverseAllChildren":159,"_process":31,"fbjs/lib/warning":29}],60:[function(require,module,exports){
16566
  /**
16567
  * Copyright 2013-2015, Facebook, Inc.
16568
  * All rights reserved.
16745
  };
16746
 
16747
  module.exports = ReactChildren;
16748
+ },{"./PooledClass":55,"./ReactElement":84,"./traverseAllChildren":159,"fbjs/lib/emptyFunction":10}],61:[function(require,module,exports){
16749
  (function (process){
16750
  /**
16751
  * Copyright 2013-2015, Facebook, Inc.
17519
 
17520
  module.exports = ReactClass;
17521
  }).call(this,require('_process'))
17522
+
17523
+ },{"./Object.assign":54,"./ReactComponent":62,"./ReactElement":84,"./ReactNoopUpdateQueue":101,"./ReactPropTypeLocationNames":104,"./ReactPropTypeLocations":105,"_process":31,"fbjs/lib/emptyObject":11,"fbjs/lib/invariant":18,"fbjs/lib/keyMirror":21,"fbjs/lib/keyOf":22,"fbjs/lib/warning":29}],62:[function(require,module,exports){
17524
  (function (process){
17525
  /**
17526
  * Copyright 2013-2015, Facebook, Inc.
17645
 
17646
  module.exports = ReactComponent;
17647
  }).call(this,require('_process'))
17648
+
17649
+ },{"./ReactNoopUpdateQueue":101,"./canDefineProperty":136,"_process":31,"fbjs/lib/emptyObject":11,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],63:[function(require,module,exports){
17650
  /**
17651
  * Copyright 2013-2015, Facebook, Inc.
17652
  * All rights reserved.
17688
  };
17689
 
17690
  module.exports = ReactComponentBrowserEnvironment;
17691
+ },{"./ReactDOMIDOperations":72,"./ReactMount":97}],64:[function(require,module,exports){
17692
  (function (process){
17693
  /**
17694
  * Copyright 2014-2015, Facebook, Inc.
17742
 
17743
  module.exports = ReactComponentEnvironment;
17744
  }).call(this,require('_process'))
17745
+
17746
+ },{"_process":31,"fbjs/lib/invariant":18}],65:[function(require,module,exports){
17747
  (function (process){
17748
  /**
17749
  * Copyright 2013-2015, Facebook, Inc.
18440
 
18441
  module.exports = ReactCompositeComponent;
18442
  }).call(this,require('_process'))
18443
+
18444
+ },{"./Object.assign":54,"./ReactComponentEnvironment":64,"./ReactCurrentOwner":66,"./ReactElement":84,"./ReactInstanceMap":94,"./ReactPerf":103,"./ReactPropTypeLocationNames":104,"./ReactPropTypeLocations":105,"./ReactReconciler":108,"./ReactUpdateQueue":114,"./shouldUpdateReactComponent":158,"_process":31,"fbjs/lib/emptyObject":11,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],66:[function(require,module,exports){
18445
  /**
18446
  * Copyright 2013-2015, Facebook, Inc.
18447
  * All rights reserved.
18472
  };
18473
 
18474
  module.exports = ReactCurrentOwner;
18475
+ },{}],67:[function(require,module,exports){
18476
  (function (process){
18477
  /**
18478
  * Copyright 2013-2015, Facebook, Inc.
18567
 
18568
  module.exports = React;
18569
  }).call(this,require('_process'))
18570
+
18571
+ },{"./ReactCurrentOwner":66,"./ReactDOMTextComponent":78,"./ReactDefaultInjection":81,"./ReactInstanceHandles":93,"./ReactMount":97,"./ReactPerf":103,"./ReactReconciler":108,"./ReactUpdates":115,"./ReactVersion":116,"./findDOMNode":140,"./renderSubtreeIntoContainer":155,"_process":31,"fbjs/lib/ExecutionEnvironment":4,"fbjs/lib/warning":29}],68:[function(require,module,exports){
18572
  /**
18573
  * Copyright 2013-2015, Facebook, Inc.
18574
  * All rights reserved.
18619
  };
18620
 
18621
  module.exports = ReactDOMButton;
18622
+ },{}],69:[function(require,module,exports){
18623
  (function (process){
18624
  /**
18625
  * Copyright 2013-2015, Facebook, Inc.
19584
 
19585
  module.exports = ReactDOMComponent;
19586
  }).call(this,require('_process'))
19587
+
19588
+ },{"./AutoFocusUtils":33,"./CSSPropertyOperations":36,"./DOMProperty":41,"./DOMPropertyOperations":42,"./EventConstants":46,"./Object.assign":54,"./ReactBrowserEventEmitter":58,"./ReactComponentBrowserEnvironment":63,"./ReactDOMButton":68,"./ReactDOMInput":73,"./ReactDOMOption":74,"./ReactDOMSelect":75,"./ReactDOMTextarea":79,"./ReactMount":97,"./ReactMultiChild":98,"./ReactPerf":103,"./ReactUpdateQueue":114,"./canDefineProperty":136,"./escapeTextContentForBrowser":139,"./isEventSupported":151,"./setInnerHTML":156,"./setTextContent":157,"./validateDOMNesting":160,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/keyOf":22,"fbjs/lib/shallowEqual":27,"fbjs/lib/warning":29}],70:[function(require,module,exports){
19589
  (function (process){
19590
  /**
19591
  * Copyright 2013-2015, Facebook, Inc.
19765
 
19766
  module.exports = ReactDOMFactories;
19767
  }).call(this,require('_process'))
19768
+
19769
+ },{"./ReactElement":84,"./ReactElementValidator":85,"_process":31,"fbjs/lib/mapObject":23}],71:[function(require,module,exports){
19770
  /**
19771
  * Copyright 2013-2015, Facebook, Inc.
19772
  * All rights reserved.
19785
  };
19786
 
19787
  module.exports = ReactDOMFeatureFlags;
19788
+ },{}],72:[function(require,module,exports){
19789
  (function (process){
19790
  /**
19791
  * Copyright 2013-2015, Facebook, Inc.
19882
 
19883
  module.exports = ReactDOMIDOperations;
19884
  }).call(this,require('_process'))
19885
+
19886
+ },{"./DOMChildrenOperations":40,"./DOMPropertyOperations":42,"./ReactMount":97,"./ReactPerf":103,"_process":31,"fbjs/lib/invariant":18}],73:[function(require,module,exports){
19887
  (function (process){
19888
  /**
19889
  * Copyright 2013-2015, Facebook, Inc.
20039
 
20040
  module.exports = ReactDOMInput;
20041
  }).call(this,require('_process'))
20042
+
20043
+ },{"./LinkedValueUtils":53,"./Object.assign":54,"./ReactDOMIDOperations":72,"./ReactMount":97,"./ReactUpdates":115,"_process":31,"fbjs/lib/invariant":18}],74:[function(require,module,exports){
20044
  (function (process){
20045
  /**
20046
  * Copyright 2013-2015, Facebook, Inc.
20132
 
20133
  module.exports = ReactDOMOption;
20134
  }).call(this,require('_process'))
20135
+
20136
+ },{"./Object.assign":54,"./ReactChildren":60,"./ReactDOMSelect":75,"_process":31,"fbjs/lib/warning":29}],75:[function(require,module,exports){
20137
  (function (process){
20138
  /**
20139
  * Copyright 2013-2015, Facebook, Inc.
20324
 
20325
  module.exports = ReactDOMSelect;
20326
  }).call(this,require('_process'))
20327
+
20328
+ },{"./LinkedValueUtils":53,"./Object.assign":54,"./ReactMount":97,"./ReactUpdates":115,"_process":31,"fbjs/lib/warning":29}],76:[function(require,module,exports){
20329
  /**
20330
  * Copyright 2013-2015, Facebook, Inc.
20331
  * All rights reserved.
20538
  };
20539
 
20540
  module.exports = ReactDOMSelection;
20541
+ },{"./getNodeForCharacterOffset":148,"./getTextContentAccessor":149,"fbjs/lib/ExecutionEnvironment":4}],77:[function(require,module,exports){
20542
  /**
20543
  * Copyright 2013-2015, Facebook, Inc.
20544
  * All rights reserved.
20565
  };
20566
 
20567
  module.exports = ReactDOMServer;
20568
+ },{"./ReactDefaultInjection":81,"./ReactServerRendering":112,"./ReactVersion":116}],78:[function(require,module,exports){
20569
  (function (process){
20570
  /**
20571
  * Copyright 2013-2015, Facebook, Inc.
20695
 
20696
  module.exports = ReactDOMTextComponent;
20697
  }).call(this,require('_process'))
20698
+
20699
+ },{"./DOMChildrenOperations":40,"./DOMPropertyOperations":42,"./Object.assign":54,"./ReactComponentBrowserEnvironment":63,"./ReactMount":97,"./escapeTextContentForBrowser":139,"./setTextContent":157,"./validateDOMNesting":160,"_process":31}],79:[function(require,module,exports){
20700
  (function (process){
20701
  /**
20702
  * Copyright 2013-2015, Facebook, Inc.
20812
 
20813
  module.exports = ReactDOMTextarea;
20814
  }).call(this,require('_process'))
20815
+
20816
+ },{"./LinkedValueUtils":53,"./Object.assign":54,"./ReactDOMIDOperations":72,"./ReactUpdates":115,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],80:[function(require,module,exports){
20817
  /**
20818
  * Copyright 2013-2015, Facebook, Inc.
20819
  * All rights reserved.
20881
  };
20882
 
20883
  module.exports = ReactDefaultBatchingStrategy;
20884
+ },{"./Object.assign":54,"./ReactUpdates":115,"./Transaction":132,"fbjs/lib/emptyFunction":10}],81:[function(require,module,exports){
20885
  (function (process){
20886
  /**
20887
  * Copyright 2013-2015, Facebook, Inc.
20981
  inject: inject
20982
  };
20983
  }).call(this,require('_process'))
20984
+
20985
+ },{"./BeforeInputEventPlugin":34,"./ChangeEventPlugin":38,"./ClientReactRootIndex":39,"./DefaultEventPluginOrder":44,"./EnterLeaveEventPlugin":45,"./HTMLDOMPropertyConfig":52,"./ReactBrowserComponentMixin":57,"./ReactComponentBrowserEnvironment":63,"./ReactDOMComponent":69,"./ReactDOMTextComponent":78,"./ReactDefaultBatchingStrategy":80,"./ReactDefaultPerf":82,"./ReactEventListener":90,"./ReactInjection":91,"./ReactInstanceHandles":93,"./ReactMount":97,"./ReactReconcileTransaction":107,"./SVGDOMPropertyConfig":117,"./SelectEventPlugin":118,"./ServerReactRootIndex":119,"./SimpleEventPlugin":120,"_process":31,"fbjs/lib/ExecutionEnvironment":4}],82:[function(require,module,exports){
20986
  /**
20987
  * Copyright 2013-2015, Facebook, Inc.
20988
  * All rights reserved.
21220
  };
21221
 
21222
  module.exports = ReactDefaultPerf;
21223
+ },{"./DOMProperty":41,"./ReactDefaultPerfAnalysis":83,"./ReactMount":97,"./ReactPerf":103,"fbjs/lib/performanceNow":26}],83:[function(require,module,exports){
21224
  /**
21225
  * Copyright 2013-2015, Facebook, Inc.
21226
  * All rights reserved.
21422
  };
21423
 
21424
  module.exports = ReactDefaultPerfAnalysis;
21425
+ },{"./Object.assign":54}],84:[function(require,module,exports){
21426
  (function (process){
21427
  /**
21428
  * Copyright 2014-2015, Facebook, Inc.
21672
 
21673
  module.exports = ReactElement;
21674
  }).call(this,require('_process'))
21675
+
21676
+ },{"./Object.assign":54,"./ReactCurrentOwner":66,"./canDefineProperty":136,"_process":31}],85:[function(require,module,exports){
21677
  (function (process){
21678
  /**
21679
  * Copyright 2014-2015, Facebook, Inc.
21957
 
21958
  module.exports = ReactElementValidator;
21959
  }).call(this,require('_process'))
21960
+
21961
+ },{"./ReactCurrentOwner":66,"./ReactElement":84,"./ReactPropTypeLocationNames":104,"./ReactPropTypeLocations":105,"./canDefineProperty":136,"./getIteratorFn":147,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],86:[function(require,module,exports){
21962
  /**
21963
  * Copyright 2014-2015, Facebook, Inc.
21964
  * All rights reserved.
21986
  }
21987
  };
21988
 
21989
+ function registerNullComponentID() {
21990
+ ReactEmptyComponentRegistry.registerNullComponentID(this._rootNodeID);
21991
+ }
21992
+
21993
  var ReactEmptyComponent = function (instantiate) {
21994
  this._currentElement = null;
21995
  this._rootNodeID = null;
21998
  assign(ReactEmptyComponent.prototype, {
21999
  construct: function (element) {},
22000
  mountComponent: function (rootID, transaction, context) {
22001
+ transaction.getReactMountReady().enqueue(registerNullComponentID, this);
22002
  this._rootNodeID = rootID;
22003
  return ReactReconciler.mountComponent(this._renderedComponent, rootID, transaction, context);
22004
  },
22014
  ReactEmptyComponent.injection = ReactEmptyComponentInjection;
22015
 
22016
  module.exports = ReactEmptyComponent;
22017
+ },{"./Object.assign":54,"./ReactElement":84,"./ReactEmptyComponentRegistry":87,"./ReactReconciler":108}],87:[function(require,module,exports){
22018
  /**
22019
  * Copyright 2014-2015, Facebook, Inc.
22020
  * All rights reserved.
22063
  };
22064
 
22065
  module.exports = ReactEmptyComponentRegistry;
22066
+ },{}],88:[function(require,module,exports){
22067
  (function (process){
22068
  /**
22069
  * Copyright 2013-2015, Facebook, Inc.
22143
 
22144
  module.exports = ReactErrorUtils;
22145
  }).call(this,require('_process'))
22146
+
22147
+ },{"_process":31}],89:[function(require,module,exports){
22148
  /**
22149
  * Copyright 2013-2015, Facebook, Inc.
22150
  * All rights reserved.
22183
  };
22184
 
22185
  module.exports = ReactEventEmitterMixin;
22186
+ },{"./EventPluginHub":47}],90:[function(require,module,exports){
22187
  /**
22188
  * Copyright 2013-2015, Facebook, Inc.
22189
  * All rights reserved.
22395
  };
22396
 
22397
  module.exports = ReactEventListener;
22398
+ },{"./Object.assign":54,"./PooledClass":55,"./ReactInstanceHandles":93,"./ReactMount":97,"./ReactUpdates":115,"./getEventTarget":146,"fbjs/lib/EventListener":3,"fbjs/lib/ExecutionEnvironment":4,"fbjs/lib/getUnboundedScrollPosition":15}],91:[function(require,module,exports){
22399
  /**
22400
  * Copyright 2013-2015, Facebook, Inc.
22401
  * All rights reserved.
22434
  };
22435
 
22436
  module.exports = ReactInjection;
22437
+ },{"./DOMProperty":41,"./EventPluginHub":47,"./ReactBrowserEventEmitter":58,"./ReactClass":61,"./ReactComponentEnvironment":64,"./ReactEmptyComponent":86,"./ReactNativeComponent":100,"./ReactPerf":103,"./ReactRootIndex":110,"./ReactUpdates":115}],92:[function(require,module,exports){
22438
  /**
22439
  * Copyright 2013-2015, Facebook, Inc.
22440
  * All rights reserved.
22559
  };
22560
 
22561
  module.exports = ReactInputSelection;
22562
+ },{"./ReactDOMSelection":76,"fbjs/lib/containsNode":7,"fbjs/lib/focusNode":12,"fbjs/lib/getActiveElement":13}],93:[function(require,module,exports){
22563
  (function (process){
22564
  /**
22565
  * Copyright 2013-2015, Facebook, Inc.
22864
 
22865
  module.exports = ReactInstanceHandles;
22866
  }).call(this,require('_process'))
22867
+
22868
+ },{"./ReactRootIndex":110,"_process":31,"fbjs/lib/invariant":18}],94:[function(require,module,exports){
22869
  /**
22870
  * Copyright 2013-2015, Facebook, Inc.
22871
  * All rights reserved.
22913
  };
22914
 
22915
  module.exports = ReactInstanceMap;
22916
+ },{}],95:[function(require,module,exports){
22917
  (function (process){
22918
  /**
22919
  * Copyright 2013-2015, Facebook, Inc.
22990
 
22991
  module.exports = React;
22992
  }).call(this,require('_process'))
22993
+
22994
+ },{"./Object.assign":54,"./ReactChildren":60,"./ReactClass":61,"./ReactComponent":62,"./ReactDOMFactories":70,"./ReactElement":84,"./ReactElementValidator":85,"./ReactPropTypes":106,"./ReactVersion":116,"./onlyChild":153,"_process":31}],96:[function(require,module,exports){
22995
  /**
22996
  * Copyright 2013-2015, Facebook, Inc.
22997
  * All rights reserved.
23037
  };
23038
 
23039
  module.exports = ReactMarkupChecksum;
23040
+ },{"./adler32":135}],97:[function(require,module,exports){
23041
  (function (process){
23042
  /**
23043
  * Copyright 2013-2015, Facebook, Inc.
23890
 
23891
  module.exports = ReactMount;
23892
  }).call(this,require('_process'))
23893
+
23894
+ },{"./DOMProperty":41,"./Object.assign":54,"./ReactBrowserEventEmitter":58,"./ReactCurrentOwner":66,"./ReactDOMFeatureFlags":71,"./ReactElement":84,"./ReactEmptyComponentRegistry":87,"./ReactInstanceHandles":93,"./ReactInstanceMap":94,"./ReactMarkupChecksum":96,"./ReactPerf":103,"./ReactReconciler":108,"./ReactUpdateQueue":114,"./ReactUpdates":115,"./instantiateReactComponent":150,"./setInnerHTML":156,"./shouldUpdateReactComponent":158,"./validateDOMNesting":160,"_process":31,"fbjs/lib/containsNode":7,"fbjs/lib/emptyObject":11,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],98:[function(require,module,exports){
23895
  (function (process){
23896
  /**
23897
  * Copyright 2013-2015, Facebook, Inc.
24390
 
24391
  module.exports = ReactMultiChild;
24392
  }).call(this,require('_process'))
24393
+
24394
+ },{"./ReactChildReconciler":59,"./ReactComponentEnvironment":64,"./ReactCurrentOwner":66,"./ReactMultiChildUpdateTypes":99,"./ReactReconciler":108,"./flattenChildren":141,"_process":31}],99:[function(require,module,exports){
24395
  /**
24396
  * Copyright 2013-2015, Facebook, Inc.
24397
  * All rights reserved.
24424
  });
24425
 
24426
  module.exports = ReactMultiChildUpdateTypes;
24427
+ },{"fbjs/lib/keyMirror":21}],100:[function(require,module,exports){
24428
  (function (process){
24429
  /**
24430
  * Copyright 2014-2015, Facebook, Inc.
24521
 
24522
  module.exports = ReactNativeComponent;
24523
  }).call(this,require('_process'))
24524
+
24525
+ },{"./Object.assign":54,"_process":31,"fbjs/lib/invariant":18}],101:[function(require,module,exports){
24526
  (function (process){
24527
  /**
24528
  * Copyright 2015, Facebook, Inc.
24643
 
24644
  module.exports = ReactNoopUpdateQueue;
24645
  }).call(this,require('_process'))
24646
+
24647
+ },{"_process":31,"fbjs/lib/warning":29}],102:[function(require,module,exports){
24648
  (function (process){
24649
  /**
24650
  * Copyright 2013-2015, Facebook, Inc.
24738
 
24739
  module.exports = ReactOwner;
24740
  }).call(this,require('_process'))
24741
+
24742
+ },{"_process":31,"fbjs/lib/invariant":18}],103:[function(require,module,exports){
24743
  (function (process){
24744
  /**
24745
  * Copyright 2013-2015, Facebook, Inc.
24838
 
24839
  module.exports = ReactPerf;
24840
  }).call(this,require('_process'))
24841
+
24842
+ },{"_process":31}],104:[function(require,module,exports){
24843
  (function (process){
24844
  /**
24845
  * Copyright 2013-2015, Facebook, Inc.
24866
 
24867
  module.exports = ReactPropTypeLocationNames;
24868
  }).call(this,require('_process'))
24869
+
24870
+ },{"_process":31}],105:[function(require,module,exports){
24871
  /**
24872
  * Copyright 2013-2015, Facebook, Inc.
24873
  * All rights reserved.
24890
  });
24891
 
24892
  module.exports = ReactPropTypeLocations;
24893
+ },{"fbjs/lib/keyMirror":21}],106:[function(require,module,exports){
24894
  /**
24895
  * Copyright 2013-2015, Facebook, Inc.
24896
  * All rights reserved.
25247
  }
25248
 
25249
  module.exports = ReactPropTypes;
25250
+ },{"./ReactElement":84,"./ReactPropTypeLocationNames":104,"./getIteratorFn":147,"fbjs/lib/emptyFunction":10}],107:[function(require,module,exports){
25251
  /**
25252
  * Copyright 2013-2015, Facebook, Inc.
25253
  * All rights reserved.
25399
  PooledClass.addPoolingTo(ReactReconcileTransaction);
25400
 
25401
  module.exports = ReactReconcileTransaction;
25402
+ },{"./CallbackQueue":37,"./Object.assign":54,"./PooledClass":55,"./ReactBrowserEventEmitter":58,"./ReactDOMFeatureFlags":71,"./ReactInputSelection":92,"./Transaction":132}],108:[function(require,module,exports){
25403
  /**
25404
  * Copyright 2013-2015, Facebook, Inc.
25405
  * All rights reserved.
25507
  };
25508
 
25509
  module.exports = ReactReconciler;
25510
+ },{"./ReactRef":109}],109:[function(require,module,exports){
25511
  /**
25512
  * Copyright 2013-2015, Facebook, Inc.
25513
  * All rights reserved.
25586
  };
25587
 
25588
  module.exports = ReactRef;
25589
+ },{"./ReactOwner":102}],110:[function(require,module,exports){
25590
  /**
25591
  * Copyright 2013-2015, Facebook, Inc.
25592
  * All rights reserved.
25616
  };
25617
 
25618
  module.exports = ReactRootIndex;
25619
+ },{}],111:[function(require,module,exports){
25620
  /**
25621
  * Copyright 2014-2015, Facebook, Inc.
25622
  * All rights reserved.
25640
  };
25641
 
25642
  module.exports = ReactServerBatchingStrategy;
25643
+ },{}],112:[function(require,module,exports){
25644
  (function (process){
25645
  /**
25646
  * Copyright 2013-2015, Facebook, Inc.
25726
  renderToStaticMarkup: renderToStaticMarkup
25727
  };
25728
  }).call(this,require('_process'))
25729
+
25730
+ },{"./ReactDefaultBatchingStrategy":80,"./ReactElement":84,"./ReactInstanceHandles":93,"./ReactMarkupChecksum":96,"./ReactServerBatchingStrategy":111,"./ReactServerRenderingTransaction":113,"./ReactUpdates":115,"./instantiateReactComponent":150,"_process":31,"fbjs/lib/emptyObject":11,"fbjs/lib/invariant":18}],113:[function(require,module,exports){
25731
  /**
25732
  * Copyright 2014-2015, Facebook, Inc.
25733
  * All rights reserved.
25815
  PooledClass.addPoolingTo(ReactServerRenderingTransaction);
25816
 
25817
  module.exports = ReactServerRenderingTransaction;
25818
+ },{"./CallbackQueue":37,"./Object.assign":54,"./PooledClass":55,"./Transaction":132,"fbjs/lib/emptyFunction":10}],114:[function(require,module,exports){
25819
  (function (process){
25820
  /**
25821
  * Copyright 2015, Facebook, Inc.
26075
 
26076
  module.exports = ReactUpdateQueue;
26077
  }).call(this,require('_process'))
26078
+
26079
+ },{"./Object.assign":54,"./ReactCurrentOwner":66,"./ReactElement":84,"./ReactInstanceMap":94,"./ReactUpdates":115,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],115:[function(require,module,exports){
26080
  (function (process){
26081
  /**
26082
  * Copyright 2013-2015, Facebook, Inc.
26302
 
26303
  module.exports = ReactUpdates;
26304
  }).call(this,require('_process'))
26305
+
26306
+ },{"./CallbackQueue":37,"./Object.assign":54,"./PooledClass":55,"./ReactPerf":103,"./ReactReconciler":108,"./Transaction":132,"_process":31,"fbjs/lib/invariant":18}],116:[function(require,module,exports){
26307
  /**
26308
  * Copyright 2013-2015, Facebook, Inc.
26309
  * All rights reserved.
26317
 
26318
  'use strict';
26319
 
26320
+ module.exports = '0.14.8';
26321
+ },{}],117:[function(require,module,exports){
26322
  /**
26323
  * Copyright 2013-2015, Facebook, Inc.
26324
  * All rights reserved.
26446
  };
26447
 
26448
  module.exports = SVGDOMPropertyConfig;
26449
+ },{"./DOMProperty":41}],118:[function(require,module,exports){
26450
  /**
26451
  * Copyright 2013-2015, Facebook, Inc.
26452
  * All rights reserved.
26648
  };
26649
 
26650
  module.exports = SelectEventPlugin;
26651
+ },{"./EventConstants":46,"./EventPropagators":50,"./ReactInputSelection":92,"./SyntheticEvent":124,"./isTextInputElement":152,"fbjs/lib/ExecutionEnvironment":4,"fbjs/lib/getActiveElement":13,"fbjs/lib/keyOf":22,"fbjs/lib/shallowEqual":27}],119:[function(require,module,exports){
26652
  /**
26653
  * Copyright 2013-2015, Facebook, Inc.
26654
  * All rights reserved.
26678
  };
26679
 
26680
  module.exports = ServerReactRootIndex;
26681
+ },{}],120:[function(require,module,exports){
26682
  (function (process){
26683
  /**
26684
  * Copyright 2013-2015, Facebook, Inc.
27268
 
27269
  module.exports = SimpleEventPlugin;
27270
  }).call(this,require('_process'))
27271
+
27272
+ },{"./EventConstants":46,"./EventPropagators":50,"./ReactMount":97,"./SyntheticClipboardEvent":121,"./SyntheticDragEvent":123,"./SyntheticEvent":124,"./SyntheticFocusEvent":125,"./SyntheticKeyboardEvent":127,"./SyntheticMouseEvent":128,"./SyntheticTouchEvent":129,"./SyntheticUIEvent":130,"./SyntheticWheelEvent":131,"./getEventCharCode":143,"_process":31,"fbjs/lib/EventListener":3,"fbjs/lib/emptyFunction":10,"fbjs/lib/invariant":18,"fbjs/lib/keyOf":22}],121:[function(require,module,exports){
27273
  /**
27274
  * Copyright 2013-2015, Facebook, Inc.
27275
  * All rights reserved.
27309
  SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface);
27310
 
27311
  module.exports = SyntheticClipboardEvent;
27312
+ },{"./SyntheticEvent":124}],122:[function(require,module,exports){
27313
  /**
27314
  * Copyright 2013-2015, Facebook, Inc.
27315
  * All rights reserved.
27347
  SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);
27348
 
27349
  module.exports = SyntheticCompositionEvent;
27350
+ },{"./SyntheticEvent":124}],123:[function(require,module,exports){
27351
  /**
27352
  * Copyright 2013-2015, Facebook, Inc.
27353
  * All rights reserved.
27385
  SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);
27386
 
27387
  module.exports = SyntheticDragEvent;
27388
+ },{"./SyntheticMouseEvent":128}],124:[function(require,module,exports){
27389
  (function (process){
27390
  /**
27391
  * Copyright 2013-2015, Facebook, Inc.
27568
 
27569
  module.exports = SyntheticEvent;
27570
  }).call(this,require('_process'))
27571
+
27572
+ },{"./Object.assign":54,"./PooledClass":55,"_process":31,"fbjs/lib/emptyFunction":10,"fbjs/lib/warning":29}],125:[function(require,module,exports){
27573
  /**
27574
  * Copyright 2013-2015, Facebook, Inc.
27575
  * All rights reserved.
27607
  SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);
27608
 
27609
  module.exports = SyntheticFocusEvent;
27610
+ },{"./SyntheticUIEvent":130}],126:[function(require,module,exports){
27611
  /**
27612
  * Copyright 2013-2015, Facebook, Inc.
27613
  * All rights reserved.
27646
  SyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface);
27647
 
27648
  module.exports = SyntheticInputEvent;
27649
+ },{"./SyntheticEvent":124}],127:[function(require,module,exports){
27650
  /**
27651
  * Copyright 2013-2015, Facebook, Inc.
27652
  * All rights reserved.
27732
  SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface);
27733
 
27734
  module.exports = SyntheticKeyboardEvent;
27735
+ },{"./SyntheticUIEvent":130,"./getEventCharCode":143,"./getEventKey":144,"./getEventModifierState":145}],128:[function(require,module,exports){
27736
  /**
27737
  * Copyright 2013-2015, Facebook, Inc.
27738
  * All rights reserved.
27806
  SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface);
27807
 
27808
  module.exports = SyntheticMouseEvent;
27809
+ },{"./SyntheticUIEvent":130,"./ViewportMetrics":133,"./getEventModifierState":145}],129:[function(require,module,exports){
27810
  /**
27811
  * Copyright 2013-2015, Facebook, Inc.
27812
  * All rights reserved.
27853
  SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface);
27854
 
27855
  module.exports = SyntheticTouchEvent;
27856
+ },{"./SyntheticUIEvent":130,"./getEventModifierState":145}],130:[function(require,module,exports){
27857
  /**
27858
  * Copyright 2013-2015, Facebook, Inc.
27859
  * All rights reserved.
27914
  SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface);
27915
 
27916
  module.exports = SyntheticUIEvent;
27917
+ },{"./SyntheticEvent":124,"./getEventTarget":146}],131:[function(require,module,exports){
27918
  /**
27919
  * Copyright 2013-2015, Facebook, Inc.
27920
  * All rights reserved.
27970
  SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface);
27971
 
27972
  module.exports = SyntheticWheelEvent;
27973
+ },{"./SyntheticMouseEvent":128}],132:[function(require,module,exports){
27974
  (function (process){
27975
  /**
27976
  * Copyright 2013-2015, Facebook, Inc.
28204
 
28205
  module.exports = Transaction;
28206
  }).call(this,require('_process'))
28207
+
28208
+ },{"_process":31,"fbjs/lib/invariant":18}],133:[function(require,module,exports){
28209
  /**
28210
  * Copyright 2013-2015, Facebook, Inc.
28211
  * All rights reserved.
28233
  };
28234
 
28235
  module.exports = ViewportMetrics;
28236
+ },{}],134:[function(require,module,exports){
28237
  (function (process){
28238
  /**
28239
  * Copyright 2014-2015, Facebook, Inc.
28295
 
28296
  module.exports = accumulateInto;
28297
  }).call(this,require('_process'))
28298
+
28299
+ },{"_process":31,"fbjs/lib/invariant":18}],135:[function(require,module,exports){
28300
  /**
28301
  * Copyright 2013-2015, Facebook, Inc.
28302
  * All rights reserved.
28339
  }
28340
 
28341
  module.exports = adler32;
28342
+ },{}],136:[function(require,module,exports){
28343
  (function (process){
28344
  /**
28345
  * Copyright 2013-2015, Facebook, Inc.
28366
 
28367
  module.exports = canDefineProperty;
28368
  }).call(this,require('_process'))
28369
+
28370
+ },{"_process":31}],137:[function(require,module,exports){
28371
  /**
28372
  * Copyright 2013-2015, Facebook, Inc.
28373
  * All rights reserved.
28423
  }
28424
 
28425
  module.exports = dangerousStyleValue;
28426
+ },{"./CSSProperty":35}],138:[function(require,module,exports){
28427
  (function (process){
28428
  /**
28429
  * Copyright 2013-2015, Facebook, Inc.
28474
 
28475
  module.exports = deprecated;
28476
  }).call(this,require('_process'))
28477
+
28478
+ },{"./Object.assign":54,"_process":31,"fbjs/lib/warning":29}],139:[function(require,module,exports){
28479
  /**
28480
  * Copyright 2013-2015, Facebook, Inc.
28481
  * All rights reserved.
28514
  }
28515
 
28516
  module.exports = escapeTextContentForBrowser;
28517
+ },{}],140:[function(require,module,exports){
28518
  (function (process){
28519
  /**
28520
  * Copyright 2013-2015, Facebook, Inc.
28566
 
28567
  module.exports = findDOMNode;
28568
  }).call(this,require('_process'))
28569
+
28570
+ },{"./ReactCurrentOwner":66,"./ReactInstanceMap":94,"./ReactMount":97,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],141:[function(require,module,exports){
28571
  (function (process){
28572
  /**
28573
  * Copyright 2013-2015, Facebook, Inc.
28618
 
28619
  module.exports = flattenChildren;
28620
  }).call(this,require('_process'))
28621
+
28622
+ },{"./traverseAllChildren":159,"_process":31,"fbjs/lib/warning":29}],142:[function(require,module,exports){
28623
  /**
28624
  * Copyright 2013-2015, Facebook, Inc.
28625
  * All rights reserved.
28649
  };
28650
 
28651
  module.exports = forEachAccumulated;
28652
+ },{}],143:[function(require,module,exports){
28653
  /**
28654
  * Copyright 2013-2015, Facebook, Inc.
28655
  * All rights reserved.
28700
  }
28701
 
28702
  module.exports = getEventCharCode;
28703
+ },{}],144:[function(require,module,exports){
28704
  /**
28705
  * Copyright 2013-2015, Facebook, Inc.
28706
  * All rights reserved.
28804
  }
28805
 
28806
  module.exports = getEventKey;
28807
+ },{"./getEventCharCode":143}],145:[function(require,module,exports){
28808
  /**
28809
  * Copyright 2013-2015, Facebook, Inc.
28810
  * All rights reserved.
28849
  }
28850
 
28851
  module.exports = getEventModifierState;
28852
+ },{}],146:[function(require,module,exports){
28853
  /**
28854
  * Copyright 2013-2015, Facebook, Inc.
28855
  * All rights reserved.
28879
  }
28880
 
28881
  module.exports = getEventTarget;
28882
+ },{}],147:[function(require,module,exports){
28883
  /**
28884
  * Copyright 2013-2015, Facebook, Inc.
28885
  * All rights reserved.
28920
  }
28921
 
28922
  module.exports = getIteratorFn;
28923
+ },{}],148:[function(require,module,exports){
28924
  /**
28925
  * Copyright 2013-2015, Facebook, Inc.
28926
  * All rights reserved.
28994
  }
28995
 
28996
  module.exports = getNodeForCharacterOffset;
28997
+ },{}],149:[function(require,module,exports){
28998
  /**
28999
  * Copyright 2013-2015, Facebook, Inc.
29000
  * All rights reserved.
29028
  }
29029
 
29030
  module.exports = getTextContentAccessor;
29031
+ },{"fbjs/lib/ExecutionEnvironment":4}],150:[function(require,module,exports){
29032
  (function (process){
29033
  /**
29034
  * Copyright 2013-2015, Facebook, Inc.
29143
 
29144
  module.exports = instantiateReactComponent;
29145
  }).call(this,require('_process'))
29146
+
29147
+ },{"./Object.assign":54,"./ReactCompositeComponent":65,"./ReactEmptyComponent":86,"./ReactNativeComponent":100,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],151:[function(require,module,exports){
29148
  /**
29149
  * Copyright 2013-2015, Facebook, Inc.
29150
  * All rights reserved.
29205
  }
29206
 
29207
  module.exports = isEventSupported;
29208
+ },{"fbjs/lib/ExecutionEnvironment":4}],152:[function(require,module,exports){
29209
  /**
29210
  * Copyright 2013-2015, Facebook, Inc.
29211
  * All rights reserved.
29246
  }
29247
 
29248
  module.exports = isTextInputElement;
29249
+ },{}],153:[function(require,module,exports){
29250
  (function (process){
29251
  /**
29252
  * Copyright 2013-2015, Facebook, Inc.
29282
 
29283
  module.exports = onlyChild;
29284
  }).call(this,require('_process'))
29285
+
29286
+ },{"./ReactElement":84,"_process":31,"fbjs/lib/invariant":18}],154:[function(require,module,exports){
29287
  /**
29288
  * Copyright 2013-2015, Facebook, Inc.
29289
  * All rights reserved.
29310
  }
29311
 
29312
  module.exports = quoteAttributeValueForBrowser;
29313
+ },{"./escapeTextContentForBrowser":139}],155:[function(require,module,exports){
29314
  /**
29315
  * Copyright 2013-2015, Facebook, Inc.
29316
  * All rights reserved.
29327
  var ReactMount = require('./ReactMount');
29328
 
29329
  module.exports = ReactMount.renderSubtreeIntoContainer;
29330
+ },{"./ReactMount":97}],156:[function(require,module,exports){
29331
  /**
29332
  * Copyright 2013-2015, Facebook, Inc.
29333
  * All rights reserved.
29418
  }
29419
 
29420
  module.exports = setInnerHTML;
29421
+ },{"fbjs/lib/ExecutionEnvironment":4}],157:[function(require,module,exports){
29422
  /**
29423
  * Copyright 2013-2015, Facebook, Inc.
29424
  * All rights reserved.
29459
  }
29460
 
29461
  module.exports = setTextContent;
29462
+ },{"./escapeTextContentForBrowser":139,"./setInnerHTML":156,"fbjs/lib/ExecutionEnvironment":4}],158:[function(require,module,exports){
29463
  /**
29464
  * Copyright 2013-2015, Facebook, Inc.
29465
  * All rights reserved.
29503
  }
29504
 
29505
  module.exports = shouldUpdateReactComponent;
29506
+ },{}],159:[function(require,module,exports){
29507
  (function (process){
29508
  /**
29509
  * Copyright 2013-2015, Facebook, Inc.
29695
 
29696
  module.exports = traverseAllChildren;
29697
  }).call(this,require('_process'))
29698
+
29699
+ },{"./ReactCurrentOwner":66,"./ReactElement":84,"./ReactInstanceHandles":93,"./getIteratorFn":147,"_process":31,"fbjs/lib/invariant":18,"fbjs/lib/warning":29}],160:[function(require,module,exports){
29700
  (function (process){
29701
  /**
29702
  * Copyright 2015, Facebook, Inc.
30062
 
30063
  module.exports = validateDOMNesting;
30064
  }).call(this,require('_process'))