sequenceserver 1.1.0.beta11 → 1.1.0.beta12

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,10 +22,10 @@ module SequenceServer
22
22
  attr_reader :ent, :err
23
23
 
24
24
  def to_s
25
- <<MSG
26
- Error reading config file: #{ent}.
27
- #{err}
28
- MSG
25
+ <<~MSG
26
+ Error reading config file: #{ent}.
27
+ #{err}
28
+ MSG
29
29
  end
30
30
  end
31
31
 
@@ -67,13 +67,7 @@ MSG
67
67
  # user's system.
68
68
  class BLAST_NOT_INSTALLED_OR_NOT_EXECUTABLE < StandardError
69
69
  def to_s
70
- "BLAST not installed, or is not executable."
71
- end
72
- end
73
-
74
- class BLAST_NOT_INSTALLED < StandardError
75
- def to_s
76
- 'Could not locate BLAST+ binaries.'
70
+ 'BLAST not installed, or is not executable.'
77
71
  end
78
72
  end
79
73
 
@@ -95,10 +89,10 @@ MSG
95
89
  attr_reader :version
96
90
 
97
91
  def to_s
98
- <<MSG
99
- Your BLAST+ version #{version} is incompatible.
100
- SequenceServer needs NCBI BLAST+ version #{BLAST_VERSION}.
101
- MSG
92
+ <<~MSG
93
+ Your BLAST+ version #{version} is incompatible.
94
+ SequenceServer needs NCBI BLAST+ version #{BLAST_VERSION}.
95
+ MSG
102
96
  end
103
97
  end
104
98
 
@@ -134,20 +128,19 @@ MSG
134
128
  attr_reader :cmd, :out
135
129
 
136
130
  def to_s
137
- <<MSG
138
- Error obtaining BLAST databases.
139
- Tried: #{cmd}
140
- Error:
141
- #{out.strip}
142
-
143
- Please could you report this to 'https://groups.google.com/forum/#!forum/sequenceserver'?
144
- MSG
131
+ <<~MSG
132
+ Error obtaining BLAST databases.
133
+ Tried: #{cmd}
134
+ Error:
135
+ #{out.strip}
136
+
137
+ Please could you report this to 'https://groups.google.com/forum/#!forum/sequenceserver'?
138
+ MSG
145
139
  end
146
140
  end
147
141
 
148
142
  # Raised if the 'sys' method could not successfully execute a shell command.
149
143
  class CommandFailed < StandardError
150
-
151
144
  def initialize(exitstatus, stdout: nil, stderr: nil)
152
145
  @exitstatus = exitstatus
153
146
  @stdout = stdout
@@ -24,7 +24,7 @@ module SequenceServer
24
24
  class << self
25
25
  # Creates and queues a job. Returns created job object.
26
26
  def create(params)
27
- job = BLAST::Job.new(params)# TODO: Dynamic dispatch.
27
+ job = BLAST::Job.new(params) # TODO: Dynamic dispatch.
28
28
  SequenceServer.pool.queue { job.run }
29
29
  job
30
30
  end
@@ -43,8 +43,8 @@ module SequenceServer
43
43
 
44
44
  # Returns an Array of all jobs.
45
45
  def all
46
- Dir["#{DOTDIR}/**/job.yaml"].
47
- map { |f| fetch File.basename File.dirname f }
46
+ Dir["#{DOTDIR}/**/job.yaml"]
47
+ .map { |f| fetch File.basename File.dirname f }
48
48
  end
49
49
  end
50
50
 
@@ -58,14 +58,14 @@ module SequenceServer
58
58
  # of job data will be held, yields (if block given) and saves the job.
59
59
  #
60
60
  # Subclasses should extend `initialize` as per requirement.
61
- def initialize(*args)
61
+ def initialize(*)
62
62
  @id = SecureRandom.uuid
63
63
  @submitted_at = Time.now
64
64
  mkdir_p dir
65
65
  yield if block_given?
66
66
  save
67
67
  rescue Errno::ENOSPC
68
- raise SystemError, "Not enough disk space to start a new job"
68
+ raise SystemError, 'Not enough disk space to start a new job'
69
69
  rescue Errno::EACCES
70
70
  raise SystemError, "Permission denied to write to #{DOTDIR}"
71
71
  rescue => e
@@ -78,7 +78,7 @@ module SequenceServer
78
78
  # Returns shell command that will be executed. Subclass needs to provide a
79
79
  # concrete implementation.
80
80
  def command
81
- raise "Not implemented."
81
+ fail 'Not implemented.'
82
82
  end
83
83
 
84
84
  # Shell out and execute the job.
@@ -145,7 +145,7 @@ module SequenceServer
145
145
  # NOTE: Not used.
146
146
  def fetch(key)
147
147
  filename = File.join(dir, key)
148
- raise if !File.exist? filename
148
+ fail unless File.exist? filename
149
149
  filename
150
150
  end
151
151
 
@@ -1,12 +1,11 @@
1
+ require 'erb'
2
+
1
3
  module SequenceServer
2
4
  # Module to contain methods for generating sequence retrieval links.
3
5
  module Links
4
- require 'erb'
5
-
6
6
  # Provide a method to URL encode _query parameters_. See [1].
7
7
  include ERB::Util
8
- #
9
- alias_method :encode, :url_encode
8
+ alias encode url_encode
10
9
 
11
10
  NCBI_ID_PATTERN = /gi\|(\d+)\|/
12
11
  UNIPROT_ID_PATTERN = /sp\|(\w+)\|/
@@ -66,10 +65,10 @@ module SequenceServer
66
65
  ncbi_id = encode ncbi_id
67
66
  url = "http://www.ncbi.nlm.nih.gov/#{querydb.first.type}/#{ncbi_id}"
68
67
  {
69
- :order => 2,
70
- :title => 'NCBI',
71
- :url => url,
72
- :icon => 'fa-external-link'
68
+ order: 2,
69
+ title: 'NCBI',
70
+ url: url,
71
+ icon: 'fa-external-link'
73
72
  }
74
73
  end
75
74
 
@@ -79,10 +78,10 @@ module SequenceServer
79
78
  uniprot_id = encode uniprot_id
80
79
  url = "http://www.uniprot.org/uniprot/#{uniprot_id}"
81
80
  {
82
- :order => 2,
83
- :title => 'Uniprot',
84
- :url => url,
85
- :icon => 'fa-external-link'
81
+ order: 2,
82
+ title: 'Uniprot',
83
+ url: url,
84
+ icon: 'fa-external-link'
86
85
  }
87
86
  end
88
87
  end
@@ -11,7 +11,7 @@ module SequenceServer
11
11
 
12
12
  # We change Logging format so that it is consistent with Sinatra's
13
13
  class Formatter < Formatter
14
- FORMAT = "[%s] %s %s\n"
14
+ FORMAT = "[%s] %s %s\n".freeze
15
15
 
16
16
  def initialize
17
17
  self.datetime_format = '%Y-%m-%d %H:%M:%S'
@@ -18,8 +18,6 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
19
  # SOFTWARE.
20
20
 
21
- require 'thread'
22
-
23
21
  # Simple thread pool [1].
24
22
  class Pool
25
23
  def initialize(size)
@@ -6,7 +6,6 @@ module SequenceServer
6
6
  # Report is a generic superclass. Programs, like BLAST, must implement their
7
7
  # own report subclass.
8
8
  class Report
9
-
10
9
  class << self
11
10
  # Generates report for the given job. Returns generated report object.
12
11
  #
@@ -42,7 +42,7 @@ module SequenceServer
42
42
  # 'ALLOW-FROM uri'.
43
43
  set :protection, lambda {
44
44
  frame_options = SequenceServer.config[:frame_options]
45
- frame_options && { :frame_options => frame_options }
45
+ frame_options && { frame_options: frame_options }
46
46
  }
47
47
 
48
48
  # Serve compressed responses.
@@ -89,7 +89,7 @@ module SequenceServer
89
89
 
90
90
  # Returns base HTML. Rest happens client-side: polling for and rendering
91
91
  # the results.
92
- get '/:jid' do |jid|
92
+ get '/:jid' do
93
93
  erb :report, layout: true
94
94
  end
95
95
 
@@ -104,26 +104,26 @@ module SequenceServer
104
104
  # in identifiers) and retreival_databases (we don't allow whitespace in a
105
105
  # database's name, so it's safe).
106
106
  get '/get_sequence/' do
107
- sequence_ids = params[:sequence_ids].split(",")
108
- database_ids = params[:database_ids].split(",")
107
+ sequence_ids = params[:sequence_ids].split(',')
108
+ database_ids = params[:database_ids].split(',')
109
109
  sequences = Sequence::Retriever.new(sequence_ids, database_ids)
110
110
  sequences.to_json
111
111
  end
112
112
 
113
113
  post '/get_sequence' do
114
- sequence_ids = params["sequence_ids"].split(",")
115
- database_ids = params["database_ids"].split(",")
114
+ sequence_ids = params['sequence_ids'].split(',')
115
+ database_ids = params['database_ids'].split(',')
116
116
  sequences = Sequence::Retriever.new(sequence_ids, database_ids, true)
117
117
  send_file(sequences.file.path,
118
- :type => sequences.mime,
119
- :filename => sequences.filename)
118
+ type: sequences.mime,
119
+ filename: sequences.filename)
120
120
  end
121
121
 
122
122
  # Download BLAST report in various formats.
123
123
  get '/download/:jid.:type' do |jid, type|
124
124
  job = Job.fetch(jid)
125
125
  out = BLAST::Formatter.new(job, type)
126
- send_file out.file, :filename => out.filename, :type => out.mime
126
+ send_file out.file, filename: out.filename, type: out.mime
127
127
  end
128
128
 
129
129
  # Catches any exception raised within the app and returns JSON
@@ -155,13 +155,13 @@ module SequenceServer
155
155
  # All errors will have a message.
156
156
  error_data = { message: error.message }
157
157
 
158
- # If error object has a title method, use that, or use error class for
159
- # title.
160
- if error.respond_to? :title
161
- error_data[:title] = error.title
162
- else
163
- error_data[:title] = error.class.to_s
164
- end
158
+ # If error object has a title method, use that, or use name of the
159
+ # error class as title.
160
+ error_data[:title] = if error.respond_to? :title
161
+ error.title
162
+ else
163
+ error.class.name
164
+ end
165
165
 
166
166
  # If error object has a more_info method, use that. If the error does
167
167
  # not have more_info and the error is not APIError, use backtrace as
@@ -67,7 +67,7 @@ module SequenceServer
67
67
  end
68
68
 
69
69
  def info
70
- { :value => value, :id => id, :title => title }
70
+ { value: value, id: id, title: title }
71
71
  end
72
72
 
73
73
  # Returns FASTA formatted sequence.
@@ -97,7 +97,7 @@ module SequenceServer
97
97
  na_count = 0
98
98
  composition = composition(cleaned_sequence)
99
99
  composition.each do |character, count|
100
- na_count += count if character.match(/[ACGTU]/i)
100
+ na_count += count if character =~ /[ACGTU]/i
101
101
  end
102
102
 
103
103
  na_count > (0.9 * cleaned_sequence.length) ? :nucleotide : :protein
@@ -188,8 +188,8 @@ module SequenceServer
188
188
 
189
189
  def to_json
190
190
  {
191
- :error_msgs => error_msgs,
192
- :sequences => sequences.map(&:info)
191
+ error_msgs: error_msgs,
192
+ sequences: sequences.map(&:info)
193
193
  }.to_json
194
194
  end
195
195
 
@@ -200,7 +200,7 @@ module SequenceServer
200
200
  " -db '#{database_names.join(' ')}'" \
201
201
  " -entry '#{sequence_ids.join(',')}'"
202
202
 
203
- out, _ = sys(command, path: config[:bin])
203
+ out, = sys(command, path: config[:bin])
204
204
 
205
205
  @sequences = out.each_line.map do |line|
206
206
  # Stop codons in amino acid sequence databases show up as invalid
@@ -233,21 +233,25 @@ module SequenceServer
233
233
  return [] if sequences.length == sequence_ids.length
234
234
  [
235
235
  ['ERROR: incorrect number of sequences found.',
236
- <<MSG
237
- You requested #{sequence_ids.length} sequence(s) with the following identifiers:
238
- #{sequence_ids.join(', ')}
239
- from the following databases:
240
- #{database_titles.join(', ')}
241
- but we found #{sequences.length} sequence(s).
242
-
243
- This is likley due to a problem with how databases are formatted.
244
- Please share this text with the person managing this website (or
245
- https://groups.google.com/forum/?fromgroups#!forum/sequenceserver
246
- if you are the admin) so that the issue can be resolved.
247
-
248
- If any sequences were retrieved, you can find them below
249
- (but some may be incorrect, so be careful!)
250
- MSG
236
+ <<~MSG
237
+ You requested #{sequence_ids.length} sequence(s) with the following
238
+ identifiers:
239
+ #{sequence_ids.join(', ')}
240
+ from the following databases:
241
+ #{database_titles.join(', ')}
242
+ but we found #{sequences.length} sequence(s).
243
+
244
+ This is likley due to a problem with how databases are formatted.
245
+ Please share this text with the person managing this website.
246
+
247
+ If you are the admin and are confident that your databases are
248
+ correctly formatted, you have likely encountered a weird bug.
249
+ In this case, please raise an issue at:
250
+ https://github.com/wurmlab/sequenceserver/issues
251
+
252
+ If any sequences were retrieved, you can find them below
253
+ (but some may be incorrect, so be careful!)
254
+ MSG
251
255
  ]
252
256
  ]
253
257
  end
@@ -35,13 +35,13 @@ module SequenceServer
35
35
  # rubocop:disable Metrics/AbcSize
36
36
  def options
37
37
  @options ||= {
38
- :BindAddress => app.config[:host],
39
- :Port => app.config[:port],
40
- :StartCallback => proc { app.on_start },
41
- :StopCallback => proc { app.on_stop },
42
- :OutputBufferSize => 5,
43
- :AccessLog => [[logdev, WEBrick::AccessLog::COMMON_LOG_FORMAT]],
44
- :Logger => WEBrick::Log.new(logdev)
38
+ BindAddress: app.config[:host],
39
+ Port: app.config[:port],
40
+ StartCallback: proc { app.on_start },
41
+ StopCallback: proc { app.on_stop },
42
+ OutputBufferSize: 5,
43
+ AccessLog: [[logdev, WEBrick::AccessLog::COMMON_LOG_FORMAT]],
44
+ Logger: WEBrick::Log.new(logdev)
45
45
  }
46
46
  end
47
47
  # rubocop:enable Metrics/AbcSize
@@ -49,7 +49,7 @@ module SequenceServer
49
49
  private
50
50
 
51
51
  def setup_signal_handlers
52
- [:INT, :TERM].each do |sig|
52
+ %i[INT TERM].each do |sig|
53
53
  trap sig do
54
54
  stop
55
55
  end
@@ -1,4 +1,4 @@
1
1
  # Define version number.
2
2
  module SequenceServer
3
- VERSION = '1.1.0.beta11'
3
+ VERSION = '1.1.0.beta12'.freeze
4
4
  end
data/public/js/search.js CHANGED
@@ -197,23 +197,13 @@ var DnD = React.createClass({
197
197
  var Form = React.createClass({
198
198
 
199
199
  getInitialState: function () {
200
- return {
201
- databases: {},
202
- preDefinedOpts: {
203
- 'blastn': ['-task blastn', '-evalue 1e-5'],
204
- 'blastp': ['-evalue 1e-5'],
205
- 'blastx': ['-evalue 1e-5'],
206
- 'tblastx': ['-evalue 1e-5'],
207
- 'tblastn': ['-evalue 1e-5']
208
- }
209
- };
200
+ return { databases: {}, preDefinedOpts: {} };
210
201
  },
211
202
 
212
203
  componentDidMount: function () {
213
204
  $.getJSON("searchdata.json", _.bind(function(data) {
214
205
  this.setState({
215
- databases: data["database"], preDefinedOpts: $.extend({},
216
- this.state.preDefinedOpts, data["options"])
206
+ databases: data["database"], preDefinedOpts: data["options"]
217
207
  });
218
208
  }, this));
219
209
 
@@ -7,5 +7,5 @@ this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.co
7
7
  var d=(this||self,a("1f")),e=a("39"),f=a("35"),g=a("36"),h=a("16"),i=h.createFactory("form"),j=g.createClass({displayName:"ReactDOMForm",tagName:"FORM",mixins:[f,e],render:function(){return i(this.props)},componentDidMount:function(){this.trapBubbledEvent(d.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(d.topLevelTypes.topSubmit,"submit")}});c.exports=j}),a.registerDynamic("3a",["1f","39","35","36","16"],!0,function(a,b,c){"use strict";var d=(this||self,a("1f")),e=a("39"),f=a("35"),g=a("36"),h=a("16"),i=h.createFactory("img"),j=g.createClass({displayName:"ReactDOMImg",tagName:"IMG",mixins:[f,e],render:function(){return i(this.props)},componentDidMount:function(){this.trapBubbledEvent(d.topLevelTypes.topLoad,"load"),this.trapBubbledEvent(d.topLevelTypes.topError,"error")}});c.exports=j}),a.registerDynamic("39",["3b","3c","3d","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){a.remove()}var e=a("3b"),f=a("3c"),g=a("3d"),h=a("3e"),i={trapBubbledEvent:function(a,b){h(this.isMounted());var c=this.getDOMNode();h(c);var d=e.trapBubbledEvent(a,b,c);this._localEventListeners=f(this._localEventListeners,d)},componentWillUnmount:function(){this._localEventListeners&&g(this._localEventListeners,d)}};c.exports=i}(a("13"))}),a.registerDynamic("3f",["1f","39","35","36","16"],!0,function(a,b,c){"use strict";var d=(this||self,a("1f")),e=a("39"),f=a("35"),g=a("36"),h=a("16"),i=h.createFactory("iframe"),j=g.createClass({displayName:"ReactDOMIframe",tagName:"IFRAME",mixins:[f,e],render:function(){return i(this.props)},componentDidMount:function(){this.trapBubbledEvent(d.topLevelTypes.topLoad,"load")}});c.exports=j}),a.registerDynamic("40",["34","41","42","35","36","16","2c","25","19","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(){this.isMounted()&&this.forceUpdate()}var e=a("34"),f=a("41"),g=a("42"),h=a("35"),i=a("36"),j=a("16"),k=a("2c"),l=a("25"),m=a("19"),n=a("3e"),o=j.createFactory("input"),p={},q=i.createClass({displayName:"ReactDOMInput",tagName:"INPUT",mixins:[e,g.Mixin,h],getInitialState:function(){var a=this.props.defaultValue;return{initialChecked:this.props.defaultChecked||!1,initialValue:null!=a?a:null}},render:function(){var a=m({},this.props);a.defaultChecked=null,a.defaultValue=null;var b=g.getValue(this);a.value=null!=b?b:this.state.initialValue;var c=g.getChecked(this);return a.checked=null!=c?c:this.state.initialChecked,a.onChange=this._handleChange,o(a,this.props.children)},componentDidMount:function(){var a=k.getID(this.getDOMNode());p[a]=this},componentWillUnmount:function(){var a=this.getDOMNode(),b=k.getID(a);delete p[b]},componentDidUpdate:function(a,b,c){var d=this.getDOMNode();null!=this.props.checked&&f.setValueForProperty(d,"checked",this.props.checked||!1);var e=g.getValue(this);null!=e&&f.setValueForProperty(d,"value",""+e)},_handleChange:function(a){var b,c=g.getOnChange(this);c&&(b=c.call(this,a)),l.asap(d,this);var e=this.props.name;if("radio"===this.props.type&&null!=e){for(var f=this.getDOMNode(),h=f;h.parentNode;)h=h.parentNode;for(var i=h.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),j=0,m=i.length;j<m;j++){var o=i[j];if(o!==f&&o.form===f.form){var q=k.getID(o);n(q);var r=p[q];n(r),l.asap(d,r)}}}return b}});c.exports=q}(a("13"))}),a.registerDynamic("43",["35","36","16","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("35"),e=a("36"),f=a("16"),g=(a("12"),f.createFactory("option")),h=e.createClass({displayName:"ReactDOMOption",tagName:"OPTION",mixins:[d],componentWillMount:function(){},render:function(){return g(this.props,this.props.children)}});c.exports=h}(a("13"))}),a.registerDynamic("44",["34","42","35","36","16","25","19"],!0,function(a,b,c){"use strict";function d(){if(this._pendingUpdate){this._pendingUpdate=!1;var a=h.getValue(this);null!=a&&this.isMounted()&&f(this,a)}}function e(a,b,c){if(null==a[b])return null;if(a.multiple){if(!Array.isArray(a[b]))return new Error("The `"+b+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(a[b]))return new Error("The `"+b+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function f(a,b){var c,d,e,f=a.getDOMNode().options;if(a.props.multiple){for(c={},d=0,e=b.length;d<e;d++)c[""+b[d]]=!0;for(d=0,e=f.length;d<e;d++){var g=c.hasOwnProperty(f[d].value);f[d].selected!==g&&(f[d].selected=g)}}else{for(c=""+b,d=0,e=f.length;d<e;d++)if(f[d].value===c)return void(f[d].selected=!0);f.length&&(f[0].selected=!0)}}var g=(this||self,a("34")),h=a("42"),i=a("35"),j=a("36"),k=a("16"),l=a("25"),m=a("19"),n=k.createFactory("select"),o=j.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[g,h.Mixin,i],propTypes:{defaultValue:e,value:e},render:function(){var a=m({},this.props);return a.onChange=this._handleChange,a.value=null,n(a,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var a=h.getValue(this);null!=a?f(this,a):null!=this.props.defaultValue&&f(this,this.props.defaultValue)},componentDidUpdate:function(a){var b=h.getValue(this);null!=b?(this._pendingUpdate=!1,f(this,b)):!a.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?f(this,this.props.defaultValue):f(this,this.props.multiple?[]:""))},_handleChange:function(a){var b,c=h.getOnChange(this);return c&&(b=c.call(this,a)),this._pendingUpdate=!0,l.asap(d,this),b}});c.exports=o}),a.registerDynamic("34",["45"],!0,function(a,b,c){"use strict";var d=(this||self,a("45")),e={componentDidMount:function(){this.props.autoFocus&&d(this.getDOMNode())}};c.exports=e}),a.registerDynamic("42",["46","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){j(null==a.props.checkedLink||null==a.props.valueLink)}function e(a){d(a),j(null==a.props.value&&null==a.props.onChange)}function f(a){d(a),j(null==a.props.checked&&null==a.props.onChange)}function g(a){this.props.valueLink.requestChange(a.target.value)}function h(a){this.props.checkedLink.requestChange(a.target.checked)}var i=a("46"),j=a("3e"),k={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},l={Mixin:{propTypes:{value:function(a,b,c){return!a[b]||k[a.type]||a.onChange||a.readOnly||a.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(a,b,c){return!a[b]||a.onChange||a.readOnly||a.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:i.func}},getValue:function(a){return a.props.valueLink?(e(a),a.props.valueLink.value):a.props.value},getChecked:function(a){return a.props.checkedLink?(f(a),a.props.checkedLink.value):a.props.checked},getOnChange:function(a){return a.props.valueLink?(e(a),g):a.props.checkedLink?(f(a),h):a.props.onChange}};c.exports=l}(a("13"))}),a.registerDynamic("35",["47"],!0,function(a,b,c){"use strict";var d=(this||self,a("47")),e={getDOMNode:function(){return d(this)}};c.exports=e}),a.registerDynamic("48",["34","41","42","35","36","16","25","19","3e","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(){this.isMounted()&&this.forceUpdate()}var e=a("34"),f=a("41"),g=a("42"),h=a("35"),i=a("36"),j=a("16"),k=a("25"),l=a("19"),m=a("3e"),n=(a("12"),j.createFactory("textarea")),o=i.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[e,g.Mixin,h],getInitialState:function(){var a=this.props.defaultValue,b=this.props.children;null!=b&&(m(null==a),Array.isArray(b)&&(m(b.length<=1),b=b[0]),a=""+b),null==a&&(a="");var c=g.getValue(this);return{initialValue:""+(null!=c?c:a)}},render:function(){var a=l({},this.props);return m(null==a.dangerouslySetInnerHTML),a.defaultValue=null,a.value=null,a.onChange=this._handleChange,n(a,this.state.initialValue)},componentDidUpdate:function(a,b,c){var d=g.getValue(this);if(null!=d){var e=this.getDOMNode();f.setValueForProperty(e,"value",""+d)}},_handleChange:function(a){var b,c=g.getOnChange(this);return c&&(b=c.call(this,a)),k.asap(d,this),b}});c.exports=o}(a("13"))}),a.registerDynamic("49",["41","4a","4b","19","4c"],!0,function(a,b,c){"use strict";var d=(this||self,a("41")),e=a("4a"),f=a("4b"),g=a("19"),h=a("4c"),i=function(a){};g(i.prototype,{construct:function(a){this._currentElement=a,this._stringText=""+a,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(a,b,c){this._rootNodeID=a;var e=h(this._stringText);return b.renderToStaticMarkup?e:"<span "+d.createMarkupForID(a)+">"+e+"</span>"},receiveComponent:function(a,b){if(a!==this._currentElement){this._currentElement=a;var c=""+a;c!==this._stringText&&(this._stringText=c,f.BackendIDOperations.updateTextContentByID(this._rootNodeID,c))}},unmountComponent:function(){e.unmountIDFromEnvironment(this._rootNodeID)}}),c.exports=i}),a.registerDynamic("4d",["30","13"],!0,function(a,b,c){this||self;!function(b){var d=a("30"),e={listen:function(a,b,c){return a.addEventListener?(a.addEventListener(b,c,!1),{remove:function(){a.removeEventListener(b,c,!1)}}):a.attachEvent?(a.attachEvent("on"+b,c),{remove:function(){a.detachEvent("on"+b,c)}}):void 0},capture:function(a,b,c){return a.addEventListener?(a.addEventListener(b,c,!0),{remove:function(){a.removeEventListener(b,c,!0)}}):{remove:d}},registerDefault:function(){}};c.exports=e}(a("13"))}),a.registerDynamic("4e",[],!0,function(a,b,c){"use strict";function d(a){return a===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:a.scrollLeft,y:a.scrollTop}}this||self;c.exports=d}),a.registerDynamic("4f",["4d","21","f","50","2c","25","19","51","4e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){var b=l.getID(a),c=k.getReactRootIDFromNodeID(b),d=l.findReactContainerForID(c),e=l.getFirstReactDOM(d);return e}function e(a,b){this.topLevelType=a,this.nativeEvent=b,this.ancestors=[]}function f(a){for(var b=l.getFirstReactDOM(o(a.nativeEvent))||window,c=b;c;)a.ancestors.push(c),c=d(c);for(var e=0,f=a.ancestors.length;e<f;e++){b=a.ancestors[e];var g=l.getID(b)||"";q._handleTopLevel(a.topLevelType,b,g,a.nativeEvent)}}function g(a){var b=p(window);a(b)}var h=a("4d"),i=a("21"),j=a("f"),k=a("50"),l=a("2c"),m=a("25"),n=a("19"),o=a("51"),p=a("4e");n(e.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),j.addPoolingTo(e,j.twoArgumentPooler);var q={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:i.canUseDOM?window:null,setHandleTopLevel:function(a){q._handleTopLevel=a},setEnabled:function(a){q._enabled=!!a},isEnabled:function(){return q._enabled},trapBubbledEvent:function(a,b,c){var d=c;return d?h.listen(d,b,q.dispatchEvent.bind(null,a)):null},trapCapturedEvent:function(a,b,c){var d=c;return d?h.capture(d,b,q.dispatchEvent.bind(null,a)):null},monitorScrollValue:function(a){var b=g.bind(null,a);h.listen(window,"scroll",b)},dispatchEvent:function(a,b){if(q._enabled){var c=e.getPooled(a,b);try{m.batchedUpdates(f,c)}finally{e.release(c)}}}};c.exports=q}(a("13"))}),a.registerDynamic("52",[],!0,function(a,b,c){function d(a){return a.replace(e,function(a,b){return b.toUpperCase()})}var e=(this||self,/-(.)/g);c.exports=d}),a.registerDynamic("53",["52"],!0,function(a,b,c){"use strict";function d(a){return e(a.replace(f,"ms-"))}var e=(this||self,a("52")),f=/^-ms-/;c.exports=d}),a.registerDynamic("54",[],!0,function(a,b,c){"use strict";function d(a,b){return a+b.charAt(0).toUpperCase()+b.substring(1)}var e=(this||self,{boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0}),f=["Webkit","ms","Moz","O"];Object.keys(e).forEach(function(a){f.forEach(function(b){e[d(b,a)]=e[a]})});var g={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},h={isUnitlessNumber:e,shorthandPropertyExpansions:g};c.exports=h}),a.registerDynamic("55",["54"],!0,function(a,b,c){"use strict";function d(a,b){var c=null==b||"boolean"==typeof b||""===b;if(c)return"";var d=isNaN(b);return d||0===b||f.hasOwnProperty(a)&&f[a]?""+b:("string"==typeof b&&(b=b.trim()),b+"px")}var e=(this||self,a("54")),f=e.isUnitlessNumber;c.exports=d}),a.registerDynamic("56",[],!0,function(a,b,c){function d(a){return a.replace(e,"-$1").toLowerCase()}var e=(this||self,/([A-Z])/g);c.exports=d}),a.registerDynamic("57",["56"],!0,function(a,b,c){"use strict";function d(a){return e(a).replace(f,"-ms-")}var e=(this||self,a("56")),f=/^ms-/;c.exports=d}),a.registerDynamic("58",[],!0,function(a,b,c){"use strict";function d(a){var b={};return function(c){return b.hasOwnProperty(c)||(b[c]=a.call(this,c)),b[c]}}this||self;c.exports=d}),a.registerDynamic("59",["54","21","53","55","57","58","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("54"),e=a("21"),f=(a("53"),a("55")),g=a("57"),h=a("58"),i=(a("12"),h(function(a){return g(a)})),j="cssFloat";e.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(j="styleFloat");var k={createMarkupForStyles:function(a){var b="";for(var c in a)if(a.hasOwnProperty(c)){var d=a[c];null!=d&&(b+=i(c)+":",b+=f(c,d)+";")}return b||null},setValueForStyles:function(a,b){var c=a.style;for(var e in b)if(b.hasOwnProperty(e)){var g=f(e,b[e]);if("float"===e&&(e=j),g)c[e]=g;else{var h=d.shorthandPropertyExpansions[e];if(h)for(var i in h)c[i]="";else c[e]=""}}}};c.exports=k}(a("13"))}),a.registerDynamic("5a",["3e","13"],!0,function(a,b,c){this||self;!function(b){function d(a){var b=a.length;if(e(!Array.isArray(a)&&("object"==typeof a||"function"==typeof a)),e("number"==typeof b),e(0===b||b-1 in a),a.hasOwnProperty)try{return Array.prototype.slice.call(a)}catch(a){}for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}var e=a("3e");c.exports=d}(a("13"))}),a.registerDynamic("5b",["5a"],!0,function(a,b,c){function d(a){return!!a&&("object"==typeof a||"function"==typeof a)&&"length"in a&&!("setInterval"in a)&&"number"!=typeof a.nodeType&&(Array.isArray(a)||"callee"in a||"item"in a)}function e(a){return d(a)?Array.isArray(a)?a.slice():f(a):[a]}var f=(this||self,a("5a"));c.exports=e}),a.registerDynamic("5c",["21","5b","5d","3e","13"],!0,function(a,b,c){this||self;!function(b){function d(a){var b=a.match(k);return b&&b[1].toLowerCase()}function e(a,b){var c=j;i(!!j);var e=d(a),f=e&&h(e);if(f){c.innerHTML=f[1]+a+f[2];for(var k=f[0];k--;)c=c.lastChild}else c.innerHTML=a;var l=c.getElementsByTagName("script");l.length&&(i(b),g(l).forEach(b));for(var m=g(c.childNodes);c.lastChild;)c.removeChild(c.lastChild);return m}var f=a("21"),g=a("5b"),h=a("5d"),i=a("3e"),j=f.canUseDOM?document.createElement("div"):null,k=/^\s*<(\w+)/;c.exports=e}(a("13"))}),a.registerDynamic("5d",["21","3e","13"],!0,function(a,b,c){this||self;!function(b){function d(a){return f(!!g),m.hasOwnProperty(a)||(a="*"),h.hasOwnProperty(a)||("*"===a?g.innerHTML="<link />":g.innerHTML="<"+a+"></"+a+">",h[a]=!g.firstChild),h[a]?m[a]:null}var e=a("21"),f=a("3e"),g=e.canUseDOM?document.createElement("div"):null,h={circle:!0,clipPath:!0,defs:!0,ellipse:!0,g:!0,line:!0,linearGradient:!0,path:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,text:!0},i=[1,'<select multiple="true">',"</select>"],j=[1,"<table>","</table>"],k=[3,"<table><tbody><tr>","</tr></tbody></table>"],l=[1,"<svg>","</svg>"],m={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:i,option:i,caption:j,colgroup:j,tbody:j,tfoot:j,thead:j,td:k,th:k,circle:l,clipPath:l,defs:l,ellipse:l,g:l,line:l,linearGradient:l,path:l,polygon:l,polyline:l,radialGradient:l,rect:l,stop:l,text:l};c.exports=d}(a("13"))}),a.registerDynamic("5e",["21","5c","30","5d","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return a.substring(1,a.indexOf(" "))}var e=a("21"),f=a("5c"),g=a("30"),h=a("5d"),i=a("3e"),j=/^(<[^ \/>]+)/,k="data-danger-index",l={dangerouslyRenderMarkup:function(a){i(e.canUseDOM);for(var b,c={},l=0;l<a.length;l++)i(a[l]),b=d(a[l]),b=h(b)?b:"*",c[b]=c[b]||[],c[b][l]=a[l];var m=[],n=0;for(b in c)if(c.hasOwnProperty(b)){var o,p=c[b];for(o in p)if(p.hasOwnProperty(o)){var q=p[o];p[o]=q.replace(j,"$1 "+k+'="'+o+'" ')}for(var r=f(p.join(""),g),s=0;s<r.length;++s){var t=r[s];t.hasAttribute&&t.hasAttribute(k)&&(o=+t.getAttribute(k),t.removeAttribute(k),i(!m.hasOwnProperty(o)),m[o]=t,n+=1)}}return i(n===m.length),i(m.length===a.length),m},dangerouslyReplaceNodeWithMarkup:function(a,b){i(e.canUseDOM),i(b),i("html"!==a.tagName.toLowerCase());var c=f(b,g)[0];a.parentNode.replaceChild(c,a)}};c.exports=l}(a("13"))}),a.registerDynamic("5f",["21","4c","60"],!0,function(a,b,c){"use strict";var d=(this||self,a("21")),e=a("4c"),f=a("60"),g=function(a,b){a.textContent=b};d.canUseDOM&&("textContent"in document.documentElement||(g=function(a,b){f(a,e(b))})),c.exports=g}),a.registerDynamic("61",["5e","62","5f","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}var e=a("5e"),f=a("62"),g=a("5f"),h=a("3e"),i={dangerouslyReplaceNodeWithMarkup:e.dangerouslyReplaceNodeWithMarkup,updateTextContent:g,processUpdates:function(a,b){for(var c,i=null,j=null,k=0;k<a.length;k++)if(c=a[k],c.type===f.MOVE_EXISTING||c.type===f.REMOVE_NODE){var l=c.fromIndex,m=c.parentNode.childNodes[l],n=c.parentID;h(m),i=i||{},i[n]=i[n]||[],i[n][l]=m,j=j||[],j.push(m)}var o=e.dangerouslyRenderMarkup(b);if(j)for(var p=0;p<j.length;p++)j[p].parentNode.removeChild(j[p]);for(var q=0;q<a.length;q++)switch(c=a[q],c.type){case f.INSERT_MARKUP:d(c.parentNode,o[c.markupIndex],c.toIndex);break;case f.MOVE_EXISTING:d(c.parentNode,i[c.parentID][c.fromIndex],c.toIndex);break;case f.TEXT_CONTENT:g(c.parentNode,c.textContent);break;case f.REMOVE_NODE:}}};c.exports=i}(a("13"))}),a.registerDynamic("63",["4c"],!0,function(a,b,c){"use strict";function d(a){return'"'+e(a)+'"'}var e=(this||self,a("4c"));c.exports=d}),a.registerDynamic("41",["2e","63","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b){return null==b||e.hasBooleanValue[a]&&!b||e.hasNumericValue[a]&&isNaN(b)||e.hasPositiveNumericValue[a]&&b<1||e.hasOverloadedBooleanValue[a]&&b===!1}var e=a("2e"),f=a("63"),g=(a("12"),{createMarkupForID:function(a){return e.ID_ATTRIBUTE_NAME+"="+f(a)},createMarkupForProperty:function(a,b){if(e.isStandardName.hasOwnProperty(a)&&e.isStandardName[a]){if(d(a,b))return"";var c=e.getAttributeName[a];return e.hasBooleanValue[a]||e.hasOverloadedBooleanValue[a]&&b===!0?c:c+"="+f(b)}return e.isCustomAttribute(a)?null==b?"":a+"="+f(b):null},setValueForProperty:function(a,b,c){if(e.isStandardName.hasOwnProperty(b)&&e.isStandardName[b]){var f=e.getMutationMethod[b];if(f)f(a,c);else if(d(b,c))this.deleteValueForProperty(a,b);else if(e.mustUseAttribute[b])a.setAttribute(e.getAttributeName[b],""+c);else{var g=e.getPropertyName[b];e.hasSideEffects[b]&&""+a[g]==""+c||(a[g]=c)}}else e.isCustomAttribute(b)&&(null==c?a.removeAttribute(b):a.setAttribute(b,""+c))},deleteValueForProperty:function(a,b){if(e.isStandardName.hasOwnProperty(b)&&e.isStandardName[b]){var c=e.getMutationMethod[b];if(c)c(a,void 0);else if(e.mustUseAttribute[b])a.removeAttribute(e.getAttributeName[b]);else{var d=e.getPropertyName[b],f=e.getDefaultValueForProperty(a.nodeName,d);e.hasSideEffects[b]&&""+a[d]===f||(a[d]=f)}}else e.isCustomAttribute(b)&&a.removeAttribute(b)}});c.exports=g}(a("13"))}),a.registerDynamic("64",["59","61","41","2c","65","3e","60","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("59"),e=a("61"),f=a("41"),g=a("2c"),h=a("65"),i=a("3e"),j=a("60"),k={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},l={updatePropertyByID:function(a,b,c){var d=g.getNode(a);i(!k.hasOwnProperty(b)),null!=c?f.setValueForProperty(d,b,c):f.deleteValueForProperty(d,b)},deletePropertyByID:function(a,b,c){var d=g.getNode(a);i(!k.hasOwnProperty(b)),f.deleteValueForProperty(d,b,c)},updateStylesByID:function(a,b){var c=g.getNode(a);d.setValueForStyles(c,b)},updateInnerHTMLByID:function(a,b){var c=g.getNode(a);j(c,b)},updateTextContentByID:function(a,b){var c=g.getNode(a);e.updateTextContent(c,b)},dangerouslyReplaceNodeWithMarkupByID:function(a,b){var c=g.getNode(a);e.dangerouslyReplaceNodeWithMarkup(c,b)},dangerouslyProcessChildrenUpdates:function(a,b){for(var c=0;c<a.length;c++)a[c].parentNode=g.getNode(a[c].parentID);e.processUpdates(a,b)}};h.measureMethods(l,"ReactDOMIDOperations",{updatePropertyByID:"updatePropertyByID",deletePropertyByID:"deletePropertyByID",updateStylesByID:"updateStylesByID",updateInnerHTMLByID:"updateInnerHTMLByID",updateTextContentByID:"updateTextContentByID",dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),c.exports=l}(a("13"))}),a.registerDynamic("4a",["64","2c","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("64"),e=a("2c"),f={processChildrenUpdates:d.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:d.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(a){e.purgeID(a)}};c.exports=f}(a("13"))}),a.registerDynamic("62",["37"],!0,function(a,b,c){"use strict";var d=(this||self,a("37")),e=d({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});c.exports=e}),a.registerDynamic("11",["16","10","50","66","3e","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return q[a]}function e(a,b){return a&&null!=a.key?g(a.key):b.toString(36)}function f(a){return(""+a).replace(r,d)}function g(a){return"$"+f(a)}function h(a,b,c,d,f){var i=typeof a;if("undefined"!==i&&"boolean"!==i||(a=null),null===a||"string"===i||"number"===i||j.isValidElement(a))return d(f,a,""===b?o+e(a,0):b,c),1;var l,q,r,s=0;if(Array.isArray(a))for(var t=0;t<a.length;t++)l=a[t],q=(""!==b?b+p:o)+e(l,t),r=c+s,s+=h(l,q,r,d,f);else{var u=m(a);if(u){var v,w=u.call(a);if(u!==a.entries)for(var x=0;!(v=w.next()).done;)l=v.value,q=(""!==b?b+p:o)+e(l,x++),r=c+s,s+=h(l,q,r,d,f);else for(;!(v=w.next()).done;){var y=v.value;y&&(l=y[1],q=(""!==b?b+p:o)+g(y[0])+p+e(l,0),r=c+s,s+=h(l,q,r,d,f))}}else if("object"===i){n(1!==a.nodeType);var z=k.extract(a);for(var A in z)z.hasOwnProperty(A)&&(l=z[A],q=(""!==b?b+p:o)+g(A)+p+e(l,0),r=c+s,s+=h(l,q,r,d,f))}}return s}function i(a,b,c){return null==a?0:h(a,"",0,b,c)}var j=a("16"),k=a("10"),l=a("50"),m=a("66"),n=a("3e"),o=(a("12"),l.SEPARATOR),p=":",q={"=":"=0",".":"=1",":":"=2"},r=/[=.:]/g;c.exports=i}(a("13"))}),a.registerDynamic("67",["11","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b,c){var d=a,e=!d.hasOwnProperty(c);e&&null!=b&&(d[c]=b)}function e(a){if(null==a)return a;var b={};return f(a,d,b),b}var f=a("11");a("12");c.exports=e}(a("13"))}),a.registerDynamic("68",["69","67","6a","6b"],!0,function(a,b,c){"use strict";var d=(this||self,a("69")),e=a("67"),f=a("6a"),g=a("6b"),h={instantiateChildren:function(a,b,c){var d=e(a);for(var g in d)if(d.hasOwnProperty(g)){var h=d[g],i=f(h,null);d[g]=i}return d},updateChildren:function(a,b,c,h){var i=e(b);if(!i&&!a)return null;var j;for(j in i)if(i.hasOwnProperty(j)){var k=a&&a[j],l=k&&k._currentElement,m=i[j];if(g(l,m))d.receiveComponent(k,m,c,h),i[j]=k;else{k&&d.unmountComponent(k,j);var n=f(m,null);i[j]=n}}for(j in a)!a.hasOwnProperty(j)||i&&i.hasOwnProperty(j)||d.unmountComponent(a[j]);return i},unmountChildren:function(a){for(var b in a){var c=a[b];d.unmountComponent(c)}}};c.exports=h}),a.registerDynamic("6c",["6d","62","69","68","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b,c){o.push({parentID:a,parentNode:null,type:k.INSERT_MARKUP,markupIndex:p.push(b)-1,textContent:null,fromIndex:null,toIndex:c})}function e(a,b,c){o.push({parentID:a,parentNode:null,type:k.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:b,toIndex:c})}function f(a,b){o.push({parentID:a,parentNode:null,type:k.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:b,toIndex:null})}function g(a,b){o.push({parentID:a,parentNode:null,type:k.TEXT_CONTENT,markupIndex:null,textContent:b,fromIndex:null,toIndex:null})}function h(){o.length&&(j.processChildrenUpdates(o,p),i())}function i(){o.length=0,p.length=0}var j=a("6d"),k=a("62"),l=a("69"),m=a("68"),n=0,o=[],p=[],q={Mixin:{mountChildren:function(a,b,c){var d=m.instantiateChildren(a,b,c);this._renderedChildren=d;var e=[],f=0;for(var g in d)if(d.hasOwnProperty(g)){var h=d[g],i=this._rootNodeID+g,j=l.mountComponent(h,i,b,c);h._mountIndex=f,e.push(j),f++}return e},updateTextContent:function(a){n++;var b=!0;try{var c=this._renderedChildren;m.unmountChildren(c);for(var d in c)c.hasOwnProperty(d)&&this._unmountChildByName(c[d],d);this.setTextContent(a),b=!1}finally{n--,n||(b?i():h())}},updateChildren:function(a,b,c){n++;var d=!0;try{this._updateChildren(a,b,c),d=!1}finally{n--,n||(d?i():h())}},_updateChildren:function(a,b,c){var d=this._renderedChildren,e=m.updateChildren(d,a,b,c);if(this._renderedChildren=e,e||d){var f,g=0,h=0;for(f in e)if(e.hasOwnProperty(f)){var i=d&&d[f],j=e[f];i===j?(this.moveChild(i,h,g),g=Math.max(i._mountIndex,g),i._mountIndex=h):(i&&(g=Math.max(i._mountIndex,g),this._unmountChildByName(i,f)),this._mountChildByNameAtIndex(j,f,h,b,c)),h++}for(f in d)!d.hasOwnProperty(f)||e&&e.hasOwnProperty(f)||this._unmountChildByName(d[f],f)}},unmountChildren:function(){var a=this._renderedChildren;m.unmountChildren(a),this._renderedChildren=null},moveChild:function(a,b,c){a._mountIndex<c&&e(this._rootNodeID,a._mountIndex,b)},createChild:function(a,b){d(this._rootNodeID,b,a._mountIndex)},removeChild:function(a){f(this._rootNodeID,a._mountIndex)},setTextContent:function(a){g(this._rootNodeID,a)},_mountChildByNameAtIndex:function(a,b,c,d,e){var f=this._rootNodeID+b,g=l.mountComponent(a,f,d,e);a._mountIndex=c,this.createChild(a,g)},_unmountChildByName:function(a,b){this.removeChild(a),a._mountIndex=null}}};c.exports=q}(a("13"))}),a.registerDynamic("4c",[],!0,function(a,b,c){"use strict";function d(a){return f[a]}function e(a){return(""+a).replace(g,d)}var f=(this||self,{"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"}),g=/[&><"']/g;c.exports=e}),a.registerDynamic("4b",["59","2e","41","3b","4a","2c","6c","65","19","4c","3e","26","22","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){a&&(null!=a.dangerouslySetInnerHTML&&(r(null==a.children),r("object"==typeof a.dangerouslySetInnerHTML&&"__html"in a.dangerouslySetInnerHTML)),r(null==a.style||"object"==typeof a.style))}function e(a,b,c,d){var e=m.findReactContainerForID(a);if(e){var f=e.nodeType===y?e.ownerDocument:e;u(b,f)}d.getPutListenerQueue().enqueuePutListener(a,b,c)}function f(a){D.call(C,a)||(r(B.test(a)),C[a]=!0)}function g(a){f(a),this._tag=a,this._renderedChildren=null,this._previousStyleCopy=null,this._rootNodeID=null}var h=a("59"),i=a("2e"),j=a("41"),k=a("3b"),l=a("4a"),m=a("2c"),n=a("6c"),o=a("65"),p=a("19"),q=a("4c"),r=a("3e"),s=(a("26"),a("22")),t=(a("12"),k.deleteListener),u=k.listenTo,v=k.registrationNameModules,w={string:!0,number:!0},x=s({style:null}),y=1,z=null,A={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},B=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,C={},D={}.hasOwnProperty;g.displayName="ReactDOMComponent",g.Mixin={construct:function(a){this._currentElement=a},mountComponent:function(a,b,c){this._rootNodeID=a,d(this._currentElement.props);var e=A[this._tag]?"":"</"+this._tag+">";return this._createOpenTagMarkupAndPutListeners(b)+this._createContentMarkup(b,c)+e},_createOpenTagMarkupAndPutListeners:function(a){var b=this._currentElement.props,c="<"+this._tag;for(var d in b)if(b.hasOwnProperty(d)){var f=b[d];if(null!=f)if(v.hasOwnProperty(d))e(this._rootNodeID,d,f,a);else{d===x&&(f&&(f=this._previousStyleCopy=p({},b.style)),f=h.createMarkupForStyles(f));var g=j.createMarkupForProperty(d,f);g&&(c+=" "+g)}}if(a.renderToStaticMarkup)return c+">";var i=j.createMarkupForID(this._rootNodeID);return c+" "+i+">"},_createContentMarkup:function(a,b){var c="";"listing"!==this._tag&&"pre"!==this._tag&&"textarea"!==this._tag||(c="\n");var d=this._currentElement.props,e=d.dangerouslySetInnerHTML;if(null!=e){if(null!=e.__html)return c+e.__html}else{var f=w[typeof d.children]?d.children:null,g=null!=f?null:d.children;if(null!=f)return c+q(f);if(null!=g){var h=this.mountChildren(g,a,b);return c+h.join("")}}return c},receiveComponent:function(a,b,c){var d=this._currentElement;this._currentElement=a,this.updateComponent(b,d,a,c)},updateComponent:function(a,b,c,e){d(this._currentElement.props),this._updateDOMProperties(b.props,a),this._updateDOMChildren(b.props,a,e)},_updateDOMProperties:function(a,b){var c,d,f,g=this._currentElement.props;for(c in a)if(!g.hasOwnProperty(c)&&a.hasOwnProperty(c))if(c===x){var h=this._previousStyleCopy;for(d in h)h.hasOwnProperty(d)&&(f=f||{},f[d]="");this._previousStyleCopy=null}else v.hasOwnProperty(c)?t(this._rootNodeID,c):(i.isStandardName[c]||i.isCustomAttribute(c))&&z.deletePropertyByID(this._rootNodeID,c);for(c in g){var j=g[c],k=c===x?this._previousStyleCopy:a[c];if(g.hasOwnProperty(c)&&j!==k)if(c===x)if(j?j=this._previousStyleCopy=p({},j):this._previousStyleCopy=null,k){for(d in k)!k.hasOwnProperty(d)||j&&j.hasOwnProperty(d)||(f=f||{},f[d]="");for(d in j)j.hasOwnProperty(d)&&k[d]!==j[d]&&(f=f||{},f[d]=j[d])}else f=j;else v.hasOwnProperty(c)?e(this._rootNodeID,c,j,b):(i.isStandardName[c]||i.isCustomAttribute(c))&&z.updatePropertyByID(this._rootNodeID,c,j)}f&&z.updateStylesByID(this._rootNodeID,f)},_updateDOMChildren:function(a,b,c){var d=this._currentElement.props,e=w[typeof a.children]?a.children:null,f=w[typeof d.children]?d.children:null,g=a.dangerouslySetInnerHTML&&a.dangerouslySetInnerHTML.__html,h=d.dangerouslySetInnerHTML&&d.dangerouslySetInnerHTML.__html,i=null!=e?null:a.children,j=null!=f?null:d.children,k=null!=e||null!=g,l=null!=f||null!=h;null!=i&&null==j?this.updateChildren(null,b,c):k&&!l&&this.updateTextContent(""),null!=f?e!==f&&this.updateTextContent(""+f):null!=h?g!==h&&z.updateInnerHTMLByID(this._rootNodeID,h):null!=j&&this.updateChildren(j,b,c)},unmountComponent:function(){this.unmountChildren(),k.deleteAllListeners(this._rootNodeID),l.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},o.measureMethods(g,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),p(g.prototype,g.Mixin,n.Mixin),g.injection={injectIDOperations:function(a){g.BackendIDOperations=z=a}},c.exports=g}(a("13"))}),a.registerDynamic("6e",["2e","24","6d","36","6f","3b","70","4b","65","71","25"],!0,function(a,b,c){"use strict";var d=(this||self,a("2e")),e=a("24"),f=a("6d"),g=a("36"),h=a("6f"),i=a("3b"),j=a("70"),k=a("4b"),l=a("65"),m=a("71"),n=a("25"),o={Component:f.injection,Class:g.injection,DOMComponent:k.injection,DOMProperty:d.injection,EmptyComponent:h.injection,EventPluginHub:e.injection,EventEmitter:i.injection,
8
8
  NativeComponent:j.injection,Perf:l.injection,RootIndex:m.injection,Updates:n.injection};c.exports=o}),a.registerDynamic("72",["73","f","3b","74","75","32","19"],!0,function(a,b,c){"use strict";function d(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=e.getPooled(null),this.putListenerQueue=i.getPooled()}var e=(this||self,a("73")),f=a("f"),g=a("3b"),h=a("74"),i=a("75"),j=a("32"),k=a("19"),l={initialize:h.getSelectionInformation,close:h.restoreSelection},m={initialize:function(){var a=g.isEnabled();return g.setEnabled(!1),a},close:function(a){g.setEnabled(a)}},n={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},o={initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},p=[o,l,m,n],q={getTransactionWrappers:function(){return p},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){e.release(this.reactMountReady),this.reactMountReady=null,i.release(this.putListenerQueue),this.putListenerQueue=null}};k(d.prototype,j.Mixin,q),f.addPoolingTo(d),c.exports=d}),a.registerDynamic("76",[],!0,function(a,b,c){"use strict";function d(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function e(a){for(;a;){if(a.nextSibling)return a.nextSibling;a=a.parentNode}}function f(a,b){for(var c=d(a),f=0,g=0;c;){if(3===c.nodeType){if(g=f+c.textContent.length,f<=b&&g>=b)return{node:c,offset:b-f};f=g}c=d(e(c))}}this||self;c.exports=f}),a.registerDynamic("1a",["21"],!0,function(a,b,c){"use strict";function d(){return!f&&e.canUseDOM&&(f="textContent"in document.documentElement?"textContent":"innerText"),f}var e=(this||self,a("21")),f=null;c.exports=d}),a.registerDynamic("77",["21","76","1a"],!0,function(a,b,c){"use strict";function d(a,b,c,d){return a===c&&b===d}function e(a){var b=document.selection,c=b.createRange(),d=c.text.length,e=c.duplicate();e.moveToElementText(a),e.setEndPoint("EndToStart",c);var f=e.text.length,g=f+d;return{start:f,end:g}}function f(a){var b=window.getSelection&&window.getSelection();if(!b||0===b.rangeCount)return null;var c=b.anchorNode,e=b.anchorOffset,f=b.focusNode,g=b.focusOffset,h=b.getRangeAt(0),i=d(b.anchorNode,b.anchorOffset,b.focusNode,b.focusOffset),j=i?0:h.toString().length,k=h.cloneRange();k.selectNodeContents(a),k.setEnd(h.startContainer,h.startOffset);var l=d(k.startContainer,k.startOffset,k.endContainer,k.endOffset),m=l?0:k.toString().length,n=m+j,o=document.createRange();o.setStart(c,e),o.setEnd(f,g);var p=o.collapsed;return{start:p?n:m,end:p?m:n}}function g(a,b){var c,d,e=document.selection.createRange().duplicate();"undefined"==typeof b.end?(c=b.start,d=c):b.start>b.end?(c=b.end,d=b.start):(c=b.start,d=b.end),e.moveToElementText(a),e.moveStart("character",c),e.setEndPoint("EndToStart",e),e.moveEnd("character",d-c),e.select()}function h(a,b){if(window.getSelection){var c=window.getSelection(),d=a[k()].length,e=Math.min(b.start,d),f="undefined"==typeof b.end?e:Math.min(b.end,d);if(!c.extend&&e>f){var g=f;f=e,e=g}var h=j(a,e),i=j(a,f);if(h&&i){var l=document.createRange();l.setStart(h.node,h.offset),c.removeAllRanges(),e>f?(c.addRange(l),c.extend(i.node,i.offset)):(l.setEnd(i.node,i.offset),c.addRange(l))}}}var i=(this||self,a("21")),j=a("76"),k=a("1a"),l=i.canUseDOM&&"selection"in document&&!("getSelection"in window),m={getOffsets:l?e:f,setOffsets:l?g:h};c.exports=m}),a.registerDynamic("45",[],!0,function(a,b,c){"use strict";function d(a){try{a.focus()}catch(a){}}this||self;c.exports=d}),a.registerDynamic("74",["77","78","45","79"],!0,function(a,b,c){"use strict";function d(a){return f(document.documentElement,a)}var e=(this||self,a("77")),f=a("78"),g=a("45"),h=a("79"),i={hasSelectionCapabilities:function(a){return a&&("INPUT"===a.nodeName&&"text"===a.type||"TEXTAREA"===a.nodeName||"true"===a.contentEditable)},getSelectionInformation:function(){var a=h();return{focusedElem:a,selectionRange:i.hasSelectionCapabilities(a)?i.getSelection(a):null}},restoreSelection:function(a){var b=h(),c=a.focusedElem,e=a.selectionRange;b!==c&&d(c)&&(i.hasSelectionCapabilities(c)&&i.setSelection(c,e),g(c))},getSelection:function(a){var b;if("selectionStart"in a)b={start:a.selectionStart,end:a.selectionEnd};else if(document.selection&&"INPUT"===a.nodeName){var c=document.selection.createRange();c.parentElement()===a&&(b={start:-c.moveStart("character",-a.value.length),end:-c.moveEnd("character",-a.value.length)})}else b=e.getOffsets(a);return b||{start:0,end:0}},setSelection:function(a,b){var c=b.start,d=b.end;if("undefined"==typeof d&&(d=c),"selectionStart"in a)a.selectionStart=c,a.selectionEnd=Math.min(d,a.value.length);else if(document.selection&&"INPUT"===a.nodeName){var f=a.createTextRange();f.collapse(!0),f.moveStart("character",c),f.moveEnd("character",d-c),f.select()}else e.setOffsets(a,b)}};c.exports=i}),a.registerDynamic("79",[],!0,function(a,b,c){function d(){try{return document.activeElement||document.body}catch(a){return document.body}}this||self;c.exports=d}),a.registerDynamic("27",[],!0,function(a,b,c){"use strict";function d(a){return a&&("INPUT"===a.nodeName&&e[a.type]||"TEXTAREA"===a.nodeName)}var e=(this||self,{color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0});c.exports=d}),a.registerDynamic("7a",[],!0,function(a,b,c){"use strict";function d(a,b){if(a===b)return!0;var c;for(c in a)if(a.hasOwnProperty(c)&&(!b.hasOwnProperty(c)||a[c]!==b[c]))return!1;for(c in b)if(b.hasOwnProperty(c)&&!a.hasOwnProperty(c))return!1;return!0}this||self;c.exports=d}),a.registerDynamic("7b",["1f","20","74","1c","79","27","22","7a"],!0,function(a,b,c){"use strict";function d(a){if("selectionStart"in a&&h.hasSelectionCapabilities(a))return{start:a.selectionStart,end:a.selectionEnd};if(window.getSelection){var b=window.getSelection();return{anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}}if(document.selection){var c=document.selection.createRange();return{parentElement:c.parentElement(),text:c.text,top:c.boundingTop,left:c.boundingLeft}}}function e(a){if(s||null==p||p!==j())return null;var b=d(p);if(!r||!m(r,b)){r=b;var c=i.getPooled(o.select,q,a);return c.type="select",c.target=p,g.accumulateTwoPhaseDispatches(c),c}}var f=(this||self,a("1f")),g=a("20"),h=a("74"),i=a("1c"),j=a("79"),k=a("27"),l=a("22"),m=a("7a"),n=f.topLevelTypes,o={select:{phasedRegistrationNames:{bubbled:l({onSelect:null}),captured:l({onSelectCapture:null})},dependencies:[n.topBlur,n.topContextMenu,n.topFocus,n.topKeyDown,n.topMouseDown,n.topMouseUp,n.topSelectionChange]}},p=null,q=null,r=null,s=!1,t={eventTypes:o,extractEvents:function(a,b,c,d){switch(a){case n.topFocus:(k(b)||"true"===b.contentEditable)&&(p=b,q=c,r=null);break;case n.topBlur:p=null,q=null,r=null;break;case n.topMouseDown:s=!0;break;case n.topContextMenu:case n.topMouseUp:return s=!1,e(d);case n.topSelectionChange:case n.topKeyDown:case n.topKeyUp:return e(d)}}};c.exports=t}),a.registerDynamic("7c",[],!0,function(a,b,c){"use strict";var d=(this||self,Math.pow(2,53)),e={createReactRootIndex:function(){return Math.ceil(Math.random()*d)}};c.exports=e}),a.registerDynamic("20",["1f","24","3c","3d","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b,c){var d=b.dispatchConfig.phasedRegistrationNames[c];return q(a,d)}function e(a,b,c){var e=b?p.bubbled:p.captured,f=d(a,c,e);f&&(c._dispatchListeners=n(c._dispatchListeners,f),c._dispatchIDs=n(c._dispatchIDs,a))}function f(a){a&&a.dispatchConfig.phasedRegistrationNames&&m.injection.getInstanceHandle().traverseTwoPhase(a.dispatchMarker,e,a)}function g(a,b,c){if(c&&c.dispatchConfig.registrationName){var d=c.dispatchConfig.registrationName,e=q(a,d);e&&(c._dispatchListeners=n(c._dispatchListeners,e),c._dispatchIDs=n(c._dispatchIDs,a))}}function h(a){a&&a.dispatchConfig.registrationName&&g(a.dispatchMarker,null,a)}function i(a){o(a,f)}function j(a,b,c,d){m.injection.getInstanceHandle().traverseEnterLeave(c,d,g,a,b)}function k(a){o(a,h)}var l=a("1f"),m=a("24"),n=a("3c"),o=a("3d"),p=l.PropagationPhases,q=m.getListener,r={accumulateTwoPhaseDispatches:i,accumulateDirectDispatches:k,accumulateEnterLeaveDispatches:j};c.exports=r}(a("13"))}),a.registerDynamic("7d",["1c"],!0,function(a,b,c){"use strict";function d(a,b,c){e.call(this,a,b,c)}var e=(this||self,a("1c")),f={clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}};e.augmentClass(d,f),c.exports=d}),a.registerDynamic("7e",["7f"],!0,function(a,b,c){"use strict";function d(a,b,c){e.call(this,a,b,c)}var e=(this||self,a("7f")),f={relatedTarget:null};e.augmentClass(d,f),c.exports=d}),a.registerDynamic("80",["81"],!0,function(a,b,c){"use strict";function d(a){if(a.key){var b=f[a.key]||a.key;if("Unidentified"!==b)return b}if("keypress"===a.type){var c=e(a);return 13===c?"Enter":String.fromCharCode(c)}return"keydown"===a.type||"keyup"===a.type?g[a.keyCode]||"Unidentified":""}var e=(this||self,a("81")),f={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};c.exports=d}),a.registerDynamic("82",["7f","81","80","83"],!0,function(a,b,c){"use strict";function d(a,b,c){e.call(this,a,b,c)}var e=(this||self,a("7f")),f=a("81"),g=a("80"),h=a("83"),i={key:g,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:h,charCode:function(a){return"keypress"===a.type?f(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===a.type?f(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}};e.augmentClass(d,i),c.exports=d}),a.registerDynamic("84",["2b"],!0,function(a,b,c){"use strict";function d(a,b,c){e.call(this,a,b,c)}var e=(this||self,a("2b")),f={dataTransfer:null};e.augmentClass(d,f),c.exports=d}),a.registerDynamic("85",["7f","83"],!0,function(a,b,c){"use strict";function d(a,b,c){e.call(this,a,b,c)}var e=(this||self,a("7f")),f=a("83"),g={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:f};e.augmentClass(d,g),c.exports=d}),a.registerDynamic("1c",["f","19","30","51"],!0,function(a,b,c){"use strict";function d(a,b,c){this.dispatchConfig=a,this.dispatchMarker=b,this.nativeEvent=c;var d=this.constructor.Interface;for(var e in d)if(d.hasOwnProperty(e)){var f=d[e];f?this[e]=f(c):this[e]=c[e]}var h=null!=c.defaultPrevented?c.defaultPrevented:c.returnValue===!1;h?this.isDefaultPrevented=g.thatReturnsTrue:this.isDefaultPrevented=g.thatReturnsFalse,this.isPropagationStopped=g.thatReturnsFalse}var e=(this||self,a("f")),f=a("19"),g=a("30"),h=a("51"),i={type:null,target:h,currentTarget:g.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};f(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a.preventDefault?a.preventDefault():a.returnValue=!1,this.isDefaultPrevented=g.thatReturnsTrue},stopPropagation:function(){var a=this.nativeEvent;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0,this.isPropagationStopped=g.thatReturnsTrue},persist:function(){this.isPersistent=g.thatReturnsTrue},isPersistent:g.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface;for(var b in a)this[b]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),d.Interface=i,d.augmentClass=function(a,b){var c=this,d=Object.create(c.prototype);f(d,a.prototype),a.prototype=d,a.prototype.constructor=a,a.Interface=f({},c.Interface,b),a.augmentClass=c.augmentClass,e.addPoolingTo(a,e.threeArgumentPooler)},e.addPoolingTo(d,e.threeArgumentPooler),c.exports=d}),a.registerDynamic("51",[],!0,function(a,b,c){"use strict";function d(a){var b=a.target||a.srcElement||window;return 3===b.nodeType?b.parentNode:b}this||self;c.exports=d}),a.registerDynamic("7f",["1c","51"],!0,function(a,b,c){"use strict";function d(a,b,c){e.call(this,a,b,c)}var e=(this||self,a("1c")),f=a("51"),g={view:function(a){if(a.view)return a.view;var b=f(a);if(null!=b&&b.window===b)return b;var c=b.ownerDocument;return c?c.defaultView||c.parentWindow:window},detail:function(a){return a.detail||0}};e.augmentClass(d,g),c.exports=d}),a.registerDynamic("83",[],!0,function(a,b,c){"use strict";function d(a){var b=this,c=b.nativeEvent;if(c.getModifierState)return c.getModifierState(a);var d=f[a];return!!d&&!!c[d]}function e(a){return d}var f=(this||self,{Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"});c.exports=e}),a.registerDynamic("2b",["7f","86","83"],!0,function(a,b,c){"use strict";function d(a,b,c){e.call(this,a,b,c)}var e=(this||self,a("7f")),f=a("86"),g=a("83"),h={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:g,button:function(a){var b=a.button;return"which"in a?b:2===b?2:4===b?1:0},buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)},pageX:function(a){return"pageX"in a?a.pageX:a.clientX+f.currentScrollLeft},pageY:function(a){return"pageY"in a?a.pageY:a.clientY+f.currentScrollTop}};e.augmentClass(d,h),c.exports=d}),a.registerDynamic("87",["2b"],!0,function(a,b,c){"use strict";function d(a,b,c){e.call(this,a,b,c)}var e=(this||self,a("2b")),f={deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null};e.augmentClass(d,f),c.exports=d}),a.registerDynamic("81",[],!0,function(a,b,c){"use strict";function d(a){var b,c=a.keyCode;return"charCode"in a?(b=a.charCode,0===b&&13===c&&(b=13)):b=c,b>=32||13===b?b:0}this||self;c.exports=d}),a.registerDynamic("88",["1f","89","20","7d","1c","7e","82","2b","84","85","7f","87","81","3e","22","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("1f"),e=a("89"),f=a("20"),g=a("7d"),h=a("1c"),i=a("7e"),j=a("82"),k=a("2b"),l=a("84"),m=a("85"),n=a("7f"),o=a("87"),p=a("81"),q=a("3e"),r=a("22"),s=(a("12"),d.topLevelTypes),t={blur:{phasedRegistrationNames:{bubbled:r({onBlur:!0}),captured:r({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:r({onClick:!0}),captured:r({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:r({onContextMenu:!0}),captured:r({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:r({onCopy:!0}),captured:r({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:r({onCut:!0}),captured:r({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:r({onDoubleClick:!0}),captured:r({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:r({onDrag:!0}),captured:r({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:r({onDragEnd:!0}),captured:r({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:r({onDragEnter:!0}),captured:r({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:r({onDragExit:!0}),captured:r({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:r({onDragLeave:!0}),captured:r({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:r({onDragOver:!0}),captured:r({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:r({onDragStart:!0}),captured:r({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:r({onDrop:!0}),captured:r({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:r({onFocus:!0}),captured:r({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:r({onInput:!0}),captured:r({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:r({onKeyDown:!0}),captured:r({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:r({onKeyPress:!0}),captured:r({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:r({onKeyUp:!0}),captured:r({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:r({onLoad:!0}),captured:r({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:r({onError:!0}),captured:r({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:r({onMouseDown:!0}),captured:r({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:r({onMouseMove:!0}),captured:r({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:r({onMouseOut:!0}),captured:r({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:r({onMouseOver:!0}),captured:r({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:r({onMouseUp:!0}),captured:r({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:r({onPaste:!0}),captured:r({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:r({onReset:!0}),captured:r({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:r({onScroll:!0}),captured:r({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:r({onSubmit:!0}),captured:r({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:r({onTouchCancel:!0}),captured:r({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:r({onTouchEnd:!0}),captured:r({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:r({onTouchMove:!0}),captured:r({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:r({onTouchStart:!0}),captured:r({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:r({onWheel:!0}),captured:r({onWheelCapture:!0})}}},u={topBlur:t.blur,topClick:t.click,topContextMenu:t.contextMenu,topCopy:t.copy,topCut:t.cut,topDoubleClick:t.doubleClick,topDrag:t.drag,topDragEnd:t.dragEnd,topDragEnter:t.dragEnter,topDragExit:t.dragExit,topDragLeave:t.dragLeave,topDragOver:t.dragOver,topDragStart:t.dragStart,topDrop:t.drop,topError:t.error,topFocus:t.focus,topInput:t.input,topKeyDown:t.keyDown,topKeyPress:t.keyPress,topKeyUp:t.keyUp,topLoad:t.load,topMouseDown:t.mouseDown,topMouseMove:t.mouseMove,topMouseOut:t.mouseOut,topMouseOver:t.mouseOver,topMouseUp:t.mouseUp,topPaste:t.paste,topReset:t.reset,topScroll:t.scroll,topSubmit:t.submit,topTouchCancel:t.touchCancel,topTouchEnd:t.touchEnd,topTouchMove:t.touchMove,topTouchStart:t.touchStart,topWheel:t.wheel};for(var v in u)u[v].dependencies=[v];var w={eventTypes:t,executeDispatch:function(a,b,c){var d=e.executeDispatch(a,b,c);d===!1&&(a.stopPropagation(),a.preventDefault())},extractEvents:function(a,b,c,d){var e=u[a];if(!e)return null;var r;switch(a){case s.topInput:case s.topLoad:case s.topError:case s.topReset:case s.topSubmit:r=h;break;case s.topKeyPress:if(0===p(d))return null;case s.topKeyDown:case s.topKeyUp:r=j;break;case s.topBlur:case s.topFocus:r=i;break;case s.topClick:if(2===d.button)return null;case s.topContextMenu:case s.topDoubleClick:case s.topMouseDown:case s.topMouseMove:case s.topMouseOut:case s.topMouseOver:case s.topMouseUp:r=k;break;case s.topDrag:case s.topDragEnd:case s.topDragEnter:case s.topDragExit:case s.topDragLeave:case s.topDragOver:case s.topDragStart:case s.topDrop:r=l;break;case s.topTouchCancel:case s.topTouchEnd:case s.topTouchMove:case s.topTouchStart:r=m;break;case s.topScroll:r=n;break;case s.topWheel:r=o;break;case s.topCopy:case s.topCut:case s.topPaste:r=g}q(r);var t=r.getPooled(e,c,d);return f.accumulateTwoPhaseDispatches(t),t}};c.exports=w}(a("13"))}),a.registerDynamic("8a",["2e"],!0,function(a,b,c){"use strict";var d=(this||self,a("2e")),e=d.injection.MUST_USE_ATTRIBUTE,f={Properties:{clipPath:e,cx:e,cy:e,d:e,dx:e,dy:e,fill:e,fillOpacity:e,fontFamily:e,fontSize:e,fx:e,fy:e,gradientTransform:e,gradientUnits:e,markerEnd:e,markerMid:e,markerStart:e,offset:e,opacity:e,patternContentUnits:e,patternUnits:e,points:e,preserveAspectRatio:e,r:e,rx:e,ry:e,spreadMethod:e,stopColor:e,stopOpacity:e,stroke:e,strokeDasharray:e,strokeLinecap:e,strokeOpacity:e,strokeWidth:e,textAnchor:e,transform:e,version:e,viewBox:e,x1:e,x2:e,x:e,y1:e,y2:e,y:e},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox"}};c.exports=f}),a.registerDynamic("8b",["8c","3e","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b){this.props=a,this.context=b}var e=a("8c"),f=a("3e");a("12");d.prototype.setState=function(a,b){f("object"==typeof a||"function"==typeof a||null==a),e.enqueueSetState(this,a),b&&e.enqueueCallback(this,b)},d.prototype.forceUpdate=function(a){e.enqueueForceUpdate(this),a&&e.enqueueCallback(this,a)};c.exports=d}(a("13"))}),a.registerDynamic("8d",[],!0,function(a,b,c){"use strict";var d=(this||self,{guard:function(a,b){return a}});c.exports=d}),a.registerDynamic("22",[],!0,function(a,b,c){var d=(this||self,function(a){var b;for(b in a)if(a.hasOwnProperty(b))return b;return null});c.exports=d}),a.registerDynamic("36",["8b","8e","16","8d","8f","90","91","92","8c","19","3e","37","22","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b){var c=y.hasOwnProperty(b)?y[b]:null;A.hasOwnProperty(b)&&s(c===w.OVERRIDE_BASE),a.hasOwnProperty(b)&&s(c===w.DEFINE_MANY||c===w.DEFINE_MANY_MERGED)}function e(a,b){if(b){s("function"!=typeof b),s(!m.isValidElement(b));var c=a.prototype;b.hasOwnProperty(v)&&z.mixins(a,b.mixins);for(var e in b)if(b.hasOwnProperty(e)&&e!==v){var f=b[e];if(d(c,e),z.hasOwnProperty(e))z[e](a,f);else{var g=y.hasOwnProperty(e),j=c.hasOwnProperty(e),k=f&&f.__reactDontBind,l="function"==typeof f,n=l&&!g&&!j&&!k;if(n)c.__reactAutoBindMap||(c.__reactAutoBindMap={}),c.__reactAutoBindMap[e]=f,c[e]=f;else if(j){var o=y[e];s(g&&(o===w.DEFINE_MANY_MERGED||o===w.DEFINE_MANY)),o===w.DEFINE_MANY_MERGED?c[e]=h(c[e],f):o===w.DEFINE_MANY&&(c[e]=i(c[e],f))}else c[e]=f}}}}function f(a,b){if(b)for(var c in b){var d=b[c];if(b.hasOwnProperty(c)){var e=c in z;s(!e);var f=c in a;s(!f),a[c]=d}}}function g(a,b){s(a&&b&&"object"==typeof a&&"object"==typeof b);for(var c in b)b.hasOwnProperty(c)&&(s(void 0===a[c]),a[c]=b[c]);return a}function h(a,b){return function(){var c=a.apply(this,arguments),d=b.apply(this,arguments);if(null==c)return d;if(null==d)return c;var e={};return g(e,c),g(e,d),e}}function i(a,b){return function(){a.apply(this,arguments),b.apply(this,arguments)}}function j(a,b){var c=b.bind(a);return c}function k(a){for(var b in a.__reactAutoBindMap)if(a.__reactAutoBindMap.hasOwnProperty(b)){var c=a.__reactAutoBindMap[b];a[b]=j(a,n.guard(c,a.constructor.displayName+"."+b))}}var l=a("8b"),m=(a("8e"),a("16")),n=a("8d"),o=a("8f"),p=a("90"),q=(a("91"),a("92"),a("8c")),r=a("19"),s=a("3e"),t=a("37"),u=a("22"),v=(a("12"),u({mixins:null})),w=t({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),x=[],y={mixins:w.DEFINE_MANY,statics:w.DEFINE_MANY,propTypes:w.DEFINE_MANY,contextTypes:w.DEFINE_MANY,childContextTypes:w.DEFINE_MANY,getDefaultProps:w.DEFINE_MANY_MERGED,getInitialState:w.DEFINE_MANY_MERGED,getChildContext:w.DEFINE_MANY_MERGED,render:w.DEFINE_ONCE,componentWillMount:w.DEFINE_MANY,componentDidMount:w.DEFINE_MANY,componentWillReceiveProps:w.DEFINE_MANY,shouldComponentUpdate:w.DEFINE_ONCE,componentWillUpdate:w.DEFINE_MANY,componentDidUpdate:w.DEFINE_MANY,componentWillUnmount:w.DEFINE_MANY,updateComponent:w.OVERRIDE_BASE},z={displayName:function(a,b){a.displayName=b},mixins:function(a,b){if(b)for(var c=0;c<b.length;c++)e(a,b[c])},childContextTypes:function(a,b){a.childContextTypes=r({},a.childContextTypes,b)},contextTypes:function(a,b){a.contextTypes=r({},a.contextTypes,b)},getDefaultProps:function(a,b){a.getDefaultProps?a.getDefaultProps=h(a.getDefaultProps,b):a.getDefaultProps=b},propTypes:function(a,b){a.propTypes=r({},a.propTypes,b)},statics:function(a,b){f(a,b)}},A={replaceState:function(a,b){q.enqueueReplaceState(this,a),b&&q.enqueueCallback(this,b)},isMounted:function(){var a=o.get(this);return a&&a!==p.currentlyMountingInstance},setProps:function(a,b){q.enqueueSetProps(this,a),b&&q.enqueueCallback(this,b)},replaceProps:function(a,b){q.enqueueReplaceProps(this,a),b&&q.enqueueCallback(this,b)}},B=function(){};r(B.prototype,l.prototype,A);var C={createClass:function(a){var b=function(a,b){this.__reactAutoBindMap&&k(this),this.props=a,this.context=b,this.state=null;var c=this.getInitialState?this.getInitialState():null;s("object"==typeof c&&!Array.isArray(c)),this.state=c};b.prototype=new B,b.prototype.constructor=b,x.forEach(e.bind(null,b)),e(b,a),b.getDefaultProps&&(b.defaultProps=b.getDefaultProps()),s(b.prototype.render);for(var c in y)b.prototype[c]||(b.prototype[c]=null);return b.type=b,b},injection:{injectMixin:function(a){x.push(a)}}};c.exports=C}(a("13"))}),a.registerDynamic("93",["36","16","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){var b=f.createFactory(a),c=e.createClass({tagName:a.toUpperCase(),displayName:"ReactFullPageComponent"+a,componentWillUnmount:function(){g(!1)},render:function(){return b(this.props)}});return c}var e=a("36"),f=a("16"),g=a("3e");c.exports=d}(a("13"))}),a.registerDynamic("94",["19"],!0,function(a,b,c){function d(a){for(var b=0,c=0;c<a.length;c++){var d=a[c];b+=d.totalTime}return b}function e(a){for(var b=[],c=0;c<a.length;c++){var d,e=a[c];for(d in e.writes)e.writes[d].forEach(function(a){b.push({id:d,type:k[a.type]||a.type,args:a.args})})}return b}function f(a){for(var b,c={},d=0;d<a.length;d++){var e=a[d],f=i({},e.exclusive,e.inclusive);for(var g in f)b=e.displayNames[g].current,c[b]=c[b]||{componentName:b,inclusive:0,exclusive:0,render:0,count:0},e.render[g]&&(c[b].render+=e.render[g]),e.exclusive[g]&&(c[b].exclusive+=e.exclusive[g]),e.inclusive[g]&&(c[b].inclusive+=e.inclusive[g]),e.counts[g]&&(c[b].count+=e.counts[g])}var h=[];for(b in c)c[b].exclusive>=j&&h.push(c[b]);return h.sort(function(a,b){return b.exclusive-a.exclusive}),h}function g(a,b){for(var c,d={},e=0;e<a.length;e++){var f,g=a[e],k=i({},g.exclusive,g.inclusive);b&&(f=h(g));for(var l in k)if(!b||f[l]){var m=g.displayNames[l];c=m.owner+" > "+m.current,d[c]=d[c]||{componentName:c,time:0,count:0},g.inclusive[l]&&(d[c].time+=g.inclusive[l]),g.counts[l]&&(d[c].count+=g.counts[l])}}var n=[];for(c in d)d[c].time>=j&&n.push(d[c]);return n.sort(function(a,b){return b.time-a.time}),n}function h(a){var b={},c=Object.keys(a.writes),d=i({},a.exclusive,a.inclusive);for(var e in d){for(var f=!1,g=0;g<c.length;g++)if(0===c[g].indexOf(e)){f=!0;break}!f&&a.counts[e]>0&&(b[e]=!0)}return b}var i=(this||self,a("19")),j=1.2,k={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",TEXT_CONTENT:"set textContent",updatePropertyByID:"update attribute",deletePropertyByID:"delete attribute",updateStylesByID:"update styles",updateInnerHTMLByID:"set innerHTML",dangerouslyReplaceNodeWithMarkupByID:"replace"},l={getExclusiveSummary:f,getInclusiveSummary:g,getDOMSummary:e,getTotalTime:d};c.exports=l}),a.registerDynamic("95",["21"],!0,function(a,b,c){"use strict";var d,e=(this||self,a("21"));e.canUseDOM&&(d=window.performance||window.msPerformance||window.webkitPerformance),c.exports=d||{}}),a.registerDynamic("96",["95"],!0,function(a,b,c){var d=(this||self,a("95"));d&&d.now||(d=Date);var e=d.now.bind(d);c.exports=e}),a.registerDynamic("97",["2e","94","2c","65","96"],!0,function(a,b,c){"use strict";function d(a){return Math.floor(100*a)/100}function e(a,b,c){a[b]=(a[b]||0)+c}var f=(this||self,a("2e")),g=a("94"),h=a("2c"),i=a("65"),j=a("96"),k={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){k._injected||i.injection.injectMeasure(k.measure),k._allMeasurements.length=0,i.enableMeasure=!0},stop:function(){i.enableMeasure=!1},getLastMeasurements:function(){return k._allMeasurements},printExclusive:function(a){a=a||k._allMeasurements;var b=g.getExclusiveSummary(a);console.table(b.map(function(a){return{"Component class name":a.componentName,"Total inclusive time (ms)":d(a.inclusive),"Exclusive mount time (ms)":d(a.exclusive),"Exclusive render time (ms)":d(a.render),"Mount time per instance (ms)":d(a.exclusive/a.count),"Render time per instance (ms)":d(a.render/a.count),Instances:a.count}}))},printInclusive:function(a){a=a||k._allMeasurements;var b=g.getInclusiveSummary(a);console.table(b.map(function(a){return{"Owner > component":a.componentName,"Inclusive time (ms)":d(a.time),Instances:a.count}})),console.log("Total time:",g.getTotalTime(a).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(a){var b=g.getInclusiveSummary(a,!0);return b.map(function(a){return{"Owner > component":a.componentName,"Wasted time (ms)":a.time,Instances:a.count}})},printWasted:function(a){a=a||k._allMeasurements,console.table(k.getMeasurementsSummaryMap(a)),console.log("Total time:",g.getTotalTime(a).toFixed(2)+" ms")},printDOM:function(a){a=a||k._allMeasurements;var b=g.getDOMSummary(a);console.table(b.map(function(a){var b={};return b[f.ID_ATTRIBUTE_NAME]=a.id,b.type=a.type,b.args=JSON.stringify(a.args),b})),console.log("Total time:",g.getTotalTime(a).toFixed(2)+" ms")},_recordWrite:function(a,b,c,d){var e=k._allMeasurements[k._allMeasurements.length-1].writes;e[a]=e[a]||[],e[a].push({type:b,time:c,args:d})},measure:function(a,b,c){return function(){for(var d=[],f=0,g=arguments.length;f<g;f++)d.push(arguments[f]);var i,l,m;if("_renderNewRootComponent"===b||"flushBatchedUpdates"===b)return k._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0}),m=j(),l=c.apply(this,d),k._allMeasurements[k._allMeasurements.length-1].totalTime=j()-m,l;if("_mountImageIntoNode"===b||"ReactDOMIDOperations"===a){if(m=j(),l=c.apply(this,d),i=j()-m,"_mountImageIntoNode"===b){var n=h.getID(d[1]);k._recordWrite(n,b,i,d[0])}else"dangerouslyProcessChildrenUpdates"===b?d[0].forEach(function(a){var b={};null!==a.fromIndex&&(b.fromIndex=a.fromIndex),null!==a.toIndex&&(b.toIndex=a.toIndex),null!==a.textContent&&(b.textContent=a.textContent),null!==a.markupIndex&&(b.markup=d[1][a.markupIndex]),k._recordWrite(a.parentID,a.type,i,b)}):k._recordWrite(d[0],b,i,Array.prototype.slice.call(d,1));return l}if("ReactCompositeComponent"!==a||"mountComponent"!==b&&"updateComponent"!==b&&"_renderValidatedComponent"!==b)return c.apply(this,d);if("string"==typeof this._currentElement.type)return c.apply(this,d);var o="mountComponent"===b?d[0]:this._rootNodeID,p="_renderValidatedComponent"===b,q="mountComponent"===b,r=k._mountStack,s=k._allMeasurements[k._allMeasurements.length-1];if(p?e(s.counts,o,1):q&&r.push(0),m=j(),l=c.apply(this,d),i=j()-m,p)e(s.render,o,i);else if(q){var t=r.pop();r[r.length-1]+=i,e(s.exclusive,o,i-t),e(s.inclusive,o,i)}else e(s.inclusive,o,i);return s.displayNames[o]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},l}}};c.exports=k}),a.registerDynamic("98",["1e","23","28","29","2a","21","2d","2f","35","36","4a","31","4b","33","38","3a","64","3f","40","43","44","48","49","16","4f","6e","50","2c","72","7b","7c","88","8a","93","97","13"],!0,function(a,b,c){
9
9
  this||self;!function(b){"use strict";function d(a){return o.createClass({tagName:a.toUpperCase(),render:function(){return new C(a,null,null,null,null,this.props)}})}function e(){E.EventEmitter.injectReactEventListener(D),E.EventPluginHub.injectEventPluginOrder(i),E.EventPluginHub.injectInstanceHandle(F),E.EventPluginHub.injectMount(G),E.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:K,EnterLeaveEventPlugin:j,ChangeEventPlugin:g,MobileSafariClickEventPlugin:m,SelectEventPlugin:I,BeforeInputEventPlugin:f}),E.NativeComponent.injectGenericComponentClass(r),E.NativeComponent.injectTextComponentClass(B),E.NativeComponent.injectAutoWrapper(d),E.Class.injectMixin(n),E.NativeComponent.injectComponentClasses({button:s,form:t,iframe:w,img:u,input:x,option:y,select:z,textarea:A,html:M("html"),head:M("head"),body:M("body")}),E.DOMProperty.injectDOMPropertyConfig(l),E.DOMProperty.injectDOMPropertyConfig(L),E.EmptyComponent.injectEmptyComponent("noscript"),E.Updates.injectReconcileTransaction(H),E.Updates.injectBatchingStrategy(q),E.RootIndex.injectCreateReactRootIndex(k.canUseDOM?h.createReactRootIndex:J.createReactRootIndex),E.Component.injectEnvironment(p),E.DOMComponent.injectIDOperations(v)}var f=a("1e"),g=a("23"),h=a("28"),i=a("29"),j=a("2a"),k=a("21"),l=a("2d"),m=a("2f"),n=a("35"),o=a("36"),p=a("4a"),q=a("31"),r=a("4b"),s=a("33"),t=a("38"),u=a("3a"),v=a("64"),w=a("3f"),x=a("40"),y=a("43"),z=a("44"),A=a("48"),B=a("49"),C=a("16"),D=a("4f"),E=a("6e"),F=a("50"),G=a("2c"),H=a("72"),I=a("7b"),J=a("7c"),K=a("88"),L=a("8a"),M=a("93");c.exports={inject:e}}(a("13"))}),a.registerDynamic("46",["16","10","92","30"],!0,function(a,b,c){"use strict";function d(a){function b(b,c,d,e,f){if(e=e||v,null==c[d]){var g=t[f];return b?new Error("Required "+g+" `"+d+"` was not specified in "+("`"+e+"`.")):null}return a(c,d,e,f)}var c=b.bind(null,!1);return c.isRequired=b.bind(null,!0),c}function e(a){function b(b,c,d,e){var f=b[c],g=p(f);if(g!==a){var h=t[e],i=q(f);return new Error("Invalid "+h+" `"+c+"` of type `"+i+"` "+("supplied to `"+d+"`, expected `"+a+"`."))}return null}return d(b)}function f(){return d(u.thatReturns(null))}function g(a){function b(b,c,d,e){var f=b[c];if(!Array.isArray(f)){var g=t[e],h=p(f);return new Error("Invalid "+g+" `"+c+"` of type "+("`"+h+"` supplied to `"+d+"`, expected an array."))}for(var i=0;i<f.length;i++){var j=a(f,i,d,e);if(j instanceof Error)return j}return null}return d(b)}function h(){function a(a,b,c,d){if(!r.isValidElement(a[b])){var e=t[d];return new Error("Invalid "+e+" `"+b+"` supplied to "+("`"+c+"`, expected a ReactElement."))}return null}return d(a)}function i(a){function b(b,c,d,e){if(!(b[c]instanceof a)){var f=t[e],g=a.name||v;return new Error("Invalid "+f+" `"+c+"` supplied to "+("`"+d+"`, expected instance of `"+g+"`."))}return null}return d(b)}function j(a){function b(b,c,d,e){for(var f=b[c],g=0;g<a.length;g++)if(f===a[g])return null;var h=t[e],i=JSON.stringify(a);return new Error("Invalid "+h+" `"+c+"` of value `"+f+"` "+("supplied to `"+d+"`, expected one of "+i+"."))}return d(b)}function k(a){function b(b,c,d,e){var f=b[c],g=p(f);if("object"!==g){var h=t[e];return new Error("Invalid "+h+" `"+c+"` of type "+("`"+g+"` supplied to `"+d+"`, expected an object."))}for(var i in f)if(f.hasOwnProperty(i)){var j=a(f,i,d,e);if(j instanceof Error)return j}return null}return d(b)}function l(a){function b(b,c,d,e){for(var f=0;f<a.length;f++){var g=a[f];if(null==g(b,c,d,e))return null}var h=t[e];return new Error("Invalid "+h+" `"+c+"` supplied to "+("`"+d+"`."))}return d(b)}function m(){function a(a,b,c,d){if(!o(a[b])){var e=t[d];return new Error("Invalid "+e+" `"+b+"` supplied to "+("`"+c+"`, expected a ReactNode."))}return null}return d(a)}function n(a){function b(b,c,d,e){var f=b[c],g=p(f);if("object"!==g){var h=t[e];return new Error("Invalid "+h+" `"+c+"` of type `"+g+"` "+("supplied to `"+d+"`, expected `object`."))}for(var i in a){var j=a[i];if(j){var k=j(f,i,d,e);if(k)return k}}return null}return d(b)}function o(a){switch(typeof a){case"number":case"string":case"undefined":return!0;case"boolean":return!a;case"object":if(Array.isArray(a))return a.every(o);if(null===a||r.isValidElement(a))return!0;a=s.extractIfFragment(a);for(var b in a)if(!o(a[b]))return!1;return!0;default:return!1}}function p(a){var b=typeof a;return Array.isArray(a)?"array":a instanceof RegExp?"object":b}function q(a){var b=p(a);if("object"===b){if(a instanceof Date)return"date";if(a instanceof RegExp)return"regexp"}return b}var r=(this||self,a("16")),s=a("10"),t=a("92"),u=a("30"),v="<<anonymous>>",w=h(),x=m(),y={array:e("array"),bool:e("boolean"),func:e("function"),number:e("number"),object:e("object"),string:e("string"),any:f(),arrayOf:g,element:w,instanceOf:i,node:x,objectOf:k,oneOf:j,oneOfType:l,shape:n};c.exports=y}),a.registerDynamic("75",["f","3b","19"],!0,function(a,b,c){"use strict";function d(){this.listenersToPut=[]}var e=(this||self,a("f")),f=a("3b"),g=a("19");g(d.prototype,{enqueuePutListener:function(a,b,c){this.listenersToPut.push({rootNodeID:a,propKey:b,propValue:c})},putListeners:function(){for(var a=0;a<this.listenersToPut.length;a++){var b=this.listenersToPut[a];f.putListener(b.rootNodeID,b.propKey,b.propValue)}},reset:function(){this.listenersToPut.length=0},destructor:function(){this.reset()}}),e.addPoolingTo(d),c.exports=d}),a.registerDynamic("99",["f","73","75","32","19","30"],!0,function(a,b,c){"use strict";function d(a){this.reinitializeTransaction(),this.renderToStaticMarkup=a,this.reactMountReady=f.getPooled(null),this.putListenerQueue=g.getPooled()}var e=(this||self,a("f")),f=a("73"),g=a("75"),h=a("32"),i=a("19"),j=a("30"),k={initialize:function(){this.reactMountReady.reset()},close:j},l={initialize:function(){this.putListenerQueue.reset()},close:j},m=[l,k],n={getTransactionWrappers:function(){return m},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){f.release(this.reactMountReady),this.reactMountReady=null,g.release(this.putListenerQueue),this.putListenerQueue=null}};i(d.prototype,h.Mixin,n),e.addPoolingTo(d),c.exports=d}),a.registerDynamic("9a",["16","50","9b","99","9c","6a","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){l(f.isValidElement(a));var b;try{var c=g.createReactRootID();return b=i.getPooled(!1),b.perform(function(){var d=k(a,null),e=d.mountComponent(c,b,j);return h.addChecksumToMarkup(e)},null)}finally{i.release(b)}}function e(a){l(f.isValidElement(a));var b;try{var c=g.createReactRootID();return b=i.getPooled(!0),b.perform(function(){var d=k(a,null);return d.mountComponent(c,b,j)},null)}finally{i.release(b)}}var f=a("16"),g=a("50"),h=a("9b"),i=a("99"),j=a("9c"),k=a("6a"),l=a("3e");c.exports={renderToString:d,renderToStaticMarkup:e}}(a("13"))}),a.registerDynamic("2e",["3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b){return(a&b)===b}var e=a("3e"),f={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(a){var b=a.Properties||{},c=a.DOMAttributeNames||{},g=a.DOMPropertyNames||{},i=a.DOMMutationMethods||{};a.isCustomAttribute&&h._isCustomAttributeFunctions.push(a.isCustomAttribute);for(var j in b){e(!h.isStandardName.hasOwnProperty(j)),h.isStandardName[j]=!0;var k=j.toLowerCase();if(h.getPossibleStandardName[k]=j,c.hasOwnProperty(j)){var l=c[j];h.getPossibleStandardName[l]=j,h.getAttributeName[j]=l}else h.getAttributeName[j]=k;h.getPropertyName[j]=g.hasOwnProperty(j)?g[j]:j,i.hasOwnProperty(j)?h.getMutationMethod[j]=i[j]:h.getMutationMethod[j]=null;var m=b[j];h.mustUseAttribute[j]=d(m,f.MUST_USE_ATTRIBUTE),h.mustUseProperty[j]=d(m,f.MUST_USE_PROPERTY),h.hasSideEffects[j]=d(m,f.HAS_SIDE_EFFECTS),h.hasBooleanValue[j]=d(m,f.HAS_BOOLEAN_VALUE),h.hasNumericValue[j]=d(m,f.HAS_NUMERIC_VALUE),h.hasPositiveNumericValue[j]=d(m,f.HAS_POSITIVE_NUMERIC_VALUE),h.hasOverloadedBooleanValue[j]=d(m,f.HAS_OVERLOADED_BOOLEAN_VALUE),e(!h.mustUseAttribute[j]||!h.mustUseProperty[j]),e(h.mustUseProperty[j]||!h.hasSideEffects[j]),e(!!h.hasBooleanValue[j]+!!h.hasNumericValue[j]+!!h.hasOverloadedBooleanValue[j]<=1)}}},g={},h={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(a){for(var b=0;b<h._isCustomAttributeFunctions.length;b++){var c=h._isCustomAttributeFunctions[b];if(c(a))return!0}return!1},getDefaultValueForProperty:function(a,b){var c,d=g[a];return d||(g[a]=d={}),b in d||(c=document.createElement(a),d[b]=c[b]),d[b]},injection:f};c.exports=h}(a("13"))}),a.registerDynamic("9d",["3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(){if(h)for(var a in i){var b=i[a],c=h.indexOf(a);if(g(c>-1),!j.plugins[c]){g(b.extractEvents),j.plugins[c]=b;var d=b.eventTypes;for(var f in d)g(e(d[f],b,f))}}}function e(a,b,c){g(!j.eventNameDispatchConfigs.hasOwnProperty(c)),j.eventNameDispatchConfigs[c]=a;var d=a.phasedRegistrationNames;if(d){for(var e in d)if(d.hasOwnProperty(e)){var h=d[e];f(h,b,c)}return!0}return!!a.registrationName&&(f(a.registrationName,b,c),!0)}function f(a,b,c){g(!j.registrationNameModules[a]),j.registrationNameModules[a]=b,j.registrationNameDependencies[a]=b.eventTypes[c].dependencies}var g=a("3e"),h=null,i={},j={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(a){g(!h),h=Array.prototype.slice.call(a),d()},injectEventPluginsByName:function(a){var b=!1;for(var c in a)if(a.hasOwnProperty(c)){var e=a[c];i.hasOwnProperty(c)&&i[c]===e||(g(!i[c]),i[c]=e,b=!0)}b&&d()},getPluginModuleForEvent:function(a){var b=a.dispatchConfig;if(b.registrationName)return j.registrationNameModules[b.registrationName]||null;for(var c in b.phasedRegistrationNames)if(b.phasedRegistrationNames.hasOwnProperty(c)){var d=j.registrationNameModules[b.phasedRegistrationNames[c]];if(d)return d}return null},_resetEventPlugins:function(){h=null;for(var a in i)i.hasOwnProperty(a)&&delete i[a];j.plugins.length=0;var b=j.eventNameDispatchConfigs;for(var c in b)b.hasOwnProperty(c)&&delete b[c];var d=j.registrationNameModules;for(var e in d)d.hasOwnProperty(e)&&delete d[e]}};c.exports=j}(a("13"))}),a.registerDynamic("1f",["37"],!0,function(a,b,c){"use strict";var d=(this||self,a("37")),e=d({bubbled:null,captured:null}),f=d({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),g={topLevelTypes:f,PropagationPhases:e};c.exports=g}),a.registerDynamic("89",["1f","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return a===q.topMouseUp||a===q.topTouchEnd||a===q.topTouchCancel}function e(a){return a===q.topMouseMove||a===q.topTouchMove}function f(a){return a===q.topMouseDown||a===q.topTouchStart}function g(a,b){var c=a._dispatchListeners,d=a._dispatchIDs;if(Array.isArray(c))for(var e=0;e<c.length&&!a.isPropagationStopped();e++)b(a,c[e],d[e]);else c&&b(a,c,d)}function h(a,b,c){a.currentTarget=p.Mount.getNode(c);var d=b(a,c);return a.currentTarget=null,d}function i(a,b){g(a,b),a._dispatchListeners=null,a._dispatchIDs=null}function j(a){var b=a._dispatchListeners,c=a._dispatchIDs;if(Array.isArray(b)){for(var d=0;d<b.length&&!a.isPropagationStopped();d++)if(b[d](a,c[d]))return c[d]}else if(b&&b(a,c))return c;return null}function k(a){var b=j(a);return a._dispatchIDs=null,a._dispatchListeners=null,b}function l(a){var b=a._dispatchListeners,c=a._dispatchIDs;o(!Array.isArray(b));var d=b?b(a,c):null;return a._dispatchListeners=null,a._dispatchIDs=null,d}function m(a){return!!a._dispatchListeners}var n=a("1f"),o=a("3e"),p={Mount:null,injectMount:function(a){p.Mount=a}},q=n.topLevelTypes,r={isEndish:d,isMoveish:e,isStartish:f,executeDirectDispatch:l,executeDispatch:h,executeDispatchesInOrder:i,executeDispatchesInOrderStopAtTrue:k,hasDispatches:m,injection:p,useTouchEvents:!1};c.exports=r}(a("13"))}),a.registerDynamic("3c",["3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b){if(e(null!=b),null==a)return b;var c=Array.isArray(a),d=Array.isArray(b);return c&&d?(a.push.apply(a,b),a):c?(a.push(b),a):d?[a].concat(b):[a,b]}var e=a("3e");c.exports=d}(a("13"))}),a.registerDynamic("3d",[],!0,function(a,b,c){"use strict";var d=(this||self,function(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)});c.exports=d}),a.registerDynamic("24",["9d","89","3c","3d","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("9d"),e=a("89"),f=a("3c"),g=a("3d"),h=a("3e"),i={},j=null,k=function(a){if(a){var b=e.executeDispatch,c=d.getPluginModuleForEvent(a);c&&c.executeDispatch&&(b=c.executeDispatch),e.executeDispatchesInOrder(a,b),a.isPersistent()||a.constructor.release(a)}},l=null,m={injection:{injectMount:e.injection.injectMount,injectInstanceHandle:function(a){l=a},getInstanceHandle:function(){return l},injectEventPluginOrder:d.injectEventPluginOrder,injectEventPluginsByName:d.injectEventPluginsByName},eventNameDispatchConfigs:d.eventNameDispatchConfigs,registrationNameModules:d.registrationNameModules,putListener:function(a,b,c){h(!c||"function"==typeof c);var d=i[b]||(i[b]={});d[a]=c},getListener:function(a,b){var c=i[b];return c&&c[a]},deleteListener:function(a,b){var c=i[b];c&&delete c[a]},deleteAllListeners:function(a){for(var b in i)delete i[b][a]},extractEvents:function(a,b,c,e){for(var g,h=d.plugins,i=0,j=h.length;i<j;i++){var k=h[i];if(k){var l=k.extractEvents(a,b,c,e);l&&(g=f(g,l))}}return g},enqueueEvents:function(a){a&&(j=f(j,a))},processEventQueue:function(){var a=j;j=null,g(a,k),h(!j)},__purge:function(){i={}},__getListenerBank:function(){return i}};c.exports=m}(a("13"))}),a.registerDynamic("9e",["24"],!0,function(a,b,c){"use strict";function d(a){e.enqueueEvents(a),e.processEventQueue()}var e=(this||self,a("24")),f={handleTopLevel:function(a,b,c,f){var g=e.extractEvents(a,b,c,f);d(g)}};c.exports=f}),a.registerDynamic("86",[],!0,function(a,b,c){"use strict";var d=(this||self,{currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(a){d.currentScrollLeft=a.x,d.currentScrollTop=a.y}});c.exports=d}),a.registerDynamic("26",["21"],!0,function(a,b,c){"use strict";function d(a,b){if(!f.canUseDOM||b&&!("addEventListener"in document))return!1;var c="on"+a,d=c in document;if(!d){var g=document.createElement("div");g.setAttribute(c,"return;"),d="function"==typeof g[c]}return!d&&e&&"wheel"===a&&(d=document.implementation.hasFeature("Events.wheel","3.0")),d}var e,f=(this||self,a("21"));f.canUseDOM&&(e=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),c.exports=d}),a.registerDynamic("3b",["1f","24","9d","9e","86","19","26","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return Object.prototype.hasOwnProperty.call(a,p)||(a[p]=n++,l[a[p]]={}),l[a[p]]}var e=a("1f"),f=a("24"),g=a("9d"),h=a("9e"),i=a("86"),j=a("19"),k=a("26"),l={},m=!1,n=0,o={topBlur:"blur",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topWheel:"wheel"},p="_reactListenersID"+String(Math.random()).slice(2),q=j({},h,{ReactEventListener:null,injection:{injectReactEventListener:function(a){a.setHandleTopLevel(q.handleTopLevel),q.ReactEventListener=a}},setEnabled:function(a){q.ReactEventListener&&q.ReactEventListener.setEnabled(a)},isEnabled:function(){return!(!q.ReactEventListener||!q.ReactEventListener.isEnabled())},listenTo:function(a,b){for(var c=b,f=d(c),h=g.registrationNameDependencies[a],i=e.topLevelTypes,j=0,l=h.length;j<l;j++){var m=h[j];f.hasOwnProperty(m)&&f[m]||(m===i.topWheel?k("wheel")?q.ReactEventListener.trapBubbledEvent(i.topWheel,"wheel",c):k("mousewheel")?q.ReactEventListener.trapBubbledEvent(i.topWheel,"mousewheel",c):q.ReactEventListener.trapBubbledEvent(i.topWheel,"DOMMouseScroll",c):m===i.topScroll?k("scroll",!0)?q.ReactEventListener.trapCapturedEvent(i.topScroll,"scroll",c):q.ReactEventListener.trapBubbledEvent(i.topScroll,"scroll",q.ReactEventListener.WINDOW_HANDLE):m===i.topFocus||m===i.topBlur?(k("focus",!0)?(q.ReactEventListener.trapCapturedEvent(i.topFocus,"focus",c),q.ReactEventListener.trapCapturedEvent(i.topBlur,"blur",c)):k("focusin")&&(q.ReactEventListener.trapBubbledEvent(i.topFocus,"focusin",c),q.ReactEventListener.trapBubbledEvent(i.topBlur,"focusout",c)),f[i.topBlur]=!0,f[i.topFocus]=!0):o.hasOwnProperty(m)&&q.ReactEventListener.trapBubbledEvent(m,o[m],c),f[m]=!0)}},trapBubbledEvent:function(a,b,c){return q.ReactEventListener.trapBubbledEvent(a,b,c)},trapCapturedEvent:function(a,b,c){return q.ReactEventListener.trapCapturedEvent(a,b,c)},ensureScrollValueMonitoring:function(){if(!m){var a=i.refreshScrollValues;q.ReactEventListener.monitorScrollValue(a),m=!0}},eventNameDispatchConfigs:f.eventNameDispatchConfigs,registrationNameModules:f.registrationNameModules,putListener:f.putListener,getListener:f.getListener,deleteListener:f.deleteListener,deleteAllListeners:f.deleteAllListeners});c.exports=q}(a("13"))}),a.registerDynamic("71",[],!0,function(a,b,c){"use strict";var d=(this||self,{injectCreateReactRootIndex:function(a){e.createReactRootIndex=a}}),e={createReactRootIndex:null,injection:d};c.exports=e}),a.registerDynamic("50",["71","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return n+a.toString(36)}function e(a,b){return a.charAt(b)===n||b===a.length}function f(a){return""===a||a.charAt(0)===n&&a.charAt(a.length-1)!==n}function g(a,b){return 0===b.indexOf(a)&&e(b,a.length)}function h(a){return a?a.substr(0,a.lastIndexOf(n)):""}function i(a,b){if(m(f(a)&&f(b)),m(g(a,b)),a===b)return a;var c,d=a.length+o;for(c=d;c<b.length&&!e(b,c);c++);return b.substr(0,c)}function j(a,b){var c=Math.min(a.length,b.length);if(0===c)return"";for(var d=0,g=0;g<=c;g++)if(e(a,g)&&e(b,g))d=g;else if(a.charAt(g)!==b.charAt(g))break;var h=a.substr(0,d);return m(f(h)),h}function k(a,b,c,d,e,f){a=a||"",b=b||"",m(a!==b);var j=g(b,a);m(j||g(a,b));for(var k=0,l=j?h:i,n=a;;n=l(n,b)){var o;if(e&&n===a||f&&n===b||(o=c(n,j,d)),o===!1||n===b)break;m(k++<p)}}var l=a("71"),m=a("3e"),n=".",o=n.length,p=100,q={createReactRootID:function(){return d(l.createReactRootIndex())},createReactID:function(a,b){return a+b},getReactRootIDFromNodeID:function(a){if(a&&a.charAt(0)===n&&a.length>1){var b=a.indexOf(n,1);return b>-1?a.substr(0,b):a}return null},traverseEnterLeave:function(a,b,c,d,e){var f=j(a,b);f!==a&&k(a,f,c,d,!1,!0),f!==b&&k(f,b,c,e,!0,!1)},traverseTwoPhase:function(a,b,c){a&&(k("",a,b,c,!0,!1),k(a,"",b,c,!1,!0))},traverseAncestors:function(a,b,c){k("",a,b,c,!0,!1)},_getFirstCommonAncestorID:j,_getNextDescendantID:i,isAncestorIDOf:g,SEPARATOR:n};c.exports=q}(a("13"))}),a.registerDynamic("9f",[],!0,function(a,b,c){"use strict";function d(a){for(var b=1,c=0,d=0;d<a.length;d++)b=(b+a.charCodeAt(d))%e,c=(c+b)%e;return b|c<<16}var e=(this||self,65521);c.exports=d}),a.registerDynamic("9b",["9f"],!0,function(a,b,c){"use strict";var d=(this||self,a("9f")),e={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(a){var b=d(a);return a.replace(">"," "+e.CHECKSUM_ATTR_NAME+'="'+b+'">')},canReuseMarkup:function(a,b){var c=b.getAttribute(e.CHECKSUM_ATTR_NAME);c=c&&parseInt(c,10);var f=d(a);return f===c}};c.exports=e}),a.registerDynamic("8c",["90","8e","16","8f","25","19","3e","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){a!==f.currentlyMountingInstance&&j.enqueueUpdate(a)}function e(a,b){l(null==g.current);var c=i.get(a);return c?c===f.currentlyUnmountingInstance?null:c:null}var f=a("90"),g=a("8e"),h=a("16"),i=a("8f"),j=a("25"),k=a("19"),l=a("3e"),m=(a("12"),{enqueueCallback:function(a,b){l("function"==typeof b);var c=e(a);return c&&c!==f.currentlyMountingInstance?(c._pendingCallbacks?c._pendingCallbacks.push(b):c._pendingCallbacks=[b],void d(c)):null},enqueueCallbackInternal:function(a,b){l("function"==typeof b),a._pendingCallbacks?a._pendingCallbacks.push(b):a._pendingCallbacks=[b],d(a)},enqueueForceUpdate:function(a){var b=e(a,"forceUpdate");b&&(b._pendingForceUpdate=!0,d(b))},enqueueReplaceState:function(a,b){var c=e(a,"replaceState");c&&(c._pendingStateQueue=[b],c._pendingReplaceState=!0,d(c))},enqueueSetState:function(a,b){var c=e(a,"setState");if(c){var f=c._pendingStateQueue||(c._pendingStateQueue=[]);f.push(b),d(c)}},enqueueSetProps:function(a,b){var c=e(a,"setProps");if(c){l(c._isTopLevel);var f=c._pendingElement||c._currentElement,g=k({},f.props,b);c._pendingElement=h.cloneAndReplaceProps(f,g),d(c)}},enqueueReplaceProps:function(a,b){var c=e(a,"replaceProps");if(c){l(c._isTopLevel);var f=c._pendingElement||c._currentElement;c._pendingElement=h.cloneAndReplaceProps(f,b),d(c)}},enqueueElementInternal:function(a,b){a._pendingElement=b,d(a)}});c.exports=m}(a("13"))}),a.registerDynamic("a0",["a1"],!0,function(a,b,c){function d(a){return e(a)&&3==a.nodeType}var e=(this||self,a("a1"));c.exports=d}),a.registerDynamic("78",["a0"],!0,function(a,b,c){function d(a,b){return!(!a||!b)&&(a===b||!e(a)&&(e(b)?d(a,b.parentNode):a.contains?a.contains(b):!!a.compareDocumentPosition&&!!(16&a.compareDocumentPosition(b))))}var e=(this||self,a("a0"));c.exports=d}),a.registerDynamic("a2",[],!0,function(a,b,c){"use strict";function d(a){return a?a.nodeType===e?a.documentElement:a.firstChild:null}var e=(this||self,9);c.exports=d}),a.registerDynamic("6d",["3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("3e"),e=!1,f={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(a){d(!e),f.unmountIDFromEnvironment=a.unmountIDFromEnvironment,f.replaceNodeWithMarkupByID=a.replaceNodeWithMarkupByID,f.processChildrenUpdates=a.processChildrenUpdates,e=!0}}};c.exports=f}(a("13"))}),a.registerDynamic("90",["13"],!0,function(a,b,c){this||self;!function(a){"use strict";var b={currentlyMountingInstance:null,currentlyUnmountingInstance:null};c.exports=b}(a("13"))}),a.registerDynamic("73",["f","19","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(){this._callbacks=null,this._contexts=null}var e=a("f"),f=a("19"),g=a("3e");f(d.prototype,{enqueue:function(a,b){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(a),this._contexts.push(b)},notifyAll:function(){var a=this._callbacks,b=this._contexts;if(a){g(a.length===b.length),this._callbacks=null,this._contexts=null;for(var c=0,d=a.length;c<d;c++)a[c].call(b[c]);a.length=0,b.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),e.addPoolingTo(d),c.exports=d}(a("13"))}),a.registerDynamic("f",["3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("3e"),e=function(a){var b=this;if(b.instancePool.length){var c=b.instancePool.pop();return b.call(c,a),c}return new b(a)},f=function(a,b){var c=this;if(c.instancePool.length){var d=c.instancePool.pop();return c.call(d,a,b),d}return new c(a,b)},g=function(a,b,c){var d=this;if(d.instancePool.length){var e=d.instancePool.pop();return d.call(e,a,b,c),e}return new d(a,b,c)},h=function(a,b,c,d,e){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,a,b,c,d,e),g}return new f(a,b,c,d,e)},i=function(a){var b=this;d(a instanceof b),a.destructor&&a.destructor(),b.instancePool.length<b.poolSize&&b.instancePool.push(a)},j=10,k=e,l=function(a,b){var c=a;return c.instancePool=[],c.getPooled=b||k,c.poolSize||(c.poolSize=j),c.release=i,c},m={addPoolingTo:l,oneArgumentPooler:e,twoArgumentPooler:f,threeArgumentPooler:g,fiveArgumentPooler:h};c.exports=m}(a("13"))}),a.registerDynamic("65",["13"],!0,function(a,b,c){this||self;!function(a){"use strict";function b(a,b,c){return c}var d={enableMeasure:!1,storedMeasure:b,measureMethods:function(a,b,c){},measure:function(a,b,c){return c},injection:{injectMeasure:function(a){d.storedMeasure=a}}};c.exports=d}(a("13"))}),a.registerDynamic("a3",["3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("3e"),e={isValidOwner:function(a){return!(!a||"function"!=typeof a.attachRef||"function"!=typeof a.detachRef)},addComponentAsRefTo:function(a,b,c){d(e.isValidOwner(c)),c.attachRef(b,a)},removeComponentAsRefFrom:function(a,b,c){d(e.isValidOwner(c)),c.getPublicInstance().refs[b]===a.getPublicInstance()&&c.detachRef(b)}};c.exports=e}(a("13"))}),a.registerDynamic("a4",["a3","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b,c){"function"==typeof a?a(b.getPublicInstance()):f.addComponentAsRefTo(b,a,c)}function e(a,b,c){"function"==typeof a?a(null):f.removeComponentAsRefFrom(b,a,c)}var f=a("a3"),g={};g.attachRefs=function(a,b){var c=b.ref;null!=c&&d(c,a,b._owner)},g.shouldUpdateRefs=function(a,b){return b._owner!==a._owner||b.ref!==a.ref},g.detachRefs=function(a,b){var c=b.ref;null!=c&&e(c,a,b._owner)},c.exports=g}(a("13"))}),a.registerDynamic("10",["16","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=(a("16"),a("12"),{create:function(a){return a},extract:function(a){return a},extractIfFragment:function(a){return a}});c.exports=d}(a("13"))}),a.registerDynamic("37",["3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("3e"),e=function(a){var b,c={};d(a instanceof Object&&!Array.isArray(a));for(b in a)a.hasOwnProperty(b)&&(c[b]=b);return c};c.exports=e}(a("13"))}),a.registerDynamic("91",["37"],!0,function(a,b,c){"use strict";var d=(this||self,a("37")),e=d({prop:null,context:null,childContext:null});c.exports=e}),a.registerDynamic("92",["13"],!0,function(a,b,c){this||self;!function(a){"use strict";var b={};c.exports=b}(a("13"))}),a.registerDynamic("66",[],!0,function(a,b,c){"use strict";function d(a){var b=a&&(e&&a[e]||a[f]);if("function"==typeof b)return b}var e=(this||self,"function"==typeof Symbol&&Symbol.iterator),f="@@iterator";c.exports=d}),a.registerDynamic("17",["16","10","91","92","8e","70","66","3e","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(){if(s.current){var a=s.current.getName();if(a)return" Check the render method of `"+a+"`."}return""}function e(a){var b=a&&a.getPublicInstance();if(b){var c=b.constructor;if(c)return c.displayName||c.name||void 0}}function f(){var a=s.current;return a&&e(a)||void 0}function g(a,b){a._store.validated||null!=a.key||(a._store.validated=!0,i('Each child in an array or iterator should have a unique "key" prop.',a,b))}function h(a,b,c){y.test(a)&&i("Child objects should have non-numeric keys so ordering is preserved.",b,c)}function i(a,b,c){var d=f(),g="string"==typeof c?c:c.displayName||c.name,h=d||g,i=w[a]||(w[a]={});if(!i.hasOwnProperty(h)){i[h]=!0;var j="";if(b&&b._owner&&b._owner!==s.current){var k=e(b._owner);j=" It was passed a child from "+k+"."}}}function j(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];p.isValidElement(d)&&g(d,b)}else if(p.isValidElement(a))a._store.validated=!0;else if(a){var e=u(a);if(e){if(e!==a.entries)for(var f,i=e.call(a);!(f=i.next()).done;)p.isValidElement(f.value)&&g(f.value,b)}else if("object"==typeof a){var j=q.extractIfFragment(a);for(var k in j)j.hasOwnProperty(k)&&h(k,j[k],b)}}}function k(a,b,c,e){for(var f in b)if(b.hasOwnProperty(f)){var g;try{v("function"==typeof b[f]),g=b[f](c,f,a,e)}catch(a){g=a}if(g instanceof Error&&!(g.message in x)){x[g.message]=!0;d(this)}}}function l(a,b){var c=b.type,d="string"==typeof c?c:c.displayName,e=b._owner?b._owner.getPublicInstance().constructor.displayName:null,f=a+"|"+d+"|"+e;if(!z.hasOwnProperty(f)){z[f]=!0;var g="";d&&(g=" <"+d+" />");var h="";e&&(h=" The element was created by "+e+".")}}function m(a,b){return a!==a?b!==b:0===a&&0===b?1/a===1/b:a===b}function n(a){if(a._store){var b=a._store.originalProps,c=a.props;for(var d in c)c.hasOwnProperty(d)&&(b.hasOwnProperty(d)&&m(b[d],c[d])||(l(d,a),b[d]=c[d]))}}function o(a){if(null!=a.type){var b=t.getComponentClassForElement(a),c=b.displayName||b.name;b.propTypes&&k(c,b.propTypes,a.props,r.prop),"function"==typeof b.getDefaultProps}}var p=a("16"),q=a("10"),r=a("91"),s=(a("92"),a("8e")),t=a("70"),u=a("66"),v=a("3e"),w=(a("12"),{}),x={},y=/^\d+$/,z={},A={checkAndWarnForMutatedProps:n,createElement:function(a,b,c){var d=p.createElement.apply(this,arguments);if(null==d)return d;for(var e=2;e<arguments.length;e++)j(arguments[e],a);return o(d),d},createFactory:function(a){var b=A.createElement.bind(null,a);return b.type=a,b},cloneElement:function(a,b,c){for(var d=p.cloneElement.apply(this,arguments),e=2;e<arguments.length;e++)j(arguments[e],d.type);return o(d),d}};c.exports=A}(a("13"))}),a.registerDynamic("69",["a4","17","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(){e.attachRefs(this,this._currentElement)}var e=a("a4"),f=(a("17"),{mountComponent:function(a,b,c,e){var f=a.mountComponent(b,c,e);return c.getReactMountReady().enqueue(d,a),f},unmountComponent:function(a){e.detachRefs(a,a._currentElement),a.unmountComponent()},receiveComponent:function(a,b,c,f){var g=a._currentElement;if(b!==g||null==b._owner){var h=e.shouldUpdateRefs(g,b);h&&e.detachRefs(a,g),a.receiveComponent(b,c,f),h&&c.getReactMountReady().enqueue(d,a)}},performUpdateIfNecessary:function(a,b){a.performUpdateIfNecessary(b)}});c.exports=f}(a("13"))}),a.registerDynamic("32",["3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("3e"),e={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(a,b,c,e,f,g,h,i){d(!this.isInTransaction());var j,k;try{this._isInTransaction=!0,j=!0,this.initializeAll(0),k=a.call(b,c,e,f,g,h,i),j=!1}finally{try{if(j)try{this.closeAll(0)}catch(a){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return k},initializeAll:function(a){for(var b=this.transactionWrappers,c=a;c<b.length;c++){var d=b[c];try{this.wrapperInitData[c]=f.OBSERVED_ERROR,this.wrapperInitData[c]=d.initialize?d.initialize.call(this):null}finally{if(this.wrapperInitData[c]===f.OBSERVED_ERROR)try{this.initializeAll(c+1)}catch(a){}}}},closeAll:function(a){d(this.isInTransaction());for(var b=this.transactionWrappers,c=a;c<b.length;c++){var e,g=b[c],h=this.wrapperInitData[c];
10
- try{e=!0,h!==f.OBSERVED_ERROR&&g.close&&g.close.call(this,h),e=!1}finally{if(e)try{this.closeAll(c+1)}catch(a){}}}this.wrapperInitData.length=0}},f={Mixin:e,OBSERVED_ERROR:{}};c.exports=f}(a("13"))}),a.registerDynamic("25",["73","f","8e","65","69","32","19","3e","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(){q(A.ReactReconcileTransaction&&u)}function e(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=k.getPooled(),this.reconcileTransaction=A.ReactReconcileTransaction.getPooled()}function f(a,b,c,e,f){d(),u.batchedUpdates(a,b,c,e,f)}function g(a,b){return a._mountOrder-b._mountOrder}function h(a){var b=a.dirtyComponentsLength;q(b===r.length),r.sort(g);for(var c=0;c<b;c++){var d=r[c],e=d._pendingCallbacks;if(d._pendingCallbacks=null,n.performUpdateIfNecessary(d,a.reconcileTransaction),e)for(var f=0;f<e.length;f++)a.callbackQueue.enqueue(e[f],d.getPublicInstance())}}function i(a){return d(),u.isBatchingUpdates?void r.push(a):void u.batchedUpdates(i,a)}function j(a,b){q(u.isBatchingUpdates),s.enqueue(a,b),t=!0}var k=a("73"),l=a("f"),m=(a("8e"),a("65")),n=a("69"),o=a("32"),p=a("19"),q=a("3e"),r=(a("12"),[]),s=k.getPooled(),t=!1,u=null,v={initialize:function(){this.dirtyComponentsLength=r.length},close:function(){this.dirtyComponentsLength!==r.length?(r.splice(0,this.dirtyComponentsLength),y()):r.length=0}},w={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},x=[v,w];p(e.prototype,o.Mixin,{getTransactionWrappers:function(){return x},destructor:function(){this.dirtyComponentsLength=null,k.release(this.callbackQueue),this.callbackQueue=null,A.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(a,b,c){return o.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,a,b,c)}}),l.addPoolingTo(e);var y=function(){for(;r.length||t;){if(r.length){var a=e.getPooled();a.perform(h,null,a),e.release(a)}if(t){t=!1;var b=s;s=k.getPooled(),b.notifyAll(),k.release(b)}}};y=m.measure("ReactUpdates","flushBatchedUpdates",y);var z={injectReconcileTransaction:function(a){q(a),A.ReactReconcileTransaction=a},injectBatchingStrategy:function(a){q(a),q("function"==typeof a.batchedUpdates),q("boolean"==typeof a.isBatchingUpdates),u=a}},A={ReactReconcileTransaction:null,batchedUpdates:f,enqueueUpdate:i,flushBatchedUpdates:y,injection:z,asap:j};c.exports=A}(a("13"))}),a.registerDynamic("a5",["6d","a6","8e","16","17","8f","90","70","65","91","92","69","25","19","9c","3e","6b","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){var b=a._currentElement._owner||null;if(b){var c=b.getName();if(c)return" Check the render method of `"+c+"`."}return""}var e=a("6d"),f=a("a6"),g=a("8e"),h=a("16"),i=(a("17"),a("8f")),j=a("90"),k=a("70"),l=a("65"),m=a("91"),n=(a("92"),a("69")),o=a("25"),p=a("19"),q=a("9c"),r=a("3e"),s=a("6b"),t=(a("12"),1),u={construct:function(a){this._currentElement=a,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(a,b,c){this._context=c,this._mountOrder=t++,this._rootNodeID=a;var d=this._processProps(this._currentElement.props),e=this._processContext(this._currentElement._context),f=k.getComponentClassForElement(this._currentElement),g=new f(d,e);g.props=d,g.context=e,g.refs=q,this._instance=g,i.set(g,this);var h=g.state;void 0===h&&(g.state=h=null),r("object"==typeof h&&!Array.isArray(h)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var l,m,o=j.currentlyMountingInstance;j.currentlyMountingInstance=this;try{g.componentWillMount&&(g.componentWillMount(),this._pendingStateQueue&&(g.state=this._processPendingState(g.props,g.context))),l=this._getValidatedChildContext(c),m=this._renderValidatedComponent(l)}finally{j.currentlyMountingInstance=o}this._renderedComponent=this._instantiateReactComponent(m,this._currentElement.type);var p=n.mountComponent(this._renderedComponent,a,b,this._mergeChildContext(c,l));return g.componentDidMount&&b.getReactMountReady().enqueue(g.componentDidMount,g),p},unmountComponent:function(){var a=this._instance;if(a.componentWillUnmount){var b=j.currentlyUnmountingInstance;j.currentlyUnmountingInstance=this;try{a.componentWillUnmount()}finally{j.currentlyUnmountingInstance=b}}n.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,i.remove(a)},_setPropsInternal:function(a,b){var c=this._pendingElement||this._currentElement;this._pendingElement=h.cloneAndReplaceProps(c,p({},c.props,a)),o.enqueueUpdate(this,b)},_maskContext:function(a){var b=null;if("string"==typeof this._currentElement.type)return q;var c=this._currentElement.type.contextTypes;if(!c)return q;b={};for(var d in c)b[d]=a[d];return b},_processContext:function(a){var b=this._maskContext(a);return b},_getValidatedChildContext:function(a){var b=this._instance,c=b.getChildContext&&b.getChildContext();if(c){r("object"==typeof b.constructor.childContextTypes);for(var d in c)r(d in b.constructor.childContextTypes);return c}return null},_mergeChildContext:function(a,b){return b?p({},a,b):a},_processProps:function(a){return a},_checkPropTypes:function(a,b,c){var e=this.getName();for(var f in a)if(a.hasOwnProperty(f)){var g;try{r("function"==typeof a[f]),g=a[f](b,f,e,c)}catch(a){g=a}if(g instanceof Error){d(this);c===m.prop}}},receiveComponent:function(a,b,c){var d=this._currentElement,e=this._context;this._pendingElement=null,this.updateComponent(b,d,a,e,c)},performUpdateIfNecessary:function(a){null!=this._pendingElement&&n.receiveComponent(this,this._pendingElement||this._currentElement,a,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(a,this._currentElement,this._currentElement,this._context,this._context)},_warnIfContextsDiffer:function(a,b){a=this._maskContext(a),b=this._maskContext(b);for(var c=Object.keys(b).sort(),d=(this.getName()||"ReactCompositeComponent",0);d<c.length;d++){c[d]}},updateComponent:function(a,b,c,d,e){var f=this._instance,g=f.context,h=f.props;b!==c&&(g=this._processContext(c._context),h=this._processProps(c.props),f.componentWillReceiveProps&&f.componentWillReceiveProps(h,g));var i=this._processPendingState(h,g),j=this._pendingForceUpdate||!f.shouldComponentUpdate||f.shouldComponentUpdate(h,i,g);j?(this._pendingForceUpdate=!1,this._performComponentUpdate(c,h,i,g,a,e)):(this._currentElement=c,this._context=e,f.props=h,f.state=i,f.context=g)},_processPendingState:function(a,b){var c=this._instance,d=this._pendingStateQueue,e=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!d)return c.state;if(e&&1===d.length)return d[0];for(var f=p({},e?d[0]:c.state),g=e?1:0;g<d.length;g++){var h=d[g];p(f,"function"==typeof h?h.call(c,f,a,b):h)}return f},_performComponentUpdate:function(a,b,c,d,e,f){var g=this._instance,h=g.props,i=g.state,j=g.context;g.componentWillUpdate&&g.componentWillUpdate(b,c,d),this._currentElement=a,this._context=f,g.props=b,g.state=c,g.context=d,this._updateRenderedComponent(e,f),g.componentDidUpdate&&e.getReactMountReady().enqueue(g.componentDidUpdate.bind(g,h,i,j),g)},_updateRenderedComponent:function(a,b){var c=this._renderedComponent,d=c._currentElement,e=this._getValidatedChildContext(),f=this._renderValidatedComponent(e);if(s(d,f))n.receiveComponent(c,f,a,this._mergeChildContext(b,e));else{var g=this._rootNodeID,h=c._rootNodeID;n.unmountComponent(c),this._renderedComponent=this._instantiateReactComponent(f,this._currentElement.type);var i=n.mountComponent(this._renderedComponent,g,a,this._mergeChildContext(b,e));this._replaceNodeWithMarkupByID(h,i)}},_replaceNodeWithMarkupByID:function(a,b){e.replaceNodeWithMarkupByID(a,b)},_renderValidatedComponentWithoutOwnerOrContext:function(){var a=this._instance,b=a.render();return b},_renderValidatedComponent:function(a){var b,c=f.current;f.current=this._mergeChildContext(this._currentElement._context,a),g.current=this;try{b=this._renderValidatedComponentWithoutOwnerOrContext()}finally{f.current=c,g.current=null}return r(null===b||b===!1||h.isValidElement(b)),b},attachRef:function(a,b){var c=this.getPublicInstance(),d=c.refs===q?c.refs={}:c.refs;d[a]=b.getPublicInstance()},detachRef:function(a){var b=this.getPublicInstance().refs;delete b[a]},getName:function(){var a=this._currentElement.type,b=this._instance&&this._instance.constructor;return a.displayName||b&&b.displayName||a.name||b&&b.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};l.measureMethods(u,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var v={Mixin:u};c.exports=v}(a("13"))}),a.registerDynamic("8f",[],!0,function(a,b,c){"use strict";var d=(this||self,{remove:function(a){a._reactInternalInstance=void 0},get:function(a){return a._reactInternalInstance},has:function(a){return void 0!==a._reactInternalInstance},set:function(a,b){a._reactInternalInstance=b}});c.exports=d}),a.registerDynamic("6f",["16","8f","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){k[a]=!0}function e(a){delete k[a]}function f(a){return!!k[a]}var g,h=a("16"),i=a("8f"),j=a("3e"),k={},l={injectEmptyComponent:function(a){g=h.createFactory(a)}},m=function(){};m.prototype.componentDidMount=function(){var a=i.get(this);a&&d(a._rootNodeID)},m.prototype.componentWillUnmount=function(){var a=i.get(this);a&&e(a._rootNodeID)},m.prototype.render=function(){return j(g),g()};var n=h.createElement(m),o={emptyElement:n,injection:l,isNullComponentID:f};c.exports=o}(a("13"))}),a.registerDynamic("70",["19","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){if("function"==typeof a.type)return a.type;var b=a.type,c=l[b];return null==c&&(l[b]=c=j(b)),c}function e(a){return i(k),new k(a.type,a.props)}function f(a){return new m(a)}function g(a){return a instanceof m}var h=a("19"),i=a("3e"),j=null,k=null,l={},m=null,n={injectGenericComponentClass:function(a){k=a},injectTextComponentClass:function(a){m=a},injectComponentClasses:function(a){h(l,a)},injectAutoWrapper:function(a){j=a}},o={getComponentClassForElement:d,createInternalComponent:e,createInstanceForText:f,isTextComponent:g,injection:n};c.exports=o}(a("13"))}),a.registerDynamic("6a",["a5","6f","70","19","3e","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return"function"==typeof a&&"undefined"!=typeof a.prototype&&"function"==typeof a.prototype.mountComponent&&"function"==typeof a.prototype.receiveComponent}function e(a,b){var c;if(null!==a&&a!==!1||(a=g.emptyElement),"object"==typeof a){var e=a;c=b===e.type&&"string"==typeof e.type?h.createInternalComponent(e):d(e.type)?new e.type(e):new k}else"string"==typeof a||"number"==typeof a?c=h.createInstanceForText(a):j(!1);return c.construct(a),c._mountIndex=0,c._mountImage=null,c}var f=a("a5"),g=a("6f"),h=a("70"),i=a("19"),j=a("3e"),k=(a("12"),function(){});i(k.prototype,f.Mixin,{_instantiateReactComponent:e}),c.exports=e}(a("13"))}),a.registerDynamic("60",["21","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("21"),e=/^[ \r\n\t\f]/,f=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,g=function(a,b){a.innerHTML=b};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(g=function(a,b){MSApp.execUnsafeLocalFunction(function(){a.innerHTML=b})}),d.canUseDOM){var h=document.createElement("div");h.innerHTML=" ",""===h.innerHTML&&(g=function(a,b){if(a.parentNode&&a.parentNode.replaceChild(a,a),e.test(b)||"<"===b[0]&&f.test(b)){a.innerHTML="\ufeff"+b;var c=a.firstChild;1===c.data.length?a.removeChild(c):c.deleteData(0,1)}else a.innerHTML=b})}c.exports=g}(a("13"))}),a.registerDynamic("6b",["12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b){if(null!=a&&null!=b){var c=typeof a,d=typeof b;if("string"===c||"number"===c)return"string"===d||"number"===d;if("object"===d&&a.type===b.type&&a.key===b.key){var e=a._owner===b._owner;return e}}return!1}a("12");c.exports=d}(a("13"))}),a.registerDynamic("2c",["2e","3b","8e","16","17","6f","50","8f","9b","65","69","8c","25","9c","78","a2","6a","3e","60","6b","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b){for(var c=Math.min(a.length,b.length),d=0;d<c;d++)if(a.charAt(d)!==b.charAt(d))return d;return a.length===b.length?-1:c}function e(a){var b=D(a);return b&&R.getID(b)}function f(a){var b=g(a);if(b)if(K.hasOwnProperty(b)){var c=K[b];c!==a&&(F(!k(c,b)),K[b]=a)}else K[b]=a;return b}function g(a){return a&&a.getAttribute&&a.getAttribute(J)||""}function h(a,b){var c=g(a);c!==b&&delete K[c],a.setAttribute(J,b),K[b]=a}function i(a){return K.hasOwnProperty(a)&&k(K[a],a)||(K[a]=R.findReactNodeByID(a)),K[a]}function j(a){var b=v.get(a)._rootNodeID;return t.isNullComponentID(b)?null:(K.hasOwnProperty(b)&&k(K[b],b)||(K[b]=R.findReactNodeByID(b)),K[b])}function k(a,b){if(a){F(g(a)===b);var c=R.findReactContainerForID(b);if(c&&C(c,a))return!0}return!1}function l(a){delete K[a]}function m(a){var b=K[a];return!(!b||!k(b,a))&&void(Q=b)}function n(a){Q=null,u.traverseAncestors(a,m);var b=Q;return Q=null,b}function o(a,b,c,d,e){var f=y.mountComponent(a,b,d,B);a._isTopLevel=!0,R._mountImageIntoNode(f,c,e)}function p(a,b,c,d){var e=A.ReactReconcileTransaction.getPooled();e.perform(o,null,a,b,c,e,d),A.ReactReconcileTransaction.release(e)}var q=a("2e"),r=a("3b"),s=(a("8e"),a("16")),t=(a("17"),a("6f")),u=a("50"),v=a("8f"),w=a("9b"),x=a("65"),y=a("69"),z=a("8c"),A=a("25"),B=a("9c"),C=a("78"),D=a("a2"),E=a("6a"),F=a("3e"),G=a("60"),H=a("6b"),I=(a("12"),u.SEPARATOR),J=q.ID_ATTRIBUTE_NAME,K={},L=1,M=9,N={},O={},P=[],Q=null,R={_instancesByReactRootID:N,scrollMonitor:function(a,b){b()},_updateRootComponent:function(a,b,c,d){return R.scrollMonitor(c,function(){z.enqueueElementInternal(a,b),d&&z.enqueueCallbackInternal(a,d)}),a},_registerComponent:function(a,b){F(b&&(b.nodeType===L||b.nodeType===M)),r.ensureScrollValueMonitoring();var c=R.registerContainer(b);return N[c]=a,c},_renderNewRootComponent:function(a,b,c){var d=E(a,null),e=R._registerComponent(d,b);return A.batchedUpdates(p,d,e,b,c),d},render:function(a,b,c){F(s.isValidElement(a));var d=N[e(b)];if(d){var f=d._currentElement;if(H(f,a))return R._updateRootComponent(d,a,b,c).getPublicInstance();R.unmountComponentAtNode(b)}var g=D(b),h=g&&R.isRenderedByReact(g),i=h&&!d,j=R._renderNewRootComponent(a,b,i).getPublicInstance();return c&&c.call(j),j},constructAndRenderComponent:function(a,b,c){var d=s.createElement(a,b);return R.render(d,c)},constructAndRenderComponentByID:function(a,b,c){var d=document.getElementById(c);return F(d),R.constructAndRenderComponent(a,b,d)},registerContainer:function(a){var b=e(a);return b&&(b=u.getReactRootIDFromNodeID(b)),b||(b=u.createReactRootID()),O[b]=a,b},unmountComponentAtNode:function(a){F(a&&(a.nodeType===L||a.nodeType===M));var b=e(a),c=N[b];return!!c&&(R.unmountComponentFromNode(c,a),delete N[b],delete O[b],!0)},unmountComponentFromNode:function(a,b){for(y.unmountComponent(a),b.nodeType===M&&(b=b.documentElement);b.lastChild;)b.removeChild(b.lastChild)},findReactContainerForID:function(a){var b=u.getReactRootIDFromNodeID(a),c=O[b];return c},findReactNodeByID:function(a){var b=R.findReactContainerForID(a);return R.findComponentRoot(b,a)},isRenderedByReact:function(a){if(1!==a.nodeType)return!1;var b=R.getID(a);return!!b&&b.charAt(0)===I},getFirstReactDOM:function(a){for(var b=a;b&&b.parentNode!==b;){if(R.isRenderedByReact(b))return b;b=b.parentNode}return null},findComponentRoot:function(a,b){var c=P,d=0,e=n(b)||a;for(c[0]=e.firstChild,c.length=1;d<c.length;){for(var f,g=c[d++];g;){var h=R.getID(g);h?b===h?f=g:u.isAncestorIDOf(h,b)&&(c.length=d=0,c.push(g.firstChild)):c.push(g.firstChild),g=g.nextSibling}if(f)return c.length=0,f}c.length=0,F(!1)},_mountImageIntoNode:function(a,b,c){if(F(b&&(b.nodeType===L||b.nodeType===M)),c){var e=D(b);if(w.canReuseMarkup(a,e))return;var f=e.getAttribute(w.CHECKSUM_ATTR_NAME);e.removeAttribute(w.CHECKSUM_ATTR_NAME);var g=e.outerHTML;e.setAttribute(w.CHECKSUM_ATTR_NAME,f);var h=d(a,g);" (client) "+a.substring(h-20,h+20)+"\n (server) "+g.substring(h-20,h+20);F(b.nodeType!==M)}F(b.nodeType!==M),G(b,a)},getReactRootID:e,getID:f,setID:h,getNode:i,getNodeFromInstance:j,purgeID:l};x.measureMethods(R,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),c.exports=R}(a("13"))}),a.registerDynamic("a1",[],!0,function(a,b,c){function d(a){return!(!a||!("function"==typeof Node?a instanceof Node:"object"==typeof a&&"number"==typeof a.nodeType&&"string"==typeof a.nodeName))}this||self;c.exports=d}),a.registerDynamic("47",["8e","8f","2c","3e","a1","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return null==a?null:h(a)?a:e.has(a)?f.getNodeFromInstance(a):(g(null==a.render||"function"!=typeof a.render),void g(!1))}var e=(a("8e"),a("8f")),f=a("2c"),g=a("3e"),h=a("a1");a("12");c.exports=d}(a("13"))}),a.registerDynamic("9c",["13"],!0,function(a,b,c){this||self;!function(a){"use strict";var b={};c.exports=b}(a("13"))}),a.registerDynamic("a6",["19","9c","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("19"),e=a("9c"),f=(a("12"),{current:e,withContext:function(a,b){var c,e=f.current;f.current=d({},e,a);try{c=b()}finally{f.current=e}return c}});c.exports=f}(a("13"))}),a.registerDynamic("8e",[],!0,function(a,b,c){"use strict";var d=(this||self,{current:null});c.exports=d}),a.registerDynamic("19",[],!0,function(a,b,c){"use strict";function d(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");for(var c=Object(a),d=Object.prototype.hasOwnProperty,e=1;e<arguments.length;e++){var f=arguments[e];if(null!=f){var g=Object(f);for(var h in g)d.call(g,h)&&(c[h]=g[h])}}return c}this||self;c.exports=d}),a.registerDynamic("30",[],!0,function(a,b,c){function d(a){return function(){return a}}function e(){}this||self;e.thatReturns=d,e.thatReturnsFalse=d(!1),e.thatReturnsTrue=d(!0),e.thatReturnsNull=d(null),e.thatReturnsThis=function(){return this},e.thatReturnsArgument=function(a){return a},c.exports=e}),a.registerDynamic("12",["30","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("30"),e=d;c.exports=e}(a("13"))}),a.registerDynamic("16",["a6","8e","19","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("a6"),e=a("8e"),f=a("19"),g=(a("12"),{key:!0,ref:!0}),h=function(a,b,c,d,e,f){this.type=a,this.key=b,this.ref=c,this._owner=d,this._context=e,this.props=f};h.prototype={_isReactElement:!0},h.createElement=function(a,b,c){var f,i={},j=null,k=null;if(null!=b){k=void 0===b.ref?null:b.ref,j=void 0===b.key?null:""+b.key;for(f in b)b.hasOwnProperty(f)&&!g.hasOwnProperty(f)&&(i[f]=b[f])}var l=arguments.length-2;if(1===l)i.children=c;else if(l>1){for(var m=Array(l),n=0;n<l;n++)m[n]=arguments[n+2];i.children=m}if(a&&a.defaultProps){var o=a.defaultProps;for(f in o)"undefined"==typeof i[f]&&(i[f]=o[f])}return new h(a,j,k,e.current,d.current,i)},h.createFactory=function(a){var b=h.createElement.bind(null,a);return b.type=a,b},h.cloneAndReplaceProps=function(a,b){var c=new h(a.type,a.key,a.ref,a._owner,a._context,b);return c},h.cloneElement=function(a,b,c){var d,i=f({},a.props),j=a.key,k=a.ref,l=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,l=e.current),void 0!==b.key&&(j=""+b.key);for(d in b)b.hasOwnProperty(d)&&!g.hasOwnProperty(d)&&(i[d]=b[d])}var m=arguments.length-2;if(1===m)i.children=c;else if(m>1){for(var n=Array(m),o=0;o<m;o++)n[o]=arguments[o+2];i.children=n}return new h(a.type,j,k,l,a._context,i)},h.isValidElement=function(a){var b=!(!a||!a._isReactElement);return b},c.exports=h}(a("13"))}),a.registerDynamic("3e",["13"],!0,function(a,b,c){this||self;!function(a){"use strict";var b=function(a,b,c,d,e,f,g,h){if(!a){var i;if(void 0===b)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var j=[c,d,e,f,g,h],k=0;i=new Error("Invariant Violation: "+b.replace(/%s/g,function(){return j[k++]}))}throw i.framesToPop=1,i}};c.exports=b}(a("13"))}),a.registerDynamic("a7",["16","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return f(e.isValidElement(a)),a}var e=a("16"),f=a("3e");c.exports=d}(a("13"))}),a.registerDynamic("21",[],!0,function(a,b,c){"use strict";var d=(this||self,!("undefined"==typeof window||!window.document||!window.document.createElement)),e={canUseDOM:d,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:d&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:d&&!!window.screen,isInWorker:!d};c.exports=e}),a.registerDynamic("a8",[],!0,function(a,b,c){function d(){if(!h){h=!0;for(var a,b=g.length;b;){a=g,g=[];for(var c=-1;++c<b;)a[c]();b=g.length}h=!1}}function e(){}var f=(this||self,c.exports={}),g=[],h=!1;f.nextTick=function(a){g.push(a),h||setTimeout(d,0)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=e,f.addListener=e,f.once=e,f.off=e,f.removeListener=e,f.removeAllListeners=e,f.emit=e,f.binding=function(a){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(a){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}}),a.registerDynamic("a9",["a8"],!0,function(a,b,c){this||self;c.exports=a("a8")}),a.registerDynamic("aa",["a9"],!0,function(b,c,d){this||self;d.exports=a._nodeRequire?process:b("a9")}),a.registerDynamic("13",["aa"],!0,function(a,b,c){this||self;c.exports=a("aa")}),a.registerDynamic("ab",["89","e","8b","36","a6","8e","16","17","15","49","98","50","2c","65","46","69","9a","19","47","a7","21","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("89"),e=a("e"),f=a("8b"),g=a("36"),h=a("a6"),i=a("8e"),j=a("16"),k=(a("17"),a("15")),l=a("49"),m=a("98"),n=a("50"),o=a("2c"),p=a("65"),q=a("46"),r=a("69"),s=a("9a"),t=a("19"),u=a("47"),v=a("a7");m.inject();var w=j.createElement,x=j.createFactory,y=j.cloneElement,z=p.measure("React","render",o.render),A={Children:{map:e.map,forEach:e.forEach,count:e.count,only:v},Component:f,DOM:k,PropTypes:q,initializeTouchEvents:function(a){d.useTouchEvents=a},createClass:g.createClass,createElement:w,cloneElement:y,createFactory:x,createMixin:function(a){return a},constructAndRenderComponent:o.constructAndRenderComponent,constructAndRenderComponentByID:o.constructAndRenderComponentByID,findDOMNode:u,render:z,renderToString:s.renderToString,renderToStaticMarkup:s.renderToStaticMarkup,unmountComponentAtNode:o.unmountComponentAtNode,isValidElement:j.isValidElement,withContext:h.withContext,__spread:t};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:i,InstanceHandles:n,Mount:o,Reconciler:r,TextComponent:l});A.version="0.13.3",c.exports=A}(a("13"))}),a.registerDynamic("ac",["ab"],!0,function(a,b,c){this||self;c.exports=a("ab")}),a.registerDynamic("ad",["ac"],!0,function(a,b,c){this||self;c.exports=a("ac")}),a.register("1",["b","d","ad"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){b=a.default},function(a){c=a.default},function(a){d=a.default}],execute:function(){$.webshims.polyfill("forms"),e=d.createClass({displayName:"Page",render:function(){return d.createElement("div",null,d.createElement(f,{ref:"dnd"}),d.createElement(g,{ref:"form"}))},componentDidMount:function(){this.refs.dnd.setState({query:this.refs.form.refs.query})}}),f=d.createClass({displayName:"DnD",getInitialState:function(){return{query:null}},render:function(){return d.createElement("div",{className:"dnd-overlay",style:{display:"none"}},d.createElement("div",{className:"container dnd-overlay-container"},d.createElement("div",{className:"row"},d.createElement("div",{className:"col-md-offset-2 col-md-10"},d.createElement("p",{className:"dnd-overlay-drop",style:{display:"none"}},d.createElement("i",{className:"fa fa-2x fa-file-o"}),"Drop query sequence file here"),d.createElement("p",{className:"dnd-overlay-overwrite",style:{display:"none"}},d.createElement("i",{className:"fa fa-2x fa-file-o"}),d.createElement("span",{style:{color:"red"}},"Overwrite")," query sequence file"),d.createElement("div",{className:"dnd-errors"},d.createElement("div",{className:"dnd-error row",id:"dnd-multi-notification",style:{display:"none"}},d.createElement("div",{className:"col-md-6 col-md-offset-3"},"One file at a time please.")),d.createElement("div",{className:"dnd-error row",id:"dnd-large-file-notification",style:{display:"none"}},d.createElement("div",{className:"col-md-6 col-md-offset-3"},"Too big a file. Can only do less than 10 MB. >_<")),d.createElement("div",{className:"dnd-error row",id:"dnd-format-notification",style:{display:"none"}},d.createElement("div",{className:"col-md-6 col-md-offset-3"},"Only FASTA files please.")))))))},componentDidMount:function(){var a=this;$(document).ready(function(){var c=$(".dnd-overlay"),d=function(a){$(".dnd-error").hide(),$("#"+a+"-notification").show(),c.effect("fade",2500)};$(document).on("dragenter",function(b){if(!$.modalActive()){var d=b.originalEvent.dataTransfer,e=d.types&&(d.types.indexOf&&d.types.indexOf("Files")!=-1||d.types.contains&&d.types.contains("application/x-moz-file"));e&&($(".dnd-error").hide(),c.stop(!0,!0),c.show(),d.effectAllowed="copy",a.state.query.isEmpty()?($(".dnd-overlay-overwrite").hide(),$(".dnd-overlay-drop").show("drop",{direction:"down"},"fast")):($(".dnd-overlay-drop").hide(),$(".dnd-overlay-overwrite").show("drop",{direction:"down"},"fast")))}}).on("dragleave",".dnd-overlay",function(a){c.hide(),$(".dnd-overlay-drop").hide(),$(".dnd-overlay-overwrite").hide()}).on("dragover",".dnd-overlay",function(a){a.originalEvent.dataTransfer.dropEffect="copy",a.preventDefault()}).on("drop",".dnd-overlay",function(e){e.preventDefault(),e.stopPropagation();var f=$("#sequence-file");a.state.query.focus();var g=e.originalEvent.dataTransfer.files;if(g.length>1)return void d("dnd-multi");var h=g[0];if(h.size>10485760)return void d("dnd-large-file");var i=new FileReader;i.onload=function(e){var g=e.target.result;b.FASTA_FORMAT.test(g)?(f.text(h.name+" "),a.state.query.value(g),c.hide()):d("dnd-format")},i.onerror=function(a){d("dnd-format")},i.readAsText(h)})})}}),g=d.createClass({displayName:"Form",getInitialState:function(){return{databases:{},preDefinedOpts:{blastn:["-task blastn","-evalue 1e-5"],blastp:["-evalue 1e-5"],blastx:["-evalue 1e-5"],tblastx:["-evalue 1e-5"],tblastn:["-evalue 1e-5"]}}},componentDidMount:function(){$.getJSON("searchdata.json",c.bind(function(a){this.setState({databases:a.database,preDefinedOpts:$.extend({},this.state.preDefinedOpts,a.options)})},this)),$(document).bind("keydown",c.bind(function(a){a.ctrlKey&&13===a.keyCode&&!$("#method").is(":disabled")&&$(this.getDOMNode()).trigger("submit")},this))},determineBlastMethod:function(){var a=this.databaseType,b=this.sequenceType;if(this.refs.query.isEmpty())return[];switch(a){case"protein":switch(b){case void 0:return["blastp","blastx"];case"protein":return["blastp"];case"nucleotide":return["blastx"]}break;case"nucleotide":switch(b){case void 0:return["tblastn","blastn","tblastx"];case"protein":return["tblastn"];case"nucleotide":return["blastn","tblastx"]}}return[]},handleSequenceTypeChanged:function(a){this.sequenceType=a,this.refs.button.setState({hasQuery:!this.refs.query.isEmpty(),hasDatabases:!!this.databaseType,methods:this.determineBlastMethod()})},handleDatabaseTypeChanaged:function(a){this.databaseType=a,this.refs.button.setState({hasQuery:!this.refs.query.isEmpty(),hasDatabases:!!this.databaseType,methods:this.determineBlastMethod()})},handleAlgoChanged:function(a){this.state.preDefinedOpts.hasOwnProperty(a)?this.refs.opts.setState({preOpts:this.state.preDefinedOpts[a].join(" ")}):this.refs.opts.setState({preOpts:""})},render:function(){return d.createElement("div",{className:"container"},d.createElement("form",{id:"blast",method:"post",className:"form-horizontal"},d.createElement("div",{className:"form-group query-container"},d.createElement(h,{ref:"query",onSequenceTypeChanged:this.handleSequenceTypeChanged})),d.createElement("div",{className:"notifications",id:"notifications"},d.createElement(j,null),d.createElement(i,null),d.createElement(k,null)),d.createElement(l,{ref:"databases",onDatabaseTypeChanged:this.handleDatabaseTypeChanaged,databases:this.state.databases}),d.createElement("div",{className:"form-group"},d.createElement(m,{ref:"opts"}),d.createElement(n,{ref:"button",onAlgoChanged:this.handleAlgoChanged}))))}}),h=d.createClass({displayName:"Query",value:function(a){return void 0!==a?(this.setState({value:a}),this):this.state.value},clear:function(){return this.value("").focus()},focus:function(){return this.textarea().focus(),this},isEmpty:function(){return!this.value()},textarea:function(){return $(this.refs.textarea.getDOMNode())},controls:function(){return $(this.refs.controls.getDOMNode())},handleInput:function(a){this.value(a.target.value)},hideShowButton:function(){if(this.isEmpty())this.textarea().parent().removeClass("has-error"),this.$sequenceFile=$("#sequence-file"),this.$sequenceFile.empty(),this.controls().addClass("hidden");else{var a=this.textarea()[0],b=a.offsetWidth-a.clientWidth;this.controls().css("right",b+17),this.controls().removeClass("hidden")}},indicateError:function(){this.textarea().parent().addClass("has-error")},indicateNormal:function(){this.textarea().parent().removeClass("has-error")},type:function a(){for(var a,b,c=this.value().split(/>.*/),d=0;d<c.length;d++)if(b=this.guessSequenceType(c[d]))if(a){if(b!==a)return"mixed"}else a=b;return a},guessSequenceType:function(a){if(a=a.replace(/[^A-Z]/gi,""),a=a.replace(/[NX]/gi,""),!(a.length<10)){for(var b=0,c=0;c<a.length;c++)a[c].match(/[ACGTU]/i)&&(b+=1);var d=.9*a.length;return b>d?"nucleotide":"protein"}},notify:function(a){clearTimeout(this.notification_timeout),this.indicateNormal(),$(".notifications .active").hide().removeClass("active"),a&&($("#"+a+"-sequence-notification").show("drop",{direction:"up"}).addClass("active"),this.notification_timeout=setTimeout(function(){$(".notifications .active").hide("drop",{direction:"up"}).removeClass("active")},5e3),"mixed"===a&&this.indicateError())},getInitialState:function(){var a=$("input#input_sequence").val()||"";return{value:a}},render:function(){return d.createElement("div",{className:"col-md-12"},d.createElement("div",{className:"sequence"},d.createElement("textarea",{id:"sequence",ref:"textarea",className:"form-control text-monospace",name:"sequence",value:this.state.value,placeholder:"Paste query sequence(s) or drag file containing query sequence(s) in FASTA format here ...",spellCheck:"false",autoFocus:"true",onChange:this.handleInput})),d.createElement("div",{className:"hidden",style:{position:"absolute",top:"4px",right:"19px"},ref:"controls"},d.createElement("button",{type:"button",className:"btn btn-sm btn-default",id:"btn-sequence-clear",title:"Clear query sequence(s).",onClick:this.clear},d.createElement("span",{id:"sequence-file"}),d.createElement("i",{className:"fa fa-times"}))))},componentDidMount:function(){$("body").click(function(){$(".notifications .active").hide("drop",{direction:"up"}).removeClass("active")})},componentDidUpdate:function(){this.hideShowButton();var a=this.type();a&&a===this._type||(this._type=a,this.notify(a),this.props.onSequenceTypeChanged(a));
11
- }}),i=d.createClass({displayName:"ProteinNotification",render:function(){return d.createElement("div",{className:"notification row",id:"protein-sequence-notification",style:{display:"none"}},d.createElement("div",{className:"alert-info col-md-6 col-md-offset-3"},"Detected: amino-acid sequence(s)."))}}),j=d.createClass({displayName:"NucleotideNotification",render:function(){return d.createElement("div",{className:"notification row",id:"nucleotide-sequence-notification",style:{display:"none"}},d.createElement("div",{className:"alert-info col-md-6 col-md-offset-3"},"Detected: nucleotide sequence(s)."))}}),k=d.createClass({displayName:"MixedNotification",render:function(){return d.createElement("div",{className:"notification row",id:"mixed-sequence-notification",style:{display:"none"}},d.createElement("div",{className:"alert-danger col-md-10 col-md-offset-1"},"Detected: mixed nucleotide and amino-acid sequences. We can't handle that. Please try one sequence at a time."))}}),l=d.createClass({displayName:"Databases",getInitialState:function(){return{type:"",databases:[]}},databases:function(a){return a?c.select(this.props.databases,function(b){return b.type===a}):this.props.databases.slice()},nselected:function(){return $('input[name="databases[]"]:checked').length},categories:function(){return c.uniq(c.map(this.props.databases,c.iteratee("type"))).sort()},handleClick:function(a){var b=this.nselected()?a.type:"";this.setState({type:b})},handleToggle:function(a,b){switch(a){case"[Select all]":$("."+b+" .database input:not(:checked)").click();break;case"[Deselect all]":$("."+b+" .database input:checked").click()}},render:function(){return d.createElement("div",{className:"form-group databases-container"},c.map(this.categories(),this.renderDatabases))},renderDatabases:function(a){var b=a[0].toUpperCase()+a.substring(1).toLowerCase()+" databases",e=1===this.categories().length?"col-md-12":"col-md-6",f="[Select all]",g="btn btn-link",h=this.databases(a).length>1,i=this.state.type&&this.state.type!==a;return h&&i&&(g+=" disabled"),h||(g+=" hidden"),this.nselected()===this.databases(a).length&&(f="[Deselect all]"),d.createElement("div",{className:e},d.createElement("div",{className:"panel panel-default"},d.createElement("div",{className:"panel-heading"},d.createElement("h4",{style:{display:"inline"}},b),"   ",d.createElement("button",{type:"button",className:g,disabled:i,onClick:function(){this.handleToggle(f,a)}.bind(this)},f)),d.createElement("ul",{className:"list-group databases "+a},c.map(this.databases(a),c.bind(function(a){return d.createElement("li",{className:"list-group-item"},this.renderDatabase(a))},this)))))},renderDatabase:function(a){var b=this.state.type&&this.state.type!==a.type;return d.createElement("label",{className:b&&"disabled database"||"database"},d.createElement("input",{type:"checkbox",name:"databases[]",value:a.id,"data-type":a.type,disabled:b,onChange:c.bind(function(){this.handleClick(a)},this)})," "+(a.title||a.name))},componentDidUpdate:function(){this.databases()&&1===this.databases().length&&($(".databases").find("input").prop("checked",!0),this.handleClick(this.databases()[0])),this.props.onDatabaseTypeChanged(this.state.type)}}),m=d.createClass({displayName:"Options",updateBox:function(a){this.setState({preOpts:a.target.value})},getInitialState:function(){return{preOpts:""}},render:function(){return d.createElement("div",{className:"col-md-8"},d.createElement("div",{className:"form-group"},d.createElement("div",{className:"col-md-12"},d.createElement("div",{className:"input-group"},d.createElement("label",{className:"control-label",htmlFor:"advanced"},"Advanced parameters:"),d.createElement("input",{type:"text",className:"form-control",name:"advanced",id:"advanced",title:"View, and enter advanced parameters.",placeholder:"eg: -evalue 1.0e-5 -num_alignments 100",value:this.state.preOpts,onChange:this.updateBox}),d.createElement("div",{className:"input-group-addon cursor-pointer","data-toggle":"modal","data-target":"#help"},d.createElement("i",{className:"fa fa-question"}))))))}}),n=d.createClass({displayName:"SearchButton",inputGroup:function(){return $(d.findDOMNode(this.refs.inputGroup))},submitButton:function(){return $(d.findDOMNode(this.refs.submitButton))},initTooltip:function(){this.inputGroup().tooltip({trigger:"manual",title:c.bind(function(){return this.state.hasQuery||this.state.hasDatabases?this.state.hasQuery&&!this.state.hasDatabases?"You must select one or more databases above before you can run a search!":!this.state.hasQuery&&this.state.hasDatabases?"You must enter a query sequence above before you can run a search!":void 0:"You must enter a query sequence and select one or more databases above before you can run a search!"},this)}),this.submitButton().tooltip({title:c.bind(function(){var a="Click to BLAST or press Ctrl+Enter.";return this.state.methods.length>1&&(a+=" Click dropdown button on the right for other BLAST algorithms that can be used."),a},this)})},showTooltip:function(){this.inputGroup()._tooltip("show")},hideTooltip:function(){this.inputGroup()._tooltip("hide")},changeAlgorithm:function(a){var b=this.state.methods.slice();b.splice(b.indexOf(a),1),b.unshift(a),this.setState({methods:b})},decorate:function(a){return a.match(/(.?)(blast)(.?)/).slice(1).map(function(a,b){if(a)return"blast"!==a?d.createElement("strong",{key:a},a):a})},getInitialState:function(){return{methods:[],hasQuery:!1,hasDatabases:!1}},render:function(){var a=this.state.methods,b=a[0],e=a.length>1;return d.createElement("div",{className:"col-md-4"},d.createElement("div",{className:"form-group"},d.createElement("div",{className:"col-md-12"},d.createElement("div",{className:e&&"input-group",id:"methods",ref:"inputGroup",onMouseOver:this.showTooltip,onMouseOut:this.hideTooltip},d.createElement("button",{type:"submit",className:"btn btn-primary form-control text-uppercase",id:"method",ref:"submitButton",name:"method",value:b,disabled:!b},this.decorate(b||"blast")),e&&d.createElement("div",{className:"input-group-btn"},d.createElement("button",{className:"btn btn-primary dropdown-toggle","data-toggle":"dropdown"},d.createElement("span",{className:"caret"})),d.createElement("ul",{className:"dropdown-menu dropdown-menu-right"},c.map(a.slice(1),c.bind(function(a){return d.createElement("li",{key:a,className:"text-uppercase",onClick:c.bind(function(){this.changeAlgorithm(a)},this)},a)},this))))))))},componentDidMount:function(){this.initTooltip()},shouldComponentUpdate:function(a,b){return!c.isEqual(b.methods,this.state.methods)},componentDidUpdate:function(){this.state.methods.length>0?(this.inputGroup().wiggle(),this.props.onAlgoChanged(this.state.methods[0])):this.props.onAlgoChanged("")}}),d.render(d.createElement(e,null),document.getElementById("view"))}}})})(function(a){a()});
10
+ try{e=!0,h!==f.OBSERVED_ERROR&&g.close&&g.close.call(this,h),e=!1}finally{if(e)try{this.closeAll(c+1)}catch(a){}}}this.wrapperInitData.length=0}},f={Mixin:e,OBSERVED_ERROR:{}};c.exports=f}(a("13"))}),a.registerDynamic("25",["73","f","8e","65","69","32","19","3e","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(){q(A.ReactReconcileTransaction&&u)}function e(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=k.getPooled(),this.reconcileTransaction=A.ReactReconcileTransaction.getPooled()}function f(a,b,c,e,f){d(),u.batchedUpdates(a,b,c,e,f)}function g(a,b){return a._mountOrder-b._mountOrder}function h(a){var b=a.dirtyComponentsLength;q(b===r.length),r.sort(g);for(var c=0;c<b;c++){var d=r[c],e=d._pendingCallbacks;if(d._pendingCallbacks=null,n.performUpdateIfNecessary(d,a.reconcileTransaction),e)for(var f=0;f<e.length;f++)a.callbackQueue.enqueue(e[f],d.getPublicInstance())}}function i(a){return d(),u.isBatchingUpdates?void r.push(a):void u.batchedUpdates(i,a)}function j(a,b){q(u.isBatchingUpdates),s.enqueue(a,b),t=!0}var k=a("73"),l=a("f"),m=(a("8e"),a("65")),n=a("69"),o=a("32"),p=a("19"),q=a("3e"),r=(a("12"),[]),s=k.getPooled(),t=!1,u=null,v={initialize:function(){this.dirtyComponentsLength=r.length},close:function(){this.dirtyComponentsLength!==r.length?(r.splice(0,this.dirtyComponentsLength),y()):r.length=0}},w={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},x=[v,w];p(e.prototype,o.Mixin,{getTransactionWrappers:function(){return x},destructor:function(){this.dirtyComponentsLength=null,k.release(this.callbackQueue),this.callbackQueue=null,A.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(a,b,c){return o.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,a,b,c)}}),l.addPoolingTo(e);var y=function(){for(;r.length||t;){if(r.length){var a=e.getPooled();a.perform(h,null,a),e.release(a)}if(t){t=!1;var b=s;s=k.getPooled(),b.notifyAll(),k.release(b)}}};y=m.measure("ReactUpdates","flushBatchedUpdates",y);var z={injectReconcileTransaction:function(a){q(a),A.ReactReconcileTransaction=a},injectBatchingStrategy:function(a){q(a),q("function"==typeof a.batchedUpdates),q("boolean"==typeof a.isBatchingUpdates),u=a}},A={ReactReconcileTransaction:null,batchedUpdates:f,enqueueUpdate:i,flushBatchedUpdates:y,injection:z,asap:j};c.exports=A}(a("13"))}),a.registerDynamic("a5",["6d","a6","8e","16","17","8f","90","70","65","91","92","69","25","19","9c","3e","6b","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){var b=a._currentElement._owner||null;if(b){var c=b.getName();if(c)return" Check the render method of `"+c+"`."}return""}var e=a("6d"),f=a("a6"),g=a("8e"),h=a("16"),i=(a("17"),a("8f")),j=a("90"),k=a("70"),l=a("65"),m=a("91"),n=(a("92"),a("69")),o=a("25"),p=a("19"),q=a("9c"),r=a("3e"),s=a("6b"),t=(a("12"),1),u={construct:function(a){this._currentElement=a,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(a,b,c){this._context=c,this._mountOrder=t++,this._rootNodeID=a;var d=this._processProps(this._currentElement.props),e=this._processContext(this._currentElement._context),f=k.getComponentClassForElement(this._currentElement),g=new f(d,e);g.props=d,g.context=e,g.refs=q,this._instance=g,i.set(g,this);var h=g.state;void 0===h&&(g.state=h=null),r("object"==typeof h&&!Array.isArray(h)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var l,m,o=j.currentlyMountingInstance;j.currentlyMountingInstance=this;try{g.componentWillMount&&(g.componentWillMount(),this._pendingStateQueue&&(g.state=this._processPendingState(g.props,g.context))),l=this._getValidatedChildContext(c),m=this._renderValidatedComponent(l)}finally{j.currentlyMountingInstance=o}this._renderedComponent=this._instantiateReactComponent(m,this._currentElement.type);var p=n.mountComponent(this._renderedComponent,a,b,this._mergeChildContext(c,l));return g.componentDidMount&&b.getReactMountReady().enqueue(g.componentDidMount,g),p},unmountComponent:function(){var a=this._instance;if(a.componentWillUnmount){var b=j.currentlyUnmountingInstance;j.currentlyUnmountingInstance=this;try{a.componentWillUnmount()}finally{j.currentlyUnmountingInstance=b}}n.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,i.remove(a)},_setPropsInternal:function(a,b){var c=this._pendingElement||this._currentElement;this._pendingElement=h.cloneAndReplaceProps(c,p({},c.props,a)),o.enqueueUpdate(this,b)},_maskContext:function(a){var b=null;if("string"==typeof this._currentElement.type)return q;var c=this._currentElement.type.contextTypes;if(!c)return q;b={};for(var d in c)b[d]=a[d];return b},_processContext:function(a){var b=this._maskContext(a);return b},_getValidatedChildContext:function(a){var b=this._instance,c=b.getChildContext&&b.getChildContext();if(c){r("object"==typeof b.constructor.childContextTypes);for(var d in c)r(d in b.constructor.childContextTypes);return c}return null},_mergeChildContext:function(a,b){return b?p({},a,b):a},_processProps:function(a){return a},_checkPropTypes:function(a,b,c){var e=this.getName();for(var f in a)if(a.hasOwnProperty(f)){var g;try{r("function"==typeof a[f]),g=a[f](b,f,e,c)}catch(a){g=a}if(g instanceof Error){d(this);c===m.prop}}},receiveComponent:function(a,b,c){var d=this._currentElement,e=this._context;this._pendingElement=null,this.updateComponent(b,d,a,e,c)},performUpdateIfNecessary:function(a){null!=this._pendingElement&&n.receiveComponent(this,this._pendingElement||this._currentElement,a,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(a,this._currentElement,this._currentElement,this._context,this._context)},_warnIfContextsDiffer:function(a,b){a=this._maskContext(a),b=this._maskContext(b);for(var c=Object.keys(b).sort(),d=(this.getName()||"ReactCompositeComponent",0);d<c.length;d++){c[d]}},updateComponent:function(a,b,c,d,e){var f=this._instance,g=f.context,h=f.props;b!==c&&(g=this._processContext(c._context),h=this._processProps(c.props),f.componentWillReceiveProps&&f.componentWillReceiveProps(h,g));var i=this._processPendingState(h,g),j=this._pendingForceUpdate||!f.shouldComponentUpdate||f.shouldComponentUpdate(h,i,g);j?(this._pendingForceUpdate=!1,this._performComponentUpdate(c,h,i,g,a,e)):(this._currentElement=c,this._context=e,f.props=h,f.state=i,f.context=g)},_processPendingState:function(a,b){var c=this._instance,d=this._pendingStateQueue,e=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!d)return c.state;if(e&&1===d.length)return d[0];for(var f=p({},e?d[0]:c.state),g=e?1:0;g<d.length;g++){var h=d[g];p(f,"function"==typeof h?h.call(c,f,a,b):h)}return f},_performComponentUpdate:function(a,b,c,d,e,f){var g=this._instance,h=g.props,i=g.state,j=g.context;g.componentWillUpdate&&g.componentWillUpdate(b,c,d),this._currentElement=a,this._context=f,g.props=b,g.state=c,g.context=d,this._updateRenderedComponent(e,f),g.componentDidUpdate&&e.getReactMountReady().enqueue(g.componentDidUpdate.bind(g,h,i,j),g)},_updateRenderedComponent:function(a,b){var c=this._renderedComponent,d=c._currentElement,e=this._getValidatedChildContext(),f=this._renderValidatedComponent(e);if(s(d,f))n.receiveComponent(c,f,a,this._mergeChildContext(b,e));else{var g=this._rootNodeID,h=c._rootNodeID;n.unmountComponent(c),this._renderedComponent=this._instantiateReactComponent(f,this._currentElement.type);var i=n.mountComponent(this._renderedComponent,g,a,this._mergeChildContext(b,e));this._replaceNodeWithMarkupByID(h,i)}},_replaceNodeWithMarkupByID:function(a,b){e.replaceNodeWithMarkupByID(a,b)},_renderValidatedComponentWithoutOwnerOrContext:function(){var a=this._instance,b=a.render();return b},_renderValidatedComponent:function(a){var b,c=f.current;f.current=this._mergeChildContext(this._currentElement._context,a),g.current=this;try{b=this._renderValidatedComponentWithoutOwnerOrContext()}finally{f.current=c,g.current=null}return r(null===b||b===!1||h.isValidElement(b)),b},attachRef:function(a,b){var c=this.getPublicInstance(),d=c.refs===q?c.refs={}:c.refs;d[a]=b.getPublicInstance()},detachRef:function(a){var b=this.getPublicInstance().refs;delete b[a]},getName:function(){var a=this._currentElement.type,b=this._instance&&this._instance.constructor;return a.displayName||b&&b.displayName||a.name||b&&b.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};l.measureMethods(u,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var v={Mixin:u};c.exports=v}(a("13"))}),a.registerDynamic("8f",[],!0,function(a,b,c){"use strict";var d=(this||self,{remove:function(a){a._reactInternalInstance=void 0},get:function(a){return a._reactInternalInstance},has:function(a){return void 0!==a._reactInternalInstance},set:function(a,b){a._reactInternalInstance=b}});c.exports=d}),a.registerDynamic("6f",["16","8f","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){k[a]=!0}function e(a){delete k[a]}function f(a){return!!k[a]}var g,h=a("16"),i=a("8f"),j=a("3e"),k={},l={injectEmptyComponent:function(a){g=h.createFactory(a)}},m=function(){};m.prototype.componentDidMount=function(){var a=i.get(this);a&&d(a._rootNodeID)},m.prototype.componentWillUnmount=function(){var a=i.get(this);a&&e(a._rootNodeID)},m.prototype.render=function(){return j(g),g()};var n=h.createElement(m),o={emptyElement:n,injection:l,isNullComponentID:f};c.exports=o}(a("13"))}),a.registerDynamic("70",["19","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){if("function"==typeof a.type)return a.type;var b=a.type,c=l[b];return null==c&&(l[b]=c=j(b)),c}function e(a){return i(k),new k(a.type,a.props)}function f(a){return new m(a)}function g(a){return a instanceof m}var h=a("19"),i=a("3e"),j=null,k=null,l={},m=null,n={injectGenericComponentClass:function(a){k=a},injectTextComponentClass:function(a){m=a},injectComponentClasses:function(a){h(l,a)},injectAutoWrapper:function(a){j=a}},o={getComponentClassForElement:d,createInternalComponent:e,createInstanceForText:f,isTextComponent:g,injection:n};c.exports=o}(a("13"))}),a.registerDynamic("6a",["a5","6f","70","19","3e","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return"function"==typeof a&&"undefined"!=typeof a.prototype&&"function"==typeof a.prototype.mountComponent&&"function"==typeof a.prototype.receiveComponent}function e(a,b){var c;if(null!==a&&a!==!1||(a=g.emptyElement),"object"==typeof a){var e=a;c=b===e.type&&"string"==typeof e.type?h.createInternalComponent(e):d(e.type)?new e.type(e):new k}else"string"==typeof a||"number"==typeof a?c=h.createInstanceForText(a):j(!1);return c.construct(a),c._mountIndex=0,c._mountImage=null,c}var f=a("a5"),g=a("6f"),h=a("70"),i=a("19"),j=a("3e"),k=(a("12"),function(){});i(k.prototype,f.Mixin,{_instantiateReactComponent:e}),c.exports=e}(a("13"))}),a.registerDynamic("60",["21","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("21"),e=/^[ \r\n\t\f]/,f=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,g=function(a,b){a.innerHTML=b};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(g=function(a,b){MSApp.execUnsafeLocalFunction(function(){a.innerHTML=b})}),d.canUseDOM){var h=document.createElement("div");h.innerHTML=" ",""===h.innerHTML&&(g=function(a,b){if(a.parentNode&&a.parentNode.replaceChild(a,a),e.test(b)||"<"===b[0]&&f.test(b)){a.innerHTML="\ufeff"+b;var c=a.firstChild;1===c.data.length?a.removeChild(c):c.deleteData(0,1)}else a.innerHTML=b})}c.exports=g}(a("13"))}),a.registerDynamic("6b",["12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b){if(null!=a&&null!=b){var c=typeof a,d=typeof b;if("string"===c||"number"===c)return"string"===d||"number"===d;if("object"===d&&a.type===b.type&&a.key===b.key){var e=a._owner===b._owner;return e}}return!1}a("12");c.exports=d}(a("13"))}),a.registerDynamic("2c",["2e","3b","8e","16","17","6f","50","8f","9b","65","69","8c","25","9c","78","a2","6a","3e","60","6b","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a,b){for(var c=Math.min(a.length,b.length),d=0;d<c;d++)if(a.charAt(d)!==b.charAt(d))return d;return a.length===b.length?-1:c}function e(a){var b=D(a);return b&&R.getID(b)}function f(a){var b=g(a);if(b)if(K.hasOwnProperty(b)){var c=K[b];c!==a&&(F(!k(c,b)),K[b]=a)}else K[b]=a;return b}function g(a){return a&&a.getAttribute&&a.getAttribute(J)||""}function h(a,b){var c=g(a);c!==b&&delete K[c],a.setAttribute(J,b),K[b]=a}function i(a){return K.hasOwnProperty(a)&&k(K[a],a)||(K[a]=R.findReactNodeByID(a)),K[a]}function j(a){var b=v.get(a)._rootNodeID;return t.isNullComponentID(b)?null:(K.hasOwnProperty(b)&&k(K[b],b)||(K[b]=R.findReactNodeByID(b)),K[b])}function k(a,b){if(a){F(g(a)===b);var c=R.findReactContainerForID(b);if(c&&C(c,a))return!0}return!1}function l(a){delete K[a]}function m(a){var b=K[a];return!(!b||!k(b,a))&&void(Q=b)}function n(a){Q=null,u.traverseAncestors(a,m);var b=Q;return Q=null,b}function o(a,b,c,d,e){var f=y.mountComponent(a,b,d,B);a._isTopLevel=!0,R._mountImageIntoNode(f,c,e)}function p(a,b,c,d){var e=A.ReactReconcileTransaction.getPooled();e.perform(o,null,a,b,c,e,d),A.ReactReconcileTransaction.release(e)}var q=a("2e"),r=a("3b"),s=(a("8e"),a("16")),t=(a("17"),a("6f")),u=a("50"),v=a("8f"),w=a("9b"),x=a("65"),y=a("69"),z=a("8c"),A=a("25"),B=a("9c"),C=a("78"),D=a("a2"),E=a("6a"),F=a("3e"),G=a("60"),H=a("6b"),I=(a("12"),u.SEPARATOR),J=q.ID_ATTRIBUTE_NAME,K={},L=1,M=9,N={},O={},P=[],Q=null,R={_instancesByReactRootID:N,scrollMonitor:function(a,b){b()},_updateRootComponent:function(a,b,c,d){return R.scrollMonitor(c,function(){z.enqueueElementInternal(a,b),d&&z.enqueueCallbackInternal(a,d)}),a},_registerComponent:function(a,b){F(b&&(b.nodeType===L||b.nodeType===M)),r.ensureScrollValueMonitoring();var c=R.registerContainer(b);return N[c]=a,c},_renderNewRootComponent:function(a,b,c){var d=E(a,null),e=R._registerComponent(d,b);return A.batchedUpdates(p,d,e,b,c),d},render:function(a,b,c){F(s.isValidElement(a));var d=N[e(b)];if(d){var f=d._currentElement;if(H(f,a))return R._updateRootComponent(d,a,b,c).getPublicInstance();R.unmountComponentAtNode(b)}var g=D(b),h=g&&R.isRenderedByReact(g),i=h&&!d,j=R._renderNewRootComponent(a,b,i).getPublicInstance();return c&&c.call(j),j},constructAndRenderComponent:function(a,b,c){var d=s.createElement(a,b);return R.render(d,c)},constructAndRenderComponentByID:function(a,b,c){var d=document.getElementById(c);return F(d),R.constructAndRenderComponent(a,b,d)},registerContainer:function(a){var b=e(a);return b&&(b=u.getReactRootIDFromNodeID(b)),b||(b=u.createReactRootID()),O[b]=a,b},unmountComponentAtNode:function(a){F(a&&(a.nodeType===L||a.nodeType===M));var b=e(a),c=N[b];return!!c&&(R.unmountComponentFromNode(c,a),delete N[b],delete O[b],!0)},unmountComponentFromNode:function(a,b){for(y.unmountComponent(a),b.nodeType===M&&(b=b.documentElement);b.lastChild;)b.removeChild(b.lastChild)},findReactContainerForID:function(a){var b=u.getReactRootIDFromNodeID(a),c=O[b];return c},findReactNodeByID:function(a){var b=R.findReactContainerForID(a);return R.findComponentRoot(b,a)},isRenderedByReact:function(a){if(1!==a.nodeType)return!1;var b=R.getID(a);return!!b&&b.charAt(0)===I},getFirstReactDOM:function(a){for(var b=a;b&&b.parentNode!==b;){if(R.isRenderedByReact(b))return b;b=b.parentNode}return null},findComponentRoot:function(a,b){var c=P,d=0,e=n(b)||a;for(c[0]=e.firstChild,c.length=1;d<c.length;){for(var f,g=c[d++];g;){var h=R.getID(g);h?b===h?f=g:u.isAncestorIDOf(h,b)&&(c.length=d=0,c.push(g.firstChild)):c.push(g.firstChild),g=g.nextSibling}if(f)return c.length=0,f}c.length=0,F(!1)},_mountImageIntoNode:function(a,b,c){if(F(b&&(b.nodeType===L||b.nodeType===M)),c){var e=D(b);if(w.canReuseMarkup(a,e))return;var f=e.getAttribute(w.CHECKSUM_ATTR_NAME);e.removeAttribute(w.CHECKSUM_ATTR_NAME);var g=e.outerHTML;e.setAttribute(w.CHECKSUM_ATTR_NAME,f);var h=d(a,g);" (client) "+a.substring(h-20,h+20)+"\n (server) "+g.substring(h-20,h+20);F(b.nodeType!==M)}F(b.nodeType!==M),G(b,a)},getReactRootID:e,getID:f,setID:h,getNode:i,getNodeFromInstance:j,purgeID:l};x.measureMethods(R,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),c.exports=R}(a("13"))}),a.registerDynamic("a1",[],!0,function(a,b,c){function d(a){return!(!a||!("function"==typeof Node?a instanceof Node:"object"==typeof a&&"number"==typeof a.nodeType&&"string"==typeof a.nodeName))}this||self;c.exports=d}),a.registerDynamic("47",["8e","8f","2c","3e","a1","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return null==a?null:h(a)?a:e.has(a)?f.getNodeFromInstance(a):(g(null==a.render||"function"!=typeof a.render),void g(!1))}var e=(a("8e"),a("8f")),f=a("2c"),g=a("3e"),h=a("a1");a("12");c.exports=d}(a("13"))}),a.registerDynamic("9c",["13"],!0,function(a,b,c){this||self;!function(a){"use strict";var b={};c.exports=b}(a("13"))}),a.registerDynamic("a6",["19","9c","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("19"),e=a("9c"),f=(a("12"),{current:e,withContext:function(a,b){var c,e=f.current;f.current=d({},e,a);try{c=b()}finally{f.current=e}return c}});c.exports=f}(a("13"))}),a.registerDynamic("8e",[],!0,function(a,b,c){"use strict";var d=(this||self,{current:null});c.exports=d}),a.registerDynamic("19",[],!0,function(a,b,c){"use strict";function d(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");for(var c=Object(a),d=Object.prototype.hasOwnProperty,e=1;e<arguments.length;e++){var f=arguments[e];if(null!=f){var g=Object(f);for(var h in g)d.call(g,h)&&(c[h]=g[h])}}return c}this||self;c.exports=d}),a.registerDynamic("30",[],!0,function(a,b,c){function d(a){return function(){return a}}function e(){}this||self;e.thatReturns=d,e.thatReturnsFalse=d(!1),e.thatReturnsTrue=d(!0),e.thatReturnsNull=d(null),e.thatReturnsThis=function(){return this},e.thatReturnsArgument=function(a){return a},c.exports=e}),a.registerDynamic("12",["30","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("30"),e=d;c.exports=e}(a("13"))}),a.registerDynamic("16",["a6","8e","19","12","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("a6"),e=a("8e"),f=a("19"),g=(a("12"),{key:!0,ref:!0}),h=function(a,b,c,d,e,f){this.type=a,this.key=b,this.ref=c,this._owner=d,this._context=e,this.props=f};h.prototype={_isReactElement:!0},h.createElement=function(a,b,c){var f,i={},j=null,k=null;if(null!=b){k=void 0===b.ref?null:b.ref,j=void 0===b.key?null:""+b.key;for(f in b)b.hasOwnProperty(f)&&!g.hasOwnProperty(f)&&(i[f]=b[f])}var l=arguments.length-2;if(1===l)i.children=c;else if(l>1){for(var m=Array(l),n=0;n<l;n++)m[n]=arguments[n+2];i.children=m}if(a&&a.defaultProps){var o=a.defaultProps;for(f in o)"undefined"==typeof i[f]&&(i[f]=o[f])}return new h(a,j,k,e.current,d.current,i)},h.createFactory=function(a){var b=h.createElement.bind(null,a);return b.type=a,b},h.cloneAndReplaceProps=function(a,b){var c=new h(a.type,a.key,a.ref,a._owner,a._context,b);return c},h.cloneElement=function(a,b,c){var d,i=f({},a.props),j=a.key,k=a.ref,l=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,l=e.current),void 0!==b.key&&(j=""+b.key);for(d in b)b.hasOwnProperty(d)&&!g.hasOwnProperty(d)&&(i[d]=b[d])}var m=arguments.length-2;if(1===m)i.children=c;else if(m>1){for(var n=Array(m),o=0;o<m;o++)n[o]=arguments[o+2];i.children=n}return new h(a.type,j,k,l,a._context,i)},h.isValidElement=function(a){var b=!(!a||!a._isReactElement);return b},c.exports=h}(a("13"))}),a.registerDynamic("3e",["13"],!0,function(a,b,c){this||self;!function(a){"use strict";var b=function(a,b,c,d,e,f,g,h){if(!a){var i;if(void 0===b)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var j=[c,d,e,f,g,h],k=0;i=new Error("Invariant Violation: "+b.replace(/%s/g,function(){return j[k++]}))}throw i.framesToPop=1,i}};c.exports=b}(a("13"))}),a.registerDynamic("a7",["16","3e","13"],!0,function(a,b,c){this||self;!function(b){"use strict";function d(a){return f(e.isValidElement(a)),a}var e=a("16"),f=a("3e");c.exports=d}(a("13"))}),a.registerDynamic("21",[],!0,function(a,b,c){"use strict";var d=(this||self,!("undefined"==typeof window||!window.document||!window.document.createElement)),e={canUseDOM:d,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:d&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:d&&!!window.screen,isInWorker:!d};c.exports=e}),a.registerDynamic("a8",[],!0,function(a,b,c){function d(){if(!h){h=!0;for(var a,b=g.length;b;){a=g,g=[];for(var c=-1;++c<b;)a[c]();b=g.length}h=!1}}function e(){}var f=(this||self,c.exports={}),g=[],h=!1;f.nextTick=function(a){g.push(a),h||setTimeout(d,0)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=e,f.addListener=e,f.once=e,f.off=e,f.removeListener=e,f.removeAllListeners=e,f.emit=e,f.binding=function(a){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(a){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}}),a.registerDynamic("a9",["a8"],!0,function(a,b,c){this||self;c.exports=a("a8")}),a.registerDynamic("aa",["a9"],!0,function(b,c,d){this||self;d.exports=a._nodeRequire?process:b("a9")}),a.registerDynamic("13",["aa"],!0,function(a,b,c){this||self;c.exports=a("aa")}),a.registerDynamic("ab",["89","e","8b","36","a6","8e","16","17","15","49","98","50","2c","65","46","69","9a","19","47","a7","21","13"],!0,function(a,b,c){this||self;!function(b){"use strict";var d=a("89"),e=a("e"),f=a("8b"),g=a("36"),h=a("a6"),i=a("8e"),j=a("16"),k=(a("17"),a("15")),l=a("49"),m=a("98"),n=a("50"),o=a("2c"),p=a("65"),q=a("46"),r=a("69"),s=a("9a"),t=a("19"),u=a("47"),v=a("a7");m.inject();var w=j.createElement,x=j.createFactory,y=j.cloneElement,z=p.measure("React","render",o.render),A={Children:{map:e.map,forEach:e.forEach,count:e.count,only:v},Component:f,DOM:k,PropTypes:q,initializeTouchEvents:function(a){d.useTouchEvents=a},createClass:g.createClass,createElement:w,cloneElement:y,createFactory:x,createMixin:function(a){return a},constructAndRenderComponent:o.constructAndRenderComponent,constructAndRenderComponentByID:o.constructAndRenderComponentByID,findDOMNode:u,render:z,renderToString:s.renderToString,renderToStaticMarkup:s.renderToStaticMarkup,unmountComponentAtNode:o.unmountComponentAtNode,isValidElement:j.isValidElement,withContext:h.withContext,__spread:t};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:i,InstanceHandles:n,Mount:o,Reconciler:r,TextComponent:l});A.version="0.13.3",c.exports=A}(a("13"))}),a.registerDynamic("ac",["ab"],!0,function(a,b,c){this||self;c.exports=a("ab")}),a.registerDynamic("ad",["ac"],!0,function(a,b,c){this||self;c.exports=a("ac")}),a.register("1",["b","d","ad"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){b=a.default},function(a){c=a.default},function(a){d=a.default}],execute:function(){$.webshims.polyfill("forms"),e=d.createClass({displayName:"Page",render:function(){return d.createElement("div",null,d.createElement(f,{ref:"dnd"}),d.createElement(g,{ref:"form"}))},componentDidMount:function(){this.refs.dnd.setState({query:this.refs.form.refs.query})}}),f=d.createClass({displayName:"DnD",getInitialState:function(){return{query:null}},render:function(){return d.createElement("div",{className:"dnd-overlay",style:{display:"none"}},d.createElement("div",{className:"container dnd-overlay-container"},d.createElement("div",{className:"row"},d.createElement("div",{className:"col-md-offset-2 col-md-10"},d.createElement("p",{className:"dnd-overlay-drop",style:{display:"none"}},d.createElement("i",{className:"fa fa-2x fa-file-o"}),"Drop query sequence file here"),d.createElement("p",{className:"dnd-overlay-overwrite",style:{display:"none"}},d.createElement("i",{className:"fa fa-2x fa-file-o"}),d.createElement("span",{style:{color:"red"}},"Overwrite")," query sequence file"),d.createElement("div",{className:"dnd-errors"},d.createElement("div",{className:"dnd-error row",id:"dnd-multi-notification",style:{display:"none"}},d.createElement("div",{className:"col-md-6 col-md-offset-3"},"One file at a time please.")),d.createElement("div",{className:"dnd-error row",id:"dnd-large-file-notification",style:{display:"none"}},d.createElement("div",{className:"col-md-6 col-md-offset-3"},"Too big a file. Can only do less than 10 MB. >_<")),d.createElement("div",{className:"dnd-error row",id:"dnd-format-notification",style:{display:"none"}},d.createElement("div",{className:"col-md-6 col-md-offset-3"},"Only FASTA files please.")))))))},componentDidMount:function(){var a=this;$(document).ready(function(){var c=$(".dnd-overlay"),d=function(a){$(".dnd-error").hide(),$("#"+a+"-notification").show(),c.effect("fade",2500)};$(document).on("dragenter",function(b){if(!$.modalActive()){var d=b.originalEvent.dataTransfer,e=d.types&&(d.types.indexOf&&d.types.indexOf("Files")!=-1||d.types.contains&&d.types.contains("application/x-moz-file"));e&&($(".dnd-error").hide(),c.stop(!0,!0),c.show(),d.effectAllowed="copy",a.state.query.isEmpty()?($(".dnd-overlay-overwrite").hide(),$(".dnd-overlay-drop").show("drop",{direction:"down"},"fast")):($(".dnd-overlay-drop").hide(),$(".dnd-overlay-overwrite").show("drop",{direction:"down"},"fast")))}}).on("dragleave",".dnd-overlay",function(a){c.hide(),$(".dnd-overlay-drop").hide(),$(".dnd-overlay-overwrite").hide()}).on("dragover",".dnd-overlay",function(a){a.originalEvent.dataTransfer.dropEffect="copy",a.preventDefault()}).on("drop",".dnd-overlay",function(e){e.preventDefault(),e.stopPropagation();var f=$("#sequence-file");a.state.query.focus();var g=e.originalEvent.dataTransfer.files;if(g.length>1)return void d("dnd-multi");var h=g[0];if(h.size>10485760)return void d("dnd-large-file");var i=new FileReader;i.onload=function(e){var g=e.target.result;b.FASTA_FORMAT.test(g)?(f.text(h.name+" "),a.state.query.value(g),c.hide()):d("dnd-format")},i.onerror=function(a){d("dnd-format")},i.readAsText(h)})})}}),g=d.createClass({displayName:"Form",getInitialState:function(){return{databases:{},preDefinedOpts:{}}},componentDidMount:function(){$.getJSON("searchdata.json",c.bind(function(a){this.setState({databases:a.database,preDefinedOpts:a.options})},this)),$(document).bind("keydown",c.bind(function(a){a.ctrlKey&&13===a.keyCode&&!$("#method").is(":disabled")&&$(this.getDOMNode()).trigger("submit")},this))},determineBlastMethod:function(){var a=this.databaseType,b=this.sequenceType;if(this.refs.query.isEmpty())return[];switch(a){case"protein":switch(b){case void 0:return["blastp","blastx"];case"protein":return["blastp"];case"nucleotide":return["blastx"]}break;case"nucleotide":switch(b){case void 0:return["tblastn","blastn","tblastx"];case"protein":return["tblastn"];case"nucleotide":return["blastn","tblastx"]}}return[]},handleSequenceTypeChanged:function(a){this.sequenceType=a,this.refs.button.setState({hasQuery:!this.refs.query.isEmpty(),hasDatabases:!!this.databaseType,methods:this.determineBlastMethod()})},handleDatabaseTypeChanaged:function(a){this.databaseType=a,this.refs.button.setState({hasQuery:!this.refs.query.isEmpty(),hasDatabases:!!this.databaseType,methods:this.determineBlastMethod()})},handleAlgoChanged:function(a){this.state.preDefinedOpts.hasOwnProperty(a)?this.refs.opts.setState({preOpts:this.state.preDefinedOpts[a].join(" ")}):this.refs.opts.setState({preOpts:""})},render:function(){return d.createElement("div",{className:"container"},d.createElement("form",{id:"blast",method:"post",className:"form-horizontal"},d.createElement("div",{className:"form-group query-container"},d.createElement(h,{ref:"query",onSequenceTypeChanged:this.handleSequenceTypeChanged})),d.createElement("div",{className:"notifications",id:"notifications"},d.createElement(j,null),d.createElement(i,null),d.createElement(k,null)),d.createElement(l,{ref:"databases",onDatabaseTypeChanged:this.handleDatabaseTypeChanaged,databases:this.state.databases}),d.createElement("div",{className:"form-group"},d.createElement(m,{ref:"opts"}),d.createElement(n,{ref:"button",onAlgoChanged:this.handleAlgoChanged}))))}}),h=d.createClass({displayName:"Query",value:function(a){return void 0!==a?(this.setState({value:a}),this):this.state.value},clear:function(){return this.value("").focus()},focus:function(){return this.textarea().focus(),this},isEmpty:function(){return!this.value()},textarea:function(){return $(this.refs.textarea.getDOMNode())},controls:function(){return $(this.refs.controls.getDOMNode())},handleInput:function(a){this.value(a.target.value)},hideShowButton:function(){if(this.isEmpty())this.textarea().parent().removeClass("has-error"),this.$sequenceFile=$("#sequence-file"),this.$sequenceFile.empty(),this.controls().addClass("hidden");else{var a=this.textarea()[0],b=a.offsetWidth-a.clientWidth;this.controls().css("right",b+17),this.controls().removeClass("hidden")}},indicateError:function(){this.textarea().parent().addClass("has-error")},indicateNormal:function(){this.textarea().parent().removeClass("has-error")},type:function a(){for(var a,b,c=this.value().split(/>.*/),d=0;d<c.length;d++)if(b=this.guessSequenceType(c[d]))if(a){if(b!==a)return"mixed"}else a=b;return a},guessSequenceType:function(a){if(a=a.replace(/[^A-Z]/gi,""),a=a.replace(/[NX]/gi,""),!(a.length<10)){for(var b=0,c=0;c<a.length;c++)a[c].match(/[ACGTU]/i)&&(b+=1);var d=.9*a.length;return b>d?"nucleotide":"protein"}},notify:function(a){clearTimeout(this.notification_timeout),this.indicateNormal(),$(".notifications .active").hide().removeClass("active"),a&&($("#"+a+"-sequence-notification").show("drop",{direction:"up"}).addClass("active"),this.notification_timeout=setTimeout(function(){$(".notifications .active").hide("drop",{direction:"up"}).removeClass("active")},5e3),"mixed"===a&&this.indicateError())},getInitialState:function(){var a=$("input#input_sequence").val()||"";return{value:a}},render:function(){return d.createElement("div",{className:"col-md-12"},d.createElement("div",{className:"sequence"},d.createElement("textarea",{id:"sequence",ref:"textarea",className:"form-control text-monospace",name:"sequence",value:this.state.value,placeholder:"Paste query sequence(s) or drag file containing query sequence(s) in FASTA format here ...",spellCheck:"false",autoFocus:"true",onChange:this.handleInput})),d.createElement("div",{className:"hidden",style:{position:"absolute",top:"4px",right:"19px"},ref:"controls"},d.createElement("button",{type:"button",className:"btn btn-sm btn-default",id:"btn-sequence-clear",title:"Clear query sequence(s).",onClick:this.clear},d.createElement("span",{id:"sequence-file"}),d.createElement("i",{className:"fa fa-times"}))))},componentDidMount:function(){$("body").click(function(){$(".notifications .active").hide("drop",{direction:"up"}).removeClass("active")})},componentDidUpdate:function(){this.hideShowButton();var a=this.type();a&&a===this._type||(this._type=a,this.notify(a),this.props.onSequenceTypeChanged(a))}}),i=d.createClass({displayName:"ProteinNotification",render:function(){return d.createElement("div",{className:"notification row",id:"protein-sequence-notification",style:{display:"none"
11
+ }},d.createElement("div",{className:"alert-info col-md-6 col-md-offset-3"},"Detected: amino-acid sequence(s)."))}}),j=d.createClass({displayName:"NucleotideNotification",render:function(){return d.createElement("div",{className:"notification row",id:"nucleotide-sequence-notification",style:{display:"none"}},d.createElement("div",{className:"alert-info col-md-6 col-md-offset-3"},"Detected: nucleotide sequence(s)."))}}),k=d.createClass({displayName:"MixedNotification",render:function(){return d.createElement("div",{className:"notification row",id:"mixed-sequence-notification",style:{display:"none"}},d.createElement("div",{className:"alert-danger col-md-10 col-md-offset-1"},"Detected: mixed nucleotide and amino-acid sequences. We can't handle that. Please try one sequence at a time."))}}),l=d.createClass({displayName:"Databases",getInitialState:function(){return{type:"",databases:[]}},databases:function(a){return a?c.select(this.props.databases,function(b){return b.type===a}):this.props.databases.slice()},nselected:function(){return $('input[name="databases[]"]:checked').length},categories:function(){return c.uniq(c.map(this.props.databases,c.iteratee("type"))).sort()},handleClick:function(a){var b=this.nselected()?a.type:"";this.setState({type:b})},handleToggle:function(a,b){switch(a){case"[Select all]":$("."+b+" .database input:not(:checked)").click();break;case"[Deselect all]":$("."+b+" .database input:checked").click()}},render:function(){return d.createElement("div",{className:"form-group databases-container"},c.map(this.categories(),this.renderDatabases))},renderDatabases:function(a){var b=a[0].toUpperCase()+a.substring(1).toLowerCase()+" databases",e=1===this.categories().length?"col-md-12":"col-md-6",f="[Select all]",g="btn btn-link",h=this.databases(a).length>1,i=this.state.type&&this.state.type!==a;return h&&i&&(g+=" disabled"),h||(g+=" hidden"),this.nselected()===this.databases(a).length&&(f="[Deselect all]"),d.createElement("div",{className:e},d.createElement("div",{className:"panel panel-default"},d.createElement("div",{className:"panel-heading"},d.createElement("h4",{style:{display:"inline"}},b),"   ",d.createElement("button",{type:"button",className:g,disabled:i,onClick:function(){this.handleToggle(f,a)}.bind(this)},f)),d.createElement("ul",{className:"list-group databases "+a},c.map(this.databases(a),c.bind(function(a){return d.createElement("li",{className:"list-group-item"},this.renderDatabase(a))},this)))))},renderDatabase:function(a){var b=this.state.type&&this.state.type!==a.type;return d.createElement("label",{className:b&&"disabled database"||"database"},d.createElement("input",{type:"checkbox",name:"databases[]",value:a.id,"data-type":a.type,disabled:b,onChange:c.bind(function(){this.handleClick(a)},this)})," "+(a.title||a.name))},componentDidUpdate:function(){this.databases()&&1===this.databases().length&&($(".databases").find("input").prop("checked",!0),this.handleClick(this.databases()[0])),this.props.onDatabaseTypeChanged(this.state.type)}}),m=d.createClass({displayName:"Options",updateBox:function(a){this.setState({preOpts:a.target.value})},getInitialState:function(){return{preOpts:""}},render:function(){return d.createElement("div",{className:"col-md-8"},d.createElement("div",{className:"form-group"},d.createElement("div",{className:"col-md-12"},d.createElement("div",{className:"input-group"},d.createElement("label",{className:"control-label",htmlFor:"advanced"},"Advanced parameters:"),d.createElement("input",{type:"text",className:"form-control",name:"advanced",id:"advanced",title:"View, and enter advanced parameters.",placeholder:"eg: -evalue 1.0e-5 -num_alignments 100",value:this.state.preOpts,onChange:this.updateBox}),d.createElement("div",{className:"input-group-addon cursor-pointer","data-toggle":"modal","data-target":"#help"},d.createElement("i",{className:"fa fa-question"}))))))}}),n=d.createClass({displayName:"SearchButton",inputGroup:function(){return $(d.findDOMNode(this.refs.inputGroup))},submitButton:function(){return $(d.findDOMNode(this.refs.submitButton))},initTooltip:function(){this.inputGroup().tooltip({trigger:"manual",title:c.bind(function(){return this.state.hasQuery||this.state.hasDatabases?this.state.hasQuery&&!this.state.hasDatabases?"You must select one or more databases above before you can run a search!":!this.state.hasQuery&&this.state.hasDatabases?"You must enter a query sequence above before you can run a search!":void 0:"You must enter a query sequence and select one or more databases above before you can run a search!"},this)}),this.submitButton().tooltip({title:c.bind(function(){var a="Click to BLAST or press Ctrl+Enter.";return this.state.methods.length>1&&(a+=" Click dropdown button on the right for other BLAST algorithms that can be used."),a},this)})},showTooltip:function(){this.inputGroup()._tooltip("show")},hideTooltip:function(){this.inputGroup()._tooltip("hide")},changeAlgorithm:function(a){var b=this.state.methods.slice();b.splice(b.indexOf(a),1),b.unshift(a),this.setState({methods:b})},decorate:function(a){return a.match(/(.?)(blast)(.?)/).slice(1).map(function(a,b){if(a)return"blast"!==a?d.createElement("strong",{key:a},a):a})},getInitialState:function(){return{methods:[],hasQuery:!1,hasDatabases:!1}},render:function(){var a=this.state.methods,b=a[0],e=a.length>1;return d.createElement("div",{className:"col-md-4"},d.createElement("div",{className:"form-group"},d.createElement("div",{className:"col-md-12"},d.createElement("div",{className:e&&"input-group",id:"methods",ref:"inputGroup",onMouseOver:this.showTooltip,onMouseOut:this.hideTooltip},d.createElement("button",{type:"submit",className:"btn btn-primary form-control text-uppercase",id:"method",ref:"submitButton",name:"method",value:b,disabled:!b},this.decorate(b||"blast")),e&&d.createElement("div",{className:"input-group-btn"},d.createElement("button",{className:"btn btn-primary dropdown-toggle","data-toggle":"dropdown"},d.createElement("span",{className:"caret"})),d.createElement("ul",{className:"dropdown-menu dropdown-menu-right"},c.map(a.slice(1),c.bind(function(a){return d.createElement("li",{key:a,className:"text-uppercase",onClick:c.bind(function(){this.changeAlgorithm(a)},this)},a)},this))))))))},componentDidMount:function(){this.initTooltip()},shouldComponentUpdate:function(a,b){return!c.isEqual(b.methods,this.state.methods)},componentDidUpdate:function(){this.state.methods.length>0?(this.inputGroup().wiggle(),this.props.onAlgoChanged(this.state.methods[0])):this.props.onAlgoChanged("")}}),d.render(d.createElement(e,null),document.getElementById("view"))}}})})(function(a){a()});
@@ -11,26 +11,27 @@ Gem::Specification.new do |s|
11
11
  s.license = 'AGPL-3.0'
12
12
 
13
13
  s.summary = 'BLAST search made easy!'
14
- s.description = <<DESC
15
- SequenceServer lets you rapidly set up a BLAST+ server with an intuitive user
16
- interface for use locally or over the web.
17
- DESC
14
+ s.description = <<~DESC
15
+ SequenceServer lets you rapidly set up a BLAST+ server with an intuitive
16
+ user interface for use locally or over the web.
17
+ DESC
18
18
 
19
19
  # dependencies
20
20
  s.required_ruby_version = '>= 2.3.0'
21
21
 
22
- s.add_dependency('sinatra', '~> 2.0', '>= 2.0.0')
23
22
  s.add_dependency('json_pure', '~> 1.8', '>= 1.8.2')
24
23
  s.add_dependency('ox', '~> 2.1', '>= 2.1.1')
24
+ s.add_dependency('sinatra', '~> 2.0', '>= 2.0.0')
25
25
  s.add_dependency('slop', '~> 3.6', '>= 3.6.0')
26
26
 
27
+ s.add_development_dependency('capybara', '~> 2.18', '>= 2.18.0')
28
+ s.add_development_dependency('codeclimate-test-reporter',
29
+ '~> 1.0', '>= 1.0.8')
30
+ s.add_development_dependency('rack-test', '~> 1.0', '>= 1.0.0')
27
31
  s.add_development_dependency('rake', '~> 10.3', '>= 10.3.2')
28
- s.add_development_dependency('rspec', '~> 3.7', '>= 3.7.0')
29
- s.add_development_dependency('capybara', '~> 2.18', '>= 2.18.0')
30
- s.add_development_dependency('rack-test', '~> 1.0', '>= 1.0.0')
32
+ s.add_development_dependency('rspec', '~> 3.7', '>= 3.7.0')
31
33
  s.add_development_dependency('sauce_whisk', '~> 0.0', '>= 0.0.19')
32
34
  s.add_development_dependency('selenium-webdriver', '~> 3.11', '>= 3.11.0')
33
- s.add_development_dependency('codeclimate-test-reporter', '~> 1.0', '>= 1.0.8')
34
35
 
35
36
  # gem
36
37
  s.files = `git ls-files`.split("\n") - ['Gemfile', 'Gemfile.lock']
@@ -38,18 +39,18 @@ DESC
38
39
  s.require_paths = ['lib']
39
40
 
40
41
  # post install information
41
- s.post_install_message = <<INFO
42
+ s.post_install_message = <<~INFO
42
43
 
43
- ------------------------------------------------------------------------
44
- Thank you for installing SequenceServer :)!
44
+ ------------------------------------------------------------------------
45
+ Thank you for installing SequenceServer :)
45
46
 
46
- To launch SequenceServer execute 'sequenceserver' from command line.
47
+ To launch SequenceServer execute 'sequenceserver' from command line.
47
48
 
48
- $ sequenceserver
49
+ $ sequenceserver
49
50
 
50
51
 
51
- Visit http://sequenceserver.com for more.
52
- ------------------------------------------------------------------------
52
+ Visit http://sequenceserver.com for more.
53
+ ------------------------------------------------------------------------
53
54
 
54
- INFO
55
+ INFO
55
56
  end