statebus-rails 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 409ed97e13e69427ac863cc1efa7d2de992bad6c471258c1a8a8e2cedeabe0a1
4
+ data.tar.gz: 5bb49e564c29eb46ce40ae9145ab8a16fbb6c52d44daa76913475e81cf8c194b
5
+ SHA512:
6
+ metadata.gz: 86a90c3f34d9982d7a62206215c800ec5a816759ec44e87c51b8aa3c94a9d9da32e8d9ef0e76f00d99f207ea61e8edaaa34b6a189260b468b67248a78f4b3657
7
+ data.tar.gz: b4ee22dc154639032e037ec7a1679def388e7e8d404128ba308772687c24e9ca0562ec1c0958ef8f5701d41b1f681458c303127583570bcea539da622071f384
@@ -0,0 +1,6 @@
1
+ module StatebusRails
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,13 @@
1
+ !function(e,t){"undefined"!=typeof module?module.exports=t():"function"==typeof define&&"object"==typeof define.amd?define(t):this.statebus=t()}(0,function(){function make_bus(options){function fetch(e,t){if("string"!=typeof(e=e.key||e))throw"Error: fetch(key) called with a non-string key: "+e;bogus_check(e);var n=!t,o=t||executing_funk;t&&((t.defined=t.defined||[]).push({as:"fetch callback",key:e}),t.has_seen=t.has_seen||function(e,n,o){t.seen_keys=t.seen_keys||{};var r=JSON.stringify([e.id,n]);(t.seen_keys[r]=t.seen_keys[r]||[]).push(o),versions.length>50&&versions.shift()}),n&&o.has_seen(bus,e,versions[e]),fetches_in.add(e,funk_key(o)),to_be_forgotten[e]&&(clearTimeout(to_be_forgotten[e]),delete to_be_forgotten[e]),bind(e,"on_save",o);var r=0;if(fetches_out[e]||(r=bus.route(e,"to_fetch",e)),n)return backup_cache[e]=backup_cache[e]||{key:e},cache[e]=cache[e]||{key:e};pending_fetches[e]||0!==r||(backup_cache[e]=backup_cache[e]||{key:e},run_handler(o,"on_save",cache[e]=cache[e]||{key:e}))}function fetch_once(e,t){function n(o){t(o),forget(e,n)}fetch(e,n)}function save(e,t){if("string"==typeof e&&t&&t.patch&&("string"==typeof t.patch&&(t.patch=[t.patch]),e=apply_patch(bus.cache[e]||{key:e},t.patch[0])),"key"in e&&"string"==typeof e.key||console.error("Error: save(obj) called on object without a key: ",e),bogus_check(e.key),t=t||{},t.version=t.version||new_version(),executing_funk!==global_funk&&executing_funk.loading())return void abort_changes([e.key]);if(honking_at(e.key))var n=save_msg(e,t,"save");if(e.key&&!changed(e))return void statelog(e.key,grey,"x",n);statelog(e.key,red,"o",n);try{statelog_indent++;var o=currently_saving;currently_saving=e.key;0===bus.route(e.key,"to_save",e,t)&&(save.fire(e,t),bus.route(e.key,"on_set_sync",e,t))}finally{statelog_indent--,currently_saving=o}}function fire(e,t){if(t=t||{},t.version=t.version||new_version(),e.key&&honking_at(e.key)){var n,o,r=save_msg(e,t,"save.fire");if(currently_saving!==e.key||e.key&&!changed(e)){if(e.key&&!changed(e))return n=grey,o="x",t.to_fetch&&(r=t.m||"Fetched "+bus+"('"+e.key+"')"),t.version&&(r+=" ["+t.version+"]"),void statelog(e.key,n,o,r);n=red,o="•",(t.to_fetch||pending_fetches[e.key])&&(n=green,o="^",r=add_diff_msg(t.m||"Fetched "+bus+"('"+e.key+"')",e),t.version&&(r+=" ["+t.version+"]")),statelog(e.key,n,o,r)}else statelog_indent--,statelog(e.key,red,"•","↵"+(t.version?"\t\t\t["+t.version+"]":"")),statelog_indent++}var i=update_cache(e,cache);if(delete pending_fetches[e.key],executing_funk!==global_funk&&executing_funk.loading())abort_changes(i);else{update_cache(e,backup_cache);for(var a=0;a<i.length;a++){var s=i[a];versions[s];versions[s]=t.version,mark_changed(s,t)}}}function new_version(){return(bus.label||id+" ")+(version_count++).toString(36)}function bus(e){if("function"==typeof e){var t=reactive(e);return t(),t}return subspace(e)}function update_cache(e,t){function n(e){if(Array.isArray(e))e=e.slice();else if("object"==typeof e&&e&&(!e.key||t[e.key]!==e)){var n={};for(var r in e)n[r]=e[r];e=n}if((nodejs?global:window).pointerify&&e&&e._key)Object.keys(e).length>1&&console.error("Got a {_key: ...} object with additional fields"),e=bus.cache[e._key]=bus.cache[e._key]||{key:e._key};else if(e&&e.key){if(bogus_check(e.key),t!==backup_cache&&(changed(e)?o.add(e.key):log("Boring modified key",e.key)),t[e.key]){if(e!==t[e.key]){for(var r in e)t[e.key][r]!==e[r]&&(t[e.key][r]=e[r]);for(var r in t[e.key])e.hasOwnProperty(r)||delete t[e.key][r]}}else t[e.key]=e;e=t[e.key]}return e}var o=new Set;return deep_map(e,n),o.values()}function changed(e){return pending_fetches[e.key]||!cache.hasOwnProperty(e.key)||!backup_cache.hasOwnProperty(e.key)||!deep_equals(e,backup_cache[e.key])}function abort_changes(e){for(var t=0;t<e.length;t++)update_cache(backup_cache[e[t]],cache)}function forget(e,t){if(0===arguments.length)return console.assert(executing_funk!==global_funk,"forget() with no arguments forgets the currently executing reactive function.\nHowever, there is no currently executing reactive function."),void executing_funk.forget();bogus_check(e),t=t||executing_funk;var n=funk_key(t);if(!fetches_in.has(e,n))return console.error("***\n****\nTrying to forget lost key",e,"from",funk_name(t),n,"that hasn't fetched that key.",funks[fetches_in.get(e)[0]],funks[fetches_in.get(e)[0]]&&funks[fetches_in.get(e)[0]].statebus_id),void console.trace();fetches_in.delete(e,n),unbind(e,"on_save",t),fetches_in.has_any(e)||(clearTimeout(to_be_forgotten[e]),to_be_forgotten[e]=setTimeout(function(){bus.route(e,"to_forget",e),delete fetches_out[e],delete to_be_forgotten[e]},200))}function del(e){if(e=e.key||e,bogus_check(e),executing_funk!==global_funk&&executing_funk.loading())return void abort_changes([e]);statelog(e,yellow,"v","Deleting "+e),0===bus.route(e,"to_delete",e)&&delete cache[e]}function dirty(e,t){statelog(e,brown,"*",bus+".dirty('"+e+"')"),bogus_check(e);var n=!1;if(fetches_out.hasOwnProperty(e))for(var o=0;o<fetches_out[e].length;o++)dirty_fetchers.add(funk_key(fetches_out[e][o])),n=!0;clean_timer=clean_timer||setTimeout(clean),!n&&cache.hasOwnProperty(e)&&mark_changed(e,t)}function mark_changed(e,t){log("Marking changed",bus,e),changed_keys.add(e),clean_timer=clean_timer||setTimeout(clean)}function clean(){var e=new Set;for(var t in busses)for(var n=busses[t].rerunnable_funks(),o=0;o<n.length;o++)e.add(n[o]);clean_timer=null,e=e.values(),log("Cleaning up",e.length,"funks");for(var o=0;o<e.length;o++){var r=funks[e[o]].proxies_for;r&&r.priority&&(log("Clean-early:",funk_name(funks[e[o]])),funks[e[o]].react(),e.splice(o,1),o--)}for(var o=0;o<e.length;o++)log("Clean:",funk_name(funks[e[o]])),!bus.render_when_loading&&funks[e[o]].loading()||funks[e[o]].react()}function rerunnable_funks(){for(var e=[],t=changed_keys.values(),n=dirty_fetchers.values(),o=0;o<t.length;o++)for(var r=bindings(t[o],"on_save"),i=0;i<r.length;i++){var a=r[i].func;if(a.react){var s=a.fetched_keys[JSON.stringify([this.id,t[o]])];if(s&&-1!==s.indexOf(versions[t[o]])){log("skipping",funk_name(a),"already at version",versions[t[o]],"proof:",s);continue}}else{a.seen_keys=a.seen_keys||{};var s=a.seen_keys[JSON.stringify([this.id,t[o]])];if(s&&-1!==s.indexOf(versions[t[o]]))continue;autodetect_args(a),a=run_handler(a,"on_save",cache[t[o]],{dont_run:!0,binding:t[o]})}e.push(funk_key(a))}for(var o=0;o<n.length;o++)e.push(n[o]);return changed_keys.clear(),dirty_fetchers.clear(),e}function subspace(e){var t={};for(var n in{to_fetch:null,to_save:null,on_save:null,on_set_sync:null,to_delete:null,to_forget:null})!function(n){Object.defineProperty(t,n,{set:function(t){autodetect_args(t),t.defined=t.defined||[],t.defined.push({as:"handler",bus:bus,method:n,key:e}),bind(e,n,t,"allow_wildcards")},get:function(){for(var t=bindings(e,n),o=0;o<t.length;o++)t[o]=t[o].func;return t.delete=function(t){unbind(e,n,t,"allow_wildcards")},t}})}(n);return t}function autodetect_args(e){if(!e.args){var t=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,n=/([^\s,]+)/g,o=e.toString().replace(t,"");n=o.slice(o.indexOf("(")+1,o.indexOf(")")).match(n)||[],e.args={};for(var r=0;r<n.length;r++)switch(n[r]){case"key":case"k":e.args.key=r;break;case"json":case"vars":e.args.vars=r;break;case"star":case"rest":e.args.rest=r;break;case"t":case"transaction":e.args.t=r;break;case"o":case"obj":case"val":case"new":case"New":e.args.obj=r;break;case"old":e.args.old=r}}}function bind(e,t,n,o){bogus_check(e),o&&"*"===e[e.length-1]?wildcard_handlers.push({prefix:e,method:t,funk:n}):handlers.add(t+" "+e,funk_key(n))}function unbind(e,t,n,o){if(bogus_check(e),o&&"*"===e[e.length-1])for(var r=0;r<wildcard_handlers.length;r++){var i=wildcard_handlers[r];i.prefix===e&&i.method===t&&i.funk===n&&(wildcard_handlers.splice(r,1),r--)}else handlers.delete(t+" "+e,funk_key(n))}function bindings(e,t){bogus_check(e),"string"!=typeof e&&(console.error("Error:",e,"is not a string",t),console.trace());for(var n=[],o={},r=handlers.get(t+" "+e),i=0;i<r.length;i++){var a=funks[r[i]];o[funk_key(a)]||(a.statebus_binding={key:e,method:t},n.push({method:t,key:e,func:a}),o[funk_key(a)]=!0)}for(var i=0;i<wildcard_handlers.length;i++){handler=wildcard_handlers[i];var s=handler.prefix.slice(0,-1);s!==e.substr(0,s.length)||t!==handler.method||o[funk_key(handler.funk)]||(handler.funk.statebus_binding={key:handler.prefix,method:t},n.push({method:t,key:handler.prefix,func:handler.funk}),o[funk_key(handler.funk)]=!0)}return n}function run_handler(e,t,n,o){function r(){return"string"==typeof n.key?n.key:n}function i(){return r().substr(l.length-1)}function a(){var e=i();try{return JSON.parse(e)}catch(t){return'Bad JSON "'+e+'" for key '+r()}}function s(){h.forget(),unbind(f,"to_forget",s)}o=o||{};var c=o.t,u=o.dont_run,l=o.binding,p=e.react&&e,d=!p&&e;console.assert(p||d);if(p)return"on_save"!==t?void console.error("on_save"===t,"Funk is being re-triggered, but isn't on_save. It is: \""+t+'", oh and funk: '+funk_name(p)):p.react();var h=reactive(function(){c=clone(c||{}),t in{to_save:1,to_delete:1}&&(c.abort=function(){var e="to_save"===t?n.key:n;h.loading()||(bus.cache[e]=bus.cache[e]||{key:e},bus.backup_cache[e]=bus.backup_cache[e]||{key:e},bus.save.abort(bus.cache[e]))}),"to_forget"!==t&&(c.done=function(e){var o="to_save"===t?n.key:n;bus.log("We are DONE()ing",t,o,e||n),e&&(c.version=new_version()),"to_delete"===t?delete bus.cache[o]:"to_save"===t?(bus.save.fire(e||n,c),bus.route(o,"on_set_sync",e||n,c)):(e.key=o,bus.save.fire(e,c),delete c.version)}),c.return=c.done,"to_save"===t&&(c.refetch=function(){bus.dirty(n.key)});var e=[];e[0]=n,e[1]=c;for(var o in d.args||{})switch(o){case"key":e[d.args[o]]=r();break;case"rest":e[d.args[o]]=i();break;case"vars":e[d.args[o]]=a();break;case"t":e[d.args[o]]=c;break;case"obj":e[d.args[o]]=n.key?n:bus.cache[n];break;case"old":var s=r();e[d.args[o]]=bus.cache[s]||(bus.cache[s]={key:s})}var u=d.apply(null,e);if(console.assert(!("to_fetch"===u&&("done"===u||"abort"===u)),'Returning "done" or "abort" is not allowed from to_fetch handlers'),"done"===u&&c.done(),"abort"===u&&c.abort(),"to_fetch"===t&&u instanceof Object&&!h.loading()){u.key=n;var l=clone(c||{});return l.to_fetch=!0,save.fire(u,l),u}"to_fetch"===t||h.loading()||h.forget()});if(h.proxies_for=d,h.arg=n,"to_fetch"===t){var f=n;bind(f,"to_forget",s),fetches_out[f]=fetches_out[f]||[],fetches_out[f].push(h),pending_fetches[f]=h}return u?h:h()}function reactive(e){function t(){console.assert(executing_funk===global_funk||executing_funk!==t,"Recursive funk",t.func),t.called_directly&&(t.this=this,t.args=arguments),t.forget();var n=executing_funk;executing_funk=t;try{var o=e.apply(t.this,t.args)}catch(n){if("Maximum call stack size exceeded"===n.message&&(console.error(n),process.exit()),t.loading())return null;if(nodejs)console.error(n.stack),process.exit();else{var o=e.apply(t.this,t.args);console.error("Non-deterministic Error!",n.stack||n),console.warn("A non-deterministic error is when your reactive function triggers an error only some of the times it's called.\nThe error originated from calling:",funk_name(e,400))}}finally{executing_funk=n}return o}return t.func=e,t.called_directly=!0,t.fetched_keys={},t.abortable_keys=[],t.has_seen=function(e,t,n){var o=JSON.stringify([e.id,t]);(this.fetched_keys[o]=this.fetched_keys[o]||[]).push(n),versions.length>10&&versions.shift()},t.react=function(){var e;try{t.called_directly=!1,e=t()}finally{t.called_directly=!0}return e},t.forget=function(){if("global funk"!==t.statebus_id){for(var e in t.fetched_keys){var n=JSON.parse(e),o=busses[n[0]],r=n[1];o&&o.forget(r,t)}t.fetched_keys={}}},t.loading=function(){for(var e in t.fetched_keys){var n=JSON.parse(e),o=busses[n[0]],r=n[1];if(o&&o.pending_fetches[r])return!0}return!1},t.is_loading=t.loading,t}function loading_keys(e){for(var t=0;t<e.length;t++)if(pending_fetches[e[t]])return!0;return!1}function loading(){return executing_funk.loading()}function once(e){var t=reactive(function(){e(),t.loading()||t.forget()});t()}function add_diff_msg(e,t){var n=sorta_diff(backup_cache[t.key],t);if(n){for(var o=e.length+2+3*statelog_indent,r=0;r<40-o;r++)e+=" ";e+=n.substring(0,80)}else e+=" <no diff>";return e}function save_msg(e,t,n){if(honking_at(e.key)){var o=t&&t.m||bus+"."+n+"('"+e.key+"')";return o=add_diff_msg(o,e),t.version&&(o+=" ["+t.version+"]"),o}}function uncallback(e,t){if(name=t&&t.name||e.name||uncallback_counter+"",!name)throw"Uncallback function needs a name";var n={},o="uncallback/"+name;return bus(o+"/*").to_fetch=function(o,r){function i(e,t){if(e)throw console.trace("have err:",e,"and result is",JSON.stringify(t)),e;bus.save.fire({key:o,_:t})}var a=r;a[t.callback_at||a.length]=i,e.apply({key:o},a),t.start_watching&&!n[o]&&(n[o]=!0,t.start_watching(a,function(){bus.dirty(o)},function(){bus.del(o)}))},t.stop_watching&&(bus(o+"/*").to_forget=function(e,o){console.assert(n[e],"Forgetting a watcher for "+JSON.stringify(e)+" that is not enabled"),delete n[e],t.stop_watching(o)}),function(){var e=[].slice.call(arguments);return bus.fetch(o+"/"+JSON.stringify(e))._}}function unpromise(e){return uncallback(function(){var t=[].slice.call(arguments),n=t.pop();e.apply(null,t).then(n)})}function pget(e,t,n){if(e?"object"==typeof(t=t[n])&&"key"in t&&(e=t,bus.fetch(t.key)):(t=bus.fetch(n),e=t,bus.validate(t,{key:"*","?_":"*"})&&(t=t._),"object"==typeof t&&t.key&&(e=t)),"object"==typeof t&&"key"in t&&"_"in t){var o=pget(e,t,"_");e=o[0],t=o[1]}return[e,t]}function proxy_encode_val(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t[n]=proxy_encode_val(e[n]);return t}if("object"==typeof e){var t={};for(var o in e)t[encode_field(o)]=proxy_encode_val(e[o]);return t}return"function"==typeof e&&e[symbols.is_proxy]?e():e}function proxy_decode_json(e){if(bus.validate(e,{key:"*",_:"*"}))return proxy_decode_json(e._);if(Array.isArray(e)){for(var t=e.slice(),n=0;n<t.length;n++)t[n]=proxy_decode_json(t[n]);return t}if("object"==typeof e&&null!==e){var o={};for(var r in e)"key"!==r&&(o[decode_field(r)]=proxy_decode_json(e[r]));return o}return e}function make_proxy(e,t){function n(){return e&&e._&&2===Object.keys(e).length&&e._===t?e:t}if(symbols||(symbols={is_proxy:Symbol("is_proxy"),get_json:Symbol("get_json"),get_base:Symbol("get_base")}),"object"!=typeof t||null===t)return t;var o=function(){};return new Proxy(o,{get:function(o,r){if(nodejs&&r===util.inspect.custom)return t==bus.cache?function(){return"state"+bus.toString().substr(3)}:function(){return"p: "+util.format(proxy_decode_json(t))};if(r in bogus_keys)return t[r];if(r===symbols.is_proxy)return!0;if(r===symbols.get_json)return n();if(r===symbols.get_base)return e;if(r===Symbol.isConcatSpreadable)return Array.isArray(t);if(r===Symbol.toPrimitive)return function(){return JSON.stringify(proxy_decode_json(t))};if("symbol"==typeof r)return void console.warn("Got request for weird symbol",r);var i=pget(e,t,encode_field(r));return make_proxy(i[0],i[1])},set:function(n,o,r){if(e){var i=t[encode_field(o)]=proxy_encode_val(r);if(e._&&2===Object.keys(e).length&&"object"==typeof e._&&null!==e._&&!Array.isArray(e._)&&!e._.key&&0!==Object.keys(e._).length){for(var a in e._)e[a]=e._[a];delete e._}bus.save(e)}else{var i=proxy_encode_val(r);void 0===r?i={key:o}:("object"==typeof r&&r[symbols.is_proxy]||"object"==typeof r&&0===Object.keys(r).length||"object"!=typeof r||null===r||Array.isArray(r))&&(i={_:i}),i.key=o,bus.save(i)}i&&i.key;return!0},has:function(e,n){return t.hasOwnProperty(encode_field(n))},deleteProperty:function(n,o){e?(delete t[encode_field(o)],1===Object.keys(t).length&&t.key&&(t._={}),bus.save(e)):bus.delete(encode_field(o))},apply:function(e,t,o){return n()}})}function get_domain(e){var t=e.match(/^i?statei?\:\/\/(([^:\/?#]*)(?:\:([0-9]+))?)/);return t&&t[0]}function message_method(e){return e.fetch&&"fetch"||e.save&&"save"||e.delete&&"delete"||e.forget&&"forget"}function net_mount(e,t,n){function o(e){nodejs?console.log(e):console.log("%c"+e,"color: blue")}function r(e,t){t=t||"push",e=u(e);var n=message_method(e);"fetch"!=n&&"delete"!=n&&"forget"!=n||(e[n]=s(e[n])),g.log("net_mount.send:",JSON.stringify(e)),y[t](JSON.stringify(e)),i()}function i(){if(1===p.readyState)for(;y.length>0;)p.send(y.shift());else setTimeout(i,400)}function a(e){return f.test(e)?e:h+e}function s(e){return m.test(e)?e.substr(h.length):e}function c(e){return g.translate_keys(g.clone(e),a)}function u(e){return g.translate_keys(g.clone(e),s)}function l(){o("[ ] trying to open "+t),p=g.make_websocket(t),p.onopen=function(){function e(e){c.push(JSON.stringify({save:e}))}o("[*] opened "+t);var a=g.fetch("peers");a[t]=a[t]||{},a[t].connected=!0,save(a);var s=n||g.client_creds&&g.client_creds(t);if(s){var c=[];s.clientid&&e({key:"current_user",client:s.clientid}),s.name&&s.pass&&e({key:"current_user",login_as:{name:s.name,pass:s.pass}}),s.private_key&&s.public_key,y=c.concat(y),i()}if(v>0)for(var u=b.values(),c=0;c<u.length;c++)r({fetch:u[c]});v=0},p.onclose=function(){if(_)return void o("[*] closed "+t+". Goodbye!");o("[*] closed "+t),d&&clearInterval(d),d=null,setTimeout(l,v++<3?1500:5e3);var e=g.fetch("peers");e[t]=e[t]||{},e[t].connected=!1,save(e);for(var n=[],r={fetch:1,forget:1},i=0;i<y.length;i++)r[JSON.parse(y[i]).method]||n.push(y[i]);y=n},p.onmessage=function(e){try{var n=JSON.parse(e.data),o=message_method(n);if("save"!==o&&"pong"!==o)throw"barf";g.log("net client received",n);var r={version:n.version,parents:n.parents,patch:n.patch};r.patch&&(msg.save=apply_patch(g.cache[msg.save]||{key:msg.save},n.patch[0])),r.version||r.parents||r.patch||(r=void 0),g.save.fire(c(n.save),r)}catch(n){return void console.error("Received bad network message from "+t+": ",e.data,n)}}}var p,d,h=e.slice(0,-1),f=/^i?statei?:\/\//,m=new RegExp("^"+h),g=this,v=0,y=[],b=new g.Set;"/"==t[t.length-1]&&(t=t.substr(0,t.length-1)),g(e).to_save=function(e,t){g.save.fire(e);var n={save:e};t.version&&(n.version=t.version),t.parents&&(n.parents=t.parents),t.patch&&(n.patch=t.patch),t.patch&&(n.save=s(n.save.key)),r(n)},g(e).to_fetch=function(e){r({fetch:e}),b.add(e)},g(e).to_forget=function(e){r({forget:e}),b.delete(e)},g(e).to_delete=function(e){r({delete:e})},l();var _=!1;return{send:r,sock:p,close:function(){_=!0,p.close()}}}function net_automount(){var e=this,t=e.route,n={};e.route=function(o,r,i,a){var s=get_domain(o);return s&&!n[s]&&(e.net_mount(s+"/*",s),n[s]=!0),t(o,r,i,a)}}function translate_keys(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)translate_keys(e[n],t);else if("object"==typeof e)for(var o in e){if("key"===o||/.*_key$/.test(o))if("string"==typeof e[o])e[o]=t(e[o]);else if(Array.isArray(e[o]))for(var n=0;n<e[o].length;n++)"string"==typeof e[o][n]&&(e[o][n]=t(e[o][n]));translate_keys(e[o],t)}return e}function encode_field(e){return e.replace(/(_(keys?|time)?$|^key$)/,"$1_")}function decode_field(e){return e.replace(/(_$)/,"")}function json_encode(e){}function json_decode(e){}function key_id(e){return e.match(/\/?[^\/]+\/(\d+)/)[1]}function key_name(e){return e.match(/\/?([^\/]+).*/)[1]}function apply_patch(e,t){function n(e){return"-"===e[0]?s.length-parseInt(e.substr(1)):parseInt(e)}e=bus.clone(e);for(var o=t.match(/(.*) = (.*)/),r=o[1],i=JSON.parse(o[2]),a=/^(\.([^\.\[]+))|(\[((-?\d+):)?(-?\d+)\])/,s=e,c=null;;){var u=a.exec(r),l=u[0],p=u[2],d=u[5],h=u[6];if(d=d&&n(d),h=h&&n(h),r.length==l.length){if(p)s[p]=i;else if("string"==typeof s){if(console.assert("string"==typeof i),d||(d=h,h+=1),!c)return e.slice(0,d)+i+e.slice(h);var f=c[last_field];c[last_field]=f.slice(0,d)+i+f.slice(h)}else d?[].splice.apply(s,[d,h-d].concat(i)):(console.assert(h>=0,"Index "+l+" is too small"),console.assert(h<=s.length-1,"Index "+l+" is too big"),s[h]=i);return e}console.assert(!d,"No splices allowed in middle of path"),c=s,last_field=p,s=s[p||h],r=r.substr(l.length)}}function parse(e){try{return JSON.parse(e)}catch(e){return{}}}function One_To_Many(){var e=this.hash={},t={};this.get=function(t){return Object.keys(e[t]||{})},this.add=function(n,o){void 0===e[n]&&(e[n]={}),void 0===t[n]&&(t[n]=0),e[n][o]||t[n]++,e[n][o]=!0},this.delete=function(n,o){delete e[n][o],t[n]--},this.delete_all=function(n){delete e[n],delete t[n]},this.has=function(t,n){return e[t]&&e[t][n]},this.has_any=function(e){return t[e]},this.del=this.delete}function Set(){var e={};this.add=function(t){e[t]=!0},this.has=function(t){return t in e},this.values=function(){return Object.keys(e)},this.delete=function(t){delete e[t]},this.clear=function(){e={}},this.del=this.delete,this.all=this.values}function clone(e){if(!e||e instanceof Number||e instanceof String||e instanceof Boolean)return e;if(Array.isArray(e)){e=e.slice();for(var t=0;t<e.length;t++)e[t]=clone(e[t]);return e}if("object"==typeof e){if(e.nodeType&&"function"==typeof e.cloneNode)return e.cloneNode(!0);if(e instanceof Date)return new Date(e);var n={};for(var t in e)n[t]=clone(e[t]);return n}return e}function extend(e,t){if(void 0===t)return e;for(var n in t)e.hasOwnProperty(n)&&(e[n]=t[n]);return e}function deep_map(e,t){if(e=t(e),Array.isArray(e))for(var n=0;n<e.length;n++)e[n]=deep_map(e[n],t);else if("object"==typeof e)for(var o in e)e[o]=deep_map(e[o],t);return e}function deep_equals(e,t){if(e===t||isNaN(e)&&isNaN(t)&&"number"==typeof e&&"number"==typeof t)return!0;var n=Array.isArray(e);if(n!==Array.isArray(t))return!1;if(n){if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(!deep_equals(e[o],t[o]))return!1;return!0}var r=e&&"object"==typeof e;if(r!==(t&&"object"==typeof t))return!1;if(r){var i=0,a=0;for(var s in e)if(i++,!deep_equals(e[s],t[s]))return!1;for(var s in t)a++;return i===a}return!1}function sorta_diff(e,t){if(e===t||isNaN(e)&&isNaN(t)&&"number"==typeof e&&"number"==typeof t)return null;var n=Array.isArray(e);if(n!==Array.isArray(t))return" = "+JSON.stringify(t);if(n){if(e.length===t.length-1&&!deep_equals(e[e.length],t[t.length]))return".push("+JSON.stringify(t[t.length])+")";for(var o=0;o<e.length;o++){var r=sorta_diff(e[o],t[o]);if(r)return"["+o+"] = "+r}return null}var i=e&&"object"==typeof e;if(i!==(t&&"object"==typeof t))return" = "+JSON.stringify(t);if(i){for(var a in e){var r=sorta_diff(e[a],t[a]);if(r)return"."+a+r}for(var a in t)if(!e.hasOwnProperty(a))return"."+a+" = "+JSON.stringify(t[a]);return null}return" = "+JSON.stringify(t)}function prune(e){function t(e){if(Array.isArray(e))for(var o=0;o<e.length;o++)e[o]=t(e[o]);else if("object"==typeof e){if(null!==e&&e.key)return n.fetch(e.key);for(var r in e)e[r]=t(e[r])}return e}var n=this;e=n.clone(e);for(var o in e)e[o]=t(e[o]);return e}function validate(e,t){if("*"===t)return!0;if(e===t)return!0;if("string"==typeof e)return"string"===t;if("number"==typeof e)return"number"===t;if("boolean"==typeof e)return"boolean"===t;if(null===e)return"null"===t;if(void 0===e)return"undefined"===t;if(Array.isArray(e))return"array"===t;if("object"==typeof e){if("object"===t)return!0;if("object"==typeof t){for(var n in e){var o;if(t.hasOwnProperty(n))o=n;else if(t.hasOwnProperty("?"+n))o="?"+n;else{if(!t.hasOwnProperty("*"))return!1;o="*"}if(!validate(e[n],t[o]))return!1}for(var n in t)if("?"!==n[0]&&"*"!==n&&!e.hasOwnProperty(n))return!1;return!0}return!1}if("function"==typeof e)throw"bus.validate() cannot validate functions";throw console.trace(),"You hit a Statebus bug! Tell the developers!"}function funk_key(e){return e.statebus_id||(e.statebus_id=Math.random().toString(36).substring(7),funks[e.statebus_id]=e),e.statebus_id}function funk_keyr(e){for(;e.proxies_for;)e=e.proxies_for;return funk_key(e)}function funk_name(e,t){t=t||30;var n=e.react?e.args&&e.args[0]:"";n=e.react?(JSON.stringify(e.arg)||"").substring(0,30):"",e=e.proxies_for||e;var o="function "+(e.name||"")+"("+(n||"")+") {..}";if(!e.defined)return o;if(e.defined.length>1)return"**"+o+"**";var r=e.defined[0];switch(r.as){case"handler":return r.bus+"('"+r.key+"')."+r.method+" = "+o;case"fetch callback":return"fetch("+r.key+", "+o+")";case"reactive":return"reactive('"+o+"')";default:return"UNKNOWN Funky Definition!!!... ???"}}function deps(e){var t="Deps: ("+e+") fires into:",n=bindings(e,"on_save");0===n.length&&(t+=" nothing");for(var o=0;o<n.length;o++)t+="\n "+funk_name(n[o].func);return t}function log(){!0===bus.honk&&indented_log.apply(null,arguments)}function indented_log(){if(nodejs){for(var e="",t=0;t<statelog_indent;t++)e+=" ";console.log(e+require("util").format.apply(null,arguments).replace(/\n/g,"\n"+e))}else console.log.apply(console,arguments)}function statelog(e,t,n,o){honking_at(e)&&indented_log(t+n+" "+o+normal)}function honking_at(e){return bus.honk instanceof RegExp?bus.honk.test(e):bus.honk}function bogus_check(e){if(e in bogus_keys){var t='Sorry, statebus.js currently prohibits use of the key "'+e+'", and in fact all of these keys: '+Object.keys(bogus_keys).join(", ")+'. This is because Javascript is kinda lame, and even empty objects like "{}" have the "'+e+'" field defined on them. Try typing this in your Javascript console: "({}).constructor" -- it returns a function instead of undefined! We could work around it by meticulously replacing every "obj[key]" with "obj.hasOwnProperty(key) && obj[key]" in the statebus code, but that will make the source more difficult to understand. So please contact us if this use-case is important for you, and we\'ll consider doing it. We\'re hoping that, for now, our users don\'t need to use these keys.';throw console.error(t),"Invalid key"}}fetch.once=fetch_once;var pending_fetches={},fetches_out={},fetches_in=new One_To_Many,currently_saving;save.fire=fire,save.abort=function(e,t){e||console.error("No obj",e),abort_changes([e.key]),statelog(e.key,yellow,"<","Aborting "+e.key),mark_changed(e.key,t)};var version_count=0,id="bus "+Math.random().toString(36).substring(7);bus.toString=function(){return bus.label||id},bus.delete_bus=function(){delete busses[bus.id]};var cache={},backup_cache={},versions={},changed_keys=new Set,dirty_fetchers=new Set,handlers=new One_To_Many,wildcard_handlers=[],to_be_forgotten={};if(bus.route=function(e,t,n,o){var r=bus.bindings(e,t);r.length&&log("route:",bus+'("'+e+'").'+t+"["+r.length+'](key:"'+(n.key||n)+'")');for(var i=0;i<r.length;i++)bus.run_handler(r[i].func,t,n,{t:o,binding:r[i].key});return r.length},global_funk||(global_funk=reactive(function(){}),global_funk.global_funk=!0,executing_funk=global_funk,funks[global_funk.statebus_id="global funk"]=global_funk),bus.default=function(){bus.deep_map(arguments,function(e){return e.key&&!bus.cache.hasOwnProperty(e.key)&&(bus.cache[e.key]=e),e})},nodejs)var red="",normal="",grey="",green="",brown="",yellow="";else var red="",normal="",grey="",green="",brown="";var uncallback_counter=0,sb=function(){function e(t,n){return"number"==typeof n||"string"==typeof n||"boolean"==typeof n||void 0===n||null===n||"function"==typeof n?n:new Proxy(n,{get:function(n,o){if("inspect"!==o&&"valueOf"!==o&&"symbol"!=typeof o)return o=encode_field(o),e(t,n[o])},set:function(e,n,o){var r=e[encode_field(n)]=o;return bus.save(t),r},has:function(e,t){return e.hasOwnProperty(encode_field(t))},deleteProperty:function(e,t){delete e[encode_field(t)]},apply:function(e,t,n){return e}})}return new Proxy(cache,{get:function(t,n){if(n in bogus_keys)return t[n];if("inspect"!==n&&"valueOf"!==n&&"symbol"!=typeof n){for(var o=bus.fetch(n),r=o;"object"==typeof r&&"_"in r;)r=r._;return e(o,r)}},set:function(e,t,n){n="number"==typeof n||"string"==typeof n||"boolean"==typeof n||void 0===n||null===n||"function"==typeof n||Array.isArray(n)?{_:n}:bus.clone(n),n.key=t,bus.save(n)},deleteProperty:function(e,t){bus.delete(encode_field(t))}})}(),strict_mode=function(){return!this}();if(nodejs)var util=require("util");if(nodejs||window.Proxy)var state=make_proxy(null,cache);nodejs||(window.devtoolsFormatters=[{header:function(e){return e[symbols.is_proxy]&&["span",{style:"background-color: #feb; padding: 3px;"},JSON.stringify(proxy_decode_json(e()))]},hasBody:function(e){return!1}}]);for(var bogus_keys={constructor:1,hasOwnProperty:1,isPrototypeOf:1,propertyIsEnumerable:1,toLocaleString:1,toString:1,valueOf:1,__defineGetter__:1,__defineSetter__:1,__lookupGetter__:1,__lookupSetter__:1,__proto__:1},api=["cache backup_cache fetch save forget del fire dirty fetch_once","subspace bindings run_handler bind unbind reactive uncallback","versions new_version","make_proxy state sb","funk_key funk_name funks key_id key_name id","pending_fetches fetches_in fetches_out loading_keys loading once","global_funk busses rerunnable_funks","encode_field decode_field translate_keys apply_patch","net_mount net_automount message_method","parse Set One_To_Many clone extend deep_map deep_equals prune validate sorta_diff log deps"].join(" ").split(" "),i=0;i<api.length;i++)bus[api[i]]=eval(api[i]);if(bus.delete=bus.del,bus.executing_funk=function(){return executing_funk},nodejs||!document.querySelector('script[src*="client"][src$=".js"]')||"false"!=document.querySelector('script[src*="client"][src$=".js"]').getAttribute("globals")){var globals=["loading","clone","forget"],client_globals=["fetch","save","del","state"];nodejs||0!=Object.keys(busses).length||(globals=globals.concat(client_globals)),this.og_fetch=this.fetch;for(var i=0;i<globals.length;i++)this[globals[i]]=eval(globals[i])}return busses[bus.id]=bus,nodejs&&require("./server").import_server(bus,options),bus.render_when_loading=!0,bus}statelog_indent=0;var busses={},executing_funk,global_funk,funks={},clean_timer,symbols,nodejs="undefined"==typeof window;return nodejs&&require("./server").import_module(make_bus),make_bus}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.React=e()}}(function(){return function e(t,n,o){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return r(n||e)},l,l.exports,e,t,n,o)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<o.length;a++)r(o[a]);return r}({1:[function(e,t,n){"use strict";var o=e("./DOMPropertyOperations"),r=e("./EventPluginUtils"),i=e("./ReactChildren"),a=e("./ReactComponent"),s=e("./ReactCompositeComponent"),c=e("./ReactContext"),u=e("./ReactCurrentOwner"),l=e("./ReactElement"),p=e("./ReactElementValidator"),d=e("./ReactDOM"),h=e("./ReactDOMComponent"),f=e("./ReactDefaultInjection"),m=e("./ReactInstanceHandles"),g=e("./ReactLegacyElement"),v=e("./ReactMount"),y=e("./ReactMultiChild"),b=e("./ReactPerf"),_=e("./ReactPropTypes"),w=e("./ReactServerRendering"),k=e("./ReactTextComponent"),C=e("./Object.assign"),E=e("./deprecated"),x=e("./onlyChild");f.inject();var R=l.createElement,T=l.createFactory;R=p.createElement,T=p.createFactory,R=g.wrapCreateElement(R),T=g.wrapCreateFactory(T);var S=b.measure("React","render",v.render),O={Children:{map:i.map,forEach:i.forEach,count:i.count,only:x},DOM:d,PropTypes:_,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:s.createClass,createElement:R,createFactory:T,constructAndRenderComponent:v.constructAndRenderComponent,constructAndRenderComponentByID:v.constructAndRenderComponentByID,render:S,renderToString:w.renderToString,renderToStaticMarkup:w.renderToStaticMarkup,unmountComponentAtNode:v.unmountComponentAtNode,isValidClass:g.isValidClass,isValidElement:l.isValidElement,withContext:c.withContext,__spread:C,renderComponent:E("React","renderComponent","render",this,S),renderComponentToString:E("React","renderComponentToString","renderToString",this,w.renderToString),renderComponentToStaticMarkup:E("React","renderComponentToStaticMarkup","renderToStaticMarkup",this,w.renderToStaticMarkup),
2
+ isValidComponent:E("React","isValidComponent","isValidElement",this,l.isValidElement)};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({Component:a,CurrentOwner:u,DOMComponent:h,DOMPropertyOperations:o,InstanceHandles:m,Mount:v,MultiChild:y,TextComponent:k}),e("./ExecutionEnvironment").canUseDOM&&window.top===window.self){navigator.userAgent.indexOf("Chrome")>-1&&"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&console.debug("Download the React DevTools for a better development experience: http://fb.me/react-devtools");for(var N=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim,Object.create,Object.freeze],D=0;D<N.length;D++)if(!N[D]){console.error("One or more ES5 shim/shams expected by React are not available: http://fb.me/react-warning-polyfills");break}}O.version="0.12.2",t.exports=O},{"./DOMPropertyOperations":12,"./EventPluginUtils":20,"./ExecutionEnvironment":22,"./Object.assign":27,"./ReactChildren":31,"./ReactComponent":32,"./ReactCompositeComponent":34,"./ReactContext":35,"./ReactCurrentOwner":36,"./ReactDOM":37,"./ReactDOMComponent":39,"./ReactDefaultInjection":49,"./ReactElement":52,"./ReactElementValidator":53,"./ReactInstanceHandles":60,"./ReactLegacyElement":61,"./ReactMount":63,"./ReactMultiChild":64,"./ReactPerf":68,"./ReactPropTypes":72,"./ReactServerRendering":76,"./ReactTextComponent":78,"./deprecated":106,"./onlyChild":137}],2:[function(e,t,n){"use strict";var o=e("./focusNode"),r={componentDidMount:function(){this.props.autoFocus&&o(this.getDOMNode())}};t.exports=r},{"./focusNode":111}],3:[function(e,t,n){"use strict";function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}var r=e("./EventConstants"),i=e("./EventPropagators"),a=e("./ExecutionEnvironment"),s=e("./SyntheticInputEvent"),c=e("./keyOf"),u=a.canUseDOM&&"TextEvent"in window&&!("documentMode"in document||function(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}()),l=String.fromCharCode(32),p=r.topLevelTypes,d={beforeInput:{phasedRegistrationNames:{bubbled:c({onBeforeInput:null}),captured:c({onBeforeInputCapture:null})},dependencies:[p.topCompositionEnd,p.topKeyPress,p.topTextInput,p.topPaste]}},h=null,f=!1,m={eventTypes:d,extractEvents:function(e,t,n,r){var a;if(u)switch(e){case p.topKeyPress:if(32!==r.which)return;f=!0,a=l;break;case p.topTextInput:if((a=r.data)===l&&f)return;break;default:return}else{switch(e){case p.topPaste:h=null;break;case p.topKeyPress:r.which&&!o(r)&&(h=String.fromCharCode(r.which));break;case p.topCompositionEnd:h=r.data}if(null===h)return;a=h}if(a){var c=s.getPooled(d.beforeInput,n,r);return c.data=a,h=null,i.accumulateTwoPhaseDispatches(c),c}}};t.exports=m},{"./EventConstants":16,"./EventPropagators":21,"./ExecutionEnvironment":22,"./SyntheticInputEvent":89,"./keyOf":133}],4:[function(e,t,n){"use strict";function o(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={columnCount:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeOpacity:!0},i=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){i.forEach(function(t){r[o(t,e)]=r[e]})});var a={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}},s={isUnitlessNumber:r,shorthandPropertyExpansions:a};t.exports=s},{}],5:[function(e,t,n){"use strict";var o=e("./CSSProperty"),r=e("./ExecutionEnvironment"),i=e("./camelizeStyleName"),a=e("./dangerousStyleValue"),s=e("./hyphenateStyleName"),c=e("./memoizeStringOnly"),u=e("./warning"),l=c(function(e){return s(e)}),p="cssFloat";r.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(p="styleFloat");var d={},h=function(e){d.hasOwnProperty(e)&&d[e]||(d[e]=!0,u(!1,"Unsupported style property "+e+". Did you mean "+i(e)+"?"))},f={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){n.indexOf("-")>-1&&h(n);var o=e[n];null!=o&&(t+=l(n)+":",t+=a(n,o)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){r.indexOf("-")>-1&&h(r);var i=a(r,t[r]);if("float"===r&&(r=p),i)n[r]=i;else{var s=o.shorthandPropertyExpansions[r];if(s)for(var c in s)n[c]="";else n[r]=""}}}};t.exports=f},{"./CSSProperty":4,"./ExecutionEnvironment":22,"./camelizeStyleName":100,"./dangerousStyleValue":105,"./hyphenateStyleName":124,"./memoizeStringOnly":135,"./warning":145}],6:[function(e,t,n){"use strict";function o(){this._callbacks=null,this._contexts=null}var r=e("./PooledClass"),i=e("./Object.assign"),a=e("./invariant");i(o.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){a(e.length===t.length,"Mismatched list of contexts in callback queue"),this._callbacks=null,this._contexts=null;for(var n=0,o=e.length;n<o;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),r.addPoolingTo(o),t.exports=o},{"./Object.assign":27,"./PooledClass":28,"./invariant":126}],7:[function(e,t,n){"use strict";function o(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function r(e){var t=C.getPooled(S.change,N,e);_.accumulateTwoPhaseDispatches(t),k.batchedUpdates(i,t)}function i(e){b.enqueueEvents(e),b.processEventQueue()}function a(e,t){O=e,N=t,O.attachEvent("onchange",r)}function s(){O&&(O.detachEvent("onchange",r),O=null,N=null)}function c(e,t,n){if(e===T.topChange)return n}function u(e,t,n){e===T.topFocus?(s(),a(t,n)):e===T.topBlur&&s()}function l(e,t){O=e,N=t,D=e.value,M=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(O,"value",P),O.attachEvent("onpropertychange",d)}function p(){O&&(delete O.value,O.detachEvent("onpropertychange",d),O=null,N=null,D=null,M=null)}function d(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==D&&(D=t,r(e))}}function h(e,t,n){if(e===T.topInput)return n}function f(e,t,n){e===T.topFocus?(p(),l(t,n)):e===T.topBlur&&p()}function m(e,t,n){if((e===T.topSelectionChange||e===T.topKeyUp||e===T.topKeyDown)&&O&&O.value!==D)return D=O.value,N}function g(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function v(e,t,n){if(e===T.topClick)return n}var y=e("./EventConstants"),b=e("./EventPluginHub"),_=e("./EventPropagators"),w=e("./ExecutionEnvironment"),k=e("./ReactUpdates"),C=e("./SyntheticEvent"),E=e("./isEventSupported"),x=e("./isTextInputElement"),R=e("./keyOf"),T=y.topLevelTypes,S={change:{phasedRegistrationNames:{bubbled:R({onChange:null}),captured:R({onChangeCapture:null})},dependencies:[T.topBlur,T.topChange,T.topClick,T.topFocus,T.topInput,T.topKeyDown,T.topKeyUp,T.topSelectionChange]}},O=null,N=null,D=null,M=null,I=!1;w.canUseDOM&&(I=E("change")&&(!("documentMode"in document)||document.documentMode>8));var L=!1;w.canUseDOM&&(L=E("input")&&(!("documentMode"in document)||document.documentMode>9));var P={get:function(){return M.get.call(this)},set:function(e){D=""+e,M.set.call(this,e)}},A={eventTypes:S,extractEvents:function(e,t,n,r){var i,a;if(o(t)?I?i=c:a=u:x(t)?L?i=h:(i=m,a=f):g(t)&&(i=v),i){var s=i(e,t,n);if(s){var l=C.getPooled(S.change,s,r);return _.accumulateTwoPhaseDispatches(l),l}}a&&a(e,t,n)}};t.exports=A},{"./EventConstants":16,"./EventPluginHub":18,"./EventPropagators":21,"./ExecutionEnvironment":22,"./ReactUpdates":79,"./SyntheticEvent":87,"./isEventSupported":127,"./isTextInputElement":129,"./keyOf":133}],8:[function(e,t,n){"use strict";var o=0,r={createReactRootIndex:function(){return o++}};t.exports=r},{}],9:[function(e,t,n){"use strict";function o(e){switch(e){case y.topCompositionStart:return _.compositionStart;case y.topCompositionEnd:return _.compositionEnd;case y.topCompositionUpdate:return _.compositionUpdate}}function r(e,t){return e===y.topKeyDown&&t.keyCode===m}function i(e,t){switch(e){case y.topKeyUp:return-1!==f.indexOf(t.keyCode);case y.topKeyDown:return t.keyCode!==m;case y.topKeyPress:case y.topMouseDown:case y.topBlur:return!0;default:return!1}}function a(e){this.root=e,this.startSelection=l.getSelection(e),this.startValue=this.getText()}var s=e("./EventConstants"),c=e("./EventPropagators"),u=e("./ExecutionEnvironment"),l=e("./ReactInputSelection"),p=e("./SyntheticCompositionEvent"),d=e("./getTextContentAccessor"),h=e("./keyOf"),f=[9,13,27,32],m=229,g=u.canUseDOM&&"CompositionEvent"in window,v=!g||"documentMode"in document&&document.documentMode>8&&document.documentMode<=11,y=s.topLevelTypes,b=null,_={compositionEnd:{phasedRegistrationNames:{bubbled:h({onCompositionEnd:null}),captured:h({onCompositionEndCapture:null})},dependencies:[y.topBlur,y.topCompositionEnd,y.topKeyDown,y.topKeyPress,y.topKeyUp,y.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:h({onCompositionStart:null}),captured:h({onCompositionStartCapture:null})},dependencies:[y.topBlur,y.topCompositionStart,y.topKeyDown,y.topKeyPress,y.topKeyUp,y.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:h({onCompositionUpdate:null}),captured:h({onCompositionUpdateCapture:null})},dependencies:[y.topBlur,y.topCompositionUpdate,y.topKeyDown,y.topKeyPress,y.topKeyUp,y.topMouseDown]}};a.prototype.getText=function(){return this.root.value||this.root[d()]},a.prototype.getData=function(){var e=this.getText(),t=this.startSelection.start,n=this.startValue.length-this.startSelection.end;return e.substr(t,e.length-n-t)};var w={eventTypes:_,extractEvents:function(e,t,n,s){var u,l;if(g?u=o(e):b?i(e,s)&&(u=_.compositionEnd):r(e,s)&&(u=_.compositionStart),v&&(b||u!==_.compositionStart?u===_.compositionEnd&&b&&(l=b.getData(),b=null):b=new a(t)),u){var d=p.getPooled(u,n,s);return l&&(d.data=l),c.accumulateTwoPhaseDispatches(d),d}}};t.exports=w},{"./EventConstants":16,"./EventPropagators":21,"./ExecutionEnvironment":22,"./ReactInputSelection":59,"./SyntheticCompositionEvent":85,"./getTextContentAccessor":121,"./keyOf":133}],10:[function(e,t,n){"use strict";function o(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var r,i=e("./Danger"),a=e("./ReactMultiChildUpdateTypes"),s=e("./getTextContentAccessor"),c=e("./invariant"),u=s();r="textContent"===u?function(e,t){e.textContent=t}:function(e,t){for(;e.firstChild;)e.removeChild(e.firstChild);if(t){var n=e.ownerDocument||document;e.appendChild(n.createTextNode(t))}};var l={dangerouslyReplaceNodeWithMarkup:i.dangerouslyReplaceNodeWithMarkup,updateTextContent:r,processUpdates:function(e,t){for(var n,s=null,u=null,l=0;n=e[l];l++)if(n.type===a.MOVE_EXISTING||n.type===a.REMOVE_NODE){var p=n.fromIndex,d=n.parentNode.childNodes[p],h=n.parentID;c(d,"processUpdates(): Unable to find child %s of element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",p,h),s=s||{},s[h]=s[h]||[],s[h][p]=d,u=u||[],u.push(d)}var f=i.dangerouslyRenderMarkup(t);if(u)for(var m=0;m<u.length;m++)u[m].parentNode.removeChild(u[m]);for(var g=0;n=e[g];g++)switch(n.type){case a.INSERT_MARKUP:o(n.parentNode,f[n.markupIndex],n.toIndex);break;case a.MOVE_EXISTING:o(n.parentNode,s[n.parentID][n.fromIndex],n.toIndex);break;case a.TEXT_CONTENT:r(n.parentNode,n.textContent);break;case a.REMOVE_NODE:}}};t.exports=l},{"./Danger":13,"./ReactMultiChildUpdateTypes":65,"./getTextContentAccessor":121,"./invariant":126}],11:[function(e,t,n){"use strict";function o(e,t){return(e&t)===t}var r=e("./invariant"),i={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(e){var t=e.Properties||{},n=e.DOMAttributeNames||{},a=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var u in t){r(!s.isStandardName.hasOwnProperty(u),"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",u),s.isStandardName[u]=!0;var l=u.toLowerCase();if(s.getPossibleStandardName[l]=u,n.hasOwnProperty(u)){var p=n[u];s.getPossibleStandardName[p]=u,s.getAttributeName[u]=p}else s.getAttributeName[u]=l;s.getPropertyName[u]=a.hasOwnProperty(u)?a[u]:u,c.hasOwnProperty(u)?s.getMutationMethod[u]=c[u]:s.getMutationMethod[u]=null;var d=t[u];s.mustUseAttribute[u]=o(d,i.MUST_USE_ATTRIBUTE),s.mustUseProperty[u]=o(d,i.MUST_USE_PROPERTY),s.hasSideEffects[u]=o(d,i.HAS_SIDE_EFFECTS),s.hasBooleanValue[u]=o(d,i.HAS_BOOLEAN_VALUE),s.hasNumericValue[u]=o(d,i.HAS_NUMERIC_VALUE),s.hasPositiveNumericValue[u]=o(d,i.HAS_POSITIVE_NUMERIC_VALUE),s.hasOverloadedBooleanValue[u]=o(d,i.HAS_OVERLOADED_BOOLEAN_VALUE),r(!s.mustUseAttribute[u]||!s.mustUseProperty[u],"DOMProperty: Cannot require using both attribute and property: %s",u),r(s.mustUseProperty[u]||!s.hasSideEffects[u],"DOMProperty: Properties that have side effects must use property: %s",u),r(!!s.hasBooleanValue[u]+!!s.hasNumericValue[u]+!!s.hasOverloadedBooleanValue[u]<=1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",u)}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){if((0,s._isCustomAttributeFunctions[t])(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,o=a[e];return o||(a[e]=o={}),t in o||(n=document.createElement(e),o[t]=n[t]),o[t]},injection:i};t.exports=s},{"./invariant":126}],12:[function(e,t,n){"use strict";function o(e,t){return null==t||r.hasBooleanValue[e]&&!t||r.hasNumericValue[e]&&isNaN(t)||r.hasPositiveNumericValue[e]&&t<1||r.hasOverloadedBooleanValue[e]&&!1===t}var r=e("./DOMProperty"),i=e("./escapeTextForBrowser"),a=e("./memoizeStringOnly"),s=e("./warning"),c=a(function(e){return i(e)+'="'}),u={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},l={},p=function(e){if(!(u.hasOwnProperty(e)&&u[e]||l.hasOwnProperty(e)&&l[e])){l[e]=!0;var t=e.toLowerCase(),n=r.isCustomAttribute(t)?t:r.getPossibleStandardName.hasOwnProperty(t)?r.getPossibleStandardName[t]:null;s(null==n,"Unknown DOM property "+e+". Did you mean "+n+"?")}},d={createMarkupForID:function(e){return c(r.ID_ATTRIBUTE_NAME)+i(e)+'"'},createMarkupForProperty:function(e,t){if(r.isStandardName.hasOwnProperty(e)&&r.isStandardName[e]){if(o(e,t))return"";var n=r.getAttributeName[e];return r.hasBooleanValue[e]||r.hasOverloadedBooleanValue[e]&&!0===t?i(n):c(n)+i(t)+'"'}return r.isCustomAttribute(e)?null==t?"":c(e)+i(t)+'"':(p(e),null)},setValueForProperty:function(e,t,n){if(r.isStandardName.hasOwnProperty(t)&&r.isStandardName[t]){var i=r.getMutationMethod[t];if(i)i(e,n);else if(o(t,n))this.deleteValueForProperty(e,t);else if(r.mustUseAttribute[t])e.setAttribute(r.getAttributeName[t],""+n);else{var a=r.getPropertyName[t];r.hasSideEffects[t]&&""+e[a]==""+n||(e[a]=n)}}else r.isCustomAttribute(t)?null==n?e.removeAttribute(t):e.setAttribute(t,""+n):p(t)},deleteValueForProperty:function(e,t){if(r.isStandardName.hasOwnProperty(t)&&r.isStandardName[t]){var n=r.getMutationMethod[t];if(n)n(e,void 0);else if(r.mustUseAttribute[t])e.removeAttribute(r.getAttributeName[t]);else{var o=r.getPropertyName[t],i=r.getDefaultValueForProperty(e.nodeName,o);r.hasSideEffects[t]&&""+e[o]===i||(e[o]=i)}}else r.isCustomAttribute(t)?e.removeAttribute(t):p(t)}};t.exports=d},{"./DOMProperty":11,"./escapeTextForBrowser":109,"./memoizeStringOnly":135,"./warning":145}],13:[function(e,t,n){"use strict";function o(e){return e.substring(1,e.indexOf(" "))}var r=e("./ExecutionEnvironment"),i=e("./createNodesFromMarkup"),a=e("./emptyFunction"),s=e("./getMarkupWrap"),c=e("./invariant"),u=/^(<[^ \/>]+)/,l={dangerouslyRenderMarkup:function(e){c(r.canUseDOM,"dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use React.renderToString for server rendering.");for(var t,n={},l=0;l<e.length;l++)c(e[l],"dangerouslyRenderMarkup(...): Missing markup."),t=o(e[l]),t=s(t)?t:"*",n[t]=n[t]||[],n[t][l]=e[l];var p=[],d=0;for(t in n)if(n.hasOwnProperty(t)){var h=n[t];for(var f in h)if(h.hasOwnProperty(f)){var m=h[f];h[f]=m.replace(u,'$1 data-danger-index="'+f+'" ')}var g=i(h.join(""),a);for(l=0;l<g.length;++l){var v=g[l];v.hasAttribute&&v.hasAttribute("data-danger-index")?(f=+v.getAttribute("data-danger-index"),v.removeAttribute("data-danger-index"),c(!p.hasOwnProperty(f),"Danger: Assigning to an already-occupied result index."),p[f]=v,d+=1):console.error("Danger: Discarding unexpected node:",v)}}return c(d===p.length,"Danger: Did not assign to every index of resultList."),c(p.length===e.length,"Danger: Expected markup to render %s nodes, but rendered %s.",e.length,p.length),p},dangerouslyReplaceNodeWithMarkup:function(e,t){c(r.canUseDOM,"dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use React.renderToString for server rendering."),c(t,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."),c("html"!==e.tagName.toLowerCase(),"dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See renderComponentToString().");var n=i(t,a)[0];e.parentNode.replaceChild(n,e)}};t.exports=l},{"./ExecutionEnvironment":22,"./createNodesFromMarkup":104,"./emptyFunction":107,"./getMarkupWrap":118,"./invariant":126}],14:[function(e,t,n){"use strict";var o=e("./keyOf"),r=[o({ResponderEventPlugin:null}),o({SimpleEventPlugin:null}),o({TapEventPlugin:null}),o({EnterLeaveEventPlugin:null}),o({ChangeEventPlugin:null}),o({SelectEventPlugin:null}),o({CompositionEventPlugin:null}),o({BeforeInputEventPlugin:null}),o({AnalyticsEventPlugin:null}),o({MobileSafariClickEventPlugin:null})];t.exports=r},{"./keyOf":133}],15:[function(e,t,n){"use strict";var o=e("./EventConstants"),r=e("./EventPropagators"),i=e("./SyntheticMouseEvent"),a=e("./ReactMount"),s=e("./keyOf"),c=o.topLevelTypes,u=a.getFirstReactDOM,l={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[c.topMouseOut,c.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[c.topMouseOut,c.topMouseOver]}},p=[null,null],d={eventTypes:l,extractEvents:function(e,t,n,o){if(e===c.topMouseOver&&(o.relatedTarget||o.fromElement))return null;if(e!==c.topMouseOut&&e!==c.topMouseOver)return null;var s;if(t.window===t)s=t;else{var d=t.ownerDocument;s=d?d.defaultView||d.parentWindow:window}var h,f;if(e===c.topMouseOut?(h=t,f=u(o.relatedTarget||o.toElement)||s):(h=s,f=t),h===f)return null;var m=h?a.getID(h):"",g=f?a.getID(f):"",v=i.getPooled(l.mouseLeave,m,o);v.type="mouseleave",v.target=h,v.relatedTarget=f;var y=i.getPooled(l.mouseEnter,g,o);return y.type="mouseenter",y.target=f,y.relatedTarget=h,r.accumulateEnterLeaveDispatches(v,y,m,g),p[0]=v,p[1]=y,p}};t.exports=d},{"./EventConstants":16,"./EventPropagators":21,"./ReactMount":63,"./SyntheticMouseEvent":91,"./keyOf":133}],16:[function(e,t,n){"use strict";var o=e("./keyMirror"),r=o({bubbled:null,captured:null}),i=o({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}),a={topLevelTypes:i,PropagationPhases:r};t.exports=a},{"./keyMirror":132}],17:[function(e,t,n){var o=e("./emptyFunction"),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):(console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:o})},registerDefault:function(){}};t.exports=r},{"./emptyFunction":107}],18:[function(e,t,n){"use strict";function o(){if(!d||!d.traverseTwoPhase||!d.traverseEnterLeave)throw new Error("InstanceHandle not injected before use!")}var r=e("./EventPluginRegistry"),i=e("./EventPluginUtils"),a=e("./accumulateInto"),s=e("./forEachAccumulated"),c=e("./invariant"),u={},l=null,p=function(e){if(e){var t=i.executeDispatch,n=r.getPluginModuleForEvent(e);n&&n.executeDispatch&&(t=n.executeDispatch),i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e)}},d=null,h={injection:{injectMount:i.injection.injectMount,injectInstanceHandle:function(e){d=e,o()},getInstanceHandle:function(){return o(),d},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){c(!n||"function"==typeof n,"Expected %s listener to be a function, instead got type %s",t,typeof n),(u[t]||(u[t]={}))[e]=n},getListener:function(e,t){var n=u[t];return n&&n[e]},deleteListener:function(e,t){var n=u[t];n&&delete n[e]},deleteAllListeners:function(e){for(var t in u)delete u[t][e]},extractEvents:function(e,t,n,o){for(var i,s=r.plugins,c=0,u=s.length;c<u;c++){var l=s[c];if(l){var p=l.extractEvents(e,t,n,o);p&&(i=a(i,p))}}return i},enqueueEvents:function(e){e&&(l=a(l,e))},processEventQueue:function(){var e=l;l=null,s(e,p),c(!l,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.")},__purge:function(){u={}},__getListenerBank:function(){return u}};t.exports=h},{"./EventPluginRegistry":19,"./EventPluginUtils":20,"./accumulateInto":97,"./forEachAccumulated":112,"./invariant":126}],19:[function(e,t,n){"use strict";function o(){if(s)for(var e in c){var t=c[e],n=s.indexOf(e);if(a(n>-1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e),!u.plugins[n]){a(t.extractEvents,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)a(r(o[i],t,i),"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",i,e)}}}function r(e,t,n){a(!u.eventNameDispatchConfigs.hasOwnProperty(n),"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var s=o[r];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){a(!u.registrationNameModules[e],"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=e("./invariant"),s=null,c={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){a(!s,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."),s=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];c.hasOwnProperty(n)&&c[n]===r||(a(!c[n],"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",n),c[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var o=u.registrationNameModules[t.phasedRegistrationNames[n]];if(o)return o}return null},_resetEventPlugins:function(){s=null;for(var e in c)c.hasOwnProperty(e)&&delete c[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};t.exports=u},{"./invariant":126}],20:[function(e,t,n){"use strict";function o(e){return e===v.topMouseUp||e===v.topTouchEnd||e===v.topTouchCancel}function r(e){return e===v.topMouseMove||e===v.topTouchMove}function i(e){return e===v.topMouseDown||e===v.topTouchStart}function a(e,t){var n=e._dispatchListeners,o=e._dispatchIDs;if(h(e),Array.isArray(n))for(var r=0;r<n.length&&!e.isPropagationStopped();r++)t(e,n[r],o[r]);else n&&t(e,n,o)}function s(e,t,n){e.currentTarget=g.Mount.getNode(n);var o=t(e,n);return e.currentTarget=null,o}function c(e,t){a(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function u(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(h(e),Array.isArray(t)){for(var o=0;o<t.length&&!e.isPropagationStopped();o++)if(t[o](e,n[o]))return n[o]}else if(t&&t(e,n))return n;return null}function l(e){var t=u(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function p(e){h(e);var t=e._dispatchListeners,n=e._dispatchIDs;m(!Array.isArray(t),"executeDirectDispatch(...): Invalid `event`.");var o=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,o}function d(e){return!!e._dispatchListeners}var h,f=e("./EventConstants"),m=e("./invariant"),g={Mount:null,injectMount:function(e){g.Mount=e,m(e&&e.getNode,"EventPluginUtils.injection.injectMount(...): Injected Mount module is missing getNode.")}},v=f.topLevelTypes;h=function(e){var t=e._dispatchListeners,n=e._dispatchIDs,o=Array.isArray(t),r=Array.isArray(n),i=r?n.length:n?1:0,a=o?t.length:t?1:0;m(r===o&&i===a,"EventPluginUtils: Invalid `event`.")};var y={isEndish:o,isMoveish:r,isStartish:i,executeDirectDispatch:p,executeDispatch:s,executeDispatchesInOrder:c,executeDispatchesInOrderStopAtTrue:l,hasDispatches:d,injection:g,useTouchEvents:!1};t.exports=y},{"./EventConstants":16,"./invariant":126}],21:[function(e,t,n){"use strict";function o(e,t,n){var o=t.dispatchConfig.phasedRegistrationNames[n];return g(e,o)}function r(e,t,n){if(!e)throw new Error("Dispatching id must not be null");var r=t?m.bubbled:m.captured,i=o(e,n,r);i&&(n._dispatchListeners=h(n._dispatchListeners,i),n._dispatchIDs=h(n._dispatchIDs,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&d.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,r,e)}function a(e,t,n){if(n&&n.dispatchConfig.registrationName){var o=n.dispatchConfig.registrationName,r=g(e,o);r&&(n._dispatchListeners=h(n._dispatchListeners,r),n._dispatchIDs=h(n._dispatchIDs,e))}}function s(e){e&&e.dispatchConfig.registrationName&&a(e.dispatchMarker,null,e)}function c(e){f(e,i)}function u(e,t,n,o){d.injection.getInstanceHandle().traverseEnterLeave(n,o,a,e,t)}function l(e){f(e,s)}var p=e("./EventConstants"),d=e("./EventPluginHub"),h=e("./accumulateInto"),f=e("./forEachAccumulated"),m=p.PropagationPhases,g=d.getListener,v={accumulateTwoPhaseDispatches:c,accumulateDirectDispatches:l,accumulateEnterLeaveDispatches:u};t.exports=v},{"./EventConstants":16,"./EventPluginHub":18,"./accumulateInto":97,"./forEachAccumulated":112}],22:[function(e,t,n){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen,isInWorker:!o};t.exports=r},{}],23:[function(e,t,n){"use strict";var o,r=e("./DOMProperty"),i=e("./ExecutionEnvironment"),a=r.injection.MUST_USE_ATTRIBUTE,s=r.injection.MUST_USE_PROPERTY,c=r.injection.HAS_BOOLEAN_VALUE,u=r.injection.HAS_SIDE_EFFECTS,l=r.injection.HAS_NUMERIC_VALUE,p=r.injection.HAS_POSITIVE_NUMERIC_VALUE,d=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var h=document.implementation;o=h&&h.hasFeature&&h.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var f={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|c,allowTransparency:a,alt:null,async:c,autoComplete:null,autoPlay:c,cellPadding:null,cellSpacing:null,charSet:a,checked:s|c,classID:a,className:o?a:s,cols:a|p,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|c,coords:null,crossOrigin:null,data:null,dateTime:a,defer:c,dir:null,disabled:a|c,download:d,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:c,formTarget:a,frameBorder:a,height:a,hidden:a|c,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,label:null,lang:null,list:a,loop:s|c,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,multiple:s|c,muted:s|c,name:null,noValidate:c,open:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|c,rel:null,required:c,role:a,rows:a|p,rowSpan:null,sandbox:null,scope:null,scrolling:null,seamless:a|c,selected:s|c,shape:null,size:a|p,sizes:a,span:p,spellCheck:null,src:null,srcDoc:s,srcSet:a,start:l,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|u,width:a,wmode:a,autoCapitalize:null,autoCorrect:null,itemProp:a,itemScope:a|c,itemType:a,property:null},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"enctype",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=f},{"./DOMProperty":11,"./ExecutionEnvironment":22}],24:[function(e,t,n){"use strict";function o(e){u(null==e.props.checkedLink||null==e.props.valueLink,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa.")}function r(e){o(e),
3
+ u(null==e.props.value&&null==e.props.onChange,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink.")}function i(e){o(e),u(null==e.props.checked&&null==e.props.onChange,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink")}function a(e){this.props.valueLink.requestChange(e.target.value)}function s(e){this.props.checkedLink.requestChange(e.target.checked)}var c=e("./ReactPropTypes"),u=e("./invariant"),l={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p={Mixin:{propTypes:{value:function(e,t,n){if(!(!e[t]||l[e.type]||e.onChange||e.readOnly||e.disabled))return 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(e,t,n){if(e[t]&&!e.onChange&&!e.readOnly&&!e.disabled)return 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:c.func}},getValue:function(e){return e.props.valueLink?(r(e),e.props.valueLink.value):e.props.value},getChecked:function(e){return e.props.checkedLink?(i(e),e.props.checkedLink.value):e.props.checked},getOnChange:function(e){return e.props.valueLink?(r(e),a):e.props.checkedLink?(i(e),s):e.props.onChange}};t.exports=p},{"./ReactPropTypes":72,"./invariant":126}],25:[function(e,t,n){"use strict";function o(e){e.remove()}var r=e("./ReactBrowserEventEmitter"),i=e("./accumulateInto"),a=e("./forEachAccumulated"),s=e("./invariant"),c={trapBubbledEvent:function(e,t){s(this.isMounted(),"Must be mounted to trap events");var n=r.trapBubbledEvent(e,t,this.getDOMNode());this._localEventListeners=i(this._localEventListeners,n)},componentWillUnmount:function(){this._localEventListeners&&a(this._localEventListeners,o)}};t.exports=c},{"./ReactBrowserEventEmitter":30,"./accumulateInto":97,"./forEachAccumulated":112,"./invariant":126}],26:[function(e,t,n){"use strict";var o=e("./EventConstants"),r=e("./emptyFunction"),i=o.topLevelTypes,a={eventTypes:null,extractEvents:function(e,t,n,o){if(e===i.topTouchStart){var a=o.target;a&&!a.onclick&&(a.onclick=r)}}};t.exports=a},{"./EventConstants":16,"./emptyFunction":107}],27:[function(e,t,n){function o(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),o=Object.prototype.hasOwnProperty,r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i){var a=Object(i);for(var s in a)o.call(a,s)&&(n[s]=a[s])}}return n}t.exports=o},{}],28:[function(e,t,n){"use strict";var o=e("./invariant"),r=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},s=function(e,t,n,o,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,o,r),a}return new i(e,t,n,o,r)},c=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor&&e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=r,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||u,n.poolSize||(n.poolSize=10),n.release=c,n},p={addPoolingTo:l,oneArgumentPooler:r,twoArgumentPooler:i,threeArgumentPooler:a,fiveArgumentPooler:s};t.exports=p},{"./invariant":126}],29:[function(e,t,n){"use strict";var o=e("./ReactEmptyComponent"),r=e("./ReactMount"),i=e("./invariant"),a={getDOMNode:function(){return i(this.isMounted(),"getDOMNode(): A component must be mounted to have a DOM node."),o.isNullComponentID(this._rootNodeID)?null:r.getNode(this._rootNodeID)}};t.exports=a},{"./ReactEmptyComponent":54,"./ReactMount":63,"./invariant":126}],30:[function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=h++,p[e[m]]={}),p[e[m]]}var r=e("./EventConstants"),i=e("./EventPluginHub"),a=e("./EventPluginRegistry"),s=e("./ReactEventEmitterMixin"),c=e("./ViewportMetrics"),u=e("./Object.assign"),l=e("./isEventSupported"),p={},d=!1,h=0,f={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"},m="_reactListenersID"+String(Math.random()).slice(2),g=u({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=e}},setEnabled:function(e){g.ReactEventListener&&g.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,i=o(n),s=a.registrationNameDependencies[e],c=r.topLevelTypes,u=0,p=s.length;u<p;u++){var d=s[u];i.hasOwnProperty(d)&&i[d]||(d===c.topWheel?l("wheel")?g.ReactEventListener.trapBubbledEvent(c.topWheel,"wheel",n):l("mousewheel")?g.ReactEventListener.trapBubbledEvent(c.topWheel,"mousewheel",n):g.ReactEventListener.trapBubbledEvent(c.topWheel,"DOMMouseScroll",n):d===c.topScroll?l("scroll",!0)?g.ReactEventListener.trapCapturedEvent(c.topScroll,"scroll",n):g.ReactEventListener.trapBubbledEvent(c.topScroll,"scroll",g.ReactEventListener.WINDOW_HANDLE):d===c.topFocus||d===c.topBlur?(l("focus",!0)?(g.ReactEventListener.trapCapturedEvent(c.topFocus,"focus",n),g.ReactEventListener.trapCapturedEvent(c.topBlur,"blur",n)):l("focusin")&&(g.ReactEventListener.trapBubbledEvent(c.topFocus,"focusin",n),g.ReactEventListener.trapBubbledEvent(c.topBlur,"focusout",n)),i[c.topBlur]=!0,i[c.topFocus]=!0):f.hasOwnProperty(d)&&g.ReactEventListener.trapBubbledEvent(d,f[d],n),i[d]=!0)}},trapBubbledEvent:function(e,t,n){return g.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return g.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!d){var e=c.refreshScrollValues;g.ReactEventListener.monitorScrollValue(e),d=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});t.exports=g},{"./EventConstants":16,"./EventPluginHub":18,"./EventPluginRegistry":19,"./Object.assign":27,"./ReactEventEmitterMixin":56,"./ViewportMetrics":96,"./isEventSupported":127}],31:[function(e,t,n){"use strict";function o(e,t){this.forEachFunction=e,this.forEachContext=t}function r(e,t,n,o){var r=e;r.forEachFunction.call(r.forEachContext,t,o)}function i(e,t,n){if(null==e)return e;var i=o.getPooled(t,n);d(e,r,i),o.release(i)}function a(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function s(e,t,n,o){var r=e,i=r.mapResult,a=!i.hasOwnProperty(n);if(h(a,"ReactChildren.map(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",n),a){var s=r.mapFunction.call(r.mapContext,t,o);i[n]=s}}function c(e,t,n){if(null==e)return e;var o={},r=a.getPooled(o,t,n);return d(e,s,r),a.release(r),o}function u(e,t,n,o){return null}function l(e,t){return d(e,u,null)}var p=e("./PooledClass"),d=e("./traverseAllChildren"),h=e("./warning"),f=p.twoArgumentPooler,m=p.threeArgumentPooler;p.addPoolingTo(o,f),p.addPoolingTo(a,m);var g={forEach:i,map:c,count:l};t.exports=g},{"./PooledClass":28,"./traverseAllChildren":144,"./warning":145}],32:[function(e,t,n){"use strict";var o=e("./ReactElement"),r=e("./ReactOwner"),i=e("./ReactUpdates"),a=e("./Object.assign"),s=e("./invariant"),c=e("./keyMirror"),u=c({MOUNTED:null,UNMOUNTED:null}),l=!1,p=null,d=null,h={injection:{injectEnvironment:function(e){s(!l,"ReactComponent: injectEnvironment() can only be called once."),d=e.mountImageIntoNode,p=e.unmountIDFromEnvironment,h.BackendIDOperations=e.BackendIDOperations,l=!0}},LifeCycle:u,BackendIDOperations:null,Mixin:{isMounted:function(){return this._lifeCycleState===u.MOUNTED},setProps:function(e,t){var n=this._pendingElement||this._currentElement;this.replaceProps(a({},n.props,e),t)},replaceProps:function(e,t){s(this.isMounted(),"replaceProps(...): Can only update a mounted component."),s(0===this._mountDepth,"replaceProps(...): You called `setProps` or `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."),this._pendingElement=o.cloneAndReplaceProps(this._pendingElement||this._currentElement,e),i.enqueueUpdate(this,t)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=o.cloneAndReplaceProps(n,a({},n.props,e)),i.enqueueUpdate(this,t)},construct:function(e){this.props=e.props,this._owner=e._owner,this._lifeCycleState=u.UNMOUNTED,this._pendingCallbacks=null,this._currentElement=e,this._pendingElement=null},mountComponent:function(e,t,n){s(!this.isMounted(),"mountComponent(%s, ...): Can only mount an unmounted component. Make sure to avoid storing components between renders or reusing a single component instance in multiple places.",e);var o=this._currentElement.ref;if(null!=o){var i=this._currentElement._owner;r.addComponentAsRefTo(this,o,i)}this._rootNodeID=e,this._lifeCycleState=u.MOUNTED,this._mountDepth=n},unmountComponent:function(){s(this.isMounted(),"unmountComponent(): Can only unmount a mounted component.");var e=this._currentElement.ref;null!=e&&r.removeComponentAsRefFrom(this,e,this._owner),p(this._rootNodeID),this._rootNodeID=null,this._lifeCycleState=u.UNMOUNTED},receiveComponent:function(e,t){s(this.isMounted(),"receiveComponent(...): Can only update a mounted component."),this._pendingElement=e,this.performUpdateIfNecessary(t)},performUpdateIfNecessary:function(e){if(null!=this._pendingElement){var t=this._currentElement,n=this._pendingElement;this._currentElement=n,this.props=n.props,this._owner=n._owner,this._pendingElement=null,this.updateComponent(e,t)}},updateComponent:function(e,t){var n=this._currentElement;n._owner===t._owner&&n.ref===t.ref||(null!=t.ref&&r.removeComponentAsRefFrom(this,t.ref,t._owner),null!=n.ref&&r.addComponentAsRefTo(this,n.ref,n._owner))},mountComponentIntoNode:function(e,t,n){var o=i.ReactReconcileTransaction.getPooled();o.perform(this._mountComponentIntoNode,this,e,t,o,n),i.ReactReconcileTransaction.release(o)},_mountComponentIntoNode:function(e,t,n,o){var r=this.mountComponent(e,n,0);d(r,t,o)},isOwnedBy:function(e){return this._owner===e},getSiblingByRef:function(e){var t=this._owner;return t&&t.refs?t.refs[e]:null}}};t.exports=h},{"./Object.assign":27,"./ReactElement":52,"./ReactOwner":67,"./ReactUpdates":79,"./invariant":126,"./keyMirror":132}],33:[function(e,t,n){"use strict";var o=e("./ReactDOMIDOperations"),r=e("./ReactMarkupChecksum"),i=e("./ReactMount"),a=e("./ReactPerf"),s=e("./ReactReconcileTransaction"),c=e("./getReactRootElementInContainer"),u=e("./invariant"),l=e("./setInnerHTML"),p={ReactReconcileTransaction:s,BackendIDOperations:o,unmountIDFromEnvironment:function(e){i.purgeID(e)},mountImageIntoNode:a.measure("ReactComponentBrowserEnvironment","mountImageIntoNode",function(e,t,n){if(u(t&&(1===t.nodeType||9===t.nodeType),"mountComponentIntoNode(...): Target container is not valid."),n){if(r.canReuseMarkup(e,c(t)))return;u(9!==t.nodeType,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side."),console.warn("React attempted to use reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server.")}u(9!==t.nodeType,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See renderComponentToString() for server rendering."),l(t,e)})};t.exports=p},{"./ReactDOMIDOperations":41,"./ReactMarkupChecksum":62,"./ReactMount":63,"./ReactPerf":68,"./ReactReconcileTransaction":74,"./getReactRootElementInContainer":120,"./invariant":126,"./setInnerHTML":140}],34:[function(e,t,n){"use strict";function o(e){var t=e._owner||null;return t&&t.constructor&&t.constructor.displayName?" Check the render method of `"+t.constructor.displayName+"`.":""}function r(e,t,n){for(var o in t)t.hasOwnProperty(o)&&S("function"==typeof t[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactCompositeComponent",E[n],o)}function i(e,t){var n=j.hasOwnProperty(t)?j[t]:null;V.hasOwnProperty(t)&&S(n===A.OVERRIDE_BASE,"ReactCompositeComponentInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e.hasOwnProperty(t)&&S(n===A.DEFINE_MANY||n===A.DEFINE_MANY_MERGED,"ReactCompositeComponentInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function a(e){var t=e._compositeLifeCycleState;S(e.isMounted()||t===B.MOUNTING,"replaceState(...): Can only update a mounted or mounting component."),S(null==f.current,"replaceState(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),S(t!==B.UNMOUNTING,"replaceState(...): Cannot update while unmounting component. This usually means you called setState() on an unmounted component.")}function s(e,t){if(t){S(!b.isValidFactory(t),"ReactCompositeComponent: You're attempting to use a component class as a mixin. Instead, just use a regular object."),S(!m.isValidElement(t),"ReactCompositeComponent: You're attempting to use a component as a mixin. Instead, just use a regular object.");var n=e.prototype;t.hasOwnProperty(P)&&U.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==P){var r=t[o];if(i(n,o),U.hasOwnProperty(o))U[o](e,r);else{var a=j.hasOwnProperty(o),s=n.hasOwnProperty(o),c=r&&r.__reactDontBind,u="function"==typeof r,d=u&&!a&&!s&&!c;if(d)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=r,n[o]=r;else if(s){var h=j[o];S(a&&(h===A.DEFINE_MANY_MERGED||h===A.DEFINE_MANY),"ReactCompositeComponent: Unexpected spec policy %s for key %s when mixing in component specs.",h,o),h===A.DEFINE_MANY_MERGED?n[o]=l(n[o],r):h===A.DEFINE_MANY&&(n[o]=p(n[o],r))}else n[o]=r,"function"==typeof r&&t.displayName&&(n[o].displayName=t.displayName+"_"+o)}}}}function c(e,t){if(t)for(var n in t){var o=t[n];if(t.hasOwnProperty(n)){var r=n in U;S(!r,'ReactCompositeComponent: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;S(!i,"ReactCompositeComponent: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=o}}}function u(e,t){return S(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeObjectsWithNoDuplicateKeys(): Cannot merge non-objects"),M(t,function(t,n){S(void 0===e[n],"mergeObjectsWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t}),e}function l(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);return null==n?o:null==o?n:u(n,o)}}function p(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}var d=e("./ReactComponent"),h=e("./ReactContext"),f=e("./ReactCurrentOwner"),m=e("./ReactElement"),g=e("./ReactElementValidator"),v=e("./ReactEmptyComponent"),y=e("./ReactErrorUtils"),b=e("./ReactLegacyElement"),_=e("./ReactOwner"),w=e("./ReactPerf"),k=e("./ReactPropTransferer"),C=e("./ReactPropTypeLocations"),E=e("./ReactPropTypeLocationNames"),x=e("./ReactUpdates"),R=e("./Object.assign"),T=e("./instantiateReactComponent"),S=e("./invariant"),O=e("./keyMirror"),N=e("./keyOf"),D=e("./monitorCodeUse"),M=e("./mapObject"),I=e("./shouldUpdateReactComponent"),L=e("./warning"),P=N({mixins:null}),A=O({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),F=[],j={mixins:A.DEFINE_MANY,statics:A.DEFINE_MANY,propTypes:A.DEFINE_MANY,contextTypes:A.DEFINE_MANY,childContextTypes:A.DEFINE_MANY,getDefaultProps:A.DEFINE_MANY_MERGED,getInitialState:A.DEFINE_MANY_MERGED,getChildContext:A.DEFINE_MANY_MERGED,render:A.DEFINE_ONCE,componentWillMount:A.DEFINE_MANY,componentDidMount:A.DEFINE_MANY,componentWillReceiveProps:A.DEFINE_MANY,shouldComponentUpdate:A.DEFINE_ONCE,componentWillUpdate:A.DEFINE_MANY,componentDidUpdate:A.DEFINE_MANY,componentWillUnmount:A.DEFINE_MANY,updateComponent:A.OVERRIDE_BASE},U={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)s(e,t[n])},childContextTypes:function(e,t){r(e,t,C.childContext),e.childContextTypes=R({},e.childContextTypes,t)},contextTypes:function(e,t){r(e,t,C.context),e.contextTypes=R({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=l(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){r(e,t,C.prop),e.propTypes=R({},e.propTypes,t)},statics:function(e,t){c(e,t)}},B=O({MOUNTING:null,UNMOUNTING:null,RECEIVING_PROPS:null}),V={construct:function(e){d.Mixin.construct.apply(this,arguments),_.Mixin.construct.apply(this,arguments),this.state=null,this._pendingState=null,this.context=null,this._compositeLifeCycleState=null},isMounted:function(){return d.Mixin.isMounted.call(this)&&this._compositeLifeCycleState!==B.MOUNTING},mountComponent:w.measure("ReactCompositeComponent","mountComponent",function(e,t,n){d.Mixin.mountComponent.call(this,e,t,n),this._compositeLifeCycleState=B.MOUNTING,this.__reactAutoBindMap&&this._bindAutoBindMethods(),this.context=this._processContext(this._currentElement._context),this.props=this._processProps(this.props),this.state=this.getInitialState?this.getInitialState():null,S("object"==typeof this.state&&!Array.isArray(this.state),"%s.getInitialState(): must return an object or null",this.constructor.displayName||"ReactCompositeComponent"),this._pendingState=null,this._pendingForceUpdate=!1,this.componentWillMount&&(this.componentWillMount(),this._pendingState&&(this.state=this._pendingState,this._pendingState=null)),this._renderedComponent=T(this._renderValidatedComponent(),this._currentElement.type),this._compositeLifeCycleState=null;var o=this._renderedComponent.mountComponent(e,t,n+1);return this.componentDidMount&&t.getReactMountReady().enqueue(this.componentDidMount,this),o}),unmountComponent:function(){this._compositeLifeCycleState=B.UNMOUNTING,this.componentWillUnmount&&this.componentWillUnmount(),this._compositeLifeCycleState=null,this._renderedComponent.unmountComponent(),this._renderedComponent=null,d.Mixin.unmountComponent.call(this)},setState:function(e,t){S("object"==typeof e||null==e,"setState(...): takes an object of state variables to update."),L(null!=e,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."),this.replaceState(R({},this._pendingState||this.state,e),t)},replaceState:function(e,t){a(this),this._pendingState=e,this._compositeLifeCycleState!==B.MOUNTING&&x.enqueueUpdate(this,t)},_processContext:function(e){var t=null,n=this.constructor.contextTypes;if(n){t={};for(var o in n)t[o]=e[o];this._checkPropTypes(n,t,C.context)}return t},_processChildContext:function(e){var t=this.getChildContext&&this.getChildContext(),n=this.constructor.displayName||"ReactCompositeComponent";if(t){S("object"==typeof this.constructor.childContextTypes,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",n),this._checkPropTypes(this.constructor.childContextTypes,t,C.childContext);for(var o in t)S(o in this.constructor.childContextTypes,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',n,o);return R({},e,t)}return e},_processProps:function(e){var t=this.constructor.propTypes;return t&&this._checkPropTypes(t,e,C.prop),e},_checkPropTypes:function(e,t,n){var r=this.constructor.displayName;for(var i in e)if(e.hasOwnProperty(i)){var a=e[i](t,i,r,n);if(a instanceof Error){var s=o(this);L(!1,a.message+s)}}},performUpdateIfNecessary:function(e){var t=this._compositeLifeCycleState;if(t!==B.MOUNTING&&t!==B.RECEIVING_PROPS&&(null!=this._pendingElement||null!=this._pendingState||this._pendingForceUpdate)){var n=this.context,o=this.props,r=this._currentElement;null!=this._pendingElement&&(r=this._pendingElement,n=this._processContext(r._context),o=this._processProps(r.props),this._pendingElement=null,this._compositeLifeCycleState=B.RECEIVING_PROPS,this.componentWillReceiveProps&&this.componentWillReceiveProps(o,n)),this._compositeLifeCycleState=null;var i=this._pendingState||this.state;this._pendingState=null;var a=this._pendingForceUpdate||!this.shouldComponentUpdate||this.shouldComponentUpdate(o,i,n);void 0===a&&console.warn((this.constructor.displayName||"ReactCompositeComponent")+".shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false."),a?(this._pendingForceUpdate=!1,this._performComponentUpdate(r,o,i,n,e)):(this._currentElement=r,this.props=o,this.state=i,this.context=n,this._owner=r._owner)}},_performComponentUpdate:function(e,t,n,o,r){var i=this._currentElement,a=this.props,s=this.state,c=this.context;this.componentWillUpdate&&this.componentWillUpdate(t,n,o),this._currentElement=e,this.props=t,this.state=n,this.context=o,this._owner=e._owner,this.updateComponent(r,i),this.componentDidUpdate&&r.getReactMountReady().enqueue(this.componentDidUpdate.bind(this,a,s,c),this)},receiveComponent:function(e,t){e===this._currentElement&&null!=e._owner||d.Mixin.receiveComponent.call(this,e,t)},updateComponent:w.measure("ReactCompositeComponent","updateComponent",function(e,t){d.Mixin.updateComponent.call(this,e,t);var n=this._renderedComponent,o=n._currentElement,r=this._renderValidatedComponent();if(I(o,r))n.receiveComponent(r,e);else{var i=this._rootNodeID,a=n._rootNodeID;n.unmountComponent(),this._renderedComponent=T(r,this._currentElement.type);var s=this._renderedComponent.mountComponent(i,e,this._mountDepth+1);d.BackendIDOperations.dangerouslyReplaceNodeWithMarkupByID(a,s)}}),forceUpdate:function(e){var t=this._compositeLifeCycleState;S(this.isMounted()||t===B.MOUNTING,"forceUpdate(...): Can only force an update on mounted or mounting components."),S(t!==B.UNMOUNTING&&null==f.current,"forceUpdate(...): Cannot force an update while unmounting component or within a `render` function."),this._pendingForceUpdate=!0,x.enqueueUpdate(this,e)},_renderValidatedComponent:w.measure("ReactCompositeComponent","_renderValidatedComponent",function(){var e,t=h.current;h.current=this._processChildContext(this._currentElement._context),f.current=this;try{e=this.render(),null===e||!1===e?(e=v.getEmptyComponent(),v.registerNullComponentID(this._rootNodeID)):v.deregisterNullComponentID(this._rootNodeID)}finally{h.current=t,f.current=null}return S(m.isValidElement(e),"%s.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.",this.constructor.displayName||"ReactCompositeComponent"),e}),_bindAutoBindMethods:function(){for(var e in this.__reactAutoBindMap)if(this.__reactAutoBindMap.hasOwnProperty(e)){var t=this.__reactAutoBindMap[e];this[e]=this._bindAutoBindMethod(y.guard(t,this.constructor.displayName+"."+e))}},_bindAutoBindMethod:function(e){var t=this,n=e.bind(t);n.__reactBoundContext=t,n.__reactBoundMethod=e,n.__reactBoundArguments=null;var o=t.constructor.displayName,r=n.bind;return n.bind=function(i){for(var a=[],s=1,c=arguments.length;s<c;s++)a.push(arguments[s]);if(i!==t&&null!==i)D("react_bind_warning",{component:o}),console.warn("bind(): React component methods may only be bound to the component instance. See "+o);else if(!a.length)return D("react_bind_warning",{component:o}),console.warn("bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See "+o),n;var u=r.apply(n,arguments);return u.__reactBoundContext=t,u.__reactBoundMethod=e,u.__reactBoundArguments=a,u},n}},H=function(){};R(H.prototype,d.Mixin,_.Mixin,k.Mixin,V);var W={LifeCycle:B,Base:H,createClass:function(e){var t=function(e){};t.prototype=new H,t.prototype.constructor=t,F.forEach(s.bind(null,t)),s(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),S(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),t.prototype.componentShouldUpdate&&(D("react_component_should_update_warning",{component:e.displayName}),console.warn((e.displayName||"A component")+" has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value."));for(var n in j)t.prototype[n]||(t.prototype[n]=null);return b.wrapFactory(g.createFactory(t))},injection:{injectMixin:function(e){F.push(e)}}};t.exports=W},{"./Object.assign":27,"./ReactComponent":32,"./ReactContext":35,"./ReactCurrentOwner":36,"./ReactElement":52,"./ReactElementValidator":53,"./ReactEmptyComponent":54,"./ReactErrorUtils":55,"./ReactLegacyElement":61,"./ReactOwner":67,"./ReactPerf":68,"./ReactPropTransferer":69,"./ReactPropTypeLocationNames":70,"./ReactPropTypeLocations":71,"./ReactUpdates":79,"./instantiateReactComponent":125,"./invariant":126,"./keyMirror":132,"./keyOf":133,"./mapObject":134,"./monitorCodeUse":136,"./shouldUpdateReactComponent":142,"./warning":145}],35:[function(e,t,n){"use strict";var o=e("./Object.assign"),r={current:{},withContext:function(e,t){var n,i=r.current;r.current=o({},i,e);try{n=t()}finally{r.current=i}return n}};t.exports=r},{"./Object.assign":27}],36:[function(e,t,n){"use strict";var o={current:null};t.exports=o},{}],37:[function(e,t,n){"use strict";function o(e){return i.markNonLegacyFactory(r.createFactory(e))}var r=(e("./ReactElement"),e("./ReactElementValidator")),i=e("./ReactLegacyElement"),a=e("./mapObject"),s=a({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",defs:"defs",ellipse:"ellipse",g:"g",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan",feColorMatrix:"feColorMatrix",feGaussianBlur:"feGaussianBlur",feOffset:"feOffset",feFlood:"feFlood",feComposite:"feComposite",feMerge:"feMerge",feMergeNode:"feMergeNode",filter:"filter",image:"image",clipPath:"clipPath"},o);t.exports=s},{"./ReactElement":52,"./ReactElementValidator":53,"./ReactLegacyElement":61,"./mapObject":134}],38:[function(e,t,n){"use strict";var o=e("./AutoFocusMixin"),r=e("./ReactBrowserComponentMixin"),i=e("./ReactCompositeComponent"),a=e("./ReactElement"),s=e("./ReactDOM"),c=e("./keyMirror"),u=a.createFactory(s.button.type),l=c({onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0}),p=i.createClass({displayName:"ReactDOMButton",mixins:[o,r],render:function(){var e={};for(var t in this.props)!this.props.hasOwnProperty(t)||this.props.disabled&&l[t]||(e[t]=this.props[t]);return u(e,this.props.children)}});t.exports=p},{"./AutoFocusMixin":2,"./ReactBrowserComponentMixin":29,"./ReactCompositeComponent":34,"./ReactDOM":37,"./ReactElement":52,"./keyMirror":132}],39:[function(e,t,n){"use strict";function o(e){e&&(y(null==e.children||null==e.dangerouslySetInnerHTML,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."),e.contentEditable&&null!=e.children&&console.warn("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),y(null==e.style||"object"==typeof e.style,"The `style` prop expects a mapping from style properties to values, not a string."))}function r(e,t,n,o){"onScroll"!==t||b("scroll",!0)||(w("react_no_scroll_event"),console.warn("This browser doesn't support the `onScroll` event"));var r=h.findReactContainerForID(e);if(r){var i=r.nodeType===T?r.ownerDocument:r;C(t,i)}o.getPutListenerQueue().enqueuePutListener(e,t,n)}function i(e){D.call(N,e)||(y(O.test(e),"Invalid tag: %s",e),N[e]=!0)}function a(e){i(e),this._tag=e,this.tagName=e.toUpperCase()}
4
+ var s=e("./CSSPropertyOperations"),c=e("./DOMProperty"),u=e("./DOMPropertyOperations"),l=e("./ReactBrowserComponentMixin"),p=e("./ReactComponent"),d=e("./ReactBrowserEventEmitter"),h=e("./ReactMount"),f=e("./ReactMultiChild"),m=e("./ReactPerf"),g=e("./Object.assign"),v=e("./escapeTextForBrowser"),y=e("./invariant"),b=e("./isEventSupported"),_=e("./keyOf"),w=e("./monitorCodeUse"),k=d.deleteListener,C=d.listenTo,E=d.registrationNameModules,x={string:!0,number:!0},R=_({style:null}),T=1,S={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},O=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,N={},D={}.hasOwnProperty;a.displayName="ReactDOMComponent",a.Mixin={mountComponent:m.measure("ReactDOMComponent","mountComponent",function(e,t,n){p.Mixin.mountComponent.call(this,e,t,n),o(this.props);var r=S[this._tag]?"":"</"+this._tag+">";return this._createOpenTagMarkupAndPutListeners(t)+this._createContentMarkup(t)+r}),_createOpenTagMarkupAndPutListeners:function(e){var t=this.props,n="<"+this._tag;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];if(null!=i)if(E.hasOwnProperty(o))r(this._rootNodeID,o,i,e);else{o===R&&(i&&(i=t.style=g({},t.style)),i=s.createMarkupForStyles(i));var a=u.createMarkupForProperty(o,i);a&&(n+=" "+a)}}return e.renderToStaticMarkup?n+">":n+" "+u.createMarkupForID(this._rootNodeID)+">"},_createContentMarkup:function(e){var t=this.props.dangerouslySetInnerHTML;if(null!=t){if(null!=t.__html)return t.__html}else{var n=x[typeof this.props.children]?this.props.children:null,o=null!=n?null:this.props.children;if(null!=n)return v(n);if(null!=o){return this.mountChildren(o,e).join("")}}return""},receiveComponent:function(e,t){e===this._currentElement&&null!=e._owner||p.Mixin.receiveComponent.call(this,e,t)},updateComponent:m.measure("ReactDOMComponent","updateComponent",function(e,t){o(this._currentElement.props),p.Mixin.updateComponent.call(this,e,t),this._updateDOMProperties(t.props,e),this._updateDOMChildren(t.props,e)}),_updateDOMProperties:function(e,t){var n,o,i,a=this.props;for(n in e)if(!a.hasOwnProperty(n)&&e.hasOwnProperty(n))if(n===R){var s=e[n];for(o in s)s.hasOwnProperty(o)&&(i=i||{},i[o]="")}else E.hasOwnProperty(n)?k(this._rootNodeID,n):(c.isStandardName[n]||c.isCustomAttribute(n))&&p.BackendIDOperations.deletePropertyByID(this._rootNodeID,n);for(n in a){var u=a[n],l=e[n];if(a.hasOwnProperty(n)&&u!==l)if(n===R)if(u&&(u=a.style=g({},u)),l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(i=i||{},i[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(i=i||{},i[o]=u[o])}else i=u;else E.hasOwnProperty(n)?r(this._rootNodeID,n,u,t):(c.isStandardName[n]||c.isCustomAttribute(n))&&p.BackendIDOperations.updatePropertyByID(this._rootNodeID,n,u)}i&&p.BackendIDOperations.updateStylesByID(this._rootNodeID,i)},_updateDOMChildren:function(e,t){var n=this.props,o=x[typeof e.children]?e.children:null,r=x[typeof n.children]?n.children:null,i=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,a=n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html,s=null!=o?null:e.children,c=null!=r?null:n.children,u=null!=o||null!=i,l=null!=r||null!=a;null!=s&&null==c?this.updateChildren(null,t):u&&!l&&this.updateTextContent(""),null!=r?o!==r&&this.updateTextContent(""+r):null!=a?i!==a&&p.BackendIDOperations.updateInnerHTMLByID(this._rootNodeID,a):null!=c&&this.updateChildren(c,t)},unmountComponent:function(){this.unmountChildren(),d.deleteAllListeners(this._rootNodeID),p.Mixin.unmountComponent.call(this)}},g(a.prototype,p.Mixin,a.Mixin,f.Mixin,l),t.exports=a},{"./CSSPropertyOperations":5,"./DOMProperty":11,"./DOMPropertyOperations":12,"./Object.assign":27,"./ReactBrowserComponentMixin":29,"./ReactBrowserEventEmitter":30,"./ReactComponent":32,"./ReactMount":63,"./ReactMultiChild":64,"./ReactPerf":68,"./escapeTextForBrowser":109,"./invariant":126,"./isEventSupported":127,"./keyOf":133,"./monitorCodeUse":136}],40:[function(e,t,n){"use strict";var o=e("./EventConstants"),r=e("./LocalEventTrapMixin"),i=e("./ReactBrowserComponentMixin"),a=e("./ReactCompositeComponent"),s=e("./ReactElement"),c=e("./ReactDOM"),u=s.createFactory(c.form.type),l=a.createClass({displayName:"ReactDOMForm",mixins:[i,r],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(o.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(o.topLevelTypes.topSubmit,"submit")}});t.exports=l},{"./EventConstants":16,"./LocalEventTrapMixin":25,"./ReactBrowserComponentMixin":29,"./ReactCompositeComponent":34,"./ReactDOM":37,"./ReactElement":52}],41:[function(e,t,n){"use strict";var o=e("./CSSPropertyOperations"),r=e("./DOMChildrenOperations"),i=e("./DOMPropertyOperations"),a=e("./ReactMount"),s=e("./ReactPerf"),c=e("./invariant"),u=e("./setInnerHTML"),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},p={updatePropertyByID:s.measure("ReactDOMIDOperations","updatePropertyByID",function(e,t,n){var o=a.getNode(e);c(!l.hasOwnProperty(t),"updatePropertyByID(...): %s",l[t]),null!=n?i.setValueForProperty(o,t,n):i.deleteValueForProperty(o,t)}),deletePropertyByID:s.measure("ReactDOMIDOperations","deletePropertyByID",function(e,t,n){var o=a.getNode(e);c(!l.hasOwnProperty(t),"updatePropertyByID(...): %s",l[t]),i.deleteValueForProperty(o,t,n)}),updateStylesByID:s.measure("ReactDOMIDOperations","updateStylesByID",function(e,t){var n=a.getNode(e);o.setValueForStyles(n,t)}),updateInnerHTMLByID:s.measure("ReactDOMIDOperations","updateInnerHTMLByID",function(e,t){var n=a.getNode(e);u(n,t)}),updateTextContentByID:s.measure("ReactDOMIDOperations","updateTextContentByID",function(e,t){var n=a.getNode(e);r.updateTextContent(n,t)}),dangerouslyReplaceNodeWithMarkupByID:s.measure("ReactDOMIDOperations","dangerouslyReplaceNodeWithMarkupByID",function(e,t){var n=a.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)}),dangerouslyProcessChildrenUpdates:s.measure("ReactDOMIDOperations","dangerouslyProcessChildrenUpdates",function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=a.getNode(e[n].parentID);r.processUpdates(e,t)})};t.exports=p},{"./CSSPropertyOperations":5,"./DOMChildrenOperations":10,"./DOMPropertyOperations":12,"./ReactMount":63,"./ReactPerf":68,"./invariant":126,"./setInnerHTML":140}],42:[function(e,t,n){"use strict";var o=e("./EventConstants"),r=e("./LocalEventTrapMixin"),i=e("./ReactBrowserComponentMixin"),a=e("./ReactCompositeComponent"),s=e("./ReactElement"),c=e("./ReactDOM"),u=s.createFactory(c.img.type),l=a.createClass({displayName:"ReactDOMImg",tagName:"IMG",mixins:[i,r],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(o.topLevelTypes.topLoad,"load"),this.trapBubbledEvent(o.topLevelTypes.topError,"error")}});t.exports=l},{"./EventConstants":16,"./LocalEventTrapMixin":25,"./ReactBrowserComponentMixin":29,"./ReactCompositeComponent":34,"./ReactDOM":37,"./ReactElement":52}],43:[function(e,t,n){"use strict";function o(){this.isMounted()&&this.forceUpdate()}var r=e("./AutoFocusMixin"),i=e("./DOMPropertyOperations"),a=e("./LinkedValueUtils"),s=e("./ReactBrowserComponentMixin"),c=e("./ReactCompositeComponent"),u=e("./ReactElement"),l=e("./ReactDOM"),p=e("./ReactMount"),d=e("./ReactUpdates"),h=e("./Object.assign"),f=e("./invariant"),m=u.createFactory(l.input.type),g={},v=c.createClass({displayName:"ReactDOMInput",mixins:[r,a.Mixin,s],getInitialState:function(){var e=this.props.defaultValue;return{initialChecked:this.props.defaultChecked||!1,initialValue:null!=e?e:null}},render:function(){var e=h({},this.props);e.defaultChecked=null,e.defaultValue=null;var t=a.getValue(this);e.value=null!=t?t:this.state.initialValue;var n=a.getChecked(this);return e.checked=null!=n?n:this.state.initialChecked,e.onChange=this._handleChange,m(e,this.props.children)},componentDidMount:function(){var e=p.getID(this.getDOMNode());g[e]=this},componentWillUnmount:function(){var e=this.getDOMNode(),t=p.getID(e);delete g[t]},componentDidUpdate:function(e,t,n){var o=this.getDOMNode();null!=this.props.checked&&i.setValueForProperty(o,"checked",this.props.checked||!1);var r=a.getValue(this);null!=r&&i.setValueForProperty(o,"value",""+r)},_handleChange:function(e){var t,n=a.getOnChange(this);n&&(t=n.call(this,e)),d.asap(o,this);var r=this.props.name;if("radio"===this.props.type&&null!=r){for(var i=this.getDOMNode(),s=i;s.parentNode;)s=s.parentNode;for(var c=s.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),u=0,l=c.length;u<l;u++){var h=c[u];if(h!==i&&h.form===i.form){var m=p.getID(h);f(m,"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");var v=g[m];f(v,"ReactDOMInput: Unknown radio button ID %s.",m),d.asap(o,v)}}}return t}});t.exports=v},{"./AutoFocusMixin":2,"./DOMPropertyOperations":12,"./LinkedValueUtils":24,"./Object.assign":27,"./ReactBrowserComponentMixin":29,"./ReactCompositeComponent":34,"./ReactDOM":37,"./ReactElement":52,"./ReactMount":63,"./ReactUpdates":79,"./invariant":126}],44:[function(e,t,n){"use strict";var o=e("./ReactBrowserComponentMixin"),r=e("./ReactCompositeComponent"),i=e("./ReactElement"),a=e("./ReactDOM"),s=e("./warning"),c=i.createFactory(a.option.type),u=r.createClass({displayName:"ReactDOMOption",mixins:[o],componentWillMount:function(){s(null==this.props.selected,"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.")},render:function(){return c(this.props,this.props.children)}});t.exports=u},{"./ReactBrowserComponentMixin":29,"./ReactCompositeComponent":34,"./ReactDOM":37,"./ReactElement":52,"./warning":145}],45:[function(e,t,n){"use strict";function o(){this.isMounted()&&(this.setState({value:this._pendingValue}),this._pendingValue=0)}function r(e,t,n){if(null!=e[t])if(e.multiple){if(!Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function i(e,t){var n,o,r,i=e.props.multiple,a=null!=t?t:e.state.value,s=e.getDOMNode().options;if(i)for(n={},o=0,r=a.length;o<r;++o)n[""+a[o]]=!0;else n=""+a;for(o=0,r=s.length;o<r;o++){var c=i?n.hasOwnProperty(s[o].value):s[o].value===n;c!==s[o].selected&&(s[o].selected=c)}}var a=e("./AutoFocusMixin"),s=e("./LinkedValueUtils"),c=e("./ReactBrowserComponentMixin"),u=e("./ReactCompositeComponent"),l=e("./ReactElement"),p=e("./ReactDOM"),d=e("./ReactUpdates"),h=e("./Object.assign"),f=l.createFactory(p.select.type),m=u.createClass({displayName:"ReactDOMSelect",mixins:[a,s.Mixin,c],propTypes:{defaultValue:r,value:r},getInitialState:function(){return{value:this.props.defaultValue||(this.props.multiple?[]:"")}},componentWillMount:function(){this._pendingValue=null},componentWillReceiveProps:function(e){!this.props.multiple&&e.multiple?this.setState({value:[this.state.value]}):this.props.multiple&&!e.multiple&&this.setState({value:this.state.value[0]})},render:function(){var e=h({},this.props);return e.onChange=this._handleChange,e.value=null,f(e,this.props.children)},componentDidMount:function(){i(this,s.getValue(this))},componentDidUpdate:function(e){var t=s.getValue(this),n=!!e.multiple,o=!!this.props.multiple;null==t&&n===o||i(this,t)},_handleChange:function(e){var t,n=s.getOnChange(this);n&&(t=n.call(this,e));var r;if(this.props.multiple){r=[];for(var i=e.target.options,a=0,c=i.length;a<c;a++)i[a].selected&&r.push(i[a].value)}else r=e.target.value;return this._pendingValue=r,d.asap(o,this),t}});t.exports=m},{"./AutoFocusMixin":2,"./LinkedValueUtils":24,"./Object.assign":27,"./ReactBrowserComponentMixin":29,"./ReactCompositeComponent":34,"./ReactDOM":37,"./ReactElement":52,"./ReactUpdates":79}],46:[function(e,t,n){"use strict";function o(e,t,n,o){return e===n&&t===o}function r(e){var t=document.selection,n=t.createRange(),o=n.text.length,r=n.duplicate();r.moveToElementText(e),r.setEndPoint("EndToStart",n);var i=r.text.length;return{start:i,end:i+o}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,r=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0),c=o(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),u=c?0:s.toString().length,l=s.cloneRange();l.selectNodeContents(e),l.setEnd(s.startContainer,s.startOffset);var p=o(l.startContainer,l.startOffset,l.endContainer,l.endOffset),d=p?0:l.toString().length,h=d+u,f=document.createRange();f.setStart(n,r),f.setEnd(i,a);var m=f.collapsed;return{start:m?h:d,end:m?d:h}}function a(e,t){var n,o,r=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,o=n):t.start>t.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),o=e[l()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var s=u(e,r),c=u(e,i);if(s&&c){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),r>i?(n.addRange(p),n.extend(c.node,c.offset)):(p.setEnd(c.node,c.offset),n.addRange(p))}}}var c=e("./ExecutionEnvironment"),u=e("./getNodeForCharacterOffset"),l=e("./getTextContentAccessor"),p=c.canUseDOM&&document.selection,d={getOffsets:p?r:i,setOffsets:p?a:s};t.exports=d},{"./ExecutionEnvironment":22,"./getNodeForCharacterOffset":119,"./getTextContentAccessor":121}],47:[function(e,t,n){"use strict";function o(){this.isMounted()&&this.forceUpdate()}var r=e("./AutoFocusMixin"),i=e("./DOMPropertyOperations"),a=e("./LinkedValueUtils"),s=e("./ReactBrowserComponentMixin"),c=e("./ReactCompositeComponent"),u=e("./ReactElement"),l=e("./ReactDOM"),p=e("./ReactUpdates"),d=e("./Object.assign"),h=e("./invariant"),f=e("./warning"),m=u.createFactory(l.textarea.type),g=c.createClass({displayName:"ReactDOMTextarea",mixins:[r,a.Mixin,s],getInitialState:function(){var e=this.props.defaultValue,t=this.props.children;null!=t&&(f(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."),h(null==e,"If you supply `defaultValue` on a <textarea>, do not pass children."),Array.isArray(t)&&(h(t.length<=1,"<textarea> can only have at most one child."),t=t[0]),e=""+t),null==e&&(e="");var n=a.getValue(this);return{initialValue:""+(null!=n?n:e)}},render:function(){var e=d({},this.props);return h(null==e.dangerouslySetInnerHTML,"`dangerouslySetInnerHTML` does not make sense on <textarea>."),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,m(e,this.state.initialValue)},componentDidUpdate:function(e,t,n){var o=a.getValue(this);if(null!=o){var r=this.getDOMNode();i.setValueForProperty(r,"value",""+o)}},_handleChange:function(e){var t,n=a.getOnChange(this);return n&&(t=n.call(this,e)),p.asap(o,this),t}});t.exports=g},{"./AutoFocusMixin":2,"./DOMPropertyOperations":12,"./LinkedValueUtils":24,"./Object.assign":27,"./ReactBrowserComponentMixin":29,"./ReactCompositeComponent":34,"./ReactDOM":37,"./ReactElement":52,"./ReactUpdates":79,"./invariant":126,"./warning":145}],48:[function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=e("./ReactUpdates"),i=e("./Transaction"),a=e("./Object.assign"),s=e("./emptyFunction"),c={initialize:s,close:function(){d.isBatchingUpdates=!1}},u={initialize:s,close:r.flushBatchedUpdates.bind(r)},l=[u,c];a(o.prototype,i.Mixin,{getTransactionWrappers:function(){return l}});var p=new o,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n){var o=d.isBatchingUpdates;d.isBatchingUpdates=!0,o?e(t,n):p.perform(e,null,t,n)}};t.exports=d},{"./Object.assign":27,"./ReactUpdates":79,"./Transaction":95,"./emptyFunction":107}],49:[function(e,t,n){"use strict";function o(){(x.EventEmitter.injectReactEventListener(E),x.EventPluginHub.injectEventPluginOrder(c),x.EventPluginHub.injectInstanceHandle(R),x.EventPluginHub.injectMount(T),x.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:N,EnterLeaveEventPlugin:u,ChangeEventPlugin:i,CompositionEventPlugin:s,MobileSafariClickEventPlugin:d,SelectEventPlugin:S,BeforeInputEventPlugin:r}),x.NativeComponent.injectGenericComponentClass(g),x.NativeComponent.injectComponentClasses({button:v,form:y,img:b,input:_,option:w,select:k,textarea:C,html:M("html"),head:M("head"),body:M("body")}),x.CompositeComponent.injectMixin(h),x.DOMProperty.injectDOMPropertyConfig(p),x.DOMProperty.injectDOMPropertyConfig(D),x.EmptyComponent.injectEmptyComponent("noscript"),x.Updates.injectReconcileTransaction(f.ReactReconcileTransaction),x.Updates.injectBatchingStrategy(m),x.RootIndex.injectCreateReactRootIndex(l.canUseDOM?a.createReactRootIndex:O.createReactRootIndex),x.Component.injectEnvironment(f),/[?&]react_perf\b/.test(l.canUseDOM&&window.location.href||""))&&e("./ReactDefaultPerf").start()}var r=e("./BeforeInputEventPlugin"),i=e("./ChangeEventPlugin"),a=e("./ClientReactRootIndex"),s=e("./CompositionEventPlugin"),c=e("./DefaultEventPluginOrder"),u=e("./EnterLeaveEventPlugin"),l=e("./ExecutionEnvironment"),p=e("./HTMLDOMPropertyConfig"),d=e("./MobileSafariClickEventPlugin"),h=e("./ReactBrowserComponentMixin"),f=e("./ReactComponentBrowserEnvironment"),m=e("./ReactDefaultBatchingStrategy"),g=e("./ReactDOMComponent"),v=e("./ReactDOMButton"),y=e("./ReactDOMForm"),b=e("./ReactDOMImg"),_=e("./ReactDOMInput"),w=e("./ReactDOMOption"),k=e("./ReactDOMSelect"),C=e("./ReactDOMTextarea"),E=e("./ReactEventListener"),x=e("./ReactInjection"),R=e("./ReactInstanceHandles"),T=e("./ReactMount"),S=e("./SelectEventPlugin"),O=e("./ServerReactRootIndex"),N=e("./SimpleEventPlugin"),D=e("./SVGDOMPropertyConfig"),M=e("./createFullPageComponent");t.exports={inject:o}},{"./BeforeInputEventPlugin":3,"./ChangeEventPlugin":7,"./ClientReactRootIndex":8,"./CompositionEventPlugin":9,"./DefaultEventPluginOrder":14,"./EnterLeaveEventPlugin":15,"./ExecutionEnvironment":22,"./HTMLDOMPropertyConfig":23,"./MobileSafariClickEventPlugin":26,"./ReactBrowserComponentMixin":29,"./ReactComponentBrowserEnvironment":33,"./ReactDOMButton":38,"./ReactDOMComponent":39,"./ReactDOMForm":40,"./ReactDOMImg":42,"./ReactDOMInput":43,"./ReactDOMOption":44,"./ReactDOMSelect":45,"./ReactDOMTextarea":47,"./ReactDefaultBatchingStrategy":48,"./ReactDefaultPerf":50,"./ReactEventListener":57,"./ReactInjection":58,"./ReactInstanceHandles":60,"./ReactMount":63,"./SVGDOMPropertyConfig":80,"./SelectEventPlugin":81,"./ServerReactRootIndex":82,"./SimpleEventPlugin":83,"./createFullPageComponent":103}],50:[function(e,t,n){"use strict";function o(e){return Math.floor(100*e)/100}function r(e,t,n){e[t]=(e[t]||0)+n}var i=e("./DOMProperty"),a=e("./ReactDefaultPerfAnalysis"),s=e("./ReactMount"),c=e("./ReactPerf"),u=e("./performanceNow"),l={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){l._injected||c.injection.injectMeasure(l.measure),l._allMeasurements.length=0,c.enableMeasure=!0},stop:function(){c.enableMeasure=!1},getLastMeasurements:function(){return l._allMeasurements},printExclusive:function(e){e=e||l._allMeasurements;var t=a.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":o(e.inclusive),"Exclusive mount time (ms)":o(e.exclusive),"Exclusive render time (ms)":o(e.render),"Mount time per instance (ms)":o(e.exclusive/e.count),"Render time per instance (ms)":o(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||l._allMeasurements;var t=a.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":o(e.time),Instances:e.count}})),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){return a.getInclusiveSummary(e,!0).map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||l._allMeasurements,console.table(l.getMeasurementsSummaryMap(e)),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||l._allMeasurements;var t=a.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[i.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,o){var r=l._allMeasurements[l._allMeasurements.length-1].writes;r[e]=r[e]||[],r[e].push({type:t,time:n,args:o})},measure:function(e,t,n){return function(){for(var o=[],i=0,a=arguments.length;i<a;i++)o.push(arguments[i]);var c,p,d;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return l._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0}),d=u(),p=n.apply(this,o),l._allMeasurements[l._allMeasurements.length-1].totalTime=u()-d,p;if("ReactDOMIDOperations"===e||"ReactComponentBrowserEnvironment"===e){if(d=u(),p=n.apply(this,o),c=u()-d,"mountImageIntoNode"===t){var h=s.getID(o[1]);l._recordWrite(h,t,c,o[0])}else"dangerouslyProcessChildrenUpdates"===t?o[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=o[1][e.markupIndex]),l._recordWrite(e.parentID,e.type,c,t)}):l._recordWrite(o[0],t,c,Array.prototype.slice.call(o,1));return p}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,o);var f="mountComponent"===t?o[0]:this._rootNodeID,m="_renderValidatedComponent"===t,g="mountComponent"===t,v=l._mountStack,y=l._allMeasurements[l._allMeasurements.length-1];if(m?r(y.counts,f,1):g&&v.push(0),d=u(),p=n.apply(this,o),c=u()-d,m)r(y.render,f,c);else if(g){var b=v.pop();v[v.length-1]+=c,r(y.exclusive,f,c-b),r(y.inclusive,f,c)}else r(y.inclusive,f,c);return y.displayNames[f]={current:this.constructor.displayName,owner:this._owner?this._owner.constructor.displayName:"<root>"},p}}};t.exports=l},{"./DOMProperty":11,"./ReactDefaultPerfAnalysis":51,"./ReactMount":63,"./ReactPerf":68,"./performanceNow":139}],51:[function(e,t,n){function o(e){for(var t=0,n=0;n<e.length;n++){t+=e[n].totalTime}return t}function r(e){for(var t=[],n=0;n<e.length;n++){var o,r=e[n];for(o in r.writes)r.writes[o].forEach(function(e){t.push({id:o,type:l[e.type]||e.type,args:e.args})})}return t}function i(e){for(var t,n={},o=0;o<e.length;o++){var r=e[o],i=c({},r.exclusive,r.inclusive);for(var a in i)t=r.displayNames[a].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},r.render[a]&&(n[t].render+=r.render[a]),r.exclusive[a]&&(n[t].exclusive+=r.exclusive[a]),r.inclusive[a]&&(n[t].inclusive+=r.inclusive[a]),r.counts[a]&&(n[t].count+=r.counts[a])}var s=[];for(t in n)n[t].exclusive>=u&&s.push(n[t]);return s.sort(function(e,t){return t.exclusive-e.exclusive}),s}function a(e,t){for(var n,o={},r=0;r<e.length;r++){var i,a=e[r],l=c({},a.exclusive,a.inclusive);t&&(i=s(a));for(var p in l)if(!t||i[p]){var d=a.displayNames[p];n=d.owner+" > "+d.current,o[n]=o[n]||{componentName:n,time:0,count:0},a.inclusive[p]&&(o[n].time+=a.inclusive[p]),a.counts[p]&&(o[n].count+=a.counts[p])}}var h=[];for(n in o)o[n].time>=u&&h.push(o[n]);return h.sort(function(e,t){return t.time-e.time}),h}function s(e){var t={},n=Object.keys(e.writes),o=c({},e.exclusive,e.inclusive);for(var r in o){for(var i=!1,a=0;a<n.length;a++)if(0===n[a].indexOf(r)){i=!0;break}!i&&e.counts[r]>0&&(t[r]=!0)}return t}var c=e("./Object.assign"),u=1.2,l={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"},p={getExclusiveSummary:i,getInclusiveSummary:a,getDOMSummary:r,getTotalTime:o};t.exports=p},{"./Object.assign":27}],52:[function(e,t,n){"use strict";function o(e,t){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:function(){return this._store?this._store[t]:null},set:function(e){a(!1,"Don't set the "+t+" property of the component. Mutate the existing props object instead."),this._store[t]=e}})}var r=e("./ReactContext"),i=e("./ReactCurrentOwner"),a=e("./warning"),s={key:!0,ref:!0},c=!1,u=function(e,t,n,o,r,i){if(this.type=e,this.key=t,this.ref=n,this._owner=o,this._context=r,this._store={validated:!1,props:i},c)return void Object.freeze(this);this.props=i};u.prototype={_isReactElement:!0},function(e){try{var t={props:!0};for(var n in t)o(e,n);c=!0}catch(e){}}(u.prototype),u.createElement=function(e,t,n){var o,c={},l=null,p=null;if(null!=t){p=void 0===t.ref?null:t.ref,a(null!==t.key,"createElement(...): Encountered component with a `key` of null. In a future version, this will be treated as equivalent to the string 'null'; instead, provide an explicit key or use undefined."),l=null==t.key?null:""+t.key;for(o in t)t.hasOwnProperty(o)&&!s.hasOwnProperty(o)&&(c[o]=t[o])}var d=arguments.length-2;if(1===d)c.children=n;else if(d>1){for(var h=Array(d),f=0;f<d;f++)h[f]=arguments[f+2];c.children=h}if(e&&e.defaultProps){var m=e.defaultProps;for(o in m)void 0===c[o]&&(c[o]=m[o])}return new u(e,l,p,i.current,r.current,c)},u.createFactory=function(e){var t=u.createElement.bind(null,e);return t.type=e,t},u.cloneAndReplaceProps=function(e,t){var n=new u(e.type,e.key,e.ref,e._owner,e._context,t);return n._store.validated=e._store.validated,n},u.isValidElement=function(e){return!(!e||!e._isReactElement)},t.exports=u},{"./ReactContext":35,"./ReactCurrentOwner":36,"./warning":145}],53:[function(e,t,n){"use strict";function o(){var e=d.current;return e&&e.constructor.displayName||void 0}function r(e,t){e._store.validated||null!=e.key||(e._store.validated=!0,a("react_key_warning",'Each child in an array should have a unique "key" prop.',e,t))}function i(e,t,n){y.test(e)&&a("react_numeric_key_warning","Child objects should have non-numeric keys so ordering is preserved.",t,n)}function a(e,t,n,r){var i=o(),a=r.displayName,s=i||a,c=m[e];if(!c.hasOwnProperty(s)){c[s]=!0,t+=i?" Check the render method of "+i+".":" Check the renderComponent call using <"+a+">.";var u=null;n._owner&&n._owner!==d.current&&(u=n._owner.constructor.displayName,t+=" It was passed a child from "+u+"."),t+=" See http://fb.me/react-warning-keys for more information.",h(e,{component:s,componentOwner:u}),console.warn(t)}}function s(){var e=o()||"";g.hasOwnProperty(e)||(g[e]=!0,h("react_object_map_children"))}function c(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=e[n];l.isValidElement(o)&&r(o,t)}else if(l.isValidElement(e))e._store.validated=!0;else if(e&&"object"==typeof e){s();for(var a in e)i(a,e[a],t)}}function u(e,t,n,o){for(var r in t)if(t.hasOwnProperty(r)){var i;try{i=t[r](n,r,e,o)}catch(e){i=e}i instanceof Error&&!(i.message in v)&&(v[i.message]=!0,h("react_failed_descriptor_type_check",{message:i.message}))}}var l=e("./ReactElement"),p=e("./ReactPropTypeLocations"),d=e("./ReactCurrentOwner"),h=e("./monitorCodeUse"),f=e("./warning"),m={react_key_warning:{},react_numeric_key_warning:{}},g={},v={},y=/^\d+$/,b={createElement:function(e,t,n){f(null!=e,"React.createElement: type should not be null or undefined. It should be a string (for DOM elements) or a ReactClass (for composite components).");var o=l.createElement.apply(this,arguments);if(null==o)return o;for(var r=2;r<arguments.length;r++)c(arguments[r],e);if(e){var i=e.displayName;e.propTypes&&u(i,e.propTypes,o.props,p.prop),e.contextTypes&&u(i,e.contextTypes,o._context,p.context)}return o},createFactory:function(e){var t=b.createElement.bind(null,e);return t.type=e,t}};t.exports=b},{"./ReactCurrentOwner":36,"./ReactElement":52,"./ReactPropTypeLocations":71,"./monitorCodeUse":136,"./warning":145}],54:[function(e,t,n){"use strict";function o(){return u(s,"Trying to return null from a render, but no null placeholder component was injected."),s()}function r(e){l[e]=!0}function i(e){delete l[e]}function a(e){return l[e]}var s,c=e("./ReactElement"),u=e("./invariant"),l={},p={injectEmptyComponent:function(e){s=c.createFactory(e)}},d={deregisterNullComponentID:i,getEmptyComponent:o,injection:p,isNullComponentID:a,registerNullComponentID:r};t.exports=d},{"./ReactElement":52,"./invariant":126}],55:[function(e,t,n){"use strict";var o={guard:function(e,t){return e}};t.exports=o},{}],56:[function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue()}var r=e("./EventPluginHub"),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};t.exports=i},{"./EventPluginHub":18}],57:[function(e,t,n){"use strict";function o(e){var t=p.getID(e),n=l.getReactRootIDFromNodeID(t),o=p.findReactContainerForID(n);return p.getFirstReactDOM(o)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){for(var t=p.getFirstReactDOM(f(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=o(n);for(var r=0,i=e.ancestors.length;r<i;r++){t=e.ancestors[r];var a=p.getID(t)||"";g._handleTopLevel(e.topLevelType,t,a,e.nativeEvent)}}function a(e){e(m(window))}var s=e("./EventListener"),c=e("./ExecutionEnvironment"),u=e("./PooledClass"),l=e("./ReactInstanceHandles"),p=e("./ReactMount"),d=e("./ReactUpdates"),h=e("./Object.assign"),f=e("./getEventTarget"),m=e("./getUnboundedScrollPosition");h(r.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),u.addPoolingTo(r,u.twoArgumentPooler);var g={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:c.canUseDOM?window:null,setHandleTopLevel:function(e){g._handleTopLevel=e},setEnabled:function(e){g._enabled=!!e},isEnabled:function(){return g._enabled},trapBubbledEvent:function(e,t,n){var o=n;if(o)return s.listen(o,t,g.dispatchEvent.bind(null,e))},trapCapturedEvent:function(e,t,n){var o=n;if(o)return s.capture(o,t,g.dispatchEvent.bind(null,e))},monitorScrollValue:function(e){var t=a.bind(null,e);s.listen(window,"scroll",t),s.listen(window,"resize",t)},dispatchEvent:function(e,t){if(g._enabled){var n=r.getPooled(e,t);try{d.batchedUpdates(i,n)}finally{r.release(n)}}}};t.exports=g},{"./EventListener":17,"./ExecutionEnvironment":22,"./Object.assign":27,"./PooledClass":28,"./ReactInstanceHandles":60,"./ReactMount":63,"./ReactUpdates":79,"./getEventTarget":117,"./getUnboundedScrollPosition":122}],58:[function(e,t,n){"use strict";var o=e("./DOMProperty"),r=e("./EventPluginHub"),i=e("./ReactComponent"),a=e("./ReactCompositeComponent"),s=e("./ReactEmptyComponent"),c=e("./ReactBrowserEventEmitter"),u=e("./ReactNativeComponent"),l=e("./ReactPerf"),p=e("./ReactRootIndex"),d=e("./ReactUpdates"),h={Component:i.injection,CompositeComponent:a.injection,DOMProperty:o.injection,EmptyComponent:s.injection,EventPluginHub:r.injection,EventEmitter:c.injection,NativeComponent:u.injection,Perf:l.injection,RootIndex:p.injection,Updates:d.injection};t.exports=h},{"./DOMProperty":11,"./EventPluginHub":18,"./ReactBrowserEventEmitter":30,"./ReactComponent":32,"./ReactCompositeComponent":34,"./ReactEmptyComponent":54,"./ReactNativeComponent":66,"./ReactPerf":68,"./ReactRootIndex":75,"./ReactUpdates":79}],59:[function(e,t,n){"use strict";function o(e){return i(document.documentElement,e)}var r=e("./ReactDOMSelection"),i=e("./containsNode"),a=e("./focusNode"),s=e("./getActiveElement"),c={hasSelectionCapabilities:function(e){return e&&("INPUT"===e.nodeName&&"text"===e.type||"TEXTAREA"===e.nodeName||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:c.hasSelectionCapabilities(e)?c.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,r=e.selectionRange;t!==n&&o(n)&&(c.hasSelectionCapabilities(n)&&c.setSelection(n,r),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd
5
+ };else if(document.selection&&"INPUT"===e.nodeName){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=r.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,o=t.end;if(void 0===o&&(o=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(o,e.value.length);else if(document.selection&&"INPUT"===e.nodeName){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",o-n),i.select()}else r.setOffsets(e,t)}};t.exports=c},{"./ReactDOMSelection":46,"./containsNode":101,"./focusNode":111,"./getActiveElement":113}],60:[function(e,t,n){"use strict";function o(e){return h+e.toString(36)}function r(e,t){return e.charAt(t)===h||t===e.length}function i(e){return""===e||e.charAt(0)===h&&e.charAt(e.length-1)!==h}function a(e,t){return 0===t.indexOf(e)&&r(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(h)):""}function c(e,t){if(d(i(e)&&i(t),"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",e,t),d(a(e,t),"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",e,t),e===t)return e;for(var n=e.length+f,o=n;o<t.length&&!r(t,o);o++);return t.substr(0,o)}function u(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var o=0,a=0;a<=n;a++)if(r(e,a)&&r(t,a))o=a;else if(e.charAt(a)!==t.charAt(a))break;var s=e.substr(0,o);return d(i(s),"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,t,s),s}function l(e,t,n,o,r,i){e=e||"",t=t||"",d(e!==t,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e);var u=a(t,e);d(u||a(e,t),"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,t);for(var l=0,p=u?s:c,h=e;;h=p(h,t)){var f;if(r&&h===e||i&&h===t||(f=n(h,u,o)),!1===f||h===t)break;d(l++<m,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",e,t)}}var p=e("./ReactRootIndex"),d=e("./invariant"),h=".",f=h.length,m=100,g={createReactRootID:function(){return o(p.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===h&&e.length>1){var t=e.indexOf(h,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,o,r){var i=u(e,t);i!==e&&l(e,i,n,o,!1,!0),i!==t&&l(i,t,n,r,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},_getFirstCommonAncestorID:u,_getNextDescendantID:c,isAncestorIDOf:a,SEPARATOR:h};t.exports=g},{"./ReactRootIndex":75,"./invariant":126}],61:[function(e,t,n){"use strict";function o(){if(f._isLegacyCallWarningEnabled){var e=s.current,t=e&&e.constructor?e.constructor.displayName:"";t||(t="Something"),p.hasOwnProperty(t)||(p[t]=!0,l(!1,t+" is calling a React component directly. Use a factory or JSX instead. See: http://fb.me/react-legacyfactory"),u("react_legacy_factory_call",{version:3,name:t}))}}function r(e){if(e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent)l(!1,"Did not expect to get a React class here. Use `Component` instead of `Component.type` or `this.constructor`.");else{if(!e._reactWarnedForThisType){try{e._reactWarnedForThisType=!0}catch(e){}u("react_non_component_in_jsx",{version:3,name:e.name})}l(!1,"This JSX uses a plain function. Only React components are valid in React's JSX transform.")}}function i(e){l(!1,"Do not pass React.DOM."+e.type+' to JSX or createFactory. Use the string "'+e.type+'" instead.')}function a(e,t){if("function"==typeof t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];if("function"==typeof o){var r=o.bind(t);for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i]);e[n]=r}else e[n]=o}}var s=e("./ReactCurrentOwner"),c=e("./invariant"),u=e("./monitorCodeUse"),l=e("./warning"),p={},d={},h={},f={};f.wrapCreateFactory=function(e){return function(t){return"function"!=typeof t?e(t):t.isReactNonLegacyFactory?(i(t),e(t.type)):t.isReactLegacyFactory?e(t.type):(r(t),t)}},f.wrapCreateElement=function(e){return function(t,n,o){if("function"!=typeof t)return e.apply(this,arguments);var a;return t.isReactNonLegacyFactory?(i(t),a=Array.prototype.slice.call(arguments,0),a[0]=t.type,e.apply(this,a)):t.isReactLegacyFactory?(t._isMockFunction&&(t.type._mockedReactClassConstructor=t),a=Array.prototype.slice.call(arguments,0),a[0]=t.type,e.apply(this,a)):(r(t),t.apply(null,Array.prototype.slice.call(arguments,1)))}},f.wrapFactory=function(e){c("function"==typeof e,"This is suppose to accept a element factory");var t=function(t,n){return o(),e.apply(this,arguments)};return a(t,e.type),t.isReactLegacyFactory=d,t.type=e.type,t},f.markNonLegacyFactory=function(e){return e.isReactNonLegacyFactory=h,e},f.isValidFactory=function(e){return"function"==typeof e&&e.isReactLegacyFactory===d},f.isValidClass=function(e){return l(!1,"isValidClass is deprecated and will be removed in a future release. Use a more specific validator instead."),f.isValidFactory(e)},f._isLegacyCallWarningEnabled=!0,t.exports=f},{"./ReactCurrentOwner":36,"./invariant":126,"./monitorCodeUse":136,"./warning":145}],62:[function(e,t,n){"use strict";var o=e("./adler32"),r={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return e.replace(">"," "+r.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var n=t.getAttribute(r.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};t.exports=r},{"./adler32":98}],63:[function(e,t,n){"use strict";function o(e){var t=w(e);return t&&P.getID(t)}function r(e){var t=i(e);if(t)if(O.hasOwnProperty(t)){var n=O[t];n!==e&&(C(!c(n,t),"ReactMount: Two valid but unequal nodes with the same `%s`: %s",S,t),O[t]=e)}else O[t]=e;return t}function i(e){return e&&e.getAttribute&&e.getAttribute(S)||""}function a(e,t){var n=i(e);n!==t&&delete O[n],e.setAttribute(S,t),O[t]=e}function s(e){return O.hasOwnProperty(e)&&c(O[e],e)||(O[e]=P.findReactNodeByID(e)),O[e]}function c(e,t){if(e){C(i(e)===t,"ReactMount: Unexpected modification of `%s`",S);var n=P.findReactContainerForID(t);if(n&&b(n,e))return!0}return!1}function u(e){delete O[e]}function l(e){var t=O[e];if(!t||!c(t,e))return!1;L=t}function p(e){L=null,v.traverseAncestors(e,l);var t=L;return L=null,t}var d=e("./DOMProperty"),h=e("./ReactBrowserEventEmitter"),f=e("./ReactCurrentOwner"),m=e("./ReactElement"),g=e("./ReactLegacyElement"),v=e("./ReactInstanceHandles"),y=e("./ReactPerf"),b=e("./containsNode"),_=e("./deprecated"),w=e("./getReactRootElementInContainer"),k=e("./instantiateReactComponent"),C=e("./invariant"),E=e("./shouldUpdateReactComponent"),x=e("./warning"),R=g.wrapCreateElement(m.createElement),T=v.SEPARATOR,S=d.ID_ATTRIBUTE_NAME,O={},N={},D={},M={},I=[],L=null,P={_instancesByReactRootID:N,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){var i=t.props;return P.scrollMonitor(n,function(){e.replaceProps(i,r)}),M[o(n)]=w(n),e},_registerComponent:function(e,t){C(t&&(1===t.nodeType||9===t.nodeType),"_registerComponent(...): Target container is not a DOM element."),h.ensureScrollValueMonitoring();var n=P.registerContainer(t);return N[n]=e,n},_renderNewRootComponent:y.measure("ReactMount","_renderNewRootComponent",function(e,t,n){x(null==f.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.");var o=k(e,null),r=P._registerComponent(o,t);return o.mountComponentIntoNode(r,t,n),M[r]=w(t),o}),render:function(e,t,n){C(m.isValidElement(e),"renderComponent(): Invalid component element.%s","string"==typeof e?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":g.isValidFactory(e)?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var r=N[o(t)];if(r){var i=r._currentElement;if(E(i,e))return P._updateRootComponent(r,e,t,n);P.unmountComponentAtNode(t)}var a=w(t),s=a&&P.isRenderedByReact(a),c=s&&!r,u=P._renderNewRootComponent(e,t,c);return n&&n.call(u),u},constructAndRenderComponent:function(e,t,n){var o=R(e,t);return P.render(o,n)},constructAndRenderComponentByID:function(e,t,n){var o=document.getElementById(n);return C(o,'Tried to get element with id of "%s" but it is not present on the page.',n),P.constructAndRenderComponent(e,t,o)},registerContainer:function(e){var t=o(e);return t&&(t=v.getReactRootIDFromNodeID(t)),t||(t=v.createReactRootID()),D[t]=e,t},unmountComponentAtNode:function(e){x(null==f.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.");var t=o(e),n=N[t];return!!n&&(P.unmountComponentFromNode(n,e),delete N[t],delete D[t],delete M[t],!0)},unmountComponentFromNode:function(e,t){for(e.unmountComponent(),9===t.nodeType&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var t=v.getReactRootIDFromNodeID(e),n=D[t],o=M[t];if(o&&o.parentNode!==n){C(i(o)===t,"ReactMount: Root element ID differed from reactRootID.");var r=n.firstChild;r&&t===i(r)?M[t]=r:console.warn("ReactMount: Root element has been removed from its original container. New container:",o.parentNode)}return n},findReactNodeByID:function(e){var t=P.findReactContainerForID(e);return P.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=P.getID(e);return!!t&&t.charAt(0)===T},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(P.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,t){var n=I,o=0,r=p(t)||e;for(n[0]=r.firstChild,n.length=1;o<n.length;){for(var i,a=n[o++];a;){var s=P.getID(a);s?t===s?i=a:v.isAncestorIDOf(s,t)&&(n.length=o=0,n.push(a.firstChild)):n.push(a.firstChild),a=a.nextSibling}if(i)return n.length=0,i}n.length=0,C(!1,"findComponentRoot(..., %s): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",t,P.getID(e))},getReactRootID:o,getID:r,setID:a,getNode:s,purgeID:u};P.renderComponent=_("ReactMount","renderComponent","render",this,P.render),t.exports=P},{"./DOMProperty":11,"./ReactBrowserEventEmitter":30,"./ReactCurrentOwner":36,"./ReactElement":52,"./ReactInstanceHandles":60,"./ReactLegacyElement":61,"./ReactPerf":68,"./containsNode":101,"./deprecated":106,"./getReactRootElementInContainer":120,"./instantiateReactComponent":125,"./invariant":126,"./shouldUpdateReactComponent":142,"./warning":145}],64:[function(e,t,n){"use strict";function o(e,t,n){m.push({parentID:e,parentNode:null,type:l.INSERT_MARKUP,markupIndex:g.push(t)-1,textContent:null,fromIndex:null,toIndex:n})}function r(e,t,n){m.push({parentID:e,parentNode:null,type:l.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:t,toIndex:n})}function i(e,t){m.push({parentID:e,parentNode:null,type:l.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:t,toIndex:null})}function a(e,t){m.push({parentID:e,parentNode:null,type:l.TEXT_CONTENT,markupIndex:null,textContent:t,fromIndex:null,toIndex:null})}function s(){m.length&&(u.BackendIDOperations.dangerouslyProcessChildrenUpdates(m,g),c())}function c(){m.length=0,g.length=0}var u=e("./ReactComponent"),l=e("./ReactMultiChildUpdateTypes"),p=e("./flattenChildren"),d=e("./instantiateReactComponent"),h=e("./shouldUpdateReactComponent"),f=0,m=[],g=[],v={Mixin:{mountChildren:function(e,t){var n=p(e),o=[],r=0;this._renderedChildren=n;for(var i in n){var a=n[i];if(n.hasOwnProperty(i)){var s=d(a,null);n[i]=s;var c=this._rootNodeID+i,u=s.mountComponent(c,t,this._mountDepth+1);s._mountIndex=r,o.push(u),r++}}return o},updateTextContent:function(e){f++;var t=!0;try{var n=this._renderedChildren;for(var o in n)n.hasOwnProperty(o)&&this._unmountChildByName(n[o],o);this.setTextContent(e),t=!1}finally{f--,f||(t?c():s())}},updateChildren:function(e,t){f++;var n=!0;try{this._updateChildren(e,t),n=!1}finally{f--,f||(n?c():s())}},_updateChildren:function(e,t){var n=p(e),o=this._renderedChildren;if(n||o){var r,i=0,a=0;for(r in n)if(n.hasOwnProperty(r)){var s=o&&o[r],c=s&&s._currentElement,u=n[r];if(h(c,u))this.moveChild(s,a,i),i=Math.max(s._mountIndex,i),s.receiveComponent(u,t),s._mountIndex=a;else{s&&(i=Math.max(s._mountIndex,i),this._unmountChildByName(s,r));var l=d(u,null);this._mountChildByNameAtIndex(l,r,a,t)}a++}for(r in o)!o.hasOwnProperty(r)||n&&n[r]||this._unmountChildByName(o[r],r)}},unmountChildren:function(){var e=this._renderedChildren;for(var t in e){var n=e[t];n.unmountComponent&&n.unmountComponent()}this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&r(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){o(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){i(this._rootNodeID,e._mountIndex)},setTextContent:function(e){a(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,o){var r=this._rootNodeID+t,i=e.mountComponent(r,o,this._mountDepth+1);e._mountIndex=n,this.createChild(e,i),this._renderedChildren=this._renderedChildren||{},this._renderedChildren[t]=e},_unmountChildByName:function(e,t){this.removeChild(e),e._mountIndex=null,e.unmountComponent(),delete this._renderedChildren[t]}}};t.exports=v},{"./ReactComponent":32,"./ReactMultiChildUpdateTypes":65,"./flattenChildren":110,"./instantiateReactComponent":125,"./shouldUpdateReactComponent":142}],65:[function(e,t,n){"use strict";var o=e("./keyMirror"),r=o({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});t.exports=r},{"./keyMirror":132}],66:[function(e,t,n){"use strict";function o(e,t,n){var o=s[e];return null==o?(i(a,"There is no registered component for the tag %s",e),new a(e,t)):n===e?(i(a,"There is no registered component for the tag %s",e),new a(e,t)):new o.type(t)}var r=e("./Object.assign"),i=e("./invariant"),a=null,s={},c={injectGenericComponentClass:function(e){a=e},injectComponentClasses:function(e){r(s,e)}},u={createInstanceForTag:o,injection:c};t.exports=u},{"./Object.assign":27,"./invariant":126}],67:[function(e,t,n){"use strict";var o=e("./emptyObject"),r=e("./invariant"),i={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){r(i.isValidOwner(n),"addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(i.isValidOwner(n),"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. This usually means that you're trying to remove a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."),n.refs[t]===e&&n.detachRef(t)},Mixin:{construct:function(){this.refs=o},attachRef:function(e,t){r(t.isOwnedBy(this),"attachRef(%s, ...): Only a component's owner can store a ref to it.",e),(this.refs===o?this.refs={}:this.refs)[e]=t},detachRef:function(e){delete this.refs[e]}}};t.exports=i},{"./emptyObject":108,"./invariant":126}],68:[function(e,t,n){"use strict";function o(e,t,n){return n}var r={enableMeasure:!1,storedMeasure:o,measure:function(e,t,n){var o=null,i=function(){return r.enableMeasure?(o||(o=r.storedMeasure(e,t,n)),o.apply(this,arguments)):n.apply(this,arguments)};return i.displayName=e+"_"+t,i},injection:{injectMeasure:function(e){r.storedMeasure=e}}};t.exports=r},{}],69:[function(e,t,n){"use strict";function o(e){return function(t,n,o){t.hasOwnProperty(n)?t[n]=e(t[n],o):t[n]=o}}function r(e,t){for(var n in t)if(t.hasOwnProperty(n)){var o=d[n];o&&d.hasOwnProperty(n)?o(e,n,t[n]):e.hasOwnProperty(n)||(e[n]=t[n])}return e}var i=e("./Object.assign"),a=e("./emptyFunction"),s=e("./invariant"),c=e("./joinClasses"),u=e("./warning"),l=!1,p=o(function(e,t){return i({},t,e)}),d={children:a,className:o(c),style:p},h={TransferStrategies:d,mergeProps:function(e,t){return r(i({},e),t)},Mixin:{transferPropsTo:function(e){return s(e._owner===this,"%s: You can't call transferPropsTo() on a component that you don't own, %s. This usually means you are calling transferPropsTo() on a component passed in as props or children.",this.constructor.displayName,"string"==typeof e.type?e.type:e.type.displayName),l||(l=!0,u(!1,"transferPropsTo is deprecated. See http://fb.me/react-transferpropsto for more information.")),r(e.props,this.props),e}}};t.exports=h},{"./Object.assign":27,"./emptyFunction":107,"./invariant":126,"./joinClasses":131,"./warning":145}],70:[function(e,t,n){"use strict";var o={};o={prop:"prop",context:"context",childContext:"child context"},t.exports=o},{}],71:[function(e,t,n){"use strict";var o=e("./keyMirror"),r=o({prop:null,context:null,childContext:null});t.exports=r},{"./keyMirror":132}],72:[function(e,t,n){"use strict";function o(e){function t(t,n,o,r,i){if(r=r||y,null!=n[o])return e(n,o,r,i);var a=m[i];return t?new Error("Required "+a+" `"+o+"` was not specified in `"+r+"`."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function r(e){function t(t,n,o,r){var i=t[n];if(d(i)!==e){var a=m[r],s=h(i);return new Error("Invalid "+a+" `"+n+"` of type `"+s+"` supplied to `"+o+"`, expected `"+e+"`.")}}return o(t)}function i(e){function t(t,n,o,r){var i=t[n];if(!Array.isArray(i)){var a=m[r],s=d(i);return new Error("Invalid "+a+" `"+n+"` of type `"+s+"` supplied to `"+o+"`, expected an array.")}for(var c=0;c<i.length;c++){var u=e(i,c,o,r);if(u instanceof Error)return u}}return o(t)}function a(e){function t(t,n,o,r){if(!(t[n]instanceof e)){var i=m[r],a=e.name||y;return new Error("Invalid "+i+" `"+n+"` supplied to `"+o+"`, expected instance of `"+a+"`.")}}return o(t)}function s(e){function t(t,n,o,r){for(var i=t[n],a=0;a<e.length;a++)if(i===e[a])return;var s=m[r],c=JSON.stringify(e);return new Error("Invalid "+s+" `"+n+"` of value `"+i+"` supplied to `"+o+"`, expected one of "+c+".")}return o(t)}function c(e){function t(t,n,o,r){var i=t[n],a=d(i);if("object"!==a){var s=m[r];return new Error("Invalid "+s+" `"+n+"` of type `"+a+"` supplied to `"+o+"`, expected an object.")}for(var c in i)if(i.hasOwnProperty(c)){var u=e(i,c,o,r);if(u instanceof Error)return u}}return o(t)}function u(e){function t(t,n,o,r){for(var i=0;i<e.length;i++){if(null==(0,e[i])(t,n,o,r))return}var a=m[r];return new Error("Invalid "+a+" `"+n+"` supplied to `"+o+"`.")}return o(t)}function l(e){function t(t,n,o,r){var i=t[n],a=d(i);if("object"!==a){var s=m[r];return new Error("Invalid "+s+" `"+n+"` of type `"+a+"` supplied to `"+o+"`, expected `object`.")}for(var c in e){var u=e[c];if(u){var l=u(i,c,o,r);if(l)return l}}}return o(t,"expected `object`")}function p(e){switch(typeof e){case"number":case"string":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(p);if(f.isValidElement(e))return!0;for(var t in e)if(!p(e[t]))return!1;return!0;default:return!1}}function d(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function h(e){var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}var f=e("./ReactElement"),m=e("./ReactPropTypeLocationNames"),g=e("./deprecated"),v=e("./emptyFunction"),y="<<anonymous>>",b=function(){function e(e,t,n,o){if(!f.isValidElement(e[t])){var r=m[o];return new Error("Invalid "+r+" `"+t+"` supplied to `"+n+"`, expected a ReactElement.")}}return o(e)}(),_=function(){function e(e,t,n,o){if(!p(e[t])){var r=m[o];return new Error("Invalid "+r+" `"+t+"` supplied to `"+n+"`, expected a ReactNode.")}}return o(e)}(),w={array:r("array"),bool:r("boolean"),func:r("function"),number:r("number"),object:r("object"),string:r("string"),any:function(){return o(v.thatReturns())}(),arrayOf:i,element:b,instanceOf:a,node:_,objectOf:c,oneOf:s,oneOfType:u,shape:l,component:g("React.PropTypes","component","element",this,b),renderable:g("React.PropTypes","renderable","node",this,_)};t.exports=w},{"./ReactElement":52,"./ReactPropTypeLocationNames":70,"./deprecated":106,"./emptyFunction":107}],73:[function(e,t,n){"use strict";function o(){this.listenersToPut=[]}var r=e("./PooledClass"),i=e("./ReactBrowserEventEmitter");e("./Object.assign")(o.prototype,{enqueuePutListener:function(e,t,n){this.listenersToPut.push({rootNodeID:e,propKey:t,propValue:n})},putListeners:function(){for(var e=0;e<this.listenersToPut.length;e++){var t=this.listenersToPut[e];i.putListener(t.rootNodeID,t.propKey,t.propValue)}},reset:function(){this.listenersToPut.length=0},destructor:function(){this.reset()}}),r.addPoolingTo(o),t.exports=o},{"./Object.assign":27,"./PooledClass":28,"./ReactBrowserEventEmitter":30}],74:[function(e,t,n){"use strict";function o(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=r.getPooled(null),this.putListenerQueue=c.getPooled()}var r=e("./CallbackQueue"),i=e("./PooledClass"),a=e("./ReactBrowserEventEmitter"),s=e("./ReactInputSelection"),c=e("./ReactPutListenerQueue"),u=e("./Transaction"),l=e("./Object.assign"),p={initialize:s.getSelectionInformation,close:s.restoreSelection},d={initialize:function(){var e=a.isEnabled();return a.setEnabled(!1),e},close:function(e){a.setEnabled(e)}},h={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},f={initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},m=[f,p,d,h],g={getTransactionWrappers:function(){return m},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){r.release(this.reactMountReady),this.reactMountReady=null,c.release(this.putListenerQueue),this.putListenerQueue=null}};l(o.prototype,u.Mixin,g),i.addPoolingTo(o),t.exports=o},{"./CallbackQueue":6,"./Object.assign":27,"./PooledClass":28,"./ReactBrowserEventEmitter":30,"./ReactInputSelection":59,"./ReactPutListenerQueue":73,"./Transaction":95}],75:[function(e,t,n){"use strict";var o={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:o};t.exports=r},{}],76:[function(e,t,n){"use strict";function o(e){l(i.isValidElement(e),"renderToString(): You must pass a valid ReactElement.");var t;try{var n=a.createReactRootID();return t=c.getPooled(!1),t.perform(function(){var o=u(e,null),r=o.mountComponent(n,t,0);return s.addChecksumToMarkup(r)},null)}finally{c.release(t)}}function r(e){l(i.isValidElement(e),"renderToStaticMarkup(): You must pass a valid ReactElement.");var t;try{var n=a.createReactRootID();return t=c.getPooled(!0),t.perform(function(){return u(e,null).mountComponent(n,t,0)},null)}finally{c.release(t)}}var i=e("./ReactElement"),a=e("./ReactInstanceHandles"),s=e("./ReactMarkupChecksum"),c=e("./ReactServerRenderingTransaction"),u=e("./instantiateReactComponent"),l=e("./invariant");t.exports={renderToString:o,renderToStaticMarkup:r}},{"./ReactElement":52,"./ReactInstanceHandles":60,"./ReactMarkupChecksum":62,"./ReactServerRenderingTransaction":77,"./instantiateReactComponent":125,"./invariant":126}],77:[function(e,t,n){"use strict";function o(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=i.getPooled(null),this.putListenerQueue=a.getPooled()}var r=e("./PooledClass"),i=e("./CallbackQueue"),a=e("./ReactPutListenerQueue"),s=e("./Transaction"),c=e("./Object.assign"),u=e("./emptyFunction"),l={initialize:function(){this.reactMountReady.reset()},close:u},p={initialize:function(){this.putListenerQueue.reset()},close:u},d=[p,l],h={getTransactionWrappers:function(){return d},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null,a.release(this.putListenerQueue),this.putListenerQueue=null}};c(o.prototype,s.Mixin,h),r.addPoolingTo(o),t.exports=o},{"./CallbackQueue":6,"./Object.assign":27,"./PooledClass":28,"./ReactPutListenerQueue":73,"./Transaction":95,"./emptyFunction":107}],78:[function(e,t,n){"use strict";var o=e("./DOMPropertyOperations"),r=e("./ReactComponent"),i=e("./ReactElement"),a=e("./Object.assign"),s=e("./escapeTextForBrowser"),c=function(e){};a(c.prototype,r.Mixin,{mountComponent:function(e,t,n){r.Mixin.mountComponent.call(this,e,t,n);var i=s(this.props);return t.renderToStaticMarkup?i:"<span "+o.createMarkupForID(e)+">"+i+"</span>"},receiveComponent:function(e,t){var n=e.props;n!==this.props&&(this.props=n,r.BackendIDOperations.updateTextContentByID(this._rootNodeID,n))}});var u=function(e){return new i(c,null,null,null,null,e)};u.type=c,t.exports=u},{"./DOMPropertyOperations":12,"./Object.assign":27,"./ReactComponent":32,"./ReactElement":52,"./escapeTextForBrowser":109}],79:[function(e,t,n){"use strict";function o(){g(T.ReactReconcileTransaction&&w,"ReactUpdates: must inject a reconcile transaction class and batching strategy")}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=T.ReactReconcileTransaction.getPooled()}function i(e,t,n){o(),w.batchedUpdates(e,t,n)}function a(e,t){return e._mountDepth-t._mountDepth}function s(e){var t=e.dirtyComponentsLength;g(t===y.length,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",t,y.length),y.sort(a);for(var n=0;n<t;n++){var o=y[n];if(o.isMounted()){var r=o._pendingCallbacks;if(o._pendingCallbacks=null,o.performUpdateIfNecessary(e.reconcileTransaction),r)for(var i=0;i<r.length;i++)e.callbackQueue.enqueue(r[i],o)}}}function c(e,t){if(g(!t||"function"==typeof t,"enqueueUpdate(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."),o(),v(null==d.current,"enqueueUpdate(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."),!w.isBatchingUpdates)return void w.batchedUpdates(c,e,t);y.push(e),t&&(e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t])}function u(e,t){g(w.isBatchingUpdates,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."),b.enqueue(e,t),_=!0}var l=e("./CallbackQueue"),p=e("./PooledClass"),d=e("./ReactCurrentOwner"),h=e("./ReactPerf"),f=e("./Transaction"),m=e("./Object.assign"),g=e("./invariant"),v=e("./warning"),y=[],b=l.getPooled(),_=!1,w=null,k={initialize:function(){this.dirtyComponentsLength=y.length},close:function(){this.dirtyComponentsLength!==y.length?(y.splice(0,this.dirtyComponentsLength),x()):y.length=0}},C={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},E=[k,C];m(r.prototype,f.Mixin,{getTransactionWrappers:function(){return E},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,T.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return f.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(r);var x=h.measure("ReactUpdates","flushBatchedUpdates",function(){for(;y.length||_;){if(y.length){var e=r.getPooled();e.perform(s,null,e),r.release(e)}if(_){_=!1;var t=b;b=l.getPooled(),t.notifyAll(),l.release(t)}}}),R={injectReconcileTransaction:function(e){g(e,"ReactUpdates: must provide a reconcile transaction class"),T.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){g(e,"ReactUpdates: must provide a batching strategy"),g("function"==typeof e.batchedUpdates,"ReactUpdates: must provide a batchedUpdates() function"),g("boolean"==typeof e.isBatchingUpdates,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"),w=e}},T={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:c,flushBatchedUpdates:x,injection:R,asap:u};t.exports=T},{"./CallbackQueue":6,"./Object.assign":27,"./PooledClass":28,"./ReactCurrentOwner":36,"./ReactPerf":68,"./Transaction":95,"./invariant":126,"./warning":145}],80:[function(e,t,n){"use strict";var o=e("./DOMProperty"),r=o.injection.MUST_USE_ATTRIBUTE,i={Properties:{clipPath:r,cx:r,cy:r,d:r,dx:r,dy:r,fill:r,fillOpacity:r,filter:r,fontFamily:r,fontSize:r,fontWeight:r,fx:r,fy:r,gradientTransform:r,gradientUnits:r,k2:r,k3:r,in:r,in2:r,operator:r,floodColor:r,floodOpacity:r,stdDeviation:r,result:r,out:r,markerEnd:r,markerMid:r,markerStart:r,mask:r,offset:r,opacity:r,patternContentUnits:r,patternUnits:r,points:r,preserveAspectRatio:r,r:r,rx:r,ry:r,spreadMethod:r,stopColor:r,stopOpacity:r,stroke:r,strokeDasharray:r,strokeLinecap:r,strokeOpacity:r,strokeWidth:r,textAnchor:r,transform:r,values:r,version:r,viewBox:r,"xlink:href":r,x0:r,y0:r,x1:r,x2:r,x:r,y1:r,y2:r,y:r},DOMAttributeNames:{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"}};t.exports=i},{"./DOMProperty":11}],81:[function(e,t,n){"use strict";function o(e){if("selectionStart"in e&&s.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function r(e){if(!y&&null!=m&&m==u()){var t=o(m);if(!v||!d(v,t)){v=t;var n=c.getPooled(f.select,g,e);return n.type="select",n.target=m,a.accumulateTwoPhaseDispatches(n),n}}}var i=e("./EventConstants"),a=e("./EventPropagators"),s=e("./ReactInputSelection"),c=e("./SyntheticEvent"),u=e("./getActiveElement"),l=e("./isTextInputElement"),p=e("./keyOf"),d=e("./shallowEqual"),h=i.topLevelTypes,f={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},m=null,g=null,v=null,y=!1,b={eventTypes:f,extractEvents:function(e,t,n,o){switch(e){case h.topFocus:(l(t)||"true"===t.contentEditable)&&(m=t,g=n,v=null);break;case h.topBlur:m=null,g=null,v=null;break;case h.topMouseDown:y=!0;break;case h.topContextMenu:case h.topMouseUp:return y=!1,r(o);case h.topSelectionChange:case h.topKeyDown:case h.topKeyUp:return r(o)}}};t.exports=b},{"./EventConstants":16,"./EventPropagators":21,"./ReactInputSelection":59,"./SyntheticEvent":87,"./getActiveElement":113,"./isTextInputElement":129,"./keyOf":133,
6
+ "./shallowEqual":141}],82:[function(e,t,n){"use strict";var o=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*o)}};t.exports=r},{}],83:[function(e,t,n){"use strict";var o=e("./EventConstants"),r=e("./EventPluginUtils"),i=e("./EventPropagators"),a=e("./SyntheticClipboardEvent"),s=e("./SyntheticEvent"),c=e("./SyntheticFocusEvent"),u=e("./SyntheticKeyboardEvent"),l=e("./SyntheticMouseEvent"),p=e("./SyntheticDragEvent"),d=e("./SyntheticTouchEvent"),h=e("./SyntheticUIEvent"),f=e("./SyntheticWheelEvent"),m=e("./getEventCharCode"),g=e("./invariant"),v=e("./keyOf"),y=e("./warning"),b=o.topLevelTypes,_={blur:{phasedRegistrationNames:{bubbled:v({onBlur:!0}),captured:v({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:v({onClick:!0}),captured:v({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:v({onContextMenu:!0}),captured:v({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:v({onCopy:!0}),captured:v({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:v({onCut:!0}),captured:v({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:v({onDoubleClick:!0}),captured:v({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:v({onDrag:!0}),captured:v({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:v({onDragEnd:!0}),captured:v({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:v({onDragEnter:!0}),captured:v({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:v({onDragExit:!0}),captured:v({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:v({onDragLeave:!0}),captured:v({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:v({onDragOver:!0}),captured:v({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:v({onDragStart:!0}),captured:v({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:v({onDrop:!0}),captured:v({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:v({onFocus:!0}),captured:v({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:v({onInput:!0}),captured:v({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:v({onKeyDown:!0}),captured:v({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:v({onKeyPress:!0}),captured:v({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:v({onKeyUp:!0}),captured:v({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:v({onLoad:!0}),captured:v({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:v({onError:!0}),captured:v({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:v({onMouseDown:!0}),captured:v({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:v({onMouseMove:!0}),captured:v({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:v({onMouseOut:!0}),captured:v({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:v({onMouseOver:!0}),captured:v({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:v({onMouseUp:!0}),captured:v({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:v({onPaste:!0}),captured:v({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:v({onReset:!0}),captured:v({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:v({onScroll:!0}),captured:v({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:v({onSubmit:!0}),captured:v({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:v({onTouchCancel:!0}),captured:v({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:v({onTouchEnd:!0}),captured:v({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:v({onTouchMove:!0}),captured:v({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:v({onTouchStart:!0}),captured:v({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:v({onWheel:!0}),captured:v({onWheelCapture:!0})}}},w={topBlur:_.blur,topClick:_.click,topContextMenu:_.contextMenu,topCopy:_.copy,topCut:_.cut,topDoubleClick:_.doubleClick,topDrag:_.drag,topDragEnd:_.dragEnd,topDragEnter:_.dragEnter,topDragExit:_.dragExit,topDragLeave:_.dragLeave,topDragOver:_.dragOver,topDragStart:_.dragStart,topDrop:_.drop,topError:_.error,topFocus:_.focus,topInput:_.input,topKeyDown:_.keyDown,topKeyPress:_.keyPress,topKeyUp:_.keyUp,topLoad:_.load,topMouseDown:_.mouseDown,topMouseMove:_.mouseMove,topMouseOut:_.mouseOut,topMouseOver:_.mouseOver,topMouseUp:_.mouseUp,topPaste:_.paste,topReset:_.reset,topScroll:_.scroll,topSubmit:_.submit,topTouchCancel:_.touchCancel,topTouchEnd:_.touchEnd,topTouchMove:_.touchMove,topTouchStart:_.touchStart,topWheel:_.wheel};for(var k in w)w[k].dependencies=[k];var C={eventTypes:_,executeDispatch:function(e,t,n){var o=r.executeDispatch(e,t,n);y("boolean"!=typeof o,"Returning `false` from an event handler is deprecated and will be ignored in a future release. Instead, manually call e.stopPropagation() or e.preventDefault(), as appropriate."),!1===o&&(e.stopPropagation(),e.preventDefault())},extractEvents:function(e,t,n,o){var r=w[e];if(!r)return null;var v;switch(e){case b.topInput:case b.topLoad:case b.topError:case b.topReset:case b.topSubmit:v=s;break;case b.topKeyPress:if(0===m(o))return null;case b.topKeyDown:case b.topKeyUp:v=u;break;case b.topBlur:case b.topFocus:v=c;break;case b.topClick:if(2===o.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:v=l;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:v=p;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:v=d;break;case b.topScroll:v=h;break;case b.topWheel:v=f;break;case b.topCopy:case b.topCut:case b.topPaste:v=a}g(v,"SimpleEventPlugin: Unhandled event type, `%s`.",e);var y=v.getPooled(r,n,o);return i.accumulateTwoPhaseDispatches(y),y}};t.exports=C},{"./EventConstants":16,"./EventPluginUtils":20,"./EventPropagators":21,"./SyntheticClipboardEvent":84,"./SyntheticDragEvent":86,"./SyntheticEvent":87,"./SyntheticFocusEvent":88,"./SyntheticKeyboardEvent":90,"./SyntheticMouseEvent":91,"./SyntheticTouchEvent":92,"./SyntheticUIEvent":93,"./SyntheticWheelEvent":94,"./getEventCharCode":114,"./invariant":126,"./keyOf":133,"./warning":145}],84:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticEvent"),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};r.augmentClass(o,i),t.exports=o},{"./SyntheticEvent":87}],85:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticEvent"),i={data:null};r.augmentClass(o,i),t.exports=o},{"./SyntheticEvent":87}],86:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticMouseEvent"),i={dataTransfer:null};r.augmentClass(o,i),t.exports=o},{"./SyntheticMouseEvent":91}],87:[function(e,t,n){"use strict";function o(e,t,n){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var r in o)if(o.hasOwnProperty(r)){var i=o[r];this[r]=i?i(n):n[r]}var s=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;this.isDefaultPrevented=s?a.thatReturnsTrue:a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var r=e("./PooledClass"),i=e("./Object.assign"),a=e("./emptyFunction"),s=e("./getEventTarget"),c={type:null,target:s,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};i(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),o.Interface=c,o.augmentClass=function(e,t){var n=this,o=Object.create(n.prototype);i(o,e.prototype),e.prototype=o,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,r.addPoolingTo(e,r.threeArgumentPooler)},r.addPoolingTo(o,r.threeArgumentPooler),t.exports=o},{"./Object.assign":27,"./PooledClass":28,"./emptyFunction":107,"./getEventTarget":117}],88:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticUIEvent"),i={relatedTarget:null};r.augmentClass(o,i),t.exports=o},{"./SyntheticUIEvent":93}],89:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticEvent"),i={data:null};r.augmentClass(o,i),t.exports=o},{"./SyntheticEvent":87}],90:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticUIEvent"),i=e("./getEventCharCode"),a=e("./getEventKey"),s=e("./getEventModifierState"),c={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};r.augmentClass(o,c),t.exports=o},{"./SyntheticUIEvent":93,"./getEventCharCode":114,"./getEventKey":115,"./getEventModifierState":116}],91:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticUIEvent"),i=e("./ViewportMetrics"),a=e("./getEventModifierState"),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};r.augmentClass(o,s),t.exports=o},{"./SyntheticUIEvent":93,"./ViewportMetrics":96,"./getEventModifierState":116}],92:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticUIEvent"),i=e("./getEventModifierState"),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};r.augmentClass(o,a),t.exports=o},{"./SyntheticUIEvent":93,"./getEventModifierState":116}],93:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticEvent"),i=e("./getEventTarget"),a={view:function(e){if(e.view)return e.view;var t=i(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};r.augmentClass(o,a),t.exports=o},{"./SyntheticEvent":87,"./getEventTarget":117}],94:[function(e,t,n){"use strict";function o(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticMouseEvent"),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};r.augmentClass(o,i),t.exports=o},{"./SyntheticMouseEvent":91}],95:[function(e,t,n){"use strict";var o=e("./invariant"),r={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(e,t,n,r,i,a,s,c){o(!this.isInTransaction(),"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.");var u,l;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),l=e.call(t,n,r,i,a,s,c),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o=t[n];try{this.wrapperInitData[n]=i.OBSERVED_ERROR,this.wrapperInitData[n]=o.initialize?o.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){o(this.isInTransaction(),"Transaction.closeAll(): Cannot close transaction when none are open.");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r,a=t[n],s=this.wrapperInitData[n];try{r=!0,s!==i.OBSERVED_ERROR&&a.close&&a.close.call(this,s),r=!1}finally{if(r)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}},i={Mixin:r,OBSERVED_ERROR:{}};t.exports=i},{"./invariant":126}],96:[function(e,t,n){"use strict";var o=e("./getUnboundedScrollPosition"),r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(){var e=o(window);r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};t.exports=r},{"./getUnboundedScrollPosition":122}],97:[function(e,t,n){"use strict";function o(e,t){if(r(null!=t,"accumulateInto(...): Accumulated items must not be null or undefined."),null==e)return t;var n=Array.isArray(e),o=Array.isArray(t);return n&&o?(e.push.apply(e,t),e):n?(e.push(t),e):o?[e].concat(t):[e,t]}var r=e("./invariant");t.exports=o},{"./invariant":126}],98:[function(e,t,n){"use strict";function o(e){for(var t=1,n=0,o=0;o<e.length;o++)t=(t+e.charCodeAt(o))%r,n=(n+t)%r;return t|n<<16}var r=65521;t.exports=o},{}],99:[function(e,t,n){function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;t.exports=o},{}],100:[function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=e("./camelize"),i=/^-ms-/;t.exports=o},{"./camelize":99}],101:[function(e,t,n){function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):e.contains?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=e("./isTextNode");t.exports=o},{"./isTextNode":130}],102:[function(e,t,n){function o(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function r(e){return o(e)?Array.isArray(e)?e.slice():i(e):[e]}var i=e("./toArray");t.exports=r},{"./toArray":143}],103:[function(e,t,n){"use strict";function o(e){var t=i.createFactory(e);return r.createClass({displayName:"ReactFullPageComponent"+e,componentWillUnmount:function(){a(!1,"%s tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",this.constructor.displayName)},render:function(){return t(this.props)}})}var r=e("./ReactCompositeComponent"),i=e("./ReactElement"),a=e("./invariant");t.exports=o},{"./ReactCompositeComponent":34,"./ReactElement":52,"./invariant":126}],104:[function(e,t,n){function o(e){var t=e.match(l);return t&&t[1].toLowerCase()}function r(e,t){var n=u;c(!!u,"createNodesFromMarkup dummy not initialized");var r=o(e),i=r&&s(r);if(i){n.innerHTML=i[1]+e+i[2];for(var l=i[0];l--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(c(t,"createNodesFromMarkup(...): Unexpected <script> element rendered."),a(p).forEach(t));for(var d=a(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var i=e("./ExecutionEnvironment"),a=e("./createArrayFrom"),s=e("./getMarkupWrap"),c=e("./invariant"),u=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;t.exports=r},{"./ExecutionEnvironment":22,"./createArrayFrom":102,"./getMarkupWrap":118,"./invariant":126}],105:[function(e,t,n){"use strict";function o(e,t){return null==t||"boolean"==typeof t||""===t?"":isNaN(t)||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var r=e("./CSSProperty"),i=r.isUnitlessNumber;t.exports=o},{"./CSSProperty":4}],106:[function(e,t,n){function o(e,t,n,o,a){var s=!1,c=function(){return i(s,e+"."+t+" will be deprecated in a future version. Use "+e+"."+n+" instead."),s=!0,a.apply(o,arguments)};return c.displayName=e+"_"+t,r(c,a)}var r=e("./Object.assign"),i=e("./warning");t.exports=o},{"./Object.assign":27,"./warning":145}],107:[function(e,t,n){function o(e){return function(){return e}}function r(){}r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},t.exports=r},{}],108:[function(e,t,n){"use strict";var o={};Object.freeze(o),t.exports=o},{}],109:[function(e,t,n){"use strict";function o(e){return i[e]}function r(e){return(""+e).replace(a,o)}var i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g;t.exports=r},{}],110:[function(e,t,n){"use strict";function o(e,t,n){var o=e,r=!o.hasOwnProperty(n);if(s(r,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",n),r&&null!=t){var a,c=typeof t;a="string"===c?i(t):"number"===c?i(""+t):t,o[n]=a}}function r(e){if(null==e)return e;var t={};return a(e,o,t),t}var i=e("./ReactTextComponent"),a=e("./traverseAllChildren"),s=e("./warning");t.exports=r},{"./ReactTextComponent":78,"./traverseAllChildren":144,"./warning":145}],111:[function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}t.exports=o},{}],112:[function(e,t,n){"use strict";var o=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=o},{}],113:[function(e,t,n){function o(){try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=o},{}],114:[function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}t.exports=o},{}],115:[function(e,t,n){"use strict";function o(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=r(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var r=e("./getEventCharCode"),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={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"};t.exports=o},{"./getEventCharCode":114}],116:[function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},{}],117:[function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}t.exports=o},{}],118:[function(e,t,n){function o(e){return i(!!a,"Markup wrapping node not initialized"),d.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||(a.innerHTML="*"===e?"<link />":"<"+e+"></"+e+">",s[e]=!a.firstChild),s[e]?d[e]:null}var r=e("./ExecutionEnvironment"),i=e("./invariant"),a=r.canUseDOM?document.createElement("div"):null,s={circle:!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},c=[1,'<select multiple="true">',"</select>"],u=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,"<svg>","</svg>"],d={"*":[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:c,option:c,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:l,th:l,circle:p,defs:p,ellipse:p,g:p,line:p,linearGradient:p,path:p,polygon:p,polyline:p,radialGradient:p,rect:p,stop:p,text:p};t.exports=o},{"./ExecutionEnvironment":22,"./invariant":126}],119:[function(e,t,n){"use strict";function o(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var n=o(e),i=0,a=0;n;){if(3==n.nodeType){if(a=i+n.textContent.length,i<=t&&a>=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}t.exports=i},{}],120:[function(e,t,n){"use strict";function o(e){return e?e.nodeType===r?e.documentElement:e.firstChild:null}var r=9;t.exports=o},{}],121:[function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=e("./ExecutionEnvironment"),i=null;t.exports=o},{"./ExecutionEnvironment":22}],122:[function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=o},{}],123:[function(e,t,n){function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=o},{}],124:[function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=e("./hyphenate"),i=/^ms-/;t.exports=o},{"./hyphenate":123}],125:[function(e,t,n){"use strict";function o(e,t){var n;if(r(e&&("function"==typeof e.type||"string"==typeof e.type),"Only functions or strings can be mounted as React components."),e.type._mockedReactClassConstructor){a._isLegacyCallWarningEnabled=!1;try{n=new e.type._mockedReactClassConstructor(e.props)}finally{a._isLegacyCallWarningEnabled=!0}i.isValidElement(n)&&(n=new n.type(n.props));var o=n.render;if(o)return o._isMockFunction&&!o._getMockImplementation()&&o.mockImplementation(c.getEmptyComponent),n.construct(e),n;e=c.getEmptyComponent()}return n="string"==typeof e.type?s.createInstanceForTag(e.type,e.props,t):new e.type(e.props),r("function"==typeof n.construct&&"function"==typeof n.mountComponent&&"function"==typeof n.receiveComponent,"Only React Components can be mounted."),n.construct(e),n}var r=e("./warning"),i=e("./ReactElement"),a=e("./ReactLegacyElement"),s=e("./ReactNativeComponent"),c=e("./ReactEmptyComponent");t.exports=o},{"./ReactElement":52,"./ReactEmptyComponent":54,"./ReactLegacyElement":61,"./ReactNativeComponent":66,"./warning":145}],126:[function(e,t,n){"use strict";var o=function(e,t,n,o,r,i,a,s){if(void 0===t)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,i,a,s],l=0;c=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return u[l++]}))}throw c.framesToPop=1,c}};t.exports=o},{}],127:[function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=e("./ExecutionEnvironment");i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=o},{"./ExecutionEnvironment":22}],128:[function(e,t,n){function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=o},{}],129:[function(e,t,n){"use strict";function o(e){return e&&("INPUT"===e.nodeName&&r[e.type]||"TEXTAREA"===e.nodeName)}var r={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};t.exports=o},{}],130:[function(e,t,n){function o(e){return r(e)&&3==e.nodeType}var r=e("./isNode");t.exports=o},{"./isNode":128}],131:[function(e,t,n){"use strict";function o(e){e||(e="");var t,n=arguments.length;if(n>1)for(var o=1;o<n;o++)(t=arguments[o])&&(e=(e?e+" ":"")+t);return e}t.exports=o},{}],132:[function(e,t,n){"use strict";var o=e("./invariant"),r=function(e){var t,n={};o(e instanceof Object&&!Array.isArray(e),"keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};t.exports=r},{"./invariant":126}],133:[function(e,t,n){var o=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=o},{}],134:[function(e,t,n){"use strict";function o(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}var r=Object.prototype.hasOwnProperty;t.exports=o},{}],135:[function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)?t[n]:t[n]=e.call(this,n)}}t.exports=o},{}],136:[function(e,t,n){"use strict";function o(e,t){r(e&&!/[^a-z0-9_]/.test(e),"You must provide an eventName using only the characters [a-z0-9_]")}var r=e("./invariant");t.exports=o},{"./invariant":126}],137:[function(e,t,n){"use strict";function o(e){return i(r.isValidElement(e),"onlyChild must be passed a children with exactly one child."),e}var r=e("./ReactElement"),i=e("./invariant");t.exports=o},{"./ReactElement":52,"./invariant":126}],138:[function(e,t,n){"use strict";var o,r=e("./ExecutionEnvironment");r.canUseDOM&&(o=window.performance||window.msPerformance||window.webkitPerformance),t.exports=o||{}},{"./ExecutionEnvironment":22}],139:[function(e,t,n){var o=e("./performance");o&&o.now||(o=Date);var r=o.now.bind(o);t.exports=r},{"./performance":138}],140:[function(e,t,n){"use strict";var o=e("./ExecutionEnvironment"),r=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(e,t){e.innerHTML=t};if(o.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),r.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML="\ufeff"+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}t.exports=a},{"./ExecutionEnvironment":22}],141:[function(e,t,n){"use strict";function o(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}t.exports=o},{}],142:[function(e,t,n){"use strict";function o(e,t){return!(!e||!t||e.type!==t.type||e.key!==t.key||e._owner!==t._owner)}t.exports=o},{}],143:[function(e,t,n){function o(e){var t=e.length;if(r(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e),"toArray: Array-like object expected"),r("number"==typeof t,"toArray: Object needs a length property"),r(0===t||t-1 in e,"toArray: Object should have keys for indices"),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}var r=e("./invariant");t.exports=o},{"./invariant":126}],144:[function(e,t,n){"use strict";function o(e){return d[e]}function r(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(h,o)}function a(e){return"$"+i(e)}function s(e,t,n){return null==e?0:f(e,"",0,t,n)}var c=e("./ReactElement"),u=e("./ReactInstanceHandles"),l=e("./invariant"),p=u.SEPARATOR,d={"=":"=0",".":"=1",":":"=2"},h=/[=.:]/g,f=function(e,t,n,o,i){var s,u,d=0;if(Array.isArray(e))for(var h=0;h<e.length;h++){var m=e[h];s=t+(t?":":p)+r(m,h),u=n+d,d+=f(m,s,u,o,i)}else{var g=typeof e,v=""===t,y=v?p+r(e,0):t;if(null==e||"boolean"===g)o(i,null,y,n),d=1;else if("string"===g||"number"===g||c.isValidElement(e))o(i,e,y,n),d=1;else if("object"===g){l(!e||1!==e.nodeType,"traverseAllChildren(...): Encountered an invalid child; DOM elements are not valid children of React components.");for(var b in e)e.hasOwnProperty(b)&&(s=t+(t?":":p)+a(b)+":"+r(e[b],0),u=n+d,d+=f(e[b],s,u,o,i))}}return d};t.exports=s},{"./ReactElement":52,"./ReactInstanceHandles":60,"./invariant":126}],145:[function(e,t,n){"use strict";var o=e("./emptyFunction"),r=o;r=function(e,t){for(var n=[],o=2,r=arguments.length;o<r;o++)n.push(arguments[o]);if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){var i=0;console.warn("Warning: "+t.replace(/%s/g,function(){return n[i++]}))}},t.exports=r},{"./emptyFunction":107}]},{},[1])(1)}),function(root){var CoffeeScript=function(){function require(e){return require[e]}return require["./helpers"]=function(){var e={},t={exports:e};return function(){var t,n,o,r,i,a;e.starts=function(e,t,n){return t===e.substr(n,t.length)},e.ends=function(e,t,n){var o;return o=t.length,t===e.substr(e.length-o-(n||0),o)},e.repeat=i=function(e,t){var n;for(n="";t>0;)1&t&&(n+=e),t>>>=1,e+=e;return n},e.compact=function(e){var t,n,o,r;for(r=[],t=0,o=e.length;o>t;t++)(n=e[t])&&r.push(n);return r},e.count=function(e,t){var n,o;if(n=o=0,!t.length)return 1/0;for(;o=1+e.indexOf(t,o);)n++;return n},e.merge=function(e,t){return n(n({},e),t)},n=e.extend=function(e,t){var n,o;for(n in t)o=t[n],e[n]=o;return e},e.flatten=o=function(e){var t,n,r,i;for(n=[],r=0,i=e.length;i>r;r++)t=e[r],"[object Array]"===Object.prototype.toString.call(t)?n=n.concat(o(t)):n.push(t);return n},e.del=function(e,t){var n;return n=e[t],delete e[t],n},e.some=null!=(r=Array.prototype.some)?r:function(e){var t,n,o;for(n=0,o=this.length;o>n;n++)if(t=this[n],e(t))return!0;return!1},e.invertLiterate=function(e){var t,n,o;return o=!0,n=function(){var n,r,i,a;for(i=e.split("\n"),a=[],n=0,r=i.length;r>n;n++)t=i[n],o&&/^([ ]{4}|[ ]{0,3}\t)/.test(t)?a.push(t):(o=/^\s*$/.test(t))?a.push(t):a.push("# "+t);return a}(),n.join("\n")},t=function(e,t){return t?{first_line:e.first_line,first_column:e.first_column,last_line:t.last_line,last_column:t.last_column}:e},e.addLocationDataFn=function(e,n){return function(o){return"object"==typeof o&&o.updateLocationDataIfMissing&&o.updateLocationDataIfMissing(t(e,n)),o}},e.locationDataToString=function(e){var t;return"2"in e&&"first_line"in e[2]?t=e[2]:"first_line"in e&&(t=e),t?t.first_line+1+":"+(t.first_column+1)+"-"+(t.last_line+1)+":"+(t.last_column+1):"No location data"},e.baseFileName=function(e,t,n){var o,r;return null==t&&(t=!1),null==n&&(n=!1),r=n?/\\|\//:/\//,o=e.split(r),e=o[o.length-1],t&&e.indexOf(".")>=0?(o=e.split("."),o.pop(),"coffee"===o[o.length-1]&&o.length>1&&o.pop(),o.join(".")):e},e.isCoffee=function(e){return/\.((lit)?coffee|coffee\.md)$/.test(e)},e.isLiterate=function(e){return/\.(litcoffee|coffee\.md)$/.test(e)},e.throwSyntaxError=function(e,t){var n;throw n=new SyntaxError(e),n.location=t,n.toString=a,n.stack=""+n,n},e.updateSyntaxError=function(e,t,n){return e.toString===a&&(e.code||(e.code=t),e.filename||(e.filename=n),e.stack=""+e),e},a=function(){var e,t,n,o,r,a,s,c,u,l,p,d,h,f,m;return this.code&&this.location?(p=this.location,s=p.first_line,a=p.first_column,u=p.last_line,c=p.last_column,null==u&&(u=s),null==c&&(c=a),r=this.filename||"[stdin]",e=this.code.split("\n")[s],m=a,o=s===u?c+1:e.length,l=e.slice(0,m).replace(/[^\s]/g," ")+i("^",o-m),"undefined"!=typeof process&&null!==process&&(n=(null!=(d=process.stdout)?d.isTTY:void 0)&&!(null!=(h=process.env)?h.NODE_DISABLE_COLORS:void 0)),(null!=(f=this.colorful)?f:n)&&(t=function(e){return""+e+""},e=e.slice(0,m)+t(e.slice(m,o))+e.slice(o),l=t(l)),
7
+ r+":"+(s+1)+":"+(a+1)+": error: "+this.message+"\n"+e+"\n"+l):Error.prototype.toString.call(this)},e.nameWhitespaceCharacter=function(e){switch(e){case" ":return"space";case"\n":return"newline";case"\r":return"carriage return";case" ":return"tab";default:return e}}}.call(this),t.exports}(),require["./rewriter"]=function(){var e={},t={exports:e};return function(){var t,n,o,r,i,a,s,c,u,l,p,d,h,f,m,g,v,y,b,_=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},w=[].slice;for(f=function(e,t,n){var o;return o=[e,t],o.generated=!0,n&&(o.origin=n),o},e.Rewriter=function(){function e(){}return e.prototype.rewrite=function(e){return this.tokens=e,this.removeLeadingNewlines(),this.closeOpenCalls(),this.closeOpenIndexes(),this.normalizeLines(),this.tagPostfixConditionals(),this.addImplicitBracesAndParens(),this.addLocationDataToGeneratedTokens(),this.tokens},e.prototype.scanTokens=function(e){var t,n,o;for(o=this.tokens,t=0;n=o[t];)t+=e.call(this,n,t,o);return!0},e.prototype.detectEnd=function(e,t,n){var o,a,s,c,u;for(u=this.tokens,o=0;c=u[e];){if(0===o&&t.call(this,c,e))return n.call(this,c,e);if(!c||0>o)return n.call(this,c,e-1);a=c[0],_.call(i,a)>=0?o+=1:(s=c[0],_.call(r,s)>=0&&(o-=1)),e+=1}return e-1},e.prototype.removeLeadingNewlines=function(){var e,t,n,o;for(o=this.tokens,e=t=0,n=o.length;n>t&&"TERMINATOR"===o[e][0];e=++t);return e?this.tokens.splice(0,e):void 0},e.prototype.closeOpenCalls=function(){var e,t;return t=function(e,t){var n;return")"===(n=e[0])||"CALL_END"===n||"OUTDENT"===e[0]&&")"===this.tag(t-1)},e=function(e,t){return this.tokens["OUTDENT"===e[0]?t-1:t][0]="CALL_END"},this.scanTokens(function(n,o){return"CALL_START"===n[0]&&this.detectEnd(o+1,t,e),1})},e.prototype.closeOpenIndexes=function(){var e,t;return t=function(e){var t;return"]"===(t=e[0])||"INDEX_END"===t},e=function(e){return e[0]="INDEX_END"},this.scanTokens(function(n,o){return"INDEX_START"===n[0]&&this.detectEnd(o+1,t,e),1})},e.prototype.indexOfTag=function(){var e,t,n,o,r,i,a;for(t=arguments[0],r=arguments.length>=2?w.call(arguments,1):[],e=0,n=o=0,i=r.length;i>=0?i>o:o>i;n=i>=0?++o:--o){for(;"HERECOMMENT"===this.tag(t+n+e);)e+=2;if(null!=r[n]&&("string"==typeof r[n]&&(r[n]=[r[n]]),a=this.tag(t+n+e),0>_.call(r[n],a)))return-1}return t+n+e-1},e.prototype.looksObjectish=function(e){var t,n;return this.indexOfTag(e,"@",null,":")>-1||this.indexOfTag(e,null,":")>-1||(n=this.indexOfTag(e,i))>-1&&(t=null,this.detectEnd(n+1,function(e){var t;return t=e[0],_.call(r,t)>=0},function(e,n){return t=n}),":"===this.tag(t+1))},e.prototype.findTagsBackwards=function(e,t){var n,o,a,s,c,u,l;for(n=[];e>=0&&(n.length||(s=this.tag(e),0>_.call(t,s)&&(c=this.tag(e),0>_.call(i,c)||this.tokens[e].generated)&&(u=this.tag(e),0>_.call(p,u))));)o=this.tag(e),_.call(r,o)>=0&&n.push(this.tag(e)),a=this.tag(e),_.call(i,a)>=0&&n.length&&n.pop(),e-=1;return l=this.tag(e),_.call(t,l)>=0},e.prototype.addImplicitBracesAndParens=function(){var e,t;return e=[],t=null,this.scanTokens(function(o,l,d){var h,m,g,v,y,b,w,k,C,E,x,R,T,S,O,N,D,M,I,L,P,A,F,j,U,B,V,H;if(H=o[0],x=(R=l>0?d[l-1]:[])[0],C=(d.length-1>l?d[l+1]:[])[0],F=function(){return e[e.length-1]},j=l,g=function(e){return l-j+e},v=function(){var e,t;return null!=(e=F())&&null!=(t=e[2])?t.ours:void 0},y=function(){var e;return v()&&"("===(null!=(e=F())?e[0]:void 0)},w=function(){var e;return v()&&"{"===(null!=(e=F())?e[0]:void 0)},b=function(){var e;return v&&"CONTROL"===(null!=(e=F())?e[0]:void 0)},U=function(t){var n;return n=null!=t?t:l,e.push(["(",n,{ours:!0}]),d.splice(n,0,f("CALL_START","(")),null==t?l+=1:void 0},h=function(){return e.pop(),d.splice(l,0,f("CALL_END",")",["","end of input",o[2]])),l+=1},B=function(t,n){var r,i;return null==n&&(n=!0),r=null!=t?t:l,e.push(["{",r,{sameLine:!0,startsLine:n,ours:!0}]),i=new String("{"),i.generated=!0,d.splice(r,0,f("{",i,o)),null==t?l+=1:void 0},m=function(t){return t=null!=t?t:l,e.pop(),d.splice(t,0,f("}","}",o)),l+=1},y()&&("IF"===H||"TRY"===H||"FINALLY"===H||"CATCH"===H||"CLASS"===H||"SWITCH"===H))return e.push(["CONTROL",l,{ours:!0}]),g(1);if("INDENT"===H&&v()){if("=>"!==x&&"->"!==x&&"["!==x&&"("!==x&&","!==x&&"{"!==x&&"TRY"!==x&&"ELSE"!==x&&"="!==x)for(;y();)h();return b()&&e.pop(),e.push([H,l]),g(1)}if(_.call(i,H)>=0)return e.push([H,l]),g(1);if(_.call(r,H)>=0){for(;v();)y()?h():w()?m():e.pop();t=e.pop()}if((_.call(c,H)>=0&&o.spaced||"?"===H&&l>0&&!d[l-1].spaced)&&(_.call(a,C)>=0||_.call(u,C)>=0&&!(null!=(T=d[l+1])?T.spaced:void 0)&&!(null!=(S=d[l+1])?S.newLine:void 0)))return"?"===H&&(H=o[0]="FUNC_EXIST"),U(l+1),g(2);if(_.call(c,H)>=0&&this.indexOfTag(l+1,"INDENT")>-1&&this.looksObjectish(l+2)&&!this.findTagsBackwards(l,["CLASS","EXTENDS","IF","CATCH","SWITCH","LEADING_WHEN","FOR","WHILE","UNTIL"]))return U(l+1),e.push(["INDENT",l+2]),g(3);if(":"===H){for(I=function(){var e;switch(!1){case e=this.tag(l-1),0>_.call(r,e):return t[1];case"@"!==this.tag(l-2):return l-2;default:return l-1}}.call(this);"HERECOMMENT"===this.tag(I-2);)I-=2;return this.insideForDeclaration="FOR"===C,V=0===I||(O=this.tag(I-1),_.call(p,O)>=0)||d[I-1].newLine,F()&&(N=F(),A=N[0],P=N[1],("{"===A||"INDENT"===A&&"{"===this.tag(P-1))&&(V||","===this.tag(I-1)||"{"===this.tag(I-1)))?g(1):(B(I,!!V),g(2))}if(w()&&_.call(p,H)>=0&&(F()[2].sameLine=!1),k="OUTDENT"===x||R.newLine,_.call(s,H)>=0||_.call(n,H)>=0&&k)for(;v();)if(D=F(),A=D[0],P=D[1],M=D[2],L=M.sameLine,V=M.startsLine,y()&&","!==x)h();else if(w()&&!this.insideForDeclaration&&L&&"TERMINATOR"!==H&&":"!==x)m();else{if(!w()||"TERMINATOR"!==H||","===x||V&&this.looksObjectish(l+1))break;if("HERECOMMENT"===C)return g(1);m()}if(!(","!==H||this.looksObjectish(l+1)||!w()||this.insideForDeclaration||"TERMINATOR"===C&&this.looksObjectish(l+2)))for(E="OUTDENT"===C?1:0;w();)m(l+E);return g(1)})},e.prototype.addLocationDataToGeneratedTokens=function(){return this.scanTokens(function(e,t,n){var o,r,i,a,s,c;return e[2]?1:e.generated||e.explicit?("{"===e[0]&&(i=null!=(s=n[t+1])?s[2]:void 0)?(r=i.first_line,o=i.first_column):(a=null!=(c=n[t-1])?c[2]:void 0)?(r=a.last_line,o=a.last_column):r=o=0,e[2]={first_line:r,first_column:o,last_line:r,last_column:o},1):1})},e.prototype.normalizeLines=function(){var e,t,r,i,a;return a=r=i=null,t=function(e,t){var r,i,s,c;return";"!==e[1]&&(r=e[0],_.call(d,r)>=0)&&!("TERMINATOR"===e[0]&&(i=this.tag(t+1),_.call(o,i)>=0))&&!("ELSE"===e[0]&&"THEN"!==a)&&!!("CATCH"!==(s=e[0])&&"FINALLY"!==s||"->"!==a&&"=>"!==a)||(c=e[0],_.call(n,c)>=0&&this.tokens[t-1].newLine)},e=function(e,t){return this.tokens.splice(","===this.tag(t-1)?t-1:t,0,i)},this.scanTokens(function(n,s,c){var u,l,p,d,f,m;if("TERMINATOR"===(m=n[0])){if("ELSE"===this.tag(s+1)&&"OUTDENT"!==this.tag(s-1))return c.splice.apply(c,[s,1].concat(w.call(this.indentation()))),1;if(p=this.tag(s+1),_.call(o,p)>=0)return c.splice(s,1),0}if("CATCH"===m)for(u=l=1;2>=l;u=++l)if("OUTDENT"===(d=this.tag(s+u))||"TERMINATOR"===d||"FINALLY"===d)return c.splice.apply(c,[s+u,0].concat(w.call(this.indentation()))),2+u;return _.call(h,m)>=0&&"INDENT"!==this.tag(s+1)&&("ELSE"!==m||"IF"!==this.tag(s+1))?(a=m,f=this.indentation(c[s]),r=f[0],i=f[1],"THEN"===a&&(r.fromThen=!0),c.splice(s+1,0,r),this.detectEnd(s+2,t,e),"THEN"===m&&c.splice(s,1),1):1})},e.prototype.tagPostfixConditionals=function(){var e,t,n;return n=null,t=function(e,t){var n,o;return o=e[0],n=this.tokens[t-1][0],"TERMINATOR"===o||"INDENT"===o&&0>_.call(h,n)},e=function(e){return"INDENT"!==e[0]||e.generated&&!e.fromThen?n[0]="POST_"+n[0]:void 0},this.scanTokens(function(o,r){return"IF"!==o[0]?1:(n=o,this.detectEnd(r+1,t,e),1)})},e.prototype.indentation=function(e){var t,n;return t=["INDENT",2],n=["OUTDENT",2],e?(t.generated=n.generated=!0,t.origin=n.origin=e):t.explicit=n.explicit=!0,[t,n]},e.prototype.generate=f,e.prototype.tag=function(e){var t;return null!=(t=this.tokens[e])?t[0]:void 0},e}(),t=[["(",")"],["[","]"],["{","}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["STRING_START","STRING_END"],["REGEX_START","REGEX_END"]],e.INVERSES=l={},i=[],r=[],m=0,v=t.length;v>m;m++)y=t[m],g=y[0],b=y[1],i.push(l[b]=g),r.push(l[g]=b);o=["CATCH","THEN","ELSE","FINALLY"].concat(r),c=["IDENTIFIER","SUPER",")","CALL_END","]","INDEX_END","@","THIS"],a=["IDENTIFIER","NUMBER","STRING","STRING_START","JS","REGEX","REGEX_START","NEW","PARAM_START","CLASS","IF","TRY","SWITCH","THIS","BOOL","NULL","UNDEFINED","UNARY","YIELD","UNARY_MATH","SUPER","THROW","@","->","=>","[","(","{","--","++"],u=["+","-"],s=["POST_IF","FOR","WHILE","UNTIL","WHEN","BY","LOOP","TERMINATOR"],h=["ELSE","->","=>","TRY","FINALLY","THEN"],d=["TERMINATOR","CATCH","FINALLY","ELSE","OUTDENT","LEADING_WHEN"],p=["TERMINATOR","INDENT","OUTDENT"],n=[".","?.","::","?::"]}.call(this),t.exports}(),require["./lexer"]=function(){var e={},t={exports:e};return function(){var t,n,o,r,i,a,s,c,u,l,p,d,h,f,m,g,v,y,b,_,w,k,C,E,x,R,T,S,O,N,D,M,I,L,P,A,F,j,U,B,V,H,W,$,q,G,Y,X,K,z,J,Q,Z,ee,te,ne,oe,re,ie,ae=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};ne=require("./rewriter"),U=ne.Rewriter,_=ne.INVERSES,oe=require("./helpers"),Z=oe.count,oe.starts,oe.compact,re=oe.repeat,ee=oe.invertLiterate,oe.locationDataToString,ie=oe.throwSyntaxError,e.Lexer=function(){function e(){}return e.prototype.tokenize=function(e,t){var n,o,r,i;for(null==t&&(t={}),this.literate=t.literate,this.indent=0,this.baseIndent=0,this.indebt=0,this.outdebt=0,this.indents=[],this.ends=[],this.tokens=[],this.seenFor=!1,this.chunkLine=t.line||0,this.chunkColumn=t.column||0,e=this.clean(e),r=0;this.chunk=e.slice(r);)if(n=this.identifierToken()||this.commentToken()||this.whitespaceToken()||this.lineToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.jsToken()||this.literalToken(),i=this.getLineAndColumnFromChunk(n),this.chunkLine=i[0],this.chunkColumn=i[1],r+=n,t.untilBalanced&&0===this.ends.length)return{tokens:this.tokens,index:r};return this.closeIndentation(),(o=this.ends.pop())&&this.error("missing "+o.tag,o.origin[2]),!1===t.rewrite?this.tokens:(new U).rewrite(this.tokens)},e.prototype.clean=function(e){return e.charCodeAt(0)===t&&(e=e.slice(1)),e=e.replace(/\r/g,"").replace(X,""),Q.test(e)&&(e="\n"+e,this.chunkLine--),this.literate&&(e=ee(e)),e},e.prototype.identifierToken=function(){var e,t,n,o,s,c,u,l,p,d,h,f,m,v,y,b;return(l=g.exec(this.chunk))?(u=l[0],s=l[1],t=l[2],c=s.length,p=void 0,"own"===s&&"FOR"===this.tag()?(this.token("OWN",s),s.length):"from"===s&&"YIELD"===this.tag()?(this.token("FROM",s),s.length):(h=this.tokens,d=h[h.length-1],o=t||null!=d&&("."===(f=d[0])||"?."===f||"::"===f||"?::"===f||!d.spaced&&"@"===d[0]),y="IDENTIFIER",!o&&(ae.call(C,s)>=0||ae.call(a,s)>=0)&&(y=s.toUpperCase(),"WHEN"===y&&(m=this.tag(),ae.call(x,m)>=0)?y="LEADING_WHEN":"FOR"===y?this.seenFor=!0:"UNLESS"===y?y="IF":ae.call(K,y)>=0?y="UNARY":ae.call(F,y)>=0&&("INSTANCEOF"!==y&&this.seenFor?(y="FOR"+y,this.seenFor=!1):(y="RELATION","!"===this.value()&&(p=this.tokens.pop(),s="!"+s)))),ae.call(k,s)>=0&&(o?(y="IDENTIFIER",s=new String(s),s.reserved=!0):ae.call(j,s)>=0&&this.error("reserved word '"+s+"'",{length:s.length})),o||(ae.call(r,s)>=0&&(e=s,s=i[s]),y=function(){switch(s){case"!":return"UNARY";case"==":case"!=":return"COMPARE";case"&&":case"||":return"LOGIC";case"true":case"false":return"BOOL";case"break":case"continue":return"STATEMENT";default:return y}}()),b=this.token(y,s,0,c),e&&(b.origin=[y,e,b[2]]),b.variable=!o,p&&(v=[p[2].first_line,p[2].first_column],b[2].first_line=v[0],b[2].first_column=v[1]),t&&(n=u.lastIndexOf(":"),this.token(":",":",n,t.length)),u.length)):0},e.prototype.numberToken=function(){var e,t,n,o,r;return(n=D.exec(this.chunk))?(o=n[0],t=o.length,/^0[BOX]/.test(o)?this.error("radix prefix in '"+o+"' must be lowercase",{offset:1}):/E/.test(o)&&!/^0x/.test(o)?this.error("exponential notation in '"+o+"' must be indicated with a lowercase 'e'",{offset:o.indexOf("E")}):/^0\d*[89]/.test(o)?this.error("decimal literal '"+o+"' must not be prefixed with '0'",{length:t}):/^0\d+/.test(o)&&this.error("octal literal '"+o+"' must be prefixed with '0o'",{length:t}),(r=/^0o([0-7]+)/.exec(o))&&(o="0x"+parseInt(r[1],8).toString(16)),(e=/^0b([01]+)/.exec(o))&&(o="0x"+parseInt(e[1],2).toString(16)),this.token("NUMBER",o,0,t),t):0},e.prototype.stringToken=function(){var e,t,n,o,r,i,a,s,c,u,l,f,m,g,v,y;if(!(l=(G.exec(this.chunk)||[])[0]))return 0;if(g=function(){switch(l){case"'":return q;case'"':return W;case"'''":return h;case'"""':return p}}(),i=3===l.length,f=this.matchWithInterpolations(g,l),y=f.tokens,r=f.index,e=y.length-1,n=l.charAt(0),i){for(s=null,o=function(){var e,t,n;for(n=[],a=e=0,t=y.length;t>e;a=++e)v=y[a],"NEOSTRING"===v[0]&&n.push(v[1]);return n}().join("#{}");u=d.exec(o);)t=u[1],(null===s||(m=t.length)>0&&s.length>m)&&(s=t);s&&(c=RegExp("^"+s,"gm")),this.mergeInterpolationTokens(y,{delimiter:n},function(t){return function(n,o){return n=t.formatString(n),0===o&&(n=n.replace(E,"")),o===e&&(n=n.replace(Y,"")),c&&(n=n.replace(c,"")),n}}(this))}else this.mergeInterpolationTokens(y,{delimiter:n},function(t){return function(n,o){return n=t.formatString(n),n=n.replace(V,function(t,r){return 0===o&&0===r||o===e&&r+t.length===n.length?"":" "})}}(this));return r},e.prototype.commentToken=function(){var e,t,n;return(n=this.chunk.match(s))?(e=n[0],t=n[1],t&&((n=l.exec(e))&&this.error("block comments cannot contain "+n[0],{offset:n.index,length:n[0].length}),t.indexOf("\n")>=0&&(t=t.replace(RegExp("\\n"+re(" ",this.indent),"g"),"\n")),this.token("HERECOMMENT",t,0,e.length)),e.length):0},e.prototype.jsToken=function(){var e,t;return"`"===this.chunk.charAt(0)&&(e=w.exec(this.chunk))?(this.token("JS",(t=e[0]).slice(1,-1),0,t.length),t.length):0},e.prototype.regexToken=function(){var e,t,o,r,i,a,s,c,u,l,p,d,h;switch(!1){case!(a=A.exec(this.chunk)):this.error("regular expressions cannot begin with "+a[2],{offset:a.index+a[1].length});break;case!(a=this.matchWithInterpolations(f,"///")):h=a.tokens,i=a.index;break;case!(a=L.exec(this.chunk)):if(d=a[0],e=a[1],t=a[2],this.validateEscapes(e,{isRegex:!0,offsetInChunk:1}),i=d.length,u=this.tokens,c=u[u.length-1])if(c.spaced&&(l=c[0],ae.call(n,l)>=0)){if(!t||I.test(d))return 0}else if(p=c[0],ae.call(N,p)>=0)return 0;t||this.error("missing / (unclosed regex)");break;default:return 0}switch(r=P.exec(this.chunk.slice(i))[0],o=i+r.length,s=this.makeToken("REGEX",null,0,o),!1){case!!J.test(r):this.error("invalid regular expression flags "+r,{offset:i,length:r.length});break;case!(d||1===h.length):null==e&&(e=this.formatHeregex(h[0][1])),this.token("REGEX",""+this.makeDelimitedLiteral(e,{delimiter:"/"})+r,0,o,s);break;default:this.token("REGEX_START","(",0,0,s),this.token("IDENTIFIER","RegExp",0,0),this.token("CALL_START","(",0,0),this.mergeInterpolationTokens(h,{delimiter:'"',double:!0},this.formatHeregex),r&&(this.token(",",",",i,0),this.token("STRING",'"'+r+'"',i,r.length)),this.token(")",")",o,0),this.token("REGEX_END",")",o,0)}return o},e.prototype.lineToken=function(){var e,t,n,o,r;if(!(n=O.exec(this.chunk)))return 0;if(t=n[0],this.seenFor=!1,r=t.length-1-t.lastIndexOf("\n"),o=this.unfinished(),r-this.indebt===this.indent)return o?this.suppressNewlines():this.newlineToken(0),t.length;if(r>this.indent){if(o)return this.indebt=r-this.indent,this.suppressNewlines(),t.length;if(!this.tokens.length)return this.baseIndent=this.indent=r,t.length;e=r-this.indent+this.outdebt,this.token("INDENT",e,t.length-r,r),this.indents.push(e),this.ends.push({tag:"OUTDENT"}),this.outdebt=this.indebt=0,this.indent=r}else this.baseIndent>r?this.error("missing indentation",{offset:t.length}):(this.indebt=0,this.outdentToken(this.indent-r,o,t.length));return t.length},e.prototype.outdentToken=function(e,t,n){var o,r,i,a;for(o=this.indent-e;e>0;)i=this.indents[this.indents.length-1],i?i===this.outdebt?(e-=this.outdebt,this.outdebt=0):this.outdebt>i?(this.outdebt-=i,e-=i):(r=this.indents.pop()+this.outdebt,n&&(a=this.chunk[n],ae.call(v,a)>=0)&&(o-=r-e,e=r),this.outdebt=0,this.pair("OUTDENT"),this.token("OUTDENT",e,0,n),e-=r):e=0;for(r&&(this.outdebt-=e);";"===this.value();)this.tokens.pop();return"TERMINATOR"===this.tag()||t||this.token("TERMINATOR","\n",n,0),this.indent=o,this},e.prototype.whitespaceToken=function(){var e,t,n;return(e=Q.exec(this.chunk))||"\n"===this.chunk.charAt(0)?(n=this.tokens,t=n[n.length-1],t&&(t[e?"spaced":"newLine"]=!0),e?e[0].length:0):0},e.prototype.newlineToken=function(e){for(;";"===this.value();)this.tokens.pop();return"TERMINATOR"!==this.tag()&&this.token("TERMINATOR","\n",e,0),this},e.prototype.suppressNewlines=function(){return"\\"===this.value()&&this.tokens.pop(),this},e.prototype.literalToken=function(){var e,t,r,i,a,s,l,p,d,h;if((e=M.exec(this.chunk))?(h=e[0],o.test(h)&&this.tagParameters()):h=this.chunk.charAt(0),p=h,r=this.tokens,t=r[r.length-1],"="===h&&t&&(!t[1].reserved&&(i=t[1],ae.call(k,i)>=0)&&(t.origin&&(t=t.origin),this.error("reserved word '"+t[1]+"' can't be assigned",t[2])),"||"===(a=t[1])||"&&"===a))return t[0]="COMPOUND_ASSIGN",t[1]+="=",h.length;if(";"===h)this.seenFor=!1,p="TERMINATOR";else if(ae.call(S,h)>=0)p="MATH";else if(ae.call(c,h)>=0)p="COMPARE";else if(ae.call(u,h)>=0)p="COMPOUND_ASSIGN";else if(ae.call(K,h)>=0)p="UNARY";else if(ae.call(z,h)>=0)p="UNARY_MATH";else if(ae.call(B,h)>=0)p="SHIFT";else if(ae.call(T,h)>=0||"?"===h&&(null!=t?t.spaced:void 0))p="LOGIC";else if(t&&!t.spaced)if("("===h&&(s=t[0],ae.call(n,s)>=0))"?"===t[0]&&(t[0]="FUNC_EXIST"),p="CALL_START";else if("["===h&&(l=t[0],ae.call(y,l)>=0))switch(p="INDEX_START",t[0]){case"?":t[0]="INDEX_SOAK"}switch(d=this.makeToken(p,h),h){case"(":case"{":case"[":this.ends.push({tag:_[h],origin:d});break;case")":case"}":case"]":this.pair(h)}return this.tokens.push(d),h.length},e.prototype.tagParameters=function(){var e,t,n,o;if(")"!==this.tag())return this;for(t=[],o=this.tokens,e=o.length,o[--e][0]="PARAM_END";n=o[--e];)switch(n[0]){case")":t.push(n);break;case"(":case"CALL_START":if(!t.length)return"("===n[0]?(n[0]="PARAM_START",this):this;t.pop()}return this},e.prototype.closeIndentation=function(){return this.outdentToken(this.indent)},e.prototype.matchWithInterpolations=function(t,n){var o,r,i,a,s,c,u,l,p,d,h,f,m,g,v;if(v=[],l=n.length,this.chunk.slice(0,l)!==n)return null;for(m=this.chunk.slice(l);g=t.exec(m)[0],this.validateEscapes(g,{isRegex:"/"===n.charAt(0),offsetInChunk:l}),v.push(this.makeToken("NEOSTRING",g,l)),m=m.slice(g.length),l+=g.length,"#{"===m.slice(0,2);)d=this.getLineAndColumnFromChunk(l+1),c=d[0],r=d[1],h=(new e).tokenize(m.slice(1),{line:c,column:r,untilBalanced:!0}),u=h.tokens,a=h.index,a+=1,p=u[0],o=u[u.length-1],p[0]=p[1]="(",o[0]=o[1]=")",o.origin=["","end of interpolation",o[2]],"TERMINATOR"===(null!=(f=u[1])?f[0]:void 0)&&u.splice(1,1),v.push(["TOKENS",u]),m=m.slice(a),l+=a;return m.slice(0,n.length)!==n&&this.error("missing "+n,{length:n.length}),i=v[0],s=v[v.length-1],i[2].first_column-=n.length,s[2].last_column+=n.length,0===s[1].length&&(s[2].last_column-=1),{tokens:v,index:l+n.length}},e.prototype.mergeInterpolationTokens=function(e,t,n){var o,r,i,a,s,c,u,l,p,d,h,f,m,g,v,y;for(e.length>1&&(p=this.token("STRING_START","(",0,0)),i=this.tokens.length,a=s=0,u=e.length;u>s;a=++s){switch(g=e[a],m=g[0],y=g[1],m){case"TOKENS":if(2===y.length)continue;l=y[0],v=y;break;case"NEOSTRING":if(o=n(g[1],a),0===o.length){if(0!==a)continue;r=this.tokens.length}2===a&&null!=r&&this.tokens.splice(r,2),g[0]="STRING",g[1]=this.makeDelimitedLiteral(o,t),l=g,v=[g]}this.tokens.length>i&&(d=this.token("+","+"),d[2]={first_line:l[2].first_line,first_column:l[2].first_column,last_line:l[2].first_line,last_column:l[2].first_column}),(h=this.tokens).push.apply(h,v)}return p?(c=e[e.length-1],p.origin=["STRING",null,{first_line:p[2].first_line,first_column:p[2].first_column,last_line:c[2].last_line,last_column:c[2].last_column}],f=this.token("STRING_END",")"),f[2]={first_line:c[2].last_line,first_column:c[2].last_column,last_line:c[2].last_line,last_column:c[2].last_column}):void 0},e.prototype.pair=function(e){var t,n,o,r,i;return o=this.ends,n=o[o.length-1],e!==(i=null!=n?n.tag:void 0)?("OUTDENT"!==i&&this.error("unmatched "+e),r=this.indents,t=r[r.length-1],this.outdentToken(t,!0),this.pair(e)):this.ends.pop()},e.prototype.getLineAndColumnFromChunk=function(e){var t,n,o,r,i;return 0===e?[this.chunkLine,this.chunkColumn]:(i=e>=this.chunk.length?this.chunk:this.chunk.slice(0,+(e-1)+1||9e9),o=Z(i,"\n"),t=this.chunkColumn,o>0?(r=i.split("\n"),n=r[r.length-1],t=n.length):t+=i.length,[this.chunkLine+o,t])},e.prototype.makeToken=function(e,t,n,o){var r,i,a,s;return null==n&&(n=0),null==o&&(o=t.length),i={},a=this.getLineAndColumnFromChunk(n),i.first_line=a[0],i.first_column=a[1],r=Math.max(0,o-1),s=this.getLineAndColumnFromChunk(n+r),i.last_line=s[0],i.last_column=s[1],[e,t,i]},e.prototype.token=function(e,t,n,o,r){var i;return i=this.makeToken(e,t,n,o),r&&(i.origin=r),this.tokens.push(i),i},e.prototype.tag=function(){var e,t;return e=this.tokens,t=e[e.length-1],null!=t?t[0]:void 0},e.prototype.value=function(){var e,t;return e=this.tokens,t=e[e.length-1],null!=t?t[1]:void 0},e.prototype.unfinished=function(){var e;return R.test(this.chunk)||"\\"===(e=this.tag())||"."===e||"?."===e||"?::"===e||"UNARY"===e||"MATH"===e||"UNARY_MATH"===e||"+"===e||"-"===e||"YIELD"===e||"**"===e||"SHIFT"===e||"RELATION"===e||"COMPARE"===e||"LOGIC"===e||"THROW"===e||"EXTENDS"===e},e.prototype.formatString=function(e){return e.replace($,"$1")},e.prototype.formatHeregex=function(e){return e.replace(m,"$1$2")},e.prototype.validateEscapes=function(e,t){var n,o,r,i,a,s,c,u;return null==t&&(t={}),i=b.exec(e),!i||(i[0],n=i[1],s=i[2],o=i[3],u=i[4],t.isRegex&&s&&"0"!==s.charAt(0))?void 0:(a=s?"octal escape sequences are not allowed":"invalid escape sequence",r="\\"+(s||o||u),this.error(a+" "+r,{offset:(null!=(c=t.offsetInChunk)?c:0)+i.index+n.length,length:r.length}))},e.prototype.makeDelimitedLiteral=function(e,t){var n;return null==t&&(t={}),""===e&&"/"===t.delimiter&&(e="(?:)"),n=RegExp("(\\\\\\\\)|(\\\\0(?=[1-7]))|\\\\?("+t.delimiter+")|\\\\?(?:(\\n)|(\\r)|(\\u2028)|(\\u2029))|(\\\\.)","g"),e=e.replace(n,function(e,n,o,r,i,a,s,c,u){switch(!1){case!n:return t.double?n+n:n;case!o:return"\\x00";case!r:return"\\"+r;case!i:return"\\n";case!a:return"\\r";case!s:return"\\u2028";case!c:return"\\u2029";case!u:return t.double?"\\"+u:u}}),""+t.delimiter+e+t.delimiter},e.prototype.error=function(e,t){var n,o,r,i,a,s;return null==t&&(t={}),r="first_line"in t?t:(a=this.getLineAndColumnFromChunk(null!=(i=t.offset)?i:0),o=a[0],n=a[1],{first_line:o,first_column:n,last_column:n+(null!=(s=t.length)?s:1)-1}),ie(e,r)},e}(),C=["true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","yield","if","else","switch","for","while","do","try","catch","finally","class","extends","super"],a=["undefined","then","unless","until","loop","of","by","when"],i={and:"&&",or:"||",is:"==",isnt:"!=",not:"!",yes:"true",no:"false",on:"true",off:"false"},r=function(){var e;e=[];for(te in i)e.push(te);return e}(),a=a.concat(r),j=["case","default","function","var","void","with","const","let","enum","export","import","native","implements","interface","package","private","protected","public","static"],H=["arguments","eval","yield*"],k=C.concat(j).concat(H),e.RESERVED=j.concat(C).concat(a).concat(H),e.STRICT_PROSCRIBED=H,t=65279,g=/^(?!\d)((?:(?!\s)[$\w\x7f-\uffff])+)([^\n\S]*:(?!:))?/,D=/^0b[01]+|^0o[0-7]+|^0x[\da-f]+|^\d*\.?\d+(?:e[+-]?\d+)?/i,M=/^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>*\/%])\2=?|\?(\.|::)|\.{2,3})/,Q=/^[^\n\S]+/,s=/^###([^#][\s\S]*?)(?:###[^\n\S]*|###$)|^(?:\s*#(?!##[^#]).*)+/,o=/^[-=]>/,O=/^(?:\n[^\n\S]*)+/,w=/^`[^\\`]*(?:\\.[^\\`]*)*`/,G=/^(?:'''|"""|'|")/,q=/^(?:[^\\']|\\[\s\S])*/,W=/^(?:[^\\"#]|\\[\s\S]|\#(?!\{))*/,h=/^(?:[^\\']|\\[\s\S]|'(?!''))*/,p=/^(?:[^\\"#]|\\[\s\S]|"(?!"")|\#(?!\{))*/,$=/((?:\\\\)+)|\\[^\S\n]*\n\s*/g,V=/\s*\n\s*/g,d=/\n+([^\n\S]*)(?=\S)/g,L=/^\/(?!\/)((?:[^[\/\n\\]|\\[^\n]|\[(?:\\[^\n]|[^\]\n\\])*\])*)(\/)?/,P=/^\w*/,J=/^(?!.*(.).*\1)[imgy]*$/,f=/^(?:[^\\\/#]|\\[\s\S]|\/(?!\/\/)|\#(?!\{))*/,m=/((?:\\\\)+)|\\(\s)|\s+(?:#.*)?/g,A=/^(\/|\/{3}\s*)(\*)/,I=/^\/=?\s/,l=/\*\//,R=/^\s*(?:,|\??\.(?![.\d])|::)/,b=/((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7]|[1-7])|(x(?![\da-fA-F]{2}).{0,2})|(u(?![\da-fA-F]{4}).{0,4}))/,E=/^[^\n\S]*\n/,Y=/\n[^\n\S]*$/,X=/\s+$/,u=["-=","+=","/=","*=","%=","||=","&&=","?=","<<=",">>=",">>>=","&=","^=","|=","**=","//=","%%="],K=["NEW","TYPEOF","DELETE","DO"],z=["!","~"],T=["&&","||","&","|","^"],B=["<<",">>",">>>"],c=["==","!=","<",">","<=",">="],S=["*","/","%","//","%%"],F=["IN","OF","INSTANCEOF"],["TRUE","FALSE"],n=["IDENTIFIER",")","]","?","@","THIS","SUPER"],y=n.concat(["NUMBER","STRING","STRING_END","REGEX","REGEX_END","BOOL","NULL","UNDEFINED","}","::"]),N=y.concat(["++","--"]),x=["INDENT","OUTDENT","TERMINATOR"],v=[")","}","]"]}.call(this),t.exports}(),require["./parser"]=function(){var e={},t={exports:e},n=function(){function e(){this.yy={}}var t=function(e,t,n,o){for(n=n||{},o=e.length;o--;n[e[o]]=t);return n},n=[1,20],o=[1,75],r=[1,71],i=[1,76],a=[1,77],s=[1,73],c=[1,74],u=[1,50],l=[1,52],p=[1,53],d=[1,54],h=[1,55],f=[1,45],m=[1,46],g=[1,27],v=[1,60],y=[1,61],b=[1,70],_=[1,43],w=[1,26],k=[1,58],C=[1,59],E=[1,57],x=[1,38],R=[1,44],T=[1,56],S=[1,65],O=[1,66],N=[1,67],D=[1,68],M=[1,42],I=[1,64],L=[1,29],P=[1,30],A=[1,31],F=[1,32],j=[1,33],U=[1,34],B=[1,35],V=[1,78],H=[1,6,26,34,109],W=[1,88],$=[1,81],q=[1,80],G=[1,79],Y=[1,82],X=[1,83],K=[1,84],z=[1,85],J=[1,86],Q=[1,87],Z=[1,91],ee=[1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,136,137,142,143,144,145,146,147,148],te=[1,97],ne=[1,98],oe=[1,99],re=[1,100],ie=[1,102],ae=[1,103],se=[1,96],ce=[2,115],ue=[1,6,25,26,34,56,61,64,73,74,75,76,78,80,81,85,91,92,93,98,100,109,111,112,113,117,118,133,136,137,142,143,144,145,146,147,148],le=[2,82],pe=[1,108],de=[2,61],he=[1,112],fe=[1,117],me=[1,118],ge=[1,120],ve=[1,6,25,26,34,46,56,61,64,73,74,75,76,78,80,81,85,91,92,93,98,100,109,111,112,113,117,118,133,136,137,142,143,144,145,146,147,148],ye=[2,79],be=[1,6,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,136,137,142,143,144,145,146,147,148],_e=[1,155],we=[1,157],ke=[1,152],Ce=[1,6,25,26,34,46,56,61,64,73,74,75,76,78,80,81,85,87,91,92,93,98,100,109,111,112,113,117,118,133,136,137,140,141,142,143,144,145,146,147,148,149],Ee=[2,98],xe=[1,6,25,26,34,49,56,61,64,73,74,75,76,78,80,81,85,91,92,93,98,100,109,111,112,113,117,118,133,136,137,142,143,144,145,146,147,148],Re=[1,6,25,26,34,46,49,56,61,64,73,74,75,76,78,80,81,85,87,91,92,93,98,100,109,111,112,113,117,118,124,125,133,136,137,140,141,142,143,144,145,146,147,148,149],Te=[1,207],Se=[1,206],Oe=[1,6,25,26,34,38,56,61,64,73,74,75,76,78,80,81,85,91,92,93,98,100,109,111,112,113,117,118,133,136,137,142,143,144,145,146,147,148],Ne=[2,59],De=[1,217],Me=[6,25,26,56,61],Ie=[6,25,26,46,56,61,64],Le=[1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,136,137,143,145,146,147,148],Pe=[1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133],Ae=[73,74,75,76,78,81,91,92],Fe=[1,236],je=[2,136],Ue=[1,6,25,26,34,46,56,61,64,73,74,75,76,78,80,81,85,91,92,93,98,100,109,111,112,113,117,118,124,125,133,136,137,142,143,144,145,146,147,148],Be=[1,245],Ve=[6,25,26,61,93,98],He=[1,6,25,26,34,56,61,64,80,85,93,98,100,109,118,133],We=[1,6,25,26,34,56,61,64,80,85,93,98,100,109,112,118,133],$e=[124,125],qe=[61,124,125],Ge=[1,256],Ye=[6,25,26,61,85],Xe=[6,25,26,49,61,85],Ke=[6,25,26,46,49,61,85],ze=[1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,136,137,145,146,147,148],Je=[11,28,30,32,33,36,37,40,41,42,43,44,52,53,54,58,59,80,83,86,90,95,96,97,103,107,108,111,113,115,117,126,132,134,135,136,137,138,140,141],Qe=[2,125],Ze=[6,25,26],et=[2,60],tt=[1,270],nt=[1,271],ot=[1,6,25,26,34,56,61,64,80,85,93,98,100,105,106,109,111,112,113,117,118,128,130,133,136,137,142,143,144,145,146,147,148],rt=[26,128,130],it=[1,6,26,34,56,61,64,80,85,93,98,100,109,112,118,133],at=[2,74],st=[1,293],ct=[1,294],ut=[1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,128,133,136,137,142,143,144,145,146,147,148],lt=[1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,113,117,118,133],pt=[1,305],dt=[1,306],ht=[6,25,26,61],ft=[1,6,25,26,34,56,61,64,80,85,93,98,100,105,109,111,112,113,117,118,133,136,137,142,143,144,145,146,147,148],mt=[25,61],gt={trace:function(){},yy:{},symbols_:{error:2,Root:3,Body:4,Line:5,TERMINATOR:6,Expression:7,Statement:8,Return:9,Comment:10,STATEMENT:11,Value:12,Invocation:13,Code:14,Operation:15,Assign:16,If:17,Try:18,While:19,For:20,Switch:21,Class:22,Throw:23,Block:24,INDENT:25,OUTDENT:26,Identifier:27,IDENTIFIER:28,AlphaNumeric:29,NUMBER:30,String:31,STRING:32,STRING_START:33,STRING_END:34,Regex:35,REGEX:36,REGEX_START:37,REGEX_END:38,Literal:39,JS:40,DEBUGGER:41,UNDEFINED:42,NULL:43,BOOL:44,Assignable:45,"=":46,AssignObj:47,ObjAssignable:48,":":49,SimpleObjAssignable:50,ThisProperty:51,RETURN:52,HERECOMMENT:53,PARAM_START:54,ParamList:55,PARAM_END:56,FuncGlyph:57,"->":58,"=>":59,OptComma:60,",":61,Param:62,ParamVar:63,"...":64,Array:65,Object:66,Splat:67,SimpleAssignable:68,Accessor:69,Parenthetical:70,Range:71,This:72,".":73,"?.":74,"::":75,"?::":76,Index:77,INDEX_START:78,IndexValue:79,INDEX_END:80,INDEX_SOAK:81,Slice:82,"{":83,AssignList:84,"}":85,CLASS:86,EXTENDS:87,OptFuncExist:88,Arguments:89,SUPER:90,FUNC_EXIST:91,CALL_START:92,CALL_END:93,ArgList:94,THIS:95,"@":96,"[":97,"]":98,RangeDots:99,"..":100,Arg:101,SimpleArgs:102,TRY:103,Catch:104,FINALLY:105,CATCH:106,THROW:107,"(":108,")":109,WhileSource:110,WHILE:111,WHEN:112,UNTIL:113,Loop:114,LOOP:115,ForBody:116,FOR:117,BY:118,ForStart:119,ForSource:120,ForVariables:121,OWN:122,ForValue:123,FORIN:124,FOROF:125,SWITCH:126,Whens:127,ELSE:128,When:129,LEADING_WHEN:130,IfBlock:131,IF:132,POST_IF:133,UNARY:134,UNARY_MATH:135,"-":136,"+":137,YIELD:138,FROM:139,"--":140,"++":141,"?":142,MATH:143,"**":144,SHIFT:145,COMPARE:146,LOGIC:147,RELATION:148,COMPOUND_ASSIGN:149,$accept:0,$end:1},terminals_:{2:"error",6:"TERMINATOR",11:"STATEMENT",25:"INDENT",26:"OUTDENT",28:"IDENTIFIER",30:"NUMBER",32:"STRING",33:"STRING_START",34:"STRING_END",36:"REGEX",37:"REGEX_START",38:"REGEX_END",40:"JS",41:"DEBUGGER",42:"UNDEFINED",43:"NULL",44:"BOOL",46:"=",49:":",52:"RETURN",53:"HERECOMMENT",54:"PARAM_START",56:"PARAM_END",58:"->",59:"=>",61:",",64:"...",73:".",74:"?.",75:"::",76:"?::",78:"INDEX_START",80:"INDEX_END",81:"INDEX_SOAK",83:"{",85:"}",86:"CLASS",87:"EXTENDS",90:"SUPER",91:"FUNC_EXIST",92:"CALL_START",93:"CALL_END",95:"THIS",96:"@",97:"[",98:"]",100:"..",103:"TRY",105:"FINALLY",106:"CATCH",107:"THROW",108:"(",109:")",111:"WHILE",112:"WHEN",113:"UNTIL",115:"LOOP",117:"FOR",118:"BY",122:"OWN",124:"FORIN",125:"FOROF",126:"SWITCH",128:"ELSE",130:"LEADING_WHEN",132:"IF",133:"POST_IF",134:"UNARY",135:"UNARY_MATH",136:"-",137:"+",138:"YIELD",139:"FROM",140:"--",141:"++",142:"?",143:"MATH",144:"**",145:"SHIFT",146:"COMPARE",147:"LOGIC",148:"RELATION",149:"COMPOUND_ASSIGN"},
8
+ productions_:[0,[3,0],[3,1],[4,1],[4,3],[4,2],[5,1],[5,1],[8,1],[8,1],[8,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[24,2],[24,3],[27,1],[29,1],[29,1],[31,1],[31,3],[35,1],[35,3],[39,1],[39,1],[39,1],[39,1],[39,1],[39,1],[39,1],[16,3],[16,4],[16,5],[47,1],[47,3],[47,5],[47,3],[47,5],[47,1],[50,1],[50,1],[48,1],[48,1],[9,2],[9,1],[10,1],[14,5],[14,2],[57,1],[57,1],[60,0],[60,1],[55,0],[55,1],[55,3],[55,4],[55,6],[62,1],[62,2],[62,3],[62,1],[63,1],[63,1],[63,1],[63,1],[67,2],[68,1],[68,2],[68,2],[68,1],[45,1],[45,1],[45,1],[12,1],[12,1],[12,1],[12,1],[12,1],[69,2],[69,2],[69,2],[69,2],[69,1],[69,1],[77,3],[77,2],[79,1],[79,1],[66,4],[84,0],[84,1],[84,3],[84,4],[84,6],[22,1],[22,2],[22,3],[22,4],[22,2],[22,3],[22,4],[22,5],[13,3],[13,3],[13,1],[13,2],[88,0],[88,1],[89,2],[89,4],[72,1],[72,1],[51,2],[65,2],[65,4],[99,1],[99,1],[71,5],[82,3],[82,2],[82,2],[82,1],[94,1],[94,3],[94,4],[94,4],[94,6],[101,1],[101,1],[101,1],[102,1],[102,3],[18,2],[18,3],[18,4],[18,5],[104,3],[104,3],[104,2],[23,2],[70,3],[70,5],[110,2],[110,4],[110,2],[110,4],[19,2],[19,2],[19,2],[19,1],[114,2],[114,2],[20,2],[20,2],[20,2],[116,2],[116,4],[116,2],[119,2],[119,3],[123,1],[123,1],[123,1],[123,1],[121,1],[121,3],[120,2],[120,2],[120,4],[120,4],[120,4],[120,6],[120,6],[21,5],[21,7],[21,4],[21,6],[127,1],[127,2],[129,3],[129,4],[131,3],[131,5],[17,1],[17,3],[17,3],[17,3],[15,2],[15,2],[15,2],[15,2],[15,2],[15,2],[15,3],[15,2],[15,2],[15,2],[15,2],[15,2],[15,3],[15,3],[15,3],[15,3],[15,3],[15,3],[15,3],[15,3],[15,3],[15,5],[15,4],[15,3]],performAction:function(e,t,n,o,r,i,a){var s=i.length-1;switch(r){case 1:return this.$=o.addLocationDataFn(a[s],a[s])(new o.Block);case 2:return this.$=i[s];case 3:this.$=o.addLocationDataFn(a[s],a[s])(o.Block.wrap([i[s]]));break;case 4:this.$=o.addLocationDataFn(a[s-2],a[s])(i[s-2].push(i[s]));break;case 5:this.$=i[s-1];break;case 6:case 7:case 8:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 27:case 32:case 34:case 47:case 48:case 49:case 50:case 51:case 59:case 60:case 70:case 71:case 72:case 73:case 78:case 79:case 82:case 86:case 92:case 136:case 137:case 139:case 169:case 170:case 186:case 192:this.$=i[s];break;case 10:case 25:case 26:case 28:case 30:case 33:case 35:this.$=o.addLocationDataFn(a[s],a[s])(new o.Literal(i[s]));break;case 23:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Block);break;case 24:case 31:case 93:this.$=o.addLocationDataFn(a[s-2],a[s])(i[s-1]);break;case 29:case 149:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Parens(i[s-1]));break;case 36:this.$=o.addLocationDataFn(a[s],a[s])(new o.Undefined);break;case 37:this.$=o.addLocationDataFn(a[s],a[s])(new o.Null);break;case 38:this.$=o.addLocationDataFn(a[s],a[s])(new o.Bool(i[s]));break;case 39:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Assign(i[s-2],i[s]));break;case 40:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.Assign(i[s-3],i[s]));break;case 41:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Assign(i[s-4],i[s-1]));break;case 42:case 75:case 80:case 81:case 83:case 84:case 85:case 171:case 172:this.$=o.addLocationDataFn(a[s],a[s])(new o.Value(i[s]));break;case 43:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Assign(o.addLocationDataFn(a[s-2])(new o.Value(i[s-2])),i[s],"object",{operatorToken:o.addLocationDataFn(a[s-1])(new o.Literal(i[s-1]))}));break;case 44:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Assign(o.addLocationDataFn(a[s-4])(new o.Value(i[s-4])),i[s-1],"object",{operatorToken:o.addLocationDataFn(a[s-3])(new o.Literal(i[s-3]))}));break;case 45:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Assign(o.addLocationDataFn(a[s-2])(new o.Value(i[s-2])),i[s],null,{operatorToken:o.addLocationDataFn(a[s-1])(new o.Literal(i[s-1]))}));break;case 46:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Assign(o.addLocationDataFn(a[s-4])(new o.Value(i[s-4])),i[s-1],null,{operatorToken:o.addLocationDataFn(a[s-3])(new o.Literal(i[s-3]))}));break;case 52:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Return(i[s]));break;case 53:this.$=o.addLocationDataFn(a[s],a[s])(new o.Return);break;case 54:this.$=o.addLocationDataFn(a[s],a[s])(new o.Comment(i[s]));break;case 55:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Code(i[s-3],i[s],i[s-1]));break;case 56:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Code([],i[s],i[s-1]));break;case 57:this.$=o.addLocationDataFn(a[s],a[s])("func");break;case 58:this.$=o.addLocationDataFn(a[s],a[s])("boundfunc");break;case 61:case 98:this.$=o.addLocationDataFn(a[s],a[s])([]);break;case 62:case 99:case 131:case 173:this.$=o.addLocationDataFn(a[s],a[s])([i[s]]);break;case 63:case 100:case 132:this.$=o.addLocationDataFn(a[s-2],a[s])(i[s-2].concat(i[s]));break;case 64:case 101:case 133:this.$=o.addLocationDataFn(a[s-3],a[s])(i[s-3].concat(i[s]));break;case 65:case 102:case 135:this.$=o.addLocationDataFn(a[s-5],a[s])(i[s-5].concat(i[s-2]));break;case 66:this.$=o.addLocationDataFn(a[s],a[s])(new o.Param(i[s]));break;case 67:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Param(i[s-1],null,!0));break;case 68:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Param(i[s-2],i[s]));break;case 69:case 138:this.$=o.addLocationDataFn(a[s],a[s])(new o.Expansion);break;case 74:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Splat(i[s-1]));break;case 76:this.$=o.addLocationDataFn(a[s-1],a[s])(i[s-1].add(i[s]));break;case 77:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Value(i[s-1],[].concat(i[s])));break;case 87:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Access(i[s]));break;case 88:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Access(i[s],"soak"));break;case 89:this.$=o.addLocationDataFn(a[s-1],a[s])([o.addLocationDataFn(a[s-1])(new o.Access(new o.Literal("prototype"))),o.addLocationDataFn(a[s])(new o.Access(i[s]))]);break;case 90:this.$=o.addLocationDataFn(a[s-1],a[s])([o.addLocationDataFn(a[s-1])(new o.Access(new o.Literal("prototype"),"soak")),o.addLocationDataFn(a[s])(new o.Access(i[s]))]);break;case 91:this.$=o.addLocationDataFn(a[s],a[s])(new o.Access(new o.Literal("prototype")));break;case 94:this.$=o.addLocationDataFn(a[s-1],a[s])(o.extend(i[s],{soak:!0}));break;case 95:this.$=o.addLocationDataFn(a[s],a[s])(new o.Index(i[s]));break;case 96:this.$=o.addLocationDataFn(a[s],a[s])(new o.Slice(i[s]));break;case 97:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.Obj(i[s-2],i[s-3].generated));break;case 103:this.$=o.addLocationDataFn(a[s],a[s])(new o.Class);break;case 104:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Class(null,null,i[s]));break;case 105:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Class(null,i[s]));break;case 106:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.Class(null,i[s-1],i[s]));break;case 107:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Class(i[s]));break;case 108:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Class(i[s-1],null,i[s]));break;case 109:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.Class(i[s-2],i[s]));break;case 110:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Class(i[s-3],i[s-1],i[s]));break;case 111:case 112:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Call(i[s-2],i[s],i[s-1]));break;case 113:this.$=o.addLocationDataFn(a[s],a[s])(new o.Call("super",[new o.Splat(new o.Literal("arguments"))]));break;case 114:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Call("super",i[s]));break;case 115:this.$=o.addLocationDataFn(a[s],a[s])(!1);break;case 116:this.$=o.addLocationDataFn(a[s],a[s])(!0);break;case 117:this.$=o.addLocationDataFn(a[s-1],a[s])([]);break;case 118:case 134:this.$=o.addLocationDataFn(a[s-3],a[s])(i[s-2]);break;case 119:case 120:this.$=o.addLocationDataFn(a[s],a[s])(new o.Value(new o.Literal("this")));break;case 121:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Value(o.addLocationDataFn(a[s-1])(new o.Literal("this")),[o.addLocationDataFn(a[s])(new o.Access(i[s]))],"this"));break;case 122:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Arr([]));break;case 123:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.Arr(i[s-2]));break;case 124:this.$=o.addLocationDataFn(a[s],a[s])("inclusive");break;case 125:this.$=o.addLocationDataFn(a[s],a[s])("exclusive");break;case 126:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Range(i[s-3],i[s-1],i[s-2]));break;case 127:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Range(i[s-2],i[s],i[s-1]));break;case 128:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Range(i[s-1],null,i[s]));break;case 129:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Range(null,i[s],i[s-1]));break;case 130:this.$=o.addLocationDataFn(a[s],a[s])(new o.Range(null,null,i[s]));break;case 140:this.$=o.addLocationDataFn(a[s-2],a[s])([].concat(i[s-2],i[s]));break;case 141:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Try(i[s]));break;case 142:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Try(i[s-1],i[s][0],i[s][1]));break;case 143:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.Try(i[s-2],null,null,i[s]));break;case 144:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Try(i[s-3],i[s-2][0],i[s-2][1],i[s]));break;case 145:this.$=o.addLocationDataFn(a[s-2],a[s])([i[s-1],i[s]]);break;case 146:this.$=o.addLocationDataFn(a[s-2],a[s])([o.addLocationDataFn(a[s-1])(new o.Value(i[s-1])),i[s]]);break;case 147:this.$=o.addLocationDataFn(a[s-1],a[s])([null,i[s]]);break;case 148:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Throw(i[s]));break;case 150:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Parens(i[s-2]));break;case 151:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.While(i[s]));break;case 152:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.While(i[s-2],{guard:i[s]}));break;case 153:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.While(i[s],{invert:!0}));break;case 154:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.While(i[s-2],{invert:!0,guard:i[s]}));break;case 155:this.$=o.addLocationDataFn(a[s-1],a[s])(i[s-1].addBody(i[s]));break;case 156:case 157:this.$=o.addLocationDataFn(a[s-1],a[s])(i[s].addBody(o.addLocationDataFn(a[s-1])(o.Block.wrap([i[s-1]]))));break;case 158:this.$=o.addLocationDataFn(a[s],a[s])(i[s]);break;case 159:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.While(o.addLocationDataFn(a[s-1])(new o.Literal("true"))).addBody(i[s]));break;case 160:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.While(o.addLocationDataFn(a[s-1])(new o.Literal("true"))).addBody(o.addLocationDataFn(a[s])(o.Block.wrap([i[s]]))));break;case 161:case 162:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.For(i[s-1],i[s]));break;case 163:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.For(i[s],i[s-1]));break;case 164:this.$=o.addLocationDataFn(a[s-1],a[s])({source:o.addLocationDataFn(a[s])(new o.Value(i[s]))});break;case 165:this.$=o.addLocationDataFn(a[s-3],a[s])({source:o.addLocationDataFn(a[s-2])(new o.Value(i[s-2])),step:i[s]});break;case 166:this.$=o.addLocationDataFn(a[s-1],a[s])(function(){return i[s].own=i[s-1].own,i[s].name=i[s-1][0],i[s].index=i[s-1][1],i[s]}());break;case 167:this.$=o.addLocationDataFn(a[s-1],a[s])(i[s]);break;case 168:this.$=o.addLocationDataFn(a[s-2],a[s])(function(){return i[s].own=!0,i[s]}());break;case 174:this.$=o.addLocationDataFn(a[s-2],a[s])([i[s-2],i[s]]);break;case 175:this.$=o.addLocationDataFn(a[s-1],a[s])({source:i[s]});break;case 176:this.$=o.addLocationDataFn(a[s-1],a[s])({source:i[s],object:!0});break;case 177:this.$=o.addLocationDataFn(a[s-3],a[s])({source:i[s-2],guard:i[s]});break;case 178:this.$=o.addLocationDataFn(a[s-3],a[s])({source:i[s-2],guard:i[s],object:!0});break;case 179:this.$=o.addLocationDataFn(a[s-3],a[s])({source:i[s-2],step:i[s]});break;case 180:this.$=o.addLocationDataFn(a[s-5],a[s])({source:i[s-4],guard:i[s-2],step:i[s]});break;case 181:this.$=o.addLocationDataFn(a[s-5],a[s])({source:i[s-4],step:i[s-2],guard:i[s]});break;case 182:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Switch(i[s-3],i[s-1]));break;case 183:this.$=o.addLocationDataFn(a[s-6],a[s])(new o.Switch(i[s-5],i[s-3],i[s-1]));break;case 184:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.Switch(null,i[s-1]));break;case 185:this.$=o.addLocationDataFn(a[s-5],a[s])(new o.Switch(null,i[s-3],i[s-1]));break;case 187:this.$=o.addLocationDataFn(a[s-1],a[s])(i[s-1].concat(i[s]));break;case 188:this.$=o.addLocationDataFn(a[s-2],a[s])([[i[s-1],i[s]]]);break;case 189:this.$=o.addLocationDataFn(a[s-3],a[s])([[i[s-2],i[s-1]]]);break;case 190:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.If(i[s-1],i[s],{type:i[s-2]}));break;case 191:this.$=o.addLocationDataFn(a[s-4],a[s])(i[s-4].addElse(o.addLocationDataFn(a[s-2],a[s])(new o.If(i[s-1],i[s],{type:i[s-2]}))));break;case 193:this.$=o.addLocationDataFn(a[s-2],a[s])(i[s-2].addElse(i[s]));break;case 194:case 195:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.If(i[s],o.addLocationDataFn(a[s-2])(o.Block.wrap([i[s-2]])),{type:i[s-1],statement:!0}));break;case 196:case 197:case 200:case 201:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Op(i[s-1],i[s]));break;case 198:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Op("-",i[s]));break;case 199:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Op("+",i[s]));break;case 202:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Op(i[s-2].concat(i[s-1]),i[s]));break;case 203:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Op("--",i[s]));break;case 204:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Op("++",i[s]));break;case 205:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Op("--",i[s-1],null,!0));break;case 206:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Op("++",i[s-1],null,!0));break;case 207:this.$=o.addLocationDataFn(a[s-1],a[s])(new o.Existence(i[s-1]));break;case 208:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Op("+",i[s-2],i[s]));break;case 209:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Op("-",i[s-2],i[s]));break;case 210:case 211:case 212:case 213:case 214:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Op(i[s-1],i[s-2],i[s]));break;case 215:this.$=o.addLocationDataFn(a[s-2],a[s])(function(){return"!"===i[s-1].charAt(0)?new o.Op(i[s-1].slice(1),i[s-2],i[s]).invert():new o.Op(i[s-1],i[s-2],i[s])}());break;case 216:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Assign(i[s-2],i[s],i[s-1]));break;case 217:this.$=o.addLocationDataFn(a[s-4],a[s])(new o.Assign(i[s-4],i[s-1],i[s-3]));break;case 218:this.$=o.addLocationDataFn(a[s-3],a[s])(new o.Assign(i[s-3],i[s],i[s-2]));break;case 219:this.$=o.addLocationDataFn(a[s-2],a[s])(new o.Extends(i[s-2],i[s]))}},table:[{1:[2,1],3:1,4:2,5:3,7:4,8:5,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{1:[3]},{1:[2,2],6:V},t(H,[2,3]),t(H,[2,6],{119:69,110:89,116:90,111:S,113:O,117:D,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(H,[2,7],{119:69,110:92,116:93,111:S,113:O,117:D,133:Z}),t(ee,[2,11],{88:94,69:95,77:101,73:te,74:ne,75:oe,76:re,78:ie,81:ae,91:se,92:ce}),t(ee,[2,12],{77:101,88:104,69:105,73:te,74:ne,75:oe,76:re,78:ie,81:ae,91:se,92:ce}),t(ee,[2,13]),t(ee,[2,14]),t(ee,[2,15]),t(ee,[2,16]),t(ee,[2,17]),t(ee,[2,18]),t(ee,[2,19]),t(ee,[2,20]),t(ee,[2,21]),t(ee,[2,22]),t(ee,[2,8]),t(ee,[2,9]),t(ee,[2,10]),t(ue,le,{46:[1,106]}),t(ue,[2,83]),t(ue,[2,84]),t(ue,[2,85]),t(ue,[2,86]),t([1,6,25,26,34,38,56,61,64,73,74,75,76,78,80,81,85,91,93,98,100,109,111,112,113,117,118,133,136,137,142,143,144,145,146,147,148],[2,113],{89:107,92:pe}),t([6,25,56,61],de,{55:109,62:110,63:111,27:113,51:114,65:115,66:116,28:o,64:he,83:b,96:fe,97:me}),{24:119,25:ge},{7:121,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:123,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:124,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:125,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:127,8:126,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,139:[1,128],140:U,141:B},{12:130,13:131,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:132,51:63,65:47,66:48,68:129,70:23,71:24,72:25,83:b,90:w,95:k,96:C,97:E,108:T},{12:130,13:131,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:132,51:63,65:47,66:48,68:133,70:23,71:24,72:25,83:b,90:w,95:k,96:C,97:E,108:T},t(ve,ye,{87:[1,137],140:[1,134],141:[1,135],149:[1,136]}),t(ee,[2,192],{128:[1,138]}),{24:139,25:ge},{24:140,25:ge},t(ee,[2,158]),{24:141,25:ge},{7:142,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:[1,143],27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(be,[2,103],{39:22,70:23,71:24,72:25,65:47,66:48,29:49,35:51,27:62,51:63,31:72,12:130,13:131,45:132,24:144,68:146,25:ge,28:o,30:r,32:i,33:a,36:s,37:c,40:u,41:l,42:p,43:d,44:h,83:b,87:[1,145],90:w,95:k,96:C,97:E,108:T}),{7:147,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t([1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,142,143,144,145,146,147,148],[2,53],{12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,9:18,10:19,45:21,39:22,70:23,71:24,72:25,57:28,68:36,131:37,110:39,114:40,116:41,65:47,66:48,29:49,35:51,27:62,51:63,119:69,31:72,8:122,7:148,11:n,28:o,30:r,32:i,33:a,36:s,37:c,40:u,41:l,42:p,43:d,44:h,52:f,53:m,54:g,58:v,59:y,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,115:N,126:M,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B}),t(ee,[2,54]),t(ve,[2,80]),t(ve,[2,81]),t(ue,[2,32]),t(ue,[2,33]),t(ue,[2,34]),t(ue,[2,35]),t(ue,[2,36]),t(ue,[2,37]),t(ue,[2,38]),{4:149,5:3,7:4,8:5,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:[1,150],27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:151,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:_e,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,64:we,65:47,66:48,67:156,68:36,70:23,71:24,72:25,83:b,86:_,90:w,94:153,95:k,96:C,97:E,98:ke,101:154,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ue,[2,119]),t(ue,[2,120],{27:158,28:o}),{25:[2,57]},{25:[2,58]},t(Ce,[2,75]),t(Ce,[2,78]),{7:159,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:160,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:161,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:163,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:162,25:ge,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{27:168,28:o,51:169,65:170,66:171,71:164,83:b,96:fe,97:E,121:165,122:[1,166],123:167},{120:172,124:[1,173],125:[1,174]},t([6,25,61,85],Ee,{31:72,84:175,47:176,48:177,50:178,10:179,29:180,27:181,51:182,28:o,30:r,32:i,33:a,53:m,96:fe}),t(xe,[2,26]),t(xe,[2,27]),t(ue,[2,30]),{12:130,13:183,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:132,51:63,65:47,66:48,68:184,70:23,71:24,72:25,83:b,90:w,95:k,96:C,97:E,108:T},t(Re,[2,25]),t(xe,[2,28]),{4:185,5:3,7:4,8:5,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(H,[2,5],{7:4,8:5,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,9:18,10:19,45:21,39:22,70:23,71:24,72:25,57:28,68:36,131:37,110:39,114:40,116:41,65:47,66:48,29:49,35:51,27:62,51:63,119:69,31:72,5:186,11:n,28:o,30:r,32:i,33:a,36:s,37:c,40:u,41:l,42:p,43:d,44:h,52:f,53:m,54:g,58:v,59:y,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,111:S,113:O,115:N,117:D,126:M,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B}),t(ee,[2,207]),{7:187,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:188,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:189,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:190,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:191,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:192,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:193,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:194,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:195,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ee,[2,157]),t(ee,[2,162]),{7:196,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ee,[2,156]),t(ee,[2,161]),{89:197,92:pe},t(Ce,[2,76]),{92:[2,116]},{27:198,28:o},{27:199,28:o},t(Ce,[2,91],{27:200,28:o}),{27:201,28:o},t(Ce,[2,92]),{7:203,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,64:Te,65:47,66:48,68:36,70:23,71:24,72:25,79:202,82:204,83:b,86:_,90:w,95:k,96:C,97:E,99:205,100:Se,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{77:208,78:ie,81:ae},{89:209,92:pe},t(Ce,[2,77]),{6:[1,211],7:210,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:[1,212],27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(Oe,[2,114]),{7:215,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:_e,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,64:we,65:47,66:48,67:156,68:36,70:23,71:24,72:25,83:b,86:_,90:w,93:[1,213],94:214,95:k,96:C,97:E,101:154,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t([6,25],Ne,{60:218,56:[1,216],61:De}),t(Me,[2,62]),t(Me,[2,66],{46:[1,220],64:[1,219]}),t(Me,[2,69]),t(Ie,[2,70]),t(Ie,[2,71]),t(Ie,[2,72]),t(Ie,[2,73]),{27:158,28:o},{7:215,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:_e,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,64:we,65:47,66:48,67:156,68:36,70:23,71:24,72:25,83:b,86:_,90:w,94:153,95:k,96:C,97:E,98:ke,101:154,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ee,[2,56]),{4:222,5:3,7:4,8:5,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,26:[1,221],27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t([1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,136,137,143,144,145,146,147,148],[2,196],{119:69,110:89,116:90,142:G}),{110:92,111:S,113:O,116:93,117:D,119:69,133:Z},t(Le,[2,197],{119:69,110:89,116:90,142:G,144:X}),t(Le,[2,198],{119:69,110:89,116:90,142:G,144:X}),t(Le,[2,199],{119:69,110:89,116:90,142:G,144:X}),t(ee,[2,200],{119:69,110:92,116:93}),t(Pe,[2,201],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{7:223,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ee,[2,203],{73:ye,74:ye,75:ye,76:ye,78:ye,81:ye,91:ye,92:ye}),{69:95,73:te,74:ne,75:oe,76:re,77:101,78:ie,81:ae,88:94,91:se,92:ce},{69:105,73:te,74:ne,75:oe,76:re,77:101,78:ie,81:ae,88:104,
9
+ 91:se,92:ce},t(Ae,le),t(ee,[2,204],{73:ye,74:ye,75:ye,76:ye,78:ye,81:ye,91:ye,92:ye}),t(ee,[2,205]),t(ee,[2,206]),{6:[1,226],7:224,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:[1,225],27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:227,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{24:228,25:ge,132:[1,229]},t(ee,[2,141],{104:230,105:[1,231],106:[1,232]}),t(ee,[2,155]),t(ee,[2,163]),{25:[1,233],110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},{127:234,129:235,130:Fe},t(ee,[2,104]),{7:237,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(be,[2,107],{24:238,25:ge,73:ye,74:ye,75:ye,76:ye,78:ye,81:ye,91:ye,92:ye,87:[1,239]}),t(Pe,[2,148],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(Pe,[2,52],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{6:V,109:[1,240]},{4:241,5:3,7:4,8:5,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t([6,25,61,98],je,{119:69,110:89,116:90,99:242,64:[1,243],100:Se,111:S,113:O,117:D,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(Ue,[2,122]),t([6,25,98],Ne,{60:244,61:Be}),t(Ve,[2,131]),{7:215,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:_e,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,64:we,65:47,66:48,67:156,68:36,70:23,71:24,72:25,83:b,86:_,90:w,94:246,95:k,96:C,97:E,101:154,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(Ve,[2,137]),t(Ve,[2,138]),t(Re,[2,121]),{24:247,25:ge,110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},t(He,[2,151],{119:69,110:89,116:90,111:S,112:[1,248],113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(He,[2,153],{119:69,110:89,116:90,111:S,112:[1,249],113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(ee,[2,159]),t(We,[2,160],{119:69,110:89,116:90,111:S,113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t([1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,133,136,137,142,143,144,145,146,147,148],[2,164],{118:[1,250]}),t($e,[2,167]),{27:168,28:o,51:169,65:170,66:171,83:b,96:fe,97:me,121:251,123:167},t($e,[2,173],{61:[1,252]}),t(qe,[2,169]),t(qe,[2,170]),t(qe,[2,171]),t(qe,[2,172]),t(ee,[2,166]),{7:253,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:254,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t([6,25,85],Ne,{60:255,61:Ge}),t(Ye,[2,99]),t(Ye,[2,42],{49:[1,257]}),t(Xe,[2,50],{46:[1,258]}),t(Ye,[2,47]),t(Xe,[2,51]),t(Ke,[2,48]),t(Ke,[2,49]),{38:[1,259],69:105,73:te,74:ne,75:oe,76:re,77:101,78:ie,81:ae,88:104,91:se,92:ce},t(Ae,ye),{6:V,34:[1,260]},t(H,[2,4]),t(ze,[2,208],{119:69,110:89,116:90,142:G,143:Y,144:X}),t(ze,[2,209],{119:69,110:89,116:90,142:G,143:Y,144:X}),t(Le,[2,210],{119:69,110:89,116:90,142:G,144:X}),t(Le,[2,211],{119:69,110:89,116:90,142:G,144:X}),t([1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,145,146,147,148],[2,212],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X}),t([1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,146,147],[2,213],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,148:Q}),t([1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,147],[2,214],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,148:Q}),t([1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,118,133,146,147,148],[2,215],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K}),t(We,[2,195],{119:69,110:89,116:90,111:S,113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(We,[2,194],{119:69,110:89,116:90,111:S,113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(Oe,[2,111]),t(Ce,[2,87]),t(Ce,[2,88]),t(Ce,[2,89]),t(Ce,[2,90]),{80:[1,261]},{64:Te,80:[2,95],99:262,100:Se,110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},{80:[2,96]},{7:263,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,80:[2,130],83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(Je,[2,124]),t(Je,Qe),t(Ce,[2,94]),t(Oe,[2,112]),t(Pe,[2,39],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{7:264,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:265,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(Oe,[2,117]),t([6,25,93],Ne,{60:266,61:Be}),t(Ve,je,{119:69,110:89,116:90,64:[1,267],111:S,113:O,117:D,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{57:268,58:v,59:y},t(Ze,et,{63:111,27:113,51:114,65:115,66:116,62:269,28:o,64:he,83:b,96:fe,97:me}),{6:tt,25:nt},t(Me,[2,67]),{7:272,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ot,[2,23]),{6:V,26:[1,273]},t(Pe,[2,202],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(Pe,[2,216],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{7:274,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:275,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(Pe,[2,219],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(ee,[2,193]),{7:276,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ee,[2,142],{105:[1,277]}),{24:278,25:ge},{24:281,25:ge,27:279,28:o,66:280,83:b},{127:282,129:235,130:Fe},{26:[1,283],128:[1,284],129:285,130:Fe},t(rt,[2,186]),{7:287,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,102:286,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(it,[2,105],{119:69,110:89,116:90,24:288,25:ge,111:S,113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(ee,[2,108]),{7:289,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ue,[2,149]),{6:V,26:[1,290]},{7:291,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t([11,28,30,32,33,36,37,40,41,42,43,44,52,53,54,58,59,83,86,90,95,96,97,103,107,108,111,113,115,117,126,132,134,135,136,137,138,140,141],Qe,{6:at,25:at,61:at,98:at}),{6:st,25:ct,98:[1,292]},t([6,25,26,93,98],et,{12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,9:18,10:19,45:21,39:22,70:23,71:24,72:25,57:28,68:36,131:37,110:39,114:40,116:41,65:47,66:48,29:49,35:51,27:62,51:63,119:69,31:72,8:122,67:156,7:215,101:295,11:n,28:o,30:r,32:i,33:a,36:s,37:c,40:u,41:l,42:p,43:d,44:h,52:f,53:m,54:g,58:v,59:y,64:we,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,111:S,113:O,115:N,117:D,126:M,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B}),t(Ze,Ne,{60:296,61:Be}),t(ut,[2,190]),{7:297,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:298,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:299,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t($e,[2,168]),{27:168,28:o,51:169,65:170,66:171,83:b,96:fe,97:me,123:300},t([1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,113,117,133],[2,175],{119:69,110:89,116:90,112:[1,301],118:[1,302],136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(lt,[2,176],{119:69,110:89,116:90,112:[1,303],136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{6:pt,25:dt,85:[1,304]},t([6,25,26,85],et,{31:72,48:177,50:178,10:179,29:180,27:181,51:182,47:307,28:o,30:r,32:i,33:a,53:m,96:fe}),{7:308,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:[1,309],27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:310,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:[1,311],27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ue,[2,31]),t(xe,[2,29]),t(Ce,[2,93]),{7:312,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,80:[2,128],83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{80:[2,129],110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},t(Pe,[2,40],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{26:[1,313],110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},{6:st,25:ct,93:[1,314]},t(Ve,at),{24:315,25:ge},t(Me,[2,63]),{27:113,28:o,51:114,62:316,63:111,64:he,65:115,66:116,83:b,96:fe,97:me},t(ht,de,{62:110,63:111,27:113,51:114,65:115,66:116,55:317,28:o,64:he,83:b,96:fe,97:me}),t(Me,[2,68],{119:69,110:89,116:90,111:S,113:O,117:D,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(ot,[2,24]),{26:[1,318],110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},t(Pe,[2,218],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{24:319,25:ge,110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},{24:320,25:ge},t(ee,[2,143]),{24:321,25:ge},{24:322,25:ge},t(ft,[2,147]),{26:[1,323],128:[1,324],129:285,130:Fe},t(ee,[2,184]),{24:325,25:ge},t(rt,[2,187]),{24:326,25:ge,61:[1,327]},t(mt,[2,139],{119:69,110:89,116:90,111:S,113:O,117:D,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(ee,[2,106]),t(it,[2,109],{119:69,110:89,116:90,24:328,25:ge,111:S,113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{109:[1,329]},{98:[1,330],110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},t(Ue,[2,123]),{7:215,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,64:we,65:47,66:48,67:156,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,101:331,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:215,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,25:_e,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,64:we,65:47,66:48,67:156,68:36,70:23,71:24,72:25,83:b,86:_,90:w,94:332,95:k,96:C,97:E,101:154,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(Ve,[2,132]),{6:st,25:ct,26:[1,333]},t(We,[2,152],{119:69,110:89,116:90,111:S,113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(We,[2,154],{119:69,110:89,116:90,111:S,113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(We,[2,165],{119:69,110:89,116:90,111:S,113:O,117:D,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t($e,[2,174]),{7:334,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:335,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:336,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(Ue,[2,97]),{10:179,27:181,28:o,29:180,30:r,31:72,32:i,33:a,47:337,48:177,50:178,51:182,53:m,96:fe},t(ht,Ee,{31:72,47:176,48:177,50:178,10:179,29:180,27:181,51:182,84:338,28:o,30:r,32:i,33:a,53:m,96:fe}),t(Ye,[2,100]),t(Ye,[2,43],{119:69,110:89,116:90,111:S,113:O,117:D,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{7:339,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(Ye,[2,45],{119:69,110:89,116:90,111:S,113:O,117:D,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{7:340,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{80:[2,127],110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},t(ee,[2,41]),t(Oe,[2,118]),t(ee,[2,55]),t(Me,[2,64]),t(Ze,Ne,{60:341,61:De}),t(ee,[2,217]),t(ut,[2,191]),t(ee,[2,144]),t(ft,[2,145]),t(ft,[2,146]),t(ee,[2,182]),{24:342,25:ge},{26:[1,343]},t(rt,[2,188],{6:[1,344]}),{7:345,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},t(ee,[2,110]),t(ue,[2,150]),t(ue,[2,126]),t(Ve,[2,133]),t(Ze,Ne,{60:346,61:Be}),t(Ve,[2,134]),t([1,6,25,26,34,56,61,64,80,85,93,98,100,109,111,112,113,117,133],[2,177],{119:69,110:89,116:90,118:[1,347],136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(lt,[2,179],{119:69,110:89,116:90,112:[1,348],136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(Pe,[2,178],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(Ye,[2,101]),t(Ze,Ne,{60:349,61:Ge}),{26:[1,350],110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},{26:[1,351],110:89,111:S,113:O,116:90,117:D,119:69,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q},{6:tt,25:nt,26:[1,352]},{26:[1,353]},t(ee,[2,185]),t(rt,[2,189]),t(mt,[2,140],{119:69,110:89,116:90,111:S,113:O,117:D,133:W,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),{6:st,25:ct,26:[1,354]},{7:355,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{7:356,8:122,9:18,10:19,11:n,12:6,13:7,14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,27:62,28:o,29:49,30:r,31:72,32:i,33:a,35:51,36:s,37:c,39:22,40:u,41:l,42:p,43:d,44:h,45:21,51:63,52:f,53:m,54:g,57:28,58:v,59:y,65:47,66:48,68:36,70:23,71:24,72:25,83:b,86:_,90:w,95:k,96:C,97:E,103:x,107:R,108:T,110:39,111:S,113:O,114:40,115:N,116:41,117:D,119:69,126:M,131:37,132:I,134:L,135:P,136:A,137:F,138:j,140:U,141:B},{6:pt,25:dt,26:[1,357]},t(Ye,[2,44]),t(Ye,[2,46]),t(Me,[2,65]),t(ee,[2,183]),t(Ve,[2,135]),t(Pe,[2,180],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(Pe,[2,181],{119:69,110:89,116:90,136:$,137:q,142:G,143:Y,144:X,145:K,146:z,147:J,148:Q}),t(Ye,[2,102])],defaultActions:{60:[2,57],61:[2,58],96:[2,116],204:[2,96]},parseError:function(e,t){if(!t.recoverable)throw Error(e);this.trace(e)},parse:function(e){var t=this,n=[0],o=[null],r=[],i=this.table,a="",s=0,c=0,u=0,l=1,p=r.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;r.push(m);var g=d.options&&d.options.ranges;this.parseError="function"==typeof h.yy.parseError?h.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,y,b,_,w,k,C,E,x,R={};;){if(b=n[n.length-1],this.defaultActions[b]?_=this.defaultActions[b]:((null===v||void 0===v)&&(v=function(){var e;return e=d.lex()||l,"number"!=typeof e&&(e=t.symbols_[e]||e),e}()),_=i[b]&&i[b][v]),void 0===_||!_.length||!_[0]){var T="";x=[];for(k in i[b])this.terminals_[k]&&k>2&&x.push("'"+this.terminals_[k]+"'");T=d.showPosition?"Parse error on line "+(s+1)+":\n"+d.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(s+1)+": Unexpected "+(v==l?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(T,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:m,expected:x})}if(_[0]instanceof Array&&_.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+v);switch(_[0]){case 1:n.push(v),o.push(d.yytext),r.push(d.yylloc),n.push(_[1]),v=null,y?(v=y,y=null):(c=d.yyleng,a=d.yytext,s=d.yylineno,m=d.yylloc,u>0&&u--);break;case 2:if(C=this.productions_[_[1]][1],R.$=o[o.length-C],R._$={first_line:r[r.length-(C||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(C||1)].first_column,last_column:r[r.length-1].last_column},g&&(R._$.range=[r[r.length-(C||1)].range[0],r[r.length-1].range[1]]),void 0!==(w=this.performAction.apply(R,[a,c,s,h.yy,_[1],o,r].concat(p))))return w;C&&(n=n.slice(0,-2*C),o=o.slice(0,-1*C),r=r.slice(0,-1*C)),n.push(this.productions_[_[1]][0]),o.push(R.$),r.push(R._$),E=i[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}};return e.prototype=gt,gt.Parser=e,new e}();return void 0!==require&&void 0!==e&&(e.parser=n,e.Parser=n.Parser,e.parse=function(){return n.parse.apply(n,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var n=require("fs").readFileSync(require("path").normalize(t[1]),"utf8");return e.parser.parse(n)},void 0!==t&&require.main===t&&e.main(process.argv.slice(1))),t.exports}(),require["./scope"]=function(){var e={},t={exports:e};return function(){var t=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e.Scope=function(){function e(e,t,n,o){var r,i;this.parent=e,this.expressions=t,this.method=n,this.referencedVars=o,this.variables=[{name:"arguments",type:"arguments"}],this.positions={},this.parent||(this.utilities={}),this.root=null!=(r=null!=(i=this.parent)?i.root:void 0)?r:this}return e.prototype.add=function(e,t,n){return this.shared&&!n?this.parent.add(e,t,n):Object.prototype.hasOwnProperty.call(this.positions,e)?this.variables[this.positions[e]].type=t:this.positions[e]=this.variables.push({name:e,type:t})-1},e.prototype.namedMethod=function(){var e;return(null!=(e=this.method)?e.name:void 0)||!this.parent?this.method:this.parent.namedMethod()},e.prototype.find=function(e){return!!this.check(e)||(this.add(e,"var"),!1)},e.prototype.parameter=function(e){return this.shared&&this.parent.check(e,!0)?void 0:this.add(e,"param")},e.prototype.check=function(e){var t;return!!(this.type(e)||(null!=(t=this.parent)?t.check(e):void 0))},e.prototype.temporary=function(e,t,n){return null==n&&(n=!1),n?(t+parseInt(e,36)).toString(36).replace(/\d/g,"a"):e+(t||"")},e.prototype.type=function(e){var t,n,o,r;for(o=this.variables,t=0,n=o.length;n>t;t++)if(r=o[t],r.name===e)return r.type;return null},e.prototype.freeVariable=function(e,n){var o,r,i;for(null==n&&(n={}),o=0;i=this.temporary(e,o,n.single),this.check(i)||t.call(this.root.referencedVars,i)>=0;)o++;return(null==(r=n.reserve)||r)&&this.add(i,"var",!0),i},e.prototype.assign=function(e,t){return this.add(e,{value:t,assigned:!0},!0),this.hasAssignments=!0},e.prototype.hasDeclarations=function(){return!!this.declaredVariables().length},e.prototype.declaredVariables=function(){var e;return function(){var t,n,o,r;for(o=this.variables,r=[],t=0,n=o.length;n>t;t++)e=o[t],"var"===e.type&&r.push(e.name);return r}.call(this).sort()},e.prototype.assignedVariables=function(){var e,t,n,o,r;for(n=this.variables,o=[],e=0,t=n.length;t>e;e++)r=n[e],r.type.assigned&&o.push(r.name+" = "+r.type.value);return o},e}()}.call(this),t.exports}(),require["./nodes"]=function(){var e={},t={exports:e};return function(){var t,n,o,r,i,a,s,c,u,l,p,d,h,f,m,g,v,y,b,_,w,k,C,E,x,R,T,S,O,N,D,M,I,L,P,A,F,j,U,B,V,H,W,$,q,G,Y,X,K,z,J,Q,Z,ee,te,ne,oe,re,ie,ae,se,ce,ue,le,pe,de,he,fe=function(e,t){function n(){this.constructor=e}for(var o in t)me.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},me={}.hasOwnProperty,ge=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},ve=[].slice;Error.stackTraceLimit=1/0,B=require("./scope").Scope,ue=require("./lexer"),P=ue.RESERVED,U=ue.STRICT_PROSCRIBED,le=require("./helpers"),J=le.compact,ee=le.flatten,Z=le.extend,ae=le.merge,Q=le.del,le.starts,le.ends,le.some,z=le.addLocationDataFn,ie=le.locationDataToString,pe=le.throwSyntaxError,e.extend=Z,e.addLocationDataFn=z,K=function(){return!0},O=function(){return!1},$=function(){return this},S=function(){return this.negated=!this.negated,this},e.CodeFragment=c=function(){function e(e,t){var n;this.code=""+t,this.locationData=null!=e?e.locationData:void 0,this.type=(null!=e&&null!=(n=e.constructor)?n.name:void 0)||"unknown"}return e.prototype.toString=function(){return this.code+(this.locationData?": "+ie(this.locationData):"")},e}(),te=function(e){var t;return function(){var n,o,r;for(r=[],n=0,o=e.length;o>n;n++)t=e[n],r.push(t.code);return r}().join("")},e.Base=r=function(){function e(){}return e.prototype.compile=function(e,t){return te(this.compileToFragments(e,t))},e.prototype.compileToFragments=function(e,t){var n;return e=Z({},e),t&&(e.level=t),n=this.unfoldSoak(e)||this,n.tab=e.indent,e.level!==R&&n.isStatement(e)?n.compileClosure(e):n.compileNode(e)},e.prototype.compileClosure=function(e){var n,o,r,c,u,l,p;return(c=this.jumps())&&c.error("cannot use a pure statement in an expression"),e.sharedScope=!0,r=new s([],i.wrap([this])),n=[],((o=this.contains(oe))||this.contains(re))&&(n=[new T("this")],o?(u="apply",n.push(new T("arguments"))):u="call",r=new Y(r,[new t(new T(u))])),l=new a(r,n).compileNode(e),(r.isGenerator||(null!=(p=r.base)?p.isGenerator:void 0))&&(l.unshift(this.makeCode("(yield* ")),l.push(this.makeCode(")"))),l},e.prototype.cache=function(e,t,n){var r,i,a;return r=null!=n?n(this):this.isComplex(),r?(i=new T(e.scope.freeVariable("ref")),a=new o(i,this),t?[a.compileToFragments(e,t),[this.makeCode(i.value)]]:[a,i]):(i=t?this.compileToFragments(e,t):this,[i,i])},e.prototype.cacheToCodeFragments=function(e){return[te(e[0]),te(e[1])]},e.prototype.makeReturn=function(e){var t;return t=this.unwrapAll(),e?new a(new T(e+".push"),[t]):new F(t)},e.prototype.contains=function(e){var t;return t=void 0,this.traverseChildren(!1,function(n){return e(n)?(t=n,!1):void 0}),t},e.prototype.lastNonComment=function(e){var t;for(t=e.length;t--;)if(!(e[t]instanceof u))return e[t];return null},e.prototype.toString=function(e,t){var n;return null==e&&(e=""),null==t&&(t=this.constructor.name),n="\n"+e+t,this.soak&&(n+="?"),this.eachChild(function(t){return n+=t.toString(e+W)}),n},e.prototype.eachChild=function(e){var t,n,o,r,i,a,s,c;if(!this.children)return this;for(s=this.children,o=0,i=s.length;i>o;o++)if(t=s[o],this[t])for(c=ee([this[t]]),r=0,a=c.length;a>r;r++)if(n=c[r],!1===e(n))return this;return this},e.prototype.traverseChildren=function(e,t){return this.eachChild(function(n){var o;return o=t(n),!1!==o?n.traverseChildren(e,t):void 0})},e.prototype.invert=function(){return new M("!",this)},e.prototype.unwrapAll=function(){var e;for(e=this;e!==(e=e.unwrap()););return e},e.prototype.children=[],e.prototype.isStatement=O,e.prototype.jumps=O,e.prototype.isComplex=K,e.prototype.isChainable=O,e.prototype.isAssignable=O,e.prototype.unwrap=$,
10
+ e.prototype.unfoldSoak=O,e.prototype.assigns=O,e.prototype.updateLocationDataIfMissing=function(e){return this.locationData?this:(this.locationData=e,this.eachChild(function(t){return t.updateLocationDataIfMissing(e)}))},e.prototype.error=function(e){return pe(e,this.locationData)},e.prototype.makeCode=function(e){return new c(this,e)},e.prototype.wrapInBraces=function(e){return[].concat(this.makeCode("("),e,this.makeCode(")"))},e.prototype.joinFragmentArrays=function(e,t){var n,o,r,i,a;for(n=[],r=i=0,a=e.length;a>i;r=++i)o=e[r],r&&n.push(this.makeCode(t)),n=n.concat(o);return n},e}(),e.Block=i=function(e){function t(e){this.expressions=J(ee(e||[]))}return fe(t,e),t.prototype.children=["expressions"],t.prototype.push=function(e){return this.expressions.push(e),this},t.prototype.pop=function(){return this.expressions.pop()},t.prototype.unshift=function(e){return this.expressions.unshift(e),this},t.prototype.unwrap=function(){return 1===this.expressions.length?this.expressions[0]:this},t.prototype.isEmpty=function(){return!this.expressions.length},t.prototype.isStatement=function(e){var t,n,o,r;for(r=this.expressions,n=0,o=r.length;o>n;n++)if(t=r[n],t.isStatement(e))return!0;return!1},t.prototype.jumps=function(e){var t,n,o,r,i;for(i=this.expressions,n=0,r=i.length;r>n;n++)if(t=i[n],o=t.jumps(e))return o},t.prototype.makeReturn=function(e){var t,n;for(n=this.expressions.length;n--;)if(!((t=this.expressions[n])instanceof u)){this.expressions[n]=t.makeReturn(e),t instanceof F&&!t.expression&&this.expressions.splice(n,1);break}return this},t.prototype.compileToFragments=function(e,n){return null==e&&(e={}),e.scope?t.__super__.compileToFragments.call(this,e,n):this.compileRoot(e)},t.prototype.compileNode=function(e){var n,o,r,i,a,s,c,u,l;for(this.tab=e.indent,l=e.level===R,o=[],u=this.expressions,i=a=0,s=u.length;s>a;i=++a)c=u[i],c=c.unwrapAll(),c=c.unfoldSoak(e)||c,c instanceof t?o.push(c.compileNode(e)):l?(c.front=!0,r=c.compileToFragments(e),c.isStatement(e)||(r.unshift(this.makeCode(""+this.tab)),r.push(this.makeCode(";"))),o.push(r)):o.push(c.compileToFragments(e,C));return l?this.spaced?[].concat(this.joinFragmentArrays(o,"\n\n"),this.makeCode("\n")):this.joinFragmentArrays(o,"\n"):(n=o.length?this.joinFragmentArrays(o,", "):[this.makeCode("void 0")],o.length>1&&e.level>=C?this.wrapInBraces(n):n)},t.prototype.compileRoot=function(e){var t,n,o,r,i,a,s,c,l,p,d;for(e.indent=e.bare?"":W,e.level=R,this.spaced=!0,e.scope=new B(null,this,null,null!=(l=e.referencedVars)?l:[]),p=e.locals||[],r=0,i=p.length;i>r;r++)a=p[r],e.scope.parameter(a);return s=[],e.bare||(c=function(){var e,n,r,i;for(r=this.expressions,i=[],o=e=0,n=r.length;n>e&&(t=r[o],t.unwrap()instanceof u);o=++e)i.push(t);return i}.call(this),d=this.expressions.slice(c.length),this.expressions=c,c.length&&(s=this.compileNode(ae(e,{indent:""})),s.push(this.makeCode("\n"))),this.expressions=d),n=this.compileWithDeclarations(e),e.bare?n:[].concat(s,this.makeCode("(function() {\n"),n,this.makeCode("\n}).call(this);\n"))},t.prototype.compileWithDeclarations=function(e){var t,n,o,r,i,a,s,c,l,p,d,h,f,m;for(r=[],c=[],l=this.expressions,i=a=0,s=l.length;s>a&&(o=l[i],(o=o.unwrap())instanceof u||o instanceof T);i=++a);return e=ae(e,{level:R}),i&&(h=this.expressions.splice(i,9e9),p=[this.spaced,!1],m=p[0],this.spaced=p[1],d=[this.compileNode(e),m],r=d[0],this.spaced=d[1],this.expressions=h),c=this.compileNode(e),f=e.scope,f.expressions===this&&(n=e.scope.hasDeclarations(),t=f.hasAssignments,n||t?(i&&r.push(this.makeCode("\n")),r.push(this.makeCode(this.tab+"var ")),n&&r.push(this.makeCode(f.declaredVariables().join(", "))),t&&(n&&r.push(this.makeCode(",\n"+(this.tab+W))),r.push(this.makeCode(f.assignedVariables().join(",\n"+(this.tab+W))))),r.push(this.makeCode(";\n"+(this.spaced?"\n":"")))):r.length&&c.length&&r.push(this.makeCode("\n"))),r.concat(c)},t.wrap=function(e){return 1===e.length&&e[0]instanceof t?e[0]:new t(e)},t}(r),e.Literal=T=function(e){function t(e){this.value=e}return fe(t,e),t.prototype.makeReturn=function(){return this.isStatement()?this:t.__super__.makeReturn.apply(this,arguments)},t.prototype.isAssignable=function(){return m.test(this.value)},t.prototype.isStatement=function(){var e;return"break"===(e=this.value)||"continue"===e||"debugger"===e},t.prototype.isComplex=O,t.prototype.assigns=function(e){return e===this.value},t.prototype.jumps=function(e){return("break"!==this.value||(null!=e?e.loop:void 0)||(null!=e?e.block:void 0))&&("continue"!==this.value||(null!=e?e.loop:void 0))?void 0:this},t.prototype.compileNode=function(e){var t,n,o;return n="this"===this.value?(null!=(o=e.scope.method)?o.bound:void 0)?e.scope.method.context:this.value:this.value.reserved?'"'+this.value+'"':this.value,t=this.isStatement()?""+this.tab+n+";":n,[this.makeCode(t)]},t.prototype.toString=function(){return' "'+this.value+'"'},t}(r),e.Undefined=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return fe(t,e),t.prototype.isAssignable=O,t.prototype.isComplex=O,t.prototype.compileNode=function(e){return[this.makeCode(e.level>=w?"(void 0)":"void 0")]},t}(r),e.Null=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return fe(t,e),t.prototype.isAssignable=O,t.prototype.isComplex=O,t.prototype.compileNode=function(){return[this.makeCode("null")]},t}(r),e.Bool=function(e){function t(e){this.val=e}return fe(t,e),t.prototype.isAssignable=O,t.prototype.isComplex=O,t.prototype.compileNode=function(){return[this.makeCode(this.val)]},t}(r),e.Return=F=function(e){function t(e){this.expression=e}return fe(t,e),t.prototype.children=["expression"],t.prototype.isStatement=K,t.prototype.makeReturn=$,t.prototype.jumps=$,t.prototype.compileToFragments=function(e,n){var o,r;return o=null!=(r=this.expression)?r.makeReturn():void 0,!o||o instanceof t?t.__super__.compileToFragments.call(this,e,n):o.compileToFragments(e,n)},t.prototype.compileNode=function(e){var t,n,o;return t=[],n=null!=(o=this.expression)&&"function"==typeof o.isYieldReturn?o.isYieldReturn():void 0,n||t.push(this.makeCode(this.tab+"return"+(this.expression?" ":""))),this.expression&&(t=t.concat(this.expression.compileToFragments(e,x))),n||t.push(this.makeCode(";")),t},t}(r),e.Value=Y=function(e){function t(e,n,o){return!n&&e instanceof t?e:(this.base=e,this.properties=n||[],o&&(this[o]=!0),this)}return fe(t,e),t.prototype.children=["base","properties"],t.prototype.add=function(e){return this.properties=this.properties.concat(e),this},t.prototype.hasProperties=function(){return!!this.properties.length},t.prototype.bareLiteral=function(e){return!this.properties.length&&this.base instanceof e},t.prototype.isArray=function(){return this.bareLiteral(n)},t.prototype.isRange=function(){return this.bareLiteral(A)},t.prototype.isComplex=function(){return this.hasProperties()||this.base.isComplex()},t.prototype.isAssignable=function(){return this.hasProperties()||this.base.isAssignable()},t.prototype.isSimpleNumber=function(){return this.bareLiteral(T)&&j.test(this.base.value)},t.prototype.isString=function(){return this.bareLiteral(T)&&v.test(this.base.value)},t.prototype.isRegex=function(){return this.bareLiteral(T)&&g.test(this.base.value)},t.prototype.isAtomic=function(){var e,t,n,o;for(o=this.properties.concat(this.base),e=0,t=o.length;t>e;e++)if(n=o[e],n.soak||n instanceof a)return!1;return!0},t.prototype.isNotCallable=function(){return this.isSimpleNumber()||this.isString()||this.isRegex()||this.isArray()||this.isRange()||this.isSplice()||this.isObject()},t.prototype.isStatement=function(e){return!this.properties.length&&this.base.isStatement(e)},t.prototype.assigns=function(e){return!this.properties.length&&this.base.assigns(e)},t.prototype.jumps=function(e){return!this.properties.length&&this.base.jumps(e)},t.prototype.isObject=function(e){return!this.properties.length&&(this.base instanceof D&&(!e||this.base.generated))},t.prototype.isSplice=function(){var e;return e=this.properties,e[e.length-1]instanceof V},t.prototype.looksStatic=function(e){var t;return this.base.value===e&&1===this.properties.length&&"prototype"!==(null!=(t=this.properties[0].name)?t.value:void 0)},t.prototype.unwrap=function(){return this.properties.length?this:this.base},t.prototype.cacheReference=function(e){var n,r,i,a,s;return s=this.properties,i=s[s.length-1],2>this.properties.length&&!this.base.isComplex()&&!(null!=i?i.isComplex():void 0)?[this,this]:(n=new t(this.base,this.properties.slice(0,-1)),n.isComplex()&&(r=new T(e.scope.freeVariable("base")),n=new t(new L(new o(r,n)))),i?(i.isComplex()&&(a=new T(e.scope.freeVariable("name")),i=new _(new o(a,i.index)),a=new _(a)),[n.add(i),new t(r||n.base,[a||i])]):[n,r])},t.prototype.compileNode=function(e){var t,n,o,r,i;for(this.base.front=this.front,i=this.properties,t=this.base.compileToFragments(e,i.length?w:null),(this.base instanceof L||i.length)&&j.test(te(t))&&t.push(this.makeCode(".")),n=0,o=i.length;o>n;n++)r=i[n],t.push.apply(t,r.compileToFragments(e));return t},t.prototype.unfoldSoak=function(e){return null!=this.unfoldedSoak?this.unfoldedSoak:this.unfoldedSoak=function(n){return function(){var r,i,a,s,c,u,p,d,h,f;if(a=n.base.unfoldSoak(e))return(d=a.body.properties).push.apply(d,n.properties),a;for(h=n.properties,i=s=0,c=h.length;c>s;i=++s)if(u=h[i],u.soak)return u.soak=!1,r=new t(n.base,n.properties.slice(0,i)),f=new t(n.base,n.properties.slice(i)),r.isComplex()&&(p=new T(e.scope.freeVariable("ref")),r=new L(new o(p,r)),f.base=p),new y(new l(r),f,{soak:!0});return!1}}(this)()},t}(r),e.Comment=u=function(e){function t(e){this.comment=e}return fe(t,e),t.prototype.isStatement=K,t.prototype.makeReturn=$,t.prototype.compileNode=function(e,t){var n,o;return o=this.comment.replace(/^(\s*)#(?=\s)/gm,"$1 *"),n="/*"+se(o,this.tab)+(ge.call(o,"\n")>=0?"\n"+this.tab:"")+" */",(t||e.level)===R&&(n=e.indent+n),[this.makeCode("\n"),this.makeCode(n)]},t}(r),e.Call=a=function(e){function n(e,t,n){this.args=null!=t?t:[],this.soak=n,this.isNew=!1,this.isSuper="super"===e,this.variable=this.isSuper?null:e,e instanceof Y&&e.isNotCallable()&&e.error("literal is not a function")}return fe(n,e),n.prototype.children=["variable","args"],n.prototype.newInstance=function(){var e,t;return e=(null!=(t=this.variable)?t.base:void 0)||this.variable,e instanceof n&&!e.isNew?e.newInstance():this.isNew=!0,this},n.prototype.superReference=function(e){var n,r,i,a,s,c,u,l;return s=e.scope.namedMethod(),(null!=s?s.klass:void 0)?(a=s.klass,c=s.name,l=s.variable,a.isComplex()&&(i=new T(e.scope.parent.freeVariable("base")),r=new Y(new L(new o(i,a))),l.base=r,l.properties.splice(0,a.properties.length)),(c.isComplex()||c instanceof _&&c.index.isAssignable())&&(u=new T(e.scope.parent.freeVariable("name")),c=new _(new o(u,c.index)),l.properties.pop(),l.properties.push(c)),n=[new t(new T("__super__"))],s.static&&n.push(new t(new T("constructor"))),n.push(null!=u?new _(u):c),new Y(null!=i?i:a,n).compile(e)):(null!=s?s.ctor:void 0)?s.name+".__super__.constructor":this.error("cannot call super outside of an instance method.")},n.prototype.superThis=function(e){var t;return(t=e.scope.method)&&!t.klass&&t.context||"this"},n.prototype.unfoldSoak=function(e){var t,o,r,i,a,s,c,u,l;if(this.soak){if(this.variable){if(o=de(e,this,"variable"))return o;c=new Y(this.variable).cacheReference(e),i=c[0],l=c[1]}else i=new T(this.superReference(e)),l=new Y(i);return l=new n(l,this.args),l.isNew=this.isNew,i=new T("typeof "+i.compile(e)+' === "function"'),new y(i,new Y(l),{soak:!0})}for(t=this,s=[];;)if(t.variable instanceof n)s.push(t),t=t.variable;else{if(!(t.variable instanceof Y))break;if(s.push(t),!((t=t.variable.base)instanceof n))break}for(u=s.reverse(),r=0,a=u.length;a>r;r++)t=u[r],o&&(t.variable instanceof n?t.variable=o:t.variable.base=o),o=de(e,t,"variable");return o},n.prototype.compileNode=function(e){var t,n,o,r,i,a,s,c,u,l;if(null!=(u=this.variable)&&(u.front=this.front),r=H.compileSplattedArray(e,this.args,!0),r.length)return this.compileSplat(e,r);for(o=[],l=this.args,n=a=0,s=l.length;s>a;n=++a)t=l[n],n&&o.push(this.makeCode(", ")),o.push.apply(o,t.compileToFragments(e,C));return i=[],this.isSuper?(c=this.superReference(e)+".call("+this.superThis(e),o.length&&(c+=", "),i.push(this.makeCode(c))):(this.isNew&&i.push(this.makeCode("new ")),i.push.apply(i,this.variable.compileToFragments(e,w)),i.push(this.makeCode("("))),i.push.apply(i,o),i.push(this.makeCode(")")),i},n.prototype.compileSplat=function(e,t){var n,o,r,i,a,s;return this.isSuper?[].concat(this.makeCode(this.superReference(e)+".apply("+this.superThis(e)+", "),t,this.makeCode(")")):this.isNew?(i=this.tab+W,[].concat(this.makeCode("(function(func, args, ctor) {\n"+i+"ctor.prototype = func.prototype;\n"+i+"var child = new ctor, result = func.apply(child, args);\n"+i+"return Object(result) === result ? result : child;\n"+this.tab+"})("),this.variable.compileToFragments(e,C),this.makeCode(", "),t,this.makeCode(", function(){})"))):(n=[],o=new Y(this.variable),(a=o.properties.pop())&&o.isComplex()?(s=e.scope.freeVariable("ref"),n=n.concat(this.makeCode("("+s+" = "),o.compileToFragments(e,C),this.makeCode(")"),a.compileToFragments(e))):(r=o.compileToFragments(e,w),j.test(te(r))&&(r=this.wrapInBraces(r)),a?(s=te(r),r.push.apply(r,a.compileToFragments(e))):s="null",n=n.concat(r)),n=n.concat(this.makeCode(".apply("+s+", "),t,this.makeCode(")")))},n}(r),e.Extends=d=function(e){function t(e,t){this.child=e,this.parent=t}return fe(t,e),t.prototype.children=["child","parent"],t.prototype.compileToFragments=function(e){return new a(new Y(new T(he("extend",e))),[this.child,this.parent]).compileToFragments(e)},t}(r),e.Access=t=function(e){function t(e,t){this.name=e,this.name.asKey=!0,this.soak="soak"===t}return fe(t,e),t.prototype.children=["name"],t.prototype.compileToFragments=function(e){var t;return t=this.name.compileToFragments(e),m.test(te(t))?t.unshift(this.makeCode(".")):(t.unshift(this.makeCode("[")),t.push(this.makeCode("]"))),t},t.prototype.isComplex=O,t}(r),e.Index=_=function(e){function t(e){this.index=e}return fe(t,e),t.prototype.children=["index"],t.prototype.compileToFragments=function(e){return[].concat(this.makeCode("["),this.index.compileToFragments(e,x),this.makeCode("]"))},t.prototype.isComplex=function(){return this.index.isComplex()},t}(r),e.Range=A=function(e){function t(e,t,n){this.from=e,this.to=t,this.exclusive="exclusive"===n,this.equals=this.exclusive?"":"="}return fe(t,e),t.prototype.children=["from","to"],t.prototype.compileVariables=function(e){var t,n,o,r,i,a;return e=ae(e,{top:!0}),t=Q(e,"isComplex"),n=this.cacheToCodeFragments(this.from.cache(e,C,t)),this.fromC=n[0],this.fromVar=n[1],o=this.cacheToCodeFragments(this.to.cache(e,C,t)),this.toC=o[0],this.toVar=o[1],(a=Q(e,"step"))&&(r=this.cacheToCodeFragments(a.cache(e,C,t)),this.step=r[0],this.stepVar=r[1]),i=[this.fromVar.match(N),this.toVar.match(N)],this.fromNum=i[0],this.toNum=i[1],this.stepVar?this.stepNum=this.stepVar.match(N):void 0},t.prototype.compileNode=function(e){var t,n,o,r,i,a,s,c,u,l,p,d,h,f;return this.fromVar||this.compileVariables(e),e.index?(s=this.fromNum&&this.toNum,i=Q(e,"index"),a=Q(e,"name"),u=a&&a!==i,f=i+" = "+this.fromC,this.toC!==this.toVar&&(f+=", "+this.toC),this.step!==this.stepVar&&(f+=", "+this.step),l=[i+" <"+this.equals,i+" >"+this.equals],c=l[0],r=l[1],n=this.stepNum?ce(this.stepNum[0])>0?c+" "+this.toVar:r+" "+this.toVar:s?(p=[ce(this.fromNum[0]),ce(this.toNum[0])],o=p[0],h=p[1],h>=o?c+" "+h:r+" "+h):(t=this.stepVar?this.stepVar+" > 0":this.fromVar+" <= "+this.toVar)+" ? "+c+" "+this.toVar+" : "+r+" "+this.toVar,d=this.stepVar?i+" += "+this.stepVar:s?u?h>=o?"++"+i:"--"+i:h>=o?i+"++":i+"--":u?t+" ? ++"+i+" : --"+i:t+" ? "+i+"++ : "+i+"--",u&&(f=a+" = "+f),u&&(d=a+" = "+d),[this.makeCode(f+"; "+n+"; "+d)]):this.compileArray(e)},t.prototype.compileArray=function(e){var t,n,o,r,i,a,s,c,u,l,p,d,h;return this.fromNum&&this.toNum&&20>=Math.abs(this.fromNum-this.toNum)?(u=function(){d=[];for(var e=l=+this.fromNum,t=+this.toNum;t>=l?t>=e:e>=t;t>=l?e++:e--)d.push(e);return d}.apply(this),this.exclusive&&u.pop(),[this.makeCode("["+u.join(", ")+"]")]):(a=this.tab+W,i=e.scope.freeVariable("i",{single:!0}),p=e.scope.freeVariable("results"),c="\n"+a+p+" = [];",this.fromNum&&this.toNum?(e.index=i,n=te(this.compileNode(e))):(h=i+" = "+this.fromC+(this.toC!==this.toVar?", "+this.toC:""),o=this.fromVar+" <= "+this.toVar,n="var "+h+"; "+o+" ? "+i+" <"+this.equals+" "+this.toVar+" : "+i+" >"+this.equals+" "+this.toVar+"; "+o+" ? "+i+"++ : "+i+"--"),s="{ "+p+".push("+i+"); }\n"+a+"return "+p+";\n"+e.indent,r=function(e){return null!=e?e.contains(oe):void 0},(r(this.from)||r(this.to))&&(t=", arguments"),[this.makeCode("(function() {"+c+"\n"+a+"for ("+n+")"+s+"}).apply(this"+(null!=t?t:"")+")")])},t}(r),e.Slice=V=function(e){function t(e){this.range=e,t.__super__.constructor.call(this)}return fe(t,e),t.prototype.children=["range"],t.prototype.compileNode=function(e){var t,n,o,r,i,a,s;return i=this.range,a=i.to,o=i.from,r=o&&o.compileToFragments(e,x)||[this.makeCode("0")],a&&(t=a.compileToFragments(e,x),n=te(t),(this.range.exclusive||-1!=+n)&&(s=", "+(this.range.exclusive?n:j.test(n)?""+(+n+1):(t=a.compileToFragments(e,w),"+"+te(t)+" + 1 || 9e9")))),[this.makeCode(".slice("+te(r)+(s||"")+")")]},t}(r),e.Obj=D=function(e){function n(e,t){this.generated=null!=t&&t,this.objects=this.properties=e||[]}return fe(n,e),n.prototype.children=["properties"],n.prototype.compileNode=function(e){var n,r,i,a,s,c,l,p,d,h,f,m,g,v,y,b,_,w,k,C,E;if(k=this.properties,this.generated)for(l=0,g=k.length;g>l;l++)(b=k[l])instanceof Y&&b.error("cannot have an implicit value in an implicit object");for(r=d=0,v=k.length;v>d&&(w=k[r],!((w.variable||w).base instanceof L));r=++d);for(i=k.length>r,s=e.indent+=W,m=this.lastNonComment(this.properties),n=[],i&&(_=e.scope.freeVariable("obj"),n.push(this.makeCode("(\n"+s+_+" = "))),n.push(this.makeCode("{"+(0===k.length||0===r?"}":"\n"))),a=f=0,y=k.length;y>f;a=++f)w=k[a],a===r&&(0!==a&&n.push(this.makeCode("\n"+s+"}")),n.push(this.makeCode(",\n"))),p=a===k.length-1||a===r-1?"":w===m||w instanceof u?"\n":",\n",c=w instanceof u?"":s,i&&r>a&&(c+=W),w instanceof o&&("object"!==w.context&&w.operatorToken.error("unexpected "+w.operatorToken.value),w.variable instanceof Y&&w.variable.hasProperties()&&w.variable.error("invalid object key")),w instanceof Y&&w.this&&(w=new o(w.properties[0].name,w,"object")),w instanceof u||(r>a?(w instanceof o||(w=new o(w,w,"object")),(w.variable.base||w.variable).asKey=!0):(w instanceof o?(h=w.variable,E=w.value):(C=w.base.cache(e),h=C[0],E=C[1]),w=new o(new Y(new T(_),[new t(h)]),E))),c&&n.push(this.makeCode(c)),n.push.apply(n,w.compileToFragments(e,R)),p&&n.push(this.makeCode(p));return i?n.push(this.makeCode(",\n"+s+_+"\n"+this.tab+")")):0!==k.length&&n.push(this.makeCode("\n"+this.tab+"}")),this.front&&!i?this.wrapInBraces(n):n},n.prototype.assigns=function(e){var t,n,o,r;for(r=this.properties,t=0,n=r.length;n>t;t++)if(o=r[t],o.assigns(e))return!0;return!1},n}(r),e.Arr=n=function(e){function t(e){this.objects=e||[]}return fe(t,e),t.prototype.children=["objects"],t.prototype.compileNode=function(e){var t,n,o,r,i,a,s;if(!this.objects.length)return[this.makeCode("[]")];if(e.indent+=W,t=H.compileSplattedArray(e,this.objects),t.length)return t;for(t=[],n=function(){var t,n,o,r;for(o=this.objects,r=[],t=0,n=o.length;n>t;t++)s=o[t],r.push(s.compileToFragments(e,C));return r}.call(this),r=i=0,a=n.length;a>i;r=++i)o=n[r],r&&t.push(this.makeCode(", ")),t.push.apply(t,o);return te(t).indexOf("\n")>=0?(t.unshift(this.makeCode("[\n"+e.indent)),t.push(this.makeCode("\n"+this.tab+"]"))):(t.unshift(this.makeCode("[")),t.push(this.makeCode("]"))),t},t.prototype.assigns=function(e){var t,n,o,r;for(r=this.objects,t=0,n=r.length;n>t;t++)if(o=r[t],o.assigns(e))return!0;return!1},t}(r),e.Class=function(e){function n(e,t,n){this.variable=e,this.parent=t,this.body=null!=n?n:new i,this.boundFuncs=[],this.body.classBody=!0}return fe(n,e),n.prototype.children=["variable","parent","body"],n.prototype.determineName=function(){var e,n,o;return this.variable?(n=this.variable.properties,o=n[n.length-1],e=o?o instanceof t&&o.name.value:this.variable.base.value,ge.call(U,e)>=0&&this.variable.error("class variable name may not be "+e),e&&(e=m.test(e)&&e)):null},n.prototype.setContext=function(e){return this.body.traverseChildren(!1,function(t){return!t.classBody&&(t instanceof T&&"this"===t.value?t.value=e:t instanceof s&&t.bound?t.context=e:void 0)})},n.prototype.addBoundFunctions=function(e){var n,o,r,i,a;for(a=this.boundFuncs,o=0,r=a.length;r>o;o++)n=a[o],i=new Y(new T("this"),[new t(n)]).compile(e),this.ctor.body.unshift(new T(i+" = "+he("bind",e)+"("+i+", this)"))},n.prototype.addProperties=function(e,n,r){var i,a,c,u,l,p;return p=e.base.properties.slice(0),u=function(){var e;for(e=[];a=p.shift();)a instanceof o&&(c=a.variable.base,delete a.context,l=a.value,"constructor"===c.value?(this.ctor&&a.error("cannot define more than one constructor in a class"),l.bound&&a.error("cannot define a constructor as a bound function"),l instanceof s?a=this.ctor=l:(this.externalCtor=r.classScope.freeVariable("class"),a=new o(new T(this.externalCtor),l))):a.variable.this?l.static=!0:(i=c.isComplex()?new _(c):new t(c),a.variable=new Y(new T(n),[new t(new T("prototype")),i]),l instanceof s&&l.bound&&(this.boundFuncs.push(c),l.bound=!1))),e.push(a);return e}.call(this),J(u)},n.prototype.walkBody=function(e,t){return this.traverseChildren(!1,function(r){return function(a){var s,c,u,l,p,d,h;if(s=!0,a instanceof n)return!1;if(a instanceof i){for(h=c=a.expressions,u=l=0,p=h.length;p>l;u=++l)d=h[u],d instanceof o&&d.variable.looksStatic(e)?d.value.static=!0:d instanceof Y&&d.isObject(!0)&&(s=!1,c[u]=r.addProperties(d,e,t));a.expressions=c=ee(c)}return s&&!(a instanceof n)}}(this))},n.prototype.hoistDirectivePrologue=function(){var e,t,n;for(t=0,e=this.body.expressions;(n=e[t])&&n instanceof u||n instanceof Y&&n.isString();)++t;return this.directives=e.splice(0,t)},n.prototype.ensureConstructor=function(e){return this.ctor||(this.ctor=new s,this.externalCtor?this.ctor.body.push(new T(this.externalCtor+".apply(this, arguments)")):this.parent&&this.ctor.body.push(new T(e+".__super__.constructor.apply(this, arguments)")),this.ctor.body.makeReturn(),this.body.expressions.unshift(this.ctor)),this.ctor.ctor=this.ctor.name=e,this.ctor.klass=null,this.ctor.noReturn=!0},n.prototype.compileNode=function(e){var t,n,r,c,u,l,p,h,f;return(c=this.body.jumps())&&c.error("Class bodies cannot contain pure statements"),(n=this.body.contains(oe))&&n.error("Class bodies shouldn't reference arguments"),p=this.determineName()||"_Class",p.reserved&&(p="_"+p),l=new T(p),r=new s([],i.wrap([this.body])),t=[],e.classScope=r.makeScope(e.scope),this.hoistDirectivePrologue(),this.setContext(p),this.walkBody(p,e),this.ensureConstructor(p),this.addBoundFunctions(e),this.body.spaced=!0,this.body.expressions.push(l),this.parent&&(f=new T(e.classScope.freeVariable("superClass",{reserve:!1})),this.body.expressions.unshift(new d(l,f)),r.params.push(new I(f)),t.push(this.parent)),(h=this.body.expressions).unshift.apply(h,this.directives),u=new L(new a(r,t)),this.variable&&(u=new o(this.variable,u)),u.compileToFragments(e)},n}(r),e.Assign=o=function(e){function n(e,t,n,o){var r,i;this.variable=e,this.value=t,this.context=n,null==o&&(o={}),this.param=o.param,this.subpattern=o.subpattern,this.operatorToken=o.operatorToken,i=r=this.variable.unwrapAll().value,ge.call(U,i)>=0&&"object"!==this.context&&this.variable.error('variable name may not be "'+r+'"')}return fe(n,e),n.prototype.children=["variable","value"],n.prototype.isStatement=function(e){return(null!=e?e.level:void 0)===R&&null!=this.context&&ge.call(this.context,"?")>=0},n.prototype.assigns=function(e){return this["object"===this.context?"value":"variable"].assigns(e)},n.prototype.unfoldSoak=function(e){return de(e,this,"variable")},n.prototype.compileNode=function(e){var t,n,o,r,i,a,c,u,l,p,d,h,f,m;if(o=this.variable instanceof Y){if(this.variable.isArray()||this.variable.isObject())return this.compilePatternMatch(e);if(this.variable.isSplice())return this.compileSplice(e);if("||="===(u=this.context)||"&&="===u||"?="===u)return this.compileConditional(e);if("**="===(l=this.context)||"//="===l||"%%="===l)return this.compileSpecialMath(e)}return this.value instanceof s&&(this.value.static?(this.value.klass=this.variable.base,this.value.name=this.variable.properties[0],this.value.variable=this.variable):(null!=(p=this.variable.properties)?p.length:void 0)>=2&&(d=this.variable.properties,a=d.length>=3?ve.call(d,0,r=d.length-2):(r=0,[]),c=d[r++],i=d[r++],"prototype"===(null!=(h=c.name)?h.value:void 0)&&(this.value.klass=new Y(this.variable.base,a),this.value.name=i,this.value.variable=this.variable))),this.context||(m=this.variable.unwrapAll(),m.isAssignable()||this.variable.error('"'+this.variable.compile(e)+'" cannot be assigned'),("function"==typeof m.hasProperties?m.hasProperties():void 0)||(this.param?e.scope.add(m.value,"var"):e.scope.find(m.value))),f=this.value.compileToFragments(e,C),o&&this.variable.base instanceof D&&(this.variable.front=!0),n=this.variable.compileToFragments(e,C),"object"===this.context?n.concat(this.makeCode(": "),f):(t=n.concat(this.makeCode(" "+(this.context||"=")+" "),f),C>=e.level?t:this.wrapInBraces(t))},n.prototype.compilePatternMatch=function(e){var o,r,i,a,s,c,u,l,d,h,f,g,v,y,b,w,k,x,S,O,N,D,I,L,A,F,j,U;if(L=e.level===R,F=this.value,b=this.variable.base.objects,!(w=b.length))return i=F.compileToFragments(e),e.level>=E?this.wrapInBraces(i):i;if(y=b[0],1===w&&y instanceof p&&y.error("Destructuring assignment has no target"),d=this.variable.isObject(),L&&1===w&&!(y instanceof H))return a=null,y instanceof n&&"object"===y.context?(x=y,S=x.variable,l=S.base,(y=x.value)instanceof n&&(a=y.value,y=y.variable)):(y instanceof n&&(a=y.value,y=y.variable),l=d?y.this?y.properties[0].name:y:new T(0)),o=m.test(l.unwrap().value),F=new Y(F),F.properties.push(new(o?t:_)(l)),O=y.unwrap().value,ge.call(P,O)>=0&&y.error("assignment to a reserved word: "+y.compile(e)),a&&(F=new M("?",F,a)),new n(y,F,null,{param:this.param}).compileToFragments(e,R);for(j=F.compileToFragments(e,C),U=te(j),r=[],s=!1,(!m.test(U)||this.variable.assigns(U))&&(r.push([this.makeCode((k=e.scope.freeVariable("ref"))+" = ")].concat(ve.call(j))),j=[this.makeCode(k)],U=k),u=f=0,g=b.length;g>f;u=++f){if(y=b[u],l=u,!s&&y instanceof H)v=y.name.unwrap().value,y=y.unwrap(),A=w+" <= "+U+".length ? "+he("slice",e)+".call("+U+", "+u,(I=w-u-1)?(h=e.scope.freeVariable("i",{single:!0}),A+=", "+h+" = "+U+".length - "+I+") : ("+h+" = "+u+", [])"):A+=") : []",A=new T(A),s=h+"++";else{if(!s&&y instanceof p){(I=w-u-1)&&(1===I?s=U+".length - 1":(h=e.scope.freeVariable("i",{single:!0}),A=new T(h+" = "+U+".length - "+I),s=h+"++",r.push(A.compileToFragments(e,C))));continue}(y instanceof H||y instanceof p)&&y.error("multiple splats/expansions are disallowed in an assignment"),a=null,y instanceof n&&"object"===y.context?(N=y,D=N.variable,l=D.base,(y=N.value)instanceof n&&(a=y.value,y=y.variable)):(y instanceof n&&(a=y.value,y=y.variable),l=d?y.this?y.properties[0].name:y:new T(s||l)),v=y.unwrap().value,o=m.test(l.unwrap().value),A=new Y(new T(U),[new(o?t:_)(l)]),a&&(A=new M("?",A,a))}null!=v&&ge.call(P,v)>=0&&y.error("assignment to a reserved word: "+y.compile(e)),r.push(new n(y,A,null,{param:this.param,subpattern:!0}).compileToFragments(e,C))}return L||this.subpattern||r.push(j),c=this.joinFragmentArrays(r,", "),C>e.level?c:this.wrapInBraces(c)},n.prototype.compileConditional=function(e){var t,o,r,i;return r=this.variable.cacheReference(e),o=r[0],i=r[1],!o.properties.length&&o.base instanceof T&&"this"!==o.base.value&&!e.scope.check(o.base.value)&&this.variable.error('the variable "'+o.base.value+"\" can't be assigned with "+this.context+" because it has not been declared before"),ge.call(this.context,"?")>=0?(e.isExistentialEquals=!0,new y(new l(o),i,{type:"if"}).addElse(new n(i,this.value,"=")).compileToFragments(e)):(t=new M(this.context.slice(0,-1),o,new n(i,this.value,"=")).compileToFragments(e),C>=e.level?t:this.wrapInBraces(t))},n.prototype.compileSpecialMath=function(e){var t,o,r;return o=this.variable.cacheReference(e),t=o[0],r=o[1],new n(t,new M(this.context.slice(0,-1),r,this.value)).compileToFragments(e)},n.prototype.compileSplice=function(e){var t,n,o,r,i,a,s,c,u,l,p,d;return s=this.variable.properties.pop().range,o=s.from,l=s.to,n=s.exclusive,a=this.variable.compile(e),o?(c=this.cacheToCodeFragments(o.cache(e,E)),r=c[0],i=c[1]):r=i="0",l?o instanceof Y&&o.isSimpleNumber()&&l instanceof Y&&l.isSimpleNumber()?(l=l.compile(e)-i,n||(l+=1)):(l=l.compile(e,w)+" - "+i,n||(l+=" + 1")):l="9e9",u=this.value.cache(e,C),p=u[0],d=u[1],t=[].concat(this.makeCode("[].splice.apply("+a+", ["+r+", "+l+"].concat("),p,this.makeCode(")), "),d),e.level>R?this.wrapInBraces(t):t},n}(r),e.Code=s=function(e){function t(e,t,n){this.params=e||[],this.body=t||new i,this.bound="boundfunc"===n,this.isGenerator=!!this.body.contains(function(e){var t;return e instanceof M&&("yield"===(t=e.operator)||"yield*"===t)})}return fe(t,e),t.prototype.children=["params","body"],t.prototype.isStatement=function(){return!!this.ctor},t.prototype.jumps=O,t.prototype.makeScope=function(e){return new B(e,this.body,this)},t.prototype.compileNode=function(e){var r,s,c,u,l,d,h,f,m,g,v,b,_,k,C,E,x,R,S,O,N,D,L,P,A,F,j,U,B,V,H,$,q;if(this.bound&&(null!=(L=e.scope.method)?L.bound:void 0)&&(this.context=e.scope.method.context),this.bound&&!this.context)return this.context="_this",q=new t([new I(new T(this.context))],new i([this])),s=new a(q,[new T("this")]),s.updateLocationDataIfMissing(this.locationData),s.compileNode(e);for(e.scope=Q(e,"classScope")||this.makeScope(e.scope),e.scope.shared=Q(e,"sharedScope"),e.indent+=W,delete e.bare,delete e.isExistentialEquals,S=[],u=[],P=this.params,d=0,m=P.length;m>d;d++)(R=P[d])instanceof p||e.scope.parameter(R.asReference(e));for(A=this.params,h=0,g=A.length;g>h;h++)if(R=A[h],R.splat||R instanceof p){for(F=this.params,f=0,v=F.length;v>f;f++)(x=F[f])instanceof p||!x.name.value||e.scope.add(x.name.value,"var",!0);B=new o(new Y(new n(function(){var t,n,o,r;for(o=this.params,r=[],n=0,t=o.length;t>n;n++)x=o[n],r.push(x.asReference(e));return r}.call(this))),new Y(new T("arguments")));break}for(j=this.params,E=0,b=j.length;b>E;E++)R=j[E],R.isComplex()?(H=D=R.asReference(e),R.value&&(H=new M("?",D,R.value)),u.push(new o(new Y(R.name),H,"=",{param:!0}))):(D=R,R.value&&(C=new T(D.name.value+" == null"),H=new o(new Y(R.name),R.value,"="),u.push(new y(C,H)))),B||S.push(D);for($=this.body.isEmpty(),B&&u.unshift(B),u.length&&(U=this.body.expressions).unshift.apply(U,u),l=O=0,_=S.length;_>O;l=++O)x=S[l],S[l]=x.compileToFragments(e),e.scope.parameter(te(S[l]));for(V=[],this.eachParamName(function(e,t){return ge.call(V,e)>=0&&t.error("multiple parameters named "+e),V.push(e)}),$||this.noReturn||this.body.makeReturn(),c="function",this.isGenerator&&(c+="*"),this.ctor&&(c+=" "+this.name),c+="(",r=[this.makeCode(c)],l=N=0,k=S.length;k>N;l=++N)x=S[l],l&&r.push(this.makeCode(", ")),r.push.apply(r,x);return r.push(this.makeCode(") {")),this.body.isEmpty()||(r=r.concat(this.makeCode("\n"),this.body.compileWithDeclarations(e),this.makeCode("\n"+this.tab))),r.push(this.makeCode("}")),this.ctor?[this.makeCode(this.tab)].concat(ve.call(r)):this.front||e.level>=w?this.wrapInBraces(r):r},t.prototype.eachParamName=function(e){var t,n,o,r,i;for(r=this.params,i=[],t=0,n=r.length;n>t;t++)o=r[t],i.push(o.eachName(e));return i},t.prototype.traverseChildren=function(e,n){return e?t.__super__.traverseChildren.call(this,e,n):void 0},t}(r),e.Param=I=function(e){function t(e,t,n){var o,r,i;this.name=e,this.value=t,this.splat=n,r=o=this.name.unwrapAll().value,ge.call(U,r)>=0&&this.name.error('parameter name "'+o+'" is not allowed'),
11
+ this.name instanceof D&&this.name.generated&&(i=this.name.objects[0].operatorToken,i.error("unexpected "+i.value))}return fe(t,e),t.prototype.children=["name","value"],t.prototype.compileToFragments=function(e){return this.name.compileToFragments(e,C)},t.prototype.asReference=function(e){var t,n;return this.reference?this.reference:(n=this.name,n.this?(t=n.properties[0].name.value,t.reserved&&(t="_"+t),n=new T(e.scope.freeVariable(t))):n.isComplex()&&(n=new T(e.scope.freeVariable("arg"))),n=new Y(n),this.splat&&(n=new H(n)),n.updateLocationDataIfMissing(this.locationData),this.reference=n)},t.prototype.isComplex=function(){return this.name.isComplex()},t.prototype.eachName=function(e,t){var n,r,i,a,s,c;if(null==t&&(t=this.name),n=function(t){return e("@"+t.properties[0].name.value,t)},t instanceof T)return e(t.value,t);if(t instanceof Y)return n(t);for(c=t.objects,r=0,i=c.length;i>r;r++)s=c[r],s instanceof o&&null==s.context&&(s=s.variable),s instanceof o?this.eachName(e,s.value.unwrap()):s instanceof H?(a=s.name.unwrap(),e(a.value,a)):s instanceof Y?s.isArray()||s.isObject()?this.eachName(e,s.base):s.this?n(s):e(s.base.value,s.base):s instanceof p||s.error("illegal parameter "+s.compile())},t}(r),e.Splat=H=function(e){function t(e){this.name=e.compile?e:new T(e)}return fe(t,e),t.prototype.children=["name"],t.prototype.isAssignable=K,t.prototype.assigns=function(e){return this.name.assigns(e)},t.prototype.compileToFragments=function(e){return this.name.compileToFragments(e)},t.prototype.unwrap=function(){return this.name},t.compileSplattedArray=function(e,n,o){var r,i,a,s,c,u,l,p,d,h,f;for(l=-1;(f=n[++l])&&!(f instanceof t););if(l>=n.length)return[];if(1===n.length)return f=n[0],c=f.compileToFragments(e,C),o?c:[].concat(f.makeCode(he("slice",e)+".call("),c,f.makeCode(")"));for(r=n.slice(l),u=p=0,h=r.length;h>p;u=++p)f=r[u],a=f.compileToFragments(e,C),r[u]=f instanceof t?[].concat(f.makeCode(he("slice",e)+".call("),a,f.makeCode(")")):[].concat(f.makeCode("["),a,f.makeCode("]"));return 0===l?(f=n[0],s=f.joinFragmentArrays(r.slice(1),", "),r[0].concat(f.makeCode(".concat("),s,f.makeCode(")"))):(i=function(){var t,o,r,i;for(r=n.slice(0,l),i=[],t=0,o=r.length;o>t;t++)f=r[t],i.push(f.compileToFragments(e,C));return i}(),i=n[0].joinFragmentArrays(i,", "),s=n[l].joinFragmentArrays(r,", "),d=n[n.length-1],[].concat(n[0].makeCode("["),i,n[l].makeCode("].concat("),s,d.makeCode(")")))},t}(r),e.Expansion=p=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return fe(t,e),t.prototype.isComplex=O,t.prototype.compileNode=function(){return this.error("Expansion must be used inside a destructuring assignment or parameter list")},t.prototype.asReference=function(){return this},t.prototype.eachName=function(){},t}(r),e.While=X=function(e){function t(e,t){this.condition=(null!=t?t.invert:void 0)?e.invert():e,this.guard=null!=t?t.guard:void 0}return fe(t,e),t.prototype.children=["condition","guard","body"],t.prototype.isStatement=K,t.prototype.makeReturn=function(e){return e?t.__super__.makeReturn.apply(this,arguments):(this.returns=!this.jumps({loop:!0}),this)},t.prototype.addBody=function(e){return this.body=e,this},t.prototype.jumps=function(){var e,t,n,o,r;if(e=this.body.expressions,!e.length)return!1;for(t=0,o=e.length;o>t;t++)if(r=e[t],n=r.jumps({loop:!0}))return n;return!1},t.prototype.compileNode=function(e){var t,n,o,r;return e.indent+=W,r="",n=this.body,n.isEmpty()?n=this.makeCode(""):(this.returns&&(n.makeReturn(o=e.scope.freeVariable("results")),r=""+this.tab+o+" = [];\n"),this.guard&&(n.expressions.length>1?n.expressions.unshift(new y(new L(this.guard).invert(),new T("continue"))):this.guard&&(n=i.wrap([new y(this.guard,n)]))),n=[].concat(this.makeCode("\n"),n.compileToFragments(e,R),this.makeCode("\n"+this.tab))),t=[].concat(this.makeCode(r+this.tab+"while ("),this.condition.compileToFragments(e,x),this.makeCode(") {"),n,this.makeCode("}")),this.returns&&t.push(this.makeCode("\n"+this.tab+"return "+o+";")),t},t}(r),e.Op=M=function(e){function n(e,t,n,o){if("in"===e)return new b(t,n);if("do"===e)return this.generateDo(t);if("new"===e){if(t instanceof a&&!t.do&&!t.isNew)return t.newInstance();(t instanceof s&&t.bound||t.do)&&(t=new L(t))}return this.operator=r[e]||e,this.first=t,this.second=n,this.flip=!!o,this}var r,i;return fe(n,e),r={"==":"===","!=":"!==",of:"in",yieldfrom:"yield*"},i={"!==":"===","===":"!=="},n.prototype.children=["first","second"],n.prototype.isSimpleNumber=O,n.prototype.isYield=function(){var e;return"yield"===(e=this.operator)||"yield*"===e},n.prototype.isYieldReturn=function(){return this.isYield()&&this.first instanceof F},n.prototype.isUnary=function(){return!this.second},n.prototype.isComplex=function(){var e;return!(this.isUnary()&&("+"===(e=this.operator)||"-"===e)&&this.first instanceof Y&&this.first.isSimpleNumber())},n.prototype.isChainable=function(){var e;return"<"===(e=this.operator)||">"===e||">="===e||"<="===e||"==="===e||"!=="===e},n.prototype.invert=function(){var e,t,o,r,a;if(this.isChainable()&&this.first.isChainable()){for(e=!0,t=this;t&&t.operator;)e&&(e=t.operator in i),t=t.first;if(!e)return new L(this).invert();for(t=this;t&&t.operator;)t.invert=!t.invert,t.operator=i[t.operator],t=t.first;return this}return(r=i[this.operator])?(this.operator=r,this.first.unwrap()instanceof n&&this.first.invert(),this):this.second?new L(this).invert():"!"===this.operator&&(o=this.first.unwrap())instanceof n&&("!"===(a=o.operator)||"in"===a||"instanceof"===a)?o:new n("!",this)},n.prototype.unfoldSoak=function(e){var t;return("++"===(t=this.operator)||"--"===t||"delete"===t)&&de(e,this,"first")},n.prototype.generateDo=function(e){var t,n,r,i,c,u,l,p;for(u=[],n=e instanceof o&&(l=e.value.unwrap())instanceof s?l:e,p=n.params||[],r=0,i=p.length;i>r;r++)c=p[r],c.value?(u.push(c.value),delete c.value):u.push(c);return t=new a(e,u),t.do=!0,t},n.prototype.compileNode=function(e){var t,n,o,r,i,a;if(n=this.isChainable()&&this.first.isChainable(),n||(this.first.front=this.front),"delete"===this.operator&&e.scope.check(this.first.unwrapAll().value)&&this.error("delete operand may not be argument or var"),("--"===(r=this.operator)||"++"===r)&&(i=this.first.unwrapAll().value,ge.call(U,i)>=0)&&this.error('cannot increment/decrement "'+this.first.unwrapAll().value+'"'),this.isYield())return this.compileYield(e);if(this.isUnary())return this.compileUnary(e);if(n)return this.compileChain(e);switch(this.operator){case"?":return this.compileExistence(e);case"**":return this.compilePower(e);case"//":return this.compileFloorDivision(e);case"%%":return this.compileModulo(e);default:return o=this.first.compileToFragments(e,E),a=this.second.compileToFragments(e,E),t=[].concat(o,this.makeCode(" "+this.operator+" "),a),E>=e.level?t:this.wrapInBraces(t)}},n.prototype.compileChain=function(e){var t,n,o,r;return o=this.first.second.cache(e),this.first.second=o[0],r=o[1],n=this.first.compileToFragments(e,E),t=n.concat(this.makeCode(" "+(this.invert?"&&":"||")+" "),r.compileToFragments(e),this.makeCode(" "+this.operator+" "),this.second.compileToFragments(e,E)),this.wrapInBraces(t)},n.prototype.compileExistence=function(e){var t,n;return this.first.isComplex()?(n=new T(e.scope.freeVariable("ref")),t=new L(new o(n,this.first))):(t=this.first,n=t),new y(new l(t),n,{type:"if"}).addElse(this.second).compileToFragments(e)},n.prototype.compileUnary=function(e){var t,o,r;return o=[],t=this.operator,o.push([this.makeCode(t)]),"!"===t&&this.first instanceof l?(this.first.negated=!this.first.negated,this.first.compileToFragments(e)):e.level>=w?new L(this).compileToFragments(e):(r="+"===t||"-"===t,("new"===t||"typeof"===t||"delete"===t||r&&this.first instanceof n&&this.first.operator===t)&&o.push([this.makeCode(" ")]),(r&&this.first instanceof n||"new"===t&&this.first.isStatement(e))&&(this.first=new L(this.first)),o.push(this.first.compileToFragments(e,E)),this.flip&&o.reverse(),this.joinFragmentArrays(o,""))},n.prototype.compileYield=function(e){var t,n;return n=[],t=this.operator,null==e.scope.parent&&this.error("yield statements must occur within a function generator."),ge.call(Object.keys(this.first),"expression")>=0&&!(this.first instanceof q)?this.isYieldReturn()?n.push(this.first.compileToFragments(e,R)):null!=this.first.expression&&n.push(this.first.expression.compileToFragments(e,E)):(n.push([this.makeCode("("+t+" ")]),n.push(this.first.compileToFragments(e,E)),n.push([this.makeCode(")")])),this.joinFragmentArrays(n,"")},n.prototype.compilePower=function(e){var n;return n=new Y(new T("Math"),[new t(new T("pow"))]),new a(n,[this.first,this.second]).compileToFragments(e)},n.prototype.compileFloorDivision=function(e){var o,r;return r=new Y(new T("Math"),[new t(new T("floor"))]),o=new n("/",this.first,this.second),new a(r,[o]).compileToFragments(e)},n.prototype.compileModulo=function(e){var t;return t=new Y(new T(he("modulo",e))),new a(t,[this.first,this.second]).compileToFragments(e)},n.prototype.toString=function(e){return n.__super__.toString.call(this,e,this.constructor.name+" "+this.operator)},n}(r),e.In=b=function(e){function t(e,t){this.object=e,this.array=t}return fe(t,e),t.prototype.children=["object","array"],t.prototype.invert=S,t.prototype.compileNode=function(e){var t,n,o,r;if(this.array instanceof Y&&this.array.isArray()&&this.array.base.objects.length){for(r=this.array.base.objects,n=0,o=r.length;o>n;n++)if(r[n]instanceof H){t=!0;break}if(!t)return this.compileOrTest(e)}return this.compileLoopTest(e)},t.prototype.compileOrTest=function(e){var t,n,o,r,i,a,s,c,u,l,p,d;for(c=this.object.cache(e,E),p=c[0],s=c[1],u=this.negated?[" !== "," && "]:[" === "," || "],t=u[0],n=u[1],d=[],l=this.array.base.objects,o=i=0,a=l.length;a>i;o=++i)r=l[o],o&&d.push(this.makeCode(n)),d=d.concat(o?s:p,this.makeCode(t),r.compileToFragments(e,w));return E>e.level?d:this.wrapInBraces(d)},t.prototype.compileLoopTest=function(e){var t,n,o,r;return o=this.object.cache(e,C),r=o[0],n=o[1],t=[].concat(this.makeCode(he("indexOf",e)+".call("),this.array.compileToFragments(e,C),this.makeCode(", "),n,this.makeCode(") "+(this.negated?"< 0":">= 0"))),te(r)===te(n)?t:(t=r.concat(this.makeCode(", "),t),C>e.level?t:this.wrapInBraces(t))},t.prototype.toString=function(e){return t.__super__.toString.call(this,e,this.constructor.name+(this.negated?"!":""))},t}(r),e.Try=function(e){function t(e,t,n,o){this.attempt=e,this.errorVariable=t,this.recovery=n,this.ensure=o}return fe(t,e),t.prototype.children=["attempt","recovery","ensure"],t.prototype.isStatement=K,t.prototype.jumps=function(e){var t;return this.attempt.jumps(e)||(null!=(t=this.recovery)?t.jumps(e):void 0)},t.prototype.makeReturn=function(e){return this.attempt&&(this.attempt=this.attempt.makeReturn(e)),this.recovery&&(this.recovery=this.recovery.makeReturn(e)),this},t.prototype.compileNode=function(e){var t,n,r,i,a;return e.indent+=W,a=this.attempt.compileToFragments(e,R),t=this.recovery?(r=e.scope.freeVariable("error"),i=new T(r),this.errorVariable&&this.recovery.unshift(new o(this.errorVariable,i)),[].concat(this.makeCode(" catch ("),i.compileToFragments(e),this.makeCode(") {\n"),this.recovery.compileToFragments(e,R),this.makeCode("\n"+this.tab+"}"))):this.ensure||this.recovery?[]:[this.makeCode(" catch ("+r+") {}")],n=this.ensure?[].concat(this.makeCode(" finally {\n"),this.ensure.compileToFragments(e,R),this.makeCode("\n"+this.tab+"}")):[],[].concat(this.makeCode(this.tab+"try {\n"),a,this.makeCode("\n"+this.tab+"}"),t,n)},t}(r),e.Throw=q=function(e){function t(e){this.expression=e}return fe(t,e),t.prototype.children=["expression"],t.prototype.isStatement=K,t.prototype.jumps=O,t.prototype.makeReturn=$,t.prototype.compileNode=function(e){return[].concat(this.makeCode(this.tab+"throw "),this.expression.compileToFragments(e),this.makeCode(";"))},t}(r),e.Existence=l=function(e){function t(e){this.expression=e}return fe(t,e),t.prototype.children=["expression"],t.prototype.invert=S,t.prototype.compileNode=function(e){var t,n,o,r;return this.expression.front=this.front,o=this.expression.compile(e,E),m.test(o)&&!e.scope.check(o)?(r=this.negated?["===","||"]:["!==","&&"],t=r[0],n=r[1],o="typeof "+o+" "+t+' "undefined" '+n+" "+o+" "+t+" null"):o=o+" "+(this.negated?"==":"!=")+" null",[this.makeCode(k>=e.level?o:"("+o+")")]},t}(r),e.Parens=L=function(e){function t(e){this.body=e}return fe(t,e),t.prototype.children=["body"],t.prototype.unwrap=function(){return this.body},t.prototype.isComplex=function(){return this.body.isComplex()},t.prototype.compileNode=function(e){var t,n,o;return n=this.body.unwrap(),n instanceof Y&&n.isAtomic()?(n.front=this.front,n.compileToFragments(e)):(o=n.compileToFragments(e,x),t=E>e.level&&(n instanceof M||n instanceof a||n instanceof h&&n.returns),t?o:this.wrapInBraces(o))},t}(r),e.For=h=function(e){function t(e,t){var n;this.source=t.source,this.guard=t.guard,this.step=t.step,this.name=t.name,this.index=t.index,this.body=i.wrap([e]),this.own=!!t.own,this.object=!!t.object,this.object&&(n=[this.index,this.name],this.name=n[0],this.index=n[1]),this.index instanceof Y&&this.index.error("index cannot be a pattern matching expression"),this.range=this.source instanceof Y&&this.source.base instanceof A&&!this.source.properties.length,this.pattern=this.name instanceof Y,this.range&&this.index&&this.index.error("indexes do not apply to range loops"),this.range&&this.pattern&&this.name.error("cannot pattern match over range loops"),this.own&&!this.object&&this.name.error("cannot use own with for-in"),this.returns=!1}return fe(t,e),t.prototype.children=["body","source","guard","step"],t.prototype.compileNode=function(e){var t,n,r,a,s,c,u,l,p,d,h,f,g,v,b,_,w,k,E,x,S,O,D,M,I,P,A,j,U,B,V,H,$,q;return t=i.wrap([this.body]),D=t.expressions,k=D[D.length-1],(null!=k?k.jumps():void 0)instanceof F&&(this.returns=!1),U=this.range?this.source.base:this.source,j=e.scope,this.pattern||(x=this.name&&this.name.compile(e,C)),v=this.index&&this.index.compile(e,C),x&&!this.pattern&&j.find(x),v&&j.find(v),this.returns&&(A=j.freeVariable("results")),b=this.object&&v||j.freeVariable("i",{single:!0}),_=this.range&&x||v||b,w=_!==b?_+" = ":"",this.step&&!this.range&&(M=this.cacheToCodeFragments(this.step.cache(e,C,ne)),B=M[0],H=M[1],V=H.match(N)),this.pattern&&(x=b),q="",h="",u="",f=this.tab+W,this.range?d=U.compileToFragments(ae(e,{index:b,name:x,step:this.step,isComplex:ne})):($=this.source.compile(e,C),!x&&!this.own||m.test($)||(u+=""+this.tab+(O=j.freeVariable("ref"))+" = "+$+";\n",$=O),x&&!this.pattern&&(S=x+" = "+$+"["+_+"]"),this.object||(B!==H&&(u+=""+this.tab+B+";\n"),this.step&&V&&(p=0>ce(V[0]))||(E=j.freeVariable("len")),s=""+w+b+" = 0, "+E+" = "+$+".length",c=""+w+b+" = "+$+".length - 1",r=b+" < "+E,a=b+" >= 0",this.step?(V?p&&(r=a,s=c):(r=H+" > 0 ? "+r+" : "+a,s="("+H+" > 0 ? ("+s+") : "+c+")"),g=b+" += "+H):g=_!==b?"++"+b:b+"++",d=[this.makeCode(s+"; "+r+"; "+w+g)])),this.returns&&(I=""+this.tab+A+" = [];\n",P="\n"+this.tab+"return "+A+";",t.makeReturn(A)),this.guard&&(t.expressions.length>1?t.expressions.unshift(new y(new L(this.guard).invert(),new T("continue"))):this.guard&&(t=i.wrap([new y(this.guard,t)]))),this.pattern&&t.expressions.unshift(new o(this.name,new T($+"["+_+"]"))),l=[].concat(this.makeCode(u),this.pluckDirectCall(e,t)),S&&(q="\n"+f+S+";"),this.object&&(d=[this.makeCode(_+" in "+$)],this.own&&(h="\n"+f+"if (!"+he("hasProp",e)+".call("+$+", "+_+")) continue;")),n=t.compileToFragments(ae(e,{indent:f}),R),n&&n.length>0&&(n=[].concat(this.makeCode("\n"),n,this.makeCode("\n"))),[].concat(l,this.makeCode(""+(I||"")+this.tab+"for ("),d,this.makeCode(") {"+h+q),n,this.makeCode(this.tab+"}"+(P||"")))},t.prototype.pluckDirectCall=function(e,t){var n,r,i,c,u,l,p,d,h,f,m,g,v,y,b,_;for(r=[],h=t.expressions,u=l=0,p=h.length;p>l;u=++l)i=h[u],(i=i.unwrapAll())instanceof a&&((_=null!=(f=i.variable)?f.unwrapAll():void 0)instanceof s||_ instanceof Y&&(null!=(m=_.base)?m.unwrapAll():void 0)instanceof s&&1===_.properties.length&&("call"===(g=null!=(v=_.properties[0].name)?v.value:void 0)||"apply"===g))&&(c=(null!=(y=_.base)?y.unwrapAll():void 0)||_,d=new T(e.scope.freeVariable("fn")),n=new Y(d),_.base&&(b=[n,_],_.base=b[0],n=b[1]),t.expressions[u]=new a(n,i.args),r=r.concat(this.makeCode(this.tab),new o(d,c).compileToFragments(e,R),this.makeCode(";\n")));return r},t}(X),e.Switch=function(e){function t(e,t,n){this.subject=e,this.cases=t,this.otherwise=n}return fe(t,e),t.prototype.children=["subject","cases","otherwise"],t.prototype.isStatement=K,t.prototype.jumps=function(e){var t,n,o,r,i,a,s;for(null==e&&(e={block:!0}),i=this.cases,n=0,r=i.length;r>n;n++)if(a=i[n],a[0],t=a[1],o=t.jumps(e))return o;return null!=(s=this.otherwise)?s.jumps(e):void 0},t.prototype.makeReturn=function(e){var t,n,o,r,a;for(r=this.cases,t=0,n=r.length;n>t;t++)o=r[t],o[1].makeReturn(e);return e&&(this.otherwise||(this.otherwise=new i([new T("void 0")]))),null!=(a=this.otherwise)&&a.makeReturn(e),this},t.prototype.compileNode=function(e){var t,n,o,r,i,a,s,c,u,l,p,d,h,f,m,g;for(c=e.indent+W,u=e.indent=c+W,a=[].concat(this.makeCode(this.tab+"switch ("),this.subject?this.subject.compileToFragments(e,x):this.makeCode("false"),this.makeCode(") {\n")),f=this.cases,s=l=0,d=f.length;d>l;s=++l){for(m=f[s],r=m[0],t=m[1],g=ee([r]),p=0,h=g.length;h>p;p++)o=g[p],this.subject||(o=o.invert()),a=a.concat(this.makeCode(c+"case "),o.compileToFragments(e,x),this.makeCode(":\n"));if((n=t.compileToFragments(e,R)).length>0&&(a=a.concat(n,this.makeCode("\n"))),s===this.cases.length-1&&!this.otherwise)break;(i=this.lastNonComment(t.expressions))instanceof F||i instanceof T&&i.jumps()&&"debugger"!==i.value||a.push(o.makeCode(u+"break;\n"))}return this.otherwise&&this.otherwise.expressions.length&&a.push.apply(a,[this.makeCode(c+"default:\n")].concat(ve.call(this.otherwise.compileToFragments(e,R)),[this.makeCode("\n")])),a.push(this.makeCode(this.tab+"}")),a},t}(r),e.If=y=function(e){function t(e,t,n){this.body=t,null==n&&(n={}),this.condition="unless"===n.type?e.invert():e,this.elseBody=null,this.isChain=!1,this.soak=n.soak}return fe(t,e),t.prototype.children=["condition","body","elseBody"],t.prototype.bodyNode=function(){var e;return null!=(e=this.body)?e.unwrap():void 0},t.prototype.elseBodyNode=function(){var e;return null!=(e=this.elseBody)?e.unwrap():void 0},t.prototype.addElse=function(e){return this.isChain?this.elseBodyNode().addElse(e):(this.isChain=e instanceof t,this.elseBody=this.ensureBlock(e),this.elseBody.updateLocationDataIfMissing(e.locationData)),this},t.prototype.isStatement=function(e){var t;return(null!=e?e.level:void 0)===R||this.bodyNode().isStatement(e)||(null!=(t=this.elseBodyNode())?t.isStatement(e):void 0)},t.prototype.jumps=function(e){var t;return this.body.jumps(e)||(null!=(t=this.elseBody)?t.jumps(e):void 0)},t.prototype.compileNode=function(e){return this.isStatement(e)?this.compileStatement(e):this.compileExpression(e)},t.prototype.makeReturn=function(e){return e&&(this.elseBody||(this.elseBody=new i([new T("void 0")]))),this.body&&(this.body=new i([this.body.makeReturn(e)])),this.elseBody&&(this.elseBody=new i([this.elseBody.makeReturn(e)])),this},t.prototype.ensureBlock=function(e){return e instanceof i?e:new i([e])},t.prototype.compileStatement=function(e){var n,o,r,i,a,s;return r=Q(e,"chainChild"),Q(e,"isExistentialEquals")?new t(this.condition.invert(),this.elseBodyNode(),{type:"if"}).compileToFragments(e):(s=e.indent+W,i=this.condition.compileToFragments(e,x),o=this.ensureBlock(this.body).compileToFragments(ae(e,{indent:s})),a=[].concat(this.makeCode("if ("),i,this.makeCode(") {\n"),o,this.makeCode("\n"+this.tab+"}")),r||a.unshift(this.makeCode(this.tab)),this.elseBody?(n=a.concat(this.makeCode(" else ")),this.isChain?(e.chainChild=!0,n=n.concat(this.elseBody.unwrap().compileToFragments(e,R))):n=n.concat(this.makeCode("{\n"),this.elseBody.compileToFragments(ae(e,{indent:s}),R),this.makeCode("\n"+this.tab+"}")),n):a)},t.prototype.compileExpression=function(e){var t,n,o,r;return o=this.condition.compileToFragments(e,k),n=this.bodyNode().compileToFragments(e,C),t=this.elseBodyNode()?this.elseBodyNode().compileToFragments(e,C):[this.makeCode("void 0")],r=o.concat(this.makeCode(" ? "),n,this.makeCode(" : "),t),e.level>=k?this.wrapInBraces(r):r},t.prototype.unfoldSoak=function(){return this.soak&&this},t}(r),G={extend:function(e){return"function(child, parent) { for (var key in parent) { if ("+he("hasProp",e)+".call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }"},bind:function(){return"function(fn, me){ return function(){ return fn.apply(me, arguments); }; }"},indexOf:function(){return"[].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }"},modulo:function(){return"function(a, b) { return (+a % (b = +b) + b) % b; }"},hasProp:function(){return"{}.hasOwnProperty"},slice:function(){return"[].slice"}},R=1,x=2,C=3,k=4,E=5,w=6,W=" ",m=/^(?!\d)[$\w\x7f-\uffff]+$/,j=/^[+-]?\d+$/,f=/^[+-]?0x[\da-f]+/i,N=/^[+-]?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)$/i,v=/^['"]/,g=/^\//,he=function(e,t){var n,o;return o=t.scope.root,e in o.utilities?o.utilities[e]:(n=o.freeVariable(e),o.assign(n,G[e](t)),o.utilities[e]=n)},se=function(e,t){return e=e.replace(/\n/g,"$&"+t),e.replace(/\s+$/,"")},ce=function(e){return null==e?0:e.match(f)?parseInt(e,16):parseFloat(e)},oe=function(e){return e instanceof T&&"arguments"===e.value&&!e.asKey},re=function(e){return e instanceof T&&"this"===e.value&&!e.asKey||e instanceof s&&e.bound||e instanceof a&&e.isSuper},ne=function(e){return e.isComplex()||("function"==typeof e.isAssignable?e.isAssignable():void 0)},de=function(e,t,n){var o;if(o=t[n].unfoldSoak(e))return t[n]=o.body,o.body=new Y(t),o}}.call(this),t.exports}(),require["./sourcemap"]=function(){var e={},t={exports:e};return function(){var e,n;e=function(){function e(e){this.line=e,this.columns=[]}return e.prototype.add=function(e,t,n){var o,r;return r=t[0],o=t[1],null==n&&(n={}),this.columns[e]&&n.noReplace?void 0:this.columns[e]={line:this.line,column:e,sourceLine:r,sourceColumn:o}},e.prototype.sourceLocation=function(e){for(var t;!((t=this.columns[e])||0>=e);)e--;return t&&[t.sourceLine,t.sourceColumn]},e}(),n=function(){function t(){this.lines=[]}var n,o,r,i;return t.prototype.add=function(t,n,o){var r,i,a,s;return null==o&&(o={}),a=n[0],i=n[1],s=(r=this.lines)[a]||(r[a]=new e(a)),s.add(i,t,o)},t.prototype.sourceLocation=function(e){var t,n,o;for(n=e[0],t=e[1];!((o=this.lines[n])||0>=n);)n--;return o&&o.sourceLocation(t)},t.prototype.generate=function(e,t){var n,o,r,i,a,s,c,u,l,p,d,h,f,m,g,v;for(null==e&&(e={}),null==t&&(t=null),v=0,i=0,s=0,a=0,h=!1,n="",f=this.lines,p=o=0,c=f.length;c>o;p=++o)if(l=f[p])for(m=l.columns,r=0,u=m.length;u>r;r++)if(d=m[r]){for(;d.line>v;)i=0,h=!1,n+=";",v++;h&&(n+=",",h=!1),n+=this.encodeVlq(d.column-i),i=d.column,n+=this.encodeVlq(0),n+=this.encodeVlq(d.sourceLine-s),s=d.sourceLine,n+=this.encodeVlq(d.sourceColumn-a),a=d.sourceColumn,h=!0}return g={version:3,file:e.generatedFile||"",sourceRoot:e.sourceRoot||"",sources:e.sourceFiles||[""],names:[],mappings:n},e.inline&&(g.sourcesContent=[t]),JSON.stringify(g,null,2)},r=5,o=1<<r,i=o-1,t.prototype.encodeVlq=function(e){var t,n,a,s;for(t="",a=0>e?1:0,s=(Math.abs(e)<<1)+a;s||!t;)n=s&i,s>>=r,s&&(n|=o),t+=this.encodeBase64(n);return t},n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t.prototype.encodeBase64=function(e){return n[e]||function(){throw Error("Cannot Base64 encode value: "+e)}()},t}(),t.exports=n}.call(this),t.exports}(),require["./coffee-script"]=function(){var e={},t={exports:e};return function(){var t,n,o,r,i,a,s,c,u,l,p,d,h,f,m,g,v,y,b={}.hasOwnProperty,_=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};if(s=require("fs"),v=require("vm"),f=require("path"),t=require("./lexer").Lexer,h=require("./parser").parser,u=require("./helpers"),n=require("./sourcemap"),e.VERSION="1.10.0",e.FILE_EXTENSIONS=[".coffee",".litcoffee",".coffee.md"],e.helpers=u,y=function(e){return function(t,n){var o;null==n&&(n={});try{return e.call(this,t,n)}catch(e){if(o=e,"string"!=typeof t)throw o;throw u.updateSyntaxError(o,t,n.filename)}}},e.compile=r=y(function(e,t){var o,r,i,a,s,c,l,p,f,m,g,v,y,b;for(u.merge,a=u.extend,t=a({},t),t.sourceMap&&(g=new n),b=d.tokenize(e,t),t.referencedVars=function(){var e,t,n;for(n=[],e=0,t=b.length;t>e;e++)y=b[e],y.variable&&n.push(y[1]);return n}(),c=h.parse(b).compileToFragments(t),i=0,t.header&&(i+=1),t.shiftLine&&(i+=1),r=0,f="",p=0,m=c.length;m>p;p++)s=c[p],t.sourceMap&&(s.locationData&&!/^[;\s]*$/.test(s.code)&&g.add([s.locationData.first_line,s.locationData.first_column],[i,r],{noReplace:!0}),v=u.count(s.code,"\n"),i+=v,v?r=s.code.length-(s.code.lastIndexOf("\n")+1):r+=s.code.length),f+=s.code;return t.header&&(l="Generated by CoffeeScript "+this.VERSION,f="// "+l+"\n"+f),t.sourceMap?(o={js:f},o.sourceMap=g,o.v3SourceMap=g.generate(t,e),o):f}),e.tokens=y(function(e,t){return d.tokenize(e,t)}),e.nodes=y(function(e,t){return"string"==typeof e?h.parse(d.tokenize(e,t)):h.parse(e)}),e.run=function(e,t){var n,o,i,a;return null==t&&(t={}),i=require.main,i.filename=process.argv[1]=t.filename?s.realpathSync(t.filename):".",i.moduleCache&&(i.moduleCache={}),o=t.filename?f.dirname(s.realpathSync(t.filename)):s.realpathSync("."),i.paths=require("module")._nodeModulePaths(o),(!u.isCoffee(i.filename)||require.extensions)&&(n=r(e,t),e=null!=(a=n.js)?a:n),i._compile(e,i.filename)},e.eval=function(e,t){var n,o,i,a,s,c,u,l,p,d,h,m,g,y,_,w,k;if(null==t&&(t={}),e=e.trim()){if(a=null!=(m=v.Script.createContext)?m:v.createContext,c=null!=(g=v.isContext)?g:function(){return t.sandbox instanceof a().constructor},a){if(null!=t.sandbox){if(c(t.sandbox))w=t.sandbox;else{w=a(),y=t.sandbox;for(l in y)b.call(y,l)&&(k=y[l],w[l]=k)}w.global=w.root=w.GLOBAL=w}else w=global;if(w.__filename=t.filename||"eval",w.__dirname=f.dirname(w.__filename),w===global&&!w.module&&!w.require){for(n=require("module"),w.module=o=new n(t.modulename||"eval"),w.require=i=function(e){return n._load(e,o,!0)},o.filename=w.__filename,_=Object.getOwnPropertyNames(require),s=0,p=_.length;p>s;s++)"paths"!==(h=_[s])&&"arguments"!==h&&"caller"!==h&&(i[h]=require[h]);i.paths=o.paths=n._nodeModulePaths(process.cwd()),i.resolve=function(e){return n._resolveFilename(e,o)}}}d={};for(l in t)b.call(t,l)&&(k=t[l],d[l]=k);return d.bare=!0,u=r(e,d),w===global?v.runInThisContext(u):v.runInContext(u,w)}},e.register=function(){return require("./register")},require.extensions)for(m=this.FILE_EXTENSIONS,l=0,p=m.length;p>l;l++)i=m[l],null==(o=require.extensions)[i]&&(o[i]=function(){throw Error("Use CoffeeScript.register() or require the coffee-script/register module to require "+i+" files.")});e._compileFile=function(e,t){var n,o,i,a;null==t&&(t=!1),i=s.readFileSync(e,"utf8"),a=65279===i.charCodeAt(0)?i.substring(1):i;try{n=r(a,{filename:e,sourceMap:t,literate:u.isLiterate(e)})}catch(t){throw o=t,u.updateSyntaxError(o,a,e)}return n},d=new t,h.lexer={lex:function(){var e,t;return t=h.tokens[this.pos++],t?(e=t[0],this.yytext=t[1],this.yylloc=t[2],h.errorToken=t.origin||t,this.yylineno=this.yylloc.first_line):e="",e},setInput:function(e){return h.tokens=e,this.pos=0},upcomingInput:function(){return""}},h.yy=require("./nodes"),h.yy.parseError=function(e,t){var n,o,r,i,a;return t.token,i=h.errorToken,a=h.tokens,o=i[0],r=i[1],n=i[2],r=function(){switch(!1){case i!==a[a.length-1]:return"end of input";case"INDENT"!==o&&"OUTDENT"!==o:return"indentation";case"IDENTIFIER"!==o&&"NUMBER"!==o&&"STRING"!==o&&"STRING_START"!==o&&"REGEX"!==o&&"REGEX_START"!==o:return o.replace(/_START$/,"").toLowerCase();default:return u.nameWhitespaceCharacter(r)}}(),u.throwSyntaxError("unexpected "+r,n)},a=function(e,t){var n,o,r,i,a,s,c,u,l,p,d,h;return i=void 0,r="",e.isNative()?r="native":(e.isEval()?(i=e.getScriptNameOrSourceURL())||(r=e.getEvalOrigin()+", "):i=e.getFileName(),i||(i="<anonymous>"),u=e.getLineNumber(),o=e.getColumnNumber(),p=t(i,u,o),r=p?i+":"+p[0]+":"+p[1]:i+":"+u+":"+o),a=e.getFunctionName(),s=e.isConstructor(),c=!(e.isToplevel()||s),c?(l=e.getMethodName(),h=e.getTypeName(),a?(d=n="",h&&a.indexOf(h)&&(d=h+"."),l&&a.indexOf("."+l)!==a.length-l.length-1&&(n=" [as "+l+"]"),""+d+a+n+" ("+r+")"):h+"."+(l||"<anonymous>")+" ("+r+")"):s?"new "+(a||"<anonymous>")+" ("+r+")":a?a+" ("+r+")":r},g={},c=function(t){var n,o;return g[t]?g[t]:(o=null!=f?f.extname(t):void 0,0>_.call(e.FILE_EXTENSIONS,o)?void 0:(n=e._compileFile(t,!0),g[t]=n.sourceMap))},Error.prepareStackTrace=function(t,n){var o,r,i;return i=function(e,t,n){var o,r;return r=c(e),r&&(o=r.sourceLocation([t-1,n-1])),o?[o[0]+1,o[1]+1]:null},r=function(){var t,r,s;for(s=[],t=0,r=n.length;r>t&&(o=n[t],o.getFunction()!==e.run);t++)s.push(" at "+a(o,i));return s}(),t+"\n"+r.join("\n")+"\n"}}.call(this),t.exports}(),require["./browser"]=function(){var exports={},module={exports:exports};return function(){var CoffeeScript,compile,runScripts,indexOf=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};CoffeeScript=require("./coffee-script"),CoffeeScript.require=require,compile=CoffeeScript.compile,CoffeeScript.eval=function(code,options){return null==options&&(options={}),null==options.bare&&(options.bare=!0),eval(compile(code,options))},CoffeeScript.run=function(e,t){return null==t&&(t={}),t.bare=!0,t.shiftLine=!0,Function(compile(e,t))()},"undefined"!=typeof window&&null!==window&&("undefined"!=typeof btoa&&null!==btoa&&void 0!==JSON&&null!==JSON&&"undefined"!=typeof unescape&&null!==unescape&&"undefined"!=typeof encodeURIComponent&&null!==encodeURIComponent&&(compile=function(e,t){var n,o,r;return null==t&&(t={}),t.sourceMap=!0,t.inline=!0,o=CoffeeScript.compile(e,t),n=o.js,r=o.v3SourceMap,n+"\n//# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(r)))+"\n//# sourceURL=coffeescript"}),CoffeeScript.load=function(e,t,n,o){var r;return null==n&&(n={}),null==o&&(o=!1),n.sourceFiles=[e],r=window.ActiveXObject?new window.ActiveXObject("Microsoft.XMLHTTP"):new window.XMLHttpRequest,r.open("GET",e,!0),"overrideMimeType"in r&&r.overrideMimeType("text/plain"),r.onreadystatechange=function(){var i,a;if(4===r.readyState){if(0!==(a=r.status)&&200!==a)throw Error("Could not load "+e);if(i=[r.responseText,n],o||CoffeeScript.run.apply(CoffeeScript,i),t)return t(i)}},r.send(null)},runScripts=function(){var e,t,n,o,r,i,a,s,c,u,l;for(l=window.document.getElementsByTagName("script"),t=["text/coffeescript","text/literate-coffeescript"],e=function(){var e,n,o,r;for(r=[],e=0,n=l.length;n>e;e++)c=l[e],o=c.type,indexOf.call(t,o)>=0&&r.push(c);return r}(),i=0,n=function(){var t;return t=e[i],t instanceof Array?(CoffeeScript.run.apply(CoffeeScript,t),i++,n()):void 0},o=function(o,r){var i,a;return i={literate:o.type===t[1]},a=o.src||o.getAttribute("data-src"),a?CoffeeScript.load(a,function(t){return e[r]=t,n()},i,!0):(i.sourceFiles=["embedded"],e[r]=[o.innerHTML,i])},r=a=0,s=e.length;s>a;r=++a)u=e[r],o(u,r);return n()},window.addEventListener?window.addEventListener("DOMContentLoaded",runScripts,!1):window.attachEvent("onload",runScripts))}.call(this),module.exports}(),require["./coffee-script"]}();"function"==typeof define&&define.amd?define(function(){return CoffeeScript}):root.CoffeeScript=CoffeeScript}(this);var JSON;JSON||(JSON={}),function(){function str(e,t){var n,o,r,i,a,s=gap,c=t[e];switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(e)),"function"==typeof rep&&(c=rep.call(t,e,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(c)){for(i=c.length,
12
+ n=0;n<i;n+=1)a[n]=str(n,c)||"null";return r=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,r}if(rep&&"object"==typeof rep)for(i=rep.length,n=0;n<i;n+=1)"string"==typeof rep[n]&&(o=rep[n],(r=str(o,c))&&a.push(quote(o)+(gap?": ":":")+r));else for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(r=str(o,c))&&a.push(quote(o)+(gap?": ":":")+r);return r=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,r}}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function f(e){return e<10?"0"+e:e}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,t,n){var o;if(gap="",indent="","number"==typeof n)for(o=0;o<n;o+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,!t||"function"==typeof t||"object"==typeof t&&"number"==typeof t.length)return str("",{"":e});throw new Error("JSON.stringify")}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,o,r=e[t];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o=walk(r,n),void 0!==o?r[n]=o:delete r[n]);return reviver.call(e,t,r)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),SockJS=function(){var e=document,t=window,n={},o=function(){};o.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),e in this._listeners||(this._listeners[e]=[]);var o=this._listeners[e];-1===n.arrIndexOf(o,t)&&o.push(t)},o.prototype.removeEventListener=function(e,t){if(this._listeners&&e in this._listeners){var o=this._listeners[e],r=n.arrIndexOf(o,t);return-1!==r?void(o.length>1?this._listeners[e]=o.slice(0,r).concat(o.slice(r+1)):delete this._listeners[e]):void 0}},o.prototype.dispatchEvent=function(e){var t=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&t in this._listeners)for(var o=0;o<this._listeners[t].length;o++)this._listeners[t][o].apply(this,n)};var r=function(e,t){if(this.type=e,void 0!==t)for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n])};r.prototype.toString=function(){var e=[];for(var t in this)if(this.hasOwnProperty(t)){var n=this[t];"function"==typeof n&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};var i=function(e){var t=this;t._events=e||[],t._listeners={}};i.prototype.emit=function(e){var t=this;if(t._verifyType(e),!t._nuked){var n=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),e in t._listeners)for(var o=0;o<t._listeners[e].length;o++)t._listeners[e][o].apply(t,n)}},i.prototype.on=function(e,t){var n=this;n._verifyType(e),n._nuked||(e in n._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},i.prototype._verifyType=function(e){var t=this;-1===n.arrIndexOf(t._events,e)&&n.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},i.prototype.nuke=function(){var e=this;e._nuked=!0;for(var t=0;t<e._events.length;t++)delete e[e._events[t]];e._listeners={}};var a="abcdefghijklmnopqrstuvwxyz0123456789_";n.random_string=function(e,t){t=t||a.length;var n,o=[];for(n=0;n<e;n++)o.push(a.substr(Math.floor(Math.random()*t),1));return o.join("")},n.random_number=function(e){return Math.floor(Math.random()*e)},n.random_number_string=function(e){var t=(""+(e-1)).length;return(Array(t+1).join("0")+n.random_number(e)).slice(-t)},n.getOrigin=function(e){return e+="/",e.split("/").slice(0,3).join("/")},n.isSameOriginUrl=function(e,n){return n||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},n.getParentDomain=function(e){return/^[0-9.]*$/.test(e)?e:/^\[/.test(e)?e:/[.]/.test(e)?e.split(".").slice(1).join("."):e},n.objectExtend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};var s="_jp";n.polluteGlobalNamespace=function(){s in t||(t[s]={})},n.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},n.userSetCode=function(e){return 1e3===e||e>=3e3&&e<=4999},n.countRTO=function(e){return e>100?3*e:e+200},n.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},n.bind=function(e,t){return e.bind?e.bind(t):function(){return e.apply(t,arguments)}},n.flatUrl=function(e){return-1===e.indexOf("?")&&-1===e.indexOf("#")},n.amendUrl=function(t){var o=e.location;if(!t)throw new Error("Wrong url for SockJS");if(!n.flatUrl(t))throw new Error("Only basic urls are supported in SockJS");return 0===t.indexOf("//")&&(t=o.protocol+t),0===t.indexOf("/")&&(t=o.protocol+"//"+o.host+t),t=t.replace(/[\/]+$/,"")},n.arrIndexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},n.arrSkip=function(e,t){var o=n.arrIndexOf(e,t);return-1===o?e.slice():e.slice(0,o).concat(e.slice(o+1))},n.isArray=Array.isArray||function(e){return{}.toString.call(e).indexOf("Array")>=0},n.delay=function(e,t){return"function"==typeof e&&(t=e,e=0),setTimeout(t,e)};var c,u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,l={"\0":"\\u0000","":"\\u0001","":"\\u0002","":"\\u0003","":"\\u0004","":"\\u0005","":"\\u0006","":"\\u0007","\b":"\\b","\t":"\\t","\n":"\\n","\v":"\\u000b","\f":"\\f","\r":"\\r","":"\\u000e","":"\\u000f","":"\\u0010","":"\\u0011","":"\\u0012","":"\\u0013","":"\\u0014","":"\\u0015","":"\\u0016","":"\\u0017","":"\\u0018","":"\\u0019","":"\\u001a","":"\\u001b","":"\\u001c","":"\\u001d","":"\\u001e","":"\\u001f",'"':'\\"',"\\":"\\\\","":"\\u007f","€":"\\u0080","":"\\u0081","‚":"\\u0082","ƒ":"\\u0083","„":"\\u0084","Â…":"\\u0085","†":"\\u0086","‡":"\\u0087","ˆ":"\\u0088","‰":"\\u0089","Š":"\\u008a","‹":"\\u008b","ÂŒ":"\\u008c","":"\\u008d","ÂŽ":"\\u008e","":"\\u008f","":"\\u0090","‘":"\\u0091","Â’":"\\u0092","“":"\\u0093","”":"\\u0094","•":"\\u0095","–":"\\u0096","—":"\\u0097","˜":"\\u0098","™":"\\u0099","š":"\\u009a","›":"\\u009b","Âœ":"\\u009c","":"\\u009d","ž":"\\u009e","Ÿ":"\\u009f","­":"\\u00ad","Ø€":"\\u0600","؁":"\\u0601","Ø‚":"\\u0602","؃":"\\u0603","Ø„":"\\u0604","܏":"\\u070f","áž´":"\\u17b4","ážµ":"\\u17b5","‌":"\\u200c","‍":"\\u200d","‎":"\\u200e","‏":"\\u200f","\u2028":"\\u2028","\u2029":"\\u2029","‪":"\\u202a","‫":"\\u202b","‬":"\\u202c","‭":"\\u202d","‮":"\\u202e"," ":"\\u202f","⁠":"\\u2060","⁡":"\\u2061","⁢":"\\u2062","⁣":"\\u2063","⁤":"\\u2064","⁥":"\\u2065","⁦":"\\u2066","⁧":"\\u2067","⁨":"\\u2068","⁩":"\\u2069","":"\\u206a","":"\\u206b","":"\\u206c","":"\\u206d","":"\\u206e","":"\\u206f","\ufeff":"\\ufeff","ï¿°":"\\ufff0","￱":"\\ufff1","￲":"\\ufff2","￳":"\\ufff3","ï¿´":"\\ufff4","￵":"\\ufff5","￶":"\\ufff6","ï¿·":"\\ufff7","￸":"\\ufff8","":"\\ufff9","":"\\ufffa","ï¿»":"\\ufffb","":"\\ufffc","�":"\\ufffd","￾":"\\ufffe","ï¿¿":"\\uffff"},p=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g,d=JSON&&JSON.stringify||function(e){return u.lastIndex=0,u.test(e)&&(e=e.replace(u,function(e){return l[e]})),'"'+e+'"'},h=function(e){var t,n={},o=[];for(t=0;t<65536;t++)o.push(String.fromCharCode(t));return e.lastIndex=0,o.join("").replace(e,function(e){return n[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4),""}),e.lastIndex=0,n};n.quote=function(e){var t=d(e);return p.lastIndex=0,p.test(t)?(c||(c=h(p)),t.replace(p,function(e){return c[e]})):t};var f=["websocket","xdr-streaming","xhr-streaming","iframe-eventsource","iframe-htmlfile","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"];n.probeProtocols=function(){for(var e={},t=0;t<f.length;t++){var n=f[t];e[n]=k[n]&&k[n].enabled()}return e},n.detectProtocols=function(e,t,n){var o={},r=[];t||(t=f);for(var i=0;i<t.length;i++){var a=t[i];o[a]=e[a]}var s=function(e){var t=e.shift();o[t]?r.push(t):e.length>0&&s(e)};return!1!==n.websocket&&s(["websocket"]),o["xhr-streaming"]&&!n.null_origin?r.push("xhr-streaming"):!o["xdr-streaming"]||n.cookie_needed||n.null_origin?s(["iframe-eventsource","iframe-htmlfile"]):r.push("xdr-streaming"),o["xhr-polling"]&&!n.null_origin?r.push("xhr-polling"):!o["xdr-polling"]||n.cookie_needed||n.null_origin?s(["iframe-xhr-polling","jsonp-polling"]):r.push("xdr-polling"),r};var m="_sockjs_global";n.createHook=function(){var e="a"+n.random_string(8);if(!(m in t)){var o={};t[m]=function(e){return e in o||(o[e]={id:e,del:function(){delete o[e]}}),o[e]}}return t[m](e)},n.attachMessage=function(e){n.attachEvent("message",e)},n.attachEvent=function(n,o){void 0!==t.addEventListener?t.addEventListener(n,o,!1):(e.attachEvent("on"+n,o),t.attachEvent("on"+n,o))},n.detachMessage=function(e){n.detachEvent("message",e)},n.detachEvent=function(n,o){void 0!==t.addEventListener?t.removeEventListener(n,o,!1):(e.detachEvent("on"+n,o),t.detachEvent("on"+n,o))};var g={},v=!1,y=function(){for(var e in g)g[e](),delete g[e]},b=function(){v||(v=!0,y())};n.attachEvent("unload",b),n.unload_add=function(e){var t=n.random_string(8);return g[t]=e,v&&n.delay(y),t},n.unload_del=function(e){e in g&&delete g[e]},n.createIframe=function(t,o){var r,i,a=e.createElement("iframe"),s=function(){clearTimeout(r);try{a.onload=null}catch(e){}a.onerror=null},c=function(){a&&(s(),setTimeout(function(){a&&a.parentNode.removeChild(a),a=null},0),n.unload_del(i))},u=function(e){a&&(c(),o(e))},l=function(e,t){try{a&&a.contentWindow&&a.contentWindow.postMessage(e,t)}catch(e){}};return a.src=t,a.style.display="none",a.style.position="absolute",a.onerror=function(){u("onerror")},a.onload=function(){clearTimeout(r),r=setTimeout(function(){u("onload timeout")},2e3)},e.body.appendChild(a),r=setTimeout(function(){u("timeout")},15e3),i=n.unload_add(c),{post:l,cleanup:c,loaded:s}},n.createHtmlfile=function(e,o){var r,i,a,c=new ActiveXObject("htmlfile"),u=function(){clearTimeout(r)},l=function(){c&&(u(),n.unload_del(i),a.parentNode.removeChild(a),a=c=null,CollectGarbage())},p=function(e){c&&(l(),o(e))},d=function(e,t){try{a&&a.contentWindow&&a.contentWindow.postMessage(e,t)}catch(e){}};c.open(),c.write('<html><script>document.domain="'+document.domain+'";<\/script></html>'),c.close(),c.parentWindow[s]=t[s];var h=c.createElement("div");return c.body.appendChild(h),a=c.createElement("iframe"),h.appendChild(a),a.src=e,r=setTimeout(function(){p("timeout")},15e3),i=n.unload_add(l),{post:d,cleanup:l,loaded:u}};var _=function(){};_.prototype=new i(["chunk","finish"]),_.prototype._start=function(e,o,r,i){var a=this;try{a.xhr=new XMLHttpRequest}catch(e){}if(!a.xhr)try{a.xhr=new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}(t.ActiveXObject||t.XDomainRequest)&&(o+=(-1===o.indexOf("?")?"?":"&")+"t="+ +new Date),a.unload_ref=n.unload_add(function(){a._cleanup(!0)});try{a.xhr.open(e,o,!0)}catch(e){return a.emit("finish",0,""),void a._cleanup()}if(i&&i.no_credentials||(a.xhr.withCredentials="true"),i&&i.headers)for(var s in i.headers)a.xhr.setRequestHeader(s,i.headers[s]);a.xhr.onreadystatechange=function(){if(a.xhr){var e=a.xhr;switch(e.readyState){case 3:try{var t=e.status,n=e.responseText}catch(e){}1223===t&&(t=204),n&&n.length>0&&a.emit("chunk",t,n);break;case 4:var t=e.status;1223===t&&(t=204),a.emit("finish",t,e.responseText),a._cleanup(!1)}}},a.xhr.send(r)},_.prototype._cleanup=function(e){var t=this;if(t.xhr){if(n.unload_del(t.unload_ref),t.xhr.onreadystatechange=function(){},e)try{t.xhr.abort()}catch(e){}t.unload_ref=t.xhr=null}},_.prototype.close=function(){var e=this;e.nuke(),e._cleanup(!0)},(n.XHRCorsObject=function(){var e=this,t=arguments;n.delay(function(){e._start.apply(e,t)})}).prototype=new _,(n.XHRLocalObject=function(e,t,o){var r=this;n.delay(function(){r._start(e,t,o,{no_credentials:!0})})}).prototype=new _;var w=n.XDRObject=function(e,t,o){var r=this;n.delay(function(){r._start(e,t,o)})};w.prototype=new i(["chunk","finish"]),w.prototype._start=function(e,t,o){var r=this,i=new XDomainRequest;t+=(-1===t.indexOf("?")?"?":"&")+"t="+ +new Date;var a=i.ontimeout=i.onerror=function(){r.emit("finish",0,""),r._cleanup(!1)};i.onprogress=function(){r.emit("chunk",200,i.responseText)},i.onload=function(){r.emit("finish",200,i.responseText),r._cleanup(!1)},r.xdr=i,r.unload_ref=n.unload_add(function(){r._cleanup(!0)});try{r.xdr.open(e,t),r.xdr.send(o)}catch(e){a()}},w.prototype._cleanup=function(e){var t=this;if(t.xdr){if(n.unload_del(t.unload_ref),t.xdr.ontimeout=t.xdr.onerror=t.xdr.onprogress=t.xdr.onload=null,e)try{t.xdr.abort()}catch(e){}t.unload_ref=t.xdr=null}},w.prototype.close=function(){var e=this;e.nuke(),e._cleanup(!0)},n.isXHRCorsCapable=function(){return t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?1:t.XDomainRequest&&e.domain?2:P.enabled()?3:4};var k=function(e,o,r){if(this===t)return new k(e,o,r);var i,a=this;a._options={devel:!1,debug:!1,protocols_whitelist:[],info:void 0,rtt:void 0},r&&n.objectExtend(a._options,r),a._base_url=n.amendUrl(e),a._server=a._options.server||n.random_number_string(1e3),a._options.protocols_whitelist&&a._options.protocols_whitelist.length?i=a._options.protocols_whitelist:(i="string"==typeof o&&o.length>0?[o]:n.isArray(o)?o:null)&&a._debug('Deprecated API: Use "protocols_whitelist" option instead of supplying protocol list as a second parameter to SockJS constructor.'),a._protocols=[],a.protocol=null,a.readyState=k.CONNECTING,a._ir=H(a._base_url),a._ir.onfinish=function(e,t){a._ir=null,e?(a._options.info&&(e=n.objectExtend(e,a._options.info)),a._options.rtt&&(t=a._options.rtt),a._applyInfo(e,t,i),a._didClose()):a._didClose(1002,"Can't connect to server",!0)}};k.prototype=new o,k.version="0.3.4",k.CONNECTING=0,k.OPEN=1,k.CLOSING=2,k.CLOSED=3,k.prototype._debug=function(){this._options.debug&&n.log.apply(n,arguments)},k.prototype._dispatchOpen=function(){var e=this;e.readyState===k.CONNECTING?(e._transport_tref&&(clearTimeout(e._transport_tref),e._transport_tref=null),e.readyState=k.OPEN,e.dispatchEvent(new r("open"))):e._didClose(1006,"Server lost session")},k.prototype._dispatchMessage=function(e){var t=this;t.readyState===k.OPEN&&t.dispatchEvent(new r("message",{data:e}))},k.prototype._dispatchHeartbeat=function(e){var t=this;t.readyState===k.OPEN&&t.dispatchEvent(new r("heartbeat",{}))},k.prototype._didClose=function(e,t,o){var i=this;if(i.readyState!==k.CONNECTING&&i.readyState!==k.OPEN&&i.readyState!==k.CLOSING)throw new Error("INVALID_STATE_ERR");i._ir&&(i._ir.nuke(),i._ir=null),i._transport&&(i._transport.doCleanup(),i._transport=null);var a=new r("close",{code:e,reason:t,wasClean:n.userSetCode(e)});if(!n.userSetCode(e)&&i.readyState===k.CONNECTING&&!o){if(i._try_next_protocol(a))return;a=new r("close",{code:2e3,reason:"All transports failed",wasClean:!1,last_event:a})}i.readyState=k.CLOSED,n.delay(function(){i.dispatchEvent(a)})},k.prototype._didMessage=function(e){var t=this;switch(e.slice(0,1)){case"o":t._dispatchOpen();break;case"a":for(var n=JSON.parse(e.slice(1)||"[]"),o=0;o<n.length;o++)t._dispatchMessage(n[o]);break;case"m":var n=JSON.parse(e.slice(1)||"null");t._dispatchMessage(n);break;case"c":var n=JSON.parse(e.slice(1)||"[]");t._didClose(n[0],n[1]);break;case"h":t._dispatchHeartbeat()}},k.prototype._try_next_protocol=function(t){var o=this;for(o.protocol&&(o._debug("Closed transport:",o.protocol,""+t),o.protocol=null),o._transport_tref&&(clearTimeout(o._transport_tref),o._transport_tref=null);;){var r=o.protocol=o._protocols.shift();if(!r)return!1;if(k[r]&&!0===k[r].need_body&&(!e.body||void 0!==e.readyState&&"complete"!==e.readyState))return o._protocols.unshift(r),o.protocol="waiting-for-load",n.attachEvent("load",function(){o._try_next_protocol()}),!0;if(k[r]&&k[r].enabled(o._options)){var i=k[r].roundTrips||1,a=(o._options.rto||0)*i||5e3;o._transport_tref=n.delay(a,function(){o.readyState===k.CONNECTING&&o._didClose(2007,"Transport timeouted")});var s=n.random_string(8),c=o._base_url+"/"+o._server+"/"+s;return o._debug("Opening transport:",r," url:"+c," RTO:"+o._options.rto),o._transport=new k[r](o,c,o._base_url),!0}o._debug("Skipping transport:",r)}},k.prototype.close=function(e,t){var o=this;if(e&&!n.userSetCode(e))throw new Error("INVALID_ACCESS_ERR");return(o.readyState===k.CONNECTING||o.readyState===k.OPEN)&&(o.readyState=k.CLOSING,o._didClose(e||1e3,t||"Normal closure"),!0)},k.prototype.send=function(e){var t=this;if(t.readyState===k.CONNECTING)throw new Error("INVALID_STATE_ERR");return t.readyState===k.OPEN&&t._transport.doSend(n.quote(""+e)),!0},k.prototype._applyInfo=function(t,o,r){var i=this;i._options.info=t,i._options.rtt=o,i._options.rto=n.countRTO(o),i._options.info.null_origin=!e.domain;var a=n.probeProtocols();i._protocols=n.detectProtocols(a,r,t)};var C=k.websocket=function(e,o){var r=this,i=o+"/websocket";i="https"===i.slice(0,5)?"wss"+i.slice(5):"ws"+i.slice(4),r.ri=e,r.url=i;var a=t.WebSocket||t.MozWebSocket;r.ws=new a(r.url),r.ws.onmessage=function(e){r.ri._didMessage(e.data)},r.unload_ref=n.unload_add(function(){r.ws.close()}),r.ws.onclose=function(){r.ri._didMessage(n.closeFrame(1006,"WebSocket connection broken"))}};C.prototype.doSend=function(e){this.ws.send("["+e+"]")},C.prototype.doCleanup=function(){var e=this,t=e.ws;t&&(t.onmessage=t.onclose=null,t.close(),n.unload_del(e.unload_ref),e.unload_ref=e.ri=e.ws=null)},C.enabled=function(){return!!t.WebSocket||!!t.MozWebSocket},C.roundTrips=2;var E=function(){};E.prototype.send_constructor=function(e){var t=this;t.send_buffer=[],t.sender=e},E.prototype.doSend=function(e){var t=this;t.send_buffer.push(e),t.send_stop||t.send_schedule()},E.prototype.send_schedule_wait=function(){var e,t=this;t.send_stop=function(){t.send_stop=null,clearTimeout(e)},e=n.delay(25,function(){t.send_stop=null,t.send_schedule()})},E.prototype.send_schedule=function(){var e=this;if(e.send_buffer.length>0){var t="["+e.send_buffer.join(",")+"]";e.send_stop=e.sender(e.trans_url,t,function(t,n){e.send_stop=null,!1===t?e.ri._didClose(1006,"Sending error "+n):e.send_schedule_wait()}),e.send_buffer=[]}},E.prototype.send_destructor=function(){var e=this;e._send_stop&&e._send_stop(),e._send_stop=null};var x=function(t,o,r){var i=this;if(!("_send_form"in i)){var a=i._send_form=e.createElement("form"),s=i._send_area=e.createElement("textarea");s.name="d",a.style.display="none",a.style.position="absolute",a.method="POST",a.enctype="application/x-www-form-urlencoded",a.acceptCharset="UTF-8",a.appendChild(s),e.body.appendChild(a)}var a=i._send_form,s=i._send_area,c="a"+n.random_string(8);a.target=c,a.action=t+"/jsonp_send?i="+c;var u;try{u=e.createElement('<iframe name="'+c+'">')}catch(t){u=e.createElement("iframe"),u.name=c}u.id=c,a.appendChild(u),u.style.display="none";try{s.value=o}catch(e){n.log("Your browser is seriously broken. Go home! "+e.message)}a.submit();var l=function(e){u.onerror&&(u.onreadystatechange=u.onerror=u.onload=null,n.delay(500,function(){u.parentNode.removeChild(u),u=null}),s.value="",r(!0))};return u.onerror=u.onload=l,u.onreadystatechange=function(e){"complete"==u.readyState&&l()},l},R=function(e){return function(t,n,o){return new e("POST",t+"/xhr_send",n).onfinish=function(e,t){o(200===e||204===e,"http status "+e)},function(e){o(!1,e)}}},T=function(t,o){var r,i,a=e.createElement("script"),s=function(e){i&&(i.parentNode.removeChild(i),i=null),a&&(clearTimeout(r),a.parentNode.removeChild(a),a.onreadystatechange=a.onerror=a.onload=a.onclick=null,a=null,o(e),o=null)},c=!1,u=null;if(a.id="a"+n.random_string(8),a.src=t,a.type="text/javascript",a.charset="UTF-8",a.onerror=function(e){u||(u=setTimeout(function(){c||s(n.closeFrame(1006,"JSONP script loaded abnormally (onerror)"))},1e3))},a.onload=function(e){s(n.closeFrame(1006,"JSONP script loaded abnormally (onload)"))},a.onreadystatechange=function(e){if(/loaded|closed/.test(a.readyState)){if(a&&a.htmlFor&&a.onclick){c=!0;try{a.onclick()}catch(e){}}a&&s(n.closeFrame(1006,"JSONP script loaded abnormally (onreadystatechange)"))}},void 0===a.async&&e.attachEvent)if(/opera/i.test(navigator.userAgent))i=e.createElement("script"),i.text="try{var a = document.getElementById('"+a.id+"'); if(a)a.onerror();}catch(x){};",a.async=i.async=!1;else{try{a.htmlFor=a.id,a.event="onclick"}catch(e){}a.async=!0}void 0!==a.async&&(a.async=!0),r=setTimeout(function(){s(n.closeFrame(1006,"JSONP script loaded abnormally (timeout)"))},35e3);var l=e.getElementsByTagName("head")[0];return l.insertBefore(a,l.firstChild),i&&l.insertBefore(i,l.firstChild),s},S=k["jsonp-polling"]=function(e,t){n.polluteGlobalNamespace();var o=this;o.ri=e,o.trans_url=t,o.send_constructor(x),o._schedule_recv()};S.prototype=new E,S.prototype._schedule_recv=function(){var e=this,t=function(t){e._recv_stop=null,t&&(e._is_closing||e.ri._didMessage(t)),e._is_closing||e._schedule_recv()};e._recv_stop=O(e.trans_url+"/jsonp",T,t)},S.enabled=function(){return!0},S.need_body=!0,S.prototype.doCleanup=function(){var e=this;e._is_closing=!0,e._recv_stop&&e._recv_stop(),e.ri=e._recv_stop=null,e.send_destructor()};var O=function(e,o,r){var i="a"+n.random_string(6),a=e+"?c="+escape(s+"."+i),c=0,u=function(e){switch(c){case 0:delete t[s][i],r(e);break;case 1:r(e),c=2;break;case 2:delete t[s][i]}},l=o(a,u);return t[s][i]=l,function(){t[s][i]&&(c=1,t[s][i](n.closeFrame(1e3,"JSONP user aborted read")))}},N=function(){};N.prototype=new E,N.prototype.run=function(e,t,n,o,r){var i=this;i.ri=e,i.trans_url=t,i.send_constructor(R(r)),i.poll=new G(e,o,t+n,r)},N.prototype.doCleanup=function(){var e=this;e.poll&&(e.poll.abort(),e.poll=null)};var D=k["xhr-streaming"]=function(e,t){this.run(e,t,"/xhr_streaming",J,n.XHRCorsObject)};D.prototype=new N,D.enabled=function(){return t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest&&!/opera/i.test(navigator.userAgent)},D.roundTrips=2,D.need_body=!0;var M=k["xdr-streaming"]=function(e,t){this.run(e,t,"/xhr_streaming",J,n.XDRObject)};M.prototype=new N,M.enabled=function(){return!!t.XDomainRequest},M.roundTrips=2;var I=k["xhr-polling"]=function(e,t){this.run(e,t,"/xhr",J,n.XHRCorsObject)};I.prototype=new N,I.enabled=D.enabled,I.roundTrips=2;var L=k["xdr-polling"]=function(e,t){this.run(e,t,"/xhr",J,n.XDRObject)};L.prototype=new N,L.enabled=M.enabled,L.roundTrips=2;var P=function(){};P.prototype.i_constructor=function(e,t,o){var r=this;r.ri=e,r.origin=n.getOrigin(o),r.base_url=o,r.trans_url=t;var i=o+"/iframe.html";r.ri._options.devel&&(i+="?t="+ +new Date),r.window_id=n.random_string(8),i+="#"+r.window_id,r.iframeObj=n.createIframe(i,function(e){r.ri._didClose(1006,"Unable to load an iframe ("+e+")")}),r.onmessage_cb=n.bind(r.onmessage,r),n.attachMessage(r.onmessage_cb)},P.prototype.doCleanup=function(){var e=this;if(e.iframeObj){n.detachMessage(e.onmessage_cb);try{e.iframeObj.iframe.contentWindow&&e.postMessage("c")}catch(e){}e.iframeObj.cleanup(),e.iframeObj=null,e.onmessage_cb=e.iframeObj=null}},P.prototype.onmessage=function(e){var t=this;if(e.origin===t.origin){var n=e.data.slice(0,8),o=e.data.slice(8,9),r=e.data.slice(9);if(n===t.window_id)switch(o){case"s":t.iframeObj.loaded(),t.postMessage("s",JSON.stringify([k.version,t.protocol,t.trans_url,t.base_url]));break;case"t":t.ri._didMessage(r)}}},P.prototype.postMessage=function(e,t){var n=this;n.iframeObj.post(n.window_id+e+(t||""),n.origin)},P.prototype.doSend=function(e){this.postMessage("m",e)},P.enabled=function(){var e=navigator&&navigator.userAgent&&-1!==navigator.userAgent.indexOf("Konqueror");return("function"==typeof t.postMessage||"object"==typeof t.postMessage)&&!e};var A,F=function(e,o){parent!==t?parent.postMessage(A+e+(o||""),"*"):n.log("Can't postMessage, no parent window.",e,o)},j=function(){};j.prototype._didClose=function(e,t){F("t",n.closeFrame(e,t))},j.prototype._didMessage=function(e){F("t",e)},j.prototype._doSend=function(e){this._transport.doSend(e)},j.prototype._doCleanup=function(){this._transport.doCleanup()},n.parent_origin=void 0,k.bootstrap_iframe=function(){var o;A=e.location.hash.slice(1);var r=function(e){if(e.source===parent&&(void 0===n.parent_origin&&(n.parent_origin=e.origin),e.origin===n.parent_origin)){var r=e.data.slice(0,8),i=e.data.slice(8,9),a=e.data.slice(9);if(r===A)switch(i){case"s":var s=JSON.parse(a),c=s[0],u=s[1],l=s[2],p=s[3];if(c!==k.version&&n.log('Incompatibile SockJS! Main site uses: "'+c+'", the iframe: "'+k.version+'".'),!n.flatUrl(l)||!n.flatUrl(p))return void n.log("Only basic urls are supported in SockJS");if(!n.isSameOriginUrl(l)||!n.isSameOriginUrl(p))return void n.log("Can't connect to different domain from within an iframe. ("+JSON.stringify([t.location.href,l,p])+")");o=new j,o._transport=new j[u](o,l,p);break;case"m":o._doSend(a);break;case"c":o&&o._doCleanup(),o=null}}};n.attachMessage(r),F("s")};var U=function(e,t){var o=this;n.delay(function(){o.doXhr(e,t)})};U.prototype=new i(["finish"]),U.prototype.doXhr=function(e,t){var o=this,r=(new Date).getTime(),i=new t("GET",e+"/info"),a=n.delay(8e3,function(){i.ontimeout()});i.onfinish=function(e,t){if(clearTimeout(a),a=null,200===e){var n=(new Date).getTime()-r,i=JSON.parse(t);"object"!=typeof i&&(i={}),o.emit("finish",i,n)}else o.emit("finish")},i.ontimeout=function(){i.close(),o.emit("finish")}};var B=function(t){var o=this,r=function(){var e=new P;e.protocol="w-iframe-info-receiver";var n=function(t){if("string"==typeof t&&"m"===t.substr(0,1)){var n=JSON.parse(t.substr(1)),r=n[0],i=n[1];o.emit("finish",r,i)}else o.emit("finish");e.doCleanup(),e=null},r={_options:{},_didClose:n,_didMessage:n};e.i_constructor(r,t,t)};e.body?r():n.attachEvent("load",r)};B.prototype=new i(["finish"]);var V=function(){var e=this;n.delay(function(){e.emit("finish",{},2e3)})};V.prototype=new i(["finish"]);var H=function(e){if(n.isSameOriginUrl(e))return new U(e,n.XHRLocalObject);switch(n.isXHRCorsCapable()){case 1:return new U(e,n.XHRLocalObject);case 2:return new U(e,n.XDRObject);case 3:return new B(e);default:return new V}};(j["w-iframe-info-receiver"]=function(e,t,o){new U(o,n.XHRLocalObject).onfinish=function(t,n){e._didMessage("m"+JSON.stringify([t,n])),e._didClose()}}).prototype.doCleanup=function(){};var W=k["iframe-eventsource"]=function(){var e=this;e.protocol="w-iframe-eventsource",e.i_constructor.apply(e,arguments)};W.prototype=new P,W.enabled=function(){return"EventSource"in t&&P.enabled()},W.need_body=!0,W.roundTrips=3,(j["w-iframe-eventsource"]=function(e,t){this.run(e,t,"/eventsource",Y,n.XHRLocalObject)}).prototype=new N;var $=k["iframe-xhr-polling"]=function(){var e=this;e.protocol="w-iframe-xhr-polling",e.i_constructor.apply(e,arguments)};$.prototype=new P,$.enabled=function(){return t.XMLHttpRequest&&P.enabled()},$.need_body=!0,$.roundTrips=3,(j["w-iframe-xhr-polling"]=function(e,t){this.run(e,t,"/xhr",J,n.XHRLocalObject)}).prototype=new N;var q=k["iframe-htmlfile"]=function(){var e=this;e.protocol="w-iframe-htmlfile",e.i_constructor.apply(e,arguments)};q.prototype=new P,q.enabled=function(){return P.enabled()},q.need_body=!0,q.roundTrips=3,(j["w-iframe-htmlfile"]=function(e,t){this.run(e,t,"/htmlfile",z,n.XHRLocalObject)}).prototype=new N;var G=function(e,t,n,o){var r=this;r.ri=e,r.Receiver=t,r.recv_url=n,r.AjaxObject=o,r._scheduleRecv()};G.prototype._scheduleRecv=function(){var e=this,t=e.poll=new e.Receiver(e.recv_url,e.AjaxObject),n=0;t.onmessage=function(t){n+=1,e.ri._didMessage(t.data)},t.onclose=function(n){e.poll=t=t.onmessage=t.onclose=null,e.poll_is_closing||("permanent"===n.reason?e.ri._didClose(1006,"Polling error ("+n.reason+")"):e._scheduleRecv())}},G.prototype.abort=function(){var e=this;e.poll_is_closing=!0,e.poll&&e.poll.abort()};var Y=function(e){var t=this,o=new EventSource(e);o.onmessage=function(e){t.dispatchEvent(new r("message",{data:unescape(e.data)}))},t.es_close=o.onerror=function(e,i){var a=i?"user":2!==o.readyState?"network":"permanent";t.es_close=o.onmessage=o.onerror=null,o.close(),o=null,n.delay(200,function(){t.dispatchEvent(new r("close",{reason:a}))})}};Y.prototype=new o,Y.prototype.abort=function(){var e=this;e.es_close&&e.es_close({},!0)};var X,K=function(){if(void 0===X)if("ActiveXObject"in t)try{X=!!new ActiveXObject("htmlfile")}catch(e){}else X=!1;return X},z=function(e){var o=this;n.polluteGlobalNamespace(),o.id="a"+n.random_string(6,26),e+=(-1===e.indexOf("?")?"?":"&")+"c="+escape(s+"."+o.id);var i,a=K()?n.createHtmlfile:n.createIframe;t[s][o.id]={start:function(){i.loaded()},message:function(e){o.dispatchEvent(new r("message",{data:e}))},stop:function(){o.iframe_close({},"network")}},o.iframe_close=function(e,n){i.cleanup(),o.iframe_close=i=null,delete t[s][o.id],o.dispatchEvent(new r("close",{reason:n}))},i=a(e,function(e){o.iframe_close({},"permanent")})};z.prototype=new o,z.prototype.abort=function(){var e=this;e.iframe_close&&e.iframe_close({},"user")};var J=function(e,t){var n=this,o=0;n.xo=new t("POST",e,null),n.xo.onchunk=function(e,t){if(200===e)for(;;){var i=t.slice(o),a=i.indexOf("\n");if(-1===a)break;o+=a+1;var s=i.slice(0,a);n.dispatchEvent(new r("message",{data:s}))}},n.xo.onfinish=function(e,t){n.xo.onchunk(e,t),n.xo=null;var o=200===e?"network":"permanent";n.dispatchEvent(new r("close",{reason:o}))}};return J.prototype=new o,J.prototype.abort=function(){var e=this;e.xo&&(e.xo.close(),e.dispatchEvent(new r("close",{reason:"user"})),e.xo=null)},k.getUtils=function(){return n},k.getIframeTransport=function(){return P},k}(),"_sockjs_onload"in window&&setTimeout(_sockjs_onload,1),"function"==typeof define&&define.amd&&define("sockjs",[],function(){return SockJS}),function(){function set_cookie(e,t){document.cookie=e+"="+t+"; Expires=21 Oct 2025 00:0:00 GMT;"}function get_cookie(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function make_websocket(e){return e.match(/^\w{0,7}:\/\//)||(e=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+e),e=e.replace(/^state:\/\//,"wss://"),e=e.replace(/^istate:\/\//,"ws://"),e=e.replace(/^statei:\/\//,"ws://"),e=e.replace(/^https:\/\//,"wss://"),e=e.replace(/^http:\/\//,"ws://"),console.log("opening websocket to",e),
13
+ new WebSocket(e+"/"+unique_sockjs_string+"/websocket")}function client_creds(e){var t=bus.fetch("ls/me");if(bus.log("connect: me is",t),!t.client){var n=get_cookie("client");t.client=n||Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2),bus.save(t)}return set_cookie("client",t.client),{clientid:t.client}}function localstorage_client(e){function t(){o.log("localstore: saving",i);for(var e in i)localStorage.setItem(e,JSON.stringify(i[e]));r=!1}function n(e){o.log("Got a localstorage update",e)}try{localStorage}catch(e){return}var o=this;o.log(this);var r=!1,i={};o(e).to_fetch=function(e){var t=localStorage.getItem(e);return t?JSON.parse(t):{key:e}},o(e).to_save=function(e){return o.log("localStore: on_save:",e.key),i[e.key]=e,r||(setTimeout(t,50),r=!0),o.save.fire(e),e},o(e).to_delete=function(e){localStorage.removeItem(e)},window.addEventListener?window.addEventListener("storage",n,!1):window.attachEvent("onstorage",n)}function url_store(e){var t=this,n=function(e){return unescape(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+escape(e).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}(key);n=n&&JSON.parse(n)||{key:key},t(e).to_save=function(e){window.history.replaceState("","",document.location.origin+document.location.pathname+escape("?"+key+"="+JSON.stringify(e))),t.save.fire(e)}}function live_reload_from(e){if(!window.live_reload_initialized){var t=!0;this(function(){var n=new RegExp(".*/"+e+"/(.*)"),o=window.location.href.match(n)[1],r=bus.fetch("/code/invisible.college/"+o).code;if(r){if(t)return void(t=!1);var i=window.pageYOffset;document.body.innerHTML=r;var a=0,s=setInterval(function(){a>500&&clearInterval(s),a+=100,window.scrollTo(0,i)},100)}}),window.live_reload_initialized=!0}}function React_View(e){function t(t,n){var o=e[t];e[t]=function(){return n.bind(this)(o)}}function n(e){var t,n=Object.create(Object.getPrototypeOf(e)),o=Object.getOwnPropertyNames(e);for(t=0;t<o.length;t++)Object.defineProperty(n,o[t],Object.getOwnPropertyDescriptor(e,o[t]));return n}t("componentWillMount",function(t){if(void 0===e.displayName)throw"Component needs a displayName";this.name=e.displayName.toLowerCase().replace(" ","_"),this.key="component/"+components_count++,components[this.key]=this,function(e,t,n){delete e[t],Object.defineProperty(e,t,{get:function(){return bus.fetch(n)},configurable:!0})}(this,"local",this.key),t&&t.apply(this,arguments);var n=this.render;this.render=bus.reactive(function(){if(console.assert(this!==window),this.render.called_directly){delete dirty_components[this.key];for(var e in this.props)this.props.hasOwnProperty(e)&&null!==this.props[e]&&"object"==typeof this.props[e]&&this.props[e].key&&bus.fetch(this.props[e].key);return n.apply(this,arguments)}dirty_components[this.key]=!0,schedule_re_render()})}),t("componentWillUnmount",function(e){e&&e.apply(this,arguments),bus.delete(this.key),delete components[this.key],delete dirty_components[this.key]}),e.shouldComponentUpdate=function(e,t){return void 0!==dirty_components[this.key]||(e=n(e),this_props=n(this.props),delete e.children,delete this_props.children,e=bus.clone(e),this_props=bus.clone(this_props),!bus.deep_equals([t,e],[this.state,this_props]))},e.loading=function(){return this.render.loading()};var o=React.createClass(e),r=function(t,n){return t=t||{},t["data-key"]=t.key,t["data-widget"]=e.displayName,React.version>="0.12."?React.createElement(o,t,n):o(t,n)};return r.prototype=o.prototype,r}function schedule_re_render(){re_render_scheduled||(requestAnimationFrame(function(){re_render_scheduled=!1;for(var e in dirty_components)if(dirty_components[e]&&components[e])try{re_rendering=!0,components[e].forceUpdate()}finally{re_rendering=!1}}),re_render_scheduled=!0)}function make_client_statebus_maker(){var extra_stuff=["localstorage_client make_websocket client_creds","url_store components live_reload_from"].join(" ").split(" ");if(window.statebus){var orig_statebus=statebus;window.statebus=function make_client_bus(){for(var bus=orig_statebus(),i=0;i<extra_stuff.length;i++)bus[extra_stuff[i]]=eval(extra_stuff[i]);return bus.localstorage_client("ls/*"),bus}}}function load_scripts(){if(!window.statebus){var e=script_option("src");e&&(e=e.match(/(.*)[\/\\]/)),e=e?e[1]+"/":"";var t={react:e+"extras/react.js",sockjs:e+"extras/sockjs.js",coffee:e+"extras/coffee.js",statebus:e+"statebus.js"};"https://stateb.us/"==e&&(t.statebus=e+"statebus4.js");for(var n in t)document.write('<script src="'+t[n]+'" charset="utf-8"><\/script>')}document.addEventListener("DOMContentLoaded",scripts_ready,!1)}function script_option(e){var t=document.querySelector('script[src*="client"][src$=".js"]');return t&&t.getAttribute(e)}function scripts_ready(){if(react_render=React.version>="0.14."?ReactDOM.render:React.render,make_client_statebus_maker(),window.bus=window.statebus(),window.bus.label="bus",window.sb=bus.sb,statebus.widget=React_View,statebus.create_react_class=React_View,improve_react(),window.dom=window.ui=window.dom||window.ui||{},window.ignore_flashbacks=!1,"none"!==statebus_server&&bus.net_mount("/*",statebus_server),window.statebus_backdoor&&(window.master=statebus(),master.net_mount("*",statebus_backdoor)),bus.net_automount(),bus("/new/*").to_save=function(e){if(!(e.key.split("/").length>3)){var t=e.key;e.key=t+"/"+Math.random().toString(36).substring(2,12),statebus.cache[e.key]=e,delete statebus.cache[t],bus.save(e)}},load_coffee(),statebus.compile_coffee=compile_coffee,statebus.load_client_code=load_client_code,statebus.load_widgets=load_widgets,window.statebus_ready)for(var e=0;e<statebus_ready.length;e++)statebus_ready[e]();load_widgets()}function improve_react(){function e(e,t){window[e]=React.createFactory(React.createClass({getInitialState:function(){return{value:this.props.value}},componentWillReceiveProps:function(e){this.setState({value:e.value})},onChange:function(e){this.props.onChange&&this.props.onChange(e),this.props.value&&this.setState({value:e.target.value})},render:function(){var e={};for(var n in this.props)this.props.hasOwnProperty(n)&&(e[n]=this.props[n]);return this.state.value&&(e.value=this.state.value),e.onChange=this.onChange,t(e)}}))}function t(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}for(var n=["alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","bufferedRendering","captionSide","caretColor","clear","clip","clipPath","clipRule","color","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","cx","cy","d","direction","display","dominantBaseline","emptyCells","fill","fillOpacity","fillRule","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","floodColor","floodOpacity","font","fontDisplay","fontFamily","fontFeatureSettings","fontKerning","fontSize","fontStretch","fontStyle","fontVariant","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariationSettings","fontWeight","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageRendering","inlineSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lightingColor","lineBreak","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marker","markerEnd","markerMid","markerStart","mask","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","maxZoom","minBlockSize","minHeight","minInlineSize","minWidth","minZoom","mixBlendMode","objectFit","objectPosition","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","orphans","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","page","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","quotes","r","resize","right","rowGap","rx","ry","scrollBehavior","shapeImageThreshold","shapeMargin","shapeOutside","shapeRendering","size","speak","src","stopColor","stopOpacity","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","tableLayout","textAlign","textAlignLast","textAnchor","textCombineUpright","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textIndent","textOrientation","textOverflow","textRendering","textShadow","textSizeAdjust","textTransform","textUnderlinePosition","top","touchAction","transform","transformBox","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","unicodeBidi","unicodeRange","userSelect","userZoom","vectorEffect","verticalAlign","visibility","webkitAlignContent","webkitAlignItems","webkitAlignSelf","webkitAnimation","webkitAnimationDelay","webkitAnimationDirection","webkitAnimationDuration","webkitAnimationFillMode","webkitAnimationIterationCount","webkitAnimationName","webkitAnimationPlayState","webkitAnimationTimingFunction","webkitAppRegion","webkitAppearance","webkitBackfaceVisibility","webkitBackgroundClip","webkitBackgroundOrigin","webkitBackgroundSize","webkitBorderAfter","webkitBorderAfterColor","webkitBorderAfterStyle","webkitBorderAfterWidth","webkitBorderBefore","webkitBorderBeforeColor","webkitBorderBeforeStyle","webkitBorderBeforeWidth","webkitBorderBottomLeftRadius","webkitBorderBottomRightRadius","webkitBorderEnd","webkitBorderEndColor","webkitBorderEndStyle","webkitBorderEndWidth","webkitBorderHorizontalSpacing","webkitBorderImage","webkitBorderRadius","webkitBorderStart","webkitBorderStartColor","webkitBorderStartStyle","webkitBorderStartWidth","webkitBorderTopLeftRadius","webkitBorderTopRightRadius","webkitBorderVerticalSpacing","webkitBoxAlign","webkitBoxDecorationBreak","webkitBoxDirection","webkitBoxFlex","webkitBoxOrdinalGroup","webkitBoxOrient","webkitBoxPack","webkitBoxReflect","webkitBoxShadow","webkitBoxSizing","webkitClipPath","webkitColumnBreakAfter","webkitColumnBreakBefore","webkitColumnBreakInside","webkitColumnCount","webkitColumnGap","webkitColumnRule","webkitColumnRuleColor","webkitColumnRuleStyle","webkitColumnRuleWidth","webkitColumnSpan","webkitColumnWidth","webkitColumns","webkitFilter","webkitFlex","webkitFlexBasis","webkitFlexDirection","webkitFlexFlow","webkitFlexGrow","webkitFlexShrink","webkitFlexWrap","webkitFontFeatureSettings","webkitFontSizeDelta","webkitFontSmoothing","webkitHighlight","webkitHyphenateCharacter","webkitJustifyContent","webkitLineBreak","webkitLineClamp","webkitLocale","webkitLogicalHeight","webkitLogicalWidth","webkitMarginAfter","webkitMarginAfterCollapse","webkitMarginBefore","webkitMarginBeforeCollapse","webkitMarginBottomCollapse","webkitMarginCollapse","webkitMarginEnd","webkitMarginStart","webkitMarginTopCollapse","webkitMask","webkitMaskBoxImage","webkitMaskBoxImageOutset","webkitMaskBoxImageRepeat","webkitMaskBoxImageSlice","webkitMaskBoxImageSource","webkitMaskBoxImageWidth","webkitMaskClip","webkitMaskComposite","webkitMaskImage","webkitMaskOrigin","webkitMaskPosition","webkitMaskPositionX","webkitMaskPositionY","webkitMaskRepeat","webkitMaskRepeatX","webkitMaskRepeatY","webkitMaskSize","webkitMaxLogicalHeight","webkitMaxLogicalWidth","webkitMinLogicalHeight","webkitMinLogicalWidth","webkitOpacity","webkitOrder","webkitPaddingAfter","webkitPaddingBefore","webkitPaddingEnd","webkitPaddingStart","webkitPerspective","webkitPerspectiveOrigin","webkitPerspectiveOriginX","webkitPerspectiveOriginY","webkitPrintColorAdjust","webkitRtlOrdering","webkitRubyPosition","webkitShapeImageThreshold","webkitShapeMargin","webkitShapeOutside","webkitTapHighlightColor","webkitTextCombine","webkitTextDecorationsInEffect","webkitTextEmphasis","webkitTextEmphasisColor","webkitTextEmphasisPosition","webkitTextEmphasisStyle","webkitTextFillColor","webkitTextOrientation","webkitTextSecurity","webkitTextSizeAdjust","webkitTextStroke","webkitTextStrokeColor","webkitTextStrokeWidth","webkitTransform","webkitTransformOrigin","webkitTransformOriginX","webkitTransformOriginY","webkitTransformOriginZ","webkitTransformStyle","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitUserDrag","webkitUserModify","webkitUserSelect","webkitWritingMode","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","x","y","zIndex","zoom"],o={d:1,cx:1,cy:1,rx:1,ry:1,x:1,y:1,content:1,fill:1,stroke:1,src:1},r={},i=0;i<n.length;i++)o[n[i]]||(r[n[i]]=!0);for(var a in React.DOM)window[a.toUpperCase()]=function(e){return function(){for(var t=[],n={style:{}},o=0;o<arguments.length;o++){var i=arguments[o];if("string"==typeof i||i instanceof String||i&&React.isValidElement(i)||void 0===i)t.push(i);else if(i instanceof Array)Array.prototype.push.apply(t,i);else if(i instanceof Object)for(var a in i)if(!r[a]||a in{width:1,height:1,size:1}&&e in{canvas:1,input:1,embed:1,object:1})if("style"===a)for(var s in i[a])n.style[s]=i[a][s];else n[a]=i[a],"key"===a&&(n["data-key"]=i[a]);else n.style[a]=i[a]}return 0===t.length&&(t=void 0),"input"===n.ref&&bus.log(n,t),React.DOM[e](n,t)}}(a);e("INPUT",window.INPUT),e("TEXTAREA",window.TEXTAREA),make_syncarea();var s=window.IMG;window.IMG=function(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]),arguments[t].state&&(e[t].src="data:;base64,"+fetch(e[t].state)._);return s.apply(this,e)},window.STYLE=function(e){return React.DOM.style({dangerouslySetInnerHTML:{__html:t(e)}})},window.TITLE=function(e){return React.DOM.title({dangerouslySetInnerHTML:{__html:t(e)}})}}function autodetect_args(e){if(!e.args){var t=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,n=/([^\s,]+)/g,o=e.toString().replace(t,"");e.args=o.slice(o.indexOf("(")+1,o.indexOf(")")).match(n)||[]}}function make_component(e,t){window[e]=users_widgets[e]=window.React_View({displayName:e,render:function(){var n=[],o=window.dom[e];autodetect_args(o);for(var r=0;r<o.args.length;r++)n.push(this.props[o.args[r]]);var i;if(t)try{i=o.apply(this,n)}catch(e){console.error(e)}else i=o.apply(this,n);return i&&i.props&&(i.props["data-widget"]=e,i.props["data-key"]=this.props["data-key"]),React.isValidElement(i)||(i=React.DOM.span(null,"string"==typeof i?i:JSON.stringify(i))),i},componentDidMount:function(){var t=window.dom[e].refresh;t&&t.bind(this)()},componentWillUnmount:function(){var t=window.dom[e].down;return t&&t.bind(this)()},componentDidUpdate:function(){if(!this.initial_render_complete&&!this.loading()){this.initial_render_complete=!0;var t=window.dom[e].up;t&&t.bind(this)()}var n=window.dom[e].refresh;return n&&n.bind(this)()},getInitialState:function(){return{}}})}function make_syncarea(){window.SYNCAREA=users_widgets.SYNCAREA=React.createClass({getInitialState:function(){return{cursor_positions:{}}},on_text_changed:function(){if(this.props.autosize){var e=this.textarea_ref;for(e.style.height=null;e.rows>1&&e.scrollHeight<e.offsetHeight;)e.rows--;for(;e.scrollHeight>e.offsetHeight;)e.rows++}},componentDidMount:function(){var e=this;e.on_ranges=function(t){e.ranges=t;var n={};Object.keys(t).forEach(function(o){var r=t[o],i=getCaretCoordinates(e.textarea_ref,r[0]),a=e.textarea_ref.offsetLeft-e.textarea_ref.scrollLeft+i.left+"px",s=e.textarea_ref.offsetTop-e.textarea_ref.scrollTop+i.top+"px";n[o]=[a,s]}),e.setState({cursor_positions:n})},this.ds=diffsync.create_client({ws_url:this.props.ws_url,channel:this.props.channel,get_text:function(){return e.textarea_ref.value},get_range:function(){var t=e.textarea_ref;return[t.selectionStart,t.selectionEnd]},on_text:function(t,n){e.textarea_ref.value=t,e.textarea_ref.setSelectionRange(n[0],n[1]),e.on_text_changed()},on_ranges:this.on_ranges})},render:function(){var e=this,t=[];return Object.keys(this.state.cursor_positions).forEach(function(n){var o=e.state.cursor_positions[n],r={position:"absolute",left:o[0],top:o[1]};Object.keys(e.props.cursor_style).forEach(function(t){r[t]=e.props.cursor_style[t]}),t.push(React.createElement("div",{key:n,style:r}))}),React.createElement("div",{style:{clipPath:"inset(0px 0px 0px 0px)"}},React.createElement("textarea",{ref:function(t){e.textarea_ref=t},style:this.props.textarea_style,onChange:function(t){e.ds.on_change(),e.on_text_changed()},onMouseDown:function(){setTimeout(function(){e.ds.on_change()},0)},onKeyDown:function(){setTimeout(function(){e.ds.on_change()},0)},onScroll:function(){e.on_ranges(e.ranges)}}),t)}})}function compile_coffee(e,t){var n;try{n=CoffeeScript.compile(e,{bare:!0,sourceMap:!0,filename:t});var o=JSON.parse(n.v3SourceMap);o.sourcesContent=e,n=n.js;try{n+="\n",n+="//# sourceMappingURL=data:application/json;base64,",n+=btoa(JSON.stringify(o))+"\n",n+="//# sourceURL="+t}catch(e){}}catch(e){if(!e.location)throw e;console.error("Syntax error in "+t+" on line",e.location.first_line+", column "+e.location.first_column+":",e.message)}return n}function load_client_code(code,safe){var dom={},ui={};code?eval(code):(dom=window.dom,ui=window.ui);for(var k in ui)dom[k]=dom[k]||ui[k];for(var widget_name in dom)window.dom[widget_name]=dom[widget_name],make_component(widget_name,safe)}function load_coffee(){load_client_code();for(var e=document.getElementsByTagName("script"),t=location.pathname.substring(location.pathname.lastIndexOf("/")+1),n=0;n<e.length;n++)if(e[n].getAttribute("type")in{statebus:1,coffeedom:1,"statebus-js":1,coffee:1,coffeescript:1}){var o=e[n].text;"statebus-js"!==e[n].getAttribute("type")&&(o=compile_coffee(e[n].text,t)),o&&load_client_code(o)}}function dom_to_widget(e){if("#text"===e.nodeName)return e.textContent;e.seen=!0;for(var t=[],n={},o=0;o<e.childNodes.length;o++)t.push(dom_to_widget(e.childNodes[o]));for(var n={},o=0;e.attributes&&o<e.attributes.length;o++)n[e.attributes[o].name]=e.attributes[o].value;var r=window[e.nodeName.toLowerCase()]||window[e.nodeName.toUpperCase()];return console.assert(r,e.nodeName+" has not been defined as a UI widget."),r(n,t)}function load_widgets(){for(var e in users_widgets)for(var t=document.getElementsByTagName(e),n=0;n<t.length;n++)t[n].seen||react_render(dom_to_widget(t[n]),t[n])}var unique_sockjs_string="_connect_to_statebus_";try{document.cookie}catch(e){get_cookie=set_cookie=function(){}}var components={},components_count=0,dirty_components={};window.React_View=React_View,window.statebus&&(window.statebus.create_react_class=React_View);var re_render_scheduled=!1;re_rendering=!1,load_scripts();var loaded_from_file_url=window.location.href.match(/^file:\/\//);window.statebus_server=window.statebus_server||script_option("server")||(loaded_from_file_url?"https://stateb.us:3006":"/"),window.statebus_backdoor=window.statebus_backdoor||script_option("backdoor");var react_render,users_widgets={};window.users_widgets=users_widgets}();
@@ -0,0 +1,4 @@
1
+ //= require statebus-client6.min
2
+
3
+ // Until Statebus is updated, we need to explicity set the server to 'none'
4
+ statebus_server = 'none'
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: statebus-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Caleb Matthiesen
8
+ - Michael Matthew Toomim
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2019-09-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ description: A Statebus Ruby gem for Rails.
29
+ email: c@calebkm.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - lib/statebus-rails.rb
35
+ - vendor/assets/javascripts/statebus-client6.min.js
36
+ - vendor/assets/javascripts/statebus-rails.js
37
+ homepage: https://github.com/calebkm/statebus
38
+ licenses:
39
+ - MIT
40
+ metadata: {}
41
+ post_install_message:
42
+ rdoc_options: []
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ requirements: []
56
+ rubygems_version: 3.0.1
57
+ signing_key:
58
+ specification_version: 4
59
+ summary: Statebus Ruby gem for Rails.
60
+ test_files: []