!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;st?-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;t1?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;oe)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>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;n0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(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+i2147483647?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;++o0&&(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=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=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>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-tn&&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;r1?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;++in;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])&&++t0&&(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.t8?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;++aa;){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;++n68?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=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])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];++r0){for(T||(o.polygonStart(),T=!0),o.lineStart();++s1&&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)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?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]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)x;if(!k&&S>P&&(E=S,S=P,P=E),M?k?S+P>0^T[1]<(Ts(T[0]-C)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)0?0:3:Ts(r[0]-n)0?2:1:Ts(r[1]-t)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)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)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)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?{x:p,y:Ts(t-p)Us?{x:Ts(n-d)Us?{x:f,y:Ts(t-f)Us?{x:Ts(n-h)=-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.yb||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.yr||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.yh){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.xo||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 or;++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]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=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;++sn;++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.rs;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=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]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++0;f--)s.push(o(u)*f);for(u=0;s[u]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;++sn?[NaN,NaN]:[n>0?a[n-1]:e[0],nt?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);++p1?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]];++t1&&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]];++t1){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;u9&&(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=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]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=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},us.max=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},us.extent=function(e,t){var n,r,i,o=-1,s=e.length;if(1===arguments.length){for(;++o=r){n=i=r;break}for(;++or&&(n=r),r>i&&(i=r))}else{for(;++o=r){n=i=r;break}for(;++or&&(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(;++s1?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=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)=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=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=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=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(;++ii){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;++rr;++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);++oo;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=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;++te;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;++ar){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++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;++re?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]:ePa?(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=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,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.xy&&(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=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;++na*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(;++r0?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;++lt;++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;++up?-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;++o0)for(o=-1;++o=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.xd.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;++it?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;++sn&&(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);++on.dx)&&(c=n.dx);++on&&(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;++ao;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]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;te||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=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=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;o1&&(n=n.charAt(0)):n=" ",r=void 0===r?"left":"right","right"===r)for(;e.length4&&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

"),e=e.replace(/\n/g,"
"),"

"+e+"

"},i.nl2br=function(e){return e.replace(/(\r\n|\n|\r)/g,"
")},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>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<>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<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;n0)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<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>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<=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&&s0){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<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<=1<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<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;as&&(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<=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++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.length0}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<=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){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;n1?" 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=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=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<=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>>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&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=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||eo;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=a?s(t):null,f=t.length;p&&(u=o,c=!1,t=p);e:for(;++lr;)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;++rt&&(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-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-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={};++n0,y=f.enumErrorProps&&(e===C||e instanceof Error),v=f.enumPrototypes&&a(e);++rr;++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.widthe?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=8&&(a-=8,h||(n[c++]=l>>a&255),l&=(1<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<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),rs.y1&&(s.y1=n.y),oe?(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;en.x+e-1&&(r.x2=n.x+e-1),tn.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=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.xt.x2&&r.push({x:t.x2+1,y:e.y,w:i-t.x2,h:e.h}),e.yt.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]<b;b++)for(y=0;yb;b++)for(y=0;y0?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.realxe.length:i>0},hasCharModifier:function(e,t){if(0===e.length)return!1;for(var n=0;n=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;ne;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;e0&&o("_print_stats() | "+this._encodings[e][0]+": "+t[0]+" rects");for(o("_print_stats() | encoding stats since page load:"),e=0;e0&&(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;ithis._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;r0&&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;l0?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<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++])<>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.sourceIndext;)n|=(255&e[r++])<>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;nr){if(n){if(this._rQi0&&(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;l0))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;n0?(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=-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=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;lt&&(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=[];++p1)for(var n=1;n1&&(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;r0||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(_,"``","`