38 lines
1.2 MiB
38 lines
1.2 MiB
!function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n?n:e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){t.exports={"default":e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":30}],2:[function(e,t,n){t.exports={"default":e("core-js/library/fn/get-iterator"),__esModule:!0}},{"core-js/library/fn/get-iterator":31}],3:[function(e,t,n){t.exports={"default":e("core-js/library/fn/is-iterable"),__esModule:!0}},{"core-js/library/fn/is-iterable":32}],4:[function(e,t,n){t.exports={"default":e("core-js/library/fn/map"),__esModule:!0}},{"core-js/library/fn/map":33}],5:[function(e,t,n){t.exports={"default":e("core-js/library/fn/number/is-nan"),__esModule:!0}},{"core-js/library/fn/number/is-nan":34}],6:[function(e,t,n){t.exports={"default":e("core-js/library/fn/number/parse-float"),__esModule:!0}},{"core-js/library/fn/number/parse-float":35}],7:[function(e,t,n){t.exports={"default":e("core-js/library/fn/number/parse-int"),__esModule:!0}},{"core-js/library/fn/number/parse-int":36}],8:[function(e,t,n){t.exports={"default":e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":37}],9:[function(e,t,n){t.exports={"default":e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":38}],10:[function(e,t,n){t.exports={"default":e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":39}],11:[function(e,t,n){t.exports={"default":e("core-js/library/fn/object/get-own-property-descriptor"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-descriptor":40}],12:[function(e,t,n){t.exports={"default":e("core-js/library/fn/object/set-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/set-prototype-of":42}],13:[function(e,t,n){t.exports={"default":e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":43}],14:[function(e,t,n){t.exports={"default":e("core-js/library/fn/symbol/for"),__esModule:!0}},{"core-js/library/fn/symbol/for":44}],15:[function(e,t,n){t.exports={"default":e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":45}],16:[function(e,t,n){"use strict";n["default"]=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n.__esModule=!0},{}],17:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/define-property")["default"];n["default"]=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),r(e,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n.__esModule=!0},{"babel-runtime/core-js/object/define-property":10}],18:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/define-property")["default"];n["default"]=function(e,t,n){return t in e?r(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},n.__esModule=!0},{"babel-runtime/core-js/object/define-property":10}],19:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/get-own-property-descriptor")["default"];n["default"]=function(e,t,n){for(var i=!0;i;){var o=e,s=t,a=n;l=c=u=void 0,i=!1,null===o&&(o=Function.prototype);var l=r(o,s);if(void 0!==l){if("value"in l)return l.value;var u=l.get;if(void 0===u)return;return u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=s,n=a,i=!0}},n.__esModule=!0},{"babel-runtime/core-js/object/get-own-property-descriptor":11}],20:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create")["default"],i=e("babel-runtime/core-js/object/set-prototype-of")["default"];n["default"]=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=r(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i?i(e,t):e.__proto__=t)},n.__esModule=!0},{"babel-runtime/core-js/object/create":9,"babel-runtime/core-js/object/set-prototype-of":12}],21:[function(e,t,n){"use strict";n["default"]=function(e){return e&&e.__esModule?e:{"default":e}},n.__esModule=!0},{}],22:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/get-iterator")["default"],i=e("babel-runtime/core-js/is-iterable")["default"];n["default"]=function(){function e(e,t){var n=[],i=!0,o=!1,s=void 0;try{for(var a,l=r(e);!(i=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(u){o=!0,s=u}finally{try{!i&&l["return"]&&l["return"]()}finally{if(o)throw s}}return n}return function(t,n){if(Array.isArray(t))return t;if(i(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n.__esModule=!0},{"babel-runtime/core-js/get-iterator":2,"babel-runtime/core-js/is-iterable":3}],23:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/array/from")["default"];n["default"]=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return r(e)},n.__esModule=!0},{"babel-runtime/core-js/array/from":1}],24:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===s||t===p?62:t===a||t===f?63:l>t?-1:l+10>t?t-l+26+26:c+26>t?t-c:u+26>t?t-u+26:void 0}function n(e){function n(e){u[p++]=e}var r,i,s,a,l,u;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;l="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,u=new o(3*e.length/4-l),s=l>0?e.length-4:e.length;var p=0;for(r=0,i=0;s>r;r+=4,i+=3)a=t(e.charAt(r))<<18|t(e.charAt(r+1))<<12|t(e.charAt(r+2))<<6|t(e.charAt(r+3)),n((16711680&a)>>16),n((65280&a)>>8),n(255&a);return 2===l?(a=t(e.charAt(r))<<2|t(e.charAt(r+1))>>4,n(255&a)):1===l&&(a=t(e.charAt(r))<<10|t(e.charAt(r+1))<<4|t(e.charAt(r+2))>>2,n(a>>8&255),n(255&a)),u}function i(e){function t(e){return r.charAt(e)}function n(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var i,o,s,a=e.length%3,l="";for(i=0,s=e.length-a;s>i;i+=3)o=(e[i]<<16)+(e[i+1]<<8)+e[i+2],l+=n(o);switch(a){case 1:o=e[e.length-1],l+=t(o>>2),l+=t(o<<4&63),l+="==";break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],l+=t(o>>10),l+=t(o>>4&63),l+=t(o<<2&63),l+="="}return l}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="+".charCodeAt(0),a="/".charCodeAt(0),l="0".charCodeAt(0),u="a".charCodeAt(0),c="A".charCodeAt(0),p="-".charCodeAt(0),f="_".charCodeAt(0);e.toByteArray=n,e.fromByteArray=i}("undefined"==typeof n?this.base64js={}:n)},{}],25:[function(e,t,n){!function(e,n){"undefined"!=typeof t&&t.exports?t.exports.browser=n():"function"==typeof define&&define.amd?define(n):this[e]=n()}("bowser",function(){function e(e){function n(t){var n=e.match(t);return n&&n.length>1&&n[1]||""}function r(t){var n=e.match(t);return n&&n.length>1&&n[2]||""}var i,o=n(/(ipod|iphone|ipad)/i).toLowerCase(),s=/like android/i.test(e),a=!s&&/android/i.test(e),l=n(/edge\/(\d+(\.\d+)?)/i),u=n(/version\/(\d+(\.\d+)?)/i),c=/tablet/i.test(e),p=!c&&/[^-]mobi/i.test(e);/opera|opr/i.test(e)?i={name:"Opera",opera:t,version:u||n(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(e)?(i={name:"Windows Phone",windowsphone:t},l?(i.msedge=t,i.version=l):(i.msie=t,i.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?i={name:"Internet Explorer",msie:t,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(e)?i={name:"Microsoft Edge",msedge:t,version:l}:/chrome|crios|crmo/i.test(e)?i={name:"Chrome",chrome:t,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:o?(i={name:"iphone"==o?"iPhone":"ipad"==o?"iPad":"iPod"},u&&(i.version=u)):/sailfish/i.test(e)?i={name:"Sailfish",sailfish:t,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?i={name:"SeaMonkey",seamonkey:t,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)?(i={name:"Firefox",firefox:t,version:n(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(i.firefoxos=t)):/silk/i.test(e)?i={name:"Amazon Silk",silk:t,version:n(/silk\/(\d+(\.\d+)?)/i)}:a?i={name:"Android",version:u}:/phantom/i.test(e)?i={name:"PhantomJS",phantom:t,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?i={name:"BlackBerry",blackberry:t,version:u||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(e)?(i={name:"WebOS",webos:t,version:u||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(i.touchpad=t)):i=/bada/i.test(e)?{name:"Bada",bada:t,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(e)?{name:"Tizen",tizen:t,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||u}:/safari/i.test(e)?{name:"Safari",safari:t,version:u}:{name:n(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(e)?(i.name=i.name||"Webkit",i.webkit=t,!i.version&&u&&(i.version=u)):!i.opera&&/gecko\//i.test(e)&&(i.name=i.name||"Gecko",i.gecko=t,i.version=i.version||n(/gecko\/(\d+(\.\d+)?)/i)),i.msedge||!a&&!i.silk?o&&(i[o]=t,i.ios=t):i.android=t;var f="";i.windowsphone?f=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):o?(f=n(/os (\d+([_\s]\d+)*) like mac os x/i),f=f.replace(/[_\s]/g,".")):a?f=n(/android[ \/-](\d+(\.\d+)*)/i):i.webos?f=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?f=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?f=n(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(f=n(/tizen[\/\s](\d+(\.\d+)*)/i)),f&&(i.osversion=f);var h=f.split(".")[0];return c||"ipad"==o||a&&(3==h||4==h&&!p)||i.silk?i.tablet=t:(p||"iphone"==o||"ipod"==o||a||i.blackberry||i.webos||i.bada)&&(i.mobile=t),i.msedge||i.msie&&i.version>=10||i.chrome&&i.version>=20||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1?i.a=t:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6?i.c=t:i.x=t,i}var t=!0,n=e("undefined"!=typeof navigator?navigator.userAgent:"");return n.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if("string"==typeof r&&r in n)return!0}return!1},n._detect=e,n})},{}],26:[function(e,t,n){},{}],27:[function(e,t,n){(function(t){"use strict";function r(){function e(){}try{var t=new Uint8Array(1);return t.foo=function(){return 42},t.constructor=e,42===t.foo()&&t.constructor===e&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(n){return!1}}function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e){return this instanceof o?(o.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?s(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):l(this,e)):arguments.length>1?new o(e,arguments[1]):new o(e)}function s(e,t){if(e=m(e,0>t?0:0|b(t)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;t>n;n++)e[n]=0;return e}function a(e,t,n){"string"==typeof n&&""!==n||(n="utf8");var r=0|v(t,n);return e=m(e,r),e.write(t,n),e}function l(e,t){if(o.isBuffer(t))return u(e,t);if(Q(t))return c(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(t.buffer instanceof ArrayBuffer)return p(e,t);if(t instanceof ArrayBuffer)return f(e,t)}return t.length?h(e,t):d(e,t)}function u(e,t){var n=0|b(t.length);return e=m(e,n),t.copy(e,0,0,n),e}function c(e,t){var n=0|b(t.length);e=m(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function p(e,t){var n=0|b(t.length);e=m(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function f(e,t){return o.TYPED_ARRAY_SUPPORT?(t.byteLength,e=o._augment(new Uint8Array(t))):e=p(e,new Uint8Array(t)),e}function h(e,t){var n=0|b(t.length);e=m(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function d(e,t){var n,r=0;"Buffer"===t.type&&Q(t.data)&&(n=t.data,r=0|b(n.length)),e=m(e,r);for(var i=0;r>i;i+=1)e[i]=255&n[i];return e}function m(e,t){o.TYPED_ARRAY_SUPPORT?(e=o._augment(new Uint8Array(t)),e.__proto__=o.prototype):(e.length=t,e._isBuffer=!0);var n=0!==t&&t<=o.poolSize>>>1;return n&&(e.parent=Y),e}function b(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function y(e,t){if(!(this instanceof y))return new y(e,t);var n=new o(e,t);return delete n.parent,n}function v(e,t){"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if(t=0|t,n=void 0===n||n===1/0?this.length:0|n,e||(e="utf8"),0>t&&(t=0),n>this.length&&(n=this.length),t>=n)return"";for(;;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return M(this,t,n);case"binary":return A(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw new Error("Invalid hex string");e[n+s]=a}return s}function T(e,t,n,r){return X(G(t,e.length-n),e,n,r)}function E(e,t,n,r){return X(q(t),e,n,r)}function C(e,t,n,r){return E(e,t,n,r)}function w(e,t,n,r){return X(z(t),e,n,r)}function S(e,t,n,r){return X(V(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?W.fromByteArray(e):W.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;n>i;){var o=e[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(n>=i+a){var l,u,c,p;switch(a){case 1:128>o&&(s=o);break;case 2:l=e[i+1],128===(192&l)&&(p=(31&o)<<6|63&l,p>127&&(s=p));break;case 3:l=e[i+1],u=e[i+2],128===(192&l)&&128===(192&u)&&(p=(15&o)<<12|(63&l)<<6|63&u,p>2047&&(55296>p||p>57343)&&(s=p));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(p=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&c,p>65535&&1114112>p&&(s=p))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return k(r)}function k(e){var t=e.length;if(Z>=t)return String.fromCharCode.apply(String,e);for(var n="",r=0;t>r;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Z));return n}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;i++)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;i++)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;n>o;o++)i+=K(e[o]);return i}function N(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(e,t,n){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,s){if(!o.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>i||s>t)throw new RangeError("value is out of bounds");if(n+r>e.length)throw new RangeError("index out of range")}function R(e,t,n,r){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);o>i;i++)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);o>i;i++)e[n+i]=t>>>8*(r?i:3-i)&255}function j(e,t,n,r,i,o){if(t>i||o>t)throw new RangeError("value is out of bounds");if(n+r>e.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function U(e,t,n,r,i){return i||j(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||j(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(e,t,n,r,52,8),n+8}function B(e){if(e=H(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function H(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return 16>e?"0"+e.toString(16):e.toString(16)}function G(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],s=0;r>s;s++){if(n=e.charCodeAt(s),n>55295&&57344>n){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(56320>n){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,128>n){if((t-=1)<0)break;o.push(n)}else if(2048>n){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(65536>n){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function V(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);s++)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function z(e){return W.toByteArray(B(e))}function X(e,t,n,r){for(var i=0;r>i&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}var W=e("base64-js"),$=e("ieee754"),Q=e("isarray");n.Buffer=o,n.SlowBuffer=y,n.INSPECT_MAX_BYTES=50,o.poolSize=8192;var Y={};o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),o.TYPED_ARRAY_SUPPORT?(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array):(o.prototype.length=void 0,o.prototype.parent=void 0),o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);s>i&&e[i]===t[i];)++i;return i!==s&&(n=e[i],r=t[i]),r>n?-1:n>r?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Q(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new o(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new o(t),i=0;for(n=0;n<e.length;n++){var s=e[n];s.copy(r,i),i+=s.length}return r},o.byteLength=v,o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):g.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:o.compare(this,e)},o.prototype.indexOf=function(e,t){function n(e,t,n){for(var r=-1,i=0;n+i<e.length;i++)if(e[n+i]===t[-1===r?0:i-r]){if(-1===r&&(r=i),i-r+1===t.length)return n+r}else r=-1;return-1}if(t>2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(o.isBuffer(e))return n(this,e,t);if("number"==typeof e)return o.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):n(this,[e],t);throw new TypeError("val must be string, number or Buffer")},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var i=r;r=t,t=0|n,n=i}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":return E(this,e,t,n);case"binary":return C(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),e>t&&(t=e);var r;if(o.TYPED_ARRAY_SUPPORT)r=o._augment(this.subarray(e,t));else{var i=t-e;r=new o(i,void 0);for(var s=0;i>s;s++)r[s]=this[s+e]}return r.length&&(r.parent=this.parent||this),r},o.prototype.readUIntLE=function(e,t,n){e=0|e,t=0|t,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},o.prototype.readUIntBE=function(e,t,n){e=0|e,t=0|t,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||I(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),$.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),$.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),$.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),$.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||D(this,e,t,n,Math.pow(2,8*n),0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||D(this,e,t,n,Math.pow(2,8*n),0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,s=1,a=0>e?1:0;for(this[t]=255&e;++o<n&&(s*=256);)this[t+o]=(e/s>>0)-a&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0>e?1:0;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=(e/s>>0)-a&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||D(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,s=r-n;if(this===e&&t>n&&r>t)for(i=s-1;i>=0;i--)e[i+t]=this[i+n];else if(1e3>s||!o.TYPED_ARRAY_SUPPORT)for(i=0;s>i;i++)e[i+t]=this[i+n];else e._set(this.subarray(n,n+s),t);return s},o.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),t>n)throw new RangeError("end < start");if(n!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof e)for(r=t;n>r;r++)this[r]=e;else{var i=G(e.toString()),o=i.length;for(r=t;n>r;r++)this[r]=i[r%o]}return this}},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o.TYPED_ARRAY_SUPPORT)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;n>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var J=o.prototype;o._augment=function(e){return e.constructor=o,e._isBuffer=!0,e._set=e.set,e.get=J.get,e.set=J.set,e.write=J.write,e.toString=J.toString,e.toLocaleString=J.toString,e.toJSON=J.toJSON,e.equals=J.equals,e.compare=J.compare,e.indexOf=J.indexOf,e.copy=J.copy,e.slice=J.slice,e.readUIntLE=J.readUIntLE,e.readUIntBE=J.readUIntBE,e.readUInt8=J.readUInt8,e.readUInt16LE=J.readUInt16LE,e.readUInt16BE=J.readUInt16BE,e.readUInt32LE=J.readUInt32LE,e.readUInt32BE=J.readUInt32BE,e.readIntLE=J.readIntLE,e.readIntBE=J.readIntBE,e.readInt8=J.readInt8,e.readInt16LE=J.readInt16LE,e.readInt16BE=J.readInt16BE,e.readInt32LE=J.readInt32LE,e.readInt32BE=J.readInt32BE,e.readFloatLE=J.readFloatLE,e.readFloatBE=J.readFloatBE,e.readDoubleLE=J.readDoubleLE,e.readDoubleBE=J.readDoubleBE,e.writeUInt8=J.writeUInt8,e.writeUIntLE=J.writeUIntLE,e.writeUIntBE=J.writeUIntBE,e.writeUInt16LE=J.writeUInt16LE,e.writeUInt16BE=J.writeUInt16BE,e.writeUInt32LE=J.writeUInt32LE,e.writeUInt32BE=J.writeUInt32BE,e.writeIntLE=J.writeIntLE,e.writeIntBE=J.writeIntBE,e.writeInt8=J.writeInt8,e.writeInt16LE=J.writeInt16LE,e.writeInt16BE=J.writeInt16BE,e.writeInt32LE=J.writeInt32LE,e.writeInt32BE=J.writeInt32BE,e.writeFloatLE=J.writeFloatLE,e.writeFloatBE=J.writeFloatBE,e.writeDoubleLE=J.writeDoubleLE,e.writeDoubleBE=J.writeDoubleBE,e.fill=J.fill,e.inspect=J.inspect,e.toArrayBuffer=J.toArrayBuffer,e};var ee=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":24,ieee754:177,isarray:28}],28:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],29:[function(e,t,n){!function(){"use strict";function e(){for(var t=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)t.push(i);else if(Array.isArray(i))t.push(e.apply(null,i));else if("object"===o)for(var s in i)n.call(i,s)&&i[s]&&t.push(s)}}return t.join(" ")}var n={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?t.exports=e:"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return e}):window.classNames=e}()},{}],30:[function(e,t,n){e("../../modules/es6.string.iterator"),e("../../modules/es6.array.from"),t.exports=e("../../modules/$.core").Array.from},{"../../modules/$.core":54,"../../modules/es6.array.from":106,"../../modules/es6.string.iterator":118}],31:[function(e,t,n){e("../modules/web.dom.iterable"),e("../modules/es6.string.iterator"),t.exports=e("../modules/core.get-iterator")},{"../modules/core.get-iterator":104,"../modules/es6.string.iterator":118,"../modules/web.dom.iterable":121}],32:[function(e,t,n){e("../modules/web.dom.iterable"),e("../modules/es6.string.iterator"),t.exports=e("../modules/core.is-iterable")},{"../modules/core.is-iterable":105,"../modules/es6.string.iterator":118,"../modules/web.dom.iterable":121}],33:[function(e,t,n){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.map"),e("../modules/es7.map.to-json"),t.exports=e("../modules/$.core").Map},{"../modules/$.core":54,"../modules/es6.map":108,"../modules/es6.object.to-string":116,"../modules/es6.string.iterator":118,"../modules/es7.map.to-json":120,"../modules/web.dom.iterable":121}],34:[function(e,t,n){e("../../modules/es6.number.is-nan"),t.exports=e("../../modules/$.core").Number.isNaN},{"../../modules/$.core":54,"../../modules/es6.number.is-nan":109}],35:[function(e,t,n){e("../../modules/es6.number.parse-float"),t.exports=parseFloat},{"../../modules/es6.number.parse-float":110}],36:[function(e,t,n){e("../../modules/es6.number.parse-int"),t.exports=parseInt},{"../../modules/es6.number.parse-int":111}],37:[function(e,t,n){e("../../modules/es6.object.assign"),t.exports=e("../../modules/$.core").Object.assign},{"../../modules/$.core":54,"../../modules/es6.object.assign":112}],38:[function(e,t,n){var r=e("../../modules/$");t.exports=function(e,t){return r.create(e,t)}},{"../../modules/$":79}],39:[function(e,t,n){var r=e("../../modules/$");t.exports=function(e,t,n){return r.setDesc(e,t,n)}},{"../../modules/$":79}],40:[function(e,t,n){var r=e("../../modules/$");e("../../modules/es6.object.get-own-property-descriptor"),t.exports=function(e,t){
|
||
return r.getDesc(e,t)}},{"../../modules/$":79,"../../modules/es6.object.get-own-property-descriptor":113}],41:[function(e,t,n){e("../../modules/es6.object.keys"),t.exports=e("../../modules/$.core").Object.keys},{"../../modules/$.core":54,"../../modules/es6.object.keys":114}],42:[function(e,t,n){e("../../modules/es6.object.set-prototype-of"),t.exports=e("../../modules/$.core").Object.setPrototypeOf},{"../../modules/$.core":54,"../../modules/es6.object.set-prototype-of":115}],43:[function(e,t,n){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.promise"),t.exports=e("../modules/$.core").Promise},{"../modules/$.core":54,"../modules/es6.object.to-string":116,"../modules/es6.promise":117,"../modules/es6.string.iterator":118,"../modules/web.dom.iterable":121}],44:[function(e,t,n){e("../../modules/es6.symbol"),t.exports=e("../../modules/$.core").Symbol["for"]},{"../../modules/$.core":54,"../../modules/es6.symbol":119}],45:[function(e,t,n){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),t.exports=e("../../modules/$.wks")("iterator")},{"../../modules/$.wks":102,"../../modules/es6.string.iterator":118,"../../modules/web.dom.iterable":121}],46:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],47:[function(e,t,n){t.exports=function(){}},{}],48:[function(e,t,n){var r=e("./$.is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./$.is-object":72}],49:[function(e,t,n){var r=e("./$.cof"),i=e("./$.wks")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=(t=Object(e))[i])?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{"./$.cof":50,"./$.wks":102}],50:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],51:[function(e,t,n){"use strict";var r=e("./$"),i=e("./$.hide"),o=e("./$.redefine-all"),s=e("./$.ctx"),a=e("./$.strict-new"),l=e("./$.defined"),u=e("./$.for-of"),c=e("./$.iter-define"),p=e("./$.iter-step"),f=e("./$.uid")("id"),h=e("./$.has"),d=e("./$.is-object"),m=e("./$.set-species"),b=e("./$.descriptors"),y=Object.isExtensible||d,v=b?"_s":"size",g=0,_=function(e,t){if(!d(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!h(e,f)){if(!y(e))return"F";if(!t)return"E";i(e,f,++g)}return"O"+e[f]},T=function(e,t){var n,r=_(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};t.exports={getConstructor:function(e,t,n,i){var c=e(function(e,o){a(e,c,t),e._i=r.create(null),e._f=void 0,e._l=void 0,e[v]=0,void 0!=o&&u(o,n,e[i],e)});return o(c.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[v]=0},"delete":function(e){var t=this,n=T(t,e);if(n){var r=n.n,i=n.p;delete t._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),t._f==n&&(t._f=r),t._l==n&&(t._l=i),t[v]--}return!!n},forEach:function(e){for(var t,n=s(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!T(this,e)}}),b&&r.setDesc(c.prototype,"size",{get:function(){return l(this[v])}}),c},def:function(e,t,n){var r,i,o=T(e,t);return o?o.v=n:(e._l=o={i:i=_(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:T,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?p(0,n.k):"values"==t?p(0,n.v):p(0,[n.k,n.v]):(e._t=void 0,p(1))},n?"entries":"values",!n,!0),m(t)}}},{"./$":79,"./$.ctx":55,"./$.defined":56,"./$.descriptors":57,"./$.for-of":62,"./$.has":65,"./$.hide":66,"./$.is-object":72,"./$.iter-define":75,"./$.iter-step":77,"./$.redefine-all":86,"./$.set-species":90,"./$.strict-new":94,"./$.uid":101}],52:[function(e,t,n){var r=e("./$.for-of"),i=e("./$.classof");t.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");var t=[];return r(this,!1,t.push,t),t}}},{"./$.classof":49,"./$.for-of":62}],53:[function(e,t,n){"use strict";var r=e("./$"),i=e("./$.global"),o=e("./$.export"),s=e("./$.fails"),a=e("./$.hide"),l=e("./$.redefine-all"),u=e("./$.for-of"),c=e("./$.strict-new"),p=e("./$.is-object"),f=e("./$.set-to-string-tag"),h=e("./$.descriptors");t.exports=function(e,t,n,d,m,b){var y=i[e],v=y,g=m?"set":"add",_=v&&v.prototype,T={};return h&&"function"==typeof v&&(b||_.forEach&&!s(function(){(new v).entries().next()}))?(v=t(function(t,n){c(t,v,e),t._c=new y,void 0!=n&&u(n,m,t[g],t)}),r.each.call("add,clear,delete,forEach,get,has,set,keys,values,entries".split(","),function(e){var t="add"==e||"set"==e;e in _&&(!b||"clear"!=e)&&a(v.prototype,e,function(n,r){if(!t&&b&&!p(n))return"get"==e?void 0:!1;var i=this._c[e](0===n?0:n,r);return t?this:i})}),"size"in _&&r.setDesc(v.prototype,"size",{get:function(){return this._c.size}})):(v=d.getConstructor(t,e,m,g),l(v.prototype,n)),f(v,e),T[e]=v,o(o.G+o.W+o.F,T),b||d.setStrong(v,e,m),v}},{"./$":79,"./$.descriptors":57,"./$.export":60,"./$.fails":61,"./$.for-of":62,"./$.global":64,"./$.hide":66,"./$.is-object":72,"./$.redefine-all":86,"./$.set-to-string-tag":91,"./$.strict-new":94}],54:[function(e,t,n){var r=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},{}],55:[function(e,t,n){var r=e("./$.a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},{"./$.a-function":46}],56:[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],57:[function(e,t,n){t.exports=!e("./$.fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./$.fails":61}],58:[function(e,t,n){var r=e("./$.is-object"),i=e("./$.global").document,o=r(i)&&r(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{"./$.global":64,"./$.is-object":72}],59:[function(e,t,n){var r=e("./$");t.exports=function(e){var t=r.getKeys(e),n=r.getSymbols;if(n)for(var i,o=n(e),s=r.isEnum,a=0;o.length>a;)s.call(e,i=o[a++])&&t.push(i);return t}},{"./$":79}],60:[function(e,t,n){var r=e("./$.global"),i=e("./$.core"),o=e("./$.ctx"),s="prototype",a=function(e,t,n){var l,u,c,p=e&a.F,f=e&a.G,h=e&a.S,d=e&a.P,m=e&a.B,b=e&a.W,y=f?i:i[t]||(i[t]={}),v=f?r:h?r[t]:(r[t]||{})[s];f&&(n=t);for(l in n)u=!p&&v&&l in v,u&&l in y||(c=u?v[l]:n[l],y[l]=f&&"function"!=typeof v[l]?n[l]:m&&u?o(c,r):b&&v[l]==c?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[s]=e[s],t}(c):d&&"function"==typeof c?o(Function.call,c):c,d&&((y[s]||(y[s]={}))[l]=c))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,t.exports=a},{"./$.core":54,"./$.ctx":55,"./$.global":64}],61:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],62:[function(e,t,n){var r=e("./$.ctx"),i=e("./$.iter-call"),o=e("./$.is-array-iter"),s=e("./$.an-object"),a=e("./$.to-length"),l=e("./core.get-iterator-method");t.exports=function(e,t,n,u){var c,p,f,h=l(e),d=r(n,u,t?2:1),m=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(o(h))for(c=a(e.length);c>m;m++)t?d(s(p=e[m])[0],p[1]):d(e[m]);else for(f=h.call(e);!(p=f.next()).done;)i(f,d,p.value,t)}},{"./$.an-object":48,"./$.ctx":55,"./$.is-array-iter":70,"./$.iter-call":73,"./$.to-length":99,"./core.get-iterator-method":103}],63:[function(e,t,n){var r=e("./$.to-iobject"),i=e("./$").getNames,o={}.toString,s="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(t){return s.slice()}};t.exports.get=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},{"./$":79,"./$.to-iobject":98}],64:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],65:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],66:[function(e,t,n){var r=e("./$"),i=e("./$.property-desc");t.exports=e("./$.descriptors")?function(e,t,n){return r.setDesc(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},{"./$":79,"./$.descriptors":57,"./$.property-desc":85}],67:[function(e,t,n){t.exports=e("./$.global").document&&document.documentElement},{"./$.global":64}],68:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],69:[function(e,t,n){var r=e("./$.cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./$.cof":50}],70:[function(e,t,n){var r=e("./$.iterators"),i=e("./$.wks")("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},{"./$.iterators":78,"./$.wks":102}],71:[function(e,t,n){var r=e("./$.cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./$.cof":50}],72:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],73:[function(e,t,n){var r=e("./$.an-object");t.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){var s=e["return"];throw void 0!==s&&r(s.call(e)),o}}},{"./$.an-object":48}],74:[function(e,t,n){"use strict";var r=e("./$"),i=e("./$.property-desc"),o=e("./$.set-to-string-tag"),s={};e("./$.hide")(s,e("./$.wks")("iterator"),function(){return this}),t.exports=function(e,t,n){e.prototype=r.create(s,{next:i(1,n)}),o(e,t+" Iterator")}},{"./$":79,"./$.hide":66,"./$.property-desc":85,"./$.set-to-string-tag":91,"./$.wks":102}],75:[function(e,t,n){"use strict";var r=e("./$.library"),i=e("./$.export"),o=e("./$.redefine"),s=e("./$.hide"),a=e("./$.has"),l=e("./$.iterators"),u=e("./$.iter-create"),c=e("./$.set-to-string-tag"),p=e("./$").getProto,f=e("./$.wks")("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",m="keys",b="values",y=function(){return this};t.exports=function(e,t,n,v,g,_,T){u(n,t,v);var E,C,w=function(e){if(!h&&e in k)return k[e];switch(e){case m:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",P=g==b,x=!1,k=e.prototype,M=k[f]||k[d]||g&&k[g],A=M||w(g);if(M){var O=p(A.call(new e));c(O,S,!0),!r&&a(k,d)&&s(O,f,y),P&&M.name!==b&&(x=!0,A=function(){return M.call(this)})}if(r&&!T||!h&&!x&&k[f]||s(k,f,A),l[t]=A,l[S]=y,g)if(E={values:P?A:w(b),keys:_?A:w(m),entries:P?w("entries"):A},T)for(C in E)C in k||o(k,C,E[C]);else i(i.P+i.F*(h||x),t,E);return E}},{"./$":79,"./$.export":60,"./$.has":65,"./$.hide":66,"./$.iter-create":74,"./$.iterators":78,"./$.library":81,"./$.redefine":87,"./$.set-to-string-tag":91,"./$.wks":102}],76:[function(e,t,n){var r=e("./$.wks")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){n=!0},o[r]=function(){return s},e(o)}catch(a){}return n}},{"./$.wks":102}],77:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],78:[function(e,t,n){t.exports={}},{}],79:[function(e,t,n){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},{}],80:[function(e,t,n){var r=e("./$"),i=e("./$.to-iobject");t.exports=function(e,t){for(var n,o=i(e),s=r.getKeys(o),a=s.length,l=0;a>l;)if(o[n=s[l++]]===t)return n}},{"./$":79,"./$.to-iobject":98}],81:[function(e,t,n){t.exports=!0},{}],82:[function(e,t,n){var r,i,o,s=e("./$.global"),a=e("./$.task").set,l=s.MutationObserver||s.WebKitMutationObserver,u=s.process,c=s.Promise,p="process"==e("./$.cof")(u),f=function(){var e,t,n;for(p&&(e=u.domain)&&(u.domain=null,e.exit());r;)t=r.domain,n=r.fn,t&&t.enter(),n(),t&&t.exit(),r=r.next;i=void 0,e&&e.enter()};if(p)o=function(){u.nextTick(f)};else if(l){var h=1,d=document.createTextNode("");new l(f).observe(d,{characterData:!0}),o=function(){d.data=h=-h}}else o=c&&c.resolve?function(){c.resolve().then(f)}:function(){a.call(s,f)};t.exports=function(e){var t={fn:e,next:void 0,domain:p&&u.domain};i&&(i.next=t),r||(r=t,o()),i=t}},{"./$.cof":50,"./$.global":64,"./$.task":96}],83:[function(e,t,n){var r=e("./$"),i=e("./$.to-object"),o=e("./$.iobject");t.exports=e("./$.fails")(function(){var e=Object.assign,t={},n={},r=Symbol(),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach(function(e){n[e]=e}),7!=e({},t)[r]||Object.keys(e({},n)).join("")!=i})?function(e,t){for(var n=i(e),s=arguments,a=s.length,l=1,u=r.getKeys,c=r.getSymbols,p=r.isEnum;a>l;)for(var f,h=o(s[l++]),d=c?u(h).concat(c(h)):u(h),m=d.length,b=0;m>b;)p.call(h,f=d[b++])&&(n[f]=h[f]);return n}:Object.assign},{"./$":79,"./$.fails":61,"./$.iobject":69,"./$.to-object":100}],84:[function(e,t,n){var r=e("./$.export"),i=e("./$.core"),o=e("./$.fails");t.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},{"./$.core":54,"./$.export":60,"./$.fails":61}],85:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],86:[function(e,t,n){var r=e("./$.redefine");t.exports=function(e,t){for(var n in t)r(e,n,t[n]);return e}},{"./$.redefine":87}],87:[function(e,t,n){t.exports=e("./$.hide")},{"./$.hide":66}],88:[function(e,t,n){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},{}],89:[function(e,t,n){var r=e("./$").getDesc,i=e("./$.is-object"),o=e("./$.an-object"),s=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{i=e("./$.ctx")(Function.call,r(Object.prototype,"__proto__").set,2),i(t,[]),n=!(t instanceof Array)}catch(o){n=!0}return function(e,t){return s(e,t),n?e.__proto__=t:i(e,t),e}}({},!1):void 0),check:s}},{"./$":79,"./$.an-object":48,"./$.ctx":55,"./$.is-object":72}],90:[function(e,t,n){"use strict";var r=e("./$.core"),i=e("./$"),o=e("./$.descriptors"),s=e("./$.wks")("species");t.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.setDesc(t,s,{configurable:!0,get:function(){return this}})}},{"./$":79,"./$.core":54,"./$.descriptors":57,"./$.wks":102}],91:[function(e,t,n){var r=e("./$").setDesc,i=e("./$.has"),o=e("./$.wks")("toStringTag");t.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},{"./$":79,"./$.has":65,"./$.wks":102}],92:[function(e,t,n){var r=e("./$.global"),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(e){return o[e]||(o[e]={})}},{"./$.global":64}],93:[function(e,t,n){var r=e("./$.an-object"),i=e("./$.a-function"),o=e("./$.wks")("species");t.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[o])?t:i(n)}},{"./$.a-function":46,"./$.an-object":48,"./$.wks":102}],94:[function(e,t,n){t.exports=function(e,t,n){if(!(e instanceof t))throw TypeError(n+": use the 'new' operator!");return e}},{}],95:[function(e,t,n){var r=e("./$.to-integer"),i=e("./$.defined");t.exports=function(e){return function(t,n){var o,s,a=String(i(t)),l=r(n),u=a.length;return 0>l||l>=u?e?"":void 0:(o=a.charCodeAt(l),55296>o||o>56319||l+1===u||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):(o-55296<<10)+(s-56320)+65536)}}},{"./$.defined":56,"./$.to-integer":97}],96:[function(e,t,n){var r,i,o,s=e("./$.ctx"),a=e("./$.invoke"),l=e("./$.html"),u=e("./$.dom-create"),c=e("./$.global"),p=c.process,f=c.setImmediate,h=c.clearImmediate,d=c.MessageChannel,m=0,b={},y="onreadystatechange",v=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},g=function(e){v.call(e.data)};f&&h||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++m]=function(){a("function"==typeof e?e:Function(e),t)},r(m),m},h=function(e){delete b[e]},"process"==e("./$.cof")(p)?r=function(e){p.nextTick(s(v,e,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=g,r=s(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",g,!1)):r=y in u("script")?function(e){l.appendChild(u("script"))[y]=function(){l.removeChild(this),v.call(e)}}:function(e){setTimeout(s(v,e,1),0)}),t.exports={set:f,clear:h}},{"./$.cof":50,"./$.ctx":55,"./$.dom-create":58,"./$.global":64,"./$.html":67,"./$.invoke":68}],97:[function(e,t,n){var r=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:r)(e)}},{}],98:[function(e,t,n){var r=e("./$.iobject"),i=e("./$.defined");t.exports=function(e){return r(i(e))}},{"./$.defined":56,"./$.iobject":69}],99:[function(e,t,n){var r=e("./$.to-integer"),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"./$.to-integer":97}],100:[function(e,t,n){var r=e("./$.defined");t.exports=function(e){return Object(r(e))}},{"./$.defined":56}],101:[function(e,t,n){var r=0,i=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+i).toString(36))}},{}],102:[function(e,t,n){var r=e("./$.shared")("wks"),i=e("./$.uid"),o=e("./$.global").Symbol;t.exports=function(e){return r[e]||(r[e]=o&&o[e]||(o||i)("Symbol."+e))}},{"./$.global":64,"./$.shared":92,"./$.uid":101}],103:[function(e,t,n){var r=e("./$.classof"),i=e("./$.wks")("iterator"),o=e("./$.iterators");t.exports=e("./$.core").getIteratorMethod=function(e){return void 0!=e?e[i]||e["@@iterator"]||o[r(e)]:void 0}},{"./$.classof":49,"./$.core":54,"./$.iterators":78,"./$.wks":102}],104:[function(e,t,n){var r=e("./$.an-object"),i=e("./core.get-iterator-method");t.exports=e("./$.core").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},{"./$.an-object":48,"./$.core":54,"./core.get-iterator-method":103}],105:[function(e,t,n){var r=e("./$.classof"),i=e("./$.wks")("iterator"),o=e("./$.iterators");t.exports=e("./$.core").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},{"./$.classof":49,"./$.core":54,"./$.iterators":78,"./$.wks":102}],106:[function(e,t,n){"use strict";var r=e("./$.ctx"),i=e("./$.export"),o=e("./$.to-object"),s=e("./$.iter-call"),a=e("./$.is-array-iter"),l=e("./$.to-length"),u=e("./core.get-iterator-method");i(i.S+i.F*!e("./$.iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,c,p=o(e),f="function"==typeof this?this:Array,h=arguments,d=h.length,m=d>1?h[1]:void 0,b=void 0!==m,y=0,v=u(p);if(b&&(m=r(m,d>2?h[2]:void 0,2)),void 0==v||f==Array&&a(v))for(t=l(p.length),n=new f(t);t>y;y++)n[y]=b?m(p[y],y):p[y];else for(c=v.call(p),n=new f;!(i=c.next()).done;y++)n[y]=b?s(c,m,[i.value,y],!0):i.value;return n.length=y,n}})},{"./$.ctx":55,"./$.export":60,"./$.is-array-iter":70,"./$.iter-call":73,"./$.iter-detect":76,"./$.to-length":99,"./$.to-object":100,"./core.get-iterator-method":103}],107:[function(e,t,n){"use strict";var r=e("./$.add-to-unscopables"),i=e("./$.iter-step"),o=e("./$.iterators"),s=e("./$.to-iobject");t.exports=e("./$.iter-define")(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},{"./$.add-to-unscopables":47,"./$.iter-define":75,"./$.iter-step":77,"./$.iterators":78,"./$.to-iobject":98}],108:[function(e,t,n){"use strict";var r=e("./$.collection-strong");e("./$.collection")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},{"./$.collection":53,"./$.collection-strong":51}],109:[function(e,t,n){var r=e("./$.export");r(r.S,"Number",{isNaN:function(e){return e!=e}})},{"./$.export":60}],110:[function(e,t,n){var r=e("./$.export");r(r.S,"Number",{parseFloat:parseFloat})},{"./$.export":60}],111:[function(e,t,n){var r=e("./$.export");r(r.S,"Number",{parseInt:parseInt})},{"./$.export":60}],112:[function(e,t,n){var r=e("./$.export");r(r.S+r.F,"Object",{assign:e("./$.object-assign")})},{"./$.export":60,"./$.object-assign":83}],113:[function(e,t,n){var r=e("./$.to-iobject");e("./$.object-sap")("getOwnPropertyDescriptor",function(e){return function(t,n){return e(r(t),n)}})},{"./$.object-sap":84,"./$.to-iobject":98}],114:[function(e,t,n){var r=e("./$.to-object");e("./$.object-sap")("keys",function(e){return function(t){return e(r(t))}})},{"./$.object-sap":84,"./$.to-object":100}],115:[function(e,t,n){var r=e("./$.export");r(r.S,"Object",{setPrototypeOf:e("./$.set-proto").set})},{"./$.export":60,"./$.set-proto":89}],116:[function(e,t,n){arguments[4][26][0].apply(n,arguments)},{dup:26}],117:[function(e,t,n){"use strict";var r,i=e("./$"),o=e("./$.library"),s=e("./$.global"),a=e("./$.ctx"),l=e("./$.classof"),u=e("./$.export"),c=e("./$.is-object"),p=e("./$.an-object"),f=e("./$.a-function"),h=e("./$.strict-new"),d=e("./$.for-of"),m=e("./$.set-proto").set,b=e("./$.same-value"),y=e("./$.wks")("species"),v=e("./$.species-constructor"),g=e("./$.microtask"),_="Promise",T=s.process,E="process"==l(T),C=s[_],w=function(e){var t=new C(function(){});return e&&(t.constructor=Object),C.resolve(t)===t},S=function(){function t(e){var n=new C(e);return m(n,t.prototype),n}var n=!1;try{if(n=C&&C.resolve&&w(),m(t,C),t.prototype=i.create(C.prototype,{constructor:{value:t}}),t.resolve(5).then(function(){})instanceof t||(n=!1),n&&e("./$.descriptors")){var r=!1;C.resolve(i.setDesc({},"then",{get:function(){r=!0}})),n=r}}catch(o){n=!1}return n}(),P=function(e,t){return o&&e===C&&t===r?!0:b(e,t)},x=function(e){var t=p(e)[y];return void 0!=t?t:e},k=function(e){var t;return c(e)&&"function"==typeof(t=e.then)?t:!1},M=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=f(t),this.reject=f(n)},A=function(e){try{e()}catch(t){return{error:t}}},O=function(e,t){if(!e.n){e.n=!0;var n=e.c;g(function(){for(var r=e.v,i=1==e.s,o=0,a=function(t){var n,o,s=i?t.ok:t.fail,a=t.resolve,l=t.reject;try{s?(i||(e.h=!0),n=s===!0?r:s(r),n===t.promise?l(TypeError("Promise-chain cycle")):(o=k(n))?o.call(n,a,l):a(n)):l(r)}catch(u){l(u)}};n.length>o;)a(n[o++]);n.length=0,e.n=!1,t&&setTimeout(function(){var t,n,i=e.p;N(i)&&(E?T.emit("unhandledRejection",r,i):(t=s.onunhandledrejection)?t({promise:i,reason:r}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",r)),e.a=void 0},1)})}},N=function(e){var t,n=e._d,r=n.a||n.c,i=0;if(n.h)return!1;for(;r.length>i;)if(t=r[i++],t.fail||!N(t.promise))return!1;return!0},I=function(e){var t=this;t.d||(t.d=!0,t=t.r||t,t.v=e,t.s=2,t.a=t.c.slice(),O(t,!0))},D=function(e){var t,n=this;if(!n.d){n.d=!0,n=n.r||n;try{if(n.p===e)throw TypeError("Promise can't be resolved itself");(t=k(e))?g(function(){var r={r:n,d:!1};try{t.call(e,a(D,r,1),a(I,r,1))}catch(i){I.call(r,i)}}):(n.v=e,n.s=1,O(n,!1))}catch(r){I.call({r:n,d:!1},r)}}};S||(C=function(e){f(e);var t=this._d={p:h(this,C,_),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{e(a(D,t,1),a(I,t,1))}catch(n){I.call(t,n)}},e("./$.redefine-all")(C.prototype,{then:function(e,t){var n=new M(v(this,C)),r=n.promise,i=this._d;return n.ok="function"==typeof e?e:!0,n.fail="function"==typeof t&&t,i.c.push(n),i.a&&i.a.push(n),i.s&&O(i,!1),r},"catch":function(e){return this.then(void 0,e)}})),u(u.G+u.W+u.F*!S,{Promise:C}),e("./$.set-to-string-tag")(C,_),e("./$.set-species")(_),r=e("./$.core")[_],u(u.S+u.F*!S,_,{reject:function(e){var t=new M(this),n=t.reject;return n(e),t.promise}}),u(u.S+u.F*(!S||w(!0)),_,{resolve:function(e){if(e instanceof C&&P(e.constructor,this))return e;var t=new M(this),n=t.resolve;return n(e),t.promise}}),u(u.S+u.F*!(S&&e("./$.iter-detect")(function(e){C.all(e)["catch"](function(){})})),_,{all:function(e){var t=x(this),n=new M(t),r=n.resolve,o=n.reject,s=[],a=A(function(){d(e,!1,s.push,s);var n=s.length,a=Array(n);n?i.each.call(s,function(e,i){var s=!1;t.resolve(e).then(function(e){s||(s=!0,a[i]=e,--n||r(a))},o)}):r(a)});return a&&o(a.error),n.promise},race:function(e){var t=x(this),n=new M(t),r=n.reject,i=A(function(){d(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},{"./$":79,"./$.a-function":46,"./$.an-object":48,"./$.classof":49,"./$.core":54,"./$.ctx":55,"./$.descriptors":57,"./$.export":60,"./$.for-of":62,"./$.global":64,"./$.is-object":72,"./$.iter-detect":76,"./$.library":81,"./$.microtask":82,"./$.redefine-all":86,"./$.same-value":88,"./$.set-proto":89,"./$.set-species":90,"./$.set-to-string-tag":91,"./$.species-constructor":93,"./$.strict-new":94,"./$.wks":102}],118:[function(e,t,n){"use strict";var r=e("./$.string-at")(!0);e("./$.iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},{"./$.iter-define":75,"./$.string-at":95}],119:[function(e,t,n){"use strict";var r=e("./$"),i=e("./$.global"),o=e("./$.has"),s=e("./$.descriptors"),a=e("./$.export"),l=e("./$.redefine"),u=e("./$.fails"),c=e("./$.shared"),p=e("./$.set-to-string-tag"),f=e("./$.uid"),h=e("./$.wks"),d=e("./$.keyof"),m=e("./$.get-names"),b=e("./$.enum-keys"),y=e("./$.is-array"),v=e("./$.an-object"),g=e("./$.to-iobject"),_=e("./$.property-desc"),T=r.getDesc,E=r.setDesc,C=r.create,w=m.get,S=i.Symbol,P=i.JSON,x=P&&P.stringify,k=!1,M=h("_hidden"),A=r.isEnum,O=c("symbol-registry"),N=c("symbols"),I="function"==typeof S,D=Object.prototype,R=s&&u(function(){return 7!=C(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=T(D,t);r&&delete D[t],E(e,t,n),r&&e!==D&&E(D,t,r)}:E,L=function(e){var t=N[e]=C(S.prototype);return t._k=e,s&&k&&R(D,e,{configurable:!0,set:function(t){o(this,M)&&o(this[M],e)&&(this[M][e]=!1),R(this,e,_(1,t))}}),t},j=function(e){return"symbol"==typeof e},U=function(e,t,n){return n&&o(N,t)?(n.enumerable?(o(e,M)&&e[M][t]&&(e[M][t]=!1),n=C(n,{enumerable:_(0,!1)})):(o(e,M)||E(e,M,_(1,{})),e[M][t]=!0),R(e,t,n)):E(e,t,n)},F=function(e,t){v(e);for(var n,r=b(t=g(t)),i=0,o=r.length;o>i;)U(e,n=r[i++],t[n]);return e},B=function(e,t){return void 0===t?C(e):F(C(e),t)},H=function(e){var t=A.call(this,e);return t||!o(this,e)||!o(N,e)||o(this,M)&&this[M][e]?t:!0},K=function(e,t){var n=T(e=g(e),t);return!n||!o(N,t)||o(e,M)&&e[M][t]||(n.enumerable=!0),n},G=function(e){for(var t,n=w(g(e)),r=[],i=0;n.length>i;)o(N,t=n[i++])||t==M||r.push(t);return r},q=function(e){for(var t,n=w(g(e)),r=[],i=0;n.length>i;)o(N,t=n[i++])&&r.push(N[t]);return r},V=function(e){if(void 0!==e&&!j(e)){for(var t,n,r=[e],i=1,o=arguments;o.length>i;)r.push(o[i++]);return t=r[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){return n&&(t=n.call(this,e,t)),j(t)?void 0:t}),r[1]=t,x.apply(P,r)}},z=u(function(){var e=S();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))});I||(S=function(){if(j(this))throw TypeError("Symbol is not a constructor");return L(f(arguments.length>0?arguments[0]:void 0))},l(S.prototype,"toString",function(){return this._k}),j=function(e){return e instanceof S},r.create=B,r.isEnum=H,r.getDesc=K,r.setDesc=U,r.setDescs=F,r.getNames=m.get=G,r.getSymbols=q,s&&!e("./$.library")&&l(D,"propertyIsEnumerable",H,!0));var X={"for":function(e){return o(O,e+="")?O[e]:O[e]=S(e)},keyFor:function(e){return d(O,e)},useSetter:function(){k=!0},useSimple:function(){k=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(e){var t=h(e);X[e]=I?t:L(t)}),k=!0,a(a.G+a.W,{Symbol:S}),a(a.S,"Symbol",X),a(a.S+a.F*!I,"Object",{create:B,defineProperty:U,defineProperties:F,getOwnPropertyDescriptor:K,getOwnPropertyNames:G,getOwnPropertySymbols:q}),P&&a(a.S+a.F*(!I||z),"JSON",{stringify:V}),p(S,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},{"./$":79,"./$.an-object":48,"./$.descriptors":57,"./$.enum-keys":59,"./$.export":60,"./$.fails":61,"./$.get-names":63,"./$.global":64,"./$.has":65,"./$.is-array":71,"./$.keyof":80,"./$.library":81,"./$.property-desc":85,"./$.redefine":87,"./$.set-to-string-tag":91,"./$.shared":92,"./$.to-iobject":98,"./$.uid":101,"./$.wks":102}],120:[function(e,t,n){var r=e("./$.export");r(r.P,"Map",{toJSON:e("./$.collection-to-json")("Map")})},{"./$.collection-to-json":52,"./$.export":60}],121:[function(e,t,n){e("./es6.array.iterator");var r=e("./$.iterators");r.NodeList=r.HTMLCollection=r.Array},{"./$.iterators":78,"./es6.array.iterator":107}],122:[function(e,t,n){!function(){function e(e){return e&&(e.ownerDocument||e.document||e).documentElement}function n(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function r(e,t){return t>e?-1:e>t?1:e>=t?0:NaN}function i(e){return null===e?NaN:+e}function o(e){return!isNaN(e)}function s(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}function a(e){return e.length}function l(e){for(var t=1;e*t%1;)t*=10;return t}function u(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function c(){this._=Object.create(null)}function p(e){return(e+="")===Es||e[0]===Cs?Cs+e:e}function f(e){return(e+="")[0]===Cs?e.slice(1):e}function h(e){return p(e)in this._}function d(e){return(e=p(e))in this._&&delete this._[e]}function m(){var e=[];for(var t in this._)e.push(f(t));return e}function b(){var e=0;for(var t in this._)++e;return e}function y(){for(var e in this._)return!1;return!0}function v(){this._=Object.create(null)}function g(e){return e}function _(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function T(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=ws.length;r>n;++n){var i=ws[n]+t;if(i in e)return i}}function E(){}function C(){}function w(e){function t(){for(var t,r=n,i=-1,o=r.length;++i<o;)(t=r[i].on)&&t.apply(this,arguments);return e}var n=[],r=new c;return t.on=function(t,i){var o,s=r.get(t);return arguments.length<2?s&&s.on:(s&&(s.on=null,n=n.slice(0,o=n.indexOf(s)).concat(n.slice(o+1)),r.remove(t)),i&&n.push(r.set(t,{on:i})),e)},t}function S(){us.event.preventDefault()}function P(){for(var e,t=us.event;e=t.sourceEvent;)t=e;return t}function x(e){for(var t=new C,n=0,r=arguments.length;++n<r;)t[arguments[n]]=w(t);return t.of=function(n,r){return function(i){try{var o=i.sourceEvent=us.event;i.target=e,us.event=i,t[i.type].apply(n,r)}finally{us.event=o}}},t}function k(e){return Ps(e,As),e}function M(e){return"function"==typeof e?e:function(){return xs(e,this)}}function A(e){return"function"==typeof e?e:function(){return ks(e,this)}}function O(e,t){function n(){this.removeAttribute(e)}function r(){this.removeAttributeNS(e.space,e.local)}function i(){this.setAttribute(e,t)}function o(){this.setAttributeNS(e.space,e.local,t)}function s(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}function a(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}
|
||
return e=us.ns.qualify(e),null==t?e.local?r:n:"function"==typeof t?e.local?a:s:e.local?o:i}function N(e){return e.trim().replace(/\s+/g," ")}function I(e){return new RegExp("(?:^|\\s+)"+us.requote(e)+"(?:\\s+|$)","g")}function D(e){return(e+"").trim().split(/^|\s+/)}function R(e,t){function n(){for(var n=-1;++n<i;)e[n](this,t)}function r(){for(var n=-1,r=t.apply(this,arguments);++n<i;)e[n](this,r)}e=D(e).map(L);var i=e.length;return"function"==typeof t?r:n}function L(e){var t=I(e);return function(n,r){if(i=n.classList)return r?i.add(e):i.remove(e);var i=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||n.setAttribute("class",N(i+" "+e))):n.setAttribute("class",N(i.replace(t," ")))}}function j(e,t,n){function r(){this.style.removeProperty(e)}function i(){this.style.setProperty(e,t,n)}function o(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}return null==t?r:"function"==typeof t?o:i}function U(e,t){function n(){delete this[e]}function r(){this[e]=t}function i(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}return null==t?n:"function"==typeof t?i:r}function F(e){function t(){var t=this.ownerDocument,n=this.namespaceURI;return n===Os&&t.documentElement.namespaceURI===Os?t.createElement(e):t.createElementNS(n,e)}function n(){return this.ownerDocument.createElementNS(e.space,e.local)}return"function"==typeof e?e:(e=us.ns.qualify(e)).local?n:t}function B(){var e=this.parentNode;e&&e.removeChild(this)}function H(e){return{__data__:e}}function K(e){return function(){return Ms(this,e)}}function G(e){return arguments.length||(e=r),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function q(e,t){for(var n=0,r=e.length;r>n;n++)for(var i,o=e[n],s=0,a=o.length;a>s;s++)(i=o[s])&&t(i,s,n);return e}function V(e){return Ps(e,Is),e}function z(e){var t,n;return function(r,i,o){var s,a=e[o].update,l=a.length;for(o!=n&&(n=o,t=0),i>=t&&(t=i+1);!(s=a[t])&&++t<l;);return s}}function X(e,t,n){function r(){var t=this[s];t&&(this.removeEventListener(e,t,t.$),delete this[s])}function i(){var i=l(t,ps(arguments));r.call(this),this.addEventListener(e,this[s]=i,i.$=n),i._=t}function o(){var t,n=new RegExp("^__on([^.]+)"+us.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}var s="__on"+e,a=e.indexOf("."),l=W;a>0&&(e=e.slice(0,a));var u=Ds.get(e);return u&&(e=u,l=$),a?t?i:r:t?E:o}function W(e,t){return function(n){var r=us.event;us.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{us.event=r}}}function $(e,t){var n=W(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function Q(t){var r=".dragsuppress-"+ ++Ls,i="click"+r,o=us.select(n(t)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==Rs&&(Rs="onselectstart"in t?!1:T(t.style,"userSelect")),Rs){var s=e(t).style,a=s[Rs];s[Rs]="none"}return function(e){if(o.on(r,null),Rs&&(s[Rs]=a),e){var t=function(){o.on(i,null)};o.on(i,function(){S(),t()},!0),setTimeout(t,0)}}}function Y(e,t){t.changedTouches&&(t=t.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>js){var o=n(e);if(o.scrollX||o.scrollY){r=us.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var s=r[0][0].getScreenCTM();js=!(s.f||s.e),r.remove()}}return js?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}var a=e.getBoundingClientRect();return[t.clientX-a.left-e.clientLeft,t.clientY-a.top-e.clientTop]}function Z(){return us.event.changedTouches[0].identifier}function J(e){return e>0?1:0>e?-1:0}function ee(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function te(e){return e>1?0:-1>e?Bs:Math.acos(e)}function ne(e){return e>1?Gs:-1>e?-Gs:Math.asin(e)}function re(e){return((e=Math.exp(e))-1/e)/2}function ie(e){return((e=Math.exp(e))+1/e)/2}function oe(e){return((e=Math.exp(2*e))-1)/(e+1)}function se(e){return(e=Math.sin(e/2))*e}function ae(){}function le(e,t,n){return this instanceof le?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof le?new le(e.h,e.s,e.l):Ee(""+e,Ce,le):new le(e,t,n)}function ue(e,t,n){function r(e){return e>360?e-=360:0>e&&(e+=360),60>e?o+(s-o)*e/60:180>e?s:240>e?o+(s-o)*(240-e)/60:o}function i(e){return Math.round(255*r(e))}var o,s;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:0>t?0:t>1?1:t,n=0>n?0:n>1?1:n,s=.5>=n?n*(1+t):n+t-n*t,o=2*n-s,new ve(i(e+120),i(e),i(e-120))}function ce(e,t,n){return this instanceof ce?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof ce?new ce(e.h,e.c,e.l):e instanceof fe?de(e.l,e.a,e.b):de((e=we((e=us.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new ce(e,t,n)}function pe(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new fe(n,Math.cos(e*=qs)*t,Math.sin(e)*t)}function fe(e,t,n){return this instanceof fe?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof fe?new fe(e.l,e.a,e.b):e instanceof ce?pe(e.h,e.c,e.l):we((e=ve(e)).r,e.g,e.b):new fe(e,t,n)}function he(e,t,n){var r=(e+16)/116,i=r+t/500,o=r-n/200;return i=me(i)*ta,r=me(r)*na,o=me(o)*ra,new ve(ye(3.2404542*i-1.5371385*r-.4985314*o),ye(-.969266*i+1.8760108*r+.041556*o),ye(.0556434*i-.2040259*r+1.0572252*o))}function de(e,t,n){return e>0?new ce(Math.atan2(n,t)*Vs,Math.sqrt(t*t+n*n),e):new ce(NaN,NaN,e)}function me(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function be(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function ye(e){return Math.round(255*(.00304>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ve(e,t,n){return this instanceof ve?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ve?new ve(e.r,e.g,e.b):Ee(""+e,ve,ue):new ve(e,t,n)}function ge(e){return new ve(e>>16,e>>8&255,255&e)}function _e(e){return ge(e)+""}function Te(e){return 16>e?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function Ee(e,t,n){var r,i,o,s=0,a=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(Pe(i[0]),Pe(i[1]),Pe(i[2]))}return(o=sa.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(s=(3840&o)>>4,s=s>>4|s,a=240&o,a=a>>4|a,l=15&o,l=l<<4|l):7===e.length&&(s=(16711680&o)>>16,a=(65280&o)>>8,l=255&o)),t(s,a,l))}function Ce(e,t,n){var r,i,o=Math.min(e/=255,t/=255,n/=255),s=Math.max(e,t,n),a=s-o,l=(s+o)/2;return a?(i=.5>l?a/(s+o):a/(2-s-o),r=e==s?(t-n)/a+(n>t?6:0):t==s?(n-e)/a+2:(e-t)/a+4,r*=60):(r=NaN,i=l>0&&1>l?0:r),new le(r,i,l)}function we(e,t,n){e=Se(e),t=Se(t),n=Se(n);var r=be((.4124564*e+.3575761*t+.1804375*n)/ta),i=be((.2126729*e+.7151522*t+.072175*n)/na),o=be((.0193339*e+.119192*t+.9503041*n)/ra);return fe(116*i-16,500*(r-i),200*(i-o))}function Se(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Pe(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function xe(e){return"function"==typeof e?e:function(){return e}}function ke(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Me(t,n,e,r)}}function Me(e,t,n,r){function i(){var e,t=l.status;if(!t&&Oe(l)||t>=200&&300>t||304===t){try{e=n.call(o,l)}catch(r){return void s.error.call(o,r)}s.load.call(o,e)}else s.error.call(o,l)}var o={},s=us.dispatch("beforesend","progress","load","error"),a={},l=new XMLHttpRequest,u=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(e)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(e){var t=us.event;us.event=e;try{s.progress.call(o,l)}finally{us.event=t}},o.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?a[e]:(null==t?delete a[e]:a[e]=t+"",o)},o.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",o):t},o.responseType=function(e){return arguments.length?(u=e,o):u},o.response=function(e){return n=e,o},["get","post"].forEach(function(e){o[e]=function(){return o.send.apply(o,[e].concat(ps(arguments)))}}),o.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),l.open(n,e,!0),null==t||"accept"in a||(a.accept=t+",*/*"),l.setRequestHeader)for(var c in a)l.setRequestHeader(c,a[c]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=u&&(l.responseType=u),null!=i&&o.on("error",i).on("load",function(e){i(null,e)}),s.beforesend.call(o,l),l.send(null==r?null:r),o},o.abort=function(){return l.abort(),o},us.rebind(o,s,"on"),null==r?o:o.get(Ae(r))}function Ae(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Oe(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function Ne(e,t,n){var r=arguments.length;2>r&&(t=0),3>r&&(n=Date.now());var i=n+t,o={c:e,t:i,n:null};return la?la.n=o:aa=o,la=o,ua||(ca=clearTimeout(ca),ua=1,pa(Ie)),o}function Ie(){var e=De(),t=Re()-e;t>24?(isFinite(t)&&(clearTimeout(ca),ca=setTimeout(Ie,t)),ua=0):(ua=1,pa(Ie))}function De(){for(var e=Date.now(),t=aa;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Re(){for(var e,t=aa,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:aa=t.n;return la=e,n}function Le(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}function je(e,t){var n=Math.pow(10,3*Ts(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Ue(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,o=r&&n?function(e,t){for(var i=e.length,o=[],s=0,a=r[0],l=0;i>0&&a>0&&(l+a+1>t&&(a=Math.max(1,t-l)),o.push(e.substring(i-=a,i+a)),!((l+=a+1)>t));)a=r[s=(s+1)%r.length];return o.reverse().join(n)}:g;return function(e){var n=ha.exec(e),r=n[1]||" ",s=n[2]||">",a=n[3]||"-",l=n[4]||"",u=n[5],c=+n[6],p=n[7],f=n[8],h=n[9],d=1,m="",b="",y=!1,v=!0;switch(f&&(f=+f.substring(1)),(u||"0"===r&&"="===s)&&(u=r="0",s="="),h){case"n":p=!0,h="g";break;case"%":d=100,b="%",h="f";break;case"p":d=100,b="%",h="r";break;case"b":case"o":case"x":case"X":"#"===l&&(m="0"+h.toLowerCase());case"c":v=!1;case"d":y=!0,f=0;break;case"s":d=-1,h="r"}"$"===l&&(m=i[0],b=i[1]),"r"!=h||f||(h="g"),null!=f&&("g"==h?f=Math.max(1,Math.min(21,f)):"e"!=h&&"f"!=h||(f=Math.max(0,Math.min(20,f)))),h=da.get(h)||Fe;var g=u&&p;return function(e){var n=b;if(y&&e%1)return"";var i=0>e||0===e&&0>1/e?(e=-e,"-"):"-"===a?"":a;if(0>d){var l=us.formatPrefix(e,f);e=l.scale(e),n=l.symbol+b}else e*=d;e=h(e,f);var _,T,E=e.lastIndexOf(".");if(0>E){var C=v?e.lastIndexOf("e"):-1;0>C?(_=e,T=""):(_=e.substring(0,C),T=e.substring(C))}else _=e.substring(0,E),T=t+e.substring(E+1);!u&&p&&(_=o(_,1/0));var w=m.length+_.length+T.length+(g?0:i.length),S=c>w?new Array(w=c-w+1).join(r):"";return g&&(_=o(S+_,S.length?c-T.length:1/0)),i+=m,e=_+T,("<"===s?i+e+S:">"===s?S+i+e:"^"===s?S.substring(0,w>>=1)+i+e+S.substring(w):i+(g?e:S+e))+n}}}function Fe(e){return e+""}function Be(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function He(e,t,n){function r(t){var n=e(t),r=o(n,1);return r-t>t-n?n:r}function i(n){return t(n=e(new ba(n-1)),1),n}function o(e,n){return t(e=new ba(+e),n),e}function s(e,r,o){var s=i(e),a=[];if(o>1)for(;r>s;)n(s)%o||a.push(new Date(+s)),t(s,1);else for(;r>s;)a.push(new Date(+s)),t(s,1);return a}function a(e,t,n){try{ba=Be;var r=new Be;return r._=e,s(r,t,n)}finally{ba=Date}}e.floor=e,e.round=r,e.ceil=i,e.offset=o,e.range=s;var l=e.utc=Ke(e);return l.floor=l,l.round=Ke(r),l.ceil=Ke(i),l.offset=Ke(o),l.range=a,e}function Ke(e){return function(t,n){try{ba=Be;var r=new Be;return r._=t,e(r,n)._}finally{ba=Date}}}function Ge(e){function t(e){function t(t){for(var n,i,o,s=[],a=-1,l=0;++a<r;)37===e.charCodeAt(a)&&(s.push(e.slice(l,a)),null!=(i=va[n=e.charAt(++a)])&&(n=e.charAt(++a)),(o=k[n])&&(n=o(t,null==i?"e"===n?" ":"0":i)),s.push(n),l=a+1);return s.push(e.slice(l,a)),s.join("")}var r=e.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=n(r,e,t,0);if(i!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var o=null!=r.Z&&ba!==Be,s=new(o?Be:ba);return"j"in r?s.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),s.setFullYear(r.y,0,1),s.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(s.getDay()+5)%7:r.w+7*r.U-(s.getDay()+6)%7)):s.setFullYear(r.y,r.m,r.d),s.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),o?s._:s},t.toString=function(){return e},t}function n(e,t,n,r){for(var i,o,s,a=0,l=t.length,u=n.length;l>a;){if(r>=u)return-1;if(i=t.charCodeAt(a++),37===i){if(s=t.charAt(a++),o=M[s in va?t.charAt(a++):s],!o||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){E.lastIndex=0;var r=E.exec(t.slice(n));return r?(e.w=C.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){_.lastIndex=0;var r=_.exec(t.slice(n));return r?(e.w=T.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){P.lastIndex=0;var r=P.exec(t.slice(n));return r?(e.m=x.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,n){w.lastIndex=0;var r=w.exec(t.slice(n));return r?(e.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function a(e,t,r){return n(e,k.c.toString(),t,r)}function l(e,t,r){return n(e,k.x.toString(),t,r)}function u(e,t,r){return n(e,k.X.toString(),t,r)}function c(e,t,n){var r=g.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var p=e.dateTime,f=e.date,h=e.time,d=e.periods,m=e.days,b=e.shortDays,y=e.months,v=e.shortMonths;t.utc=function(e){function n(e){try{ba=Be;var t=new ba;return t._=e,r(t)}finally{ba=Date}}var r=t(e);return n.parse=function(e){try{ba=Be;var t=r.parse(e);return t&&t._}finally{ba=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=ut;var g=us.map(),_=Ve(m),T=ze(m),E=Ve(b),C=ze(b),w=Ve(y),S=ze(y),P=Ve(v),x=ze(v);d.forEach(function(e,t){g.set(e.toLowerCase(),t)});var k={a:function(e){return b[e.getDay()]},A:function(e){return m[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return y[e.getMonth()]},c:t(p),d:function(e,t){return qe(e.getDate(),t,2)},e:function(e,t){return qe(e.getDate(),t,2)},H:function(e,t){return qe(e.getHours(),t,2)},I:function(e,t){return qe(e.getHours()%12||12,t,2)},j:function(e,t){return qe(1+ma.dayOfYear(e),t,3)},L:function(e,t){return qe(e.getMilliseconds(),t,3)},m:function(e,t){return qe(e.getMonth()+1,t,2)},M:function(e,t){return qe(e.getMinutes(),t,2)},p:function(e){return d[+(e.getHours()>=12)]},S:function(e,t){return qe(e.getSeconds(),t,2)},U:function(e,t){return qe(ma.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return qe(ma.mondayOfYear(e),t,2)},x:t(f),X:t(h),y:function(e,t){return qe(e.getFullYear()%100,t,2)},Y:function(e,t){return qe(e.getFullYear()%1e4,t,4)},Z:at,"%":function(){return"%"}},M={a:r,A:i,b:o,B:s,c:a,d:tt,e:tt,H:rt,I:rt,j:nt,L:st,m:et,M:it,p:c,S:ot,U:We,w:Xe,W:$e,x:l,X:u,y:Ye,Y:Qe,Z:Ze,"%":lt};return t}function qe(e,t,n){var r=0>e?"-":"",i=(r?-e:e)+"",o=i.length;return r+(n>o?new Array(n-o+1).join(t)+i:i)}function Ve(e){return new RegExp("^(?:"+e.map(us.requote).join("|")+")","i")}function ze(e){for(var t=new c,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function Xe(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function We(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function $e(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function Qe(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ye(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+2));return r?(e.y=Je(+r[0]),n+r[0].length):-1}function Ze(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function Je(e){return e+(e>68?1900:2e3)}function et(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tt(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function nt(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function rt(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function it(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ot(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function st(e,t,n){ga.lastIndex=0;var r=ga.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function at(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=Ts(t)/60|0,i=Ts(t)%60;return n+qe(r,"0",2)+qe(i,"0",2)}function lt(e,t,n){_a.lastIndex=0;var r=_a.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ut(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}function ct(){}function pt(e,t,n){var r=n.s=e+t,i=r-e,o=r-i;n.t=e-o+(t-i)}function ft(e,t){e&&wa.hasOwnProperty(e.type)&&wa[e.type](e,t)}function ht(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function dt(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)ht(e[n],t,1);t.polygonEnd()}function mt(){function e(e,t){e*=qs,t=t*qs/2+Bs/4;var n=e-r,s=n>=0?1:-1,a=s*n,l=Math.cos(t),u=Math.sin(t),c=o*u,p=i*l+c*Math.cos(a),f=c*s*Math.sin(a);Pa.add(Math.atan2(f,p)),r=e,i=l,o=u}var t,n,r,i,o;xa.point=function(s,a){xa.point=e,r=(t=s)*qs,i=Math.cos(a=(n=a)*qs/2+Bs/4),o=Math.sin(a)},xa.lineEnd=function(){e(t,n)}}function bt(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function yt(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function vt(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function gt(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function _t(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Tt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Et(e){return[Math.atan2(e[1],e[0]),ne(e[2])]}function Ct(e,t){return Ts(e[0]-t[0])<Us&&Ts(e[1]-t[1])<Us}function wt(e,t){e*=qs;var n=Math.cos(t*=qs);St(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function St(e,t,n){++ka,Aa+=(e-Aa)/ka,Oa+=(t-Oa)/ka,Na+=(n-Na)/ka}function Pt(){function e(e,i){e*=qs;var o=Math.cos(i*=qs),s=o*Math.cos(e),a=o*Math.sin(e),l=Math.sin(i),u=Math.atan2(Math.sqrt((u=n*l-r*a)*u+(u=r*s-t*l)*u+(u=t*a-n*s)*u),t*s+n*a+r*l);Ma+=u,Ia+=u*(t+(t=s)),Da+=u*(n+(n=a)),Ra+=u*(r+(r=l)),St(t,n,r)}var t,n,r;Fa.point=function(i,o){i*=qs;var s=Math.cos(o*=qs);t=s*Math.cos(i),n=s*Math.sin(i),r=Math.sin(o),Fa.point=e,St(t,n,r)}}function xt(){Fa.point=wt}function kt(){function e(e,t){e*=qs;var n=Math.cos(t*=qs),s=n*Math.cos(e),a=n*Math.sin(e),l=Math.sin(t),u=i*l-o*a,c=o*s-r*l,p=r*a-i*s,f=Math.sqrt(u*u+c*c+p*p),h=r*s+i*a+o*l,d=f&&-te(h)/f,m=Math.atan2(f,h);La+=d*u,ja+=d*c,Ua+=d*p,Ma+=m,Ia+=m*(r+(r=s)),Da+=m*(i+(i=a)),Ra+=m*(o+(o=l)),St(r,i,o)}var t,n,r,i,o;Fa.point=function(s,a){t=s,n=a,Fa.point=e,s*=qs;var l=Math.cos(a*=qs);r=l*Math.cos(s),i=l*Math.sin(s),o=Math.sin(a),St(r,i,o)},Fa.lineEnd=function(){e(t,n),Fa.lineEnd=xt,Fa.point=wt}}function Mt(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function At(){return!0}function Ot(e,t,n,r,i){var o=[],s=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(Ct(n,r)){i.lineStart();for(var a=0;t>a;++a)i.point((n=e[a])[0],n[1]);return void i.lineEnd()}var l=new It(n,e,null,!0),u=new It(n,null,l,!1);l.o=u,o.push(l),s.push(u),l=new It(r,e,null,!1),u=new It(r,null,l,!0),l.o=u,o.push(l),s.push(u)}}),s.sort(t),Nt(o),Nt(s),o.length){for(var a=0,l=n,u=s.length;u>a;++a)s[a].e=l=!l;for(var c,p,f=o[0];;){for(var h=f,d=!0;h.v;)if((h=h.n)===f)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(var a=0,u=c.length;u>a;++a)i.point((p=c[a])[0],p[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d){c=h.p.z;for(var a=c.length-1;a>=0;--a)i.point((p=c[a])[0],p[1])}else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,c=h.z,d=!d}while(!h.v);i.lineEnd()}}}function Nt(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function It(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Dt(e,t,n,r){return function(i,o){function s(t,n){var r=i(t,n);e(t=r[0],n=r[1])&&o.point(t,n)}function a(e,t){var n=i(e,t);b.point(n[0],n[1])}function l(){v.point=a,b.lineStart()}function u(){v.point=s,b.lineEnd()}function c(e,t){m.push([e,t]);var n=i(e,t);_.point(n[0],n[1])}function p(){_.lineStart(),m=[]}function f(){c(m[0][0],m[0][1]),_.lineEnd();var e,t=_.clean(),n=g.buffer(),r=n.length;if(m.pop(),d.push(m),m=null,r)if(1&t){e=n[0];var i,r=e.length-1,s=-1;if(r>0){for(T||(o.polygonStart(),T=!0),o.lineStart();++s<r;)o.point((i=e[s])[0],i[1]);o.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),h.push(n.filter(Rt))}var h,d,m,b=t(o),y=i.invert(r[0],r[1]),v={point:s,lineStart:l,lineEnd:u,polygonStart:function(){v.point=c,v.lineStart=p,v.lineEnd=f,h=[],d=[]},polygonEnd:function(){v.point=s,v.lineStart=l,v.lineEnd=u,h=us.merge(h);var e=Ht(y,d);h.length?(T||(o.polygonStart(),T=!0),Ot(h,jt,e,n,o)):e&&(T||(o.polygonStart(),T=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),T&&(o.polygonEnd(),T=!1),h=d=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}},g=Lt(),_=t(g),T=!1;return v}}function Rt(e){return e.length>1}function Lt(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:E,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function jt(e,t){return((e=e.x)[0]<0?e[1]-Gs-Us:Gs-e[1])-((t=t.x)[0]<0?t[1]-Gs-Us:Gs-t[1])}function Ut(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,s){var a=o>0?Bs:-Bs,l=Ts(o-n);Ts(l-Bs)<Us?(e.point(n,r=(r+s)/2>0?Gs:-Gs),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),e.point(o,r),t=0):i!==a&&l>=Bs&&(Ts(n-i)<Us&&(n-=i*Us),Ts(o-a)<Us&&(o-=a*Us),r=Ft(n,r,o,s),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),t=0),e.point(n=o,r=s),i=a},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function Ft(e,t,n,r){var i,o,s=Math.sin(e-n);return Ts(s)>Us?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*o*s)):(t+r)/2}function Bt(e,t,n,r){var i;if(null==e)i=n*Gs,r.point(-Bs,i),r.point(0,i),r.point(Bs,i),r.point(Bs,0),r.point(Bs,-i),r.point(0,-i),r.point(-Bs,-i),r.point(-Bs,0),r.point(-Bs,i);else if(Ts(e[0]-t[0])>Us){var o=e[0]<t[0]?Bs:-Bs;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}function Ht(e,t){var n=e[0],r=e[1],i=[Math.sin(n),-Math.cos(n),0],o=0,s=0;Pa.reset();for(var a=0,l=t.length;l>a;++a){var u=t[a],c=u.length;if(c)for(var p=u[0],f=p[0],h=p[1]/2+Bs/4,d=Math.sin(h),m=Math.cos(h),b=1;;){b===c&&(b=0),e=u[b];var y=e[0],v=e[1]/2+Bs/4,g=Math.sin(v),_=Math.cos(v),T=y-f,E=T>=0?1:-1,C=E*T,w=C>Bs,S=d*g;if(Pa.add(Math.atan2(S*E*Math.sin(C),m*_+S*Math.cos(C))),o+=w?T+E*Hs:T,w^f>=n^y>=n){var P=vt(bt(p),bt(e));Tt(P);var x=vt(i,P);Tt(x);var k=(w^T>=0?-1:1)*ne(x[2]);(r>k||r===k&&(P[0]||P[1]))&&(s+=w^T>=0?1:-1)}if(!b++)break;f=y,d=g,m=_,p=e}}return(-Us>o||Us>o&&0>Pa)^1&s}function Kt(e){function t(e,t){return Math.cos(e)*Math.cos(t)>o}function n(e){var n,o,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(p,f){var h,d=[p,f],m=t(p,f),b=s?m?0:i(p,f):m?i(p+(0>p?Bs:-Bs),f):0;if(!n&&(u=l=m)&&e.lineStart(),m!==l&&(h=r(n,d),(Ct(n,h)||Ct(d,h))&&(d[0]+=Us,d[1]+=Us,m=t(d[0],d[1]))),m!==l)c=0,m?(e.lineStart(),h=r(d,n),e.point(h[0],h[1])):(h=r(n,d),e.point(h[0],h[1]),e.lineEnd()),n=h;else if(a&&n&&s^m){var y;b&o||!(y=r(d,n,!0))||(c=0,s?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!m||n&&Ct(n,d)||e.point(d[0],d[1]),n=d,l=m,o=b},lineEnd:function(){l&&e.lineEnd(),n=null},clean:function(){return c|(u&&l)<<1}}}function r(e,t,n){var r=bt(e),i=bt(t),s=[1,0,0],a=vt(r,i),l=yt(a,a),u=a[0],c=l-u*u;if(!c)return!n&&e;var p=o*l/c,f=-o*u/c,h=vt(s,a),d=_t(s,p),m=_t(a,f);gt(d,m);var b=h,y=yt(d,b),v=yt(b,b),g=y*y-v*(yt(d,d)-1);if(!(0>g)){var _=Math.sqrt(g),T=_t(b,(-y-_)/v);if(gt(T,d),T=Et(T),!n)return T;var E,C=e[0],w=t[0],S=e[1],P=t[1];C>w&&(E=C,C=w,w=E);var x=w-C,k=Ts(x-Bs)<Us,M=k||Us>x;if(!k&&S>P&&(E=S,S=P,P=E),M?k?S+P>0^T[1]<(Ts(T[0]-C)<Us?S:P):S<=T[1]&&T[1]<=P:x>Bs^(C<=T[0]&&T[0]<=w)){var A=_t(b,(-y+_)/v);return gt(A,d),[T,Et(A)]}}}function i(t,n){var r=s?e:Bs-e,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var o=Math.cos(e),s=o>0,a=Ts(o)>Us,l=bn(e,6*qs);return Dt(t,n,l,s?[0,-e]:[-Bs,e-Bs])}function Gt(e,t,n,r){return function(i){var o,s=i.a,a=i.b,l=s.x,u=s.y,c=a.x,p=a.y,f=0,h=1,d=c-l,m=p-u;if(o=e-l,d||!(o>0)){if(o/=d,0>d){if(f>o)return;h>o&&(h=o)}else if(d>0){if(o>h)return;o>f&&(f=o)}if(o=n-l,d||!(0>o)){if(o/=d,0>d){if(o>h)return;o>f&&(f=o)}else if(d>0){if(f>o)return;h>o&&(h=o)}if(o=t-u,m||!(o>0)){if(o/=m,0>m){if(f>o)return;h>o&&(h=o)}else if(m>0){if(o>h)return;o>f&&(f=o)}if(o=r-u,m||!(0>o)){if(o/=m,0>m){if(o>h)return;o>f&&(f=o)}else if(m>0){if(f>o)return;h>o&&(h=o)}return f>0&&(i.a={x:l+f*d,y:u+f*m}),1>h&&(i.b={x:l+h*d,y:u+h*m}),i}}}}}}function qt(e,t,n,r){function i(r,i){return Ts(r[0]-e)<Us?i>0?0:3:Ts(r[0]-n)<Us?i>0?2:1:Ts(r[1]-t)<Us?i>0?1:0:i>0?3:2}function o(e,t){return s(e.x,t.x)}function s(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){function l(e){for(var t=0,n=b.length,r=e[1],i=0;n>i;++i)for(var o,s=1,a=b[i],l=a.length,u=a[0];l>s;++s)o=a[s],u[1]<=r?o[1]>r&&ee(u,o,e)>0&&++t:o[1]<=r&&ee(u,o,e)<0&&--t,u=o;return 0!==t}function u(o,a,l,u){var c=0,p=0;if(null==o||(c=i(o,l))!==(p=i(a,l))||s(o,a)<0^l>0){do u.point(0===c||3===c?e:n,c>1?r:t);while((c=(c+l+4)%4)!==p)}else u.point(a[0],a[1])}function c(i,o){return i>=e&&n>=i&&o>=t&&r>=o}function p(e,t){c(e,t)&&a.point(e,t)}function f(){M.point=d,b&&b.push(y=[]),w=!0,C=!1,T=E=NaN}function h(){m&&(d(v,g),_&&C&&x.rejoin(),m.push(x.buffer())),M.point=p,C&&a.lineEnd()}function d(e,t){e=Math.max(-Ha,Math.min(Ha,e)),t=Math.max(-Ha,Math.min(Ha,t));var n=c(e,t);if(b&&y.push([e,t]),w)v=e,g=t,_=n,w=!1,n&&(a.lineStart(),a.point(e,t));else if(n&&C)a.point(e,t);else{var r={a:{x:T,y:E},b:{x:e,y:t}};k(r)?(C||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),n||a.lineEnd(),S=!1):n&&(a.lineStart(),a.point(e,t),S=!1)}T=e,E=t,C=n}var m,b,y,v,g,_,T,E,C,w,S,P=a,x=Lt(),k=Gt(e,t,n,r),M={point:p,lineStart:f,lineEnd:h,polygonStart:function(){a=x,m=[],b=[],S=!0},polygonEnd:function(){a=P,m=us.merge(m);var t=l([e,r]),n=S&&t,i=m.length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),u(null,null,1,a),a.lineEnd()),i&&Ot(m,o,t,u,a),a.polygonEnd()),m=b=y=null}};return M}}function Vt(e){var t=0,n=Bs/3,r=ln(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Bs/180,n=e[1]*Bs/180):[t/Bs*180,n/Bs*180]},i}function zt(e,t){function n(e,t){var n=Math.sqrt(o-2*i*Math.sin(t))/i;return[n*Math.sin(e*=i),s-n*Math.cos(e)]}var r=Math.sin(e),i=(r+Math.sin(t))/2,o=1+r*(2*i-r),s=Math.sqrt(o)/i;return n.invert=function(e,t){var n=s-t;return[Math.atan2(e,n)/i,ne((o-(e*e+n*n)*i*i)/(2*i))]},n}function Xt(){function e(e,t){Ga+=i*e-r*t,r=e,i=t}var t,n,r,i;Wa.point=function(o,s){Wa.point=e,t=r=o,n=i=s},Wa.lineEnd=function(){e(t,n)}}function Wt(e,t){qa>e&&(qa=e),e>za&&(za=e),Va>t&&(Va=t),t>Xa&&(Xa=t)}function $t(){function e(e,t){s.push("M",e,",",t,o)}function t(e,t){s.push("M",e,",",t),a.point=n}function n(e,t){s.push("L",e,",",t)}function r(){a.point=e}function i(){s.push("Z")}var o=Qt(4.5),s=[],a={point:e,lineStart:function(){a.point=t},lineEnd:r,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=r,a.point=e},pointRadius:function(e){return o=Qt(e),a},result:function(){if(s.length){var e=s.join("");return s=[],e}}};return a}function Qt(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Yt(e,t){Aa+=e,Oa+=t,++Na}function Zt(){function e(e,r){var i=e-t,o=r-n,s=Math.sqrt(i*i+o*o);Ia+=s*(t+e)/2,Da+=s*(n+r)/2,Ra+=s,Yt(t=e,n=r)}var t,n;Qa.point=function(r,i){Qa.point=e,Yt(t=r,n=i)}}function Jt(){Qa.point=Yt}function en(){function e(e,t){var n=e-r,o=t-i,s=Math.sqrt(n*n+o*o);Ia+=s*(r+e)/2,Da+=s*(i+t)/2,Ra+=s,s=i*e-r*t,La+=s*(r+e),ja+=s*(i+t),Ua+=3*s,Yt(r=e,i=t)}var t,n,r,i;Qa.point=function(o,s){Qa.point=e,Yt(t=r=o,n=i=s)},Qa.lineEnd=function(){e(t,n)}}function tn(e){function t(t,n){e.moveTo(t+s,n),e.arc(t,n,s,0,Hs)}function n(t,n){e.moveTo(t,n),a.point=r}function r(t,n){e.lineTo(t,n)}function i(){a.point=t}function o(){e.closePath()}var s=4.5,a={point:t,lineStart:function(){a.point=n},lineEnd:i,polygonStart:function(){a.lineEnd=o},polygonEnd:function(){a.lineEnd=i,a.point=t},pointRadius:function(e){return s=e,a},result:E};return a}function nn(e){function t(e){return(a?r:n)(e)}function n(t){return sn(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){g=NaN,w.point=o,t.lineStart()}function o(n,r){var o=bt([n,r]),s=e(n,r);i(g,_,v,T,E,C,g=s[0],_=s[1],v=n,T=o[0],E=o[1],C=o[2],a,t),t.point(g,_)}function s(){w.point=n,t.lineEnd()}function l(){r(),w.point=u,w.lineEnd=c}function u(e,t){o(p=e,f=t),h=g,d=_,m=T,b=E,y=C,w.point=o}function c(){i(g,_,v,T,E,C,h,d,p,m,b,y,a,t),w.lineEnd=s,s()}var p,f,h,d,m,b,y,v,g,_,T,E,C,w={point:n,lineStart:r,lineEnd:s,polygonStart:function(){t.polygonStart(),w.lineStart=l},polygonEnd:function(){t.polygonEnd(),w.lineStart=r}};return w}function i(t,n,r,a,l,u,c,p,f,h,d,m,b,y){var v=c-t,g=p-n,_=v*v+g*g;if(_>4*o&&b--){var T=a+h,E=l+d,C=u+m,w=Math.sqrt(T*T+E*E+C*C),S=Math.asin(C/=w),P=Ts(Ts(C)-1)<Us||Ts(r-f)<Us?(r+f)/2:Math.atan2(E,T),x=e(P,S),k=x[0],M=x[1],A=k-t,O=M-n,N=g*A-v*O;(N*N/_>o||Ts((v*A+g*O)/_-.5)>.3||s>a*h+l*d+u*m)&&(i(t,n,r,a,l,u,k,M,P,T/=w,E/=w,C,b,y),y.point(k,M),i(k,M,P,T,E,C,c,p,f,h,d,m,b,y))}}var o=.5,s=Math.cos(30*qs),a=16;return t.precision=function(e){return arguments.length?(a=(o=e*e)>0&&16,t):Math.sqrt(o)},t}function rn(e){var t=nn(function(t,n){return e([t*Vs,n*Vs])});return function(e){return un(t(e))}}function on(e){this.stream=e}function sn(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function an(e){return ln(function(){return e})()}function ln(e){function t(e){return e=a(e[0]*qs,e[1]*qs),[e[0]*f+l,u-e[1]*f]}function n(e){return e=a.invert((e[0]-l)/f,(u-e[1])/f),e&&[e[0]*Vs,e[1]*Vs]}function r(){a=Mt(s=fn(y,v,_),o);var e=o(m,b);return l=h-e[0]*f,u=d+e[1]*f,i()}function i(){return c&&(c.valid=!1,c=null),t}var o,s,a,l,u,c,p=nn(function(e,t){return e=o(e,t),[e[0]*f+l,u-e[1]*f]}),f=150,h=480,d=250,m=0,b=0,y=0,v=0,_=0,T=Ba,E=g,C=null,w=null;return t.stream=function(e){return c&&(c.valid=!1),c=un(T(s,p(E(e)))),c.valid=!0,c},t.clipAngle=function(e){return arguments.length?(T=null==e?(C=e,Ba):Kt((C=+e)*qs),i()):C},t.clipExtent=function(e){return arguments.length?(w=e,E=e?qt(e[0][0],e[0][1],e[1][0],e[1][1]):g,i()):w},t.scale=function(e){return arguments.length?(f=+e,r()):f},t.translate=function(e){return arguments.length?(h=+e[0],d=+e[1],r()):[h,d]},t.center=function(e){return arguments.length?(m=e[0]%360*qs,b=e[1]%360*qs,r()):[m*Vs,b*Vs]},t.rotate=function(e){return arguments.length?(y=e[0]%360*qs,v=e[1]%360*qs,_=e.length>2?e[2]%360*qs:0,r()):[y*Vs,v*Vs,_*Vs]},us.rebind(t,p,"precision"),function(){return o=e.apply(this,arguments),t.invert=o.invert&&n,r()}}function un(e){return sn(e,function(t,n){e.point(t*qs,n*qs)})}function cn(e,t){return[e,t]}function pn(e,t){return[e>Bs?e-Hs:-Bs>e?e+Hs:e,t]}function fn(e,t,n){return e?t||n?Mt(dn(e),mn(t,n)):dn(e):t||n?mn(t,n):pn}function hn(e){return function(t,n){return t+=e,[t>Bs?t-Hs:-Bs>t?t+Hs:t,n]}}function dn(e){var t=hn(e);return t.invert=hn(-e),t}function mn(e,t){function n(e,t){
|
||
var n=Math.cos(t),a=Math.cos(e)*n,l=Math.sin(e)*n,u=Math.sin(t),c=u*r+a*i;return[Math.atan2(l*o-c*s,a*r-u*i),ne(c*o+l*s)]}var r=Math.cos(e),i=Math.sin(e),o=Math.cos(t),s=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),a=Math.cos(e)*n,l=Math.sin(e)*n,u=Math.sin(t),c=u*o-l*s;return[Math.atan2(l*o+u*s,a*r+c*i),ne(c*r-a*i)]},n}function bn(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,o,s,a){var l=s*t;null!=i?(i=yn(n,i),o=yn(n,o),(s>0?o>i:i>o)&&(i+=s*Hs)):(i=e+s*Hs,o=e-.5*l);for(var u,c=i;s>0?c>o:o>c;c-=l)a.point((u=Et([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],u[1])}}function yn(e,t){var n=bt(t);n[0]-=e,Tt(n);var r=te(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Us)%(2*Math.PI)}function vn(e,t,n){var r=us.range(e,t-Us,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function gn(e,t,n){var r=us.range(e,t-Us,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function _n(e){return e.source}function Tn(e){return e.target}function En(e,t,n,r){var i=Math.cos(t),o=Math.sin(t),s=Math.cos(r),a=Math.sin(r),l=i*Math.cos(e),u=i*Math.sin(e),c=s*Math.cos(n),p=s*Math.sin(n),f=2*Math.asin(Math.sqrt(se(r-t)+i*s*se(n-e))),h=1/Math.sin(f),d=f?function(e){var t=Math.sin(e*=f)*h,n=Math.sin(f-e)*h,r=n*l+t*c,i=n*u+t*p,s=n*o+t*a;return[Math.atan2(i,r)*Vs,Math.atan2(s,Math.sqrt(r*r+i*i))*Vs]}:function(){return[e*Vs,t*Vs]};return d.distance=f,d}function Cn(){function e(e,i){var o=Math.sin(i*=qs),s=Math.cos(i),a=Ts((e*=qs)-t),l=Math.cos(a);Ya+=Math.atan2(Math.sqrt((a=s*Math.sin(a))*a+(a=r*o-n*s*l)*a),n*o+r*s*l),t=e,n=o,r=s}var t,n,r;Za.point=function(i,o){t=i*qs,n=Math.sin(o*=qs),r=Math.cos(o),Za.point=e},Za.lineEnd=function(){Za.point=Za.lineEnd=E}}function wn(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),o=e(r*i);return[o*i*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),o=Math.sin(i),s=Math.cos(i);return[Math.atan2(e*o,r*s),Math.asin(r&&n*o/r)]},n}function Sn(e,t){function n(e,t){s>0?-Gs+Us>t&&(t=-Gs+Us):t>Gs-Us&&(t=Gs-Us);var n=s/Math.pow(i(t),o);return[n*Math.sin(o*e),s-n*Math.cos(o*e)]}var r=Math.cos(e),i=function(e){return Math.tan(Bs/4+e/2)},o=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(i(t)/i(e)),s=r*Math.pow(i(e),o)/o;return o?(n.invert=function(e,t){var n=s-t,r=J(o)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/o,2*Math.atan(Math.pow(s/r,1/o))-Gs]},n):xn}function Pn(e,t){function n(e,t){var n=o-t;return[n*Math.sin(i*e),o-n*Math.cos(i*e)]}var r=Math.cos(e),i=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),o=r/i+e;return Ts(i)<Us?cn:(n.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/i,o-J(i)*Math.sqrt(e*e+n*n)]},n)}function xn(e,t){return[e,Math.log(Math.tan(Bs/4+t/2))]}function kn(e){var t,n=an(e),r=n.scale,i=n.translate,o=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=i.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var s=o.apply(n,arguments);if(s===n){if(t=null==e){var a=Bs*r(),l=i();o([[l[0]-a,l[1]-a],[l[0]+a,l[1]+a]])}}else t&&(s=null);return s},n.clipExtent(null)}function Mn(e,t){return[Math.log(Math.tan(Bs/4+t/2)),-e]}function An(e){return e[0]}function On(e){return e[1]}function Nn(e){for(var t=e.length,n=[0,1],r=2,i=2;t>i;i++){for(;r>1&&ee(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function In(e,t){return e[0]-t[0]||e[1]-t[1]}function Dn(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Rn(e,t,n,r){var i=e[0],o=n[0],s=t[0]-i,a=r[0]-o,l=e[1],u=n[1],c=t[1]-l,p=r[1]-u,f=(a*(l-u)-p*(i-o))/(p*s-a*c);return[i+f*s,l+f*c]}function Ln(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function jn(){ir(this),this.edge=this.site=this.circle=null}function Un(e){var t=cl.pop()||new jn;return t.site=e,t}function Fn(e){$n(e),al.remove(e),cl.push(e),ir(e)}function Bn(e){var t=e.circle,n=t.x,r=t.cy,i={x:n,y:r},o=e.P,s=e.N,a=[e];Fn(e);for(var l=o;l.circle&&Ts(n-l.circle.x)<Us&&Ts(r-l.circle.cy)<Us;)o=l.P,a.unshift(l),Fn(l),l=o;a.unshift(l),$n(l);for(var u=s;u.circle&&Ts(n-u.circle.x)<Us&&Ts(r-u.circle.cy)<Us;)s=u.N,a.push(u),Fn(u),u=s;a.push(u),$n(u);var c,p=a.length;for(c=1;p>c;++c)u=a[c],l=a[c-1],tr(u.edge,l.site,u.site,i);l=a[0],u=a[p-1],u.edge=Jn(l.site,u.site,null,i),Wn(l),Wn(u)}function Hn(e){for(var t,n,r,i,o=e.x,s=e.y,a=al._;a;)if(r=Kn(a,s)-o,r>Us)a=a.L;else{if(i=o-Gn(a,s),!(i>Us)){r>-Us?(t=a.P,n=a):i>-Us?(t=a,n=a.N):t=n=a;break}if(!a.R){t=a;break}a=a.R}var l=Un(e);if(al.insert(t,l),t||n){if(t===n)return $n(t),n=Un(t.site),al.insert(l,n),l.edge=n.edge=Jn(t.site,l.site),Wn(t),void Wn(n);if(!n)return void(l.edge=Jn(t.site,l.site));$n(t),$n(n);var u=t.site,c=u.x,p=u.y,f=e.x-c,h=e.y-p,d=n.site,m=d.x-c,b=d.y-p,y=2*(f*b-h*m),v=f*f+h*h,g=m*m+b*b,_={x:(b*v-h*g)/y+c,y:(f*g-m*v)/y+p};tr(n.edge,u,d,_),l.edge=Jn(u,e,null,_),n.edge=Jn(e,d,null,_),Wn(t),Wn(n)}}function Kn(e,t){var n=e.site,r=n.x,i=n.y,o=i-t;if(!o)return r;var s=e.P;if(!s)return-(1/0);n=s.site;var a=n.x,l=n.y,u=l-t;if(!u)return a;var c=a-r,p=1/o-1/u,f=c/u;return p?(-f+Math.sqrt(f*f-2*p*(c*c/(-2*u)-l+u/2+i-o/2)))/p+r:(r+a)/2}function Gn(e,t){var n=e.N;if(n)return Kn(n,t);var r=e.site;return r.y===t?r.x:1/0}function qn(e){this.site=e,this.edges=[]}function Vn(e){for(var t,n,r,i,o,s,a,l,u,c,p=e[0][0],f=e[1][0],h=e[0][1],d=e[1][1],m=sl,b=m.length;b--;)if(o=m[b],o&&o.prepare())for(a=o.edges,l=a.length,s=0;l>s;)c=a[s].end(),r=c.x,i=c.y,u=a[++s%l].start(),t=u.x,n=u.y,(Ts(r-t)>Us||Ts(i-n)>Us)&&(a.splice(s,0,new nr(er(o.site,c,Ts(r-p)<Us&&d-i>Us?{x:p,y:Ts(t-p)<Us?n:d}:Ts(i-d)<Us&&f-r>Us?{x:Ts(n-d)<Us?t:f,y:d}:Ts(r-f)<Us&&i-h>Us?{x:f,y:Ts(t-f)<Us?n:h}:Ts(i-h)<Us&&r-p>Us?{x:Ts(n-h)<Us?t:p,y:h}:null),o.site,null)),++l)}function zn(e,t){return t.angle-e.angle}function Xn(){ir(this),this.x=this.y=this.arc=this.site=this.cy=null}function Wn(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var s=i.x,a=i.y,l=r.x-s,u=r.y-a,c=o.x-s,p=o.y-a,f=2*(l*p-u*c);if(!(f>=-Fs)){var h=l*l+u*u,d=c*c+p*p,m=(p*h-u*d)/f,b=(l*d-c*h)/f,p=b+a,y=pl.pop()||new Xn;y.arc=e,y.site=i,y.x=m+s,y.y=p+Math.sqrt(m*m+b*b),y.cy=p,e.circle=y;for(var v=null,g=ul._;g;)if(y.y<g.y||y.y===g.y&&y.x<=g.x){if(!g.L){v=g.P;break}g=g.L}else{if(!g.R){v=g;break}g=g.R}ul.insert(v,y),v||(ll=y)}}}}function $n(e){var t=e.circle;t&&(t.P||(ll=t.N),ul.remove(t),pl.push(t),ir(t),e.circle=null)}function Qn(e){for(var t,n=ol,r=Gt(e[0][0],e[0][1],e[1][0],e[1][1]),i=n.length;i--;)t=n[i],(!Yn(t,e)||!r(t)||Ts(t.a.x-t.b.x)<Us&&Ts(t.a.y-t.b.y)<Us)&&(t.a=t.b=null,n.splice(i,1))}function Yn(e,t){var n=e.b;if(n)return!0;var r,i,o=e.a,s=t[0][0],a=t[1][0],l=t[0][1],u=t[1][1],c=e.l,p=e.r,f=c.x,h=c.y,d=p.x,m=p.y,b=(f+d)/2,y=(h+m)/2;if(m===h){if(s>b||b>=a)return;if(f>d){if(o){if(o.y>=u)return}else o={x:b,y:l};n={x:b,y:u}}else{if(o){if(o.y<l)return}else o={x:b,y:u};n={x:b,y:l}}}else if(r=(f-d)/(m-h),i=y-r*b,-1>r||r>1)if(f>d){if(o){if(o.y>=u)return}else o={x:(l-i)/r,y:l};n={x:(u-i)/r,y:u}}else{if(o){if(o.y<l)return}else o={x:(u-i)/r,y:u};n={x:(l-i)/r,y:l}}else if(m>h){if(o){if(o.x>=a)return}else o={x:s,y:r*s+i};n={x:a,y:r*a+i}}else{if(o){if(o.x<s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}return e.a=o,e.b=n,!0}function Zn(e,t){this.l=e,this.r=t,this.a=this.b=null}function Jn(e,t,n,r){var i=new Zn(e,t);return ol.push(i),n&&tr(i,e,t,n),r&&tr(i,t,e,r),sl[e.i].edges.push(new nr(i,e,t)),sl[t.i].edges.push(new nr(i,t,e)),i}function er(e,t,n){var r=new Zn(e,null);return r.a=t,r.b=n,ol.push(r),r}function tr(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function nr(e,t,n){var r=e.a,i=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function rr(){this._=null}function ir(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function or(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function sr(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function ar(e){for(;e.L;)e=e.L;return e}function lr(e,t){var n,r,i,o=e.sort(ur).pop();for(ol=[],sl=new Array(e.length),al=new rr,ul=new rr;;)if(i=ll,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))o.x===n&&o.y===r||(sl[o.i]=new qn(o),Hn(o),n=o.x,r=o.y),o=e.pop();else{if(!i)break;Bn(i.arc)}t&&(Qn(t),Vn(t));var s={cells:sl,edges:ol};return al=ul=ol=sl=null,s}function ur(e,t){return t.y-e.y||t.x-e.x}function cr(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function pr(e){return e.x}function fr(e){return e.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function dr(e,t,n,r,i,o){if(!e(t,n,r,i,o)){var s=.5*(n+i),a=.5*(r+o),l=t.nodes;l[0]&&dr(e,l[0],n,r,s,a),l[1]&&dr(e,l[1],s,r,i,a),l[2]&&dr(e,l[2],n,a,s,o),l[3]&&dr(e,l[3],s,a,i,o)}}function mr(e,t,n,r,i,o,s){var a,l=1/0;return function u(e,c,p,f,h){if(!(c>o||p>s||r>f||i>h)){if(d=e.point){var d,m=t-e.x,b=n-e.y,y=m*m+b*b;if(l>y){var v=Math.sqrt(l=y);r=t-v,i=n-v,o=t+v,s=n+v,a=d}}for(var g=e.nodes,_=.5*(c+f),T=.5*(p+h),E=t>=_,C=n>=T,w=C<<1|E,S=w+4;S>w;++w)if(e=g[3&w])switch(3&w){case 0:u(e,c,p,_,T);break;case 1:u(e,_,p,f,T);break;case 2:u(e,c,T,_,h);break;case 3:u(e,_,T,f,h)}}}(e,r,i,o,s),a}function br(e,t){e=us.rgb(e),t=us.rgb(t);var n=e.r,r=e.g,i=e.b,o=t.r-n,s=t.g-r,a=t.b-i;return function(e){return"#"+Te(Math.round(n+o*e))+Te(Math.round(r+s*e))+Te(Math.round(i+a*e))}}function yr(e,t){var n,r={},i={};for(n in e)n in t?r[n]=_r(e[n],t[n]):i[n]=e[n];for(n in t)n in e||(i[n]=t[n]);return function(e){for(n in r)i[n]=r[n](e);return i}}function vr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function gr(e,t){var n,r,i,o=hl.lastIndex=dl.lastIndex=0,s=-1,a=[],l=[];for(e+="",t+="";(n=hl.exec(e))&&(r=dl.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:vr(n,r)})),o=dl.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?(t=l[0].x,function(e){return t(e)+""}):function(){return t}:(t=l.length,function(e){for(var n,r=0;t>r;++r)a[(n=l[r]).i]=n.x(e);return a.join("")})}function _r(e,t){for(var n,r=us.interpolators.length;--r>=0&&!(n=us.interpolators[r](e,t)););return n}function Tr(e,t){var n,r=[],i=[],o=e.length,s=t.length,a=Math.min(e.length,t.length);for(n=0;a>n;++n)r.push(_r(e[n],t[n]));for(;o>n;++n)i[n]=e[n];for(;s>n;++n)i[n]=t[n];return function(e){for(n=0;a>n;++n)i[n]=r[n](e);return i}}function Er(e){return function(t){return 0>=t?0:t>=1?1:e(t)}}function Cr(e){return function(t){return 1-e(1-t)}}function wr(e){return function(t){return.5*(.5>t?e(2*t):2-e(2-2*t))}}function Sr(e){return e*e}function Pr(e){return e*e*e}function xr(e){if(0>=e)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(.5>e?n:3*(e-t)+n-.75)}function kr(e){return function(t){return Math.pow(t,e)}}function Mr(e){return 1-Math.cos(e*Gs)}function Ar(e){return Math.pow(2,10*(e-1))}function Or(e){return 1-Math.sqrt(1-e*e)}function Nr(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Hs*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Hs/t)}}function Ir(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Dr(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Rr(e,t){e=us.hcl(e),t=us.hcl(t);var n=e.h,r=e.c,i=e.l,o=t.h-n,s=t.c-r,a=t.l-i;return isNaN(s)&&(s=0,r=isNaN(r)?t.c:r),isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:-180>o&&(o+=360),function(e){return pe(n+o*e,r+s*e,i+a*e)+""}}function Lr(e,t){e=us.hsl(e),t=us.hsl(t);var n=e.h,r=e.s,i=e.l,o=t.h-n,s=t.s-r,a=t.l-i;return isNaN(s)&&(s=0,r=isNaN(r)?t.s:r),isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:-180>o&&(o+=360),function(e){return ue(n+o*e,r+s*e,i+a*e)+""}}function jr(e,t){e=us.lab(e),t=us.lab(t);var n=e.l,r=e.a,i=e.b,o=t.l-n,s=t.a-r,a=t.b-i;return function(e){return he(n+o*e,r+s*e,i+a*e)+""}}function Ur(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Fr(e){var t=[e.a,e.b],n=[e.c,e.d],r=Hr(t),i=Br(t,n),o=Hr(Kr(n,t,-i))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*Vs,this.translate=[e.e,e.f],this.scale=[r,o],this.skew=o?Math.atan2(i,o)*Vs:0}function Br(e,t){return e[0]*t[0]+e[1]*t[1]}function Hr(e){var t=Math.sqrt(Br(e,e));return t&&(e[0]/=t,e[1]/=t),t}function Kr(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}function Gr(e){return e.length?e.pop()+",":""}function qr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:vr(e[0],t[0])},{i:i-2,x:vr(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}function Vr(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Gr(n)+"rotate(",null,")")-2,x:vr(e,t)})):t&&n.push(Gr(n)+"rotate("+t+")")}function zr(e,t,n,r){e!==t?r.push({i:n.push(Gr(n)+"skewX(",null,")")-2,x:vr(e,t)}):t&&n.push(Gr(n)+"skewX("+t+")")}function Xr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(Gr(n)+"scale(",null,",",null,")");r.push({i:i-4,x:vr(e[0],t[0])},{i:i-2,x:vr(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Gr(n)+"scale("+t+")")}function Wr(e,t){var n=[],r=[];return e=us.transform(e),t=us.transform(t),qr(e.translate,t.translate,n,r),Vr(e.rotate,t.rotate,n,r),zr(e.skew,t.skew,n,r),Xr(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,o=r.length;++i<o;)n[(t=r[i]).i]=t.x(e);return n.join("")}}function $r(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Qr(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function Yr(e){for(var t=e.source,n=e.target,r=Jr(t,n),i=[t];t!==r;)t=t.parent,i.push(t);for(var o=i.length;n!==r;)i.splice(o,0,n),n=n.parent;return i}function Zr(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function Jr(e,t){if(e===t)return e;for(var n=Zr(e),r=Zr(t),i=n.pop(),o=r.pop(),s=null;i===o;)s=i,i=n.pop(),o=r.pop();return s}function ei(e){e.fixed|=2}function ti(e){e.fixed&=-7}function ni(e){e.fixed|=4,e.px=e.x,e.py=e.y}function ri(e){e.fixed&=-5}function ii(e,t,n){var r=0,i=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,a=s.length,l=-1;++l<a;)o=s[l],null!=o&&(ii(o,t,n),e.charge+=o.charge,r+=o.charge*o.cx,i+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=t*n[e.point.index];e.charge+=e.pointCharge=u,r+=u*e.point.x,i+=u*e.point.y}e.cx=r/e.charge,e.cy=i/e.charge}function oi(e,t){return us.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=pi,e}function si(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(i=e.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function ai(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(o=e.children)&&(i=o.length))for(var i,o,s=-1;++s<i;)n.push(o[s]);for(;null!=(e=r.pop());)t(e)}function li(e){return e.children}function ui(e){return e.value}function ci(e,t){return t.value-e.value}function pi(e){return us.merge(e.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}function fi(e){return e.x}function hi(e){return e.y}function di(e,t,n){e.y0=t,e.y=n}function mi(e){return us.range(e.length)}function bi(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function yi(e){for(var t,n=1,r=0,i=e[0][1],o=e.length;o>n;++n)(t=e[n][1])>i&&(r=n,i=t);return r}function vi(e){return e.reduce(gi,0)}function gi(e,t){return e+t[1]}function _i(e,t){return Ti(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Ti(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,o=[];++n<=t;)o[n]=i*n+r;return o}function Ei(e){return[us.min(e),us.max(e)]}function Ci(e,t){return e.value-t.value}function wi(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Si(e,t){e._pack_next=t,t._pack_prev=e}function Pi(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function xi(e){function t(e){c=Math.min(e.x-e.r,c),p=Math.max(e.x+e.r,p),f=Math.min(e.y-e.r,f),h=Math.max(e.y+e.r,h)}if((n=e.children)&&(u=n.length)){var n,r,i,o,s,a,l,u,c=1/0,p=-(1/0),f=1/0,h=-(1/0);if(n.forEach(ki),r=n[0],r.x=-r.r,r.y=0,t(r),u>1&&(i=n[1],i.x=i.r,i.y=0,t(i),u>2))for(o=n[2],Oi(r,i,o),t(o),wi(r,o),r._pack_prev=o,wi(o,i),i=r._pack_next,s=3;u>s;s++){Oi(r,i,o=n[s]);var d=0,m=1,b=1;for(a=i._pack_next;a!==i;a=a._pack_next,m++)if(Pi(a,o)){d=1;break}if(1==d)for(l=r._pack_prev;l!==a._pack_prev&&!Pi(l,o);l=l._pack_prev,b++);d?(b>m||m==b&&i.r<r.r?Si(r,i=a):Si(r=l,i),s--):(wi(r,o),i=o,t(o))}var y=(c+p)/2,v=(f+h)/2,g=0;for(s=0;u>s;s++)o=n[s],o.x-=y,o.y-=v,g=Math.max(g,o.r+Math.sqrt(o.x*o.x+o.y*o.y));e.r=g,n.forEach(Mi)}}function ki(e){e._pack_next=e._pack_prev=e}function Mi(e){delete e._pack_next,delete e._pack_prev}function Ai(e,t,n,r){var i=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,i)for(var o=-1,s=i.length;++o<s;)Ai(i[o],t,n,r)}function Oi(e,t,n){var r=e.r+n.r,i=t.x-e.x,o=t.y-e.y;if(r&&(i||o)){var s=t.r+n.r,a=i*i+o*o;s*=s,r*=r;var l=.5+(r-s)/(2*a),u=Math.sqrt(Math.max(0,2*s*(r+a)-(r-=a)*r-s*s))/(2*a);n.x=e.x+l*i+u*o,n.y=e.y+l*o-u*i}else n.x=e.x+r,n.y=e.y}function Ni(e,t){return e.parent==t.parent?1:2}function Ii(e){var t=e.children;return t.length?t[0]:e.t}function Di(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function Ri(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Li(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)t=i[o],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function ji(e,t,n){return e.a.parent===t.parent?e.a:n}function Ui(e){return 1+us.max(e,function(e){return e.y})}function Fi(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function Bi(e){var t=e.children;return t&&t.length?Bi(t[0]):e}function Hi(e){var t,n=e.children;return n&&(t=n.length)?Hi(n[t-1]):e}function Ki(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Gi(e,t){var n=e.x+t[3],r=e.y+t[0],i=e.dx-t[1]-t[3],o=e.dy-t[0]-t[2];return 0>i&&(n+=i/2,i=0),0>o&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function qi(e){var t=e[0],n=e[e.length-1];return n>t?[t,n]:[n,t]}function Vi(e){return e.rangeExtent?e.rangeExtent():qi(e.range())}function zi(e,t,n,r){var i=n(e[0],e[1]),o=r(t[0],t[1]);return function(e){return o(i(e))}}function Xi(e,t){var n,r=0,i=e.length-1,o=e[r],s=e[i];return o>s&&(n=r,r=i,i=n,n=o,o=s,s=n),e[r]=t.floor(o),e[i]=t.ceil(s),e}function Wi(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Sl}function $i(e,t,n,r){var i=[],o=[],s=0,a=Math.min(e.length,t.length)-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<=a;)i.push(n(e[s-1],e[s])),o.push(r(t[s-1],t[s]));return function(t){var n=us.bisect(e,t,1,a)-1;return o[n](i[n](t))}}function Qi(e,t,n,r){function i(){var i=Math.min(e.length,t.length)>2?$i:zi,l=r?Qr:$r;return s=i(e,t,l,n),a=i(t,e,l,_r),o}function o(e){return s(e)}var s,a;return o.invert=function(e){return a(e)},o.domain=function(t){return arguments.length?(e=t.map(Number),i()):e},o.range=function(e){return arguments.length?(t=e,i()):t},o.rangeRound=function(e){return o.range(e).interpolate(Ur)},o.clamp=function(e){return arguments.length?(r=e,i()):r},o.interpolate=function(e){return arguments.length?(n=e,i()):n},o.ticks=function(t){return eo(e,t)},o.tickFormat=function(t,n){return to(e,t,n)},o.nice=function(t){return Zi(e,t),i()},o.copy=function(){return Qi(e,t,n,r)},i()}function Yi(e,t){return us.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Zi(e,t){return Xi(e,Wi(Ji(e,t)[2])),Xi(e,Wi(Ji(e,t)[2])),e}function Ji(e,t){null==t&&(t=10);var n=qi(e),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),o=t/r*i;return.15>=o?i*=10:.35>=o?i*=5:.75>=o&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function eo(e,t){return us.range.apply(us,Ji(e,t))}function to(e,t,n){var r=Ji(e,t);if(n){var i=ha.exec(n);if(i.shift(),"s"===i[8]){var o=us.formatPrefix(Math.max(Ts(r[0]),Ts(r[1])));return i[7]||(i[7]="."+no(o.scale(r[2]))),i[8]="f",n=us.format(i.join("")),function(e){return n(o.scale(e))+o.symbol}}i[7]||(i[7]="."+ro(i[8],r)),n=i.join("")}else n=",."+no(r[2])+"f";return us.format(n)}function no(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ro(e,t){var n=no(t[2]);return e in Pl?Math.abs(n-no(Math.max(Ts(t[0]),Ts(t[1]))))+ +("e"!==e):n-2*("%"===e)}function io(e,t,n,r){function i(e){return(n?Math.log(0>e?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function o(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function s(t){return e(i(t))}return s.invert=function(t){return o(e.invert(t))},s.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(i)),s):r},s.base=function(n){return arguments.length?(t=+n,e.domain(r.map(i)),s):t},s.nice=function(){var t=Xi(r.map(i),n?Math:kl);return e.domain(t),r=t.map(o),s},s.ticks=function(){var e=qi(r),s=[],a=e[0],l=e[1],u=Math.floor(i(a)),c=Math.ceil(i(l)),p=t%1?2:t;if(isFinite(c-u)){if(n){for(;c>u;u++)for(var f=1;p>f;f++)s.push(o(u)*f);s.push(o(u))}else for(s.push(o(u));u++<c;)for(var f=p-1;f>0;f--)s.push(o(u)*f);for(u=0;s[u]<a;u++);for(c=s.length;s[c-1]>l;c--);s=s.slice(u,c)}return s},s.tickFormat=function(e,n){if(!arguments.length)return xl;arguments.length<2?n=xl:"function"!=typeof n&&(n=us.format(n));var r=Math.max(1,t*e/s.ticks().length);return function(e){var s=e/o(Math.round(i(e)));return t-.5>s*t&&(s*=t),r>=s?n(e):""}},s.copy=function(){return io(e.copy(),t,n,r)},Yi(s,e)}function oo(e,t,n){function r(t){return e(i(t))}var i=so(t),o=so(1/t);return r.invert=function(t){return o(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),r):n},r.ticks=function(e){return eo(n,e)},r.tickFormat=function(e,t){return to(n,e,t)},r.nice=function(e){return r.domain(Zi(n,e))},r.exponent=function(s){return arguments.length?(i=so(t=s),o=so(1/t),e.domain(n.map(i)),r):t},r.copy=function(){return oo(e.copy(),t,n)},Yi(r,e)}function so(e){return function(t){return 0>t?-Math.pow(-t,e):Math.pow(t,e)}}function ao(e,t){function n(n){return o[((i.get(n)||("range"===t.t?i.set(n,e.push(n)):NaN))-1)%o.length]}function r(t,n){return us.range(e.length).map(function(e){return t+n*e})}var i,o,s;return n.domain=function(r){if(!arguments.length)return e;e=[],i=new c;for(var o,s=-1,a=r.length;++s<a;)i.has(o=r[s])||i.set(o,e.push(o));return n[t.t].apply(n,t.a)},n.range=function(e){return arguments.length?(o=e,s=0,t={t:"range",a:arguments},n):o},n.rangePoints=function(i,a){arguments.length<2&&(a=0);var l=i[0],u=i[1],c=e.length<2?(l=(l+u)/2,0):(u-l)/(e.length-1+a);return o=r(l+c*a/2,c),s=0,t={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(i,a){arguments.length<2&&(a=0);var l=i[0],u=i[1],c=e.length<2?(l=u=Math.round((l+u)/2),0):(u-l)/(e.length-1+a)|0;return o=r(l+Math.round(c*a/2+(u-l-(e.length-1+a)*c)/2),c),s=0,t={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(i,a,l){arguments.length<2&&(a=0),arguments.length<3&&(l=a);var u=i[1]<i[0],c=i[u-0],p=i[1-u],f=(p-c)/(e.length-a+2*l);return o=r(c+f*l,f),u&&o.reverse(),s=f*(1-a),t={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,a,l){arguments.length<2&&(a=0),arguments.length<3&&(l=a);var u=i[1]<i[0],c=i[u-0],p=i[1-u],f=Math.floor((p-c)/(e.length-a+2*l));return o=r(c+Math.round((p-c-(e.length-a)*f)/2),f),u&&o.reverse(),s=Math.round(f*(1-a)),t={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return s},n.rangeExtent=function(){return qi(t.a[0])},n.copy=function(){return ao(e,t)},n.domain(e)}function lo(e,t){function n(){var n=0,r=t.length;for(a=[];++n<r;)a[n-1]=us.quantile(e,n/r);return s}function s(e){return isNaN(e=+e)?void 0:t[us.bisect(a,e)]}var a;return s.domain=function(t){return arguments.length?(e=t.map(i).filter(o).sort(r),n()):e},s.range=function(e){return arguments.length?(t=e,n()):t},s.quantiles=function(){return a},s.invertExtent=function(n){return n=t.indexOf(n),0>n?[NaN,NaN]:[n>0?a[n-1]:e[0],n<a.length?a[n]:e[e.length-1]]},s.copy=function(){return lo(e,t)},n()}function uo(e,t,n){function r(t){return n[Math.max(0,Math.min(s,Math.floor(o*(t-e))))]}function i(){return o=n.length/(t-e),s=n.length-1,r}var o,s;return r.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],i()):[e,t]},r.range=function(e){return arguments.length?(n=e,i()):n},r.invertExtent=function(t){return t=n.indexOf(t),t=0>t?NaN:t/o+e,[t,t+1/o]},r.copy=function(){return uo(e,t,n)},i()}function co(e,t){function n(n){return n>=n?t[us.bisect(e,n)]:void 0}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return co(e,t)},n}function po(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return eo(e,t)},t.tickFormat=function(t,n){return to(e,t,n)},t.copy=function(){return po(e)},t}function fo(){return 0}function ho(e){return e.innerRadius}function mo(e){return e.outerRadius}function bo(e){return e.startAngle}function yo(e){return e.endAngle}function vo(e){return e&&e.padAngle}function go(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function _o(e,t,n,r,i){var o=e[0]-t[0],s=e[1]-t[1],a=(i?r:-r)/Math.sqrt(o*o+s*s),l=a*s,u=-a*o,c=e[0]+l,p=e[1]+u,f=t[0]+l,h=t[1]+u,d=(c+f)/2,m=(p+h)/2,b=f-c,y=h-p,v=b*b+y*y,g=n-r,_=c*h-f*p,T=(0>y?-1:1)*Math.sqrt(Math.max(0,g*g*v-_*_)),E=(_*y-b*T)/v,C=(-_*b-y*T)/v,w=(_*y+b*T)/v,S=(-_*b+y*T)/v,P=E-d,x=C-m,k=w-d,M=S-m;return P*P+x*x>k*k+M*M&&(E=w,C=S),[[E-l,C-u],[E*n/g,C*n/g]]}function To(e){function t(t){function s(){u.push("M",o(e(c),a))}for(var l,u=[],c=[],p=-1,f=t.length,h=xe(n),d=xe(r);++p<f;)i.call(this,l=t[p],p)?c.push([+h.call(this,l,p),+d.call(this,l,p)]):c.length&&(s(),c=[]);return c.length&&s(),u.length?u.join(""):null}var n=An,r=On,i=At,o=Eo,s=o.key,a=.7;return t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t.defined=function(e){return arguments.length?(i=e,t):i},t.interpolate=function(e){return arguments.length?(s="function"==typeof e?o=e:(o=Dl.get(e)||Eo).key,t):s},t.tension=function(e){return arguments.length?(a=e,t):a},t}function Eo(e){return e.length>1?e.join("L"):e+"Z"}function Co(e){return e.join("L")+"Z"}function wo(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function So(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("V",(r=e[t])[1],"H",r[0]);return i.join("")}function Po(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("H",(r=e[t])[0],"V",r[1]);return i.join("")}function xo(e,t){return e.length<4?Eo(e):e[1]+Ao(e.slice(1,-1),Oo(e,t))}function ko(e,t){return e.length<3?Co(e):e[0]+Ao((e.push(e[0]),e),Oo([e[e.length-2]].concat(e,[e[1]]),t))}function Mo(e,t){return e.length<3?Eo(e):e[0]+Ao(e,Oo(e,t))}function Ao(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Eo(e);var n=e.length!=t.length,r="",i=e[0],o=e[1],s=t[0],a=s,l=1;if(n&&(r+="Q"+(o[0]-2*s[0]/3)+","+(o[1]-2*s[1]/3)+","+o[0]+","+o[1],i=e[1],l=2),t.length>1){a=t[1],o=e[l],l++,r+="C"+(i[0]+s[0])+","+(i[1]+s[1])+","+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1];for(var u=2;u<t.length;u++,l++)o=e[l],a=t[u],r+="S"+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1]}if(n){var c=e[l];r+="Q"+(o[0]+2*a[0]/3)+","+(o[1]+2*a[1]/3)+","+c[0]+","+c[1]}return r}function Oo(e,t){for(var n,r=[],i=(1-t)/2,o=e[0],s=e[1],a=1,l=e.length;++a<l;)n=o,o=s,s=e[a],r.push([i*(s[0]-n[0]),i*(s[1]-n[1])]);return r}function No(e){if(e.length<3)return Eo(e);var t=1,n=e.length,r=e[0],i=r[0],o=r[1],s=[i,i,i,(r=e[1])[0]],a=[o,o,o,r[1]],l=[i,",",o,"L",Lo(jl,s),",",Lo(jl,a)];for(e.push(e[n-1]);++t<=n;)r=e[t],s.shift(),s.push(r[0]),a.shift(),a.push(r[1]),jo(l,s,a);return e.pop(),l.push("L",r),l.join("")}function Io(e){if(e.length<4)return Eo(e);for(var t,n=[],r=-1,i=e.length,o=[0],s=[0];++r<3;)t=e[r],o.push(t[0]),s.push(t[1]);for(n.push(Lo(jl,o)+","+Lo(jl,s)),--r;++r<i;)t=e[r],o.shift(),o.push(t[0]),s.shift(),s.push(t[1]),jo(n,o,s);return n.join("")}function Do(e){for(var t,n,r=-1,i=e.length,o=i+4,s=[],a=[];++r<4;)n=e[r%i],s.push(n[0]),a.push(n[1]);for(t=[Lo(jl,s),",",Lo(jl,a)],--r;++r<o;)n=e[r%i],s.shift(),s.push(n[0]),a.shift(),a.push(n[1]),jo(t,s,a);return t.join("")}function Ro(e,t){var n=e.length-1;if(n)for(var r,i,o=e[0][0],s=e[0][1],a=e[n][0]-o,l=e[n][1]-s,u=-1;++u<=n;)r=e[u],i=u/n,r[0]=t*r[0]+(1-t)*(o+i*a),r[1]=t*r[1]+(1-t)*(s+i*l);return No(e)}function Lo(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function jo(e,t,n){e.push("C",Lo(Rl,t),",",Lo(Rl,n),",",Lo(Ll,t),",",Lo(Ll,n),",",Lo(jl,t),",",Lo(jl,n))}function Uo(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Fo(e){for(var t=0,n=e.length-1,r=[],i=e[0],o=e[1],s=r[0]=Uo(i,o);++t<n;)r[t]=(s+(s=Uo(i=o,o=e[t+1])))/2;return r[t]=s,r}function Bo(e){for(var t,n,r,i,o=[],s=Fo(e),a=-1,l=e.length-1;++a<l;)t=Uo(e[a],e[a+1]),Ts(t)<Us?s[a]=s[a+1]=0:(n=s[a]/t,r=s[a+1]/t,i=n*n+r*r,i>9&&(i=3*t/Math.sqrt(i),s[a]=i*n,s[a+1]=i*r));for(a=-1;++a<=l;)i=(e[Math.min(l,a+1)][0]-e[Math.max(0,a-1)][0])/(6*(1+s[a]*s[a])),o.push([i||0,s[a]*i||0]);return o}function Ho(e){return e.length<3?Eo(e):e[0]+Ao(e,Bo(e))}function Ko(e){for(var t,n,r,i=-1,o=e.length;++i<o;)t=e[i],n=t[0],r=t[1]-Gs,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function Go(e){function t(t){function l(){m.push("M",a(e(y),p),c,u(e(b.reverse()),p),"Z")}for(var f,h,d,m=[],b=[],y=[],v=-1,g=t.length,_=xe(n),T=xe(i),E=n===r?function(){return h}:xe(r),C=i===o?function(){return d}:xe(o);++v<g;)s.call(this,f=t[v],v)?(b.push([h=+_.call(this,f,v),d=+T.call(this,f,v)]),y.push([+E.call(this,f,v),+C.call(this,f,v)])):b.length&&(l(),b=[],y=[]);return b.length&&l(),m.length?m.join(""):null}var n=An,r=An,i=0,o=On,s=At,a=Eo,l=a.key,u=a,c="L",p=.7;return t.x=function(e){return arguments.length?(n=r=e,t):r},t.x0=function(e){return arguments.length?(n=e,t):n},t.x1=function(e){return arguments.length?(r=e,t):r},t.y=function(e){return arguments.length?(i=o=e,t):o},t.y0=function(e){return arguments.length?(i=e,t):i},t.y1=function(e){return arguments.length?(o=e,t):o},t.defined=function(e){return arguments.length?(s=e,t):s},t.interpolate=function(e){return arguments.length?(l="function"==typeof e?a=e:(a=Dl.get(e)||Eo).key,u=a.reverse||a,c=a.closed?"M":"L",t):l},t.tension=function(e){return arguments.length?(p=e,t):p},t}function qo(e){return e.radius}function Vo(e){return[e.x,e.y]}function zo(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Gs;return[n*Math.cos(r),n*Math.sin(r)]}}function Xo(){return 64}function Wo(){return"circle"}function $o(e){var t=Math.sqrt(e/Bs);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Qo(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Yo(e,t,n){return Ps(e,ql),e.namespace=t,e.id=n,e}function Zo(e,t,n,r){var i=e.id,o=e.namespace;return q(e,"function"==typeof n?function(e,s,a){e[o][i].tween.set(t,r(n.call(e,e.__data__,s,a)))}:(n=r(n),function(e){e[o][i].tween.set(t,n)}))}function Jo(e){return null==e&&(e=""),function(){this.textContent=e}}function es(e){return null==e?"__transition__":"__transition_"+e+"__"}function ts(e,t,n,r,i){function o(e){var t=m.delay;return u.t=t+l,e>=t?s(e-t):void(u.c=s)}function s(n){var i=d.active,o=d[i];o&&(o.timer.c=null,o.timer.t=NaN,--d.count,delete d[i],o.event&&o.event.interrupt.call(e,e.__data__,o.index));for(var s in d)if(r>+s){var c=d[s];c.timer.c=null,c.timer.t=NaN,--d.count,delete d[s]}u.c=a,Ne(function(){return u.c&&a(n||1)&&(u.c=null,u.t=NaN),1},0,l),d.active=r,m.event&&m.event.start.call(e,e.__data__,t),h=[],m.tween.forEach(function(n,r){(r=r.call(e,e.__data__,t))&&h.push(r)}),f=m.ease,p=m.duration}function a(i){for(var o=i/p,s=f(o),a=h.length;a>0;)h[--a].call(e,s);return o>=1?(m.event&&m.event.end.call(e,e.__data__,t),--d.count?delete d[r]:delete e[n],1):void 0}var l,u,p,f,h,d=e[n]||(e[n]={active:0,count:0}),m=d[r];m||(l=i.time,u=Ne(o,0,l),m=d[r]={tween:new c,time:l,timer:u,delay:i.delay,duration:i.duration,
|
||
ease:i.ease,index:t},i=null,++d.count)}function ns(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function rs(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function is(e){return e.toISOString()}function os(e,t,n){function r(t){return e(t)}function i(e,n){var r=e[1]-e[0],i=r/n,o=us.bisect(Jl,i);return o==Jl.length?[t.year,Ji(e.map(function(e){return e/31536e6}),n)[2]]:o?t[i/Jl[o-1]<Jl[o]/i?o-1:o]:[nu,Ji(e,n)[2]]}return r.invert=function(t){return ss(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(ss)},r.nice=function(e,t){function n(n){return!isNaN(n)&&!e.range(n,ss(+n+1),t).length}var o=r.domain(),s=qi(o),a=null==e?i(s,10):"number"==typeof e&&i(s,e);return a&&(e=a[0],t=a[1]),r.domain(Xi(o,t>1?{floor:function(t){for(;n(t=e.floor(t));)t=ss(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=ss(+t+1);return t}}:e))},r.ticks=function(e,t){var n=qi(r.domain()),o=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(n[0],ss(+n[1]+1),1>t?1:t)},r.tickFormat=function(){return n},r.copy=function(){return os(e.copy(),t,n)},Yi(r,e)}function ss(e){return new Date(e)}function as(e){return JSON.parse(e.responseText)}function ls(e){var t=fs.createRange();return t.selectNode(fs.body),t.createContextualFragment(e.responseText)}var us={version:"3.5.16"},cs=[].slice,ps=function(e){return cs.call(e)},fs=this.document;if(fs)try{ps(fs.documentElement.childNodes)[0].nodeType}catch(hs){ps=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),fs)try{fs.createElement("DIV").style.setProperty("opacity",0,"")}catch(ds){var ms=this.Element.prototype,bs=ms.setAttribute,ys=ms.setAttributeNS,vs=this.CSSStyleDeclaration.prototype,gs=vs.setProperty;ms.setAttribute=function(e,t){bs.call(this,e,t+"")},ms.setAttributeNS=function(e,t,n){ys.call(this,e,t,n+"")},vs.setProperty=function(e,t,n){gs.call(this,e,t+"",n)}}us.ascending=r,us.descending=function(e,t){return e>t?-1:t>e?1:t>=e?0:NaN},us.min=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=e[i])&&n>r&&(n=r)}else{for(;++i<o;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=t.call(e,e[i],i))&&n>r&&(n=r)}return n},us.max=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=e[i])&&r>n&&(n=r)}else{for(;++i<o;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=t.call(e,e[i],i))&&r>n&&(n=r)}return n},us.extent=function(e,t){var n,r,i,o=-1,s=e.length;if(1===arguments.length){for(;++o<s;)if(null!=(r=e[o])&&r>=r){n=i=r;break}for(;++o<s;)null!=(r=e[o])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;++o<s;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=i=r;break}for(;++o<s;)null!=(r=t.call(e,e[o],o))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},us.sum=function(e,t){var n,r=0,i=e.length,s=-1;if(1===arguments.length)for(;++s<i;)o(n=+e[s])&&(r+=n);else for(;++s<i;)o(n=+t.call(e,e[s],s))&&(r+=n);return r},us.mean=function(e,t){var n,r=0,s=e.length,a=-1,l=s;if(1===arguments.length)for(;++a<s;)o(n=i(e[a]))?r+=n:--l;else for(;++a<s;)o(n=i(t.call(e,e[a],a)))?r+=n:--l;return l?r/l:void 0},us.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i},us.median=function(e,t){var n,s=[],a=e.length,l=-1;if(1===arguments.length)for(;++l<a;)o(n=i(e[l]))&&s.push(n);else for(;++l<a;)o(n=i(t.call(e,e[l],l)))&&s.push(n);return s.length?us.quantile(s.sort(r),.5):void 0},us.variance=function(e,t){var n,r,s=e.length,a=0,l=0,u=-1,c=0;if(1===arguments.length)for(;++u<s;)o(n=i(e[u]))&&(r=n-a,a+=r/++c,l+=r*(n-a));else for(;++u<s;)o(n=i(t.call(e,e[u],u)))&&(r=n-a,a+=r/++c,l+=r*(n-a));return c>1?l/(c-1):void 0},us.deviation=function(){var e=us.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _s=s(r);us.bisectLeft=_s.left,us.bisect=us.bisectRight=_s.right,us.bisector=function(e){return s(1===e.length?function(t,n){return r(e(t),n)}:e)},us.shuffle=function(e,t,n){(o=arguments.length)<3&&(n=e.length,2>o&&(t=0));for(var r,i,o=n-t;o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},us.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},us.pairs=function(e){for(var t,n=0,r=e.length-1,i=e[0],o=new Array(0>r?0:r);r>n;)o[n]=[t=i,i=e[++n]];return o},us.transpose=function(e){if(!(i=e.length))return[];for(var t=-1,n=us.min(e,a),r=new Array(n);++t<n;)for(var i,o=-1,s=r[t]=new Array(i);++o<i;)s[o]=e[o][t];return r},us.zip=function(){return us.transpose(arguments)},us.keys=function(e){var t=[];for(var n in e)t.push(n);return t},us.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},us.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},us.merge=function(e){for(var t,n,r,i=e.length,o=-1,s=0;++o<i;)s+=e[o].length;for(n=new Array(s);--i>=0;)for(r=e[i],t=r.length;--t>=0;)n[--s]=r[t];return n};var Ts=Math.abs;us.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,i=[],o=l(Ts(n)),s=-1;if(e*=o,t*=o,n*=o,0>n)for(;(r=e+n*++s)>t;)i.push(r/o);else for(;(r=e+n*++s)<t;)i.push(r/o);return i},us.map=function(e,t){var n=new c;if(e instanceof c)e.forEach(function(e,t){n.set(e,t)});else if(Array.isArray(e)){var r,i=-1,o=e.length;if(1===arguments.length)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t.call(e,r=e[i],i),r)}else for(var s in e)n.set(s,e[s]);return n};var Es="__proto__",Cs="\x00";u(c,{has:h,get:function(e){return this._[p(e)]},set:function(e,t){return this._[p(e)]=t},remove:d,keys:m,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:f(t),value:this._[t]});return e},size:b,empty:y,forEach:function(e){for(var t in this._)e.call(this,f(t),this._[t])}}),us.nest=function(){function e(t,s,a){if(a>=o.length)return r?r.call(i,s):n?s.sort(n):s;for(var l,u,p,f,h=-1,d=s.length,m=o[a++],b=new c;++h<d;)(f=b.get(l=m(u=s[h])))?f.push(u):b.set(l,[u]);return t?(u=t(),p=function(n,r){u.set(n,e(t,r,a))}):(u={},p=function(n,r){u[n]=e(t,r,a)}),b.forEach(p),u}function t(e,n){if(n>=o.length)return e;var r=[],i=s[n++];return e.forEach(function(e,i){r.push({key:e,values:t(i,n)})}),i?r.sort(function(e,t){return i(e.key,t.key)}):r}var n,r,i={},o=[],s=[];return i.map=function(t,n){return e(n,t,0)},i.entries=function(n){return t(e(us.map,n,0),0)},i.key=function(e){return o.push(e),i},i.sortKeys=function(e){return s[o.length-1]=e,i},i.sortValues=function(e){return n=e,i},i.rollup=function(e){return r=e,i},i},us.set=function(e){var t=new v;if(e)for(var n=0,r=e.length;r>n;++n)t.add(e[n]);return t},u(v,{has:h,add:function(e){return this._[p(e+="")]=!0,e},remove:d,values:m,size:b,empty:y,forEach:function(e){for(var t in this._)e.call(this,f(t))}}),us.behavior={},us.rebind=function(e,t){for(var n,r=1,i=arguments.length;++r<i;)e[n=arguments[r]]=_(e,t,t[n]);return e};var ws=["webkit","ms","moz","Moz","o","O"];us.dispatch=function(){for(var e=new C,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=w(e);return e},C.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},us.event=null,us.requote=function(e){return e.replace(Ss,"\\$&")};var Ss=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Ps={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},xs=function(e,t){return t.querySelector(e)},ks=function(e,t){return t.querySelectorAll(e)},Ms=function(e,t){var n=e.matches||e[T(e,"matchesSelector")];return(Ms=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(xs=function(e,t){return Sizzle(e,t)[0]||null},ks=Sizzle,Ms=Sizzle.matchesSelector),us.selection=function(){return us.select(fs.documentElement)};var As=us.selection.prototype=[];As.select=function(e){var t,n,r,i,o=[];e=M(e);for(var s=-1,a=this.length;++s<a;){o.push(t=[]),t.parentNode=(r=this[s]).parentNode;for(var l=-1,u=r.length;++l<u;)(i=r[l])?(t.push(n=e.call(i,i.__data__,l,s)),n&&"__data__"in i&&(n.__data__=i.__data__)):t.push(null)}return k(o)},As.selectAll=function(e){var t,n,r=[];e=A(e);for(var i=-1,o=this.length;++i<o;)for(var s=this[i],a=-1,l=s.length;++a<l;)(n=s[a])&&(r.push(t=ps(e.call(n,n.__data__,a,i))),t.parentNode=n);return k(r)};var Os="http://www.w3.org/1999/xhtml",Ns={svg:"http://www.w3.org/2000/svg",xhtml:Os,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};us.ns={prefix:Ns,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),Ns.hasOwnProperty(n)?{space:Ns[n],local:e}:e}},As.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=us.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(O(t,e[t]));return this}return this.each(O(e,t))},As.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=D(e)).length,i=-1;if(t=n.classList){for(;++i<r;)if(!t.contains(e[i]))return!1}else for(t=n.getAttribute("class");++i<r;)if(!I(e[i]).test(t))return!1;return!0}for(t in e)this.each(R(t,e[t]));return this}return this.each(R(e,t))},As.style=function(e,t,r){var i=arguments.length;if(3>i){if("string"!=typeof e){2>i&&(t="");for(r in e)this.each(j(r,e[r],t));return this}if(2>i){var o=this.node();return n(o).getComputedStyle(o,null).getPropertyValue(e)}r=""}return this.each(j(e,t,r))},As.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(U(t,e[t]));return this}return this.each(U(e,t))},As.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},As.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},As.append=function(e){return e=F(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},As.insert=function(e,t){return e=F(e),t=M(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},As.remove=function(){return this.each(B)},As.data=function(e,t){function n(e,n){var r,i,o,s=e.length,p=n.length,f=Math.min(s,p),h=new Array(p),d=new Array(p),m=new Array(s);if(t){var b,y=new c,v=new Array(s);for(r=-1;++r<s;)(i=e[r])&&(y.has(b=t.call(i,i.__data__,r))?m[r]=i:y.set(b,i),v[r]=b);for(r=-1;++r<p;)(i=y.get(b=t.call(n,o=n[r],r)))?i!==!0&&(h[r]=i,i.__data__=o):d[r]=H(o),y.set(b,!0);for(r=-1;++r<s;)r in v&&y.get(v[r])!==!0&&(m[r]=e[r])}else{for(r=-1;++r<f;)i=e[r],o=n[r],i?(i.__data__=o,h[r]=i):d[r]=H(o);for(;p>r;++r)d[r]=H(n[r]);for(;s>r;++r)m[r]=e[r]}d.update=h,d.parentNode=h.parentNode=m.parentNode=e.parentNode,a.push(d),l.push(h),u.push(m)}var r,i,o=-1,s=this.length;if(!arguments.length){for(e=new Array(s=(r=this[0]).length);++o<s;)(i=r[o])&&(e[o]=i.__data__);return e}var a=V([]),l=k([]),u=k([]);if("function"==typeof e)for(;++o<s;)n(r=this[o],e.call(r,r.parentNode.__data__,o));else for(;++o<s;)n(r=this[o],e);return l.enter=function(){return a},l.exit=function(){return u},l},As.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},As.filter=function(e){var t,n,r,i=[];"function"!=typeof e&&(e=K(e));for(var o=0,s=this.length;s>o;o++){i.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var a=0,l=n.length;l>a;a++)(r=n[a])&&e.call(r,r.__data__,a,o)&&t.push(r)}return k(i)},As.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],i=r.length-1,o=r[i];--i>=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},As.sort=function(e){e=G.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},As.each=function(e){return q(this,function(t,n,r){e.call(t,t.__data__,n,r)})},As.call=function(e){var t=ps(arguments);return e.apply(t[0]=this,t),this},As.empty=function(){return!this.node()},As.node=function(){for(var e=0,t=this.length;t>e;e++)for(var n=this[e],r=0,i=n.length;i>r;r++){var o=n[r];if(o)return o}return null},As.size=function(){var e=0;return q(this,function(){++e}),e};var Is=[];us.selection.enter=V,us.selection.enter.prototype=Is,Is.append=As.append,Is.empty=As.empty,Is.node=As.node,Is.call=As.call,Is.size=As.size,Is.select=function(e){for(var t,n,r,i,o,s=[],a=-1,l=this.length;++a<l;){r=(i=this[a]).update,s.push(t=[]),t.parentNode=i.parentNode;for(var u=-1,c=i.length;++u<c;)(o=i[u])?(t.push(r[u]=n=e.call(i.parentNode,o.__data__,u,a)),n.__data__=o.__data__):t.push(null)}return k(s)},Is.insert=function(e,t){return arguments.length<2&&(t=z(this)),As.insert.call(this,e,t)},us.select=function(t){var n;return"string"==typeof t?(n=[xs(t,fs)],n.parentNode=fs.documentElement):(n=[t],n.parentNode=e(t)),k([n])},us.selectAll=function(e){var t;return"string"==typeof e?(t=ps(ks(e,fs)),t.parentNode=fs.documentElement):(t=ps(e),t.parentNode=null),k([t])},As.on=function(e,t,n){var r=arguments.length;if(3>r){if("string"!=typeof e){2>r&&(t=!1);for(n in e)this.each(X(n,e[n],t));return this}if(2>r)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(X(e,t,n))};var Ds=us.map({mouseenter:"mouseover",mouseleave:"mouseout"});fs&&Ds.forEach(function(e){"on"+e in fs&&Ds.remove(e)});var Rs,Ls=0;us.mouse=function(e){return Y(e,P())};var js=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;us.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=P().changedTouches),t)for(var r,i=0,o=t.length;o>i;++i)if((r=t[i]).identifier===n)return Y(e,r)},us.behavior.drag=function(){function e(){this.on("mousedown.drag",o).on("touchstart.drag",s)}function t(e,t,n,o,s){return function(){function a(){var e,n,r=t(f,m);r&&(e=r[0]-g[0],n=r[1]-g[1],d|=e|n,g=r,h({type:"drag",x:r[0]+u[0],y:r[1]+u[1],dx:e,dy:n}))}function l(){t(f,m)&&(y.on(o+b,null).on(s+b,null),v(d),h({type:"dragend"}))}var u,c=this,p=us.event.target.correspondingElement||us.event.target,f=c.parentNode,h=r.of(c,arguments),d=0,m=e(),b=".drag"+(null==m?"":"-"+m),y=us.select(n(p)).on(o+b,a).on(s+b,l),v=Q(p),g=t(f,m);i?(u=i.apply(c,arguments),u=[u.x-g[0],u.y-g[1]]):u=[0,0],h({type:"dragstart"})}}var r=x(e,"drag","dragstart","dragend"),i=null,o=t(E,us.mouse,n,"mousemove","mouseup"),s=t(Z,us.touch,g,"touchmove","touchend");return e.origin=function(t){return arguments.length?(i=t,e):i},us.rebind(e,r,"on")},us.touches=function(e,t){return arguments.length<2&&(t=P().touches),t?ps(t).map(function(t){var n=Y(e,t);return n.identifier=t.identifier,n}):[]};var Us=1e-6,Fs=Us*Us,Bs=Math.PI,Hs=2*Bs,Ks=Hs-Us,Gs=Bs/2,qs=Bs/180,Vs=180/Bs,zs=Math.SQRT2,Xs=2,Ws=4;us.interpolateZoom=function(e,t){var n,r,i=e[0],o=e[1],s=e[2],a=t[0],l=t[1],u=t[2],c=a-i,p=l-o,f=c*c+p*p;if(Fs>f)r=Math.log(u/s)/zs,n=function(e){return[i+e*c,o+e*p,s*Math.exp(zs*e*r)]};else{var h=Math.sqrt(f),d=(u*u-s*s+Ws*f)/(2*s*Xs*h),m=(u*u-s*s-Ws*f)/(2*u*Xs*h),b=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(m*m+1)-m);r=(y-b)/zs,n=function(e){var t=e*r,n=ie(b),a=s/(Xs*h)*(n*oe(zs*t+b)-re(b));return[i+a*c,o+a*p,s*n/ie(zs*t+b)]}}return n.duration=1e3*r,n},us.behavior.zoom=function(){function e(e){e.on(O,p).on(Qs+".zoom",h).on("dblclick.zoom",d).on(D,f)}function t(e){return[(e[0]-w.x)/w.k,(e[1]-w.y)/w.k]}function r(e){return[e[0]*w.k+w.x,e[1]*w.k+w.y]}function i(e){w.k=Math.max(k[0],Math.min(k[1],e))}function o(e,t){t=r(t),w.x+=e[0]-t[0],w.y+=e[1]-t[1]}function s(t,n,r,s){t.__chart__={x:w.x,y:w.y,k:w.k},i(Math.pow(2,s)),o(b=n,r),t=us.select(t),M>0&&(t=t.transition().duration(M)),t.call(e.event)}function a(){T&&T.domain(_.range().map(function(e){return(e-w.x)/w.k}).map(_.invert)),C&&C.domain(E.range().map(function(e){return(e-w.y)/w.k}).map(E.invert))}function l(e){A++||e({type:"zoomstart"})}function u(e){a(),e({type:"zoom",scale:w.k,translate:[w.x,w.y]})}function c(e){--A||(e({type:"zoomend"}),b=null)}function p(){function e(){a=1,o(us.mouse(i),f),u(s)}function r(){p.on(N,null).on(I,null),h(a),c(s)}var i=this,s=R.of(i,arguments),a=0,p=us.select(n(i)).on(N,e).on(I,r),f=t(us.mouse(i)),h=Q(i);Gl.call(i),l(s)}function f(){function e(){var e=us.touches(d);return h=w.k,e.forEach(function(e){e.identifier in b&&(b[e.identifier]=t(e))}),e}function n(){var t=us.event.target;us.select(t).on(_,r).on(T,a),E.push(t);for(var n=us.event.changedTouches,i=0,o=n.length;o>i;++i)b[n[i].identifier]=null;var l=e(),u=Date.now();if(1===l.length){if(500>u-g){var c=l[0];s(d,c,b[c.identifier],Math.floor(Math.log(w.k)/Math.LN2)+1),S()}g=u}else if(l.length>1){var c=l[0],p=l[1],f=c[0]-p[0],h=c[1]-p[1];y=f*f+h*h}}function r(){var e,t,n,r,s=us.touches(d);Gl.call(d);for(var a=0,l=s.length;l>a;++a,r=null)if(n=s[a],r=b[n.identifier]){if(t)break;e=n,t=r}if(r){var c=(c=n[0]-e[0])*c+(c=n[1]-e[1])*c,p=y&&Math.sqrt(c/y);e=[(e[0]+n[0])/2,(e[1]+n[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],i(p*h)}g=null,o(e,t),u(m)}function a(){if(us.event.touches.length){for(var t=us.event.changedTouches,n=0,r=t.length;r>n;++n)delete b[t[n].identifier];for(var i in b)return void e()}us.selectAll(E).on(v,null),C.on(O,p).on(D,f),P(),c(m)}var h,d=this,m=R.of(d,arguments),b={},y=0,v=".zoom-"+us.event.changedTouches[0].identifier,_="touchmove"+v,T="touchend"+v,E=[],C=us.select(d),P=Q(d);n(),l(m),C.on(O,null).on(D,n)}function h(){var e=R.of(this,arguments);v?clearTimeout(v):(Gl.call(this),m=t(b=y||us.mouse(this)),l(e)),v=setTimeout(function(){v=null,c(e)},50),S(),i(Math.pow(2,.002*$s())*w.k),o(b,m),u(e)}function d(){var e=us.mouse(this),n=Math.log(w.k)/Math.LN2;s(this,e,t(e),us.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var m,b,y,v,g,_,T,E,C,w={x:0,y:0,k:1},P=[960,500],k=Ys,M=250,A=0,O="mousedown.zoom",N="mousemove.zoom",I="mouseup.zoom",D="touchstart.zoom",R=x(e,"zoomstart","zoom","zoomend");return Qs||(Qs="onwheel"in fs?($s=function(){return-us.event.deltaY*(us.event.deltaMode?120:1)},"wheel"):"onmousewheel"in fs?($s=function(){return us.event.wheelDelta},"mousewheel"):($s=function(){return-us.event.detail},"MozMousePixelScroll")),e.event=function(e){e.each(function(){var e=R.of(this,arguments),t=w;Hl?us.select(this).transition().each("start.zoom",function(){w=this.__chart__||{x:0,y:0,k:1},l(e)}).tween("zoom:zoom",function(){var n=P[0],r=P[1],i=b?b[0]:n/2,o=b?b[1]:r/2,s=us.interpolateZoom([(i-w.x)/w.k,(o-w.y)/w.k,n/w.k],[(i-t.x)/t.k,(o-t.y)/t.k,n/t.k]);return function(t){var r=s(t),a=n/r[2];this.__chart__=w={x:i-r[0]*a,y:o-r[1]*a,k:a},u(e)}}).each("interrupt.zoom",function(){c(e)}).each("end.zoom",function(){c(e)}):(this.__chart__=w,l(e),u(e),c(e))})},e.translate=function(t){return arguments.length?(w={x:+t[0],y:+t[1],k:w.k},a(),e):[w.x,w.y]},e.scale=function(t){return arguments.length?(w={x:w.x,y:w.y,k:null},i(+t),a(),e):w.k},e.scaleExtent=function(t){return arguments.length?(k=null==t?Ys:[+t[0],+t[1]],e):k},e.center=function(t){return arguments.length?(y=t&&[+t[0],+t[1]],e):y},e.size=function(t){return arguments.length?(P=t&&[+t[0],+t[1]],e):P},e.duration=function(t){return arguments.length?(M=+t,e):M},e.x=function(t){return arguments.length?(T=t,_=t.copy(),w={x:0,y:0,k:1},e):T},e.y=function(t){return arguments.length?(C=t,E=t.copy(),w={x:0,y:0,k:1},e):C},us.rebind(e,R,"on")};var $s,Qs,Ys=[0,1/0];us.color=ae,ae.prototype.toString=function(){return this.rgb()+""},us.hsl=le;var Zs=le.prototype=new ae;Zs.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new le(this.h,this.s,this.l/e)},Zs.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new le(this.h,this.s,e*this.l)},Zs.rgb=function(){return ue(this.h,this.s,this.l)},us.hcl=ce;var Js=ce.prototype=new ae;Js.brighter=function(e){return new ce(this.h,this.c,Math.min(100,this.l+ea*(arguments.length?e:1)))},Js.darker=function(e){return new ce(this.h,this.c,Math.max(0,this.l-ea*(arguments.length?e:1)))},Js.rgb=function(){return pe(this.h,this.c,this.l).rgb()},us.lab=fe;var ea=18,ta=.95047,na=1,ra=1.08883,ia=fe.prototype=new ae;ia.brighter=function(e){return new fe(Math.min(100,this.l+ea*(arguments.length?e:1)),this.a,this.b)},ia.darker=function(e){return new fe(Math.max(0,this.l-ea*(arguments.length?e:1)),this.a,this.b)},ia.rgb=function(){return he(this.l,this.a,this.b)},us.rgb=ve;var oa=ve.prototype=new ae;oa.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&i>t&&(t=i),n&&i>n&&(n=i),r&&i>r&&(r=i),new ve(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new ve(i,i,i)},oa.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new ve(e*this.r,e*this.g,e*this.b)},oa.hsl=function(){return Ce(this.r,this.g,this.b)},oa.toString=function(){return"#"+Te(this.r)+Te(this.g)+Te(this.b)};var sa=us.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});sa.forEach(function(e,t){sa.set(e,ge(t))}),us.functor=xe,us.xhr=ke(g),us.dsv=function(e,t){function n(e,n,o){arguments.length<3&&(o=n,n=null);var s=Me(e,t,null==n?r:i(n),o);return s.row=function(e){return arguments.length?s.response(null==(n=e)?r:i(e)):n},s}function r(e){return n.parse(e.responseText)}function i(e){return function(t){return n.parse(t.responseText,e)}}function o(t){return t.map(s).join(e)}function s(e){return a.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var a=new RegExp('["'+e+"\n]"),l=e.charCodeAt(0);return n.parse=function(e,t){var r;return n.parseRows(e,function(e,n){if(r)return r(e,n-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");r=t?function(e,n){return t(i(e),n)}:i})},n.parseRows=function(e,t){function n(){if(c>=u)return s;if(i)return i=!1,o;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++<u;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}c=n+2;var r=e.charCodeAt(n+1);return 13===r?(i=!0,10===e.charCodeAt(n+2)&&++c):10===r&&(i=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;u>c;){var r=e.charCodeAt(c++),a=1;if(10===r)i=!0;else if(13===r)i=!0,10===e.charCodeAt(c)&&(++c,++a);else if(r!==l)continue;return e.slice(t,c-a)}return e.slice(t)}for(var r,i,o={},s={},a=[],u=e.length,c=0,p=0;(r=n())!==s;){for(var f=[];r!==o&&r!==s;)f.push(r),r=n();t&&null==(f=t(f,p++))||a.push(f)}return a},n.format=function(t){if(Array.isArray(t[0]))return n.formatRows(t);var r=new v,i=[];return t.forEach(function(e){for(var t in e)r.has(t)||i.push(r.add(t))}),[i.map(s).join(e)].concat(t.map(function(t){return i.map(function(e){return s(t[e])}).join(e)})).join("\n")},n.formatRows=function(e){return e.map(o).join("\n")},n},us.csv=us.dsv(",","text/csv"),us.tsv=us.dsv(" ","text/tab-separated-values");var aa,la,ua,ca,pa=this[T(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};us.timer=function(){Ne.apply(this,arguments)},us.timer.flush=function(){De(),Re()},us.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var fa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(je);us.formatPrefix=function(e,t){var n=0;return(e=+e)&&(0>e&&(e*=-1),t&&(e=us.round(e,Le(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),fa[8+n/3]};var ha=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,da=us.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=us.round(e,Le(e,t))).toFixed(Math.max(0,Math.min(20,Le(e*(1+1e-15),t))))}}),ma=us.time={},ba=Date;Be.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ya.setUTCDate.apply(this._,arguments)},setDay:function(){ya.setUTCDay.apply(this._,arguments)},setFullYear:function(){ya.setUTCFullYear.apply(this._,arguments)},setHours:function(){ya.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ya.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ya.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ya.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ya.setUTCSeconds.apply(this._,arguments)},setTime:function(){ya.setTime.apply(this._,arguments)}};var ya=Date.prototype;ma.year=He(function(e){return e=ma.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),ma.years=ma.year.range,ma.years.utc=ma.year.utc.range,ma.day=He(function(e){var t=new ba(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),ma.days=ma.day.range,ma.days.utc=ma.day.utc.range,ma.dayOfYear=function(e){var t=ma.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=ma[e]=He(function(e){return(e=ma.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=ma.year(e).getDay();return Math.floor((ma.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});ma[e+"s"]=n.range,ma[e+"s"].utc=n.utc.range,ma[e+"OfYear"]=function(e){var n=ma.year(e).getDay();return Math.floor((ma.dayOfYear(e)+(n+t)%7)/7)}}),ma.week=ma.sunday,ma.weeks=ma.sunday.range,ma.weeks.utc=ma.sunday.utc.range,ma.weekOfYear=ma.sundayOfYear;var va={"-":"",_:" ",0:"0"},ga=/^\s*\d+/,_a=/^%/;us.locale=function(e){return{numberFormat:Ue(e),timeFormat:Ge(e)}};var Ta=us.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});us.format=Ta.numberFormat,us.geo={},ct.prototype={s:0,t:0,add:function(e){pt(e,this.t,Ea),pt(Ea.s,this.s,this),this.s?this.t+=Ea.t:this.s=Ea.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Ea=new ct;us.geo.stream=function(e,t){e&&Ca.hasOwnProperty(e.type)?Ca[e.type](e,t):ft(e,t)};var Ca={Feature:function(e,t){ft(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)ft(n[r].geometry,t)}},wa={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){ht(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)ht(n[r],t,0)},Polygon:function(e,t){dt(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)dt(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)ft(n[r],t)}};us.geo.area=function(e){return Sa=0,us.geo.stream(e,xa),Sa};var Sa,Pa=new ct,xa={sphere:function(){Sa+=4*Bs},point:E,lineStart:E,lineEnd:E,polygonStart:function(){Pa.reset(),xa.lineStart=mt},polygonEnd:function(){var e=2*Pa;Sa+=0>e?4*Bs+e:e,xa.lineStart=xa.lineEnd=xa.point=E}};us.geo.bounds=function(){function e(e,t){g.push(_=[c=e,f=e]),p>t&&(p=t),t>h&&(h=t)}function t(t,n){var r=bt([t*qs,n*qs]);if(y){var i=vt(y,r),o=[i[1],-i[0],0],s=vt(o,i);Tt(s),s=Et(s);var l=t-d,u=l>0?1:-1,m=s[0]*Vs*u,b=Ts(l)>180;if(b^(m>u*d&&u*t>m)){var v=s[1]*Vs;v>h&&(h=v)}else if(m=(m+360)%360-180,b^(m>u*d&&u*t>m)){var v=-s[1]*Vs;p>v&&(p=v)}else p>n&&(p=n),n>h&&(h=n);b?d>t?a(c,t)>a(c,f)&&(f=t):a(t,f)>a(c,f)&&(c=t):f>=c?(c>t&&(c=t),t>f&&(f=t)):t>d?a(c,t)>a(c,f)&&(f=t):a(t,f)>a(c,f)&&(c=t)}else e(t,n);y=r,d=t}function n(){T.point=t}function r(){_[0]=c,_[1]=f,T.point=e,y=null}function i(e,n){if(y){var r=e-d;v+=Ts(r)>180?r+(r>0?360:-360):r}else m=e,b=n;xa.point(e,n),t(e,n)}function o(){xa.lineStart()}function s(){i(m,b),xa.lineEnd(),Ts(v)>Us&&(c=-(f=180)),_[0]=c,_[1]=f,y=null}function a(e,t){return(t-=e)<0?t+360:t}function l(e,t){return e[0]-t[0]}function u(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var c,p,f,h,d,m,b,y,v,g,_,T={point:e,lineStart:n,lineEnd:r,polygonStart:function(){T.point=i,T.lineStart=o,T.lineEnd=s,v=0,xa.polygonStart();
|
||
},polygonEnd:function(){xa.polygonEnd(),T.point=e,T.lineStart=n,T.lineEnd=r,0>Pa?(c=-(f=180),p=-(h=90)):v>Us?h=90:-Us>v&&(p=-90),_[0]=c,_[1]=f}};return function(e){h=f=-(c=p=1/0),g=[],us.geo.stream(e,T);var t=g.length;if(t){g.sort(l);for(var n,r=1,i=g[0],o=[i];t>r;++r)n=g[r],u(n[0],i)||u(n[1],i)?(a(i[0],n[1])>a(i[0],i[1])&&(i[1]=n[1]),a(n[0],i[1])>a(i[0],i[1])&&(i[0]=n[0])):o.push(i=n);for(var s,n,d=-(1/0),t=o.length-1,r=0,i=o[t];t>=r;i=n,++r)n=o[r],(s=a(i[1],n[0]))>d&&(d=s,c=n[0],f=i[1])}return g=_=null,c===1/0||p===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,p],[f,h]]}}(),us.geo.centroid=function(e){ka=Ma=Aa=Oa=Na=Ia=Da=Ra=La=ja=Ua=0,us.geo.stream(e,Fa);var t=La,n=ja,r=Ua,i=t*t+n*n+r*r;return Fs>i&&(t=Ia,n=Da,r=Ra,Us>Ma&&(t=Aa,n=Oa,r=Na),i=t*t+n*n+r*r,Fs>i)?[NaN,NaN]:[Math.atan2(n,t)*Vs,ne(r/Math.sqrt(i))*Vs]};var ka,Ma,Aa,Oa,Na,Ia,Da,Ra,La,ja,Ua,Fa={sphere:E,point:wt,lineStart:Pt,lineEnd:xt,polygonStart:function(){Fa.lineStart=kt},polygonEnd:function(){Fa.lineStart=Pt}},Ba=Dt(At,Ut,Bt,[-Bs,-Bs/2]),Ha=1e9;us.geo.clipExtent=function(){var e,t,n,r,i,o,s={stream:function(e){return i&&(i.valid=!1),i=o(e),i.valid=!0,i},extent:function(a){return arguments.length?(o=qt(e=+a[0][0],t=+a[0][1],n=+a[1][0],r=+a[1][1]),i&&(i.valid=!1,i=null),s):[[e,t],[n,r]]}};return s.extent([[0,0],[960,500]])},(us.geo.conicEqualArea=function(){return Vt(zt)}).raw=zt,us.geo.albers=function(){return us.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},us.geo.albersUsa=function(){function e(e){var o=e[0],s=e[1];return t=null,n(o,s),t||(r(o,s),t)||i(o,s),t}var t,n,r,i,o=us.geo.albers(),s=us.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=us.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(e,n){t=[e,n]}};return e.invert=function(e){var t=o.scale(),n=o.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?s:i>=.166&&.234>i&&r>=-.214&&-.115>r?a:o).invert(e)},e.stream=function(e){var t=o.stream(e),n=s.stream(e),r=a.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(o.precision(t),s.precision(t),a.precision(t),e):o.precision()},e.scale=function(t){return arguments.length?(o.scale(t),s.scale(.35*t),a.scale(t),e.translate(o.translate())):o.scale()},e.translate=function(t){if(!arguments.length)return o.translate();var u=o.scale(),c=+t[0],p=+t[1];return n=o.translate(t).clipExtent([[c-.455*u,p-.238*u],[c+.455*u,p+.238*u]]).stream(l).point,r=s.translate([c-.307*u,p+.201*u]).clipExtent([[c-.425*u+Us,p+.12*u+Us],[c-.214*u-Us,p+.234*u-Us]]).stream(l).point,i=a.translate([c-.205*u,p+.212*u]).clipExtent([[c-.214*u+Us,p+.166*u+Us],[c-.115*u-Us,p+.234*u-Us]]).stream(l).point,e},e.scale(1070)};var Ka,Ga,qa,Va,za,Xa,Wa={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Ga=0,Wa.lineStart=Xt},polygonEnd:function(){Wa.lineStart=Wa.lineEnd=Wa.point=E,Ka+=Ts(Ga/2)}},$a={point:Wt,lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E},Qa={point:Yt,lineStart:Zt,lineEnd:Jt,polygonStart:function(){Qa.lineStart=en},polygonEnd:function(){Qa.point=Yt,Qa.lineStart=Zt,Qa.lineEnd=Jt}};us.geo.path=function(){function e(e){return e&&("function"==typeof a&&o.pointRadius(+a.apply(this,arguments)),s&&s.valid||(s=i(o)),us.geo.stream(e,s)),o.result()}function t(){return s=null,e}var n,r,i,o,s,a=4.5;return e.area=function(e){return Ka=0,us.geo.stream(e,i(Wa)),Ka},e.centroid=function(e){return Aa=Oa=Na=Ia=Da=Ra=La=ja=Ua=0,us.geo.stream(e,i(Qa)),Ua?[La/Ua,ja/Ua]:Ra?[Ia/Ra,Da/Ra]:Na?[Aa/Na,Oa/Na]:[NaN,NaN]},e.bounds=function(e){return za=Xa=-(qa=Va=1/0),us.geo.stream(e,i($a)),[[qa,Va],[za,Xa]]},e.projection=function(e){return arguments.length?(i=(n=e)?e.stream||rn(e):g,t()):n},e.context=function(e){return arguments.length?(o=null==(r=e)?new $t:new tn(e),"function"!=typeof a&&o.pointRadius(a),t()):r},e.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(o.pointRadius(+t),+t),e):a},e.projection(us.geo.albersUsa()).context(null)},us.geo.transform=function(e){return{stream:function(t){var n=new on(t);for(var r in e)n[r]=e[r];return n}}},on.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},us.geo.projection=an,us.geo.projectionMutator=ln,(us.geo.equirectangular=function(){return an(cn)}).raw=cn.invert=cn,us.geo.rotation=function(e){function t(t){return t=e(t[0]*qs,t[1]*qs),t[0]*=Vs,t[1]*=Vs,t}return e=fn(e[0]%360*qs,e[1]*qs,e.length>2?e[2]*qs:0),t.invert=function(t){return t=e.invert(t[0]*qs,t[1]*qs),t[0]*=Vs,t[1]*=Vs,t},t},pn.invert=cn,us.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=fn(-e[0]*qs,-e[1]*qs,0).invert,i=[];return n(null,null,1,{point:function(e,n){i.push(e=t(e,n)),e[0]*=Vs,e[1]*=Vs}}),{type:"Polygon",coordinates:[i]}}var t,n,r=[0,0],i=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=bn((t=+r)*qs,i*qs),e):t},e.precision=function(r){return arguments.length?(n=bn(t*qs,(i=+r)*qs),e):i},e.angle(90)},us.geo.distance=function(e,t){var n,r=(t[0]-e[0])*qs,i=e[1]*qs,o=t[1]*qs,s=Math.sin(r),a=Math.cos(r),l=Math.sin(i),u=Math.cos(i),c=Math.sin(o),p=Math.cos(o);return Math.atan2(Math.sqrt((n=p*s)*n+(n=u*c-l*p*a)*n),l*c+u*p*a)},us.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return us.range(Math.ceil(o/b)*b,i,b).map(f).concat(us.range(Math.ceil(u/y)*y,l,y).map(h)).concat(us.range(Math.ceil(r/d)*d,n,d).filter(function(e){return Ts(e%b)>Us}).map(c)).concat(us.range(Math.ceil(a/m)*m,s,m).filter(function(e){return Ts(e%y)>Us}).map(p))}var n,r,i,o,s,a,l,u,c,p,f,h,d=10,m=d,b=90,y=360,v=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[f(o).concat(h(l).slice(1),f(i).reverse().slice(1),h(u).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],u=+t[0][1],l=+t[1][1],o>i&&(t=o,o=i,i=t),u>l&&(t=u,u=l,l=t),e.precision(v)):[[o,u],[i,l]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],a=+t[0][1],s=+t[1][1],r>n&&(t=r,r=n,n=t),a>s&&(t=a,a=s,s=t),e.precision(v)):[[r,a],[n,s]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(b=+t[0],y=+t[1],e):[b,y]},e.minorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],e):[d,m]},e.precision=function(t){return arguments.length?(v=+t,c=vn(a,s,90),p=gn(r,n,v),f=vn(u,l,90),h=gn(o,i,v),e):v},e.majorExtent([[-180,-90+Us],[180,90-Us]]).minorExtent([[-180,-80-Us],[180,80+Us]])},us.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||i.apply(this,arguments)]}}var t,n,r=_n,i=Tn;return e.distance=function(){return us.geo.distance(t||r.apply(this,arguments),n||i.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(i=t,n="function"==typeof t?null:t,e):i},e.precision=function(){return arguments.length?e:0},e},us.geo.interpolate=function(e,t){return En(e[0]*qs,e[1]*qs,t[0]*qs,t[1]*qs)},us.geo.length=function(e){return Ya=0,us.geo.stream(e,Za),Ya};var Ya,Za={sphere:E,point:E,lineStart:Cn,lineEnd:E,polygonStart:E,polygonEnd:E},Ja=wn(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(us.geo.azimuthalEqualArea=function(){return an(Ja)}).raw=Ja;var el=wn(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},g);(us.geo.azimuthalEquidistant=function(){return an(el)}).raw=el,(us.geo.conicConformal=function(){return Vt(Sn)}).raw=Sn,(us.geo.conicEquidistant=function(){return Vt(Pn)}).raw=Pn;var tl=wn(function(e){return 1/e},Math.atan);(us.geo.gnomonic=function(){return an(tl)}).raw=tl,xn.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Gs]},(us.geo.mercator=function(){return kn(xn)}).raw=xn;var nl=wn(function(){return 1},Math.asin);(us.geo.orthographic=function(){return an(nl)}).raw=nl;var rl=wn(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(us.geo.stereographic=function(){return an(rl)}).raw=rl,Mn.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Gs]},(us.geo.transverseMercator=function(){var e=kn(Mn),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Mn,us.geom={},us.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,i=xe(n),o=xe(r),s=e.length,a=[],l=[];for(t=0;s>t;t++)a.push([+i.call(this,e[t],t),+o.call(this,e[t],t),t]);for(a.sort(In),t=0;s>t;t++)l.push([a[t][0],-a[t][1]]);var u=Nn(a),c=Nn(l),p=c[0]===u[0],f=c[c.length-1]===u[u.length-1],h=[];for(t=u.length-1;t>=0;--t)h.push(e[a[u[t]][2]]);for(t=+p;t<c.length-f;++t)h.push(e[a[c[t]][2]]);return h}var n=An,r=On;return arguments.length?t(e):(t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t)},us.geom.polygon=function(e){return Ps(e,il),e};var il=us.geom.polygon.prototype=[];il.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],i=0;++t<n;)e=r,r=this[t],i+=e[1]*r[0]-e[0]*r[1];return.5*i},il.centroid=function(e){var t,n,r=-1,i=this.length,o=0,s=0,a=this[i-1];for(arguments.length||(e=-1/(6*this.area()));++r<i;)t=a,a=this[r],n=t[0]*a[1]-a[0]*t[1],o+=(t[0]+a[0])*n,s+=(t[1]+a[1])*n;return[o*e,s*e]},il.clip=function(e){for(var t,n,r,i,o,s,a=Ln(e),l=-1,u=this.length-Ln(this),c=this[u-1];++l<u;){for(t=e.slice(),e.length=0,i=this[l],o=t[(r=t.length-a)-1],n=-1;++n<r;)s=t[n],Dn(s,c,i)?(Dn(o,c,i)||e.push(Rn(o,s,c,i)),e.push(s)):Dn(o,c,i)&&e.push(Rn(o,s,c,i)),o=s;a&&e.push(e[0]),c=i}return e};var ol,sl,al,ll,ul,cl=[],pl=[];qn.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)e=t[n].edge,e.b&&e.a||t.splice(n,1);return t.sort(zn),t.length},nr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},rr.prototype={insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=ar(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(or(this,n),e=n,n=e.U),n.C=!1,r.C=!0,sr(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(sr(this,n),e=n,n=e.U),n.C=!1,r.C=!0,or(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,s=e.R;if(n=o?s?ar(s):o:s,i?i.L===e?i.L=n:i.R=n:this._=n,o&&s?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==s?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=s,s.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r){if(e&&e.C)return void(e.C=!1);do{if(e===this._)break;if(e===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,or(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,sr(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,or(this,i),e=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,sr(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,or(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,sr(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}},us.geom.voronoi=function(e){function t(e){var t=new Array(e.length),r=a[0][0],i=a[0][1],o=a[1][0],s=a[1][1];return lr(n(e),a).cells.forEach(function(n,a){var l=n.edges,u=n.site,c=t[a]=l.length?l.map(function(e){var t=e.start();return[t.x,t.y]}):u.x>=r&&u.x<=o&&u.y>=i&&u.y<=s?[[r,s],[o,s],[o,i],[r,i]]:[];c.point=e[a]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(o(e,t)/Us)*Us,y:Math.round(s(e,t)/Us)*Us,i:t}})}var r=An,i=On,o=r,s=i,a=fl;return e?t(e):(t.links=function(e){return lr(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return lr(n(e)).cells.forEach(function(n,r){for(var i,o,s=n.site,a=n.edges.sort(zn),l=-1,u=a.length,c=a[u-1].edge,p=c.l===s?c.r:c.l;++l<u;)i=c,o=p,c=a[l].edge,p=c.l===s?c.r:c.l,r<o.i&&r<p.i&&cr(s,o,p)<0&&t.push([e[r],e[o.i],e[p.i]])}),t},t.x=function(e){return arguments.length?(o=xe(r=e),t):r},t.y=function(e){return arguments.length?(s=xe(i=e),t):i},t.clipExtent=function(e){return arguments.length?(a=null==e?fl:e,t):a===fl?null:a},t.size=function(e){return arguments.length?t.clipExtent(e&&[[0,0],e]):a===fl?null:a&&a[1]},t)};var fl=[[-1e6,-1e6],[1e6,1e6]];us.geom.delaunay=function(e){return us.geom.voronoi().triangles(e)},us.geom.quadtree=function(e,t,n,r,i){function o(e){function o(e,t,n,r,i,o,s,a){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var l=e.x,c=e.y;if(null!=l)if(Ts(l-n)+Ts(c-r)<.01)u(e,t,n,r,i,o,s,a);else{var p=e.point;e.x=e.y=e.point=null,u(e,p,l,c,i,o,s,a),u(e,t,n,r,i,o,s,a)}else e.x=n,e.y=r,e.point=t}else u(e,t,n,r,i,o,s,a)}function u(e,t,n,r,i,s,a,l){var u=.5*(i+a),c=.5*(s+l),p=n>=u,f=r>=c,h=f<<1|p;e.leaf=!1,e=e.nodes[h]||(e.nodes[h]=hr()),p?i=u:a=u,f?s=c:l=c,o(e,t,n,r,i,s,a,l)}var c,p,f,h,d,m,b,y,v,g=xe(a),_=xe(l);if(null!=t)m=t,b=n,y=r,v=i;else if(y=v=-(m=b=1/0),p=[],f=[],d=e.length,s)for(h=0;d>h;++h)c=e[h],c.x<m&&(m=c.x),c.y<b&&(b=c.y),c.x>y&&(y=c.x),c.y>v&&(v=c.y),p.push(c.x),f.push(c.y);else for(h=0;d>h;++h){var T=+g(c=e[h],h),E=+_(c,h);m>T&&(m=T),b>E&&(b=E),T>y&&(y=T),E>v&&(v=E),p.push(T),f.push(E)}var C=y-m,w=v-b;C>w?v=b+C:y=m+w;var S=hr();if(S.add=function(e){o(S,e,+g(e,++h),+_(e,h),m,b,y,v)},S.visit=function(e){dr(e,S,m,b,y,v)},S.find=function(e){return mr(S,e[0],e[1],m,b,y,v)},h=-1,null==t){for(;++h<d;)o(S,e[h],p[h],f[h],m,b,y,v);--h}else e.forEach(S.add);return p=f=e=c=null,S}var s,a=An,l=On;return(s=arguments.length)?(a=pr,l=fr,3===s&&(i=n,r=t,n=t=0),o(e)):(o.x=function(e){return arguments.length?(a=e,o):a},o.y=function(e){return arguments.length?(l=e,o):l},o.extent=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),o):null==t?null:[[t,n],[r,i]]},o.size=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=n=0,r=+e[0],i=+e[1]),o):null==t?null:[r-t,i-n]},o)},us.interpolateRgb=br,us.interpolateObject=yr,us.interpolateNumber=vr,us.interpolateString=gr;var hl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dl=new RegExp(hl.source,"g");us.interpolate=_r,us.interpolators=[function(e,t){var n=typeof t;return("string"===n?sa.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?br:gr:t instanceof ae?br:Array.isArray(t)?Tr:"object"===n&&isNaN(t)?yr:vr)(e,t)}],us.interpolateArray=Tr;var ml=function(){return g},bl=us.map({linear:ml,poly:kr,quad:function(){return Sr},cubic:function(){return Pr},sin:function(){return Mr},exp:function(){return Ar},circle:function(){return Or},elastic:Nr,back:Ir,bounce:function(){return Dr}}),yl=us.map({"in":g,out:Cr,"in-out":wr,"out-in":function(e){return wr(Cr(e))}});us.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=bl.get(n)||ml,r=yl.get(r)||g,Er(r(n.apply(null,cs.call(arguments,1))))},us.interpolateHcl=Rr,us.interpolateHsl=Lr,us.interpolateLab=jr,us.interpolateRound=Ur,us.transform=function(e){var t=fs.createElementNS(us.ns.prefix.svg,"g");return(us.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Fr(n?n.matrix:vl)})(e)},Fr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var vl={a:1,b:0,c:0,d:1,e:0,f:0};us.interpolateTransform=Wr,us.layout={},us.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push(Yr(e[n]));return t}},us.layout.chord=function(){function e(){var e,u,p,f,h,d={},m=[],b=us.range(o),y=[];for(n=[],r=[],e=0,f=-1;++f<o;){for(u=0,h=-1;++h<o;)u+=i[f][h];m.push(u),y.push(us.range(o)),e+=u}for(s&&b.sort(function(e,t){return s(m[e],m[t])}),a&&y.forEach(function(e,t){e.sort(function(e,n){return a(i[t][e],i[t][n])})}),e=(Hs-c*o)/e,u=0,f=-1;++f<o;){for(p=u,h=-1;++h<o;){var v=b[f],g=y[v][h],_=i[v][g],T=u,E=u+=_*e;d[v+"-"+g]={index:v,subindex:g,startAngle:T,endAngle:E,value:_}}r[v]={index:v,startAngle:p,endAngle:u,value:m[v]},u+=c}for(f=-1;++f<o;)for(h=f-1;++h<o;){var C=d[f+"-"+h],w=d[h+"-"+f];(C.value||w.value)&&n.push(C.value<w.value?{source:w,target:C}:{source:C,target:w})}l&&t()}function t(){n.sort(function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}var n,r,i,o,s,a,l,u={},c=0;return u.matrix=function(e){return arguments.length?(o=(i=e)&&i.length,n=r=null,u):i},u.padding=function(e){return arguments.length?(c=e,n=r=null,u):c},u.sortGroups=function(e){return arguments.length?(s=e,n=r=null,u):s},u.sortSubgroups=function(e){return arguments.length?(a=e,n=null,u):a},u.sortChords=function(e){return arguments.length?(l=e,n&&t(),u):l},u.chords=function(){return n||e(),n},u.groups=function(){return r||e(),r},u},us.layout.force=function(){function e(e){return function(t,n,r,i){if(t.point!==e){var o=t.cx-e.x,s=t.cy-e.y,a=i-n,l=o*o+s*s;if(l>a*a/y){if(m>l){var u=t.charge/l;e.px-=o*u,e.py-=s*u}return!0}if(t.point&&l&&m>l){var u=t.pointCharge/l;e.px-=o*u,e.py-=s*u}}return!t.charge}}function t(e){e.px=us.event.x,e.py=us.event.y,l.resume()}var n,r,i,o,s,a,l={},u=us.dispatch("start","tick","end"),c=[1,1],p=.9,f=gl,h=_l,d=-30,m=Tl,b=.1,y=.64,v=[],_=[];return l.tick=function(){if((i*=.99)<.005)return n=null,u.end({type:"end",alpha:i=0}),!0;var t,r,l,f,h,m,y,g,T,E=v.length,C=_.length;for(r=0;C>r;++r)l=_[r],f=l.source,h=l.target,g=h.x-f.x,T=h.y-f.y,(m=g*g+T*T)&&(m=i*s[r]*((m=Math.sqrt(m))-o[r])/m,g*=m,T*=m,h.x-=g*(y=f.weight+h.weight?f.weight/(f.weight+h.weight):.5),h.y-=T*y,f.x+=g*(y=1-y),f.y+=T*y);if((y=i*b)&&(g=c[0]/2,T=c[1]/2,r=-1,y))for(;++r<E;)l=v[r],l.x+=(g-l.x)*y,l.y+=(T-l.y)*y;if(d)for(ii(t=us.geom.quadtree(v),i,a),r=-1;++r<E;)(l=v[r]).fixed||t.visit(e(l));for(r=-1;++r<E;)l=v[r],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*p,l.y-=(l.py-(l.py=l.y))*p);u.tick({type:"tick",alpha:i})},l.nodes=function(e){return arguments.length?(v=e,l):v},l.links=function(e){return arguments.length?(_=e,l):_},l.size=function(e){return arguments.length?(c=e,l):c},l.linkDistance=function(e){return arguments.length?(f="function"==typeof e?e:+e,l):f},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(h="function"==typeof e?e:+e,l):h},l.friction=function(e){return arguments.length?(p=+e,l):p},l.charge=function(e){return arguments.length?(d="function"==typeof e?e:+e,l):d},l.chargeDistance=function(e){return arguments.length?(m=e*e,l):Math.sqrt(m)},l.gravity=function(e){return arguments.length?(b=+e,l):b},l.theta=function(e){return arguments.length?(y=e*e,l):Math.sqrt(y)},l.alpha=function(e){return arguments.length?(e=+e,i?e>0?i=e:(n.c=null,n.t=NaN,n=null,u.end({type:"end",alpha:i=0})):e>0&&(u.start({type:"start",alpha:i=e}),n=Ne(l.tick)),l):i},l.start=function(){function e(e,r){if(!n){for(n=new Array(i),l=0;i>l;++l)n[l]=[];for(l=0;u>l;++l){var o=_[l];n[o.source.index].push(o.target),n[o.target.index].push(o.source)}}for(var s,a=n[t],l=-1,c=a.length;++l<c;)if(!isNaN(s=a[l][e]))return s;return Math.random()*r}var t,n,r,i=v.length,u=_.length,p=c[0],m=c[1];for(t=0;i>t;++t)(r=v[t]).index=t,r.weight=0;for(t=0;u>t;++t)r=_[t],"number"==typeof r.source&&(r.source=v[r.source]),"number"==typeof r.target&&(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;i>t;++t)r=v[t],isNaN(r.x)&&(r.x=e("x",p)),isNaN(r.y)&&(r.y=e("y",m)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(o=[],"function"==typeof f)for(t=0;u>t;++t)o[t]=+f.call(this,_[t],t);else for(t=0;u>t;++t)o[t]=f;if(s=[],"function"==typeof h)for(t=0;u>t;++t)s[t]=+h.call(this,_[t],t);else for(t=0;u>t;++t)s[t]=h;if(a=[],"function"==typeof d)for(t=0;i>t;++t)a[t]=+d.call(this,v[t],t);else for(t=0;i>t;++t)a[t]=d;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return r||(r=us.behavior.drag().origin(g).on("dragstart.force",ei).on("drag.force",t).on("dragend.force",ti)),arguments.length?void this.on("mouseover.force",ni).on("mouseout.force",ri).call(r):r},us.rebind(l,u,"on")};var gl=20,_l=1,Tl=1/0;us.layout.hierarchy=function(){function e(i){var o,s=[i],a=[];for(i.depth=0;null!=(o=s.pop());)if(a.push(o),(u=n.call(e,o,o.depth))&&(l=u.length)){for(var l,u,c;--l>=0;)s.push(c=u[l]),c.parent=o,c.depth=o.depth+1;r&&(o.value=0),o.children=u}else r&&(o.value=+r.call(e,o,o.depth)||0),delete o.children;return ai(i,function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)}),a}var t=ci,n=li,r=ui;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(si(t,function(e){e.children&&(e.value=0)}),ai(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},us.layout.partition=function(){function e(t,n,r,i){var o=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(s=o.length)){var s,a,l,u=-1;for(r=t.value?r/t.value:0;++u<s;)e(a=o[u],n,l=a.value*r,i),n+=l}}function t(e){var n=e.children,r=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)r=Math.max(r,t(n[o]));return 1+r}function n(n,o){var s=r.call(this,n,o);return e(s[0],0,i[0],i[1]/t(s[0])),s}var r=us.layout.hierarchy(),i=[1,1];return n.size=function(e){return arguments.length?(i=e,n):i},oi(n,r)},us.layout.pie=function(){function e(s){var a,l=s.length,u=s.map(function(n,r){return+t.call(e,n,r)}),c=+("function"==typeof r?r.apply(this,arguments):r),p=("function"==typeof i?i.apply(this,arguments):i)-c,f=Math.min(Math.abs(p)/l,+("function"==typeof o?o.apply(this,arguments):o)),h=f*(0>p?-1:1),d=us.sum(u),m=d?(p-l*h)/d:0,b=us.range(l),y=[];return null!=n&&b.sort(n===El?function(e,t){return u[t]-u[e]}:function(e,t){return n(s[e],s[t])}),b.forEach(function(e){y[e]={data:s[e],value:a=u[e],startAngle:c,endAngle:c+=a*m+h,padAngle:f}}),y}var t=Number,n=El,r=0,i=Hs,o=0;return e.value=function(n){return arguments.length?(t=n,e):t},e.sort=function(t){return arguments.length?(n=t,e):n},e.startAngle=function(t){return arguments.length?(r=t,e):r},e.endAngle=function(t){return arguments.length?(i=t,e):i},e.padAngle=function(t){return arguments.length?(o=t,e):o},e};var El={};us.layout.stack=function(){function e(a,l){if(!(f=a.length))return a;var u=a.map(function(n,r){return t.call(e,n,r)}),c=u.map(function(t){return t.map(function(t,n){return[o.call(e,t,n),s.call(e,t,n)]})}),p=n.call(e,c,l);u=us.permute(u,p),c=us.permute(c,p);var f,h,d,m,b=r.call(e,c,l),y=u[0].length;for(d=0;y>d;++d)for(i.call(e,u[0][d],m=b[d],c[0][d][1]),h=1;f>h;++h)i.call(e,u[h][d],m+=c[h-1][d][1],c[h][d][1]);return a}var t=g,n=mi,r=bi,i=di,o=fi,s=hi;return e.values=function(n){return arguments.length?(t=n,e):t},e.order=function(t){return arguments.length?(n="function"==typeof t?t:Cl.get(t)||mi,e):n},e.offset=function(t){return arguments.length?(r="function"==typeof t?t:wl.get(t)||bi,e):r},e.x=function(t){return arguments.length?(o=t,e):o},e.y=function(t){return arguments.length?(s=t,e):s},e.out=function(t){return arguments.length?(i=t,e):i},e};var Cl=us.map({"inside-out":function(e){var t,n,r=e.length,i=e.map(yi),o=e.map(vi),s=us.range(r).sort(function(e,t){return i[e]-i[t]}),a=0,l=0,u=[],c=[];for(t=0;r>t;++t)n=s[t],l>a?(a+=o[n],u.push(n)):(l+=o[n],c.push(n));return c.reverse().concat(u)},reverse:function(e){return us.range(e.length).reverse()},"default":mi}),wl=us.map({silhouette:function(e){var t,n,r,i=e.length,o=e[0].length,s=[],a=0,l=[];for(n=0;o>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];r>a&&(a=r),s.push(r)}for(n=0;o>n;++n)l[n]=(a-s[n])/2;return l},wiggle:function(e){var t,n,r,i,o,s,a,l,u,c=e.length,p=e[0],f=p.length,h=[];for(h[0]=l=u=0,n=1;f>n;++n){for(t=0,i=0;c>t;++t)i+=e[t][n][1];for(t=0,o=0,a=p[n][0]-p[n-1][0];c>t;++t){for(r=0,s=(e[t][n][1]-e[t][n-1][1])/(2*a);t>r;++r)s+=(e[r][n][1]-e[r][n-1][1])/a;o+=s*e[t][n][1]}h[n]=l-=i?o/i*a:0,u>l&&(u=l)}for(n=0;f>n;++n)h[n]-=u;return h},expand:function(e){var t,n,r,i=e.length,o=e[0].length,s=1/i,a=[];for(n=0;o>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];if(r)for(t=0;i>t;t++)e[t][n][1]/=r;else for(t=0;i>t;t++)e[t][n][1]=s}for(n=0;o>n;++n)a[n]=0;return a},zero:bi});us.layout.histogram=function(){function e(e,o){for(var s,a,l=[],u=e.map(n,this),c=r.call(this,u,o),p=i.call(this,c,u,o),o=-1,f=u.length,h=p.length-1,d=t?1:1/f;++o<h;)s=l[o]=[],s.dx=p[o+1]-(s.x=p[o]),s.y=0;if(h>0)for(o=-1;++o<f;)a=u[o],a>=c[0]&&a<=c[1]&&(s=l[us.bisect(p,a,1,h)-1],s.y+=d,s.push(e[o]));return l}var t=!0,n=Number,r=Ei,i=_i;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=xe(t),e):r},e.bins=function(t){return arguments.length?(i="number"==typeof t?function(e){return Ti(e,t)}:xe(t),e):i},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},us.layout.pack=function(){function e(e,o){var s=n.call(this,e,o),a=s[0],l=i[0],u=i[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,ai(a,function(e){e.r=+c(e.value)}),ai(a,xi),r){var p=r*(t?1:Math.max(2*a.r/l,2*a.r/u))/2;ai(a,function(e){e.r+=p}),ai(a,xi),ai(a,function(e){e.r-=p})}return Ai(a,l/2,u/2,t?1:1/Math.max(2*a.r/l,2*a.r/u)),s}var t,n=us.layout.hierarchy().sort(Ci),r=0,i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},oi(e,n)},us.layout.tree=function(){function e(e,i){var c=s.call(this,e,i),p=c[0],f=t(p);if(ai(f,n),f.parent.m=-f.z,si(f,r),u)si(p,o);else{var h=p,d=p,m=p;si(p,function(e){e.x<h.x&&(h=e),e.x>d.x&&(d=e),e.depth>m.depth&&(m=e)});var b=a(h,d)/2-h.x,y=l[0]/(d.x+a(d,h)/2+b),v=l[1]/(m.depth||1);si(p,function(e){e.x=(e.x+b)*y,e.y=e.depth*v})}return c}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var i,o=t.children,s=0,a=o.length;a>s;++s)r.push((o[s]=i={_:o[s],parent:t,children:(i=o[s].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:s}).a=i);return n.children[0]}function n(e){var t=e.children,n=e.parent.children,r=e.i?n[e.i-1]:null;if(t.length){Li(e);var o=(t[0].z+t[t.length-1].z)/2;r?(e.z=r.z+a(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+a(e._,r._));e.parent.A=i(e,r,e.parent.A||n[0])}function r(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function i(e,t,n){if(t){for(var r,i=e,o=e,s=t,l=i.parent.children[0],u=i.m,c=o.m,p=s.m,f=l.m;s=Di(s),i=Ii(i),s&&i;)l=Ii(l),o=Di(o),o.a=e,r=s.z+p-i.z-u+a(s._,i._),r>0&&(Ri(ji(s,e,n),e,r),u+=r,c+=r),p+=s.m,u+=i.m,f+=l.m,c+=o.m;s&&!Di(o)&&(o.t=s,o.m+=p-c),i&&!Ii(l)&&(l.t=i,l.m+=u-f,n=e)}return n}function o(e){e.x*=l[0],e.y=e.depth*l[1]}var s=us.layout.hierarchy().sort(null).value(null),a=Ni,l=[1,1],u=null;return e.separation=function(t){return arguments.length?(a=t,e):a},e.size=function(t){return arguments.length?(u=null==(l=t)?o:null,e):u?null:l},e.nodeSize=function(t){return arguments.length?(u=null==(l=t)?null:o,e):u?l:null},oi(e,s)},us.layout.cluster=function(){function e(e,o){var s,a=t.call(this,e,o),l=a[0],u=0;ai(l,function(e){var t=e.children;t&&t.length?(e.x=Fi(t),e.y=Ui(t)):(e.x=s?u+=n(e,s):0,e.y=0,s=e)});var c=Bi(l),p=Hi(l),f=c.x-n(c,p)/2,h=p.x+n(p,c)/2;return ai(l,i?function(e){e.x=(e.x-l.x)*r[0],e.y=(l.y-e.y)*r[1]}:function(e){e.x=(e.x-f)/(h-f)*r[0],e.y=(1-(l.y?e.y/l.y:1))*r[1]}),a}var t=us.layout.hierarchy().sort(null).value(null),n=Ni,r=[1,1],i=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(i=null==(r=t),e):i?null:r},e.nodeSize=function(t){return arguments.length?(i=null!=(r=t),e):i?r:null},oi(e,t)},us.layout.treemap=function(){function e(e,t){for(var n,r,i=-1,o=e.length;++i<o;)r=(n=e[i]).value*(0>t?0:t),n.area=isNaN(r)||0>=r?0:r}function t(n){var o=n.children;if(o&&o.length){var s,a,l,u=p(n),c=[],f=o.slice(),d=1/0,m="slice"===h?u.dx:"dice"===h?u.dy:"slice-dice"===h?1&n.depth?u.dy:u.dx:Math.min(u.dx,u.dy);for(e(f,u.dx*u.dy/n.value),c.area=0;(l=f.length)>0;)c.push(s=f[l-1]),c.area+=s.area,"squarify"!==h||(a=r(c,m))<=d?(f.pop(),d=a):(c.area-=c.pop().area,i(c,m,u,!1),m=Math.min(u.dx,u.dy),c.length=c.area=0,d=1/0);c.length&&(i(c,m,u,!0),c.length=c.area=0),o.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var o,s=p(t),a=r.slice(),l=[];for(e(a,s.dx*s.dy/t.value),l.area=0;o=a.pop();)l.push(o),l.area+=o.area,null!=o.z&&(i(l,o.z?s.dx:s.dy,s,!a.length),l.length=l.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,i=0,o=1/0,s=-1,a=e.length;++s<a;)(n=e[s].area)&&(o>n&&(o=n),n>i&&(i=n));return r*=r,t*=t,r?Math.max(t*i*d/r,r/(t*o*d)):1/0}function i(e,t,n,r){var i,o=-1,s=e.length,a=n.x,u=n.y,c=t?l(e.area/t):0;if(t==n.dx){for((r||c>n.dy)&&(c=n.dy);++o<s;)i=e[o],i.x=a,i.y=u,i.dy=c,a+=i.dx=Math.min(n.x+n.dx-a,c?l(i.area/c):0);i.z=!0,i.dx+=n.x+n.dx-a,n.y+=c,n.dy-=c}else{for((r||c>n.dx)&&(c=n.dx);++o<s;)i=e[o],i.x=a,i.y=u,i.dx=c,u+=i.dy=Math.min(n.y+n.dy-u,c?l(i.area/c):0);i.z=!1,i.dy+=n.y+n.dy-u,n.x+=c,n.dx-=c}}function o(r){var i=s||a(r),o=i[0];return o.x=o.y=0,o.value?(o.dx=u[0],o.dy=u[1]):o.dx=o.dy=0,s&&a.revalue(o),e([o],o.dx*o.dy/o.value),(s?n:t)(o),f&&(s=i),i}var s,a=us.layout.hierarchy(),l=Math.round,u=[1,1],c=null,p=Ki,f=!1,h="squarify",d=.5*(1+Math.sqrt(5));return o.size=function(e){return arguments.length?(u=e,o):u},o.padding=function(e){function t(t){var n=e.call(o,t,t.depth);return null==n?Ki(t):Gi(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return Gi(t,e)}if(!arguments.length)return c;var r;return p=null==(c=e)?Ki:"function"==(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,o},o.round=function(e){return arguments.length?(l=e?Math.round:Number,o):l!=Number},o.sticky=function(e){return arguments.length?(f=e,s=null,o):f},o.ratio=function(e){return arguments.length?(d=e,o):d},o.mode=function(e){return arguments.length?(h=e+"",o):h},oi(o,a)},us.random={normal:function(e,t){var n=arguments.length;return 2>n&&(t=1),1>n&&(e=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=us.random.normal.apply(us,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=us.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;e>n;n++)t+=Math.random();return t}}},us.scale={};var Sl={floor:g,ceil:g};us.scale.linear=function(){return Qi([0,1],[0,1],_r,!1)};var Pl={s:1,g:1,p:1,r:1,e:1};us.scale.log=function(){return io(us.scale.linear().domain([0,1]),10,!0,[1,10])};var xl=us.format(".0e"),kl={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};us.scale.pow=function(){return oo(us.scale.linear(),1,[0,1])},us.scale.sqrt=function(){return us.scale.pow().exponent(.5)},us.scale.ordinal=function(){return ao([],{t:"range",a:[[]]})},us.scale.category10=function(){return us.scale.ordinal().range(Ml)},us.scale.category20=function(){return us.scale.ordinal().range(Al)},us.scale.category20b=function(){return us.scale.ordinal().range(Ol)},us.scale.category20c=function(){return us.scale.ordinal().range(Nl)};var Ml=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(_e),Al=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(_e),Ol=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(_e),Nl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(_e);
|
||
us.scale.quantile=function(){return lo([],[])},us.scale.quantize=function(){return uo(0,1,[0,1])},us.scale.threshold=function(){return co([.5],[0,1])},us.scale.identity=function(){return po([0,1])},us.svg={},us.svg.arc=function(){function e(){var e=Math.max(0,+n.apply(this,arguments)),u=Math.max(0,+r.apply(this,arguments)),c=s.apply(this,arguments)-Gs,p=a.apply(this,arguments)-Gs,f=Math.abs(p-c),h=c>p?0:1;if(e>u&&(d=u,u=e,e=d),f>=Ks)return t(u,h)+(e?t(e,1-h):"")+"Z";var d,m,b,y,v,g,_,T,E,C,w,S,P=0,x=0,k=[];if((y=(+l.apply(this,arguments)||0)/2)&&(b=o===Il?Math.sqrt(e*e+u*u):+o.apply(this,arguments),h||(x*=-1),u&&(x=ne(b/u*Math.sin(y))),e&&(P=ne(b/e*Math.sin(y)))),u){v=u*Math.cos(c+x),g=u*Math.sin(c+x),_=u*Math.cos(p-x),T=u*Math.sin(p-x);var M=Math.abs(p-c-2*x)<=Bs?0:1;if(x&&go(v,g,_,T)===h^M){var A=(c+p)/2;v=u*Math.cos(A),g=u*Math.sin(A),_=T=null}}else v=g=0;if(e){E=e*Math.cos(p-P),C=e*Math.sin(p-P),w=e*Math.cos(c+P),S=e*Math.sin(c+P);var O=Math.abs(c-p+2*P)<=Bs?0:1;if(P&&go(E,C,w,S)===1-h^O){var N=(c+p)/2;E=e*Math.cos(N),C=e*Math.sin(N),w=S=null}}else E=C=0;if(f>Us&&(d=Math.min(Math.abs(u-e)/2,+i.apply(this,arguments)))>.001){m=u>e^h?0:1;var I=d,D=d;if(Bs>f){var R=null==w?[E,C]:null==_?[v,g]:Rn([v,g],[w,S],[_,T],[E,C]),L=v-R[0],j=g-R[1],U=_-R[0],F=T-R[1],B=1/Math.sin(Math.acos((L*U+j*F)/(Math.sqrt(L*L+j*j)*Math.sqrt(U*U+F*F)))/2),H=Math.sqrt(R[0]*R[0]+R[1]*R[1]);D=Math.min(d,(e-H)/(B-1)),I=Math.min(d,(u-H)/(B+1))}if(null!=_){var K=_o(null==w?[E,C]:[w,S],[v,g],u,I,h),G=_o([_,T],[E,C],u,I,h);d===I?k.push("M",K[0],"A",I,",",I," 0 0,",m," ",K[1],"A",u,",",u," 0 ",1-h^go(K[1][0],K[1][1],G[1][0],G[1][1]),",",h," ",G[1],"A",I,",",I," 0 0,",m," ",G[0]):k.push("M",K[0],"A",I,",",I," 0 1,",m," ",G[0])}else k.push("M",v,",",g);if(null!=w){var q=_o([v,g],[w,S],e,-D,h),V=_o([E,C],null==_?[v,g]:[_,T],e,-D,h);d===D?k.push("L",V[0],"A",D,",",D," 0 0,",m," ",V[1],"A",e,",",e," 0 ",h^go(V[1][0],V[1][1],q[1][0],q[1][1]),",",1-h," ",q[1],"A",D,",",D," 0 0,",m," ",q[0]):k.push("L",V[0],"A",D,",",D," 0 0,",m," ",q[0])}else k.push("L",E,",",C)}else k.push("M",v,",",g),null!=_&&k.push("A",u,",",u," 0 ",M,",",h," ",_,",",T),k.push("L",E,",",C),null!=w&&k.push("A",e,",",e," 0 ",O,",",1-h," ",w,",",S);return k.push("Z"),k.join("")}function t(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}var n=ho,r=mo,i=fo,o=Il,s=bo,a=yo,l=vo;return e.innerRadius=function(t){return arguments.length?(n=xe(t),e):n},e.outerRadius=function(t){return arguments.length?(r=xe(t),e):r},e.cornerRadius=function(t){return arguments.length?(i=xe(t),e):i},e.padRadius=function(t){return arguments.length?(o=t==Il?Il:xe(t),e):o},e.startAngle=function(t){return arguments.length?(s=xe(t),e):s},e.endAngle=function(t){return arguments.length?(a=xe(t),e):a},e.padAngle=function(t){return arguments.length?(l=xe(t),e):l},e.centroid=function(){var e=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+s.apply(this,arguments)+ +a.apply(this,arguments))/2-Gs;return[Math.cos(t)*e,Math.sin(t)*e]},e};var Il="auto";us.svg.line=function(){return To(g)};var Dl=us.map({linear:Eo,"linear-closed":Co,step:wo,"step-before":So,"step-after":Po,basis:No,"basis-open":Io,"basis-closed":Do,bundle:Ro,cardinal:Mo,"cardinal-open":xo,"cardinal-closed":ko,monotone:Ho});Dl.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var Rl=[0,2/3,1/3,0],Ll=[0,1/3,2/3,0],jl=[0,1/6,2/3,1/6];us.svg.line.radial=function(){var e=To(Ko);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},So.reverse=Po,Po.reverse=So,us.svg.area=function(){return Go(g)},us.svg.area.radial=function(){var e=Go(Ko);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},us.svg.chord=function(){function e(e,a){var l=t(this,o,e,a),u=t(this,s,e,a);return"M"+l.p0+r(l.r,l.p1,l.a1-l.a0)+(n(l,u)?i(l.r,l.p1,l.r,l.p0):i(l.r,l.p1,u.r,u.p0)+r(u.r,u.p1,u.a1-u.a0)+i(u.r,u.p1,l.r,l.p0))+"Z"}function t(e,t,n,r){var i=t.call(e,n,r),o=a.call(e,i,r),s=l.call(e,i,r)-Gs,c=u.call(e,i,r)-Gs;return{r:o,a0:s,a1:c,p0:[o*Math.cos(s),o*Math.sin(s)],p1:[o*Math.cos(c),o*Math.sin(c)]}}function n(e,t){return e.a0==t.a0&&e.a1==t.a1}function r(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Bs)+",1 "+t}function i(e,t,n,r){return"Q 0,0 "+r}var o=_n,s=Tn,a=qo,l=bo,u=yo;return e.radius=function(t){return arguments.length?(a=xe(t),e):a},e.source=function(t){return arguments.length?(o=xe(t),e):o},e.target=function(t){return arguments.length?(s=xe(t),e):s},e.startAngle=function(t){return arguments.length?(l=xe(t),e):l},e.endAngle=function(t){return arguments.length?(u=xe(t),e):u},e},us.svg.diagonal=function(){function e(e,i){var o=t.call(this,e,i),s=n.call(this,e,i),a=(o.y+s.y)/2,l=[o,{x:o.x,y:a},{x:s.x,y:a},s];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=_n,n=Tn,r=Vo;return e.source=function(n){return arguments.length?(t=xe(n),e):t},e.target=function(t){return arguments.length?(n=xe(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},us.svg.diagonal.radial=function(){var e=us.svg.diagonal(),t=Vo,n=e.projection;return e.projection=function(e){return arguments.length?n(zo(t=e)):t},e},us.svg.symbol=function(){function e(e,r){return(Ul.get(t.call(this,e,r))||$o)(n.call(this,e,r))}var t=Wo,n=Xo;return e.type=function(n){return arguments.length?(t=xe(n),e):t},e.size=function(t){return arguments.length?(n=xe(t),e):n},e};var Ul=us.map({circle:$o,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Bl)),n=t*Bl;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Fl),n=t*Fl/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Fl),n=t*Fl/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});us.svg.symbolTypes=Ul.keys();var Fl=Math.sqrt(3),Bl=Math.tan(30*qs);As.transition=function(e){for(var t,n,r=Hl||++Vl,i=es(e),o=[],s=Kl||{time:Date.now(),ease:xr,delay:0,duration:250},a=-1,l=this.length;++a<l;){o.push(t=[]);for(var u=this[a],c=-1,p=u.length;++c<p;)(n=u[c])&&ts(n,c,i,r,s),t.push(n)}return Yo(o,i,r)},As.interrupt=function(e){return this.each(null==e?Gl:Qo(es(e)))};var Hl,Kl,Gl=Qo(es()),ql=[],Vl=0;ql.call=As.call,ql.empty=As.empty,ql.node=As.node,ql.size=As.size,us.transition=function(e,t){return e&&e.transition?Hl?e.transition(t):e:us.selection().transition(e)},us.transition.prototype=ql,ql.select=function(e){var t,n,r,i=this.id,o=this.namespace,s=[];e=M(e);for(var a=-1,l=this.length;++a<l;){s.push(t=[]);for(var u=this[a],c=-1,p=u.length;++c<p;)(r=u[c])&&(n=e.call(r,r.__data__,c,a))?("__data__"in r&&(n.__data__=r.__data__),ts(n,c,o,i,r[o][i]),t.push(n)):t.push(null)}return Yo(s,o,i)},ql.selectAll=function(e){var t,n,r,i,o,s=this.id,a=this.namespace,l=[];e=A(e);for(var u=-1,c=this.length;++u<c;)for(var p=this[u],f=-1,h=p.length;++f<h;)if(r=p[f]){o=r[a][s],n=e.call(r,r.__data__,f,u),l.push(t=[]);for(var d=-1,m=n.length;++d<m;)(i=n[d])&&ts(i,d,a,s,o),t.push(i)}return Yo(l,a,s)},ql.filter=function(e){var t,n,r,i=[];"function"!=typeof e&&(e=K(e));for(var o=0,s=this.length;s>o;o++){i.push(t=[]);for(var n=this[o],a=0,l=n.length;l>a;a++)(r=n[a])&&e.call(r,r.__data__,a,o)&&t.push(r)}return Yo(i,this.namespace,this.id)},ql.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):q(this,null==t?function(t){t[r][n].tween.remove(e)}:function(i){i[r][n].tween.set(e,t)})},ql.attr=function(e,t){function n(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function i(e){return null==e?n:(e+="",function(){var t,n=this.getAttribute(a);return n!==e&&(t=s(n,e),function(e){this.setAttribute(a,t(e))})})}function o(e){return null==e?r:(e+="",function(){var t,n=this.getAttributeNS(a.space,a.local);return n!==e&&(t=s(n,e),function(e){this.setAttributeNS(a.space,a.local,t(e))})})}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var s="transform"==e?Wr:_r,a=us.ns.qualify(e);return Zo(this,"attr."+e,t,a.local?o:i)},ql.attrTween=function(e,t){function n(e,n){var r=t.call(this,e,n,this.getAttribute(i));return r&&function(e){this.setAttribute(i,r(e))}}function r(e,n){var r=t.call(this,e,n,this.getAttributeNS(i.space,i.local));return r&&function(e){this.setAttributeNS(i.space,i.local,r(e))}}var i=us.ns.qualify(e);return this.tween("attr."+e,i.local?r:n)},ql.style=function(e,t,r){function i(){this.style.removeProperty(e)}function o(t){return null==t?i:(t+="",function(){var i,o=n(this).getComputedStyle(this,null).getPropertyValue(e);return o!==t&&(i=_r(o,t),function(t){this.style.setProperty(e,i(t),r)})})}var s=arguments.length;if(3>s){if("string"!=typeof e){2>s&&(t="");for(r in e)this.style(r,e[r],t);return this}r=""}return Zo(this,"style."+e,t,o)},ql.styleTween=function(e,t,r){function i(i,o){var s=t.call(this,i,o,n(this).getComputedStyle(this,null).getPropertyValue(e));return s&&function(t){this.style.setProperty(e,s(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+e,i)},ql.text=function(e){return Zo(this,"text",e,Jo)},ql.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},ql.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=us.ease.apply(us,arguments)),q(this,function(r){r[n][t].ease=e}))},ql.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:q(this,"function"==typeof e?function(r,i,o){r[n][t].delay=+e.call(r,r.__data__,i,o)}:(e=+e,function(r){r[n][t].delay=e}))},ql.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:q(this,"function"==typeof e?function(r,i,o){r[n][t].duration=Math.max(1,e.call(r,r.__data__,i,o))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},ql.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var i=Kl,o=Hl;try{Hl=n,q(this,function(t,i,o){Kl=t[r][n],e.call(t,t.__data__,i,o)})}finally{Kl=i,Hl=o}}else q(this,function(i){var o=i[r][n];(o.event||(o.event=us.dispatch("start","end","interrupt"))).on(e,t)});return this},ql.transition=function(){for(var e,t,n,r,i=this.id,o=++Vl,s=this.namespace,a=[],l=0,u=this.length;u>l;l++){a.push(e=[]);for(var t=this[l],c=0,p=t.length;p>c;c++)(n=t[c])&&(r=n[s][i],ts(n,c,s,o,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),e.push(n)}return Yo(a,s,o)},us.svg.axis=function(){function e(e){e.each(function(){var e,u=us.select(this),c=this.__chart__||n,p=this.__chart__=n.copy(),f=null==l?p.ticks?p.ticks.apply(p,a):p.domain():l,h=null==t?p.tickFormat?p.tickFormat.apply(p,a):g:t,d=u.selectAll(".tick").data(f,p),m=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Us),b=us.transition(d.exit()).style("opacity",Us).remove(),y=us.transition(d.order()).style("opacity",1),v=Math.max(i,0)+s,_=Vi(p),T=u.selectAll(".domain").data([0]),E=(T.enter().append("path").attr("class","domain"),us.transition(T));m.append("line"),m.append("text");var C,w,S,P,x=m.select("line"),k=y.select("line"),M=d.select("text").text(h),A=m.select("text"),O=y.select("text"),N="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(e=ns,C="x",S="y",w="x2",P="y2",M.attr("dy",0>N?"0em":".71em").style("text-anchor","middle"),E.attr("d","M"+_[0]+","+N*o+"V0H"+_[1]+"V"+N*o)):(e=rs,C="y",S="x",w="y2",P="x2",M.attr("dy",".32em").style("text-anchor",0>N?"end":"start"),E.attr("d","M"+N*o+","+_[0]+"H0V"+_[1]+"H"+N*o)),x.attr(P,N*i),A.attr(S,N*v),k.attr(w,0).attr(P,N*i),O.attr(C,0).attr(S,N*v),p.rangeBand){var I=p,D=I.rangeBand()/2;c=p=function(e){return I(e)+D}}else c.rangeBand?c=p:b.call(e,p,c);m.call(e,c,p),y.call(e,p,p)})}var t,n=us.scale.linear(),r=zl,i=6,o=6,s=3,a=[10],l=null;return e.scale=function(t){return arguments.length?(n=t,e):n},e.orient=function(t){return arguments.length?(r=t in Xl?t+"":zl,e):r},e.ticks=function(){return arguments.length?(a=ps(arguments),e):a},e.tickValues=function(t){return arguments.length?(l=t,e):l},e.tickFormat=function(n){return arguments.length?(t=n,e):t},e.tickSize=function(t){var n=arguments.length;return n?(i=+t,o=+arguments[n-1],e):i},e.innerTickSize=function(t){return arguments.length?(i=+t,e):i},e.outerTickSize=function(t){return arguments.length?(o=+t,e):o},e.tickPadding=function(t){return arguments.length?(s=+t,e):s},e.tickSubdivide=function(){return arguments.length&&e},e};var zl="bottom",Xl={top:1,right:1,bottom:1,left:1};us.svg.brush=function(){function e(n){n.each(function(){var n=us.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",o).on("touchstart.brush",o),s=n.selectAll(".background").data([0]);s.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),n.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=n.selectAll(".resize").data(m,g);a.exit().remove(),a.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return Wl[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",e.empty()?"none":null);var l,p=us.transition(n),f=us.transition(s);u&&(l=Vi(u),f.attr("x",l[0]).attr("width",l[1]-l[0]),r(p)),c&&(l=Vi(c),f.attr("y",l[0]).attr("height",l[1]-l[0]),i(p)),t(p)})}function t(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+p[+/e$/.test(e)]+","+f[+/^s/.test(e)]+")"})}function r(e){e.select(".extent").attr("x",p[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",p[1]-p[0])}function i(e){e.select(".extent").attr("y",f[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1]-f[0])}function o(){function o(){32==us.event.keyCode&&(M||(g=null,O[0]-=p[1],O[1]-=f[1],M=2),S())}function m(){32==us.event.keyCode&&2==M&&(O[0]+=p[1],O[1]+=f[1],M=0,S())}function b(){var e=us.mouse(T),n=!1;_&&(e[0]+=_[0],e[1]+=_[1]),M||(us.event.altKey?(g||(g=[(p[0]+p[1])/2,(f[0]+f[1])/2]),O[0]=p[+(e[0]<g[0])],O[1]=f[+(e[1]<g[1])]):g=null),x&&y(e,u,0)&&(r(w),n=!0),k&&y(e,c,1)&&(i(w),n=!0),n&&(t(w),C({type:"brush",mode:M?"move":"resize"}))}function y(e,t,n){var r,i,o=Vi(t),l=o[0],u=o[1],c=O[n],m=n?f:p,b=m[1]-m[0];return M&&(l-=c,u-=b+c),r=(n?d:h)?Math.max(l,Math.min(u,e[n])):e[n],M?i=(r+=c)+b:(g&&(c=Math.max(l,Math.min(u,2*g[n]-r))),r>c?(i=r,r=c):i=c),m[0]!=r||m[1]!=i?(n?a=null:s=null,m[0]=r,m[1]=i,!0):void 0}function v(){b(),w.style("pointer-events","all").selectAll(".resize").style("display",e.empty()?"none":null),us.select("body").style("cursor",null),N.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),C({type:"brushend"})}var g,_,T=this,E=us.select(us.event.target),C=l.of(T,arguments),w=us.select(T),P=E.datum(),x=!/^(n|s)$/.test(P)&&u,k=!/^(e|w)$/.test(P)&&c,M=E.classed("extent"),A=Q(T),O=us.mouse(T),N=us.select(n(T)).on("keydown.brush",o).on("keyup.brush",m);if(us.event.changedTouches?N.on("touchmove.brush",b).on("touchend.brush",v):N.on("mousemove.brush",b).on("mouseup.brush",v),w.interrupt().selectAll("*").interrupt(),M)O[0]=p[0]-O[0],O[1]=f[0]-O[1];else if(P){var I=+/w$/.test(P),D=+/^n/.test(P);_=[p[1-I]-O[0],f[1-D]-O[1]],O[0]=p[I],O[1]=f[D]}else us.event.altKey&&(g=O.slice());w.style("pointer-events","none").selectAll(".resize").style("display",null),us.select("body").style("cursor",E.style("cursor")),C({type:"brushstart"}),b()}var s,a,l=x(e,"brushstart","brush","brushend"),u=null,c=null,p=[0,0],f=[0,0],h=!0,d=!0,m=$l[0];return e.event=function(e){e.each(function(){var e=l.of(this,arguments),t={x:p,y:f,i:s,j:a},n=this.__chart__||t;this.__chart__=t,Hl?us.select(this).transition().each("start.brush",function(){s=n.i,a=n.j,p=n.x,f=n.y,e({type:"brushstart"})}).tween("brush:brush",function(){var n=Tr(p,t.x),r=Tr(f,t.y);return s=a=null,function(i){p=t.x=n(i),f=t.y=r(i),e({type:"brush",mode:"resize"})}}).each("end.brush",function(){s=t.i,a=t.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})}):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))})},e.x=function(t){return arguments.length?(u=t,m=$l[!u<<1|!c],e):u},e.y=function(t){return arguments.length?(c=t,m=$l[!u<<1|!c],e):c},e.clamp=function(t){return arguments.length?(u&&c?(h=!!t[0],d=!!t[1]):u?h=!!t:c&&(d=!!t),e):u&&c?[h,d]:u?h:c?d:null},e.extent=function(t){var n,r,i,o,l;return arguments.length?(u&&(n=t[0],r=t[1],c&&(n=n[0],r=r[0]),s=[n,r],u.invert&&(n=u(n),r=u(r)),n>r&&(l=n,n=r,r=l),n==p[0]&&r==p[1]||(p=[n,r])),c&&(i=t[0],o=t[1],u&&(i=i[1],o=o[1]),a=[i,o],c.invert&&(i=c(i),o=c(o)),i>o&&(l=i,i=o,o=l),i==f[0]&&o==f[1]||(f=[i,o])),e):(u&&(s?(n=s[0],r=s[1]):(n=p[0],r=p[1],u.invert&&(n=u.invert(n),r=u.invert(r)),n>r&&(l=n,n=r,r=l))),c&&(a?(i=a[0],o=a[1]):(i=f[0],o=f[1],c.invert&&(i=c.invert(i),o=c.invert(o)),i>o&&(l=i,i=o,o=l))),u&&c?[[n,i],[r,o]]:u?[n,r]:c&&[i,o])},e.clear=function(){return e.empty()||(p=[0,0],f=[0,0],s=a=null),e},e.empty=function(){return!!u&&p[0]==p[1]||!!c&&f[0]==f[1]},us.rebind(e,l,"on")};var Wl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},$l=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ql=ma.format=Ta.timeFormat,Yl=Ql.utc,Zl=Yl("%Y-%m-%dT%H:%M:%S.%LZ");Ql.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?is:Zl,is.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},is.toString=Zl.toString,ma.second=He(function(e){return new ba(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),ma.seconds=ma.second.range,ma.seconds.utc=ma.second.utc.range,ma.minute=He(function(e){return new ba(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),ma.minutes=ma.minute.range,ma.minutes.utc=ma.minute.utc.range,ma.hour=He(function(e){var t=e.getTimezoneOffset()/60;return new ba(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),ma.hours=ma.hour.range,ma.hours.utc=ma.hour.utc.range,ma.month=He(function(e){return e=ma.day(e),e.setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),ma.months=ma.month.range,ma.months.utc=ma.month.utc.range;var Jl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],eu=[[ma.second,1],[ma.second,5],[ma.second,15],[ma.second,30],[ma.minute,1],[ma.minute,5],[ma.minute,15],[ma.minute,30],[ma.hour,1],[ma.hour,3],[ma.hour,6],[ma.hour,12],[ma.day,1],[ma.day,2],[ma.week,1],[ma.month,1],[ma.month,3],[ma.year,1]],tu=Ql.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",At]]),nu={range:function(e,t,n){return us.range(Math.ceil(e/n)*n,+t,n).map(ss)},floor:g,ceil:g};eu.year=ma.year,ma.scale=function(){return os(us.scale.linear(),eu,tu)};var ru=eu.map(function(e){return[e[0].utc,e[1]]}),iu=Yl.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",At]]);ru.year=ma.year.utc,ma.scale.utc=function(){return os(us.scale.linear(),ru,iu)},us.text=ke(function(e){return e.responseText}),us.json=function(e,t){return Me(e,"application/json",as,t)},us.html=function(e,t){return Me(e,"text/html",ls,t)},us.xml=ke(function(e){return e.responseXML}),"function"==typeof define&&define.amd?(this.d3=us,define(us)):"object"==typeof t&&t.exports?t.exports=us:this.d3=us}()},{}],123:[function(e,t,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function i(){var e=arguments,t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!t)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var i=0,o=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r),e}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(t){}}function a(){var e;try{e=n.storage.debug}catch(t){}return e}function l(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=o,n.formatArgs=i,n.save=s,n.load=a,n.useColors=r,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:l(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){return JSON.stringify(e)},n.enable(a())},{"./debug":124}],124:[function(e,t,n){function r(){return n.colors[c++%n.colors.length]}function i(e){function t(){}function i(){var e=i,t=+new Date,o=t-(u||t);e.diff=o,e.prev=u,e.curr=t,u=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=r());var s=Array.prototype.slice.call(arguments);s[0]=n.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var a=0;s[0]=s[0].replace(/%([a-z%])/g,function(t,r){if("%%"===t)return t;a++;var i=n.formatters[r];if("function"==typeof i){var o=s[a];t=i.call(e,o),s.splice(a,1),a--}return t}),"function"==typeof n.formatArgs&&(s=n.formatArgs.apply(e,s));var l=i.log||n.log||console.log.bind(console);l.apply(e,s)}t.enabled=!1,i.enabled=!0;var o=n.enabled(e)?i:t;return o.namespace=e,o}function o(e){n.save(e);for(var t=(e||"").split(/[\s,]+/),r=t.length,i=0;r>i;i++)t[i]&&(e=t[i].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function s(){n.enable("")}function a(e){var t,r;for(t=0,r=n.skips.length;r>t;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;r>t;t++)if(n.names[t].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=i,n.coerce=l,n.disable=s,n.enable=o,n.enabled=a,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var u,c=0},{ms:255}],125:[function(e,t,n){"use strict";function r(){var e=void 0===arguments[0]?document:arguments[0];try{return e.activeElement}catch(t){}}var i=e("./util/babelHelpers.js");n.__esModule=!0,n["default"]=r;var o=e("./ownerDocument");i.interopRequireDefault(o);t.exports=n["default"]},{"./ownerDocument":134,"./util/babelHelpers.js":147}],126:[function(e,t,n){"use strict";var r=e("./hasClass");t.exports=function(e,t){e.classList?e.classList.add(t):r(e)||(e.className=e.className+" "+t)}},{"./hasClass":127}],127:[function(e,t,n){"use strict";t.exports=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+e.className+" ").indexOf(" "+t+" ")}},{}],128:[function(e,t,n){"use strict";t.exports={addClass:e("./addClass"),removeClass:e("./removeClass"),hasClass:e("./hasClass")}},{"./addClass":126,"./hasClass":127,"./removeClass":129}],129:[function(e,t,n){"use strict";t.exports=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}},{}],130:[function(e,t,n){"use strict";var r=e("../query/contains"),i=e("../query/querySelectorAll");t.exports=function(e,t){return function(n){var o=n.currentTarget,s=n.target,a=i(o,e);a.some(function(e){return r(e,s)})&&t.call(this,n)}}},{"../query/contains":135,"../query/querySelectorAll":140}],131:[function(e,t,n){"use strict";var r=e("./on"),i=e("./off"),o=e("./filter");t.exports={on:r,off:i,filter:o}},{"./filter":130,"./off":132,"./on":133}],132:[function(e,t,n){"use strict";var r=e("../util/inDOM"),i=function(){};r&&(i=function(){return document.addEventListener?function(e,t,n,r){return e.removeEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0}()),t.exports=i},{"../util/inDOM":152}],133:[function(e,t,n){"use strict";var r=e("../util/inDOM"),i=function(){};r&&(i=function(){return document.addEventListener?function(e,t,n,r){return e.addEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,n)}:void 0}()),t.exports=i},{"../util/inDOM":152}],134:[function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],135:[function(e,t,n){"use strict";var r=e("../util/inDOM"),i=function(){var e=r&&document.documentElement;return e&&e.contains?function(e,t){return e.contains(t)}:e&&e.compareDocumentPosition?function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}:function(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}}();t.exports=i},{"../util/inDOM":152}],136:[function(e,t,n){"use strict";t.exports=function(e){return e===e.window?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}},{}],137:[function(e,t,n){"use strict";var r=e("./contains"),i=e("./isWindow"),o=e("../ownerDocument");t.exports=function(e){var t=o(e),n=i(t),s=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(t)return r(s,e)?(void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect()),(a.width||a.height)&&(a={top:a.top+(n.pageYOffset||s.scrollTop)-(s.clientTop||0),left:a.left+(n.pageXOffset||s.scrollLeft)-(s.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}),a):a}},{"../ownerDocument":134,"./contains":135,"./isWindow":136}],138:[function(e,t,n){"use strict";function r(e){return e.nodeName&&e.nodeName.toLowerCase()}function i(e){for(var t=(0,a["default"])(e),n=e&&e.offsetParent;n&&"html"!==r(e)&&"static"===(0,u["default"])(n,"position");)n=n.offsetParent;return n||t.documentElement}var o=e("../util/babelHelpers.js");n.__esModule=!0,n["default"]=i;var s=e("../ownerDocument"),a=o.interopRequireDefault(s),l=e("../style"),u=o.interopRequireDefault(l);t.exports=n["default"]},{"../ownerDocument":134,"../style":144,"../util/babelHelpers.js":147}],139:[function(e,t,n){"use strict";function r(e){return e.nodeName&&e.nodeName.toLowerCase()}function i(e,t){var n,i={top:0,left:0};return"fixed"===(0,m["default"])(e,"position")?n=e.getBoundingClientRect():(t=t||(0,u["default"])(e),n=(0,a["default"])(e),"html"!==r(t)&&(i=(0,a["default"])(t)),i.top+=parseInt((0,m["default"])(t,"borderTopWidth"),10)-(0,p["default"])(t)||0,i.left+=parseInt((0,m["default"])(t,"borderLeftWidth"),10)-(0,h["default"])(t)||0),o._extends({},n,{top:n.top-i.top-(parseInt((0,m["default"])(e,"marginTop"),10)||0),left:n.left-i.left-(parseInt((0,m["default"])(e,"marginLeft"),10)||0)})}var o=e("../util/babelHelpers.js");n.__esModule=!0,n["default"]=i;var s=e("./offset"),a=o.interopRequireDefault(s),l=e("./offsetParent"),u=o.interopRequireDefault(l),c=e("./scrollTop"),p=o.interopRequireDefault(c),f=e("./scrollLeft"),h=o.interopRequireDefault(f),d=e("../style"),m=o.interopRequireDefault(d);t.exports=n["default"]},{"../style":144,"../util/babelHelpers.js":147,"./offset":137,"./offsetParent":138,"./scrollLeft":141,"./scrollTop":142}],140:[function(e,t,n){"use strict";var r=/^[\w-]*$/,i=Function.prototype.bind.call(Function.prototype.call,[].slice);t.exports=function(e,t){var n,o="#"===t[0],s="."===t[0],a=o||s?t.slice(1):t,l=r.test(a);return l?o?(e=e.getElementById?e:document,(n=e.getElementById(a))?[n]:[]):i(e.getElementsByClassName&&s?e.getElementsByClassName(a):e.getElementsByTagName(t)):i(e.querySelectorAll(t))}},{}],141:[function(e,t,n){"use strict";var r=e("./isWindow");t.exports=function(e,t){var n=r(e);return void 0===t?n?"pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft:e.scrollLeft:void(n?n.scrollTo(t,"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop):e.scrollLeft=t)}},{"./isWindow":136}],142:[function(e,t,n){"use strict";var r=e("./isWindow");t.exports=function(e,t){var n=r(e);return void 0===t?n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop:void(n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t)}},{"./isWindow":136}],143:[function(e,t,n){"use strict";var r=e("../util/babelHelpers.js"),i=e("../util/camelizeStyle"),o=r.interopRequireDefault(i),s=/^(top|right|bottom|left)$/,a=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;t.exports=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;t=(0,o["default"])(t),"float"==t&&(t="styleFloat");var r=e.currentStyle[t]||null;if(null==r&&n&&n[t]&&(r=n[t]),a.test(r)&&!s.test(t)){var i=n.left,l=e.runtimeStyle,u=l&&l.left;u&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":r,r=n.pixelLeft+"px",n.left=i,u&&(l.left=u)}return r}}}},{"../util/babelHelpers.js":147,"../util/camelizeStyle":149}],144:[function(e,t,n){"use strict";var r=e("../util/camelizeStyle"),i=e("../util/hyphenateStyle"),o=e("./getComputedStyle"),s=e("./removeStyle"),a=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){var l="",u=t;if("string"==typeof t){if(void 0===n)return e.style[r(t)]||o(e).getPropertyValue(i(t));(u={})[t]=n}for(var c in u)a.call(u,c)&&(u[c]||0===u[c]?l+=i(c)+":"+u[c]+";":s(e,i(c)));e.style.cssText+=";"+l}},{"../util/camelizeStyle":149,"../util/hyphenateStyle":151,"./getComputedStyle":143,"./removeStyle":145}],145:[function(e,t,n){"use strict";t.exports=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)}},{}],146:[function(e,t,n){"use strict";function r(){var e,t="",n={O:"otransitionend",Moz:"transitionend",Webkit:"webkitTransitionEnd",ms:"MSTransitionEnd"},r=document.createElement("div");for(var i in n)if(u.call(n,i)&&void 0!==r.style[i+"TransitionProperty"]){t="-"+i.toLowerCase()+"-",e=n[i];break}return e||void 0===r.style.transitionProperty||(e="transitionend"),{end:e,prefix:t}}var i,o,s,a,l=e("../util/inDOM"),u=Object.prototype.hasOwnProperty,c="transform",p={};l&&(p=r(),c=p.prefix+c,s=p.prefix+"transition-property",o=p.prefix+"transition-duration",a=p.prefix+"transition-delay",i=p.prefix+"transition-timing-function"),t.exports={transform:c,end:p.end,property:s,timing:i,delay:a,duration:o}},{"../util/inDOM":152}],147:[function(e,t,n){!function(e,t){"function"==typeof define&&define.amd?define(["exports"],t):t("object"==typeof n?n:e.babelHelpers={})}(this,function(e){var t=e;t.interopRequireDefault=function(e){return e&&e.__esModule?e:{"default":e}},t._extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}})},{}],148:[function(e,t,n){"use strict";var r=/-(.)/g;t.exports=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})}},{}],149:[function(e,t,n){"use strict";var r=e("./camelize"),i=/^-ms-/;t.exports=function(e){return r(e.replace(i,"ms-"))}},{"./camelize":148}],150:[function(e,t,n){"use strict";
|
||
var r=/([A-Z])/g;t.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},{}],151:[function(e,t,n){"use strict";var r=e("./hyphenate"),i=/^ms-/;t.exports=function(e){return r(e).replace(i,"-ms-")}},{"./hyphenate":150}],152:[function(e,t,n){"use strict";t.exports=!("undefined"==typeof window||!window.document||!window.document.createElement)},{}],153:[function(e,t,n){"use strict";var r,i=e("./inDOM");t.exports=function(e){if((!r||e)&&i){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r}},{"./inDOM":152}],154:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,o,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),l=1;r>l;l++)o[l-1]=arguments[l];n.apply(this,o)}else if(s(n)){for(r=arguments.length,o=new Array(r-1),l=1;r>l;l++)o[l-1]=arguments[l];for(u=n.slice(),r=u.length,l=0;r>l;l++)u[l].apply(this,o)}return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,s(this._events[e])&&!this._events[e].warned){var n;n=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,o,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(0>r)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.listenerCount=function(e,t){var n;return n=e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],155:[function(e,t,n){var r={EventEmitter:e("./lib/BaseEventEmitter")};t.exports=r},{"./lib/BaseEventEmitter":156}],156:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("./EmitterSubscription"),o=e("./EventSubscriptionVendor"),s=e("fbjs/lib/emptyFunction"),a=e("fbjs/lib/invariant"),l=function(){function e(){r(this,e),this._subscriber=new o,this._currentSubscription=null}return e.prototype.addListener=function(e,t,n){return this._subscriber.addSubscription(e,new i(this._subscriber,t,n))},e.prototype.once=function(e,t,n){var r=this;return this.addListener(e,function(){r.removeCurrentListener(),t.apply(n,arguments)})},e.prototype.removeAllListeners=function(e){this._subscriber.removeAllSubscriptions(e)},e.prototype.removeCurrentListener=function(){this._currentSubscription?void 0:"production"!==n.env.NODE_ENV?a(!1,"Not in an emitting cycle; there is no current subscription"):a(!1),this._subscriber.removeSubscription(this._currentSubscription)},e.prototype.listeners=function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(s.thatReturnsTrue).map(function(e){return e.listener}):[]},e.prototype.emit=function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o&&(this._currentSubscription=o,this.__emitToSubscription.apply(this,[o].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},e.prototype.__emitToSubscription=function(e,t){var n=Array.prototype.slice.call(arguments,2);e.listener.apply(e.context,n)},e}();t.exports=l}).call(this,e("_process"))},{"./EmitterSubscription":157,"./EventSubscriptionVendor":159,_process:269,"fbjs/lib/emptyFunction":160,"fbjs/lib/invariant":161}],157:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=e("./EventSubscription"),s=function(e){function t(n,i,o){r(this,t),e.call(this,n),this.listener=i,this.context=o}return i(t,e),t}(o);t.exports=s},{"./EventSubscription":158}],158:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t){r(this,e),this.subscriber=t}return e.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},e}();t.exports=i},{}],159:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("fbjs/lib/invariant"),o=function(){function e(){r(this,e),this._subscriptionsForType={},this._currentSubscription=null}return e.prototype.addSubscription=function(e,t){t.subscriber!==this?"production"!==n.env.NODE_ENV?i(!1,"The subscriber of the subscription is incorrectly set."):i(!1):void 0,this._subscriptionsForType[e]||(this._subscriptionsForType[e]=[]);var r=this._subscriptionsForType[e].length;return this._subscriptionsForType[e].push(t),t.eventType=e,t.key=r,t},e.prototype.removeAllSubscriptions=function(e){void 0===e?this._subscriptionsForType={}:delete this._subscriptionsForType[e]},e.prototype.removeSubscription=function(e){var t=e.eventType,n=e.key,r=this._subscriptionsForType[t];r&&delete r[n]},e.prototype.getSubscriptionsForType=function(e){return this._subscriptionsForType[e]},e}();t.exports=o}).call(this,e("_process"))},{_process:269,"fbjs/lib/invariant":161}],160:[function(e,t,n){"use strict";function r(e){return function(){return e}}function i(){}i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},t.exports=i},{}],161:[function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,s,a],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}t.exports=r},{}],162:[function(e,t,n){(function(e){"use strict";var n=function(t,n,r,i,o,s,a,l){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,o,s,a,l],p=0;u=new Error("Invariant Violation: "+n.replace(/%s/g,function(){return c[p++]}))}throw u.framesToPop=1,u}};t.exports=n}).call(this,e("_process"))},{_process:269}],163:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=i.bind(t),s=0;s<n.length;s++)if(!o(n[s])||e[n[s]]!==t[n[s]])return!1;return!0}var i=Object.prototype.hasOwnProperty;t.exports=r},{}],164:[function(e,t,n){var r=r||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,o=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},s=e.webkitRequestFileSystem,a=e.requestFileSystem||s||e.mozRequestFileSystem,l=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},u="application/octet-stream",c=0,p=500,f=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,p)},h=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var i=e["on"+t[r]];if("function"==typeof i)try{i.call(e,n||e)}catch(o){l(o)}}},d=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e},m=function(t,l,p){p||(t=d(t));var m,b,y,v=this,g=t.type,_=!1,T=function(){h(v,"writestart progress write writeend".split(" "))},E=function(){if(!_&&m||(m=n().createObjectURL(t)),b)b.location.href=m;else{var r=e.open(m,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=m)}v.readyState=v.DONE,T(),f(m)},C=function(e){return function(){return v.readyState!==v.DONE?e.apply(this,arguments):void 0}},w={create:!0,exclusive:!1};return v.readyState=v.INIT,l||(l="download"),i?(m=n().createObjectURL(t),r.href=m,r.download=l,void setTimeout(function(){o(r),T(),f(m),v.readyState=v.DONE})):(e.chrome&&g&&g!==u&&(y=t.slice||t.webkitSlice,t=y.call(t,0,t.size,u),_=!0),s&&"download"!==l&&(l+=".download"),(g===u||s)&&(b=e),a?(c+=t.size,void a(e.TEMPORARY,c,C(function(e){e.root.getDirectory("saved",w,C(function(e){var n=function(){e.getFile(l,w,C(function(e){e.createWriter(C(function(n){n.onwriteend=function(t){b.location.href=e.toURL(),v.readyState=v.DONE,h(v,"writeend",t),f(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&E()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=v["on"+e]}),n.write(t),v.abort=function(){n.abort(),v.readyState=v.DONE},v.readyState=v.WRITING}),E)}),E)};e.getFile(l,{create:!1},C(function(e){e.remove(),n()}),C(function(e){e.code===e.NOT_FOUND_ERR?n():E()}))}),E)}),E)):void E())},b=m.prototype,y=function(e,t,n){return new m(e,t,n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return n||(e=d(e)),navigator.msSaveOrOpenBlob(e,t||"download")}:(b.abort=function(){var e=this;e.readyState=e.DONE,h(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,y)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof t&&t.exports?t.exports.saveAs=r:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return r})},{}],165:[function(e,t,n){t.exports.Dispatcher=e("./lib/Dispatcher")},{"./lib/Dispatcher":166}],166:[function(e,t,n){(function(r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=e("fbjs/lib/invariant"),s="ID_",a=function(){function e(){i(this,e),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}return e.prototype.register=function(e){var t=s+this._lastID++;return this._callbacks[t]=e,t},e.prototype.unregister=function(e){this._callbacks[e]?void 0:"production"!==r.env.NODE_ENV?o(!1,"Dispatcher.unregister(...): `%s` does not map to a registered callback.",e):o(!1),delete this._callbacks[e]},e.prototype.waitFor=function(e){this._isDispatching?void 0:"production"!==r.env.NODE_ENV?o(!1,"Dispatcher.waitFor(...): Must be invoked while dispatching."):o(!1);for(var t=0;t<e.length;t++){var n=e[t];this._isPending[n]?this._isHandled[n]?void 0:"production"!==r.env.NODE_ENV?o(!1,"Dispatcher.waitFor(...): Circular dependency detected while waiting for `%s`.",n):o(!1):(this._callbacks[n]?void 0:"production"!==r.env.NODE_ENV?o(!1,"Dispatcher.waitFor(...): `%s` does not map to a registered callback.",n):o(!1),this._invokeCallback(n))}},e.prototype.dispatch=function(e){this._isDispatching?"production"!==r.env.NODE_ENV?o(!1,"Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch."):o(!1):void 0,this._startDispatching(e);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},e.prototype.isDispatching=function(){return this._isDispatching},e.prototype._invokeCallback=function(e){this._isPending[e]=!0,this._callbacks[e](this._pendingPayload),this._isHandled[e]=!0},e.prototype._startDispatching=function(e){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=e,this._isDispatching=!0},e.prototype._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},e}();t.exports=a}).call(this,e("_process"))},{_process:269,"fbjs/lib/invariant":162}],167:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){a(e);var n=l({},f,t||{}),o=function(t){function o(i){r(this,o),t.call(this,i),this.state=n.withProps?e.calculateState(null,i):e.calculateState(null,void 0)}return i(o,t),o.prototype.componentDidMount=function(){var r=this;t.prototype.componentDidMount&&t.prototype.componentDidMount.call(this);var i=e.getStores(),o=!1,s=function(){o=!0};this._fluxContainerSubscriptions=i.map(function(e){return e.addListener(s)});var a=function(){o&&r.setState(function(t){return n.withProps?e.calculateState(t,r.props):e.calculateState(t,void 0)}),o=!1};this._fluxContainerStoreGroup=new u(i,a)},o.prototype.componentWillReceiveProps=function(r,i){t.prototype.componentWillReceiveProps&&t.prototype.componentWillReceiveProps.call(this,r,i),n.withProps&&(n.pure&&p(this.props,r)||this.setState(function(t){return e.calculateState(t,r)}))},o.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this),this._fluxContainerStoreGroup.release();for(var e=this._fluxContainerSubscriptions,n=Array.isArray(e),r=0,e=n?e:e[Symbol.iterator]();;){var i;if(n){if(r>=e.length)break;i=e[r++]}else{if(r=e.next(),r.done)break;i=r.value}var o=i;o.remove()}this._fluxContainerSubscriptions=[]},o}(e),c=n.pure?s(o):o,h=e.displayName||e.name;return c.displayName="FluxContainer("+h+")",c}function s(e){var t=function(e){function t(){r(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!p(this.props,e)||!p(this.state,t)},t}(e);return t}function a(e){e.getStores?void 0:"production"!==n.env.NODE_ENV?c(!1,"Components that use FluxContainer must implement `static getStores()`"):c(!1),e.calculateState?void 0:"production"!==n.env.NODE_ENV?c(!1,"Components that use FluxContainer must implement `static calculateState()`"):c(!1)}var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=e("./FluxStoreGroup"),c=e("fbjs/lib/invariant"),p=e("fbjs/lib/shallowEqual"),f={pure:!0,withProps:!1};t.exports={create:o}}).call(this,e("_process"))},{"./FluxStoreGroup":172,_process:269,"fbjs/lib/invariant":162,"fbjs/lib/shallowEqual":163}],168:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=e("./FluxReduceStore"),s=e("immutable"),a=e("fbjs/lib/invariant"),l=function(e){function t(){r(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.getInitialState=function(){return s.Map()},t.prototype.at=function(e){return this.has(e)?void 0:"production"!==n.env.NODE_ENV?a(!1,"Expected store to have key %s",e):a(!1),this.get(e)},t.prototype.has=function(e){return this.getState().has(e)},t.prototype.get=function(e){return this.getState().get(e)},t.prototype.getAll=function(e,t){var n=this,r=s.Set(e),i=t||s.Map();return i.withMutations(function(e){for(var t=i,o=Array.isArray(t),s=0,t=o?t:t[Symbol.iterator]();;){var a;if(o){if(s>=t.length)break;a=t[s++]}else{if(s=t.next(),s.done)break;a=s.value}var l=a,u=l[0];r.has(u)&&n.has(u)||e["delete"](u)}for(var c=r,p=Array.isArray(c),f=0,c=p?c:c[Symbol.iterator]();;){var h;if(p){if(f>=c.length)break;h=c[f++]}else{if(f=c.next(),f.done)break;h=f.value}var d=h;n.has(d)&&e.set(d,n.at(d))}})},t}(o);t.exports=l}).call(this,e("_process"))},{"./FluxReduceStore":170,_process:269,"fbjs/lib/invariant":162,immutable:178}],169:[function(e,t,n){(function(n){"use strict";function r(e){return{getInitialState:function(){return i(this),this.constructor.calculateState(null)},componentDidMount:function(){var t=this,n=!1,r=function(){n=!0};this._fluxMixinSubscriptions=e.map(function(e){return e.addListener(r)});var i=function(){n&&t.setState(function(e){return t.constructor.calculateState(t.state)}),n=!1};this._fluxMixinStoreGroup=new o(e,i)},componentWillUnmount:function(){this._fluxMixinStoreGroup.release();for(var e=this._fluxMixinSubscriptions,t=Array.isArray(e),n=0,e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var i=r;i.remove()}this._fluxMixinSubscriptions=[]}}}function i(e){e.constructor.calculateState?void 0:"production"!==n.env.NODE_ENV?s(!1,"Components that use FluxMixinLegacy must implement `calculateState()` on the statics object"):s(!1)}var o=e("./FluxStoreGroup"),s=e("fbjs/lib/invariant");t.exports=r}).call(this,e("_process"))},{"./FluxStoreGroup":172,_process:269,"fbjs/lib/invariant":162}],170:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=e("./FluxStore"),s=e("./abstractMethod"),a=e("fbjs/lib/invariant"),l=function(e){function t(n){r(this,t),e.call(this,n),this._state=this.getInitialState()}return i(t,e),t.prototype.getState=function(){return this._state},t.prototype.getInitialState=function(){return s("FluxReduceStore","getInitialState")},t.prototype.reduce=function(e,t){return s("FluxReduceStore","reduce")},t.prototype.areEqual=function(e,t){return e===t},t.prototype.__invokeOnDispatch=function(e){this.__changed=!1;var t=this._state,r=this.reduce(t,e);void 0===r?"production"!==n.env.NODE_ENV?a(!1,"%s returned undefined from reduce(...), did you forget to return state in the default case? (use null if this was intentional)",this.constructor.name):a(!1):void 0,this.areEqual(t,r)||(this._state=r,this.__emitChange()),this.__changed&&this.__emitter.emit(this.__changeEvent)},t}(o);t.exports=l}).call(this,e("_process"))},{"./FluxStore":171,"./abstractMethod":173,_process:269,"fbjs/lib/invariant":162}],171:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("fbemitter"),o=i.EventEmitter,s=e("fbjs/lib/invariant"),a=function(){function e(t){var n=this;r(this,e),this.__className=this.constructor.name,this.__changed=!1,this.__changeEvent="change",this.__dispatcher=t,this.__emitter=new o,this._dispatchToken=t.register(function(e){n.__invokeOnDispatch(e)})}return e.prototype.addListener=function(e){return this.__emitter.addListener(this.__changeEvent,e)},e.prototype.getDispatcher=function(){return this.__dispatcher},e.prototype.getDispatchToken=function(){return this._dispatchToken},e.prototype.hasChanged=function(){return this.__dispatcher.isDispatching()?void 0:"production"!==n.env.NODE_ENV?s(!1,"%s.hasChanged(): Must be invoked while dispatching.",this.__className):s(!1),this.__changed},e.prototype.__emitChange=function(){this.__dispatcher.isDispatching()?void 0:"production"!==n.env.NODE_ENV?s(!1,"%s.__emitChange(): Must be invoked while dispatching.",this.__className):s(!1),this.__changed=!0},e.prototype.__invokeOnDispatch=function(e){this.__changed=!1,this.__onDispatch(e),this.__changed&&this.__emitter.emit(this.__changeEvent)},e.prototype.__onDispatch=function(e){"production"!==n.env.NODE_ENV?s(!1,"%s has not overridden FluxStore.__onDispatch(), which is required",this.__className):s(!1)},e}();t.exports=a}).call(this,e("_process"))},{_process:269,fbemitter:155,"fbjs/lib/invariant":162}],172:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){e&&e.length?void 0:"production"!==n.env.NODE_ENV?o(!1,"Must provide at least one store to FluxStoreGroup"):o(!1);var t=e[0].getDispatcher();if("production"!==n.env.NODE_ENV)for(var r=e,i=Array.isArray(r),s=0,r=i?r:r[Symbol.iterator]();;){var a;if(i){if(s>=r.length)break;a=r[s++]}else{if(s=r.next(),s.done)break;a=s.value}var l=a;l.getDispatcher()!==t?"production"!==n.env.NODE_ENV?o(!1,"All stores in a FluxStoreGroup must use the same dispatcher"):o(!1):void 0}return t}var o=e("fbjs/lib/invariant"),s=function(){function e(t,n){var o=this;r(this,e),this._dispatcher=i(t);var s=t.map(function(e){return e.getDispatchToken()});this._dispatchToken=this._dispatcher.register(function(e){o._dispatcher.waitFor(s),n()})}return e.prototype.release=function(){this._dispatcher.unregister(this._dispatchToken)},e}();t.exports=s}).call(this,e("_process"))},{_process:269,"fbjs/lib/invariant":162}],173:[function(e,t,n){(function(n){"use strict";function r(e,t){"production"!==n.env.NODE_ENV?i(!1,"Subclasses of %s must override %s() with their own implementation.",e,t):i(!1)}var i=e("fbjs/lib/invariant");t.exports=r}).call(this,e("_process"))},{_process:269,"fbjs/lib/invariant":162}],174:[function(e,t,n){t.exports.Container=e("./lib/FluxContainer"),t.exports.MapStore=e("./lib/FluxMapStore"),t.exports.Mixin=e("./lib/FluxMixinLegacy"),t.exports.ReduceStore=e("./lib/FluxReduceStore"),t.exports.Store=e("./lib/FluxStore")},{"./lib/FluxContainer":167,"./lib/FluxMapStore":168,"./lib/FluxMixinLegacy":169,"./lib/FluxReduceStore":170,"./lib/FluxStore":171}],175:[function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};t.exports=function(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;++o)if(!r[n[o]]&&!i[n[o]])try{e[n[o]]=t[n[o]]}catch(s){}return e}},{}],176:[function(e,t,n){(function(){var e=this,r=e.humanize,i={};"undefined"!=typeof n?("undefined"!=typeof t&&t.exports&&(n=t.exports=i),n.humanize=i):("function"==typeof define&&define.amd&&define("humanize",function(){return i}),e.humanize=i),i.noConflict=function(){return e.humanize=r,this},i.pad=function(e,t,n,r){if(e+="",n?n.length>1&&(n=n.charAt(0)):n=" ",r=void 0===r?"left":"right","right"===r)for(;e.length<t;)e+=n;else for(;e.length<t;)e=n+e;return e},i.time=function(){return(new Date).getTime()/1e3};var o=[0,0,31,59,90,120,151,181,212,243,273,304,334],s=[0,0,31,60,91,121,152,182,213,244,274,305,335];i.date=function(e,t){var n=void 0===t?new Date:t instanceof Date?new Date(t):new Date(1e3*t),r=/\\?([a-z])/gi,a=function(e,t){return c[e]?c[e]():t},l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"],c={d:function(){return i.pad(c.j(),2,"0")},D:function(){return c.l().slice(0,3)},j:function(){return n.getDate()},l:function(){return l[c.w()]},N:function(){return c.w()||7},S:function(){var e=c.j();return e>4&&21>e?"th":{1:"st",2:"nd",3:"rd"}[e%10]||"th"},w:function(){return n.getDay()},z:function(){return(c.L()?s[c.n()]:o[c.n()])+c.j()-1},W:function(){var e=c.z()-c.N()+1.5;return i.pad(1+Math.floor(Math.abs(e)/7)+(e%7>3.5?1:0),2,"0")},F:function(){return u[n.getMonth()]},m:function(){return i.pad(c.n(),2,"0")},M:function(){return c.F().slice(0,3)},n:function(){return n.getMonth()+1},t:function(){return new Date(c.Y(),c.n(),0).getDate()},L:function(){return 1===new Date(c.Y(),1,29).getMonth()?1:0},o:function(){var e=c.n(),t=c.W();return c.Y()+(12===e&&9>t?-1:1===e&&t>9)},Y:function(){return n.getFullYear()},y:function(){return String(c.Y()).slice(-2)},a:function(){return n.getHours()>11?"pm":"am"},A:function(){return c.a().toUpperCase()},B:function(){var e=n.getTime()/1e3,t=e%86400+3600;0>t&&(t+=86400);var r=t/86.4%1e3;return 0>e?Math.ceil(r):Math.floor(r)},g:function(){return c.G()%12||12},G:function(){return n.getHours()},h:function(){return i.pad(c.g(),2,"0")},H:function(){return i.pad(c.G(),2,"0")},i:function(){return i.pad(n.getMinutes(),2,"0")},s:function(){return i.pad(n.getSeconds(),2,"0")},u:function(){return i.pad(1e3*n.getMilliseconds(),6,"0")},O:function(){var e=n.getTimezoneOffset(),t=Math.abs(e);return(e>0?"-":"+")+i.pad(100*Math.floor(t/60)+t%60,4,"0")},P:function(){var e=c.O();return e.substr(0,3)+":"+e.substr(3,2)},Z:function(){return 60*-n.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(r,a)},r:function(){return"D, d M Y H:i:s O".replace(r,a)},U:function(){return n.getTime()/1e3||0}};return e.replace(r,a)},i.numberFormat=function(e,t,n,r){t=isNaN(t)?2:Math.abs(t),n=void 0===n?".":n,r=void 0===r?",":r;var i=0>e?"-":"";e=Math.abs(+e||0);var o=parseInt(e.toFixed(t),10)+"",s=o.length>3?o.length%3:0;return i+(s?o.substr(0,s)+r:"")+o.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-o).toFixed(t).slice(2):"")},i.naturalDay=function(e,t){e=void 0===e?i.time():e,t=void 0===t?"Y-m-d":t;var n=86400,r=new Date,o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime()/1e3;return o>e&&e>=o-n?"yesterday":e>=o&&o+n>e?"today":e>=o+n&&o+2*n>e?"tomorrow":i.date(t,e)},i.relativeTime=function(e){e=void 0===e?i.time():e;var t=i.time(),n=t-e;if(2>n&&n>-2)return(n>=0?"just ":"")+"now";if(60>n&&n>-60)return n>=0?Math.floor(n)+" seconds ago":"in "+Math.floor(-n)+" seconds";if(120>n&&n>-120)return n>=0?"about a minute ago":"in about a minute";if(3600>n&&n>-3600)return n>=0?Math.floor(n/60)+" minutes ago":"in "+Math.floor(-n/60)+" minutes";if(7200>n&&n>-7200)return n>=0?"about an hour ago":"in about an hour";if(86400>n&&n>-86400)return n>=0?Math.floor(n/3600)+" hours ago":"in "+Math.floor(-n/3600)+" hours";var r=172800;if(r>n&&n>-r)return n>=0?"1 day ago":"in 1 day";var o=2505600;if(o>n&&n>-o)return n>=0?Math.floor(n/86400)+" days ago":"in "+Math.floor(-n/86400)+" days";var s=5184e3;if(s>n&&n>-s)return n>=0?"about a month ago":"in about a month";var a=parseInt(i.date("Y",t),10),l=parseInt(i.date("Y",e),10),u=12*a+parseInt(i.date("n",t),10),c=12*l+parseInt(i.date("n",e),10),p=u-c;if(12>p&&p>-12)return p>=0?p+" months ago":"in "+-p+" months";var f=a-l;return 2>f&&f>-2?f>=0?"a year ago":"in a year":f>=0?f+" years ago":"in "+-f+" years"},i.ordinal=function(e){e=parseInt(e,10),e=isNaN(e)?0:e;var t=0>e?"-":"";e=Math.abs(e);var n=e%100;return t+e+(n>4&&21>n?"th":{1:"st",2:"nd",3:"rd"}[e%10]||"th")},i.filesize=function(e,t,n,r,o,s){return t=void 0===t?1024:t,0>=e?"0 bytes":(t>e&&void 0===n&&(n=0),void 0===s&&(s=" "),i.intword(e,["bytes","KB","MB","GB","TB","PB"],t,n,r,o,s))},i.intword=function(e,t,n,r,o,s,a){var l,u;t=t||["","K","M","B","T"],u=t.length-1,n=n||1e3,r=isNaN(r)?2:Math.abs(r),o=o||".",s=s||",",a=a||"";for(var c=0;c<t.length;c++)if(e<Math.pow(n,c+1)){u=c;break}l=e/Math.pow(n,u);var p=t[u]?a+t[u]:"";return i.numberFormat(l,r,o,s)+p},i.linebreaks=function(e){return e=e.replace(/^([\n|\r]*)/,""),e=e.replace(/([\n|\r]*)$/,""),e=e.replace(/(\r\n|\n|\r)/g,"\n"),e=e.replace(/(\n{2,})/g,"</p><p>"),e=e.replace(/\n/g,"<br />"),"<p>"+e+"</p>"},i.nl2br=function(e){return e.replace(/(\r\n|\n|\r)/g,"<br />")},i.truncatechars=function(e,t){return e.length<=t?e:e.substr(0,t)+"…"},i.truncatewords=function(e,t){var n=e.split(" ");return n.length<t?e:n.slice(0,t).join(" ")+"…"}}).call(this)},{}],177:[function(e,t,n){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,u=l>>1,c=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+p],p+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+p],p+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:(h?-1:1)*(1/0);s+=Math.pow(2,r),o-=u}return(h?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,p=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),t+=s+p>=1?f/l:f*Math.pow(2,1-p),t*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*l-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+h]=255&s,h+=d,s/=256,u-=8);e[n+h-d]|=128*m}},{}],178:[function(e,t,n){!function(e,r){"object"==typeof n&&"undefined"!=typeof t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.Immutable=r()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:M(e)}function n(e){return s(e)?e:A(e)}function r(e){return a(e)?e:O(e)}function i(e){return o(e)&&!l(e)?e:N(e)}function o(e){return!(!e||!e[un])}function s(e){return!(!e||!e[cn])}function a(e){return!(!e||!e[pn])}function l(e){return s(e)||a(e)}function u(e){return!(!e||!e[fn])}function c(e){return e.value=!1,e}function p(e){e&&(e.value=!0)}function f(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;n>i;i++)r[i]=e[i+t];
|
||
return r}function d(e){return void 0===e.size&&(e.size=e.__iterate(b)),e.size}function m(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return 0>t?d(e)+t:t}function b(){return!0}function y(e,t,n){return(0===e||void 0!==n&&-n>=e)&&(void 0===t||void 0!==n&&t>=n)}function v(e,t){return _(e,t,0)}function g(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:0>e?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function T(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function C(){return{value:void 0,done:!0}}function w(e){return!!x(e)}function S(e){return e&&"function"==typeof e.next}function P(e){var t=x(e);return t&&t.call(e)}function x(e){var t=e&&(Cn&&e[Cn]||e[wn]);return"function"==typeof t?t:void 0}function k(e){return e&&"number"==typeof e.length}function M(e){return null===e||void 0===e?U():o(e)?e.toSeq():H(e)}function A(e){return null===e||void 0===e?U().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():F(e)}function O(e){return null===e||void 0===e?U():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():B(e)}function N(e){return(null===e||void 0===e?U():o(e)?s(e)?e.entrySeq():e:B(e)).toSetSeq()}function I(e){this._array=e,this.size=e.length}function D(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function R(e){this._iterable=e,this.size=e.length||e.size}function L(e){this._iterator=e,this._iteratorCache=[]}function j(e){return!(!e||!e[Pn])}function U(){return xn||(xn=new I([]))}function F(e){var t=Array.isArray(e)?new I(e).fromEntrySeq():S(e)?new L(e).fromEntrySeq():w(e)?new R(e).fromEntrySeq():"object"==typeof e?new D(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function H(e){var t=K(e)||"object"==typeof e&&new D(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function K(e){return k(e)?new I(e):S(e)?new L(e):w(e)?new R(e):void 0}function G(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,s=0;o>=s;s++){var a=i[n?o-s:s];if(t(a[1],r?a[0]:s,e)===!1)return s+1}return s}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,s=0;return new T(function(){var e=i[n?o-s:s];return s++>o?C():E(t,r?e[0]:s-1,e[1])})}return e.__iteratorUncached(t,n)}function V(e,t){return t?z(t,e,"",{"":e}):X(e)}function z(e,t,n,r){return Array.isArray(t)?e.call(r,n,O(t).map(function(n,r){return z(e,n,r,t)})):W(t)?e.call(r,n,A(t).map(function(n,r){return z(e,n,r,t)})):t}function X(e){return Array.isArray(e)?O(e).map(X).toList():W(e)?A(e).map(X).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function $(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||a(e)!==a(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&$(i[1],e)&&(n||$(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var p=!0,f=t.__iterate(function(t,r){return(n?e.has(t):i?$(t,e.get(r,yn)):$(e.get(r,yn),t))?void 0:(p=!1,!1)});return p&&e.size===f}function Y(e,t){if(!(this instanceof Y))return new Y(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(kn)return kn;kn=this}}function Z(e,t){if(!e)throw new Error(t)}function J(e,t,n){if(!(this instanceof J))return new J(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),e>t&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Mn)return Mn;Mn=this}}function ee(){throw TypeError("Abstract")}function te(){}function ne(){}function re(){}function ie(e){return e>>>1&1073741824|3221225471&e}function oe(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return ie(n)}if("string"===t)return e.length>jn?se(e):ae(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return le(e);if("function"==typeof e.toString)return ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function se(e){var t=Bn[e];return void 0===t&&(t=ae(e),Fn===Un&&(Fn=0,Bn={}),Fn++,Bn[e]=t),t}function ae(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ie(t)}function le(e){var t;if(Dn&&(t=An.get(e),void 0!==t))return t;if(t=e[Ln],void 0!==t)return t;if(!In){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ln],void 0!==t)return t;if(t=ue(e),void 0!==t)return t}if(t=++Rn,1073741824&Rn&&(Rn=0),Dn)An.set(e,t);else{if(void 0!==Nn&&Nn(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(In)Object.defineProperty(e,Ln,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ln]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ln]=t}}return t}function ue(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Z(e!==1/0,"Cannot perform this action with an infinite size.")}function pe(e){return null===e||void 0===e?Ee():fe(e)&&!u(e)?e:Ee().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function fe(e){return!(!e||!e[Hn])}function he(e,t){this.ownerID=e,this.entries=t}function de(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function be(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ve(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&_e(e._root)}function ge(e,t){return E(e,t[0],t[1])}function _e(e,t){return{node:e,index:0,__prev:t}}function Te(e,t,n,r){var i=Object.create(Kn);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ee(){return Gn||(Gn=Te(0))}function Ce(e,t,n){var r,i;if(e._root){var o=c(vn),s=c(gn);if(r=we(e._root,e.__ownerID,0,void 0,t,n,o,s),!s.value)return e;i=e.size+(o.value?n===yn?-1:1:0)}else{if(n===yn)return e;i=1,r=new he(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Te(i,r):Ee()}function we(e,t,n,r,i,o,s,a){return e?e.update(t,n,r,i,o,s,a):o===yn?e:(p(a),p(s),new ye(t,r,[i,o]))}function Se(e){return e.constructor===ye||e.constructor===be}function Pe(e,t,n,r,i){if(e.keyHash===r)return new be(t,r,[e.entry,i]);var o,s=(0===n?e.keyHash:e.keyHash>>>n)&bn,a=(0===n?r:r>>>n)&bn,l=s===a?[Pe(e,t,n+dn,r,i)]:(o=new ye(t,r,i),a>s?[e,o]:[o,e]);return new de(t,1<<s|1<<a,l)}function xe(e,t,n,r){e||(e=new f);for(var i=new ye(e,oe(n),[n,r]),o=0;o<t.length;o++){var s=t[o];i=i.update(e,0,void 0,s[0],s[1])}return i}function ke(e,t,n,r){for(var i=0,o=0,s=new Array(n),a=0,l=1,u=t.length;u>a;a++,l<<=1){var c=t[a];void 0!==c&&a!==r&&(i|=l,s[o++]=c)}return new de(e,i,s)}function Me(e,t,n,r,i){for(var o=0,s=new Array(mn),a=0;0!==n;a++,n>>>=1)s[a]=1&n?t[o++]:void 0;return s[r]=i,new me(e,o+1,s)}function Ae(e,t,r){for(var i=[],s=0;s<r.length;s++){var a=r[s],l=n(a);o(a)||(l=l.map(function(e){return V(e)})),i.push(l)}return Ie(e,t,i)}function Oe(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):$(e,t)?e:t}function Ne(e){return function(t,n,r){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return $(t,i)?t:i}}function Ie(e,t,n){return n=n.filter(function(e){return 0!==e.size}),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,yn,function(e){return e===yn?n:t(e,n,r)})}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)}):e.constructor(n[0])}function De(e,t,n,r){var i=e===yn,o=t.next();if(o.done){var s=i?n:e,a=r(s);return a===s?e:a}Z(i||e&&e.set,"invalid keyPath");var l=o.value,u=i?yn:e.get(l,yn),c=De(u,t,n,r);return c===u?e:c===yn?e.remove(l):(i?Ee():e).set(l,c)}function Re(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function Le(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function je(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),s=0,a=0;i>a;a++)a===t?(o[a]=n,s=-1):o[a]=e[a+s];return o}function Ue(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,s=0;r>s;s++)s===t&&(o=1),i[s]=e[s+o];return i}function Fe(e){var t=qe();if(null===e||void 0===e)return t;if(Be(e))return e;var n=r(e),i=n.size;return 0===i?t:(ce(i),i>0&&mn>i?Ge(0,i,dn,null,new He(n.toArray())):t.withMutations(function(e){e.setSize(i),n.forEach(function(t,n){return e.set(n,t)})}))}function Be(e){return!(!e||!e[Xn])}function He(e,t){this.array=e,this.ownerID=t}function Ke(e,t){function n(e,t,n){return 0===t?r(e,n):i(e,t,n)}function r(e,n){var r=n===a?l&&l.array:e&&e.array,i=n>o?0:o-n,u=s-n;return u>mn&&(u=mn),function(){if(i===u)return Qn;var e=t?--u:i++;return r&&r[e]}}function i(e,r,i){var a,l=e&&e.array,u=i>o?0:o-i>>r,c=(s-i>>r)+1;return c>mn&&(c=mn),function(){for(;;){if(a){var e=a();if(e!==Qn)return e;a=null}if(u===c)return Qn;var o=t?--c:u++;a=n(l&&l[o],r-dn,i+(o<<r))}}}var o=e._origin,s=e._capacity,a=Ye(s),l=e._tail;return n(e._root,e._level,0)}function Ge(e,t,n,r,i,o,s){var a=Object.create(Wn);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=i,a.__ownerID=o,a.__hash=s,a.__altered=!1,a}function qe(){return $n||($n=Ge(0,0,dn))}function Ve(e,t,n){if(t=m(e,t),t!==t)return e;if(t>=e.size||0>t)return e.withMutations(function(e){0>t?$e(e,t).set(0,n):$e(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(gn);return t>=Ye(e._capacity)?r=ze(r,e.__ownerID,0,t,n,o):i=ze(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ge(e._origin,e._capacity,e._level,i,r):e}function ze(e,t,n,r,i,o){var s=r>>>n&bn,a=e&&s<e.array.length;if(!a&&void 0===i)return e;var l;if(n>0){var u=e&&e.array[s],c=ze(u,t,n-dn,r,i,o);return c===u?e:(l=Xe(e,t),l.array[s]=c,l)}return a&&e.array[s]===i?e:(p(o),l=Xe(e,t),void 0===i&&s===l.array.length-1?l.array.pop():l.array[s]=i,l)}function Xe(e,t){return t&&e&&t===e.ownerID?e:new He(e?e.array.slice():[],t)}function We(e,t){if(t>=Ye(e._capacity))return e._tail;if(t<1<<e._level+dn){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&bn],r-=dn;return n}}function $e(e,t,n){void 0!==t&&(t=0|t),void 0!==n&&(n=0|n);var r=e.__ownerID||new f,i=e._origin,o=e._capacity,s=i+t,a=void 0===n?o:0>n?o+n:i+n;if(s===i&&a===o)return e;if(s>=a)return e.clear();for(var l=e._level,u=e._root,c=0;0>s+c;)u=new He(u&&u.array.length?[void 0,u]:[],r),l+=dn,c+=1<<l;c&&(s+=c,i+=c,a+=c,o+=c);for(var p=Ye(o),h=Ye(a);h>=1<<l+dn;)u=new He(u&&u.array.length?[u]:[],r),l+=dn;var d=e._tail,m=p>h?We(e,a-1):h>p?new He([],r):d;if(d&&h>p&&o>s&&d.array.length){u=Xe(u,r);for(var b=u,y=l;y>dn;y-=dn){var v=p>>>y&bn;b=b.array[v]=Xe(b.array[v],r)}b.array[p>>>dn&bn]=d}if(o>a&&(m=m&&m.removeAfter(r,0,a)),s>=h)s-=h,a-=h,l=dn,u=null,m=m&&m.removeBefore(r,0,s);else if(s>i||p>h){for(c=0;u;){var g=s>>>l&bn;if(g!==h>>>l&bn)break;g&&(c+=(1<<l)*g),l-=dn,u=u.array[g]}u&&s>i&&(u=u.removeBefore(r,l,s-c)),u&&p>h&&(u=u.removeAfter(r,l,h-c)),c&&(s-=c,a-=c)}return e.__ownerID?(e.size=a-s,e._origin=s,e._capacity=a,e._level=l,e._root=u,e._tail=m,e.__hash=void 0,e.__altered=!0,e):Ge(s,a,l,u,m)}function Qe(e,t,n){for(var i=[],s=0,a=0;a<n.length;a++){var l=n[a],u=r(l);u.size>s&&(s=u.size),o(l)||(u=u.map(function(e){return V(e)})),i.push(u)}return s>e.size&&(e=e.setSize(s)),Ie(e,t,i)}function Ye(e){return mn>e?0:e-1>>>dn<<dn}function Ze(e){return null===e||void 0===e?tt():Je(e)?e:tt().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function Je(e){return fe(e)&&u(e)}function et(e,t,n,r){var i=Object.create(Ze.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function tt(){return Yn||(Yn=et(Ee(),qe()))}function nt(e,t,n){var r,i,o=e._map,s=e._list,a=o.get(t),l=void 0!==a;if(n===yn){if(!l)return e;s.size>=mn&&s.size>=2*o.size?(i=s.filter(function(e,t){return void 0!==e&&a!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=a===s.size-1?s.pop():s.set(a,void 0))}else if(l){if(n===s.get(a)[1])return e;r=o,i=s.set(a,[t,n])}else r=o.set(t,s.size),i=s.set(s.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):et(r,i)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function st(e){this._iter=e,this.size=e.size}function at(e){var t=kt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Mt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===En){var r=e.__iterator(t,n);return new T(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Tn?_n:Tn,n)},t}function lt(e,t,n){var r=kt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,yn);return o===yn?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,s){return r(t.call(n,e,i,s),i,o)!==!1},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(En,i);return new T(function(){var i=o.next();if(i.done)return i;var s=i.value,a=s[0];return E(r,a,t.call(n,s[1],a,e),i)})},r}function ut(e,t){var n=kt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=at(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Mt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var i=kt(e);return r&&(i.has=function(r){var i=e.get(r,yn);return i!==yn&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,yn);return o!==yn&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var s=this,a=0;return e.__iterate(function(e,o,l){return t.call(n,e,o,l)?(a++,i(e,r?o:a-1,s)):void 0},o),a},i.__iteratorUncached=function(i,o){var s=e.__iterator(En,o),a=0;return new T(function(){for(;;){var o=s.next();if(o.done)return o;var l=o.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return E(i,r?u:a++,c,o)}})},i}function pt(e,t,n){var r=pe().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function ft(e,t,n){var r=s(e),i=(u(e)?Ze():pe()).asMutable();e.__iterate(function(o,s){i.update(t.call(n,o,s,e),function(e){return e=e||[],e.push(r?[s,o]:o),e})});var o=xt(e);return i.map(function(t){return wt(e,o(t))})}function ht(e,t,n,r){var i=e.size;if(void 0!==t&&(t=0|t),void 0!==n&&(n=0|n),y(t,n,i))return e;var o=v(t,i),s=g(n,i);if(o!==o||s!==s)return ht(e.toSeq().cacheResult(),t,n,r);var a,l=s-o;l===l&&(a=0>l?0:l);var u=kt(e);return u.size=0===a?a:e.size&&a||void 0,!r&&j(e)&&a>=0&&(u.get=function(t,n){return t=m(this,t),t>=0&&a>t?e.get(t+o,n):n}),u.__iterateUncached=function(t,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var s=0,l=!0,u=0;return e.__iterate(function(e,n){return l&&(l=s++<o)?void 0:(u++,t(e,r?n:u-1,i)!==!1&&u!==a)}),u},u.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);var i=0!==a&&e.__iterator(t,n),s=0,l=0;return new T(function(){for(;s++<o;)i.next();if(++l>a)return C();var e=i.next();return r||t===Tn?e:t===_n?E(t,l-1,void 0,e):E(t,l-1,e.value[1],e)})},u}function dt(e,t,n){var r=kt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var s=0;return e.__iterate(function(e,i,a){return t.call(n,e,i,a)&&++s&&r(e,i,o)}),s},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var s=e.__iterator(En,i),a=!0;return new T(function(){if(!a)return C();var e=s.next();if(e.done)return e;var i=e.value,l=i[0],u=i[1];return t.call(n,u,l,o)?r===En?e:E(r,l,u,e):(a=!1,C())})},r}function mt(e,t,n,r){var i=kt(e);return i.__iterateUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,l=0;return e.__iterate(function(e,o,u){return a&&(a=t.call(n,e,o,u))?void 0:(l++,i(e,r?o:l-1,s))}),l},i.__iteratorUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterator(i,o);var a=e.__iterator(En,o),l=!0,u=0;return new T(function(){var e,o,c;do{if(e=a.next(),e.done)return r||i===Tn?e:i===_n?E(i,u++,void 0,e):E(i,u++,e.value[1],e);var p=e.value;o=p[0],c=p[1],l&&(l=t.call(n,c,o,s))}while(l);return i===En?e:E(i,o,c,e)})},i}function bt(e,t){var r=s(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?F(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var l=i[0];if(l===e||r&&s(l)||a(e)&&a(l))return l}var u=new I(i);return r?u=u.toKeyedSeq():a(e)||(u=u.toSetSeq()),u=u.flatten(!0),u.size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}function yt(e,t,n){var r=kt(e);return r.__iterateUncached=function(r,i){function s(e,u){var c=this;e.__iterate(function(e,i){return(!t||t>u)&&o(e)?s(e,u+1):r(e,n?i:a++,c)===!1&&(l=!0),!l},i)}var a=0,l=!1;return s(e,0),a},r.__iteratorUncached=function(r,i){var s=e.__iterator(r,i),a=[],l=0;return new T(function(){for(;s;){var e=s.next();if(e.done===!1){var u=e.value;if(r===En&&(u=u[1]),t&&!(a.length<t)||!o(u))return n?e:E(r,l++,u,e);a.push(s),s=u.__iterator(r,i)}else s=a.pop()}return C()})},r}function vt(e,t,n){var r=xt(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}function gt(e,t){var n=kt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e,r){return(!o||n(t,o++,i)!==!1)&&n(e,o++,i)!==!1},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(Tn,r),s=0;return new T(function(){return(!i||s%2)&&(i=o.next(),i.done)?i:s%2?E(n,s++,t):E(n,s++,i.value,i)})},n}function _t(e,t,n){t||(t=At);var r=s(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?A(o):a(e)?O(o):N(o)}function Tt(e,t,n){if(t||(t=At),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Et(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Et(t,e,n)?n:e})}function Et(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function Ct(e,n,r){var i=kt(e);return i.size=new I(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Tn,t),i=0;!(n=r.next()).done&&e(n.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),P(i?e.reverse():e)}),s=0,a=!1;return new T(function(){var t;return a||(t=o.map(function(e){return e.next()}),a=t.some(function(e){return e.done})),a?C():E(e,s++,n.apply(null,t.map(function(e){return e.value})))})},i}function wt(e,t){return j(e)?t:e.constructor(t)}function St(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Pt(e){return ce(e.size),d(e)}function xt(e){return s(e)?n:a(e)?r:i}function kt(e){return Object.create((s(e)?A:a(e)?O:N).prototype)}function Mt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):M.prototype.cacheResult.call(this)}function At(e,t){return e>t?1:t>e?-1:0}function Ot(e){var n=P(e);if(!n){if(!k(e))throw new TypeError("Expected iterable or array-like: "+e);n=P(t(e))}return n}function Nt(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e);Rt(i,s),i.size=s.length,i._name=t,i._keys=s,i._defaultValues=e}this._map=pe(o)},i=r.prototype=Object.create(Zn);return i.constructor=r,r}function It(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Dt(e){return e._name||e.constructor.name||"Record"}function Rt(e,t){try{t.forEach(Lt.bind(void 0,e))}catch(n){}}function Lt(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Z(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function jt(e){return null===e||void 0===e?Ht():Ut(e)&&!u(e)?e:Ht().withMutations(function(t){var n=i(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Ut(e){return!(!e||!e[Jn])}function Ft(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Bt(e,t){var n=Object.create(er);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ht(){return tr||(tr=Bt(Ee()))}function Kt(e){return null===e||void 0===e?Vt():Gt(e)?e:Vt().withMutations(function(t){var n=i(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Gt(e){return Ut(e)&&u(e)}function qt(e,t){var n=Object.create(nr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vt(){return rr||(rr=qt(tt()))}function zt(e){return null===e||void 0===e?$t():Xt(e)?e:$t().unshiftAll(e)}function Xt(e){return!(!e||!e[ir])}function Wt(e,t,n,r){var i=Object.create(or);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function $t(){return sr||(sr=Wt(0))}function Qt(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Yt(e,t){return t}function Zt(e,t){return[t,e]}function Jt(e){return function(){return!e.apply(this,arguments)}}function en(e){return function(){return-e.apply(this,arguments)}}function tn(e){return"string"==typeof e?JSON.stringify(e):e}function nn(){return h(arguments)}function rn(e,t){return t>e?1:e>t?-1:0}function on(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+an(oe(e),oe(t))|0}:function(e,t){r=r+an(oe(e),oe(t))|0}:t?function(e){r=31*r+oe(e)|0}:function(e){r=r+oe(e)|0});return sn(i,r)}function sn(e,t){return t=On(t,3432918353),t=On(t<<15|t>>>-15,461845907),t=On(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=On(t^t>>>16,2246822507),t=On(t^t>>>13,3266489909),t=ie(t^t>>>16)}function an(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var ln=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=s,t.isIndexed=a,t.isAssociative=l,t.isOrdered=u,t.Keyed=n,t.Indexed=r,t.Set=i;var un="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",pn="@@__IMMUTABLE_INDEXED__@@",fn="@@__IMMUTABLE_ORDERED__@@",hn="delete",dn=5,mn=1<<dn,bn=mn-1,yn={},vn={value:!1},gn={value:!1},_n=0,Tn=1,En=2,Cn="function"==typeof Symbol&&Symbol.iterator,wn="@@iterator",Sn=Cn||wn;T.prototype.toString=function(){return"[Iterator]"},T.KEYS=_n,T.VALUES=Tn,T.ENTRIES=En,T.prototype.inspect=T.prototype.toSource=function(){return this.toString()},T.prototype[Sn]=function(){return this},e(M,t),M.of=function(){return M(arguments)},M.prototype.toSeq=function(){return this},M.prototype.toString=function(){return this.__toString("Seq {","}")},M.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},M.prototype.__iterate=function(e,t){return G(this,e,t,!0)},M.prototype.__iterator=function(e,t){return q(this,e,t,!0)},e(A,M),A.prototype.toKeyedSeq=function(){return this},e(O,M),O.of=function(){return O(arguments)},O.prototype.toIndexedSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq [","]")},O.prototype.__iterate=function(e,t){return G(this,e,t,!1)},O.prototype.__iterator=function(e,t){return q(this,e,t,!1)},e(N,M),N.of=function(){return N(arguments)},N.prototype.toSetSeq=function(){return this},M.isSeq=j,M.Keyed=A,M.Set=N,M.Indexed=O;var Pn="@@__IMMUTABLE_SEQ__@@";M.prototype[Pn]=!0,e(I,O),I.prototype.get=function(e,t){return this.has(e)?this._array[m(this,e)]:t},I.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;r>=i;i++)if(e(n[t?r-i:i],i,this)===!1)return i+1;return i},I.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new T(function(){return i>r?C():E(e,i,n[t?r-i++:i++])})},e(D,A),D.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},D.prototype.has=function(e){return this._object.hasOwnProperty(e)},D.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;i>=o;o++){var s=r[t?i-o:o];if(e(n[s],s,this)===!1)return o+1}return o},D.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new T(function(){var s=r[t?i-o:o];return o++>i?C():E(e,s,n[s])})},D.prototype[fn]=!0,e(R,O),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=P(n),i=0;if(S(r))for(var o;!(o=r.next()).done&&e(o.value,i++,this)!==!1;);return i},R.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=P(n);if(!S(r))return new T(C);var i=0;return new T(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(L,O),L.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(e(r[i],i++,this)===!1)return i;for(var o;!(o=n.next()).done;){var s=o.value;if(r[i]=s,e(s,i++,this)===!1)break}return i},L.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new T(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})};var xn;e(Y,O),Y.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Y.prototype.get=function(e,t){return this.has(e)?this._value:t},Y.prototype.includes=function(e){return $(this._value,e)},Y.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new Y(this._value,g(t,n)-v(e,n))},Y.prototype.reverse=function(){return this},Y.prototype.indexOf=function(e){return $(this._value,e)?0:-1},Y.prototype.lastIndexOf=function(e){return $(this._value,e)?this.size:-1},Y.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(e(this._value,n,this)===!1)return n+1;return n},Y.prototype.__iterator=function(e,t){var n=this,r=0;return new T(function(){return r<n.size?E(e,r++,n._value):C()})},Y.prototype.equals=function(e){return e instanceof Y?$(this._value,e._value):Q(e)};var kn;e(J,O),J.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},J.prototype.get=function(e,t){return this.has(e)?this._start+m(this,e)*this._step:t},J.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},J.prototype.slice=function(e,t){return y(e,t,this.size)?this:(e=v(e,this.size),t=g(t,this.size),e>=t?new J(0,0):new J(this.get(e,this._end),this.get(t,this._end),this._step))},J.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},J.prototype.lastIndexOf=function(e){return this.indexOf(e)},J.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;n>=o;o++){if(e(i,o,this)===!1)return o+1;i+=t?-r:r}return o},J.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new T(function(){var s=i;return i+=t?-r:r,o>n?C():E(e,o++,s)})},J.prototype.equals=function(e){return e instanceof J?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)};var Mn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var An,On="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e=0|e,t=0|t;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Nn=Object.isExtensible,In=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Dn="function"==typeof WeakMap;Dn&&(An=new WeakMap);var Rn=0,Ln="__immutablehash__";"function"==typeof Symbol&&(Ln=Symbol(Ln));var jn=16,Un=255,Fn=0,Bn={};e(pe,te),pe.prototype.toString=function(){return this.__toString("Map {","}")},pe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},pe.prototype.set=function(e,t){return Ce(this,e,t)},pe.prototype.setIn=function(e,t){return this.updateIn(e,yn,function(){return t})},pe.prototype.remove=function(e){return Ce(this,e,yn)},pe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return yn})},pe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},pe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=De(this,Ot(e),t,n);return r===yn?void 0:r},pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ee()},pe.prototype.merge=function(){return Ae(this,void 0,arguments)},pe.prototype.mergeWith=function(e){var t=ln.call(arguments,1);return Ae(this,e,t)},pe.prototype.mergeIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},pe.prototype.mergeDeep=function(){return Ae(this,Oe,arguments)},pe.prototype.mergeDeepWith=function(e){var t=ln.call(arguments,1);return Ae(this,Ne(e),t)},pe.prototype.mergeDeepIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},pe.prototype.sort=function(e){return Ze(_t(this,e))},pe.prototype.sortBy=function(e,t){return Ze(_t(this,t,e))},pe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},pe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new f)},pe.prototype.asImmutable=function(){return this.__ensureOwner()},pe.prototype.wasAltered=function(){return this.__altered},pe.prototype.__iterator=function(e,t){return new ve(this,e,t)},pe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},pe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Te(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},pe.isMap=fe;var Hn="@@__IMMUTABLE_MAP__@@",Kn=pe.prototype;Kn[Hn]=!0,Kn[hn]=Kn.remove,Kn.removeIn=Kn.deleteIn,he.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,s=i.length;s>o;o++)if($(n,i[o][0]))return i[o][1];
|
||
return r},he.prototype.update=function(e,t,n,r,i,o,s){for(var a=i===yn,l=this.entries,u=0,c=l.length;c>u&&!$(r,l[u][0]);u++);var f=c>u;if(f?l[u][1]===i:a)return this;if(p(s),(a||!f)&&p(o),!a||1!==l.length){if(!f&&!a&&l.length>=qn)return xe(e,l,r,i);var d=e&&e===this.ownerID,m=d?l:h(l);return f?a?u===c-1?m.pop():m[u]=m.pop():m[u]=[r,i]:m.push([r,i]),d?(this.entries=m,this):new he(e,m)}},de.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=1<<((0===e?t:t>>>e)&bn),o=this.bitmap;return 0===(o&i)?r:this.nodes[Re(o&i-1)].get(e+dn,t,n,r)},de.prototype.update=function(e,t,n,r,i,o,s){void 0===n&&(n=oe(r));var a=(0===t?n:n>>>t)&bn,l=1<<a,u=this.bitmap,c=0!==(u&l);if(!c&&i===yn)return this;var p=Re(u&l-1),f=this.nodes,h=c?f[p]:void 0,d=we(h,e,t+dn,n,r,i,o,s);if(d===h)return this;if(!c&&d&&f.length>=Vn)return Me(e,f,u,a,d);if(c&&!d&&2===f.length&&Se(f[1^p]))return f[1^p];if(c&&d&&1===f.length&&Se(d))return d;var m=e&&e===this.ownerID,b=c?d?u:u^l:u|l,y=c?d?Le(f,p,d,m):Ue(f,p,m):je(f,p,d,m);return m?(this.bitmap=b,this.nodes=y,this):new de(e,b,y)},me.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=(0===e?t:t>>>e)&bn,o=this.nodes[i];return o?o.get(e+dn,t,n,r):r},me.prototype.update=function(e,t,n,r,i,o,s){void 0===n&&(n=oe(r));var a=(0===t?n:n>>>t)&bn,l=i===yn,u=this.nodes,c=u[a];if(l&&!c)return this;var p=we(c,e,t+dn,n,r,i,o,s);if(p===c)return this;var f=this.count;if(c){if(!p&&(f--,zn>f))return ke(e,u,f,a)}else f++;var h=e&&e===this.ownerID,d=Le(u,a,p,h);return h?(this.count=f,this.nodes=d,this):new me(e,f,d)},be.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,s=i.length;s>o;o++)if($(n,i[o][0]))return i[o][1];return r},be.prototype.update=function(e,t,n,r,i,o,s){void 0===n&&(n=oe(r));var a=i===yn;if(n!==this.keyHash)return a?this:(p(s),p(o),Pe(this,e,t,n,[r,i]));for(var l=this.entries,u=0,c=l.length;c>u&&!$(r,l[u][0]);u++);var f=c>u;if(f?l[u][1]===i:a)return this;if(p(s),(a||!f)&&p(o),a&&2===c)return new ye(e,this.keyHash,l[1^u]);var d=e&&e===this.ownerID,m=d?l:h(l);return f?a?u===c-1?m.pop():m[u]=m.pop():m[u]=[r,i]:m.push([r,i]),d?(this.entries=m,this):new be(e,this.keyHash,m)},ye.prototype.get=function(e,t,n,r){return $(n,this.entry[0])?this.entry[1]:r},ye.prototype.update=function(e,t,n,r,i,o,s){var a=i===yn,l=$(r,this.entry[0]);return(l?i===this.entry[1]:a)?this:(p(s),a?void p(o):l?e&&e===this.ownerID?(this.entry[1]=i,this):new ye(e,this.keyHash,[r,i]):(p(o),Pe(this,e,t,oe(r),[r,i])))},he.prototype.iterate=be.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;i>=r;r++)if(e(n[t?i-r:r])===!1)return!1},de.prototype.iterate=me.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;i>=r;r++){var o=n[t?i-r:r];if(o&&o.iterate(e,t)===!1)return!1}},ye.prototype.iterate=function(e,t){return e(this.entry)},e(ve,T),ve.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return ge(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,n>=i)return ge(e,r.entries[this._reverse?n-i:i])}else if(n=r.nodes.length-1,n>=i){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return ge(e,o.entry);t=this._stack=_e(o,t)}continue}t=this._stack=this._stack.__prev}return C()};var Gn,qn=mn/4,Vn=mn/2,zn=mn/4;e(Fe,ne),Fe.of=function(){return this(arguments)},Fe.prototype.toString=function(){return this.__toString("List [","]")},Fe.prototype.get=function(e,t){if(e=m(this,e),e>=0&&e<this.size){e+=this._origin;var n=We(this,e);return n&&n.array[e&bn]}return t},Fe.prototype.set=function(e,t){return Ve(this,e,t)},Fe.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Fe.prototype.insert=function(e,t){return this.splice(e,0,t)},Fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=dn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):qe()},Fe.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){$e(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Fe.prototype.pop=function(){return $e(this,0,-1)},Fe.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){$e(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Fe.prototype.shift=function(){return $e(this,1)},Fe.prototype.merge=function(){return Qe(this,void 0,arguments)},Fe.prototype.mergeWith=function(e){var t=ln.call(arguments,1);return Qe(this,e,t)},Fe.prototype.mergeDeep=function(){return Qe(this,Oe,arguments)},Fe.prototype.mergeDeepWith=function(e){var t=ln.call(arguments,1);return Qe(this,Ne(e),t)},Fe.prototype.setSize=function(e){return $e(this,0,e)},Fe.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:$e(this,v(e,n),g(t,n))},Fe.prototype.__iterator=function(e,t){var n=0,r=Ke(this,t);return new T(function(){var t=r();return t===Qn?C():E(e,n++,t)})},Fe.prototype.__iterate=function(e,t){for(var n,r=0,i=Ke(this,t);(n=i())!==Qn&&e(n,r++,this)!==!1;);return r},Fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ge(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Fe.isList=Be;var Xn="@@__IMMUTABLE_LIST__@@",Wn=Fe.prototype;Wn[Xn]=!0,Wn[hn]=Wn.remove,Wn.setIn=Kn.setIn,Wn.deleteIn=Wn.removeIn=Kn.removeIn,Wn.update=Kn.update,Wn.updateIn=Kn.updateIn,Wn.mergeIn=Kn.mergeIn,Wn.mergeDeepIn=Kn.mergeDeepIn,Wn.withMutations=Kn.withMutations,Wn.asMutable=Kn.asMutable,Wn.asImmutable=Kn.asImmutable,Wn.wasAltered=Kn.wasAltered,He.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&bn;if(r>=this.array.length)return new He([],e);var i,o=0===r;if(t>0){var s=this.array[r];if(i=s&&s.removeBefore(e,t-dn,n),i===s&&o)return this}if(o&&!i)return this;var a=Xe(this,e);if(!o)for(var l=0;r>l;l++)a.array[l]=void 0;return i&&(a.array[r]=i),a},He.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r=n-1>>>t&bn;if(r>=this.array.length)return this;var i;if(t>0){var o=this.array[r];if(i=o&&o.removeAfter(e,t-dn,n),i===o&&r===this.array.length-1)return this}var s=Xe(this,e);return s.array.splice(r+1),i&&(s.array[r]=i),s};var $n,Qn={};e(Ze,pe),Ze.of=function(){return this(arguments)},Ze.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ze.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ze.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Ze.prototype.set=function(e,t){return nt(this,e,t)},Ze.prototype.remove=function(e){return nt(this,e,yn)},Ze.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ze.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ze.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ze.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ze.isOrderedMap=Je,Ze.prototype[fn]=!0,Ze.prototype[hn]=Ze.prototype.remove;var Yn;e(rt,A),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=ut(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=lt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Pt(this):0,function(i){return e(i,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Tn,t),r=t?Pt(this):0;return new T(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},rt.prototype[fn]=!0,e(it,O),it.prototype.includes=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t),r=0;return new T(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(ot,N),ot.prototype.has=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t);return new T(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(st,A),st.prototype.entrySeq=function(){return this._iter.toSeq()},st.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){St(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},st.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t);return new T(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){St(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},it.prototype.cacheResult=rt.prototype.cacheResult=ot.prototype.cacheResult=st.prototype.cacheResult=Mt,e(Nt,te),Nt.prototype.toString=function(){return this.__toString(Dt(this)+" {","}")},Nt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Nt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Nt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=It(this,Ee()))},Nt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Dt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:It(this,n)},Nt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:It(this,t)},Nt.prototype.wasAltered=function(){return this._map.wasAltered()},Nt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Nt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Nt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?It(this,t,e):(this.__ownerID=e,this._map=t,this)};var Zn=Nt.prototype;Zn[hn]=Zn.remove,Zn.deleteIn=Zn.removeIn=Kn.removeIn,Zn.merge=Kn.merge,Zn.mergeWith=Kn.mergeWith,Zn.mergeIn=Kn.mergeIn,Zn.mergeDeep=Kn.mergeDeep,Zn.mergeDeepWith=Kn.mergeDeepWith,Zn.mergeDeepIn=Kn.mergeDeepIn,Zn.setIn=Kn.setIn,Zn.update=Kn.update,Zn.updateIn=Kn.updateIn,Zn.withMutations=Kn.withMutations,Zn.asMutable=Kn.asMutable,Zn.asImmutable=Kn.asImmutable,e(jt,re),jt.of=function(){return this(arguments)},jt.fromKeys=function(e){return this(n(e).keySeq())},jt.prototype.toString=function(){return this.__toString("Set {","}")},jt.prototype.has=function(e){return this._map.has(e)},jt.prototype.add=function(e){return Ft(this,this._map.set(e,!0))},jt.prototype.remove=function(e){return Ft(this,this._map.remove(e))},jt.prototype.clear=function(){return Ft(this,this._map.clear())},jt.prototype.union=function(){var e=ln.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)i(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},jt.prototype.intersect=function(){var e=ln.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return i(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.every(function(e){return e.includes(t)})||n.remove(t)})})},jt.prototype.subtract=function(){var e=ln.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return i(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.some(function(e){return e.includes(t)})&&n.remove(t)})})},jt.prototype.merge=function(){return this.union.apply(this,arguments)},jt.prototype.mergeWith=function(e){var t=ln.call(arguments,1);return this.union.apply(this,t)},jt.prototype.sort=function(e){return Kt(_t(this,e))},jt.prototype.sortBy=function(e,t){return Kt(_t(this,t,e))},jt.prototype.wasAltered=function(){return this._map.wasAltered()},jt.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},jt.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},jt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},jt.isSet=Ut;var Jn="@@__IMMUTABLE_SET__@@",er=jt.prototype;er[Jn]=!0,er[hn]=er.remove,er.mergeDeep=er.merge,er.mergeDeepWith=er.mergeWith,er.withMutations=Kn.withMutations,er.asMutable=Kn.asMutable,er.asImmutable=Kn.asImmutable,er.__empty=Ht,er.__make=Bt;var tr;e(Kt,jt),Kt.of=function(){return this(arguments)},Kt.fromKeys=function(e){return this(n(e).keySeq())},Kt.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Kt.isOrderedSet=Gt;var nr=Kt.prototype;nr[fn]=!0,nr.__empty=Vt,nr.__make=qt;var rr;e(zt,ne),zt.of=function(){return this(arguments)},zt.prototype.toString=function(){return this.__toString("Stack [","]")},zt.prototype.get=function(e,t){var n=this._head;for(e=m(this,e);n&&e--;)n=n.next;return n?n.value:t},zt.prototype.peek=function(){return this._head&&this._head.value},zt.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Wt(e,t)},zt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Wt(t,n)},zt.prototype.pop=function(){return this.slice(1)},zt.prototype.unshift=function(){return this.push.apply(this,arguments)},zt.prototype.unshiftAll=function(e){return this.pushAll(e)},zt.prototype.shift=function(){return this.pop.apply(this,arguments)},zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):$t()},zt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=v(e,this.size),r=g(t,this.size);if(r!==this.size)return ne.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Wt(i,o)},zt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Wt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},zt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},zt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new T(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return C()})},zt.isStack=Xt;var ir="@@__IMMUTABLE_STACK__@@",or=zt.prototype;or[ir]=!0,or.withMutations=Kn.withMutations,or.asMutable=Kn.asMutable,or.asImmutable=Kn.asImmutable,or.wasAltered=Kn.wasAltered;var sr;t.Iterator=T,Qt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new it(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return pe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ze(this.toKeyedSeq())},toOrderedSet:function(){return Kt(s(this)?this.valueSeq():this)},toSet:function(){return jt(s(this)?this.valueSeq():this)},toSetSeq:function(){return new ot(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return zt(s(this)?this.valueSeq():this)},toList:function(){return Fe(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=ln.call(arguments,0);return wt(this,bt(this,e))},includes:function(e){return this.some(function(t){return $(t,e)})},entries:function(){return this.__iterator(En)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,i,o){return e.call(t,r,i,o)?void 0:(n=!1,!1)}),n},filter:function(e,t){return wt(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){return e.call(t,r,i,o)?(n=[i,r],!1):void 0}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(_n)},map:function(e,t){return wt(this,lt(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,s){i?(i=!1,r=t):r=e.call(n,r,t,o,s)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return wt(this,ut(this,!0))},slice:function(e,t){return wt(this,ht(this,e,t,!0))},some:function(e,t){return!this.every(Jt(e),t)},sort:function(e){return wt(this,_t(this,e))},values:function(){return this.__iterator(Tn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return pt(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new I(e._cache);var t=e.toSeq().map(Zt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Jt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(b)},flatMap:function(e,t){return wt(this,vt(this,e,t))},flatten:function(e){return wt(this,yt(this,e,!0))},fromEntrySeq:function(){return new st(this)},get:function(e,t){return this.find(function(t,n){return $(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=Ot(e);!(n=i.next()).done;){var o=n.value;if(r=r&&r.get?r.get(o,yn):yn,r===yn)return t}return r},groupBy:function(e,t){return ft(this,e,t)},has:function(e){return this.get(e,yn)!==yn},hasIn:function(e){return this.getIn(e,yn)!==yn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keySeq:function(){return this.toSeq().map(Yt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Tt(this,e)},maxBy:function(e,t){return Tt(this,t,e)},min:function(e){return Tt(this,e?en(e):rn)},minBy:function(e,t){return Tt(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return wt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return wt(this,mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Jt(e),t)},sortBy:function(e,t){return wt(this,_t(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return wt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return wt(this,dt(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Jt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ar=t.prototype;ar[un]=!0,ar[Sn]=ar.values,ar.__toJS=ar.toArray,ar.__toStringMapper=tn,ar.inspect=ar.toSource=function(){return this.toString()},ar.chain=ar.flatMap,ar.contains=ar.includes,function(){try{Object.defineProperty(ar,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(n){e=n.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Qt(n,{flip:function(){return wt(this,at(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return $(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return $(t,e)})},mapEntries:function(e,t){var n=this,r=0;return wt(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return wt(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var lr=n.prototype;lr[cn]=!0,lr[Sn]=ar.entries,lr.__toJS=ar.toObject,lr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Qt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return wt(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return wt(this,ut(this,!1))},slice:function(e,t){return wt(this,ht(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=v(e,0>e?this.count():this.size);var r=this.slice(0,e);return wt(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return wt(this,yt(this,e,!1))},get:function(e,t){return e=m(this,e),0>e||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=m(this,e),e>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return wt(this,gt(this,e))},interleave:function(){var e=[this].concat(h(arguments)),t=Ct(this.toSeq(),O.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),wt(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return wt(this,mt(this,e,t,!1))},zip:function(){var e=[this].concat(h(arguments));return wt(this,Ct(this,nn,e))},zipWith:function(e){var t=h(arguments);return t[0]=this,wt(this,Ct(this,e,t))}}),r.prototype[pn]=!0,r.prototype[fn]=!0,Qt(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=ar.includes,Qt(A,n.prototype),Qt(O,r.prototype),Qt(N,i.prototype),Qt(te,n.prototype),Qt(ne,r.prototype),Qt(re,i.prototype);var ur={Iterable:t,Seq:M,Collection:ee,Map:pe,OrderedMap:Ze,List:Fe,Stack:zt,Set:jt,OrderedSet:Kt,Record:Nt,Range:J,Repeat:Y,is:$,fromJS:V};return ur})},{}],179:[function(e,t,n){"use strict";var r=function(e,t,n,r,i,o,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,s,a],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};t.exports=r},{}],180:[function(e,t,n){n=t.exports=function(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return s[e];var n=String(e),o=r[n.toLowerCase()];if(o)return o;var o=i[n.toLowerCase()];return o?o:1===n.length?n.charCodeAt(0):void 0};var r=n.code=n.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,"delete":46,command:91,"right click":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=n.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,"break":19,caps:20,"return":13,escape:27,spc:32,pgup:33,pgdn:33,ins:45,del:46,cmd:91};for(o=97;123>o;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;58>o;o++)r[o-48]=o;for(o=1;13>o;o++)r["f"+o]=o+111;for(o=0;10>o;o++)r["numpad "+o]=o+96;var s=n.names=n.title={};for(o in r)s[r[o]]=o;for(var a in i)r[a]=i[a]},{}],181:[function(e,t,n){function r(e){var t=e?e.length:0;return t?e[t-1]:void 0}t.exports=r},{}],182:[function(e,t,n){var r=e("../internal/baseEach"),i=e("../internal/createFind"),o=i(r);t.exports=o},{"../internal/baseEach":191,"../internal/createFind":215}],183:[function(e,t,n){function r(e,t){if("function"!=typeof e)throw new TypeError(i);return t=o(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,i=o(n.length-t,0),s=Array(i);++r<i;)s[r]=n[t+r];switch(t){case 0:return e.call(this,s);case 1:return e.call(this,n[0],s);case 2:return e.call(this,n[0],n[1],s)}var a=Array(t+1);for(r=-1;++r<t;)a[r]=n[r];return a[t]=s,e.apply(this,a)}}var i="Expected a function",o=Math.max;t.exports=r},{}],184:[function(e,t,n){(function(n){function r(e){var t=e?e.length:0;for(this.data={hash:a(null),set:new s};t--;)this.push(e[t])}var i=e("./cachePush"),o=e("./getNative"),s=o(n,"Set"),a=o(Object,"create");r.prototype.push=i,t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./cachePush":211,"./getNative":221}],185:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=r},{}],186:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=r},{}],187:[function(e,t,n){function r(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=r},{}],188:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],189:[function(e,t,n){function r(e,t,n){var r=typeof e;return"function"==r?void 0===t?e:s(e,t,n):null==e?a:"object"==r?i(e):void 0===t?l(e):o(e,t)}var i=e("./baseMatches"),o=e("./baseMatchesProperty"),s=e("./bindCallback"),a=e("../utility/identity"),l=e("../utility/property");t.exports=r},{"../utility/identity":248,"../utility/property":249,"./baseMatches":203,"./baseMatchesProperty":204,"./bindCallback":209}],190:[function(e,t,n){function r(e,t){var n=e?e.length:0,r=[];if(!n)return r;var l=-1,u=i,c=!0,p=c&&t.length>=a?s(t):null,f=t.length;p&&(u=o,c=!1,t=p);e:for(;++l<n;){var h=e[l];if(c&&h===h){for(var d=f;d--;)if(t[d]===h)continue e;r.push(h)}else u(t,h,0)<0&&r.push(h)}return r}var i=e("./baseIndexOf"),o=e("./cacheIndexOf"),s=e("./createCache"),a=200;t.exports=r},{"./baseIndexOf":199,"./cacheIndexOf":210,"./createCache":214}],191:[function(e,t,n){var r=e("./baseForOwn"),i=e("./createBaseEach"),o=i(r);t.exports=o},{"./baseForOwn":197,"./createBaseEach":212}],192:[function(e,t,n){function r(e,t,n,r){var i;return n(e,function(e,n,o){return t(e,n,o)?(i=r?n:e,!1):void 0}),i}t.exports=r},{}],193:[function(e,t,n){function r(e,t,n){for(var r=e.length,i=n?r:-1;n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}t.exports=r},{}],194:[function(e,t,n){function r(e,t,n,u){u||(u=[]);for(var c=-1,p=e.length;++c<p;){var f=e[c];l(f)&&a(f)&&(n||s(f)||o(f))?t?r(f,t,n,u):i(u,f):n||(u[u.length]=f)}return u}var i=e("./arrayPush"),o=e("../lang/isArguments"),s=e("../lang/isArray"),a=e("./isArrayLike"),l=e("./isObjectLike");t.exports=r},{"../lang/isArguments":235,"../lang/isArray":236,"./arrayPush":187,"./isArrayLike":223,"./isObjectLike":228}],195:[function(e,t,n){var r=e("./createBaseFor"),i=r();t.exports=i},{"./createBaseFor":213}],196:[function(e,t,n){function r(e,t){return i(e,t,o)}var i=e("./baseFor"),o=e("../object/keysIn");t.exports=r},{"../object/keysIn":243,"./baseFor":195}],197:[function(e,t,n){function r(e,t){return i(e,t,o)}var i=e("./baseFor"),o=e("../object/keys");t.exports=r},{"../object/keys":242,"./baseFor":195}],198:[function(e,t,n){function r(e,t,n){if(null!=e){e=i(e),void 0!==n&&n in e&&(t=[n]);for(var r=0,o=t.length;null!=e&&o>r;)e=i(e)[t[r++]];return r&&r==o?e:void 0}}var i=e("./toObject");t.exports=r},{"./toObject":233}],199:[function(e,t,n){function r(e,t,n){if(t!==t)return i(e,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var i=e("./indexOfNaN");t.exports=r},{"./indexOfNaN":222}],200:[function(e,t,n){function r(e,t,n,a,l,u){return e===t?!0:null==e||null==t||!o(e)&&!s(t)?e!==e&&t!==t:i(e,t,r,n,a,l,u)}var i=e("./baseIsEqualDeep"),o=e("../lang/isObject"),s=e("./isObjectLike");t.exports=r},{"../lang/isObject":239,"./baseIsEqualDeep":201,"./isObjectLike":228}],201:[function(e,t,n){function r(e,t,n,r,h,b,y){var v=a(e),g=a(t),_=p,T=p;v||(_=m.call(e),_==c?_=f:_!=f&&(v=u(e))),g||(T=m.call(t),T==c?T=f:T!=f&&(g=u(t)));var E=_==f&&!l(e),C=T==f&&!l(t),w=_==T;if(w&&!v&&!E)return o(e,t,_);if(!h){var S=E&&d.call(e,"__wrapped__"),P=C&&d.call(t,"__wrapped__");if(S||P)return n(S?e.value():e,P?t.value():t,r,h,b,y)}if(!w)return!1;b||(b=[]),y||(y=[]);for(var x=b.length;x--;)if(b[x]==e)return y[x]==t;b.push(e),y.push(t);var k=(v?i:s)(e,t,n,r,h,b,y);return b.pop(),y.pop(),k}var i=e("./equalArrays"),o=e("./equalByTag"),s=e("./equalObjects"),a=e("../lang/isArray"),l=e("./isHostObject"),u=e("../lang/isTypedArray"),c="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype,d=h.hasOwnProperty,m=h.toString;t.exports=r},{"../lang/isArray":236,"../lang/isTypedArray":241,"./equalArrays":216,"./equalByTag":217,"./equalObjects":218,"./isHostObject":224}],202:[function(e,t,n){function r(e,t,n){var r=t.length,s=r,a=!n;if(null==e)return!s;for(e=o(e);r--;){var l=t[r];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<s;){l=t[r];var u=l[0],c=e[u],p=l[1];if(a&&l[2]){if(void 0===c&&!(u in e))return!1}else{var f=n?n(c,p,u):void 0;if(!(void 0===f?i(p,c,n,!0):f))return!1}}return!0}var i=e("./baseIsEqual"),o=e("./toObject");t.exports=r},{"./baseIsEqual":200,"./toObject":233}],203:[function(e,t,n){function r(e){var t=o(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null==e?!1:(e=s(e),e[n]===r&&(void 0!==r||n in e))}}return function(e){return i(e,t)}}var i=e("./baseIsMatch"),o=e("./getMatchData"),s=e("./toObject");t.exports=r},{"./baseIsMatch":202,"./getMatchData":220,"./toObject":233}],204:[function(e,t,n){function r(e,t){var n=a(e),r=l(e)&&u(t),h=e+"";return e=f(e),function(a){if(null==a)return!1;var l=h;if(a=p(a),(n||!r)&&!(l in a)){if(a=1==e.length?a:i(a,s(e,0,-1)),null==a)return!1;l=c(e),a=p(a)}return a[l]===t?void 0!==t||l in a:o(t,a[l],void 0,!0)}}var i=e("./baseGet"),o=e("./baseIsEqual"),s=e("./baseSlice"),a=e("../lang/isArray"),l=e("./isKey"),u=e("./isStrictComparable"),c=e("../array/last"),p=e("./toObject"),f=e("./toPath");t.exports=r},{"../array/last":181,
|
||
"../lang/isArray":236,"./baseGet":198,"./baseIsEqual":200,"./baseSlice":207,"./isKey":226,"./isStrictComparable":229,"./toObject":233,"./toPath":234}],205:[function(e,t,n){function r(e){return function(t){return null==t?void 0:i(t)[e]}}var i=e("./toObject");t.exports=r},{"./toObject":233}],206:[function(e,t,n){function r(e){var t=e+"";return e=o(e),function(n){return i(n,e,t)}}var i=e("./baseGet"),o=e("./toPath");t.exports=r},{"./baseGet":198,"./toPath":234}],207:[function(e,t,n){function r(e,t,n){var r=-1,i=e.length;t=null==t?0:+t||0,0>t&&(t=-t>i?0:i+t),n=void 0===n||n>i?i:+n||0,0>n&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}t.exports=r},{}],208:[function(e,t,n){function r(e){return null==e?"":e+""}t.exports=r},{}],209:[function(e,t,n){function r(e,t,n){if("function"!=typeof e)return i;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)};case 5:return function(n,r,i,o,s){return e.call(t,n,r,i,o,s)}}return function(){return e.apply(t,arguments)}}var i=e("../utility/identity");t.exports=r},{"../utility/identity":248}],210:[function(e,t,n){function r(e,t){var n=e.data,r="string"==typeof t||i(t)?n.set.has(t):n.hash[t];return r?0:-1}var i=e("../lang/isObject");t.exports=r},{"../lang/isObject":239}],211:[function(e,t,n){function r(e){var t=this.data;"string"==typeof e||i(e)?t.set.add(e):t.hash[e]=!0}var i=e("../lang/isObject");t.exports=r},{"../lang/isObject":239}],212:[function(e,t,n){function r(e,t){return function(n,r){var a=n?i(n):0;if(!o(a))return e(n,r);for(var l=t?a:-1,u=s(n);(t?l--:++l<a)&&r(u[l],l,u)!==!1;);return n}}var i=e("./getLength"),o=e("./isLength"),s=e("./toObject");t.exports=r},{"./getLength":219,"./isLength":227,"./toObject":233}],213:[function(e,t,n){function r(e){return function(t,n,r){for(var o=i(t),s=r(t),a=s.length,l=e?a:-1;e?l--:++l<a;){var u=s[l];if(n(o[u],u,o)===!1)break}return t}}var i=e("./toObject");t.exports=r},{"./toObject":233}],214:[function(e,t,n){(function(n){function r(e){return a&&s?new i(e):null}var i=e("./SetCache"),o=e("./getNative"),s=o(n,"Set"),a=o(Object,"create");t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./SetCache":184,"./getNative":221}],215:[function(e,t,n){function r(e,t){return function(n,r,l){if(r=i(r,l,3),a(n)){var u=s(n,r,t);return u>-1?n[u]:void 0}return o(n,r,e)}}var i=e("./baseCallback"),o=e("./baseFind"),s=e("./baseFindIndex"),a=e("../lang/isArray");t.exports=r},{"../lang/isArray":236,"./baseCallback":189,"./baseFind":192,"./baseFindIndex":193}],216:[function(e,t,n){function r(e,t,n,r,o,s,a){var l=-1,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;for(;++l<u;){var p=e[l],f=t[l],h=r?r(o?f:p,o?p:f,l):void 0;if(void 0!==h){if(h)continue;return!1}if(o){if(!i(t,function(e){return p===e||n(p,e,r,o,s,a)}))return!1}else if(p!==f&&!n(p,f,r,o,s,a))return!1}return!0}var i=e("./arraySome");t.exports=r},{"./arraySome":188}],217:[function(e,t,n){function r(e,t,n){switch(n){case i:case o:return+e==+t;case s:return e.name==t.name&&e.message==t.message;case a:return e!=+e?t!=+t:e==+t;case l:case u:return e==t+""}return!1}var i="[object Boolean]",o="[object Date]",s="[object Error]",a="[object Number]",l="[object RegExp]",u="[object String]";t.exports=r},{}],218:[function(e,t,n){function r(e,t,n,r,o,a,l){var u=i(e),c=u.length,p=i(t),f=p.length;if(c!=f&&!o)return!1;for(var h=c;h--;){var d=u[h];if(!(o?d in t:s.call(t,d)))return!1}for(var m=o;++h<c;){d=u[h];var b=e[d],y=t[d],v=r?r(o?y:b,o?b:y,d):void 0;if(!(void 0===v?n(b,y,r,o,a,l):v))return!1;m||(m="constructor"==d)}if(!m){var g=e.constructor,_=t.constructor;if(g!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof _&&_ instanceof _))return!1}return!0}var i=e("../object/keys"),o=Object.prototype,s=o.hasOwnProperty;t.exports=r},{"../object/keys":242}],219:[function(e,t,n){var r=e("./baseProperty"),i=r("length");t.exports=i},{"./baseProperty":205}],220:[function(e,t,n){function r(e){for(var t=o(e),n=t.length;n--;)t[n][2]=i(t[n][1]);return t}var i=e("./isStrictComparable"),o=e("../object/pairs");t.exports=r},{"../object/pairs":245,"./isStrictComparable":229}],221:[function(e,t,n){function r(e,t){var n=null==e?void 0:e[t];return i(n)?n:void 0}var i=e("../lang/isNative");t.exports=r},{"../lang/isNative":238}],222:[function(e,t,n){function r(e,t,n){for(var r=e.length,i=t+(n?0:-1);n?i--:++i<r;){var o=e[i];if(o!==o)return i}return-1}t.exports=r},{}],223:[function(e,t,n){function r(e){return null!=e&&o(i(e))}var i=e("./getLength"),o=e("./isLength");t.exports=r},{"./getLength":219,"./isLength":227}],224:[function(e,t,n){var r=function(){try{Object({toString:0}+"")}catch(e){return function(){return!1}}return function(e){return"function"!=typeof e.toString&&"string"==typeof(e+"")}}();t.exports=r},{}],225:[function(e,t,n){function r(e,t){return e="number"==typeof e||i.test(e)?+e:-1,t=null==t?o:t,e>-1&&e%1==0&&t>e}var i=/^\d+$/,o=9007199254740991;t.exports=r},{}],226:[function(e,t,n){function r(e,t){var n=typeof e;if("string"==n&&a.test(e)||"number"==n)return!0;if(i(e))return!1;var r=!s.test(e);return r||null!=t&&e in o(t)}var i=e("../lang/isArray"),o=e("./toObject"),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=r},{"../lang/isArray":236,"./toObject":233}],227:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&i>=e}var i=9007199254740991;t.exports=r},{}],228:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}t.exports=r},{}],229:[function(e,t,n){function r(e){return e===e&&!i(e)}var i=e("../lang/isObject");t.exports=r},{"../lang/isObject":239}],230:[function(e,t,n){function r(e,t){e=i(e);for(var n=-1,r=t.length,o={};++n<r;){var s=t[n];s in e&&(o[s]=e[s])}return o}var i=e("./toObject");t.exports=r},{"./toObject":233}],231:[function(e,t,n){function r(e,t){var n={};return i(e,function(e,r,i){t(e,r,i)&&(n[r]=e)}),n}var i=e("./baseForIn");t.exports=r},{"./baseForIn":196}],232:[function(e,t,n){function r(e){for(var t=u(e),n=t.length,r=n&&e.length,c=!!r&&a(r)&&(o(e)||i(e)||l(e)),f=-1,h=[];++f<n;){var d=t[f];(c&&s(d,r)||p.call(e,d))&&h.push(d)}return h}var i=e("../lang/isArguments"),o=e("../lang/isArray"),s=e("./isIndex"),a=e("./isLength"),l=e("../lang/isString"),u=e("../object/keysIn"),c=Object.prototype,p=c.hasOwnProperty;t.exports=r},{"../lang/isArguments":235,"../lang/isArray":236,"../lang/isString":240,"../object/keysIn":243,"./isIndex":225,"./isLength":227}],233:[function(e,t,n){function r(e){if(s.unindexedChars&&o(e)){for(var t=-1,n=e.length,r=Object(e);++t<n;)r[t]=e.charAt(t);return r}return i(e)?e:Object(e)}var i=e("../lang/isObject"),o=e("../lang/isString"),s=e("../support");t.exports=r},{"../lang/isObject":239,"../lang/isString":240,"../support":247}],234:[function(e,t,n){function r(e){if(o(e))return e;var t=[];return i(e).replace(s,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t}var i=e("./baseToString"),o=e("../lang/isArray"),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,a=/\\(\\)?/g;t.exports=r},{"../lang/isArray":236,"./baseToString":208}],235:[function(e,t,n){function r(e){return o(e)&&i(e)&&a.call(e,"callee")&&!l.call(e,"callee")}var i=e("../internal/isArrayLike"),o=e("../internal/isObjectLike"),s=Object.prototype,a=s.hasOwnProperty,l=s.propertyIsEnumerable;t.exports=r},{"../internal/isArrayLike":223,"../internal/isObjectLike":228}],236:[function(e,t,n){var r=e("../internal/getNative"),i=e("../internal/isLength"),o=e("../internal/isObjectLike"),s="[object Array]",a=Object.prototype,l=a.toString,u=r(Array,"isArray"),c=u||function(e){return o(e)&&i(e.length)&&l.call(e)==s};t.exports=c},{"../internal/getNative":221,"../internal/isLength":227,"../internal/isObjectLike":228}],237:[function(e,t,n){function r(e){return i(e)&&a.call(e)==o}var i=e("./isObject"),o="[object Function]",s=Object.prototype,a=s.toString;t.exports=r},{"./isObject":239}],238:[function(e,t,n){function r(e){return null==e?!1:i(e)?p.test(u.call(e)):s(e)&&(o(e)?p:a).test(e)}var i=e("./isFunction"),o=e("../internal/isHostObject"),s=e("../internal/isObjectLike"),a=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,p=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},{"../internal/isHostObject":224,"../internal/isObjectLike":228,"./isFunction":237}],239:[function(e,t,n){function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=r},{}],240:[function(e,t,n){function r(e){return"string"==typeof e||i(e)&&a.call(e)==o}var i=e("../internal/isObjectLike"),o="[object String]",s=Object.prototype,a=s.toString;t.exports=r},{"../internal/isObjectLike":228}],241:[function(e,t,n){function r(e){return o(e)&&i(e.length)&&!!M[O.call(e)]}var i=e("../internal/isLength"),o=e("../internal/isObjectLike"),s="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",p="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",m="[object RegExp]",b="[object Set]",y="[object String]",v="[object WeakMap]",g="[object ArrayBuffer]",_="[object Float32Array]",T="[object Float64Array]",E="[object Int8Array]",C="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",P="[object Uint8ClampedArray]",x="[object Uint16Array]",k="[object Uint32Array]",M={};M[_]=M[T]=M[E]=M[C]=M[w]=M[S]=M[P]=M[x]=M[k]=!0,M[s]=M[a]=M[g]=M[l]=M[u]=M[c]=M[p]=M[f]=M[h]=M[d]=M[m]=M[b]=M[y]=M[v]=!1;var A=Object.prototype,O=A.toString;t.exports=r},{"../internal/isLength":227,"../internal/isObjectLike":228}],242:[function(e,t,n){var r=e("../internal/getNative"),i=e("../internal/isArrayLike"),o=e("../lang/isObject"),s=e("../internal/shimKeys"),a=e("../support"),l=r(Object,"keys"),u=l?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||("function"==typeof e?a.enumPrototypes:i(e))?s(e):o(e)?l(e):[]}:s;t.exports=u},{"../internal/getNative":221,"../internal/isArrayLike":223,"../internal/shimKeys":232,"../lang/isObject":239,"../support":247}],243:[function(e,t,n){function r(e){if(null==e)return[];c(e)||(e=Object(e));var t=e.length;t=t&&u(t)&&(s(e)||o(e)||p(e))&&t||0;for(var n=e.constructor,r=-1,i=a(n)&&n.prototype||w,h=i===e,d=Array(t),m=t>0,y=f.enumErrorProps&&(e===C||e instanceof Error),v=f.enumPrototypes&&a(e);++r<t;)d[r]=r+"";for(var _ in e)v&&"prototype"==_||y&&("message"==_||"name"==_)||m&&l(_,t)||"constructor"==_&&(h||!P.call(e,_))||d.push(_);if(f.nonEnumShadows&&e!==w){var M=e===S?T:e===C?b:x.call(e),A=k[M]||k[g];for(M==g&&(i=w),t=E.length;t--;){_=E[t];var O=A[_];h&&O||(O?!P.call(e,_):e[_]===i[_])||d.push(_)}}return d}var i=e("../internal/arrayEach"),o=e("../lang/isArguments"),s=e("../lang/isArray"),a=e("../lang/isFunction"),l=e("../internal/isIndex"),u=e("../internal/isLength"),c=e("../lang/isObject"),p=e("../lang/isString"),f=e("../support"),h="[object Array]",d="[object Boolean]",m="[object Date]",b="[object Error]",y="[object Function]",v="[object Number]",g="[object Object]",_="[object RegExp]",T="[object String]",E=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],C=Error.prototype,w=Object.prototype,S=String.prototype,P=w.hasOwnProperty,x=w.toString,k={};k[h]=k[m]=k[v]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},k[d]=k[T]={constructor:!0,toString:!0,valueOf:!0},k[b]=k[y]=k[_]={constructor:!0,toString:!0},k[g]={constructor:!0},i(E,function(e){for(var t in k)if(P.call(k,t)){var n=k[t];n[e]=P.call(n,e)}}),t.exports=r},{"../internal/arrayEach":185,"../internal/isIndex":225,"../internal/isLength":227,"../lang/isArguments":235,"../lang/isArray":236,"../lang/isFunction":237,"../lang/isObject":239,"../lang/isString":240,"../support":247}],244:[function(e,t,n){var r=e("../internal/arrayMap"),i=e("../internal/baseDifference"),o=e("../internal/baseFlatten"),s=e("../internal/bindCallback"),a=e("./keysIn"),l=e("../internal/pickByArray"),u=e("../internal/pickByCallback"),c=e("../function/restParam"),p=c(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=r(o(t),String);return l(e,i(a(e),t))}var n=s(t[0],t[1],3);return u(e,function(e,t,r){return!n(e,t,r)})});t.exports=p},{"../function/restParam":183,"../internal/arrayMap":186,"../internal/baseDifference":190,"../internal/baseFlatten":194,"../internal/bindCallback":209,"../internal/pickByArray":230,"../internal/pickByCallback":231,"./keysIn":243}],245:[function(e,t,n){function r(e){e=o(e);for(var t=-1,n=i(e),r=n.length,s=Array(r);++t<r;){var a=n[t];s[t]=[a,e[a]]}return s}var i=e("./keys"),o=e("../internal/toObject");t.exports=r},{"../internal/toObject":233,"./keys":242}],246:[function(e,t,n){var r=e("../internal/baseFlatten"),i=e("../internal/bindCallback"),o=e("../internal/pickByArray"),s=e("../internal/pickByCallback"),a=e("../function/restParam"),l=a(function(e,t){return null==e?{}:"function"==typeof t[0]?s(e,i(t[0],t[1],3)):o(e,r(t))});t.exports=l},{"../function/restParam":183,"../internal/baseFlatten":194,"../internal/bindCallback":209,"../internal/pickByArray":230,"../internal/pickByCallback":231}],247:[function(e,t,n){var r=Array.prototype,i=Error.prototype,o=Object.prototype,s=o.propertyIsEnumerable,a=r.splice,l={};!function(e){var t=function(){this.x=e},n={0:e,length:e},r=[];t.prototype={valueOf:e,y:e};for(var o in new t)r.push(o);l.enumErrorProps=s.call(i,"message")||s.call(i,"name"),l.enumPrototypes=s.call(t,"prototype"),l.nonEnumShadows=!/valueOf/.test(r),l.ownLast="x"!=r[0],l.spliceObjects=(a.call(n,0,1),!n[0]),l.unindexedChars="x"[0]+Object("x")[0]!="xx"}(1,0),t.exports=l},{}],248:[function(e,t,n){function r(e){return e}t.exports=r},{}],249:[function(e,t,n){function r(e){return s(e)?i(e):o(e)}var i=e("../internal/baseProperty"),o=e("../internal/basePropertyDeep"),s=e("../internal/isKey");t.exports=r},{"../internal/baseProperty":205,"../internal/basePropertyDeep":206,"../internal/isKey":226}],250:[function(e,t,n){function r(e){return i(Object(e))}var i=Object.getPrototypeOf;t.exports=r},{}],251:[function(e,t,n){function r(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}t.exports=r},{}],252:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}t.exports=r},{}],253:[function(e,t,n){function r(e){if(!s(e)||f.call(e)!=a||o(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==p}var i=e("./_getPrototype"),o=e("./_isHostObject"),s=e("./isObjectLike"),a="[object Object]",l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,p=u.call(Object),f=l.toString;t.exports=r},{"./_getPrototype":250,"./_isHostObject":251,"./isObjectLike":252}],254:[function(e,t,n){!function(e,t){e(function(){"use strict";function e(e,t){return null!=e&&null!=t&&e.toLowerCase()===t.toLowerCase()}function n(e,t){var n,r,i=e.length;if(!i||!t)return!1;for(n=t.toLowerCase(),r=0;i>r;++r)if(n===e[r].toLowerCase())return!0;return!1}function r(e){for(var t in e)a.call(e,t)&&(e[t]=new RegExp(e[t],"i"))}function i(e,t){this.ua=e||"",this._cache={},this.maxPhoneWidth=t||600}var o={};o.mobileDetectRules={phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b",Samsung:"Samsung|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo 3DS",Amoi:"Amoi",INQ:"INQ",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI)\\b",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",
|
||
PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9",JXDTablet:"Android.*\\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bJolla\\b|\\bTP750\\b"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+",Skyfire:"Skyfire",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",Tizen:"Tizen",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Puffin:"Puffin",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:"Firefox/[VER]",Fennec:"Fennec/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]","UC Browser":"UC Browser[VER]",MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},o.detectMobileBrowsers={fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i};var s,a=Object.prototype.hasOwnProperty;return o.FALLBACK_PHONE="UnknownPhone",o.FALLBACK_TABLET="UnknownTablet",o.FALLBACK_MOBILE="UnknownMobile",s="isArray"in Array?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},function(){var e,t,n,i,l,u,c=o.mobileDetectRules;for(e in c.props)if(a.call(c.props,e)){for(t=c.props[e],s(t)||(t=[t]),l=t.length,i=0;l>i;++i)n=t[i],u=n.indexOf("[VER]"),u>=0&&(n=n.substring(0,u)+"([\\w._\\+]+)"+n.substring(u+5)),t[i]=new RegExp(n,"i");c.props[e]=t}r(c.oss),r(c.phones),r(c.tablets),r(c.uas),r(c.utils),c.oss0={WindowsPhoneOS:c.oss.WindowsPhoneOS,WindowsMobileOS:c.oss.WindowsMobileOS}}(),o.findMatch=function(e,t){for(var n in e)if(a.call(e,n)&&e[n].test(t))return n;return null},o.findMatches=function(e,t){var n=[];for(var r in e)a.call(e,r)&&e[r].test(t)&&n.push(r);return n},o.getVersionStr=function(e,t){var n,r,i,s,l=o.mobileDetectRules.props;if(a.call(l,e))for(n=l[e],i=n.length,r=0;i>r;++r)if(s=n[r].exec(t),null!==s)return s[1];return null},o.getVersion=function(e,t){var n=o.getVersionStr(e,t);return n?o.prepareVersionNo(n):NaN},o.prepareVersionNo=function(e){var t;return t=e.split(/[a-z._ \/\-]/i),1===t.length&&(e=t[0]),t.length>1&&(e=t[0]+".",t.shift(),e+=t.join("")),Number(e)},o.isMobileFallback=function(e){return o.detectMobileBrowsers.fullPattern.test(e)||o.detectMobileBrowsers.shortPattern.test(e.substr(0,4))},o.isTabletFallback=function(e){return o.detectMobileBrowsers.tabletPattern.test(e)},o.prepareDetectionCache=function(e,n,r){if(e.mobile===t){var s,a,l;return(a=o.findMatch(o.mobileDetectRules.tablets,n))?(e.mobile=e.tablet=a,void(e.phone=null)):(s=o.findMatch(o.mobileDetectRules.phones,n))?(e.mobile=e.phone=s,void(e.tablet=null)):void(o.isMobileFallback(n)?(l=i.isPhoneSized(r),l===t?(e.mobile=o.FALLBACK_MOBILE,e.tablet=e.phone=null):l?(e.mobile=e.phone=o.FALLBACK_PHONE,e.tablet=null):(e.mobile=e.tablet=o.FALLBACK_TABLET,e.phone=null)):o.isTabletFallback(n)?(e.mobile=e.tablet=o.FALLBACK_TABLET,e.phone=null):e.mobile=e.tablet=e.phone=null)}},o.mobileGrade=function(e){var t=null!==e.mobile();return e.os("iOS")&&e.version("iPad")>=4.3||e.os("iOS")&&e.version("iPhone")>=3.1||e.os("iOS")&&e.version("iPod")>=3.1||e.version("Android")>2.1&&e.is("Webkit")||e.version("Windows Phone OS")>=7||e.is("BlackBerry")&&e.version("BlackBerry")>=6||e.match("Playbook.*Tablet")||e.version("webOS")>=1.4&&e.match("Palm|Pre|Pixi")||e.match("hp.*TouchPad")||e.is("Firefox")&&e.version("Firefox")>=12||e.is("Chrome")&&e.is("AndroidOS")&&e.version("Android")>=4||e.is("Skyfire")&&e.version("Skyfire")>=4.1&&e.is("AndroidOS")&&e.version("Android")>=2.3||e.is("Opera")&&e.version("Opera Mobi")>11&&e.is("AndroidOS")||e.is("MeeGoOS")||e.is("Tizen")||e.is("Dolfin")&&e.version("Bada")>=2||(e.is("UC Browser")||e.is("Dolfin"))&&e.version("Android")>=2.3||e.match("Kindle Fire")||e.is("Kindle")&&e.version("Kindle")>=3||e.is("AndroidOS")&&e.is("NookTablet")||e.version("Chrome")>=11&&!t||e.version("Safari")>=5&&!t||e.version("Firefox")>=4&&!t||e.version("MSIE")>=7&&!t||e.version("Opera")>=10&&!t?"A":e.os("iOS")&&e.version("iPad")<4.3||e.os("iOS")&&e.version("iPhone")<3.1||e.os("iOS")&&e.version("iPod")<3.1||e.is("Blackberry")&&e.version("BlackBerry")>=5&&e.version("BlackBerry")<6||e.version("Opera Mini")>=5&&e.version("Opera Mini")<=6.5&&(e.version("Android")>=2.3||e.is("iOS"))||e.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||e.version("Opera Mobi")>=11&&e.is("SymbianOS")?"B":(e.version("BlackBerry")<5||e.match("MSIEMobile|Windows CE.*Mobile")||e.version("Windows Mobile")<=5.2,"C")},o.detectOS=function(e){return o.findMatch(o.mobileDetectRules.oss0,e)||o.findMatch(o.mobileDetectRules.oss,e)},o.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},i.prototype={constructor:i,mobile:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===t&&(this._cache.userAgent=o.findMatch(o.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===t&&(this._cache.userAgents=o.findMatches(o.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===t&&(this._cache.os=o.detectOS(this.ua)),this._cache.os},version:function(e){return o.getVersion(e,this.ua)},versionStr:function(e){return o.getVersionStr(e,this.ua)},is:function(t){return n(this.userAgents(),t)||e(t,this.os())||e(t,this.phone())||e(t,this.tablet())||n(o.findMatches(o.mobileDetectRules.utils,this.ua),t)},match:function(e){return e instanceof RegExp||(e=new RegExp(e,"i")),e.test(this.ua)},isPhoneSized:function(e){return i.isPhoneSized(e||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===t&&(this._cache.grade=o.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?i.isPhoneSized=function(e){return 0>e?t:o.getDeviceSmallerSide()<=e}:i.isPhoneSized=function(){},i._impl=o,i})}(function(e){if("undefined"!=typeof t&&t.exports)return function(e){t.exports=e()};if("function"==typeof define&&define.amd)return define;if("undefined"!=typeof window)return function(e){window.MobileDetect=e()};throw new Error("unknown environment")}())},{}],255:[function(e,t,n){function r(e){if(e=""+e,!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*l;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function i(e){return e>=c?Math.round(e/c)+"d":e>=u?Math.round(e/u)+"h":e>=l?Math.round(e/l)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function o(e){return s(e,c,"day")||s(e,u,"hour")||s(e,l,"minute")||s(e,a,"second")||e+" ms"}function s(e,t,n){return t>e?void 0:1.5*t>e?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var a=1e3,l=60*a,u=60*l,c=24*u,p=365.25*c;t.exports=function(e,t){return t=t||{},"string"==typeof e?r(e):t["long"]?o(e):i(e)}},{}],256:[function(e,t,n){var r=e("./lib/util"),i=e("./lib/keys"),o=e("./lib/kbdutil"),s=e("./lib/input"),a=e("./lib/websock"),l=e("./lib/base64"),u=e("./lib/des"),c=e("./lib/tinf"),p=e("./lib/display"),f=e("./lib/rfb"),h={Util:r,Keys:i,KbdUtil:o,Input:s,Websock:a,Base64:l,DES:u,TINF:c,Display:p,RFB:f};t.exports=h},{"./lib/base64":257,"./lib/des":258,"./lib/display":259,"./lib/input":260,"./lib/kbdutil":261,"./lib/keys":262,"./lib/rfb":263,"./lib/tinf":264,"./lib/util":265,"./lib/websock":266}],257:[function(e,t,n){var r=e("debug")("noVNC:ERROR:Base64");r.log=console.warn.bind(console);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),o="=",s=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];t.exports={encode:function(e){for(var t="",n=e.length,r=n%3,o=0;n-2>o;o+=3)t+=i[e[o]>>2],t+=i[((3&e[o])<<4)+(e[o+1]>>4)],t+=i[((15&e[o+1])<<2)+(e[o+2]>>6)],t+=i[63&e[o+2]];var s=0;return 2===r?(s=n-r,t+=i[e[s]>>2],t+=i[((3&e[s])<<4)+(e[s+1]>>4)],t+=i[(15&e[s+1])<<2],t+=i[64]):1===r&&(s=n-r,t+=i[e[s]>>2],t+=i[(3&e[s])<<4],t+=i[64],t+=i[64]),t},decode:function(e,t){t="undefined"!=typeof t?t:0;var n,i,a=0,l=0,u=e.indexOf("=")-t;0>u&&(u=e.length-t),i=3*(u>>2)+Math.floor(u%4/1.5),n=new Array(i);for(var c=0,p=t;p<e.length;p++){var f=s[127&e.charCodeAt(p)],h=e.charAt(p)===o;-1!==f?(l=l<<6|f,a+=6,a>=8&&(a-=8,h||(n[c++]=l>>a&255),l&=(1<<a)-1)):r("decode() | illegal character code "+e.charCodeAt(p)+" at position "+p)}if(a){r("decode() | corrupted Base64 string");var d=new Error("Corrupted Base64 string");throw d.name="Base64-Error",d}return n}}},{debug:123}],258:[function(e,t,n){function r(e){var t,n,r,i,o,s,a,l,u,c,p=[],f=[],h=[];for(n=0,r=56;56>n;++n,r-=8)r+=-5>r?65:-3>r?31:-1>r?63:27===r?35:0,i=7&r,p[n]=0!==(e[r>>>3]&1<<i)?1:0;for(t=0;16>t;++t){for(i=t<<1,o=i+1,h[i]=h[o]=0,s=28;59>s;s+=28)for(n=s-28;s>n;++n)r=n+T[t],s>r?f[n]=p[r]:f[n]=p[r-28];for(n=0;24>n;++n)0!==f[_[n]]&&(h[i]|=1<<23-n),0!==f[_[n+24]]&&(h[o]|=1<<23-n)}for(t=0,u=0,c=0;16>t;++t)a=h[u++],l=h[u++],C[c]=(16515072&a)<<6,C[c]|=(4032&a)<<10,C[c]|=(16515072&l)>>>10,C[c]|=(4032&l)>>>6,++c,C[c]=(258048&a)<<12,C[c]|=(63&a)<<16,C[c]|=(258048&l)>>>4,C[c]|=63&l,++c}function i(e){var t,n,r,i,o=0,s=e.slice(),a=0;for(n=s[o++]<<24|s[o++]<<16|s[o++]<<8|s[o++],r=s[o++]<<24|s[o++]<<16|s[o++]<<8|s[o++],i=252645135&(n>>>4^r),r^=i,n^=i<<4,i=65535&(n>>>16^r),r^=i,n^=i<<16,i=858993459&(r>>>2^n),n^=i,r^=i<<2,i=16711935&(r>>>8^n),n^=i,r^=i<<8,r=r<<1|r>>>31&1,i=2863311530&(n^r),n^=i,r^=i,n=n<<1|n>>>31&1,o=0;8>o;++o)i=r<<28|r>>>4,i^=C[a++],t=v[63&i],t|=b[i>>>8&63],t|=d[i>>>16&63],t|=f[i>>>24&63],i=r^C[a++],t|=g[63&i],t|=y[i>>>8&63],t|=m[i>>>16&63],t|=h[i>>>24&63],n^=t,i=n<<28|n>>>4,i^=C[a++],t=v[63&i],t|=b[i>>>8&63],t|=d[i>>>16&63],t|=f[i>>>24&63],i=n^C[a++],t|=g[63&i],t|=y[i>>>8&63],t|=m[i>>>16&63],t|=h[i>>>24&63],r^=t;for(r=r<<31|r>>>1,i=2863311530&(n^r),n^=i,r^=i,n=n<<31|n>>>1,i=16711935&(n>>>8^r),r^=i,n^=i<<8,i=858993459&(n>>>2^r),r^=i,n^=i<<2,i=65535&(r>>>16^n),n^=i,r^=i<<16,i=252645135&(r>>>4^n),n^=i,r^=i<<4,i=[r,n],o=0;8>o;o++)s[o]=(i[o>>>2]>>>8*(3-o%4))%256,s[o]<0&&(s[o]+=256);return s}function o(e){return i(e.slice(0,8)).concat(i(e.slice(8,16)))}var s,a,l,u,c,p,f,h,d,m,b,y,v,g,_=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],T=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],E=0,C=[];s=65536,a=1<<24,l=s|a,u=4,c=1024,p=u|c,f=[l|c,E|E,s|E,l|p,l|u,s|p,E|u,s|E,E|c,l|c,l|p,E|c,a|p,l|u,a|E,E|u,E|p,a|c,a|c,s|c,s|c,l|E,l|E,a|p,s|u,a|u,a|u,s|u,E|E,E|p,s|p,a|E,s|E,l|p,E|u,l|E,l|c,a|E,a|E,E|c,l|u,s|E,s|c,a|u,E|c,E|u,a|p,s|p,l|p,s|u,l|E,a|p,a|u,E|p,s|p,l|c,E|p,a|c,a|c,E|E,s|u,s|c,E|E,l|u],s=1<<20,a=1<<31,l=s|a,u=32,c=32768,p=u|c,h=[l|p,a|c,E|c,s|p,s|E,E|u,l|u,a|p,a|u,l|p,l|c,a|E,a|c,s|E,E|u,l|u,s|c,s|u,a|p,E|E,a|E,E|c,s|p,l|E,s|u,a|u,E|E,s|c,E|p,l|c,l|E,E|p,E|E,s|p,l|u,s|E,a|p,l|E,l|c,E|c,l|E,a|c,E|u,l|p,s|p,E|u,E|c,a|E,E|p,l|c,s|E,a|u,s|u,a|p,a|u,s|u,s|c,E|E,a|c,E|p,a|E,l|u,l|p,s|c],s=1<<17,a=1<<27,l=s|a,u=8,c=512,p=u|c,d=[E|p,l|c,E|E,l|u,a|c,E|E,s|p,a|c,s|u,a|u,a|u,s|E,l|p,s|u,l|E,E|p,a|E,E|u,l|c,E|c,s|c,l|E,l|u,s|p,a|p,s|c,s|E,a|p,E|u,l|p,E|c,a|E,l|c,a|E,s|u,E|p,s|E,l|c,a|c,E|E,E|c,s|u,l|p,a|c,a|u,E|c,E|E,l|u,a|p,s|E,a|E,l|p,E|u,s|p,s|c,a|u,l|E,a|p,E|p,l|E,s|p,E|u,l|u,s|c],s=8192,a=1<<23,l=s|a,u=1,c=128,p=u|c,m=[l|u,s|p,s|p,E|c,l|c,a|p,a|u,s|u,E|E,l|E,l|E,l|p,E|p,E|E,a|c,a|u,E|u,s|E,a|E,l|u,E|c,a|E,s|u,s|c,a|p,E|u,s|c,a|c,s|E,l|c,l|p,E|p,a|c,a|u,l|E,l|p,E|p,E|E,E|E,l|E,s|c,a|c,a|p,E|u,l|u,s|p,s|p,E|c,l|p,E|p,E|u,s|E,a|u,s|u,l|c,a|p,s|u,s|c,a|E,l|u,E|c,a|E,s|E,l|c],s=1<<25,a=1<<30,l=s|a,u=256,c=1<<19,p=u|c,b=[E|u,s|p,s|c,l|u,E|c,E|u,a|E,s|c,a|p,E|c,s|u,a|p,l|u,l|c,E|p,a|E,s|E,a|c,a|c,E|E,a|u,l|p,l|p,s|u,l|c,a|u,E|E,l|E,s|p,s|E,l|E,E|p,E|c,l|u,E|u,s|E,a|E,s|c,l|u,a|p,s|u,a|E,l|c,s|p,a|p,E|u,s|E,l|c,l|p,E|p,l|E,l|p,s|c,E|E,a|c,l|E,E|p,s|u,a|u,E|c,E|E,a|c,s|p,a|u],s=1<<22,a=1<<29,l=s|a,u=16,c=16384,p=u|c,y=[a|u,l|E,E|c,l|p,l|E,E|u,l|p,s|E,a|c,s|p,s|E,a|u,s|u,a|c,a|E,E|p,E|E,s|u,a|p,E|c,s|c,a|p,E|u,l|u,l|u,E|E,s|p,l|c,E|p,s|c,l|c,a|E,a|c,E|u,l|u,s|c,l|p,s|E,E|p,a|u,s|E,a|c,a|E,E|p,a|u,l|p,s|c,l|E,s|p,l|c,E|E,l|u,E|u,E|c,l|E,s|p,E|c,s|u,a|p,E|E,l|c,a|E,s|u,a|p],s=1<<21,a=1<<26,l=s|a,u=2,c=2048,p=u|c,v=[s|E,l|u,a|p,E|E,E|c,a|p,s|p,l|c,l|p,s|E,E|E,a|u,E|u,a|E,l|u,E|p,a|c,s|p,s|u,a|c,a|u,l|E,l|c,s|u,l|E,E|c,E|p,l|p,s|c,E|u,a|E,s|c,a|E,s|c,s|E,a|p,a|p,l|u,l|u,E|u,s|u,a|E,a|c,s|E,l|c,E|p,s|p,l|c,E|p,a|u,l|p,l|E,s|c,E|E,E|u,l|p,E|E,s|p,l|E,E|c,a|u,a|c,E|c,s|u],s=1<<18,a=1<<28,l=s|a,u=64,c=4096,p=u|c,g=[a|p,E|c,s|E,l|p,a|E,a|p,E|u,a|E,s|u,l|E,l|p,s|c,l|c,s|p,E|c,E|u,l|E,a|u,a|c,E|p,s|c,s|u,l|u,l|c,E|p,E|E,E|E,l|u,a|u,a|c,s|p,s|E,s|p,s|E,l|c,E|c,E|u,l|u,E|c,s|p,a|c,E|u,a|u,l|E,l|u,a|E,s|E,a|p,E|E,l|p,s|u,a|u,l|E,a|c,a|p,E|E,l|p,s|c,s|c,E|p,E|p,s|u,a|E,l|c],t.exports=function(e){return r(e),{encrypt:o}}},{}],259:[function(e,t,n){function r(e){if(i("new()"),this._drawCtx=null,this._c_forceCanvas=!1,this._renderQ=[],this._fb_width=0,this._fb_height=0,this._maxWidth=0,this._maxHeight=0,this._viewportLoc={x:0,y:0,w:0,h:0},this._cleanRect={x1:0,y1:0,x2:-1,y2:-1},this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tile_x=0,this._tile_y=0,a.set_defaults(this,e,{true_color:!0,colourMap:[],scale:1,viewport:!1,render_mode:""}),!this._target)throw new Error("Target must be set");if("string"==typeof this._target)throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._drawCtx||(this._drawCtx=this._target.getContext("2d")),this.clear(),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._render_mode="canvas rendering",null===this._prefer_js&&(this._prefer_js=!0),(this._cursor_uri||null===this._cursor_uri||void 0===this._cursor_uri)&&(this._cursor_uri=a.browserSupportsCursorURIs())}t.exports=r;var i=e("debug")("noVNC:Display"),o=e("debug")("noVNC:ERROR:Display");o.log=console.warn.bind(console);var s=e("bowser").browser,a=e("./util"),l=e("./base64");r.prototype={viewportChangePos:function(e,t){var n=this._viewportLoc;this._viewport||(e=-n.w,t=-n.h);var r=n.x+n.w-1,o=n.y+n.h-1;if(0>e&&n.x+e<0&&(e=-n.x),r+e>=this._fb_width&&(e-=r+e-this._fb_width+1),n.y+t<0&&(t=-n.y),o+t>=this._fb_height&&(t-=o+t-this._fb_height+1),0!==e||0!==t){i("viewportChangePos() | deltaX: "+e+", deltaY: "+t),n.x+=e,r+=e,n.y+=t,o+=t;var s=this._cleanRect;n.x>s.x1&&(s.x1=n.x),r<s.x2&&(s.x2=r),n.y>s.y1&&(s.y1=n.y),o<s.y2&&(s.y2=o);var a,l;0>e?(a=0,l=-e):(a=n.w-e,l=e);var u,c;0>t?(u=0,c=-t):(u=n.h-t,c=t);var p=this._drawCtx.fillStyle,f=this._target;this._drawCtx.fillStyle="rgb(255,255,255)",0!==e&&(this._drawCtx.drawImage(f,0,0,n.w,n.h,-e,0,n.w,n.h),this._drawCtx.fillRect(a,0,l,n.h)),0!==t&&(this._drawCtx.drawImage(f,0,0,n.w,n.h,0,-t,n.w,n.h),this._drawCtx.fillRect(0,u,n.w,c)),this._drawCtx.fillStyle=p}},viewportChangeSize:function(e,t){"undefined"!=typeof e&&"undefined"!=typeof t||(i("viewportChangeSize() | setting viewport to full display region"),e=this._fb_width,t=this._fb_height);var n=this._viewportLoc;if(n.w!==e||n.h!==t){this._viewport&&(0!==this._maxWidth&&e>this._maxWidth&&(e=this._maxWidth),0!==this._maxHeight&&t>this._maxHeight&&(t=this._maxHeight));var r=this._cleanRect;e<n.w&&r.x2>n.x+e-1&&(r.x2=n.x+e-1),t<n.h&&r.y2>n.y+t-1&&(r.y2=n.y+t-1),n.w=e,n.h=t;var o=this._target;if(o.width!==e||o.height!==t){var s=null;if(n.w>0&&n.h>0&&o.width>0&&o.height>0){var a=o.width<n.w?o.width:n.w,l=o.height<n.h?o.height:n.h;s=this._drawCtx.getImageData(0,0,a,l)}o.width!==e&&(o.width=e,o.style.width=e+"px"),o.height!==t&&(o.height=t,o.style.height=t+"px"),s&&this._drawCtx.putImageData(s,0,0)}}},getCleanDirtyReset:function(){var e=this._viewportLoc,t=this._cleanRect,n={x:t.x1,y:t.y1,w:t.x2-t.x1+1,h:t.y2-t.y1+1},r=[];if(t.x1>=t.x2||t.y1>=t.y2)r.push({x:e.x,y:e.y,w:e.w,h:e.h});else{var i=e.x+e.w-1,o=e.y+e.h-1;e.x<t.x1&&r.push({x:e.x,y:e.y,w:t.x1-e.x+1,h:e.h}),i>t.x2&&r.push({x:t.x2+1,y:e.y,w:i-t.x2,h:e.h}),e.y<t.y1&&r.push({x:t.x1,y:e.y,w:t.x2-t.x1+1,h:t.y1-e.y}),o>t.y2&&r.push({x:t.x1,y:t.y2+1,w:t.x2-t.x1+1,h:o-t.y2})}return this._cleanRect={x1:e.x,y1:e.y,x2:e.x+e.w-1,y2:e.y+e.h-1},{cleanBox:n,dirtyBoxes:r}},absX:function(e){return e+this._viewportLoc.x},absY:function(e){return e+this._viewportLoc.y},resize:function(e,t){this._prevDrawStyle="",this._fb_width=e,this._fb_height=t,this._rescale(this._scale),this.viewportChangeSize()},clear:function(){this._logo?(this.resize(this._logo.width,this._logo.height),this.blitStringImage(this._logo.data,0,0)):(s.msie&&10===parseInt(s.version)&&this._drawCtx.clearRect(0,0,this._viewportLoc.w,this._viewportLoc.h),this.resize(240,20),this._drawCtx.clearRect(0,0,this._viewportLoc.w,this._viewportLoc.h)),this._renderQ=[]},fillRect:function(e,t,n,r,i){this._setFillColor(i),this._drawCtx.fillRect(e-this._viewportLoc.x,t-this._viewportLoc.y,n,r)},copyImage:function(e,t,n,r,i,o){var s=e-this._viewportLoc.x,a=t-this._viewportLoc.y,l=n-this._viewportLoc.x,u=r-this._viewportLoc.y;this._drawCtx.drawImage(this._target,s,a,i,o,l,u,i,o)},startTile:function(e,t,n,r,i){if(this._tile_x=e,this._tile_y=t,16===n&&16===r?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(n,r),this._prefer_js){var o;o=this._true_color?i:this._colourMap[i[0]];for(var s=o[2],a=o[1],l=o[0],u=this._tile.data,c=0;n*r*4>c;c+=4)u[c]=s,u[c+1]=a,u[c+2]=l,u[c+3]=255}else this.fillRect(e,t,n,r,i)},subTile:function(e,t,n,r,i){if(this._prefer_js){var o;o=this._true_color?i:this._colourMap[i[0]];for(var s=o[2],a=o[1],l=o[0],u=e+n,c=t+r,p=this._tile.data,f=this._tile.width,h=t;c>h;h++)for(var d=e;u>d;d++){var m=4*(d+h*f);p[m]=s,p[m+1]=a,p[m+2]=l,p[m+3]=255}}else this.fillRect(this._tile_x+e,this._tile_y+t,n,r,i)},finishTile:function(){this._prefer_js&&this._drawCtx.putImageData(this._tile,this._tile_x-this._viewportLoc.x,this._tile_y-this._viewportLoc.y)},blitImage:function(e,t,n,r,i,o){this._true_color?this._bgrxImageData(e,t,this._viewportLoc.x,this._viewportLoc.y,n,r,i,o):this._cmapImageData(e,t,this._viewportLoc.x,this._viewportLoc.y,n,r,i,o)},blitRgbImage:function(e,t,n,r,i,o){this._true_color?this._rgbImageData(e,t,this._viewportLoc.x,this._viewportLoc.y,n,r,i,o):this._cmapImageData(e,t,this._viewportLoc.x,this._viewportLoc.y,n,r,i,o)},blitStringImage:function(e,t,n){
|
||
var r=new Image;return r.onload=function(){this._drawCtx.drawImage(r,t-this._viewportLoc.x,n-this._viewportLoc.y)}.bind(this),r.src=e,r},drawImage:function(e,t,n){this._drawCtx.drawImage(e,t-this._viewportLoc.x,n-this._viewportLoc.y)},renderQ_push:function(e){this._renderQ.push(e),1===this._renderQ.length&&this._scan_renderQ()},changeCursor:function(e,t,n,i,s,a){return this._cursor_uri===!1?void o("changeCursor() | called but no cursor data URI support"):void(this._true_color?r.changeCursor(this._target,e,t,n,i,s,a):r.changeCursor(this._target,e,t,n,i,s,a,this._colourMap))},defaultCursor:function(){this._target.style.cursor="default"},disableLocalCursor:function(){this._target.style.cursor="none"},clippingDisplay:function(){var e=this._viewportLoc,t=this._fb_width>e.w||this._fb_height>e.h,n=0!==this._maxWidth&&0!==this._maxHeight,r=!1;return n&&(r=e.w>this._maxWidth||e.h>this._maxHeight),t||n&&r},get_context:function(){return this._drawCtx},set_scale:function(e){this._rescale(e)},set_width:function(e){this._fb_width=e},get_width:function(){return this._fb_width},set_height:function(e){this._fb_height=e},get_height:function(){return this._fb_height},autoscale:function(e,t,n){var r,i=e/t,o=this._fb_width/this._fb_height;r=o>=i?e/this._fb_width:t/this._fb_height;var s,a;return r>1&&n?(s=this._fb_width,a=this._fb_height,r=1):o>=i?(s=e,a=Math.round(e/o)):(s=Math.round(t*o),a=t),this._target.style.width=s+"px",this._target.style.height=a+"px",this._scale=r,r},_rescale:function(e){this._scale=e;var t,n;this._viewport&&0!==this._maxWidth&&0!==this._maxHeight?(t=Math.min(this._fb_width,this._maxWidth),n=Math.min(this._fb_height,this._maxHeight)):(t=this._fb_width,n=this._fb_height),this._target.style.width=Math.round(e*t)+"px",this._target.style.height=Math.round(e*n)+"px"},_setFillColor:function(e){var t;t=this._true_color?e:this._colourMap[e[0]];var n="rgb("+t[2]+","+t[1]+","+t[0]+")";n!==this._prevDrawStyle&&(this._drawCtx.fillStyle=n,this._prevDrawStyle=n)},_rgbImageData:function(e,t,n,r,i,o,s,a){for(var l=this._drawCtx.createImageData(i,o),u=l.data,c=0,p=a;i*o*4>c;c+=4,p+=3)u[c]=s[p],u[c+1]=s[p+1],u[c+2]=s[p+2],u[c+3]=255;this._drawCtx.putImageData(l,e-n,t-r)},_bgrxImageData:function(e,t,n,r,i,o,s,a){for(var l=this._drawCtx.createImageData(i,o),u=l.data,c=0,p=a;i*o*4>c;c+=4,p+=4)u[c]=s[p+2],u[c+1]=s[p+1],u[c+2]=s[p],u[c+3]=255;this._drawCtx.putImageData(l,e-n,t-r)},_cmapImageData:function(e,t,n,r,i,o,s,a){for(var l=this._drawCtx.createImageData(i,o),u=l.data,c=this._colourMap,p=0,f=a;i*o*4>p;p+=4,f++){var h=c[s[f]];u[p]=h[2],u[p+1]=h[1],u[p+2]=h[0],u[p+3]=255}this._drawCtx.putImageData(l,e-n,t-r)},_scan_renderQ:function(){for(var e=!0;e&&this._renderQ.length>0;){var t=this._renderQ[0];switch(t.type){case"copy":this.copyImage(t.old_x,t.old_y,t.x,t.y,t.width,t.height);break;case"fill":this.fillRect(t.x,t.y,t.width,t.height,t.color);break;case"blit":this.blitImage(t.x,t.y,t.width,t.height,t.data,0);break;case"blitRgb":this.blitRgbImage(t.x,t.y,t.width,t.height,t.data,0);break;case"img":t.img.complete?this.drawImage(t.img,t.x,t.y):e=!1}e&&this._renderQ.shift()}this._renderQ.length>0&&a.requestAnimationFrame(this._scan_renderQ.bind(this))}},a.make_properties(r,[["target","wo","dom"],["context","ro","raw"],["logo","rw","raw"],["true_color","rw","bool"],["colourMap","rw","arr"],["scale","rw","float"],["viewport","rw","bool"],["width","rw","int"],["height","rw","int"],["maxWidth","rw","int"],["maxHeight","rw","int"],["render_mode","ro","str"],["prefer_js","rw","str"],["cursor_uri","rw","raw"]]),r.changeCursor=function(e,t,n,r,i,o,s,a){var u=o,c=s;u>c?c=u:u=c;var p=[];p.push16le=function(e){this.push(255&e,e>>8&255)},p.push32le=function(e){this.push(255&e,e>>8&255,e>>16&255,e>>24&255)};var f=40,h=u*c*4,d=Math.ceil(u*c/8),m=Math.ceil(u*c/8);p.push16le(0),p.push16le(2),p.push16le(1),p.push(u),p.push(c),p.push(0),p.push(0),p.push16le(r),p.push16le(i),p.push32le(f+h+d+m),p.push32le(22),p.push32le(f),p.push32le(u),p.push32le(2*c),p.push16le(1),p.push16le(32),p.push32le(0),p.push32le(d+m),p.push32le(0),p.push32le(0),p.push32le(0),p.push32le(0);var b,y;for(b=c-1;b>=0;b--)for(y=0;u>y;y++)if(y>=o||b>=s)p.push(0),p.push(0),p.push(0),p.push(0);else{var v=b*Math.ceil(o/8)+Math.floor(y/8),g=n[v]<<y%8&128?255:0;if(a){v=o*b+y;var _=a[t[v]];p.push(_[2]),p.push(_[1]),p.push(_[0]),p.push(g)}else v=4*(o*b+y),p.push(t[v+2]),p.push(t[v+1]),p.push(t[v]),p.push(g)}for(b=0;c>b;b++)for(y=0;y<Math.ceil(u/8);y++)p.push(0);for(b=0;c>b;b++)for(y=0;y<Math.ceil(u/8);y++)p.push(0);var T="data:image/x-icon;base64,"+l.encode(p);e.style.cursor="url("+T+")"+r+" "+i+", default"}},{"./base64":257,"./util":265,bowser:25,debug:123}],260:[function(e,t,n){(function(n){function r(e){this._keyDownList=[],u.set_defaults(this,e,{target:document,focused:!0}),this._handler=new c.KeyEventDecoder(c.ModifierSync(),c.VerifyCharModifier(c.TrackKeyState(c.EscapeModifiers(this._handleRfbEvent.bind(this))))),this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this)}}function i(e){this._mouseCaptured=!1,this._doubleClickTimer=null,this._lastTouchPos=null,u.set_defaults(this,e,{target:document,focused:!0,scale:1,zoom:1,touchButton:1}),this._eventHandlers={mousedown:this._handleMouseDown.bind(this),mouseup:this._handleMouseUp.bind(this),mousemove:this._handleMouseMove.bind(this),mousewheel:this._handleMouseWheel.bind(this),mousedisable:this._handleMouseDisable.bind(this)}}var o=t.exports={},s=e("debug")("noVNC:Input:Keybord"),a=e("debug")("noVNC:Input:Mouse"),l=e("bowser").browser,u=e("./util"),c=e("./kbdutil");r.prototype={_handleRfbEvent:function(e){this._onKeyPress&&(s("onKeyPress: "+("keydown"===e.type?"down":"up")+", keysym: "+e.keysym.keysym+"("+e.keysym.keyname+")"),this._onKeyPress(e.keysym.keysym,"keydown"===e.type))},_handleKeyDown:function(e){return this._focused&&this._handler.keydown(e)?(u.stopEvent(e),!1):!0},_handleKeyPress:function(e){return this._focused&&this._handler.keypress(e)?(u.stopEvent(e),!1):!0},_handleKeyUp:function(e){return this._focused&&this._handler.keyup(e)?(u.stopEvent(e),!1):!0},_allKeysUp:function(){s("allKeysUp"),this._handler.releaseAll()},grab:function(){s("grab()");var e=this._target;u.addEvent(e,"keydown",this._eventHandlers.keydown),u.addEvent(e,"keyup",this._eventHandlers.keyup),u.addEvent(e,"keypress",this._eventHandlers.keypress),u.addEvent(n,"blur",this._eventHandlers.blur)},ungrab:function(){s("ungrab()");var e=this._target;u.removeEvent(e,"keydown",this._eventHandlers.keydown),u.removeEvent(e,"keyup",this._eventHandlers.keyup),u.removeEvent(e,"keypress",this._eventHandlers.keypress),u.removeEvent(n,"blur",this._eventHandlers.blur),this._allKeysUp()},sync:function(e){this._handler.syncModifiers(e)}},u.make_properties(r,[["target","wo","dom"],["focused","rw","bool"],["onKeyPress","rw","func"]]),i.prototype={_captureMouse:function(){this._target.setCapture&&this._target.setCapture(),this._mouseCaptured=!0},_releaseMouse:function(){this._target.releaseCapture&&this._target.releaseCapture(),this._mouseCaptured=!1},_resetDoubleClickTimer:function(){this._doubleClickTimer=null},_handleMouseButton:function(e,t){if(!this._focused)return!0;this._notify&&this._notify(e);var r,i=e?e:n.event,o=u.getEventPosition(e,this._target,this._scale,this._zoom);if(e.touches||e.changedTouches){if(1===t){if(null===this._doubleClickTimer)this._lastTouchPos=o;else{clearTimeout(this._doubleClickTimer);var s=this._lastTouchPos.x-o.x,l=this._lastTouchPos.y-o.y,c=Math.sqrt(s*s+l*l);c<20*n.devicePixelRatio&&(o=this._lastTouchPos)}this._doubleClickTimer=setTimeout(this._resetDoubleClickTimer.bind(this),500)}r=this._touchButton}else r=i.which?1<<i.button:(1&i.button)+2*(2&i.button)+(4&i.button)/2;return this._onMouseButton&&(a("onMouseButton: "+(t?"down":"up")+", x: "+o.x+", y: "+o.y+", bmask: "+r),this._onMouseButton(o.x,o.y,t,r)),u.stopEvent(e),!1},_handleMouseDown:function(e){this._captureMouse(),this._handleMouseButton(e,1)},_handleMouseUp:function(e){this._mouseCaptured&&(this._handleMouseButton(e,0),this._releaseMouse())},_handleMouseWheel:function(e){if(!this._focused)return!0;this._notify&&this._notify(e);var t,r=e?e:n.event,i=u.getEventPosition(e,this._target,this._scale,this._zoom),o=r.detail?-1*r.detail:r.wheelDelta/40;return t=o>0?8:16,this._onMouseButton&&(this._onMouseButton(i.x,i.y,1,t),this._onMouseButton(i.x,i.y,0,t)),u.stopEvent(e),!1},_handleMouseMove:function(e){if(!this._focused)return!0;this._notify&&this._notify(e);var t=u.getEventPosition(e,this._target,this._scale,this._zoom);return this._onMouseMove&&this._onMouseMove(t.x,t.y),u.stopEvent(e),!1},_handleMouseDisable:function(e){if(!this._focused)return!0;var t=u.getEventPosition(e,this._target,this._scale,this._zoom);return t.realx>=0&&t.realy>=0&&t.realx<this._target.offsetWidth&&t.realy<this._target.offsetHeight?(u.stopEvent(e),!1):!0},grab:function(){a("grab()");var e=this._target,t="ontouchstart"in document.documentElement;t&&(u.addEvent(e,"touchstart",this._eventHandlers.mousedown),u.addEvent(n,"touchend",this._eventHandlers.mouseup),u.addEvent(e,"touchend",this._eventHandlers.mouseup),u.addEvent(e,"touchmove",this._eventHandlers.mousemove)),t&&!this._enableMouseAndTouch||(u.addEvent(e,"mousedown",this._eventHandlers.mousedown),u.addEvent(n,"mouseup",this._eventHandlers.mouseup),u.addEvent(e,"mouseup",this._eventHandlers.mouseup),u.addEvent(e,"mousemove",this._eventHandlers.mousemove),u.addEvent(e,l.gecko?"DOMMouseScroll":"mousewheel",this._eventHandlers.mousewheel)),u.addEvent(document,"click",this._eventHandlers.mousedisable),u.addEvent(document.body,"contextmenu",this._eventHandlers.mousedisable)},ungrab:function(){a("ungrab()");var e=this._target,t="ontouchstart"in document.documentElement;t&&(u.removeEvent(e,"touchstart",this._eventHandlers.mousedown),u.removeEvent(n,"touchend",this._eventHandlers.mouseup),u.removeEvent(e,"touchend",this._eventHandlers.mouseup),u.removeEvent(e,"touchmove",this._eventHandlers.mousemove)),t&&!this._enableMouseAndTouch||(u.removeEvent(e,"mousedown",this._eventHandlers.mousedown),u.removeEvent(n,"mouseup",this._eventHandlers.mouseup),u.removeEvent(e,"mouseup",this._eventHandlers.mouseup),u.removeEvent(e,"mousemove",this._eventHandlers.mousemove),u.removeEvent(e,l.gecko?"DOMMouseScroll":"mousewheel",this._eventHandlers.mousewheel)),u.removeEvent(document,"click",this._eventHandlers.mousedisable),u.removeEvent(document.body,"contextmenu",this._eventHandlers.mousedisable)}},u.make_properties(i,[["target","ro","dom"],["notify","ro","func"],["focused","rw","bool"],["scale","rw","float"],["zoom","rw","float"],["enableMouseAndTouch","rw","bool"],["onMouseButton","rw","func"],["onMouseMove","rw","func"],["touchButton","rw","int"]]),o.Keyboard=r,o.Mouse=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./kbdutil":261,"./util":265,bowser:25,debug:123}],261:[function(e,t,n){function r(){return navigator&&!!/mac/i.exec(navigator.platform)}function i(){return navigator&&!!/win/i.exec(navigator.platform)}function o(){return navigator&&!!/linux/i.exec(navigator.platform)}var s=e("debug")("noVNC:ERROR:KbdUtil");s.log=console.warn.bind(console);var a=e("./keys"),l=t.exports={hasShortcutModifier:function(e,t){var n={};for(var r in t)parseInt(r)!==a.XK_Shift_L&&(n[r]=t[r]);var i=0;for(var o in t)n[o]&&++i;return l.hasCharModifier(e,n)?i>e.length:i>0},hasCharModifier:function(e,t){if(0===e.length)return!1;for(var n=0;n<e.length;++n)if(!t[e[n]])return!1;return!0},ModifierSync:function(e){function t(e,t){function n(e){return{keysym:a.lookup(e),type:s[e]?"keydown":"keyup"}}var r=[];return void 0!==e.ctrlKey&&e.ctrlKey!==s[a.XK_Control_L]&&t!==a.XK_Control_L&&(s[a.XK_Control_L]=e.ctrlKey,r.push(n(a.XK_Control_L))),void 0!==e.altKey&&e.altKey!==s[a.XK_Alt_L]&&t!==a.XK_Alt_L&&(s[a.XK_Alt_L]=e.altKey,r.push(n(a.XK_Alt_L))),void 0!==e.altGraphKey&&e.altGraphKey!==s[a.XK_ISO_Level3_Shift]&&t!==a.XK_ISO_Level3_Shift&&(s[a.XK_ISO_Level3_Shift]=e.altGraphKey,r.push(n(a.XK_ISO_Level3_Shift))),void 0!==e.shiftKey&&e.shiftKey!==s[a.XK_Shift_L]&&t!==a.XK_Shift_L&&(s[a.XK_Shift_L]=e.shiftKey,r.push(n(a.XK_Shift_L))),void 0!==e.metaKey&&e.metaKey!==s[a.XK_Meta_L]&&t!==a.XK_Meta_L&&(s[a.XK_Meta_L]=e.metaKey,r.push(n(a.XK_Meta_L))),r}function n(e,n){var r=l.getKeysym(e),i=r?r.keysym:null;return null!==i&&void 0!==s[i]&&(s[i]=n),t(e,i)}e||(e=r()?[a.XK_Alt_L]:i()?[a.XK_Alt_L,a.XK_Control_L]:o()?[a.XK_ISO_Level3_Shift]:[]);var s={};return s[a.XK_Control_L]=!1,s[a.XK_Alt_L]=!1,s[a.XK_ISO_Level3_Shift]=!1,s[a.XK_Shift_L]=!1,s[a.XK_Meta_L]=!1,{keydown:function(e){return n(e,!0)},keyup:function(e){return n(e,!1)},syncAny:function(e){return t(e)},hasShortcutModifier:function(){return l.hasShortcutModifier(e,s)},activeCharModifier:function(){return l.hasCharModifier(e,s)?e:null}}},getKey:function(e){return"keyCode"in e&&"key"in e?e.key+":"+e.keyCode:"keyCode"in e?e.keyCode:e.key},getKeysym:function(e){var t;if(e["char"]&&1===e["char"].length?t=e["char"].charCodeAt():e.charCode?t=e.charCode:e.keyCode&&"keypress"===e.type&&(t=e.keyCode),t){var n=a.fromUnicode(l.substituteCodepoint(t));if(n)return n}return e.keyCode?a.lookup(l.keysymFromKeyCode(e.keyCode,e.shiftKey)):e.which?a.lookup(l.keysymFromKeyCode(e.which,e.shiftKey)):null},keysymFromKeyCode:function(e,t){if("number"!=typeof e)return null;if(e>=48&&57>=e)return e;if(e>=65&&90>=e)return t?e:e+32;if(e>=96&&105>=e)return a.XK_KP_0+(e-96);switch(e){case 32:return a.XK_space;case 106:return a.XK_KP_Multiply;case 107:return a.XK_KP_Add;case 108:return a.XK_KP_Separator;case 109:return a.XK_KP_Subtract;case 110:return a.XK_KP_Decimal;case 111:return a.XK_KP_Divide;case 187:return a.XK_plus;case 188:return a.XK_comma;case 189:return a.XK_minus;case 190:return a.XK_period}return l.nonCharacterKey({keyCode:e})},nonCharacterKey:function(e){if(!e.keyCode)return null;var t=e.keyCode;if(t>=112&&135>=t)return a.XK_F1+t-112;switch(t){case 8:return a.XK_BackSpace;case 13:return a.XK_Return;case 9:return a.XK_Tab;case 27:return a.XK_Escape;case 46:return a.XK_Delete;case 36:return a.XK_Home;case 35:return a.XK_End;case 33:return a.XK_Page_Up;case 34:return a.XK_Page_Down;case 45:return a.XK_Insert;case 37:return a.XK_Left;case 38:return a.XK_Up;case 39:return a.XK_Right;case 40:return a.XK_Down;case 16:return a.XK_Shift_L;case 17:return a.XK_Control_L;case 18:return a.XK_Alt_L;case 224:return a.XK_Meta_L;case 225:return a.XK_ISO_Level3_Shift;case 91:return a.XK_Super_L;case 92:return a.XK_Super_R;case 93:return a.XK_Menu;default:return null}},substituteCodepoint:function(e){var t={536:350,537:351,538:354,539:355},n=t[e];return n?n:e},KeyEventDecoder:function(e,t){function n(e){for(var n=0;n<e.length;++n)t(e[n])}function r(n,r){var i={type:r},o=l.getKey(n);o&&(i.keyId=o);var s=l.getKeysym(n),a=e.hasShortcutModifier()||!!e.activeCharModifier();s&&("keydown"!==r||l.nonCharacterKey(n)||a)&&(i.keysym=s);var u=16===n.keyCode||"Shift"===n.key,c=!u&&("keydown"!==r||e.hasShortcutModifier()||!!l.nonCharacterKey(n)),p="keydown"===r&&e.activeCharModifier()&&!l.nonCharacterKey(n),f=e.activeCharModifier();if(f&&s){for(var h=!1,d=0;d<f.length;++d)f[d]===s.keysym&&(h=!0);"keypress"!==r||h||(i.escape=e.activeCharModifier())}return p&&t({type:"stall"}),t(i),c}return{keydown:function(t){return n(e.keydown(t)),r(t,"keydown")},keypress:function(e){return r(e,"keypress")},keyup:function(t){return n(e.keyup(t)),r(t,"keyup")},syncModifiers:function(t){n(e.syncAny(t))},releaseAll:function(){t({type:"releaseall"})}}},VerifyCharModifier:function(e){function t(){function i(){clearTimeout(r),r=null,t()}if(!r)for(;0!==n.length;){var o=n[0];switch(n=n.splice(1),o.type){case"stall":return void(r=setTimeout(i,5));case"keydown":0!==n.length&&"keypress"===n[0].type&&(!n[0].escape||o.keysym&&o.keysym.keysym===n[0].keysym.keysym||(o.escape=n[0].escape),o.keysym=n[0].keysym,n=n.splice(1))}"stall"!==o.type&&e(o)}}var n=[],r=null;return function(e){n.push(e),t()}},TrackKeyState:function(e){var t=[];return function(n){var r=0!==t.length?t[t.length-1]:null;switch(n.type){case"keydown":r&&n.keyId&&r.keyId===n.keyId||(r={keyId:n.keyId,keysyms:{}},t.push(r)),n.keysym&&(r.keysyms[n.keysym.keysym]=n.keysym,r.ignoreKeyPress=!0,e(n));break;case"keypress":r||(r={keyId:n.keyId,keysyms:{}},t.push(r)),n.keysym||s("TrackKeyState() | keypress with no keysym:",n),n.keysym&&!r.ignoreKeyPress&&(r.keysyms[n.keysym.keysym]=n.keysym,n.type="keydown",e(n));break;case"keyup":if(0===t.length)return;for(var i=null,o=0;o!==t.length;++o)if(t[o].keyId===n.keyId){i=o;break}null===i&&(i=t.length-1);var a=t.splice(i,1)[0],l=function(){function e(){}return function(t){return e.prototype=t,new e}}();for(var u in a.keysyms){var c=l(n);c.keysym=a.keysyms[u],e(c)}break;case"releaseall":for(var o=0;o<t.length;++o)for(var u in t[o].keysyms){var p=t[o].keysyms[u];e({keyId:0,keysym:p,type:"keyup"})}t=[]}}},EscapeModifiers:function(e){return function(t){var n;if("keydown"!==t.type||void 0===t.escape)return void e(t);for(n=0;n<t.escape.length;++n)e({type:"keyup",keyId:0,keysym:a.lookup(t.escape[n])});for(e(t),n=0;n<t.escape.length;++n)e({type:"keydown",keyId:0,keysym:a.lookup(t.escape[n])})}}}},{"./keys":262,debug:123}],262:[function(e,t,n){function r(e){return e?{keysym:e,keyname:s?s[e]:e}:void 0}function i(e){return r(a[e])}var o={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255},s=null,a={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:92,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:126,160:160,161:161,162:162,163:163,164:164,165:165,166:166,167:167,168:168,169:169,170:170,171:171,172:172,173:173,174:174,175:175,176:176,177:177,178:178,179:179,180:180,181:181,182:182,183:183,184:184,185:185,186:186,187:187,188:188,189:189,190:190,191:191,192:192,193:193,194:194,195:195,196:196,197:197,198:198,199:199,200:200,201:201,202:202,203:203,204:204,205:205,206:206,207:207,208:208,209:209,210:210,211:211,212:212,213:213,214:214,215:215,216:216,217:217,218:218,219:219,220:220,221:221,222:222,223:223,224:224,225:225,226:226,227:227,228:228,229:229,230:230,231:231,232:232,233:233,234:234,235:235,236:236,237:237,238:238,239:239,240:240,241:241,242:242,243:243,244:244,245:245,246:246,247:247,248:248,249:249,250:250,251:251,252:252,253:253,254:254,255:255,256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,300:16777516,301:16777517,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,372:16777588,373:16777589,374:16777590,375:16777591,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,399:16777615,402:2294,415:16777631,416:16777632,417:16777633,431:16777647,432:16777648,437:16777653,438:16777654,439:16777655,466:16777681,486:16777702,487:16777703,601:16777817,629:16777845,658:16777874,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1170:16778386,1171:16778387,1174:16778390,1175:16778391,1178:16778394,1179:16778395,1180:16778396,1181:16778397,1186:16778402,1187:16778403,1198:16778414,1199:16778415,1200:16778416,1201:16778417,1202:16778418,1203:16778419,1206:16778422,1207:16778423,1208:16778424,1209:16778425,1210:16778426,1211:16778427,1240:16778456,1241:16778457,1250:16778466,1251:16778467,1256:16778472,1257:16778473,1262:16778478,1263:16778479,1329:16778545,1330:16778546,1331:16778547,1332:16778548,1333:16778549,1334:16778550,1335:16778551,1336:16778552,1337:16778553,1338:16778554,1339:16778555,1340:16778556,1341:16778557,1342:16778558,1343:16778559,1344:16778560,1345:16778561,1346:16778562,1347:16778563,1348:16778564,1349:16778565,1350:16778566,1351:16778567,1352:16778568,1353:16778569,1354:16778570,1355:16778571,1356:16778572,1357:16778573,1358:16778574,1359:16778575,1360:16778576,1361:16778577,1362:16778578,1363:16778579,1364:16778580,1365:16778581,1366:16778582,1370:16778586,1371:16778587,1372:16778588,1373:16778589,1374:16778590,1377:16778593,1378:16778594,1379:16778595,1380:16778596,1381:16778597,1382:16778598,1383:16778599,1384:16778600,1385:16778601,1386:16778602,1387:16778603,1388:16778604,1389:16778605,1390:16778606,1391:16778607,1392:16778608,1393:16778609,1394:16778610,1395:16778611,1396:16778612,1397:16778613,1398:16778614,1399:16778615,1400:16778616,1401:16778617,1402:16778618,1403:16778619,1404:16778620,1405:16778621,1406:16778622,1407:16778623,1408:16778624,1409:16778625,1410:16778626,1411:16778627,1412:16778628,1413:16778629,1414:16778630,1415:16778631,1417:16778633,1418:16778634,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,1619:16778835,1620:16778836,1621:16778837,1632:16778848,1633:16778849,1634:16778850,1635:16778851,1636:16778852,1637:16778853,1638:16778854,1639:16778855,1640:16778856,1641:16778857,1642:16778858,1648:16778864,1657:16778873,1662:16778878,1670:16778886,1672:16778888,1681:16778897,1688:16778904,1700:16778916,1705:16778921,1711:16778927,1722:16778938,1726:16778942,1729:16778945,1740:16778956,1746:16778962,1748:16778964,1776:16778992,1777:16778993,1778:16778994,1779:16778995,1780:16778996,1781:16778997,1782:16778998,1783:16778999,1784:16779e3,1785:16779001,3458:16780674,3459:16780675,3461:16780677,3462:16780678,3463:16780679,3464:16780680,3465:16780681,3466:16780682,3467:16780683,3468:16780684,3469:16780685,3470:16780686,3471:16780687,3472:16780688,3473:16780689,3474:16780690,3475:16780691,3476:16780692,3477:16780693,3478:16780694,3482:16780698,3483:16780699,3484:16780700,3485:16780701,3486:16780702,3487:16780703,3488:16780704,3489:16780705,3490:16780706,3491:16780707,3492:16780708,3493:16780709,3494:16780710,3495:16780711,3496:16780712,3497:16780713,3498:16780714,3499:16780715,3500:16780716,3501:16780717,3502:16780718,3503:16780719,3504:16780720,3505:16780721,3507:16780723,3508:16780724,3509:16780725,3510:16780726,3511:16780727,3512:16780728,3513:16780729,3514:16780730,3515:16780731,3517:16780733,3520:16780736,3521:16780737,3522:16780738,3523:16780739,3524:16780740,3525:16780741,3526:16780742,3530:16780746,3535:16780751,3536:16780752,3537:16780753,3538:16780754,3539:16780755,3540:16780756,3542:16780758,3544:16780760,3545:16780761,3546:16780762,3547:16780763,3548:16780764,3549:16780765,3550:16780766,3551:16780767,3570:16780786,3571:16780787,3572:16780788,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,4304:16781520,4305:16781521,4306:16781522,4307:16781523,4308:16781524,4309:16781525,4310:16781526,4311:16781527,4312:16781528,4313:16781529,4314:16781530,4315:16781531,4316:16781532,4317:16781533,4318:16781534,4319:16781535,4320:16781536,4321:16781537,4322:16781538,4323:16781539,4324:16781540,4325:16781541,4326:16781542,4327:16781543,4328:16781544,4329:16781545,4330:16781546,4331:16781547,4332:16781548,4333:16781549,4334:16781550,4335:16781551,4336:16781552,4337:16781553,4338:16781554,4339:16781555,4340:16781556,4341:16781557,4342:16781558,7682:16784898,7683:16784899,7690:16784906,7691:16784907,7710:16784926,7711:16784927,7734:16784950,7735:16784951,7744:16784960,7745:16784961,7766:16784982,7767:16784983,
|
||
7776:16784992,7777:16784993,7786:16785002,7787:16785003,7808:16785024,7809:16785025,7810:16785026,7811:16785027,7812:16785028,7813:16785029,7818:16785034,7819:16785035,7840:16785056,7841:16785057,7842:16785058,7843:16785059,7844:16785060,7845:16785061,7846:16785062,7847:16785063,7848:16785064,7849:16785065,7850:16785066,7851:16785067,7852:16785068,7853:16785069,7854:16785070,7855:16785071,7856:16785072,7857:16785073,7858:16785074,7859:16785075,7860:16785076,7861:16785077,7862:16785078,7863:16785079,7864:16785080,7865:16785081,7866:16785082,7867:16785083,7868:16785084,7869:16785085,7870:16785086,7871:16785087,7872:16785088,7873:16785089,7874:16785090,7875:16785091,7876:16785092,7877:16785093,7878:16785094,7879:16785095,7880:16785096,7881:16785097,7882:16785098,7883:16785099,7884:16785100,7885:16785101,7886:16785102,7887:16785103,7888:16785104,7889:16785105,7890:16785106,7891:16785107,7892:16785108,7893:16785109,7894:16785110,7895:16785111,7896:16785112,7897:16785113,7898:16785114,7899:16785115,7900:16785116,7901:16785117,7902:16785118,7903:16785119,7904:16785120,7905:16785121,7906:16785122,7907:16785123,7908:16785124,7909:16785125,7910:16785126,7911:16785127,7912:16785128,7913:16785129,7914:16785130,7915:16785131,7916:16785132,7917:16785133,7918:16785134,7919:16785135,7920:16785136,7921:16785137,7922:16785138,7923:16785139,7924:16785140,7925:16785141,7926:16785142,7927:16785143,7928:16785144,7929:16785145,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8304:16785520,8308:16785524,8309:16785525,8310:16785526,8311:16785527,8312:16785528,8313:16785529,8320:16785536,8321:16785537,8322:16785538,8323:16785539,8324:16785540,8325:16785541,8326:16785542,8327:16785543,8328:16785544,8329:16785545,8352:16785568,8353:16785569,8354:16785570,8355:16785571,8356:16785572,8357:16785573,8358:16785574,8359:16785575,8360:16785576,8361:3839,8362:16785578,8363:16785579,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8709:16785925,8711:2245,8712:16785928,8713:16785929,8715:16785931,8728:3018,8730:2262,8731:16785947,8732:16785948,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8748:16785964,8749:16785965,8756:2240,8757:16785973,8764:2248,8771:2249,8773:16785992,8775:16785991,8800:2237,8801:2255,8802:16786018,8803:16786019,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,10240:16787456,10241:16787457,10242:16787458,10243:16787459,10244:16787460,10245:16787461,10246:16787462,10247:16787463,10248:16787464,10249:16787465,10250:16787466,10251:16787467,10252:16787468,10253:16787469,10254:16787470,10255:16787471,10256:16787472,10257:16787473,10258:16787474,10259:16787475,10260:16787476,10261:16787477,10262:16787478,10263:16787479,10264:16787480,10265:16787481,10266:16787482,10267:16787483,10268:16787484,10269:16787485,10270:16787486,10271:16787487,10272:16787488,10273:16787489,10274:16787490,10275:16787491,10276:16787492,10277:16787493,10278:16787494,10279:16787495,10280:16787496,10281:16787497,10282:16787498,10283:16787499,10284:16787500,10285:16787501,10286:16787502,10287:16787503,10288:16787504,10289:16787505,10290:16787506,10291:16787507,10292:16787508,10293:16787509,10294:16787510,10295:16787511,10296:16787512,10297:16787513,10298:16787514,10299:16787515,10300:16787516,10301:16787517,10302:16787518,10303:16787519,10304:16787520,10305:16787521,10306:16787522,10307:16787523,10308:16787524,10309:16787525,10310:16787526,10311:16787527,10312:16787528,10313:16787529,10314:16787530,10315:16787531,10316:16787532,10317:16787533,10318:16787534,10319:16787535,10320:16787536,10321:16787537,10322:16787538,10323:16787539,10324:16787540,10325:16787541,10326:16787542,10327:16787543,10328:16787544,10329:16787545,10330:16787546,10331:16787547,10332:16787548,10333:16787549,10334:16787550,10335:16787551,10336:16787552,10337:16787553,10338:16787554,10339:16787555,10340:16787556,10341:16787557,10342:16787558,10343:16787559,10344:16787560,10345:16787561,10346:16787562,10347:16787563,10348:16787564,10349:16787565,10350:16787566,10351:16787567,10352:16787568,10353:16787569,10354:16787570,10355:16787571,10356:16787572,10357:16787573,10358:16787574,10359:16787575,10360:16787576,10361:16787577,10362:16787578,10363:16787579,10364:16787580,10365:16787581,10366:16787582,10367:16787583,10368:16787584,10369:16787585,10370:16787586,10371:16787587,10372:16787588,10373:16787589,10374:16787590,10375:16787591,10376:16787592,10377:16787593,10378:16787594,10379:16787595,10380:16787596,10381:16787597,10382:16787598,10383:16787599,10384:16787600,10385:16787601,10386:16787602,10387:16787603,10388:16787604,10389:16787605,10390:16787606,10391:16787607,10392:16787608,10393:16787609,10394:16787610,10395:16787611,10396:16787612,10397:16787613,10398:16787614,10399:16787615,10400:16787616,10401:16787617,10402:16787618,10403:16787619,10404:16787620,10405:16787621,10406:16787622,10407:16787623,10408:16787624,10409:16787625,10410:16787626,10411:16787627,10412:16787628,10413:16787629,10414:16787630,10415:16787631,10416:16787632,10417:16787633,10418:16787634,10419:16787635,10420:16787636,10421:16787637,10422:16787638,10423:16787639,10424:16787640,10425:16787641,10426:16787642,10427:16787643,10428:16787644,10429:16787645,10430:16787646,10431:16787647,10432:16787648,10433:16787649,10434:16787650,10435:16787651,10436:16787652,10437:16787653,10438:16787654,10439:16787655,10440:16787656,10441:16787657,10442:16787658,10443:16787659,10444:16787660,10445:16787661,10446:16787662,10447:16787663,10448:16787664,10449:16787665,10450:16787666,10451:16787667,10452:16787668,10453:16787669,10454:16787670,10455:16787671,10456:16787672,10457:16787673,10458:16787674,10459:16787675,10460:16787676,10461:16787677,10462:16787678,10463:16787679,10464:16787680,10465:16787681,10466:16787682,10467:16787683,10468:16787684,10469:16787685,10470:16787686,10471:16787687,10472:16787688,10473:16787689,10474:16787690,10475:16787691,10476:16787692,10477:16787693,10478:16787694,10479:16787695,10480:16787696,10481:16787697,10482:16787698,10483:16787699,10484:16787700,10485:16787701,10486:16787702,10487:16787703,10488:16787704,10489:16787705,10490:16787706,10491:16787707,10492:16787708,10493:16787709,10494:16787710,10495:16787711,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200};o.lookup=r,o.fromUnicode=i,t.exports=o},{}],263:[function(e,t,n){function r(e){o("new()"),e=e||{},this._rfb_url=null,this._rfb_password="",this._rfb_state="disconnected",this._rfb_version=0,this._rfb_max_version=3.8,this._rfb_auth_scheme="",this._rfb_tightvnc=!1,this._rfb_xvp_ver=0,this._encodings=[["COPYRECT",1],["TIGHT",7],["TIGHT_PNG",-260],["HEXTILE",5],["RRE",2],["RAW",0],["DesktopSize",-223],["Cursor",-239],["JPEG_quality_med",-26],["compress_hi",-247],["last_rect",-224],["xvp",-309],["ExtendedDesktopSize",-308]],this._encHandlers={},this._encNames={},this._encStats={},this._sock=null,this._display=null,this._keyboard=null,this._mouse=null,this._sendTimer=null,this._disconnTimer=null,this._msgTimer=null,this._FBU={rects:0,subrects:0,lines:0,tiles:0,bytes:0,x:0,y:0,width:0,height:0,encoding:0,subencoding:-1,background:null,zlib:[]},this._fb_Bpp=4,this._fb_depth=3,this._fb_width=0,this._fb_height=0,this._fb_name="",this._rre_chunk_sz=100,this._timing={last_fbu:0,fbu_total:0,fbu_total_cnt:0,full_fbu_total:0,full_fbu_cnt:0,fbu_rt_start:0,fbu_rt_total:0,fbu_rt_cnt:0,pixels:0},this._supportsSetDesktopSize=!1,this._screen_id=0,this._screen_flags=0,this._mouse_buttonMask=0,this._mouse_arr=[],this._viewportDragging=!1,this._viewportDragPos={},a.set_defaults(this,e,{target:"null",focusContainer:document,encrypt:!1,true_color:!0,local_cursor:!1,shared:!0,view_only:!1,xvp_password_sep:"@",disconnectTimeout:3,wsProtocols:["binary","base64"],repeaterID:"",viewportDrag:!1,forceAuthScheme:0,enableMouseAndTouch:!1,onUpdateState:function(){},onPasswordRequired:function(){},onClipboard:function(){},onBell:function(){},onFBUReceive:function(){},onFBUComplete:function(){},onFBResize:function(){},onDesktopName:function(){},onXvpInit:function(){},onUnknownMessageType:null}),Object.keys(r.encodingHandlers).forEach(function(e){this._encHandlers[e]=r.encodingHandlers[e].bind(this)}.bind(this));for(var t=0;t<this._encodings.length;t++)this._encHandlers[this._encodings[t][1]]=this._encHandlers[this._encodings[t][0]],this._encNames[this._encodings[t][1]]=this._encodings[t][0],this._encStats[this._encodings[t][1]]=[0,0];try{this._display=new h({target:this._target})}catch(n){throw s("Display exception: "+n),n}this._keyboard=new p({target:this._focusContainer,onKeyPress:this._handleKeyPress.bind(this)}),this._mouse=new f({target:this._target,onMouseButton:this._handleMouseButton.bind(this),onMouseMove:this._handleMouseMove.bind(this),notify:this._keyboard.sync.bind(this._keyboard),enableMouseAndTouch:this._enableMouseAndTouch}),this._sock=new l,this._sock.on("message",this._handle_message.bind(this)),this._sock.on("open",function(){"connect"===this._rfb_state?this._updateState("ProtocolVersion","Starting VNC handshake"):this._fail("Got unexpected WebSocket connection")}.bind(this)),this._sock.on("close",function(e){o("WebSocket closed");var t="";e.code&&(t=" (code: "+e.code,e.reason&&(t+=", reason: "+e.reason),t+=")"),"disconnect"===this._rfb_state?this._updateState("disconnected","VNC disconnected"+t):"ProtocolVersion"===this._rfb_state?this._fail("Failed to connect to server"+t):this._rfb_state in{failed:1,disconnected:1}?o("Received onclose while disconnected"+t):this._fail("Server disconnected"+t),this._sock.off("close")}.bind(this)),this._sock.on("error",function(){s("WebSocket error")}),this._init_vars();var i=this._display.get_render_mode();this._updateState("loaded","noVNC ready: "+i)}function i(e){return";base64,"+d.encode(e)}t.exports=r;var o=e("debug")("noVNC:RFB"),s=e("debug")("noVNC:ERROR:RFB");s.log=console.warn.bind(console);var a=e("./util"),l=e("./websock"),u=e("./keys"),c=e("./input"),p=c.Keyboard,f=c.Mouse,h=e("./display"),d=e("./base64"),m=e("./des"),b=e("./tinf");r.prototype={connect:function(e,t){this._rfb_url=e,this._rfb_password=void 0!==t?t:"",this._updateState("connect","Connecting")},disconnect:function(){this._updateState("disconnect","Disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")},sendPassword:function(e){this._rfb_password=e,this._rfb_state="Authentication",setTimeout(this._init_msg.bind(this),1)},sendCtrlAltDel:function(){if("normal"!==this._rfb_state||this._view_only)return!1;var e=[];e=e.concat(r.messages.keyEvent(u.XK_Control_L,1)),e=e.concat(r.messages.keyEvent(u.XK_Alt_L,1)),e=e.concat(r.messages.keyEvent(u.XK_Delete,1)),e=e.concat(r.messages.keyEvent(u.XK_Delete,0)),e=e.concat(r.messages.keyEvent(u.XK_Alt_L,0)),e=e.concat(r.messages.keyEvent(u.XK_Control_L,0)),this._sock.send(e)},xvpOp:function(e,t){return this._rfb_xvp_ver<e?!1:(o("xvpOp() | sending XVP operation "+t+" (version "+e+")"),this._sock.send_string("ú\x00"+String.fromCharCode(e)+String.fromCharCode(t)),!0)},xvpShutdown:function(){return this.xvpOp(1,2)},xvpReboot:function(){return this.xvpOp(1,3)},xvpReset:function(){return this.xvpOp(1,4)},sendKey:function(e,t){if("normal"!==this._rfb_state||this._view_only)return!1;var n=[];"undefined"!=typeof t?(o("sendKey() | sending key code ("+(t?"down":"up")+"): "+e),n=n.concat(r.messages.keyEvent(e,t?1:0))):(o("sendKey() | sending key code (down + up): "+e),n=n.concat(r.messages.keyEvent(e,1)),n=n.concat(r.messages.keyEvent(e,0))),this._sock.send(n)},clipboardPasteFrom:function(e){"normal"===this._rfb_state&&this._sock.send(r.messages.clientCutText(e))},setDesktopSize:function(e,t){if("normal"===this._rfb_state&&this._supportsSetDesktopSize){var n=[251];a.push8(n,0),a.push16(n,e),a.push16(n,t),a.push8(n,1),a.push8(n,0),a.push32(n,this._screen_id),a.push16(n,0),a.push16(n,0),a.push16(n,e),a.push16(n,t),a.push32(n,this._screen_flags),this._sock.send(n)}},_connect:function(){o("_connect() | connecting to "+this._rfb_url),this._sock.open(this._rfb_url,this._wsProtocols)},_init_vars:function(){this._sock.init(),this._FBU.rects=0,this._FBU.subrects=0,this._FBU.lines=0,this._FBU.tiles=0,this._FBU.zlibs=[],this._mouse_buttonMask=0,this._mouse_arr=[],this._rfb_tightvnc=!1;var e;for(e=0;e<this._encodings.length;e++)this._encStats[this._encodings[e][1]][0]=0;for(e=0;4>e;e++)this._FBU.zlibs[e]=new b,this._FBU.zlibs[e].init()},_print_stats:function(){o("_print_stats() | encoding stats for this connection:");var e,t;for(e=0;e<this._encodings.length;e++)t=this._encStats[this._encodings[e][1]],t[0]+t[1]>0&&o("_print_stats() | "+this._encodings[e][0]+": "+t[0]+" rects");for(o("_print_stats() | encoding stats since page load:"),e=0;e<this._encodings.length;e++)t=this._encStats[this._encodings[e][1]],o("_print_stats() | "+this._encodings[e][0]+": "+t[1]+" rects")},_cleanupSocket:function(e){this._sendTimer&&(clearInterval(this._sendTimer),this._sendTimer=null),this._msgTimer&&(clearInterval(this._msgTimer),this._msgTimer=null),this._display&&this._display.get_context()&&(this._keyboard.ungrab(),this._mouse.ungrab(),"connect"!==e&&"loaded"!==e&&this._display.defaultCursor(),this._display.clear()),this._sock.close()},_updateState:function(e,t){o('_updateState() | [state:%s, msg:"%s"]',e,t);var n=this._rfb_state;if(e===n)return void o('_updateState() | already in state "'+e+'", ignoring');switch(e in{disconnected:1,loaded:1,connect:1,disconnect:1,failed:1,fatal:1}&&this._cleanupSocket(e),"fatal"===n&&s("_updateState() | fatal error, cannot continue"),!t||"failed"!==e&&"fatal"!==e||s("_updateState() | %s: %s",e,t),"failed"===n&&"disconnected"===e?this._rfb_state="failed":this._rfb_state=e,this._disconnTimer&&"disconnect"!==this._rfb_state&&(o("_updateState() | clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close")),e){case"normal":"disconnected"!==n&&"failed"!==n||s('_updateState() | invalid transition from "disconnected" or "failed" to "normal"');break;case"connect":this._init_vars(),this._connect();break;case"disconnect":this._disconnTimer=setTimeout(function(){this._fail("Disconnect timeout")}.bind(this),1e3*this._disconnectTimeout),this._print_stats();break;case"failed":"disconnected"===n?s('_updateState() | invalid transition from "disconnected" to "failed"'):"normal"===n?s("_updateState() | error while connected"):"init"===n&&s("_updateState() | error while initializing"),setTimeout(function(){this._updateState("disconnected")}.bind(this),50)}"failed"===n&&"disconnected"===e?this._onUpdateState(this,e,n):this._onUpdateState(this,e,n,t)},_fail:function(e){return this._updateState("failed",e),!1},_handle_message:function(){if(0===this._sock.rQlen())return void s("_handle_message() | called on an empty receive queue");switch(this._rfb_state){case"disconnected":case"failed":s("_handle_message() | got data while disconnected");break;case"normal":this._normal_msg()&&this._sock.rQlen()>0&&(null===this._msgTimer?(o("_handle_message() | more data to process, creating timer"),this._msgTimer=setTimeout(function(){this._msgTimer=null,this._handle_message()}.bind(this),10)):o("_handle_message() | more data to process, existing timer"));break;default:this._init_msg()}},_checkEvents:function(){"normal"===this._rfb_state&&!this._viewportDragging&&this._mouse_arr.length>0&&(this._sock.send(this._mouse_arr),this._mouse_arr=[])},_handleKeyPress:function(e,t){this._view_only||this._sock.send(r.messages.keyEvent(e,t))},_handleMouseButton:function(e,t,n,i){if(n?this._mouse_buttonMask|=i:this._mouse_buttonMask^=i,this._viewportDrag){if(n&&!this._viewportDragging)return this._viewportDragging=!0,void(this._viewportDragPos={x:e,y:t});this._viewportDragging=!1}this._view_only||(this._mouse_arr=this._mouse_arr.concat(r.messages.pointerEvent(this._display.absX(e),this._display.absY(t),this._mouse_buttonMask)),this._sock.send(this._mouse_arr),this._mouse_arr=[])},_handleMouseMove:function(e,t){if(this._viewportDragging){var n=this._viewportDragPos.x-e,i=this._viewportDragPos.y-t;return this._viewportDragPos={x:e,y:t},void this._display.viewportChangePos(n,i)}this._view_only||(this._mouse_arr=this._mouse_arr.concat(r.messages.pointerEvent(this._display.absX(e),this._display.absY(t),this._mouse_buttonMask)),this._checkEvents())},_negotiate_protocol_version:function(){if(this._sock.rQlen()<12)return this._fail("Incomplete protocol version");var e=this._sock.rQshiftStr(12).substr(4,7);o("_negotiate_protocol_version() | server ProtocolVersion: "+e);var t=0;switch(e){case"000.000":t=1;break;case"003.003":case"003.006":case"003.889":this._rfb_version=3.3;break;case"003.007":this._rfb_version=3.7;break;case"003.008":case"004.000":case"004.001":this._rfb_version=3.8;break;default:return this._fail("Invalid server version "+e)}if(t){for(var n=this._repeaterID;n.length<250;)n+="\x00";return this._sock.send_string(n),!0}this._rfb_version>this._rfb_max_version&&(this._rfb_version=this._rfb_max_version),this._sendTimer=setInterval(this._sock.flush.bind(this._sock),50);var r="00"+parseInt(this._rfb_version,10)+".00"+10*this._rfb_version%10;this._sock.send_string("RFB "+r+"\n"),this._updateState("Security","Sent ProtocolVersion: "+r)},_negotiate_security:function(){if(this._rfb_version>=3.7){var e=this._sock.rQshift8();if(this._sock.rQwait("security type",e,1))return!1;if(0===e){var t=this._sock.rQshift32(),n=this._sock.rQshiftStr(t);return this._fail("Security failure: "+n)}this._rfb_auth_scheme=0;var r=this._sock.rQshiftBytes(e);if(o("_negotiate_security() | server security types: "+r),this._forceAuthScheme)this._rfb_auth_scheme=this._forceAuthScheme;else for(var i=0;i<r.length;i++)r[i]>this._rfb_auth_scheme&&(r[i]<=16||22===r[i])&&(this._rfb_auth_scheme=r[i]);if(0===this._rfb_auth_scheme)return this._fail("Unsupported security types: "+r);this._sock.send([this._rfb_auth_scheme])}else{if(this._sock.rQwait("security scheme",4))return!1;this._rfb_auth_scheme=this._sock.rQshift32()}return this._updateState("Authentication","Authenticating using scheme: "+this._rfb_auth_scheme),this._init_msg()},_negotiate_xvp_auth:function(){var e=this._xvp_password_sep,t=this._rfb_password.split(e);if(t.length<3)return this._updateState("password","XVP credentials required (user"+e+"target"+e+"password) -- got only "+this._rfb_password),this._onPasswordRequired(this),!1;var n=String.fromCharCode(t[0].length)+String.fromCharCode(t[1].length)+t[0]+t[1];return this._sock.send_string(n),this._rfb_password=t.slice(2).join(e),this._rfb_auth_scheme=2,this._negotiate_authentication()},_negotiate_std_vnc_auth:function(){if(0===this._rfb_password.length&&(this._updateState("password","Password Required"),this._onPasswordRequired(this)),this._sock.rQwait("auth challenge",16))return!1;var e=this._sock.rQshiftBytes(16),t=r.genDES(this._rfb_password,e);return this._sock.send(t),this._updateState("SecurityResult"),!0},_negotiate_tight_tunnels:function(e){for(var t={0:{vendor:"TGHT",signature:"NOTUNNEL"}},n={},r=0;e>r;r++){var i=this._sock.rQshift32(),o=this._sock.rQshiftStr(4),s=this._sock.rQshiftStr(8);n[i]={vendor:o,signature:s}}return n[0]?n[0].vendor!==t[0].vendor||n[0].signature!==t[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")},_negotiate_tight_auth:function(){if(!this._rfb_tightvnc){if(this._sock.rQwait("num tunnels",4))return!1;var e=this._sock.rQshift32();if(e>0&&this._sock.rQwait("tunnel capabilities",16*e,4))return!1;if(this._rfb_tightvnc=!0,e>0)return this._negotiate_tight_tunnels(e),!1}if(this._sock.rQwait("sub auth count",4))return!1;var t=this._sock.rQshift32();if(this._sock.rQwait("sub auth capabilities",16*t,4))return!1;for(var n={STDVNOAUTH__:1,STDVVNCAUTH_:2},r=[],i=0;t>i;i++){var s=this._sock.rQshiftStr(12);r.push(s)}o("_negotiate_tight_auth() | clientSupportedTypes: %o",n),o("_negotiate_tight_auth() | serverSupportedTypes: %o",r);for(var a in n)if(-1!==r.indexOf(a))switch(this._sock.send([0,0,0,n[a]]),a){case"STDVNOAUTH__":return this._updateState("SecurityResult"),!0;case"STDVVNCAUTH_":return this._rfb_auth_scheme=2,this._init_msg();default:return this._fail("Unsupported tiny auth scheme: "+a)}this._fail("No supported sub-auth types!")},_negotiate_authentication:function(){switch(this._rfb_auth_scheme){case 0:if(this._sock.rQwait("auth reason",4))return!1;var e=this._sock.rQshift32(),t=this._sock.rQshiftStr(e);return this._fail("Auth failure: "+t);case 1:return this._rfb_version>=3.8?(this._updateState("SecurityResult"),!0):(this._updateState("ClientInitialisation","No auth required"),this._init_msg());case 22:return this._negotiate_xvp_auth();case 2:return this._negotiate_std_vnc_auth();case 16:return this._negotiate_tight_auth();default:return this._fail("Unsupported auth scheme: "+this._rfb_auth_scheme)}},_handle_security_result:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;switch(this._sock.rQshift32()){case 0:return this._updateState("ClientInitialisation","Authentication OK"),this._init_msg();case 1:if(this._rfb_version>=3.8){var e=this._sock.rQshift32();if(this._sock.rQwait("SecurityResult reason",e,8))return!1;var t=this._sock.rQshiftStr(e);return this._fail(t)}return this._fail("Authentication failure");case 2:return this._fail("Too many auth attempts")}},_negotiate_server_init:function(){if(this._sock.rQwait("server initialization",24))return!1;this._fb_width=this._sock.rQshift16(),this._fb_height=this._sock.rQshift16();var e=this._sock.rQshift8(),t=this._sock.rQshift8(),n=this._sock.rQshift8(),i=this._sock.rQshift8(),l=this._sock.rQshift16(),u=this._sock.rQshift16(),c=this._sock.rQshift16(),p=this._sock.rQshift8(),f=this._sock.rQshift8(),h=this._sock.rQshift8();this._sock.rQskipBytes(3);var d=this._sock.rQshift32();if(this._sock.rQwait("server init name",d,24))return!1;if(this._fb_name=a.decodeUTF8(this._sock.rQshiftStr(d)),this._rfb_tightvnc){if(this._sock.rQwait("TightVNC extended server init header",8,24+d))return!1;var m=this._sock.rQshift16(),b=this._sock.rQshift16(),y=this._sock.rQshift16();this._sock.rQskipBytes(2);var v=16*(m+b+y);if(this._sock.rQwait("TightVNC extended server init header",v,32+d))return!1;var g;for(g=0;m>g;g++)this._sock.rQshiftStr(16);for(g=0;b>g;g++)this._sock.rQshiftStr(16);for(g=0;y>g;g++)this._sock.rQshiftStr(16)}o("_negotiate_server_init() | screen: "+this._fb_width+"x"+this._fb_height+", bpp: "+e+", depth: "+t+", big_endian: "+n+", true_color: "+i+", red_max: "+l+", green_max: "+u+", blue_max: "+c+", red_shift: "+p+", green_shift: "+f+", blue_shift: "+h),0!==n&&s("_negotiate_server_init() | server native endian is not little endian"),16!==p&&s("_negotiate_server_init() | server native red-shift is not 16"),0!==h&&s("_negotiate_server_init() | server native blue-shift is not 0"),this._onDesktopName(this,this._fb_name),this._true_color&&"Intel(r) AMT KVM"===this._fb_name&&(s("_negotiate_server_init() | Intel AMT KVM only supports 8/16 bit depths, disabling true color"),this._true_color=!1),this._display.set_true_color(this._true_color),this._display.resize(this._fb_width,this._fb_height),this._onFBResize(this,this._fb_width,this._fb_height),this._keyboard.grab(),this._mouse.grab(),this._true_color?(this._fb_Bpp=4,this._fb_depth=3):(this._fb_Bpp=1,this._fb_depth=1);var _=r.messages.pixelFormat(this._fb_Bpp,this._fb_depth,this._true_color);_=_.concat(r.messages.clientEncodings(this._encodings,this._local_cursor,this._true_color)),_=_.concat(r.messages.fbUpdateRequests(this._display.getCleanDirtyReset(),this._fb_width,this._fb_height)),this._timing.fbu_rt_start=(new Date).getTime(),this._timing.pixels=0,this._sock.send(_),this._checkEvents(),this._updateState("normal","Connected to: "+this._fb_name)},_init_msg:function(){switch(this._rfb_state){case"ProtocolVersion":return this._negotiate_protocol_version();case"Security":return this._negotiate_security();case"Authentication":return this._negotiate_authentication();case"SecurityResult":return this._handle_security_result();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._updateState("ServerInitialisation","Authentication OK"),!0;case"ServerInitialisation":return this._negotiate_server_init()}},_handle_set_colour_map_msg:function(){o("_handle_set_colour_map_msg()"),this._sock.rQskip8();var e=this._sock.rQshift16(),t=this._sock.rQshift16();if(this._sock.rQwait("SetColorMapEntries",6*t,6))return!1;for(var n=0;t>n;n++){var r=parseInt(this._sock.rQshift16()/256,10),i=parseInt(this._sock.rQshift16()/256,10),s=parseInt(this._sock.rQshift16()/256,10);this._display.set_colourMap([s,i,r],e+n)}return o("_handle_set_colour_map_msg() | colourMap: "+this._display.get_colourMap()),o("_handle_set_colour_map_msg() | registered "+t+" colourMap entries"),!0},_handle_server_cut_text:function(){if(o("_handle_server_cut_text()"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var e=this._sock.rQshift32();if(this._sock.rQwait("ServerCutText",e,8))return!1;var t=this._sock.rQshiftStr(e);return this._onClipboard(this,t),!0},_handle_xvp_msg:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskip8();var e=this._sock.rQshift8(),t=this._sock.rQshift8();switch(t){case 0:this._updateState(this._rfb_state,"Operation Failed");break;case 1:this._rfb_xvp_ver=e,o("_handle_xvp_msg() | XVP extensions enabled (version "+this._rfb_xvp_ver+")"),this._onXvpInit(this._rfb_xvp_ver);break;default:this._fail("Disconnected: illegal server XVP message "+t)}return!0},_normal_msg:function(){var e;switch(e=this._FBU.rects>0?0:this._sock.rQshift8()){case 0:var t=this._framebufferUpdate();return t&&this._sock.send(r.messages.fbUpdateRequests(this._display.getCleanDirtyReset(),this._fb_width,this._fb_height)),t;case 1:return this._handle_set_colour_map_msg();case 2:return o("_normal_msg() | bell"),this._onBell(this),!0;case 3:return this._handle_server_cut_text();case 250:return this._handle_xvp_msg();default:if(!this._onUnknownMessageType)return this._fail("Disconnected: illegal server message type "+e),s("_normal_msg() | sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0;o("_normal_msg() | passing unknown message type "+e+" to the onUnknownMessageType listener");try{return this._onUnknownMessageType(e,this._sock)}catch(n){return s("_normal_msg() | error catched during onUnknownMessageType: %o",n),this._fail("Disconnected: invalid custom server message type "+e),s("_normal_msg() | sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},_framebufferUpdate:function(){var e,t=!0;if(0===this._FBU.rects){if(this._sock.rQwait("FBU header",3,1))return!1;this._sock.rQskip8(),this._FBU.rects=this._sock.rQshift16(),this._FBU.bytes=0,this._timing.cur_fbu=0,this._timing.fbu_rt_start>0&&(e=(new Date).getTime(),o("_framebufferUpdate() | first FBU latency: "+(e-this._timing.fbu_rt_start)))}for(;this._FBU.rects>0;){if("normal"!==this._rfb_state)return!1;if(this._sock.rQwait("FBU",this._FBU.bytes))return!1;if(0===this._FBU.bytes){if(this._sock.rQwait("rect header",12))return!1;var n=this._sock.rQshiftBytes(12);if(this._FBU.x=(n[0]<<8)+n[1],this._FBU.y=(n[2]<<8)+n[3],this._FBU.width=(n[4]<<8)+n[5],this._FBU.height=(n[6]<<8)+n[7],this._FBU.encoding=parseInt((n[8]<<24)+(n[9]<<16)+(n[10]<<8)+n[11],10),this._onFBUReceive(this,{x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height,encoding:this._FBU.encoding,encodingName:this._encNames[this._FBU.encoding]}),!this._encNames[this._FBU.encoding])return this._fail("Disconnected: unsupported encoding "+this._FBU.encoding),!1}if(this._timing.last_fbu=(new Date).getTime(),t=this._encHandlers[this._FBU.encoding](),e=(new Date).getTime(),this._timing.cur_fbu+=e-this._timing.last_fbu,t&&(this._encStats[this._FBU.encoding][0]++,this._encStats[this._FBU.encoding][1]++,this._timing.pixels+=this._FBU.width*this._FBU.height),this._timing.pixels>=this._fb_width*this._fb_height&&((this._FBU.width===this._fb_width&&this._FBU.height===this._fb_height||this._timing.fbu_rt_start>0)&&(this._timing.full_fbu_total+=this._timing.cur_fbu,this._timing.full_fbu_cnt++,o("_framebufferUpdate() | timing of full FBU, curr: "+this._timing.cur_fbu+", total: "+this._timing.full_fbu_total+", cnt: "+this._timing.full_fbu_cnt+", avg: "+this._timing.full_fbu_total/this._timing.full_fbu_cnt)),this._timing.fbu_rt_start>0)){var r=e-this._timing.fbu_rt_start;this._timing.fbu_rt_total+=r,this._timing.fbu_rt_cnt++,o("_framebufferUpdate() | full FBU round-trip, cur: "+r+", total: "+this._timing.fbu_rt_total+", cnt: "+this._timing.fbu_rt_cnt+", avg: "+this._timing.fbu_rt_total/this._timing.fbu_rt_cnt),this._timing.fbu_rt_start=0}if(!t)return t}return this._onFBUComplete(this,{x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height,encoding:this._FBU.encoding,encodingName:this._encNames[this._FBU.encoding]}),!0}},a.make_properties(r,[["target","wo","dom"],["focusContainer","wo","dom"],["encrypt","rw","bool"],["true_color","rw","bool"],["local_cursor","rw","bool"],["shared","rw","bool"],["view_only","rw","bool"],["xvp_password_sep","rw","str"],["disconnectTimeout","rw","int"],["wsProtocols","rw","arr"],["repeaterID","rw","str"],["viewportDrag","rw","bool"],["forceAuthScheme","rw","int"],["enableMouseAndTouch","rw","bool"],["onUpdateState","rw","func"],["onPasswordRequired","rw","func"],["onClipboard","rw","func"],["onBell","rw","func"],["onFBUReceive","rw","func"],["onFBUComplete","rw","func"],["onFBResize","rw","func"],["onDesktopName","rw","func"],["onXvpInit","rw","func"],["onUnknownMessageType","rw","func"]]),r.prototype.set_local_cursor=function(e){!e||e in{0:1,no:1,"false":1}?(this._local_cursor=!1,this._display.disableLocalCursor()):this._display.get_cursor_uri()?this._local_cursor=!0:(o("browser does not support local cursor"),this._display.disableLocalCursor())},r.prototype.get_display=function(){return this._display},r.prototype.get_keyboard=function(){return this._keyboard},r.prototype.get_mouse=function(){return this._mouse},r.messages={keyEvent:function(e,t){var n=[4];return a.push8(n,t),a.push16(n,0),a.push32(n,e),n},pointerEvent:function(e,t,n){var r=[5];return a.push8(r,n),a.push16(r,e),a.push16(r,t),
|
||
r},clientCutText:function(e){var t=[6];a.push8(t,0),a.push8(t,0),a.push8(t,0),a.push32(t,e.length);for(var n=e.length,r=0;n>r;r++)t.push(e.charCodeAt(r));return t},pixelFormat:function(e,t,n){var r=[0];return a.push8(r,0),a.push8(r,0),a.push8(r,0),a.push8(r,8*e),a.push8(r,8*t),a.push8(r,0),a.push8(r,n?1:0),a.push16(r,255),a.push16(r,255),a.push16(r,255),a.push8(r,16),a.push8(r,8),a.push8(r,0),a.push8(r,0),a.push8(r,0),a.push8(r,0),r},clientEncodings:function(e,t,n){var r,i=[];for(r=0;r<e.length;r++)"Cursor"!==e[r][0]||t?"TIGHT"!==e[r][0]||n?i.push(e[r][1]):o("clientEncodings() | skipping tight as it is only supported with true color"):o("clientEncodings() | skipping Cursor pseudo-encoding");var s=[2];for(a.push8(s,0),a.push16(s,i.length),r=0;r<i.length;r++)a.push32(s,i[r]);return s},fbUpdateRequests:function(e,t,n){var i,o,s=[],a=e.cleanBox;a.w>0&&a.h>0&&(i="undefined"==typeof a.w?t:a.w,o="undefined"==typeof a.h?n:a.h,s=s.concat(r.messages.fbUpdateRequest(1,a.x,a.y,i,o)));for(var l=0;l<e.dirtyBoxes.length;l++){var u=e.dirtyBoxes[l];i="undefined"==typeof u.w?t:u.w,o="undefined"==typeof u.h?n:u.h,s=s.concat(r.messages.fbUpdateRequest(0,u.x,u.y,i,o))}return s},fbUpdateRequest:function(e,t,n,r,i){"undefined"==typeof t&&(t=0),"undefined"==typeof n&&(n=0);var o=[3];return a.push8(o,e),a.push16(o,t),a.push16(o,n),a.push16(o,r),a.push16(o,i),o}},r.genDES=function(e,t){for(var n=[],r=0;r<e.length;r++)n.push(e.charCodeAt(r));return new m(n).encrypt(t)},r.encodingHandlers={RAW:function(){if(0===this._FBU.lines&&(this._FBU.lines=this._FBU.height),this._FBU.bytes=this._FBU.width*this._fb_Bpp,this._sock.rQwait("RAW",this._FBU.bytes))return!1;var e=this._FBU.y+(this._FBU.height-this._FBU.lines),t=Math.min(this._FBU.lines,Math.floor(this._sock.rQlen()/(this._FBU.width*this._fb_Bpp)));return this._display.blitImage(this._FBU.x,e,this._FBU.width,t,this._sock.get_rQ(),this._sock.get_rQi()),this._sock.rQskipBytes(this._FBU.width*t*this._fb_Bpp),this._FBU.lines-=t,this._FBU.lines>0?this._FBU.bytes=this._FBU.width*this._fb_Bpp:(this._FBU.rects--,this._FBU.bytes=0),!0},COPYRECT:function(){return this._FBU.bytes=4,this._sock.rQwait("COPYRECT",4)?!1:(this._display.renderQ_push({type:"copy",old_x:this._sock.rQshift16(),old_y:this._sock.rQshift16(),x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height}),this._FBU.rects--,this._FBU.bytes=0,!0)},RRE:function(){var e;if(0===this._FBU.subrects){if(this._FBU.bytes=4+this._fb_Bpp,this._sock.rQwait("RRE",4+this._fb_Bpp))return!1;this._FBU.subrects=this._sock.rQshift32(),e=this._sock.rQshiftBytes(this._fb_Bpp),this._display.fillRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,e)}for(;this._FBU.subrects>0&&this._sock.rQlen()>=this._fb_Bpp+8;){e=this._sock.rQshiftBytes(this._fb_Bpp);var t=this._sock.rQshift16(),n=this._sock.rQshift16(),r=this._sock.rQshift16(),i=this._sock.rQshift16();this._display.fillRect(this._FBU.x+t,this._FBU.y+n,r,i,e),this._FBU.subrects--}if(this._FBU.subrects>0){var o=Math.min(this._rre_chunk_sz,this._FBU.subrects);this._FBU.bytes=(this._fb_Bpp+8)*o}else this._FBU.rects--,this._FBU.bytes=0;return!0},HEXTILE:function(){var e=this._sock.get_rQ(),t=this._sock.get_rQi();for(0===this._FBU.tiles&&(this._FBU.tiles_x=Math.ceil(this._FBU.width/16),this._FBU.tiles_y=Math.ceil(this._FBU.height/16),this._FBU.total_tiles=this._FBU.tiles_x*this._FBU.tiles_y,this._FBU.tiles=this._FBU.total_tiles);this._FBU.tiles>0;){if(this._FBU.bytes=1,this._sock.rQwait("HEXTILE subencoding",this._FBU.bytes))return!1;var n=e[t];if(n>30)return this._fail("Disconnected: illegal hextile subencoding "+n),!1;var r=0,i=this._FBU.total_tiles-this._FBU.tiles,s=i%this._FBU.tiles_x,a=Math.floor(i/this._FBU.tiles_x),l=this._FBU.x+16*s,u=this._FBU.y+16*a,c=Math.min(16,this._FBU.x+this._FBU.width-l),p=Math.min(16,this._FBU.y+this._FBU.height-u);if(1&n)this._FBU.bytes+=c*p*this._fb_Bpp;else if(2&n&&(this._FBU.bytes+=this._fb_Bpp),4&n&&(this._FBU.bytes+=this._fb_Bpp),8&n){if(this._FBU.bytes++,this._sock.rQwait("hextile subrects header",this._FBU.bytes))return!1;r=e[t+this._FBU.bytes-1],16&n?this._FBU.bytes+=r*(this._fb_Bpp+2):this._FBU.bytes+=2*r}if(this._sock.rQwait("hextile",this._FBU.bytes))return!1;if(this._FBU.subencoding=e[t],t++,0===this._FBU.subencoding)1&this._FBU.lastsubencoding?o("HEXTILE() | ignoring blank after RAW"):this._display.fillRect(l,u,c,p,this._FBU.background);else if(1&this._FBU.subencoding)this._display.blitImage(l,u,c,p,e,t),t+=this._FBU.bytes-1;else{if(2&this._FBU.subencoding&&(this._FBU.background=e.slice(t,t+this._fb_Bpp),t+=this._fb_Bpp),4&this._FBU.subencoding&&(this._FBU.foreground=e.slice(t,t+this._fb_Bpp),t+=this._fb_Bpp),this._display.startTile(l,u,c,p,this._FBU.background),8&this._FBU.subencoding){r=e[t],t++;for(var f=0;r>f;f++){var h;16&this._FBU.subencoding?(h=e.slice(t,t+this._fb_Bpp),t+=this._fb_Bpp):h=this._FBU.foreground;var d=e[t];t++;var m=d>>4,b=15&d,y=e[t];t++;var v=(y>>4)+1,g=(15&y)+1;this._display.subTile(m,b,v,g,h)}}this._display.finishTile()}this._sock.set_rQi(t),this._FBU.lastsubencoding=this._FBU.subencoding,this._FBU.bytes=0,this._FBU.tiles--}return 0===this._FBU.tiles&&this._FBU.rects--,!0},getTightCLength:function(e){var t=1,n=0;return n+=127&e[0],128&e[0]&&(t++,n+=(127&e[1])<<7,128&e[1]&&(t++,n+=e[2]<<14)),[t,n]},display_tight:function(e){if(1===this._fb_depth&&this._fail("Tight protocol handler only implements true color mode"),this._FBU.bytes=1,this._sock.rQwait("TIGHT compression-control",this._FBU.bytes))return!1;var t,n,a,l=0,u=-1,c=function(e){for(var t=0;4>t;t++)l>>t&1&&(this._FBU.zlibs[t].reset(),o("display_tight() | reset zlib stream "+t));var n=this._FBU.zlibs[u].uncompress(e,0);return 0!==n.status&&s("display_tight() | invalid data in zlib stream"),n.data}.bind(this),p=function(e,t,n,r,i){var o,s,a,l,u=[];if(2===t){var c=Math.floor((r+7)/8),p=Math.floor(r/8);for(s=0;i>s;s++){var f;for(o=0;p>o;o++)for(f=7;f>=0;f--)a=3*(s*r+8*o+7-f),l=3*(e[s*c+o]>>f&1),u[a]=n[l],u[a+1]=n[l+1],u[a+2]=n[l+2];for(f=7;f>=8-r%8;f--)a=3*(s*r+8*o+7-f),l=3*(e[s*c+o]>>f&1),u[a]=n[l],u[a+1]=n[l+1],u[a+2]=n[l+2]}}else for(s=0;i>s;s++)for(o=0;r>o;o++)a=3*(s*r+o),l=3*e[s*r+o],u[a]=n[l],u[a+1]=n[l+1],u[a+2]=n[l+2];return u}.bind(this),f=this._sock.get_rQ(),h=this._sock.get_rQi(),d=function(){var e=f[h+2]+1,i=e*this._fb_depth;if(this._FBU.bytes+=i,this._sock.rQwait("TIGHT palette "+t,this._FBU.bytes))return!1;var o=2>=e?1:8,s=Math.floor((this._FBU.width*o+7)/8),l=!1;if(s*this._FBU.height<12?(l=!0,n=[0,s*this._FBU.height]):n=r.encodingHandlers.getTightCLength(this._sock.rQslice(3+i,3+i+3)),this._FBU.bytes+=n[0]+n[1],this._sock.rQwait("TIGHT "+t,this._FBU.bytes))return!1;this._sock.rQskipBytes(3);var u=this._sock.rQshiftBytes(i);this._sock.rQskipBytes(n[0]),a=l?this._sock.rQshiftBytes(n[1]):c(this._sock.rQshiftBytes(n[1]));var d=p(a,e,u,this._FBU.width,this._FBU.height);return this._display.renderQ_push({type:"blitRgb",data:d,x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height}),!0}.bind(this),m=function(){var e=!1,i=this._FBU.width*this._FBU.height*this._fb_depth;return 12>i?(e=!0,n=[0,i]):n=r.encodingHandlers.getTightCLength(this._sock.rQslice(1,4)),this._FBU.bytes=1+n[0]+n[1],this._sock.rQwait("TIGHT "+t,this._FBU.bytes)?!1:(this._sock.rQshiftBytes(1+n[0]),a=e?this._sock.rQshiftBytes(n[1]):c(this._sock.rQshiftBytes(n[1])),this._display.renderQ_push({type:"blitRgb",data:a,x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height}),!0)}.bind(this),b=this._sock.rQpeek8();if(l=15&b,b>>=4,u=3&b,8===b)t="fill";else if(9===b)t="jpeg";else if(10===b)t="png";else if(4&b)t="filter";else{if(!(4>b))return this._fail("Illegal tight compression received, ctl: "+b);t="copy"}if(e&&("filter"===t||"copy"===t))return this._fail("filter/copy received in tightPNG mode");switch(t){case"fill":this._FBU.bytes+=this._fb_depth;break;case"jpeg":this._FBU.bytes+=3;break;case"png":this._FBU.bytes+=3;break;case"filter":this._FBU.bytes+=2;break;case"copy":}if(this._sock.rQwait("TIGHT "+t,this._FBU.bytes))return!1;switch(t){case"fill":this._sock.rQskip8();var y=this._sock.rQshiftBytes(this._fb_depth);this._display.renderQ_push({type:"fill",x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height,color:[y[2],y[1],y[0]]});break;case"png":case"jpeg":if(n=r.encodingHandlers.getTightCLength(this._sock.rQslice(1,4)),this._FBU.bytes=1+n[0]+n[1],this._sock.rQwait("TIGHT "+t,this._FBU.bytes))return!1;this._sock.rQskipBytes(1+n[0]);var v=new Image;v.src="data: image/"+t+i(this._sock.rQshiftBytes(n[1])),this._display.renderQ_push({type:"img",img:v,x:this._FBU.x,y:this._FBU.y}),v=null;break;case"filter":var g=f[h+1];if(1!==g)throw new Error("Unsupported tight subencoding received, filter: "+g);if(!d())return!1;break;case"copy":if(!m())return!1}return this._FBU.bytes=0,this._FBU.rects--,!0},TIGHT:function(){return this._encHandlers.display_tight(!1)},TIGHT_PNG:function(){return this._encHandlers.display_tight(!0)},last_rect:function(){return this._FBU.rects=0,!0},handle_FB_resize:function(){return this._fb_width=this._FBU.width,this._fb_height=this._FBU.height,this._display.resize(this._fb_width,this._fb_height),this._onFBResize(this,this._fb_width,this._fb_height),this._timing.fbu_rt_start=(new Date).getTime(),this._FBU.bytes=0,this._FBU.rects-=1,!0},ExtendedDesktopSize:function(){if(this._FBU.bytes=1,this._sock.rQwait("ExtendedDesktopSize",this._FBU.bytes))return!1;this._supportsSetDesktopSize=!0;var e=this._sock.rQpeek8();if(this._FBU.bytes=4+16*e,this._sock.rQwait("ExtendedDesktopSize",this._FBU.bytes))return!1;this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var t=0;e>t;t+=1)0===t?(this._screen_id=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screen_flags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(1===this._FBU.x&&0!==this._FBU.y){var n="";switch(this._FBU.y){case 1:n="resize is administratively prohibited";break;case 2:n="out of resources";break;case 3:n="invalid screen layout";break;default:n="unknown reason"}return o("ExtendedDesktopSize() | server did not accept the resize request: %s",n),!0}return this._encHandlers.handle_FB_resize(),!0},DesktopSize:function(){return o("DesktopSize()"),this._encHandlers.handle_FB_resize(),!0},Cursor:function(){o("Cursor()");var e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height,i=n*r*this._fb_Bpp,s=Math.floor((n+7)/8)*r;return this._FBU.bytes=i+s,this._sock.rQwait("cursor encoding",this._FBU.bytes)?!1:(this._display.changeCursor(this._sock.rQshiftBytes(i),this._sock.rQshiftBytes(s),e,t,n,r),this._FBU.bytes=0,this._FBU.rects--,!0)},JPEG_quality_lo:function(){s("JPEG_quality_lo() | server sent jpeg_quality pseudo-encoding")},compress_lo:function(){s("compress_lo() | server sent compress level pseudo-encoding")}}},{"./base64":257,"./des":258,"./display":259,"./input":260,"./keys":262,"./tinf":264,"./util":265,"./websock":266,debug:123}],264:[function(e,t,n){function r(){this.OK=0,this.DATA_ERROR=-3,this.WINDOW_SIZE=32768,this.TREE=function(){this.table=new Array(16),this.trans=new Array(288)},this.DATA=function(e){this.source="",this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=[],this.history=[],this.ltree=new e.TREE,this.dtree=new e.TREE},this.sltree=new this.TREE,this.sdtree=new this.TREE,this.length_bits=new Array(30),this.length_base=new Array(30),this.dist_bits=new Array(30),this.dist_base=new Array(30),this.clcidx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],this.build_bits_base=function(e,t,n,r){var i,o;for(i=0;n>i;++i)e[i]=0;for(i=0;30-n>i;++i)e[i+n]=Math.floor(i/n);for(o=r,i=0;30>i;++i)t[i]=o,o+=1<<e[i]},this.build_fixed_trees=function(e,t){var n;for(n=0;7>n;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;24>n;++n)e.trans[n]=256+n;for(n=0;144>n;++n)e.trans[24+n]=n;for(n=0;8>n;++n)e.trans[168+n]=280+n;for(n=0;112>n;++n)e.trans[176+n]=144+n;for(n=0;5>n;++n)t.table[n]=0;for(t.table[5]=32,n=0;32>n;++n)t.trans[n]=n},this.build_tree=function(e,t,n,r){var i,o,s=new Array(16);for(i=0;16>i;++i)e.table[i]=0;for(i=0;r>i;++i)e.table[t[n+i]]++;for(e.table[0]=0,o=0,i=0;16>i;++i)s[i]=o,o+=e.table[i];for(i=0;r>i;++i)t[n+i]&&(e.trans[s[t[n+i]]++]=i)},this.getbit=function(e){var t;return e.bitcount--||(e.tag=255&e.source[e.sourceIndex++],e.bitcount=7),t=1&e.tag,e.tag>>=1,t},this.read_bits=function(e,t,n){if(!t)return n;var r=i(e.source,e.bitcount,e.tag,e.sourceIndex,t);return e.bitcount=r[0],e.tag=r[1],e.sourceIndex=r[2],r[3]+n},this.decode_symbol=function(e,t){for(;e.bitcount<16;)e.tag=e.tag|(255&e.source[e.sourceIndex++])<<e.bitcount,e.bitcount+=8;var n=0,r=0,i=0;do r=2*r+((e.tag&1<<i)>>i),++i,n+=t.table[i],r-=t.table[i];while(r>=0);return e.tag>>=i,e.bitcount-=i,t.trans[n+r]},this.decode_trees=function(e,t,n){var r,i,o,s,a,l,u=new this.TREE,c=new Array(320);for(r=this.read_bits(e,5,257),i=this.read_bits(e,5,1),o=this.read_bits(e,4,4),s=0;19>s;++s)c[s]=0;for(s=0;o>s;++s){var p=this.read_bits(e,3,0);c[this.clcidx[s]]=p}for(this.build_tree(u,c,0,19),a=0;r+i>a;){var f=this.decode_symbol(e,u);switch(f){case 16:var h=c[a-1];for(l=this.read_bits(e,2,3);l;--l)c[a++]=h;break;case 17:for(l=this.read_bits(e,3,3);l;--l)c[a++]=0;break;case 18:for(l=this.read_bits(e,7,11);l;--l)c[a++]=0;break;default:c[a++]=f}}this.build_tree(t,c,0,r),this.build_tree(n,c,r,i)},this.inflate_block_data=function(e,t,n){for(var r=e.dest,i=r.length;;){var o=this.decode_symbol(e,t);if(256===o)return this.OK;if(256>o)r[i++]=o,e.history.push(o);else{var s,a,l,u;if(o-=257,s=this.read_bits(e,this.length_bits[o],this.length_base[o]),a=this.decode_symbol(e,n),l=e.history.length-this.read_bits(e,this.dist_bits[a],this.dist_base[a]),0>l)throw new Error("Invalid zlib offset "+l);for(u=l;l+s>u;++u)r[i++]=e.history[u],e.history.push(e.history[u])}}},this.inflate_uncompressed_block=function(e){var t,n,r;if(e.bitcount>7){var i=Math.floor(e.bitcount/8);e.sourceIndex-=i,e.bitcount=0,e.tag=0}if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],n=e.source[e.sourceIndex+3],n=256*n+e.source[e.sourceIndex+2],t!==(65535&~n))return this.DATA_ERROR;for(e.sourceIndex+=4,r=t;r;--r)e.history.push(e.source[e.sourceIndex]),e.dest[e.dest.length]=e.source[e.sourceIndex++];return e.bitcount=0,this.OK},this.inflate_fixed_block=function(e){return this.inflate_block_data(e,this.sltree,this.sdtree)},this.inflate_dynamic_block=function(e){return this.decode_trees(e,e.ltree,e.dtree),this.inflate_block_data(e,e.ltree,e.dtree)},this.init=function(){this.build_fixed_trees(this.sltree,this.sdtree),this.build_bits_base(this.length_bits,this.length_base,4,3),this.build_bits_base(this.dist_bits,this.dist_base,2,1),this.length_bits[28]=0,this.length_base[28]=258,this.reset()},this.reset=function(){this.d=new this.DATA(this),delete this.header},this.uncompress=function(e,t){var n,r=this.d;r.source=e,r.sourceIndex=t,r.bitcount=0,r.dest=[],"undefined"==typeof this.header&&(this.header=this.read_bits(r,16,0));var i=0;do{var o,s;switch(n=this.getbit(r),o=this.read_bits(r,2,0)){case 0:s=this.inflate_uncompressed_block(r);break;case 1:s=this.inflate_fixed_block(r);break;case 2:s=this.inflate_dynamic_block(r);break;default:return{status:this.DATA_ERROR}}if(s!==this.OK)return{status:this.DATA_ERROR};i++}while(!n&&r.sourceIndex<r.source.length);return r.history=r.history.slice(-this.WINDOW_SIZE),{status:this.OK,data:r.dest}}}function i(e,t,n,r,i){for(var o=0;24>t;)n|=(255&e[r++])<<t,t+=8;return o=n&65535>>16-i,n>>=i,t-=i,[t,n,r,o]}t.exports=r},{}],265:[function(e,t,n){(function(n){function r(e,t,n,r){function i(e){return e?function(n,r){"undefined"!=typeof r?this["_"+t][r]=e(n):this["_"+t]=e(n)}:function(e,n){"undefined"!=typeof n?this["_"+t][n]=e:this["_"+t]=e}}var o;o="arr"===r?function(e){return"undefined"!=typeof e?this["_"+t][e]:this["_"+t]}:function(){return this["_"+t]};var s;if("bool"===r)s=i(function(e){return e&&!(e in{0:1,no:1,"false":1})});else if("int"===r)s=i(function(e){return parseInt(e,10)});else if("float"===r)s=i(parseFloat);else if("str"===r)s=i(String);else if("func"===r)s=i(function(e){return e?e:function(){}});else{if("arr"!==r&&"dom"!==r&&"raw"!==r)throw new Error("unknown property type "+r);s=i()}"undefined"==typeof e["get_"+t]&&(e["get_"+t]=o),"undefined"==typeof e["set_"+t]&&("rw"===n?e["set_"+t]=s:"wo"===n&&(e["set_"+t]=function(e,n){if("undefined"!=typeof this["_"+t])throw new Error(t+" can only be set once");s.call(this,e,n)})),e["_raw_set_"+t]=function(e,t){s.call(this,e,t)}}var i=e("debug")("noVNC:Util"),o=e("debug")("noVNC:ERROR:Util");o.log=console.warn.bind(console);var s=null,a=t.exports={push8:function(e,t){e.push(255&t)},push16:function(e,t){e.push(t>>8&255,255&t)},push32:function(e,t){e.push(t>>24&255,t>>16&255,t>>8&255,255&t)},requestAnimationFrame:function(){return n.requestAnimationFrame?n.requestAnimationFrame.bind(n):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame.bind(n):n.mozRequestAnimationFrame?n.mozRequestAnimationFrame.bind(n):n.oRequestAnimationFrame?n.oRequestAnimationFrame.bind(n):n.msRequestAnimationFrame?n.msRequestAnimationFrame.bind(n):function(e){setTimeout(e,1e3/60)}}(),make_properties:function(e,t){for(var n=0;n<t.length;n++)r(e.prototype,t[n][0],t[n][1],t[n][2])},set_defaults:function(e,t,n){var r,i=Object.keys(n),s=Object.keys(t),a={};for(r=0;r<i.length;r++)a[i[r]]=1;for(r=0;r<s.length;r++)a[s[r]]=1;var l=Object.keys(a);for(r=0;r<l.length;r++){var u=e["_raw_set_"+l[r]];u?l[r]in t?u.call(e,t[l[r]]):u.call(e,n[l[r]]):o("invalid property: %s",l[r])}},decodeUTF8:function(e){return decodeURIComponent(escape(e))},getPosition:function(e){var t=e.getBoundingClientRect();return{x:t.left+window.pageXOffset,y:t.top+window.pageYOffset,width:t.width,height:t.height}},getEventPosition:function(e,t,r,i){var o,s,l,u;"undefined"==typeof i&&(i=1),o=e?e:n.event,o=o.changedTouches?o.changedTouches[0]:o.touches?o.touches[0]:o,o.pageX||o.pageY?(s=o.pageX,l=o.pageY,s=o.pageX/i,l=o.pageY/i):(o.clientX||o.clientY)&&(s=o.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,l=o.clientY+document.body.scrollTop+document.documentElement.scrollTop),u=a.getPosition(t),"undefined"==typeof r&&(r=1);var c=s-u.x,p=l-u.y,f=Math.max(Math.min(c,u.width-1),0),h=Math.max(Math.min(p,u.height-1),0);return{x:f/r,y:h/r,realx:c/r,realy:p/r}},addEvent:function(e,t,n){if(e.attachEvent){var r=e.attachEvent("on"+t,n);return r}if(e.addEventListener)return e.addEventListener(t,n,!1),!0;throw new Error("handler could not be attached")},removeEvent:function(e,t,n){if(e.detachEvent){var r=e.detachEvent("on"+t,n);return r}if(e.removeEventListener)return e.removeEventListener(t,n,!1),!0;throw new Error("handler could not be removed")},stopEvent:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},browserSupportsCursorURIs:function(){if(null===s)try{var e=document.createElement("canvas");e.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',e.style.cursor?(i("data URI scheme cursor supported"),s=!0):(o("data URI scheme cursor not supported"),s=!1)}catch(t){o("data URI scheme cursor test exception: "+t),s=!1}return s}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{debug:123}],266:[function(e,t,n){(function(n){function r(){this._websocket=null,this._rQ=[],this._rQi=0,this._rQmax=1e4,this._sQ=[],this._mode="base64",this.maxBufferedAmount=200,this._eventHandlers={message:function(){},open:function(){},close:function(){},error:function(){}}}var i=e("debug")("noVNC:Websock"),o=e("debug")("noVNC:ERROR:Websock");o.log=console.warn.bind(console);var s=e("bowser").browser,a=e("./base64");t.exports=r,r.prototype={get_sQ:function(){return this._sQ},get_rQ:function(){return this._rQ},get_rQi:function(){return this._rQi},set_rQi:function(e){this._rQi=e},rQlen:function(){return this._rQ.length-this._rQi},rQpeek8:function(){return this._rQ[this._rQi]},rQshift8:function(){return this._rQ[this._rQi++]},rQskip8:function(){this._rQi++},rQskipBytes:function(e){this._rQi+=e},rQunshift8:function(e){0===this._rQi?this._rQ.unshift(e):(this._rQi--,this._rQ[this._rQi]=e)},rQshift16:function(){return(this._rQ[this._rQi++]<<8)+this._rQ[this._rQi++]},rQshift32:function(){return(this._rQ[this._rQi++]<<24)+(this._rQ[this._rQi++]<<16)+(this._rQ[this._rQi++]<<8)+this._rQ[this._rQi++]},rQshiftStr:function(e){"undefined"==typeof e&&(e=this.rQlen());var t=this._rQ.slice(this._rQi,this._rQi+e);return this._rQi+=e,String.fromCharCode.apply(null,t)},rQshiftBytes:function(e){return"undefined"==typeof e&&(e=this.rQlen()),this._rQi+=e,this._rQ.slice(this._rQi-e,this._rQi)},rQslice:function(e,t){return t?this._rQ.slice(this._rQi+e,this._rQi+t):this._rQ.slice(this._rQi+e)},rQwait:function(e,t,n){var r=this._rQ.length-this._rQi;if(t>r){if(n){if(this._rQi<n)throw new Error("rQwait cannot backup "+n+" bytes");this._rQi-=n}return!0}return!1},flush:function(){return 0!==this._websocket.bufferedAmount&&i("flush() | bufferedAmount: %d",this._websocket.bufferedAmount),this._websocket.bufferedAmount<this.maxBufferedAmount?(this._sQ.length>0&&(this._websocket.send(this._encode_message()),this._sQ=[]),!0):(i("flush() | delaying send"),!1)},send:function(e){return this._sQ=this._sQ.concat(e),this.flush()},send_string:function(e){this.send(e.split("").map(function(e){return e.charCodeAt(0)}))},on:function(e,t){this._eventHandlers[e]=t},off:function(e){this._eventHandlers[e]=function(){}},init:function(e){this._rQ=[],this._rQi=0,this._sQ=[],this._websocket=null;var t=!1;"Uint8Array"in n&&"set"in Uint8Array.prototype&&(t=!0);var r=!1;if(n.WebSocket&&(s.safari&&Number(s.version)>0&&Number(s.version)<7?i("init() | Safari %d does not support binary WebSocket",Number(s.version)):r=!0),"undefined"==typeof e&&(e=r?["binary","base64"]:"base64"),!r){if("binary"===e)throw new Error("WebSocket binary sub-protocol requested but not supported");if("object"==typeof e){for(var a=[],l=0;l<e.length;l++)"binary"===e[l]?o("init() | skipping unsupported WebSocket binary sub-protocol"):a.push(e[l]);if(!(a.length>0))throw new Error("only WebSocket binary sub-protocol was requested and is not supported");e=a}}return e},open:function(e,t){var r=this;t=this.init(t),n.NativeWebSocket?(i("open() | using NativeWebSocket"),this._websocket=new n.NativeWebSocket(e,t)):(i("open() | not using NativeWebSocket"),this._websocket=new WebSocket(e,t)),t.indexOf("binary")>=0&&(this._websocket.binaryType="arraybuffer"),this._websocket.onmessage=function(e){r._recv_message(e)},this._websocket.onopen=function(){r._websocket.protocol?(i('onopen: server choose "%s" sub-protocol',r._websocket.protocol),r._mode=r._websocket.protocol,r._eventHandlers.open()):(o('onopen: server choose no sub-protocol, using "base64"'),r._mode="base64",r._eventHandlers.open())},this._websocket.onclose=function(e){i("onclose: %o",e),r._eventHandlers.close(e)},this._websocket.onerror=function(e){o("onerror: %o",e),r._eventHandlers.error(e)}},close:function(){this._websocket&&(this._websocket.readyState!==this._websocket.OPEN&&this._websocket.readyState!==this._websocket.CONNECTING||(i("close()"),this._websocket.close()),this._websocket.onmessage=function(){})},_encode_message:function(){return"binary"===this._mode?new Uint8Array(this._sQ).buffer:a.encode(this._sQ)},_decode_message:function(e){if("binary"===this._mode)for(var t=new Uint8Array(e),n=0;n<t.length;n++)this._rQ.push(t[n]);else this._rQ=this._rQ.concat(a.decode(e,0))},_recv_message:function(e){try{this._decode_message(e.data),this.rQlen()>0?(this._eventHandlers.message(),this._rQ.length>this._rQmax&&(this._rQ=this._rQ.slice(this._rQi),this._rQi=0)):i("_recv_message() | ignoring empty message")}catch(t){o("_recv_message() | error: %o",t),"undefined"!=typeof t.name?this._eventHandlers.error(t.name+": "+t.message):this._eventHandlers.error(t)}}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./base64":257,bowser:25,debug:123}],267:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return i.exec(e).slice(1)};n.resolve=function(){for(var n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(n=s+"/"+n,i="/"===s.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(e){var i=n.isAbsolute(e),o="/"===s(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),s=Math.min(i.length,o.length),a=s,l=0;s>l;l++)if(i[l]!==o[l]){a=l;break}for(var u=[],l=a;l<i.length;l++)u.push("..");return u=u.concat(o.slice(a)),u.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return o(e)[3]};var s="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return 0>t&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:269}],268:[function(e,t,n){(function(e){"use strict";function n(e){var t=o.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",i=s.exec(r),a=i[1],l=i[2],u=i[3];return[n,a,l,u]}function r(e){return l.exec(e).slice(1)}var i="win32"===e.platform,o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,s=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,a={};a.parse=function(e){if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=n(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}};var l=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};u.parse=function(e){if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=r(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},i?t.exports=a.parse:t.exports=u.parse,t.exports.posix=u.parse,t.exports.win32=a.parse}).call(this,e("_process"))},{_process:269}],269:[function(e,t,n){function r(){c=!1,a.length?u=a.concat(u):p=-1,u.length&&i()}function i(){if(!c){var e=setTimeout(r);c=!0;for(var t=u.length;t;){for(a=u,u=[];++p<t;)a&&a[p].run();p=-1,t=u.length}a=null,c=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function s(){}var a,l=t.exports={},u=[],c=!1,p=-1;l.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new o(e,t)),1!==u.length||c||setTimeout(i,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=s,l.addListener=s,l.once=s,l.off=s,l.removeListener=s,l.removeAllListeners=s,l.emit=s,l.binding=function(e){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(e){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},{}],270:[function(e,t,n){(function(e){!function(r){function i(e){throw new RangeError(I[e])}function o(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function s(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(N,".");var i=e.split("."),s=o(i,t).join(".");return r+s}function a(e){for(var t,n,r=[],i=0,o=e.length;o>i;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function l(e){return o(e,function(e){var t="";return e>65535&&(e-=65536,t+=L(e>>>10&1023|55296),e=56320|1023&e),t+=L(e)}).join("")}function u(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:E}function c(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function p(e,t,n){var r=0;for(e=n?R(e/P):e>>1,e+=R(e/t);e>D*w>>1;r+=E)e=R(e/D);return R(r+(D+1)*e/(e+S))}function f(e){var t,n,r,o,s,a,c,f,h,d,m=[],b=e.length,y=0,v=k,g=x;for(n=e.lastIndexOf(M),0>n&&(n=0),r=0;n>r;++r)e.charCodeAt(r)>=128&&i("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;b>o;){for(s=y,a=1,c=E;o>=b&&i("invalid-input"),f=u(e.charCodeAt(o++)),(f>=E||f>R((T-y)/a))&&i("overflow"),y+=f*a,h=g>=c?C:c>=g+w?w:c-g,!(h>f);c+=E)d=E-h,a>R(T/d)&&i("overflow"),a*=d;t=m.length+1,g=p(y-s,t,0==s),R(y/t)>T-v&&i("overflow"),v+=R(y/t),y%=t,m.splice(y++,0,v)}return l(m)}function h(e){var t,n,r,o,s,l,u,f,h,d,m,b,y,v,g,_=[];for(e=a(e),b=e.length,t=k,n=0,s=x,l=0;b>l;++l)m=e[l],128>m&&_.push(L(m));for(r=o=_.length,o&&_.push(M);b>r;){for(u=T,l=0;b>l;++l)m=e[l],m>=t&&u>m&&(u=m);for(y=r+1,u-t>R((T-n)/y)&&i("overflow"),n+=(u-t)*y,t=u,l=0;b>l;++l)if(m=e[l],t>m&&++n>T&&i("overflow"),m==t){for(f=n,h=E;d=s>=h?C:h>=s+w?w:h-s,!(d>f);h+=E)g=f-d,v=E-d,_.push(L(c(d+g%v,0))),f=R(g/v);_.push(L(c(f,0))),s=p(n,y,r==o),n=0,++r}++n,++t}return _.join("")}function d(e){return s(e,function(e){return A.test(e)?f(e.slice(4).toLowerCase()):e})}function m(e){return s(e,function(e){return O.test(e)?"xn--"+h(e):e})}var b="object"==typeof n&&n&&!n.nodeType&&n,y="object"==typeof t&&t&&!t.nodeType&&t,v="object"==typeof e&&e;v.global!==v&&v.window!==v&&v.self!==v||(r=v);var g,_,T=2147483647,E=36,C=1,w=26,S=38,P=700,x=72,k=128,M="-",A=/^xn--/,O=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=E-C,R=Math.floor,L=String.fromCharCode;if(g={version:"1.4.1",ucs2:{decode:a,encode:l},decode:f,encode:h,toASCII:m,toUnicode:d},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return g});else if(b&&y)if(t.exports==b)y.exports=g;else for(_ in g)g.hasOwnProperty(_)&&(b[_]=g[_]);else r.punycode=g}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],271:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,o){t=t||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;u>c;++c){var p,f,h,d,m=e[c].replace(a,"%20"),b=m.indexOf(n);b>=0?(p=m.substr(0,b),f=m.substr(b+1)):(p=m,f=""),h=decodeURIComponent(p),d=decodeURIComponent(f),
|
||
r(s,h)?i(s[h])?s[h].push(d):s[h]=[s[h],d]:s[h]=d}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],272:[function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(s(e),function(s){var a=encodeURIComponent(i(s))+n;return o(e[s])?r(e[s],function(e){return a+encodeURIComponent(i(e))}).join(t):a+encodeURIComponent(i(e[s]))}).join(t):a?encodeURIComponent(i(a))+n+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],273:[function(e,t,n){"use strict";n.decode=n.parse=e("./decode"),n.encode=n.stringify=e("./encode")},{"./decode":271,"./encode":272}],274:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("react"),s=i(o),a=e("./PanelGroup"),l=i(a),u=s["default"].createClass({displayName:"Accordion",render:function(){return s["default"].createElement(l["default"],r({},this.props,{accordion:!0}),this.props.children)}});n["default"]=u,t.exports=n["default"]},{"./PanelGroup":347,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,react:581}],275:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("react-prop-types/lib/deprecated"),c=i(u),p=e("./styleMaps"),f=e("./utils/bootstrapUtils"),h=l["default"].createClass({displayName:"Alert",propTypes:{onDismiss:l["default"].PropTypes.func,dismissAfter:c["default"](l["default"].PropTypes.number,"No longer supported."),closeLabel:l["default"].PropTypes.string},getDefaultProps:function(){return{closeLabel:"Close Alert"}},renderDismissButton:function(){return l["default"].createElement("button",{type:"button",className:"close",onClick:this.props.onDismiss,"aria-hidden":"true",tabIndex:"-1"},l["default"].createElement("span",null,"×"))},renderSrOnlyDismissButton:function(){return l["default"].createElement("button",{type:"button",className:"close sr-only",onClick:this.props.onDismiss},this.props.closeLabel)},render:function(){var e=f.getClassSet(this.props),t=!!this.props.onDismiss;return e[f.prefix(this.props,"dismissable")]=t,l["default"].createElement("div",r({},this.props,{role:"alert",className:s["default"](this.props.className,e)}),t?this.renderDismissButton():null,this.props.children,t?this.renderSrOnlyDismissButton():null)},componentDidMount:function(){this.props.dismissAfter&&this.props.onDismiss&&(this.dismissTimer=setTimeout(this.props.onDismiss,this.props.dismissAfter))},componentWillUnmount:function(){clearTimeout(this.dismissTimer)}});n["default"]=f.bsStyles(p.State.values(),p.State.INFO,f.bsClass("alert",h)),t.exports=n["default"]},{"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/deprecated":408}],276:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("./utils/bootstrapUtils"),c=e("./utils/ValidComponentChildren"),p=i(c),f=l["default"].createClass({displayName:"Badge",propTypes:{pullRight:l["default"].PropTypes.bool},getDefaultProps:function(){return{pullRight:!1,bsClass:"badge"}},hasContent:function(){var e=this.props.children;return p["default"].count(e)>0||l["default"].Children.count(e)>1||"string"==typeof e||"number"==typeof e},render:function(){var e,t=(e={"pull-right":this.props.pullRight},e[u.prefix(this.props)]=this.hasContent(),e);return l["default"].createElement("span",r({},this.props,{className:s["default"](this.props.className,t)}),this.props.children)}});n["default"]=f,t.exports=n["default"]},{"./utils/ValidComponentChildren":369,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],277:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("classnames"),u=o(l),c=e("./utils/ValidComponentChildren"),p=o(c),f=e("./BreadcrumbItem"),h=o(f),d=a["default"].createClass({displayName:"Breadcrumb",propTypes:{bsClass:a["default"].PropTypes.string},getDefaultProps:function(){return{bsClass:"breadcrumb"}},render:function(){var e=this.props,t=e.className,n=r(e,["className"]);return a["default"].createElement("ol",i({},n,{role:"navigation","aria-label":"breadcrumbs",className:u["default"](t,this.props.bsClass)}),p["default"].map(this.props.children,this.renderBreadcrumbItem))},renderBreadcrumbItem:function(e,t){return s.cloneElement(e,{key:e.key||t})}});d.Item=h["default"],n["default"]=d,t.exports=n["default"]},{"./BreadcrumbItem":278,"./utils/ValidComponentChildren":369,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],278:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("react"),u=o(l),c=e("./SafeAnchor"),p=o(c),f=u["default"].createClass({displayName:"BreadcrumbItem",propTypes:{active:u["default"].PropTypes.bool,id:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),linkId:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),href:u["default"].PropTypes.string,title:u["default"].PropTypes.node,target:u["default"].PropTypes.string},getDefaultProps:function(){return{active:!1}},render:function(){var e=this.props,t=e.active,n=e.className,o=e.id,s=e.linkId,l=e.children,c=e.href,f=e.title,h=e.target,d=r(e,["active","className","id","linkId","children","href","title","target"]),m={href:c,title:f,target:h,id:s};return u["default"].createElement("li",{id:o,className:a["default"](n,{active:t})},t?u["default"].createElement("span",d,l):u["default"].createElement(p["default"],i({},d,m),l))}});n["default"]=f,t.exports=n["default"]},{"./SafeAnchor":353,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],279:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("react"),c=s(u),p=e("react-prop-types/lib/elementType"),f=s(p),h=e("./styleMaps"),d=e("./utils/bootstrapUtils"),m=e("./SafeAnchor"),b=s(m),y=h.State.values().concat(h.DEFAULT,h.PRIMARY,h.LINK),v=["button","reset","submit"],g=function(e){function t(n,r){i(this,t),e.call(this,n,r)}return r(t,e),t.prototype.render=function(){var e,t=this.props.navDropdown?{}:d.getClassSet(this.props),n=void 0,r=d.prefix(this.props,"block");return t=o((e={active:this.props.active},e[r]=this.props.block,e),t),this.props.navItem?this.renderNavItem(t):(n=this.props.href||this.props.target||this.props.navDropdown?"renderAnchor":"renderButton",this[n](t))},t.prototype.renderAnchor=function(e){var t=this.props,n=t.disabled,r=t.href;return e.disabled=n,c["default"].createElement(b["default"],o({},this.props,{href:r||"#",className:l["default"](this.props.className,e)}),this.props.children)},t.prototype.renderButton=function(e){var t=this.props.componentClass||"button";return c["default"].createElement(t,o({},this.props,{type:this.props.type||"button",className:l["default"](this.props.className,e)}),this.props.children)},t.prototype.renderNavItem=function(e){var t={active:this.props.active};return c["default"].createElement("li",{className:l["default"](t)},this.renderAnchor(e))},t}(c["default"].Component);g.propTypes={active:c["default"].PropTypes.bool,disabled:c["default"].PropTypes.bool,block:c["default"].PropTypes.bool,navItem:c["default"].PropTypes.bool,navDropdown:c["default"].PropTypes.bool,onClick:c["default"].PropTypes.func,componentClass:f["default"],href:c["default"].PropTypes.string,target:c["default"].PropTypes.string,type:c["default"].PropTypes.oneOf(v)},g.defaultProps={active:!1,block:!1,disabled:!1,navItem:!1,navDropdown:!1},g.types=v,n["default"]=d.bsStyles(y,h.DEFAULT,d.bsSizes([h.Sizes.LARGE,h.Sizes.SMALL,h.Sizes.XSMALL],d.bsClass("btn",g))),t.exports=n["default"]},{"./SafeAnchor":353,"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/elementType":409}],280:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("react-prop-types/lib/all"),c=i(u),p=e("./utils/bootstrapUtils"),f=e("./Button"),h=i(f),d=l["default"].createClass({displayName:"ButtonGroup",propTypes:{vertical:l["default"].PropTypes.bool,justified:l["default"].PropTypes.bool,block:c["default"](l["default"].PropTypes.bool,function(e){return e.block&&!e.vertical?new Error("The block property requires the vertical property to be set to have any effect"):void 0})},getDefaultProps:function(){return{block:!1,justified:!1,vertical:!1}},render:function(){var e=p.getClassSet(this.props);return e[p.prefix(this.props)]=!this.props.vertical,e[p.prefix(this.props,"vertical")]=this.props.vertical,e[p.prefix(this.props,"justified")]=this.props.justified,e[p.prefix(h["default"].defaultProps,"block")]=this.props.block,l["default"].createElement("div",r({},this.props,{className:s["default"](this.props.className,e)}),this.props.children)}});n["default"]=p.bsClass("btn-group",d),t.exports=n["default"]},{"./Button":279,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/all":406}],281:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("react"),u=a(l),c=e("./Button"),p=a(c),f=e("./FormGroup"),h=a(f),d=e("./InputBase"),m=a(d),b=e("./utils/childrenValueInputValidation"),y=a(b),v=e("./utils/deprecationWarning"),g=a(v),_=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.renderFormGroup=function(e){var t=this.props,n=(t.bsStyle,t.value,o(t,["bsStyle","value"]));return u["default"].createElement(h["default"],n,e)},t.prototype.renderInput=function(){var e=this.props,t=e.children,n=e.value,r=o(e,["children","value"]),i=t?t:n;return u["default"].createElement(p["default"],s({},r,{componentClass:"input",ref:"input",key:"input",value:i}))},t}(m["default"]);_.types=p["default"].types,_.defaultProps={type:"button"},_.propTypes={type:u["default"].PropTypes.oneOf(_.types),bsStyle:function(){return null},children:y["default"],value:y["default"]},n["default"]=g["default"].wrapper(_,"`<ButtonInput>`","`<Button>` directly"),t.exports=n["default"]},{"./Button":279,"./FormGroup":302,"./InputBase":308,"./utils/childrenValueInputValidation":372,"./utils/deprecationWarning":374,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,react:581}],282:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("./utils/bootstrapUtils"),c=e("./Button"),p=i(c),f=l["default"].createClass({displayName:"ButtonToolbar",propTypes:{bsSize:p["default"].propTypes.bsSize},getDefaultProps:function(){return{bsClass:"btn-toolbar"}},render:function(){var e=u.getClassSet(this.props);return l["default"].createElement("div",r({},this.props,{role:"toolbar",className:s["default"](this.props.className,e)}),this.props.children)}});n["default"]=f,t.exports=n["default"]},{"./Button":279,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],283:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/core-js/object/assign")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("react"),u=o(l),c=e("./utils/bootstrapUtils"),p=e("./utils/ValidComponentChildren"),f=o(p),h=e("./CarouselCaption"),d=o(h),m=e("./CarouselItem"),b=o(m),y=e("./Glyphicon"),v=o(y),g=u["default"].createClass({displayName:"Carousel",propTypes:{slide:u["default"].PropTypes.bool,indicators:u["default"].PropTypes.bool,interval:u["default"].PropTypes.number,controls:u["default"].PropTypes.bool,pauseOnHover:u["default"].PropTypes.bool,wrap:u["default"].PropTypes.bool,onSelect:u["default"].PropTypes.func,onSlideEnd:u["default"].PropTypes.func,activeIndex:u["default"].PropTypes.number,defaultActiveIndex:u["default"].PropTypes.number,direction:u["default"].PropTypes.oneOf(["prev","next"]),prevIcon:u["default"].PropTypes.node,nextIcon:u["default"].PropTypes.node},getDefaultProps:function(){return{bsClass:"carousel",slide:!0,interval:5e3,pauseOnHover:!0,wrap:!0,indicators:!0,controls:!0,prevIcon:u["default"].createElement(v["default"],{glyph:"chevron-left"}),nextIcon:u["default"].createElement(v["default"],{glyph:"chevron-right"})}},getInitialState:function(){return{activeIndex:null==this.props.defaultActiveIndex?0:this.props.defaultActiveIndex,previousActiveIndex:null,direction:null}},getDirection:function(e,t){return e===t?null:e>t?"prev":"next"},componentWillReceiveProps:function(e){var t=this.getActiveIndex();null!=e.activeIndex&&e.activeIndex!==t&&(clearTimeout(this.timeout),this.setState({previousActiveIndex:t,direction:null!=e.direction?e.direction:this.getDirection(t,e.activeIndex)}))},componentDidMount:function(){this.waitForNext()},componentWillUnmount:function(){clearTimeout(this.timeout)},next:function(e){e&&e.preventDefault();var t=this.getActiveIndex()+1,n=f["default"].count(this.props.children);if(t>n-1){if(!this.props.wrap)return;t=0}this.handleSelect(t,e,"next")},prev:function(e){e&&e.preventDefault();var t=this.getActiveIndex()-1;if(0>t){if(!this.props.wrap)return;t=f["default"].count(this.props.children)-1}this.handleSelect(t,e,"prev")},pause:function(){this.isPaused=!0,clearTimeout(this.timeout)},play:function(){this.isPaused=!1,this.waitForNext()},waitForNext:function(){!this.isPaused&&this.props.slide&&this.props.interval&&null==this.props.activeIndex&&(this.timeout=setTimeout(this.next,this.props.interval))},handleMouseOver:function(){this.props.pauseOnHover&&this.pause()},handleMouseOut:function(){this.isPaused&&this.play()},render:function(){var e,t=(e={},e[c.prefix(this.props)]=!0,e.slide=this.props.slide,e);return u["default"].createElement("div",r({},this.props,{className:a["default"](this.props.className,t),onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut}),this.props.indicators?this.renderIndicators():null,u["default"].createElement("div",{ref:"inner",className:c.prefix(this.props,"inner")},f["default"].map(this.props.children,this.renderItem)),this.props.controls?this.renderControls():null)},renderPrev:function(){var e="left "+c.prefix(this.props,"control");return u["default"].createElement("a",{className:e,href:"#prev",key:0,onClick:this.prev},this.props.prevIcon)},renderNext:function(){var e="right "+c.prefix(this.props,"control");return u["default"].createElement("a",{className:e,href:"#next",key:1,onClick:this.next},this.props.nextIcon)},renderControls:function(){if(!this.props.wrap){var e=this.getActiveIndex(),t=f["default"].count(this.props.children);return[0!==e?this.renderPrev():null,e!==t-1?this.renderNext():null]}return[this.renderPrev(),this.renderNext()]},renderIndicator:function(e,t){var n=this,r=t===this.getActiveIndex()?"active":null;return u["default"].createElement("li",{key:t,className:r,onClick:function(e){return n.handleSelect(t,e,null)}})},renderIndicators:function(){var e=this,t=[];return f["default"].forEach(this.props.children,function(n,r){t.push(e.renderIndicator(n,r)," ")},this),u["default"].createElement("ol",{className:c.prefix(this.props,"indicators")},t)},getActiveIndex:function(){return null!=this.props.activeIndex?this.props.activeIndex:this.state.activeIndex},handleItemAnimateOutEnd:function(){var e=this;this.setState({previousActiveIndex:null,direction:null},function(){e.waitForNext(),e.props.onSlideEnd&&e.props.onSlideEnd()})},renderItem:function(e,t){var n=this.getActiveIndex(),r=t===n,i=null!=this.state.previousActiveIndex&&this.state.previousActiveIndex===t&&this.props.slide;return l.cloneElement(e,{active:r,ref:e.ref,key:e.key?e.key:t,index:t,animateOut:i,animateIn:r&&null!=this.state.previousActiveIndex&&this.props.slide,direction:this.state.direction,onAnimateOutEnd:i?this.handleItemAnimateOutEnd:null})},handleSelect:function(e,t,n){if(clearTimeout(this.timeout),this.isMounted()){var r=this.getActiveIndex();n=n||this.getDirection(r,e);var i=this.props.onSelect;if(i&&(i.length>1?(t.persist(),t.direction=n,i(e,t)):i(e)),null==this.props.activeIndex&&e!==r){if(null!=this.state.previousActiveIndex)return;this.setState({activeIndex:e,previousActiveIndex:r,direction:n})}}}});g=i(g,{Caption:d["default"],Item:b["default"]}),n["default"]=g,t.exports=n["default"]},{"./CarouselCaption":284,"./CarouselItem":285,"./Glyphicon":303,"./utils/ValidComponentChildren":369,"./utils/bootstrapUtils":370,"babel-runtime/core-js/object/assign":377,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],284:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("react-prop-types/lib/elementType"),c=i(u),p=l["default"].createClass({displayName:"Carousel.Caption",propTypes:{componentClass:c["default"]},getDefaultProps:function(){return{componentClass:"div"}},render:function(){var e=this.props.componentClass;return l["default"].createElement(e,r({},this.props,{className:s["default"](this.props.className,"carousel-caption")}),this.props.children)}});n["default"]=p,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/elementType":409}],285:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("react-dom"),c=i(u),p=e("./utils/bootstrapUtils"),f=e("./utils/TransitionEvents"),h=i(f),d=l["default"].createClass({displayName:"CarouselItem",propTypes:{direction:l["default"].PropTypes.oneOf(["prev","next"]),onAnimateOutEnd:l["default"].PropTypes.func,active:l["default"].PropTypes.bool,animateIn:l["default"].PropTypes.bool,animateOut:l["default"].PropTypes.bool,caption:l["default"].PropTypes.node,index:l["default"].PropTypes.number},getInitialState:function(){return{direction:null}},getDefaultProps:function(){return{bsStyle:"carousel",active:!1,animateIn:!1,animateOut:!1}},handleAnimateOutEnd:function(){this.props.onAnimateOutEnd&&this.isMounted()&&this.props.onAnimateOutEnd(this.props.index)},componentWillReceiveProps:function(e){this.props.active!==e.active&&this.setState({direction:null})},componentDidUpdate:function(e){!this.props.active&&e.active&&h["default"].addEndEventListener(c["default"].findDOMNode(this),this.handleAnimateOutEnd),this.props.active!==e.active&&setTimeout(this.startAnimation,20)},startAnimation:function(){this.isMounted()&&this.setState({direction:"prev"===this.props.direction?"right":"left"})},render:function(){var e={item:!0,active:this.props.active&&!this.props.animateIn||this.props.animateOut,next:this.props.active&&this.props.animateIn&&"next"===this.props.direction,prev:this.props.active&&this.props.animateIn&&"prev"===this.props.direction};return this.state.direction&&(this.props.animateIn||this.props.animateOut)&&(e[this.state.direction]=!0),l["default"].createElement("div",r({},this.props,{className:s["default"](this.props.className,e)}),this.props.children,this.props.caption?this.renderCaption():null)},renderCaption:function(){var e=p.prefix(this.props,"caption");return l["default"].createElement("div",{className:e},this.props.caption)}});n["default"]=d,t.exports=n["default"]},{"./utils/TransitionEvents":368,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-dom":387}],286:[function(e,t,n){(function(r){"use strict";var i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/object-without-properties")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var u=e("classnames"),c=l(u),p=e("react"),f=l(p),h=e("warning"),d=l(h),m=e("./utils/bootstrapUtils"),b={inline:f["default"].PropTypes.bool,disabled:f["default"].PropTypes.bool,validationState:f["default"].PropTypes.oneOf(["success","warning","error"])},y={inline:!1,disabled:!1},v=function(e){function t(){o(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.inline,n=e.disabled,i=e.validationState,o=e.className,l=e.style,u=e.children,p=a(e,["inline","disabled","validationState","className","style","children"]);if(delete p.bsClass,t){var h,b=(h={},h[m.prefix(this.props,"inline")]=!0,h.disabled=n,h);return"production"!==r.env.NODE_ENV?d["default"](!i,"`validationState` is ignored on `<Checkbox inline>`. To display validation state on an inline checkbox, set `validationState` on a parent `<FormGroup>` or other element instead."):void 0,f["default"].createElement("label",{className:c["default"](o,b),style:l},f["default"].createElement("input",s({},p,{type:"checkbox",disabled:n})),u)}var y=s({},m.getClassSet(this.props),{disabled:n});return i&&(y["has-"+i]=!0),f["default"].createElement("div",{className:c["default"](o,y),style:l},f["default"].createElement("label",null,f["default"].createElement("input",s({},p,{type:"checkbox",disabled:n})),u))},t}(f["default"].Component);v.propTypes=b,v.defaultProps=y,n["default"]=m.bsClass("checkbox",v),t.exports=n["default"]}).call(this,e("_process"))},{"./utils/bootstrapUtils":370,_process:269,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,warning:599}],287:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/core-js/object/keys")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("classnames"),u=o(l),c=e("./styleMaps"),p=o(c),f=e("react-prop-types/lib/elementType"),h=o(f),d=a["default"].createClass({displayName:"Clearfix",propTypes:{componentClass:h["default"],visibleXsBlock:a["default"].PropTypes.bool,visibleSmBlock:a["default"].PropTypes.bool,visibleMdBlock:a["default"].PropTypes.bool,visibleLgBlock:a["default"].PropTypes.bool},getDefaultProps:function(){return{componentClass:"div"}},render:function(){var e=this,t=this.props.componentClass,n={};return i(p["default"].SIZES).forEach(function(t){var r=p["default"].SIZES[t];n["visible-"+r+"-block"]=e.props["visible"+r.charAt(0).toUpperCase()+r.slice(1)+"Block"]},this),a["default"].createElement(t,r({},this.props,{className:u["default"](this.props.className,"clearfix",n)}),this.props.children)}});n["default"]=d,t.exports=n["default"]},{"./styleMaps":366,"babel-runtime/core-js/object/keys":379,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/elementType":409}],288:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/core-js/object/keys")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("classnames"),u=o(l),c=e("./styleMaps"),p=o(c),f=e("react-prop-types/lib/elementType"),h=o(f),d=a["default"].createClass({displayName:"Col",propTypes:{xs:a["default"].PropTypes.number,sm:a["default"].PropTypes.number,md:a["default"].PropTypes.number,lg:a["default"].PropTypes.number,xsHidden:a["default"].PropTypes.bool,smHidden:a["default"].PropTypes.bool,mdHidden:a["default"].PropTypes.bool,lgHidden:a["default"].PropTypes.bool,xsOffset:a["default"].PropTypes.number,smOffset:a["default"].PropTypes.number,mdOffset:a["default"].PropTypes.number,lgOffset:a["default"].PropTypes.number,xsPush:a["default"].PropTypes.number,smPush:a["default"].PropTypes.number,mdPush:a["default"].PropTypes.number,lgPush:a["default"].PropTypes.number,xsPull:a["default"].PropTypes.number,smPull:a["default"].PropTypes.number,mdPull:a["default"].PropTypes.number,lgPull:a["default"].PropTypes.number,componentClass:h["default"]},getDefaultProps:function(){return{componentClass:"div"}},render:function(){var e=this,t=this.props.componentClass,n={};return i(p["default"].SIZES).forEach(function(t){var r=p["default"].SIZES[t],i=r,o=r+"-";e.props[i]&&(n["col-"+o+e.props[i]]=!0),n["hidden-"+r]=e.props[r+"Hidden"],i=r+"Offset",o=r+"-offset-",e.props[i]>=0&&(n["col-"+o+e.props[i]]=!0),i=r+"Push",o=r+"-push-",e.props[i]>=0&&(n["col-"+o+e.props[i]]=!0),i=r+"Pull",o=r+"-pull-",e.props[i]>=0&&(n["col-"+o+e.props[i]]=!0)},this),a["default"].createElement(t,r({},this.props,{className:u["default"](this.props.className,n)}),this.props.children)}});n["default"]=d,t.exports=n["default"]},{"./styleMaps":366,"babel-runtime/core-js/object/keys":379,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/elementType":409}],289:[function(e,t,n){"use strict";function r(e,t){var n=t["offset"+v(e)],r=_[e];return n+parseInt(u["default"](t,r[0]),10)+parseInt(u["default"](t,r[1]),10)}var i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("dom-helpers/style"),u=a(l),c=e("react"),p=a(c),f=e("classnames"),h=a(f),d=e("react-overlays/lib/Transition"),m=a(d),b=e("./utils/createChainedFunction"),y=a(b),v=function(e){return e[0].toUpperCase()+e.substr(1)},g=function(e){return e.offsetHeight},_={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]},T=function(e){function t(n,r){o(this,t),e.call(this,n,r),this.onEnterListener=this.handleEnter.bind(this),this.onEnteringListener=this.handleEntering.bind(this),this.onEnteredListener=this.handleEntered.bind(this),this.onExitListener=this.handleExit.bind(this),this.onExitingListener=this.handleExiting.bind(this)}return i(t,e),t.prototype.render=function(){var e=y["default"](this.onEnterListener,this.props.onEnter),t=y["default"](this.onEnteringListener,this.props.onEntering),n=y["default"](this.onEnteredListener,this.props.onEntered),r=y["default"](this.onExitListener,this.props.onExit),i=y["default"](this.onExitingListener,this.props.onExiting);return p["default"].createElement(m["default"],s({ref:"transition"},this.props,{"aria-expanded":this.props.role?this.props["in"]:null,className:h["default"](this.props.className,{width:"width"===this._dimension()}),exitedClassName:"collapse",exitingClassName:"collapsing",enteredClassName:"collapse in",enteringClassName:"collapsing",onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:this.props.onExited}),this.props.children)},t.prototype.handleEnter=function(e){var t=this._dimension();e.style[t]="0"},t.prototype.handleEntering=function(e){var t=this._dimension();e.style[t]=this._getScrollDimensionValue(e,t)},t.prototype.handleEntered=function(e){var t=this._dimension();e.style[t]=null},t.prototype.handleExit=function(e){var t=this._dimension();e.style[t]=this.props.getDimensionValue(t,e)+"px"},t.prototype.handleExiting=function(e){var t=this._dimension();g(e),e.style[t]="0"},t.prototype._dimension=function(){return"function"==typeof this.props.dimension?this.props.dimension():this.props.dimension},t.prototype._getTransitionInstance=function(){return this.refs.transition},t.prototype._getScrollDimensionValue=function(e,t){return e["scroll"+v(t)]+"px"},t}(p["default"].Component);T.propTypes={"in":p["default"].PropTypes.bool,unmountOnExit:p["default"].PropTypes.bool,transitionAppear:p["default"].PropTypes.bool,timeout:p["default"].PropTypes.number,onEnter:p["default"].PropTypes.func,onEntering:p["default"].PropTypes.func,onEntered:p["default"].PropTypes.func,onExit:p["default"].PropTypes.func,onExiting:p["default"].PropTypes.func,onExited:p["default"].PropTypes.func,dimension:p["default"].PropTypes.oneOfType([p["default"].PropTypes.oneOf(["height","width"]),p["default"].PropTypes.func]),getDimensionValue:p["default"].PropTypes.func,role:p["default"].PropTypes.string},T.defaultProps={"in":!1,timeout:300,unmountOnExit:!1,transitionAppear:!1,dimension:"height",getDimensionValue:r},n["default"]=T,t.exports=n["default"]},{"./utils/createChainedFunction":373,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,"dom-helpers/style":144,react:581,"react-overlays/lib/Transition":394}],290:[function(e,t,n){(function(r){"use strict";var i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/object-without-properties")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var u=e("classnames"),c=l(u),p=e("react"),f=l(p),h=e("warning"),d=l(h),m=e("./utils/bootstrapUtils"),b={htmlFor:f["default"].PropTypes.string,srOnly:f["default"].PropTypes.bool},y={srOnly:!1},v={$bs_formGroup:f["default"].PropTypes.object},g=function(e){function t(){o(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.render=function(){var e=this.context.$bs_formGroup,t=e&&e.controlId,n=this.props,i=n.htmlFor,o=void 0===i?t:i,l=n.srOnly,u=n.className,p=a(n,["htmlFor","srOnly","className"]);"production"!==r.env.NODE_ENV?d["default"](null==t||o===t,"`controlId` is ignored on `<ControlLabel>` when `htmlFor` is specified."):void 0,
|
||
delete p.bsClass;var h=s({},m.getClassSet(this.props),{"sr-only":l});return f["default"].createElement("label",s({},p,{htmlFor:o,className:c["default"](u,h)}))},t}(f["default"].Component);g.propTypes=b,g.defaultProps=y,g.contextTypes=v,n["default"]=m.bsClass("control-label",g),t.exports=n["default"]}).call(this,e("_process"))},{"./utils/bootstrapUtils":370,_process:269,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,warning:599}],291:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("dom-helpers/activeElement"),c=s(u),p=e("dom-helpers/query/contains"),f=s(p),h=e("keycode"),d=s(h),m=e("lodash-compat/collection/find"),b=s(m),y=e("lodash-compat/object/omit"),v=s(y),g=e("react"),_=s(g),T=e("react-dom"),E=s(T),C=e("react-prop-types/lib/all"),w=s(C),S=e("react-prop-types/lib/elementType"),P=s(S),x=e("react-prop-types/lib/isRequiredForA11y"),k=s(x),M=e("uncontrollable"),A=s(M),O=e("./utils/bootstrapUtils"),N=e("./utils/createChainedFunction"),I=s(N),D=e("./utils/CustomPropTypes"),R=s(D),L=e("./utils/ValidComponentChildren"),j=s(L),U=e("./ButtonGroup"),F=s(U),B=e("./DropdownMenu"),H=s(B),K=e("./DropdownToggle"),G=s(K),q="toggle-btn",V=G["default"].defaultProps.bsRole,z=H["default"].defaultProps.bsRole,X=function(e){function t(n){i(this,t),e.call(this,n),this.Toggle=G["default"],this.toggleOpen=this.toggleOpen.bind(this),this.handleClick=this.handleClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleClose=this.handleClose.bind(this),this.extractChildren=this.extractChildren.bind(this),this.refineMenu=this.refineMenu.bind(this),this.refineToggle=this.refineToggle.bind(this),this.childExtractors=[{key:"toggle",matches:function(e){return e.props.bsRole===V},refine:this.refineToggle},{key:"menu",exclusive:!0,matches:function(e){return e.props.bsRole===z},refine:this.refineMenu}],this.state={},this.lastOpenEventType=null}return r(t,e),t.prototype.componentDidMount=function(){this.focusNextOnOpen()},t.prototype.componentWillUpdate=function(e){!e.open&&this.props.open&&(this._focusInDropdown=f["default"](E["default"].findDOMNode(this.refs.menu),c["default"](document)))},t.prototype.componentDidUpdate=function(e){this.props.open&&!e.open&&this.focusNextOnOpen(),!this.props.open&&e.open&&this._focusInDropdown&&(this._focusInDropdown=!1,this.focus())},t.prototype.render=function(){var e,t=this.extractChildren(),n=this.props.componentClass,r=v["default"](this.props,["id","bsClass","role"]),i=O.prefix(this.props),s=(e={open:this.props.open,disabled:this.props.disabled},e[i]=!this.props.dropup,e.dropup=this.props.dropup,e);return _["default"].createElement(n,o({},r,{className:l["default"](this.props.className,s)}),t)},t.prototype.toggleOpen=function(){var e=arguments.length<=0||void 0===arguments[0]?null:arguments[0],t=!this.props.open;t&&(this.lastOpenEventType=e),this.props.onToggle&&this.props.onToggle(t)},t.prototype.handleClick=function(){this.props.disabled||this.toggleOpen("click")},t.prototype.handleKeyDown=function(e){if(!this.props.disabled)switch(e.keyCode){case d["default"].codes.down:this.props.open?this.refs.menu.focusNext&&this.refs.menu.focusNext():this.toggleOpen("keydown"),e.preventDefault();break;case d["default"].codes.esc:case d["default"].codes.tab:this.handleClose(e)}},t.prototype.handleClose=function(){this.props.open&&this.toggleOpen()},t.prototype.focusNextOnOpen=function(){var e=this.refs.menu;e.focusNext&&("keydown"!==this.lastOpenEventType&&"menuitem"!==this.props.role||e.focusNext())},t.prototype.focus=function(){var e=E["default"].findDOMNode(this.refs[q]);e&&e.focus&&e.focus()},t.prototype.extractChildren=function(){var e=this,t=!!this.props.open,n={};return j["default"].map(this.props.children,function(r){var i=b["default"](e.childExtractors,function(e){return e.matches(r)});if(i){if(n[i.key])return!1;n[i.key]=i.exclusive,r=i.refine(r,t)}return r})},t.prototype.refineMenu=function(e,t){var n={ref:"menu",open:t,labelledBy:this.props.id,pullRight:this.props.pullRight,bsClass:this.props.bsClass};return n.onClose=I["default"](e.props.onClose,this.props.onClose,this.handleClose),n.onSelect=I["default"](e.props.onSelect,this.props.onSelect,this.handleClose),g.cloneElement(e,n,e.props.children)},t.prototype.refineToggle=function(e,t){var n={open:t,id:this.props.id,ref:q,role:this.props.role};return n.onClick=I["default"](e.props.onClick,this.handleClick),n.onKeyDown=I["default"](e.props.onKeyDown,this.handleKeyDown),g.cloneElement(e,n,e.props.children)},t}(_["default"].Component);X.Toggle=G["default"],X.TOGGLE_REF=q,X.TOGGLE_ROLE=V,X.MENU_ROLE=z,X.defaultProps={componentClass:F["default"],bsClass:"dropdown"},X.propTypes={bsClass:_["default"].PropTypes.string,dropup:_["default"].PropTypes.bool,id:k["default"](_["default"].PropTypes.oneOfType([_["default"].PropTypes.string,_["default"].PropTypes.number])),componentClass:P["default"],children:w["default"](R["default"].requiredRoles(V,z),R["default"].exclusiveRoles(z)),disabled:_["default"].PropTypes.bool,pullRight:_["default"].PropTypes.bool,open:_["default"].PropTypes.bool,onClose:_["default"].PropTypes.func,onToggle:_["default"].PropTypes.func,onSelect:_["default"].PropTypes.func,role:_["default"].PropTypes.string},X=A["default"](X,{open:"onToggle"}),X.Toggle=G["default"],X.Menu=H["default"],n["default"]=X,t.exports=n["default"]},{"./ButtonGroup":280,"./DropdownMenu":293,"./DropdownToggle":294,"./utils/CustomPropTypes":367,"./utils/ValidComponentChildren":369,"./utils/bootstrapUtils":370,"./utils/createChainedFunction":373,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,"dom-helpers/activeElement":125,"dom-helpers/query/contains":135,keycode:180,"lodash-compat/collection/find":182,"lodash-compat/object/omit":244,react:581,"react-dom":387,"react-prop-types/lib/all":406,"react-prop-types/lib/elementType":409,"react-prop-types/lib/isRequiredForA11y":410,uncontrollable:596}],292:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/object-without-properties")["default"],a=e("babel-runtime/core-js/object/keys")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var u=e("react"),c=l(u),p=e("./Dropdown"),f=l(p),h=e("lodash-compat/object/omit"),d=l(h),m=e("lodash-compat/object/pick"),b=l(m),y=e("./Button"),v=l(y),g=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.bsStyle,n=e.bsSize,r=e.disabled,i=this.props,l=i.title,u=i.children,p=s(i,["title","children"]),h=b["default"](p,a(f["default"].ControlledComponent.propTypes)),m=d["default"](p,a(f["default"].ControlledComponent.propTypes));return c["default"].createElement(f["default"],o({},h,{bsSize:n,bsStyle:t}),c["default"].createElement(f["default"].Toggle,o({},m,{disabled:r}),l),c["default"].createElement(f["default"].Menu,null,u))},t}(c["default"].Component);g.propTypes=o({disabled:c["default"].PropTypes.bool,bsStyle:v["default"].propTypes.bsStyle,bsSize:v["default"].propTypes.bsSize,noCaret:c["default"].PropTypes.bool,title:c["default"].PropTypes.node.isRequired},f["default"].propTypes),g.defaultProps={disabled:!1,pullRight:!1,dropup:!1,navItem:!1,noCaret:!1},n["default"]=g,t.exports=n["default"]},{"./Button":279,"./Dropdown":291,"babel-runtime/core-js/object/keys":379,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,"lodash-compat/object/omit":244,"lodash-compat/object/pick":246,react:581}],293:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("keycode"),p=a(c),f=e("react"),h=a(f),d=e("react-dom"),m=a(d),b=e("./utils/bootstrapUtils"),y=e("./utils/createChainedFunction"),v=a(y),g=e("./utils/ValidComponentChildren"),_=a(g),T=e("react-overlays/lib/RootCloseWrapper"),E=a(T),C=function(e){function t(n){i(this,t),e.call(this,n),this.focusNext=this.focusNext.bind(this),this.focusPrevious=this.focusPrevious.bind(this),this.getFocusableMenuItems=this.getFocusableMenuItems.bind(this),this.getItemsAndActiveIndex=this.getItemsAndActiveIndex.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}return r(t,e),t.prototype.handleKeyDown=function(e){switch(e.keyCode){case p["default"].codes.down:this.focusNext(),e.preventDefault();break;case p["default"].codes.up:this.focusPrevious(),e.preventDefault();break;case p["default"].codes.esc:case p["default"].codes.tab:this.props.onClose(e)}},t.prototype.focusNext=function(){var e=this.getItemsAndActiveIndex(),t=e.items,n=e.activeItemIndex;return 0!==t.length?n===t.length-1?void t[0].focus():void t[n+1].focus():void 0},t.prototype.focusPrevious=function(){var e=this.getItemsAndActiveIndex(),t=e.items,n=e.activeItemIndex;return 0===n?void t[t.length-1].focus():void t[n-1].focus()},t.prototype.getItemsAndActiveIndex=function(){var e=this.getFocusableMenuItems(),t=document.activeElement,n=e.indexOf(t);return{items:e,activeItemIndex:n}},t.prototype.getFocusableMenuItems=function(){var e=m["default"].findDOMNode(this);return void 0===e?[]:[].slice.call(e.querySelectorAll('[tabIndex="-1"]'),0)},t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,i=n.onSelect,a=n.pullRight,l=n.className,c=n.labelledBy,p=n.open,f=n.onClose,d=o(n,["children","onSelect","pullRight","className","labelledBy","open","onClose"]),m=_["default"].map(r,function(e){var n=e.props||{};return h["default"].cloneElement(e,{onKeyDown:v["default"](n.onKeyDown,t.handleKeyDown),onSelect:v["default"](n.onSelect,i)},n.children)}),y=(e={},e[b.prefix(this.props,"menu")]=!0,e[b.prefix(this.props,"menu-right")]=a,e),g=h["default"].createElement("ul",s({className:u["default"](l,y),role:"menu","aria-labelledby":c},d),m);return p&&(g=h["default"].createElement(E["default"],{noWrap:!0,onRootClose:f},g)),g},t}(h["default"].Component);C.defaultProps={bsRole:"menu",bsClass:"dropdown",pullRight:!1},C.propTypes={open:h["default"].PropTypes.bool,pullRight:h["default"].PropTypes.bool,onClose:h["default"].PropTypes.func,labelledBy:h["default"].PropTypes.oneOfType([h["default"].PropTypes.string,h["default"].PropTypes.number]),onSelect:h["default"].PropTypes.func},n["default"]=C,t.exports=n["default"]},{"./utils/ValidComponentChildren":369,"./utils/bootstrapUtils":370,"./utils/createChainedFunction":373,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,keycode:180,react:581,"react-dom":387,"react-overlays/lib/RootCloseWrapper":393}],294:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("react"),l=s(a),u=e("classnames"),c=s(u),p=e("./Button"),f=s(p),h=e("./SafeAnchor"),d=s(h),m=l["default"].createElement("span",null," ",l["default"].createElement("span",{className:"caret"})),b=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props.noCaret?null:m,t={"dropdown-toggle":!0},n=this.props.useAnchor?d["default"]:f["default"];return l["default"].createElement(n,o({},this.props,{className:c["default"](t,this.props.className),role:"button","aria-haspopup":!0,"aria-expanded":this.props.open}),this.props.children||this.props.title,e)},t}(l["default"].Component);n["default"]=b,b.defaultProps={open:!1,useAnchor:!1,bsRole:"toggle"},b.propTypes={bsRole:l["default"].PropTypes.string,noCaret:l["default"].PropTypes.bool,open:l["default"].PropTypes.bool,title:l["default"].PropTypes.string,useAnchor:l["default"].PropTypes.bool},b.isToggle=!0,b.titleProp="title",b.onClickProp="onClick",t.exports=n["default"]},{"./Button":279,"./SafeAnchor":353,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],295:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("react"),l=s(a),u=e("classnames"),c=s(u),p=e("react-overlays/lib/Transition"),f=s(p),h=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props.timeout;return l["default"].createElement(f["default"],o({},this.props,{timeout:e,className:c["default"](this.props.className,"fade"),enteredClassName:"in",enteringClassName:"in"}),this.props.children)},t}(l["default"].Component);h.propTypes={"in":l["default"].PropTypes.bool,unmountOnExit:l["default"].PropTypes.bool,transitionAppear:l["default"].PropTypes.bool,timeout:l["default"].PropTypes.number,onEnter:l["default"].PropTypes.func,onEntering:l["default"].PropTypes.func,onEntered:l["default"].PropTypes.func,onExit:l["default"].PropTypes.func,onExiting:l["default"].PropTypes.func,onExited:l["default"].PropTypes.func},h.defaultProps={"in":!1,timeout:300,unmountOnExit:!1,transitionAppear:!1},n["default"]=h,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-overlays/lib/Transition":394}],296:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("react-prop-types/lib/elementType"),h=a(f),d=e("./utils/bootstrapUtils"),m={horizontal:p["default"].PropTypes.bool,inline:p["default"].PropTypes.bool,componentClass:h["default"]},b={horizontal:!1,inline:!1,componentClass:"form"},y=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.horizontal,n=e.inline,r=e.componentClass,i=e.className,a=o(e,["horizontal","inline","componentClass","className"]);delete a.bsClass;var l=[];return t&&l.push(d.prefix(this.props,"horizontal")),n&&l.push(d.prefix(this.props,"inline")),p["default"].createElement(r,s({},a,{className:u["default"](i,l)}))},t}(p["default"].Component);y.propTypes=m,y.defaultProps=b,n["default"]=d.bsClass("form",y),t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/elementType":409}],297:[function(e,t,n){(function(r){"use strict";var i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/object-without-properties")["default"],a=e("babel-runtime/helpers/extends")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var u=e("classnames"),c=l(u),p=e("react"),f=l(p),h=e("react-prop-types/lib/elementType"),d=l(h),m=e("warning"),b=l(m),y=e("./utils/bootstrapUtils"),v=e("./FormControlFeedback"),g=l(v),_=e("./FormControlStatic"),T=l(_),E={componentClass:d["default"],type:f["default"].PropTypes.string,id:f["default"].PropTypes.string},C={componentClass:"input"},w={$bs_formGroup:f["default"].PropTypes.object},S=function(e){function t(){o(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.render=function(){var e=this.context.$bs_formGroup,t=e&&e.controlId,n=this.props,i=n.componentClass,o=n.type,l=n.id,u=void 0===l?t:l,p=n.className,h=s(n,["componentClass","type","id","className"]);"production"!==r.env.NODE_ENV?b["default"](null==t||u===t,"`controlId` is ignored on `<FormControl>` when `id` is specified."):void 0,delete h.bsClass;var d=void 0;return"file"!==o&&(d=y.getClassSet(this.props)),f["default"].createElement(i,a({},h,{type:o,id:u,className:c["default"](p,d)}))},t}(f["default"].Component);S.propTypes=E,S.defaultProps=C,S.contextTypes=w,S.Feedback=g["default"],S.Static=T["default"],n["default"]=y.bsClass("form-control",S),t.exports=n["default"]}).call(this,e("_process"))},{"./FormControlFeedback":298,"./FormControlStatic":299,"./utils/bootstrapUtils":370,_process:269,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/elementType":409,warning:599}],298:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/object-without-properties")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("./utils/bootstrapUtils"),h=e("./Glyphicon"),d=a(h),m={bsRole:"feedback"},b={$bs_formGroup:p["default"].PropTypes.object},y=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.getGlyph=function(e){switch(e){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}},t.prototype.renderDefaultFeedback=function(e,t,n,r){var i=this.getGlyph(e&&e.validationState);return i?p["default"].createElement(d["default"],o({},r,{glyph:i,className:u["default"](t,n)})):null},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=s(e,["className","children"]);delete r.bsClass;var i=f.getClassSet(this.props);if(!n)return this.renderDefaultFeedback(this.context.$bs_formGroup,t,i,r);var a=p["default"].Children.only(n);return p["default"].cloneElement(a,o({},r,{className:u["default"](a.props.className,t,i)}))},t}(p["default"].Component);y.defaultProps=m,y.contextTypes=b,n["default"]=f.bsClass("form-control-feedback",y),t.exports=n["default"]},{"./Glyphicon":303,"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],299:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("react-prop-types/lib/elementType"),h=a(f),d=e("./utils/bootstrapUtils"),m={componentClass:h["default"]},b={componentClass:"p"},y=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,r=o(e,["componentClass","className"]);delete r.bsClass;var i=d.getClassSet(this.props);return p["default"].createElement(t,s({},r,{className:u["default"](n,i)}))},t}(p["default"].Component);y.propTypes=m,y.defaultProps=b,n["default"]=d.bsClass("form-control-static",y),t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/elementType":409}],300:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("react-prop-types/lib/elementType"),h=a(f),d=e("../InputBase"),m=a(d),b=e("../utils/childrenValueInputValidation"),y=a(b),v=e("../utils/deprecationWarning"),g=a(v),_=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.getValue=function(){var e=this.props,t=e.children,n=e.value;return t?t:n},t.prototype.renderInput=function(){var e=this.props,t=e.componentClass,n=o(e,["componentClass"]);return p["default"].createElement(t,s({},n,{className:u["default"](n.className,"form-control-static"),ref:"input",key:"input"}),this.getValue())},t}(m["default"]);_.propTypes={value:y["default"],componentClass:h["default"],children:y["default"]},_.defaultProps={componentClass:"p"},n["default"]=g["default"].wrapper(_,"`<FormControls.Static>`","`<FormControl.Static>`"),t.exports=n["default"]},{"../InputBase":308,"../utils/childrenValueInputValidation":372,"../utils/deprecationWarning":374,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/elementType":409}],301:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var i=e("./Static"),o=r(i);n.Static=o["default"]},{"./Static":300,"babel-runtime/helpers/interop-require-default":384}],302:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/object-without-properties")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("react-prop-types/lib/deprecated"),h=a(f),d=e("./styleMaps"),m=e("./utils/bootstrapUtils"),b=e("./utils/ValidComponentChildren"),y=a(b),v={controlId:p["default"].PropTypes.string,standalone:h["default"](p["default"].PropTypes.bool,"Use a `<FormControl>` or `<InputGroup>` directly."),validationState:p["default"].PropTypes.oneOf(["success","warning","error"]),bsStyle:h["default"](p["default"].PropTypes.oneOf(["success","warning","error"]),"Use `validationState`"),hasFeedback:h["default"](p["default"].PropTypes.bool,"Use a `<FormControl.Feedback>` element."),groupClassName:h["default"](p["default"].PropTypes.string,"Use `className`.")},g={$bs_formGroup:p["default"].PropTypes.object.isRequired},_=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.controlId,n=e.bsStyle,r=e.validationState,i=void 0===r?n:r;return{$bs_formGroup:{controlId:t,validationState:i}}},t.prototype.hasFeedback=function(e){var t=this;return y["default"].some(e,function(e){return"feedback"===e.props.bsRole||e.props.children&&t.hasFeedback(e.props.children)})},t.prototype.render=function(){var e=this.props,t=e.standalone,n=e.bsStyle,r=e.validationState,i=void 0===r?n:r,a=e.groupClassName,l=e.className,c=void 0===l?a:l,f=e.children,h=e.hasFeedback,d=void 0===h?this.hasFeedback(f):h,b=s(e,["standalone","bsStyle","validationState","groupClassName","className","children","hasFeedback"]);delete b.bsClass,delete b.bsSize,delete b.controlId;var y=o({},!t&&m.getClassSet(this.props),{"has-feedback":d});return i&&(y["has-"+i]=!0),p["default"].createElement("div",o({},b,{className:u["default"](c,y)}),f)},t}(p["default"].Component);_.propTypes=v,_.childContextTypes=g,n["default"]=m.bsClass("form-group",m.bsSizes([d.Sizes.LARGE,d.Sizes.SMALL],_)),t.exports=n["default"]},{"./styleMaps":366,"./utils/ValidComponentChildren":369,"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/deprecated":408}],303:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("react-prop-types/lib/deprecated"),c=i(u),p=l["default"].createClass({displayName:"Glyphicon",propTypes:{bsClass:l["default"].PropTypes.string,glyph:l["default"].PropTypes.string.isRequired,formControlFeedback:c["default"](l["default"].PropTypes.bool,"Use `<FormControl.Feedback>`.")},getDefaultProps:function(){return{bsClass:"glyphicon"}},render:function(){var e,t=s["default"](this.props.className,(e={},e[this.props.bsClass]=!0,e["glyphicon-"+this.props.glyph]=!0,e["form-control-feedback"]=this.props.formControlFeedback,e));return l["default"].createElement("span",r({},this.props,{className:t}),this.props.children)}});n["default"]=p,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/deprecated":408}],304:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("react"),s=i(o),a=e("classnames"),l=i(a),u=e("react-prop-types/lib/elementType"),c=i(u),p=s["default"].createClass({displayName:"Grid",propTypes:{fluid:s["default"].PropTypes.bool,componentClass:c["default"]},getDefaultProps:function(){return{componentClass:"div",fluid:!1}},render:function(){var e=this.props.componentClass,t=this.props.fluid?"container-fluid":"container";return s["default"].createElement(e,r({},this.props,{className:l["default"](this.props.className,t)}),this.props.children)}});n["default"]=p,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/elementType":409}],305:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("./utils/bootstrapUtils"),h=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=o(e,["className"]);delete n.bsClass;var r=f.getClassSet(this.props);return p["default"].createElement("span",s({},n,{className:u["default"](t,r)}))},t}(p["default"].Component);n["default"]=f.bsClass("help-block",h),t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],306:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("react"),s=i(o),a=e("classnames"),l=i(a),u=s["default"].createClass({displayName:"Image",propTypes:{responsive:s["default"].PropTypes.bool,rounded:s["default"].PropTypes.bool,circle:s["default"].PropTypes.bool,thumbnail:s["default"].PropTypes.bool},getDefaultProps:function(){return{responsive:!1,rounded:!1,circle:!1,thumbnail:!1}},render:function(){var e={"img-responsive":this.props.responsive,"img-rounded":this.props.rounded,"img-circle":this.props.circle,"img-thumbnail":this.props.thumbnail};return s["default"].createElement("img",r({},this.props,{className:l["default"](this.props.className,e)}))}});n["default"]=u,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],307:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"],s=e("babel-runtime/helpers/interop-require-wildcard")["default"];n.__esModule=!0;var a=e("react"),l=o(a),u=e("./FormControls"),c=s(u),p=e("./InputBase"),f=o(p),h=e("./utils/deprecationWarning"),d=o(h),m=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){return"static"===this.props.type?(d["default"]("Input type=static","FormControls.Static"),l["default"].createElement(c.Static,this.props)):e.prototype.render.call(this)},t}(f["default"]);m.propTypes={type:l["default"].PropTypes.string},n["default"]=d["default"].wrapper(m,"`<Input>`","`<FormControl>`, `<Checkbox>`, or `<Radio>`, with `<FormGroup>` and/or `<InputGroup>` as needed"),t.exports=n["default"]},{"./FormControls":301,"./InputBase":308,"./utils/deprecationWarning":374,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/interop-require-wildcard":385,react:581}],308:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("react"),c=s(u),p=e("./FormGroup"),f=s(p),h=e("./Glyphicon"),d=s(h),m=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.getInputDOMNode=function(){return this.refs.input},t.prototype.getValue=function(){if("static"===this.props.type)return this.props.value;if(this.props.type)return"select"===this.props.type&&this.props.multiple?this.getSelectedOptions():this.getInputDOMNode().value;throw new Error("Cannot use getValue without specifying input type.")},t.prototype.getChecked=function(){return this.getInputDOMNode().checked},t.prototype.getSelectedOptions=function(){var e=[];return Array.prototype.forEach.call(this.getInputDOMNode().getElementsByTagName("option"),function(t){if(t.selected){var n=t.getAttribute("value")||t.innerHtml;e.push(n)}}),e},t.prototype.isCheckboxOrRadio=function(){return"checkbox"===this.props.type||"radio"===this.props.type},t.prototype.isFile=function(){return"file"===this.props.type},t.prototype.renderInputGroup=function(e){var t=this.props.addonBefore?c["default"].createElement("span",{className:"input-group-addon",key:"addonBefore"
|
||
},this.props.addonBefore):null,n=this.props.addonAfter?c["default"].createElement("span",{className:"input-group-addon",key:"addonAfter"},this.props.addonAfter):null,r=this.props.buttonBefore?c["default"].createElement("span",{className:"input-group-btn"},this.props.buttonBefore):null,i=this.props.buttonAfter?c["default"].createElement("span",{className:"input-group-btn"},this.props.buttonAfter):null,o=void 0;switch(this.props.bsSize){case"small":o="input-group-sm";break;case"large":o="input-group-lg"}return t||n||r||i?c["default"].createElement("div",{className:l["default"](o,"input-group"),key:"input-group"},t,r,e,n,i):e},t.prototype.renderIcon=function(){if(!this.props.hasFeedback)return null;if(this.props.feedbackIcon)return c["default"].cloneElement(this.props.feedbackIcon,{formControlFeedback:!0});switch(this.props.bsStyle){case"success":return c["default"].createElement(d["default"],{formControlFeedback:!0,glyph:"ok",key:"icon"});case"warning":return c["default"].createElement(d["default"],{formControlFeedback:!0,glyph:"warning-sign",key:"icon"});case"error":return c["default"].createElement(d["default"],{formControlFeedback:!0,glyph:"remove",key:"icon"});default:return c["default"].createElement("span",{className:"form-control-feedback",key:"icon"})}},t.prototype.renderHelp=function(){return this.props.help?c["default"].createElement("span",{className:"help-block",key:"help"},this.props.help):null},t.prototype.renderCheckboxAndRadioWrapper=function(e){var t={checkbox:"checkbox"===this.props.type,radio:"radio"===this.props.type};return c["default"].createElement("div",{className:l["default"](t),key:"checkboxRadioWrapper"},e)},t.prototype.renderWrapper=function(e){return this.props.wrapperClassName?c["default"].createElement("div",{className:this.props.wrapperClassName,key:"wrapper"},e):e},t.prototype.renderLabel=function(e){var t={"control-label":!this.isCheckboxOrRadio()};return t[this.props.labelClassName]=this.props.labelClassName,this.props.label?c["default"].createElement("label",{htmlFor:this.props.id,className:l["default"](t),key:"label"},e,this.props.label):e},t.prototype.renderInput=function(){if(!this.props.type)return this.props.children;switch(this.props.type){case"select":return c["default"].createElement("select",o({},this.props,{className:l["default"](this.props.className,"form-control"),ref:"input",key:"input"}),this.props.children);case"textarea":return c["default"].createElement("textarea",o({},this.props,{className:l["default"](this.props.className,"form-control"),ref:"input",key:"input"}));case"static":return c["default"].createElement("p",o({},this.props,{className:l["default"](this.props.className,"form-control-static"),ref:"input",key:"input"}),this.props.value);default:var e=this.isCheckboxOrRadio()||this.isFile()?"":"form-control";return c["default"].createElement("input",o({},this.props,{className:l["default"](this.props.className,e),ref:"input",key:"input"}))}},t.prototype.renderFormGroup=function(e){return c["default"].createElement(f["default"],this.props,e)},t.prototype.renderChildren=function(){return this.isCheckboxOrRadio()?this.renderWrapper([this.renderCheckboxAndRadioWrapper(this.renderLabel(this.renderInput())),this.renderHelp()]):[this.renderLabel(),this.renderWrapper([this.renderInputGroup(this.renderInput()),this.renderIcon(),this.renderHelp()])]},t.prototype.render=function(){var e=this.renderChildren();return this.renderFormGroup(e)},t}(c["default"].Component);m.propTypes={type:c["default"].PropTypes.string,label:c["default"].PropTypes.node,help:c["default"].PropTypes.node,addonBefore:c["default"].PropTypes.node,addonAfter:c["default"].PropTypes.node,buttonBefore:c["default"].PropTypes.node,buttonAfter:c["default"].PropTypes.node,bsSize:c["default"].PropTypes.oneOf(["small","medium","large"]),bsStyle:c["default"].PropTypes.oneOf(["success","warning","error"]),hasFeedback:c["default"].PropTypes.bool,feedbackIcon:c["default"].PropTypes.node,id:c["default"].PropTypes.oneOfType([c["default"].PropTypes.string,c["default"].PropTypes.number]),groupClassName:c["default"].PropTypes.string,wrapperClassName:c["default"].PropTypes.string,labelClassName:c["default"].PropTypes.string,multiple:c["default"].PropTypes.bool,disabled:c["default"].PropTypes.bool,value:c["default"].PropTypes.any},m.defaultProps={disabled:!1,hasFeedback:!1,multiple:!1},n["default"]=m,t.exports=n["default"]},{"./FormGroup":302,"./Glyphicon":303,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],309:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("./styleMaps"),h=e("./utils/bootstrapUtils"),d=e("./InputGroupAddon"),m=a(d),b=e("./InputGroupButton"),y=a(b),v=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=o(e,["className"]);delete n.bsClass,delete n.bsSize;var r=h.getClassSet(this.props);return p["default"].createElement("span",s({},n,{className:u["default"](t,r)}))},t}(p["default"].Component);v.Addon=m["default"],v.Button=y["default"],n["default"]=h.bsClass("input-group",h.bsSizes([f.Sizes.LARGE,f.Sizes.SMALL],v)),t.exports=n["default"]},{"./InputGroupAddon":310,"./InputGroupButton":311,"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],310:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("./utils/bootstrapUtils"),h=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=o(e,["className"]);delete n.bsClass;var r=f.getClassSet(this.props);return p["default"].createElement("span",s({},n,{className:u["default"](t,r)}))},t}(p["default"].Component);n["default"]=f.bsClass("input-group-addon",h),t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],311:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("./utils/bootstrapUtils"),h=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=o(e,["className"]);delete n.bsClass;var r=f.getClassSet(this.props);return p["default"].createElement("span",s({},n,{className:u["default"](t,r)}))},t}(p["default"].Component);n["default"]=f.bsClass("input-group-btn",h),t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],312:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/core-js/object/assign")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("./utils/ValidComponentChildren"),u=o(l),c=/\%\((.+?)\)s/,p=a["default"].createClass({displayName:"Interpolate",propTypes:{component:a["default"].PropTypes.node,format:a["default"].PropTypes.string,unsafe:a["default"].PropTypes.bool},getDefaultProps:function(){return{component:"span",unsafe:!1}},render:function(){var e=u["default"].count(this.props.children)>0||"string"==typeof this.props.children?this.props.children:this.props.format,t=this.props.component,n=this.props.unsafe===!0,i=r({},this.props);if(delete i.children,delete i.format,delete i.component,delete i.unsafe,n){var o=e.split(c).reduce(function(e,t,n){var r=void 0;if(n%2===0?r=t:(r=i[t],delete i[t]),a["default"].isValidElement(r))throw new Error("cannot interpolate a React component into unsafe text");return e+=r},"");return i.dangerouslySetInnerHTML={__html:o},a["default"].createElement(t,i)}var s=e.split(c).reduce(function(e,t,n){var r=void 0;if(n%2===0){if(0===t.length)return e;r=t}else r=i[t],delete i[t];return e.push(r),e},[]);return a["default"].createElement(t,i,s)}});i(p,{REGEXP:c}),n["default"]=p,t.exports=n["default"]},{"./utils/ValidComponentChildren":369,"babel-runtime/core-js/object/assign":377,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,react:581}],313:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("react"),s=i(o),a=e("classnames"),l=i(a),u=e("react-prop-types/lib/elementType"),c=i(u),p=s["default"].createClass({displayName:"Jumbotron",propTypes:{componentClass:c["default"]},getDefaultProps:function(){return{componentClass:"div"}},render:function(){var e=this.props.componentClass;return s["default"].createElement(e,r({},this.props,{className:l["default"](this.props.className,"jumbotron")}),this.props.children)}});n["default"]=p,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/elementType":409}],314:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("react"),c=s(u),p=e("./styleMaps"),f=e("./utils/bootstrapUtils"),h=function(e){function t(){i(this,n),e.apply(this,arguments)}r(t,e),t.prototype.render=function(){var e=f.getClassSet(this.props);return c["default"].createElement("span",o({},this.props,{className:l["default"](this.props.className,e)}),this.props.children)};var n=t;return t=f.bsStyles(p.State.values().concat(p.DEFAULT,p.PRIMARY),p.DEFAULT)(t)||t,t=f.bsClass("label")(t)||t}(c["default"].Component);n["default"]=h,t.exports=n["default"]},{"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],315:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("react"),l=s(a),u=e("./ListGroupItem"),c=s(u),p=e("classnames"),f=s(p),h=e("./utils/ValidComponentChildren"),d=s(h),m=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this,t=d["default"].map(this.props.children,function(e,t){return a.cloneElement(e,{key:e.key?e.key:t})});if(this.areCustomChildren(t)){var n=this.props.componentClass;return l["default"].createElement(n,o({},this.props,{className:f["default"](this.props.className,"list-group")}),t)}var r=!1;return this.props.children?d["default"].forEach(this.props.children,function(t){e.isAnchorOrButton(t.props)&&(r=!0)}):r=!0,r?this.renderDiv(t):this.renderUL(t)},t.prototype.isAnchorOrButton=function(e){return e.href||e.onClick},t.prototype.areCustomChildren=function(e){var t=!1;return d["default"].forEach(e,function(e){e.type!==c["default"]&&(t=!0)},this),t},t.prototype.renderUL=function(e){var t=d["default"].map(e,function(e){return a.cloneElement(e,{listItem:!0})});return l["default"].createElement("ul",o({},this.props,{className:f["default"](this.props.className,"list-group")}),t)},t.prototype.renderDiv=function(e){return l["default"].createElement("div",o({},this.props,{className:f["default"](this.props.className,"list-group")}),e)},t}(l["default"].Component);m.defaultProps={componentClass:"div"},m.propTypes={className:l["default"].PropTypes.string,componentClass:l["default"].PropTypes.oneOf(["ul","div"]),id:l["default"].PropTypes.oneOfType([l["default"].PropTypes.string,l["default"].PropTypes.number])},n["default"]=m,t.exports=n["default"]},{"./ListGroupItem":316,"./utils/ValidComponentChildren":369,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],316:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("react"),c=s(u),p=e("./styleMaps"),f=e("./utils/bootstrapUtils"),h=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=f.getClassSet(this.props);return e.active=this.props.active,e.disabled=this.props.disabled,this.props.href?this.renderAnchor(e):this.props.onClick?this.renderButton(e):this.props.listItem?this.renderLi(e):this.renderSpan(e)},t.prototype.renderLi=function(e){return c["default"].createElement("li",o({},this.props,{className:l["default"](this.props.className,e)}),this.props.header?this.renderStructuredContent():this.props.children)},t.prototype.renderAnchor=function(e){return c["default"].createElement("a",o({},this.props,{className:l["default"](this.props.className,e)}),this.props.header?this.renderStructuredContent():this.props.children)},t.prototype.renderButton=function(e){return c["default"].createElement("button",o({type:"button"},this.props,{className:l["default"](this.props.className,e)}),this.props.header?this.renderStructuredContent():this.props.children)},t.prototype.renderSpan=function(e){return c["default"].createElement("span",o({},this.props,{className:l["default"](this.props.className,e)}),this.props.header?this.renderStructuredContent():this.props.children)},t.prototype.renderStructuredContent=function(){var e=void 0,t=f.prefix(this.props,"heading");e=c["default"].isValidElement(this.props.header)?u.cloneElement(this.props.header,{key:"header",className:l["default"](this.props.header.props.className,t)}):c["default"].createElement("h4",{key:"header",className:t},this.props.header);var n=c["default"].createElement("p",{key:"content",className:f.prefix(this.props,"text")},this.props.children);return[e,n]},t}(c["default"].Component);h.propTypes={className:c["default"].PropTypes.string,active:c["default"].PropTypes.any,disabled:c["default"].PropTypes.any,header:c["default"].PropTypes.node,listItem:c["default"].PropTypes.bool,onClick:c["default"].PropTypes.func,eventKey:c["default"].PropTypes.any,href:c["default"].PropTypes.string,target:c["default"].PropTypes.string},h.defaultTypes={listItem:!1},n["default"]=f.bsStyles(p.State.values(),f.bsClass("list-group-item",h)),t.exports=n["default"]},{"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],317:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/core-js/object/assign")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("react"),l=s(a),u=e("react-prop-types/lib/elementType"),c=s(u),p=e("classnames"),f=s(p),h=e("./MediaHeading"),d=s(h),m=e("./MediaBody"),b=s(m),y=e("./MediaLeft"),v=s(y),g=e("./MediaRight"),_=s(g),T=e("./MediaList"),E=s(T),C=e("./MediaListItem"),w=s(C),S=l["default"].createClass({displayName:"Media",propTypes:{componentClass:c["default"]},getDefaultProps:function(){return{componentClass:"div"}},render:function(){var e=this.props,t=e.componentClass,n=e.className,o=r(e,["componentClass","className"]);return l["default"].createElement(t,i({},o,{className:f["default"](n,"media")}))}});S=o(S,{Heading:d["default"],Body:b["default"],Left:v["default"],Right:_["default"],List:E["default"],ListItem:w["default"]}),n["default"]=S,t.exports=n["default"]},{"./MediaBody":318,"./MediaHeading":319,"./MediaLeft":320,"./MediaList":321,"./MediaListItem":322,"./MediaRight":323,"babel-runtime/core-js/object/assign":377,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/elementType":409}],318:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("react-prop-types/lib/elementType"),u=o(l),c=e("classnames"),p=o(c),f=a["default"].createClass({displayName:"Media.Body",propTypes:{componentClass:u["default"]},getDefaultProps:function(){return{componentClass:"div"}},render:function(){var e=this.props,t=e.componentClass,n=e.className,o=r(e,["componentClass","className"]);return a["default"].createElement(t,i({},o,{className:p["default"](n,"media-body")}))}});n["default"]=f,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/elementType":409}],319:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("react-prop-types/lib/elementType"),u=o(l),c=e("classnames"),p=o(c),f=a["default"].createClass({displayName:"Media.Heading",propTypes:{componentClass:u["default"]},getDefaultProps:function(){return{componentClass:"h4"}},render:function(){var e=this.props,t=e.componentClass,n=e.className,o=r(e,["componentClass","className"]);return a["default"].createElement(t,i({},o,{className:p["default"](n,"media-heading")}))}});n["default"]=f,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/elementType":409}],320:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("classnames"),u=o(l),c=a["default"].createClass({displayName:"Media.Left",propTypes:{align:a["default"].PropTypes.oneOf(["top","middle","bottom"])},render:function(){var e,t=this.props,n=t.align,o=t.className,s=r(t,["align","className"]),l=u["default"](o,"media-left",(e={},e["media-"+n]=Boolean(n),e));return a["default"].createElement("div",i({},s,{className:l}))}});n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],321:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("classnames"),u=o(l),c=a["default"].createClass({displayName:"Media.List",render:function(){var e=this.props,t=e.className,n=r(e,["className"]);return a["default"].createElement("ul",i({},n,{className:u["default"](t,"media-list")}))}});n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],322:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("classnames"),u=o(l),c=a["default"].createClass({displayName:"Media.ListItem",render:function(){var e=this.props,t=e.className,n=r(e,["className"]);return a["default"].createElement("li",i({},n,{className:u["default"](t,"media")}))}});n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],323:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("classnames"),u=o(l),c=a["default"].createClass({displayName:"Media.Right",propTypes:{align:a["default"].PropTypes.oneOf(["top","middle","bottom"])},render:function(){var e,t=this.props,n=t.align,o=t.className,s=r(t,["align","className"]),l=u["default"](o,"media-right",(e={},e["media-"+n]=Boolean(n),e));return a["default"].createElement("div",i({},s,{className:l}))}});n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],324:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("react-prop-types/lib/all"),h=a(f),d=e("./utils/bootstrapUtils"),m=e("./utils/createChainedFunction"),b=a(m),y=e("./SafeAnchor"),v=a(y),g=function(e){function t(n){i(this,t),e.call(this,n),this.handleClick=this.handleClick.bind(this)}return r(t,e),t.prototype.handleClick=function(e){this.props.href&&!this.props.disabled||e.preventDefault(),this.props.disabled||this.props.onSelect&&this.props.onSelect(this.props.eventKey,e)},t.prototype.render=function(){if(this.props.divider)return p["default"].createElement("li",{role:"separator",className:u["default"]("divider",this.props.className),style:this.props.style});if(this.props.header){var e=d.prefix(this.props,"header");return p["default"].createElement("li",{role:"heading",className:u["default"](e,this.props.className),style:this.props.style},this.props.children)}var t=this.props,n=t.className,r=t.style,i=t.onClick,a=o(t,["className","style","onClick"]),l={disabled:this.props.disabled,active:this.props.active};return p["default"].createElement("li",{role:"presentation",className:u["default"](n,l),style:r},p["default"].createElement(v["default"],s({},a,{role:"menuitem",tabIndex:"-1",onClick:b["default"](i,this.handleClick)})))},t}(p["default"].Component);g.propTypes={active:p["default"].PropTypes.bool,disabled:p["default"].PropTypes.bool,divider:h["default"](p["default"].PropTypes.bool,function(e){return e.divider&&e.children?new Error("Children will not be rendered for dividers"):void 0}),eventKey:p["default"].PropTypes.any,header:p["default"].PropTypes.bool,href:p["default"].PropTypes.string,target:p["default"].PropTypes.string,title:p["default"].PropTypes.string,onClick:p["default"].PropTypes.func,onKeyDown:p["default"].PropTypes.func,onSelect:p["default"].PropTypes.func,id:p["default"].PropTypes.oneOfType([p["default"].PropTypes.string,p["default"].PropTypes.number])},g.defaultProps={divider:!1,disabled:!1,header:!1},n["default"]=d.bsClass("dropdown",g),t.exports=n["default"]},{"./SafeAnchor":353,"./utils/bootstrapUtils":370,"./utils/createChainedFunction":373,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/all":406}],325:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/object-without-properties")["default"],o=e("babel-runtime/core-js/object/keys")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("dom-helpers/events"),c=s(u),p=e("dom-helpers/ownerDocument"),f=s(p),h=e("dom-helpers/util/inDOM"),d=s(h),m=e("dom-helpers/util/scrollbarSize"),b=s(m),y=e("lodash-compat/object/pick"),v=s(y),g=e("react"),_=s(g),T=e("react-dom"),E=s(T),C=e("react-overlays/lib/Modal"),w=s(C),S=e("react-overlays/lib/utils/isOverflowing"),P=s(S),x=e("react-prop-types/lib/deprecated"),k=s(x),M=e("react-prop-types/lib/elementType"),A=s(M),O=e("./styleMaps"),N=e("./utils/bootstrapUtils"),I=e("./Fade"),D=s(I),R=e("./ModalDialog"),L=s(R),j=e("./ModalBody"),U=s(j),F=e("./ModalHeader"),B=s(F),H=e("./ModalTitle"),K=s(H),G=e("./ModalFooter"),q=s(G),V=_["default"].createClass({displayName:"Modal",propTypes:r({},w["default"].propTypes,L["default"].propTypes,{backdrop:_["default"].PropTypes.oneOf(["static",!0,!1]),keyboard:_["default"].PropTypes.bool,animation:_["default"].PropTypes.bool,dialogComponentClass:A["default"],dialogComponent:k["default"](A["default"],"Use `dialogComponentClass`."),autoFocus:_["default"].PropTypes.bool,enforceFocus:_["default"].PropTypes.bool,bsStyle:_["default"].PropTypes.string,show:_["default"].PropTypes.bool,onHide:_["default"].PropTypes.func,onEnter:_["default"].PropTypes.func,onEntering:_["default"].PropTypes.func,onEntered:_["default"].PropTypes.func,onExit:_["default"].PropTypes.func,onExiting:_["default"].PropTypes.func,onExited:_["default"].PropTypes.func}),childContextTypes:{$bs_onModalHide:_["default"].PropTypes.func},getDefaultProps:function(){return r({},w["default"].defaultProps,{bsClass:"modal",animation:!0,dialogComponentClass:L["default"]})},getInitialState:function(){return{modalStyles:{}}},getChildContext:function(){return{$bs_onModalHide:this.props.onHide}},componentWillUnmount:function(){c["default"].off(window,"resize",this.handleWindowResize)},render:function(){var e=this,t=this.props,n=t.className,s=(t.children,t.dialogClassName),a=t.animation,u=i(t,["className","children","dialogClassName","animation"]),c=this.state.modalStyles,p={"in":u.show&&!a},f=u.dialogComponent||u.dialogComponentClass,h=v["default"](u,o(w["default"].propTypes).concat(["onExit","onExiting","onEnter","onEntered"])),d=_["default"].createElement(f,r({key:"modal",ref:function(t){return e._modal=t}},u,{style:c,className:l["default"](n,p),dialogClassName:s,onClick:u.backdrop===!0?this.handleDialogClick:null}),this.props.children);return _["default"].createElement(w["default"],r({},h,{show:u.show,ref:function(t){e._wrapper=t&&t.refs.modal,e._backdrop=t&&t.refs.backdrop},onEntering:this._onShow,onExited:this._onHide,backdropClassName:l["default"](N.prefix(u,"backdrop"),p),containerClassName:N.prefix(u,"open"),transition:a?D["default"]:void 0,dialogTransitionTimeout:V.TRANSITION_DURATION,backdropTransitionTimeout:V.BACKDROP_TRANSITION_DURATION}),d)},_onShow:function(){if(c["default"].on(window,"resize",this.handleWindowResize),this.setState(this._getStyles()),this.props.onEntering){var e;(e=this.props).onEntering.apply(e,arguments)}},_onHide:function(){if(c["default"].off(window,"resize",this.handleWindowResize),this.props.onExited){var e;(e=this.props).onExited.apply(e,arguments)}},handleDialogClick:function(e){e.target===e.currentTarget&&this.props.onHide()},handleWindowResize:function(){this.setState(this._getStyles())},_getStyles:function(){if(!d["default"])return{};var e=E["default"].findDOMNode(this._modal),t=f["default"](e),n=e.scrollHeight,r=P["default"](E["default"].findDOMNode(this.props.container||t.body)),i=n>t.documentElement.clientHeight;return{modalStyles:{paddingRight:r&&!i?b["default"]():void 0,paddingLeft:!r&&i?b["default"]():void 0}}}});V.Body=U["default"],V.Header=B["default"],V.Title=K["default"],V.Footer=q["default"],V.Dialog=L["default"],V.TRANSITION_DURATION=300,V.BACKDROP_TRANSITION_DURATION=150,n["default"]=N.bsSizes([O.Sizes.LARGE,O.Sizes.SMALL],N.bsClass("modal",V)),t.exports=n["default"]},{"./Fade":295,"./ModalBody":326,"./ModalDialog":327,"./ModalFooter":328,"./ModalHeader":329,"./ModalTitle":330,"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/core-js/object/keys":379,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,"dom-helpers/events":131,"dom-helpers/ownerDocument":134,"dom-helpers/util/inDOM":152,"dom-helpers/util/scrollbarSize":153,"lodash-compat/object/pick":246,react:581,"react-dom":387,"react-overlays/lib/Modal":388,"react-overlays/lib/utils/isOverflowing":399,"react-prop-types/lib/deprecated":408,"react-prop-types/lib/elementType":409}],326:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("react"),c=s(u),p=e("./utils/bootstrapUtils"),f=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){return c["default"].createElement("div",o({},this.props,{className:l["default"](this.props.className,p.prefix(this.props,"body"))}),this.props.children)},t}(c["default"].Component);n["default"]=p.bsClass("modal",f),t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],327:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("./styleMaps"),c=e("./utils/bootstrapUtils"),p=l["default"].createClass({displayName:"ModalDialog",propTypes:{dialogClassName:l["default"].PropTypes.string},render:function(){var e=r({display:"block"},this.props.style),t=c.prefix(this.props),n=c.getClassSet(this.props);return delete n[t],n[c.prefix(this.props,"dialog")]=!0,l["default"].createElement("div",r({},this.props,{title:null,tabIndex:"-1",role:"dialog",style:e,className:s["default"](this.props.className,t)}),l["default"].createElement("div",{className:s["default"](this.props.dialogClassName,n)
|
||
},l["default"].createElement("div",{className:c.prefix(this.props,"content"),role:"document"},this.props.children)))}});n["default"]=c.bsSizes([u.Sizes.LARGE,u.Sizes.SMALL],c.bsClass("modal",p)),t.exports=n["default"]},{"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],328:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("react"),c=s(u),p=e("./utils/bootstrapUtils"),f=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){return c["default"].createElement("div",o({},this.props,{className:l["default"](this.props.className,p.prefix(this.props,"footer"))}),this.props.children)},t}(c["default"].Component);f.propTypes={bsClass:c["default"].PropTypes.string},f.defaultProps={bsClass:"modal"},n["default"]=p.bsClass("modal",f),t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],329:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("./utils/bootstrapUtils"),h=e("./utils/createChainedFunction"),d=a(h),m=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e["aria-label"],n=o(e,["aria-label"]),r=d["default"](this.context.$bs_onModalHide,this.props.onHide);return p["default"].createElement("div",s({},n,{className:u["default"](this.props.className,f.prefix(this.props,"header"))}),this.props.closeButton&&p["default"].createElement("button",{type:"button",className:"close","aria-label":t,onClick:r},p["default"].createElement("span",{"aria-hidden":"true"},"×")),this.props.children)},t}(p["default"].Component);m.propTypes={"aria-label":p["default"].PropTypes.string,bsClass:p["default"].PropTypes.string,closeButton:p["default"].PropTypes.bool,onHide:p["default"].PropTypes.func},m.contextTypes={$bs_onModalHide:p["default"].PropTypes.func},m.defaultProps={"aria-label":"Close",closeButton:!1},n["default"]=f.bsClass("modal",m),t.exports=n["default"]},{"./utils/bootstrapUtils":370,"./utils/createChainedFunction":373,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],330:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("react"),c=s(u),p=e("./utils/bootstrapUtils"),f=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){return c["default"].createElement("h4",o({},this.props,{className:l["default"](this.props.className,p.prefix(this.props,"title"))}),this.props.children)},t}(c["default"].Component);n["default"]=p.bsClass("modal",f),t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],331:[function(e,t,n){(function(r){"use strict";var i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("keycode"),p=a(c),f=e("react"),h=a(f),d=e("react-dom"),m=a(d),b=e("react-prop-types/lib/all"),y=a(b),v=e("warning"),g=a(v),_=e("./utils/bootstrapUtils"),T=e("./utils/createChainedFunction"),E=a(T),C=e("./utils/tabUtils"),w=e("./utils/ValidComponentChildren"),S=a(w),P=function(e){function t(){o(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.componentDidUpdate=function(){if(this._needsRefocus){var e=this.refs.ul&&m["default"].findDOMNode(this.refs.ul),t=e?e.children||[]:[],n=this.eventKeys().indexOf(this.getActiveKey());if(this._needsRefocus=!1,-1!==n){var r=t[n];r&&r.firstChild&&r.firstChild.focus()}}},t.prototype.render=function(){var e=this.props.className,t=null!=this.props.navbar?this.props.navbar:this.context.$bs_navbar,n=_.getClassSet(this.props);if(n[_.prefix(this.props,"stacked")]=this.props.stacked,n[_.prefix(this.props,"justified")]=this.props.justified,t){var r=this.context.$bs_navbar_bsClass||"navbar";n[_.prefix({bsClass:r},"nav")]=!0,n[_.prefix({bsClass:r},"right")]=this.props.pullRight,n[_.prefix({bsClass:r},"left")]=this.props.pullLeft}else n["pull-right"]=this.props.pullRight,n["pull-left"]=this.props.pullLeft;var i=h["default"].createElement("ul",s({ref:"ul"},this.props,{role:this.getNavRole(),className:u["default"](e,n)}),S["default"].map(this.props.children,this.renderNavItem,this));return i},t.prototype.renderNavItem=function(e,t){var n=E["default"](e.props.onSelect,this.props.onSelect),r=this.isChildActive(e),i=this.getTabProps(e,r,n);return f.cloneElement(e,s({active:r,activeKey:this.props.activeKey,activeHref:this.props.activeHref,onSelect:n,key:e.key||t,navItem:!0},i))},t.prototype.getActiveKey=function(){var e=this.context.$bs_tabcontainer;return e?("production"!==r.env.NODE_ENV?g["default"](!(null!=this.props.activeKey||this.props.activeHref),"Specifing a Nav `activeKey` or `activeHref` prop in the context of a `TabContainer` is not supported. Instead use `<TabContainer activeKey={"+this.props.activeKey+"} />`"):void 0,e.activeKey):this.props.activeKey},t.prototype.isChildActive=function(e){var t=this.getActiveKey();return this.context.$bs_tabcontainer?("production"!==r.env.NODE_ENV?g["default"](!e.props.active,"Specifying a NavItem `active` prop in the context of a `TabContainer` is not supported. Instead use `<TabContainer activeKey={"+e.props.eventKey+"} />`"):void 0,e.props.eventKey===t):e.props.active?!0:null!=this.props.activeKey&&e.props.eventKey===this.props.activeKey?!0:null!=this.props.activeHref&&e.props.href===this.props.activeHref?!0:e.props.active},t.prototype.getTabProps=function(e,t,n){var i=this.getNavRole(),o=this.context.$bs_tabcontainer;if(!o&&"tablist"!==i)return null;var s=e.props,a=s.linkId,l=s["aria-controls"],u=s.eventKey,c=s.role,p=s.onKeyDown,f=s.tabIndex,h=void 0===f?0:f;return o&&o.getId&&("production"!==r.env.NODE_ENV?g["default"](!(a||l),"In the context of a TabContainer, NavItems are given generated `linkId` and `aria-controls` attributes for the sake of proper component accessibility. Any provided ones will be ignored. To control these attributes directly provide a `generateChildId` prop to the parent TabContainer."):void 0,a=o.getId(u,C.TAB)||null,l=o.getId(u,C.PANE)||null,n=E["default"](n,o.onSelect)),"tablist"===i&&(c=c||"tab",p=E["default"](this.handleTabKeyDown.bind(this,n||function(){}),p),h=t?h:-1),{onSelect:n,linkId:a,role:c,onKeyDown:p,"aria-controls":l,tabIndex:h}},t.prototype.handleTabKeyDown=function(e,t){var n=this.eventKeys(),r=this.getActiveKey()||n[0],i=void 0;switch(t.keyCode){case p["default"].codes.left:case p["default"].codes.up:i=C.nextEnabled(this.props.children,r,n,!1),i&&i!==r&&(t.preventDefault(),e(i),this._needsRefocus=!0);break;case p["default"].codes.right:case p["default"].codes.down:i=C.nextEnabled(this.props.children,r,n,!0),i&&i!==r&&(t.preventDefault(),e(i),this._needsRefocus=!0)}},t.prototype.eventKeys=function(){var e=[];return S["default"].forEach(this.props.children,function(t){var n=t.props.eventKey;return e.push(n)}),e},t.prototype.getNavRole=function(){return this.props.role||(this.context.$bs_tabcontainer?"tablist":null)},t}(h["default"].Component);P.propTypes={activeHref:h["default"].PropTypes.string,activeKey:h["default"].PropTypes.any,stacked:h["default"].PropTypes.bool,justified:y["default"](h["default"].PropTypes.bool,function(e){var t=e.justified,n=e.navbar;return t&&n?Error("justified navbar `Nav`s are not supported"):null}),onSelect:h["default"].PropTypes.func,className:h["default"].PropTypes.string,id:h["default"].PropTypes.oneOfType([h["default"].PropTypes.string,h["default"].PropTypes.number]),role:h["default"].PropTypes.string,navbar:h["default"].PropTypes.bool,pullRight:h["default"].PropTypes.bool,pullLeft:h["default"].PropTypes.bool},P.contextTypes={$bs_navbar:h["default"].PropTypes.bool,$bs_navbar_bsClass:h["default"].PropTypes.string,$bs_tabcontainer:h["default"].PropTypes.shape({activeKey:h["default"].PropTypes.any,onSelect:h["default"].PropTypes.func,getId:h["default"].PropTypes.func})},P.defaultProps={justified:!1,pullRight:!1,pullLeft:!1,stacked:!1},n["default"]=_.bsClass("nav",_.bsStyles(["tabs","pills"],P)),t.exports=n["default"]}).call(this,e("_process"))},{"./utils/ValidComponentChildren":369,"./utils/bootstrapUtils":370,"./utils/createChainedFunction":373,"./utils/tabUtils":376,_process:269,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,keycode:180,react:581,"react-dom":387,"react-prop-types/lib/all":406,warning:599}],332:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/object-without-properties")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("react"),u=a(l),c=e("./Dropdown"),p=a(c),f=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.title,r=e.noCaret,i=s(e,["children","title","noCaret"]);return u["default"].createElement(p["default"],o({},i,{componentClass:"li"}),u["default"].createElement(p["default"].Toggle,{useAnchor:!0,disabled:i.disabled,noCaret:r},n),u["default"].createElement(p["default"].Menu,null,t))},t}(u["default"].Component);f.propTypes=o({noCaret:u["default"].PropTypes.bool,title:u["default"].PropTypes.node.isRequired},p["default"].propTypes),n["default"]=f,t.exports=n["default"]},{"./Dropdown":291,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,react:581}],333:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("react"),u=o(l),c=e("./SafeAnchor"),p=o(c),f=e("./utils/createChainedFunction"),h=o(f),d=u["default"].createClass({displayName:"NavItem",propTypes:{active:u["default"].PropTypes.bool,disabled:u["default"].PropTypes.bool,role:u["default"].PropTypes.string,href:u["default"].PropTypes.string,onClick:u["default"].PropTypes.func,onSelect:u["default"].PropTypes.func,eventKey:u["default"].PropTypes.any},getDefaultProps:function(){return{active:!1,disabled:!1}},render:function(){var e=this.props,t=e.active,n=e.disabled,o=e.role,s=e.href,l=e.onClick,c=e.className,f=e.style,d=r(e,["active","disabled","role","href","onClick","className","style"]);return delete d.onSelect,delete d.eventKey,o?"tab"===o&&(d["aria-selected"]=t):"#"===s&&(o="button"),u["default"].createElement("li",{role:"presentation",className:a["default"](c,{active:t,disabled:n}),style:f},u["default"].createElement(p["default"],i({},d,{disabled:n,role:o,href:s,onClick:h["default"](l,this.handleClick)})))},handleClick:function(e){this.props.onSelect&&(e.preventDefault(),this.props.disabled||this.props.onSelect(this.props.eventKey,e))}});n["default"]=d,t.exports=n["default"]},{"./SafeAnchor":353,"./utils/createChainedFunction":373,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],334:[function(e,t,n){"use strict";function r(e,t,n){var r=function(e,n){var r,s=e.componentClass,a=e.className,u=i(e,["componentClass","className"]),p=n.$bs_navbar_bsClass,f=void 0===p?"navbar":p;return c["default"].createElement(s,o({},u,{className:l["default"](a,b.prefix({bsClass:f},t),(r={},r[b.prefix({bsClass:f},"right")]=u.pullRight,r[b.prefix({bsClass:f},"left")]=u.pullLeft,r))}))};return r.displayName=n,r.propTypes={componentClass:f["default"],pullRight:c["default"].PropTypes.bool,pullLeft:c["default"].PropTypes.bool},r.defaultProps={componentClass:e,pullRight:!1,pullLeft:!1},r.contextTypes={$bs_navbar_bsClass:u.PropTypes.string},r}var i=e("babel-runtime/helpers/object-without-properties")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("react"),c=s(u),p=e("react-prop-types/lib/elementType"),f=s(p),h=e("uncontrollable"),d=s(h),m=e("./styleMaps"),b=e("./utils/bootstrapUtils"),y=e("./Grid"),v=s(y),g=e("./NavbarBrand"),_=s(g),T=e("./NavbarCollapse"),E=s(T),C=e("./NavbarHeader"),w=s(C),S=e("./NavbarToggle"),P=s(S),x=c["default"].createClass({displayName:"Navbar",propTypes:{fixedTop:c["default"].PropTypes.bool,fixedBottom:c["default"].PropTypes.bool,staticTop:c["default"].PropTypes.bool,inverse:c["default"].PropTypes.bool,fluid:c["default"].PropTypes.bool,componentClass:f["default"],onToggle:c["default"].PropTypes.func,expanded:c["default"].PropTypes.bool},childContextTypes:{$bs_navbar:u.PropTypes.bool,$bs_navbar_bsClass:u.PropTypes.string,$bs_navbar_onToggle:u.PropTypes.func,$bs_navbar_expanded:u.PropTypes.bool},getDefaultProps:function(){return{componentClass:"nav",fixedTop:!1,fixedBottom:!1,staticTop:!1,inverse:!1,fluid:!1}},getChildContext:function(){return{$bs_navbar:!0,$bs_navbar_bsClass:this.props.bsClass,$bs_navbar_onToggle:this.handleToggle,$bs_navbar_expanded:this.props.expanded}},handleToggle:function(){this.props.onToggle(!this.props.expanded)},isNavExpanded:function(){return!!this.props.expanded},render:function(){var e=this.props,t=e.fixedTop,n=e.fixedBottom,r=e.staticTop,s=e.inverse,a=e.componentClass,u=e.fluid,p=e.className,f=e.children,h=i(e,["fixedTop","fixedBottom","staticTop","inverse","componentClass","fluid","className","children"]);void 0===h.role&&"nav"!==a&&(h.role="navigation"),s&&(h.bsStyle=m.INVERSE);var d=b.getClassSet(h);return d[b.prefix(this.props,"fixed-top")]=t,d[b.prefix(this.props,"fixed-bottom")]=n,d[b.prefix(this.props,"static-top")]=r,c["default"].createElement(a,o({},h,{className:l["default"](p,d)}),c["default"].createElement(v["default"],{fluid:u},f))}}),k=[m.DEFAULT,m.INVERSE];x=b.bsStyles(k,m.DEFAULT,b.bsClass("navbar",d["default"](x,{expanded:"onToggle"}))),x.Brand=_["default"],x.Header=w["default"],x.Toggle=P["default"],x.Collapse=E["default"],x.Form=r("div","form","NavbarForm"),x.Text=r("p","text","NavbarText"),x.Link=r("a","link","NavbarLink"),n["default"]=x,t.exports=n["default"]},{"./Grid":304,"./NavbarBrand":335,"./NavbarCollapse":336,"./NavbarHeader":337,"./NavbarToggle":338,"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/elementType":409,uncontrollable:596}],335:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("react"),p=a(c),f=e("./utils/bootstrapUtils"),h=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=o(e,["className","children"]),i=this.context.$bs_navbar_bsClass,a=void 0===i?"navbar":i,l=f.prefix({bsClass:a},"brand");return p["default"].isValidElement(n)?p["default"].cloneElement(n,{className:u["default"](n.props.className,t,l)}):p["default"].createElement("span",s({},r,{className:u["default"](t,l)}),n)},t}(p["default"].Component);h.contextTypes={$bs_navbar_bsClass:p["default"].PropTypes.string},n["default"]=h,t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],336:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("react"),a=o(s),l=e("./utils/bootstrapUtils"),u=e("./Collapse"),c=o(u),p=a["default"].createClass({displayName:"NavbarCollapse",contextTypes:{$bs_navbar_bsClass:s.PropTypes.string,$bs_navbar_expanded:s.PropTypes.bool},render:function(){var e=this.props,t=e.children,n=r(e,["children"]),o=this.context,s=o.$bs_navbar_bsClass,u=void 0===s?"navbar":s,p=o.$bs_navbar_expanded;return a["default"].createElement(c["default"],i({"in":p},n),a["default"].createElement("div",{className:l.prefix({bsClass:u},"collapse")},t))}});n["default"]=p,t.exports=n["default"]},{"./Collapse":289,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,react:581}],337:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("react"),u=o(l),c=e("./utils/bootstrapUtils"),p=u["default"].createClass({displayName:"NavbarHeader",contextTypes:{$bs_navbar_bsClass:l.PropTypes.string},render:function(){var e=this.props,t=e.className,n=r(e,["className"]),o=this.context.$bs_navbar_bsClass,s=void 0===o?"navbar":o,l=c.prefix({bsClass:s},"header");return u["default"].createElement("div",i({},n,{className:a["default"](t,l)}))}});n["default"]=p,t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],338:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/object-without-properties")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("react"),u=o(l),c=e("./utils/bootstrapUtils"),p=e("./utils/createChainedFunction"),f=o(p),h=u["default"].createClass({displayName:"NavbarToggle",propTypes:{onClick:u["default"].PropTypes.func,children:l.PropTypes.node},contextTypes:{$bs_navbar_bsClass:l.PropTypes.string,$bs_navbar_onToggle:l.PropTypes.func,$bs_navbar_expanded:l.PropTypes.bool},render:function(){var e=this.props,t=e.onClick,n=e.className,o=e.children,s=i(e,["onClick","className","children"]),l=this.context,p=l.$bs_navbar_bsClass,h=void 0===p?"navbar":p,d=l.$bs_navbar_onToggle,m=l.$bs_navbar_expanded,b=r({type:"button"},s,{onClick:f["default"](t,d),className:a["default"](n,c.prefix({bsClass:h},"toggle"),!m&&"collapsed")});return o?u["default"].createElement("button",b,o):u["default"].createElement("button",b,u["default"].createElement("span",{className:"sr-only"},"Toggle navigation"),u["default"].createElement("span",{className:"icon-bar"}),u["default"].createElement("span",{className:"icon-bar"}),u["default"].createElement("span",{className:"icon-bar"}))}});n["default"]=h,t.exports=n["default"]},{"./utils/bootstrapUtils":370,"./utils/createChainedFunction":373,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],339:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/object-without-properties")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("react"),u=a(l),c=e("react-overlays/lib/Overlay"),p=a(c),f=e("react-prop-types/lib/elementType"),h=a(f),d=e("./Fade"),m=a(d),b=e("classnames"),y=a(b),v=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.animation,r=s(e,["children","animation"]);return n===!0&&(n=m["default"]),n===!1&&(n=null),n||(t=l.cloneElement(t,{className:y["default"]("in",t.props.className)})),u["default"].createElement(p["default"],o({},r,{transition:n}),t)},t}(u["default"].Component);v.propTypes=o({},p["default"].propTypes,{show:u["default"].PropTypes.bool,rootClose:u["default"].PropTypes.bool,onHide:u["default"].PropTypes.func,animation:u["default"].PropTypes.oneOfType([u["default"].PropTypes.bool,h["default"]]),onEnter:u["default"].PropTypes.func,onEntering:u["default"].PropTypes.func,onEntered:u["default"].PropTypes.func,onExit:u["default"].PropTypes.func,onExiting:u["default"].PropTypes.func,onExited:u["default"].PropTypes.func}),v.defaultProps={animation:m["default"],rootClose:!1,show:!1},n["default"]=v,t.exports=n["default"]},{"./Fade":295,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-overlays/lib/Overlay":390,"react-prop-types/lib/elementType":409}],340:[function(e,t,n){(function(r){"use strict";function i(e,t){return Array.isArray(t)?t.indexOf(e)>=0:e===t}var o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/core-js/object/keys")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("dom-helpers/query/contains"),u=a(l),c=e("lodash-compat/object/pick"),p=a(c),f=e("react"),h=a(f),d=e("react-dom"),m=a(d),b=e("warning"),y=a(b),v=e("./Overlay"),g=a(v),_=e("./utils/createChainedFunction"),T=a(_),E=h["default"].createClass({displayName:"OverlayTrigger",propTypes:o({},g["default"].propTypes,{trigger:h["default"].PropTypes.oneOfType([h["default"].PropTypes.oneOf(["click","hover","focus"]),h["default"].PropTypes.arrayOf(h["default"].PropTypes.oneOf(["click","hover","focus"]))]),delay:h["default"].PropTypes.number,delayShow:h["default"].PropTypes.number,delayHide:h["default"].PropTypes.number,defaultOverlayShown:h["default"].PropTypes.bool,overlay:h["default"].PropTypes.node.isRequired,onBlur:h["default"].PropTypes.func,onClick:h["default"].PropTypes.func,onFocus:h["default"].PropTypes.func,onMouseEnter:h["default"].PropTypes.func,onMouseLeave:h["default"].PropTypes.func,target:function(){},onHide:function(){},show:function(){}}),getDefaultProps:function(){return{defaultOverlayShown:!1,trigger:["hover","focus"]}},getInitialState:function(){return{isOverlayShown:this.props.defaultOverlayShown}},show:function(){this.setState({isOverlayShown:!0})},hide:function(){this.setState({isOverlayShown:!1})},toggle:function(){this.state.isOverlayShown?this.hide():this.show()},componentWillMount:function(){this.handleMouseOver=this.handleMouseOverOut.bind(null,this.handleDelayedShow),this.handleMouseOut=this.handleMouseOverOut.bind(null,this.handleDelayedHide)},componentDidMount:function(){this._mountNode=document.createElement("div"),this.renderOverlay()},renderOverlay:function(){m["default"].unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},componentWillUnmount:function(){m["default"].unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},componentDidUpdate:function(){this._mountNode&&this.renderOverlay()},getOverlayTarget:function(){return m["default"].findDOMNode(this)},getOverlay:function(){var e=o({},p["default"](this.props,s(g["default"].propTypes)),{show:this.state.isOverlayShown,onHide:this.hide,target:this.getOverlayTarget,onExit:this.props.onExit,onExiting:this.props.onExiting,onExited:this.props.onExited,onEnter:this.props.onEnter,onEntering:this.props.onEntering,onEntered:this.props.onEntered}),t=f.cloneElement(this.props.overlay,{placement:e.placement,container:e.container});return h["default"].createElement(g["default"],e,t)},render:function(){var e=h["default"].Children.only(this.props.children),t=e.props,n={"aria-describedby":this.props.overlay.props.id};return this._overlay=this.getOverlay(),n.onClick=T["default"](t.onClick,this.props.onClick),i("click",this.props.trigger)&&(n.onClick=T["default"](this.toggle,n.onClick)),i("hover",this.props.trigger)&&("production"!==r.env.NODE_ENV?y["default"](!("hover"===this.props.trigger),'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibilty of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'):void 0,n.onMouseOver=T["default"](this.handleMouseOver,this.props.onMouseOver,t.onMouseOver),n.onMouseOut=T["default"](this.handleMouseOut,this.props.onMouseOut,t.onMouseOut)),i("focus",this.props.trigger)&&(n.onFocus=T["default"](this.handleDelayedShow,this.props.onFocus,t.onFocus),n.onBlur=T["default"](this.handleDelayedHide,this.props.onBlur,t.onBlur)),f.cloneElement(e,n)},handleDelayedShow:function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.isOverlayShown&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;return t?void(this._hoverShowDelay=setTimeout(function(){e._hoverShowDelay=null,e.show()},t)):void this.show()}},handleDelayedHide:function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.isOverlayShown&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;return t?void(this._hoverHideDelay=setTimeout(function(){e._hoverHideDelay=null,e.hide()},t)):void this.hide()}},handleMouseOverOut:function(e,t){var n=t.currentTarget,r=t.relatedTarget||t.nativeEvent.toElement;r&&(r===n||u["default"](n,r))||e(t)}});n["default"]=E,t.exports=n["default"]}).call(this,e("_process"))},{"./Overlay":339,"./utils/createChainedFunction":373,_process:269,"babel-runtime/core-js/object/keys":379,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"dom-helpers/query/contains":135,"lodash-compat/object/pick":246,react:581,"react-dom":387,warning:599}],341:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("react"),s=i(o),a=e("classnames"),l=i(a),u=s["default"].createClass({displayName:"PageHeader",render:function(){return s["default"].createElement("div",r({},this.props,{className:l["default"](this.props.className,"page-header")}),s["default"].createElement("h1",null,this.props.children))}});n["default"]=u,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],342:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("react"),u=o(l),c=e("./SafeAnchor"),p=o(c),f=e("./utils/createChainedFunction"),h=o(f),d=u["default"].createClass({displayName:"PageItem",propTypes:{disabled:u["default"].PropTypes.bool,previous:u["default"].PropTypes.bool,next:u["default"].PropTypes.bool,onClick:u["default"].PropTypes.func,onSelect:u["default"].PropTypes.func,eventKey:u["default"].PropTypes.any},getDefaultProps:function(){return{disabled:!1,previous:!1,next:!1}},render:function(){var e=this.props,t=e.disabled,n=e.previous,o=e.next,s=e.onClick,l=e.className,c=e.style,f=r(e,["disabled","previous","next","onClick","className","style"]);return delete f.onSelect,delete f.eventKey,u["default"].createElement("li",{className:a["default"](l,{disabled:t,previous:n,next:o}),style:c},u["default"].createElement(p["default"],i({},f,{disabled:t,onClick:h["default"](s,this.handleSelect)})))},handleSelect:function(e){(this.props.onSelect||this.props.disabled)&&(e.preventDefault(),this.props.disabled||this.props.onSelect(this.props.eventKey,e))}});n["default"]=d,t.exports=n["default"]},{"./SafeAnchor":353,"./utils/createChainedFunction":373,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],343:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("react"),s=i(o),a=e("classnames"),l=i(a),u=e("./utils/ValidComponentChildren"),c=i(u),p=e("./utils/createChainedFunction"),f=i(p),h=s["default"].createClass({displayName:"Pager",propTypes:{onSelect:s["default"].PropTypes.func},render:function(){return s["default"].createElement("ul",r({},this.props,{className:l["default"](this.props.className,"pager")}),c["default"].map(this.props.children,this.renderPageItem))},renderPageItem:function(e,t){return o.cloneElement(e,{onSelect:f["default"](e.props.onSelect,this.props.onSelect),key:e.key?e.key:t})}});n["default"]=h,t.exports=n["default"]},{"./utils/ValidComponentChildren":369,"./utils/createChainedFunction":373,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],344:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("react-prop-types/lib/elementType"),c=i(u),p=e("./utils/bootstrapUtils"),f=e("./PaginationButton"),h=i(f),d=e("./SafeAnchor"),m=i(d),b=l["default"].createClass({displayName:"Pagination",propTypes:{activePage:l["default"].PropTypes.number,items:l["default"].PropTypes.number,maxButtons:l["default"].PropTypes.number,boundaryLinks:l["default"].PropTypes.bool,ellipsis:l["default"].PropTypes.oneOfType([l["default"].PropTypes.bool,l["default"].PropTypes.node]),first:l["default"].PropTypes.oneOfType([l["default"].PropTypes.bool,l["default"].PropTypes.node]),last:l["default"].PropTypes.oneOfType([l["default"].PropTypes.bool,l["default"].PropTypes.node]),prev:l["default"].PropTypes.oneOfType([l["default"].PropTypes.bool,l["default"].PropTypes.node]),next:l["default"].PropTypes.oneOfType([l["default"].PropTypes.bool,l["default"].PropTypes.node]),onSelect:l["default"].PropTypes.func,
|
||
buttonComponentClass:c["default"]},getDefaultProps:function(){return{activePage:1,items:1,maxButtons:0,first:!1,last:!1,prev:!1,next:!1,ellipsis:!0,boundaryLinks:!1,buttonComponentClass:m["default"],bsClass:"pagination"}},renderPageButtons:function(){var e=[],t=void 0,n=void 0,r=void 0,i=this.props,o=i.maxButtons,s=i.activePage,a=i.items,u=i.onSelect,c=i.ellipsis,p=i.buttonComponentClass,f=i.boundaryLinks;if(o){var d=s-parseInt(o/2,10);t=d>1?d:1,r=a>=t+o,r?n=t+o-1:(n=a,t=a-o+1,1>t&&(t=1))}else t=1,n=a;for(var m=t;n>=m;m++)e.push(l["default"].createElement(h["default"],{key:m,eventKey:m,active:m===s,onSelect:u,buttonComponentClass:p},m));return f&&c&&1!==t&&(e.unshift(l["default"].createElement(h["default"],{key:"ellipsisFirst",disabled:!0,buttonComponentClass:p},l["default"].createElement("span",{"aria-label":"More"},this.props.ellipsis===!0?"…":this.props.ellipsis))),e.unshift(l["default"].createElement(h["default"],{key:1,eventKey:1,active:!1,onSelect:u,buttonComponentClass:p},"1"))),o&&r&&c&&(e.push(l["default"].createElement(h["default"],{key:"ellipsis",disabled:!0,buttonComponentClass:p},l["default"].createElement("span",{"aria-label":"More"},this.props.ellipsis===!0?"…":this.props.ellipsis))),f&&n!==a&&e.push(l["default"].createElement(h["default"],{key:a,eventKey:a,active:!1,onSelect:u,buttonComponentClass:p},a))),e},renderPrev:function(){return this.props.prev?l["default"].createElement(h["default"],{key:"prev",eventKey:this.props.activePage-1,disabled:1===this.props.activePage,onSelect:this.props.onSelect,buttonComponentClass:this.props.buttonComponentClass},l["default"].createElement("span",{"aria-label":"Previous"},this.props.prev===!0?"‹":this.props.prev)):null},renderNext:function(){return this.props.next?l["default"].createElement(h["default"],{key:"next",eventKey:this.props.activePage+1,disabled:this.props.activePage>=this.props.items,onSelect:this.props.onSelect,buttonComponentClass:this.props.buttonComponentClass},l["default"].createElement("span",{"aria-label":"Next"},this.props.next===!0?"›":this.props.next)):null},renderFirst:function(){return this.props.first?l["default"].createElement(h["default"],{key:"first",eventKey:1,disabled:1===this.props.activePage,onSelect:this.props.onSelect,buttonComponentClass:this.props.buttonComponentClass},l["default"].createElement("span",{"aria-label":"First"},this.props.first===!0?"«":this.props.first)):null},renderLast:function(){return this.props.last?l["default"].createElement(h["default"],{key:"last",eventKey:this.props.items,disabled:this.props.activePage>=this.props.items,onSelect:this.props.onSelect,buttonComponentClass:this.props.buttonComponentClass},l["default"].createElement("span",{"aria-label":"Last"},this.props.last===!0?"»":this.props.last)):null},render:function(){return l["default"].createElement("ul",r({},this.props,{className:s["default"](this.props.className,p.getClassSet(this.props))}),this.renderFirst(),this.renderPrev(),this.renderPageButtons(),this.renderNext(),this.renderLast())}});n["default"]=p.bsClass("pagination",b),t.exports=n["default"]},{"./PaginationButton":345,"./SafeAnchor":353,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/elementType":409}],345:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("react"),u=o(l),c=e("react-prop-types/lib/elementType"),p=o(c),f=e("./utils/createChainedFunction"),h=o(f),d=u["default"].createClass({displayName:"PaginationButton",propTypes:{className:u["default"].PropTypes.string,eventKey:u["default"].PropTypes.any,onSelect:u["default"].PropTypes.func,disabled:u["default"].PropTypes.bool,active:u["default"].PropTypes.bool,onClick:u["default"].PropTypes.func,buttonComponentClass:p["default"]},getDefaultProps:function(){return{active:!1,disabled:!1}},handleClick:function(e){this.props.disabled||this.props.onSelect&&this.props.onSelect(this.props.eventKey,e)},render:function(){var e=this.props,t=e.active,n=e.disabled,o=e.onClick,s=e.buttonComponentClass,l=e.className,c=e.style,p=r(e,["active","disabled","onClick","buttonComponentClass","className","style"]);return delete p.onSelect,delete p.eventKey,u["default"].createElement("li",{className:a["default"](l,{active:t,disabled:n}),style:c},u["default"].createElement(s,i({},p,{disabled:n,onClick:h["default"](o,this.handleClick)})))}});n["default"]=d,t.exports=n["default"]},{"./utils/createChainedFunction":373,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/elementType":409}],346:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("react"),u=o(l),c=e("./styleMaps"),p=e("./utils/bootstrapUtils"),f=e("./Collapse"),h=o(f),d=u["default"].createClass({displayName:"Panel",propTypes:{collapsible:u["default"].PropTypes.bool,onSelect:u["default"].PropTypes.func,header:u["default"].PropTypes.node,id:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),footer:u["default"].PropTypes.node,defaultExpanded:u["default"].PropTypes.bool,expanded:u["default"].PropTypes.bool,eventKey:u["default"].PropTypes.any,headerRole:u["default"].PropTypes.string,panelRole:u["default"].PropTypes.string,onEnter:h["default"].propTypes.onEnter,onEntering:h["default"].propTypes.onEntering,onEntered:h["default"].propTypes.onEntered,onExit:h["default"].propTypes.onExit,onExiting:h["default"].propTypes.onExiting,onExited:h["default"].propTypes.onExited},getDefaultProps:function(){return{defaultExpanded:!1}},getInitialState:function(){return{expanded:this.props.defaultExpanded}},handleSelect:function(e){e.selected=!0,this.props.onSelect?this.props.onSelect(this.props.eventKey,e):e.preventDefault(),e.selected&&this.handleToggle()},handleToggle:function(){this.setState({expanded:!this.state.expanded})},isExpanded:function(){return null!=this.props.expanded?this.props.expanded:this.state.expanded},render:function(){var e=this.props,t=e.headerRole,n=e.panelRole,o=r(e,["headerRole","panelRole"]);return u["default"].createElement("div",i({},o,{className:a["default"](this.props.className,p.getClassSet(this.props)),id:this.props.collapsible?null:this.props.id,onSelect:null}),this.renderHeading(t),this.props.collapsible?this.renderCollapsibleBody(n):this.renderBody(),this.renderFooter())},renderCollapsibleBody:function(e){var t={onEnter:this.props.onEnter,onEntering:this.props.onEntering,onEntered:this.props.onEntered,onExit:this.props.onExit,onExiting:this.props.onExiting,onExited:this.props.onExited,"in":this.isExpanded()},n={className:p.prefix(this.props,"collapse"),id:this.props.id,ref:"panel","aria-hidden":!this.isExpanded()};return e&&(n.role=e),u["default"].createElement(h["default"],t,u["default"].createElement("div",n,this.renderBody()))},renderBody:function(){function e(){return{key:a.length}}function t(t){a.push(l.cloneElement(t,e()))}function n(t){a.push(u["default"].createElement("div",i({className:f},e()),t))}function r(){0!==c.length&&(n(c),c=[])}var o=this,s=this.props.children,a=[],c=[],f=p.prefix(this.props,"body");return Array.isArray(s)&&0!==s.length?(s.forEach(function(e){o.shouldRenderFill(e)?(r(),t(e)):c.push(e)}),r()):this.shouldRenderFill(s)?t(s):n(s),a},shouldRenderFill:function(e){return u["default"].isValidElement(e)&&null!=e.props.fill},renderHeading:function(e){var t=this.props.header;if(!t)return null;if(!u["default"].isValidElement(t)||Array.isArray(t))t=this.props.collapsible?this.renderCollapsibleTitle(t,e):t;else{var n=a["default"](p.prefix(this.props,"title"),t.props.className);t=this.props.collapsible?l.cloneElement(t,{className:n,children:this.renderAnchor(t.props.children,e)}):l.cloneElement(t,{className:n})}return u["default"].createElement("div",{className:p.prefix(this.props,"heading")},t)},renderAnchor:function(e,t){return u["default"].createElement("a",{href:"#"+(this.props.id||""),"aria-controls":this.props.collapsible?this.props.id:null,className:this.isExpanded()?null:"collapsed","aria-expanded":this.isExpanded(),"aria-selected":this.isExpanded(),onClick:this.handleSelect,role:t},e)},renderCollapsibleTitle:function(e,t){return u["default"].createElement("h4",{className:p.prefix(this.props,"title"),role:"presentation"},this.renderAnchor(e,t))},renderFooter:function(){return this.props.footer?u["default"].createElement("div",{className:p.prefix(this.props,"footer")},this.props.footer):null}}),m=c.State.values().concat(c.DEFAULT,c.PRIMARY);n["default"]=p.bsStyles(m,c.DEFAULT,p.bsClass("panel",d)),t.exports=n["default"]},{"./Collapse":289,"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],347:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("react"),u=o(l),c=e("./utils/bootstrapUtils"),p=e("./utils/ValidComponentChildren"),f=o(p),h=u["default"].createClass({displayName:"PanelGroup",propTypes:{accordion:u["default"].PropTypes.bool,activeKey:u["default"].PropTypes.any,className:u["default"].PropTypes.string,children:u["default"].PropTypes.node,defaultActiveKey:u["default"].PropTypes.any,onSelect:u["default"].PropTypes.func},getDefaultProps:function(){return{accordion:!1}},getInitialState:function(){var e=this.props.defaultActiveKey;return{activeKey:e}},render:function(){var e=c.getClassSet(this.props),t=this.props,n=t.className,o=r(t,["className"]);return this.props.accordion&&(o.role="tablist"),u["default"].createElement("div",i({},o,{className:a["default"](n,e),onSelect:null}),f["default"].map(o.children,this.renderPanel))},renderPanel:function(e,t){var n=null!=this.props.activeKey?this.props.activeKey:this.state.activeKey,r={bsStyle:e.props.bsStyle||this.props.bsStyle,key:e.key?e.key:t,ref:e.ref};return this.props.accordion&&(r.headerRole="tab",r.panelRole="tabpanel",r.collapsible=!0,r.expanded=e.props.eventKey===n,r.onSelect=this.handleSelect),l.cloneElement(e,r)},shouldComponentUpdate:function(){return!this._isChanging},handleSelect:function(e,t){t.preventDefault(),this.props.onSelect&&(this._isChanging=!0,this.props.onSelect(e,t),this._isChanging=!1),this.state.activeKey===e&&(e=null),this.setState({activeKey:e})}});n["default"]=c.bsClass("panel-group",h),t.exports=n["default"]},{"./utils/ValidComponentChildren":369,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],348:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("react-prop-types/lib/isRequiredForA11y"),c=i(u),p=e("./utils/bootstrapUtils"),f=l["default"].createClass({displayName:"Popover",propTypes:{id:c["default"](l["default"].PropTypes.oneOfType([l["default"].PropTypes.string,l["default"].PropTypes.number])),placement:l["default"].PropTypes.oneOf(["top","right","bottom","left"]),positionLeft:l["default"].PropTypes.number,positionTop:l["default"].PropTypes.number,arrowOffsetLeft:l["default"].PropTypes.oneOfType([l["default"].PropTypes.number,l["default"].PropTypes.string]),arrowOffsetTop:l["default"].PropTypes.oneOfType([l["default"].PropTypes.number,l["default"].PropTypes.string]),title:l["default"].PropTypes.node},getDefaultProps:function(){return{placement:"right",bsClass:"popover"}},render:function(){var e,t=(e={},e[p.prefix(this.props)]=!0,e[this.props.placement]=!0,e),n=r({left:this.props.positionLeft,top:this.props.positionTop,display:"block"},this.props.style),i={left:this.props.arrowOffsetLeft,top:this.props.arrowOffsetTop};return l["default"].createElement("div",r({role:"tooltip"},this.props,{className:s["default"](this.props.className,t),style:n,title:null}),l["default"].createElement("div",{className:"arrow",style:i}),this.props.title?this.renderTitle():null,l["default"].createElement("div",{className:p.prefix(this.props,"content")},this.props.children))},renderTitle:function(){return l["default"].createElement("h3",{className:p.prefix(this.props,"title")},this.props.title)}});n["default"]=f,t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/isRequiredForA11y":410}],349:[function(e,t,n){"use strict";function r(e,t,n){if(e[t]){var r=function(){var r=void 0,i=void 0;return f["default"].Children.forEach(e[t],function(e){e.type!==T&&(i=e.type.displayName?e.type.displayName:e.type,r=new Error("Children of "+n+" can contain only ProgressBar components. Found "+i))}),{v:r}}();if("object"==typeof r)return r.v}}var i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/object-without-properties")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var u=e("classnames"),c=l(u),p=e("react"),f=l(p),h=e("./styleMaps"),d=e("./utils/bootstrapUtils"),m=e("./utils/deprecationWarning"),b=l(m),y=e("./utils/ValidComponentChildren"),v=l(y),g=e("./Interpolate"),_=l(g),T=function(e){function t(){o(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.getPercentage=function(e,t,n){var r=1e3;return Math.round((e-t)/(n-t)*100*r)/r},t.prototype.render=function(){if(this.props.isChild)return this.renderProgressBar();var e=void 0;return e=this.props.children?v["default"].map(this.props.children,this.renderChildBar):this.renderProgressBar(),f["default"].createElement("div",s({},this.props,{className:c["default"](this.props.className,"progress"),min:null,max:null,label:null,"aria-valuetext":null}),e)},t.prototype.renderChildBar=function(e,t){return p.cloneElement(e,{isChild:!0,key:e.key?e.key:t})},t.prototype.renderProgressBar=function(){var e,t=this.props,n=t.className,r=t.label,i=t.now,o=t.min,l=t.max,u=t.style,p=a(t,["className","label","now","min","max","style"]),h=this.getPercentage(i,o,l);"string"==typeof r&&(r=this.renderLabel(h)),this.props.srOnly&&(r=f["default"].createElement("span",{className:"sr-only"},r));var m=c["default"](n,d.getClassSet(this.props),(e={active:this.props.active},e[d.prefix(this.props,"striped")]=this.props.active||this.props.striped,e));return f["default"].createElement("div",s({},p,{className:m,role:"progressbar",style:s({width:h+"%"},u),"aria-valuenow":this.props.now,"aria-valuemin":this.props.min,"aria-valuemax":this.props.max}),r)},t.prototype.renderLabel=function(e){var t=this.props,n=t.interpolateClass,r=t.now,i=t.min,o=t.max,s=t.bsStyle,a=t.label,l=n||_["default"],u=l.REGEXP;return u&&u.exec(a)&&b["default"]("String interpolation in <ProgressBar label>","ES2015 template strings or other patterns"),f["default"].createElement(l,{now:r,min:i,max:o,percent:e,bsStyle:s},a)},t}(f["default"].Component);T.propTypes={min:p.PropTypes.number,now:p.PropTypes.number,max:p.PropTypes.number,label:p.PropTypes.node,srOnly:p.PropTypes.bool,striped:p.PropTypes.bool,active:p.PropTypes.bool,children:r,className:f["default"].PropTypes.string,interpolateClass:p.PropTypes.node,isChild:p.PropTypes.bool},T.defaultProps={min:0,max:100,active:!1,isChild:!1,srOnly:!1,striped:!1},n["default"]=d.bsStyles(h.State.values(),d.bsClass("progress-bar",T)),t.exports=n["default"]},{"./Interpolate":312,"./styleMaps":366,"./utils/ValidComponentChildren":369,"./utils/bootstrapUtils":370,"./utils/deprecationWarning":374,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581}],350:[function(e,t,n){(function(r){"use strict";var i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/object-without-properties")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var u=e("classnames"),c=l(u),p=e("react"),f=l(p),h=e("warning"),d=l(h),m=e("./utils/bootstrapUtils"),b={inline:f["default"].PropTypes.bool,disabled:f["default"].PropTypes.bool,validationState:f["default"].PropTypes.oneOf(["success","warning","error"])},y={inline:!1,disabled:!1},v=function(e){function t(){o(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.inline,n=e.disabled,i=e.validationState,o=e.className,l=e.style,u=e.children,p=a(e,["inline","disabled","validationState","className","style","children"]);if(delete p.bsClass,t){var h,b=(h={},h[m.prefix(this.props,"inline")]=!0,h.disabled=n,h);return"production"!==r.env.NODE_ENV?d["default"](!i,"`validationState` is ignored on `<Radio inline>`. To display validation state on an inline radio, set `validationState` on a parent `<FormGroup>` or other element instead."):void 0,f["default"].createElement("label",{className:c["default"](o,b),style:l},f["default"].createElement("input",s({},p,{type:"radio",disabled:n})),u)}var y=s({},m.getClassSet(this.props),{disabled:n});return i&&(y["has-"+i]=!0),f["default"].createElement("div",{className:c["default"](o,y),style:l},f["default"].createElement("label",null,f["default"].createElement("input",s({},p,{type:"radio",disabled:n})),u))},t}(f["default"].Component);v.propTypes=b,v.defaultProps=y,n["default"]=m.bsClass("radio",v),t.exports=n["default"]}).call(this,e("_process"))},{"./utils/bootstrapUtils":370,_process:269,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,warning:599}],351:[function(e,t,n){(function(r){"use strict";var i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/object-without-properties")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var u=e("classnames"),c=l(u),p=e("react"),f=l(p),h=e("warning"),d=l(h),m=function(e){function t(){o(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.bsClass,n=e.className,i=e.a16by9,o=e.a4by3,l=e.children,u=a(e,["bsClass","className","a16by9","a4by3","children"]);"production"!==r.env.NODE_ENV?d["default"](!(!i&&!o),"`a16by9` or `a4by3` attribute must be set."):void 0,"production"!==r.env.NODE_ENV?d["default"](!(i&&o),"Either `a16by9` or `a4by3` attribute can be set. Not both."):void 0;var h={"embed-responsive-16by9":i,"embed-responsive-4by3":o};return f["default"].createElement("div",{className:c["default"](t,h)},p.cloneElement(l,s({},u,{className:c["default"](n,"embed-responsive-item")})))},t}(f["default"].Component);m.defaultProps={bsClass:"embed-responsive",a16by9:!1,a4by3:!1},m.propTypes={bsClass:p.PropTypes.string,children:p.PropTypes.element.isRequired,a16by9:p.PropTypes.bool,a4by3:p.PropTypes.bool},n["default"]=m,t.exports=n["default"]}).call(this,e("_process"))},{_process:269,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,warning:599}],352:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("react"),s=i(o),a=e("classnames"),l=i(a),u=e("react-prop-types/lib/elementType"),c=i(u),p=s["default"].createClass({displayName:"Row",propTypes:{componentClass:c["default"]},getDefaultProps:function(){return{componentClass:"div"}},render:function(){var e=this.props.componentClass;return s["default"].createElement(e,r({},this.props,{className:l["default"](this.props.className,"row")}),this.props.children)}});n["default"]=p,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/elementType":409}],353:[function(e,t,n){"use strict";function r(e){return!e||"#"===e.trim()}var i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/object-without-properties")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var u=e("react"),c=l(u),p=e("react-prop-types/lib/elementType"),f=l(p),h=function(e){function t(n){o(this,t),e.call(this,n),this.handleClick=this.handleClick.bind(this)}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.href,n=e.role,i=e.tabIndex,o=e.disabled,l=e.style,u=a(e,["href","role","tabIndex","disabled","style"]),p=this.props.componentClass||"a";return r(t)&&(n=n||"button",t=t||""),o&&(i=-1,l=s({pointerEvents:"none"},l)),c["default"].createElement(p,s({},u,{role:n,href:t,style:l,tabIndex:i,onClick:this.handleClick}))},t.prototype.handleClick=function(e){var t=this.props,n=t.disabled,i=t.href,o=t.onClick;return(n||r(i))&&e.preventDefault(),n?void e.stopPropagation():void(o&&o(e))},t}(c["default"].Component);n["default"]=h,h.propTypes={href:c["default"].PropTypes.string,onClick:c["default"].PropTypes.func,disabled:c["default"].PropTypes.bool,role:c["default"].PropTypes.string,tabIndex:c["default"].PropTypes.oneOfType([c["default"].PropTypes.number,c["default"].PropTypes.string]),componentClass:f["default"]},t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,react:581,"react-prop-types/lib/elementType":409}],354:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/object-without-properties")["default"],a=e("babel-runtime/core-js/object/keys")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var u=e("react"),c=l(u),p=e("./Button"),f=l(p),h=e("./Dropdown"),d=l(h),m=e("./SplitToggle"),b=l(m),y=e("lodash-compat/object/omit"),v=l(y),g=e("lodash-compat/object/pick"),_=l(g),T=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.title,r=e.onClick,i=e.target,l=e.href,u=e.toggleLabel,p=e.bsSize,h=e.bsStyle,m=s(e,["children","title","onClick","target","href","toggleLabel","bsSize","bsStyle"]),y=m.disabled,g=_["default"](m,a(d["default"].ControlledComponent.propTypes)),T=v["default"](m,a(d["default"].ControlledComponent.propTypes));return c["default"].createElement(d["default"],g,c["default"].createElement(f["default"],o({},T,{onClick:r,bsStyle:h,bsSize:p,disabled:y,target:i,href:l}),n),c["default"].createElement(b["default"],{"aria-label":u||n,bsStyle:h,bsSize:p,disabled:y}),c["default"].createElement(d["default"].Menu,null,t))},t}(c["default"].Component);T.propTypes=o({},d["default"].propTypes,{bsStyle:f["default"].propTypes.bsStyle,onClick:function(){},target:c["default"].PropTypes.string,href:c["default"].PropTypes.string,title:c["default"].PropTypes.node.isRequired,toggleLabel:c["default"].PropTypes.string}),T.defaultProps={disabled:!1,dropup:!1,pullRight:!1},T.Toggle=b["default"],n["default"]=T,t.exports=n["default"]},{"./Button":279,"./Dropdown":291,"./SplitToggle":355,"babel-runtime/core-js/object/keys":379,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,"lodash-compat/object/omit":244,"lodash-compat/object/pick":246,react:581}],355:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("react"),l=s(a),u=e("./DropdownToggle"),c=s(u),p=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){return l["default"].createElement(c["default"],o({},this.props,{useAnchor:!1,noCaret:!1}))},t}(l["default"].Component);n["default"]=p,p.defaultProps=c["default"].defaultProps,t.exports=n["default"]},{"./DropdownToggle":294,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,react:581}],356:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/object-without-properties")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("react"),u=a(l),c=e("./TabPane"),p=a(c),f=e("./TabContainer"),h=a(f),d=e("./TabContent"),m=a(d),b=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.render=function(){var e=this.props,t=(e.title,e.disabled,e.tabClassName,s(e,["title","disabled","tabClassName"]));return u["default"].createElement(p["default"],t)},t}(u["default"].Component);b.propTypes=o({},p["default"].propTypes,{disabled:u["default"].PropTypes.bool,title:u["default"].PropTypes.node,tabClassName:u["default"].PropTypes.string}),b.Container=h["default"],b.Content=m["default"],b.Pane=p["default"],n["default"]=b,t.exports=n["default"]},{"./TabContainer":357,"./TabContent":358,"./TabPane":359,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,react:581}],357:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("react"),s=i(o),a=e("uncontrollable"),l=i(a),u=o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]),c=s["default"].createClass({displayName:"TabContainer",propTypes:{id:function(e){var t=null;if(!e.generateChildId){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];t=u.apply(void 0,[e].concat(r)),t||e.id||(t=new Error("In order to properly initialize Tabs in a way that is accessible to assistive technologies (such as screen readers) an `id` or a `generateChildId` prop to TabContainer is required"))}return t},generateChildId:o.PropTypes.func,onSelect:o.PropTypes.func,activeKey:o.PropTypes.any},childContextTypes:{$bs_tabcontainer:s["default"].PropTypes.shape({activeKey:o.PropTypes.any,onSelect:o.PropTypes.func,getId:o.PropTypes.func})},getChildContext:function(){var e=this.props,t=e.activeKey,n=e.onSelect,r=e.generateChildId,i=e.id;return{$bs_tabcontainer:{activeKey:t,onSelect:n,getId:r||function(e,t){return i?i+"-"+t+"-"+e:null}}}},render:function(){var e=this.props,t=e.children,n=r(e,["children"]);return delete n.generateChildId,delete n.onSelect,delete n.activeKey,s["default"].cloneElement(s["default"].Children.only(t),n)}});n["default"]=l["default"](c,{activeKey:"onSelect"}),t.exports=n["default"]},{"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,react:581,uncontrollable:596}],358:[function(e,t,n){(function(r){"use strict";var i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("invariant"),l=i(a),u=e("react"),c=i(u),p=e("react-prop-types/lib/elementType"),f=i(p),h=e("./utils/bootstrapUtils"),d=u.PropTypes.oneOfType([u.PropTypes.bool,f["default"]]),m=c["default"].createClass({displayName:"TabContent",propTypes:{componentClass:f["default"],animation:u.PropTypes.oneOfType([u.PropTypes.bool,f["default"]])},contextTypes:{$bs_tabcontainer:c["default"].PropTypes.shape({activeKey:c["default"].PropTypes.any,onSelect:u.PropTypes.func})},childContextTypes:{$bs_tabcontent:u.PropTypes.shape({bsClass:u.PropTypes.string,animation:d,activeKey:u.PropTypes.any,onExited:u.PropTypes.func,register:u.PropTypes.func})},getDefaultProps:function(){return{componentClass:"div",animation:!0}},getInitialState:function(){return{exitingPane:null}},getChildContext:function(){var e=this._exitingPane;return{$bs_tabcontent:{bsClass:this.props.bsClass,animation:this.props.animation,activeKey:e?void 0:this.getActiveKey(),onExited:this.handlePaneExited,register:this.registerPane}}},componentWillUpdate:function(e,t,n){var r=this.getActiveKey(),i=this.getActiveKey(n),o=-1!==this.panes.indexOf(r);-1===this.panes.indexOf(this._exitingPane)&&(this._exitingPane=null),i!==r&&o&&(this._exitingPane=r)},render:function(){var e=this.props,t=e.className,n=e.children,r=this.props.componentClass,i=h.prefix(this.props,"content");return c["default"].createElement(r,{className:s["default"](i,t)},n)},handlePaneExited:function(){this._exitingPane=null,this.forceUpdate()},registerPane:function(e){var t=this,n=this.panes||(this.panes=[]);return-1!==n.indexOf(e)?"production"!==r.env.NODE_ENV?l["default"](!1,"You cannot have multiple TabPanes of with the same `eventKey` in the same TabContent component. Duplicate eventKey: "+e):l["default"](!1):void 0,n.push(e),function(){n.splice(n.indexOf(e),1),e===t.getActiveKey()&&t.getContext("$bs_tabcontainer").onSelect()}},getActiveKey:function(){var e=arguments.length<=0||void 0===arguments[0]?this.context:arguments[0];return this.getContext("$bs_tabcontainer",e).activeKey},getContext:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.context:arguments[1];return t[e]||{}}});n["default"]=h.bsClass("tab",m),t.exports=n["default"]}).call(this,e("_process"))},{"./utils/bootstrapUtils":370,_process:269,"babel-runtime/helpers/interop-require-default":384,classnames:29,invariant:179,react:581,"react-prop-types/lib/elementType":409}],359:[function(e,t,n){(function(r){"use strict";var i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),a=o(s),l=e("dom-helpers/class/addClass"),u=o(l),c=e("react"),p=o(c),f=e("react-prop-types/lib/elementType"),h=o(f),d=e("warning"),m=o(d),b=e("./utils/bootstrapUtils"),y=e("./utils/createChainedFunction"),v=o(y),g=e("./utils/tabUtils"),_=e("./Fade"),T=o(_),E=p["default"].createClass({displayName:"TabPane",propTypes:{eventKey:c.PropTypes.any,animation:c.PropTypes.oneOfType([c.PropTypes.bool,h["default"]]),id:c.PropTypes.string,"aria-labelledby":c.PropTypes.string,onEnter:c.PropTypes.func,onEntering:c.PropTypes.func,onEntered:c.PropTypes.func,onExit:c.PropTypes.func,onExiting:c.PropTypes.func,onExited:c.PropTypes.func
|
||
},contextTypes:{$bs_tabcontainer:c.PropTypes.shape({getId:c.PropTypes.func}),$bs_tabcontent:c.PropTypes.shape({bsClass:c.PropTypes.string,animation:c.PropTypes.oneOfType([c.PropTypes.bool,h["default"]]),activeKey:c.PropTypes.any,onExited:c.PropTypes.func,register:c.PropTypes.func})},childContextTypes:{$bs_tabcontainer:c.PropTypes.oneOf([null])},componentWillMount:function(){this.exited=!this.isActive(),this.registerWithParent()},componentWillReceiveProps:function(e,t){e.eventKey!==this.props.eventKey&&(this.unregisterWithParent(),this.registerWithParent(e,t))},componentWillUpdate:function(e,t,n){this.isActive(e,n)?this.exited=!1:this.exited||this.getTransition(e,n)||(this.exited=!0,this._fireExitedCallback=!0)},componentDidUpdate:function(){this._fireExitedCallback&&(this._fireExitedCallback=!1,this.onExited())},componentWillUnmount:function(){this.unregisterWithParent()},getChildContext:function(){return{$bs_tabcontainer:null}},getTransition:function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=arguments.length<=1||void 0===arguments[1]?this.context:arguments[1];return t=this.getContext("$bs_tabcontent",t),null!=e.animation?e.animation:t.animation},isActive:function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=arguments.length<=1||void 0===arguments[1]?this.context:arguments[1];return this.getContext("$bs_tabcontent",t).activeKey===e.eventKey},render:function(){var e,t=this.isActive(),n=t||!this.exited,o=this.getContext("$bs_tabcontainer").getId,s=this.props.bsClass||this.getContext("$bs_tabcontent").bsClass,l=this.getTransition(),u=(e={active:n},e[b.prefix({bsClass:s},"pane")]=!0,e),c=this.props,f=c.eventKey,h=c.id,d=c["aria-labelledby"],y=c.onExit,_=c.onExiting,E=c.onExited,C=c.onEnter,w=c.onEntering,S=c.onEntered;"boolean"==typeof l&&(l=l?T["default"]:null),o&&("production"!==r.env.NODE_ENV?m["default"](!(h||d),"In the context of a TabContainer, TabPanes are given generated `id` and `aria-labelledby` attributes for the sake of proper component accessibility. Any provided ones will be ignored. To control these attributes directly provide a `generateChildId` prop to the parent TabContainer."):void 0,h=o(f,g.PANE)||null,d=o(f,g.TAB)||null);var P=p["default"].createElement("div",i({},this.props,{id:h,role:"tabpanel","aria-hidden":!n,"aria-labelledby":d,className:a["default"](this.props.className,u,{"in":!l})}),this.props.children);return l&&(P=p["default"].createElement(l,{"in":t,onExit:y,onExiting:_,onExited:v["default"](this.handleExited,E),onEnter:v["default"](this.handleEnter,C),onEntering:w,onEntered:S},P)),P},onExited:function(){var e=this.getContext("$bs_tabcontent");e.onExited&&e.onExited(this.props.eventKey)},handleEnter:function(e){this.isActive()&&(u["default"](e,"active"),e.offsetWidth)},handleExited:function(){this.exited=!0,this.onExited(),this.forceUpdate()},registerWithParent:function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=arguments.length<=1||void 0===arguments[1]?this.context:arguments[1],n=this.getContext("$bs_tabcontent",t).register;n&&(this.unregister=n(e.eventKey))},unregisterWithParent:function(){this.unregister&&this.unregister()},getContext:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.context:arguments[1];return t[e]||{}}});n["default"]=b.bsClass("tab",E),t.exports=n["default"]}).call(this,e("_process"))},{"./Fade":295,"./utils/bootstrapUtils":370,"./utils/createChainedFunction":373,"./utils/tabUtils":376,_process:269,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,"dom-helpers/class/addClass":126,react:581,"react-prop-types/lib/elementType":409,warning:599}],360:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("react"),s=i(o),a=e("classnames"),l=i(a),u=s["default"].createClass({displayName:"Table",propTypes:{striped:s["default"].PropTypes.bool,bordered:s["default"].PropTypes.bool,condensed:s["default"].PropTypes.bool,hover:s["default"].PropTypes.bool,responsive:s["default"].PropTypes.bool},getDefaultProps:function(){return{bordered:!1,condensed:!1,hover:!1,responsive:!1,striped:!1}},render:function(){var e={table:!0,"table-striped":this.props.striped,"table-bordered":this.props.bordered,"table-condensed":this.props.condensed,"table-hover":this.props.hover},t=s["default"].createElement("table",r({},this.props,{className:l["default"](this.props.className,e)}),this.props.children);return this.props.responsive?s["default"].createElement("div",{className:"table-responsive"},t):t}});n["default"]=u,t.exports=n["default"]},{"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],361:[function(e,t,n){"use strict";function r(e){var t=void 0;return x["default"].forEach(e,function(e){null==t&&(t=e.props.eventKey)}),t}var i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],s=e("babel-runtime/core-js/object/keys")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("classnames"),u=a(l),c=e("uncontrollable"),p=a(c),f=e("react"),h=a(f),d=e("./Col"),m=a(d),b=e("./Nav"),y=a(b),v=e("./NavItem"),g=a(v),_=e("./styleMaps"),T=a(_),E=e("react-prop-types/lib/isRequiredForA11y"),C=a(E),w=e("./utils/deprecationWarning"),S=a(w),P=e("./utils/ValidComponentChildren"),x=a(P),k=e("./TabContainer"),M=a(k),A=e("./TabContent"),O=a(A),N=M["default"].ControlledComponent,I=h["default"].createClass({displayName:"Tabs",propTypes:{activeKey:h["default"].PropTypes.any,bsStyle:h["default"].PropTypes.oneOf(["tabs","pills"]),animation:h["default"].PropTypes.bool,id:C["default"](h["default"].PropTypes.oneOfType([h["default"].PropTypes.string,h["default"].PropTypes.number])),onSelect:h["default"].PropTypes.func,position:h["default"].PropTypes.oneOf(["top","left","right"]),tabWidth:h["default"].PropTypes.oneOfType([h["default"].PropTypes.number,h["default"].PropTypes.object]),paneWidth:h["default"].PropTypes.oneOfType([h["default"].PropTypes.number,h["default"].PropTypes.object]),standalone:h["default"].PropTypes.bool},getDefaultProps:function(){return{bsClass:"tab",animation:!0,tabWidth:2,position:"top",standalone:!1}},render:function(){var e=this.props,t=e.id,n=e.className,r=e.style,s=e.position,a=e.bsStyle,l=e.tabWidth,c=e.paneWidth,p=e.standalone,f=e.children,d=e.onSelect,b=e.activeKey,v=o(e,["id","className","style","position","bsStyle","tabWidth","paneWidth","standalone","children","onSelect","activeKey"]);b=this.getActiveKey();var g="left"===s||"right"===s;null==a&&(a=g?"pills":"tabs");var _={id:t,className:n,style:r,activeKey:b,onSelect:d},T=i({},v,{bsStyle:a,bsClass:void 0,stacked:g,ref:"tabs",role:"tablist"}),E=x["default"].map(f,this.renderTab),C={ref:"panes",animation:v.animation},w=f;if(g){S["default"]({message:'Horizontal Tabs (position "left" or "right") are deprecated in favor of the more flexible TabContainer component.'}),p||(_.className=u["default"](_.className,"clearfix"));var P=this.getColProps({tabWidth:l,paneWidth:c}),k=P.tabsColProps,M=P.panesColProps,A=h["default"].createElement(m["default"],i({componentClass:y["default"]},T,k),E),I=h["default"].createElement(m["default"],i({componentClass:O["default"]},C,M),w);return"left"===s?h["default"].createElement(N,_,h["default"].createElement("div",null,A,I)):h["default"].createElement(N,_,h["default"].createElement("div",null,I,A))}return h["default"].createElement(N,_,h["default"].createElement("div",null,h["default"].createElement(y["default"],T,E),h["default"].createElement(O["default"],C,w)))},getActiveKey:function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=e.activeKey,n=e.children;return void 0===t?r(n):t},renderPane:function(e,t){return f.cloneElement(e,{key:e.key?e.key:t})},renderTab:function(e){if(null==e.props.title)return null;var t=e.props,n=t.eventKey,r=t.title,i=t.disabled,o=t.tabClassName;return h["default"].createElement(g["default"],{eventKey:n,disabled:i,className:o},r)},getColProps:function(e){var t=e.tabWidth,n=e.paneWidth,r=void 0;r=t instanceof Object?t:{xs:t};var i=void 0;return null==n?(i={},s(r).forEach(function(e){i[e]=T["default"].GRID_COLUMNS-r[e]})):i=n instanceof Object?n:{xs:n},{tabsColProps:r,panesColProps:i}}});n["default"]=p["default"](I,{activeKey:"onSelect"}),t.exports=n["default"]},{"./Col":288,"./Nav":331,"./NavItem":333,"./TabContainer":357,"./TabContent":358,"./styleMaps":366,"./utils/ValidComponentChildren":369,"./utils/deprecationWarning":374,"babel-runtime/core-js/object/keys":379,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/object-without-properties":386,classnames:29,react:581,"react-prop-types/lib/isRequiredForA11y":410,uncontrollable:596}],362:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("./utils/bootstrapUtils"),c=e("./SafeAnchor"),p=i(c),f=l["default"].createClass({displayName:"Thumbnail",propTypes:{alt:l["default"].PropTypes.string,href:l["default"].PropTypes.string,src:l["default"].PropTypes.string},render:function(){var e=u.getClassSet(this.props);return this.props.href?l["default"].createElement(p["default"],r({},this.props,{href:this.props.href,className:s["default"](this.props.className,e)}),l["default"].createElement("img",{src:this.props.src,alt:this.props.alt})):this.props.children?l["default"].createElement("div",r({},this.props,{className:s["default"](this.props.className,e)}),l["default"].createElement("img",{src:this.props.src,alt:this.props.alt}),l["default"].createElement("div",{className:"caption"},this.props.children)):l["default"].createElement("div",r({},this.props,{className:s["default"](this.props.className,e)}),l["default"].createElement("img",{src:this.props.src,alt:this.props.alt}))}});n["default"]=u.bsClass("thumbnail",f),t.exports=n["default"]},{"./SafeAnchor":353,"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],363:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),s=i(o),a=e("react"),l=i(a),u=e("react-prop-types/lib/isRequiredForA11y"),c=i(u),p=e("./utils/bootstrapUtils"),f=l["default"].createClass({displayName:"Tooltip",propTypes:{id:c["default"](l["default"].PropTypes.oneOfType([l["default"].PropTypes.string,l["default"].PropTypes.number])),placement:l["default"].PropTypes.oneOf(["top","right","bottom","left"]),positionLeft:l["default"].PropTypes.number,positionTop:l["default"].PropTypes.number,arrowOffsetLeft:l["default"].PropTypes.oneOfType([l["default"].PropTypes.number,l["default"].PropTypes.string]),arrowOffsetTop:l["default"].PropTypes.oneOfType([l["default"].PropTypes.number,l["default"].PropTypes.string]),title:l["default"].PropTypes.node},getDefaultProps:function(){return{bsClass:"tooltip",placement:"right"}},render:function(){var e,t=(e={},e[p.prefix(this.props)]=!0,e[this.props.placement]=!0,e),n=r({left:this.props.positionLeft,top:this.props.positionTop},this.props.style),i={left:this.props.arrowOffsetLeft,top:this.props.arrowOffsetTop};return l["default"].createElement("div",r({role:"tooltip"},this.props,{className:s["default"](this.props.className,t),style:n}),l["default"].createElement("div",{className:p.prefix(this.props,"arrow"),style:i}),l["default"].createElement("div",{className:p.prefix(this.props,"inner")},this.props.children))}});n["default"]=f,t.exports=n["default"]},{"./utils/bootstrapUtils":370,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581,"react-prop-types/lib/isRequiredForA11y":410}],364:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),l=s(a),u=e("react"),c=s(u),p=e("./styleMaps"),f=e("./utils/bootstrapUtils"),h=function(e){function t(){i(this,n),e.apply(this,arguments)}r(t,e),t.prototype.render=function(){var e=f.getClassSet(this.props);return c["default"].createElement("div",o({},this.props,{className:l["default"](this.props.className,e)}),this.props.children)};var n=t;return t=f.bsSizes([p.Sizes.LARGE,p.Sizes.SMALL])(t)||t,t=f.bsClass("well")(t)||t}(c["default"].Component);n["default"]=h,t.exports=n["default"]},{"./styleMaps":366,"./utils/bootstrapUtils":370,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,classnames:29,react:581}],365:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"],i=e("babel-runtime/helpers/interop-require-wildcard")["default"];n.__esModule=!0;var o=e("./Accordion"),s=r(o);n.Accordion=s["default"];var a=e("./Alert"),l=r(a);n.Alert=l["default"];var u=e("./Badge"),c=r(u);n.Badge=c["default"];var p=e("./Breadcrumb"),f=r(p);n.Breadcrumb=f["default"];var h=e("./BreadcrumbItem"),d=r(h);n.BreadcrumbItem=d["default"];var m=e("./Button"),b=r(m);n.Button=b["default"];var y=e("./ButtonGroup"),v=r(y);n.ButtonGroup=v["default"];var g=e("./ButtonInput"),_=r(g);n.ButtonInput=_["default"];var T=e("./ButtonToolbar"),E=r(T);n.ButtonToolbar=E["default"];var C=e("./Carousel"),w=r(C);n.Carousel=w["default"];var S=e("./CarouselItem"),P=r(S);n.CarouselItem=P["default"];var x=e("./Checkbox"),k=r(x);n.Checkbox=k["default"];var M=e("./Clearfix"),A=r(M);n.Clearfix=A["default"];var O=e("./ControlLabel"),N=r(O);n.ControlLabel=N["default"];var I=e("./Col"),D=r(I);n.Col=D["default"];var R=e("./Collapse"),L=r(R);n.Collapse=L["default"];var j=e("./Dropdown"),U=r(j);n.Dropdown=U["default"];var F=e("./DropdownButton"),B=r(F);n.DropdownButton=B["default"];var H=e("./Fade"),K=r(H);n.Fade=K["default"];var G=e("./Form"),q=r(G);n.Form=q["default"];var V=e("./FormControl"),z=r(V);n.FormControl=z["default"];var X=e("./FormGroup"),W=r(X);n.FormGroup=W["default"];var $=e("./Glyphicon"),Q=r($);n.Glyphicon=Q["default"];var Y=e("./Grid"),Z=r(Y);n.Grid=Z["default"];var J=e("./HelpBlock"),ee=r(J);n.HelpBlock=ee["default"];var te=e("./Image"),ne=r(te);n.Image=ne["default"];var re=e("./Input"),ie=r(re);n.Input=ie["default"];var oe=e("./InputGroup"),se=r(oe);n.InputGroup=se["default"];var ae=e("./Interpolate"),le=r(ae);n.Interpolate=le["default"];var ue=e("./Jumbotron"),ce=r(ue);n.Jumbotron=ce["default"];var pe=e("./Label"),fe=r(pe);n.Label=fe["default"];var he=e("./ListGroup"),de=r(he);n.ListGroup=de["default"];var me=e("./ListGroupItem"),be=r(me);n.ListGroupItem=be["default"];var ye=e("./Media"),ve=r(ye);n.Media=ve["default"];var ge=e("./MenuItem"),_e=r(ge);n.MenuItem=_e["default"];var Te=e("./Modal"),Ee=r(Te);n.Modal=Ee["default"];var Ce=e("./ModalBody"),we=r(Ce);n.ModalBody=we["default"];var Se=e("./ModalFooter"),Pe=r(Se);n.ModalFooter=Pe["default"];var xe=e("./ModalHeader"),ke=r(xe);n.ModalHeader=ke["default"];var Me=e("./ModalTitle"),Ae=r(Me);n.ModalTitle=Ae["default"];var Oe=e("./Nav"),Ne=r(Oe);n.Nav=Ne["default"];var Ie=e("./Navbar"),De=r(Ie);n.Navbar=De["default"];var Re=e("./NavbarBrand"),Le=r(Re);n.NavbarBrand=Le["default"];var je=e("./NavDropdown"),Ue=r(je);n.NavDropdown=Ue["default"];var Fe=e("./NavItem"),Be=r(Fe);n.NavItem=Be["default"];var He=e("./Overlay"),Ke=r(He);n.Overlay=Ke["default"];var Ge=e("./OverlayTrigger"),qe=r(Ge);n.OverlayTrigger=qe["default"];var Ve=e("./PageHeader"),ze=r(Ve);n.PageHeader=ze["default"];var Xe=e("./PageItem"),We=r(Xe);n.PageItem=We["default"];var $e=e("./Pager"),Qe=r($e);n.Pager=Qe["default"];var Ye=e("./Pagination"),Ze=r(Ye);n.Pagination=Ze["default"];var Je=e("./Panel"),et=r(Je);n.Panel=et["default"];var tt=e("./PanelGroup"),nt=r(tt);n.PanelGroup=nt["default"];var rt=e("./Popover"),it=r(rt);n.Popover=it["default"];var ot=e("./ProgressBar"),st=r(ot);n.ProgressBar=st["default"];var at=e("./Radio"),lt=r(at);n.Radio=lt["default"];var ut=e("./ResponsiveEmbed"),ct=r(ut);n.ResponsiveEmbed=ct["default"];var pt=e("./Row"),ft=r(pt);n.Row=ft["default"];var ht=e("./SafeAnchor"),dt=r(ht);n.SafeAnchor=dt["default"];var mt=e("./SplitButton"),bt=r(mt);n.SplitButton=bt["default"];var yt=e("./Tab"),vt=r(yt);n.Tab=vt["default"];var gt=e("./TabContainer"),_t=r(gt);n.TabContainer=_t["default"];var Tt=e("./TabContent"),Et=r(Tt);n.TabContent=Et["default"];var Ct=e("./Table"),wt=r(Ct);n.Table=wt["default"];var St=e("./TabPane"),Pt=r(St);n.TabPane=Pt["default"];var xt=e("./Tabs"),kt=r(xt);n.Tabs=kt["default"];var Mt=e("./Thumbnail"),At=r(Mt);n.Thumbnail=At["default"];var Ot=e("./Tooltip"),Nt=r(Ot);n.Tooltip=Nt["default"];var It=e("./Well"),Dt=r(It);n.Well=Dt["default"];var Rt=e("./FormControls"),Lt=i(Rt);n.FormControls=Lt;var jt=e("./utils"),Ut=i(jt);n.utils=Ut},{"./Accordion":274,"./Alert":275,"./Badge":276,"./Breadcrumb":277,"./BreadcrumbItem":278,"./Button":279,"./ButtonGroup":280,"./ButtonInput":281,"./ButtonToolbar":282,"./Carousel":283,"./CarouselItem":285,"./Checkbox":286,"./Clearfix":287,"./Col":288,"./Collapse":289,"./ControlLabel":290,"./Dropdown":291,"./DropdownButton":292,"./Fade":295,"./Form":296,"./FormControl":297,"./FormControls":301,"./FormGroup":302,"./Glyphicon":303,"./Grid":304,"./HelpBlock":305,"./Image":306,"./Input":307,"./InputGroup":309,"./Interpolate":312,"./Jumbotron":313,"./Label":314,"./ListGroup":315,"./ListGroupItem":316,"./Media":317,"./MenuItem":324,"./Modal":325,"./ModalBody":326,"./ModalFooter":328,"./ModalHeader":329,"./ModalTitle":330,"./Nav":331,"./NavDropdown":332,"./NavItem":333,"./Navbar":334,"./NavbarBrand":335,"./Overlay":339,"./OverlayTrigger":340,"./PageHeader":341,"./PageItem":342,"./Pager":343,"./Pagination":344,"./Panel":346,"./PanelGroup":347,"./Popover":348,"./ProgressBar":349,"./Radio":350,"./ResponsiveEmbed":351,"./Row":352,"./SafeAnchor":353,"./SplitButton":354,"./Tab":356,"./TabContainer":357,"./TabContent":358,"./TabPane":359,"./Table":360,"./Tabs":361,"./Thumbnail":362,"./Tooltip":363,"./Well":364,"./utils":375,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/interop-require-wildcard":385}],366:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/assign")["default"],i=e("babel-runtime/core-js/object/create")["default"],o=e("babel-runtime/core-js/object/keys")["default"];n.__esModule=!0;var s=function(e){return r(i({values:function(){var e=this;return o(this).map(function(t){return e[t]})}}),e)},a={SIZES:{large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"},GRID_COLUMNS:12},l=s({LARGE:"large",MEDIUM:"medium",SMALL:"small",XSMALL:"xsmall"});n.Sizes=l;var u=s({SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"});n.State=u;var c="default";n.DEFAULT=c;var p="primary";n.PRIMARY=p;var f="link";n.LINK=f;var h="inverse";n.INVERSE=h,n["default"]=a},{"babel-runtime/core-js/object/assign":377,"babel-runtime/core-js/object/create":378,"babel-runtime/core-js/object/keys":379}],367:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var i=e("react-prop-types/lib/common"),o=e("./childrenToArray"),s=r(o);n["default"]={requiredRoles:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return i.createChainableTypeChecker(function(e,n,r){var i=void 0,o=s["default"](e.children),a=function(e,t){return e===t.props.bsRole};return t.every(function(e){return o.some(function(t){return a(e,t)})?!0:(i=e,!1)}),i?new Error("(children) "+r+" - Missing a required child with bsRole: "+i+". "+(r+" must have at least one child of each of the following bsRoles: "+t.join(", "))):void 0})},exclusiveRoles:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return i.createChainableTypeChecker(function(e,n,r){var i=s["default"](e.children),o=void 0;return t.every(function(e){var t=i.filter(function(t){return t.props.bsRole===e});return t.length>1?(o=e,!1):!0}),o?new Error("(children) "+r+" - Duplicate children detected of bsRole: "+o+". Only one child each allowed with the following bsRoles: "+t.join(", ")):void 0})}},t.exports=n["default"]},{"./childrenToArray":371,"babel-runtime/helpers/interop-require-default":384,"react-prop-types/lib/common":407}],368:[function(e,t,n){"use strict";function r(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a){var r=a[n];for(var i in r)if(i in t){l.push(r[i]);break}}}function i(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}n.__esModule=!0;var s=!("undefined"==typeof window||!window.document||!window.document.createElement),a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},l=[];s&&r();var u={addEndEventListener:function(e,t){return 0===l.length?void window.setTimeout(t,0):void l.forEach(function(n){i(e,n,t)})},removeEndEventListener:function(e,t){0!==l.length&&l.forEach(function(n){o(e,n,t)})}};n["default"]=u,t.exports=n["default"]},{}],369:[function(e,t,n){"use strict";function r(e,t,n){var r=0;return p["default"].Children.map(e,function(e){return p["default"].isValidElement(e)?t.call(n,e,r++):e})}function i(e,t,n){var r=0;p["default"].Children.forEach(e,function(e){p["default"].isValidElement(e)&&t.call(n,e,r++)})}function o(e){var t=0;return p["default"].Children.forEach(e,function(e){p["default"].isValidElement(e)&&++t}),t}function s(e,t,n){var r=0,i=[];return p["default"].Children.forEach(e,function(e){p["default"].isValidElement(e)&&t.call(n,e,r++)&&i.push(e)}),i}function a(e,t,n){var r=0,i=void 0;return p["default"].Children.forEach(e,function(e){i||p["default"].isValidElement(e)&&t.call(n,e,r++)&&(i=e)}),i}function l(e,t,n){var r=0,i=!1;return p["default"].Children.forEach(e,function(e){i||p["default"].isValidElement(e)&&t.call(n,e,r++)&&(i=!0)}),i}var u=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var c=e("react"),p=u(c);n["default"]={map:r,forEach:i,count:o,find:a,filter:s,some:l},t.exports=n["default"]},{"babel-runtime/helpers/interop-require-default":384,react:581}],370:[function(e,t,n){(function(t){"use strict";function r(e){return function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];var i=n[n.length-1];return"function"==typeof i?e.apply(void 0,n):function(t){return e.apply(void 0,n.concat([t]))}}}function i(e,n){return void 0===e&&(e={}),(e.bsClass||"").trim()?void 0:"production"!==t.env.NODE_ENV?h["default"](!1,"A `bsClass` prop is required for this component"):h["default"](!1),e.bsClass+(n?"-"+n:"")}function o(e){var t,n=(t={},t[i(e)]=!0,t);if(e.bsSize){var r=p["default"].SIZES[e.bsSize]||r;n[i(e,r)]=!0}return e.bsStyle&&(n[i(e,e.bsStyle)]=!0),n}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];m(n,e)}var a=e("babel-runtime/helpers/extends")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0,n.prefix=i,n.getClassSet=o,n.addStyle=s;var u=e("react"),c=e("../styleMaps"),p=l(c),f=e("invariant"),h=l(f),d=r(function(e,t){var n=t.propTypes||(t.propTypes={}),r=t.defaultProps||(t.defaultProps={});return n.bsClass=u.PropTypes.string,r.bsClass=e,t});n.bsClass=d;var m=r(function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.STYLES||[],i=n.propTypes||{};e.forEach(function(e){-1===r.indexOf(e)&&r.push(e)});var o=u.PropTypes.oneOf(r);if(n.STYLES=o._values=r,n.propTypes=a({},i,{bsStyle:o}),void 0!==t){var s=n.defaultProps||(n.defaultProps={});s.bsStyle=t}return n});n.bsStyles=m;var b=r(function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.SIZES||[],i=n.propTypes||{};e.forEach(function(e){-1===r.indexOf(e)&&r.push(e)});var o=[];r.forEach(function(e){var t=p["default"].SIZES[e];t&&t!==e&&o.push(t),o.push(e)});var s=u.PropTypes.oneOf(o);return s._values=o,n.SIZES=r,n.propTypes=a({},i,{bsSize:s}),void 0!==t&&(n.defaultProps||(n.defaultProps={}),n.defaultProps.bsSize=t),n});n.bsSizes=b;var y=r;n._curry=y}).call(this,e("_process"))},{"../styleMaps":366,_process:269,"babel-runtime/helpers/extends":382,"babel-runtime/helpers/interop-require-default":384,invariant:179,react:581}],371:[function(e,t,n){"use strict";function r(e){var t=[];return void 0===e?t:(s["default"].forEach(e,function(e){t.push(e)}),t)}var i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0,n["default"]=r;var o=e("./ValidComponentChildren"),s=i(o);t.exports=n["default"]},{"./ValidComponentChildren":369,"babel-runtime/helpers/interop-require-default":384}],372:[function(e,t,n){"use strict";function r(e,t,n){var r=l["default"]("children","value")(e,t,n);return r||(r=s["default"].PropTypes.node(e,t,n)),r}var i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0,n["default"]=r;var o=e("react"),s=i(o),a=e("react-prop-types/lib/singlePropFrom"),l=i(a);t.exports=n["default"]},{"babel-runtime/helpers/interop-require-default":384,react:581,"react-prop-types/lib/singlePropFrom":411}],373:[function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return t.filter(function(e){return null!=e}).reduce(function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=Array(n),i=0;n>i;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}},null)}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],374:[function(e,t,n){(function(t){"use strict";function r(e,n,r){var i=void 0;"object"==typeof e?i=e.message:(i=e+" is deprecated. Use "+n+" instead.",r&&(i+="\nYou can read more about it at "+r)),c[i]||("production"!==t.env.NODE_ENV?u["default"](!1,i):void 0,c[i]=!0)}function i(){c={}}var o=e("babel-runtime/helpers/inherits")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0,n._resetWarned=i;var l=e("warning"),u=a(l),c={};r.wrapper=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];return function(e){function t(){s(this,t),e.apply(this,arguments)}return o(t,e),t.prototype.componentWillMount=function(){if(r.apply(void 0,n),e.prototype.componentWillMount){for(var t,i=arguments.length,o=Array(i),s=0;i>s;s++)o[s]=arguments[s];(t=e.prototype.componentWillMount).call.apply(t,[this].concat(o))}},t}(e)},n["default"]=r}).call(this,e("_process"))},{_process:269,"babel-runtime/helpers/class-call-check":381,"babel-runtime/helpers/inherits":383,"babel-runtime/helpers/interop-require-default":384,warning:599}],375:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-wildcard")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("./bootstrapUtils"),s=r(o);n.bootstrapUtils=s;var a=e("./childrenValueInputValidation"),l=i(a);n.childrenValueInputValidation=l["default"];var u=e("./createChainedFunction"),c=i(u);n.createChainedFunction=c["default"];var p=e("./ValidComponentChildren"),f=i(p);n.ValidComponentChildren=f["default"]},{"./ValidComponentChildren":369,"./bootstrapUtils":370,"./childrenValueInputValidation":372,"./createChainedFunction":373,"babel-runtime/helpers/interop-require-default":384,"babel-runtime/helpers/interop-require-wildcard":385}],376:[function(e,t,n){"use strict";function r(e,t,n,r){function i(){var t=n.indexOf(l);return l=r?n[Math.min(o,t+1)]:n[Math.max(0,t-1)],a(e,function(e){return e.props.eventKey===l})}for(var o=n.length-1,s=n[r?Math.max(o,0):0],l=t,u=i();u.props.eventKey!==s&&u.props.disabled;)u=i();return u.props.disabled?t:u.props.eventKey}var i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0,n.nextEnabled=r;var o=e("./ValidComponentChildren"),s=i(o),a=s["default"].find,l="tab";n.TAB=l;var u="pane";n.PANE=u},{"./ValidComponentChildren":369,"babel-runtime/helpers/interop-require-default":384}],377:[function(e,t,n){arguments[4][8][0].apply(n,arguments)},{"core-js/library/fn/object/assign":37,dup:8}],378:[function(e,t,n){arguments[4][9][0].apply(n,arguments)},{"core-js/library/fn/object/create":38,dup:9}],379:[function(e,t,n){t.exports={"default":e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":41}],380:[function(e,t,n){arguments[4][12][0].apply(n,arguments)},{"core-js/library/fn/object/set-prototype-of":42,dup:12}],381:[function(e,t,n){arguments[4][16][0].apply(n,arguments)},{dup:16}],382:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/assign")["default"];n["default"]=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.__esModule=!0},{"babel-runtime/core-js/object/assign":377}],383:[function(e,t,n){arguments[4][20][0].apply(n,arguments)},{"babel-runtime/core-js/object/create":378,"babel-runtime/core-js/object/set-prototype-of":380,dup:20}],384:[function(e,t,n){arguments[4][21][0].apply(n,arguments)},{dup:21}],385:[function(e,t,n){"use strict";n["default"]=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t},n.__esModule=!0},{}],386:[function(e,t,n){"use strict";n["default"]=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},n.__esModule=!0},{}],387:[function(e,t,n){"use strict";t.exports=e("react/lib/ReactDOM")},{"react/lib/ReactDOM":452}],388:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}n.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=e("react"),a=r(s),l=e("warning"),u=r(l),c=e("react-prop-types/lib/mountable"),p=r(c),f=e("react-prop-types/lib/elementType"),h=r(f),d=e("./Portal"),m=r(d),b=e("./ModalManager"),y=r(b),v=e("./utils/ownerDocument"),g=r(v),_=e("./utils/addEventListener"),T=r(_),E=e("./utils/addFocusListener"),C=r(E),w=e("dom-helpers/util/inDOM"),S=r(w),P=e("dom-helpers/activeElement"),x=r(P),k=e("dom-helpers/query/contains"),M=r(k),A=e("./utils/getContainer"),O=r(A),N=new y["default"],I=a["default"].createClass({displayName:"Modal",propTypes:o({},m["default"].propTypes,{show:a["default"].PropTypes.bool,container:a["default"].PropTypes.oneOfType([p["default"],a["default"].PropTypes.func]),onShow:a["default"].PropTypes.func,onHide:a["default"].PropTypes.func,backdrop:a["default"].PropTypes.oneOfType([a["default"].PropTypes.bool,a["default"].PropTypes.oneOf(["static"])]),onEscapeKeyUp:a["default"].PropTypes.func,onBackdropClick:a["default"].PropTypes.func,backdropStyle:a["default"].PropTypes.object,backdropClassName:a["default"].PropTypes.string,containerClassName:a["default"].PropTypes.string,keyboard:a["default"].PropTypes.bool,transition:h["default"],dialogTransitionTimeout:a["default"].PropTypes.number,backdropTransitionTimeout:a["default"].PropTypes.number,
|
||
autoFocus:a["default"].PropTypes.bool,enforceFocus:a["default"].PropTypes.bool,onEnter:a["default"].PropTypes.func,onEntering:a["default"].PropTypes.func,onEntered:a["default"].PropTypes.func,onExit:a["default"].PropTypes.func,onExiting:a["default"].PropTypes.func,onExited:a["default"].PropTypes.func}),getDefaultProps:function(){var e=function(){};return{show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,onHide:e}},getInitialState:function(){return{exited:!this.props.show}},render:function(){var e=this.props,t=(e.children,e.transition),n=e.backdrop,r=e.dialogTransitionTimeout,o=i(e,["children","transition","backdrop","dialogTransitionTimeout"]),l=o.onExit,u=o.onExiting,c=o.onEnter,p=o.onEntering,f=o.onEntered,h=!!o.show,d=a["default"].Children.only(this.props.children),b=h||t&&!this.state.exited;if(!b)return null;var y=d.props,v=y.role,g=y.tabIndex;return void 0!==v&&void 0!==g||(d=s.cloneElement(d,{role:void 0===v?"document":v,tabIndex:null==g?"-1":g})),t&&(d=a["default"].createElement(t,{transitionAppear:!0,unmountOnExit:!0,"in":h,timeout:r,onExit:l,onExiting:u,onExited:this.handleHidden,onEnter:c,onEntering:p,onEntered:f},d)),a["default"].createElement(m["default"],{ref:this.setMountNode,container:o.container},a["default"].createElement("div",{ref:"modal",role:o.role||"dialog",style:o.style,className:o.className},n&&this.renderBackdrop(),d))},renderBackdrop:function(){var e=this.props,t=e.transition,n=e.backdropTransitionTimeout,r=a["default"].createElement("div",{ref:"backdrop",style:this.props.backdropStyle,className:this.props.backdropClassName,onClick:this.handleBackdropClick});return t&&(r=a["default"].createElement(t,{transitionAppear:!0,"in":this.props.show,timeout:n},r)),r},componentWillReceiveProps:function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},componentWillUpdate:function(e){e.show&&this.checkForFocus()},componentDidMount:function(){this.props.show&&this.onShow()},componentDidUpdate:function(e){var t=this.props.transition;!e.show||this.props.show||t?!e.show&&this.props.show&&this.onShow():this.onHide()},componentWillUnmount:function(){var e=this.props,t=e.show,n=e.transition;(t||n&&!this.state.exited)&&this.onHide()},onShow:function(){var e=g["default"](this),t=O["default"](this.props.container,e.body);N.add(this,t,this.props.containerClassName),this._onDocumentKeyupListener=T["default"](e,"keyup",this.handleDocumentKeyUp),this._onFocusinListener=C["default"](this.enforceFocus),this.focus(),this.props.onShow&&this.props.onShow()},onHide:function(){N.remove(this),this._onDocumentKeyupListener.remove(),this._onFocusinListener.remove(),this.restoreLastFocus()},setMountNode:function(e){this.mountNode=e?e.getMountNode():e},handleHidden:function(){if(this.setState({exited:!0}),this.onHide(),this.props.onExited){var e;(e=this.props).onExited.apply(e,arguments)}},handleBackdropClick:function(e){e.target===e.currentTarget&&(this.props.onBackdropClick&&this.props.onBackdropClick(e),this.props.backdrop===!0&&this.props.onHide())},handleDocumentKeyUp:function(e){this.props.keyboard&&27===e.keyCode&&this.isTopModal()&&(this.props.onEscapeKeyUp&&this.props.onEscapeKeyUp(e),this.props.onHide())},checkForFocus:function(){S["default"]&&(this.lastFocus=x["default"]())},focus:function(){var e=this.props.autoFocus,t=this.getDialogElement(),n=x["default"](g["default"](this)),r=n&&M["default"](t,n);t&&e&&!r&&(this.lastFocus=n,t.hasAttribute("tabIndex")||(t.setAttribute("tabIndex",-1),u["default"](!1,'The modal content node does not accept focus. For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".')),t.focus())},restoreLastFocus:function(){this.lastFocus&&this.lastFocus.focus&&(this.lastFocus.focus(),this.lastFocus=null)},enforceFocus:function D(){var D=this.props.enforceFocus;if(D&&this.isMounted()&&this.isTopModal()){var e=x["default"](g["default"](this)),t=this.getDialogElement();t&&t!==e&&!M["default"](t,e)&&t.focus()}},getDialogElement:function(){var e=this.refs.modal;return e&&e.lastChild},isTopModal:function(){return N.isTopModal(this)}});I.manager=N,n["default"]=I,t.exports=n["default"]},{"./ModalManager":389,"./Portal":391,"./utils/addEventListener":395,"./utils/addFocusListener":396,"./utils/getContainer":398,"./utils/ownerDocument":402,"dom-helpers/activeElement":125,"dom-helpers/query/contains":135,"dom-helpers/util/inDOM":152,react:581,"react-prop-types/lib/elementType":404,"react-prop-types/lib/mountable":405,warning:599}],389:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){var n=-1;return e.some(function(e,r){return t(e,r)?(n=r,!0):void 0}),n}function s(e,t){return o(e,function(e){return-1!==e.modals.indexOf(t)})}n.__esModule=!0;var a=e("dom-helpers/style"),l=r(a),u=e("dom-helpers/class"),c=r(u),p=e("dom-helpers/util/scrollbarSize"),f=r(p),h=e("./utils/isOverflowing"),d=r(h),m=e("./utils/manageAriaHidden"),b=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];i(this,e),this.hideSiblingNodes=t,this.modals=[],this.containers=[],this.data=[]}return e.prototype.add=function(e,t,n){var r=this.modals.indexOf(e),i=this.containers.indexOf(t);if(-1!==r)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&m.hideSiblings(t,e.mountNode),-1!==i)return this.data[i].modals.push(e),r;var o={modals:[e],classes:n?n.split(/\s+/):[],style:{overflow:t.style.overflow,paddingRight:t.style.paddingRight}},s={overflow:"hidden"};return o.overflowing=d["default"](t),o.overflowing&&(s.paddingRight=parseInt(l["default"](t,"paddingRight")||0,10)+f["default"]()+"px"),l["default"](t,s),o.classes.forEach(c["default"].addClass.bind(null,t)),this.containers.push(t),this.data.push(o),r},e.prototype.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=s(this.data,e),r=this.data[n],i=this.containers[n];r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length?(Object.keys(r.style).forEach(function(e){return i.style[e]=r.style[e]}),r.classes.forEach(c["default"].removeClass.bind(null,i)),this.hideSiblingNodes&&m.showSiblings(i,e.mountNode),this.containers.splice(n,1),this.data.splice(n,1)):this.hideSiblingNodes&&m.ariaHidden(!1,r.modals[r.modals.length-1].mountNode)}},e.prototype.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}();n["default"]=b,t.exports=n["default"]},{"./utils/isOverflowing":399,"./utils/manageAriaHidden":400,"dom-helpers/class":128,"dom-helpers/style":144,"dom-helpers/util/scrollbarSize":153}],390:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=e("react"),u=r(l),c=e("./Portal"),p=r(c),f=e("./Position"),h=r(f),d=e("./RootCloseWrapper"),m=r(d),b=e("react-prop-types/lib/elementType"),y=r(b),v=function(e){function t(n,r){o(this,t),e.call(this,n,r),this.state={exited:!n.show},this.onHiddenListener=this.handleHidden.bind(this)}return s(t,e),t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.render=function(){var e=this.props,t=e.container,n=e.containerPadding,r=e.target,o=e.placement,s=e.shouldUpdatePosition,a=e.rootClose,l=e.children,c=e.transition,f=i(e,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]),d=f.show||c&&!this.state.exited;if(!d)return null;var b=l;if(b=u["default"].createElement(h["default"],{container:t,containerPadding:n,target:r,placement:o,shouldUpdatePosition:s},b),c){var y=f.onExit,v=f.onExiting,g=f.onEnter,_=f.onEntering,T=f.onEntered;b=u["default"].createElement(c,{"in":f.show,transitionAppear:!0,onExit:y,onExiting:v,onExited:this.onHiddenListener,onEnter:g,onEntering:_,onEntered:T},b)}return a&&(b=u["default"].createElement(m["default"],{onRootClose:f.onHide},b)),u["default"].createElement(p["default"],{container:t},b)},t.prototype.handleHidden=function(){if(this.setState({exited:!0}),this.props.onExited){var e;(e=this.props).onExited.apply(e,arguments)}},t}(u["default"].Component);v.propTypes=a({},p["default"].propTypes,h["default"].propTypes,{show:u["default"].PropTypes.bool,rootClose:u["default"].PropTypes.bool,onHide:function(e,t,n){var r=u["default"].PropTypes.func;return e.rootClose&&(r=r.isRequired),r(e,t,n)},transition:y["default"],onEnter:u["default"].PropTypes.func,onEntering:u["default"].PropTypes.func,onEntered:u["default"].PropTypes.func,onExit:u["default"].PropTypes.func,onExiting:u["default"].PropTypes.func,onExited:u["default"].PropTypes.func}),n["default"]=v,t.exports=n["default"]},{"./Portal":391,"./Position":392,"./RootCloseWrapper":393,react:581,"react-prop-types/lib/elementType":404}],391:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;var i=e("react"),o=r(i),s=e("react-dom"),a=r(s),l=e("react-prop-types/lib/mountable"),u=r(l),c=e("./utils/ownerDocument"),p=r(c),f=e("./utils/getContainer"),h=r(f),d=o["default"].createClass({displayName:"Portal",propTypes:{container:o["default"].PropTypes.oneOfType([u["default"],o["default"].PropTypes.func])},componentDidMount:function(){this._renderOverlay()},componentDidUpdate:function(){this._renderOverlay()},componentWillReceiveProps:function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=h["default"](e.container,p["default"](this).body),this._portalContainerNode.appendChild(this._overlayTarget))},componentWillUnmount:function(){this._unrenderOverlay(),this._unmountOverlayTarget()},_mountOverlayTarget:function(){this._overlayTarget||(this._overlayTarget=document.createElement("div"),this._portalContainerNode=h["default"](this.props.container,p["default"](this).body),this._portalContainerNode.appendChild(this._overlayTarget))},_unmountOverlayTarget:function(){this._overlayTarget&&(this._portalContainerNode.removeChild(this._overlayTarget),this._overlayTarget=null),this._portalContainerNode=null},_renderOverlay:function(){var e=this.props.children?o["default"].Children.only(this.props.children):null;null!==e?(this._mountOverlayTarget(),this._overlayInstance=a["default"].unstable_renderSubtreeIntoContainer(this,e,this._overlayTarget)):(this._unrenderOverlay(),this._unmountOverlayTarget())},_unrenderOverlay:function(){this._overlayTarget&&(a["default"].unmountComponentAtNode(this._overlayTarget),this._overlayInstance=null)},render:function(){return null},getMountNode:function(){return this._overlayTarget},getOverlayDOMNode:function(){if(!this.isMounted())throw new Error("getOverlayDOMNode(): A component must be mounted to have a DOM node.");return this._overlayInstance?this._overlayInstance.getWrappedDOMNode?this._overlayInstance.getWrappedDOMNode():a["default"].findDOMNode(this._overlayInstance):null}});n["default"]=d,t.exports=n["default"]},{"./utils/getContainer":398,"./utils/ownerDocument":402,react:581,"react-dom":387,"react-prop-types/lib/mountable":405}],392:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=e("react"),u=r(l),c=e("react-dom"),p=r(c),f=e("classnames"),h=r(f),d=e("./utils/ownerDocument"),m=r(d),b=e("./utils/getContainer"),y=r(b),v=e("./utils/overlayPositionUtils"),g=e("react-prop-types/lib/mountable"),_=r(g),T=function(e){function t(n,r){o(this,t),e.call(this,n,r),this.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},this._needsFlush=!1,this._lastTarget=null}return s(t,e),t.prototype.componentDidMount=function(){this.updatePosition()},t.prototype.componentWillReceiveProps=function(){this._needsFlush=!0},t.prototype.componentDidUpdate=function(e){this._needsFlush&&(this._needsFlush=!1,this.updatePosition(e.placement!==this.props.placement))},t.prototype.componentWillUnmount=function(){this._lastTarget=null},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=i(e,["children","className"]),o=this.state,s=o.positionLeft,c=o.positionTop,p=i(o,["positionLeft","positionTop"]);delete r.target,delete r.container,delete r.containerPadding;var f=u["default"].Children.only(t);return l.cloneElement(f,a({},r,p,{positionLeft:s,positionTop:c,className:h["default"](n,f.props.className),style:a({},f.props.style,{left:s,top:c})}))},t.prototype.getTargetSafe=function(){if(!this.props.target)return null;var e=this.props.target(this.props);return e?e:null},t.prototype.updatePosition=function(e){var t=this.getTargetSafe();if(this.props.shouldUpdatePosition||t!==this._lastTarget||e){if(this._lastTarget=t,!t)return void this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});var n=p["default"].findDOMNode(this),r=y["default"](this.props.container,m["default"](this).body);this.setState(v.calcOverlayPosition(this.props.placement,n,t,r,this.props.containerPadding))}},t}(u["default"].Component);T.propTypes={target:u["default"].PropTypes.func,container:u["default"].PropTypes.oneOfType([_["default"],u["default"].PropTypes.func]),containerPadding:u["default"].PropTypes.number,placement:u["default"].PropTypes.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:u["default"].PropTypes.bool},T.displayName="Position",T.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},n["default"]=T,t.exports=n["default"]},{"./utils/getContainer":398,"./utils/overlayPositionUtils":401,"./utils/ownerDocument":402,classnames:29,react:581,"react-dom":387,"react-prop-types/lib/mountable":405}],393:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return 0===e.button}function a(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function l(){var e=g+"_"+_++;return{id:e,suppressRootClose:function(t){t.nativeEvent[e]=!0}}}n.__esModule=!0;var u=e("react"),c=r(u),p=e("react-dom"),f=r(p),h=e("./utils/addEventListener"),d=r(h),m=e("./utils/createChainedFunction"),b=r(m),y=e("./utils/ownerDocument"),v=r(y),g="__click_was_inside",_=0,T=function(e){function t(n){i(this,t),e.call(this,n),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.handleDocumentKeyUp=this.handleDocumentKeyUp.bind(this);var r=l(),o=r.id,s=r.suppressRootClose;this._suppressRootId=o,this._suppressRootCloseHandler=s}return o(t,e),t.prototype.bindRootCloseHandlers=function(){var e=v["default"](this);this._onDocumentClickListener=d["default"](e,"click",this.handleDocumentClick),this._onDocumentKeyupListener=d["default"](e,"keyup",this.handleDocumentKeyUp)},t.prototype.handleDocumentClick=function(e){e[this._suppressRootId]||!a(e)&&s(e)&&this.props.onRootClose()},t.prototype.handleDocumentKeyUp=function(e){27===e.keyCode&&this.props.onRootClose()},t.prototype.unbindRootCloseHandlers=function(){this._onDocumentClickListener&&this._onDocumentClickListener.remove(),this._onDocumentKeyupListener&&this._onDocumentKeyupListener.remove()},t.prototype.componentDidMount=function(){this.bindRootCloseHandlers()},t.prototype.render=function(){var e=this.props,t=e.noWrap,n=e.children,r=c["default"].Children.only(n);return t?c["default"].cloneElement(r,{onClick:b["default"](this._suppressRootCloseHandler,r.props.onClick)}):c["default"].createElement("div",{onClick:this._suppressRootCloseHandler},r)},t.prototype.getWrappedDOMNode=function(){var e=f["default"].findDOMNode(this);return this.props.noWrap?e:e.firstChild},t.prototype.componentWillUnmount=function(){this.unbindRootCloseHandlers()},t}(c["default"].Component);n["default"]=T,T.displayName="RootCloseWrapper",T.propTypes={onRootClose:c["default"].PropTypes.func.isRequired,noWrap:c["default"].PropTypes.bool},t.exports=n["default"]},{"./utils/addEventListener":395,"./utils/createChainedFunction":397,"./utils/ownerDocument":402,react:581,"react-dom":387}],394:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(){}n.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=e("react"),c=r(u),p=e("react-dom"),f=r(p),h=e("dom-helpers/transition/properties"),d=r(h),m=e("dom-helpers/events/on"),b=r(m),y=e("classnames"),v=r(y),g=d["default"].end,_=0;n.UNMOUNTED=_;var T=1;n.EXITED=T;var E=2;n.ENTERING=E;var C=3;n.ENTERED=C;var w=4;n.EXITING=w;var S=function(e){function t(n,r){o(this,t),e.call(this,n,r);var i=void 0;i=n["in"]?n.transitionAppear?T:C:n.unmountOnExit?_:T,this.state={status:i},this.nextCallback=null}return s(t,e),t.prototype.componentDidMount=function(){this.props.transitionAppear&&this.props["in"]&&this.performEnter(this.props)},t.prototype.componentWillReceiveProps=function(e){e["in"]&&this.props.unmountOnExit?this.state.status===_&&this.setState({status:T}):this._needsUpdate=!0},t.prototype.componentDidUpdate=function(){var e=this.state.status;return this.props.unmountOnExit&&e===T?void(this.props["in"]?this.performEnter(this.props):this.setState({status:_})):void(this._needsUpdate&&(this._needsUpdate=!1,this.props["in"]?e===w?this.performEnter(this.props):e===T&&this.performEnter(this.props):e!==E&&e!==C||this.performExit(this.props)))},t.prototype.componentWillUnmount=function(){this.cancelNextCallback()},t.prototype.performEnter=function(e){var t=this;this.cancelNextCallback();var n=f["default"].findDOMNode(this);e.onEnter(n),this.safeSetState({status:E},function(){t.props.onEntering(n),t.onTransitionEnd(n,function(){t.safeSetState({status:C},function(){t.props.onEntered(n)})})})},t.prototype.performExit=function(e){var t=this;this.cancelNextCallback();var n=f["default"].findDOMNode(this);e.onExit(n),this.safeSetState({status:w},function(){t.props.onExiting(n),t.onTransitionEnd(n,function(){t.safeSetState({status:T},function(){t.props.onExited(n)})})})},t.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.prototype.safeSetState=function(e,t){this.setState(e,this.setNextCallback(t))},t.prototype.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.prototype.onTransitionEnd=function(e,t){this.setNextCallback(t),e?(b["default"](e,g,this.nextCallback),setTimeout(this.nextCallback,this.props.timeout)):setTimeout(this.nextCallback,0)},t.prototype.render=function(){var e=this.state.status;if(e===_)return null;var n=this.props,r=n.children,o=n.className,s=i(n,["children","className"]);Object.keys(t.propTypes).forEach(function(e){return delete s[e]});var a=void 0;e===T?a=this.props.exitedClassName:e===E?a=this.props.enteringClassName:e===C?a=this.props.enteredClassName:e===w&&(a=this.props.exitingClassName);var u=c["default"].Children.only(r);return c["default"].cloneElement(u,l({},s,{className:v["default"](u.props.className,o,a)}))},t}(c["default"].Component);S.propTypes={"in":c["default"].PropTypes.bool,unmountOnExit:c["default"].PropTypes.bool,transitionAppear:c["default"].PropTypes.bool,timeout:c["default"].PropTypes.number,exitedClassName:c["default"].PropTypes.string,exitingClassName:c["default"].PropTypes.string,enteredClassName:c["default"].PropTypes.string,enteringClassName:c["default"].PropTypes.string,onEnter:c["default"].PropTypes.func,onEntering:c["default"].PropTypes.func,onEntered:c["default"].PropTypes.func,onExit:c["default"].PropTypes.func,onExiting:c["default"].PropTypes.func,onExited:c["default"].PropTypes.func},S.displayName="Transition",S.defaultProps={"in":!1,unmountOnExit:!1,transitionAppear:!1,timeout:5e3,onEnter:a,onEntering:a,onEntered:a,onExit:a,onExiting:a,onExited:a},n["default"]=S},{classnames:29,"dom-helpers/events/on":133,"dom-helpers/transition/properties":146,react:581,"react-dom":387}],395:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;var i=e("dom-helpers/events/on"),o=r(i),s=e("dom-helpers/events/off"),a=r(s);n["default"]=function(e,t,n){return o["default"](e,t,n),{remove:function(){a["default"](e,t,n)}}},t.exports=n["default"]},{"dom-helpers/events/off":132,"dom-helpers/events/on":133}],396:[function(e,t,n){"use strict";function r(e){var t=!document.addEventListener,n=void 0;return t?(document.attachEvent("onfocusin",e),n=function(){return document.detachEvent("onfocusin",e)}):(document.addEventListener("focus",e,!0),n=function(){return document.removeEventListener("focus",e,!0)}),{remove:n}}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],397:[function(e,t,n){arguments[4][373][0].apply(n,arguments)},{dup:373}],398:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){return e="function"==typeof e?e():e,s["default"].findDOMNode(e)||t}n.__esModule=!0,n["default"]=i;var o=e("react-dom"),s=r(o);t.exports=n["default"]},{"react-dom":387}],399:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){return e&&"body"===e.tagName.toLowerCase()}function o(e){var t=c["default"](e),n=l["default"](t),r=n.innerWidth;if(!r){var i=t.documentElement.getBoundingClientRect();r=i.right-Math.abs(i.left)}return t.body.clientWidth<r}function s(e){var t=l["default"](e);return t||i(e)?o(e):e.scrollHeight>e.clientHeight}n.__esModule=!0,n["default"]=s;var a=e("dom-helpers/query/isWindow"),l=r(a),u=e("dom-helpers/ownerDocument"),c=r(u);t.exports=n["default"]},{"dom-helpers/ownerDocument":134,"dom-helpers/query/isWindow":136}],400:[function(e,t,n){"use strict";function r(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}function i(e,t){l(e,t,function(e){return r(!0,e)})}function o(e,t){l(e,t,function(e){return r(!1,e)})}n.__esModule=!0,n.ariaHidden=r,n.hideSiblings=i,n.showSiblings=o;var s=["template","script","style"],a=function(e){var t=e.nodeType,n=e.tagName;return 1===t&&-1===s.indexOf(n.toLowerCase())},l=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,function(e){-1===t.indexOf(e)&&a(e)&&n(e)})}},{}],401:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n,r){var i=d.getContainerDimensions(n),o=i.scroll,s=i.height,a=e-r-o,l=e+r-o+t;return 0>a?-a:l>s?s-l:0}function o(e,t,n,r){var i=d.getContainerDimensions(n),o=i.width,s=e-r,a=e+r+t;return 0>s?-s:a>o?o-a:0}n.__esModule=!0;var s=e("./ownerDocument"),a=r(s),l=e("dom-helpers/query/offset"),u=r(l),c=e("dom-helpers/query/position"),p=r(c),f=e("dom-helpers/query/scrollTop"),h=r(f),d={getContainerDimensions:function(e){var t=void 0,n=void 0,r=void 0;if("BODY"===e.tagName)t=window.innerWidth,n=window.innerHeight,r=h["default"](a["default"](e).documentElement)||h["default"](e);else{var i=u["default"](e);t=i.width,n=i.height,r=h["default"](e)}return{width:t,height:n,scroll:r}},getPosition:function(e,t){var n="BODY"===t.tagName?u["default"](e):p["default"](e,t);return n},calcOverlayPosition:function(e,t,n,r,s){var a=d.getPosition(n,r),l=u["default"](t),c=l.height,p=l.width,f=void 0,h=void 0,m=void 0,b=void 0;if("left"===e||"right"===e){h=a.top+(a.height-c)/2,f="left"===e?a.left-p:a.left+a.width;var y=i(h,c,r,s);h+=y,b=50*(1-2*y/c)+"%",m=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');f=a.left+(a.width-p)/2,h="top"===e?a.top-c:a.top+a.height;var v=o(f,p,r,s);f+=v,m=50*(1-2*v/p)+"%",b=void 0}return{positionLeft:f,positionTop:h,arrowOffsetLeft:m,arrowOffsetTop:b}}};n["default"]=d,t.exports=n["default"]},{"./ownerDocument":402,"dom-helpers/query/offset":137,"dom-helpers/query/position":139,"dom-helpers/query/scrollTop":142}],402:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;var i=e("react-dom"),o=r(i),s=e("dom-helpers/ownerDocument"),a=r(s);n["default"]=function(e){return a["default"](o["default"].findDOMNode(e))},t.exports=n["default"]},{"dom-helpers/ownerDocument":134,"react-dom":387}],403:[function(e,t,n){"use strict";function r(e,t,n,r){return"Invalid prop '"+t+"' of value '"+e[t]+"'"+(" supplied to '"+n+"'"+r)}function i(e){function t(t,n,r,i){return i=i||"<<anonymous>>",null!=n[r]?e(n,r,i):t?new Error("Required prop '"+r+"' was not specified in '"+i+"'."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}n.__esModule=!0,n.errMsg=r,n.createChainableTypeChecker=i},{}],404:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){var r=a.errMsg(e,t,n,". Expected an Element `type`");if("function"!=typeof e[t]){if(s["default"].isValidElement(e[t]))return new Error(r+", not an actual Element");if("string"!=typeof e[t])return new Error(r+" such as a tag name or return value of React.createClass(...)")}}n.__esModule=!0;var o=e("react"),s=r(o),a=e("./common");n["default"]=a.createChainableTypeChecker(i),t.exports=n["default"]},{"./common":403,react:581}],405:[function(e,t,n){"use strict";function r(e,t,n){return"object"!=typeof e[t]||"function"!=typeof e[t].render&&1!==e[t].nodeType?new Error(i.errMsg(e,t,n,", expected a DOM element or an object that has a `render` method")):void 0}n.__esModule=!0;var i=e("./common");n["default"]=i.createChainableTypeChecker(r),t.exports=n["default"]},{"./common":403}],406:[function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(void 0===t)throw new Error("No validations provided");if(t.some(function(e){return"function"!=typeof e}))throw new Error("Invalid arguments, must be functions");if(0===t.length)throw new Error("No validations provided");return function(e,n,r){for(var i=0;i<t.length;i++){var o=t[i](e,n,r);if(void 0!==o&&null!==o)return o}}}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],407:[function(e,t,n){arguments[4][403][0].apply(n,arguments)},{dup:403}],408:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){return function(n,r,i){return null!=n[r]&&s["default"](!1,'"'+r+'" property of "'+i+'" has been deprecated.\n'+t),e(n,r,i)}}n.__esModule=!0,n["default"]=i;var o=e("warning"),s=r(o);t.exports=n["default"]},{warning:599}],409:[function(e,t,n){arguments[4][404][0].apply(n,arguments)},{"./common":407,dup:404,react:581}],410:[function(e,t,n){"use strict";function r(e){return function(t,n,r){return null==t[n]?new Error("The prop '"+n+"' is required to make '"+r+"' accessible for users using assistive technologies such as screen readers"):e(t,n,r)}}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],411:[function(e,t,n){"use strict";function r(){function e(e,t,r){var i=n.map(function(t){return e[t]}).reduce(function(e,t){return e+(void 0!==t?1:0)},0);if(i>1){var o=n[0],s=n.slice(1),a=s.join(", ")+" and "+o;return new Error("Invalid prop '"+t+"', only one of the following may be provided: "+a)}}for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],412:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0,n["default"]=void 0;var a=e("react"),l=e("../utils/storeShape"),u=r(l),c=e("../utils/warning"),p=(r(c),function(e){function t(n,r){i(this,t);var s=o(this,e.call(this,n,r));return s.store=n.store,s}return s(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var e=this.props.children;return a.Children.only(e)},t}(a.Component));n["default"]=p,p.propTypes={store:u["default"].isRequired,children:a.PropTypes.element.isRequired},p.childContextTypes={store:u["default"].isRequired}},{"../utils/storeShape":416,"../utils/warning":417,react:581}],413:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){return e.displayName||e.name||"Component"}function l(e,t){try{return e.apply(t)}catch(n){return x.value=n,x}}function u(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],u=Boolean(e),f=e||w,d=void 0;d="function"==typeof t?t:t?(0,y["default"])(t):S;var b=n||P,v=r.pure,g=void 0===v?!0:v,_=r.withRef,E=void 0===_?!1:_,M=g&&b!==P,A=k++;return function(e){function t(e,t,n){var r=b(e,t,n);return r}var n="Connect("+a(e)+")",r=function(r){function a(e,t){i(this,a);var s=o(this,r.call(this,e,t));s.version=A,s.store=e.store||t.store,(0,C["default"])(s.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+n+'".'));
|
||
var l=s.store.getState();return s.state={storeState:l},s.clearCache(),s}return s(a,r),a.prototype.shouldComponentUpdate=function(){return!g||this.haveOwnPropsChanged||this.hasStoreStateChanged},a.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},a.prototype.configureFinalMapState=function(e,t){var n=f(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:f,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},a.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},a.prototype.configureFinalMapDispatch=function(e,t){var n=d(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:d,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},a.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return this.stateProps&&(0,m["default"])(e,this.stateProps)?!1:(this.stateProps=e,!0)},a.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return this.dispatchProps&&(0,m["default"])(e,this.dispatchProps)?!1:(this.dispatchProps=e,!0)},a.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return this.mergedProps&&M&&(0,m["default"])(e,this.mergedProps)?!1:(this.mergedProps=e,!0)},a.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},a.prototype.trySubscribe=function(){u&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},a.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},a.prototype.componentDidMount=function(){this.trySubscribe()},a.prototype.componentWillReceiveProps=function(e){g&&(0,m["default"])(e,this.props)||(this.haveOwnPropsChanged=!0)},a.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},a.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},a.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!g||t!==e){if(g&&!this.doStatePropsDependOnOwnProps){var n=l(this.updateStatePropsIfNeeded,this);if(!n)return;n===x&&(this.statePropsPrecalculationError=x.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},a.prototype.getWrappedInstance=function(){return(0,C["default"])(E,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},a.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,i=this.statePropsPrecalculationError,o=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,i)throw i;var s=!0,a=!0;g&&o&&(s=n||t&&this.doStatePropsDependOnOwnProps,a=t&&this.doDispatchPropsDependOnOwnProps);var l=!1,u=!1;r?l=!0:s&&(l=this.updateStatePropsIfNeeded()),a&&(u=this.updateDispatchPropsIfNeeded());var f=!0;return f=l||u||t?this.updateMergedPropsIfNeeded():!1,!f&&o?o:(E?this.renderedElement=(0,p.createElement)(e,c({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,p.createElement)(e,this.mergedProps),this.renderedElement)},a}(p.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:h["default"]},r.propTypes={store:h["default"]},(0,T["default"])(r,e)}}var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.__esModule=!0,n["default"]=u;var p=e("react"),f=e("../utils/storeShape"),h=r(f),d=e("../utils/shallowEqual"),m=r(d),b=e("../utils/wrapActionCreators"),y=r(b),v=e("../utils/warning"),g=(r(v),e("lodash/isPlainObject")),_=(r(g),e("hoist-non-react-statics")),T=r(_),E=e("invariant"),C=r(E),w=function(e){return{}},S=function(e){return{dispatch:e}},P=function(e,t,n){return c({},n,e,t)},x={value:null},k=0},{"../utils/shallowEqual":415,"../utils/storeShape":416,"../utils/warning":417,"../utils/wrapActionCreators":418,"hoist-non-react-statics":175,invariant:179,"lodash/isPlainObject":253,react:581}],414:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0,n.connect=n.Provider=void 0;var i=e("./components/Provider"),o=r(i),s=e("./components/connect"),a=r(s);n.Provider=o["default"],n.connect=a["default"]},{"./components/Provider":412,"./components/connect":413}],415:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o++)if(!i.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;return!0}n.__esModule=!0,n["default"]=r},{}],416:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("react");n["default"]=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},{react:581}],417:[function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}n.__esModule=!0,n["default"]=r},{}],418:[function(e,t,n){"use strict";function r(e){return function(t){return(0,i.bindActionCreators)(e,t)}}n.__esModule=!0,n["default"]=r;var i=e("redux")},{redux:588}],419:[function(e,t,n){"use strict";var r=e("./ReactDOMComponentTree"),i=e("fbjs/lib/focusNode"),o={focusDOMComponent:function(){i(r.getNodeFromInstance(this))}};t.exports=o},{"./ReactDOMComponentTree":456,"fbjs/lib/focusNode":563}],420:[function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function i(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function o(e){switch(e){case k.topCompositionStart:return M.compositionStart;case k.topCompositionEnd:return M.compositionEnd;case k.topCompositionUpdate:return M.compositionUpdate}}function s(e,t){return e===k.topKeyDown&&t.keyCode===T}function a(e,t){switch(e){case k.topKeyUp:return-1!==_.indexOf(t.keyCode);case k.topKeyDown:return t.keyCode!==T;case k.topKeyPress:case k.topMouseDown:case k.topBlur:return!0;default:return!1}}function l(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,r){var i,u;if(E?i=o(e):O?a(e,n)&&(i=M.compositionEnd):s(e,n)&&(i=M.compositionStart),!i)return null;S&&(O||i!==M.compositionStart?i===M.compositionEnd&&O&&(u=O.getData()):O=b.getPooled(r));var c=y.getPooled(i,t,n,r);if(u)c.data=u;else{var p=l(n);null!==p&&(c.data=p)}return d.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case k.topCompositionEnd:return l(t);case k.topKeyPress:var n=t.which;return n!==P?null:(A=!0,x);case k.topTextInput:var r=t.data;return r===x&&A?null:r;default:return null}}function p(e,t){if(O){if(e===k.topCompositionEnd||a(e,t)){var n=O.getData();return b.release(O),O=null,n}return null}switch(e){case k.topPaste:return null;case k.topKeyPress:return t.which&&!i(t)?String.fromCharCode(t.which):null;case k.topCompositionEnd:return S?null:t.data;default:return null}}function f(e,t,n,r){var i;if(i=w?c(e,n):p(e,n),!i)return null;var o=v.getPooled(M.beforeInput,t,n,r);return o.data=i,d.accumulateTwoPhaseDispatches(o),o}var h=e("./EventConstants"),d=e("./EventPropagators"),m=e("fbjs/lib/ExecutionEnvironment"),b=e("./FallbackCompositionState"),y=e("./SyntheticCompositionEvent"),v=e("./SyntheticInputEvent"),g=e("fbjs/lib/keyOf"),_=[9,13,27,32],T=229,E=m.canUseDOM&&"CompositionEvent"in window,C=null;m.canUseDOM&&"documentMode"in document&&(C=document.documentMode);var w=m.canUseDOM&&"TextEvent"in window&&!C&&!r(),S=m.canUseDOM&&(!E||C&&C>8&&11>=C),P=32,x=String.fromCharCode(P),k=h.topLevelTypes,M={beforeInput:{phasedRegistrationNames:{bubbled:g({onBeforeInput:null}),captured:g({onBeforeInputCapture:null})},dependencies:[k.topCompositionEnd,k.topKeyPress,k.topTextInput,k.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:g({onCompositionEnd:null}),captured:g({onCompositionEndCapture:null})},dependencies:[k.topBlur,k.topCompositionEnd,k.topKeyDown,k.topKeyPress,k.topKeyUp,k.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:g({onCompositionStart:null}),captured:g({onCompositionStartCapture:null})},dependencies:[k.topBlur,k.topCompositionStart,k.topKeyDown,k.topKeyPress,k.topKeyUp,k.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:g({onCompositionUpdate:null}),captured:g({onCompositionUpdateCapture:null})},dependencies:[k.topBlur,k.topCompositionUpdate,k.topKeyDown,k.topKeyPress,k.topKeyUp,k.topMouseDown]}},A=!1,O=null,N={eventTypes:M,extractEvents:function(e,t,n,r){return[u(e,t,n,r),f(e,t,n,r)]}};t.exports=N},{"./EventConstants":433,"./EventPropagators":437,"./FallbackCompositionState":438,"./SyntheticCompositionEvent":512,"./SyntheticInputEvent":516,"fbjs/lib/ExecutionEnvironment":555,"fbjs/lib/keyOf":573}],421:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(e){o.forEach(function(t){i[r(t,e)]=i[e]})});var s={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!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},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:i,shorthandPropertyExpansions:s};t.exports=a},{}],422:[function(e,t,n){"use strict";var r=e("./CSSProperty"),i=e("fbjs/lib/ExecutionEnvironment"),o=e("./ReactPerf"),s=(e("fbjs/lib/camelizeStyleName"),e("./dangerousStyleValue")),a=e("fbjs/lib/hyphenateStyleName"),l=e("fbjs/lib/memoizeStringOnly"),u=(e("fbjs/lib/warning"),l(function(e){return a(e)})),c=!1,p="cssFloat";if(i.canUseDOM){var f=document.createElement("div").style;try{f.font=""}catch(h){c=!0}void 0===document.documentElement.style.cssFloat&&(p="styleFloat")}var d={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];null!=i&&(n+=u(r)+":",n+=s(r,i,t)+";")}return n||null},setValueForStyles:function(e,t,n){var i=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=s(o,t[o],n);if("float"!==o&&"cssFloat"!==o||(o=p),a)i[o]=a;else{var l=c&&r.shorthandPropertyExpansions[o];if(l)for(var u in l)i[u]="";else i[o]=""}}}};o.measureMethods(d,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),t.exports=d},{"./CSSProperty":421,"./ReactPerf":497,"./dangerousStyleValue":529,"fbjs/lib/ExecutionEnvironment":555,"fbjs/lib/camelizeStyleName":557,"fbjs/lib/hyphenateStyleName":568,"fbjs/lib/memoizeStringOnly":575,"fbjs/lib/warning":579}],423:[function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var i=e("object-assign"),o=e("./PooledClass"),s=e("fbjs/lib/invariant");i(r.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){e.length!==t.length?s(!1):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n<e.length;n++)e[n].call(t[n]);e.length=0,t.length=0}},checkpoint:function(){return this._callbacks?this._callbacks.length:0},rollback:function(e){this._callbacks&&(this._callbacks.length=e,this._contexts.length=e)},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r},{"./PooledClass":441,"fbjs/lib/invariant":569,"object-assign":580}],424:[function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=w.getPooled(A.change,N,e,S(e));_.accumulateTwoPhaseDispatches(t),C.batchedUpdates(o,t)}function o(e){g.enqueueEvents(e),g.processEventQueue(!1)}function s(e,t){O=e,N=t,O.attachEvent("onchange",i)}function a(){O&&(O.detachEvent("onchange",i),O=null,N=null)}function l(e,t){return e===M.topChange?t:void 0}function u(e,t,n){e===M.topFocus?(a(),s(t,n)):e===M.topBlur&&a()}function c(e,t){O=e,N=t,I=e.value,D=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(O,"value",j),O.attachEvent?O.attachEvent("onpropertychange",f):O.addEventListener("propertychange",f,!1)}function p(){O&&(delete O.value,O.detachEvent?O.detachEvent("onpropertychange",f):O.removeEventListener("propertychange",f,!1),O=null,N=null,I=null,D=null)}function f(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==I&&(I=t,i(e))}}function h(e,t){return e===M.topInput?t:void 0}function d(e,t,n){e===M.topFocus?(p(),c(t,n)):e===M.topBlur&&p()}function m(e,t){return e!==M.topSelectionChange&&e!==M.topKeyUp&&e!==M.topKeyDown||!O||O.value===I?void 0:(I=O.value,N)}function b(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function y(e,t){return e===M.topClick?t:void 0}var v=e("./EventConstants"),g=e("./EventPluginHub"),_=e("./EventPropagators"),T=e("fbjs/lib/ExecutionEnvironment"),E=e("./ReactDOMComponentTree"),C=e("./ReactUpdates"),w=e("./SyntheticEvent"),S=e("./getEventTarget"),P=e("./isEventSupported"),x=e("./isTextInputElement"),k=e("fbjs/lib/keyOf"),M=v.topLevelTypes,A={change:{phasedRegistrationNames:{bubbled:k({onChange:null}),captured:k({onChangeCapture:null})},dependencies:[M.topBlur,M.topChange,M.topClick,M.topFocus,M.topInput,M.topKeyDown,M.topKeyUp,M.topSelectionChange]}},O=null,N=null,I=null,D=null,R=!1;T.canUseDOM&&(R=P("change")&&(!("documentMode"in document)||document.documentMode>8));var L=!1;T.canUseDOM&&(L=P("input")&&(!("documentMode"in document)||document.documentMode>11));var j={get:function(){return D.get.call(this)},set:function(e){I=""+e,D.set.call(this,e)}},U={eventTypes:A,extractEvents:function(e,t,n,i){var o,s,a=t?E.getNodeFromInstance(t):window;if(r(a)?R?o=l:s=u:x(a)?L?o=h:(o=m,s=d):b(a)&&(o=y),o){var c=o(e,t);if(c){var p=w.getPooled(A.change,c,n,i);return p.type="change",_.accumulateTwoPhaseDispatches(p),p}}s&&s(e,a,t)}};t.exports=U},{"./EventConstants":433,"./EventPluginHub":434,"./EventPropagators":437,"./ReactDOMComponentTree":456,"./ReactUpdates":505,"./SyntheticEvent":514,"./getEventTarget":537,"./isEventSupported":544,"./isTextInputElement":545,"fbjs/lib/ExecutionEnvironment":555,"fbjs/lib/keyOf":573}],425:[function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function i(e,t,n){c.insertTreeBefore(e,t,n)}function o(e,t,n){Array.isArray(t)?a(e,t[0],t[1],n):y(e,t,n)}function s(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],l(e,t,n),e.removeChild(n)}e.removeChild(t)}function a(e,t,n,r){for(var i=t;;){var o=i.nextSibling;if(y(e,i,r),i===n)break;i=o}}function l(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,n){var r=e.parentNode,i=e.nextSibling;i===t?n&&y(r,document.createTextNode(n),i):n?(b(i,n),l(r,i,t)):l(r,e,t)}var c=e("./DOMLazyTree"),p=e("./Danger"),f=e("./ReactMultiChildUpdateTypes"),h=e("./ReactPerf"),d=e("./createMicrosoftUnsafeLocalFunction"),m=e("./setInnerHTML"),b=e("./setTextContent"),y=d(function(e,t,n){e.insertBefore(t,n)}),v={dangerouslyReplaceNodeWithMarkup:p.dangerouslyReplaceNodeWithMarkup,replaceDelimitedText:u,processUpdates:function(e,t){for(var n=0;n<t.length;n++){var a=t[n];switch(a.type){case f.INSERT_MARKUP:i(e,a.content,r(e,a.afterNode));break;case f.MOVE_EXISTING:o(e,a.fromNode,r(e,a.afterNode));break;case f.SET_MARKUP:m(e,a.content);break;case f.TEXT_CONTENT:b(e,a.content);break;case f.REMOVE_NODE:s(e,a.fromNode)}}}};h.measureMethods(v,"DOMChildrenOperations",{replaceDelimitedText:"replaceDelimitedText"}),t.exports=v},{"./DOMLazyTree":426,"./Danger":430,"./ReactMultiChildUpdateTypes":492,"./ReactPerf":497,"./createMicrosoftUnsafeLocalFunction":528,"./setInnerHTML":549,"./setTextContent":550}],426:[function(e,t,n){"use strict";function r(e){if(p){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)f(t,n[r],null);else null!=e.html?t.innerHTML=e.html:null!=e.text&&c(t,e.text)}}function i(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function o(e,t){p?e.children.push(t):e.node.appendChild(t.node)}function s(e,t){p?e.html=t:e.node.innerHTML=t}function a(e,t){p?e.text=t:c(e.node,t)}function l(e){return{node:e,children:[],html:null,text:null}}var u=e("./createMicrosoftUnsafeLocalFunction"),c=e("./setTextContent"),p="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),f=u(function(e,t,n){11===t.node.nodeType?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});l.insertTreeBefore=f,l.replaceChildWithTree=i,l.queueChild=o,l.queueHTML=s,l.queueText=a,t.exports=l},{"./createMicrosoftUnsafeLocalFunction":528,"./setTextContent":550}],427:[function(e,t,n){"use strict";var r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};t.exports=r},{}],428:[function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var i=e("fbjs/lib/invariant"),o={MUST_USE_PROPERTY:1,HAS_SIDE_EFFECTS:2,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=o,n=e.Properties||{},s=e.DOMAttributeNamespaces||{},l=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&a._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var p in n){a.properties.hasOwnProperty(p)?i(!1):void 0;var f=p.toLowerCase(),h=n[p],d={attributeName:f,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseProperty:r(h,t.MUST_USE_PROPERTY),hasSideEffects:r(h,t.HAS_SIDE_EFFECTS),hasBooleanValue:r(h,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(!d.mustUseProperty&&d.hasSideEffects?i(!1):void 0,d.hasBooleanValue+d.hasNumericValue+d.hasOverloadedBooleanValue<=1?void 0:i(!1),l.hasOwnProperty(p)){var m=l[p];d.attributeName=m}s.hasOwnProperty(p)&&(d.attributeNamespace=s[p]),u.hasOwnProperty(p)&&(d.propertyName=u[p]),c.hasOwnProperty(p)&&(d.mutationMethod=c[p]),a.properties[p]=d}}},s=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",a={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:s,ATTRIBUTE_NAME_CHAR:s+"\\-.0-9\\uB7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<a._isCustomAttributeFunctions.length;t++){var n=a._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},injection:o};t.exports=a},{"fbjs/lib/invariant":569}],429:[function(e,t,n){"use strict";function r(e){return c.hasOwnProperty(e)?!0:u.hasOwnProperty(e)?!1:l.test(e)?(c[e]=!0,!0):(u[e]=!0,!1)}function i(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&1>t||e.hasOverloadedBooleanValue&&t===!1}var o=e("./DOMProperty"),s=(e("./ReactDOMInstrumentation"),e("./ReactPerf")),a=e("./quoteAttributeValueForBrowser"),l=(e("fbjs/lib/warning"),new RegExp("^["+o.ATTRIBUTE_NAME_START_CHAR+"]["+o.ATTRIBUTE_NAME_CHAR+"]*$")),u={},c={},p={createMarkupForID:function(e){return o.ID_ATTRIBUTE_NAME+"="+a(e)},setAttributeForID:function(e,t){e.setAttribute(o.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return o.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(e){e.setAttribute(o.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(e,t){var n=o.properties.hasOwnProperty(e)?o.properties[e]:null;if(n){if(i(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+a(t)}return o.isCustomAttribute(e)?null==t?"":e+"="+a(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+a(t):""},setValueForProperty:function(e,t,n){var r=o.properties.hasOwnProperty(t)?o.properties[t]:null;if(r){var s=r.mutationMethod;if(s)s(e,n);else if(i(r,n))this.deleteValueForProperty(e,t);else if(r.mustUseProperty){var a=r.propertyName;r.hasSideEffects&&""+e[a]==""+n||(e[a]=n)}else{var l=r.attributeName,u=r.attributeNamespace;u?e.setAttributeNS(u,l,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(l,""):e.setAttribute(l,""+n)}}else o.isCustomAttribute(t)&&p.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var n=o.properties.hasOwnProperty(t)?o.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseProperty){var i=n.propertyName;n.hasBooleanValue?e[i]=!1:n.hasSideEffects&&""+e[i]==""||(e[i]="")}else e.removeAttribute(n.attributeName)}else o.isCustomAttribute(t)&&e.removeAttribute(t)}};s.measureMethods(p,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),t.exports=p},{"./DOMProperty":428,"./ReactDOMInstrumentation":464,"./ReactPerf":497,"./quoteAttributeValueForBrowser":547,"fbjs/lib/warning":579}],430:[function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var i=e("./DOMLazyTree"),o=e("fbjs/lib/ExecutionEnvironment"),s=e("fbjs/lib/createNodesFromMarkup"),a=e("fbjs/lib/emptyFunction"),l=e("fbjs/lib/getMarkupWrap"),u=e("fbjs/lib/invariant"),c=/^(<[^ \/>]+)/,p="data-danger-index",f={dangerouslyRenderMarkup:function(e){o.canUseDOM?void 0:u(!1);for(var t,n={},i=0;i<e.length;i++)e[i]?void 0:u(!1),t=r(e[i]),t=l(t)?t:"*",n[t]=n[t]||[],n[t][i]=e[i];var f=[],h=0;for(t in n)if(n.hasOwnProperty(t)){var d,m=n[t];for(d in m)if(m.hasOwnProperty(d)){var b=m[d];m[d]=b.replace(c,"$1 "+p+'="'+d+'" ')}for(var y=s(m.join(""),a),v=0;v<y.length;++v){var g=y[v];g.hasAttribute&&g.hasAttribute(p)&&(d=+g.getAttribute(p),g.removeAttribute(p),f.hasOwnProperty(d)?u(!1):void 0,f[d]=g,h+=1)}}return h!==f.length?u(!1):void 0,f.length!==e.length?u(!1):void 0,f},dangerouslyReplaceNodeWithMarkup:function(e,t){if(o.canUseDOM?void 0:u(!1),t?void 0:u(!1),"HTML"===e.nodeName?u(!1):void 0,"string"==typeof t){var n=s(t,a)[0];e.parentNode.replaceChild(n,e)}else i.replaceChildWithTree(e,t)}};t.exports=f},{"./DOMLazyTree":426,"fbjs/lib/ExecutionEnvironment":555,"fbjs/lib/createNodesFromMarkup":560,"fbjs/lib/emptyFunction":561,"fbjs/lib/getMarkupWrap":565,"fbjs/lib/invariant":569}],431:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyOf"),i=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];t.exports=i},{"fbjs/lib/keyOf":573}],432:[function(e,t,n){"use strict";var r=e("./EventConstants"),i=e("./EventPropagators"),o=e("./ReactDOMComponentTree"),s=e("./SyntheticMouseEvent"),a=e("fbjs/lib/keyOf"),l=r.topLevelTypes,u={mouseEnter:{registrationName:a({onMouseEnter:null}),dependencies:[l.topMouseOut,l.topMouseOver]},mouseLeave:{registrationName:a({onMouseLeave:null}),dependencies:[l.topMouseOut,l.topMouseOver]}},c={eventTypes:u,extractEvents:function(e,t,n,r){if(e===l.topMouseOver&&(n.relatedTarget||n.fromElement))return null;if(e!==l.topMouseOut&&e!==l.topMouseOver)return null;var a;if(r.window===r)a=r;else{var c=r.ownerDocument;a=c?c.defaultView||c.parentWindow:window}var p,f;if(e===l.topMouseOut){p=t;var h=n.relatedTarget||n.toElement;f=h?o.getClosestInstanceFromNode(h):null}else p=null,f=t;if(p===f)return null;var d=null==p?a:o.getNodeFromInstance(p),m=null==f?a:o.getNodeFromInstance(f),b=s.getPooled(u.mouseLeave,p,n,r);b.type="mouseleave",b.target=d,b.relatedTarget=m;var y=s.getPooled(u.mouseEnter,f,n,r);return y.type="mouseenter",y.target=m,y.relatedTarget=d,i.accumulateEnterLeaveDispatches(b,y,p,f),[b,y]}};t.exports=c},{"./EventConstants":433,"./EventPropagators":437,"./ReactDOMComponentTree":456,"./SyntheticMouseEvent":518,"fbjs/lib/keyOf":573}],433:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),i=r({bubbled:null,captured:null}),o=r({topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough: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,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null}),s={topLevelTypes:o,PropagationPhases:i};t.exports=s},{"fbjs/lib/keyMirror":572}],434:[function(e,t,n){"use strict";var r=e("./EventPluginRegistry"),i=e("./EventPluginUtils"),o=e("./ReactErrorUtils"),s=e("./accumulateInto"),a=e("./forEachAccumulated"),l=e("fbjs/lib/invariant"),u={},c=null,p=function(e,t){e&&(i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},f=function(e){return p(e,!0)},h=function(e){return p(e,!1)},d={injection:{injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?l(!1):void 0;var i=u[t]||(u[t]={});i[e._rootNodeID]=n;var o=r.registrationNameModules[t];o&&o.didPutListener&&o.didPutListener(e,t,n)},getListener:function(e,t){var n=u[t];return n&&n[e._rootNodeID]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var i=u[t];i&&delete i[e._rootNodeID]},deleteAllListeners:function(e){for(var t in u)if(u[t][e._rootNodeID]){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete u[t][e._rootNodeID]}},extractEvents:function(e,t,n,i){for(var o,a=r.plugins,l=0;l<a.length;l++){var u=a[l];if(u){var c=u.extractEvents(e,t,n,i);c&&(o=s(o,c))}}return o},enqueueEvents:function(e){e&&(c=s(c,e))},processEventQueue:function(e){var t=c;c=null,e?a(t,f):a(t,h),c?l(!1):void 0,o.rethrowCaughtError()},__purge:function(){u={}},__getListenerBank:function(){return u}};t.exports=d},{"./EventPluginRegistry":435,"./EventPluginUtils":436,"./ReactErrorUtils":480,"./accumulateInto":525,"./forEachAccumulated":533,"fbjs/lib/invariant":569}],435:[function(e,t,n){"use strict";function r(){if(a)for(var e in l){var t=l[e],n=a.indexOf(e);if(n>-1?void 0:s(!1),!u.plugins[n]){t.extractEvents?void 0:s(!1),u.plugins[n]=t;var r=t.eventTypes;for(var o in r)i(r[o],t,o)?void 0:s(!1)}}}function i(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)?s(!1):void 0,u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];o(a,t,n)}return!0}return e.registrationName?(o(e.registrationName,t,n),!0):!1}function o(e,t,n){u.registrationNameModules[e]?s(!1):void 0,u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var s=e("fbjs/lib/invariant"),a=null,l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){a?s(!1):void 0,a=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];l.hasOwnProperty(n)&&l[n]===i||(l[n]?s(!1):void 0,l[n]=i,t=!0)}t&&r()},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 r=u.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){a=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i]}};t.exports=u},{"fbjs/lib/invariant":569}],436:[function(e,t,n){"use strict";function r(e){return e===v.topMouseUp||e===v.topTouchEnd||e===v.topTouchCancel}function i(e){return e===v.topMouseMove||e===v.topTouchMove}function o(e){return e===v.topMouseDown||e===v.topTouchStart}function s(e,t,n,r){var i=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(i,n,e):m.invokeGuardedCallback(i,n,e),e.currentTarget=null}function a(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;i<n.length&&!e.isPropagationStopped();i++)s(e,t,n[i],r[i]);else n&&s(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null}function l(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function u(e){var t=l(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function c(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)?b(!1):void 0,e.currentTarget=g.getNodeFromInstance(n);var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function p(e){return!!e._dispatchListeners}var f,h,d=e("./EventConstants"),m=e("./ReactErrorUtils"),b=e("fbjs/lib/invariant"),y=(e("fbjs/lib/warning"),
|
||
{injectComponentTree:function(e){f=e},injectTreeTraversal:function(e){h=e}}),v=d.topLevelTypes,g={isEndish:r,isMoveish:i,isStartish:o,executeDirectDispatch:c,executeDispatchesInOrder:a,executeDispatchesInOrderStopAtTrue:u,hasDispatches:p,getInstanceFromNode:function(e){return f.getInstanceFromNode(e)},getNodeFromInstance:function(e){return f.getNodeFromInstance(e)},isAncestor:function(e,t){return h.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return h.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return h.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return h.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,i){return h.traverseEnterLeave(e,t,n,r,i)},injection:y};t.exports=g},{"./EventConstants":433,"./ReactErrorUtils":480,"fbjs/lib/invariant":569,"fbjs/lib/warning":579}],437:[function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return g(e,r)}function i(e,t,n){var i=t?v.bubbled:v.captured,o=r(e,n,i);o&&(n._dispatchListeners=b(n._dispatchListeners,o),n._dispatchInstances=b(n._dispatchInstances,e))}function o(e){e&&e.dispatchConfig.phasedRegistrationNames&&m.traverseTwoPhase(e._targetInst,i,e)}function s(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?m.getParentInstance(t):null;m.traverseTwoPhase(n,i,e)}}function a(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,i=g(e,r);i&&(n._dispatchListeners=b(n._dispatchListeners,i),n._dispatchInstances=b(n._dispatchInstances,e))}}function l(e){e&&e.dispatchConfig.registrationName&&a(e._targetInst,null,e)}function u(e){y(e,o)}function c(e){y(e,s)}function p(e,t,n,r){m.traverseEnterLeave(n,r,a,e,t)}function f(e){y(e,l)}var h=e("./EventConstants"),d=e("./EventPluginHub"),m=e("./EventPluginUtils"),b=e("./accumulateInto"),y=e("./forEachAccumulated"),v=(e("fbjs/lib/warning"),h.PropagationPhases),g=d.getListener,_={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:p};t.exports=_},{"./EventConstants":433,"./EventPluginHub":434,"./EventPluginUtils":436,"./accumulateInto":525,"./forEachAccumulated":533,"fbjs/lib/warning":579}],438:[function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var i=e("object-assign"),o=e("./PooledClass"),s=e("./getTextContentAccessor");i(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[s()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,i=this.getText(),o=i.length;for(e=0;r>e&&n[e]===i[e];e++);var s=r-e;for(t=1;s>=t&&n[r-t]===i[o-t];t++);var a=t>1?1-t:void 0;return this._fallbackText=i.slice(e,a),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},{"./PooledClass":441,"./getTextContentAccessor":541,"object-assign":580}],439:[function(e,t,n){"use strict";var r=e("./DOMProperty"),i=r.injection.MUST_USE_PROPERTY,o=r.injection.HAS_BOOLEAN_VALUE,s=r.injection.HAS_SIDE_EFFECTS,a=r.injection.HAS_NUMERIC_VALUE,l=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:o,allowTransparency:0,alt:0,async:o,autoComplete:0,autoPlay:o,capture:o,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:i|o,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:o,coords:0,crossOrigin:0,data:0,dateTime:0,"default":o,defer:o,dir:0,disabled:o,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:o,formTarget:0,frameBorder:0,headers:0,height:0,hidden:o,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:o,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:i|o,muted:i|o,name:0,nonce:0,noValidate:o,open:o,optimum:0,pattern:0,placeholder:0,poster:0,preload:0,profile:0,radioGroup:0,readOnly:o,rel:0,required:o,reversed:o,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:o,scrolling:0,seamless:o,selected:i|o,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:i|s,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,"typeof":0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:o,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};t.exports=c},{"./DOMProperty":428}],440:[function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?u(!1):void 0}function i(e){r(e),null!=e.value||null!=e.onChange?u(!1):void 0}function o(e){r(e),null!=e.checked||null!=e.onChange?u(!1):void 0}function s(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var a=e("./ReactPropTypes"),l=e("./ReactPropTypeLocations"),u=e("fbjs/lib/invariant"),c=(e("fbjs/lib/warning"),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),p={value:function(e,t,n){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:a.func},f={},h={checkPropTypes:function(e,t,n){for(var r in p){if(p.hasOwnProperty(r))var i=p[r](t,r,e,l.prop);if(i instanceof Error&&!(i.message in f)){f[i.message]=!0;s(n)}}},getValue:function(e){return e.valueLink?(i(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(o(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(i(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(o(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};t.exports=h},{"./ReactPropTypeLocations":499,"./ReactPropTypes":500,"fbjs/lib/invariant":569,"fbjs/lib/warning":579}],441:[function(e,t,n){"use strict";var r=e("fbjs/lib/invariant"),i=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},o=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},s=function(e,t,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n),i}return new r(e,t,n)},a=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},l=function(e,t,n,r,i){var o=this;if(o.instancePool.length){var s=o.instancePool.pop();return o.call(s,e,t,n,r,i),s}return new o(e,t,n,r,i)},u=function(e){var t=this;e instanceof t?void 0:r(!1),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,p=i,f=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=c),n.release=u,n},h={addPoolingTo:f,oneArgumentPooler:i,twoArgumentPooler:o,threeArgumentPooler:s,fourArgumentPooler:a,fiveArgumentPooler:l};t.exports=h},{"fbjs/lib/invariant":569}],442:[function(e,t,n){"use strict";var r=e("object-assign"),i=e("./ReactChildren"),o=e("./ReactComponent"),s=e("./ReactClass"),a=e("./ReactDOMFactories"),l=e("./ReactElement"),u=(e("./ReactElementValidator"),e("./ReactPropTypes")),c=e("./ReactVersion"),p=e("./onlyChild"),f=(e("fbjs/lib/warning"),l.createElement),h=l.createFactory,d=l.cloneElement,m=r,b={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:p},Component:o,createElement:f,cloneElement:d,isValidElement:l.isValidElement,PropTypes:u,createClass:s.createClass,createFactory:h,createMixin:function(e){return e},DOM:a,version:c,__spread:m};t.exports=b},{"./ReactChildren":445,"./ReactClass":446,"./ReactComponent":447,"./ReactDOMFactories":460,"./ReactElement":477,"./ReactElementValidator":478,"./ReactPropTypes":500,"./ReactVersion":506,"./onlyChild":546,"fbjs/lib/warning":579,"object-assign":580}],443:[function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,b)||(e[b]=d++,f[e[b]]={}),f[e[b]]}var i,o=e("object-assign"),s=e("./EventConstants"),a=e("./EventPluginRegistry"),l=e("./ReactEventEmitterMixin"),u=e("./ViewportMetrics"),c=e("./getVendorPrefixedEventName"),p=e("./isEventSupported"),f={},h=!1,d=0,m={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",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",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},b="_reactListenersID"+String(Math.random()).slice(2),y=o({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(y.handleTopLevel),y.ReactEventListener=e}},setEnabled:function(e){y.ReactEventListener&&y.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!y.ReactEventListener||!y.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,i=r(n),o=a.registrationNameDependencies[e],l=s.topLevelTypes,u=0;u<o.length;u++){var c=o[u];i.hasOwnProperty(c)&&i[c]||(c===l.topWheel?p("wheel")?y.ReactEventListener.trapBubbledEvent(l.topWheel,"wheel",n):p("mousewheel")?y.ReactEventListener.trapBubbledEvent(l.topWheel,"mousewheel",n):y.ReactEventListener.trapBubbledEvent(l.topWheel,"DOMMouseScroll",n):c===l.topScroll?p("scroll",!0)?y.ReactEventListener.trapCapturedEvent(l.topScroll,"scroll",n):y.ReactEventListener.trapBubbledEvent(l.topScroll,"scroll",y.ReactEventListener.WINDOW_HANDLE):c===l.topFocus||c===l.topBlur?(p("focus",!0)?(y.ReactEventListener.trapCapturedEvent(l.topFocus,"focus",n),y.ReactEventListener.trapCapturedEvent(l.topBlur,"blur",n)):p("focusin")&&(y.ReactEventListener.trapBubbledEvent(l.topFocus,"focusin",n),y.ReactEventListener.trapBubbledEvent(l.topBlur,"focusout",n)),i[l.topBlur]=!0,i[l.topFocus]=!0):m.hasOwnProperty(c)&&y.ReactEventListener.trapBubbledEvent(c,m[c],n),i[c]=!0)}},trapBubbledEvent:function(e,t,n){return y.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return y.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(void 0===i&&(i=document.createEvent&&"pageX"in document.createEvent("MouseEvent")),!i&&!h){var e=u.refreshScrollValues;y.ReactEventListener.monitorScrollValue(e),h=!0}}});t.exports=y},{"./EventConstants":433,"./EventPluginRegistry":435,"./ReactEventEmitterMixin":481,"./ViewportMetrics":524,"./getVendorPrefixedEventName":542,"./isEventSupported":544,"object-assign":580}],444:[function(e,t,n){"use strict";function r(e,t,n){var r=void 0===e[n];null!=t&&r&&(e[n]=o(t))}var i=e("./ReactReconciler"),o=e("./instantiateReactComponent"),s=e("./shouldUpdateReactComponent"),a=e("./traverseAllChildren"),l=(e("fbjs/lib/warning"),{instantiateChildren:function(e,t,n){if(null==e)return null;var i={};return a(e,r,i),i},updateChildren:function(e,t,n,r,a){if(t||e){var l,u;for(l in t)if(t.hasOwnProperty(l)){u=e&&e[l];var c=u&&u._currentElement,p=t[l];if(null!=u&&s(c,p))i.receiveComponent(u,p,r,a),t[l]=u;else{u&&(n[l]=i.getNativeNode(u),i.unmountComponent(u,!1));var f=o(p);t[l]=f}}for(l in e)!e.hasOwnProperty(l)||t&&t.hasOwnProperty(l)||(u=e[l],n[l]=i.getNativeNode(u),i.unmountComponent(u,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];i.unmountComponent(r,t)}}});t.exports=l},{"./ReactReconciler":502,"./instantiateReactComponent":543,"./shouldUpdateReactComponent":551,"./traverseAllChildren":552,"fbjs/lib/warning":579}],445:[function(e,t,n){"use strict";function r(e){return(""+e).replace(_,"$&/")}function i(e,t){this.func=e,this.context=t,this.count=0}function o(e,t,n){var r=e.func,i=e.context;r.call(i,t,e.count++)}function s(e,t,n){if(null==e)return e;var r=i.getPooled(t,n);y(e,o,r),i.release(r)}function a(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function l(e,t,n){var i=e.result,o=e.keyPrefix,s=e.func,a=e.context,l=s.call(a,t,e.count++);Array.isArray(l)?u(l,i,n,b.thatReturnsArgument):null!=l&&(m.isValidElement(l)&&(l=m.cloneAndReplaceKey(l,o+(!l.key||t&&t.key===l.key?"":r(l.key)+"/")+n)),i.push(l))}function u(e,t,n,i,o){var s="";null!=n&&(s=r(n)+"/");var u=a.getPooled(t,s,i,o);y(e,l,u),a.release(u)}function c(e,t,n){if(null==e)return e;var r=[];return u(e,r,null,t,n),r}function p(e,t,n){return null}function f(e,t){return y(e,p,null)}function h(e){var t=[];return u(e,t,null,b.thatReturnsArgument),t}var d=e("./PooledClass"),m=e("./ReactElement"),b=e("fbjs/lib/emptyFunction"),y=e("./traverseAllChildren"),v=d.twoArgumentPooler,g=d.fourArgumentPooler,_=/\/+/g;i.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},d.addPoolingTo(i,v),a.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d.addPoolingTo(a,g);var T={forEach:s,map:c,mapIntoWithKeyPrefixInternal:u,count:f,toArray:h};t.exports=T},{"./PooledClass":441,"./ReactElement":477,"./traverseAllChildren":552,"fbjs/lib/emptyFunction":561}],446:[function(e,t,n){"use strict";function r(e,t){var n=E.hasOwnProperty(t)?E[t]:null;w.hasOwnProperty(t)&&(n!==_.OVERRIDE_BASE?b(!1):void 0),e&&(n!==_.DEFINE_MANY&&n!==_.DEFINE_MANY_MERGED?b(!1):void 0)}function i(e,t){if(t){"function"==typeof t?b(!1):void 0,h.isValidElement(t)?b(!1):void 0;var n=e.prototype,i=n.__reactAutoBindPairs;t.hasOwnProperty(g)&&C.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==g){var s=t[o],u=n.hasOwnProperty(o);if(r(u,o),C.hasOwnProperty(o))C[o](e,s);else{var c=E.hasOwnProperty(o),p="function"==typeof s,f=p&&!c&&!u&&t.autobind!==!1;if(f)i.push(o,s),n[o]=s;else if(u){var d=E[o];!c||d!==_.DEFINE_MANY_MERGED&&d!==_.DEFINE_MANY?b(!1):void 0,d===_.DEFINE_MANY_MERGED?n[o]=a(n[o],s):d===_.DEFINE_MANY&&(n[o]=l(n[o],s))}else n[o]=s}}}}function o(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var i=n in C;i?b(!1):void 0;var o=n in e;o?b(!1):void 0,e[n]=r}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:b(!1);for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?b(!1):void 0,e[n]=t[n]);return e}function a(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return s(i,n),s(i,r),i}}function l(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function u(e,t){var n=t.bind(e);return n}function c(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=u(e,i)}}var p=e("object-assign"),f=e("./ReactComponent"),h=e("./ReactElement"),d=(e("./ReactPropTypeLocations"),e("./ReactPropTypeLocationNames"),e("./ReactNoopUpdateQueue")),m=e("fbjs/lib/emptyObject"),b=e("fbjs/lib/invariant"),y=e("fbjs/lib/keyMirror"),v=e("fbjs/lib/keyOf"),g=(e("fbjs/lib/warning"),v({mixins:null})),_=y({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),T=[],E={mixins:_.DEFINE_MANY,statics:_.DEFINE_MANY,propTypes:_.DEFINE_MANY,contextTypes:_.DEFINE_MANY,childContextTypes:_.DEFINE_MANY,getDefaultProps:_.DEFINE_MANY_MERGED,getInitialState:_.DEFINE_MANY_MERGED,getChildContext:_.DEFINE_MANY_MERGED,render:_.DEFINE_ONCE,componentWillMount:_.DEFINE_MANY,componentDidMount:_.DEFINE_MANY,componentWillReceiveProps:_.DEFINE_MANY,shouldComponentUpdate:_.DEFINE_ONCE,componentWillUpdate:_.DEFINE_MANY,componentDidUpdate:_.DEFINE_MANY,componentWillUnmount:_.DEFINE_MANY,updateComponent:_.OVERRIDE_BASE},C={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=p({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=p({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=a(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=p({},e.propTypes,t)},statics:function(e,t){o(e,t)},autobind:function(){}},w={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},S=function(){};p(S.prototype,f.prototype,w);var P={createClass:function(e){var t=function(e,t,n){this.__reactAutoBindPairs.length&&c(this),this.props=e,this.context=t,this.refs=m,this.updater=n||d,this.state=null;var r=this.getInitialState?this.getInitialState():null;"object"!=typeof r||Array.isArray(r)?b(!1):void 0,this.state=r};t.prototype=new S,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],T.forEach(i.bind(null,t)),i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:b(!1);for(var n in E)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){T.push(e)}}};t.exports=P},{"./ReactComponent":447,"./ReactElement":477,"./ReactNoopUpdateQueue":495,"./ReactPropTypeLocationNames":498,"./ReactPropTypeLocations":499,"fbjs/lib/emptyObject":562,"fbjs/lib/invariant":569,"fbjs/lib/keyMirror":572,"fbjs/lib/keyOf":573,"fbjs/lib/warning":579,"object-assign":580}],447:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=o,this.updater=n||i}var i=e("./ReactNoopUpdateQueue"),o=(e("./ReactInstrumentation"),e("./canDefineProperty"),e("fbjs/lib/emptyObject")),s=e("fbjs/lib/invariant");e("fbjs/lib/warning");r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?s(!1):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};t.exports=r},{"./ReactInstrumentation":487,"./ReactNoopUpdateQueue":495,"./canDefineProperty":527,"fbjs/lib/emptyObject":562,"fbjs/lib/invariant":569,"fbjs/lib/warning":579}],448:[function(e,t,n){"use strict";var r=e("./DOMChildrenOperations"),i=e("./ReactDOMIDOperations"),o=e("./ReactPerf"),s={processChildrenUpdates:i.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup,unmountIDFromEnvironment:function(e){}};o.measureMethods(s,"ReactComponentBrowserEnvironment",{replaceNodeWithMarkup:"replaceNodeWithMarkup"}),t.exports=s},{"./DOMChildrenOperations":425,"./ReactDOMIDOperations":462,"./ReactPerf":497}],449:[function(e,t,n){"use strict";var r=e("fbjs/lib/invariant"),i=!1,o={unmountIDFromEnvironment:null,replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){i?r(!1):void 0,o.unmountIDFromEnvironment=e.unmountIDFromEnvironment,o.replaceNodeWithMarkup=e.replaceNodeWithMarkup,o.processChildrenUpdates=e.processChildrenUpdates,i=!0}}};t.exports=o},{"fbjs/lib/invariant":569}],450:[function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function i(e){}function o(e,t){}var s=e("object-assign"),a=e("./ReactComponentEnvironment"),l=e("./ReactCurrentOwner"),u=e("./ReactElement"),c=e("./ReactErrorUtils"),p=e("./ReactInstanceMap"),f=(e("./ReactInstrumentation"),e("./ReactNodeTypes")),h=e("./ReactPerf"),d=e("./ReactPropTypeLocations"),m=(e("./ReactPropTypeLocationNames"),e("./ReactReconciler")),b=e("./ReactUpdateQueue"),y=e("fbjs/lib/emptyObject"),v=e("fbjs/lib/invariant"),g=e("./shouldUpdateReactComponent");e("fbjs/lib/warning");i.prototype.render=function(){var e=p.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return o(e,t),t};var _=1,T={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._nativeParent=null,this._nativeContainerInfo=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,n,r){this._context=r,this._mountOrder=_++,this._nativeParent=t,this._nativeContainerInfo=n;var s,a,l=this._processProps(this._currentElement.props),c=this._processContext(r),f=this._currentElement.type;f.prototype&&f.prototype.isReactComponent?s=new f(l,c,b):(s=f(l,c,b),null!=s&&null!=s.render||(a=s,o(f,a),null===s||s===!1||u.isValidElement(s)?void 0:v(!1),s=new i(f)));s.props=l,s.context=c,s.refs=y,s.updater=b,this._instance=s,p.set(s,this);var h=s.state;void 0===h&&(s.state=h=null),"object"!=typeof h||Array.isArray(h)?v(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var d;return d=s.unstable_handleError?this.performInitialMountWithErrorHandling(a,t,n,e,r):this.performInitialMount(a,t,n,e,r),s.componentDidMount&&e.getReactMountReady().enqueue(s.componentDidMount,s),d},performInitialMountWithErrorHandling:function(e,t,n,r,i){var o,s=r.checkpoint();try{o=this.performInitialMount(e,t,n,r,i)}catch(a){r.rollback(s),this._instance.unstable_handleError(a),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),s=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(s),o=this.performInitialMount(e,t,n,r,i)}return o},performInitialMount:function(e,t,n,r,i){var o=this._instance;o.componentWillMount&&(o.componentWillMount(),this._pendingStateQueue&&(o.state=this._processPendingState(o.props,o.context))),void 0===e&&(e=this._renderValidatedComponent()),this._renderedNodeType=f.getType(e),this._renderedComponent=this._instantiateReactComponent(e);var s=m.mountComponent(this._renderedComponent,r,t,n,this._processChildContext(i));return s},getNativeNode:function(){return m.getNativeNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount)if(e){var n=this.getName()+".componentWillUnmount()";c.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,p.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return y;var r={};for(var i in n)r[i]=e[i];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!=typeof t.childContextTypes?v(!1):void 0;for(var i in r)i in t.childContextTypes?void 0:v(!1);return s({},e,r)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var i=this.getName();for(var o in e)if(e.hasOwnProperty(o)){var s;try{"function"!=typeof e[o]?v(!1):void 0,s=e[o](t,o,i,n)}catch(a){s=a}if(s instanceof Error){r(this);n===d.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,i=this._context;this._pendingElement=null,this.updateComponent(t,r,e,i,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&m.receiveComponent(this,this._pendingElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,n,r,i){var o,s,a=this._instance,l=!1;this._context===i?o=a.context:(o=this._processContext(i),l=!0),t===n?s=n.props:(s=this._processProps(n.props),l=!0),l&&a.componentWillReceiveProps&&a.componentWillReceiveProps(s,o);var u=this._processPendingState(s,o),c=this._pendingForceUpdate||!a.shouldComponentUpdate||a.shouldComponentUpdate(s,u,o);c?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,s,u,o,e,i)):(this._currentElement=n,this._context=i,a.props=s,a.state=u,a.context=o)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,i=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(i&&1===r.length)return r[0];for(var o=s({},i?r[0]:n.state),a=i?1:0;a<r.length;a++){var l=r[a];s(o,"function"==typeof l?l.call(n,o,e,t):l)}return o},_performComponentUpdate:function(e,t,n,r,i,o){var s,a,l,u=this._instance,c=Boolean(u.componentDidUpdate);c&&(s=u.props,a=u.state,l=u.context),u.componentWillUpdate&&u.componentWillUpdate(t,n,r),this._currentElement=e,this._context=o,u.props=t,u.state=n,u.context=r,this._updateRenderedComponent(i,o),c&&i.getReactMountReady().enqueue(u.componentDidUpdate.bind(u,s,a,l),u)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,i=this._renderValidatedComponent();if(g(r,i))m.receiveComponent(n,i,e,this._processChildContext(t));else{var o=m.getNativeNode(n);m.unmountComponent(n,!1),this._renderedNodeType=f.getType(i),this._renderedComponent=this._instantiateReactComponent(i);var s=m.mountComponent(this._renderedComponent,e,this._nativeParent,this._nativeContainerInfo,this._processChildContext(t));this._replaceNodeWithMarkup(o,s)}},_replaceNodeWithMarkup:function(e,t){a.replaceNodeWithMarkup(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(){var e;l.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{l.current=null}return null===e||e===!1||u.isValidElement(e)?void 0:v(!1),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?v(!1):void 0;var r=t.getPublicInstance(),i=n.refs===y?n.refs={}:n.refs;i[e]=r},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return e instanceof i?null:e},_instantiateReactComponent:null};h.measureMethods(T,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var E={Mixin:T};t.exports=E},{"./ReactComponentEnvironment":449,"./ReactCurrentOwner":451,"./ReactElement":477,"./ReactErrorUtils":480,"./ReactInstanceMap":486,"./ReactInstrumentation":487,"./ReactNodeTypes":494,"./ReactPerf":497,"./ReactPropTypeLocationNames":498,"./ReactPropTypeLocations":499,"./ReactReconciler":502,"./ReactUpdateQueue":504,"./shouldUpdateReactComponent":551,"fbjs/lib/emptyObject":562,"fbjs/lib/invariant":569,"fbjs/lib/warning":579,"object-assign":580}],451:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],452:[function(e,t,n){"use strict";var r=e("./ReactDOMComponentTree"),i=e("./ReactDefaultInjection"),o=e("./ReactMount"),s=e("./ReactPerf"),a=e("./ReactReconciler"),l=e("./ReactUpdates"),u=e("./ReactVersion"),c=e("./findDOMNode"),p=e("./getNativeComponentFromComposite"),f=e("./renderSubtreeIntoContainer");e("fbjs/lib/warning");i.inject();var h=s.measure("React","render",o.render),d={findDOMNode:c,render:h,unmountComponentAtNode:o.unmountComponentAtNode,version:u,unstable_batchedUpdates:l.batchedUpdates,unstable_renderSubtreeIntoContainer:f};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=p(e)),e?r.getNodeFromInstance(e):null}},Mount:o,Reconciler:a});t.exports=d},{"./ReactDOMComponentTree":456,"./ReactDefaultInjection":474,"./ReactMount":490,"./ReactPerf":497,"./ReactReconciler":502,"./ReactUpdates":505,"./ReactVersion":506,"./findDOMNode":531,"./getNativeComponentFromComposite":539,"./renderSubtreeIntoContainer":548,"fbjs/lib/ExecutionEnvironment":555,"fbjs/lib/warning":579}],453:[function(e,t,n){"use strict";var r={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},i={getNativeProps:function(e,t){if(!t.disabled)return t;var n={};for(var i in t)t.hasOwnProperty(i)&&!r[i]&&(n[i]=t[i]);return n}};t.exports=i},{}],454:[function(e,t,n){"use strict";function r(e,t){t&&(W[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?D(!1):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?D(!1):void 0,"object"==typeof t.dangerouslySetInnerHTML&&G in t.dangerouslySetInnerHTML?void 0:D(!1)),null!=t.style&&"object"!=typeof t.style?D(!1):void 0)}function i(e,t,n,r){var i=e._nativeContainerInfo,s=i._ownerDocument;s&&(F(t,s),r.getReactMountReady().enqueue(o,{inst:e,registrationName:t,listener:n}))}function o(){var e=this;_.putListener(e.inst,e.registrationName,e.listener)}function s(){var e=this;k.postMountWrapper(e)}function a(){var e=this;e._rootNodeID?void 0:D(!1);var t=U(e);switch(t?void 0:D(!1),e._tag){case"iframe":case"object":e._wrapperState.listeners=[E.trapBubbledEvent(g.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in V)V.hasOwnProperty(n)&&e._wrapperState.listeners.push(E.trapBubbledEvent(g.topLevelTypes[n],V[n],t));break;case"img":e._wrapperState.listeners=[E.trapBubbledEvent(g.topLevelTypes.topError,"error",t),E.trapBubbledEvent(g.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[E.trapBubbledEvent(g.topLevelTypes.topReset,"reset",t),E.trapBubbledEvent(g.topLevelTypes.topSubmit,"submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[E.trapBubbledEvent(g.topLevelTypes.topInvalid,"invalid",t)]}}function l(){M.postUpdateWrapper(this)}function u(e){
|
||
Y.call(Q,e)||($.test(e)?void 0:D(!1),Q[e]=!0)}function c(e,t){return e.indexOf("-")>=0||null!=t.is}function p(e){var t=e.type;u(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._nativeNode=null,this._nativeParent=null,this._rootNodeID=null,this._domID=null,this._nativeContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var f=e("object-assign"),h=e("./AutoFocusUtils"),d=e("./CSSPropertyOperations"),m=e("./DOMLazyTree"),b=e("./DOMNamespaces"),y=e("./DOMProperty"),v=e("./DOMPropertyOperations"),g=e("./EventConstants"),_=e("./EventPluginHub"),T=e("./EventPluginRegistry"),E=e("./ReactBrowserEventEmitter"),C=e("./ReactComponentBrowserEnvironment"),w=e("./ReactDOMButton"),S=e("./ReactDOMComponentFlags"),P=e("./ReactDOMComponentTree"),x=e("./ReactDOMInput"),k=e("./ReactDOMOption"),M=e("./ReactDOMSelect"),A=e("./ReactDOMTextarea"),O=e("./ReactMultiChild"),N=e("./ReactPerf"),I=e("./escapeTextContentForBrowser"),D=e("fbjs/lib/invariant"),R=(e("./isEventSupported"),e("fbjs/lib/keyOf")),L=(e("fbjs/lib/shallowEqual"),e("./validateDOMNesting"),e("fbjs/lib/warning"),S),j=_.deleteListener,U=P.getNodeFromInstance,F=E.listenTo,B=T.registrationNameModules,H={string:!0,number:!0},K=R({style:null}),G=R({__html:null}),q={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},z={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},X={listing:!0,pre:!0,textarea:!0},W=f({menuitem:!0},z),$=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},Y={}.hasOwnProperty,Z=1;p.displayName="ReactDOMComponent",p.Mixin={mountComponent:function(e,t,n,i){this._rootNodeID=Z++,this._domID=n._idCounter++,this._nativeParent=t,this._nativeContainerInfo=n;var o=this._currentElement.props;switch(this._tag){case"iframe":case"object":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(a,this);break;case"button":o=w.getNativeProps(this,o,t);break;case"input":x.mountWrapper(this,o,t),o=x.getNativeProps(this,o),e.getReactMountReady().enqueue(a,this);break;case"option":k.mountWrapper(this,o,t),o=k.getNativeProps(this,o);break;case"select":M.mountWrapper(this,o,t),o=M.getNativeProps(this,o),e.getReactMountReady().enqueue(a,this);break;case"textarea":A.mountWrapper(this,o,t),o=A.getNativeProps(this,o),e.getReactMountReady().enqueue(a,this)}r(this,o);var l,u;null!=t?(l=t._namespaceURI,u=t._tag):n._tag&&(l=n._namespaceURI,u=n._tag),(null==l||l===b.svg&&"foreignobject"===u)&&(l=b.html),l===b.html&&("svg"===this._tag?l=b.svg:"math"===this._tag&&(l=b.mathml)),this._namespaceURI=l;var c;if(e.useCreateElement){var p,f=n._ownerDocument;if(l===b.html)if("script"===this._tag){var d=f.createElement("div"),y=this._currentElement.type;d.innerHTML="<"+y+"></"+y+">",p=d.removeChild(d.firstChild)}else p=f.createElement(this._currentElement.type);else p=f.createElementNS(l,this._currentElement.type);P.precacheNode(this,p),this._flags|=L.hasCachedChildNodes,this._nativeParent||v.setAttributeForRoot(p),this._updateDOMProperties(null,o,e);var g=m(p);this._createInitialChildren(e,o,i,g),c=g}else{var _=this._createOpenTagMarkupAndPutListeners(e,o),T=this._createContentMarkup(e,o,i);c=!T&&z[this._tag]?_+"/>":_+">"+T+"</"+this._currentElement.type+">"}switch(this._tag){case"button":case"input":case"select":case"textarea":o.autoFocus&&e.getReactMountReady().enqueue(h.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(s,this)}return c},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(B.hasOwnProperty(r))o&&i(this,r,o,e);else{r===K&&(o&&(o=this._previousStyleCopy=f({},t.style)),o=d.createMarkupForStyles(o,this));var s=null;null!=this._tag&&c(this._tag,t)?q.hasOwnProperty(r)||(s=v.createMarkupForCustomAttribute(r,o)):s=v.createMarkupForProperty(r,o),s&&(n+=" "+s)}}return e.renderToStaticMarkup?n:(this._nativeParent||(n+=" "+v.createMarkupForRoot()),n+=" "+v.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",i=t.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&(r=i.__html);else{var o=H[typeof t.children]?t.children:null,s=null!=o?null:t.children;if(null!=o)r=I(o);else if(null!=s){var a=this.mountChildren(s,e,n);r=a.join("")}}return X[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var i=t.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&m.queueHTML(r,i.__html);else{var o=H[typeof t.children]?t.children:null,s=null!=o?null:t.children;if(null!=o)m.queueText(r,o);else if(null!=s)for(var a=this.mountChildren(s,e,n),l=0;l<a.length;l++)m.queueChild(r,a[l])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,i){var o=t.props,s=this._currentElement.props;switch(this._tag){case"button":o=w.getNativeProps(this,o),s=w.getNativeProps(this,s);break;case"input":x.updateWrapper(this),o=x.getNativeProps(this,o),s=x.getNativeProps(this,s);break;case"option":o=k.getNativeProps(this,o),s=k.getNativeProps(this,s);break;case"select":o=M.getNativeProps(this,o),s=M.getNativeProps(this,s);break;case"textarea":A.updateWrapper(this),o=A.getNativeProps(this,o),s=A.getNativeProps(this,s)}r(this,s),this._updateDOMProperties(o,s,e),this._updateDOMChildren(o,s,e,i),"select"===this._tag&&e.getReactMountReady().enqueue(l,this)},_updateDOMProperties:function(e,t,n){var r,o,s;for(r in e)if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&null!=e[r])if(r===K){var a=this._previousStyleCopy;for(o in a)a.hasOwnProperty(o)&&(s=s||{},s[o]="");this._previousStyleCopy=null}else B.hasOwnProperty(r)?e[r]&&j(this,r):(y.properties[r]||y.isCustomAttribute(r))&&v.deleteValueForProperty(U(this),r);for(r in t){var l=t[r],u=r===K?this._previousStyleCopy:null!=e?e[r]:void 0;if(t.hasOwnProperty(r)&&l!==u&&(null!=l||null!=u))if(r===K)if(l?l=this._previousStyleCopy=f({},l):this._previousStyleCopy=null,u){for(o in u)!u.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(s=s||{},s[o]="");for(o in l)l.hasOwnProperty(o)&&u[o]!==l[o]&&(s=s||{},s[o]=l[o])}else s=l;else if(B.hasOwnProperty(r))l?i(this,r,l,n):u&&j(this,r);else if(c(this._tag,t))q.hasOwnProperty(r)||v.setValueForAttribute(U(this),r,l);else if(y.properties[r]||y.isCustomAttribute(r)){var p=U(this);null!=l?v.setValueForProperty(p,r,l):v.deleteValueForProperty(p,r)}}s&&d.setValueForStyles(U(this),s,this)},_updateDOMChildren:function(e,t,n,r){var i=H[typeof e.children]?e.children:null,o=H[typeof t.children]?t.children:null,s=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,a=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,l=null!=i?null:e.children,u=null!=o?null:t.children,c=null!=i||null!=s,p=null!=o||null!=a;null!=l&&null==u?this.updateChildren(null,n,r):c&&!p&&this.updateTextContent(""),null!=o?i!==o&&this.updateTextContent(""+o):null!=a?s!==a&&this.updateMarkup(""+a):null!=u&&this.updateChildren(u,n,r)},getNativeNode:function(){return U(this)},unmountComponent:function(e){switch(this._tag){case"iframe":case"object":case"img":case"form":case"video":case"audio":var t=this._wrapperState.listeners;if(t)for(var n=0;n<t.length;n++)t[n].remove();break;case"html":case"head":case"body":D(!1)}this.unmountChildren(e),P.uncacheNode(this),_.deleteAllListeners(this),C.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._domID=null,this._wrapperState=null},getPublicInstance:function(){return U(this)}},N.measureMethods(p.Mixin,"ReactDOMComponent",{mountComponent:"mountComponent",receiveComponent:"receiveComponent"}),f(p.prototype,p.Mixin,O.Mixin),t.exports=p},{"./AutoFocusUtils":419,"./CSSPropertyOperations":422,"./DOMLazyTree":426,"./DOMNamespaces":427,"./DOMProperty":428,"./DOMPropertyOperations":429,"./EventConstants":433,"./EventPluginHub":434,"./EventPluginRegistry":435,"./ReactBrowserEventEmitter":443,"./ReactComponentBrowserEnvironment":448,"./ReactDOMButton":453,"./ReactDOMComponentFlags":455,"./ReactDOMComponentTree":456,"./ReactDOMInput":463,"./ReactDOMOption":465,"./ReactDOMSelect":466,"./ReactDOMTextarea":469,"./ReactMultiChild":491,"./ReactPerf":497,"./escapeTextContentForBrowser":530,"./isEventSupported":544,"./validateDOMNesting":553,"fbjs/lib/invariant":569,"fbjs/lib/keyOf":573,"fbjs/lib/shallowEqual":578,"fbjs/lib/warning":579,"object-assign":580}],455:[function(e,t,n){"use strict";var r={hasCachedChildNodes:1};t.exports=r},{}],456:[function(e,t,n){"use strict";function r(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=r(e);n._nativeNode=t,t[m]=n}function o(e){var t=e._nativeNode;t&&(delete t[m],e._nativeNode=null)}function s(e,t){if(!(e._flags&d.hasCachedChildNodes)){var n=e._renderedChildren,o=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var a=n[s],l=r(a)._domID;if(null!=l){for(;null!==o;o=o.nextSibling)if(1===o.nodeType&&o.getAttribute(h)===String(l)||8===o.nodeType&&o.nodeValue===" react-text: "+l+" "||8===o.nodeType&&o.nodeValue===" react-empty: "+l+" "){i(a,o);continue e}f(!1)}}e._flags|=d.hasCachedChildNodes}}function a(e){if(e[m])return e[m];for(var t=[];!e[m];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[m]);e=t.pop())n=r,t.length&&s(r,e);return n}function l(e){var t=a(e);return null!=t&&t._nativeNode===e?t:null}function u(e){if(void 0===e._nativeNode?f(!1):void 0,e._nativeNode)return e._nativeNode;for(var t=[];!e._nativeNode;)t.push(e),e._nativeParent?void 0:f(!1),e=e._nativeParent;for(;t.length;e=t.pop())s(e,e._nativeNode);return e._nativeNode}var c=e("./DOMProperty"),p=e("./ReactDOMComponentFlags"),f=e("fbjs/lib/invariant"),h=c.ID_ATTRIBUTE_NAME,d=p,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),b={getClosestInstanceFromNode:a,getInstanceFromNode:l,getNodeFromInstance:u,precacheChildNodes:s,precacheNode:i,uncacheNode:o};t.exports=b},{"./DOMProperty":428,"./ReactDOMComponentFlags":455,"fbjs/lib/invariant":569}],457:[function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===i?t:t.ownerDocument:null,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var i=(e("./validateDOMNesting"),9);t.exports=r},{"./validateDOMNesting":553}],458:[function(e,t,n){"use strict";function r(e,t,n,r,i,o){}var i=e("./ReactDOMUnknownPropertyDevtool"),o=(e("fbjs/lib/warning"),[]),s={addDevtool:function(e){o.push(e)},removeDevtool:function(e){for(var t=0;t<o.length;t++)o[t]===e&&(o.splice(t,1),t--)},onCreateMarkupForProperty:function(e,t){r("onCreateMarkupForProperty",e,t)},onSetValueForProperty:function(e,t,n){r("onSetValueForProperty",e,t,n)},onDeleteValueForProperty:function(e,t){r("onDeleteValueForProperty",e,t)}};s.addDevtool(i),t.exports=s},{"./ReactDOMUnknownPropertyDevtool":471,"fbjs/lib/warning":579}],459:[function(e,t,n){"use strict";var r=e("object-assign"),i=e("./DOMLazyTree"),o=e("./ReactDOMComponentTree"),s=function(e){this._currentElement=null,this._nativeNode=null,this._nativeParent=null,this._nativeContainerInfo=null,this._domID=null};r(s.prototype,{mountComponent:function(e,t,n,r){var s=n._idCounter++;this._domID=s,this._nativeParent=t,this._nativeContainerInfo=n;var a=" react-empty: "+this._domID+" ";if(e.useCreateElement){var l=n._ownerDocument,u=l.createComment(a);return o.precacheNode(this,u),i(u)}return e.renderToStaticMarkup?"":"<!--"+a+"-->"},receiveComponent:function(){},getNativeNode:function(){return o.getNodeFromInstance(this)},unmountComponent:function(){o.uncacheNode(this)}}),t.exports=s},{"./DOMLazyTree":426,"./ReactDOMComponentTree":456,"object-assign":580}],460:[function(e,t,n){"use strict";function r(e){return i.createFactory(e)}var i=e("./ReactElement"),o=(e("./ReactElementValidator"),e("fbjs/lib/mapObject")),s=o({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",hgroup:"hgroup",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",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",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"},r);t.exports=s},{"./ReactElement":477,"./ReactElementValidator":478,"fbjs/lib/mapObject":574}],461:[function(e,t,n){"use strict";var r={useCreateElement:!0};t.exports=r},{}],462:[function(e,t,n){"use strict";var r=e("./DOMChildrenOperations"),i=e("./ReactDOMComponentTree"),o=e("./ReactPerf"),s={dangerouslyProcessChildrenUpdates:function(e,t){var n=i.getNodeFromInstance(e);r.processUpdates(n,t)}};o.measureMethods(s,"ReactDOMIDOperations",{dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),t.exports=s},{"./DOMChildrenOperations":425,"./ReactDOMComponentTree":456,"./ReactPerf":497}],463:[function(e,t,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function i(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);u.asap(r,this);var i=t.name;if("radio"===t.type&&null!=i){for(var o=l.getNodeFromInstance(this),s=o;s.parentNode;)s=s.parentNode;for(var p=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),f=0;f<p.length;f++){var h=p[f];if(h!==o&&h.form===o.form){var d=l.getInstanceFromNode(h);d?void 0:c(!1),u.asap(r,d)}}}return n}var o=e("object-assign"),s=e("./DOMPropertyOperations"),a=e("./LinkedValueUtils"),l=e("./ReactDOMComponentTree"),u=e("./ReactUpdates"),c=e("fbjs/lib/invariant"),p=(e("fbjs/lib/warning"),{getNativeProps:function(e,t){var n=a.getValue(t),r=a.getChecked(t),i=o({type:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return i},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:t.defaultChecked||!1,initialValue:null!=n?n:null,listeners:null,onChange:i.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&s.setValueForProperty(l.getNodeFromInstance(e),"checked",n||!1);var r=a.getValue(t);null!=r&&s.setValueForProperty(l.getNodeFromInstance(e),"value",""+r)}});t.exports=p},{"./DOMPropertyOperations":429,"./LinkedValueUtils":440,"./ReactDOMComponentTree":456,"./ReactUpdates":505,"fbjs/lib/invariant":569,"fbjs/lib/warning":579,"object-assign":580}],464:[function(e,t,n){"use strict";var r=e("./ReactDOMDebugTool");t.exports={debugTool:r}},{"./ReactDOMDebugTool":458}],465:[function(e,t,n){"use strict";var r=e("object-assign"),i=e("./ReactChildren"),o=e("./ReactDOMComponentTree"),s=e("./ReactDOMSelect"),a=(e("fbjs/lib/warning"),{mountWrapper:function(e,t,n){var r=null;null!=n&&"select"===n._tag&&(r=s.getSelectValueContext(n));var i=null;if(null!=r)if(i=!1,Array.isArray(r)){for(var o=0;o<r.length;o++)if(""+r[o]==""+t.value){i=!0;break}}else i=""+r==""+t.value;e._wrapperState={selected:i}},postMountWrapper:function(e){var t=e._currentElement.props;if(null!=t.value){var n=o.getNodeFromInstance(e);n.setAttribute("value",t.value)}},getNativeProps:function(e,t){var n=r({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(n.selected=e._wrapperState.selected);var o="";return i.forEach(t.children,function(e){null!=e&&("string"!=typeof e&&"number"!=typeof e||(o+=e))}),o&&(n.children=o),n}});t.exports=a},{"./ReactChildren":445,"./ReactDOMComponentTree":456,"./ReactDOMSelect":466,"fbjs/lib/warning":579,"object-assign":580}],466:[function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=a.getValue(e);null!=t&&i(this,Boolean(e.multiple),t)}}function i(e,t,n){var r,i,o=l.getNodeFromInstance(e).options;if(t){for(r={},i=0;i<n.length;i++)r[""+n[i]]=!0;for(i=0;i<o.length;i++){var s=r.hasOwnProperty(o[i].value);o[i].selected!==s&&(o[i].selected=s)}}else{for(r=""+n,i=0;i<o.length;i++)if(o[i].value===r)return void(o[i].selected=!0);o.length&&(o[0].selected=!0)}}function o(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),u.asap(r,this),n}var s=e("object-assign"),a=e("./LinkedValueUtils"),l=e("./ReactDOMComponentTree"),u=e("./ReactUpdates"),c=(e("fbjs/lib/warning"),!1),p={getNativeProps:function(e,t){return s({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=a.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,listeners:null,onChange:o.bind(e),wasMultiple:Boolean(t.multiple)},void 0===t.value||void 0===t.defaultValue||c||(c=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=a.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,i(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?i(e,Boolean(t.multiple),t.defaultValue):i(e,Boolean(t.multiple),t.multiple?[]:""))}};t.exports=p},{"./LinkedValueUtils":440,"./ReactDOMComponentTree":456,"./ReactUpdates":505,"fbjs/lib/warning":579,"object-assign":580}],467:[function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function i(e){var t=document.selection,n=t.createRange(),r=n.text.length,i=n.duplicate();i.moveToElementText(e),i.setEndPoint("EndToStart",n);var o=i.text.length,s=o+r;return{start:o,end:s}}function o(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,i=t.anchorOffset,o=t.focusNode,s=t.focusOffset,a=t.getRangeAt(0);try{a.startContainer.nodeType,a.endContainer.nodeType}catch(l){return null}var u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:a.toString().length,p=a.cloneRange();p.selectNodeContents(e),p.setEnd(a.startContainer,a.startOffset);var f=r(p.startContainer,p.startOffset,p.endContainer,p.endOffset),h=f?0:p.toString().length,d=h+c,m=document.createRange();m.setStart(n,i),m.setEnd(o,s);var b=m.collapsed;return{start:b?d:h,end:b?h:d}}function s(e,t){var n,r,i=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),i.moveToElementText(e),i.moveStart("character",n),i.setEndPoint("EndToStart",i),i.moveEnd("character",r-n),i.select()}function a(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,i=Math.min(t.start,r),o=void 0===t.end?i:Math.min(t.end,r);if(!n.extend&&i>o){var s=o;o=i,i=s}var a=u(e,i),l=u(e,o);if(a&&l){var p=document.createRange();p.setStart(a.node,a.offset),n.removeAllRanges(),i>o?(n.addRange(p),n.extend(l.node,l.offset)):(p.setEnd(l.node,l.offset),n.addRange(p))}}}var l=e("fbjs/lib/ExecutionEnvironment"),u=e("./getNodeForCharacterOffset"),c=e("./getTextContentAccessor"),p=l.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:p?i:o,setOffsets:p?s:a};t.exports=f},{"./getNodeForCharacterOffset":540,"./getTextContentAccessor":541,"fbjs/lib/ExecutionEnvironment":555}],468:[function(e,t,n){"use strict";var r=e("object-assign"),i=e("./DOMChildrenOperations"),o=e("./DOMLazyTree"),s=e("./ReactDOMComponentTree"),a=e("./ReactPerf"),l=e("./escapeTextContentForBrowser"),u=e("fbjs/lib/invariant"),c=(e("./validateDOMNesting"),function(e){this._currentElement=e,this._stringText=""+e,this._nativeNode=null,this._nativeParent=null,this._domID=null,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(c.prototype,{mountComponent:function(e,t,n,r){var i=n._idCounter++,a=" react-text: "+i+" ",u=" /react-text ";if(this._domID=i,this._nativeParent=t,e.useCreateElement){var c=n._ownerDocument,p=c.createComment(a),f=c.createComment(u),h=o(c.createDocumentFragment());return o.queueChild(h,o(p)),this._stringText&&o.queueChild(h,o(c.createTextNode(this._stringText))),o.queueChild(h,o(f)),s.precacheNode(this,p),this._closingComment=f,h}var d=l(this._stringText);return e.renderToStaticMarkup?d:"<!--"+a+"-->"+d+"<!--"+u+"-->"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getNativeNode();i.replaceDelimitedText(r[0],r[1],n)}}},getNativeNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?u(!1):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._nativeNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),a.measureMethods(c.prototype,"ReactDOMTextComponent",{mountComponent:"mountComponent",receiveComponent:"receiveComponent"}),t.exports=c},{"./DOMChildrenOperations":425,"./DOMLazyTree":426,"./ReactDOMComponentTree":456,"./ReactPerf":497,"./escapeTextContentForBrowser":530,"./validateDOMNesting":553,"fbjs/lib/invariant":569,"object-assign":580}],469:[function(e,t,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function i(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return u.asap(r,this),n}var o=e("object-assign"),s=e("./DOMPropertyOperations"),a=e("./LinkedValueUtils"),l=e("./ReactDOMComponentTree"),u=e("./ReactUpdates"),c=e("fbjs/lib/invariant"),p=(e("fbjs/lib/warning"),{getNativeProps:function(e,t){null!=t.dangerouslySetInnerHTML?c(!1):void 0;var n=o({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=t.defaultValue,r=t.children;null!=r&&(null!=n?c(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:c(!1),r=r[0]),n=""+r),null==n&&(n="");var o=a.getValue(t);e._wrapperState={initialValue:""+(null!=o?o:n),listeners:null,onChange:i.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=a.getValue(t);null!=n&&s.setValueForProperty(l.getNodeFromInstance(e),"value",""+n)}});t.exports=p},{"./DOMPropertyOperations":429,"./LinkedValueUtils":440,"./ReactDOMComponentTree":456,"./ReactUpdates":505,"fbjs/lib/invariant":569,"fbjs/lib/warning":579,"object-assign":580}],470:[function(e,t,n){"use strict";function r(e,t){"_nativeNode"in e?void 0:l(!1),"_nativeNode"in t?void 0:l(!1);for(var n=0,r=e;r;r=r._nativeParent)n++;for(var i=0,o=t;o;o=o._nativeParent)i++;for(;n-i>0;)e=e._nativeParent,n--;for(;i-n>0;)t=t._nativeParent,i--;for(var s=n;s--;){if(e===t)return e;e=e._nativeParent,t=t._nativeParent}return null}function i(e,t){"_nativeNode"in e?void 0:l(!1),"_nativeNode"in t?void 0:l(!1);for(;t;){if(t===e)return!0;t=t._nativeParent}return!1}function o(e){return"_nativeNode"in e?void 0:l(!1),e._nativeParent}function s(e,t,n){for(var r=[];e;)r.push(e),e=e._nativeParent;var i;for(i=r.length;i-- >0;)t(r[i],!1,n);for(i=0;i<r.length;i++)t(r[i],!0,n)}function a(e,t,n,i,o){for(var s=e&&t?r(e,t):null,a=[];e&&e!==s;)a.push(e),e=e._nativeParent;for(var l=[];t&&t!==s;)l.push(t),t=t._nativeParent;var u;for(u=0;u<a.length;u++)n(a[u],!0,i);for(u=l.length;u-- >0;)n(l[u],!1,o)}var l=e("fbjs/lib/invariant");t.exports={isAncestor:i,getLowestCommonAncestor:r,getParentInstance:o,traverseTwoPhase:s,traverseEnterLeave:a}},{"fbjs/lib/invariant":569}],471:[function(e,t,n){"use strict";var r,i=(e("./DOMProperty"),e("./EventPluginRegistry"),e("fbjs/lib/warning"),{onCreateMarkupForProperty:function(e,t){r(e)},onSetValueForProperty:function(e,t,n){r(t)},onDeleteValueForProperty:function(e,t){r(t)}});t.exports=i},{"./DOMProperty":428,"./EventPluginRegistry":435,"fbjs/lib/warning":579}],472:[function(e,t,n){"use strict";function r(e,t,n,r,i,o){}var i=e("./ReactInvalidSetStateWarningDevTool"),o=(e("fbjs/lib/warning"),[]),s={addDevtool:function(e){o.push(e)},removeDevtool:function(e){for(var t=0;t<o.length;t++)o[t]===e&&(o.splice(t,1),t--)},onBeginProcessingChildContext:function(){r("onBeginProcessingChildContext")},onEndProcessingChildContext:function(){r("onEndProcessingChildContext")},onSetState:function(){r("onSetState")},onMountRootComponent:function(e){r("onMountRootComponent",e)},onMountComponent:function(e){r("onMountComponent",e)},onUpdateComponent:function(e){r("onUpdateComponent",e)},onUnmountComponent:function(e){r("onUnmountComponent",e)}};s.addDevtool(i),t.exports=s},{"./ReactInvalidSetStateWarningDevTool":488,"fbjs/lib/warning":579}],473:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var i=e("object-assign"),o=e("./ReactUpdates"),s=e("./Transaction"),a=e("fbjs/lib/emptyFunction"),l={initialize:a,close:function(){f.isBatchingUpdates=!1}},u={initialize:a,close:o.flushBatchedUpdates.bind(o)},c=[u,l];i(r.prototype,s.Mixin,{getTransactionWrappers:function(){return c}});var p=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,i,o){var s=f.isBatchingUpdates;f.isBatchingUpdates=!0,s?e(t,n,r,i,o):p.perform(e,null,t,n,r,i,o)}};t.exports=f},{"./ReactUpdates":505,"./Transaction":523,"fbjs/lib/emptyFunction":561,"object-assign":580}],474:[function(e,t,n){"use strict";function r(){if(!E){E=!0,y.EventEmitter.injectReactEventListener(b),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginUtils.injectComponentTree(p),y.EventPluginUtils.injectTreeTraversal(h),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:T,EnterLeaveEventPlugin:a,ChangeEventPlugin:o,SelectEventPlugin:_,BeforeInputEventPlugin:i}),y.NativeComponent.injectGenericComponentClass(c),y.NativeComponent.injectTextComponentClass(d),y.DOMProperty.injectDOMPropertyConfig(l),y.DOMProperty.injectDOMPropertyConfig(g),y.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),y.Updates.injectReconcileTransaction(v),y.Updates.injectBatchingStrategy(m),y.Component.injectEnvironment(u)}}var i=e("./BeforeInputEventPlugin"),o=e("./ChangeEventPlugin"),s=e("./DefaultEventPluginOrder"),a=e("./EnterLeaveEventPlugin"),l=(e("fbjs/lib/ExecutionEnvironment"),e("./HTMLDOMPropertyConfig")),u=e("./ReactComponentBrowserEnvironment"),c=e("./ReactDOMComponent"),p=e("./ReactDOMComponentTree"),f=e("./ReactDOMEmptyComponent"),h=e("./ReactDOMTreeTraversal"),d=e("./ReactDOMTextComponent"),m=e("./ReactDefaultBatchingStrategy"),b=e("./ReactEventListener"),y=e("./ReactInjection"),v=e("./ReactReconcileTransaction"),g=e("./SVGDOMPropertyConfig"),_=e("./SelectEventPlugin"),T=e("./SimpleEventPlugin"),E=!1;t.exports={inject:r}},{"./BeforeInputEventPlugin":420,"./ChangeEventPlugin":424,"./DefaultEventPluginOrder":431,"./EnterLeaveEventPlugin":432,"./HTMLDOMPropertyConfig":439,"./ReactComponentBrowserEnvironment":448,"./ReactDOMComponent":454,"./ReactDOMComponentTree":456,"./ReactDOMEmptyComponent":459,"./ReactDOMTextComponent":468,"./ReactDOMTreeTraversal":470,"./ReactDefaultBatchingStrategy":473,"./ReactDefaultPerf":475,"./ReactEventListener":482,"./ReactInjection":484,"./ReactReconcileTransaction":501,"./SVGDOMPropertyConfig":507,"./SelectEventPlugin":508,"./SimpleEventPlugin":509,"fbjs/lib/ExecutionEnvironment":555}],475:[function(e,t,n){"use strict";function r(e){return Math.floor(100*e)/100}function i(e,t,n){e[t]=(e[t]||0)+n}function o(e){if(c||(c=new WeakMap),c.has(e))return c.get(e);var t=y++;return c.set(e,t),t}function s(e){return e.hasOwnProperty("_rootNodeID")?e._rootNodeID:o(e)}function a(e,t){if("object"!=typeof t||Array.isArray(t)||null==t)return t;var n=Object.getPrototypeOf(t);return n&&n!==Object.prototype?"<not serializable>":t}function l(e){return{__unstable_this_format_will_change:e}}function u(e){return e&&e.__unstable_this_format_will_change||e}var c,p=e("./DOMProperty"),f=e("./ReactDOMComponentTree"),h=e("./ReactDefaultPerfAnalysis"),d=e("./ReactMount"),m=e("./ReactPerf"),b=e("fbjs/lib/performanceNow"),y=(e("fbjs/lib/warning"),17e3),v=!1,g=!1,_={_allMeasurements:[],_mountStack:[0],_compositeStack:[],_injected:!1,start:function(){_._injected||m.injection.injectMeasure(_.measure),_._allMeasurements.length=0,m.enableMeasure=!0},stop:function(){m.enableMeasure=!1},getLastMeasurements:function(){return l(_._allMeasurements)},printExclusive:function(e){e=u(e||_._allMeasurements);var t=h.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":r(e.inclusive),"Exclusive mount time (ms)":r(e.exclusive),"Exclusive render time (ms)":r(e.render),"Mount time per instance (ms)":r(e.exclusive/e.count),"Render time per instance (ms)":r(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=u(e||_._allMeasurements);var t=h.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":r(e.time),Instances:e.count}})),console.log("Total time:",h.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){return g=!0,_.getWasted(e)},getWasted:function(e){e=u(e);var t=h.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=u(e||_._allMeasurements),console.table(_.getWasted(e)),console.log("Total time:",h.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){return v=!0,_.printOperations(e)},printOperations:function(e){e=u(e||_._allMeasurements);var t=h.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[p.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args,a),t})),console.log("Total time:",h.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,r){var i=_._allMeasurements[_._allMeasurements.length-1],o=i.writes;o[e]=o[e]||[],o[e].push({type:t,time:n,args:r})},measure:function(e,t,n){return function(){for(var r=arguments.length,a=Array(r),l=0;r>l;l++)a[l]=arguments[l];var u,c,p,h=_._allMeasurements[_._allMeasurements.length-1];if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return _._allMeasurements.push(h={exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},hierarchy:{},totalTime:0,created:{}
|
||
}),p=b(),c=n.apply(this,a),h.totalTime=b()-p,c;if("_mountImageIntoNode"===t||"ReactDOMIDOperations"===e||"CSSPropertyOperations"===e||"DOMChildrenOperations"===e||"DOMPropertyOperations"===e||"ReactComponentBrowserEnvironment"===e){if(p=b(),c=n.apply(this,a),u=b()-p,"_mountImageIntoNode"===t)_._recordWrite("",t,u,a[0]);else if("dangerouslyProcessChildrenUpdates"===t)a[1].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.content&&(t.content=e.content),_._recordWrite(a[0]._rootNodeID,e.type,u,t)});else{var m=a[0];"EventPluginHub"===e?m=m._rootNodeID:"replaceNodeWithMarkup"===t?m=f.getInstanceFromNode(a[1].node)._rootNodeID:"replaceDelimitedText"===t?m=s(f.getInstanceFromNode(a[0])):"object"==typeof m&&(m=s(f.getInstanceFromNode(a[0]))),_._recordWrite(m,t,u,Array.prototype.slice.call(a,1))}return c}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return"ReactDOMComponent"!==e&&"ReactDOMTextComponent"!==e||"mountComponent"!==t&&"receiveComponent"!==t?n.apply(this,a):(c=n.apply(this,a),h.hierarchy[s(this)]=_._compositeStack.slice(),c);if(this._currentElement.type===d.TopLevelWrapper)return n.apply(this,a);var y=o(this),v="_renderValidatedComponent"===t,g="mountComponent"===t,T=_._mountStack;if(v?i(h.counts,y,1):g&&(h.created[y]=!0,T.push(0)),_._compositeStack.push(y),p=b(),c=n.apply(this,a),u=b()-p,_._compositeStack.pop(),v)i(h.render,y,u);else if(g){var E=T.pop();T[T.length-1]+=u,i(h.exclusive,y,u-E),i(h.inclusive,y,u)}else i(h.inclusive,y,u);return h.displayNames[y]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},c}}};t.exports=_},{"./DOMProperty":428,"./ReactDOMComponentTree":456,"./ReactDefaultPerfAnalysis":476,"./ReactMount":490,"./ReactPerf":497,"fbjs/lib/performanceNow":577,"fbjs/lib/warning":579}],476:[function(e,t,n){"use strict";function r(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function i(e){var t=[];return e.forEach(function(e){Object.keys(e.writes).forEach(function(n){e.writes[n].forEach(function(e){t.push({id:n,type:c[e.type]||e.type,args:e.args})})})}),t}function o(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r],o=l({},i.exclusive,i.inclusive);for(var s in o)t=i.displayNames[s].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},i.render[s]&&(n[t].render+=i.render[s]),i.exclusive[s]&&(n[t].exclusive+=i.exclusive[s]),i.inclusive[s]&&(n[t].inclusive+=i.inclusive[s]),i.counts[s]&&(n[t].count+=i.counts[s])}var a=[];for(t in n)n[t].exclusive>=u&&a.push(n[t]);return a.sort(function(e,t){return t.exclusive-e.exclusive}),a}function s(e,t){for(var n,r={},i=0;i<e.length;i++){var o,s=e[i],c=l({},s.exclusive,s.inclusive);t&&(o=a(s));for(var p in c)if(!t||o[p]){var f=s.displayNames[p];n=f.owner+" > "+f.current,r[n]=r[n]||{componentName:n,time:0,count:0},s.inclusive[p]&&(r[n].time+=s.inclusive[p]),s.counts[p]&&(r[n].count+=s.counts[p])}}var h=[];for(n in r)r[n].time>=u&&h.push(r[n]);return h.sort(function(e,t){return t.time-e.time}),h}function a(e){var t={},n=e.writes,r={};Object.keys(n).forEach(function(t){n[t].forEach(function(n){""!==t&&e.hierarchy[t].forEach(function(e){return r[e]=!0})})});var i=l({},e.exclusive,e.inclusive);for(var o in i){var s=!1;r[o]&&(s=!0),e.created[o]&&(s=!0),!s&&e.counts[o]>0&&(t[o]=!0)}return t}var l=e("object-assign"),u=1.2,c={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",SET_MARKUP:"set innerHTML",TEXT_CONTENT:"set textContent",setValueForProperty:"update attribute",setValueForAttribute:"update attribute",deleteValueForProperty:"remove attribute",setValueForStyles:"update styles",replaceNodeWithMarkup:"replace",replaceDelimitedText:"replace"},p={getExclusiveSummary:o,getInclusiveSummary:s,getDOMSummary:i,getTotalTime:r};t.exports=p},{"object-assign":580}],477:[function(e,t,n){"use strict";var r=e("object-assign"),i=e("./ReactCurrentOwner"),o=(e("fbjs/lib/warning"),e("./canDefineProperty"),"function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103),s={key:!0,ref:!0,__self:!0,__source:!0},a=function(e,t,n,r,i,s,a){var l={$$typeof:o,type:e,key:t,ref:n,props:a,_owner:s};return l};a.createElement=function(e,t,n){var r,o={},l=null,u=null,c=null,p=null;if(null!=t){u=void 0===t.ref?null:t.ref,l=void 0===t.key?null:""+t.key,c=void 0===t.__self?null:t.__self,p=void 0===t.__source?null:t.__source;for(r in t)t.hasOwnProperty(r)&&!s.hasOwnProperty(r)&&(o[r]=t[r])}var f=arguments.length-2;if(1===f)o.children=n;else if(f>1){for(var h=Array(f),d=0;f>d;d++)h[d]=arguments[d+2];o.children=h}if(e&&e.defaultProps){var m=e.defaultProps;for(r in m)void 0===o[r]&&(o[r]=m[r])}return a(e,l,u,c,p,i.current,o)},a.createFactory=function(e){var t=a.createElement.bind(null,e);return t.type=e,t},a.cloneAndReplaceKey=function(e,t){var n=a(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},a.cloneElement=function(e,t,n){var o,l=r({},e.props),u=e.key,c=e.ref,p=e._self,f=e._source,h=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,h=i.current),void 0!==t.key&&(u=""+t.key);var d;e.type&&e.type.defaultProps&&(d=e.type.defaultProps);for(o in t)t.hasOwnProperty(o)&&!s.hasOwnProperty(o)&&(void 0===t[o]&&void 0!==d?l[o]=d[o]:l[o]=t[o])}var m=arguments.length-2;if(1===m)l.children=n;else if(m>1){for(var b=Array(m),y=0;m>y;y++)b[y]=arguments[y+2];l.children=b}return a(e.type,u,c,p,f,h,l)},a.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.exports=a},{"./ReactCurrentOwner":451,"./canDefineProperty":527,"fbjs/lib/warning":579,"object-assign":580}],478:[function(e,t,n){"use strict";function r(){if(p.current){var e=p.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;o("uniqueKey",e,t)}}function o(e,t,n){var i=r();if(!i){var o="string"==typeof n?n:n.displayName||n.name;o&&(i=" Check the top-level render call using <"+o+">.")}var s=d[e]||(d[e]={});if(s[i])return null;s[i]=!0;var a={parentOrOwner:i,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==p.current&&(a.childOwner=" It was passed a child from "+t._owner.getName()+"."),a}function s(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];u.isValidElement(r)&&i(r,t)}else if(u.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var o=f(e);if(o&&o!==e.entries)for(var s,a=o.call(e);!(s=a.next()).done;)u.isValidElement(s.value)&&i(s.value,t)}}function a(e,t,n,i){for(var o in t)if(t.hasOwnProperty(o)){var s;try{"function"!=typeof t[o]?h(!1):void 0,s=t[o](n,o,e,i)}catch(a){s=a}if(s instanceof Error&&!(s.message in m)){m[s.message]=!0;r()}}}function l(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name;t.propTypes&&a(n,t.propTypes,e.props,c.prop),"function"==typeof t.getDefaultProps}}var u=e("./ReactElement"),c=e("./ReactPropTypeLocations"),p=(e("./ReactPropTypeLocationNames"),e("./ReactCurrentOwner")),f=(e("./canDefineProperty"),e("./getIteratorFn")),h=e("fbjs/lib/invariant"),d=(e("fbjs/lib/warning"),{}),m={},b={createElement:function(e,t,n){var r="string"==typeof e||"function"==typeof e,i=u.createElement.apply(this,arguments);if(null==i)return i;if(r)for(var o=2;o<arguments.length;o++)s(arguments[o],e);return l(i),i},createFactory:function(e){var t=b.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var r=u.cloneElement.apply(this,arguments),i=2;i<arguments.length;i++)s(arguments[i],r.type);return l(r),r}};t.exports=b},{"./ReactCurrentOwner":451,"./ReactElement":477,"./ReactPropTypeLocationNames":498,"./ReactPropTypeLocations":499,"./canDefineProperty":527,"./getIteratorFn":538,"fbjs/lib/invariant":569,"fbjs/lib/warning":579}],479:[function(e,t,n){"use strict";var r,i={injectEmptyComponentFactory:function(e){r=e}},o={create:function(e){return r(e)}};o.injection=i,t.exports=o},{}],480:[function(e,t,n){"use strict";function r(e,t,n,r){try{return t(n,r)}catch(o){return void(null===i&&(i=o))}}var i=null,o={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(i){var e=i;throw i=null,e}}};t.exports=o},{}],481:[function(e,t,n){"use strict";function r(e){i.enqueueEvents(e),i.processEventQueue(!1)}var i=e("./EventPluginHub"),o={handleTopLevel:function(e,t,n,o){var s=i.extractEvents(e,t,n,o);r(s)}};t.exports=o},{"./EventPluginHub":434}],482:[function(e,t,n){"use strict";function r(e){for(;e._nativeParent;)e=e._nativeParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function i(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function o(e){var t=h(e.nativeEvent),n=p.getClosestInstanceFromNode(t),i=n;do e.ancestors.push(i),i=i&&r(i);while(i);for(var o=0;o<e.ancestors.length;o++)n=e.ancestors[o],m._handleTopLevel(e.topLevelType,n,e.nativeEvent,h(e.nativeEvent))}function s(e){var t=d(window);e(t)}var a=e("object-assign"),l=e("fbjs/lib/EventListener"),u=e("fbjs/lib/ExecutionEnvironment"),c=e("./PooledClass"),p=e("./ReactDOMComponentTree"),f=e("./ReactUpdates"),h=e("./getEventTarget"),d=e("fbjs/lib/getUnboundedScrollPosition");a(i.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(i,c.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){m._handleTopLevel=e},setEnabled:function(e){m._enabled=!!e},isEnabled:function(){return m._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?l.listen(r,t,m.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?l.capture(r,t,m.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=s.bind(null,e);l.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(m._enabled){var n=i.getPooled(e,t);try{f.batchedUpdates(o,n)}finally{i.release(n)}}}};t.exports=m},{"./PooledClass":441,"./ReactDOMComponentTree":456,"./ReactUpdates":505,"./getEventTarget":537,"fbjs/lib/EventListener":554,"fbjs/lib/ExecutionEnvironment":555,"fbjs/lib/getUnboundedScrollPosition":566,"object-assign":580}],483:[function(e,t,n){"use strict";var r={logTopLevelRenders:!1};t.exports=r},{}],484:[function(e,t,n){"use strict";var r=e("./DOMProperty"),i=e("./EventPluginHub"),o=e("./EventPluginUtils"),s=e("./ReactComponentEnvironment"),a=e("./ReactClass"),l=e("./ReactEmptyComponent"),u=e("./ReactBrowserEventEmitter"),c=e("./ReactNativeComponent"),p=e("./ReactPerf"),f=e("./ReactUpdates"),h={Component:s.injection,Class:a.injection,DOMProperty:r.injection,EmptyComponent:l.injection,EventPluginHub:i.injection,EventPluginUtils:o.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:p.injection,Updates:f.injection};t.exports=h},{"./DOMProperty":428,"./EventPluginHub":434,"./EventPluginUtils":436,"./ReactBrowserEventEmitter":443,"./ReactClass":446,"./ReactComponentEnvironment":449,"./ReactEmptyComponent":479,"./ReactNativeComponent":493,"./ReactPerf":497,"./ReactUpdates":505}],485:[function(e,t,n){"use strict";function r(e){return o(document.documentElement,e)}var i=e("./ReactDOMSelection"),o=e("fbjs/lib/containsNode"),s=e("fbjs/lib/focusNode"),a=e("fbjs/lib/getActiveElement"),l={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=a();return{focusedElem:e,selectionRange:l.hasSelectionCapabilities(e)?l.getSelection(e):null}},restoreSelection:function(e){var t=a(),n=e.focusedElem,i=e.selectionRange;t!==n&&r(n)&&(l.hasSelectionCapabilities(n)&&l.setSelection(n,i),s(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){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=i.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if(void 0===r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var o=e.createTextRange();o.collapse(!0),o.moveStart("character",n),o.moveEnd("character",r-n),o.select()}else i.setOffsets(e,t)}};t.exports=l},{"./ReactDOMSelection":467,"fbjs/lib/containsNode":558,"fbjs/lib/focusNode":563,"fbjs/lib/getActiveElement":564}],486:[function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=r},{}],487:[function(e,t,n){"use strict";var r=e("./ReactDebugTool");t.exports={debugTool:r}},{"./ReactDebugTool":472}],488:[function(e,t,n){"use strict";var r,i,o=(e("fbjs/lib/warning"),{onBeginProcessingChildContext:function(){r=!0},onEndProcessingChildContext:function(){r=!1},onSetState:function(){i()}});t.exports=o},{"fbjs/lib/warning":579}],489:[function(e,t,n){"use strict";var r=e("./adler32"),i=/\/?>/,o=/^<\!\-\-/,s={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return o.test(e)?e:e.replace(i," "+s.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(s.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(e);return i===n}};t.exports=s},{"./adler32":526}],490:[function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function i(e){return e?e.nodeType===I?e.documentElement:e.firstChild:null}function o(e){return e.getAttribute&&e.getAttribute(A)||""}function s(e,t,n,r,i){var o;if(g.logTopLevelRenders){var s=e._currentElement.props,a=s.type;o="React mount: "+("string"==typeof a?a:a.displayName||a.name),console.time(o)}var l=E.mountComponent(e,n,null,b(e,t),i);o&&console.timeEnd(o),e._renderedComponent._topLevelWrapper=e,U._mountImageIntoNode(l,t,e,r,n)}function a(e,t,n,r){var i=w.ReactReconcileTransaction.getPooled(!n&&y.useCreateElement);i.perform(s,null,e,t,i,n,r),w.ReactReconcileTransaction.release(i)}function l(e,t,n){for(E.unmountComponent(e,n),t.nodeType===I&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function u(e){var t=i(e);if(t){var n=m.getInstanceFromNode(t);return!(!n||!n._nativeParent)}}function c(e){var t=i(e),n=t&&m.getInstanceFromNode(t);return n&&!n._nativeParent?n:null}function p(e){var t=c(e);return t?t._nativeContainerInfo._topLevelWrapper:null}var f=e("./DOMLazyTree"),h=e("./DOMProperty"),d=e("./ReactBrowserEventEmitter"),m=(e("./ReactCurrentOwner"),e("./ReactDOMComponentTree")),b=e("./ReactDOMContainerInfo"),y=e("./ReactDOMFeatureFlags"),v=e("./ReactElement"),g=e("./ReactFeatureFlags"),_=(e("./ReactInstrumentation"),e("./ReactMarkupChecksum")),T=e("./ReactPerf"),E=e("./ReactReconciler"),C=e("./ReactUpdateQueue"),w=e("./ReactUpdates"),S=e("fbjs/lib/emptyObject"),P=e("./instantiateReactComponent"),x=e("fbjs/lib/invariant"),k=e("./setInnerHTML"),M=e("./shouldUpdateReactComponent"),A=(e("fbjs/lib/warning"),h.ID_ATTRIBUTE_NAME),O=h.ROOT_ATTRIBUTE_NAME,N=1,I=9,D=11,R={},L=1,j=function(){this.rootID=L++};j.prototype.isReactComponent={},j.prototype.render=function(){return this.props};var U={TopLevelWrapper:j,_instancesByReactRootID:R,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return U.scrollMonitor(n,function(){C.enqueueElementInternal(e,t),r&&C.enqueueCallbackInternal(e,r)}),e},_renderNewRootComponent:function(e,t,n,r){!t||t.nodeType!==N&&t.nodeType!==I&&t.nodeType!==D?x(!1):void 0,d.ensureScrollValueMonitoring();var i=P(e);w.batchedUpdates(a,i,t,n,r);var o=i._instance.rootID;return R[o]=i,i},renderSubtreeIntoContainer:function(e,t,n,r){return null==e||null==e._reactInternalInstance?x(!1):void 0,U._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){C.validateCallback(r,"ReactDOM.render"),v.isValidElement(t)?void 0:x(!1);var s=v(j,null,null,null,null,null,t),a=p(n);if(a){var l=a._currentElement,c=l.props;if(M(c,t)){var f=a._renderedComponent.getPublicInstance(),h=r&&function(){r.call(f)};return U._updateRootComponent(a,s,n,h),f}U.unmountComponentAtNode(n)}var d=i(n),m=d&&!!o(d),b=u(n),y=m&&!a&&!b,g=U._renderNewRootComponent(s,n,y,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):S)._renderedComponent.getPublicInstance();return r&&r.call(g),g},render:function(e,t,n){return U._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){!e||e.nodeType!==N&&e.nodeType!==I&&e.nodeType!==D?x(!1):void 0;var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete R[t._instance.rootID],w.batchedUpdates(l,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,o,s){if(!t||t.nodeType!==N&&t.nodeType!==I&&t.nodeType!==D?x(!1):void 0,o){var a=i(t);if(_.canReuseMarkup(e,a))return void m.precacheNode(n,a);var l=a.getAttribute(_.CHECKSUM_ATTR_NAME);a.removeAttribute(_.CHECKSUM_ATTR_NAME);var u=a.outerHTML;a.setAttribute(_.CHECKSUM_ATTR_NAME,l);var c=e,p=r(c,u);" (client) "+c.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===I?x(!1):void 0}if(t.nodeType===I?x(!1):void 0,s.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);f.insertTreeBefore(t,e,null)}else k(t,e),m.precacheNode(n,t.firstChild)}};T.measureMethods(U,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),t.exports=U},{"./DOMLazyTree":426,"./DOMProperty":428,"./ReactBrowserEventEmitter":443,"./ReactCurrentOwner":451,"./ReactDOMComponentTree":456,"./ReactDOMContainerInfo":457,"./ReactDOMFeatureFlags":461,"./ReactElement":477,"./ReactFeatureFlags":483,"./ReactInstrumentation":487,"./ReactMarkupChecksum":489,"./ReactPerf":497,"./ReactReconciler":502,"./ReactUpdateQueue":504,"./ReactUpdates":505,"./instantiateReactComponent":543,"./setInnerHTML":549,"./shouldUpdateReactComponent":551,"fbjs/lib/emptyObject":562,"fbjs/lib/invariant":569,"fbjs/lib/warning":579}],491:[function(e,t,n){"use strict";function r(e,t,n){return{type:p.INSERT_MARKUP,content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function i(e,t,n){return{type:p.MOVE_EXISTING,content:null,fromIndex:e._mountIndex,fromNode:f.getNativeNode(e),toIndex:n,afterNode:t}}function o(e,t){return{type:p.REMOVE_NODE,content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function s(e){return{type:p.SET_MARKUP,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function a(e){return{type:p.TEXT_CONTENT,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){c.processChildrenUpdates(e,t)}var c=e("./ReactComponentEnvironment"),p=e("./ReactMultiChildUpdateTypes"),f=(e("./ReactCurrentOwner"),e("./ReactReconciler")),h=e("./ReactChildReconciler"),d=e("./flattenChildren"),m=e("fbjs/lib/invariant"),b={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return h.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,i){var o;return o=d(t),h.updateChildren(e,o,n,r,i),o},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var i=[],o=0;for(var s in r)if(r.hasOwnProperty(s)){var a=r[s],l=f.mountComponent(a,t,this,this._nativeContainerInfo,n);a._mountIndex=o++,i.push(l)}return i},updateTextContent:function(e){var t=this._renderedChildren;h.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&m(!1);var r=[a(e)];u(this,r)},updateMarkup:function(e){var t=this._renderedChildren;h.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&m(!1);var r=[s(e)];u(this,r)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,i={},o=this._reconcilerUpdateChildren(r,e,i,t,n);if(o||r){var s,a=null,c=0,p=0,h=null;for(s in o)if(o.hasOwnProperty(s)){var d=r&&r[s],m=o[s];d===m?(a=l(a,this.moveChild(d,h,p,c)),c=Math.max(d._mountIndex,c),d._mountIndex=p):(d&&(c=Math.max(d._mountIndex,c)),a=l(a,this._mountChildAtIndex(m,h,p,t,n))),p++,h=f.getNativeNode(m)}for(s in i)i.hasOwnProperty(s)&&(a=l(a,this._unmountChild(r[s],i[s])));a&&u(this,a),this._renderedChildren=o}},unmountChildren:function(e){var t=this._renderedChildren;h.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){return e._mountIndex<r?i(e,t,n):void 0},createChild:function(e,t,n){return r(n,t,e._mountIndex)},removeChild:function(e,t){return o(e,t)},_mountChildAtIndex:function(e,t,n,r,i){var o=f.mountComponent(e,r,this,this._nativeContainerInfo,i);return e._mountIndex=n,this.createChild(e,t,o)},_unmountChild:function(e,t){var n=this.removeChild(e,t);return e._mountIndex=null,n}}};t.exports=b},{"./ReactChildReconciler":444,"./ReactComponentEnvironment":449,"./ReactCurrentOwner":451,"./ReactMultiChildUpdateTypes":492,"./ReactReconciler":502,"./flattenChildren":532,"fbjs/lib/invariant":569}],492:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),i=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});t.exports=i},{"fbjs/lib/keyMirror":572}],493:[function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=p[t];return null==n&&(p[t]=n=u(t)),n}function i(e){return c?void 0:l(!1),new c(e)}function o(e){return new f(e)}function s(e){return e instanceof f}var a=e("object-assign"),l=e("fbjs/lib/invariant"),u=null,c=null,p={},f=null,h={injectGenericComponentClass:function(e){c=e},injectTextComponentClass:function(e){f=e},injectComponentClasses:function(e){a(p,e)}},d={getComponentClassForElement:r,createInternalComponent:i,createInstanceForText:o,isTextComponent:s,injection:h};t.exports=d},{"fbjs/lib/invariant":569,"object-assign":580}],494:[function(e,t,n){"use strict";var r=e("./ReactElement"),i=e("fbjs/lib/invariant"),o={NATIVE:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?o.EMPTY:r.isValidElement(e)?"function"==typeof e.type?o.COMPOSITE:o.NATIVE:void i(!1)}};t.exports=o},{"./ReactElement":477,"fbjs/lib/invariant":569}],495:[function(e,t,n){"use strict";function r(e,t){}var i=(e("fbjs/lib/warning"),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}});t.exports=i},{"fbjs/lib/warning":579}],496:[function(e,t,n){"use strict";var r=e("fbjs/lib/invariant"),i={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){i.isValidOwner(n)?void 0:r(!1),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){i.isValidOwner(n)?void 0:r(!1);var o=n.getPublicInstance();o&&o.refs[t]===e.getPublicInstance()&&n.detachRef(t)}};t.exports=i},{"fbjs/lib/invariant":569}],497:[function(e,t,n){"use strict";function r(e,t,n){return n}var i={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){i.storedMeasure=e}}};t.exports=i},{}],498:[function(e,t,n){"use strict";var r={};t.exports=r},{}],499:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),i=r({prop:null,context:null,childContext:null});t.exports=i},{"fbjs/lib/keyMirror":572}],500:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function i(e){function t(t,n,r,i,o,s){if(i=i||C,s=s||r,null==n[r]){var a=_[o];return t?new Error("Required "+a+" `"+s+"` was not specified in "+("`"+i+"`.")):null}return e(n,r,i,o,s)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,i,o){var s=t[n],a=b(s);if(a!==e){var l=_[i],u=y(s);return new Error("Invalid "+l+" `"+o+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return i(t)}function s(){return i(T.thatReturns(null))}function a(e){function t(t,n,r,i,o){if("function"!=typeof e)return new Error("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var a=_[i],l=b(s);return new Error("Invalid "+a+" `"+o+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u<s.length;u++){var c=e(s,u,r,i,o+"["+u+"]");if(c instanceof Error)return c}return null}return i(t)}function l(){function e(e,t,n,r,i){if(!g.isValidElement(e[t])){var o=_[r];return new Error("Invalid "+o+" `"+i+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return i(e)}function u(e){function t(t,n,r,i,o){if(!(t[n]instanceof e)){var s=_[i],a=e.name||C,l=v(t[n]);return new Error("Invalid "+s+" `"+o+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return i(t)}function c(e){function t(t,n,i,o,s){for(var a=t[n],l=0;l<e.length;l++)if(r(a,e[l]))return null;var u=_[o],c=JSON.stringify(e);return new Error("Invalid "+u+" `"+s+"` of value `"+a+"` "+("supplied to `"+i+"`, expected one of "+c+"."))}return i(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function p(e){function t(t,n,r,i,o){if("function"!=typeof e)return new Error("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],a=b(s);if("object"!==a){var l=_[i];return new Error("Invalid "+l+" `"+o+"` of type "+("`"+a+"` supplied to `"+r+"`, expected an object."))}for(var u in s)if(s.hasOwnProperty(u)){var c=e(s,u,r,i,o+"."+u);if(c instanceof Error)return c}return null}return i(t)}function f(e){function t(t,n,r,i,o){for(var s=0;s<e.length;s++){var a=e[s];if(null==a(t,n,r,i,o))return null}var l=_[i];return new Error("Invalid "+l+" `"+o+"` supplied to "+("`"+r+"`."))}return i(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function h(){function e(e,t,n,r,i){if(!m(e[t])){var o=_[r];return new Error("Invalid "+o+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return i(e)}function d(e){function t(t,n,r,i,o){var s=t[n],a=b(s);if("object"!==a){var l=_[i];return new Error("Invalid "+l+" `"+o+"` of type `"+a+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var c=e[u];if(c){var p=c(s,u,r,i,o+"."+u);if(p)return p}}return null}return i(t)}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||g.isValidElement(e))return!0;var t=E(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function y(e){var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){return e.constructor&&e.constructor.name?e.constructor.name:C}var g=e("./ReactElement"),_=e("./ReactPropTypeLocationNames"),T=e("fbjs/lib/emptyFunction"),E=e("./getIteratorFn"),C="<<anonymous>>",w={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:s(),arrayOf:a,element:l(),instanceOf:u,node:h(),objectOf:p,oneOf:c,oneOfType:f,shape:d};t.exports=w},{"./ReactElement":477,"./ReactPropTypeLocationNames":498,"./getIteratorFn":538,"fbjs/lib/emptyFunction":561}],501:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=e}var i=e("object-assign"),o=e("./CallbackQueue"),s=e("./PooledClass"),a=e("./ReactBrowserEventEmitter"),l=e("./ReactInputSelection"),u=e("./Transaction"),c={initialize:l.getSelectionInformation,close:l.restoreSelection},p={initialize:function(){var e=a.isEnabled();return a.setEnabled(!1),e},close:function(e){a.setEnabled(e)}},f={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[c,p,f],d={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};i(r.prototype,u.Mixin,d),s.addPoolingTo(r),t.exports=r},{"./CallbackQueue":423,"./PooledClass":441,"./ReactBrowserEventEmitter":443,"./ReactInputSelection":485,"./Transaction":523,"object-assign":580}],502:[function(e,t,n){"use strict";function r(){i.attachRefs(this,this._currentElement)}var i=e("./ReactRef"),o=(e("./ReactInstrumentation"),{mountComponent:function(e,t,n,i,o){var s=e.mountComponent(t,n,i,o);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),s},getNativeNode:function(e){return e.getNativeNode()},unmountComponent:function(e,t){i.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,o){var s=e._currentElement;if(t!==s||o!==e._context){var a=i.shouldUpdateRefs(s,t);a&&i.detachRefs(e,s),e.receiveComponent(t,n,o),a&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}});t.exports=o},{"./ReactInstrumentation":487,"./ReactRef":503}],503:[function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):o.addComponentAsRefTo(t,e,n)}function i(e,t,n){"function"==typeof e?e(null):o.removeComponentAsRefFrom(t,e,n)}var o=e("./ReactOwner"),s={};s.attachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&r(n,e,t._owner)}},s.shouldUpdateRefs=function(e,t){var n=null===e||e===!1,r=null===t||t===!1;return n||r||t._owner!==e._owner||t.ref!==e.ref},s.detachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&i(n,e,t._owner)}},t.exports=s},{"./ReactOwner":496}],504:[function(e,t,n){"use strict";function r(e){s.enqueueUpdate(e)}function i(e,t){var n=o.get(e);return n?n:null}var o=(e("./ReactCurrentOwner"),e("./ReactInstanceMap")),s=e("./ReactUpdates"),a=e("fbjs/lib/invariant"),l=(e("fbjs/lib/warning"),{isMounted:function(e){var t=o.get(e);return t?!!t._renderedComponent:!1},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var o=i(e);return o?(o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],void r(o)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(t),r(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?a(!1):void 0}});t.exports=l},{"./ReactCurrentOwner":451,"./ReactInstanceMap":486,"./ReactUpdates":505,"fbjs/lib/invariant":569,"fbjs/lib/warning":579}],505:[function(e,t,n){"use strict";function r(){x.ReactReconcileTransaction&&T?void 0:y(!1)}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=p.getPooled(),this.reconcileTransaction=x.ReactReconcileTransaction.getPooled(!0)}function o(e,t,n,i,o,s){r(),T.batchedUpdates(e,t,n,i,o,s)}function s(e,t){
|
||
return e._mountOrder-t._mountOrder}function a(e){var t=e.dirtyComponentsLength;t!==v.length?y(!1):void 0,v.sort(s);for(var n=0;t>n;n++){var r=v[n],i=r._pendingCallbacks;r._pendingCallbacks=null;var o;if(h.logTopLevelRenders){var a=r;r._currentElement.props===r._renderedComponent._currentElement&&(a=r._renderedComponent),o="React update: "+a.getName(),console.time(o)}if(m.performUpdateIfNecessary(r,e.reconcileTransaction),o&&console.timeEnd(o),i)for(var l=0;l<i.length;l++)e.callbackQueue.enqueue(i[l],r.getPublicInstance())}}function l(e){return r(),T.isBatchingUpdates?void v.push(e):void T.batchedUpdates(l,e)}function u(e,t){T.isBatchingUpdates?void 0:y(!1),g.enqueue(e,t),_=!0}var c=e("object-assign"),p=e("./CallbackQueue"),f=e("./PooledClass"),h=e("./ReactFeatureFlags"),d=e("./ReactPerf"),m=e("./ReactReconciler"),b=e("./Transaction"),y=e("fbjs/lib/invariant"),v=[],g=p.getPooled(),_=!1,T=null,E={initialize:function(){this.dirtyComponentsLength=v.length},close:function(){this.dirtyComponentsLength!==v.length?(v.splice(0,this.dirtyComponentsLength),S()):v.length=0}},C={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},w=[E,C];c(i.prototype,b.Mixin,{getTransactionWrappers:function(){return w},destructor:function(){this.dirtyComponentsLength=null,p.release(this.callbackQueue),this.callbackQueue=null,x.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return b.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),f.addPoolingTo(i);var S=function(){for(;v.length||_;){if(v.length){var e=i.getPooled();e.perform(a,null,e),i.release(e)}if(_){_=!1;var t=g;g=p.getPooled(),t.notifyAll(),p.release(t)}}};S=d.measure("ReactUpdates","flushBatchedUpdates",S);var P={injectReconcileTransaction:function(e){e?void 0:y(!1),x.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:y(!1),"function"!=typeof e.batchedUpdates?y(!1):void 0,"boolean"!=typeof e.isBatchingUpdates?y(!1):void 0,T=e}},x={ReactReconcileTransaction:null,batchedUpdates:o,enqueueUpdate:l,flushBatchedUpdates:S,injection:P,asap:u};t.exports=x},{"./CallbackQueue":423,"./PooledClass":441,"./ReactFeatureFlags":483,"./ReactPerf":497,"./ReactReconciler":502,"./Transaction":523,"fbjs/lib/invariant":569,"object-assign":580}],506:[function(e,t,n){"use strict";t.exports="15.0.1"},{}],507:[function(e,t,n){"use strict";var r={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},i={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering","in":0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},o={Properties:{},DOMAttributeNamespaces:{xlinkActuate:r.xlink,xlinkArcrole:r.xlink,xlinkHref:r.xlink,xlinkRole:r.xlink,xlinkShow:r.xlink,xlinkTitle:r.xlink,xlinkType:r.xlink,xmlBase:r.xml,xmlLang:r.xml,xmlSpace:r.xml},DOMAttributeNames:{}};Object.keys(i).map(function(e){o.Properties[e]=0,i[e]&&(o.DOMAttributeNames[e]=i[e])}),t.exports=o},{}],508:[function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&u.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 i(e,t){if(T||null==v||v!==p())return null;var n=r(v);if(!_||!d(_,n)){_=n;var i=c.getPooled(y.select,g,e,t);return i.type="select",i.target=v,s.accumulateTwoPhaseDispatches(i),i}return null}var o=e("./EventConstants"),s=e("./EventPropagators"),a=e("fbjs/lib/ExecutionEnvironment"),l=e("./ReactDOMComponentTree"),u=e("./ReactInputSelection"),c=e("./SyntheticEvent"),p=e("fbjs/lib/getActiveElement"),f=e("./isTextInputElement"),h=e("fbjs/lib/keyOf"),d=e("fbjs/lib/shallowEqual"),m=o.topLevelTypes,b=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,y={select:{phasedRegistrationNames:{bubbled:h({onSelect:null}),captured:h({onSelectCapture:null})},dependencies:[m.topBlur,m.topContextMenu,m.topFocus,m.topKeyDown,m.topMouseDown,m.topMouseUp,m.topSelectionChange]}},v=null,g=null,_=null,T=!1,E=!1,C=h({onSelect:null}),w={eventTypes:y,extractEvents:function(e,t,n,r){if(!E)return null;var o=t?l.getNodeFromInstance(t):window;switch(e){case m.topFocus:(f(o)||"true"===o.contentEditable)&&(v=o,g=t,_=null);break;case m.topBlur:v=null,g=null,_=null;break;case m.topMouseDown:T=!0;break;case m.topContextMenu:case m.topMouseUp:return T=!1,i(n,r);case m.topSelectionChange:if(b)break;case m.topKeyDown:case m.topKeyUp:return i(n,r)}return null},didPutListener:function(e,t,n){t===C&&(E=!0)}};t.exports=w},{"./EventConstants":433,"./EventPropagators":437,"./ReactDOMComponentTree":456,"./ReactInputSelection":485,"./SyntheticEvent":514,"./isTextInputElement":545,"fbjs/lib/ExecutionEnvironment":555,"fbjs/lib/getActiveElement":564,"fbjs/lib/keyOf":573,"fbjs/lib/shallowEqual":578}],509:[function(e,t,n){"use strict";var r=e("./EventConstants"),i=e("fbjs/lib/EventListener"),o=e("./EventPropagators"),s=e("./ReactDOMComponentTree"),a=e("./SyntheticAnimationEvent"),l=e("./SyntheticClipboardEvent"),u=e("./SyntheticEvent"),c=e("./SyntheticFocusEvent"),p=e("./SyntheticKeyboardEvent"),f=e("./SyntheticMouseEvent"),h=e("./SyntheticDragEvent"),d=e("./SyntheticTouchEvent"),m=e("./SyntheticTransitionEvent"),b=e("./SyntheticUIEvent"),y=e("./SyntheticWheelEvent"),v=e("fbjs/lib/emptyFunction"),g=e("./getEventCharCode"),_=e("fbjs/lib/invariant"),T=e("fbjs/lib/keyOf"),E=r.topLevelTypes,C={abort:{phasedRegistrationNames:{bubbled:T({onAbort:!0}),captured:T({onAbortCapture:!0})}},animationEnd:{phasedRegistrationNames:{bubbled:T({onAnimationEnd:!0}),captured:T({onAnimationEndCapture:!0})}},animationIteration:{phasedRegistrationNames:{bubbled:T({onAnimationIteration:!0}),captured:T({onAnimationIterationCapture:!0})}},animationStart:{phasedRegistrationNames:{bubbled:T({onAnimationStart:!0}),captured:T({onAnimationStartCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:T({onBlur:!0}),captured:T({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:T({onCanPlay:!0}),captured:T({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:T({onCanPlayThrough:!0}),captured:T({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:T({onClick:!0}),captured:T({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:T({onContextMenu:!0}),captured:T({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:T({onCopy:!0}),captured:T({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:T({onCut:!0}),captured:T({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:T({onDoubleClick:!0}),captured:T({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:T({onDrag:!0}),captured:T({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:T({onDragEnd:!0}),captured:T({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:T({onDragEnter:!0}),captured:T({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:T({onDragExit:!0}),captured:T({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:T({onDragLeave:!0}),captured:T({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:T({onDragOver:!0}),captured:T({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:T({onDragStart:!0}),captured:T({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:T({onDrop:!0}),captured:T({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:T({onDurationChange:!0}),captured:T({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:T({onEmptied:!0}),captured:T({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:T({onEncrypted:!0}),captured:T({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:T({onEnded:!0}),captured:T({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:T({onError:!0}),captured:T({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:T({onFocus:!0}),captured:T({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:T({onInput:!0}),captured:T({onInputCapture:!0})}},invalid:{phasedRegistrationNames:{bubbled:T({onInvalid:!0}),captured:T({onInvalidCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:T({onKeyDown:!0}),captured:T({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:T({onKeyPress:!0}),captured:T({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:T({onKeyUp:!0}),captured:T({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:T({onLoad:!0}),captured:T({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:T({onLoadedData:!0}),captured:T({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:T({onLoadedMetadata:!0}),captured:T({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:T({onLoadStart:!0}),captured:T({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:T({onMouseDown:!0}),captured:T({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:T({onMouseMove:!0}),captured:T({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:T({onMouseOut:!0}),captured:T({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:T({onMouseOver:!0}),captured:T({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:T({onMouseUp:!0}),captured:T({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:T({onPaste:!0}),captured:T({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:T({onPause:!0}),captured:T({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:T({onPlay:!0}),captured:T({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:T({onPlaying:!0}),captured:T({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:T({onProgress:!0}),captured:T({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:T({onRateChange:!0}),captured:T({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:T({onReset:!0}),captured:T({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:T({onScroll:!0}),captured:T({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:T({onSeeked:!0}),captured:T({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:T({onSeeking:!0}),captured:T({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:T({onStalled:!0}),captured:T({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:T({onSubmit:!0}),captured:T({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:T({onSuspend:!0}),captured:T({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:T({onTimeUpdate:!0}),captured:T({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:T({onTouchCancel:!0}),captured:T({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:T({onTouchEnd:!0}),captured:T({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:T({onTouchMove:!0}),captured:T({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:T({onTouchStart:!0}),captured:T({onTouchStartCapture:!0})}},transitionEnd:{phasedRegistrationNames:{bubbled:T({onTransitionEnd:!0}),captured:T({onTransitionEndCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:T({onVolumeChange:!0}),captured:T({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:T({onWaiting:!0}),captured:T({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:T({onWheel:!0}),captured:T({onWheelCapture:!0})}}},w={topAbort:C.abort,topAnimationEnd:C.animationEnd,topAnimationIteration:C.animationIteration,topAnimationStart:C.animationStart,topBlur:C.blur,topCanPlay:C.canPlay,topCanPlayThrough:C.canPlayThrough,topClick:C.click,topContextMenu:C.contextMenu,topCopy:C.copy,topCut:C.cut,topDoubleClick:C.doubleClick,topDrag:C.drag,topDragEnd:C.dragEnd,topDragEnter:C.dragEnter,topDragExit:C.dragExit,topDragLeave:C.dragLeave,topDragOver:C.dragOver,topDragStart:C.dragStart,topDrop:C.drop,topDurationChange:C.durationChange,topEmptied:C.emptied,topEncrypted:C.encrypted,topEnded:C.ended,topError:C.error,topFocus:C.focus,topInput:C.input,topInvalid:C.invalid,topKeyDown:C.keyDown,topKeyPress:C.keyPress,topKeyUp:C.keyUp,topLoad:C.load,topLoadedData:C.loadedData,topLoadedMetadata:C.loadedMetadata,topLoadStart:C.loadStart,topMouseDown:C.mouseDown,topMouseMove:C.mouseMove,topMouseOut:C.mouseOut,topMouseOver:C.mouseOver,topMouseUp:C.mouseUp,topPaste:C.paste,topPause:C.pause,topPlay:C.play,topPlaying:C.playing,topProgress:C.progress,topRateChange:C.rateChange,topReset:C.reset,topScroll:C.scroll,topSeeked:C.seeked,topSeeking:C.seeking,topStalled:C.stalled,topSubmit:C.submit,topSuspend:C.suspend,topTimeUpdate:C.timeUpdate,topTouchCancel:C.touchCancel,topTouchEnd:C.touchEnd,topTouchMove:C.touchMove,topTouchStart:C.touchStart,topTransitionEnd:C.transitionEnd,topVolumeChange:C.volumeChange,topWaiting:C.waiting,topWheel:C.wheel};for(var S in w)w[S].dependencies=[S];var P=T({onClick:null}),x={},k={eventTypes:C,extractEvents:function(e,t,n,r){var i=w[e];if(!i)return null;var s;switch(e){case E.topAbort:case E.topCanPlay:case E.topCanPlayThrough:case E.topDurationChange:case E.topEmptied:case E.topEncrypted:case E.topEnded:case E.topError:case E.topInput:case E.topInvalid:case E.topLoad:case E.topLoadedData:case E.topLoadedMetadata:case E.topLoadStart:case E.topPause:case E.topPlay:case E.topPlaying:case E.topProgress:case E.topRateChange:case E.topReset:case E.topSeeked:case E.topSeeking:case E.topStalled:case E.topSubmit:case E.topSuspend:case E.topTimeUpdate:case E.topVolumeChange:case E.topWaiting:s=u;break;case E.topKeyPress:if(0===g(n))return null;case E.topKeyDown:case E.topKeyUp:s=p;break;case E.topBlur:case E.topFocus:s=c;break;case E.topClick:if(2===n.button)return null;case E.topContextMenu:case E.topDoubleClick:case E.topMouseDown:case E.topMouseMove:case E.topMouseOut:case E.topMouseOver:case E.topMouseUp:s=f;break;case E.topDrag:case E.topDragEnd:case E.topDragEnter:case E.topDragExit:case E.topDragLeave:case E.topDragOver:case E.topDragStart:case E.topDrop:s=h;break;case E.topTouchCancel:case E.topTouchEnd:case E.topTouchMove:case E.topTouchStart:s=d;break;case E.topAnimationEnd:case E.topAnimationIteration:case E.topAnimationStart:s=a;break;case E.topTransitionEnd:s=m;break;case E.topScroll:s=b;break;case E.topWheel:s=y;break;case E.topCopy:case E.topCut:case E.topPaste:s=l}s?void 0:_(!1);var v=s.getPooled(i,t,n,r);return o.accumulateTwoPhaseDispatches(v),v},didPutListener:function(e,t,n){if(t===P){var r=e._rootNodeID,o=s.getNodeFromInstance(e);x[r]||(x[r]=i.listen(o,"click",v))}},willDeleteListener:function(e,t){if(t===P){var n=e._rootNodeID;x[n].remove(),delete x[n]}}};t.exports=k},{"./EventConstants":433,"./EventPropagators":437,"./ReactDOMComponentTree":456,"./SyntheticAnimationEvent":510,"./SyntheticClipboardEvent":511,"./SyntheticDragEvent":513,"./SyntheticEvent":514,"./SyntheticFocusEvent":515,"./SyntheticKeyboardEvent":517,"./SyntheticMouseEvent":518,"./SyntheticTouchEvent":519,"./SyntheticTransitionEvent":520,"./SyntheticUIEvent":521,"./SyntheticWheelEvent":522,"./getEventCharCode":534,"fbjs/lib/EventListener":554,"fbjs/lib/emptyFunction":561,"fbjs/lib/invariant":569,"fbjs/lib/keyOf":573}],510:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticEvent"),o={animationName:null,elapsedTime:null,pseudoElement:null};i.augmentClass(r,o),t.exports=r},{"./SyntheticEvent":514}],511:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticEvent"),o={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};i.augmentClass(r,o),t.exports=r},{"./SyntheticEvent":514}],512:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticEvent"),o={data:null};i.augmentClass(r,o),t.exports=r},{"./SyntheticEvent":514}],513:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticMouseEvent"),o={dataTransfer:null};i.augmentClass(r,o),t.exports=r},{"./SyntheticMouseEvent":518}],514:[function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var i=this.constructor.Interface;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];a?this[o]=a(n):"target"===o?this.target=r:this[o]=n[o]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return l?this.isDefaultPrevented=s.thatReturnsTrue:this.isDefaultPrevented=s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse,this}var i=e("object-assign"),o=e("./PooledClass"),s=e("fbjs/lib/emptyFunction"),a=(e("fbjs/lib/warning"),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),l={type:null,target:null,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<a.length;n++)this[a[n]]=null}}),r.Interface=l,r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var s=new r;i(s,e.prototype),e.prototype=s,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),t.exports=r},{"./PooledClass":441,"fbjs/lib/emptyFunction":561,"fbjs/lib/warning":579,"object-assign":580}],515:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticUIEvent"),o={relatedTarget:null};i.augmentClass(r,o),t.exports=r},{"./SyntheticUIEvent":521}],516:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticEvent"),o={data:null};i.augmentClass(r,o),t.exports=r},{"./SyntheticEvent":514}],517:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticUIEvent"),o=e("./getEventCharCode"),s=e("./getEventKey"),a=e("./getEventModifierState"),l={key:s,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:a,charCode:function(e){return"keypress"===e.type?o(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?o(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};i.augmentClass(r,l),t.exports=r},{"./SyntheticUIEvent":521,"./getEventCharCode":534,"./getEventKey":535,"./getEventModifierState":536}],518:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticUIEvent"),o=e("./ViewportMetrics"),s=e("./getEventModifierState"),a={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:s,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+o.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+o.currentScrollTop}};i.augmentClass(r,a),t.exports=r},{"./SyntheticUIEvent":521,"./ViewportMetrics":524,"./getEventModifierState":536}],519:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticUIEvent"),o=e("./getEventModifierState"),s={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:o};i.augmentClass(r,s),t.exports=r},{"./SyntheticUIEvent":521,"./getEventModifierState":536}],520:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticEvent"),o={propertyName:null,elapsedTime:null,pseudoElement:null};i.augmentClass(r,o),t.exports=r},{"./SyntheticEvent":514}],521:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticEvent"),o=e("./getEventTarget"),s={view:function(e){if(e.view)return e.view;var t=o(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}};i.augmentClass(r,s),t.exports=r},{"./SyntheticEvent":514,"./getEventTarget":537}],522:[function(e,t,n){"use strict";function r(e,t,n,r){return i.call(this,e,t,n,r)}var i=e("./SyntheticMouseEvent"),o={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};i.augmentClass(r,o),t.exports=r},{"./SyntheticMouseEvent":518}],523:[function(e,t,n){"use strict";var r=e("fbjs/lib/invariant"),i={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,i,o,s,a,l){this.isInTransaction()?r(!1):void 0;var u,c;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),c=e.call(t,n,i,o,s,a,l),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(p){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=o.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(i){}}}},closeAll:function(e){this.isInTransaction()?void 0:r(!1);for(var t=this.transactionWrappers,n=e;n<t.length;n++){var i,s=t[n],a=this.wrapperInitData[n];try{i=!0,a!==o.OBSERVED_ERROR&&s.close&&s.close.call(this,a),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(l){}}}this.wrapperInitData.length=0}},o={Mixin:i,OBSERVED_ERROR:{}};t.exports=o},{"fbjs/lib/invariant":569}],524:[function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};t.exports=r},{}],525:[function(e,t,n){"use strict";function r(e,t){if(null==t?i(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var i=e("fbjs/lib/invariant");t.exports=r},{"fbjs/lib/invariant":569}],526:[function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0,o=e.length,s=-4&o;s>r;){for(var a=Math.min(r+4096,s);a>r;r+=4)n+=(t+=e.charCodeAt(r))+(t+=e.charCodeAt(r+1))+(t+=e.charCodeAt(r+2))+(t+=e.charCodeAt(r+3));t%=i,n%=i}for(;o>r;r++)n+=t+=e.charCodeAt(r);return t%=i,n%=i,t|n<<16}var i=65521;t.exports=r},{}],527:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],528:[function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e};t.exports=r},{}],529:[function(e,t,n){"use strict";function r(e,t,n){var r=null==t||"boolean"==typeof t||""===t;if(r)return"";var i=isNaN(t);if(i||0===t||o.hasOwnProperty(e)&&o[e])return""+t;if("string"==typeof t){t=t.trim()}return t+"px"}var i=e("./CSSProperty"),o=(e("fbjs/lib/warning"),i.isUnitlessNumber);t.exports=r},{"./CSSProperty":421,"fbjs/lib/warning":579}],530:[function(e,t,n){"use strict";function r(e){return o[e]}function i(e){return(""+e).replace(s,r)}var o={"&":"&",">":">","<":"<",'"':""","'":"'"},s=/[&><"']/g;t.exports=i},{}],531:[function(e,t,n){"use strict";function r(e){if(null==e)return null;if(1===e.nodeType)return e;var t=o.get(e);return t?(t=s(t),t?i.getNodeFromInstance(t):null):void a(("function"==typeof e.render,!1))}var i=(e("./ReactCurrentOwner"),e("./ReactDOMComponentTree")),o=e("./ReactInstanceMap"),s=e("./getNativeComponentFromComposite"),a=e("fbjs/lib/invariant");e("fbjs/lib/warning");t.exports=r},{"./ReactCurrentOwner":451,"./ReactDOMComponentTree":456,"./ReactInstanceMap":486,"./getNativeComponentFromComposite":539,"fbjs/lib/invariant":569,"fbjs/lib/warning":579}],532:[function(e,t,n){"use strict";function r(e,t,n){var r=e,i=void 0===r[n];i&&null!=t&&(r[n]=t)}function i(e){if(null==e)return e;var t={};return o(e,r,t),t}var o=e("./traverseAllChildren");e("fbjs/lib/warning");t.exports=i},{"./traverseAllChildren":552,"fbjs/lib/warning":579}],533:[function(e,t,n){"use strict";var r=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=r},{}],534:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=r},{}],535:[function(e,t,n){"use strict";function r(e){if(e.key){var t=o[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=i(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?s[e.keyCode]||"Unidentified":""}var i=e("./getEventCharCode"),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},s={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=r},{"./getEventCharCode":534}],536:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function i(e){return r}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=i},{}],537:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}t.exports=r},{}],538:[function(e,t,n){"use strict";function r(e){var t=e&&(i&&e[i]||e[o]);return"function"==typeof t?t:void 0}var i="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";
|
||
t.exports=r},{}],539:[function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===i.COMPOSITE;)e=e._renderedComponent;return t===i.NATIVE?e._renderedComponent:t===i.EMPTY?null:void 0}var i=e("./ReactNodeTypes");t.exports=r},{"./ReactNodeTypes":494}],540:[function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function i(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var n=r(e),o=0,s=0;n;){if(3===n.nodeType){if(s=o+n.textContent.length,t>=o&&s>=t)return{node:n,offset:t-o};o=s}n=r(i(n))}}t.exports=o},{}],541:[function(e,t,n){"use strict";function r(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var i=e("fbjs/lib/ExecutionEnvironment"),o=null;t.exports=r},{"fbjs/lib/ExecutionEnvironment":555}],542:[function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function i(e){if(a[e])return a[e];if(!s[e])return e;var t=s[e];for(var n in t)if(t.hasOwnProperty(n)&&n in l)return a[e]=t[n];return""}var o=e("fbjs/lib/ExecutionEnvironment"),s={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},a={},l={};o.canUseDOM&&(l=document.createElement("div").style,"AnimationEvent"in window||(delete s.animationend.animation,delete s.animationiteration.animation,delete s.animationstart.animation),"TransitionEvent"in window||delete s.transitionend.transition),t.exports=i},{"fbjs/lib/ExecutionEnvironment":555}],543:[function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e){var t;if(null===e||e===!1)t=a.create(i);else if("object"==typeof e){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?u(!1):void 0,t="string"==typeof n.type?l.createInternalComponent(n):r(n.type)?new n.type(n):new c(n)}else"string"==typeof e||"number"==typeof e?t=l.createInstanceForText(e):u(!1);return t._mountIndex=0,t._mountImage=null,t}var o=e("object-assign"),s=e("./ReactCompositeComponent"),a=e("./ReactEmptyComponent"),l=e("./ReactNativeComponent"),u=e("fbjs/lib/invariant"),c=(e("fbjs/lib/warning"),function(e){this.construct(e)});o(c.prototype,s.Mixin,{_instantiateReactComponent:i}),t.exports=i},{"./ReactCompositeComponent":450,"./ReactEmptyComponent":479,"./ReactNativeComponent":493,"fbjs/lib/invariant":569,"fbjs/lib/warning":579,"object-assign":580}],544:[function(e,t,n){"use strict";function r(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var s=document.createElement("div");s.setAttribute(n,"return;"),r="function"==typeof s[n]}return!r&&i&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var i,o=e("fbjs/lib/ExecutionEnvironment");o.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},{"fbjs/lib/ExecutionEnvironment":555}],545:[function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&i[e.type]||"textarea"===t)}var i={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=r},{}],546:[function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o(!1),e}var i=e("./ReactElement"),o=e("fbjs/lib/invariant");t.exports=r},{"./ReactElement":477,"fbjs/lib/invariant":569}],547:[function(e,t,n){"use strict";function r(e){return'"'+i(e)+'"'}var i=e("./escapeTextContentForBrowser");t.exports=r},{"./escapeTextContentForBrowser":530}],548:[function(e,t,n){"use strict";var r=e("./ReactMount");t.exports=r.renderSubtreeIntoContainer},{"./ReactMount":490}],549:[function(e,t,n){"use strict";var r=e("fbjs/lib/ExecutionEnvironment"),i=/^[ \r\n\t\f]/,o=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=e("./createMicrosoftUnsafeLocalFunction"),a=s(function(e,t){e.innerHTML=t});if(r.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),i.test(t)||"<"===t[0]&&o.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}t.exports=a},{"./createMicrosoftUnsafeLocalFunction":528,"fbjs/lib/ExecutionEnvironment":555}],550:[function(e,t,n){"use strict";var r=e("fbjs/lib/ExecutionEnvironment"),i=e("./escapeTextContentForBrowser"),o=e("./setInnerHTML"),s=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(s=function(e,t){o(e,i(t))})),t.exports=s},{"./escapeTextContentForBrowser":530,"./setInnerHTML":549,"fbjs/lib/ExecutionEnvironment":555}],551:[function(e,t,n){"use strict";function r(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var i=typeof e,o=typeof t;return"string"===i||"number"===i?"string"===o||"number"===o:"object"===o&&e.type===t.type&&e.key===t.key}t.exports=r},{}],552:[function(e,t,n){"use strict";function r(e){return d[e]}function i(e,t){return e&&"object"==typeof e&&null!=e.key?s(e.key):t.toString(36)}function o(e){return(""+e).replace(m,r)}function s(e){return"$"+o(e)}function a(e,t,n,r){var o=typeof e;if("undefined"!==o&&"boolean"!==o||(e=null),null===e||"string"===o||"number"===o||u.isValidElement(e))return n(r,e,""===t?f+i(e,0):t),1;var l,d,m=0,b=""===t?f:t+h;if(Array.isArray(e))for(var y=0;y<e.length;y++)l=e[y],d=b+i(l,y),m+=a(l,d,n,r);else{var v=c(e);if(v){var g,_=v.call(e);if(v!==e.entries)for(var T=0;!(g=_.next()).done;)l=g.value,d=b+i(l,T++),m+=a(l,d,n,r);else for(;!(g=_.next()).done;){var E=g.value;E&&(l=E[1],d=b+s(E[0])+h+i(l,0),m+=a(l,d,n,r))}}else if("object"===o){String(e);p(!1)}}return m}function l(e,t,n){return null==e?0:a(e,"",t,n)}var u=(e("./ReactCurrentOwner"),e("./ReactElement")),c=e("./getIteratorFn"),p=e("fbjs/lib/invariant"),f=(e("fbjs/lib/warning"),"."),h=":",d={"=":"=0",":":"=2"},m=/[=:]/g;t.exports=l},{"./ReactCurrentOwner":451,"./ReactElement":477,"./getIteratorFn":538,"fbjs/lib/invariant":569,"fbjs/lib/warning":579}],553:[function(e,t,n){"use strict";var r=(e("object-assign"),e("fbjs/lib/emptyFunction")),i=(e("fbjs/lib/warning"),r);t.exports=i},{"fbjs/lib/emptyFunction":561,"fbjs/lib/warning":579,"object-assign":580}],554:[function(e,t,n){"use strict";var r=e("./emptyFunction"),i={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)}}):{remove:r}},registerDefault:function(){}};t.exports=i},{"./emptyFunction":561}],555:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},{}],556:[function(e,t,n){"use strict";function r(e){return e.replace(i,function(e,t){return t.toUpperCase()})}var i=/-(.)/g;t.exports=r},{}],557:[function(e,t,n){"use strict";function r(e){return i(e.replace(o,"ms-"))}var i=e("./camelize"),o=/^-ms-/;t.exports=r},{"./camelize":556}],558:[function(e,t,n){"use strict";function r(e,t){return e&&t?e===t?!0:i(e)?!1:i(t)?r(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var i=e("./isTextNode");t.exports=r},{"./isTextNode":571}],559:[function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?s(!1):void 0,"number"!=typeof t?s(!1):void 0,0===t||t-1 in e?void 0:s(!1),"function"==typeof e.callee?s(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),i=0;t>i;i++)r[i]=e[i];return r}function i(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 o(e){return i(e)?Array.isArray(e)?e.slice():r(e):[e]}var s=e("./invariant");t.exports=o},{"./invariant":569}],560:[function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function i(e,t){var n=u;u?void 0:l(!1);var i=r(e),o=i&&a(i);if(o){n.innerHTML=o[1]+e+o[2];for(var c=o[0];c--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(t?void 0:l(!1),s(p).forEach(t));for(var f=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return f}var o=e("./ExecutionEnvironment"),s=e("./createArrayFromMixed"),a=e("./getMarkupWrap"),l=e("./invariant"),u=o.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=i},{"./ExecutionEnvironment":555,"./createArrayFromMixed":559,"./getMarkupWrap":565,"./invariant":569}],561:[function(e,t,n){"use strict";function r(e){return function(){return e}}function i(){}i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},t.exports=i},{}],562:[function(e,t,n){"use strict";var r={};t.exports=r},{}],563:[function(e,t,n){"use strict";function r(e){try{e.focus()}catch(t){}}t.exports=r},{}],564:[function(e,t,n){"use strict";function r(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=r},{}],565:[function(e,t,n){"use strict";function r(e){return s?void 0:o(!1),f.hasOwnProperty(e)||(e="*"),a.hasOwnProperty(e)||("*"===e?s.innerHTML="<link />":s.innerHTML="<"+e+"></"+e+">",a[e]=!s.firstChild),a[e]?f[e]:null}var i=e("./ExecutionEnvironment"),o=e("./invariant"),s=i.canUseDOM?document.createElement("div"):null,a={},l=[1,'<select multiple="true">',"</select>"],u=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],f={"*":[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:l,option:l,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c},h=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];h.forEach(function(e){f[e]=p,a[e]=!0}),t.exports=r},{"./ExecutionEnvironment":555,"./invariant":569}],566:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],567:[function(e,t,n){"use strict";function r(e){return e.replace(i,"-$1").toLowerCase()}var i=/([A-Z])/g;t.exports=r},{}],568:[function(e,t,n){"use strict";function r(e){return i(e).replace(o,"-ms-")}var i=e("./hyphenate"),o=/^ms-/;t.exports=r},{"./hyphenate":567}],569:[function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,s,a],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}t.exports=r},{}],570:[function(e,t,n){"use strict";function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],571:[function(e,t,n){"use strict";function r(e){return i(e)&&3==e.nodeType}var i=e("./isNode");t.exports=r},{"./isNode":570}],572:[function(e,t,n){"use strict";var r=e("./invariant"),i=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};t.exports=i},{"./invariant":569}],573:[function(e,t,n){"use strict";var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=r},{}],574:[function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var o in e)i.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r}var i=Object.prototype.hasOwnProperty;t.exports=r},{}],575:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],576:[function(e,t,n){"use strict";var r,i=e("./ExecutionEnvironment");i.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":555}],577:[function(e,t,n){"use strict";var r,i=e("./performance");r=i.now?function(){return i.now()}:function(){return Date.now()},t.exports=r},{"./performance":576}],578:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function i(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var s=0;s<n.length;s++)if(!o.call(t,n[s])||!r(e[n[s]],t[n[s]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=i},{}],579:[function(e,t,n){"use strict";var r=e("./emptyFunction"),i=r;t.exports=i},{"./emptyFunction":561}],580:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=Object.assign||function(e,t){for(var n,s,a=r(e),l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var u in n)i.call(n,u)&&(a[u]=n[u]);if(Object.getOwnPropertySymbols){s=Object.getOwnPropertySymbols(n);for(var c=0;c<s.length;c++)o.call(n,s[c])&&(a[s[c]]=n[s[c]])}}return a}},{}],581:[function(e,t,n){"use strict";t.exports=e("./lib/React")},{"./lib/React":442}],582:[function(e,t,n){"use strict";function r(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}n.__esModule=!0,n["default"]=r},{}],583:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return function(n,r,i){var s=e(n,r,i),l=s.dispatch,u=[],c={getState:s.getState,dispatch:function(e){return l(e)}};return u=t.map(function(e){return e(c)}),l=a["default"].apply(void 0,u)(s.dispatch),o({},s,{dispatch:l})}}}n.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n["default"]=i;var s=e("./compose"),a=r(s)},{"./compose":586}],584:[function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function i(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),i={},o=0;o<n.length;o++){var s=n[o],a=e[s];"function"==typeof a&&(i[s]=r(a,t))}return i}n.__esModule=!0,n["default"]=i},{}],585:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return"Given action "+r+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function o(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:a.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var i="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:i}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+a.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var s=t[r];"function"==typeof e[s]&&(n[s]=e[s])}var a,l=Object.keys(n);try{o(n)}catch(u){a=u}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(a)throw a;for(var r=!1,o={},s=0;s<l.length;s++){var u=l[s],c=n[u],p=e[u],f=c(p,t);if("undefined"==typeof f){var h=i(u,t);throw new Error(h)}o[u]=f,r=r||f!==p}return r?o:e}}n.__esModule=!0,n["default"]=s;var a=e("./createStore"),l=e("lodash/isPlainObject"),u=(r(l),e("./utils/warning"));r(u)},{"./createStore":587,"./utils/warning":589,"lodash/isPlainObject":253}],586:[function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};var r=function(){var e=t[t.length-1],n=t.slice(0,-1);return{v:function(){return n.reduceRight(function(e,t){return t(e)},e.apply(void 0,arguments))}}}();return"object"==typeof r?r.v:void 0}n.__esModule=!0,n["default"]=r},{}],587:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){function r(){y===b&&(y=b.slice())}function o(){return m}function a(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),y.push(e),function(){if(t){t=!1,r();var n=y.indexOf(e);y.splice(n,1)}}}function c(e){if(!(0,s["default"])(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(v)throw new Error("Reducers may not dispatch actions.");try{v=!0,m=d(m,e)}finally{v=!1}for(var t=b=y,n=0;n<t.length;n++)t[n]();return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");d=e,c({type:u.INIT})}function f(){var e,t=a;return e={subscribe:function(e){function n(){e.next&&e.next(o())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");n();var r=t(n);return{unsubscribe:r}}},e[l["default"]]=function(){return this},e}var h;if("function"==typeof t&&"undefined"==typeof n&&(n=t,t=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(i)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var d=e,m=t,b=[],y=b,v=!1;return c({type:u.INIT}),h={dispatch:c,subscribe:a,getState:o,replaceReducer:p},h[l["default"]]=f,h}n.__esModule=!0,n.ActionTypes=void 0,n["default"]=i;var o=e("lodash/isPlainObject"),s=r(o),a=e("symbol-observable"),l=r(a),u=n.ActionTypes={INIT:"@@redux/INIT"}},{"lodash/isPlainObject":253,"symbol-observable":590}],588:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0,n.compose=n.applyMiddleware=n.bindActionCreators=n.combineReducers=n.createStore=void 0;var i=e("./createStore"),o=r(i),s=e("./combineReducers"),a=r(s),l=e("./bindActionCreators"),u=r(l),c=e("./applyMiddleware"),p=r(c),f=e("./compose"),h=r(f),d=e("./utils/warning");r(d);n.createStore=o["default"],n.combineReducers=a["default"],n.bindActionCreators=u["default"],n.applyMiddleware=p["default"],n.compose=h["default"]},{"./applyMiddleware":583,"./bindActionCreators":584,"./combineReducers":585,"./compose":586,"./createStore":587,"./utils/warning":589}],589:[function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}n.__esModule=!0,n["default"]=r},{}],590:[function(e,t,n){(function(n){"use strict";t.exports=e("./ponyfill")(n||window||this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ponyfill":591}],591:[function(e,t,n){"use strict";t.exports=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}},{}],592:[function(e,t,n){t.exports=e("./lib/index.js")},{"./lib/index.js":593}],593:[function(e,t,n){(function(n,r){function i(e){return new i.Terminal(e)}i.middleware=function(t){var r=e("url");return t=t||{},t.path=t.path||"/term.js",function(e,o,s){return r.parse(e.url).pathname!==t.path?s():+new Date(e.headers["if-modified-since"])===i.last?(o.statusCode=304,void o.end()):(o.writeHead(200,{"Content-Type":"application/javascript; charset=utf-8","Content-Length":n.byteLength(i.script),"Last-Modified":i.last}),void o.end(i.script))}},i.path=r+"/../src/term.js",i.__defineGetter__("script",function(){return i._script?i._script:(i.last=+new Date,i._script=e("fs").readFileSync(i.path,"utf8"))}),i.__defineGetter__("Terminal",function(){return i._Terminal?i._Terminal:i._Terminal=e("../src/term")}),t.exports=i}).call(this,e("buffer").Buffer,"/node_modules/term.js/lib")},{"../src/term":594,buffer:27,fs:26,url:598}],594:[function(e,t,n){(function(e){(function(){"use strict";function e(){this._events=this._events||{}}function n(){e.call(this)}function r(e){var t=this;if(!(this instanceof r))return new r(arguments[0],arguments[1],arguments[2]);n.call(this),"number"==typeof e&&(e={cols:arguments[0],rows:arguments[1],handler:arguments[2]}),e=e||{},h(d(r.defaults),function(n){null==e[n]&&(e[n]=r.options[n],r[n]!==r.defaults[n]&&(e[n]=r[n])),t[n]=e[n]}),8===e.colors.length?e.colors=e.colors.concat(r._colors.slice(8)):16===e.colors.length?e.colors=e.colors.concat(r._colors.slice(16)):10===e.colors.length?e.colors=e.colors.slice(0,-2).concat(r._colors.slice(8,-2),e.colors.slice(-2)):18===e.colors.length&&(e.colors=e.colors.slice(0,-2).concat(r._colors.slice(16,-2),e.colors.slice(-2))),this.colors=e.colors,this.options=e,this.parent=e.body||e.parent||(m?m.getElementsByTagName("body")[0]:null),this.cols=e.cols||e.geometry[0],this.rows=e.rows||e.geometry[1],this.setRawMode,this.isTTY=!0,this.isRaw=!0,this.columns=this.cols,this.rows=this.rows,e.handler&&this.on("data",e.handler),this.ybase=0,this.ydisp=0,this.x=0,this.y=0,this.cursorState=0,this.cursorHidden=!1,this.convertEol,this.state=0,this.queue="",this.scrollTop=0,this.scrollBottom=this.rows-1,this.applicationKeypad=!1,this.applicationCursor=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!1,this.normal=null,this.prefixMode=!1,this.selectMode=!1,this.visualMode=!1,this.searchMode=!1,this.searchDown,this.entry="",this.entryPrefix="Search: ",this._real,this._selected,this._textarea,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.decLocator,this.x10Mouse,this.vt200Mouse,this.vt300Mouse,this.normalMouse,this.mouseEvents,this.sendFocus,this.utfMouse,this.sgrMouse,this.urxvtMouse,this.element,this.children,this.refreshStart,this.refreshEnd,this.savedX,this.savedY,this.savedCols,this.readable=!0,this.writable=!0,this.defAttr=131840,this.curAttr=this.defAttr,this.params=[],this.currentParam=0,this.prefix="",this.postfix="",this.lines=[];for(var i=this.rows;i--;)this.lines.push(this.blankLine());this.tabs,this.setupStops()}function i(e,t,n,r){e.addEventListener(t,n,r||!1)}function o(e,t,n,r){e.removeEventListener(t,n,r||!1)}function s(e){return e.preventDefault&&e.preventDefault(),e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,!1}function a(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function l(e){var t=e.getElementsByTagName("body")[0],n=e.createElement("div");n.className="terminal";var r=e.createElement("div"),i=e.createElement("span");i.innerHTML="hello world",r.appendChild(i),n.appendChild(r),t.appendChild(n);var o=i.scrollWidth;i.style.fontWeight="bold";var s=i.scrollWidth;return t.removeChild(n),o!==s}function u(e,t){for(var n=e.length;n--;)if(e[n]===t)return n;return-1}function c(e){return 4352>e?!1:e>=4352&&4447>=e||e>=4515&&4519>=e||e>=4602&&4607>=e||e>=9001&&9002>=e||e>=11904&&11929>=e||e>=11931&&12019>=e||e>=12032&&12245>=e||e>=12272&&12283>=e||e>=12288&&12350>=e||e>=12353&&12438>=e||e>=12441&&12543>=e||e>=12549&&12589>=e||e>=12593&&12686>=e||e>=12688&&12730>=e||e>=12736&&12771>=e||e>=12784&&12830>=e||e>=12832&&12871>=e||e>=12880&&13054>=e||e>=13056&&19903>=e||e>=19968&&42124>=e||e>=42128&&42182>=e||e>=43360&&43388>=e||e>=44032&&55203>=e||e>=55216&&55238>=e||e>=55243&&55291>=e||e>=63744&&64255>=e||e>=65040&&65049>=e||e>=65072&&65106>=e||e>=65108&&65126>=e||e>=65128&&65131>=e||e>=65281&&65376>=e||e>=65504&&65510>=e}function p(e){var t=e.charCodeAt(0);return c(t)}function f(e,t,n){var i=e<<16|t<<8|n;if(null!=f._cache[i])return f._cache[i];for(var o,s,a,l,u,c=1/0,p=-1,h=0;h<r.vcolors.length;h++){if(o=r.vcolors[h],s=o[0],a=o[1],l=o[2],u=f.distance(e,t,n,s,a,l),0===u){p=h;break}c>u&&(c=u,p=h)}return f._cache[i]=p}function h(e,t,n){if(e.forEach)return e.forEach(t,n);for(var r=0;r<e.length;r++)t.call(n,e[r],r,e)}function d(e){if(Object.keys)return Object.keys(e);var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}var m=this.document;e.prototype.addListener=function(e,t){this._events[e]=this._events[e]||[],this._events[e].push(t)},e.prototype.on=e.prototype.addListener,e.prototype.removeListener=function(e,t){if(this._events[e])for(var n=this._events[e],r=n.length;r--;)if(n[r]===t||n[r].listener===t)return void n.splice(r,1)},e.prototype.off=e.prototype.removeListener,e.prototype.removeAllListeners=function(e){this._events[e]&&delete this._events[e]},e.prototype.once=function(e,t){function n(){var r=Array.prototype.slice.call(arguments);return this.removeListener(e,n),t.apply(this,r)}return n.listener=t,this.on(e,n)},e.prototype.emit=function(e){if(this._events[e])for(var t=Array.prototype.slice.call(arguments,1),n=this._events[e],r=n.length,i=0;r>i;i++)n[i].apply(this,t)},e.prototype.listeners=function(e){return this._events[e]=this._events[e]||[]},a(n,e),n.prototype.pipe=function(e,t){function n(){s.removeListener("data",r),s.removeListener("error",i),s.removeListener("end",o),e.removeListener("error",i),e.removeListener("close",n)}var r,i,o,s=this;return s.on("data",r=function(t){e.write(t)}),s.on("error",i=function(e){if(n(),!this.listeners("error").length)throw e}),s.on("end",o=function(){e.end(),n()}),e.on("error",i),e.on("close",n),e.emit("pipe",s),e};var b=0,y=1,v=2,g=3,_=4,T=5,E=6,C={type:"udk"};a(r,n),r.tangoColors=["#2e3436","#cc0000","#4e9a06","#c4a000","#3465a4","#75507b","#06989a","#d3d7cf","#555753","#ef2929","#8ae234","#fce94f","#729fcf","#ad7fa8","#34e2e2","#eeeeec"],r.xtermColors=["#000000","#cd0000","#00cd00","#cdcd00","#0000ee","#cd00cd","#00cdcd","#e5e5e5","#7f7f7f","#ff0000","#00ff00","#ffff00","#5c5cff","#ff00ff","#00ffff","#ffffff"],r.colors=function(){function e(e,n,r){i.push("#"+t(e)+t(n)+t(r))}function t(e){return e=e.toString(16),e.length<2?"0"+e:e}var n,i=r.tangoColors.slice(),o=[0,95,135,175,215,255];for(n=0;216>n;n++)e(o[n/36%6|0],o[n/6%6|0],o[n%6]);for(n=0;24>n;n++)o=8+10*n,e(o,o,o);return i}(),r.colors[256]="#000000",r.colors[257]="#f0f0f0",r._colors=r.colors.slice(),r.vcolors=function(){for(var e,t=[],n=r.colors,i=0;256>i;i++)e=parseInt(n[i].substring(1),16),t.push([e>>16&255,e>>8&255,255&e]);return t}(),r.defaults={colors:r.colors,convertEol:!1,termName:"xterm",geometry:[80,24],cursorBlink:!0,visualBell:!1,popOnBell:!1,scrollback:1e3,screenKeys:!1,debug:!1,useStyle:!1},r.options={},h(d(r.defaults),function(e){r[e]=r.defaults[e],r.options[e]=r.defaults[e]}),r.focus=null,r.prototype.focus=function(){this._textarea&&this._textarea.focus(),r.focus!==this&&(r.focus&&r.focus.blur(),this.sendFocus&&this.send("[I"),this.showCursor(),r.focus=this)},r.prototype.blur=function(){r.focus===this&&(this.cursorState=0,this.refresh(this.y,this.y),this.sendFocus&&this.send("[O"),r.focus=null)},r.prototype.initGlobal=function(){var e=this.document;r._boundDocs=r._boundDocs||[],~u(r._boundDocs,e)||(r._boundDocs.push(e),r.bindPaste(e),r.bindKeys(e),r.bindCopy(e),this.useStyle&&r.insertStyle(e,this.colors[256],this.colors[257]))},r.bindPaste=function(e){var t=e.defaultView;i(t,"paste",function(e){var t=r.focus;if(t&&!t._textarea)return e.clipboardData?t.send(e.clipboardData.getData("text/plain")):t.context.clipboardData&&t.send(t.context.clipboardData.getData("Text")),t.element.contentEditable="inherit",s(e)})},r.bindKeys=function(e){i(e,"keydown",function(e){if(r.focus){var t=e.target||e.srcElement;if(t)return t===r.focus.element||t===r.focus.context||t===r.focus.document||t===r.focus.body||t===r.focus._textarea||t===r.focus.parent?r.focus.keyDown(e):void 0}},!0),i(e,"keypress",function(e){if(r.focus){var t=e.target||e.srcElement;if(t)return t===r.focus.element||t===r.focus.context||t===r.focus.document||t===r.focus.body||t===r.focus._textarea||t===r.focus.parent?r.focus.keyPress(e):void 0}},!0),i(e,"mousedown",function(e){if(r.focus){var t=e.target||e.srcElement;if(t&&t.parentNode&&t.parentNode.parentNode){do if(t===r.focus.element)return;while(t=t.parentNode);r.focus.blur()}}})},r.bindCopy=function(e){var t=e.defaultView;i(t,"copy",function(e){var t=r.focus;if(t&&t._selected){var n=t.getCopyTextarea(),i=t.grabText(t._selected.x1,t._selected.x2,t._selected.y1,t._selected.y2);t.emit("copy",i),n.focus(),n.textContent=i,n.value=i,n.setSelectionRange(0,i.length),S(function(){t.element.focus(),t.focus()},1)}})},r.prototype.getTextarea=function(e){var t=this,n=e.createElement("textarea");n.style.position="absolute",n.style.left="-32000px",n.style.top="-32000px",n.style.width="2em",n.style.height="2em",n.style.padding="0",n.style.opacity="0",n.style.color="inherit",n.style.font="inherit",n.style.textIndent="-1em",n.style.backgroundColor="transparent",n.style.borderStyle="none",n.style.outlineStyle="none",n.style.resize="none",n.autocomplete="off",n.autocorrect="off",n.autocapitalize="off",n.spellcheck=!1;var o,s=function(e){if(!e.timeStamp||e.timeStamp!==o){o=e.timeStamp;var r=n.textContent||n.value;"undefined"!=typeof t.select.startPos&&(t.select={},t.clearSelectedText(),t.refresh(0,t.rows-1)),t.compositionStatus||(n.value="",n.textContent="",t.send(r))}};return i(n,"compositionstart",function(){n.style.opacity="1.0",n.style.textIndent="0",t.compositionStatus=!0}),i(n,"compositionend",function(e){n.style.opacity="0.0",n.style.textIndent="-1em",t.compositionStatus=!1,S(function(){s(e)},1)}),i(n,"keydown",function(){n.textContent||n.value}),i(n,"input",s),r.isAndroid&&i(n,"change",function(){var e=n.textContent||n.value;n.value="",n.textContent="",t.send(e+"\r")}),n},r.insertStyle=function(e,t,n){var r=e.getElementById("term-style");if(!r){var i=e.getElementsByTagName("head")[0];if(i){var r=e.createElement("style");r.id="term-style",r.innerHTML=".terminal {\n float: left;\n border: "+t+' solid 5px;\n font-family: "DejaVu Sans Mono", "Liberation Mono", monospace;\n font-size: 11px;\n color: '+n+";\n background: "+t+";\n}\n\n.terminal-cursor {\n color: "+t+";\n background: "+n+";\n}\n",i.insertBefore(r,i.firstChild)}}},r.prototype.open=function(e){var t,n=this,o=0;if(this.parent=e||this.parent,
|
||
!this.parent)throw new Error("Terminal requires a parent element.");for(this.context=this.parent.ownerDocument.defaultView,this.document=this.parent.ownerDocument,this.body=this.document.getElementsByTagName("body")[0],this.context.navigator&&this.context.navigator.userAgent&&(this.isMac=!!~this.context.navigator.userAgent.indexOf("Mac"),this.isIpad=!!~this.context.navigator.userAgent.indexOf("iPad"),this.isIphone=!!~this.context.navigator.userAgent.indexOf("iPhone"),this.isAndroid=!!~this.context.navigator.userAgent.indexOf("Android"),this.isMobile=this.isIpad||this.isIphone||this.isAndroid,this.isMSIE=!!~this.context.navigator.userAgent.indexOf("MSIE")),this.element=this.document.createElement("div"),this.element.className="terminal",this.element.style.outline="none",this.element.setAttribute("tabindex",0),this.element.setAttribute("spellcheck","false"),this.element.style.backgroundColor=this.colors[256],this.element.style.color=this.colors[257],this.children=[];o<this.rows;o++)t=this.document.createElement("div"),this.element.appendChild(t),this.children.push(t);this._textarea=this.getTextarea(this.document),this.element.appendChild(this._textarea),this.parent.appendChild(this.element),this.select={},this.refresh(0,this.rows-1);var s=function(){var e=n.select.startPos,t=n.select.endPos;if(t.y<e.y||e.y==t.y&&t.x<e.x){var r=e;e=t,t=r}if(2===n.select.clicks){for(var i=function(e){var t=e.charCodeAt(0);return 47>=t||t>=58&&64>=t||t>=91&&96>t||t>=123&&127>=t};e.x>0&&!i(n.lines[e.y][e.x-1][1]);)e.x--;for(;t.x<n.cols&&!i(n.lines[t.y][t.x][1]);)t.x++}else 3===n.select.clicks&&(e.x=0,t.y++,t.x=0);if(e.x===t.x&&e.y===t.y)n.clearSelectedText();else{var o=t.x,s=t.y;o--,0>o&&(s--,o=n.cols-1),n.selectText(e.x,o,e.y,s)}},a=function(){var e=n._textarea;if(e){if(n.select.startPos.x===n.select.endPos.x&&n.select.startPos.y===n.select.endPos.y)return e.value="",void e.select();var t=n.select.endPos.x,r=n.select.endPos.y;t--,0>t&&(r--,t=n.cols-1);var i=n.grabText(n.select.startPos.x,t,n.select.startPos.y,r);e.value=i,e.select()}};i(this.element,"mousedown",function(e){if(2===e.button){var t=n.element.getBoundingClientRect(),r=e.pageX-t.left+n.element.offsetLeft,i=e.pageY-t.top+n.element.offsetTop;return n._textarea.style.left=r+"px",void(n._textarea.style.top=i+"px")}0==e.button&&(navigator.userAgent.indexOf("Trident")?(n.select.timer?(n.select.clicks++,clearTimeout(n.select.timer),n.select.timer=null):n.select.clicks=1,n.select.timer=S(function(){n.select.timer=null},600)):n.select.clicks=e.detail,e.shiftKey||(n.clearSelectedText(),n.select.startPos=n.getCoords(e),n.select.startPos.y+=n.ydisp),n.select.endPos=n.getCoords(e),n.select.endPos.y+=n.ydisp,s(),a(),n.refresh(0,n.rows-1),n.select.selecting=!0)}),i(this.element,"mousemove",function(e){n.select.selecting&&(n.select.endPos=n.getCoords(e),n.select.endPos.y+=n.ydisp,s(),n.refresh(0,n.rows-1))}),i(m,"mouseup",function(e){if(2===e.button){var t=n.element.getBoundingClientRect(),r=e.pageX-t.left+n.element.offsetLeft,i=e.pageY-t.top+n.element.offsetTop;return n._textarea.style.left=r-1+"px",void(n._textarea.style.top=i-1+"px")}n.select.selecting&&(n.select.selecting=!1,a())}),"useEvents"in this.options&&!this.options.useEvents||this.initGlobal(),"useFocus"in this.options&&!this.options.useFocus||(this.focus(),this.startBlink(),i(this.element,"focus",function(){n.focus()}),i(this.element,"mousedown",function(){n.focus()}),i(this.element,"mousedown",function(e){var t=null!=e.button?+e.button:null!=e.which?e.which-1:null;n.isMSIE&&(t=1===t?0:4===t?1:t),2===t&&(n.element.contentEditable="true",S(function(){n.element.contentEditable="inherit"},1))},!0)),"useMouse"in this.options&&!this.options.useMouse||this.bindMouse(),"useFocus"in this.options&&!this.options.useFocus||S(function(){n.element.focus(),n.focus()},100),null==r.brokenBold&&(r.brokenBold=l(this.document)),this.emit("open")},r.prototype.setRawMode=function(e){this.isRaw=!!e},r.prototype.getCoords=function(e){var t,n,r,i,o,s=this;if(null!=e.pageX){for(t=e.pageX,n=e.pageY,o=s.element,t-=o.clientLeft,n-=o.clientTop;o&&o!==s.document.documentElement;)t-=o.offsetLeft,n-=o.offsetTop,o="offsetParent"in o?o.offsetParent:o.parentNode;r=s.element.clientWidth,i=s.element.clientHeight;var a=Math.floor(t/r*s.cols),l=Math.floor(n/i*s.rows);return 0>a&&(a=0),a>s.cols&&(a=s.cols),0>l&&(l=0),l>s.rows&&(l=s.rows),{x:a,y:l}}},r.prototype.bindMouse=function(){function e(e){var t,n;if(t=a(e),n=l(e))switch(r(t,n),e.type){case"mousedown":p=t;break;case"mouseup":p=32;break;case f:}}function t(e){var t,n=p;t=l(e),t&&(n+=32,r(n,t))}function n(e,t){if(c.utfMouse){if(2047===t)return e.push(0);127>t?e.push(t):(t>2047&&(t=2047),e.push(192|t>>6),e.push(128|63&t))}else{if(255===t)return e.push(0);t>127&&(t=127),e.push(t)}}function r(e,t){if(c.vt300Mouse){e&=3,t.x-=32,t.y-=32;var r="[24";if(0===e)r+="1";else if(1===e)r+="3";else if(2===e)r+="5";else{if(3===e)return;r+="0"}return r+="~["+t.x+","+t.y+"]\r",void c.send(r)}if(c.decLocator)return e&=3,t.x-=32,t.y-=32,0===e?e=2:1===e?e=4:2===e?e=6:3===e&&(e=3),void c.send("["+e+";"+(3===e?4:0)+";"+t.y+";"+t.x+";"+(t.page||0)+"&w");if(c.urxvtMouse)return t.x-=32,t.y-=32,t.x++,t.y++,void c.send("["+e+";"+t.x+";"+t.y+"M");if(c.sgrMouse)return t.x-=32,t.y-=32,void c.send("[<"+(3===(3&e)?-4&e:e)+";"+t.x+";"+t.y+(3===(3&e)?"m":"M"));var r=[];n(r,e),n(r,t.x),n(r,t.y),c.send("[M"+w.fromCharCode.apply(w,r))}function a(e){var t,n,r,i,o;switch(e.type){case"mousedown":t=null!=e.button?+e.button:null!=e.which?e.which-1:null,c.isMSIE&&(t=1===t?0:4===t?1:t);break;case"mouseup":t=3;break;case"DOMMouseScroll":t=e.detail<0?64:65;break;case"mousewheel":t=e.wheelDeltaY>0?64:65}return n=e.shiftKey?4:0,r=e.metaKey?8:0,i=e.ctrlKey?16:0,o=n|r|i,c.vt200Mouse?o&=i:c.normalMouse||(o=0),t=32+(o<<2)+t}function l(e){var t,n,r,i,o;if(null!=e.pageX){for(t=e.pageX,n=e.pageY,o=c.element;o&&o!==c.document.documentElement;)t-=o.offsetLeft,n-=o.offsetTop,o="offsetParent"in o?o.offsetParent:o.parentNode;return r=c.element.clientWidth,i=c.element.clientHeight,t=Math.round(t/r*c.cols),n=Math.round(n/i*c.rows),0>t&&(t=0),t>c.cols&&(t=c.cols),0>n&&(n=0),n>c.rows&&(n=c.rows),t+=32,n+=32,{x:t,y:n,type:e.type===f?"mousewheel":e.type}}}var u=this.element,c=this,p=32,f="onmousewheel"in this.context?"mousewheel":"DOMMouseScroll";i(u,"mousedown",function(n){return c.mouseEvents?(e(n),c.focus(),c.normalMouse&&i(c.document,"mousemove",t),c.x10Mouse||i(c.document,"mouseup",function r(n){return e(n),c.normalMouse&&o(c.document,"mousemove",t),o(c.document,"mouseup",r),s(n)}),s(n)):void 0}),i(u,f,function(t){return c.mouseEvents&&!(c.x10Mouse||c.vt300Mouse||c.decLocator)?(e(t),s(t)):void 0}),i(u,f,function(e){return c.mouseEvents||c.applicationKeypad?void 0:("DOMMouseScroll"===e.type?c.scrollDisp(e.detail<0?-5:5):c.scrollDisp(e.wheelDeltaY>0?-5:5),s(e))})},r.prototype.close=r.prototype.destroySoon=r.prototype.destroy=function(){this.destroyed||(this._blink&&(clearInterval(this._blink),delete this._blink),this.readable=!1,this.writable=!1,this.destroyed=!0,this._events={},this.handler=function(){},this.write=function(){},this.end=function(){},this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.emit("end"),this.emit("close"),this.emit("finish"),this.emit("destroy"))},r.prototype.refresh=function(e,t){var n,i,o,s,a,l,u,c,f,h,d,m,b,y,v,g=this.element.clientWidth/this.cols,_=this.element.clientHeight/this.rows;for(t-e>=this.rows/2&&(v=r.focus==this,y=this.element.parentNode,y&&y.removeChild(this.element)),u=this.cols,i=e,t>=this.lines.length&&(this.log("`end` is too large. Most likely a bad CSR."),t=this.lines.length-1);t>=i;i++){for(b=i+this.ydisp,s=this.lines[b],a="",n=i!==this.y||!this.cursorState||this.ydisp!==this.ybase&&!this.selectMode||this.cursorHidden?-1:this.x,f=this.defAttr,o=0;u>o;o++){switch(c=s[o][0],l=s[o][1],o===n&&(c=-1),c!==f&&(f!==this.defAttr&&(a+="</span>"),c!==this.defAttr&&(-1===c?a+='<span class="reverse-video terminal-cursor">':(a+='<span style="',h=511&c,d=c>>9&511,m=c>>18,1&m&&(r.brokenBold||(a+="font-weight:bold;"),8>d&&(d+=8)),2&m&&(a+="text-decoration:underline;"),4&m&&(2&m?(a=a.slice(0,-1),a+=" blink;"):a+="text-decoration:blink;"),8&m&&(h=c>>9&511,d=511&c,1&m&&8>d&&(d+=8)),16&m&&(a+="visibility:hidden;"),256!==h&&(a+="background-color:"+this.colors[h]+";"),257!==d&&(a+="color:"+this.colors[d]+";"),a+='">'))),l){case"&":a+="&";break;case"<":a+="<";break;case">":a+=">";break;default:" ">=l?a+=" ":p(l)?(o++,a+='<span style="display:inline-block; width:'+2*g+"px; height:"+_+"px; line-height:"+_+'px;">'+l+"</span>"):a+=l}f=c}f!==this.defAttr&&(a+="</span>"),this.children[i].innerHTML=a}if(y&&(y.appendChild(this.element),v&&this.focus()),this._textarea){var T=this.element.querySelector(".terminal-cursor");if(T){var E=T.offsetLeft,C=T.offsetTop;this._textarea.style.left=E+"px",this._textarea.style.top=C+"px"}}},r.prototype._cursorBlink=function(){r.focus===this&&(this.cursorState^=1,this.refresh(this.y,this.y))},r.prototype.showCursor=function(){this.cursorState||(this.cursorState=1,this.refresh(this.y,this.y))},r.prototype.startBlink=function(){if(this.cursorBlink){var e=this;this._blinker=function(){e._cursorBlink()},this._blink=P(this._blinker,500)}},r.prototype.refreshBlink=function(){this.cursorBlink&&this._blink&&(clearInterval(this._blink),this._blink=P(this._blinker,500))},r.prototype.scroll=function(){var e;++this.ybase===this.scrollback&&(this.ybase=this.ybase/2|0,this.lines=this.lines.slice(-(this.ybase+this.rows)+1)),this.ydisp=this.ybase,e=this.ybase+this.rows-1,e-=this.rows-1-this.scrollBottom,e===this.lines.length?this.lines.push(this.blankLine()):this.lines.splice(e,0,this.blankLine()),0!==this.scrollTop&&(0!==this.ybase&&(this.ybase--,this.ydisp=this.ybase),this.lines.splice(this.ybase+this.scrollTop,1)),this.updateRange(this.scrollTop),this.updateRange(this.scrollBottom)},r.prototype.scrollDisp=function(e){this.ydisp+=e,this.ydisp>this.ybase?this.ydisp=this.ybase:this.ydisp<0&&(this.ydisp=0),this.refresh(0,this.rows-1)},r.prototype.write=function(e){var t,n,i,o=e.length,s=0;for(this.refreshStart=this.y,this.refreshEnd=this.y,this.ybase!==this.ydisp&&(this.ydisp=this.ybase,this.maxRange());o>s;s++,this.lch=i)switch(i=e[s],this.state){case b:switch(i){case"":this.bell();break;case"\n":case"\x0B":case"\f":this.convertEol&&(this.x=0),this.y++,this.y>this.scrollBottom&&(this.y--,this.scroll());break;case"\r":this.x=0;break;case"\b":this.x>0&&this.x--;break;case" ":this.x=this.nextStop();break;case"":this.setgLevel(1);break;case"":this.setgLevel(0);break;case"":this.state=y;break;default:if(i>=" "&&(this.charset&&this.charset[i]&&(i=this.charset[i]),this.x>=this.cols&&(this.x=0,this.y++,this.y>this.scrollBottom&&(this.y--,this.scroll())),this.lines[this.y+this.ybase][this.x]=[this.curAttr,i],this.x++,this.updateRange(this.y),p(i))){if(t=this.y+this.ybase,this.cols<2||this.x>=this.cols){this.lines[t][this.x-1]=[this.curAttr," "];break}this.lines[t][this.x]=[this.curAttr," "],this.x++}}break;case y:switch(i){case"[":this.params=[],this.currentParam=0,this.state=v;break;case"]":this.params=[],this.currentParam=0,this.state=g;break;case"P":this.params=[],this.prefix="",this.currentParam="",this.state=T;break;case"_":this.state=E;break;case"^":this.state=E;break;case"c":this.reset();break;case"E":this.x=0;case"D":this.index();break;case"M":this.reverseIndex();break;case"%":this.setgLevel(0),this.setgCharset(0,r.charsets.US),this.state=b,s++;break;case"(":case")":case"*":case"+":case"-":case".":switch(i){case"(":this.gcharset=0;break;case")":this.gcharset=1;break;case"*":this.gcharset=2;break;case"+":this.gcharset=3;break;case"-":this.gcharset=1;break;case".":this.gcharset=2}this.state=_;break;case"/":this.gcharset=3,this.state=_,s--;break;case"N":break;case"O":break;case"n":this.setgLevel(2);break;case"o":this.setgLevel(3);break;case"|":this.setgLevel(3);break;case"}":this.setgLevel(2);break;case"~":this.setgLevel(1);break;case"7":this.saveCursor(),this.state=b;break;case"8":this.restoreCursor(),this.state=b;break;case"#":this.state=b,s++;break;case"H":this.tabSet();break;case"=":this.log("Serial port requested application keypad."),this.applicationKeypad=!0,this.state=b;break;case">":this.log("Switching back to normal keypad."),this.applicationKeypad=!1,this.state=b;break;default:this.state=b,this.error("Unknown ESC control: %s.",i)}break;case _:switch(i){case"0":n=r.charsets.SCLD;break;case"A":n=r.charsets.UK;break;case"B":n=r.charsets.US;break;case"4":n=r.charsets.Dutch;break;case"C":case"5":n=r.charsets.Finnish;break;case"R":n=r.charsets.French;break;case"Q":n=r.charsets.FrenchCanadian;break;case"K":n=r.charsets.German;break;case"Y":n=r.charsets.Italian;break;case"E":case"6":n=r.charsets.NorwegianDanish;break;case"Z":n=r.charsets.Spanish;break;case"H":case"7":n=r.charsets.Swedish;break;case"=":n=r.charsets.Swiss;break;case"/":n=r.charsets.ISOLatin,s++;break;default:n=r.charsets.US}this.setgCharset(this.gcharset,n),this.gcharset=null,this.state=b;break;case g:if(""===this.lch&&"\\"===i||""===i){switch(""===this.lch&&("string"==typeof this.currentParam?this.currentParam=this.currentParam.slice(0,-1):"number"==typeof this.currentParam&&(this.currentParam=(this.currentParam-("".charCodeAt(0)-48))/10)),this.params.push(this.currentParam),this.params[0]){case 0:case 1:case 2:this.params[1]&&(this.title=this.params[1],this.handleTitle(this.title));break;case 3:break;case 4:case 5:break;case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:break;case 46:break;case 50:break;case 51:break;case 52:break;case 104:case 105:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:}this.params=[],this.currentParam=0,this.state=b}else this.params.length?this.currentParam+=i:i>="0"&&"9">=i?this.currentParam=10*this.currentParam+i.charCodeAt(0)-48:";"===i&&(this.params.push(this.currentParam),this.currentParam="");break;case v:if("?"===i||">"===i||"!"===i){this.prefix=i;break}if(i>="0"&&"9">=i){this.currentParam=10*this.currentParam+i.charCodeAt(0)-48;break}if("$"===i||'"'===i||" "===i||"'"===i){this.postfix=i;break}if(this.params.push(this.currentParam),this.currentParam=0,";"===i)break;switch(this.state=b,i){case"A":this.cursorUp(this.params);break;case"B":this.cursorDown(this.params);break;case"C":this.cursorForward(this.params);break;case"D":this.cursorBackward(this.params);break;case"H":this.cursorPos(this.params);break;case"J":this.eraseInDisplay(this.params);break;case"K":this.eraseInLine(this.params);break;case"m":this.prefix||this.charAttributes(this.params);break;case"n":this.prefix||this.deviceStatus(this.params);break;case"@":this.insertChars(this.params);break;case"E":this.cursorNextLine(this.params);break;case"F":this.cursorPrecedingLine(this.params);break;case"G":this.cursorCharAbsolute(this.params);break;case"L":this.insertLines(this.params);break;case"M":this.deleteLines(this.params);break;case"P":this.deleteChars(this.params);break;case"X":this.eraseChars(this.params);break;case"`":this.charPosAbsolute(this.params);break;case"a":this.HPositionRelative(this.params);break;case"c":this.sendDeviceAttributes(this.params);break;case"d":this.linePosAbsolute(this.params);break;case"e":this.VPositionRelative(this.params);break;case"f":this.HVPosition(this.params);break;case"h":this.setMode(this.params);break;case"l":this.resetMode(this.params);break;case"r":this.setScrollRegion(this.params);break;case"s":this.saveCursor(this.params);break;case"u":this.restoreCursor(this.params);break;case"I":this.cursorForwardTab(this.params);break;case"S":this.scrollUp(this.params);break;case"T":this.params.length<2&&!this.prefix&&this.scrollDown(this.params);break;case"Z":this.cursorBackwardTab(this.params);break;case"b":this.repeatPrecedingCharacter(this.params);break;case"g":this.tabClear(this.params);break;case"p":switch(this.prefix){case"!":this.softReset(this.params)}break;default:this.error("Unknown CSI code: %s.",i)}this.prefix="",this.postfix="";break;case T:if(""===this.lch&&"\\"===i||""===i){if("tmux;"===this.prefix&&""===i){this.currentParam+=i;continue}""===this.lch&&("string"==typeof this.currentParam?this.currentParam=this.currentParam.slice(0,-1):"number"==typeof this.currentParam&&(this.currentParam=(this.currentParam-("".charCodeAt(0)-48))/10)),this.params.push(this.currentParam);var a=this.params[this.params.length-1];switch(this.prefix){case C:this.emit("udk",{clearAll:0===this.params[0],eraseBelow:1===this.params[0],lockKeys:0===this.params[1],dontLockKeys:1===this.params[1],keyList:(this.params[2]+"").split(";").map(function(e){return e=e.split("/"),{keyCode:e[0],hexKeyValue:e[1]}})});break;case"$q":var l=0;switch(a){case'"q':a='0"q',l=1;break;case'"p':a='61;0"p',l=1;break;case"r":a=""+(this.scrollTop+1)+";"+(this.scrollBottom+1)+"r",l=1;break;case"m":l=0;break;default:this.error("Unknown DCS Pt: %s.",a),l=0}this.send("P"+l+"$r"+a+"\\");break;case"+p":this.emit("set terminfo",{name:this.params[0]});break;case"+q":var l=!1;this.send("P"+ +l+"+r"+a+"\\");break;case"tmux;":this.emit("passthrough",a);break;default:this.error("Unknown DCS prefix: %s.",a)}this.currentParam=0,this.prefix="",this.state=b}else this.currentParam+=i,this.prefix||(/^\d*;\d*\|/.test(this.currentParam)?(this.prefix=C,this.params=this.currentParam.split(/[;|]/).map(function(e){return e.length?+e:0}).slice(0,-1),this.currentParam=""):(/^[$+][a-zA-Z]/.test(this.currentParam)||/^\w+;\x1b/.test(this.currentParam))&&(this.prefix=this.currentParam,this.currentParam=""));break;case E:(""===this.lch&&"\\"===i||""===i)&&(this.state=b)}return this.updateRange(this.y),this.refresh(this.refreshStart,this.refreshEnd),!0},r.prototype.writeln=function(e){return this.write(e+"\r\n")},r.prototype.end=function(e){var t=!0;return e&&(t=this.write(e)),this.destroySoon(),t},r.prototype.resume=function(){},r.prototype.pause=function(){},r.prototype.keyDown=function(e){var t,n=this;switch(e.keyCode){case 8:if(e.altKey){t="";break}if(e.shiftKey){t="\b";break}t="";break;case 9:if(e.shiftKey){t="[Z";break}t=" ";break;case 13:t="\r";break;case 27:t="";break;case 32:t=" ";break;case 37:if(this.applicationCursor){t="OD";break}if(e.ctrlKey){t="[5D";break}t="[D";break;case 39:if(this.applicationCursor){t="OC";break}if(e.ctrlKey){t="[5C";break}t="[C";break;case 38:if(this.applicationCursor){t="OA";break}if(e.ctrlKey)return this.scrollDisp(-1),s(e);t="[A";break;case 40:if(this.applicationCursor){t="OB";break}if(e.ctrlKey)return this.scrollDisp(1),s(e);t="[B";break;case 46:t="[3~";break;case 45:t="[2~";break;case 36:if(this.applicationKeypad){t="OH";break}t="OH";break;case 35:if(this.applicationKeypad){t="OF";break}t="OF";break;case 33:if(e.shiftKey)return this.scrollDisp(-(this.rows-1)),s(e);t="[5~";break;case 34:if(e.shiftKey)return this.scrollDisp(this.rows-1),s(e);t="[6~";break;case 112:t="OP";break;case 113:t="OQ";break;case 114:t="OR";break;case 115:t="OS";break;case 116:t="[15~";break;case 117:t="[17~";break;case 118:t="[18~";break;case 119:t="[19~";break;case 120:t="[20~";break;case 121:t="[21~";break;case 122:t="[23~";break;case 123:t="[24~";break;default:if(e.ctrlKey)if(e.keyCode>=65&&e.keyCode<=90){if(this.screenKeys&&!this.prefixMode&&!this.selectMode&&65===e.keyCode)return this.enterPrefix(),s(e);if(this.prefixMode&&86===e.keyCode)return void this.leavePrefix();if((this.prefixMode||this.selectMode)&&67===e.keyCode)return void(this.visualMode&&S(function(){n.leaveVisual()},1));t=w.fromCharCode(e.keyCode-64)}else 32===e.keyCode?t=w.fromCharCode(0):e.keyCode>=51&&e.keyCode<=55?t=w.fromCharCode(e.keyCode-51+27):56===e.keyCode?t=w.fromCharCode(127):219===e.keyCode?t=w.fromCharCode(27):221===e.keyCode&&(t=w.fromCharCode(29));else e.altKey&&(e.keyCode>=65&&e.keyCode<=90?t=""+w.fromCharCode(e.keyCode+32):192===e.keyCode?t="`":e.keyCode>=48&&e.keyCode<=57&&(t=""+(e.keyCode-48)))}return t?this.prefixMode?(this.leavePrefix(),s(e)):this.selectMode?(this.keySelect(e,t),s(e)):(this.emit("keydown",e),this.emit("key",t,e),this.showCursor(),this.handler(t),s(e)):!0},r.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},r.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},r.prototype.keyPress=function(e){var t;if(!this._textarea){if(s(e),e.charCode)t=e.charCode;else if(null==e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!t||e.ctrlKey||e.altKey||e.metaKey?!1:(t=w.fromCharCode(t),this.prefixMode?(this.leavePrefix(),this.keyPrefix(e,t),!1):this.selectMode?(this.keySelect(e,t),!1):(this.emit("keypress",t,e),this.emit("key",t,e),this.showCursor(),this.handler(t),!1))}},r.prototype.send=function(e){var t=this;this.queue||S(function(){t.handler(t.queue),t.queue=""},1),this.queue+=e},r.prototype.bell=function(){if(this.emit("bell"),this.visualBell){var e=this;this.element.style.borderColor="white",S(function(){e.element.style.borderColor=""},10),this.popOnBell&&this.focus()}},r.prototype.log=function(){if(this.debug&&this.context.console&&this.context.console.log){var e=Array.prototype.slice.call(arguments);this.context.console.log.apply(this.context.console,e)}},r.prototype.error=function(){if(this.debug&&this.context.console&&this.context.console.error){var e=Array.prototype.slice.call(arguments);this.context.console.error.apply(this.context.console,e)}},r.prototype.resize=function(e,t){var n,r,i,o,s;if(1>e&&(e=1),1>t&&(t=1),o=this.cols,e>o)for(s=[this.defAttr," "],i=this.lines.length;i--;)for(;this.lines[i].length<e;)this.lines[i].push(s);else if(o>e)for(i=this.lines.length;i--;)for(;this.lines[i].length>e;)this.lines[i].pop();if(this.setupStops(o),this.cols=e,this.columns=e,o=this.rows,t>o)for(r=this.element;o++<t;)this.lines.length<t+this.ybase&&this.lines.push(this.blankLine()),this.children.length<t&&(n=this.document.createElement("div"),r.appendChild(n),this.children.push(n));else if(o>t)for(;o-- >t;)if(this.lines.length>t+this.ybase&&this.lines.pop(),this.children.length>t){if(r=this.children.pop(),!r)continue;r.parentNode.removeChild(r)}this.rows=t,this.y>=t&&(this.y=t-1),this.x>=e&&(this.x=e-1),this.scrollTop=0,this.scrollBottom=t-1,this.refresh(0,this.rows-1),this.normal=null,this.emit("resize")},r.prototype.updateRange=function(e){e<this.refreshStart&&(this.refreshStart=e),e>this.refreshEnd&&(this.refreshEnd=e)},r.prototype.maxRange=function(){this.refreshStart=0,this.refreshEnd=this.rows-1},r.prototype.setupStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this.cols;e+=8)this.tabs[e]=!0},r.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this.cols?this.cols-1:0>e?0:e},r.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this.cols;);return e>=this.cols?this.cols-1:0>e?0:e},r.prototype.eraseAttr=function(){return-512&this.defAttr|511&this.curAttr},r.prototype.eraseRight=function(e,t){for(var n=this.lines[this.ybase+t],r=[this.eraseAttr()," "];e<this.cols;e++)n[e]=r;this.updateRange(t)},r.prototype.eraseLeft=function(e,t){var n=this.lines[this.ybase+t],r=[this.eraseAttr()," "];for(e++;e--;)n[e]=r;this.updateRange(t)},r.prototype.eraseLine=function(e){this.eraseRight(0,e)},r.prototype.blankLine=function(e){for(var t=e?this.eraseAttr():this.defAttr,n=[t," "],r=[],i=0;i<this.cols;i++)r[i]=n;return r},r.prototype.ch=function(e){return e?[this.eraseAttr()," "]:[this.defAttr," "]},r.prototype.is=function(e){var t=this.termName;return 0===(t+"").indexOf(e)},r.prototype.handler=function(e){this.emit("data",e)},r.prototype.handleTitle=function(e){this.emit("title",e)},r.prototype.index=function(){this.y++,this.y>this.scrollBottom&&(this.y--,this.scroll()),this.state=b},r.prototype.reverseIndex=function(){var e;this.y--,this.y<this.scrollTop&&(this.y++,this.lines.splice(this.y+this.ybase,0,this.blankLine(!0)),e=this.rows-1-this.scrollBottom,this.lines.splice(this.rows-1+this.ybase-e+1,1),this.updateRange(this.scrollTop),this.updateRange(this.scrollBottom)),this.state=b},r.prototype.reset=function(){this.options.rows=this.rows,this.options.cols=this.cols,r.call(this,this.options),this.refresh(0,this.rows-1)},r.prototype.tabSet=function(){this.tabs[this.x]=!0,this.state=b},r.prototype.cursorUp=function(e){var t=e[0];1>t&&(t=1),this.y-=t,this.y<0&&(this.y=0)},r.prototype.cursorDown=function(e){var t=e[0];1>t&&(t=1),this.y+=t,this.y>=this.rows&&(this.y=this.rows-1)},r.prototype.cursorForward=function(e){var t=e[0];1>t&&(t=1),this.x+=t,this.x>=this.cols&&(this.x=this.cols-1)},r.prototype.cursorBackward=function(e){var t=e[0];1>t&&(t=1),this.x-=t,this.x<0&&(this.x=0)},r.prototype.cursorPos=function(e){var t,n;t=e[0]-1,n=e.length>=2?e[1]-1:0,0>t?t=0:t>=this.rows&&(t=this.rows-1),0>n?n=0:n>=this.cols&&(n=this.cols-1),this.x=n,this.y=t},r.prototype.eraseInDisplay=function(e){var t;switch(e[0]){case 0:for(this.eraseRight(this.x,this.y),t=this.y+1;t<this.rows;t++)this.eraseLine(t);break;case 1:for(this.eraseLeft(this.x,this.y),t=this.y;t--;)this.eraseLine(t);break;case 2:for(t=this.rows;t--;)this.eraseLine(t);break;case 3:}},r.prototype.eraseInLine=function(e){switch(e[0]){case 0:this.eraseRight(this.x,this.y);break;case 1:this.eraseLeft(this.x,this.y);break;case 2:this.eraseLine(this.y)}},r.prototype.charAttributes=function(e){if(1===e.length&&0===e[0])return void(this.curAttr=this.defAttr);for(var t,n=e.length,r=0,i=this.curAttr>>18,o=this.curAttr>>9&511,s=511&this.curAttr;n>r;r++)t=e[r],t>=30&&37>=t?o=t-30:t>=40&&47>=t?s=t-40:t>=90&&97>=t?(t+=8,o=t-90):t>=100&&107>=t?(t+=8,s=t-100):0===t?(i=this.defAttr>>18,o=this.defAttr>>9&511,s=511&this.defAttr):1===t?i|=1:4===t?i|=2:5===t?i|=4:7===t?i|=8:8===t?i|=16:22===t?i&=-2:24===t?i&=-3:25===t?i&=-5:27===t?i&=-9:28===t?i&=-17:39===t?o=this.defAttr>>9&511:49===t?s=511&this.defAttr:38===t?2===e[r+1]?(r+=2,o=f(255&e[r],255&e[r+1],255&e[r+2]),-1===o&&(o=511),r+=2):5===e[r+1]&&(r+=2,t=255&e[r],o=t):48===t?2===e[r+1]?(r+=2,s=f(255&e[r],255&e[r+1],255&e[r+2]),-1===s&&(s=511),r+=2):5===e[r+1]&&(r+=2,t=255&e[r],s=t):100===t?(o=this.defAttr>>9&511,s=511&this.defAttr):this.error("Unknown SGR attribute: %d.",t);this.curAttr=i<<18|o<<9|s},r.prototype.deviceStatus=function(e){if(this.prefix){if("?"===this.prefix)switch(e[0]){case 6:this.send("[?"+(this.y+1)+";"+(this.x+1)+"R");break;case 15:break;case 25:break;case 26:break;case 53:}}else switch(e[0]){case 5:this.send("[0n");break;case 6:this.send("["+(this.y+1)+";"+(this.x+1)+"R")}},r.prototype.insertChars=function(e){var t,n,r,i;for(t=e[0],1>t&&(t=1),n=this.y+this.ybase,r=this.x,i=[this.eraseAttr()," "];t--&&r<this.cols;)this.lines[n].splice(r++,0,i),this.lines[n].pop()},r.prototype.cursorNextLine=function(e){var t=e[0];1>t&&(t=1),this.y+=t,this.y>=this.rows&&(this.y=this.rows-1),this.x=0},r.prototype.cursorPrecedingLine=function(e){var t=e[0];1>t&&(t=1),this.y-=t,this.y<0&&(this.y=0),this.x=0},r.prototype.cursorCharAbsolute=function(e){var t=e[0];1>t&&(t=1),this.x=t-1},r.prototype.insertLines=function(e){var t,n,r;for(t=e[0],1>t&&(t=1),n=this.y+this.ybase,r=this.rows-1-this.scrollBottom,r=this.rows-1+this.ybase-r+1;t--;)this.lines.splice(n,0,this.blankLine(!0)),this.lines.splice(r,1);this.updateRange(this.y),this.updateRange(this.scrollBottom)},r.prototype.deleteLines=function(e){var t,n,r;for(t=e[0],1>t&&(t=1),n=this.y+this.ybase,r=this.rows-1-this.scrollBottom,r=this.rows-1+this.ybase-r;t--;)this.lines.splice(r+1,0,this.blankLine(!0)),this.lines.splice(n,1);this.updateRange(this.y),this.updateRange(this.scrollBottom)},r.prototype.deleteChars=function(e){var t,n,r;for(t=e[0],1>t&&(t=1),n=this.y+this.ybase,r=[this.eraseAttr()," "];t--;)this.lines[n].splice(this.x,1),this.lines[n].push(r)},r.prototype.eraseChars=function(e){var t,n,r,i;for(t=e[0],1>t&&(t=1),n=this.y+this.ybase,r=this.x,i=[this.eraseAttr()," "];t--&&r<this.cols;)this.lines[n][r++]=i},r.prototype.charPosAbsolute=function(e){var t=e[0];1>t&&(t=1),this.x=t-1,this.x>=this.cols&&(this.x=this.cols-1)},r.prototype.HPositionRelative=function(e){var t=e[0];1>t&&(t=1),this.x+=t,this.x>=this.cols&&(this.x=this.cols-1)},r.prototype.sendDeviceAttributes=function(e){e[0]>0||(this.prefix?">"===this.prefix&&(this.is("xterm")?this.send("[>0;276;0c"):this.is("rxvt-unicode")?this.send("[>85;95;0c"):this.is("linux")?this.send(e[0]+"c"):this.is("screen")&&this.send("[>83;40003;0c")):this.is("xterm")||this.is("rxvt-unicode")||this.is("screen")?this.send("[?1;2c"):this.is("linux")&&this.send("[?6c"))},r.prototype.linePosAbsolute=function(e){var t=e[0];1>t&&(t=1),this.y=t-1,this.y>=this.rows&&(this.y=this.rows-1)},r.prototype.VPositionRelative=function(e){var t=e[0];1>t&&(t=1),this.y+=t,this.y>=this.rows&&(this.y=this.rows-1)},r.prototype.HVPosition=function(e){e[0]<1&&(e[0]=1),e[1]<1&&(e[1]=1),this.y=e[0]-1,this.y>=this.rows&&(this.y=this.rows-1),this.x=e[1]-1,this.x>=this.cols&&(this.x=this.cols-1)},r.prototype.setMode=function(e){if("object"!=typeof e)if(this.prefix){if("?"===this.prefix)switch(e){case 1:this.applicationCursor=!0;break;case 2:this.setgCharset(0,r.charsets.US),this.setgCharset(1,r.charsets.US),this.setgCharset(2,r.charsets.US),this.setgCharset(3,r.charsets.US);break;case 3:this.savedCols=this.cols,this.resize(132,this.rows);break;case 6:this.originMode=!0;break;case 7:this.wraparoundMode=!0;break;case 12:break;case 66:this.log("Serial port requested application keypad."),this.applicationKeypad=!0;break;case 9:case 1e3:case 1002:case 1003:this.x10Mouse=9===e,this.vt200Mouse=1e3===e,this.normalMouse=e>1e3,this.mouseEvents=!0,this.element.style.cursor="default",this.log("Binding to mouse events.");break;case 1004:this.sendFocus=!0;break;case 1005:this.utfMouse=!0;break;case 1006:this.sgrMouse=!0;break;case 1015:this.urxvtMouse=!0;break;case 25:this.cursorHidden=!1;break;case 1049:case 47:case 1047:if(!this.normal){var t={lines:this.lines,ybase:this.ybase,ydisp:this.ydisp,x:this.x,y:this.y,scrollTop:this.scrollTop,scrollBottom:this.scrollBottom,tabs:this.tabs};this.reset(),this.normal=t,this.showCursor()}}}else switch(e){case 4:this.insertMode=!0;break;case 20:}else for(var n=e.length,i=0;n>i;i++)this.setMode(e[i])},r.prototype.resetMode=function(e){if("object"!=typeof e)if(this.prefix){if("?"===this.prefix)switch(e){case 1:this.applicationCursor=!1;break;case 3:132===this.cols&&this.savedCols&&this.resize(this.savedCols,this.rows),delete this.savedCols;break;case 6:this.originMode=!1;break;case 7:this.wraparoundMode=!1;break;case 12:break;case 66:this.log("Switching back to normal keypad."),this.applicationKeypad=!1;break;case 9:case 1e3:case 1002:case 1003:this.x10Mouse=!1,this.vt200Mouse=!1,this.normalMouse=!1,this.mouseEvents=!1,this.element.style.cursor="";break;case 1004:this.sendFocus=!1;break;case 1005:this.utfMouse=!1;break;case 1006:this.sgrMouse=!1;break;case 1015:this.urxvtMouse=!1;break;case 25:this.cursorHidden=!0;break;case 1049:case 47:case 1047:this.normal&&(this.lines=this.normal.lines,this.ybase=this.normal.ybase,this.ydisp=this.normal.ydisp,this.x=this.normal.x,this.y=this.normal.y,this.scrollTop=this.normal.scrollTop,this.scrollBottom=this.normal.scrollBottom,this.tabs=this.normal.tabs,this.normal=null,this.refresh(0,this.rows-1),this.showCursor())}}else switch(e){case 4:this.insertMode=!1;break;case 20:}else for(var t=e.length,n=0;t>n;n++)this.resetMode(e[n])},r.prototype.setScrollRegion=function(e){this.prefix||(this.scrollTop=(e[0]||1)-1,this.scrollBottom=(e[1]||this.rows)-1,this.x=0,this.y=0)},r.prototype.saveCursor=function(e){this.savedX=this.x,this.savedY=this.y},r.prototype.restoreCursor=function(e){this.x=this.savedX||0,this.y=this.savedY||0},r.prototype.cursorForwardTab=function(e){for(var t=e[0]||1;t--;)this.x=this.nextStop()},r.prototype.scrollUp=function(e){for(var t=e[0]||1;t--;)this.lines.splice(this.ybase+this.scrollTop,1),this.lines.splice(this.ybase+this.scrollBottom,0,this.blankLine());this.updateRange(this.scrollTop),this.updateRange(this.scrollBottom)},r.prototype.scrollDown=function(e){
|
||
for(var t=e[0]||1;t--;)this.lines.splice(this.ybase+this.scrollBottom,1),this.lines.splice(this.ybase+this.scrollTop,0,this.blankLine());this.updateRange(this.scrollTop),this.updateRange(this.scrollBottom)},r.prototype.initMouseTracking=function(e){},r.prototype.resetTitleModes=function(e){},r.prototype.cursorBackwardTab=function(e){for(var t=e[0]||1;t--;)this.x=this.prevStop()},r.prototype.repeatPrecedingCharacter=function(e){for(var t=e[0]||1,n=this.lines[this.ybase+this.y],r=n[this.x-1]||[this.defAttr," "];t--;)n[this.x++]=r},r.prototype.tabClear=function(e){var t=e[0];0>=t?delete this.tabs[this.x]:3===t&&(this.tabs={})},r.prototype.mediaCopy=function(e){},r.prototype.setResources=function(e){},r.prototype.disableModifiers=function(e){},r.prototype.setPointerMode=function(e){},r.prototype.softReset=function(e){this.cursorHidden=!1,this.insertMode=!1,this.originMode=!1,this.wraparoundMode=!1,this.applicationKeypad=!1,this.applicationCursor=!1,this.scrollTop=0,this.scrollBottom=this.rows-1,this.curAttr=this.defAttr,this.x=this.y=0,this.charset=null,this.glevel=0,this.charsets=[null]},r.prototype.requestAnsiMode=function(e){},r.prototype.requestPrivateMode=function(e){},r.prototype.setConformanceLevel=function(e){},r.prototype.loadLEDs=function(e){},r.prototype.setCursorStyle=function(e){},r.prototype.setCharProtectionAttr=function(e){},r.prototype.restorePrivateValues=function(e){},r.prototype.setAttrInRectangle=function(e){for(var t,n,r=e[0],i=e[1],o=e[2],s=e[3],a=e[4];o+1>r;r++)for(t=this.lines[this.ybase+r],n=i;s>n;n++)t[n]=[a,t[n][1]];this.updateRange(e[0]),this.updateRange(e[2])},r.prototype.savePrivateValues=function(e){},r.prototype.manipulateWindow=function(e){},r.prototype.reverseAttrInRectangle=function(e){},r.prototype.setTitleModeFeature=function(e){},r.prototype.setWarningBellVolume=function(e){},r.prototype.setMarginBellVolume=function(e){},r.prototype.copyRectangle=function(e){},r.prototype.enableFilterRectangle=function(e){},r.prototype.requestParameters=function(e){},r.prototype.selectChangeExtent=function(e){},r.prototype.fillRectangle=function(e){for(var t,n,r=e[0],i=e[1],o=e[2],s=e[3],a=e[4];s+1>i;i++)for(t=this.lines[this.ybase+i],n=o;a>n;n++)t[n]=[t[n][0],w.fromCharCode(r)];this.updateRange(e[1]),this.updateRange(e[3])},r.prototype.enableLocatorReporting=function(e){e[0]>0},r.prototype.eraseRectangle=function(e){var t,n,r,i=e[0],o=e[1],s=e[2],a=e[3];for(r=[this.eraseAttr()," "];s+1>i;i++)for(t=this.lines[this.ybase+i],n=o;a>n;n++)t[n]=r;this.updateRange(e[0]),this.updateRange(e[2])},r.prototype.setLocatorEvents=function(e){},r.prototype.selectiveEraseRectangle=function(e){},r.prototype.requestLocatorPosition=function(e){},r.prototype.insertColumns=function(){for(var e,t=params[0],n=this.ybase+this.rows,r=[this.eraseAttr()," "];t--;)for(e=this.ybase;n>e;e++)this.lines[e].splice(this.x+1,0,r),this.lines[e].pop();this.maxRange()},r.prototype.deleteColumns=function(){for(var e,t=params[0],n=this.ybase+this.rows,r=[this.eraseAttr()," "];t--;)for(e=this.ybase;n>e;e++)this.lines[e].splice(this.x,1),this.lines[e].push(r);this.maxRange()},r.prototype.enterPrefix=function(){this.prefixMode=!0},r.prototype.leavePrefix=function(){this.prefixMode=!1},r.prototype.enterSelect=function(){this._real={x:this.x,y:this.y,ydisp:this.ydisp,ybase:this.ybase,cursorHidden:this.cursorHidden,lines:this.copyBuffer(this.lines),write:this.write},this.write=function(){},this.selectMode=!0,this.visualMode=!1,this.cursorHidden=!1,this.refresh(this.y,this.y)},r.prototype.leaveSelect=function(){this.x=this._real.x,this.y=this._real.y,this.ydisp=this._real.ydisp,this.ybase=this._real.ybase,this.cursorHidden=this._real.cursorHidden,this.lines=this._real.lines,this.write=this._real.write,delete this._real,this.selectMode=!1,this.visualMode=!1,this.refresh(0,this.rows-1)},r.prototype.enterVisual=function(){this._real.preVisual=this.copyBuffer(this.lines),this.selectText(this.x,this.x,this.ydisp+this.y,this.ydisp+this.y),this.visualMode=!0},r.prototype.leaveVisual=function(){this.lines=this._real.preVisual,delete this._real.preVisual,delete this._selected,this.visualMode=!1,this.refresh(0,this.rows-1)},r.prototype.enterSearch=function(e){this.entry="",this.searchMode=!0,this.searchDown=e,this._real.preSearch=this.copyBuffer(this.lines),this._real.preSearchX=this.x,this._real.preSearchY=this.y;for(var t=this.ydisp+this.rows-1,n=0;n<this.entryPrefix.length;n++)this.lines[t][n]=[-512&this.defAttr|4,this.entryPrefix[n]];this.y=this.rows-1,this.x=this.entryPrefix.length,this.refresh(this.rows-1,this.rows-1)},r.prototype.leaveSearch=function(){this.searchMode=!1,this._real.preSearch&&(this.lines=this._real.preSearch,this.x=this._real.preSearchX,this.y=this._real.preSearchY,delete this._real.preSearch,delete this._real.preSearchX,delete this._real.preSearchY),this.refresh(this.rows-1,this.rows-1)},r.prototype.copyBuffer=function(e){for(var e=e||this.lines,t=[],n=0;n<e.length;n++){t[n]=[];for(var r=0;r<e[n].length;r++)t[n][r]=[e[n][r][0],e[n][r][1]]}return t},r.prototype.getCopyTextarea=function(e){var t=this._copyTextarea,n=this.document;return t||(t=n.createElement("textarea"),t.style.position="absolute",t.style.left="-32000px",t.style.top="-32000px",t.style.width="0px",t.style.height="0px",t.style.opacity="0",t.style.backgroundColor="transparent",t.style.borderStyle="none",t.style.outlineStyle="none",n.getElementsByTagName("body")[0].appendChild(t),this._copyTextarea=t),t},r.prototype.copyText=function(e){var t=this,n=this.getCopyTextarea();this.emit("copy",e),n.focus(),n.textContent=e,n.value=e,n.setSelectionRange(0,e.length),S(function(){t.element.focus(),t.focus()},1)},r.prototype.clearSelectedText=function(){if(this._selected){var e,t,n,r,i,o,s,a,l;for(e=this._selected.x1,t=this._selected.x2,n=this._selected.y1,r=this._selected.y2,n>r&&(i=t,t=e,e=i,i=r,r=n,n=i),e>t&&n===r&&(i=t,t=e,e=i),s=n;r>=s;s++)for(o=0,a=this.cols-1,s===n&&(o=e),s===r&&(a=t);a>=o;o++)null!=this.lines[s][o].old&&(l=this.lines[s][o].old,delete this.lines[s][o].old,this.lines[s][o]=[l,this.lines[s][o][1]]);delete this._selected}},r.prototype.selectText=function(e,t,n,r){var i,o,s,a,l;for(this._selected&&this.clearSelectedText(),n=Math.max(n,0),n=Math.min(n,this.ydisp+this.rows-1),r=Math.max(r,0),r=Math.min(r,this.ydisp+this.rows-1),this._selected={x1:e,x2:t,y1:n,y2:r},n>r&&(i=t,t=e,e=i,i=r,r=n,n=i),e>t&&n===r&&(i=t,t=e,e=i),s=n;r>=s;s++)for(o=0,a=this.cols-1,s===n&&(o=e),s===r&&(a=t);a>=o;o++)l=this.lines[s][o][0],this.lines[s][o]=[-512&l|261636,this.lines[s][o][1]],this.lines[s][o].old=l;n-=this.ydisp,r-=this.ydisp,n=Math.max(n,0),n=Math.min(n,this.rows-1),r=Math.max(r,0),r=Math.min(r,this.rows-1),this.refresh(0,this.rows-1)},r.prototype.grabText=function(e,t,n,r){var i,o,s,a,l,u="",c="";for(n>r&&(l=t,t=e,e=l,l=r,r=n,n=l),e>t&&n===r&&(l=t,t=e,e=l),s=n;r>=s;s++){for(o=0,a=this.cols-1,s===n&&(o=e),s===r&&(a=t);a>=o;o++)i=this.lines[s][o][1]," "!==i?(c&&(u+=c,c=""),u+=i,p(i)&&o++):c+=i;c="",u+="\n"}for(o=t,s=r;o<this.cols;o++)if(" "!==this.lines[s][o][1]){u=u.slice(0,-1);break}return u},r.prototype.keyPrefix=function(e,t){"k"===t||"&"===t?this.destroy():"p"===t||"]"===t?this.emit("request paste"):"c"===t?this.emit("request create"):t>="0"&&"9">=t?(t=+t-1,~t||(t=9),this.emit("request term",t)):"n"===t?this.emit("request term next"):"P"===t?this.emit("request term previous"):":"===t?this.emit("request command mode"):"["===t&&this.enterSelect()},r.prototype.keySelect=function(e,t){if(this.showCursor(),this.searchMode||"n"===t||"N"===t)return this.keySearch(e,t);if(""===t){var n=this.ydisp+this.y;return this.ydisp===this.ybase?(this.y=Math.min(this.y+(this.rows-1)/2|0,this.rows-1),this.refresh(0,this.rows-1)):this.scrollDisp((this.rows-1)/2|0),void(this.visualMode&&this.selectText(this.x,this.x,n,this.ydisp+this.y))}if(""===t){var n=this.ydisp+this.y;return 0===this.ydisp?(this.y=Math.max(this.y-(this.rows-1)/2|0,0),this.refresh(0,this.rows-1)):this.scrollDisp(-(this.rows-1)/2|0),void(this.visualMode&&this.selectText(this.x,this.x,n,this.ydisp+this.y))}if(""===t){var n=this.ydisp+this.y;return this.scrollDisp(this.rows-1),void(this.visualMode&&this.selectText(this.x,this.x,n,this.ydisp+this.y))}if(""===t){var n=this.ydisp+this.y;return this.scrollDisp(-(this.rows-1)),void(this.visualMode&&this.selectText(this.x,this.x,n,this.ydisp+this.y))}if("k"===t||"[A"===t){var n=this.ydisp+this.y;return this.y--,this.y<0&&(this.y=0,this.scrollDisp(-1)),void(this.visualMode?this.selectText(this.x,this.x,n,this.ydisp+this.y):this.refresh(this.y,this.y+1))}if("j"===t||"[B"===t){var n=this.ydisp+this.y;return this.y++,this.y>=this.rows&&(this.y=this.rows-1,this.scrollDisp(1)),void(this.visualMode?this.selectText(this.x,this.x,n,this.ydisp+this.y):this.refresh(this.y-1,this.y))}if("h"===t||"[D"===t){var r=this.x;return this.x--,this.x<0&&(this.x=0),void(this.visualMode?this.selectText(r,this.x,this.ydisp+this.y,this.ydisp+this.y):this.refresh(this.y,this.y))}if("l"===t||"[C"===t){var r=this.x;return this.x++,this.x>=this.cols&&(this.x=this.cols-1),void(this.visualMode?this.selectText(r,this.x,this.ydisp+this.y,this.ydisp+this.y):this.refresh(this.y,this.y))}if("v"===t||" "===t)return void(this.visualMode?this.leaveVisual():this.enterVisual());if("y"!==t){if("q"===t||""===t)return void(this.visualMode?this.leaveVisual():this.leaveSelect());if("w"===t||"W"===t){for(var i=this.x,o=this.y,s=this.ydisp,r=this.x,n=this.y,a=this.ydisp,l=!1;;){for(var u=this.lines[a+n];r<this.cols;){if(u[r][1]<=" ")l=!0;else if(l)break;r++}if(r>=this.cols&&(r=this.cols-1),!(r===this.cols-1&&u[r][1]<=" "))break;if(r=0,++n>=this.rows&&(n--,++a>this.ybase)){a=this.ybase,r=this.x;break}}return this.x=r,this.y=n,this.scrollDisp(-this.ydisp+a),void(this.visualMode&&this.selectText(i,this.x,o+s,this.ydisp+this.y))}if("b"===t||"B"===t){for(var i=this.x,o=this.y,s=this.ydisp,r=this.x,n=this.y,a=this.ydisp;;){for(var u=this.lines[a+n],l=r>0&&u[r][1]>" "&&u[r-1][1]>" ";r>=0;){if(u[r][1]<=" "){if(l&&r+1<this.cols&&u[r+1][1]>" "){r++;break}l=!0}r--}if(0>r&&(r=0),0!==r||!(u[r][1]<=" ")&&l)break;if(r=this.cols-1,--n<0&&(n++,--a<0)){a++,r=0;break}}return this.x=r,this.y=n,this.scrollDisp(-this.ydisp+a),void(this.visualMode&&this.selectText(i,this.x,o+s,this.ydisp+this.y))}if("e"===t||"E"===t){var r=this.x+1,n=this.y,a=this.ydisp;for(r>=this.cols&&r--;;){for(var u=this.lines[a+n];r<this.cols&&u[r][1]<=" ";)r++;for(;r<this.cols;){if(u[r][1]<=" "&&r-1>=0&&u[r-1][1]>" "){r--;break}r++}if(r>=this.cols&&(r=this.cols-1),!(r===this.cols-1&&u[r][1]<=" "))break;if(r=0,++n>=this.rows&&(n--,++a>this.ybase)){a=this.ybase;break}}return this.x=r,this.y=n,this.scrollDisp(-this.ydisp+a),void(this.visualMode&&this.selectText(i,this.x,o+s,this.ydisp+this.y))}if("^"===t||"0"===t){var i=this.x;if("0"===t)this.x=0;else if("^"===t){for(var u=this.lines[this.ydisp+this.y],r=0;r<this.cols&&!(u[r][1]>" ");)r++;r>=this.cols&&(r=this.cols-1),this.x=r}return void(this.visualMode?this.selectText(i,this.x,this.ydisp+this.y,this.ydisp+this.y):this.refresh(this.y,this.y))}if("$"===t){for(var i=this.x,u=this.lines[this.ydisp+this.y],r=this.cols-1;r>=0;){if(u[r][1]>" "){this.visualMode&&r<this.cols-1&&r++;break}r--}return 0>r&&(r=0),this.x=r,void(this.visualMode?this.selectText(i,this.x,this.ydisp+this.y,this.ydisp+this.y):this.refresh(this.y,this.y))}if("g"===t||"G"===t){var i=this.x,o=this.y,s=this.ydisp;return"g"===t?(this.x=0,this.y=0,this.scrollDisp(-this.ydisp)):"G"===t&&(this.x=0,this.y=this.rows-1,this.scrollDisp(this.ybase)),void(this.visualMode&&this.selectText(i,this.x,o+s,this.ydisp+this.y))}if("H"===t||"M"===t||"L"===t){var i=this.x,o=this.y;return"H"===t?(this.x=0,this.y=0):"M"===t?(this.x=0,this.y=this.rows/2|0):"L"===t&&(this.x=0,this.y=this.rows-1),void(this.visualMode?this.selectText(i,this.x,this.ydisp+o,this.ydisp+this.y):(this.refresh(o,o),this.refresh(this.y,this.y)))}if("{"===t||"}"===t){var u,c,i=this.x,o=this.y,s=this.ydisp,p=!1,f=!1,h=-1,n=this.y+("{"===t?-1:1),a=this.ydisp;for("{"===t?0>n&&(n++,a>0&&a--):"}"===t&&n>=this.rows&&(n--,a<this.ybase&&a++);;){for(u=this.lines[a+n],c=0;c<this.cols;c++){if(u[c][1]>" "){-1===h&&(h=0),p=!0;break}if(c===this.cols-1){-1===h?h=1:0===h?f=!0:1===h&&p&&(f=!0);break}}if(f)break;if("{"===t){if(n--,0>n){if(n++,!(a>0))break;a--}}else if("}"===t&&(n++,n>=this.rows)){if(n--,!(a<this.ybase))break;a++}}return f||("{"===t?(n=0,a=0):"}"===t&&(n=this.rows-1,a=this.ybase)),this.x=0,this.y=n,this.scrollDisp(-this.ydisp+a),void(this.visualMode&&this.selectText(i,this.x,o+s,this.ydisp+this.y))}return"/"===t||"?"===t?void(this.visualMode||this.enterSearch("/"===t)):!1}if(this.visualMode){var d=this.grabText(this._selected.x1,this._selected.x2,this._selected.y1,this._selected.y2);this.copyText(d),this.leaveVisual()}},r.prototype.keySearch=function(e,t){if(""===t)return void this.leaveSearch();if("\r"===t||!this.searchMode&&("n"===t||"N"===t)){this.leaveSearch();var n=this.entry;if(!n)return void this.refresh(0,this.rows-1);for(var r,i,o,s=this.x,a=this.y,l=this.ydisp,u=!1,c=!1,p=this.x+1,f=this.ydisp+this.y,h="N"===t?this.searchDown:!this.searchDown;;){for(r=this.lines[f];p<this.cols;){for(o=0;o<n.length&&!(p+o>=this.cols)&&r[p+o][1]===n[o];o++)if(r[p+o][1]===n[o]&&o===n.length-1){u=!0;break}if(u)break;p+=o+1}if(u)break;if(p=0,h){if(f--,0>f){if(c)break;c=!0,f=this.ybase+this.rows-1}}else if(f++,f>this.ybase+this.rows-1){if(c)break;c=!0,f=0}}return u?(f-this.ybase<0?(i=f,f=0,i>this.ybase&&(f=i-this.ybase,i=this.ybase)):(i=this.ybase,f-=this.ybase),this.x=p,this.y=f,this.scrollDisp(-this.ydisp+i),void(this.visualMode&&this.selectText(s,this.x,a+l,this.ydisp+this.y))):void this.refresh(0,this.rows-1)}if("\b"===t||""===t){if(0===this.entry.length)return;var d=this.ydisp+this.rows-1;this.entry=this.entry.slice(0,-1);var o=this.entryPrefix.length+this.entry.length;return this.lines[d][o]=[this.lines[d][o][0]," "],this.x--,this.refresh(this.rows-1,this.rows-1),void this.refresh(this.y,this.y)}if(1===t.length&&t>=" "&&"~">=t){var d=this.ydisp+this.rows-1;this.entry+=t;var o=this.entryPrefix.length+this.entry.length-1;return this.lines[d][o]=[-512&this.defAttr|4,t],this.x++,this.refresh(this.rows-1,this.rows-1),void this.refresh(this.y,this.y)}return!1},r.charsets={},r.charsets.SCLD={"`":"◆",a:"▒",b:" ",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"",i:"\x0B",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},r.charsets.UK=null,r.charsets.US=null,r.charsets.Dutch=null,r.charsets.Finnish=null,r.charsets.French=null,r.charsets.FrenchCanadian=null,r.charsets.German=null,r.charsets.Italian=null,r.charsets.NorwegianDanish=null,r.charsets.Spanish=null,r.charsets.Swedish=null,r.charsets.Swiss=null,r.charsets.ISOLatin=null;var w=this.String,S=this.setTimeout,P=this.setInterval;f._cache={},f.distance=function(e,t,n,r,i,o){return Math.pow(30*(e-r),2)+Math.pow(59*(t-i),2)+Math.pow(11*(n-o),2)},r.EventEmitter=e,r.Stream=n,r.inherits=a,r.on=i,r.off=o,r.cancel=s,"undefined"!=typeof t?t.exports=r:this.Terminal=r}).call(function(){return this||("undefined"!=typeof window?window:e)}())}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],595:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){function n(r,i){function s(e,n){var r=h.getLinkName(e),o=this.props[i[e]];r&&l(this.props,r)&&!o&&(o=this.props[r].requestChange);for(var s=arguments.length,a=Array(s>2?s-2:0),u=2;s>u;u++)a[u-2]=arguments[u];t(this,e,o,n,a)}function l(e,t){return void 0!==e[t]}var c,f=arguments.length<=2||void 0===arguments[2]?[]:arguments[2],d=r.displayName||r.name||"Component",m=h.getType(r).propTypes,b=h.isReactComponent(r);c=h.uncontrolledPropTypes(i,m,d),(0,p["default"])(b||!f.length,"[uncontrollable] stateless function components cannot pass through methods becasue they have no associated instances. Check component: "+d+", attempting to pass through methods: "+f.join(", ")),f=h.transform(f,function(e,t){e[t]=function(){var e;return(e=this.refs.inner)[t].apply(e,arguments)}},{});var y=u["default"].createClass(a({displayName:"Uncontrolled("+d+")",mixins:e,propTypes:c},f,{componentWillMount:function(){var e=this.props,t=Object.keys(i);this._values=h.transform(t,function(t,n){t[n]=e[h.defaultKey(n)]},{})},componentWillReceiveProps:function(e){var t=this,n=this.props,r=Object.keys(i);r.forEach(function(r){void 0===h.getValue(e,r)&&void 0!==h.getValue(n,r)&&(t._values[r]=e[h.defaultKey(r)])})},render:function(){var e=this,t={},n=this.props,c=(n.valueLink,n.checkedLink,o(n,["valueLink","checkedLink"]));return h.each(i,function(n,r){var i=h.getLinkName(r),o=e.props[r];i&&!l(e.props,r)&&l(e.props,i)&&(o=e.props[i].value),t[r]=void 0!==o?o:e._values[r],t[n]=s.bind(e,r)}),t=a({},c,t,{ref:b?"inner":null}),u["default"].createElement(r,t)}}));return y.ControlledComponent=r,y.deferControlTo=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments[2];return n(e,a({},i,t),r)},y}return n}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n["default"]=s;var l=e("react"),u=i(l),c=e("invariant"),p=i(c),f=e("./utils"),h=r(f);t.exports=n["default"]},{"./utils":597,invariant:179,react:581}],596:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n,r,i){n&&(e._notifying=!0,n.call.apply(n,[e,r].concat(i)),e._notifying=!1),e._values[t]=r,e.isMounted()&&e.forceUpdate()}n.__esModule=!0;var o=e("./createUncontrollable"),s=r(o),a={shouldComponentUpdate:function(){return!this._notifying}};n["default"]=(0,s["default"])([a],i),t.exports=n["default"]},{"./createUncontrollable":595}],597:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){return function(r,i){return void 0!==r[i]?r[e]?t&&t(r,i,n):new Error("You have provided a `"+i+"` prop to `"+n+"` without an `"+e+"` handler. This will render a read-only field. If the field should be mutable use `"+c(i)+"`. Otherwise, set `"+e+"`"):void 0}}function o(e,n,r){var o={};return"production"!==t.env.NODE_ENV&&n&&f(e,function(e,t,o){var s=n[o];(0,g["default"])("string"==typeof t&&t.trim().length,"Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable",r,o),e[o]=i(t,s,r),void 0!==s&&(e[c(o)]=s)},o),o}function s(e){return _[0]>=15||0===_[0]&&_[1]>=13?e:e.type}function a(e,t){var n=u(t);return n&&!l(e,t)&&l(e,n)?e[n].value:e[t]}function l(e,t){return void 0!==e[t]}function u(e){return"value"===e?"valueLink":"checked"===e?"checkedLink":null}function c(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function p(e,t,n){return function(){for(var r=arguments.length,i=Array(r),o=0;r>o;o++)i[o]=arguments[o];t&&t.call.apply(t,[e].concat(i)),n&&n.call.apply(n,[e].concat(i))}}function f(e,t,n){return h(e,t.bind(null,n=n||(Array.isArray(e)?[]:{}))),n}function h(e,t,n){if(Array.isArray(e))return e.forEach(t,n);for(var r in e)m(e,r)&&t.call(n,e[r],r,e)}function d(e){return!!(e&&e.prototype&&e.prototype.isReactComponent)}function m(e,t){return e?Object.prototype.hasOwnProperty.call(e,t):!1}n.__esModule=!0,n.version=void 0,n.customPropType=i,n.uncontrolledPropTypes=o,n.getType=s,n.getValue=a,n.getLinkName=u,n.defaultKey=c,n.chain=p,n.transform=f,n.each=h,n.isReactComponent=d,n.has=m;var b=e("react"),y=r(b),v=e("invariant"),g=r(v),_=n.version=y["default"].version.split(".").map(parseFloat)}).call(this,e("_process"))},{_process:269,invariant:179,react:581}],598:[function(e,t,n){function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,n){if(e&&u(e)&&e instanceof r)return e;var i=new r;return i.parse(e,t,n),i}function o(e){return l(e)&&(e=i(e)),e instanceof r?e.format():r.prototype.format.call(e)}function s(e,t){return i(e,!1,!0).resolve(t)}function a(e,t){return e?i(e,!1,!0).resolveObject(t):t}function l(e){return"string"==typeof e}function u(e){return"object"==typeof e&&null!==e}function c(e){return null===e}function p(e){return null==e}var f=e("punycode");n.parse=i,n.resolve=s,n.resolveObject=a,n.format=o,n.Url=r;var h=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,m=["<",">",'"',"`"," ","\r","\n"," "],b=["{","}","|","\\","^","`"].concat(m),y=["'"].concat(b),v=["%","/","?",";","#"].concat(y),g=["/","?","#"],_=255,T=/^[a-z0-9A-Z_-]{0,63}$/,E=/^([a-z0-9A-Z_-]{0,63})(.*)$/,C={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=e("querystring");r.prototype.parse=function(e,t,n){if(!l(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e;r=r.trim();var i=h.exec(r);if(i){i=i[0];var o=i.toLowerCase();this.protocol=o,r=r.substr(i.length)}if(n||i||r.match(/^\/\/[^@\/]+@[^@\/]+/)){var s="//"===r.substr(0,2);!s||i&&w[i]||(r=r.substr(2),this.slashes=!0)}if(!w[i]&&(s||i&&!S[i])){for(var a=-1,u=0;u<g.length;u++){var c=r.indexOf(g[u]);-1!==c&&(-1===a||a>c)&&(a=c)}var p,d;d=-1===a?r.lastIndexOf("@"):r.lastIndexOf("@",a),-1!==d&&(p=r.slice(0,d),r=r.slice(d+1),this.auth=decodeURIComponent(p)),a=-1;for(var u=0;u<v.length;u++){var c=r.indexOf(v[u]);-1!==c&&(-1===a||a>c)&&(a=c)}-1===a&&(a=r.length),this.host=r.slice(0,a),r=r.slice(a),this.parseHost(),this.hostname=this.hostname||"";var m="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!m)for(var b=this.hostname.split(/\./),u=0,x=b.length;x>u;u++){var k=b[u];if(k&&!k.match(T)){for(var M="",A=0,O=k.length;O>A;A++)M+=k.charCodeAt(A)>127?"x":k[A];if(!M.match(T)){var N=b.slice(0,u),I=b.slice(u+1),D=k.match(E);D&&(N.push(D[1]),I.unshift(D[2])),I.length&&(r="/"+I.join(".")+r),this.hostname=N.join(".");break}}}if(this.hostname.length>_?this.hostname="":this.hostname=this.hostname.toLowerCase(),!m){for(var R=this.hostname.split("."),L=[],u=0;u<R.length;++u){var j=R[u];L.push(j.match(/[^A-Za-z0-9_-]/)?"xn--"+f.encode(j):j)}this.hostname=L.join(".")}var U=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+U,this.href+=this.host,m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==r[0]&&(r="/"+r))}if(!C[o])for(var u=0,x=y.length;x>u;u++){var B=y[u],H=encodeURIComponent(B);H===B&&(H=escape(B)),r=r.split(B).join(H)}var K=r.indexOf("#");-1!==K&&(this.hash=r.substr(K),r=r.slice(0,K));var G=r.indexOf("?");if(-1!==G?(this.search=r.substr(G),this.query=r.substr(G+1),t&&(this.query=P.parse(this.query)),r=r.slice(0,G)):t&&(this.search="",this.query={}),r&&(this.pathname=r),S[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var U=this.pathname||"",j=this.search||"";this.path=U+j}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&u(this.query)&&Object.keys(this.query).length&&(o=P.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||S[t])&&i!==!1?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),s=s.replace("#","%23"),t+i+n+s+r},r.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(l(e)){var t=new r;t.parse(e,!1,!0),e=t}var n=new r;if(Object.keys(this).forEach(function(e){n[e]=this[e]},this),n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(n[t]=e[t])}),S[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n;if(e.protocol&&e.protocol!==n.protocol){if(!S[e.protocol])return Object.keys(e).forEach(function(t){n[t]=e[t]}),n.href=n.format(),n;if(n.protocol=e.protocol,e.host||w[e.protocol])n.pathname=e.pathname;else{for(var i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),n.pathname=i.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var o=n.pathname||"",s=n.search||"";n.path=o+s}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var a=n.pathname&&"/"===n.pathname.charAt(0),u=e.host||e.pathname&&"/"===e.pathname.charAt(0),f=u||a||n.host&&e.pathname,h=f,d=n.pathname&&n.pathname.split("/")||[],i=e.pathname&&e.pathname.split("/")||[],m=n.protocol&&!S[n.protocol];if(m&&(n.hostname="",n.port=null,n.host&&(""===d[0]?d[0]=n.host:d.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),f=f&&(""===i[0]||""===d[0])),u)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,d=i;else if(i.length)d||(d=[]),d.pop(),d=d.concat(i),n.search=e.search,n.query=e.query;else if(!p(e.search)){if(m){n.hostname=n.host=d.shift();var b=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;b&&(n.auth=b.shift(),n.host=n.hostname=b.shift())}return n.search=e.search,n.query=e.query,c(n.pathname)&&c(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!d.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var y=d.slice(-1)[0],v=(n.host||e.host)&&("."===y||".."===y)||""===y,g=0,_=d.length;_>=0;_--)y=d[_],"."==y?d.splice(_,1):".."===y?(d.splice(_,1),g++):g&&(d.splice(_,1),g--);if(!f&&!h)for(;g--;g)d.unshift("..");!f||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),v&&"/"!==d.join("/").substr(-1)&&d.push("");var T=""===d[0]||d[0]&&"/"===d[0].charAt(0);if(m){n.hostname=n.host=T?"":d.length?d.shift():"";var b=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;b&&(n.auth=b.shift(),n.host=n.hostname=b.shift())}return f=f||n.host&&d.length,f&&!T&&d.unshift(""),d.length?n.pathname=d.join("/"):(n.pathname=null,n.path=null),c(n.pathname)&&c(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:270,querystring:273}],599:[function(e,t,n){"use strict";var r=function(){};t.exports=r},{}],600:[function(e,t,n){var r=arguments[3],i=arguments[4],o=arguments[5],s=JSON.stringify;t.exports=function(e){for(var t,n=Object.keys(o),a=0,l=n.length;l>a;a++){var u=n[a],c=o[u].exports;if(c===e||c["default"]===e){t=u;break}}if(!t){t=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var p={},a=0,l=n.length;l>a;a++){var u=n[a];p[u]=u}i[t]=[Function(["require","module","exports"],"("+e+")(self)"),p]}var f=Math.floor(Math.pow(16,8)*Math.random()).toString(16),h={};h[t]=t,i[f]=[Function(["require"],"var f = require("+s(t)+");(f.default ? f.default : f)(self);"),h];var d="("+r+")({"+Object.keys(i).map(function(e){return s(e)+":["+i[e][0]+","+s(i[e][1])+"]"}).join(",")+"},{},["+s(f)+"])",m=window.URL||window.webkitURL||window.mozURL||window.msURL;return new Worker(m.createObjectURL(new Blob([d],{type:"text/javascript"})))}},{}],601:[function(e,t,n){!function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e=String(e)),e}function r(e){this.map={},e instanceof r?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function o(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader;return t.readAsArrayBuffer(e),o(t)}function a(e){var t=new FileReader;return t.readAsText(e),o(t)}function l(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(d.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(d.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!d.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type&&this.headers.set("content-type",this._bodyBlob.type))},d.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(s)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function u(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var n=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new r(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new r(t.headers)),this.method=u(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function p(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function f(e){var t=new r,n=e.getAllResponseHeaders().trim().split("\n");return n.forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),i=n.join(":").trim();t.append(r,i)}),t}function h(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof r?t.headers:new r(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){r.prototype.append=function(e,r){e=t(e),r=n(r);var i=this.map[e];i||(i=[],this.map[e]=i),i.push(r)},r.prototype["delete"]=function(e){delete this.map[t(e)]},r.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},r.prototype.getAll=function(e){return this.map[t(e)]||[]},r.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},r.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},
|
||
r.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)};var d={blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},l.call(c.prototype),l.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new r(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];h.redirect=function(e,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},e.Headers=r,e.Request=c,e.Response=h,e.fetch=function(e,t){return new Promise(function(n,r){function i(){return"responseURL"in s?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var s=new XMLHttpRequest;s.onload=function(){var e=1223===s.status?204:s.status;if(100>e||e>599)return void r(new TypeError("Network request failed"));var t={status:e,statusText:s.statusText,headers:f(s),url:i()},o="response"in s?s.response:s.responseText;n(new h(o,t))},s.onerror=function(){r(new TypeError("Network request failed"))},s.open(o.method,o.url,!0),"include"===o.credentials&&(s.withCredentials=!0),"responseType"in s&&d.blob&&(s.responseType="blob"),o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),s.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},{}],602:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var s=e("react"),a=o(s),l=e("react-dom"),u=e("react-redux"),c=e("./store/configure-store"),p=o(c),f=e("./actions/app"),h=e("./common/lib/remote"),d=o(h),m=e("./components/app"),b=o(m),y=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e);var n="undefined"!=typeof t.header?t.header:!0,r=t.agentLastContact,o=t.agentIsBusy,s=t.logo,a=t.section,l=t.handleDisconnect;d["default"].initialize(t);var u={app:{logoURL:s,showHeader:n,handleDisconnect:l||function(){}}};"undefined"!=typeof a&&(u.app.sections={active:a}),"undefined"!=typeof r&&(u.app.agentLastContact=r),"undefined"!=typeof o&&(u.app.agentIsBusy=o),this._store=(0,p["default"])(u)}return r(e,[{key:"renderIn",value:function(e){return(0,l.render)(a["default"].createElement(u.Provider,{store:this._store},a["default"].createElement(b["default"],null)),e),this}},{key:"changeSection",value:function(e){this._store.dispatch((0,f.selectSection)(e))}},{key:"logo",get:function(){return this._store.getState().app.logoURL}},{key:"header",get:function(){return this._store.getState().app.showHeader}},{key:"handleDisconnect",get:function(){return this._store.getState().app.handleDisconnect}},{key:"agentLastContact",get:function(){return this._store.getState().app.agentLastContact}},{key:"agentIsBusy",get:function(){return this._store.getState().app.agentIsBusy}},{key:"section",get:function(){return this._store.getState().app.sections.active}},{key:"state",get:function(){return this._store.getState()}},{key:"remote",get:function(){return d["default"]}}]),e}();n["default"]=y,t.exports=n["default"]},{"./actions/app":604,"./common/lib/remote":630,"./components/app":633,"./store/configure-store":708,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/interop-require-default":21,react:581,"react-dom":387,"react-redux":414}],603:[function(e,t,n){"use strict";function r(){return{type:S.RESET_AGENT_STATE}}function i(){return{type:S.CLEAR_CONN_ERROR}}function o(){return{type:S.CONN_AGENT_REQUEST}}function s(e){return{type:S.CONN_AGENT_SUCCESS,payload:{connectedAt:e}}}function a(e){return{type:S.CONN_AGENT_FAILURE,payload:{errorCode:e.response.code,errorMessage:e.response.reason}}}function l(){return{type:S.DISCONN_AGENT_REQUEST}}function u(){return{type:S.DISCONN_AGENT_SUCCESS}}function c(){return{type:S.CLEAR_AUTH_ERROR}}function p(){return{type:S.REVOKE_AGENT_AUTH}}function f(){return{type:S.AUTH_AGENT_REQUEST}}function h(){return{type:S.AUTH_AGENT_SUCCESS}}function d(e){return{type:S.AUTH_AGENT_FAILURE,payload:{errorCode:e.response.code,errorMessage:e.response.reason}}}function m(e){return function(t,n){t(f()),C["default"].send({proto:w.PROTO.AGENT_PASS,data:e})}}function b(){return{type:S.FETCH_AGENT_REQUEST}}function y(e,t){return{type:S.FETCH_AGENT_SUCCESS,payload:{data:e,receivedAt:t}}}function v(e){return{type:S.FETCH_AGENT_FAILURE,payload:{errorCode:e.response.status,errorMessage:e.response.statusText}}}function g(){return{type:S.CLEAR_AGENT_ERROR}}function _(){return function(e,t){e(b()),C["default"].send({proto:w.PROTO.SYSTEM,data:{action:"get"}})}}var T=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0}),n.resetAgentState=r,n.clearConnectionError=i,n.connectionAgentRequest=o,n.connectionAgentSuccess=s,n.connectionAgentFailure=a,n.disconnectionAgentRequest=l,n.disconnectionAgentSuccess=u,n.clearAuthenticationError=c,n.revokeAgentAuthentication=p,n.autenticateAgentRequest=f,n.autenticateAgentSuccess=h,n.autenticateAgentFailure=d,n.sendAgentPassword=m,n.fetchAgentRequest=b,n.fetchAgentSuccess=y,n.fetchAgentFailure=v,n.clearAgentError=g,n.fetchAgent=_;var E=e("../common/lib/remote"),C=T(E),w=e("../constants"),S=e("../constants/agent")},{"../common/lib/remote":630,"../constants":654,"../constants/agent":650,"babel-runtime/helpers/interop-require-default":21}],604:[function(e,t,n){"use strict";function r(e){return{type:g.SELECT_SECTION,payload:{key:e}}}function i(e){return{type:g.ENABLE_SECTION,payload:{key:e}}}function o(e){return{type:g.DISABLE_SECTION,payload:{key:e}}}function s(e,t){return{type:g.UPDATE_SECTION,payload:{key:e,data:t}}}function a(){return{type:g.FETCH_SECTIONS_REQUEST}}function l(e,t){return{type:g.FETCH_SECTIONS_SUCCESS,payload:{items:e}}}function u(e){return{type:g.FETCH_SECTIONS_FAILURE,payload:{status:e.response.status,statusText:e.response.statusText}}}function c(){return function(e,t){e(a()),y["default"].send({proto:v.PROTO.SYSTEM,data:{action:"section"}})}}function p(e){return{type:g.UPDATE_LOGO_URL,payload:{logoURL:e}}}function f(){return{type:g.SHOW_HEADER}}function h(){return{type:g.HIDE_HEADER}}function d(e){return{type:g.UPDATE_DISCONNECT_HANDLER,payload:{handleDisconnect:e}}}var m=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0}),n.selectSection=r,n.enableSection=i,n.disableSection=o,n.updateSection=s,n.fetchSectionsRequest=a,n.fetchSectionsSuccess=l,n.fetchSectionsFailure=u,n.fetchSections=c,n.updateLogoURL=p,n.showHeader=f,n.hideHeader=h,n.updateDisconnectHandler=d;var b=e("../common/lib/remote"),y=m(b),v=e("../constants"),g=e("../constants/app")},{"../common/lib/remote":630,"../constants":654,"../constants/app":651,"babel-runtime/helpers/interop-require-default":21}],605:[function(e,t,n){"use strict";function r(){return{type:b.RESET_DISPLAY_STATE}}function i(e){return{type:b.UPDATE_DISPLAY_DATA,payload:{data:e}}}function o(){return{type:b.CLEAR_DISPLAY_ERROR}}function s(){return{type:b.CONN_DISPLAY_REQUEST}}function a(){return{type:b.CONN_DISPLAY_SUCCESS}}function l(e){return{type:b.CONN_DISPLAY_FAILURE,payload:{errorCode:e.response.code,errorMessage:e.response.reason}}}function u(){return{type:b.DISCONN_DISPLAY_REQUEST}}function c(){return function(e,t){d["default"].send({proto:m.PROTO.DISPLAY_CLOSE}),e(u())}}function p(){return{type:b.DISCONN_DISPLAY_SUCCESS}}var f=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0}),n.resetDisplayState=r,n.updateDisplayData=i,n.clearDisplayError=o,n.connectionDisplayRequest=s,n.connectionDisplaySuccess=a,n.connectionDisplayFailure=l,n.disconnectionDisplayRequest=u,n.disconectDisplay=c,n.disconnectionDisplaySuccess=p;var h=e("../common/lib/remote"),d=f(h),m=e("../constants"),b=e("../constants/display")},{"../common/lib/remote":630,"../constants":654,"../constants/display":653,"babel-runtime/helpers/interop-require-default":21}],606:[function(e,t,n){"use strict";function r(){return{type:m.RESET_TERM_STATE}}function i(e,t){return{type:m.INIT_TERM_REQUEST,payload:{cols:e,rows:t}}}function o(e){return{type:m.INIT_TERM_SUCCESS,payload:{initializedAt:e}}}function s(e){return{type:m.INIT_TERM_FAILURE,payload:{status:e.response.status,statusText:e.response.statusText}}}function a(){return{type:m.CLEAR_TERM_ERROR}}function l(e,t){return function(n,r){n(i(e,t)),h["default"].send({proto:d.PROTO.TERM_INIT,data:{cols:e,rows:t}})}}function u(e,t){return{type:m.SAVE_TERM_DATA,payload:{newData:e,dataReveivedAt:t}}}function c(e){return function(t,n){h["default"].send({proto:d.PROTO.TERM,data:e})}}var p=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0}),n.resetTermState=r,n.initializeTermRequest=i,n.initializeTermSuccess=o,n.initializeTermFailure=s,n.clearTermError=a,n.initializeTerm=l,n.saveTermData=u,n.sendTermData=c;var f=e("../common/lib/remote"),h=p(f),d=e("../constants"),m=e("../constants/terminal")},{"../common/lib/remote":630,"../constants":654,"../constants/terminal":655,"babel-runtime/helpers/interop-require-default":21}],607:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"];Object.defineProperty(n,"__esModule",{value:!0});var a=e("react"),l=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e)}return i(t,e),o(t,[{key:"_bind",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];n.forEach(function(t){"undefined"!=typeof e[t]&&(e[t]=e[t].bind(e))})}}]),t}(a.Component);n["default"]=l,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,react:581}],608:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("classnames"),p=a(c),f=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this._handleCellClick=this._handleCellClick.bind(this)}return i(t,e),o(t,[{key:"_handleCellClick",value:function(e){var t=this;return"function"==typeof this.props.onCellClick?function(n){return t.props.onCellClick(n,e)}:null}},{key:"render",value:function(){var e=this.props,t=e.columnKey,n=e.align,r=e.width,i=e.cellFormatter,o=e.children,s={width:r?r:"auto"},a=["text-"+n],l="function"==typeof i?i(o):o,c={columnKey:t,children:o,align:n,width:r};return u["default"].createElement("td",{className:(0,p["default"])(a),style:s,onClick:this._handleCellClick(c)},l)}}]),t}(u["default"].Component);f.propTypes={columnKey:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]).isRequired,align:u["default"].PropTypes.oneOf(["left","center","right"]),width:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),cellFormatter:u["default"].PropTypes.func,onCellClick:u["default"].PropTypes.func,children:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number,u["default"].PropTypes.bool,u["default"].PropTypes.object])},f.defaultProps={align:"center"},n["default"]=f,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,classnames:29,react:581}],609:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("classnames"),p=a(c),f=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.align,n=e.width,r=e.headFormatter,i=e.children,o=e.onClick,s=e.sortButton,a=["text-"+t],l={width:n?n:"auto"};"function"==typeof o&&(l.cursor="pointer");var c="function"==typeof r?r(i):i;return u["default"].createElement("th",{className:(0,p["default"])(a),style:l,onClick:o},c,s&&s)}}]),t}(u["default"].Component);f.propTypes={columnKey:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]).isRequired,align:u["default"].PropTypes.oneOf(["left","center","right"]),width:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),headFormatter:u["default"].PropTypes.func,sortButton:u["default"].PropTypes.element,onClick:u["default"].PropTypes.oneOfType([u["default"].PropTypes.func,u["default"].PropTypes.bool]),children:u["default"].PropTypes.node.isRequired},f.defaultProps={align:"center"},n["default"]=f,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,classnames:29,react:581}],610:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("classnames"),p=a(c),f=e("../lib/Column"),h=a(f),d=e("./Cell"),m=a(d),b=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.columns,n=e.data,r=e.selected,i=e.rowSelection,o={info:r},s={cursor:"pointer"},a="undefined"!=typeof i?function(e){return i(n,!r)}:null;return u["default"].createElement("tr",{className:(0,p["default"])(o),onClick:a,style:s},t.map(function(e){return e.hidden?null:u["default"].createElement(m["default"],{key:e.dataKey,columnKey:e.dataKey,align:e.align,width:e.width,cellFormatter:e.cellFormatter},n[e.dataKey])}))}}]),t}(u["default"].Component);b.propTypes={columns:u["default"].PropTypes.arrayOf(u["default"].PropTypes.instanceOf(h["default"])).isRequired,data:u["default"].PropTypes.object.isRequired,selected:u["default"].PropTypes.bool,rowSelection:u["default"].PropTypes.func},b.defaultProps={selected:!1},n["default"]=b,t.exports=n["default"]},{"../lib/Column":615,"./Cell":608,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,classnames:29,react:581}],611:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("../lib/Column"),p=a(c),f=e("./Row"),h=a(f),d=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.data,n=e.columns,r=e.keyValue,i=e.keyValueSelected,o=e.rowSelection;return u["default"].createElement("tbody",null,t.map(function(e,t){var s=!1;return"undefined"!=typeof r&&"undefined"!=typeof i&&("string"==typeof i&&i.length>0||"number"==typeof i)&&"undefined"!=typeof e[r]&&(s=e[r]===i),u["default"].createElement(h["default"],{key:t,columns:n,data:e,keyValue:r,selected:s,rowSelection:o})}))}}]),t}(u["default"].Component);d.propTypes={columns:l.PropTypes.arrayOf(l.PropTypes.instanceOf(p["default"])).isRequired,data:l.PropTypes.arrayOf(l.PropTypes.object).isRequired,keyValue:l.PropTypes.oneOfType([l.PropTypes.string,l.PropTypes.number]),keyValueSelected:l.PropTypes.oneOfType([l.PropTypes.string,l.PropTypes.number]),rowSelection:l.PropTypes.func},n["default"]=d,t.exports=n["default"]},{"../lib/Column":615,"./Row":610,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581}],612:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-bootstrap"),p=e("./HeadCell"),f=a(p),h=e("../lib/Column"),d=a(h),m=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.renderSortButton=this.renderSortButton.bind(this)}return i(t,e),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.columns,r=t.orderBy,i=t.changeOrder,o=t.changeSortHandler;return u["default"].createElement("thead",null,u["default"].createElement("tr",null,n.map(function(t){return e.renderHeadCell(t,r,i,o)})))}},{key:"renderHeadCell",value:function(e,t,n,r){if(e.hidden)return null;var i=null;e.sortable&&e.dataKey===t.columnKey&&(i=this.renderSortButton(e.sortProps.type,t.value));var o=function(i){i.preventDefault(),r(e.sortProps["sort-handler"]),t.columnKey!==e.dataKey?n(e.dataKey,"ASC"):"ASC"===t.value?n(e.dataKey,"DESC"):"DESC"===t.value&&n("","ASC")};return u["default"].createElement(f["default"],{key:e.dataKey,columnKey:e.dataKey,align:e.align,width:e.width,headFormatter:e.headFormatter,sortButton:i,onClick:e.sortable?o:!1,filterButton:null},e.name)}},{key:"renderSortButton",value:function(e,t){var n="";return n="string"===e?"DESC"===t?"sort-by-alphabet-alt":"sort-by-alphabet":"number"===e?"DESC"===t?"sort-by-order-alt":"sort-by-order":"DESC"===t?"sort-by-attributes-alt":"sort-by-attributes",u["default"].createElement(c.Glyphicon,{style:{paddingLeft:"10px"},glyph:n,className:"pull-right"})}}]),t}(u["default"].Component);m.propTypes={columns:u["default"].PropTypes.arrayOf(u["default"].PropTypes.instanceOf(d["default"])).isRequired,orderBy:u["default"].PropTypes.object.isRequired,changeOrder:u["default"].PropTypes.func.isRequired,changeSortHandler:u["default"].PropTypes.func},n["default"]=m,t.exports=n["default"]},{"../lib/Column":615,"./HeadCell":609,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],613:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("classnames"),p=a(c),f=e("../lib/Column"),h=a(f),d=e("./THead"),m=a(d),b=e("./TBody"),y=a(b),v=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={orderBy:this.props.orderBy,keyValueSelected:this.props.keyValueSelected,handleSort:!1},this._onRowSelection=this._onRowSelection.bind(this),this._changeOrder=this._changeOrder.bind(this),this._changeSortHandler=this._changeSortHandler.bind(this)}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.columns,n=e.data,r=e.keyValue,i=e.responsive,o=e.bordered,s=e.condensed,a=e.hover,l=e.striped,c=this.state,f=c.orderBy,h=c.keyValueSelected,d=c.handleSort,b=f.columnKey,v=f.value,g=d||this.defaultHandleSort,_=f.columnKey.length>0?n.sort(g(b,v)):n.slice(),T={table:!0,"table-bordered":o,"table-condensed":s,"table-hover":a,"table-striped":l},E=u["default"].createElement("table",{className:(0,p["default"])(T)},u["default"].createElement(m["default"],{columns:t,orderBy:f,changeOrder:this._changeOrder,changeSortHandler:this._changeSortHandler}),u["default"].createElement(y["default"],{keyValue:r,keyValueSelected:h,columns:t,data:_,rowSelection:this._onRowSelection}));return i?u["default"].createElement("div",null,E):E}},{key:"defaultHandleSort",value:function(e,t){return function(n,r){if("undefined"==typeof n[e]||"undefined"==typeof r[e])return 0;var i=n[e],o=r[e];return"string"==typeof i&&(i=i.toLowerCase()),"string"==typeof o&&(o=o.toLowerCase()),"ASC"===t?o>i?-1:i>o?1:0:i>o?-1:o>i?1:0}}},{key:"_changeOrder",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?"ASC":arguments[1];"string"==typeof e&&("ASC"!==t&&"DESC"!==t||this.setState({orderBy:{columnKey:e,value:t}}))}},{key:"_changeSortHandler",value:function(e){this.setState({handleSort:e})}},{key:"_onRowSelection",value:function(e,t){var n=this.props,r=n.keyValue,i=n.onRowSelected,o=n.onRowUnselected;if("undefined"!=typeof r){var s="undefined"!=typeof e[r]?e[r]:!1;s!==!1&&(this.setState({keyValueSelected:t?s:""}),t&&i?i(s,e):!t&&o&&o(s,e))}}}]),t}(u["default"].Component);v.propTypes={columns:u["default"].PropTypes.arrayOf(u["default"].PropTypes.instanceOf(h["default"])),data:u["default"].PropTypes.arrayOf(u["default"].PropTypes.object),keyValue:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),keyValueSelected:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),onRowSelected:u["default"].PropTypes.func,onRowUnselected:u["default"].PropTypes.func,orderBy:u["default"].PropTypes.object,bordered:u["default"].PropTypes.bool,condensed:u["default"].PropTypes.bool,hover:u["default"].PropTypes.bool,responsive:u["default"].PropTypes.bool,striped:u["default"].PropTypes.bool},v.defaultProps={columns:[],data:[],orderBy:{columnKey:"",value:"ASC"},bordered:!1,condensed:!1,hover:!1,responsive:!1,striped:!1},n["default"]=v,t.exports=n["default"]},{"../lib/Column":615,"./TBody":611,"./THead":612,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,classnames:29,react:581}],614:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("./components/Table"),o=r(i),s=e("./lib/Column"),a=r(s);n["default"]=o["default"],n.DataColumn=a["default"]},{"./components/Table":613,"./lib/Column":615,"babel-runtime/helpers/interop-require-default":21}],615:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"];Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e),this.hidden=t.hidden||!1,this.dataKey=t.dataKey,this.name=t.name,this.align=t.align||"left",this.width=t.width||"auto",this.headFormatter=t.headFormatter,this.cellFormatter=t.cellFormatter,this.onCellClick=t.onCellClick,this.sortable=t.sortable||!1,this.sortBy=t.sortBy||"ASC",this.sortProps=t.sortProps}return r(e,[{key:"hidden",set:function(e){var t=typeof e;"boolean"===t?this._hidden=e:this._hidden=!1},get:function(){return this._hidden}},{key:"dataKey",set:function(e){var t=typeof e;if("undefined"===t)throw new TypeError("The data key is required");if("string"!==t&&"number"!==t)throw new TypeError("The data key of the column should be a string or a number");this._dataKey=e},get:function(){return this._dataKey}},{key:"name",set:function(e){var t=typeof e;"string"===t&&(this._name=e)},get:function(){return this._name}},{key:"align",set:function(e){var t=["left","center","right"],n=typeof e;"string"===n&&-1!==t.indexOf(e)&&(this._align=e)},get:function(){return this._align}},{key:"width",set:function(e){var t=typeof e;"number"===t?this._width=e+"px":"string"===t&&(this._width=e)},get:function(){return this._width}},{key:"headFormatter",set:function(e){var t=typeof e;"function"===t&&(this._headFormatter=e)},get:function(){return this._headFormatter}},{key:"cellFormatter",set:function(e){var t=typeof e;"function"===t&&(this._cellFormatter=e)},get:function(){return this._cellFormatter}},{key:"onCellClick",set:function(e){var t=typeof e;"function"===t&&(this._onCellClick=e)},get:function(){return this._onCellClick}},{key:"sortable",set:function(e){var t=typeof e;"boolean"===t?this._sortable=e:this._sortable=!1},get:function(){return this._sortable}},{key:"sortBy",set:function(e){var t=typeof e;"string"!==t||"ASC"!==t&&"DESC"!==t?this._sortBy="ASC":this._sortBy=e},get:function(){return this._sortBy}},{key:"sortProps",set:function(t){"undefined"==typeof this._sortProps&&(this._sortProps=e.defaultSortProps);var n=typeof t;"object"===n?("undefined"==typeof t.type||"number"!==t.type&&"string"!==t.type?this._sortProps.type=e.defaultSortProps.type:this._sortProps.type=t.type,"function"==typeof t["sort-handler"]?this._sortProps["sort-handler"]=t["sort-handler"]:this._sortProps["sort-handler"]=e.defaultSortProps["sort-handler"]):this._sortProps=e.defaultSortProps},get:function(){return this._sortProps}}],[{key:"defaultSortProps",get:function(){return{type:"attributes","sort-handler":!1}}}]),e}();n["default"]=o,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17}],616:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/to-consumable-array")["default"],l=e("babel-runtime/core-js/object/assign")["default"],u=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var c=e("react"),p=u(c),f=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this._getDisplaySize=function(){var e=0,t=0;return[e,t]},this._handleResize=this.props.onResize?function(e){var t;return(t=n.props).onResize.apply(t,a(n._getDisplaySize()))}:function(){}}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.showBackground,n=e.align,r=e.children,i={};switch(n){case"center":i={alignItems:"center",justifyContent:"center"};break;case"top":i={alignItems:"flex-start",justifyContent:"center"};break;case"bottom":i={alignItems:"flex-end",justifyContent:"center"};break;case"left":i={alignItems:"center",justifyContent:"flex-start"};break;case"right":i={alignItems:"center",justifyContent:"flex-end"}}var o=l({},this.fullScreenStyle,i,{display:"flex",zIndex:"2000",pointerEvents:"none"}),s=l({},this.fullScreenStyle,this.backgroundColorStyle,{position:"absolute"}),a=l({},this.fullScreenStyle,{position:"relative",pointerEvents:"auto"});return p["default"].createElement("div",{ref:"overlay",className:"overlay",style:o},t&&p["default"].createElement("div",{className:"overlay-background",style:s}),p["default"].createElement("div",{className:"overlay-content",style:a},r))}},{key:"componentDidMount",value:function(){window&&window.addEventListener("resize",this._handleResize)}},{key:"componentWillUnmount",value:function(){window&&window.removeEventListener("resize",this._handleResize)}},{key:"fullScreenStyle",get:function(){return{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",overflow:"hidden"}}},{key:"backgroundColorStyle",get:function(){return{background:"rgba(0, 0, 0, 0.8)"}}}]),t}(p["default"].Component);f.propTypes={showBackground:p["default"].PropTypes.bool,align:p["default"].PropTypes.string,onResize:p["default"].PropTypes.func,children:p["default"].PropTypes.node.isRequired},f.defaultProps={showBackground:!1,align:"center"},n["default"]=f,t.exports=n["default"]},{"babel-runtime/core-js/object/assign":8,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/to-consumable-array":23,react:581}],617:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e)}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{path:l.PropTypes.string.isRequired,fill:l.PropTypes.string,stroke:l.PropTypes.string}}},{key:"defaultProps",get:function(){return{fill:"#3182BD",stroke:null}}}]),o(t,[{key:"render",value:function(){return u["default"].createElement("path",{d:this.props.path,fill:this.props.fill,stroke:this.props.stroke})}}]),t}(l.Component);n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581}],618:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("d3"),p=a(c),f=e("./DataSeries"),h=a(f),d=e("../common"),m=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e)}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{width:l.PropTypes.oneOfType([l.PropTypes.string,l.PropTypes.number]),height:l.PropTypes.oneOfType([l.PropTypes.string,l.PropTypes.number]),fill:l.PropTypes.string,stroke:l.PropTypes.string,interpolate:l.PropTypes.bool,interpolationType:l.PropTypes.string}}},{key:"defaultProps",get:function(){return{interpolate:!1,interpolationType:null}}}]),o(t,[{key:"render",value:function(){var e=this.props,t=e.interpolationType||(e.interpolate?"cardinal":"linear"),n=p["default"].scale.linear().range([0,e.width]).domain(p["default"].extent(e.data.map(function(e){return e.x}))),r=p["default"].scale.linear().range([e.height,0]).domain([0,100]);return u["default"].createElement(d.Chart,{width:e.width,height:e.height},u["default"].createElement(h["default"],{
|
||
width:e.width,height:e.height,fill:e.fill,stroke:e.stroke,data:e.data,xScale:n,yScale:r,interpolationType:t}))}}]),t}(l.Component);n["default"]=m,t.exports=n["default"]},{"../common":622,"./DataSeries":619,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,d3:122,react:581}],619:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("d3"),p=a(c),f=e("./Area"),h=a(f),d=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e)}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{fill:l.PropTypes.string,stroke:l.PropTypes.string,interpolationType:l.PropTypes.string}}},{key:"defaultProps",get:function(){return{interpolationType:"linear"}}}]),o(t,[{key:"render",value:function(){var e=this.props,t=e.xScale,n=e.yScale,r=p["default"].svg.area().x(function(e){return t(e.x)}).y0(e.height).y1(function(e){return n(e.y)}).interpolate(e.interpolationType),i=r(e.data);return u["default"].createElement(h["default"],{path:i,fill:e.fill,stroke:e.stroke})}}]),t}(l.Component);n["default"]=d,t.exports=n["default"]},{"./Area":617,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,d3:122,react:581}],620:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("./AreaChart"),o=r(i);n["default"]=o["default"],t.exports=n["default"]},{"./AreaChart":618,"babel-runtime/helpers/interop-require-default":21}],621:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e)}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{width:l.PropTypes.oneOfType([l.PropTypes.string,l.PropTypes.number]),heigth:l.PropTypes.oneOfType([l.PropTypes.string,l.PropTypes.number])}}},{key:"defaultProps",get:function(){return{width:400,height:200}}}]),o(t,[{key:"render",value:function(){var e="rgb(41,170,204)",t={background:e,borderRadius:"5px"};return u["default"].createElement("svg",{style:t,width:this.props.width,height:this.props.height},this.props.children)}}]),t}(l.Component);n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581}],622:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("./Chart"),o=r(i);n.Chart=o["default"]},{"./Chart":621,"babel-runtime/helpers/interop-require-default":21}],623:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("./area-chart"),o=r(i);n.AreaChart=o["default"]},{"./area-chart":620,"babel-runtime/helpers/interop-require-default":21}],624:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/to-consumable-array")["default"],l=e("babel-runtime/core-js/map")["default"],u=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var c=e("react"),p=u(c),f=e("react-bootstrap"),h=e("humanize"),d=u(h),m=e("classnames"),b=u(m),y=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.__changeLastUpdateMessage=this.__changeLastUpdateMessage.bind(this),this.__startInterval=this.__startInterval.bind(this),this.__stopInterval=this.__stopInterval.bind(this),this.state={lastUpdate:this.props.lastUpdate,lastUpdateMessage:t.lastUpdateMessage(this.props.lastUpdate)}}return i(t,e),o(t,null,[{key:"lastUpdateMessage",value:function(e){var t=d["default"].relativeTime(e/1e3);return e?"Last update "+t:"Never updated"}},{key:"periods",get:function(){return(new l).set(0,"Never").set(5,"5 seconds").set(10,"10 seconds").set(15,"15 seconds").set(30,"30 seconds").set(60,"1 minute")}}]),o(t,[{key:"__changeLastUpdateMessage",value:function(){this.state.lastUpdate!==!1&&this.setState({lastUpdateMessage:t.lastUpdateMessage(this.state.lastUpdate)})}},{key:"__startInterval",value:function(){this.__intervalID||(this.__changeLastUpdateMessage(),this.__intervalID=setInterval(this.__changeLastUpdateMessage,1e3))}},{key:"__stopInterval",value:function(){this.__intervalID&&(clearInterval(this.__intervalID),delete this.__intervalID)}},{key:"componentDidMount",value:function(){this.__startInterval()}},{key:"componentWillUnmount",value:function(){this.__stopInterval()}},{key:"componentWillReceiveProps",value:function(e){e.lastUpdate!==this.state.lastUpdate&&this.setState({lastUpdate:e.lastUpdate})}},{key:"render",value:function(){var e=function(e,t){return p["default"].createElement(f.Tooltip,{id:e},t)},t=this.state.lastUpdateMessage,n=this.props,r=n.handleRefresh,i=n.handlePeriodChange,o=n.children,s=n.periods,l=n.activePeriod,u=n.enablePeriods,c=p["default"].createElement(f.Button,{onClick:r},p["default"].createElement(f.Glyphicon,{glyph:"refresh"}),o&&" "+o);return p["default"].createElement(f.OverlayTrigger,{placement:"right",overlay:e("last-update-tooltip",t)},u?p["default"].createElement(f.Dropdown,{id:"refresh-button",className:"refresh-button"},c,p["default"].createElement(f.Dropdown.Toggle,null),p["default"].createElement(f.Dropdown.Menu,null,[].concat(a(s.keys())).map(function(e,t){return p["default"].createElement(f.MenuItem,{className:(0,b["default"])({active:e===l}),key:t,eventKey:t,onSelect:function(){return i(e)}},s.get(e))}))):c)}}]),t}(p["default"].Component);y.propTypes={handleRefresh:p["default"].PropTypes.func.isRequired,handlePeriodChange:p["default"].PropTypes.func.isRequired,periods:p["default"].PropTypes.instanceOf(l),activePeriod:p["default"].PropTypes.number,enablePeriods:p["default"].PropTypes.bool,lastUpdate:p["default"].PropTypes.oneOfType([p["default"].PropTypes.number,p["default"].PropTypes.bool]),children:p["default"].PropTypes.string},y.defaultProps={activePeriod:0,lastUpdate:!1,periods:y.periods,enablePeriods:!0},n["default"]=y,t.exports=n["default"]},{"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/to-consumable-array":23,classnames:29,humanize:176,react:581,"react-bootstrap":365}],625:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/to-consumable-array")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("events"),c=e("./remote"),p=l(c),f=e("../../constants"),h="open",d="message",m="close",b="error",y=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),p["default"].onOpen(function(e){}),p["default"].onClose(function(e){}),p["default"].onError(function(e){}),this.mode=e,setTimeout(this.open.bind(this),1)}return i(t,e),o(t,[{key:"open",value:function(){var e=this;this.emit(h),this.mode===f.PROTO.DISPLAY&&(p["default"].on(f.PROTO.DISPLAY_INIT,function(t){e.emit(d,{data:[].concat(a(t)).map(function(e){return e.charCodeAt(0)})})}),p["default"].on(f.PROTO.DISPLAY_CLOSE,function(t){e.emit(m,{})}),p["default"].on(f.PROTO.DISPLAY,function(t){e.emit(d,{data:[].concat(a(t)).map(function(e){return e.charCodeAt(0)})})}),this.send({action:"connect"},f.PROTO.DISPLAY_INIT))}},{key:"close",value:function(){this.mode===f.PROTO.DISPLAY&&(p["default"].removeAllListeners(f.PROTO.DISPLAY_INIT),p["default"].removeAllListeners(f.PROTO.DISPLAY_CLOSE),p["default"].removeAllListeners(f.PROTO.DISPLAY)),this.emit(m,{})}},{key:"send",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?f.PROTO.DISPLAY:arguments[1];p["default"].send({proto:t,data:e})}},{key:"mode",set:function(e){this.__mode=e},get:function(){return this.__mode}},{key:"onmessage",set:function(e){this.removeAllListeners(d),this.on(d,e)}},{key:"onopen",set:function(e){this.removeAllListeners(h),this.on(h,e)}},{key:"onclose",set:function(e){this.removeAllListeners(m),this.on(m,e)}},{key:"onerror",set:function(e){this.removeAllListeners(b),this.on(b,e)}},{key:"binaryType",set:function(e){}},{key:"bufferedAmount",get:function(){return p["default"].bufferedAmount}},{key:"protocol",get:function(){return p["default"].protocol}},{key:"readyState",get:function(){return p["default"].state}}]),t}(u.EventEmitter);y.NOTINIT=p["default"].NOTINIT,y.CONNECTING=p["default"].CONNECTING,y.OPEN=p["default"].OPEN,y.CLOSING=p["default"].CLOSING,y.CLOSED=p["default"].CLOSED,n["default"]=y,t.exports=n["default"]},{"../../constants":654,"./remote":630,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/to-consumable-array":23,events:154}],626:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"];Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e),this.section=t.section||""}return r(e,[{key:"doLog",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];console[e].apply(console,[this.section?"["+this.section+"]":""].concat(n))}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];this.doLog.apply(this,["log"].concat(t))}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];this.doLog.apply(this,["error"].concat(t))}},{key:"warning",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];this.doLog.apply(this,["warn"].concat(t))}},{key:"info",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];this.doLog.apply(this,["info"].concat(t))}},{key:"trace",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];this.doLog.apply(this,["trace"].concat(t))}}]),e}();n["default"]=o,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17}],627:[function(e,t,n){"use strict";function r(e){return e>64&&91>e?e-65:e>96&&123>e?e-71:e>47&&58>e?e+4:43===e?62:47===e?63:0}function i(e,t){for(var n,i,o=e.replace(/[^A-Za-z0-9\+\/]/g,""),s=o.length,a=t?Math.ceil((3*s+1>>2)/t)*t:3*s+1>>2,l=new Uint8Array(a),u=0,c=0,p=0;s>p;p++)if(i=3&p,u|=r(o.charCodeAt(p))<<18-6*i,3===i||s-p===1){for(n=0;3>n&&a>c;n++,c++)l[c]=u>>>(16>>>n&24)&255;u=0}return l}function o(e){return 26>e?e+65:52>e?e+71:62>e?e-4:62===e?43:63===e?47:65}function s(e){for(var t=2,n="",r=e.length,i=0,s=0;r>s;s++)t=s%3,s>0&&4*s/3%76===0&&(n+="\r\n"),i|=e[s]<<(16>>>t&24),2!==t&&e.length-s!==1||(n+=String.fromCharCode(o(i>>>18&63),o(i>>>12&63),o(i>>>6&63),o(63&i)),i=0);return n.substr(0,n.length-2+t)+(2===t?"":1===t?"=":"==")}function a(e){for(var t,n="",r=e.length,i=0;r>i;i++)t=e[i],n+=String.fromCharCode(t>251&&254>t&&r>i+5?1073741824*(t-252)+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:t>247&&252>t&&r>i+4?(t-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:t>239&&248>t&&r>i+3?(t-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:t>223&&240>t&&r>i+2?(t-224<<12)+(e[++i]-128<<6)+e[++i]-128:t>191&&224>t&&r>i+1?(t-192<<6)+e[++i]-128:t);return n}function l(e){for(var t,n,r=e.length,i=0,o=0;r>o;o++)n=e.charCodeAt(o),i+=128>n?1:2048>n?2:65536>n?3:2097152>n?4:67108864>n?5:6;t=new Uint8Array(i);for(var s=0,a=0;i>s;a++)n=e.charCodeAt(a),128>n?t[s++]=n:2048>n?(t[s++]=192+(n>>>6),t[s++]=128+(63&n)):65536>n?(t[s++]=224+(n>>>12),t[s++]=128+(n>>>6&63),t[s++]=128+(63&n)):2097152>n?(t[s++]=240+(n>>>18),t[s++]=128+(n>>>12&63),t[s++]=128+(n>>>6&63),t[s++]=128+(63&n)):67108864>n?(t[s++]=248+(n>>>24),t[s++]=128+(n>>>18&63),t[s++]=128+(n>>>12&63),t[s++]=128+(n>>>6&63),t[s++]=128+(63&n)):(t[s++]=252+(n>>>30),t[s++]=128+(n>>>24&63),t[s++]=128+(n>>>18&63),t[s++]=128+(n>>>12&63),t[s++]=128+(n>>>6&63),t[s++]=128+(63&n));return t}function u(e){if("string"!=typeof e)throw new TypeError("The input should be a string");return s(l(e))}function c(e){if("string"!=typeof e)throw new TypeError("The input should be a string");return a(i(e))}Object.defineProperty(n,"__esModule",{value:!0}),n.base64DecToArr=i,n.base64EncArr=s,n.UTF8ArrToStr=a,n.strToUTF8Arr=l,n.strToBase64=u,n.base64ToStr=c},{}],628:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("events"),u=a(l),c=e("url"),p=a(c),f=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.__isConnecting=!1,this.__isDisconnecting=!1}return i(t,e),o(t,[{key:"initialize",value:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(!e.url||!e.agentID)throw new Error("Missing required parameters");this.url=e.url,this.agentID=e.agentID,e.onOpen&&this.onOpen(e.onOpen),e.onOpening&&this.onOpening(e.onOpening),e.onClosing&&this.onClosing(e.onClosing),e.onClose&&this.onClose(e.onClose),e.onError&&this.onError(e.onError),e.onMessage&&this.onMessage(e.onMessage),e.messageParser&&(this.messageParser=e.messageParser)}},{key:"__startConTimeout",value:function(){var e=arguments.length<=0||void 0===arguments[0]?1e4:arguments[0];this.__conTimer=setTimeout(this.close.bind(this),e)}},{key:"__stopConTimeout",value:function(){this.__conTimer&&(clearTimeout(this.__conTimer),this.__conTimer=null)}},{key:"__onOpen",value:function(e){this.__stopConTimeout(),this.__isConnecting=!1,this.__isDisconnecting=!1,this.emit("open",e)}},{key:"__onOpening",value:function(){this.__startConTimeout(),this.__isConnecting=!0,this.__isDisconnecting=!1,this.emit("opening")}},{key:"__onClose",value:function(e){this.__stopConTimeout(),this.__isConnecting=!1,this.__isDisconnecting=!1,this.emit("close",e)}},{key:"__onClosing",value:function(){this.__stopConTimeout(),this.__isConnecting=!1,this.__isDisconnecting=!0,this.emit("closing")}},{key:"__onError",value:function(e){this.__stopConTimeout(),this.emit("error",e)}},{key:"__onMessage",value:function(e){this.emit("message",e.data)}},{key:"onOpen",value:function(e){return this.on("open",e)}},{key:"onOpening",value:function(e){return this.on("opening",e)}},{key:"onClose",value:function(e){return this.on("close",e)}},{key:"onClosing",value:function(e){return this.on("closing",e)}},{key:"onError",value:function(e){return this.on("error",e)}},{key:"onMessage",value:function(e){return this.on("message",e)}},{key:"connect",value:function(){!this.isConnected&&this.agentID&&(this.__onOpening(),this.__ws=new WebSocket(this.urlString,this.protocol),this.__ws.binaryType="arraybuffer",this.__ws.onopen=this.__onOpen.bind(this),this.__ws.onclose=this.__onClose.bind(this),this.__ws.onerror=this.__onError.bind(this),this.__ws.onmessage=this.__onMessage.bind(this))}},{key:"reconnect",value:function(){this.connect()}},{key:"close",value:function(){this.isConnected&&this.__onClosing(),this.__ws&&this.__ws.close()}},{key:"send",value:function(e){this.isConnected&&("function"==typeof this.__messageParser&&(e=this.__messageParser(e)),this.__ws.send(e))}},{key:"agentID",set:function(e){var t=typeof e;if("number"!==t&&"string"!==t)throw new TypeError("The agent ID should be a number or a string");this.__agentID=e,this.__url.pathname="/"+this.__agentID},get:function(){return this.__agentID}},{key:"url",set:function(e){var t=typeof e;if("string"!==t&&"object"!==t)throw new TypeError("The URL should be an URL object or a string");"string"===t?this.__url=p["default"].parse(e):"object"===t&&(this.__url=e,this.__url.slashes=!0)},get:function(){return this.__url}},{key:"urlString",get:function(){return p["default"].format(this.url)}},{key:"protocol",get:function(){return"binary"}},{key:"bufferedAmount",get:function(){return"undefined"!=typeof this.__ws&&this.__ws.readyState===t.OPEN?this.__ws.bufferedAmount:void 0}},{key:"state",get:function(){return this.__isConnecting?t.CONNECTING:this.__isDisconnecting?t.CLOSING:this.agentID?"undefined"!=typeof this.__ws?this.__ws.readyState:t.CLOSED:t.NOTINIT}},{key:"isConnected",get:function(){return"undefined"!=typeof this.__ws?this.__ws.readyState===t.OPEN:!1}},{key:"messageParser",set:function(e){"function"==typeof e&&(this.__messageParser=e)}}]),t}(u["default"]);f.NOTINIT=-1,f.CONNECTING=0,f.OPEN=1,f.CLOSING=2,f.CLOSED=3,n["default"]=f,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,events:154,url:598}],629:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var a=e("./Remote"),l=s(a),u=function(e){function t(){var e=this;o(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.messageParser=function(e){if("object"==typeof e)if(e.data instanceof ArrayBuffer){if("undefined"==typeof e.proto)e=e.data;else{var t=new Uint8Array(1+e.data.byteLength);t.set(new Uint8Array([e.proto]),0),t.set(new Uint8Array(e.data),1),e=t.buffer,t=null}e.data=null}else{var n="";"undefined"!=typeof e.proto&&(n+=String.fromCharCode(e.proto)),"string"==typeof e.data?n+=e.data:"object"==typeof e.data&&(n+=JSON.stringify(e.data)),e=n}else e instanceof Uint8Array&&(e=e.buffer);return e};var n=function(t){t instanceof ArrayBuffer&&(t=String.fromCharCode.apply(null,new Uint8Array(t)));var n=t.charCodeAt(0),r=t.substr(1);e.emit(n,r)};this.onMessage(n)}return i(t,e),t}(l["default"]);n["default"]=u,t.exports=n["default"]},{"./Remote":628,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21}],630:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("./RemoteAgent"),o=r(i),s=new o["default"];s.NOTINIT=-1,s.CONNECTING=0,s.OPEN=1,s.CLOSING=2,s.CLOSED=3,n["default"]=s,t.exports=n["default"]},{"./RemoteAgent":629,"babel-runtime/helpers/interop-require-default":21}],631:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"];Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){i(this,e)}return r(e,[{key:"supportedFullscreen",value:function(){if("undefined"!=typeof document){var e=document.documentElement;return e.requestFullscreen||e.msRequestFullscreen||e.mozRequestFullScreen||e.webkitRequestFullScreen}return!1}},{key:"enabledFullscreen",value:function(){return this.supportedFullscreen()&&"undefined"!=typeof document?document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement:!1}},{key:"exitFullscreen",value:function(){this.supportedFullscreen()&&"undefined"!=typeof document&&this.enabledFullscreen()&&(document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}},{key:"requestFullscreen",value:function(e){this.supportedFullscreen()&&"undefined"!=typeof document&&(this.enabledFullscreen()?this.exitFullscreen():e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT))}},{key:"bindFullscreenEvents",value:function(e,t){"function"!=typeof e&&(e=function(){}),"function"!=typeof t&&(t=function(){}),document.addEventListener("fullscreenerror",function(e){t(e)}),document.addEventListener("fullscreenchange",function(t){e(t)}),document.addEventListener("MSFullscreenError",function(e){t(e)}),document.addEventListener("MSFullscreenChange",function(t){e(t)}),document.addEventListener("mozfullscreenerror",function(e){t(e)}),document.addEventListener("mozfullscreenchange",function(t){e(t)}),document.addEventListener("webkitfullscreenerror",function(e){t(e)}),document.addEventListener("webkitfullscreenchange",function(t){e(t)})}},{key:"unbindFullscreenEvents",value:function(e,t){"function"!=typeof e&&(e=function(){}),"function"!=typeof t&&(t=function(){}),document.removeEventListener("fullscreenerror",t),document.removeEventListener("fullscreenchange",e),document.removeEventListener("MSFullscreenError",t),document.removeEventListener("MSFullscreenChange",e),document.removeEventListener("mozfullscreenerror",t),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("webkitfullscreenerror",t),document.removeEventListener("webkitfullscreenchange",e)}}]),e}();n.fullScreenUtil=o;var s=function(e){return decodeURIComponent(escape(e))};n.fixText=s},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17}],632:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-bootstrap"),p=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.handleHide=function(t){e.handleHide()},this.handleSubmit=function(t){t.preventDefault(),e.handleSubmit(t.target.password.value),e.handleHide()}}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props.show;return u["default"].createElement(c.Modal,{show:e,keyboard:!0,onHide:this.handleHide,bsSize:"small","aria-labelledby":"contained-modal-title-sm"},u["default"].createElement(c.Modal.Header,{closeButton:!1},u["default"].createElement(c.Modal.Title,{id:"contained-modal-title-sm"},"Agent password")),u["default"].createElement(c.Modal.Body,null,u["default"].createElement("form",{onSubmit:this.handleSubmit},u["default"].createElement(c.Input,{className:"no-mobile-zoom",autoFocus:!0,onFocus:function(e){return e.target.select()},name:"password",type:"password",placeholder:"Agent password",buttonAfter:u["default"].createElement(c.Button,{type:"submit",bsStyle:"primary"},u["default"].createElement(c.Glyphicon,{glyph:"log-in"})),required:!0}))))}}]),t}(u["default"].Component);n.AgentAuthentication=p,p.propTypes={handleSubmit:u["default"].PropTypes.func.isRequired,handleHide:u["default"].PropTypes.func,show:u["default"].PropTypes.bool},p.defaultProps={handleHide:function(){},show:!0},n["default"]=p},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],633:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-redux"),p=e("../common/lib/remote"),f=a(p),h=e("../reducers/app"),d=e("../actions/agent"),m=e("../responses"),b=a(m),y=e("../components/header"),v=a(y),g=e("../components/info-panel"),_=a(g),T=e("../components/agent-authentication"),E=a(T),C=e("../components/section"),w=a(C),S=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),(0,b["default"])(f["default"],e.dispatch),this.handleDisconnectClick=function(){f["default"].isConnected&&f["default"].close(),setTimeout(e.handleDisconnectClick,100)},this.reconnect=f["default"].reconnect.bind(f["default"])}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.showHeader,n=e.selectedSection,r=e.handleAgentPassSubmit,i=e.isUnknown,o=e.isBusy,s=e.isConnecting,a=e.isDisconnecting,l=e.isConnected,c=e.connectionError,p=e.connectionErrorCode,f=e.connectionErrorMessage,h=e.isAuthenticating,d=e.isAuthenticated,m=e.authenticationError,b=e.authenticationErrorCode,y=e.authenticationErrorMessage,g=e.agentID,T=e.agentHostname,S={paddingTop:t?"70px":"20px"};return u["default"].createElement("div",{id:"ehorus-app"},t&&u["default"].createElement(v["default"],{agentID:g,agentHostname:T,handleDisconnectClick:this.handleDisconnectClick}),u["default"].createElement("div",{id:"ehorus-container",className:"container",style:S},l&&d&&u["default"].createElement(w["default"],{selected:n}),l&&d&&u["default"].createElement(C.PersistentSections,null),(!l||!d)&&u["default"].createElement("div",null,u["default"].createElement(_["default"],{isUnknown:i,isBusy:o,isConnecting:s,isDisconnecting:a,isConnected:l,connectionError:c,connectionErrorCode:p,connectionErrorMessage:f,isAuthenticating:h,isAuthenticated:d,authenticationError:m,authenticationErrorCode:b,authenticationErrorMessage:y,handleConnection:this.reconnect,timer:60}),l&&!h&&!d&&u["default"].createElement(E["default"],{handleSubmit:r}))))}},{key:"componentDidMount",value:function(){if(!f["default"].agentID)throw new Error("Missing agent ID");setTimeout(f["default"].connect.bind(f["default"]),1)}}]),t}(u["default"].Component);S.propTypes={showHeader:u["default"].PropTypes.bool,selectedSection:u["default"].PropTypes.string,handleDisconnectClick:u["default"].PropTypes.func,handleAgentPassSubmit:u["default"].PropTypes.func.isRequired,isUnknown:u["default"].PropTypes.bool,isBusy:u["default"].PropTypes.bool,isConnecting:u["default"].PropTypes.bool,isDisconnecting:u["default"].PropTypes.bool,isConnected:u["default"].PropTypes.bool,connectionError:u["default"].PropTypes.bool,connectionErrorCode:u["default"].PropTypes.number,connectionErrorMessage:u["default"].PropTypes.string,isAuthenticating:u["default"].PropTypes.bool,isAuthenticated:u["default"].PropTypes.bool,authenticationError:u["default"].PropTypes.bool,authenticationErrorCode:u["default"].PropTypes.number,authenticationErrorMessage:u["default"].PropTypes.string,agentID:u["default"].PropTypes.string,agentHostname:u["default"].PropTypes.string},S.defaultProps={showHeader:!0,isUnknown:!1,isBusy:!1,isConnecting:!1,isDisconnecting:!1,isConnected:!1,connectionError:!1,connectionErrorCode:null,connectionErrorMessage:null,isAuthenticating:!1,isAuthenticated:!1,authenticationError:!1,authenticationErrorCode:null,authenticationErrorMessage:null,agentID:"",agentHostname:""};var P=function(e,t){var n=Date.now(),r=6e5,i=e.app.agentLastContact&&n-e.app.agentLastContact>r,o={showHeader:e.app.showHeader,handleDisconnectClick:e.app.handleDisconnect,isUnknown:i,isBusy:e.app.agentIsBusy,isConnecting:e.agent.isConnecting,isDisconnecting:e.agent.isDisconnecting,isConnected:e.agent.isConnected,connectionError:e.agent.connectionError,connectionErrorCode:e.agent.connectionErrorCode,connectionErrorMessage:e.agent.connectionErrorMessage,isAuthenticating:e.agent.isAuthenticating,isAuthenticated:e.agent.isAuthenticated,authenticationError:e.agent.authenticationError,authenticationErrorCode:e.agent.authenticationErrorCode,authenticationErrorMessage:e.agent.authenticationErrorMessage,agentID:e.agent.id,agentHostname:e.agent.hostname},s=(0,h.getActiveSection)(e.app);return s&&(o.selectedSection=s),o},x=function(e,t){return{dispatch:e,handleAgentPassSubmit:function(t){return e((0,d.sendAgentPassword)(t))}}};n["default"]=(0,c.connect)(P,x)(S),t.exports=n["default"]},{"../actions/agent":603,"../common/lib/remote":630,"../components/agent-authentication":632,"../components/header":640,"../components/info-panel":641,"../components/section":642,"../reducers/app":689,"../responses":695,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-redux":414}],634:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-bootstrap"),p=e("./keys-button"),f=a(p),h=e("./keyboard-button"),d=a(h),m=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.handleConnectClick=this.props.handleConnectClick?function(e){return n.props.handleConnectClick()}:function(){},this.handleDisconnectClick=this.props.handleDisconnectClick?function(e){return n.props.handleDisconnectClick()}:function(){},this.handleFullScreenClick=this.props.handleFullScreenClick?function(e){return n.props.handleFullScreenClick()}:function(){},this.handleTrueColorClick=this.props.handleTrueColorClick?function(e){return function(t){return n.props.handleTrueColorClick(e)}}:function(){},this.handleLocalCursorClick=this.props.handleLocalCursorClick?function(e){return function(t){return n.props.handleLocalCursorClick(e)}}:function(){},this.handleSharedClick=this.props.handleSharedClick?function(e){return function(t){return n.props.handleSharedClick(e)}}:function(){},this.handleViewOnlyClick=this.props.handleViewOnlyClick?function(e){return function(t){return n.props.handleViewOnlyClick(e)}}:function(){},this.handleClipboardClick=this.props.handleClipboardClick?function(e){return n.props.handleClipboardClick()}:function(){},this.sendKey=this.props.sendKey}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.isMobile,n=e.isConnecting,r=e.isConnected,i=e.isFullscreen,o=e.showFullscreenBtn,s=e.trueColor,a=e.localCursor,l=e.shared,p=e.viewOnly,h=e.clipboard,m=e.tooltipPlacement,b=e.children;
|
||
return u["default"].createElement("div",{id:"display-buttons"},u["default"].createElement(c.ButtonToolbar,null,(r||n)&&u["default"].createElement(c.OverlayTrigger,{placement:m,overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-disconnect"},"Disconnect")},u["default"].createElement(c.Button,{className:"pull-right",onClick:this.handleDisconnectClick},u["default"].createElement(c.Glyphicon,{glyph:"log-out"}))),!r&&!n&&u["default"].createElement(c.OverlayTrigger,{placement:m,overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-connect"},"Connect")},u["default"].createElement(c.Button,{className:"pull-right",onClick:this.handleConnectClick},u["default"].createElement(c.Glyphicon,{glyph:"log-in"}))),r&&o&&i&&u["default"].createElement(c.OverlayTrigger,{placement:m,overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-exit-fullscreen"},"Exit fullscreen")},u["default"].createElement(c.Button,{className:"pull-right",onClick:this.handleFullScreenClick},u["default"].createElement(c.Glyphicon,{glyph:"resize-small"}))),r&&o&&!i&&u["default"].createElement(c.OverlayTrigger,{placement:m,overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-fullscreen"},"Fullscreen")},u["default"].createElement(c.Button,{className:"pull-right",onClick:this.handleFullScreenClick},u["default"].createElement(c.Glyphicon,{glyph:"resize-full"}))),r&&u["default"].createElement("div",{className:"pull-right btn-group"},u["default"].createElement(f["default"],{sendKey:this.sendKey})),r&&t&&u["default"].createElement("div",{className:"pull-right btn-group"},u["default"].createElement(d["default"],null)),r&&h&&u["default"].createElement(c.OverlayTrigger,{placement:m,overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-clipboard"},"Clipboard")},u["default"].createElement(c.Button,{className:"pull-right",onClick:this.handleClipboardClick},u["default"].createElement(c.Glyphicon,{glyph:"copy"}))),!r&&u["default"].createElement(c.ButtonGroup,{className:"pull-right"},u["default"].createElement(c.OverlayTrigger,{placement:m,overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-true-color"},"True color")},u["default"].createElement(c.Button,{disabled:n||r,active:s,onClick:this.handleTrueColorClick(!s)},u["default"].createElement(c.Glyphicon,{glyph:"tint"}))),u["default"].createElement(c.OverlayTrigger,{placement:m,overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-local-cursor"},"Local cursor")},u["default"].createElement(c.Button,{disabled:n||r,active:a,onClick:this.handleLocalCursorClick(!a)},u["default"].createElement(c.Glyphicon,{glyph:"asterisk"}))),u["default"].createElement(c.OverlayTrigger,{placement:m,overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-shared"},"Shared")},u["default"].createElement(c.Button,{disabled:n||r,active:l,onClick:this.handleSharedClick(!l)},u["default"].createElement(c.Glyphicon,{glyph:"share-alt"}))),u["default"].createElement(c.OverlayTrigger,{placement:m,overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-view-only"},"View only")},u["default"].createElement(c.Button,{disabled:n||r,active:p,onClick:this.handleViewOnlyClick(!p)},u["default"].createElement(c.Glyphicon,{glyph:"eye-open"})))),b))}}]),t}(u["default"].Component);m.propTypes={isMobile:u["default"].PropTypes.bool,isConnecting:u["default"].PropTypes.bool,isDiconnecting:u["default"].PropTypes.bool,isConnected:u["default"].PropTypes.bool,handleConnectClick:u["default"].PropTypes.func,handleDisconnectClick:u["default"].PropTypes.func,isFullscreen:u["default"].PropTypes.bool,showFullscreenBtn:u["default"].PropTypes.bool,handleFullScreenClick:u["default"].PropTypes.func,trueColor:u["default"].PropTypes.bool,handleTrueColorClick:u["default"].PropTypes.func,localCursor:u["default"].PropTypes.bool,handleLocalCursorClick:u["default"].PropTypes.func,shared:u["default"].PropTypes.bool,handleSharedClick:u["default"].PropTypes.func,viewOnly:u["default"].PropTypes.bool,handleViewOnlyClick:u["default"].PropTypes.func,clipboard:u["default"].PropTypes.bool,handleClipboardClick:u["default"].PropTypes.func,sendKey:u["default"].PropTypes.func.isRequired,tooltipPlacement:u["default"].PropTypes.string,children:u["default"].PropTypes.node},m.defaultProps={isMobile:!1,isConnecting:!1,isDiconnecting:!1,isConnected:!1,isFullscreen:!1,showFullscreenBtn:!1,trueColor:!0,localCursor:!0,shared:!0,viewOnly:!1,clipboard:!1,tooltipPlacement:"bottom"},n["default"]=m,t.exports=n["default"]},{"./keyboard-button":637,"./keys-button":638,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],635:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-bootstrap"),p=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={loc:"remote",localText:""},this.handleClose=this.props.handleClose?function(e){return n.props.handleClose()}:function(){},this.handleSelect=function(e){return function(t){return n.setState({loc:e})}},this.handleLocalTextChange=function(e){n.setState({localText:e.target.value})},this.handleSend=function(e){e.preventDefault();var t=n.props.onClipboardSend,r=n.state.localText;t&&t(r),n.setState({localText:""})}}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.show,n=e.remoteClipboardText,r=this.state,i=r.loc,o=r.localText;return u["default"].createElement("div",{className:"clipboard-form"},u["default"].createElement(c.Modal,{show:t,keyboard:!0,backdrop:!0,onHide:this.handleClose,"aria-labelledby":"contained-modal-title"},u["default"].createElement(c.Modal.Header,{closeButton:!0},u["default"].createElement(c.Nav,{id:"contained-modal-title",bsStyle:"pills",justified:!0},u["default"].createElement(c.NavItem,{active:"remote"===i,onSelect:this.handleSelect("remote")},"Remote"),u["default"].createElement(c.NavItem,{active:"local"===i,onSelect:this.handleSelect("local")},"Local"))),u["default"].createElement(c.Modal.Body,null,"remote"===i&&u["default"].createElement("div",null,n.length<=0&&"Nothing copied",n.length>0&&u["default"].createElement(c.Input,{type:"textarea",defaultValue:n,onFocus:function(e){return e.target.select()}})),"local"===i&&u["default"].createElement(c.Input,{type:"textarea",value:o,onChange:this.handleLocalTextChange,onFocus:function(e){return e.target.select()}})),u["default"].createElement(c.Modal.Footer,null,"remote"===i&&u["default"].createElement("small",null,"This is the current clipboard on the remote machine. Copy what you need"),"local"===i&&u["default"].createElement("small",null,"Click to send the text to the remote clipboard.",u["default"].createElement("span",null," ")),"local"===i&&u["default"].createElement(c.Button,{type:"submit",bsStyle:"primary",onClick:this.handleSend},"Send"))))}}]),t}(u["default"].Component);p.propTypes={show:u["default"].PropTypes.bool,remoteClipboardText:u["default"].PropTypes.string,handleClose:u["default"].PropTypes.func,onClipboardSend:u["default"].PropTypes.func},p.defaultProps={show:!1,remoteClipboardText:""},n["default"]=p,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],636:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/sliced-to-array")["default"],l=e("babel-runtime/core-js/number/is-nan")["default"],u=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var c=e("react"),p=u(c),f=e("react-redux"),h=e("react-bootstrap"),d=e("novnc-node"),m=e("classnames"),b=u(m),y=e("mobile-detect"),v=u(y),g=e("../../common/lib/Logger"),_=u(g),T=e("../../constants"),E=e("../../common/lib/FakeWebSocket"),C=u(E),w=e("../../actions/app"),S=e("../../actions/display"),P=e("../../reducers/app"),x=e("../../common/components/overlay"),k=u(x),M=e("./buttons"),A=u(M),O=e("./pass-form"),N=u(O),I=e("./clipboard-modal"),D=u(I),R=new _["default"]({section:"Display main"}),L=function(e){function n(e){var i=this;s(this,n),r(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,e),this.state={header:this.props.header,showPassForm:!1,isFullscreen:!1,buttonsAlignment:"top",isMobile:!1,remoteClipboardText:"",showClipboardModal:!1},this.rfb=null,this.connectDisplay=this.connectDisplay.bind(this),this.disconnectDisplay=this.disconnectDisplay.bind(this),this.requestFullscreen=this.requestFullscreen.bind(this),this.exitFullscreen=this.exitFullscreen.bind(this),this._onUpdateState=this._onUpdateState.bind(this),this._handleResize=this._handleResize.bind(this),this._getDisplaySize=this._getDisplaySize.bind(this),this._handlePassSubmit=this._handlePassSubmit.bind(this),this.handleTrueColorClick=function(e){return i.props.updateDisplayData({trueColor:e})},this.handleLocalCursorClick=function(e){return i.props.updateDisplayData({localCursor:e})},this.handleSharedClick=function(e){return i.props.updateDisplayData({shared:e})},this.handleViewOnlyClick=function(e){return i.props.updateDisplayData({viewOnly:e})},this.handleFullScreenClick=function(){var e=i.state.isFullscreen;e?i.exitFullscreen():i.requestFullscreen()},this.sendKey=function(){var e;i.rfb&&(e=i.rfb).sendKey.apply(e,arguments)},this.checkMobile=function(){if(window.navigator.userAgent){var e=new v["default"](window.navigator.userAgent);if(e.mobile())return i.setState({isMobile:!0})}i.setState({isMobile:!1})},this._onClipboardReceive=function(e,t){i.setState({remoteClipboardText:t})},this.toggleClipboardModal=function(){var e=i.state.showClipboardModal;e?i._grabInput():i._ungrabInput(),i.setState({showClipboardModal:!e})},this.onLocalClipboardSend=function(e){i.rfb&&i.rfb.clipboardPasteFrom(e)},t.NativeWebSocket||(t.NativeWebSocket=C["default"])}return i(n,e),o(n,[{key:"render",value:function(){var e=this,t=this.state,n=t.isMobile,r=t.showPassForm,i=t.isFullscreen,o=t.buttonsAlignment,s=t.remoteClipboardText,a=t.showClipboardModal,l=this.props,u=l.show,c=l.isAgentConnected,f=l.isAgentAuthenticated,d=l.isConnecting,m=l.isDisconnecting,y=l.isConnected,v=l.error,g=l.errorMessage,_=l.trueColor,T=l.localCursor,E=l.shared,C=l.viewOnly,w=!u||!c||!f,S="top"===o,P=function(t){S?e.setState({buttonsAlignment:"bottom"}):e.setState({buttonsAlignment:"top"})},x=p["default"].createElement(h.OverlayTrigger,{placement:S?"bottom":"top",overlay:p["default"].createElement(h.Tooltip,{id:"disp-tooltip-move-buttons"},S?"Move down":"Move up")},p["default"].createElement(h.Button,{className:"pull-right",onClick:P},p["default"].createElement(h.Glyphicon,{glyph:S?"arrow-down":"arrow-up"}))),M=p["default"].createElement(A["default"],{isMobile:n,isConnecting:d,isDisconnecting:m,isConnected:y,handleConnectClick:this.connectDisplay,handleDisconnectClick:this.disconnectDisplay,isFullscreen:i,showFullscreenBtn:!0,handleFullScreenClick:this.handleFullScreenClick,trueColor:_,handleTrueColorClick:this.handleTrueColorClick,localCursor:T,handleLocalCursorClick:this.handleLocalCursorClick,shared:E,handleSharedClick:this.handleSharedClick,viewOnly:C,handleViewOnlyClick:this.handleViewOnlyClick,clipboard:!0,handleClipboardClick:this.toggleClipboardModal,sendKey:this.sendKey,tooltipPlacement:S?"bottom":"top"},i&&x),O=function(e){return p["default"].createElement(h.Well,{bsSize:"small",style:{marginBottom:"0"}},e)},I=i?{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}:{};return p["default"].createElement("div",{className:(0,b["default"])("display-main",{hidden:w}),ref:function(t){return e.mainDivRef=t}},r&&p["default"].createElement(N["default"],{show:!0,handleSubmit:this._handlePassSubmit}),!i&&M,!i&&p["default"].createElement("br",null),i&&p["default"].createElement(k["default"],{align:S?"top":"bottom"},O(M)),v&&p["default"].createElement(h.Alert,{bsStyle:"danger",onDismiss:this.props.clearDisplayError},g.length>0?g:"Error"),!y&&p["default"].createElement(h.Alert,null,!d&&!m&&"Disconnected",d&&"Connecting...",m&&"Disconnecting..."),p["default"].createElement(D["default"],{show:a,remoteClipboardText:s,handleClose:this.toggleClipboardModal,onClipboardSend:this.onLocalClipboardSend}),p["default"].createElement("div",{id:"display-container",className:"text-center",style:I},p["default"].createElement("canvas",{ref:function(t){return e.displayRef=t}})))}},{key:"componentDidMount",value:function(){this.checkMobile(),window&&window.addEventListener("resize",this._handleResize)}},{key:"componentWillUpdate",value:function(e,t){var n=e&&e.show&&e.isAgentConnected&&e.isAgentAuthenticated,r=this.props.show&&this.props.isAgentConnected&&this.props.isAgentAuthenticated;n&&!r&&this.setState({header:this.props.header})}},{key:"componentDidUpdate",value:function(e,t){var n=e&&e.show&&e.isAgentConnected&&e.isAgentAuthenticated,r=this.props.show&&this.props.isAgentConnected&&this.props.isAgentAuthenticated;t.isFullscreen!==this.state.isFullscreen&&this._handleResize(),r&&!n?(this._grabInput(),window&&window.addEventListener("resize",this._handleResize),this._handleResize()):!r&&n&&(this.props.showHeader&&this.state.header&&this.props.showHeader(),this._ungrabInput(),window&&window.removeEventListener("resize",this._handleResize))}},{key:"componentWillUnmount",value:function(){this.props.showHeader&&this.state.header&&this.props.showHeader(),window&&window.removeEventListener("resize",this._handleResize),this.rfb&&this.disconnectDisplay(),this._clearTimer()}},{key:"_grabInput",value:function(){this.rfb&&(this.rfb.get_keyboard&&this.rfb.get_keyboard().grab(),this.rfb.get_mouse&&this.rfb.get_mouse().grab())}},{key:"_ungrabInput",value:function(){this.rfb&&(this.rfb.get_keyboard&&this.rfb.get_keyboard().ungrab(),this.rfb.get_mouse&&this.rfb.get_mouse().ungrab())}},{key:"_initTimer",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?10:arguments[1];this._clearTimer(),this._timerRef=setTimeout(e.bind(this),1e3*t)}},{key:"_clearTimer",value:function(){this._timerRef&&(clearTimeout(this._timerRef),this._timerRef=null)}},{key:"_handlePassSubmit",value:function(e){this.setState({showPassForm:!1}),this.rfb.connect(T.PROTO.DISPLAY,e),this._initTimer(this.disconnectDisplay)}},{key:"_getDisplaySize",value:function(){var e=this.state.isFullscreen;if(e){var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return[t,n]}var r=l(window.innerHeight)?window.clientHeight:window.innerHeight,i=this.displayRef.offsetTop,t=this.mainDivRef.offsetWidth,n=r-i-10;return[t,n]}},{key:"_handleResize",value:function(e){if(this.props.isConnected&&this.rfb){var t=this._getDisplaySize(),n=a(t,2),r=n[0],i=n[1],o=this.rfb.get_display().autoscale(r,i,!0);this.rfb.get_mouse().set_scale(o)}}},{key:"requestFullscreen",value:function(){this.props.hideHeader&&this.props.hideHeader(),this.setState({isFullscreen:!0})}},{key:"exitFullscreen",value:function(){this.props.showHeader&&this.state.header&&this.props.showHeader(),this.setState({isFullscreen:!1})}},{key:"_onUpdateState",value:function(e,t,n,r){if(R.log("[RFB]","state:",t,"old state:",n,"status msg:",r),"connect"===t)this.props.connectionDisplayRequest();else if("normal"===t)this._clearTimer(),this.props.connectionDisplaySuccess(),this._handleResize();else if("disconnect"===t)this.props.disconnectionDisplayRequest();else if("disconnected"===t)this.exitFullscreen(),this.props.disconnectionDisplaySuccess();else if("failed"===t||"fatal"===t){var i=new Error("VNC error");i.response={code:500,reason:r},this.props.connectionDisplayFailure(i)}}},{key:"connectDisplay",value:function(){var e=this.props,t=e.trueColor,n=e.localCursor,r=e.shared,i=e.viewOnly;this.rfb=new d.RFB({target:this.displayRef,wsProtocols:["binary"],true_color:t,local_cursor:n,shared:r,view_only:i,enableMouseAndTouch:!1,viewportDrag:!1,forceAuthScheme:1,onUpdateState:this._onUpdateState,onClipboard:this._onClipboardReceive,onPasswordRequired:function(e){return R.log("[RFB]","Password required")}}),this.rfb.connect(T.PROTO.DISPLAY)}},{key:"disconnectDisplay",value:function(){this.props.disconectDisplay(),this.rfb.disconnect()}}]),n}(p["default"].Component);n.Display=L,L.propTypes={show:p["default"].PropTypes.bool,header:p["default"].PropTypes.bool.isRequired,isAgentConnected:p["default"].PropTypes.bool,isAgentAuthenticated:p["default"].PropTypes.bool,isConnecting:p["default"].PropTypes.bool,isDisconnecting:p["default"].PropTypes.bool,isConnected:p["default"].PropTypes.bool,error:p["default"].PropTypes.bool,errorMessage:p["default"].PropTypes.string,trueColor:p["default"].PropTypes.bool,localCursor:p["default"].PropTypes.bool,shared:p["default"].PropTypes.bool,viewOnly:p["default"].PropTypes.bool,updateDisplayData:p["default"].PropTypes.func.isRequired,connectionDisplayRequest:p["default"].PropTypes.func.isRequired,connectionDisplaySuccess:p["default"].PropTypes.func.isRequired,connectionDisplayFailure:p["default"].PropTypes.func.isRequired,disconectDisplay:p["default"].PropTypes.func.isRequired,disconnectionDisplayRequest:p["default"].PropTypes.func.isRequired,disconnectionDisplaySuccess:p["default"].PropTypes.func.isRequired,clearDisplayError:p["default"].PropTypes.func.isRequired,showHeader:p["default"].PropTypes.func.isRequired,hideHeader:p["default"].PropTypes.func.isRequired},L.defaultProps={show:!1,isAgentConnected:!1,isAgentAuthenticated:!1,isConnecting:!1,isDisconnecting:!1,isConnected:!1,error:!1,errorMessage:"",trueColor:!0,localCursor:!0,shared:!0,viewOnly:!1};var j=function(e,t){return{show:"display"===(0,P.getActiveSection)(e.app),header:e.app.showHeader,isAgentConnected:e.agent.isConnected,isAgentAuthenticated:e.agent.isAuthenticated,isConnecting:e.display.isConnecting,isDisconnecting:e.display.isDisconnecting,isConnected:e.display.isConnected,error:e.display.error,errorMessage:e.display.errorMessage,trueColor:e.display.trueColor,localCursor:e.display.localCursor,shared:e.display.shared,viewOnly:e.display.viewOnly,willNeedPass:e.display.willNeedPass,showPassForm:e.display.showPassForm}},U=function(e,t){return{updateDisplayData:function(t){return e((0,S.updateDisplayData)(t))},connectionDisplayRequest:function(){return e((0,S.connectionDisplayRequest)())},connectionDisplaySuccess:function(){return e((0,S.connectionDisplaySuccess)())},connectionDisplayFailure:function(t){return e((0,S.connectionDisplayFailure)(t))},disconectDisplay:function(){return e((0,S.disconectDisplay)())},disconnectionDisplayRequest:function(){return e((0,S.disconnectionDisplayRequest)())},disconnectionDisplaySuccess:function(){return e((0,S.disconnectionDisplaySuccess)())},clearDisplayError:function(){return e((0,S.clearDisplayError)())},showHeader:function(){return e((0,w.showHeader)())},hideHeader:function(){return e((0,w.hideHeader)())}}};n["default"]=(0,f.connect)(j,U)(L)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../actions/app":604,"../../actions/display":605,"../../common/components/overlay":616,"../../common/lib/FakeWebSocket":625,"../../common/lib/Logger":626,"../../constants":654,"../../reducers/app":689,"./buttons":634,"./clipboard-modal":635,"./pass-form":639,"babel-runtime/core-js/number/is-nan":5,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/sliced-to-array":22,classnames:29,"mobile-detect":254,"novnc-node":256,react:581,"react-bootstrap":365,"react-redux":414}],637:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-bootstrap"),p=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.showKeyboard=function(){n.refs.input.focus()},this.handleClick=function(e){n.showKeyboard(),e.target.blur()},this.handleChange=function(e){var t=e.target.value;n.props.handleChange&&n.props.handleChange(t)}}return i(t,e),o(t,[{key:"render",value:function(){var e={width:"0",height:"0",border:"none",outline:"none"};return console.log("render"),u["default"].createElement("div",null,u["default"].createElement(c.OverlayTrigger,{placement:"bottom",overlay:u["default"].createElement(c.Tooltip,{id:"disp-tooltip-keyboard"},"Keyboard")},u["default"].createElement(c.Button,{onClick:this.handleClick},u["default"].createElement(c.Glyphicon,{glyph:"pencil"}))),u["default"].createElement("input",{id:"keyboard-input",ref:"input",type:"text",autoCapitalize:"off",autoCorrect:"off",autoComplete:"off",spellCheck:"false",value:"",onChange:this.handleChange,style:e}))}}]),t}(u["default"].Component);p.propTypes={handleChange:u["default"].PropTypes.func},n["default"]=p,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],638:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("novnc-node"),p="CTRL_ALT_DEL",f="CTRL_SHIFT_ESC",h=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.sendKey=this.props.sendKey?this.props.sendKey:function(){},this.sendKeys=function(e){n.getCombination(e)(n.sendKey)},this.handleCombSubmit=function(e){e.preventDefault(),n.sendKeys(e.target.combination.value)}}return i(t,e),o(t,[{key:"render",value:function(){return u["default"].createElement("form",{id:"display-keys-button",className:"form-inline",onSubmit:this.handleCombSubmit,style:{display:"inline"}},u["default"].createElement("select",{type:"select",name:"combination",className:"form-control",style:{display:"inline",width:"auto"}},u["default"].createElement("option",{value:p},"Ctrl+Alt+Del"),u["default"].createElement("option",{value:f},"Ctrl+Shift+Esc")),u["default"].createElement("input",{type:"submit",value:"Send",className:"btn btn-default",style:{"float":"none"}}))}},{key:"getCombination",value:function(e){switch(e){case p:return this.sendCtrlAltDel;case f:return this.sendCtrlShiftEsc;default:return function(){}}}},{key:"sendCtrlAltDel",value:function(e){e(c.Keys.XK_Control_L,1),e(c.Keys.XK_Alt_L,1),e(c.Keys.XK_Delete,1),e(c.Keys.XK_Delete,0),e(c.Keys.XK_Alt_L,0),e(c.Keys.XK_Control_L,0)}},{key:"sendCtrlShiftEsc",value:function(e){e(c.Keys.XK_Control_L,1),e(c.Keys.XK_Shift_L,1),e(c.Keys.XK_Escape,1),e(c.Keys.XK_Escape,0),e(c.Keys.XK_Shift_L,0),e(c.Keys.XK_Control_L,0)}}]),t}(u["default"].Component);h.propTypes={sendKey:u["default"].PropTypes.func.isRequired},n["default"]=h,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"novnc-node":256,react:581}],639:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-bootstrap"),p=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.handleClose=this.props.handleClose?function(e){return n.props.handleClose()}:function(){},this.handleSubmit=function(e){e.preventDefault(),n.props.handleSubmit(e.target["display-pass"].value)}}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props.show;return u["default"].createElement("div",{id:"display-pass-form"},u["default"].createElement(c.Modal,{show:e,keyboard:!1,backdrop:"static",onHide:this.handleClose,bsSize:"small","aria-labelledby":"contained-modal-title-sm"},u["default"].createElement(c.Modal.Header,{closeButton:!1},u["default"].createElement(c.Modal.Title,{id:"contained-modal-title-sm"},"Display password")),u["default"].createElement(c.Modal.Body,null,u["default"].createElement("form",{onSubmit:this.handleSubmit},u["default"].createElement(c.Input,{className:"no-mobile-zoom",autoFocus:!0,onFocus:function(e){return e.target.select()},name:"display-pass",type:"password",placeholder:"Password",buttonAfter:u["default"].createElement(c.Button,{type:"submit",bsStyle:"primary"},u["default"].createElement(c.Glyphicon,{glyph:"ok"})),required:!0})))))}}]),t}(u["default"].Component);p.propTypes={show:u["default"].PropTypes.bool,handleClose:u["default"].PropTypes.func,handleSubmit:u["default"].PropTypes.func.isRequired},p.defaultProps={show:!1},n["default"]=p,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],640:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-redux"),p=e("react-bootstrap"),f=e("../reducers/app"),h=e("../actions/app"),d=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),e.selectSection&&(this.selectSection=function(t){return function(n){return e.selectSection(t)}}),e.handleDisconnectClick?this.handleDisconnectClick=e.handleDisconnectClick:this.handleDisconnectClick=function(){}}return i(t,e),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.logo,r=t.sections,i=t.activeSection,o=t.agentID,s=t.agentHostname;return u["default"].createElement(p.Navbar,{id:"ehorus-header",fixedTop:!0,inverse:!0},u["default"].createElement(p.Navbar.Header,null,n.length>0&&u["default"].createElement(p.Navbar.Brand,null,u["default"].createElement("img",{src:n,onClick:this.selectSection()})),u["default"].createElement(p.Navbar.Toggle,null)),u["default"].createElement(p.Navbar.Collapse,null,u["default"].createElement(p.Nav,{navbar:!0},r.length>0&&r.filter(function(e){return e.enabled}).map(function(t,n){return u["default"].createElement(p.NavItem,{key:n,eventKey:n+1,active:i===t.key,onSelect:e.selectSection(t.key)},!!t.name&&t.name.length>0&&t.name)})),u["default"].createElement(p.Nav,{navbar:!0,pullRight:!0},u["default"].createElement(p.MenuItem,{eventKey:"1",onSelect:this.handleDisconnectClick},"Disconnect",s.length>0&&" ("+s+")",s.length<=0&&o.length>0&&" (ID: "+o+")"))))}}]),t}(u["default"].Component);n.Header=d,d.propTypes={logo:u["default"].PropTypes.string,activeSection:u["default"].PropTypes.string,sections:u["default"].PropTypes.array,selectSection:u["default"].PropTypes.func,handleDisconnectClick:u["default"].PropTypes.func,agentID:u["default"].PropTypes.string,agentHostname:u["default"].PropTypes.string},d.defaultProps={logo:"",activeSection:"",sections:[],agentID:"",agentHostname:""};var m=function(e,t){var n={logo:e.app.logoURL,sections:(0,f.getSections)(e.app)},r=(0,f.getActiveSection)(e.app);return r&&(n.activeSection=r),n},b=function(e,t){return{selectSection:function(t){return e((0,h.selectSection)(t))}}};n["default"]=(0,c.connect)(m,b)(d)},{"../actions/app":604,"../reducers/app":689,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365,"react-redux":414}],641:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-bootstrap"),p=e("../constants/auth"),f=e("../constants/websocket"),h=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={count:this.props.timer,cantConnect:!1},this.manageConnectionState=this.manageConnectionState.bind(this),this.startReconnectionTimer=this.startReconnectionTimer.bind(this),this.stopReconnectionTimer=this.stopReconnectionTimer.bind(this),this.getPanelMessages=this.getPanelMessages.bind(this)}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props.handleConnection,t=this.getPanelMessages();return u["default"].createElement(c.Jumbotron,null,t.title.length>0&&u["default"].createElement("h1",null,t.title),(t.description.length>0||t.reconnect.length>0)&&u["default"].createElement("div",null,t.description.length>0&&u["default"].createElement("p",null,t.description),t.reconnect.length>0&&u["default"].createElement("p",null,t.reconnect)),t.button.length>0&&u["default"].createElement("p",null,u["default"].createElement(c.Button,{bsStyle:"primary",onClick:e},t.button)))}},{key:"componentWillMount",value:function(){var e=this.props,t=e.isConnecting,n=e.isDisconnecting,r=e.isConnected;this.manageConnectionState(t,n,r)}},{key:"componentWillReceiveProps",value:function(e){var t=e.isConnecting,n=e.isDisconnecting,r=e.isConnected,i=e.connectionErrorCode,o=this.props.isConnecting,s=i===f.CLOSE_INACTIVITY;t?this.setState({cantConnect:!1}):o&&!r&&this.setState({cantConnect:!0}),this.manageConnectionState(t,n,r,s)}},{key:"componentWillUnmount",value:function(){this.stopReconnectionTimer()}},{key:"manageConnectionState",value:function(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?!1:arguments[3];e||t||n||r?(this.stopReconnectionTimer(),this.setState({count:this.props.timer})):this.startReconnectionTimer()}},{key:"startReconnectionTimer",value:function(){var e=this;this.__intervalID||(this.__intervalID=setInterval(function(){var t=e.state.count-1;0>=t&&(e.props.handleConnection(),t=e.props.timer),e.setState({count:t})},1e3))}},{key:"stopReconnectionTimer",value:function(){this.__intervalID&&(clearInterval(this.__intervalID),delete this.__intervalID)}},{key:"getPanelMessages",value:function(){var e={title:"",description:"",reconnect:"",button:""},t=this.state,n=t.count,r=t.cantConnect,i=this.props,o=i.isUnknown,s=i.isBusy,a=i.isConnecting,l=i.isDisconnecting,u=i.isConnected,c=i.connectionError,p=i.connectionErrorCode,h=i.isAuthenticating,d=i.isAuthenticated,m=i.authenticationError,b=i.authenticationErrorCode,y=i.authenticationErrorMessage;
|
||
if(a)e.title="Connecting...",e.description="It's not easy to contain the power of eHorus";else if(l)e.title="Disconnecting...",e.description="So long, human...";else if(u)u?h?(e.title="Authenticating...",e.description="Let me see how reliable you are"):d||(e.title="Not authenticated",e.description="Password needed"):(e.title="Not initialized",e.description="Try reloading the page");else if(c||r||m){var v="It seems the connection failed.";m?v=this.getWebSocketCloseMessage(b,y):r?v+=s?" It is probably that another client is using the agent at this moment.":o?" The agent is probably down, since its last contact was a long time ago.":" The server can be unreachable or may be a connection still open. Try again.":v=this.getWebSocketCloseMessage(p),e.title="Not connected",e.description=v,p!==f.CLOSE_INACTIVITY&&(e.reconnect="Trying to reconnect in "+n+" seconds..."),e.button="Reconnect now"}else e.title="Not connected",e.description="Try reloading the page";return e}},{key:"getAuthenticationErrorMessage",value:function(e,t){switch(e){case p.AUTH_INVALID:return"Invalid password.";case p.AUTH_TIMEOUT:return"The agent has closed the connection due to a timeout while expecting to complete the authentication process.";default:return t}}},{key:"getWebSocketCloseMessage",value:function(e){switch(e){case f.CLOSE_NORMAL:return"The connection has been closed successfully.";case f.CLOSE_GOING_AWAY:return"The agent has closed the connection.";case f.CLOSE_PROTOCOL_ERROR:return"The agent is terminating the connection due to a protocol error.";case f.CLOSE_UNSUPPORTED:return"The connection is being terminated because the agent received data of a type it cannot accept.";case f.CLOSE_NO_STATUS:return"No status code was provided even though one was expected.";case f.CLOSE_ABNORMAL:return"The connection was closed abnormally without a close signal.";case f.CLOSE_UNSUPPORTED_DATA:return"The agent is terminating the connection because a message was received that contained inconsistent data.";case f.CLOSE_POLICY_VIOLATION:return"The agent is terminating the connection because it received a message that violates its policy.";case f.CLOSE_TOO_LARGE:return"The agent is terminating the connection because a data frame was received that is too large.";case f.CLOSE_MISSING_EXTENSION:return"The client is terminating the connection because it expected the agent to negotiate one or more extension, but it didn't.";case f.CLOSE_INTERNAL_ERROR:return"The agent is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.";case f.CLOSE_SERVICE_RESTART:return"The agent is terminating the connection because it is restarting.";case f.CLOSE_TRY_AGAIN_LATER:return"The agent is terminating the connection due to a temporary condition.";case f.CLOSE_TLS_HANDSHAKE:return"The connection was closed due to a failure to perform a TLS handshake.";case f.CLOSE_AUTH_INVALID:return"Invalid password.";case f.CLOSE_AUTH_TIMEOUT:return"The agent has closed the connection due to a timeout while expecting to complete the authentication process.";case f.CLOSE_INACTIVITY:return"The agent has closed the connection due to inactivity.";default:return"The connection was closed without receiving a valid code."}}}]),t}(u["default"].Component);h.propTypes={handleConnection:u["default"].PropTypes.func.isRequired,timer:u["default"].PropTypes.number,isUnknown:u["default"].PropTypes.bool,isBusy:u["default"].PropTypes.bool,isConnecting:u["default"].PropTypes.bool,isDisconnecting:u["default"].PropTypes.bool,isConnected:u["default"].PropTypes.bool,connectionError:u["default"].PropTypes.bool,connectionErrorCode:u["default"].PropTypes.number,connectionErrorMessage:u["default"].PropTypes.string,isAuthenticating:u["default"].PropTypes.bool,isAuthenticated:u["default"].PropTypes.bool,authenticationError:u["default"].PropTypes.bool,authenticationErrorCode:u["default"].PropTypes.number,authenticationErrorMessage:u["default"].PropTypes.string},h.defaultProps={timer:30,isUnknown:!1,isBusy:!1,isConnecting:!1,isDisconnecting:!1,isConnected:!1,connectionError:!1,connectionErrorCode:null,connectionErrorMessage:null,isAuthenticating:!1,isAuthenticated:!1,authenticationError:!1,authenticationErrorCode:null,authenticationErrorMessage:null},n["default"]=h,t.exports=n["default"]},{"../constants/auth":652,"../constants/websocket":656,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],642:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("react"),o=r(i),s=e("flux/utils"),a=e("../components/system"),l=r(a),u=e("../services-manager/components/services-main"),c=r(u),p=e("../processes-manager/components/processes-main"),f=r(p),h=e("../files-manager/components"),d=r(h),m=e("../components/terminal"),b=r(m),y=e("../components/display"),v=r(y),g=s.Container.create(f["default"],{withProps:!1}),_=s.Container.create(c["default"],{withProps:!1}),T=s.Container.create(d["default"],{withProps:!1}),E=function(e){return o["default"].createElement("div",{id:"ehorus-section"},"system"===e.selected&&o["default"].createElement(l["default"],null),"processes"===e.selected&&o["default"].createElement(g,null),"services"===e.selected&&o["default"].createElement(_,null),"files"===e.selected&&o["default"].createElement(T,null))};E.PropTypes={selected:o["default"].PropTypes.string},E.defaultProps={selected:"system"};var C=function(e){return o["default"].createElement("div",{id:"ehorus-persistent-container"},o["default"].createElement(b["default"],null),o["default"].createElement(v["default"],null))};n.PersistentSections=C,n["default"]=E},{"../components/display":636,"../components/system":647,"../components/terminal":649,"../files-manager/components":673,"../processes-manager/components/processes-main":684,"../services-manager/components/services-main":704,"babel-runtime/helpers/interop-require-default":21,"flux/utils":174,react:581}],643:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){return u["default"].createElement("div",{className:"system-address well"},this.props.hostname.length>0?u["default"].createElement("div",null,u["default"].createElement("strong",null,"Hostname"),u["default"].createElement("div",{className:"pull-right"},this.props.hostname)):null,this.props.address.length>0?u["default"].createElement("div",null,u["default"].createElement("strong",null,"Address"),u["default"].createElement("div",{className:"pull-right"},this.props.address)):null)}},{key:"shouldComponentUpdate",value:function(e){return this.props.hostname!==e.hostname||this.props.address!==e.address}}]),t}(u["default"].Component);c.propTypes={hostname:u["default"].PropTypes.string,address:u["default"].PropTypes.string},c.defaultProps={hostname:"",address:""},n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581}],644:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){return u["default"].createElement("div",{className:"system-agent well"},this.props.version.length>0?u["default"].createElement("div",null,u["default"].createElement("strong",null,"Agent version"),u["default"].createElement("div",{className:"pull-right"},this.props.version)):null,this.props.uptime?u["default"].createElement("div",null,u["default"].createElement("strong",null,"Uptime"),u["default"].createElement("div",{className:"pull-right"},this.props.uptime+" seconds")):null)}},{key:"shouldComponentUpdate",value:function(e){return this.props.version!==e.version||this.props.uptime!==e.uptime}}]),t}(u["default"].Component);c.propTypes={version:u["default"].PropTypes.string,uptime:u["default"].PropTypes.number},c.defaultProps={version:"",uptime:0},n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581}],645:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){return u["default"].createElement("div",{className:"system-description well"},this.props.description)}},{key:"shouldComponentUpdate",value:function(e){return this.props.description!==e.description}}]),t}(u["default"].Component);c.propTypes={description:u["default"].PropTypes.string.isRequired},c.defaultProps={description:""},n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581}],646:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("humanize"),p=a(c),f=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){return u["default"].createElement("div",{className:"system-hardware well"},this.props.cpuDescription.length>0?u["default"].createElement("div",null,u["default"].createElement("strong",null,"CPU"),u["default"].createElement("div",{className:"pull-right"},this.props.cpuDescription)):null,this.props.ram?u["default"].createElement("div",null,u["default"].createElement("strong",null,"RAM"),u["default"].createElement("div",{className:"pull-right"},p["default"].filesize(this.props.ram))):null,this.props.hdd?u["default"].createElement("div",null,u["default"].createElement("strong",null,"HDD"),u["default"].createElement("div",{className:"pull-right"},p["default"].filesize(this.props.hdd))):null)}},{key:"shouldComponentUpdate",value:function(e){return this.props.cpuDescription!==e.cpuDescription||this.props.ram!==e.ram||this.props.hdd!==e.hdd}}]),t}(u["default"].Component);f.propTypes={cpuDescription:u["default"].PropTypes.string,ram:u["default"].PropTypes.number,hdd:u["default"].PropTypes.number},f.defaultProps={cpuDescription:"",ram:0,hdd:0},n["default"]=f,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,humanize:176,react:581}],647:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-redux"),p=e("react-bootstrap"),f=e("../../actions/agent"),h=e("./description"),d=a(h),m=e("./hardware"),b=a(m),y=e("./os"),v=a(y),g=e("./agent"),_=a(g),T=e("./address"),E=a(T),C=function(e){return u["default"].createElement("div",{className:"system-main container-fluid"},u["default"].createElement("h3",null,"Connected to "+(e.hostname||"N/A")+" (ID: "+e.agentID+")"),u["default"].createElement("br",null),e.isFetching&&u["default"].createElement(p.Alert,null,"Loading..."),e.description.length>0&&u["default"].createElement("div",{className:"row"},u["default"].createElement("div",{className:"col-xs-12"},u["default"].createElement(d["default"],{description:e.description}))),!e.isFetching&&!!e.receivedAt&&u["default"].createElement("div",{className:"row"},u["default"].createElement("div",{className:"col-xs-12 col-sm-6"},u["default"].createElement(b["default"],{cpuDescription:e.cpuDescription,ram:e.ram,hdd:e.hdd})),u["default"].createElement("div",{className:"col-xs-12 col-sm-6"},u["default"].createElement(v["default"],{os:e.os,osVersion:e.osVersion,language:e.language}))),!e.isFetching&&!!e.receivedAt&&u["default"].createElement("div",{className:"row"},u["default"].createElement("div",{className:"col-xs-12 col-sm-6"},u["default"].createElement(_["default"],{version:e.version,uptime:e.uptime})),u["default"].createElement("div",{className:"col-xs-12 col-sm-6"},u["default"].createElement(E["default"],{hostname:e.hostname,address:e.address}))))};n.System=C,C.propTypes={isFetching:u["default"].PropTypes.bool,receivedAt:u["default"].PropTypes.number,agentID:u["default"].PropTypes.string.isRequired,description:u["default"].PropTypes.string,cpuDescription:u["default"].PropTypes.string,ram:u["default"].PropTypes.number,hdd:u["default"].PropTypes.number,os:u["default"].PropTypes.string,osVersion:u["default"].PropTypes.string,language:u["default"].PropTypes.string,version:u["default"].PropTypes.string,uptime:u["default"].PropTypes.number,hostname:u["default"].PropTypes.string,address:u["default"].PropTypes.string},C.defaultProps={isFetching:!1,receivedAt:null};var w=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){return u["default"].createElement(C,this.props)}},{key:"componentDidMount",value:function(){var e=18e4,t=Date.now();this.props.isFetching||this.props.receivedAt&&!(this.props.receivedAt<t-e)||this.props.fetchAgent()}}]),t}(u["default"].Component);w.propTypes={fetchAgent:u["default"].PropTypes.func.isRequired,isFetching:u["default"].PropTypes.bool,receivedAt:u["default"].PropTypes.number};var S=function(e,t){return{isFetching:e.agent.isFetching,receivedAt:e.agent.receivedAt,agentID:e.agent.id,uptime:e.agent.uptime,version:e.agent.version,address:e.agent.address,hostname:e.agent.hostname,description:e.agent.description,language:e.agent.language,os:e.agent.os,osVersion:e.agent.osVersion,cpuDescription:e.agent.cpuDescription,ram:e.agent.ram,hdd:e.agent.hdd}},P=function(e,t){return{fetchAgent:function(){return e((0,f.fetchAgent)())}}};n["default"]=(0,c.connect)(S,P)(w)},{"../../actions/agent":603,"./address":643,"./agent":644,"./description":645,"./hardware":646,"./os":648,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365,"react-redux":414}],648:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.os,n=e.osVersion,r=e.architecture,i=e.language;return u["default"].createElement("div",{className:"system-os well"},t.length>0&&u["default"].createElement("div",null,u["default"].createElement("strong",null,"OS"),u["default"].createElement("div",{className:"pull-right"},t+" "+n)),r.length>0&&u["default"].createElement("div",null,u["default"].createElement("strong",null,"Architecture"),u["default"].createElement("div",{className:"pull-right"},r)),i.length>0&&u["default"].createElement("div",null,u["default"].createElement("strong",null,"Language"),u["default"].createElement("div",{className:"pull-right"},i)))}},{key:"shouldComponentUpdate",value:function(e){return this.props.os!==e.os||this.props.osVersion!==e.osVersion||this.props.architecture!==e.architecture||this.props.language!==e.language}}]),t}(u["default"].Component);c.propTypes={os:u["default"].PropTypes.string,osVersion:u["default"].PropTypes.string,architecture:u["default"].PropTypes.string,language:u["default"].PropTypes.string},c.defaultProps={os:"",osVersion:"",architecture:"",language:""},n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581}],649:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/to-consumable-array")["default"],l=e("babel-runtime/core-js/number/is-nan")["default"],u=e("babel-runtime/core-js/number/parse-int")["default"],c=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var p=e("react"),f=c(p),h=e("react-redux"),d=e("react-bootstrap"),m=e("classnames"),b=c(m),y=e("term.js"),v=c(y),g=e("../actions/terminal"),_=e("../reducers/app"),T=e("../common/lib/util"),E=6.62,C=15.42,w=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this._getSize=function(){var e=n.refs.container.parentNode.offsetWidth,t=l(window.innerHeight)?window.clientHeight:window.innerHeight,r=n.props.showHeader?70:20,i=t-r,o=u(e/E,10),s=u(i/C,10);return[o,s]},this._createTerm=function(e,t){n.termObj=new v["default"]({cols:e,rows:t,useStyle:!0,screenKeys:!0})},this._destroyTerm=function(){n.termObj&&(n.termObj.close(),n.termObj.destroy(),n.termObj=null)},this._loadTerm=function(){n.termObj.on("data",n.props.sendTermData),n.termObj.open(n.refs.term)},this.termObj=null}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.show,n=e.isInitializing;return f["default"].createElement("div",{className:(0,b["default"])("terminal-main",{hidden:!t}),ref:"container"},!this.termObj&&n&&f["default"].createElement(d.Alert,null,"Loading..."),f["default"].createElement("div",{className:"term-container",ref:"term"}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.show,n=e.isInitialized,r=e.isInitializing,i=e.initializeTerm;!t||this.termObj||n||r||i.apply(void 0,a(this._getSize()))}},{key:"componentWillReceiveProps",value:function(e){var t=e.show,n=e.isInitialized,r=e.isInitializing,i=e.cols,o=e.rows,s=e.newData,l=e.dataReveivedAt,u=e.initializeTerm;if(t)if(this.termObj||n||r)if(this.termObj||!n||r){if(this.termObj&&s&&this.props.dataReveivedAt!==l)try{this.termObj.write((0,T.fixText)(s))}catch(c){this.termObj.write(s)}}else this._createTerm(i,o),this._loadTerm();else u.apply(void 0,a(this._getSize()))}},{key:"componentWillUnmount",value:function(){this._destroyTerm(),this.props.resetTermState()}}]),t}(f["default"].Component);n.Terminal=w,w.propTypes={show:f["default"].PropTypes.bool,isInitializing:f["default"].PropTypes.bool,isInitialized:f["default"].PropTypes.bool,cols:f["default"].PropTypes.number,rows:f["default"].PropTypes.number,newData:f["default"].PropTypes.string,dataReveivedAt:f["default"].PropTypes.number,resetTermState:f["default"].PropTypes.func.isRequired,initializeTerm:f["default"].PropTypes.func.isRequired,sendTermData:f["default"].PropTypes.func.isRequired,showHeader:f["default"].PropTypes.bool},w.defaultProps={show:!1,isInitializing:!1,isInitialized:!1,cols:80,rows:24,newData:null,dataReveivedAt:null};var S=function(e,t){return{isInitializing:e.terminal.isInitializing,isInitialized:e.terminal.isInitialized,cols:e.terminal.cols,rows:e.terminal.rows,newData:e.terminal.newData,dataReveivedAt:e.terminal.dataReveivedAt,show:"terminal"===(0,_.getActiveSection)(e.app)&&e.agent.isConnected&&e.agent.isAuthenticated,showHeader:e.app.showHeader}},P=function(e,t){return{resetTermState:function(){return e((0,g.resetTermState)())},initializeTerm:function(t,n){return e((0,g.initializeTerm)(t,n))},sendTermData:function(t){return e((0,g.sendTermData)(t))}}};n["default"]=(0,h.connect)(S,P)(w)},{"../actions/terminal":606,"../common/lib/util":631,"../reducers/app":689,"babel-runtime/core-js/number/is-nan":5,"babel-runtime/core-js/number/parse-int":7,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/to-consumable-array":23,classnames:29,react:581,"react-bootstrap":365,"react-redux":414,"term.js":592}],650:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="CLIENT_RESET_AGENT_STATE";n.RESET_AGENT_STATE=r;var i="CLIENT_CONN_AGENT_REQUEST";n.CONN_AGENT_REQUEST=i;var o="CLIENT_CONN_AGENT_SUCCESS";n.CONN_AGENT_SUCCESS=o;var s="CLIENT_CONN_AGENT_FAILURE";n.CONN_AGENT_FAILURE=s;var a="CLIENT_DISCONN_AGENT_REQUEST";n.DISCONN_AGENT_REQUEST=a;var l="CLIENT_DISCONN_AGENT_SUCCESS";n.DISCONN_AGENT_SUCCESS=l;var u="CLIENT_CLEAR_CONN_ERROR";n.CLEAR_CONN_ERROR=u;var c="CLIENT_AUTH_AGENT_REQUEST";n.AUTH_AGENT_REQUEST=c;var p="CLIENT_AUTH_AGENT_SUCCESS";n.AUTH_AGENT_SUCCESS=p;var f="CLIENT_AUTH_AGENT_FAILURE";n.AUTH_AGENT_FAILURE=f;var h="CLIENT_REVOKE_AGENT_AUTH";n.REVOKE_AGENT_AUTH=h;var d="CLIENT_CLEAR_AUTH_ERROR";n.CLEAR_AUTH_ERROR=d;var m="CLIENT_FETCH_AGENT_REQUEST";n.FETCH_AGENT_REQUEST=m;var b="CLIENT_FETCH_AGENT_SUCCESS";n.FETCH_AGENT_SUCCESS=b;var y="CLIENT_FETCH_AGENT_FAILURE";n.FETCH_AGENT_FAILURE=y;var v="CLIENT_CLEAR_AGENT_ERROR";n.CLEAR_AGENT_ERROR=v},{}],651:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="CLIENT_FETCH_SECTIONS_REQUEST";n.FETCH_SECTIONS_REQUEST=r;var i="CLIENT_FETCH_SECTIONS_SUCCESS";n.FETCH_SECTIONS_SUCCESS=i;var o="CLIENT_FETCH_SECTIONS_FAILURE";n.FETCH_SECTIONS_FAILURE=o;var s="CLIENT_UPDATE_SECTION";n.UPDATE_SECTION=s;var a="CLIENT_SELECT_SECTION";n.SELECT_SECTION=a;var l="CLIENT_ENABLE_SECTION";n.ENABLE_SECTION=l;var u="CLIENT_DISABLE_SECTION";n.DISABLE_SECTION=u;var c="CLIENT_UPDATE_LOGO_URL";n.UPDATE_LOGO_URL=c;var p="CLIENT_SHOW_HEADER";n.SHOW_HEADER=p;var f="CLIENT_HIDE_HEADER";n.HIDE_HEADER=f;var h="CLIENT_UPDATE_DISCONNECT_HANDLER";n.UPDATE_DISCONNECT_HANDLER=h},{}],652:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=1;n.AUTH_INVALID=r;var i=2;n.AUTH_TIMEOUT=i},{}],653:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="CLIENT_RESET_DISPLAY_STATE";n.RESET_DISPLAY_STATE=r;var i="CLIENT_UPDATE_DISPLAY_DATA";n.UPDATE_DISPLAY_DATA=i;var o="CLIENT_CLEAR_DISPLAY_ERROR";n.CLEAR_DISPLAY_ERROR=o;var s="CLIENT_CONN_DISPLAY_REQUEST";n.CONN_DISPLAY_REQUEST=s;var a="CLIENT_CONN_DISPLAY_SUCCESS";n.CONN_DISPLAY_SUCCESS=a;var l="CLIENT_CONN_DISPLAY_FAILURE";n.CONN_DISPLAY_FAILURE=l;var u="CLIENT_DISCONN_DISPLAY_REQUEST";n.DISCONN_DISPLAY_REQUEST=u;var c="CLIENT_DISCONN_DISPLAY_SUCCESS";n.DISCONN_DISPLAY_SUCCESS=c;var p="CLIENT_DISCONN_DISPLAY_FAILURE";n.DISCONN_DISPLAY_FAILURE=p},{}],654:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={AGENT_PASS:1,CONN_READY:2,AUTH_ERROR:3,DISPLAY_INIT:10,DISPLAY:11,DISPLAY_CLOSE:12,SERVICES:20,PROCESSES:30,FILES:40,TERM_INIT:50,TERM:51,SYSTEM:60};n.PROTO=r},{}],655:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="CLIENT_RESET_TERM_STATE";n.RESET_TERM_STATE=r;var i="CLIENT_INIT_TERM_REQUEST";n.INIT_TERM_REQUEST=i;var o="CLIENT_INIT_TERM_SUCCESS";n.INIT_TERM_SUCCESS=o;var s="CLIENT_INIT_TERM_FAILURE";n.INIT_TERM_FAILURE=s;var a="CLIENT_SAVE_TERM_DATA";n.SAVE_TERM_DATA=a;var l="CLIENT_CLEAR_TERM_ERROR";n.CLEAR_TERM_ERROR=l},{}],656:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=1e3;n.CLOSE_NORMAL=r;var i=1001;n.CLOSE_GOING_AWAY=i;var o=1002;n.CLOSE_PROTOCOL_ERROR=o;var s=1003;n.CLOSE_UNSUPPORTED=s;var a=1004;n.CLOSE_RESERVED_1004=a;var l=1005;n.CLOSE_NO_STATUS=l;var u=1006;n.CLOSE_ABNORMAL=u;var c=1007;n.CLOSE_UNSUPPORTED_DATA=c;var p=1008;n.CLOSE_POLICY_VIOLATION=p;var f=1009;n.CLOSE_TOO_LARGE=f;var h=1010;n.CLOSE_MISSING_EXTENSION=h;var d=1011;n.CLOSE_INTERNAL_ERROR=d;var m=1012;n.CLOSE_SERVICE_RESTART=m;var b=1013;n.CLOSE_TRY_AGAIN_LATER=b;var y=1014;n.CLOSE_RESERVED_1014=y;var v=1015;n.CLOSE_TLS_HANDSHAKE=v;var g=4e3;n.CLOSE_AUTH_INVALID=g;var _=4001;n.CLOSE_AUTH_TIMEOUT=_;var T=4010;n.CLOSE_INACTIVITY=T},{}],657:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("flux"),i=new r.Dispatcher;n["default"]=i,t.exports=n["default"]},{flux:165}],658:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/to-consumable-array")["default"],l=e("babel-runtime/core-js/map")["default"],u=e("babel-runtime/core-js/symbol/iterator")["default"],c=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var p=e("./FSItem"),f=c(p),h=function(e){function t(e,n,i){void 0===n&&(n={}),s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,i),this.__items=new l,this.__loaded=!1,n.lastModification&&(this.lastModification=n.lastModification)}return i(t,e),o(t,[{key:"add",value:function(e){if(!(e instanceof f["default"]))throw new TypeError("Invalid item");return this.__items.set(e.basename,e),this}},{key:"has",value:function(e){return this.__items.has(e)}},{key:"get",value:function(e){return this.__items.get(e)}},{key:"delete",value:function(e){return this.has(e)&&this.__items["delete"](e),this}},{key:"isDir",get:function(){return!0}},{key:"loaded",get:function(){return this.__loaded},set:function(e){"boolean"==typeof e&&(this.__loaded=e)}},{key:"size",get:function(){return!1}},{key:"extension",get:function(){return""}},{key:"items",get:function(){return[].concat(a(this.__items.values()))},set:function(e){if("undefined"==typeof e[u])throw new TypeError("Invalid items");this.__items.clear();for(var t in e){var n=e[t];n instanceof f["default"]&&this.add(n)}}}]),t}(f["default"]);n["default"]=h,t.exports=n["default"]},{"./FSItem":659,"babel-runtime/core-js/map":4,"babel-runtime/core-js/symbol/iterator":15,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/to-consumable-array":23}],659:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var s=e("path"),a=o(s),l=e("path-parse"),u=o(l),c=function(){function e(t,n){i(this,e),this.typeOS=n,this.path=t,this.__lastModification=0,this.__lastUpdate=0}return r(e,[{key:"typeOS",set:function(e){this.__typeOS=e,e&&e.toLowerCase().includes("win")?(this.__posix=!1,this.__win=!0):(this.__posix=!0,this.__win=!1),this.__path&&(this.path=this.path)},get:function(){return this.__typeOS}},{key:"isPosix",get:function(){return this.__posix}},{key:"isWin",get:function(){return this.__win}},{key:"isDir",get:function(){return!1}},{key:"isFile",get:function(){return!1}},{key:"separator",get:function(){return this.isWin?"\\":"/"}},{key:"path",get:function(){return this.dirname.length<=0&&this.basename.length<=0?"":this.dirname.length<=0?this.basename:this.basename.length<=0?this.dirname:""+this.dirname+this.separator+this.basename},set:function(e){if("string"!=typeof e)throw new TypeError("The path should be a string");var t=e.length>0?a["default"].normalize(e):"",n=null;n=this.isWin?u["default"].win32(t):u["default"].posix(t),this.__path=n}},{key:"root",get:function(){return this.__path.root}},{key:"dirname",get:function(){return this.__path.dir}},{key:"basename",get:function(){return this.__path.base}},{key:"name",get:function(){return this.__path.name}},{key:"extension",get:function(){return this.__path.ext}},{key:"lastModification",get:function(){return this.__lastModification},set:function(e){this.__lastModification=e}},{key:"lastUpdate",get:function(){return this.__lastUpdate},set:function(e){this.__lastUpdate=e,this.loaded=!0}}]),e}();n["default"]=c,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/interop-require-default":21,path:267,"path-parse":268}],660:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/core-js/get-iterator")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var a=e("./FileItem"),l=s(a),u=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1];if(i(this,e),!(t instanceof l["default"]&&t.size))throw new TypeError("Invalid file");this.__file=t,this.__offset=n,this.__size=this.__file.size,this.__progress=0,this.__b=new ArrayBuffer(this.size),this.__bView=new Uint8Array(this.__b)}return r(e,[{key:"__checkOffset",value:function(e){if("number"!=typeof e)throw new TypeError("The offset should be a number");if(0>e)throw new RangeError("The offset should be equal or greater than 0")}},{key:"__updateProgress",value:function(){var e=0;return this.offset>0&&this.size>0&&(e=this.offset>=this.size?100:100*this.offset/this.size),this.__progress=e,this}},{key:"saveChunk",value:function(e,t,n){if(this.offset<=t){var r=t,i=t+n,s=!0,a=!1,l=void 0;try{for(var u,c=o(e);!(s=(u=c.next()).done);s=!0){var p=u.value;if(this.__bView[r]=p,!(r<this.__b.byteLength&&i>r))break;r++}}catch(f){a=!0,l=f}finally{try{!s&&c["return"]&&c["return"]()}finally{if(a)throw l}}this.offset=r}return this}},{key:"toBlob",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"text/plain;charset=utf-8":arguments[0];return new Blob([this.__b],{type:e})}},{key:"offset",set:function(e){return this.__checkOffset(e),this.__offset=e,this.__updateProgress(),this},get:function(){return this.__offset}},{key:"size",get:function(){return this.__size}},{key:"progress",
|
||
get:function(){return this.__progress}},{key:"file",get:function(){return this.__file}}]),e}();n["default"]=u,t.exports=n["default"]},{"./FileItem":661,"babel-runtime/core-js/get-iterator":2,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/interop-require-default":21}],661:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("./FSItem"),u=a(l),c=function(e){function t(e,n,i){void 0===n&&(n={}),s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,i),n.size&&(this.size=n.size),n.mimeType&&(this.mimeType=n.mimeType),n.lastModification&&(this.lastModification=n.lastModification)}return i(t,e),o(t,[{key:"isFile",get:function(){return!0}},{key:"mimeType",get:function(){return this.__mimeType},set:function(e){if("string"!=typeof e)throw new TypeError("The mime-type should be string");this.__mimeType=e}},{key:"size",get:function(){return this.__size},set:function(e){if("number"!=typeof e)throw new TypeError("The size should be numeric");this.__size=e}}]),t}(u["default"]);n["default"]=c,t.exports=n["default"]},{"./FSItem":659,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21}],662:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var s=e("./UserFile"),a=o(s),l=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1];if(i(this,e),!(t instanceof a["default"]&&t.size))throw new TypeError("Invalid file");this.__userFile=t,this.__offset=n,this.__size=this.__userFile.size,this.__progress=0}return r(e,[{key:"__checkOffset",value:function(e){if("number"!=typeof e)throw new TypeError("The offset should be a number");if(0>e)throw new RangeError("The offset should be equal or greater than 0")}},{key:"__updateProgress",value:function(){var e=0;this.offset>0&&this.size>0&&(e=this.offset>=this.size?100:100*this.offset/this.size),this.__progress=e}},{key:"offset",set:function(e){return this.__checkOffset(e),this.__offset=e,this.__updateProgress(),this},get:function(){return this.__offset}},{key:"size",get:function(){return this.__size}},{key:"progress",get:function(){return this.__progress}},{key:"file",get:function(){return this.__userFile}}]),e}();n["default"]=l,t.exports=n["default"]},{"./UserFile":666,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/interop-require-default":21}],663:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("./UserFile"),o=r(i),s=e("./UserFileReader"),a=r(s);n["default"]=function(e){e.fileReader=null,e.emit=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];e.postMessage({actionType:t,payload:n})},e.handleRead=function(t,n,r){e.emit("read",{chunk:t,offset:n,length:r})},e.handleError=function(t){e.emit("error",{error:t.message})},e.loadFile=function(t,n,r){if(e.fileReader)return void e.handleError(new Error("The file exists yet"));try{var i=new o["default"](t,n,r);e.fileReader=new a["default"](i),e.fileReader.on("read",function(t,n,r){e.handleRead(t,n,r)}),e.fileReader.on("error",function(t){e.handleError(t)}),e.emit("file")}catch(s){e.fileReader=null,e.handleError(s)}},e.addEventListener("message",function(t){var n=t.data.actionType,r=t.data.payload;switch(n){case"file":"undefined"!=typeof r.fileHandle&&r.fileHandle instanceof File&&"string"==typeof r.dirname&&"string"==typeof r.typeOS?e.loadFile(r.fileHandle,r.dirname,r.typeOS):e.handleError(new Error("Invalid payload when loading the file"));break;case"read":if(e.fileReader){var i=r.offset?r.offset:0;try{e.fileReader.read(i)}catch(o){e.handleError(o)}}else e.handleError(new Error("The file don't exists yet"));break;default:e.handleError(new Error("Invalid action type"))}})},t.exports=n["default"]},{"./UserFile":666,"./UserFileReader":667,"babel-runtime/helpers/interop-require-default":21}],664:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/sliced-to-array")["default"],l=e("babel-runtime/helpers/to-consumable-array")["default"],u=e("babel-runtime/core-js/map")["default"],c=e("babel-runtime/core-js/get-iterator")["default"],p=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var f=e("events"),h=e("filesaver.js/FileSaver"),d=e("./FileDownload"),m=p(d),b=e("./actions"),y=p(b),v=e("./FileItem"),g=p(v),_=e("../common/lib/Logger"),T=p(_),E=new T["default"]({section:"Files download controller"}),C=function(e){function t(){if(s(this,t),!t.isSupported)throw new Error("Feature not supported");r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.__files=new u,this.__q=new Array,this.__state=t.RUNNING}return i(t,e),o(t,[{key:"addFile",value:function(e){if(!(e instanceof g["default"]))throw new TypeError("Not a valid file");var n=new m["default"](e);return this.__files.has(n.file.path)||(this.__files.set(n.file.path,n),this.emit(t.FILE,n.file.path,n),this.download(n.file.path)),this}},{key:"removeFile",value:function(e){return this.__files.has(e)&&(this.__files["delete"](e),this.emit(t.FILE,e,null)),this}},{key:"cleanFiles",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=c(this.__files);!(e=(r=i.next()).done);e=!0){var o=a(r.value,2),s=(o[0],o[1]);this.removeFile(s)}}catch(l){t=!0,n=l}finally{try{!e&&i["return"]&&i["return"]()}finally{if(t)throw n}}return this}},{key:"__addTask",value:function(e){return this.__q.pop(e),this}},{key:"__getTask",value:function(){return this.__q.shift()}},{key:"__cleanTasks",value:function(){return this.__q=new Array,this}},{key:"__flush",value:function(){for(var e=void 0;this.state===t.RUNNING&&(e=this.__getTask());){var n=e.action,r=e.payload;switch(n){case"download":this.__files.has(r.path)&&this.download(r.path)}}}},{key:"download",value:function(e){if(!this.__files.has(e))throw new Error("This file doesn't exist");this.__state===t.PAUSED?this.__addTask({action:"download",payload:{path:e}}):this.__requestChunk(e)}},{key:"__requestChunk",value:function(e){if(!this.__files.has(e))throw new Error("This file doesn't exist");var n=this.__files.get(e);if(n.progress<100&&this.__state===t.RUNNING){var r=n.file,i=r.dirname,o=r.basename,s=n.offset;y["default"].requestChunk(i,o,s)}}},{key:"saveChunk",value:function(e,n,r,i){if(this.__files.has(e)){var o=this.__files.get(e);if(r=o.offset,o.offset<=r)try{o.saveChunk(n,r,i),n=null,o.progress>=100&&(0,h.saveAs)(o.toBlob(),o.file.basename,!0),this.emit(t.PROGRESS,e,o.progress),this.__files.set(e,o),this.emit(t.FILE,e,o)}catch(s){E.error(s)}this.download(e)}return this}},{key:"pauseDownloads",value:function(){return this.__state=t.PAUSED,this}},{key:"startDownloads",value:function(){return this.__state=t.RUNNING,this.__flush(),this}},{key:"stopDownloads",value:function(){return this.__state=t.PAUSED,this.__cleanTasks(),this.cleanFiles(),this}},{key:"state",get:function(){return this.__state}},{key:"files",get:function(){return[].concat(l(this.__files.values()))}}]),t}(f.EventEmitter);C.PAUSED="paused",C.RUNNING="running",C.FILE="file",C.PROGRESS="progress",C.isSupported=window&&window.File&&window.FileReader&&window.FileList&&window.Blob,n["default"]=new C,t.exports=n["default"]},{"../common/lib/Logger":626,"./FileDownload":660,"./FileItem":661,"./actions":668,"babel-runtime/core-js/get-iterator":2,"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/sliced-to-array":22,"babel-runtime/helpers/to-consumable-array":23,events:154,"filesaver.js/FileSaver":164}],665:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/sliced-to-array")["default"],l=e("babel-runtime/helpers/to-consumable-array")["default"],u=e("babel-runtime/core-js/map")["default"],c=e("babel-runtime/core-js/get-iterator")["default"],p=e("babel-runtime/core-js/promise")["default"],f=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var h=e("webworkify"),d=f(h),m=e("events"),b=e("./FileWorker"),y=f(b),v=e("./FileUpload"),g=f(v),_=e("./actions"),T=f(_),E=e("./UserFile"),C=f(E),w=e("../common/lib/Logger"),S=f(w),P=new S["default"]({section:"Files upload controller"}),x=function(e){function t(){if(s(this,t),!t.isSupported)throw new Error("Feature not supported");r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.__files=new u,this.__workers=new u,this.__q=new Array,this.__state=t.RUNNING}return i(t,e),o(t,[{key:"addFile",value:function(e){if(!(e instanceof C["default"]))throw new TypeError("Not a user file");var n=new g["default"](e);return this.__files.has(n.file.path)||(this.__files.set(n.file.path,n),this.emit(t.FILE,n.file.path,n),this.upload(n.file.path)),this}},{key:"removeWorker",value:function(e){return this.__workers.has(e)&&(this.__workers.get(e).terminate(),this.__workers["delete"](e)),this}},{key:"removeFile",value:function(e){return this.removeWorker(e),this.__files.has(e)&&(this.__files["delete"](e),this.emit(t.FILE,e,null)),this}},{key:"cleanFiles",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=c(this.__files);!(e=(r=i.next()).done);e=!0){var o=a(r.value,2),s=(o[0],o[1]);this.removeFile(s)}}catch(l){t=!0,n=l}finally{try{!e&&i["return"]&&i["return"]()}finally{if(t)throw n}}return this}},{key:"__addTask",value:function(e){return this.__q.pop(e),this}},{key:"__getTask",value:function(){return this.__q.shift()}},{key:"__cleanTasks",value:function(){return this.__q=new Array,this}},{key:"__flush",value:function(){for(var e=void 0;this.state===t.RUNNING&&(e=this.__getTask());){var n=e.action,r=e.payload;switch(n){case"upload":this.__files.has(r.path)&&this.upload(r.path)}}}},{key:"updateFileOffset",value:function(e,n){if(this.__files.has(e)){var r=this.__files.get(e);r.offset=n,this.emit(t.PROGRESS,e,r.progress),this.__files.set(e,r),this.emit(t.FILE,e,r),r.progress<100?this.upload(e):this.removeWorker(e)}}},{key:"upload",value:function(e){if(!this.__files.has(e))throw new Error("This file doesn't exist");return this.state===t.PAUSED?this.__addTask({action:"upload",payload:{path:e}}):this.__requestRead(e),this}},{key:"__requestRead",value:function(e){var n=this;if(!this.__files.has(e))throw new Error("This file doesn't exist");var r=this.__files.get(e);return r.progress<100?this.__state===t.RUNNING&&this.__initWorker(e)["catch"](function(e){return P.error(e)}).then(function(t){n.__workers.has(e)||n.__workers.set(e,t),t.postMessage({actionType:"read",payload:{offset:r.offset}})}):this.removeWorker(e),this}},{key:"__handleWorkerRead",value:function(e,t,n,r){T["default"].sendChunk(e.dirname,e.basename,t,n,r)}},{key:"__initWorker",value:function(e){var t=this,n=this.__files;return new p(function(r,i){if(!n.has(e))throw new Error("This file doesn't exist");if(t.__workers.has(e))return void r(t.__workers.get(e),1);var o=(0,d["default"])(y["default"]),s=n.get(e).file;o.addEventListener("message",function(e){var n=e.data.actionType,a=e.data.payload;switch(n){case"file":r(o,0);break;case"read":"undefined"!=typeof a.chunk&&"number"==typeof a.offset&&"number"==typeof a.length?t.__handleWorkerRead(s,a.chunk,a.offset,a.length):P.error("Invalid payload on read event");break;case"error":i(new Error(a.error));break;default:P.error("Invalid action type")}}),o.postMessage({actionType:"file",payload:{fileHandle:s.fileHandle,dirname:s.dirname,typeOS:s.typeOS}})})}},{key:"pauseUploads",value:function(){this.__state=t.PAUSED}},{key:"startUploads",value:function(){this.__state=t.RUNNING,this.__flush()}},{key:"stopUploads",value:function(){this.__state=t.PAUSED,this.__cleanTasks(),this.cleanFiles()}},{key:"state",get:function(){return this.__state}},{key:"files",get:function(){return[].concat(l(this.__files.values()))}}]),t}(m.EventEmitter);x.PAUSED="paused",x.RUNNING="running",x.FILE="file",x.PROGRESS="progress",x.isSupported=window&&window.File&&window.FileReader&&window.FileList&&window.Blob,n["default"]=new x,t.exports=n["default"]},{"../common/lib/Logger":626,"./FileUpload":662,"./FileWorker":663,"./UserFile":666,"./actions":668,"babel-runtime/core-js/get-iterator":2,"babel-runtime/core-js/map":4,"babel-runtime/core-js/promise":13,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/sliced-to-array":22,"babel-runtime/helpers/to-consumable-array":23,events:154,webworkify:600}],666:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("./FileItem"),u=a(l),c=e("./DirItem"),p=a(c),f=function(e){function t(e,n,i){if(s(this,t),!(e instanceof File))throw new TypeError("Invalid file handler");r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,n,{size:e.size,mimeType:e.type,lastModification:e.lastModified},i);var o=new p["default"](n,{},i);o.path.length>0?this.path=o.path+o.separator+e.name:this.path=e.name,this.fileHandle=e}return i(t,e),o(t,null,[{key:"isSupported",get:function(){return window&&window.File&&window.FileReader&&window.FileList&&window.Blob}}]),o(t,[{key:"slice",value:function(e,t){var n=null;return"slice"in this.fileHandle?n=this.fileHandle.slice(e,t):"webkitSlice"in this.fileHandle?n=this.fileHandle.webkitSlice(e,t):"mozSlice"in this.fileHandle&&(n=this.fileHandle.mozSlice(e,t)),n}},{key:"isClosed",get:function(){return this.fileHandle.isClosed}}]),t}(u["default"]);n["default"]=f,t.exports=n["default"]},{"./DirItem":658,"./FileItem":661,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21}],667:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("events"),u=e("./UserFile"),c=a(u),p=1,f=1024*p,h=function(e){function t(e){var n=arguments.length<=1||void 0===arguments[1]?16*f:arguments[1];if(s(this,t),!(e instanceof c["default"]))throw new TypeError("Invalid file");r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.__userFile=e,this.chunkSize=n,this.__userFile.slice||t.notSupported()}return i(t,e),o(t,null,[{key:"notSupported",get:function(){throw new Error("Feature not supported")}}]),o(t,[{key:"checkChunkSize",value:function(e){if("number"!=typeof e)throw new TypeError("The chunk size should be a number");if(0>=e)throw new RangeError("The chunk size should be greater than 0")}},{key:"checkOffset",value:function(e){if("number"!=typeof e)throw new TypeError("The offset should be a number");if(0>e)throw new RangeError("The offset should be equal or greater than 0")}},{key:"slice",value:function(e,t){return this.__userFile.slice(e,t)}},{key:"errorHandler",value:function(e){var t=e.target.error;switch(t.code){case t.NOT_FOUND_ERR:throw new Error("File Not Found");case t.NOT_READABLE_ERR:throw new Error("File is not readable");case t.ABORT_ERR:break;default:throw new Error("An error occurred reading this file")}}},{key:"read",value:function(e,t){var n=this;if("undefined"==typeof e)throw new TypeError("The offset is not defined");"undefined"==typeof t&&(t=this.chunkSize),this.checkOffset(e),this.checkChunkSize(t);var r=this.__userFile.size;if(e>=r)throw new Error("Offset equal or greater than file size");e+t>r&&(t=r-e);var i=e,o=e+t,s=this.slice(i,o),a=null,l=null,u=function(r){n.offset+=t,n.emit("read",r,e,t)};try{a=new FileReader,l="FileReader"}catch(c){}if(!a)try{a=new FileReaderSync,l="FileReaderSync"}catch(c){throw new Error("FileReader or FileReaderSync not supported")}if(l&&"FileReader"===l)u.bind(this),a.onloadend=function(e){var t=e.target;if(t.readyState!==FileReader.DONE)throw new Error("Error reading the file");u(t.result)},a.onerror=this.errorHandler.bind(this),a.readAsArrayBuffer(s);else{var p=a.readAsArrayBuffer(s);u(p)}}},{key:"readFrom",value:function(e){this.read(e)}},{key:"chunkSize",set:function(e){return this.checkChunkSize(e),this.__chunkSize=e,this},get:function(){return this.__chunkSize}}]),t}(l.EventEmitter);n["default"]=h,t.exports=n["default"]},{"./UserFile":666,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,events:154}],668:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("../../dispatcher"),o=r(i),s=e("../constants"),a=r(s),l=e("../../common/lib/base64"),u=e("../../common/lib/remote"),c=r(u),p=e("../../constants"),f={requestLS:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0];c["default"].send({proto:p.PROTO.FILES,data:{action:"ls",path:e}})},sendChunk:function(e,t,n,r,i){var o=new Uint8Array(n);c["default"].send({proto:p.PROTO.FILES,data:{action:"upload",dir_name:e,file_name:t,chunk:(0,l.base64EncArr)(o),offset:r,size:i}})},requestChunk:function(e,t,n){c["default"].send({proto:p.PROTO.FILES,data:{action:"download",dir_name:e,file_name:t,offset:n}})},initializeStore:function(){o["default"].dispatch({actionType:a["default"].INIT_FILES_STORE})},filter:function(e,t){o["default"].dispatch({actionType:a["default"].FILTER_FILES,prop:e,filter:t})},sort:function(e,t){o["default"].dispatch({actionType:a["default"].SORT_FILES,prop:e,order:t})},cd:function(e){o["default"].dispatch({actionType:a["default"].CHANGE_DIRECTORY,path:e})},saveItems:function(e,t,n,r){o["default"].dispatch({actionType:a["default"].SAVE_ITEMS,path:e,items:t,typeOS:n,timestamp:r})},select:function(e){o["default"].dispatch({actionType:a["default"].SELECT_ITEM,path:e})},cleanSelected:function(){o["default"].dispatch({actionType:a["default"].CLEAN_SELECTED_ITEM})},updateFileUpload:function(e,t,n){o["default"].dispatch({actionType:a["default"].UPDATE_FILE_UPLOAD,path:e,fileUpload:t,timestamp:n})},changePeriod:function(e){o["default"].dispatch({actionType:a["default"].CHANGE_PERIOD,period:e})}};n["default"]=f,t.exports=n["default"]},{"../../common/lib/base64":627,"../../common/lib/remote":630,"../../constants":654,"../../dispatcher":657,"../constants":677,"babel-runtime/helpers/interop-require-default":21}],669:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("classnames"),p=a(c),f=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.parsePathname=function(e,t){return e.split(t).filter(function(e){return e&&e.length>0}).map(function(e,n,r){return{pathname:r.slice(0,n+1).join(t),basename:e,active:n===r.length-1}})},this.handleClick="function"==typeof this.props.handleClick?function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0];return function(t){t&&(t.preventDefault(),t.stopPropagation()),n.props.handleClick(e)}}:function(){return function(e){}}}return i(t,e),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.pathname,r=t.separator,i=this.parsePathname(n,r);return u["default"].createElement("div",{className:"files-breadcrumbs"},u["default"].createElement("ol",{className:"breadcrumb"},u["default"].createElement("li",{className:(0,p["default"])({active:i.length<=0})},i.length<=0&&"eHorus",i.length>0&&u["default"].createElement("a",{href:"/",onClick:this.handleClick()},"eHorus")),i.map(function(t,n){return u["default"].createElement("li",{key:n,className:(0,p["default"])({active:t.active})},t.active&&t.basename,!t.active&&u["default"].createElement("a",{href:t.pathname,onClick:e.handleClick(t.pathname)},t.basename))})))}}]),t}(u["default"].Component);f.propTypes={pathname:u["default"].PropTypes.string.isRequired,separator:u["default"].PropTypes.string,handleClick:u["default"].PropTypes.func},f.defaultProps={separator:"/"},n["default"]=f,t.exports=n["default"]},{"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,classnames:29,react:581}],670:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/map")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("../DirItem"),h=l(f),d=e("../actions"),m=l(d),b=e("../../common/components/refresh-button"),y=l(b),v=e("./uploads-modal"),g=l(v),_=e("./downloads-modal"),T=l(_),E=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={showDownloads:this.props.showDownloads,showUploads:this.props.showUploads};var i=this.props,o=i.currentDir,a=i.onPeriodChange;this.handleRefresh=function(){return m["default"].requestLS(o.path)},this.handlePeriodChange=function(e){m["default"].changePeriod(e),a&&a(e)},this.openDownloads=function(){n.setState({showDownloads:!0}),n.props.onVisibilityChange&&n.props.onVisibilityChange(!0)},this.closeDownloads=function(){n.setState({showDownloads:!1}),n.props.onVisibilityChange&&n.props.onVisibilityChange(!1)},this.openUploads=function(){return n.setState({showUploads:!0})},this.closeUploads=function(){return n.setState({showUploads:!1})}}return i(t,e),o(t,[{key:"render",value:function(){var e=this.state,n=e.showDownloads,r=e.showUploads,i=this.props,o=i.currentDir,s=i.lastUpdate,a=i.updatePeriod;return c["default"].createElement("div",{id:"files-buttons"},c["default"].createElement(T["default"],{show:n,handleHide:this.closeDownloads}),c["default"].createElement(g["default"],{show:r,handleHide:this.closeUploads,dirname:o.path||"",typeOS:o.typeOS||""}),c["default"].createElement("div",{className:"row"},c["default"].createElement("div",{className:"col-md-8 text-left"},c["default"].createElement(y["default"],{lastUpdate:s,periods:t.periods,activePeriod:a,enablePeriods:!1,handleRefresh:this.handleRefresh,handlePeriodChange:this.handlePeriodChange},"Refresh directory")),c["default"].createElement("div",{className:"col-md-4 text-right"},c["default"].createElement(p.ButtonGroup,null,c["default"].createElement(p.Button,{bsStyle:"default",title:"Downloads",onClick:this.openDownloads},c["default"].createElement(p.Glyphicon,{glyph:"cloud-download"})),c["default"].createElement(p.Button,{bsStyle:"default",title:"Uploads",onClick:this.openUploads},c["default"].createElement(p.Glyphicon,{glyph:"cloud-upload"}))))))}},{key:"componentWillReceiveProps",value:function(e){e.showDownloads!==this.state.showDownloads&&this.setState({showDownloads:e.showDownloads})}}]),t}(c["default"].Component);E.propTypes={currentDir:c["default"].PropTypes.instanceOf(h["default"]),lastUpdate:c["default"].PropTypes.oneOfType([c["default"].PropTypes.number,c["default"].PropTypes.bool]),updatePeriod:c["default"].PropTypes.number,onPeriodChange:c["default"].PropTypes.func,showDownloads:c["default"].PropTypes.bool,showUploads:c["default"].PropTypes.bool,onVisibilityChange:c["default"].PropTypes.func},E.defaultProps={updatePeriod:0,lastUpdate:!1,showDownloads:!1,showUploads:!1},E.periods=(new a).set(0,"Never").set(5,"5 seconds").set(10,"10 seconds").set(15,"15 seconds").set(30,"30 seconds").set(60,"1 minute"),n["default"]=E,t.exports=n["default"]},{"../../common/components/refresh-button":624,"../DirItem":658,"../actions":668,"./downloads-modal":671,"./uploads-modal":675,"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],671:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-bootstrap"),p=e("./downloads"),f=a(p),h=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.show,n=e.handleHide;return t?u["default"].createElement(c.Modal,{show:!0,onHide:n},u["default"].createElement(c.Modal.Header,{closeButton:!0},u["default"].createElement(c.Modal.Title,null,"Downloads")),u["default"].createElement(c.Modal.Body,null,u["default"].createElement(f["default"],null))):null}}]),t}(u["default"].Component);h.propTypes={show:u["default"].PropTypes.bool,handleHide:u["default"].PropTypes.func},h.defaultPropTypes={show:!1},n["default"]=h,t.exports=n["default"]},{"./downloads":672,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],672:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/number/parse-int")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("../FilesDownloadController"),h=l(f),d=e("../../common/lib/util"),m=50,b=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.getDownloadFiles=function(){return h["default"].files.map(function(e,t){return{path:e.file.path,dirname:e.file.dirname,basename:e.file.basename,progress:e.progress}})},this.handleFile=function(){n.setState({files:n.getDownloadFiles()})},this.state={files:this.getDownloadFiles()}}return i(t,e),o(t,[{key:"render",value:function(){var e=this.state.files;return c["default"].createElement(p.ListGroup,{className:"files-download-downloads"},e.length<=0&&c["default"].createElement(p.Alert,{bsStyle:"danger"},"Empty"),e.length>0&&e.map(function(e,t){var n=(0,d.fixText)(e.basename);return c["default"].createElement(p.ListGroupItem,{key:t,bsStyle:e.progress<100?"info":"success"},c["default"].createElement(p.Button,{type:"button",className:"close",ariaLabel:"Close",onClick:function(){return h["default"].removeFile(e.path)}},c["default"].createElement("span",{ariaHidden:!0},"×")),n.length>m&&c["default"].createElement("span",{title:n},n.substr(0,m-3)+"..."),n.length<=m&&c["default"].createElement("span",null,n),c["default"].createElement(p.ProgressBar,{now:a(e.progress,10),active:e.progress<100,label:"%(percent)s%"}))}))}},{key:"componentDidMount",value:function(){h["default"].on("file",this.handleFile)}},{key:"componentWillUnmount",value:function(){h["default"].removeListener("file",this.handleFile)}}]),t}(c["default"].Component);n["default"]=b,t.exports=n["default"]},{"../../common/lib/util":631,"../FilesDownloadController":664,"babel-runtime/core-js/number/parse-int":7,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],673:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/map")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("../actions"),h=l(f),d=e("../store"),m=l(d),b=e("../FSItem"),y=l(b),v=e("../DirItem"),g=l(v),_=e("./buttons"),T=l(_),E=e("./breadcrumbs"),C=l(E),w=e("./table"),S=l(w),P=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={showDownloads:!1},this.openDownloads=function(){return n.setState({showDownloads:!0})},this.handleDownloadsVisibility=function(e){n.state.showDownloads&&!e&&n.setState({showDownloads:!1})}}return i(t,e),o(t,null,[{key:"getStores",value:function(){return[m["default"]]}},{key:"calculateState",value:function(e,t){var n=m["default"].currentDir,r=m["default"].updatePeriod;return{currentDir:n,lastDirUpdate:n?n.lastUpdate:!1,selectedItem:m["default"].selectedItem,updatePeriod:r,filter:m["default"].filter,order:m["default"].order}}}]),o(t,[{key:"render",value:function(){var e=this.state,t=e.error,n=e.currentDir,r=e.lastDirUpdate,i=e.selectedItem,o=e.updatePeriod,s=e.showDownloads;if(!n)return c["default"].createElement(p.Alert,{bsStyle:"danger"},"No root directory");var a=n.items.sort(function(e,t){return e.isDir?-1:t.isDir?1:0}).map(function(e,t){return{path:e.path,basename:{path:e.path,name:e.basename,isDir:e.isDir},size:e.size,lastModification:e.lastModification}});return c["default"].createElement("div",{className:"files-main"},t&&c["default"].createElement(p.Alert,{bsStyle:"danger"},"Section not available"),!t&&n.loaded===!1&&c["default"].createElement(p.Alert,null,"Loading..."),!t&&n.loaded&&c["default"].createElement("div",null,c["default"].createElement(C["default"],{pathname:n.path,separator:n.separator,handleClick:function(e){return h["default"].cd(e)}}),c["default"].createElement(T["default"],{currentDir:n,lastUpdate:r,item:i,updatePeriod:o,onPeriodChange:null,showDownloads:s,onVisibilityChange:this.handleDownloadsVisibility}),c["default"].createElement("br",null),c["default"].createElement(S["default"],{
|
||
items:a,lastUpdate:n.lastUpdate,height:null,openDownloads:this.openDownloads})))}},{key:"componentDidMount",value:function(){h["default"].requestLS()}},{key:"componentDidUpdate",value:function(){var e=this.state,t=e.currentDir,n=e.updatePeriod;window&&t&&(!t.lastUpdate||t.lastUpdate+n<Date.now()/1e3)&&h["default"].requestLS(t.path)}}]),t}(c["default"].Component);P.propTypes={currentDir:c["default"].PropTypes.instanceOf(g["default"]),selectedItem:c["default"].PropTypes.instanceOf(y["default"]),updatePeriod:c["default"].PropTypes.number,filter:c["default"].PropTypes.instanceOf(a),order:c["default"].PropTypes.instanceOf(a)},n["default"]=P,t.exports=n["default"]},{"../DirItem":658,"../FSItem":659,"../actions":668,"../store":678,"./breadcrumbs":669,"./buttons":670,"./table":674,"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],674:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/number/is-nan")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("humanize"),h=l(f),d=e("../FileItem"),m=l(d),b=e("../actions"),y=l(b),v=e("../store"),g=l(v),_=e("../FilesDownloadController"),T=l(_),E=e("../../common/components/data-table"),C=l(E),w=e("../../common/lib/util"),S=104857600,P=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.handleResize=function(e){var t=a(window.innerHeight)?window.clientHeight:window.innerHeight,r=document.getElementById("files-table"),i=r?r.offsetTop:0;n.setState({height:t?t-i-10:0})},this.handleNameClick=function(e){return function(t){if(t.preventDefault(),t.stopPropagation(),e.isDir)y["default"].cd(e.path);else{var r=g["default"].getItem(e.path);if(!(r&&r instanceof m["default"]))return;!r.size||r.size<S?(T["default"].addFile(r),n.props.openDownloads&&n.props.openDownloads()):window.alert("Currently, the download is supported only with items of 100MB or less")}}},this.handleNameSort=function(e,t){return function(n,r){if("undefined"==typeof n[e]||"undefined"==typeof r[e])return 0;var i=n[e].name,o=r[e].name;return"undefined"==typeof i||"undefined"==typeof o?0:("string"==typeof i&&(i=i.toLowerCase()),"string"==typeof o&&(o=o.toLowerCase()),"ASC"===t?o>i?-1:i>o?1:0:i>o?-1:o>i?1:0)}},this.handleRowSelected="function"==typeof this.props.onRowSelected?this.props.onRowSelected:function(e,t){return y["default"].select(e)},this.handleRowUnselected="function"==typeof this.props.onRowUnselected?this.props.onRowUnselected:function(e,t){return y["default"].cleanSelected()},this.state={height:this.props.height||0}}return i(t,e),o(t,[{key:"render",value:function(){var e=this,t=this.state.height,n=this.props,r=n.items,i=n.lastUpdate,o=new E.DataColumn({dataKey:"path",name:"Path",hidden:!0}),s=new E.DataColumn({dataKey:"basename",name:"Name",sortable:!0,sortProps:{type:"string","sort-handler":this.handleNameSort},align:"left",cellFormatter:function(t){return"object"==typeof t?"string"==typeof t.name&&"undefined"!=typeof t.isDir&&"string"==typeof t.path?c["default"].createElement("a",{className:"file-link",href:"javascript:void(0)",onClick:e.handleNameClick(t)},c["default"].createElement(p.Glyphicon,{glyph:t.isDir?"folder-open":"file"}),c["default"].createElement("span",null,(0,w.fixText)(t.name))):"N/A":t}}),a=new E.DataColumn({dataKey:"size",name:"Size",align:"right",sortable:!0,width:"20%",sortProps:{type:"number"},cellFormatter:function(e){return e="undefined"==typeof e?h["default"].filesize(0):e===!1?"--":h["default"].filesize(e)}}),l=new E.DataColumn({dataKey:"lastModification",name:"Last modification",align:"right",width:"20%",sortable:!0,cellFormatter:function(e){return h["default"].relativeTime(e)}}),u={};return t&&(u.height=t+"px",u.overflow="auto"),c["default"].createElement("div",{id:"files-table",style:u},!i&&c["default"].createElement(p.Alert,{bsStyle:"info"},"Loading..."),i&&r.length<=0&&c["default"].createElement(p.Alert,{bsStyle:"danger"},"There are no files"),i&&r.length>0&&c["default"].createElement(C["default"],{keyValue:"path",columns:[o,s,a,l],data:r,bordered:!1,hover:!0,responsive:!0,striped:!1,condensed:!1,onRowSelected:this.handleRowSelected,onRowUnselected:this.handleRowUnselected}))}},{key:"componentDidMount",value:function(){this.handleResize(),window&&window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window&&window.removeEventListener("resize",this.handleResize)}}]),t}(c["default"].Component);P.propTypes={items:c["default"].PropTypes.array,lastUpdate:c["default"].PropTypes.oneOfType([c["default"].PropTypes.number,c["default"].PropTypes.bool]),height:c["default"].PropTypes.number,onRowSelected:c["default"].PropTypes.func,onRowUnselected:c["default"].PropTypes.func,openDownloads:c["default"].PropTypes.func},P.defaultProps={items:[],lastUpdate:!1,height:0},n["default"]=P,t.exports=n["default"]},{"../../common/components/data-table":614,"../../common/lib/util":631,"../FileItem":661,"../FilesDownloadController":664,"../actions":668,"../store":678,"babel-runtime/core-js/number/is-nan":5,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,humanize:176,react:581,"react-bootstrap":365}],675:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("react-bootstrap"),p=e("./uploads"),f=a(p),h=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.show,n=e.handleHide,r=e.typeOS,i=e.dirname;return t?u["default"].createElement(c.Modal,{show:!0,onHide:n},u["default"].createElement(c.Modal.Header,{closeButton:!0},u["default"].createElement(c.Modal.Title,null,"Uploads")),u["default"].createElement(c.Modal.Body,null,u["default"].createElement(f["default"],{typeOS:r,dirname:i}))):null}}]),t}(u["default"].Component);h.propTypes={show:u["default"].PropTypes.bool,handleHide:u["default"].PropTypes.func,typeOS:u["default"].PropTypes.string.isRequired,dirname:u["default"].PropTypes.string.isRequired},h.defaultPropTypes={show:!1},n["default"]=h,t.exports=n["default"]},{"./uploads":676,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],676:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/number/parse-int")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("../../common/lib/util"),h=e("../FilesUploadController"),d=l(h),m=e("../FileItem"),b=l(m),y=e("../UserFile"),v=l(y),g=e("../actions"),_=l(g),T=50,E=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.getUploadFiles=function(){return d["default"].files.map(function(e,t){return{path:e.file.path,dirname:e.file.dirname,basename:e.file.basename,progress:e.progress}})},this.handleFile=function(e,t){n.setState({files:n.getUploadFiles()})},this.handleProgress=function(e,t){if(t>=100){var r=new b["default"](e,{},n.props.typeOS);r.dirname===n.props.dirname&&_["default"].requestLS(r.dirname)}},this.handleAddFile=function(e){var t=new v["default"](e,n.props.dirname,n.props.typeOS);d["default"].addFile(t)},this.handleFileChange=function(e){e.target.files[0]&&n.handleAddFile(e.target.files[0])},this.handleCloseFile=function(e){return function(t){d["default"].removeFile(e)}},this.state={files:this.getUploadFiles()}}return i(t,e),o(t,[{key:"render",value:function(){var e=this,t=this.state.files;return c["default"].createElement("div",{className:"file-uploads"},c["default"].createElement("input",{type:"file",name:"files",placeholder:"Click to upload",onChange:this.handleFileChange}),t.length>0&&c["default"].createElement("br",null),t.length>0&&c["default"].createElement(p.ListGroup,null,t.map(function(t,n){var r=(0,f.fixText)(t.basename);return c["default"].createElement(p.ListGroupItem,{key:n,bsStyle:t.progress<100?"info":"success"},c["default"].createElement(p.Button,{type:"button",className:"close",ariaLabel:"Close",onClick:e.handleCloseFile(t.path)},c["default"].createElement("span",{ariaHidden:!0},"×")),r.length>T&&c["default"].createElement("span",{title:r},r.substr(0,T-3)+"..."),r.length<=T&&c["default"].createElement("span",null,r),c["default"].createElement(p.ProgressBar,{now:a(t.progress,10),active:t.progress<100,label:"%(percent)s%"}))})))}},{key:"componentDidMount",value:function(){d["default"].on("file",this.handleFile),d["default"].on("progress",this.handleProgress)}},{key:"componentWillUnmount",value:function(){d["default"].removeListener("file",this.handleFile),d["default"].removeListener("progress",this.handleProgress)}}]),t}(c["default"].Component);E.propTypes={typeOS:c["default"].PropTypes.string.isRequired,dirname:c["default"].PropTypes.string.isRequired},n["default"]=E,t.exports=n["default"]},{"../../common/lib/util":631,"../FileItem":661,"../FilesUploadController":665,"../UserFile":666,"../actions":668,"babel-runtime/core-js/number/parse-int":7,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],677:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={INIT_FILES_STORE:"init-files-store",FILTER_FILES:"filter-files",SORT_FILES:"sort-files",CHANGE_DIRECTORY:"change-directory",SAVE_ITEMS:"fetch-files",SELECT_ITEM:"select-file",CLEAN_SELECTED_ITEM:"clean-selected-file",REMOVE_FILE:"remove-file",UPDATE_FILE_UPLOAD:"update-file-upload",CHANGE_PERIOD:"change-period"};n["default"]=r,t.exports=n["default"]},{}],678:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/symbol/iterator")["default"],l=e("babel-runtime/core-js/map")["default"],u=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var c=e("flux/utils"),p=e("path"),f=u(p),h=e("../../dispatcher"),d=u(h),m=e("../../common/lib/Logger"),b=u(m),y=e("../FSItem"),v=u(y),g=e("../FileItem"),_=u(g),T=e("../DirItem"),E=u(T),C=e("../constants"),w=u(C),S=new b["default"]({section:"Files store"}),P=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.initialize()}return i(t,e),o(t,[{key:"initialize",value:function(){this.__root=new E["default"](""),this.__root.isRoot=!0,this.__currentPath="",this.__cleanSelectedItem(),this.__cleanFilter(),this.__cleanOrder(),this.__order.set("name","ASC"),this.__updatePeriod=5}},{key:"getPathArray",value:function(e){if("string"!=typeof e)throw new TypeError("Invalid type of the path");return e.length<=0?new Array:f["default"].normalize(e).split(/[\\/]/)}},{key:"__getItem",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.__root:arguments[1];if(!("string"==typeof e||e instanceof Array))throw new TypeError("Invalid type of the path");if("string"==typeof e&&(e=this.getPathArray(e)),!(t instanceof E["default"]))throw new TypeError("Invalid type of the root directory");if(e.length<=0)return t;var n=!1,r=e.shift();return r&&t.has(r)&&(n=t.get(r),e.length>0&&(n=this.__getItem(e,n))),n}},{key:"__getDir",value:function(e,t){var n=this.__getItem(e,t);return n&&n.isDir?n:!1}},{key:"__getFile",value:function(e,t){var n=this.__getItem(e,t);return n&&n.isFile?n:!1}},{key:"getItem",value:function(e){return this.__getItem(e,this.__root)}},{key:"getDir",value:function(e){return this.__getDir(e,this.__root)}},{key:"getFile",value:function(e){return this.__getFile(e,this.__root)}},{key:"__saveItem",value:function(e){if(!(e instanceof v["default"]))throw new TypeError("Invalid type of the item");var t=this.getPathArray(e.dirname),n=function r(t,n){if(!("string"==typeof t||t instanceof Array))throw new TypeError("Invalid type of the dirname");if("string"==typeof t&&(t=this.getPathArray(t)),!(n&&n instanceof E["default"]))throw new TypeError("Invalid type of the root directory");if(t.length<=0)return n.add(e),n;var i=t.shift();if(i){var o=void 0;if(o=n.has(i)?n.get(i):new E["default"](f["default"].join(n.path,i),{},this.__root.typeSO),t.length<=0)return o.add(e),o;var s=r(t,o);return s?o:!1}return!1};return!!n(t,this.__root)}},{key:"__saveItems",value:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?Date.now():arguments[2];if("undefined"==typeof e[a])throw new TypeError("The items should be iterable");if("string"!=typeof t)throw new TypeError("Invalid type of the dirname");if(t.length>0){var r=this.__getDir(t);return r||(r=new E["default"](t,{},this.__root.typeSO)),r.items=e,r.lastUpdate=n,this.__saveItem(r)}return this.__root.items=e,this.__root.lastUpdate=n,!0}},{key:"__setSelectedItem",value:function(e){this.__selectedItem=e}},{key:"__cleanSelectedItem",value:function(){this.__selectedItem=""}},{key:"__setFilter",value:function(e,t){var n=this;if("undefined"==typeof e||e.length<=0)throw new TypeError("The filter item is empty");if("string"!=typeof t)throw new TypeError("The filter is not a string");e instanceof Array||(e=[e]),e.forEach(function(e){if(!n.__filter.has(e))throw new TypeError("The filter item do not exists");n.__filter.set(e,t)})}},{key:"__cleanFilter",value:function(){this.__filter=this.defautFilterObject}},{key:"__setOrder",value:function(e,t){if("undefined"==typeof e||e.length<=0)throw new TypeError("The order item is empty");if(!this.__order.has(e))throw new TypeError("The order item do not exists");var n=this.__order.get(e);this.__order=this.defautSortObject,"undefined"==typeof t&&(""===n?t="ASC":"ASC"===n?t="DESC":"DESC"===n&&(t="")),this.__order.set(e,t)}},{key:"__cleanOrder",value:function(){this.__order=this.defautSortObject}},{key:"__onDispatch",value:function(e){switch(e.actionType){case w["default"].INIT_FILES_STORE:S.info("Initializing store..."),this.initialize(),this.__emitChange();break;case w["default"].FILTER_FILES:S.info("Filtering files..."),this.__setFilter(e.prop,e.filter),this.__emitChange();break;case w["default"].SORT_FILES:S.info("Sorting files..."),this.__setOrder(e.prop,e.order),this.__emitChange();break;case w["default"].CHANGE_DIRECTORY:S.info("Changing directory..."),this.__currentPath=e.path,this.__emitChange();break;case w["default"].SAVE_ITEMS:if(S.info("Retrieving items..."),"string"==typeof e.path&&"undefined"!=typeof e.items&&"undefined"!=typeof e.items[a]&&"string"==typeof e.typeOS&&"number"==typeof e.timestamp){this.__root.loaded||(this.__root.typeOS=e.typeOS);var t={size:"file_size",lastModification:"mtime",isDir:"is_dir",basename:"file_name"},n=new Array;for(var r in e.items){var i=e.items[r];try{var o=void 0,s=f["default"].join(e.path,i[t.basename]);i[t.isDir]?(o=this.getDir(s),o||(o=new E["default"](s,{lastModification:i[t.lastModification]},this.__root.typeOS))):o=new _["default"](s,{size:i[t.size],lastModification:i[t.lastModification]},this.__root.typeOS),n.push(o)}catch(l){S.warning("There was an error while parsing an item",i,l)}}try{this.__saveItems(n,e.path,e.timestamp),this.__emitChange()}catch(l){S.warning("There was an error while saving the items.","Path:",e.path,l)}}else S.warning("Invalid items");break;case w["default"].SELECT_ITEM:S.info("Selecting item..."),this.__setSelectedItem(e.path),this.__emitChange();break;case w["default"].CLEAN_SELECTED_ITEM:S.info("Deselecting item..."),this.__cleanSelectedItem(),this.__emitChange();break;case w["default"].CHANGE_PERIOD:S.info("Updating the period..."),"number"==typeof e.period?(e.period<0&&(e.period=0),this.__updatePeriod=e.period,this.__emitChange()):S.warning("Invalid period")}}},{key:"currentPath",get:function(){return this.__currentPath}},{key:"currentDir",get:function(){return this.__getDir(this.currentPath,this.__root)}},{key:"selectedItem",get:function(){return this.__getItem(this.__selectedItem,this.__root)}},{key:"filter",get:function(){return this.__filter}},{key:"order",get:function(){return this.__order}},{key:"updatePeriod",get:function(){return this.__updatePeriod}},{key:"defautFilterObject",get:function(){return new l}},{key:"defautSortObject",get:function(){return new l}}]),t}(c.Store);n["default"]=new P(d["default"]),t.exports=n["default"]},{"../../common/lib/Logger":626,"../../dispatcher":657,"../DirItem":658,"../FSItem":659,"../FileItem":661,"../constants":677,"babel-runtime/core-js/map":4,"babel-runtime/core-js/symbol/iterator":15,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"flux/utils":174,path:267}],679:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"],i=e("./common/lib/Logger"),o=r(i),s=e("./EHorus"),a=r(s);e("whatwg-fetch"),window.Logger=o["default"],window.EHorus=a["default"]},{"./EHorus":602,"./common/lib/Logger":626,"babel-runtime/helpers/interop-require-default":21,"whatwg-fetch":601}],680:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/core-js/symbol/for")["default"],s=e("babel-runtime/core-js/map")["default"],a=e("babel-runtime/core-js/number/is-nan")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(i(this,e),this.PID="",this.name="",this.CPU="",this.RAM="",this.description="","undefined"==typeof t.PID)throw new TypeError("The PID of the process is required");if(this.PID=t.PID,"undefined"==typeof t.name)throw new TypeError("The name of the process is required");if("string"!=typeof t.name)throw new TypeError("The name of the process should be a string");this.name=t.name,"undefined"!=typeof t.CPU?(this.CPU=Number(t.CPU),a(this.CPU)&&(this.CPU=0)):this.CPU=0,"undefined"!=typeof t.RAM?(this.RAM=Number(t.RAM),a(this.RAM)&&(this.RAM=0)):this.RAM=0,this.description=t.description||""}return r(e,null,[{key:"sortHandler",get:function(){return function(e,t){return"ASC"!==t&&"DESC"!==t&&(t="ASC"),function(n,r){var i=0,o="string"==typeof n[e]?n[e].toLowerCase():n[e],s="string"==typeof r[e]?r[e].toLowerCase():r[e];return o==s&&(i=0),"ASC"===t?i=o>s?1:-1:"DESC"===t&&(i=s>o?1:-1),i}}}},{key:"identifier",get:function(){return function(e,t){if("number"!=typeof e)throw new TypeError("The process PID should be a number");if("string"!=typeof t)throw new TypeError("The process name is not a string");return o("["+e+"] "+t)}}},{key:"defautSortObject",get:function(){var e=(new s).set("PID","").set("name","").set("CPU","").set("RAM","").set("description","");return e}},{key:"defautFilterObject",get:function(){var e=(new s).set("PID","").set("name","").set("CPU","").set("RAM","").set("description","");return e}}]),e}();n["default"]=l,t.exports=n["default"]},{"babel-runtime/core-js/map":4,"babel-runtime/core-js/number/is-nan":5,"babel-runtime/core-js/symbol/for":14,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17}],681:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("../../dispatcher"),o=r(i),s=e("../constants"),a=r(s),l=e("../../common/lib/remote"),u=r(l),c=e("../../constants"),p={requestList:function(){u["default"].send({proto:c.PROTO.PROCESSES,data:{action:"list"}})},requestStop:function(e,t){u["default"].send({proto:c.PROTO.PROCESSES,data:{action:"stop",pid:e,process_name:t}})},initializeStore:function(){o["default"].dispatch({actionType:a["default"].INIT_PROCESSES_STORE})},filter:function(e,t){o["default"].dispatch({actionType:a["default"].FILTER_PROCESSES,prop:e,filter:t})},sort:function(e,t){o["default"].dispatch({actionType:a["default"].SORT_PROCESSES,prop:e,order:t})},fetch:function(e,t,n){o["default"].dispatch({actionType:a["default"].FETCH_PROCESSES,list:e,systemInfo:t,timestamp:n})},select:function(e,t){o["default"].dispatch({actionType:a["default"].SELECT_PROCESS,PID:e,name:t})},cleanSelected:function(){o["default"].dispatch({actionType:a["default"].CLEAN_SELECTED_PROCESS})},stop:function(e,t){o["default"].dispatch({actionType:a["default"].STOP_PROCESS,PID:e,name:t})},remove:function(e,t){o["default"].dispatch({actionType:a["default"].REMOVE_PROCESS,PID:e,name:t})},addToStopping:function(e,t){o["default"].dispatch({actionType:a["default"].ADD_TO_STOPPING,PID:e,name:t})},removeFromStopping:function(e,t){o["default"].dispatch({actionType:a["default"].REMOVE_FROM_STOPPING,PID:e,name:t})},changePeriod:function(e){o["default"].dispatch({actionType:a["default"].CHANGE_PERIOD,period:e})}};n["default"]=p,t.exports=n["default"]},{"../../common/lib/remote":630,"../../constants":654,"../../dispatcher":657,"../constants":686,"babel-runtime/helpers/interop-require-default":21}],682:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/map")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("humanize"),h=(l(f),e("../../Process")),d=l(h),m=e("../../actions"),b=l(m),y=e("../../../common/components/BaseComponent"),v=l(y),g=e("../../../common/components/refresh-button"),_=l(g),T=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e)}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{updatePeriod:u.PropTypes.number,process:u.PropTypes.oneOfType([u.PropTypes.instanceOf(d["default"]),u.PropTypes.bool]),lastUpdate:u.PropTypes.oneOfType([u.PropTypes.number,u.PropTypes.bool]),onPeriodChange:u.PropTypes.func}}},{key:"defaultProps",get:function(){return{updatePeriod:0,process:!1,lastUpdate:!1}}},{key:"periods",get:function(){var e=new a;return e.set(0,"Never"),e.set(5,"5 seconds"),e.set(10,"10 seconds"),e.set(15,"15 seconds"),e.set(30,"30 seconds"),e.set(60,"1 minute"),e}}]),o(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this,n="Click on a process",r=!0;this.props.process instanceof d["default"]&&(n=this.props.process.name,r=!!this.props.process.stopping);var i=function(e,t){return c["default"].createElement(p.Tooltip,{id:e},t)},o=function(){return b["default"].requestList()},s=function(t){e.props.onPeriodChange&&(b["default"].changePeriod(t),e.props.onPeriodChange(t))},a=function(t){t.preventDefault(),e.props.process instanceof d["default"]&&(b["default"].addToStopping(e.props.process.PID,e.props.process.name),b["default"].requestStop(e.props.process.PID,e.props.process.name))};return c["default"].createElement("div",{id:"processes-buttons"},c["default"].createElement("div",{className:"row"},c["default"].createElement("div",{className:"col-md-3 text-left"},c["default"].createElement(_["default"],{lastUpdate:this.props.lastUpdate,periods:t.periods,activePeriod:this.props.updatePeriod,handleRefresh:o,handlePeriodChange:s},"Refresh processes")),c["default"].createElement("div",{className:"col-md-8 text-right"},c["default"].createElement(p.FormControl.Static,null,n)),c["default"].createElement("div",{className:"col-md-1 text-right"},c["default"].createElement(p.OverlayTrigger,{placement:"bottom",overlay:i("proc-tooltip-stop","Stop process")},c["default"].createElement(p.Button,{disabled:r,onClick:a},c["default"].createElement(p.Glyphicon,{glyph:"stop"}))))))}}]),t}(v["default"]);n["default"]=T,t.exports=n["default"]},{"../../../common/components/BaseComponent":607,"../../../common/components/refresh-button":624,"../../Process":680,"../../actions":681,"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,humanize:176,react:581,"react-bootstrap":365}],683:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var l=e("react"),u=a(l),c=e("humanize"),p=a(c),f=e("../../Process"),h=(a(f),e("../../actions")),d=(a(h),e("../../../common/components/BaseComponent")),m=a(d),b=e("../../../common/components/react-charts"),y=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e)}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{dataCPU:l.PropTypes.array.isRequired,dataRAM:l.PropTypes.array.isRequired,usedRAM:l.PropTypes.number.isRequired,totalRAM:l.PropTypes.number.isRequired,lastUpdate:l.PropTypes.oneOfType([l.PropTypes.number,l.PropTypes.bool])}}},{key:"defaultProps",get:function(){return{dataCPU:[],dataRAM:[],usedRAM:0,totalRAM:0,lastUpdate:!1}}}]),o(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=(this.state,this.props),t="rgb(41,170,204)",n="rgb(255,189,30)",r={background:t,borderRadius:"5px"},i={height:"80px",verticalAlign:"middle"};return!e.dataCPU||!e.dataRAM||!e.totalRAM||e.dataCPU.length<=0||e.dataRAM.length<=0?null:"number"!=typeof e.usedCPU||"number"!=typeof e.usedRAM?null:u["default"].createElement("div",{id:"processes-graphs",style:i,className:"hidden-xs"},u["default"].createElement("div",{className:"row"},u["default"].createElement("div",{className:"col-md-4 text-left"},u["default"].createElement("div",{className:"col-md-6 text-left"},u["default"].createElement("h4",null,"CPU")),u["default"].createElement("div",{className:"col-md-6 text-right"},u["default"].createElement("h3",null,e.usedCPU.toFixed(2)+"%"))),u["default"].createElement("div",{className:"col-md-2 text-center"},u["default"].createElement(b.AreaChart,{style:r,fill:n,stroke:n,width:160,height:80,data:e.dataCPU})),u["default"].createElement("div",{className:"col-md-2 text-center"},u["default"].createElement(b.AreaChart,{style:r,fill:n,stroke:n,width:160,height:80,data:e.dataRAM})),u["default"].createElement("div",{className:"col-md-4 text-right"},u["default"].createElement("div",{className:"col-md-8 text-left"},u["default"].createElement("h5",null,"Used: ",p["default"].filesize(e.usedRAM)),u["default"].createElement("h5",null,"Total: ",p["default"].filesize(e.totalRAM))),u["default"].createElement("div",{className:"col-md-4 text-right"},u["default"].createElement("h4",null,"RAM")))))}}]),t}(m["default"]);n["default"]=y,t.exports=n["default"]},{"../../../common/components/BaseComponent":607,"../../../common/components/react-charts":623,"../../Process":680,"../../actions":681,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,humanize:176,react:581}],684:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/map")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("../../../common/lib/Logger"),f=l(p),h=e("../../../common/lib/remote"),d=(l(h),e("../../../constants"),e("../../actions")),m=l(d),b=e("../../store"),y=l(b),v=e("../../Process"),g=l(v),_=e("../../../common/components/BaseComponent"),T=l(_),E=e("../processes-buttons"),C=l(E),w=e("../processes-table"),S=l(w),P=e("../processes-graphs"),x=l(P),k=(new f["default"]({section:"Processes main"}),function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this._bind("startUpdateInterval","stopUpdateInterval")}return i(t,e),o(t,null,[{key:"propTypes",value:function(){return{processes:u.PropTypes.arrayOf(u.PropTypes.instanceOf(g["default"])),lastUpdate:u.PropTypes.number,updatePeriod:u.PropTypes.number,filter:u.PropTypes.instanceOf(a),order:u.PropTypes.instanceOf(a)}}},{key:"getStores",value:function(){return[y["default"]]}},{key:"calculateState",value:function(e,n){var r,i=this,o=new f["default"]({section:"Processes main (static)"});try{r=t.getProcessedProcesses(y["default"].processes)}catch(s){o.error(s)}var a=[],l=[],u=r.reduce(function(e,t){return e+=t.CPU},0),c=r.reduce(function(e,t){return e+=t.RAM},0);return!function(){var t=y["default"].processesLastUpdate,n=y["default"].updatePeriod?y["default"].updatePeriod:5,r=25*n,o=y["default"].systemInfo.totalRAM,s=o?100*c/o:0;e?o&&t!==!1&&(e.lastUpdate===!1||e.lastUpdate!==!1&&t>e.lastUpdate)?!function(){t/=1e3,n/=1e3;var i=t-(r+2*n);for(e.cpuGraphData.length>0&&(a=e.cpuGraphData.filter(function(e){return e.x>i&&e.x<t})),a.push({x:t,y:u});a[0].x>t-r;)a.unshift({x:a[0].x-n,y:0});for(e.ramGraphData.length>0&&(l=e.ramGraphData.filter(function(e){return e.x>i&&e.x<t})),l.push({x:t,y:s});l[0].x>t-r;)l.unshift({x:l[0].x-n,y:0})}():(a=e.cpuGraphData,l=e.ramGraphData):(a=i.defaultGraphData(r,n),l=i.defaultGraphData(r,n))}(),{processes:r?r:[],cpuGraphData:a,usedCPU:u,ramGraphData:l,usedRAM:c,totalRAM:y["default"].systemInfo.totalRAM,selectedProcess:y["default"].selectedProcess,lastUpdate:y["default"].processesLastUpdate,updatePeriod:y["default"].updatePeriod,filter:y["default"].filter,order:y["default"].order}}},{key:"getProcessedProcesses",value:function(e){return e=e.sort(function(e,t){var n=g["default"].sortHandler("name","ASC")(e,t);return 0===n?g["default"].sortHandler("PID","ASC")(e,t):n})}},{key:"defaultGraphData",value:function(e,t){for(var n=Date.now()/1e3,r=[],i=n-(e+2*t);n>i;)r.push({x:i,y:0}),i+=t;return r.push({x:i,y:0}),r}}]),o(t,[{key:"startUpdateInterval",value:function(e){this.stopUpdateInterval(),e&&(this.__updateIntervalID=setInterval(function(){m["default"].requestList()},1e3*e))}},{key:"stopUpdateInterval",value:function(){this.__updateIntervalID&&clearInterval(this.__updateIntervalID)}},{key:"componentDidMount",value:function(){this.state.lastUpdate===!1&&m["default"].requestList(),
|
||
this.startUpdateInterval(this.state.updatePeriod)}},{key:"componentWillUnmount",value:function(){this.stopUpdateInterval()}},{key:"render",value:function(){var e=this.state;this.props;return c["default"].createElement("div",{className:"processses-main"},c["default"].createElement(C["default"],{process:e.selectedProcess,lastUpdate:e.lastUpdate,updatePeriod:e.updatePeriod,onPeriodChange:this.startUpdateInterval}),c["default"].createElement("br",null),c["default"].createElement(S["default"],{processes:e.processes,lastUpdate:e.lastUpdate,height:null}),c["default"].createElement(x["default"],{dataCPU:e.cpuGraphData,usedCPU:e.usedCPU,dataRAM:e.ramGraphData,usedRAM:e.usedRAM,totalRAM:e.totalRAM,lastUpdate:e.lastUpdate}))}}]),t}(T["default"]));n["default"]=k,t.exports=n["default"]},{"../../../common/components/BaseComponent":607,"../../../common/lib/Logger":626,"../../../common/lib/remote":630,"../../../constants":654,"../../Process":680,"../../actions":681,"../../store":687,"../processes-buttons":682,"../processes-graphs":683,"../processes-table":685,"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581}],685:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/number/is-nan")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("humanize"),h=l(f),d=e("../../Process"),m=l(d),b=e("../../actions"),y=l(b),v=e("../../../common/components/BaseComponent"),g=l(v),_=e("../../../common/components/data-table"),T=l(_),E=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={height:this.props.height||0},this._bind("__handleResize")}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{processes:u.PropTypes.arrayOf(u.PropTypes.instanceOf(m["default"])),lastUpdate:u.PropTypes.oneOfType([u.PropTypes.number,u.PropTypes.bool]),onRowSelected:u.PropTypes.func,onRowUnselected:u.PropTypes.func}}},{key:"defaultProps",get:function(){return{processes:[],lastUpdate:!1,height:0}}}]),o(t,[{key:"__handleResize",value:function(e){var t=a(window.innerHeight)?window.clientHeight:window.innerHeight,n=(document.getElementById("ehorus-section"),document.getElementById("processes-table")),r=n?n.offsetTop:0,i=document.getElementById("processes-graphs"),o=i?i.offsetHeight:80;this.setState({height:t?t-r-o-20:0})}},{key:"componentDidMount",value:function(){this.__handleResize(),window.addEventListener("resize",this.__handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.__handleResize)}},{key:"render",value:function(){var e=this.state,t=this.props,n=new _.DataColumn({dataKey:"PID",name:"PID",align:"left",width:"80px",sortable:!0,hidden:!1,sortProps:{type:"number"}}),r=new _.DataColumn({dataKey:"name",name:"Name",align:"left",sortable:!0,sortProps:{type:"string"}}),i=new _.DataColumn({dataKey:"CPU",name:"CPU",align:"right",width:"70px",sortable:!0,sortProps:{type:"number"},cellFormatter:function(e){return e+"%"}}),o=new _.DataColumn({dataKey:"RAM",name:"RAM",align:"right",width:"100px",sortable:!0,sortProps:{type:"number"},cellFormatter:function(e){return h["default"].filesize(e)}}),s=function(e,t){return y["default"].select(t.PID,t.name)},a=function(e,t){return y["default"].cleanSelected()},l={};return e.height&&(l.height=e.height+"px",l.overflow="auto",l.marginBottom="10px"),c["default"].createElement("div",{id:"processes-table",style:l},t.lastUpdate?t.processes.length>0?c["default"].createElement(T["default"],{keyValue:"PID",columns:[n,r,i,o],data:t.processes,bordered:!0,hover:!0,responsive:!0,striped:!0,condensed:!0,onRowSelected:t.onRowSelected||s,onRowUnselected:t.onRowUnselected||a}):c["default"].createElement(p.Alert,{bsStyle:"danger"},"There are no processes"):c["default"].createElement(p.Alert,{bsStyle:"info"},"Loading..."))}}]),t}(g["default"]);n["default"]=E,t.exports=n["default"]},{"../../../common/components/BaseComponent":607,"../../../common/components/data-table":614,"../../Process":680,"../../actions":681,"babel-runtime/core-js/number/is-nan":5,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,humanize:176,react:581,"react-bootstrap":365}],686:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={INIT_PROCESSES_STORE:"init-processes-store",FILTER_PROCESSES:"filter-processes",SORT_PROCESSES:"sort-processes",FETCH_PROCESSES:"fetch-processes",SELECT_PROCESS:"select-process",CLEAN_SELECTED_PROCESS:"clean-selected-process",STOP_PROCESS:"stop-process",REMOVE_PROCESS:"remove-process",ADD_TO_STOPPING:"add-process-to-stopping",REMOVE_FROM_STOPPING:"remove-process-from-stopping",CHANGE_PERIOD:"change-period"};n["default"]=r,t.exports=n["default"]},{}],687:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/sliced-to-array")["default"],l=e("babel-runtime/helpers/to-consumable-array")["default"],u=e("babel-runtime/core-js/map")["default"],c=e("babel-runtime/core-js/symbol/iterator")["default"],p=e("babel-runtime/core-js/get-iterator")["default"],f=e("babel-runtime/core-js/number/parse-int")["default"],h=e("babel-runtime/core-js/number/is-nan")["default"],d=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var m=e("flux/utils"),b=e("../../dispatcher"),y=d(b),v=e("../../common/lib/Logger"),g=d(v),_=e("../constants"),T=d(_),E=e("../Process"),C=d(E),w=new g["default"]({section:"Processes store"}),S=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.initialize()}return i(t,e),o(t,[{key:"initialize",value:function(){this.__processes=new u,this.__processesLastUpdate=!1,this.__cleanSelectedProcess(),this.__cleanStoppingProcesses(),this.__systemInfo={},this.__cleanFilter(),this.__cleanOrder(),this.__order.set("name","ASC"),this.__updatePeriod=5}},{key:"validateProcessIdentifier",value:function(e,t){var n=!0,r="",i=null;return"number"!=typeof e&&(n=!1,r="The process PID should be a number",i=new TypeError(r)),"string"!=typeof t&&(n=!1,r="The process name should be a string",i=new TypeError(r)),{result:n,message:r,error:i}}},{key:"process",value:function(e,t){var n=this.validateProcessIdentifier(e,t),r=n.error;if(r)throw r;return this.__processes.get(C["default"].identifier(e,t))}},{key:"isProcessStopping",value:function(e,t){var n=this.validateProcessIdentifier(e,t),r=n.error;if(r)throw r;var i=C["default"].identifier(e,t);return!(!this.__processes.has(i)||-1===this.__processesStopping.indexOf(i))}},{key:"__setProcesses",value:function(e){try{if("undefined"==typeof e)throw new TypeError("The processes source is empty");this.__clearProcesses(),this.__addProcesses(e)}catch(t){throw t}}},{key:"__addProcesses",value:function(e){if("undefined"==typeof e)throw new TypeError("The processes source is empty");try{var t=void 0;if("undefined"!=typeof e[c])t=e;else if("object"==typeof e){t=new u;for(var n in e)t.set(n,e[n])}if("undefined"==typeof t)throw new TypeError("The processes source is not iterable");var r=!0,i=!1,o=void 0;try{for(var s,l=p(t);!(r=(s=l.next()).done);r=!0){var d=a(s.value,2),n=d[0],m=d[1];if("undefined"==typeof m.PID){var b=f(n);if(h(b)){w.warning("The element is not well formed and cannot be introduced",m);continue}m.PID=b}this.__addProcess(m)}}catch(y){i=!0,o=y}finally{try{!r&&l["return"]&&l["return"]()}finally{if(i)throw o}}}catch(v){throw v}}},{key:"__clearProcess",value:function(e,t){var n=this.validateProcessIdentifier(e,t),r=n.error;if(r)throw r;this.__processes["delete"](C["default"].identifier(e,t))}},{key:"__clearProcesses",value:function(){this.__processes.size>0&&this.__processes.clear()}},{key:"__addProcess",value:function(e){if("undefined"==typeof e)throw new TypeError("The process source is empty");var t=this.validateProcessIdentifier(e.PID,e.name),n=t.error;if(n)throw n;try{e instanceof C["default"]?this.__processes.set(C["default"].identifier(e.PID,e.name),e):this.__processes.set(C["default"].identifier(e.PID,e.name),new C["default"](e))}catch(n){throw n}}},{key:"__setSelectedProcess",value:function(e,t){var n=this.validateProcessIdentifier(e,t),r=n.error;if(r)throw r;return this.__selectedProcess=C["default"].identifier(e,t)}},{key:"__cleanSelectedProcess",value:function(){this.__selectedProcess=""}},{key:"__addToStoppingProcesses",value:function(e,t){var n=this.validateProcessIdentifier(e,t),r=n.error;if(r)throw r;var i=C["default"].identifier(e,t);this.__processes.has(i)&&-1!==!this.__processesStopping.indexOf(i)&&this.__processesStopping.push(i)}},{key:"__removeFromStoppingProcesses",value:function(e,t){var n=this.validateProcessIdentifier(e,t),r=n.error;if(r)throw r;var i=C["default"].identifier(e,t),o=this.__processesStopping.indexOf(i);o>-1&&this.__servicesUpdating.splice(o,1)}},{key:"__updateStoppingProcesses",value:function(){var e=this;this.__processesStopping.filter(function(t){return e.__processes.has(t)})}},{key:"__cleanStoppingProcesses",value:function(){this.__processesStopping=[]}},{key:"__setFilter",value:function(e,t){var n=this;if("undefined"==typeof e||e.length<=0)throw new TypeError("The filter item is empty");if("string"!=typeof t)throw new TypeError("The filter is not a string");e instanceof Array||(e=[e]),e.forEach(function(e){if(!n.__filter.has(e))throw new TypeError("The filter item do not exists");n.__filter.set(e,t)})}},{key:"__cleanFilter",value:function(){this.__filter=C["default"].defautFilterObject}},{key:"__setOrder",value:function(e,t){if("undefined"==typeof e||e.length<=0)throw new TypeError("The order item is empty");if(!this.__order.has(e))throw new TypeError("The order item do not exists");var n=this.__order.get(e);this.__order=C["default"].defautSortObject,"undefined"==typeof t&&(""===n?t="ASC":"ASC"===n?t="DESC":"DESC"===n&&(t="")),this.__order.set(e,t)}},{key:"__cleanOrder",value:function(){this.__order=C["default"].defautSortObject}},{key:"__onDispatch",value:function(e){switch(e.actionType){case T["default"].INIT_PROCESSES_STORE:w.info("Initializing store..."),this.initialize(),this.__emitChange();break;case T["default"].FILTER_PROCESSES:w.info("Filtering processes..."),this.__setFilter(e.prop,e.filter),this.__emitChange();break;case T["default"].SORT_PROCESSES:w.info("Sorting processes..."),this.__setOrder(e.prop,e.order),this.__emitChange();break;case T["default"].FETCH_PROCESSES:w.info("Retrieving processes..."),e.list?(this.__setProcesses(e.list),this.__processesLastUpdate=Date.now(),e.systemInfo&&(this.__systemInfo={totalRAM:e.systemInfo.totalRAM,availableRAM:e.systemInfo.availableRAM}),this.__emitChange()):w.warning("Invalid processes");break;case T["default"].SELECT_PROCESS:w.info("Selecting process...");var t=this.validateProcessIdentifier(e.PID,e.name),n=t.result;n?(this.__setSelectedProcess(e.PID,e.name),this.__emitChange()):w.warning("Invalid values for the process selection");break;case T["default"].CLEAN_SELECTED_PROCESS:w.info("Deselecting the process..."),this.__cleanSelectedProcess(),this.__emitChange();break;case T["default"].STOP_PROCESS:w.info("Stopping the process '"+e.name+"' ["+e.PID+"]");break;case T["default"].ADD_TO_STOPPING:w.info("Adding the process '"+e.name+"' ["+e.PID+"] to the stopping list");var r=this.validateProcessIdentifier(e.PID,e.name),n=r.result;n?(this.__addToStoppingProcesses(e.PID,e.name),this.__emitChange()):w.warning("Invalid values for stopping the process");break;case T["default"].REMOVE_FROM_STOPPING:w.info("Removing the process '"+e.name+"' ["+e.PID+"] from the stopping list");var i=this.validateProcessIdentifier(e.PID,e.name),n=i.result;n?(this.__removeFromStoppingProcesses(e.PID,e.name),this.__emitChange()):w.warning("Invalid values for stopping the process");break;case T["default"].REMOVE_PROCESS:w.info("Removing the process '"+e.name+"' ["+e.PID+"]");var o=this.validateProcessIdentifier(e.PID,e.name),n=o.result;n?(this.__clearProcess(e.PID,e.name),this.__emitChange()):w.warning("Invalid values for removing the process");break;case T["default"].CHANGE_PERIOD:w.info("Updating the period..."),"number"==typeof e.period?(e.period<0&&(e.period=0),this.__updatePeriod=e.period,this.__emitChange()):w.warning("Invalid period")}}},{key:"processes",get:function(){return[].concat(l(this.__processes.values()))}},{key:"processesLastUpdate",get:function(){return this.__processesLastUpdate}},{key:"selectedProcess",get:function(){var e=this.__processes.get(this.__selectedProcess);return e&&(e.stopping=this.isProcessStopping(e.PID,e.name)),e}},{key:"systemInfo",get:function(){return this.__systemInfo}},{key:"filter",get:function(){return this.__filter}},{key:"order",get:function(){return this.__order}},{key:"updatePeriod",get:function(){return this.__updatePeriod}}]),t}(m.Store);n["default"]=new S(y["default"]),t.exports=n["default"]},{"../../common/lib/Logger":626,"../../dispatcher":657,"../Process":680,"../constants":686,"babel-runtime/core-js/get-iterator":2,"babel-runtime/core-js/map":4,"babel-runtime/core-js/number/is-nan":5,"babel-runtime/core-js/number/parse-int":7,"babel-runtime/core-js/symbol/iterator":15,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/sliced-to-array":22,"babel-runtime/helpers/to-consumable-array":23,"flux/utils":174}],688:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/assign")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("../constants/agent"),o={id:"",isConnecting:!1,isDisconnecting:!1,isConnected:!1,connectedAt:null,connectionError:!1,connectionErrorCode:null,connectionErrorMessage:null,isAuthenticating:!1,isAuthenticated:!1,authenticationError:!1,authenticationErrorCode:null,authenticationErrorMessage:null,uptime:0,version:"",address:"",hostname:"",description:"",language:"",os:"unknown",osVersion:"",architecture:"",cpuDescription:"",ram:0,hdd:0,isFetching:!1,receivedAt:null,error:!1,errorCode:null,errorMessage:null};n["default"]=function(e,t){switch(void 0===e&&(e=o),t.type){case i.RESET_AGENT_STATE:return o;case i.CONN_AGENT_REQUEST:return r({},e,{isConnecting:!0,isConnected:!1});case i.CONN_AGENT_SUCCESS:var n=t.payload.connectedAt;return r({},e,{isConnecting:!1,isConnected:!0,connectedAt:n});case i.CONN_AGENT_FAILURE:var s=t.payload,a=s.errorCode,l=s.errorMessage;return r({},e,{isConnecting:!1,isConnected:!1,connectionError:!0,connectionErrorCode:a,connectionErrorMessage:l});case i.DISCONN_AGENT_REQUEST:return r({},e,{isDisconnecting:!0});case i.DISCONN_AGENT_SUCCESS:return r({},e,{isDisconnecting:!1,isConnected:!1});case i.CLEAR_CONN_ERROR:return r({},e,{connectionError:o.connectionError,connectionErrorCode:o.connectionErrorCode,connectionErrorMessage:o.connectionErrorMessage});case i.REVOKE_AGENT_AUTH:return r({},e,{isAuthenticating:!1,isAuthenticated:!1});case i.AUTH_AGENT_REQUEST:return r({},e,{isAuthenticating:!0,isAuthenticated:!1});case i.AUTH_AGENT_SUCCESS:return r({},e,{isAuthenticating:!1,isAuthenticated:!0});case i.AUTH_AGENT_FAILURE:var u=t.payload,c=u.errorCode,p=u.errorMessage;return r({},e,{isAuthenticating:!1,isAuthenticated:!1,authenticationError:!0,authenticationErrorCode:c,authenticationErrorMessage:p});case i.CLEAR_AUTH_ERROR:return r({},e,{authenticationError:o.authenticationError,authenticationErrorCode:o.authenticationErrorCode,authenticationErrorMessage:o.authenticationErrorMessage});case i.FETCH_AGENT_REQUEST:return r({},e,{isFetching:!0});case i.FETCH_AGENT_SUCCESS:var f=t.payload,h=f.data,d=f.receivedAt,m=h.id,b=h.uptime,y=h.version,v=h.address,g=h.hostname,_=h.description,T=h.language,E=h.os,C=h.osVersion,w=h.architecture,S=h.cpuDescription,P=h.ram,x=h.hdd;return r({},e,{isFetching:!1,receivedAt:d,id:m,uptime:b,version:y,address:v,hostname:g,description:_,language:T,os:E,osVersion:C,architecture:w,cpuDescription:S,ram:P,hdd:x});case i.FETCH_AGENT_FAILURE:var k=t.payload,M=k.errorCode,A=k.errorMessage;return r({},e,{isFetching:!1,error:!0,errorCode:M,errorMessage:A});case i.CLEAR_AGENT_ERROR:return r({},e,{error:!1,errorCode:null,errorMessage:null});default:return e}},t.exports=n["default"]},{"../constants/agent":650,"babel-runtime/core-js/object/assign":8}],689:[function(e,t,n){"use strict";function r(e){return(0,u.getActiveSection)(e.sections)}function i(e,t){return(0,u.getSection)(e.sections,t)}function o(e){return(0,u.getSections)(e.sections)}var s=e("babel-runtime/core-js/object/assign")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0}),n.getActiveSection=r,n.getSection=i,n.getSections=o;var l=e("../constants/app"),u=e("../reducers/sections"),c=a(u);n["default"]=function(e,t){switch(void 0===e&&(e={logoURL:"",showHeader:!0,agentLastContact:0,agentIsBusy:!1,handleDisconnect:function(){}}),t.type){case l.UPDATE_LOGO_URL:var n=t.payload.logoURL;return s({},e,{logoURL:n});case l.SHOW_HEADER:return s({},e,{showHeader:!0});case l.HIDE_HEADER:return s({},e,{showHeader:!1});case l.UPDATE_DISCONNECT_HANDLER:var r=(void 0).payload.handleDisconnect;return s({},e,{handleDisconnect:r});default:return s({},e,{sections:(0,c["default"])(e.sections,t)})}}},{"../constants/app":651,"../reducers/sections":692,"babel-runtime/core-js/object/assign":8,"babel-runtime/helpers/interop-require-default":21}],690:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/assign")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("../constants/display"),o={trueColor:!0,localCursor:!0,shared:!0,viewOnly:!1,isConnecting:!1,isDisconnecting:!1,isConnected:!1,error:!1,errorCode:null,errorMessage:null};n["default"]=function(e,t){switch(void 0===e&&(e=o),t.type){case i.RESET_DISPLAY_STATE:return o;case i.CONN_DISPLAY_REQUEST:return r({},e,{isConnecting:!0,isDisconnecting:!1,isConnected:!1,error:o.error,errorCode:o.errorCode,errorMessage:o.errorMessage});case i.CONN_DISPLAY_SUCCESS:return r({},e,{isConnecting:!1,isDisconnecting:!1,isConnected:!0});case i.CONN_DISPLAY_FAILURE:var n=t.payload,s=n.errorCode,a=n.errorMessage;return r({},e,{isConnecting:!1,isDisconnecting:!1,isConnected:!1,error:!0,errorCode:s,errorMessage:a});case i.DISCONN_DISPLAY_REQUEST:return r({},e,{isConnecting:!1,isDisconnecting:!0});case i.DISCONN_DISPLAY_SUCCESS:return r({},e,{isConnecting:!1,isDisconnecting:!1,isConnected:!1});case i.UPDATE_DISPLAY_DATA:var l=t.payload.data;return r({},e,l);case i.CLEAR_DISPLAY_ERROR:return r({},e,{error:o.error,errorCode:o.errorCode,errorMessage:o.errorMessage});default:return e}},t.exports=n["default"]},{"../constants/display":653,"babel-runtime/core-js/object/assign":8}],691:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("redux"),o=e("../reducers/app"),s=r(o),a=e("../reducers/agent"),l=r(a),u=e("../reducers/terminal"),c=r(u),p=e("../reducers/display"),f=r(p);n["default"]=(0,i.combineReducers)({app:s["default"],agent:l["default"],terminal:c["default"],display:f["default"]}),t.exports=n["default"]},{"../reducers/agent":688,"../reducers/app":689,"../reducers/display":690,"../reducers/terminal":693,"babel-runtime/helpers/interop-require-default":21,redux:588}],692:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/define-property")["default"],i=e("babel-runtime/core-js/object/assign")["default"];Object.defineProperty(n,"__esModule",{value:!0});var o=e("../constants/app"),s=function(e,t){switch(void 0===e&&(e={key:"",name:"",enabled:!1}),t.type){case o.ENABLE_SECTION:return i({},{enabled:!0});case o.DISABLE_SECTION:return i({},{enabled:!1});case o.UPDATE_SECTION:var n=t.payload.data,r=n.enabled;return i({},e,{enabled:r});default:return e}},a=function(e,t){switch(void 0===e&&(e={terminal:{key:"terminal",name:"Terminal",enabled:!1},display:{key:"display",name:"Display",enabled:!1},processes:{key:"processes",name:"Processes",enabled:!0},services:{key:"services",name:"Services",enabled:!0},files:{key:"files",name:"Files",enabled:!1}}),t.type){case o.FETCH_SECTIONS_SUCCESS:var n=t.payload.items,a=i({},e);return n.forEach(function(t){a[t.key]=s(e[t.key],{type:o.UPDATE_SECTION,payload:{data:t}})}),a;case o.ENABLE_SECTION:case o.DISABLE_SECTION:case o.UPDATE_SECTION:var l=t.payload.key;return i({},e,r({},l,s(e[l],t)));default:return e}},l=function(e,t){switch(void 0===e&&(e=["terminal","display","processes","services","files"]),t.type){case o.FETCH_SECTIONS_SUCCESS:return e;default:return e}},u=function(e){var t=e.active;if(t&&e.byKey[t]){var n=e.byKey[t];if(n.enabled)return t}return null};n.getActiveSection=u;var c=function(e,t){return e.byKey[t]};n.getSection=c;var p=function(e){return e.keys.map(function(t){return c(e,t)})};n.getSections=p,n["default"]=function(e,t){switch(void 0===e&&(e={active:null,isFetching:!1,receivedAt:null,error:!1,errorCode:null,errorMessage:null}),t.type){case o.SELECT_SECTION:return i({},e,{active:t.payload.key});case o.FETCH_SECTIONS_REQUEST:return i({},e,{isFetching:!0});case o.FETCH_SECTIONS_FAILURE:var n=t.payload,r=n.errorCode,s=n.errorMessage;return i({},e,{isFetching:!1,error:!0,errorCode:r,errorMessage:s});case o.FETCH_SECTIONS_SUCCESS:var u=t.payload.receivedAt;return i({},e,{isFetching:!0,receivedAt:u,byKey:a(e.byKey,t),keys:l(e.keys,t)});case o.ENABLE_SECTION:case o.DISABLE_SECTION:default:return i({},e,{byKey:a(e.byKey,t),keys:l(e.keys,t)})}}},{"../constants/app":651,"babel-runtime/core-js/object/assign":8,"babel-runtime/helpers/define-property":18}],693:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/assign")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("../constants/terminal"),o={cols:80,rows:24,isInitializing:!1,isInitialized:!1,initializedAt:null,error:!1,errorCode:null,errorMessage:null,newData:null,dataReveivedAt:null};n["default"]=function(e,t){switch(void 0===e&&(e=o),t.type){case i.RESET_TERM_STATE:return o;case i.INIT_TERM_REQUEST:var n=t.payload,s=n.cols,a=n.rows;return r({},e,{isInitializing:!0,isInitialized:!1,cols:s,rows:a});case i.INIT_TERM_SUCCESS:var l=t.payload.initializedAt;return r({},e,{isInitializing:!1,isInitialized:!0,initializedAt:l});case i.INIT_TERM_FAILURE:var u=t.payload,c=u.errorCode,p=u.errorMessage;return r({},e,{isInitializing:!1,isInitialized:!1,error:!0,errorCode:c,errorMessage:p});case i.SAVE_TERM_DATA:var f=t.payload,h=f.newData,d=f.dataReveivedAt;return r({},e,{newData:h,dataReveivedAt:d});case i.CLEAR_TERM_ERROR:return r({},e,{error:!1,errorCode:null,errorMessage:null});default:return e}},t.exports=n["default"]},{"../constants/terminal":655,"babel-runtime/core-js/object/assign":8}],694:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/number/parse-int")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var o=e("../common/lib/Logger"),s=i(o),a=e("../constants"),l=e("../files-manager/actions"),u=i(l),c=e("../files-manager/DirItem"),p=i(c),f=e("../files-manager/FilesUploadController"),h=i(f),d=e("../files-manager/FilesDownloadController"),m=i(d),b=e("../common/lib/base64"),y=new s["default"]({section:"Files response"});n["default"]=function(e,t){e.onOpen(function(e){h["default"].startUploads(),m["default"].startDownloads()}),e.onClose(function(e){h["default"].pauseUploads(),m["default"].pauseDownloads()}),e.onClosing(function(e){h["default"].stopUploads(),m["default"].stopDownloads()}),e.on(a.PROTO.FILES,function(e){try{if(e=JSON.parse(e),"undefined"==typeof e.action)throw Error("Missing action on message");switch(e.action){case"ls":if("undefined"!=typeof e.status&&!e.status)throw"string"==typeof e.path&&e.path.length>0?(u["default"].cd(""),Error("Error opening the directory ",e.path)):((void 0).setState({error:!0}),Error("Error retrieving the file list"));if("string"!=typeof e.path)throw Error("Missing parameter on message");if("object"!=typeof e.list)throw Error("Missing parameter on message");if("undefined"==typeof e.timestamp)throw Error("Missing parameter on message");if("string"!=typeof e.os)throw Error("Missing parameter on message");e.timestamp*=1e3,u["default"].saveItems(e.path,e.list,e.os,e.timestamp);break;case"upload":if("string"!=typeof e.dir_name)throw Error("Missing parameter on message");if("string"!=typeof e.file_name)throw Error("Missing parameter on message");if("undefined"==typeof e.timestamp)throw Error("Missing parameter on message");if("string"!=typeof e.os)throw Error("Missing parameter on message");if("undefined"==typeof e.status)throw Error("Missing parameter on message");if("number"!=typeof e.offset)throw Error("Missing parameter on message");if(e.status){var t=new p["default"](e.dir_name,{},e.os),n="";n=t.path.length>0?t.path+t.separator+e.file_name:e.file_name,h["default"].updateFileOffset(n,e.offset,e.timestamp)}else y.error("Error uploading the file",o);break;case"download":if("string"!=typeof e.dir_name)throw Error("Missing parameter on message");if("string"!=typeof e.file_name)throw Error("Missing parameter on message");if("undefined"==typeof e.timestamp)throw Error("Missing parameter on message");if("string"!=typeof e.os)throw Error("Missing parameter on message");if("undefined"==typeof e.size)throw Error("Missing parameter on message");var i=new p["default"](e.dir_name,{},e.os),o=i.path.length>0?i.path+i.separator+e.file_name:e.file_name;e.chunk=(0,b.base64DecToArr)(e.chunk);var s=r(e.size,10);m["default"].saveChunk(o,e.chunk,e.offset,s);break;default:y.warning("Invalid action:",e.action)}}catch(a){y.error(a)}})},t.exports=n["default"]},{"../common/lib/Logger":626,"../common/lib/base64":627,"../constants":654,"../files-manager/DirItem":658,"../files-manager/FilesDownloadController":664,"../files-manager/FilesUploadController":665,"../files-manager/actions":668,"babel-runtime/core-js/number/parse-int":7,"babel-runtime/helpers/interop-require-default":21}],695:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("../common/lib/Logger"),o=r(i),s=e("../constants"),a=e("../actions/app"),l=e("../actions/agent"),u=e("../responses/terminal"),c=r(u),p=e("../responses/system"),f=r(p),h=e("../responses/processes"),d=r(h),m=e("../responses/files"),b=r(m),y=e("../responses/services"),v=r(y),g=new o["default"]({section:"Responses"});n["default"]=function(e,t){e.onOpen(function(e){g.info("[ws]","Connection open",e),t((0,l.connectionAgentSuccess)(Date.now()))}),e.onOpening(function(e){g.info("[ws]","Opening connection..."),t((0,l.clearAuthenticationError)()),t((0,l.clearConnectionError)()),t((0,l.connectionAgentRequest)())}),e.onClose(function(e){if(g.info("[ws]","Connection closed",e),!e.wasClean||1e3!==e.code){var n=new Error("WebSocket error");n.response={code:e.code,reason:e.reason},t((0,l.connectionAgentFailure)(n))}t((0,l.revokeAgentAuthentication)()),t((0,l.disconnectionAgentSuccess)())}),e.onClosing(function(e){g.info("[ws]","Closing connection..."),t((0,l.disconnectionAgentRequest)())}),e.onError(function(e){g.info("[ws]","Connection error",e)}),e.on(s.PROTO.CONN_READY,function(e){t((0,l.autenticateAgentSuccess)()),t((0,a.fetchSections)()),t((0,l.fetchAgent)())}),e.on(s.PROTO.AGENT_PASS,function(e){g.info("Needed pass")}),e.on(s.PROTO.AUTH_ERROR,function(e){g.info("Auth error");var n=new Error("Authentication error");n.response={code:e.code,reason:e.reason},t((0,l.autenticateAgentFailure)(n))}),(0,f["default"])(e,t),(0,d["default"])(e,t),(0,b["default"])(e,t),(0,v["default"])(e,t),(0,c["default"])(e,t)},t.exports=n["default"]},{"../actions/agent":603,"../actions/app":604,"../common/lib/Logger":626,"../constants":654,"../responses/files":694,"../responses/processes":696,"../responses/services":697,"../responses/system":698,"../responses/terminal":699,"babel-runtime/helpers/interop-require-default":21}],696:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/number/parse-float")["default"],i=e("babel-runtime/core-js/number/is-nan")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var s=e("../common/lib/Logger"),a=o(s),l=e("../constants"),u=e("../processes-manager/actions"),c=o(u),p=new a["default"]({section:"Processes response"});n["default"]=function(e,t){e.on(l.PROTO.PROCESSES,function(e){try{if(e=JSON.parse(e),"undefined"==typeof e.action)throw Error("Missing action on message");switch(p.info("[PROTO.PROCESSES]",e),e.action){case"list":if("object"!=typeof e.list)throw Error("Missing parameter on message");if("object"!=typeof e.sysinfo)throw Error("Missing parameter on message");if("undefined"==typeof e.timestamp)throw Error("Missing parameter on message");var t=r(e.sysinfo.ram_total),n=r(e.sysinfo.ram_avail);if(i(t)||i(n)||0>t||0>n||n>t)throw TypeError("Invalid parameter on message");t*=1014,n*=1014;var o={totalRAM:t,availableRAM:n};c["default"].fetch(e.list,o,e.timestamp);break;case"stop":if("number"!=typeof e.result)throw Error("Missing parameter on message");if("number"!=typeof e.pid)throw Error("Missing parameter on message");if("string"!=typeof e.process_name)throw Error("Missing parameter on message");if("undefined"==typeof e.timestamp)throw Error("Missing parameter on message");e.message&&p.info(e.message),e.result&&(c["default"].remove(e.pid,e.process_name),c["default"].cleanSelected()),c["default"].removeFromStopping(e.pid,e.process_name);break;default:p.warning("Invalid action:",e.action)}}catch(s){p.error(s)}})},t.exports=n["default"]},{"../common/lib/Logger":626,"../constants":654,"../processes-manager/actions":681,"babel-runtime/core-js/number/is-nan":5,"babel-runtime/core-js/number/parse-float":6,"babel-runtime/helpers/interop-require-default":21}],697:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("../common/lib/Logger"),o=r(i),s=e("../constants"),a=e("../services-manager/actions"),l=r(a),u=new o["default"]({section:"Files response"});n["default"]=function(e,t){e.on(s.PROTO.SERVICES,function(e){try{if(e=JSON.parse(e),"undefined"==typeof e.action)throw Error("Missing action on message");switch(e.action){case"list":if("object"!=typeof e.list)throw Error("Missing parameter on message");if("undefined"==typeof e.timestamp)throw Error("Missing parameter on message");l["default"].fetch(e.list,e.timestamp);break;case"start":case"stop":if("undefined"==typeof e.result)throw Error("Missing parameter on message");if("string"!=typeof e.status)throw Error("Missing parameter on message");if("string"!=typeof e.service_name)throw Error("Missing parameter on message");if("undefined"==typeof e.timestamp)throw Error("Missing parameter on message");e.message&&u.info(e.message),e.result&&(l["default"].updateStatus(e.service_name,e.status),l["default"].removeFromUpdating(e.service_name));break;default:u.warning("Invalid action",e.action)}}catch(t){u.error(t)}})},t.exports=n["default"]},{"../common/lib/Logger":626,"../constants":654,"../services-manager/actions":701,"babel-runtime/helpers/interop-require-default":21}],698:[function(e,t,n){
|
||
"use strict";var r=e("babel-runtime/core-js/number/is-nan")["default"],i=e("babel-runtime/core-js/number/parse-int")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var s=e("../common/lib/Logger"),a=o(s),l=e("../constants"),u=e("../actions/app"),c=e("../actions/agent"),p=new a["default"]({section:"System response"});n["default"]=function(e,t){e.on(l.PROTO.SYSTEM,function(n){try{if(n=JSON.parse(n),"undefined"==typeof n.action)throw Error("Missing action on message");switch(p.info("[PROTO.SYSTEM]",n),n.action){case"get":var o=n.get||{},s={id:e.agentID};"undefined"!=typeof o.uptime&&(r(o.uptime)||(s.uptime=i(o.uptime,10))),"string"==typeof o.version&&(s.version=o.version),"string"==typeof o.address&&(s.address=o.address),"string"==typeof o.hostname&&(s.hostname=o.hostname),"string"==typeof o.description&&(s.description=o.description),"string"==typeof o.language&&(s.language=o.language),"string"==typeof o.os&&(s.os=o.os),"string"==typeof o.osVersion&&(s.osVersion=o.osVersion),"string"==typeof o.architecture&&(s.architecture=o.architecture),"string"==typeof o.cpuDescription&&(s.cpuDescription=o.cpuDescription),"undefined"!=typeof o.ram&&(r(o.ram)||(s.ram=i(o.ram,10))),"undefined"!=typeof o.hdd&&(r(o.hdd)||(s.hdd=i(o.hdd,10)));var a=Date.now();t((0,c.fetchAgentSuccess)(s,a));break;case"section":var l=n.section;if(l){var f=[],h=Date.now();l.displayManager&&f.push({key:"display",enabled:!0}),l.fileTransfer&&f.push({key:"files",enabled:!0}),l.remoteShell&&f.push({key:"terminal",enabled:!0}),t((0,u.fetchSectionsSuccess)(f,h))}break;default:p.warning("Invalid action:",n.action)}}catch(d){p.error(d)}})},t.exports=n["default"]},{"../actions/agent":603,"../actions/app":604,"../common/lib/Logger":626,"../constants":654,"babel-runtime/core-js/number/is-nan":5,"babel-runtime/core-js/number/parse-int":7,"babel-runtime/helpers/interop-require-default":21}],699:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("../common/lib/Logger"),o=r(i),s=e("../constants"),a=e("../actions/terminal"),l=new o["default"]({section:"Terminal response"});n["default"]=function(e,t){e.on(s.PROTO.TERM,function(e){try{t((0,a.saveTermData)(e,Date.now()))}catch(n){l.error(n)}}),e.on(s.PROTO.TERM_INIT,function(e){try{if(e)t((0,a.initializeTermSuccess)(Date.now()));else{var n=new Error("Error initializing the terminal");n.response={status:500,statusText:"Error initializing the terminal"},t((0,a.initializeTermFailure)(n))}}catch(r){l.error(r)}})},t.exports=n["default"]},{"../actions/terminal":606,"../common/lib/Logger":626,"../constants":654,"babel-runtime/helpers/interop-require-default":21}],700:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/core-js/map")["default"];Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(i(this,e),this.identifier="",this.name="",this.description="",this.status=e.UNKNOWN,"undefined"==typeof t.identifier)throw new TypeError("The identifier of the service is required");if("string"!=typeof t.name)throw new TypeError("The name of the service should be a string");if(this.identifier=t.identifier,"undefined"!=typeof t.name){if("string"!=typeof t.name)throw new TypeError("The full identifier of the service should be a string");this.name=t.name}else this.name=this.identifier;"undefined"!=typeof t.description&&(this.description=t.description),"undefined"!=typeof t.status&&(this.status=t.status)}return r(e,null,[{key:"NOT_RUNNING",get:function(){return"Not running"}},{key:"START_PENDING",get:function(){return"Start pending"}},{key:"STOP_PENDING",get:function(){return"Stop pending"}},{key:"RUNNING",get:function(){return"Running"}},{key:"RESUME_PENDING",get:function(){return"Resume pending"}},{key:"PAUSE_PENDING",get:function(){return"Pause pending"}},{key:"PAUSED",get:function(){return"Paused"}},{key:"UNKNOWN",get:function(){return"Unknown"}},{key:"possibleStatus",get:function(){return[e.NOT_RUNNING,e.START_PENDING,e.STOP_PENDING,e.RUNNING,e.RESUME_PENDING,e.PAUSE_PENDING,e.PAUSED,e.UNKNOWN]}},{key:"sortHandler",get:function(){return function(e,t){return"ASC"!==t&&"DESC"!==t&&(t="ASC"),function(n,r){var i=0;return n[e]==r[e]&&(i=0),"ASC"===t?i=n[e]>r[e]?1:-1:"DESC"===t&&(i=n[e]<r[e]?1:-1),i}}}},{key:"defautSortObject",get:function(){var e=new o;return e.set("identifier",""),e.set("name",""),e.set("description",""),e.set("status",""),e}},{key:"defautFilterObject",get:function(){var e=new o;return e.set("identifier",""),e.set("name",""),e.set("description",""),e.set("status",""),e}}]),r(e,[{key:"status",set:function(t){if("undefined"==typeof t)throw new TypeError("Empty status");if("string"!=typeof t)throw new TypeError("The status of the service should be a string");this.__status=e.UNKNOWN,t=t.trim(),t!==e.NOT_RUNNING&&t!==e.START_PENDING&&t!==e.STOP_PENDING&&t!==e.RUNNING&&t!==e.RESUME_PENDING&&t!==e.PAUSE_PENDING&&t!==e.PAUSED||(this.__status=t)},get:function(){return this.__status}}]),e}();n["default"]=s,t.exports=n["default"]},{"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17}],701:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var i=e("../../dispatcher"),o=r(i),s=e("../../common/lib/remote"),a=r(s),l=e("../constants"),u=r(l),c=e("../../constants"),p={requestList:function(){a["default"].send({proto:c.PROTO.SERVICES,data:{action:"list"}})},requestStop:function(e){a["default"].send({proto:c.PROTO.SERVICES,data:{action:"stop",service_name:e}})},requestStart:function(e){a["default"].send({proto:c.PROTO.SERVICES,data:{action:"start",service_name:e}})},initializeStore:function(){o["default"].dispatch({actionType:u["default"].INIT_SERVICES_STORE})},filter:function(e,t){o["default"].dispatch({actionType:u["default"].FILTER_SERVICES,prop:e,filter:t})},fetch:function(e,t){o["default"].dispatch({actionType:u["default"].FETCH_SERVICES,list:e,timestamp:t})},updateStatus:function(e,t){o["default"].dispatch({actionType:u["default"].UPDATE_STATUS,identifier:e,status:t})},addToUpdating:function(e){o["default"].dispatch({actionType:u["default"].ADD_TO_UPDATING,identifier:e})},removeFromUpdating:function(e){o["default"].dispatch({actionType:u["default"].REMOVE_FROM_UPDATING,identifier:e})},select:function(e){o["default"].dispatch({actionType:u["default"].SELECT_SERVICE,identifier:e})},cleanSelected:function(){o["default"].dispatch({actionType:u["default"].CLEAN_SELECTED_SERVICE})},changePeriod:function(e){o["default"].dispatch({actionType:u["default"].CHANGE_PERIOD,period:e})}};n["default"]=p,t.exports=n["default"]},{"../../common/lib/remote":630,"../../constants":654,"../../dispatcher":657,"../constants":706,"babel-runtime/helpers/interop-require-default":21}],702:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/map")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("humanize"),h=(l(f),e("../../Service")),d=l(h),m=e("../../actions"),b=l(m),y=e("../../../common/components/BaseComponent"),v=l(y),g=e("../../../common/components/refresh-button"),_=l(g),T=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this._bind("__handleStartButtonClick","__handleStopButtonClick")}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{updatePeriod:u.PropTypes.number,service:u.PropTypes.oneOfType([u.PropTypes.instanceOf(d["default"]),u.PropTypes.bool]),lastUpdate:u.PropTypes.oneOfType([u.PropTypes.number,u.PropTypes.bool]),onPeriodChange:u.PropTypes.func}}},{key:"defaultProps",get:function(){return{updatePeriod:0,service:!1,lastUpdate:!1}}},{key:"periods",get:function(){var e=new a;return e.set(0,"Never"),e.set(5,"5 seconds"),e.set(10,"10 seconds"),e.set(15,"15 seconds"),e.set(30,"30 seconds"),e.set(60,"1 minute"),e}}]),o(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"__handleStartButtonClick",value:function(e){e.preventDefault(),"undefined"!=typeof this.props.service&&(b["default"].addToUpdating(this.props.service.identifier),b["default"].updateStatus(this.props.service.identifier,d["default"].START_PENDING),b["default"].requestStart(this.props.service.identifier))}},{key:"__handleStopButtonClick",value:function(e){e.preventDefault(),"undefined"!=typeof this.props.service&&(b["default"].removeFromUpdating(this.props.service.identifier),b["default"].updateStatus(this.props.service.identifier,d["default"].STOP_PENDING),b["default"].requestStop(this.props.service.identifier))}},{key:"render",value:function(){var e=this,n=this.props.service,r="Click on a service",i=!1,o=!1,s=!1;n instanceof d["default"]&&(r=n.name,i=!0,o=n.status===d["default"].NOT_RUNNING||n.status===d["default"].PAUSED,s=n.status===d["default"].RUNNING||n.status===d["default"].PAUSED);var a=function(e,t){return c["default"].createElement(p.Tooltip,{id:e},t)},l=function(){return b["default"].requestList()},u=function(t){e.props.onPeriodChange&&(b["default"].changePeriod(t),e.props.onPeriodChange(t))},f=c["default"].createElement(_["default"],{lastUpdate:this.props.lastUpdate,periods:t.periods,activePeriod:this.props.updatePeriod,handleRefresh:l,handlePeriodChange:u},"Refresh services"),h=c["default"].createElement(p.OverlayTrigger,{placement:"bottom",overlay:a("services-tooltip-start","Start service")},c["default"].createElement(p.Button,{disabled:!o||!i,onClick:this.__handleStartButtonClick},c["default"].createElement(p.Glyphicon,{glyph:"play"}))),m=c["default"].createElement(p.OverlayTrigger,{placement:"bottom",overlay:a("services-tooltip-stop","Stop service")},c["default"].createElement(p.Button,{disabled:!s||!i,onClick:this.__handleStopButtonClick},c["default"].createElement(p.Glyphicon,{glyph:"stop"})));return c["default"].createElement("div",{className:"row"},c["default"].createElement("div",{className:"col-md-3 text-left"},f),c["default"].createElement("div",{className:"col-md-7 text-right"},c["default"].createElement(p.FormControl.Static,null,r)),c["default"].createElement("div",{className:"col-md-2 text-right"},c["default"].createElement(p.ButtonGroup,null,h,m)))}}]),t}(v["default"]);n["default"]=T,t.exports=n["default"]},{"../../../common/components/BaseComponent":607,"../../../common/components/refresh-button":624,"../../Service":700,"../../actions":701,"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,humanize:176,react:581,"react-bootstrap":365}],703:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/map")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("../../Service"),h=l(f),d=e("../../actions"),m=l(d),b=e("../../../common/components/BaseComponent"),y=l(b),v=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this._bind("__handleSearchChange","__handleTypeChange")}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{filter:u.PropTypes.instanceOf(a).isRequired}}}]),o(t,[{key:"__handleSearchChange",value:function(e){e.preventDefault(),m["default"].filter(["name","description"],e.target.value)}},{key:"__handleTypeChange",value:function(e){e.preventDefault(),m["default"].filter("status",e.target.value)}},{key:"render",value:function(){var e=this.props.filter.get("name"),t=this.props.filter.get("description"),n="";return"undefined"!=typeof e&&e.length>0?n=e:"undefined"!=typeof t&&t.length>0&&(n=t),c["default"].createElement("form",{className:"form-horizontal",onSubmit:function(e){return e.preventDefault()}},c["default"].createElement(p.Input,{className:"no-mobile-zoom",type:"text",label:"Search",labelClassName:"col-xs-3",wrapperClassName:"col-xs-9",bsSize:"small",placeholder:"Type to filter",value:n,onChange:this.__handleSearchChange}),c["default"].createElement(p.Input,{className:"no-mobile-zoom",type:"select",label:"Status",labelClassName:"col-xs-3",wrapperClassName:"col-xs-9",bsSize:"small",value:this.props.filter.get("status"),onChange:this.__handleTypeChange},c["default"].createElement("option",{value:""},"Any"),h["default"].possibleStatus.map(function(e,t){return c["default"].createElement("option",{key:t,value:e},e)})))}}]),t}(y["default"]);n["default"]=v,t.exports=n["default"]},{"../../../common/components/BaseComponent":607,"../../Service":700,"../../actions":701,"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],704:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/map")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("../../../common/lib/Logger"),h=l(f),d=e("../../Service"),m=l(d),b=e("../../actions"),y=l(b),v=e("../../store"),g=l(v),_=e("../../../common/components/BaseComponent"),T=l(_),E=e("../services-filter"),C=l(E),w=e("../services-buttons"),S=l(w),P=e("../services-table"),x=l(P),k=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this._bind("startUpdateInterval","stopUpdateInterval")}return i(t,e),o(t,null,[{key:"propTypes",value:function(){return{services:u.PropTypes.arrayOf(u.PropTypes.instanceOf(m["default"])),selectedService:u.PropTypes.string,lastUpdate:u.PropTypes.number,updatePeriod:u.PropTypes.number,filter:u.PropTypes.instanceOf(a)}}},{key:"getStores",value:function(){return[g["default"]]}},{key:"calculateState",value:function(e,n){var r,i=new h["default"]({section:"Services main (static)"});try{r=t.getProcessedServices()}catch(o){i.error(o)}return{services:r||[],selectedService:g["default"].selectedService,lastUpdate:g["default"].servicesLastUpdate,updatePeriod:g["default"].updatePeriod,filter:g["default"].filter}}},{key:"getProcessedServices",value:function(){var e=g["default"].services,t=g["default"].filter;if(!(e instanceof Array))throw new TypeError("The services list should be an Array");if(!(t instanceof a))throw new TypeError("The filter should be a Map");var n=e.filter(function(e,n){var r=t.get("name"),i=t.get("description"),o=t.get("status");return"undefined"!=typeof r&&r.length>0&&-1===e.name.toLowerCase().indexOf(r.toLowerCase())&&"undefined"!=typeof i&&i.length>0&&-1===e.description.toLowerCase().indexOf(i.toLowerCase())?!1:!("undefined"!=typeof o&&o.length>0&&e.status.toLowerCase()!==o.toLowerCase())}),r=m["default"].sortHandler("identifier");return n=n.sort(r)}}]),o(t,[{key:"startUpdateInterval",value:function(e){this.stopUpdateInterval(),e&&(this.__updateIntervalID=setInterval(function(){y["default"].requestList()},1e3*e))}},{key:"stopUpdateInterval",value:function(){this.__updateIntervalID&&clearInterval(this.__updateIntervalID)}},{key:"componentDidMount",value:function(){this.state.lastUpdate===!1&&y["default"].requestList(),this.startUpdateInterval(this.state.updatePeriod)}},{key:"componentWillUnmount",value:function(){this.stopUpdateInterval()}},{key:"render",value:function(){var e=this.state;return c["default"].createElement("section",{id:"services-main"},c["default"].createElement(p.Panel,{collapsible:!0,header:"Filter",className:"hidden-xs"},c["default"].createElement(C["default"],{filter:e.filter})),c["default"].createElement(S["default"],{service:e.selectedService,lastUpdate:e.lastUpdate,updatePeriod:e.updatePeriod,onPeriodChange:this.startUpdateInterval}),c["default"].createElement("br",null),c["default"].createElement(x["default"],{services:e.services,lastUpdate:e.lastUpdate}))}}]),t}(T["default"]);n["default"]=k,t.exports=n["default"]},{"../../../common/components/BaseComponent":607,"../../../common/lib/Logger":626,"../../Service":700,"../../actions":701,"../../store":707,"../services-buttons":702,"../services-filter":703,"../services-table":705,"babel-runtime/core-js/map":4,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],705:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/core-js/number/is-nan")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var u=e("react"),c=l(u),p=e("react-bootstrap"),f=e("../../Service"),h=l(f),d=e("../../actions"),m=l(d),b=e("../../../common/components/BaseComponent"),y=l(b),v=e("../../../common/components/data-table"),g=l(v),_=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.defaultHeight=400,this.state={height:this.defaultHeight},this._bind("__handleResize")}return i(t,e),o(t,null,[{key:"propTypes",get:function(){return{services:u.PropTypes.arrayOf(u.PropTypes.instanceOf(h["default"])),lastUpdate:u.PropTypes.oneOfType([u.PropTypes.number,u.PropTypes.bool]),onRowSelected:u.PropTypes.func,onRowUnselected:u.PropTypes.func}}},{key:"defaultProps",get:function(){return{services:[],lastUpdate:!1,height:0}}}]),o(t,[{key:"__handleResize",value:function(e){var t=a(window.innerHeight)?window.clientHeight:window.innerHeight,n=document.getElementById("services-table").offsetTop;this.setState({height:t?t-n-10:this.defaultHeight})}},{key:"componentDidMount",value:function(){this.__handleResize(),window&&window.addEventListener("resize",this.__handleResize)}},{key:"componentWillUnmount",value:function(){window&&window.removeEventListener("resize",this.__handleResize)}},{key:"render",value:function(){var e=this.state,t=this.props,n=new v.DataColumn({dataKey:"identifier",name:"Identifier",hidden:!0}),r=new v.DataColumn({dataKey:"name",name:"Name",align:"left",sortable:!0,sortProps:{type:"string"}}),i=new v.DataColumn({dataKey:"description",name:"Description",align:"left",sortable:!0,sortProps:{type:"string"}}),o=new v.DataColumn({dataKey:"status",name:"Status",align:"right",width:"100px",sortable:!0}),s={columnKey:r.dataKey,value:"ASC"},a=function(e,t){return m["default"].select(t.identifier)},l=function(e,t){return m["default"].cleanSelected()},u={};return e.height&&(u.height=e.height+"px",u.overflow="auto",u.marginBottom="10px"),c["default"].createElement("div",{id:"services-table",style:u},!t.lastUpdate&&c["default"].createElement(p.Alert,{bsStyle:"info"},"Loading..."),t.lastUpdate&&t.services.length<=0&&c["default"].createElement(p.Alert,{bsStyle:"danger"},"There are no services"),t.lastUpdate&&t.services.length>0&&c["default"].createElement(g["default"],{keyValue:"identifier",columns:[n,r,i,o],orderBy:s,data:t.services,bordered:!0,hover:!0,responsive:!0,striped:!0,condensed:!0,onRowSelected:t.onRowSelected||a,onRowUnselected:t.onRowUnselected||l}))}}]),t}(y["default"]);n["default"]=_,t.exports=n["default"]},{"../../../common/components/BaseComponent":607,"../../../common/components/data-table":614,"../../Service":700,"../../actions":701,"babel-runtime/core-js/number/is-nan":5,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,react:581,"react-bootstrap":365}],706:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={INIT_SERVICES_STORE:"init-services-store",FILTER_SERVICES:"filter-services",SORT_SERVICES:"sort-services",FETCH_SERVICES:"fetch-services",SELECT_SERVICE:"select-service",CLEAN_SELECTED_SERVICE:"clean-selected-service",START_SERVICE:"start-service",STOP_SERVICE:"stop-service",UPDATE_STATUS:"update-service-status",ADD_TO_UPDATING:"add-service-to-updating",REMOVE_FROM_UPDATING:"remove-service-from-updating",CHANGE_PERIOD:"change-period"};n["default"]=r,t.exports=n["default"]},{}],707:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/get")["default"],i=e("babel-runtime/helpers/inherits")["default"],o=e("babel-runtime/helpers/create-class")["default"],s=e("babel-runtime/helpers/class-call-check")["default"],a=e("babel-runtime/helpers/sliced-to-array")["default"],l=e("babel-runtime/helpers/to-consumable-array")["default"],u=e("babel-runtime/core-js/map")["default"],c=e("babel-runtime/core-js/symbol/iterator")["default"],p=e("babel-runtime/core-js/get-iterator")["default"],f=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0});var h=e("flux/utils"),d=e("../../dispatcher"),m=f(d),b=e("../../common/lib/Logger"),y=f(b),v=e("../constants"),g=f(v),_=e("../Service"),T=f(_),E=new y["default"]({section:"Services store"}),C=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.initialize()}return i(t,e),o(t,[{key:"initialize",value:function(){this.__services=new u,this.__servicesLastUpdate=!1,this.__cleanSelectedService(),this.__cleanUpdatingServices(),this.__cleanFilter(),this.__updatePeriod=60}},{key:"service",value:function(e){if("undefined"==typeof e||e.length<=0)throw new TypeError("The service identifier is empty");if("string"!=typeof e)throw new TypeError("The identifier is not a string");return this.__services.get(e)}},{key:"isServiceUpdating",value:function(e){return this.__services.has(e)&&-1!==this.__servicesUpdating.indexOf(e)}},{key:"__setServices",value:function(e){try{if("undefined"==typeof e)throw new TypeError("The services source is empty");this.__clearServices(),this.__addServices(e)}catch(t){throw t}}},{key:"__addServices",value:function(e){if("undefined"==typeof e)throw new TypeError("The services source is empty");try{var t=void 0;if("undefined"!=typeof e[c])t=e;else if("object"==typeof e){t=new u;for(var n in e)t.set(n,e[n])}if("undefined"==typeof t)throw new TypeError("The services source is not iterable");var r=!0,i=!1,o=void 0;try{for(var s,l=p(t);!(r=(s=l.next()).done);r=!0){var f=a(s.value,2),n=f[0],h=f[1];if("undefined"==typeof h.identifier){if(!("string"==typeof n&&n.length>0)){E.warning("The element is not well formed and cannot be introduced",h);continue}h.identifier=n}this.__addService(h)}}catch(d){i=!0,o=d}finally{try{!r&&l["return"]&&l["return"]()}finally{if(i)throw o}}}catch(m){throw m}}},{key:"__clearService",value:function(e){if("undefined"==typeof e||e.length<=0)throw new TypeError("The service identifier is empty");this.__services["delete"](e)}},{key:"__clearServices",value:function(){this.__services.size>0&&this.__services.clear()}},{key:"__addService",value:function(e){if("undefined"==typeof e)throw new TypeError("The service source is empty");if("undefined"==typeof e.identifier||e.identifier.length<=0)throw new TypeError("Invalid service");try{e instanceof T["default"]?this.__services.set(e.identifier,e):this.__services.set(e.identifier,new T["default"](e))}catch(t){throw t}}},{key:"__setSelectedService",value:function(e){if("undefined"==typeof e||e.length<=0)throw new TypeError("The service identifier is empty");if("string"!=typeof e)throw new TypeError("The identifier is not a string");return this.__selectedService=e}},{key:"__cleanSelectedService",value:function(){this.__selectedService=""}},{key:"__addToUpdatingServices",value:function(e){this.__services.has(e)&&-1!==!this.__servicesUpdating.indexOf(e)&&this.__servicesUpdating.push(e)}},{key:"__removeFromUpdatingServices",value:function(e){var t=this.__servicesUpdating.indexOf(e);t>-1&&this.__servicesUpdating.splice(t,1)}},{key:"__updateUpdatingServices",value:function(){var e=this;this.__servicesUpdating.filter(function(t){return e.__services.has(t)})}},{key:"__cleanUpdatingServices",value:function(){this.__servicesUpdating=[]}},{key:"__setFilter",value:function(e,t){var n=this;if("undefined"==typeof e||e.length<=0)throw new TypeError("The filter item is empty");if("string"!=typeof t)throw new TypeError("The filter is not a string");e instanceof Array||(e=[e]),e.forEach(function(e){if(!n.__filter.has(e))throw new TypeError("The filter item do not exists");n.__filter.set(e,t)})}},{key:"__cleanFilter",value:function(){this.__filter=T["default"].defautFilterObject}},{key:"__onDispatch",value:function(e){switch(e.actionType){case g["default"].INIT_SERVICES_STORE:E.info("Initializing the store..."),this.initialize(),this.__emitChange();break;case g["default"].FILTER_SERVICES:E.info("Filtering the services..."),this.__setFilter(e.prop,e.filter),this.__emitChange();break;case g["default"].FETCH_SERVICES:E.info("Receiving services..."),e.list?(this.__setServices(e.list),this.__servicesLastUpdate=Date.now(),this.__emitChange()):E.warning("Invalid services");break;case g["default"].UPDATE_STATUS:if(E.info("Updating the service '"+e.identifier+"' status"),this.__services.has(e.identifier)&&e.status){var t=this.__services.get(e.identifier);t.status=e.status,this.__services.set(e.identifier,t),this.__emitChange()}else E.warning("Invalid service identifier or status");break;case g["default"].ADD_TO_UPDATING:E.info("Adding the service '"+e.identifier+"' to the updating list"),e.identifier?(this.__addToUpdatingServices(e.identifier),this.__emitChange()):E.warning("Invalid values for updating the service");break;case g["default"].REMOVE_FROM_UPDATING:E.info("Removing the service '"+e.identifier+"' from the updating list"),e.identifier?(this.__removeFromUpdatingServices(e.identifier),this.__emitChange()):E.warning("Invalid values for updating the service");break;case g["default"].SELECT_SERVICE:E.info("Selecting a service..."),this.__setSelectedService(e.identifier),this.__emitChange();break;case g["default"].CLEAN_SELECTED_SERVICE:E.info("Deselecting the service..."),this.__cleanSelectedService(),this.__emitChange();break;case g["default"].CHANGE_PERIOD:E.info("Updating the period..."),"number"==typeof e.period?(e.period<0&&(e.period=0),this.__updatePeriod=e.period,this.__emitChange()):E.warning("Invalid period")}}},{key:"services",get:function(){return[].concat(l(this.__services.values()))}},{key:"servicesLastUpdate",get:function(){return this.__servicesLastUpdate}},{key:"selectedService",get:function(){return this.__selectedService.length>0&&this.__services.has(this.__selectedService)?this.__services.get(this.__selectedService):!1}},{key:"filter",get:function(){return this.__filter}},{key:"updatePeriod",get:function(){return this.__updatePeriod}}]),t}(h.Store);n["default"]=new C(m["default"]),t.exports=n["default"]},{"../../common/lib/Logger":626,"../../dispatcher":657,"../Service":700,"../constants":706,"babel-runtime/core-js/get-iterator":2,"babel-runtime/core-js/map":4,"babel-runtime/core-js/symbol/iterator":15,"babel-runtime/helpers/class-call-check":16,"babel-runtime/helpers/create-class":17,"babel-runtime/helpers/get":19,"babel-runtime/helpers/inherits":20,"babel-runtime/helpers/interop-require-default":21,"babel-runtime/helpers/sliced-to-array":22,"babel-runtime/helpers/to-consumable-array":23,"flux/utils":174}],708:[function(e,t,n){"use strict";function r(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t="undefined"!=typeof window&&window.devToolsExtension?window.devToolsExtension()(o.createStore):o.createStore,n=(0,o.applyMiddleware)(a["default"])(t);return n(u["default"],e)}var i=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=r;var o=e("redux"),s=e("redux-thunk"),a=i(s),l=e("../reducers"),u=i(l);t.exports=n["default"]},{"../reducers":691,"babel-runtime/helpers/interop-require-default":21,redux:588,"redux-thunk":582}]},{},[679]); |