/**
 * CyberChef - The Cyber Swiss Army Knife
 *
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 *
 *   Copyright 2016 Crown Copyright
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */!function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=1484)}({0:function(t,n,e){"use strict";(function(t,r,i){e.d(n,"c",(function(){return x})),e.d(n,"d",(function(){return _})),e.d(n,"e",(function(){return A})),e.d(n,"a",(function(){return M}));var o=e(8),a=e.n(o),u=e(11),c=e.n(u),f=e(1),s=e.n(f),l=e(2),h=e.n(l),d=e(24),p=e.n(d),v=e(16),g=e(20),y=e(30),m=e(29),b=function(){function n(){s()(this,n)}var e;return h()(n,null,[{key:"chr",value:function(t){if(t>65535){t-=65536;var n=String.fromCharCode(t>>>10&1023|55296);return t=56320|1023&t,n+String.fromCharCode(t)}return String.fromCharCode(t)}},{key:"ord",value:function(t){if(2===t.length){var n=t.charCodeAt(0),e=t.charCodeAt(1);if(n>=55296&&n<56320&&e>=56320&&e<57344)return 1024*(n-55296)+e-56320+65536}return t.charCodeAt(0)}},{key:"padBytesRight",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=new Array(n);return r.fill(e),[...t].forEach((function(t,n){r[n]=t})),r}},{key:"truncate",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t.length>n&&(t=t.slice(0,n-e.length)+e),t}},{key:"hex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(t="string"==typeof t?n.ord(t):t).toString(16).padStart(e,"0")}},{key:"bin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(t="string"==typeof t?n.ord(t):t).toString(2).padStart(e,"0")}},{key:"printable",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w()&&window.app&&!window.app.options.treatAsUtf8&&(t=n.byteArrayToChars(n.strToByteArray(t)));var r=/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,i=/[\x09-\x10\x0D\u2028\u2029]/g;return t=t.replace(r,"."),e||(t=t.replace(i,".")),t}},{key:"parseEscapedChars",value:function(t){return t.replace(/\\([bfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,(function(t,n){switch(n[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(n,8));case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(n.substr(1),16));case"u":return"{"===n[1]?String.fromCodePoint(parseInt(n.slice(2,-1),16)):String.fromCharCode(parseInt(n.substr(1),16))}}))}},{key:"escapeRegex",value:function(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(t){for(var e=[],r=0;r<t.length;r++)if(r<t.length-2&&"-"===t[r+1]&&"\\"!==t[r]){for(var i=n.ord(t[r]),o=n.ord(t[r+2]),a=i;a<=o;a++)e.push(n.chr(a));r+=2}else r<t.length-2&&"\\"===t[r]&&"-"===t[r+1]?(e.push("-"),r++):e.push(t[r]);return e}},{key:"convertToByteArray",value:function(t,e){switch(e.toLowerCase()){case"binary":return Object(m.a)(t);case"hex":return Object(g.a)(t);case"decimal":return Object(y.a)(t);case"base64":return Object(v.a)(t,null,"byteArray");case"utf8":return n.strToUtf8ByteArray(t);case"latin1":default:return n.strToByteArray(t)}}},{key:"convertToByteString",value:function(t,e){switch(e.toLowerCase()){case"binary":return n.byteArrayToChars(Object(m.a)(t));case"hex":return n.byteArrayToChars(Object(g.a)(t));case"decimal":return n.byteArrayToChars(Object(y.a)(t));case"base64":return n.byteArrayToChars(Object(v.a)(t,null,"byteArray"));case"utf8":return p.a.encode(t);case"latin1":default:return t}}},{key:"strToArrayBuffer",value:function(t){for(var e,r=new Uint8Array(t.length),i=t.length;i--;)if(e=t.charCodeAt(i),r[i]=e,e>255)return n.strToUtf8ArrayBuffer(t);return r.buffer}},{key:"strToUtf8ArrayBuffer",value:function(t){var e=p.a.encode(t);return t.length!==e.length&&(_()?self.setOption("attemptHighlight",!1):w()&&(window.app.options.attemptHighlight=!1)),n.strToArrayBuffer(e)}},{key:"strToByteArray",value:function(t){for(var e,r=new Array(t.length),i=t.length;i--;)if(e=t.charCodeAt(i),r[i]=e,e>255)return n.strToUtf8ByteArray(t);return r}},{key:"strToUtf8ByteArray",value:function(t){var e=p.a.encode(t);return t.length!==e.length&&(_()?self.setOption("attemptHighlight",!1):w()&&(window.app.options.attemptHighlight=!1)),n.strToByteArray(e)}},{key:"strToCharcode",value:function(t){for(var e=[],r=0;r<t.length;r++){var i=t.charCodeAt(r);if(r<t.length-1&&i>=55296&&i<56320){var o=t[r+1].charCodeAt(0);o>=56320&&o<57344&&(i=n.ord(t[r]+t[++r]))}e.push(i)}return e}},{key:"byteArrayToUtf8",value:function(t){var e=n.byteArrayToChars(t);try{var r=p.a.decode(e);return e.length!==r.length&&(_()?self.setOption("attemptHighlight",!1):w()&&(window.app.options.attemptHighlight=!1)),r}catch(t){return e}}},{key:"byteArrayToChars",value:function(t){if(!t)return"";for(var n="",e=0;e<t.length;)n+=String.fromCharCode(t[e++]);return n}},{key:"arrayBufferToStr",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=new Uint8Array(t);return e?n.byteArrayToUtf8(r):n.byteArrayToChars(r)}},{key:"calculateShannonEntropy",value:function(t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n,e=[],r=new Array(256).fill(0);for(n=0;n<t.length;n++)r[t[n]]++;for(n=0;n<r.length;n++)r[n]>0&&e.push(r[n]/t.length);var i,o=0;for(n=0;n<e.length;n++)o+=(i=e[n])*Math.log(i)/Math.log(2);return-o}},{key:"parseCSV",value:function(t){var n,e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[","],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],o=!1,a=!1,u="",c=[],f=[];t.length&&"\ufeff"===t[0]&&(t=t.substr(1));for(var s=0;s<t.length;s++)n=t[s],e=t[s+1]||"",o?(u+=n,o=!1):'"'!==n||a?'"'===n&&a?'"'===e?o=!0:a=!1:!a&&r.indexOf(n)>=0?(c.push(u),u=""):!a&&i.indexOf(n)>=0?(c.push(u),u="",f.push(c),c=[],i.indexOf(e)>=0&&e!==n&&s++):u+=n:a=!0;return c.length&&(c.push(u),f.push(c)),f}},{key:"stripHtmlTags",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&(t=t.replace(/<(script|style)[^>]*>.*<\/(script|style)>/gim,"")),t.replace(/<[^>]+>/g,"")}},{key:"escapeHtml",value:function(t){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"};return t.replace(/[&<>"'/`]/g,(function(t){return n[t]}))}},{key:"unescapeHtml",value:function(t){var n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/","&#x60;":"`"};return t.replace(/&#?x?[a-z0-9]{2,4};/gi,(function(t){return n[t]||t}))}},{key:"encodeURIFragment",value:function(t){var n={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(t=encodeURIComponent(t)).replace(/%[0-9A-F]{2}/g,(function(t){return n[t]||t}))}},{key:"generatePrettyRecipe",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e="",r="",i="",o="",a="";return t.forEach((function(t){r=t.op.replace(/ /g,"_"),i=JSON.stringify(t.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),o=t.disabled?"/disabled":"",a=t.breakpoint?"/breakpoint":"",e+=`${r}(${i}${o}${a})`,n&&(e+="\n")})),e}},{key:"parseRecipeConfig",value:function(t){if(0===(t=t.trim()).length)return[];if("["===t[0])return JSON.parse(t);var n,e;t=t.replace(/\n/g,"");for(var r=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,i=[];n=r.exec(t);){e="["+(e=n[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var o={op:n[1].replace(/_/g," "),args:JSON.parse(e)};n[3]&&n[3].indexOf("disabled")>0&&(o.disabled=!0),n[3]&&n[3].indexOf("breakpoint")>0&&(o.breakpoint=!0),i.push(o)}return i}},{key:"displayFilesAsHTML",value:(e=c()(a.a.mark((function t(e){var r,i,o,u,f;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=function(t){return`<div class='card' style='white-space: normal;'>\n                    <div class='card-header'>\n                        <h6 class="mb-0">\n                            ${n.escapeHtml(t.name)}\n                        </h6>\n                    </div>\n                </div>`},i=function(t,e){if(e.startsWith("image")){var r="data:";return r+=e+";","<img style='max-width: 100%;' src='"+(r+="base64,"+Object(v.b)(t))+"'>"}return`<pre>${n.escapeHtml(n.arrayBufferToStr(t.buffer))}</pre>`},o=function(){var t=c()(a.a.mark((function t(e,r){var o,u,c,f;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.readFile(e);case 2:return o=t.sent,u=new Blob([o],{type:e.type||"octet/stream"}),c=URL.createObjectURL(u),f=`<div class='card' style='white-space: normal;'>\n                    <div class='card-header' id='heading${r}'>\n                        <h6 class='mb-0'>\n                            <a class='collapsed'\n                                data-toggle='collapse'\n                                href='#collapse${r}'\n                                aria-expanded='false'\n                                aria-controls='collapse${r}'\n                                title="Show/hide contents of '${n.escapeHtml(e.name)}'">\n                                ${n.escapeHtml(e.name)}</a>\n                            <span class='float-right' style="margin-top: -3px">\n                                ${e.size.toLocaleString()} bytes\n                                <a title="Download ${n.escapeHtml(e.name)}"\n                                    href="${c}"\n                                    download="${n.escapeHtml(e.name)}"\n                                    data-toggle="tooltip">\n                                    <i class="material-icons" style="vertical-align: bottom">save</i>\n                                </a>\n                                <a title="Move to input"\n                                    href="#"\n                                    blob-url="${c}"\n                                    file-name="${n.escapeHtml(e.name)}"\n                                    class="extract-file"\n                                    data-toggle="tooltip">\n                                    <i class="material-icons" style="vertical-align: bottom">open_in_browser</i>\n                                </a>\n                            </span>\n                        </h6>\n                    </div>\n                    <div id='collapse${r}' class='collapse' aria-labelledby='heading${r}' data-parent="#files">\n                        <div class='card-body'>\n                            ${i(o,e.type)}\n                        </div>\n                    </div>\n                </div>`,t.abrupt("return",f);case 7:case"end":return t.stop()}}),t)})));return function(n,e){return t.apply(this,arguments)}}(),u=`<div style='padding: 5px; white-space: normal;'>\n                ${e.length} file(s) found\n            </div><div id="files" style="padding: 20px">`,f=0;case 5:if(!(f<e.length)){t.next=17;break}if(!e[f].name.endsWith("/")){t.next=10;break}u+=r(e[f]),t.next=14;break;case 10:return t.t0=u,t.next=13,o(e[f],f);case 13:u=t.t0+=t.sent;case 14:f++,t.next=5;break;case 17:return t.abrupt("return",u+="</div>");case 18:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"parseURIParams",value:function(t){if(""===t)return{};"?"!==t[0]&&"#"!==t[0]||(t=t.substr(1));for(var n=t.split("&"),e={},r=0;r<n.length;r++){var i=n[r].split("=");2!==i.length?e[n[r]]=!0:e[i[0]]=decodeURIComponent(i[1].replace(/\+/g," "))}return e}},{key:"readFile",value:function(n){return x()?t.from(n).buffer:new Promise((function(t,e){var r=new FileReader,i=new Uint8Array(n.size),o=0,a=function(){if(o>=n.size)t(i);else{var e=n.slice(o,o+10485760);r.readAsArrayBuffer(e)}};r.onload=function(t){i.set(new Uint8Array(r.result),o),o+=10485760,a()},r.onerror=function(t){e(r.error.message)},a()}))}},{key:"readFileSync",value:function(t){if(!x())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(t.data).buffer}},{key:"mod",value:function(t,n){return(t%n+n)%n}},{key:"gcd",value:function(t,e){return e?n.gcd(e,t%e):t}},{key:"modInv",value:function(t,n){t%=n;for(var e=1;e<n;e++)if(t*e%26==1)return e}},{key:"charRep",value:function(t){return{Space:" ",Percent:"%",Comma:",","Semi-colon":";",Colon:":",Tab:"\t","Line feed":"\n",CRLF:"\r\n","Forward slash":"/",Backslash:"\\","0x":"0x","\\x":"\\x","Nothing (separate chars)":"",None:""}[t]}},{key:"regexRep",value:function(t){return{Space:/\s+/g,Percent:/%/g,Comma:/,/g,"Semi-colon":/;/g,Colon:/:/g,"Line feed":/\n/g,CRLF:/\r\n/g,"Forward slash":/\//g,Backslash:/\\/g,"0x with comma":/,?0x/g,"0x":/0x/g,"\\x":/\\x/g,None:/\s+/g}[t]}}]),n}();function x(){return void 0!==r&&null!=r.versions&&null!=r.versions.node}function w(){return"object"==typeof window}function _(){return"function"==typeof importScripts}function A(t){_()?self.sendStatusMessage(t):w()?app.alert(t,1e4):x()&&!i.TESTING&&console.debug(t)}n.b=b,Array.prototype.unique=function(){for(var t={},n=[],e=0,r=this.length;e<r;e++)Object.prototype.hasOwnProperty.call(t,this[e])||(n.push(this[e]),t[this[e]]=1);return n},Array.prototype.max=function(){return Math.max.apply(null,this)},Array.prototype.min=function(){return Math.min.apply(null,this)},Array.prototype.sum=function(){return this.reduce((function(t,n){return t+n}),0)},Array.prototype.equals=function(t){if(!t)return!1;var n=this.length;if(n!==t.length)return!1;for(;n--;)if(this[n]!==t[n])return!1;return!0},String.prototype.count=function(t){return this.split(t).length-1};var E={};function M(t,n,e,r,i){return function(){clearTimeout(E[e]),E[e]=setTimeout((function(){t.apply(r,i)}),n)}}String.prototype.padStart||(String.prototype.padStart=function(t,n){return t>>=0,n=String(void 0!==n?n:" "),this.length>t?String(this):((t-=this.length)>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,n){return t>>=0,n=String(void 0!==n?n:" "),this.length>t?String(this):((t-=this.length)>n.length&&(n+=n.repeat(t/n.length)),String(this)+n.slice(0,t))})}).call(this,e(12).Buffer,e(27),e(25))},1:function(t,n){t.exports=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},101:function(t,n,e){"use strict";e.r(n),e.d(n,"create",(function(){return o})),e.d(n,"creator",(function(){return r.a})),e.d(n,"local",(function(){return u})),e.d(n,"matcher",(function(){return f.a})),e.d(n,"mouse",(function(){return s.a})),e.d(n,"namespace",(function(){return l.a})),e.d(n,"namespaces",(function(){return h.a})),e.d(n,"clientPoint",(function(){return d.a})),e.d(n,"select",(function(){return i.a})),e.d(n,"selectAll",(function(){return v})),e.d(n,"selection",(function(){return p.b})),e.d(n,"selector",(function(){return g.a})),e.d(n,"selectorAll",(function(){return y.a})),e.d(n,"style",(function(){return m.b})),e.d(n,"touch",(function(){return b.a})),e.d(n,"touches",(function(){return w})),e.d(n,"window",(function(){return _.a})),e.d(n,"event",(function(){return A.c})),e.d(n,"customEvent",(function(){return A.a}));var r=e(213),i=e(332),o=function(t){return Object(i.a)(Object(r.a)(t).call(document.documentElement))},a=0;function u(){return new c}function c(){this._="@"+(++a).toString(36)}c.prototype=u.prototype={constructor:c,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var f=e(414),s=e(678),l=e(322),h=e(216),d=e(214),p=e(190),v=function(t){return"string"==typeof t?new p.a([document.querySelectorAll(t)],[document.documentElement]):new p.a([null==t?[]:t],p.c)},g=e(323),y=e(415),m=e(416),b=e(677),x=e(331),w=function(t,n){null==n&&(n=Object(x.a)().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=Object(d.a)(t,n[e]);return i},_=e(324),A=e(188)},11:function(t,n){function e(t,n,e,r,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,i)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var a=t.apply(n,r);function u(t){e(a,i,o,u,c,"next",t)}function c(t){e(a,i,o,u,c,"throw",t)}u(void 0)}))}}},12:function(t,n,e){"use strict";(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var r=e(47),i=e(48),o=e(40);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,n){if(a()<n)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n)).__proto__=c.prototype:(null===t&&(t=new c(n)),t.length=n),t}function c(t,n,e){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,n,e);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return f(this,t,n,e)}function f(t,n,e,r){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(t,n,e,r){if(n.byteLength,e<0||n.byteLength<e)throw new RangeError("'offset' is out of bounds");if(n.byteLength<e+(r||0))throw new RangeError("'length' is out of bounds");n=void 0===e&&void 0===r?new Uint8Array(n):void 0===r?new Uint8Array(n,e):new Uint8Array(n,e,r);c.TYPED_ARRAY_SUPPORT?(t=n).__proto__=c.prototype:t=h(t,n);return t}(t,n,e,r):"string"==typeof n?function(t,n,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(n,e),i=(t=u(t,r)).write(n,e);i!==r&&(t=t.slice(0,i));return t}(t,n,e):function(t,n){if(c.isBuffer(n)){var e=0|d(n.length);return 0===(t=u(t,e)).length||n.copy(t,0,0,e),t}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(r=n.length)!=r?u(t,0):h(t,n);if("Buffer"===n.type&&o(n.data))return h(t,n.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,n)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,n){if(s(n),t=u(t,n<0?0:0|d(n)),!c.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;++e)t[e]=0;return t}function h(t,n){var e=n.length<0?0:0|d(n.length);t=u(t,e);for(var r=0;r<e;r+=1)t[r]=255&n[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,n){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return z(t).length;default:if(r)return U(t).length;n=(""+n).toLowerCase(),r=!0}}function v(t,n,e){var r=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(n>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return F(this,n,e);case"utf8":case"utf-8":return k(this,n,e);case"ascii":return B(this,n,e);case"latin1":case"binary":return O(this,n,e);case"base64":return M(this,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,n,e);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function y(t,n,e,r,i){if(0===t.length)return-1;if("string"==typeof e?(r=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof n&&(n=c.from(n,r)),c.isBuffer(n))return 0===n.length?-1:m(t,n,e,r,i);if("number"==typeof n)return n&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,n,e):Uint8Array.prototype.lastIndexOf.call(t,n,e):m(t,[n],e,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,n,e,r,i){var o,a=1,u=t.length,c=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||n.length<2)return-1;a=2,u/=2,c/=2,e/=2}function f(t,n){return 1===a?t[n]:t.readUInt16BE(n*a)}if(i){var s=-1;for(o=e;o<u;o++)if(f(t,o)===f(n,-1===s?0:o-s)){if(-1===s&&(s=o),o-s+1===c)return s*a}else-1!==s&&(o-=o-s),s=-1}else for(e+c>u&&(e=u-c),o=e;o>=0;o--){for(var l=!0,h=0;h<c;h++)if(f(t,o+h)!==f(n,h)){l=!1;break}if(l)return o}return-1}function b(t,n,e,r){e=Number(e)||0;var i=t.length-e;r?(r=Number(r))>i&&(r=i):r=i;var o=n.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var u=parseInt(n.substr(2*a,2),16);if(isNaN(u))return a;t[e+a]=u}return a}function x(t,n,e,r){return Y(U(n,t.length-e),t,e,r)}function w(t,n,e,r){return Y(function(t){for(var n=[],e=0;e<t.length;++e)n.push(255&t.charCodeAt(e));return n}(n),t,e,r)}function _(t,n,e,r){return w(t,n,e,r)}function A(t,n,e,r){return Y(z(n),t,e,r)}function E(t,n,e,r){return Y(function(t,n){for(var e,r,i,o=[],a=0;a<t.length&&!((n-=2)<0);++a)e=t.charCodeAt(a),r=e>>8,i=e%256,o.push(i),o.push(r);return o}(n,t.length-e),t,e,r)}function M(t,n,e){return 0===n&&e===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(n,e))}function k(t,n,e){e=Math.min(t.length,e);for(var r=[],i=n;i<e;){var o,a,u,c,f=t[i],s=null,l=f>239?4:f>223?3:f>191?2:1;if(i+l<=e)switch(l){case 1:f<128&&(s=f);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&f)<<6|63&o)>127&&(s=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&f)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(s=c);break;case 4:o=t[i+1],a=t[i+2],u=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(c=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(s=c)}null===s?(s=65533,l=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=l}return function(t){var n=t.length;if(n<=4096)return String.fromCharCode.apply(String,t);var e="",r=0;for(;r<n;)e+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return e}(r)}n.Buffer=c,n.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},n.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),n.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,n,e){return f(null,t,n,e)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,n,e){return function(t,n,e,r){return s(n),n<=0?u(t,n):void 0!==e?"string"==typeof r?u(t,n).fill(e,r):u(t,n).fill(e):u(t,n)}(null,t,n,e)},c.allocUnsafe=function(t){return l(null,t)},c.allocUnsafeSlow=function(t){return l(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,n){if(!c.isBuffer(t)||!c.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var e=t.length,r=n.length,i=0,o=Math.min(e,r);i<o;++i)if(t[i]!==n[i]){e=t[i],r=n[i];break}return e<r?-1:r<e?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,n){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var e;if(void 0===n)for(n=0,e=0;e<t.length;++e)n+=t[e].length;var r=c.allocUnsafe(n),i=0;for(e=0;e<t.length;++e){var a=t[e];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)g(this,n,n+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)g(this,n,n+3),g(this,n+1,n+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)g(this,n,n+7),g(this,n+1,n+6),g(this,n+2,n+5),g(this,n+3,n+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):v.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,n,e,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===e&&(e=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),n<0||e>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&n>=e)return 0;if(r>=i)return-1;if(n>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(e>>>=0)-(n>>>=0),u=Math.min(o,a),f=this.slice(r,i),s=t.slice(n,e),l=0;l<u;++l)if(f[l]!==s[l]){o=f[l],a=s[l];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,n,e){return-1!==this.indexOf(t,n,e)},c.prototype.indexOf=function(t,n,e){return y(this,t,n,e,!0)},c.prototype.lastIndexOf=function(t,n,e){return y(this,t,n,e,!1)},c.prototype.write=function(t,n,e,r){if(void 0===n)r="utf8",e=this.length,n=0;else if(void 0===e&&"string"==typeof n)r=n,e=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(e)?(e|=0,void 0===r&&(r="utf8")):(r=e,e=void 0)}var i=this.length-n;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,n,e);case"utf8":case"utf-8":return x(this,t,n,e);case"ascii":return w(this,t,n,e);case"latin1":case"binary":return _(this,t,n,e);case"base64":return A(this,t,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n,e);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(t,n,e){var r="";e=Math.min(t.length,e);for(var i=n;i<e;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,n,e){var r="";e=Math.min(t.length,e);for(var i=n;i<e;++i)r+=String.fromCharCode(t[i]);return r}function F(t,n,e){var r=t.length;(!n||n<0)&&(n=0),(!e||e<0||e>r)&&(e=r);for(var i="",o=n;o<e;++o)i+=I(t[o]);return i}function T(t,n,e){for(var r=t.slice(n,e),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function N(t,n,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+n>e)throw new RangeError("Trying to access beyond buffer length")}function C(t,n,e,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||n<o)throw new RangeError('"value" argument is out of bounds');if(e+r>t.length)throw new RangeError("Index out of range")}function S(t,n,e,r){n<0&&(n=65535+n+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(n&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(t,n,e,r){n<0&&(n=4294967295+n+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=n>>>8*(r?i:3-i)&255}function P(t,n,e,r,i,o){if(e+r>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function R(t,n,e,r,o){return o||P(t,0,e,4),i.write(t,n,e,r,23,4),e+4}function D(t,n,e,r,o){return o||P(t,0,e,8),i.write(t,n,e,r,52,8),e+8}c.prototype.slice=function(t,n){var e,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<t&&(n=t),c.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,n)).__proto__=c.prototype;else{var i=n-t;e=new c(i,void 0);for(var o=0;o<i;++o)e[o]=this[o+t]}return e},c.prototype.readUIntLE=function(t,n,e){t|=0,n|=0,e||N(t,n,this.length);for(var r=this[t],i=1,o=0;++o<n&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,n,e){t|=0,n|=0,e||N(t,n,this.length);for(var r=this[t+--n],i=1;n>0&&(i*=256);)r+=this[t+--n]*i;return r},c.prototype.readUInt8=function(t,n){return n||N(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,n){return n||N(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,n){return n||N(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,n){return n||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,n){return n||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,n,e){t|=0,n|=0,e||N(t,n,this.length);for(var r=this[t],i=1,o=0;++o<n&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*n)),r},c.prototype.readIntBE=function(t,n,e){t|=0,n|=0,e||N(t,n,this.length);for(var r=n,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*n)),o},c.prototype.readInt8=function(t,n){return n||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,n){n||N(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},c.prototype.readInt16BE=function(t,n){n||N(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},c.prototype.readInt32LE=function(t,n){return n||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,n){return n||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,n){return n||N(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,n){return n||N(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,n){return n||N(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,n){return n||N(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,n,e,r){(t=+t,n|=0,e|=0,r)||C(this,t,n,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[n]=255&t;++o<e&&(i*=256);)this[n+o]=t/i&255;return n+e},c.prototype.writeUIntBE=function(t,n,e,r){(t=+t,n|=0,e|=0,r)||C(this,t,n,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[n+i]=255&t;--i>=0&&(o*=256);)this[n+i]=t/o&255;return n+e},c.prototype.writeUInt8=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},c.prototype.writeUInt16LE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):S(this,t,n,!0),n+2},c.prototype.writeUInt16BE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):S(this,t,n,!1),n+2},c.prototype.writeUInt32LE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):j(this,t,n,!0),n+4},c.prototype.writeUInt32BE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):j(this,t,n,!1),n+4},c.prototype.writeIntLE=function(t,n,e,r){if(t=+t,n|=0,!r){var i=Math.pow(2,8*e-1);C(this,t,n,e,i-1,-i)}var o=0,a=1,u=0;for(this[n]=255&t;++o<e&&(a*=256);)t<0&&0===u&&0!==this[n+o-1]&&(u=1),this[n+o]=(t/a>>0)-u&255;return n+e},c.prototype.writeIntBE=function(t,n,e,r){if(t=+t,n|=0,!r){var i=Math.pow(2,8*e-1);C(this,t,n,e,i-1,-i)}var o=e-1,a=1,u=0;for(this[n+o]=255&t;--o>=0&&(a*=256);)t<0&&0===u&&0!==this[n+o+1]&&(u=1),this[n+o]=(t/a>>0)-u&255;return n+e},c.prototype.writeInt8=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},c.prototype.writeInt16LE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):S(this,t,n,!0),n+2},c.prototype.writeInt16BE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):S(this,t,n,!1),n+2},c.prototype.writeInt32LE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):j(this,t,n,!0),n+4},c.prototype.writeInt32BE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):j(this,t,n,!1),n+4},c.prototype.writeFloatLE=function(t,n,e){return R(this,t,n,!0,e)},c.prototype.writeFloatBE=function(t,n,e){return R(this,t,n,!1,e)},c.prototype.writeDoubleLE=function(t,n,e){return D(this,t,n,!0,e)},c.prototype.writeDoubleBE=function(t,n,e){return D(this,t,n,!1,e)},c.prototype.copy=function(t,n,e,r){if(e||(e=0),r||0===r||(r=this.length),n>=t.length&&(n=t.length),n||(n=0),r>0&&r<e&&(r=e),r===e)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-n<r-e&&(r=t.length-n+e);var i,o=r-e;if(this===t&&e<n&&n<r)for(i=o-1;i>=0;--i)t[i+n]=this[i+e];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+n]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),n);return o},c.prototype.fill=function(t,n,e,r){if("string"==typeof t){if("string"==typeof n?(r=n,n=0,e=this.length):"string"==typeof e&&(r=e,e=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;var o;if(n>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=n;o<e;++o)this[o]=t;else{var a=c.isBuffer(t)?t:U(new c(t,r).toString()),u=a.length;for(o=0;o<e-n;++o)this[o+n]=a[o%u]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function I(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,n){var e;n=n||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((e=t.charCodeAt(a))>55295&&e<57344){if(!i){if(e>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(n-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(n-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((n-=1)<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,n,e,r){for(var i=0;i<r&&!(i+e>=n.length||i>=t.length);++i)n[i+e]=t[i];return i}}).call(this,e(25))},124:function(t,n,e){"use strict";n.a=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}},125:function(t,n,e){"use strict";function r(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}e.d(n,"b",(function(){return r})),n.a=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t}},13:function(t,n,e){var r=e(49),i=e(50),o=e(51);t.exports=function(t,n){return r(t)||i(t,n)||o()}},132:function(t,n,e){"use strict";e.r(n);var r=e(73);e.d(n,"color",(function(){return r.e})),e.d(n,"rgb",(function(){return r.g})),e.d(n,"hsl",(function(){return r.f}));var i=e(346);e.d(n,"lab",(function(){return i.a})),e.d(n,"hcl",(function(){return i.c})),e.d(n,"lch",(function(){return i.d})),e.d(n,"gray",(function(){return i.b}));var o=e(425);e.d(n,"cubehelix",(function(){return o.a}))},1463:function(t,n,e){"use strict";e.r(n),e.d(n,"geoArea",(function(){return W})),e.d(n,"geoBounds",(function(){return Ut})),e.d(n,"geoCentroid",(function(){return Qt})),e.d(n,"geoCircle",(function(){return sn})),e.d(n,"geoClipAntimeridian",(function(){return An})),e.d(n,"geoClipCircle",(function(){return En})),e.d(n,"geoClipExtent",(function(){return Fn})),e.d(n,"geoClipRectangle",(function(){return Mn})),e.d(n,"geoContains",(function(){return Gn})),e.d(n,"geoDistance",(function(){return Ln})),e.d(n,"geoGraticule",(function(){return Jn})),e.d(n,"geoGraticule10",(function(){return Zn})),e.d(n,"geoInterpolate",(function(){return ee})),e.d(n,"geoLength",(function(){return Pn})),e.d(n,"geoPath",(function(){return tr})),e.d(n,"geoAlbers",(function(){return br})),e.d(n,"geoAlbersUsa",(function(){return xr})),e.d(n,"geoAzimuthalEqualArea",(function(){return Er})),e.d(n,"geoAzimuthalEqualAreaRaw",(function(){return Ar})),e.d(n,"geoAzimuthalEquidistant",(function(){return kr})),e.d(n,"geoAzimuthalEquidistantRaw",(function(){return Mr})),e.d(n,"geoConicConformal",(function(){return Cr})),e.d(n,"geoConicConformalRaw",(function(){return Nr})),e.d(n,"geoConicEqualArea",(function(){return mr})),e.d(n,"geoConicEqualAreaRaw",(function(){return yr})),e.d(n,"geoConicEquidistant",(function(){return Rr})),e.d(n,"geoConicEquidistantRaw",(function(){return Pr})),e.d(n,"geoEqualEarth",(function(){return qr})),e.d(n,"geoEqualEarthRaw",(function(){return Yr})),e.d(n,"geoEquirectangular",(function(){return jr})),e.d(n,"geoEquirectangularRaw",(function(){return Sr})),e.d(n,"geoGnomonic",(function(){return $r})),e.d(n,"geoGnomonicRaw",(function(){return Hr})),e.d(n,"geoIdentity",(function(){return Gr})),e.d(n,"geoProjection",(function(){return pr})),e.d(n,"geoProjectionMutator",(function(){return vr})),e.d(n,"geoMercator",(function(){return Or})),e.d(n,"geoMercatorRaw",(function(){return Br})),e.d(n,"geoNaturalEarth1",(function(){return Xr})),e.d(n,"geoNaturalEarth1Raw",(function(){return Wr})),e.d(n,"geoOrthographic",(function(){return Zr})),e.d(n,"geoOrthographicRaw",(function(){return Jr})),e.d(n,"geoStereographic",(function(){return Kr})),e.d(n,"geoStereographicRaw",(function(){return Qr})),e.d(n,"geoTransverseMercator",(function(){return ni})),e.d(n,"geoTransverseMercatorRaw",(function(){return ti})),e.d(n,"geoRotation",(function(){return un})),e.d(n,"geoStream",(function(){return U})),e.d(n,"geoTransform",(function(){return nr}));var r=function(){return new i};function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(t){a(o,t,this.t),a(this,o.s,this.s),this.s?this.t+=o.t:this.s=o.t},valueOf:function(){return this.s}};var o=new i;function a(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}var u=1e-6,c=Math.PI,f=c/2,s=c/4,l=2*c,h=180/c,d=c/180,p=Math.abs,v=Math.atan,g=Math.atan2,y=Math.cos,m=Math.ceil,b=Math.exp,x=(Math.floor,Math.log),w=Math.pow,_=Math.sin,A=Math.sign||function(t){return t>0?1:t<0?-1:0},E=Math.sqrt,M=Math.tan;function k(t){return t>1?0:t<-1?c:Math.acos(t)}function B(t){return t>1?f:t<-1?-f:Math.asin(t)}function O(t){return(t=_(t/2))*t}function F(){}function T(t,n){t&&C.hasOwnProperty(t.type)&&C[t.type](t,n)}var N={Feature:function(t,n){T(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)T(e[r].geometry,n)}},C={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){S(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)S(e[r],n,0)},Polygon:function(t,n){j(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)j(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)T(e[r],n)}};function S(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function j(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)S(t[e],n,1);n.polygonEnd()}var P,R,D,L,I,U=function(t,n){t&&N.hasOwnProperty(t.type)?N[t.type](t,n):T(t,n)},z=r(),Y=r(),q={point:F,lineStart:F,lineEnd:F,polygonStart:function(){z.reset(),q.lineStart=H,q.lineEnd=$},polygonEnd:function(){var t=+z;Y.add(t<0?l+t:t),this.lineStart=this.lineEnd=this.point=F},sphere:function(){Y.add(l)}};function H(){q.point=V}function $(){G(P,R)}function V(t,n){q.point=G,P=t,R=n,D=t*=d,L=y(n=(n*=d)/2+s),I=_(n)}function G(t,n){var e=(t*=d)-D,r=e>=0?1:-1,i=r*e,o=y(n=(n*=d)/2+s),a=_(n),u=I*a,c=L*o+u*y(i),f=u*r*_(i);z.add(g(f,c)),D=t,L=o,I=a}var W=function(t){return Y.reset(),U(t,q),2*Y};function X(t){return[g(t[1],t[0]),B(t[2])]}function J(t){var n=t[0],e=t[1],r=y(e);return[r*y(n),r*_(n),_(e)]}function Z(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Q(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function K(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function tt(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function nt(t){var n=E(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var et,rt,it,ot,at,ut,ct,ft,st,lt,ht=r(),dt={point:pt,lineStart:gt,lineEnd:yt,polygonStart:function(){dt.point=mt,dt.lineStart=bt,dt.lineEnd=xt,ht.reset(),q.polygonStart()},polygonEnd:function(){q.polygonEnd(),dt.point=pt,dt.lineStart=gt,dt.lineEnd=yt,z<0?(et=-(it=180),rt=-(ot=90)):ht>u?ot=90:ht<-u&&(rt=-90),lt[0]=et,lt[1]=it},sphere:function(){et=-(it=180),rt=-(ot=90)}};function pt(t,n){st.push(lt=[et=t,it=t]),n<rt&&(rt=n),n>ot&&(ot=n)}function vt(t,n){var e=J([t*d,n*d]);if(ft){var r=Q(ft,e),i=Q([r[1],-r[0],0],r);nt(i),i=X(i);var o,a=t-at,u=a>0?1:-1,c=i[0]*h*u,f=p(a)>180;f^(u*at<c&&c<u*t)?(o=i[1]*h)>ot&&(ot=o):f^(u*at<(c=(c+360)%360-180)&&c<u*t)?(o=-i[1]*h)<rt&&(rt=o):(n<rt&&(rt=n),n>ot&&(ot=n)),f?t<at?wt(et,t)>wt(et,it)&&(it=t):wt(t,it)>wt(et,it)&&(et=t):it>=et?(t<et&&(et=t),t>it&&(it=t)):t>at?wt(et,t)>wt(et,it)&&(it=t):wt(t,it)>wt(et,it)&&(et=t)}else st.push(lt=[et=t,it=t]);n<rt&&(rt=n),n>ot&&(ot=n),ft=e,at=t}function gt(){dt.point=vt}function yt(){lt[0]=et,lt[1]=it,dt.point=pt,ft=null}function mt(t,n){if(ft){var e=t-at;ht.add(p(e)>180?e+(e>0?360:-360):e)}else ut=t,ct=n;q.point(t,n),vt(t,n)}function bt(){q.lineStart()}function xt(){mt(ut,ct),q.lineEnd(),p(ht)>u&&(et=-(it=180)),lt[0]=et,lt[1]=it,ft=null}function wt(t,n){return(n-=t)<0?n+360:n}function _t(t,n){return t[0]-n[0]}function At(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var Et,Mt,kt,Bt,Ot,Ft,Tt,Nt,Ct,St,jt,Pt,Rt,Dt,Lt,It,Ut=function(t){var n,e,r,i,o,a,u;if(ot=it=-(et=rt=1/0),st=[],U(t,dt),e=st.length){for(st.sort(_t),n=1,o=[r=st[0]];n<e;++n)At(r,(i=st[n])[0])||At(r,i[1])?(wt(r[0],i[1])>wt(r[0],r[1])&&(r[1]=i[1]),wt(i[0],r[1])>wt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=wt(r[1],i[0]))>a&&(a=u,et=i[0],it=r[1])}return st=lt=null,et===1/0||rt===1/0?[[NaN,NaN],[NaN,NaN]]:[[et,rt],[it,ot]]},zt={sphere:F,point:Yt,lineStart:Ht,lineEnd:Gt,polygonStart:function(){zt.lineStart=Wt,zt.lineEnd=Xt},polygonEnd:function(){zt.lineStart=Ht,zt.lineEnd=Gt}};function Yt(t,n){t*=d;var e=y(n*=d);qt(e*y(t),e*_(t),_(n))}function qt(t,n,e){++Et,kt+=(t-kt)/Et,Bt+=(n-Bt)/Et,Ot+=(e-Ot)/Et}function Ht(){zt.point=$t}function $t(t,n){t*=d;var e=y(n*=d);Dt=e*y(t),Lt=e*_(t),It=_(n),zt.point=Vt,qt(Dt,Lt,It)}function Vt(t,n){t*=d;var e=y(n*=d),r=e*y(t),i=e*_(t),o=_(n),a=g(E((a=Lt*o-It*i)*a+(a=It*r-Dt*o)*a+(a=Dt*i-Lt*r)*a),Dt*r+Lt*i+It*o);Mt+=a,Ft+=a*(Dt+(Dt=r)),Tt+=a*(Lt+(Lt=i)),Nt+=a*(It+(It=o)),qt(Dt,Lt,It)}function Gt(){zt.point=Yt}function Wt(){zt.point=Jt}function Xt(){Zt(Pt,Rt),zt.point=Yt}function Jt(t,n){Pt=t,Rt=n,t*=d,n*=d,zt.point=Zt;var e=y(n);Dt=e*y(t),Lt=e*_(t),It=_(n),qt(Dt,Lt,It)}function Zt(t,n){t*=d;var e=y(n*=d),r=e*y(t),i=e*_(t),o=_(n),a=Lt*o-It*i,u=It*r-Dt*o,c=Dt*i-Lt*r,f=E(a*a+u*u+c*c),s=B(f),l=f&&-s/f;Ct+=l*a,St+=l*u,jt+=l*c,Mt+=s,Ft+=s*(Dt+(Dt=r)),Tt+=s*(Lt+(Lt=i)),Nt+=s*(It+(It=o)),qt(Dt,Lt,It)}var Qt=function(t){Et=Mt=kt=Bt=Ot=Ft=Tt=Nt=Ct=St=jt=0,U(t,zt);var n=Ct,e=St,r=jt,i=n*n+e*e+r*r;return i<1e-12&&(n=Ft,e=Tt,r=Nt,Mt<u&&(n=kt,e=Bt,r=Ot),(i=n*n+e*e+r*r)<1e-12)?[NaN,NaN]:[g(e,n)*h,B(r/E(i))*h]},Kt=function(t){return function(){return t}},tn=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e};function nn(t,n){return[p(t)>c?t+Math.round(-t/l)*l:t,n]}function en(t,n,e){return(t%=l)?n||e?tn(on(t),an(n,e)):on(t):n||e?an(n,e):nn}function rn(t){return function(n,e){return[(n+=t)>c?n-l:n<-c?n+l:n,e]}}function on(t){var n=rn(t);return n.invert=rn(-t),n}function an(t,n){var e=y(t),r=_(t),i=y(n),o=_(n);function a(t,n){var a=y(n),u=y(t)*a,c=_(t)*a,f=_(n),s=f*e+u*r;return[g(c*i-s*o,u*e-f*r),B(s*i+c*o)]}return a.invert=function(t,n){var a=y(n),u=y(t)*a,c=_(t)*a,f=_(n),s=f*i-c*o;return[g(c*i+f*o,u*e+s*r),B(s*e-u*r)]},a}nn.invert=nn;var un=function(t){function n(n){return(n=t(n[0]*d,n[1]*d))[0]*=h,n[1]*=h,n}return t=en(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),n.invert=function(n){return(n=t.invert(n[0]*d,n[1]*d))[0]*=h,n[1]*=h,n},n};function cn(t,n,e,r,i,o){if(e){var a=y(n),u=_(n),c=r*e;null==i?(i=n+r*l,o=n-c/2):(i=fn(a,i),o=fn(a,o),(r>0?i<o:i>o)&&(i+=r*l));for(var f,s=i;r>0?s>o:s<o;s-=c)f=X([a,-u*y(s),-u*_(s)]),t.point(f[0],f[1])}}function fn(t,n){(n=J(n))[0]-=t,nt(n);var e=k(-n[1]);return((-n[2]<0?-e:e)+l-u)%l}var sn=function(){var t,n,e=Kt([0,0]),r=Kt(90),i=Kt(6),o={point:function(e,r){t.push(e=n(e,r)),e[0]*=h,e[1]*=h}};function a(){var a=e.apply(this,arguments),u=r.apply(this,arguments)*d,c=i.apply(this,arguments)*d;return t=[],n=en(-a[0]*d,-a[1]*d,0).invert,cn(o,u,c,1),a={type:"Polygon",coordinates:[t]},t=n=null,a}return a.center=function(t){return arguments.length?(e="function"==typeof t?t:Kt([+t[0],+t[1]]),a):e},a.radius=function(t){return arguments.length?(r="function"==typeof t?t:Kt(+t),a):r},a.precision=function(t){return arguments.length?(i="function"==typeof t?t:Kt(+t),a):i},a},ln=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:F,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},hn=function(t,n){return p(t[0]-n[0])<u&&p(t[1]-n[1])<u};function dn(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}var pn=function(t,n,e,r,i){var o,a,u=[],c=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],a=t[n];if(hn(r,a)){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else u.push(e=new dn(r,t,null,!0)),c.push(e.o=new dn(r,null,e,!1)),u.push(e=new dn(a,t,null,!1)),c.push(e.o=new dn(a,null,e,!0))}})),u.length){for(c.sort(n),vn(u),vn(c),o=0,a=c.length;o<a;++o)c[o].e=e=!e;for(var f,s,l=u[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;f=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=f.length;o<a;++o)i.point((s=f[o])[0],s[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(f=h.p.z,o=f.length-1;o>=0;--o)i.point((s=f[o])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}f=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function vn(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}var gn=r();function yn(t){return p(t[0])<=c?t[0]:A(t[0])*((p(t[0])+c)%l-c)}var mn=function(t,n){var e=yn(n),r=n[1],i=_(r),o=[_(e),-y(e),0],a=0,h=0;gn.reset(),1===i?r=f+u:-1===i&&(r=-f-u);for(var d=0,p=t.length;d<p;++d)if(m=(v=t[d]).length)for(var v,m,b=v[m-1],x=yn(b),w=b[1]/2+s,A=_(w),E=y(w),M=0;M<m;++M,x=O,A=T,E=N,b=k){var k=v[M],O=yn(k),F=k[1]/2+s,T=_(F),N=y(F),C=O-x,S=C>=0?1:-1,j=S*C,P=j>c,R=A*T;if(gn.add(g(R*S*_(j),E*N+R*y(j))),a+=P?C+S*l:C,P^x>=e^O>=e){var D=Q(J(b),J(k));nt(D);var L=Q(o,D);nt(L);var I=(P^C>=0?-1:1)*B(L[2]);(r>I||r===I&&(D[0]||D[1]))&&(h+=P^C>=0?1:-1)}}return(a<-u||a<u&&gn<-u)^1&h},bn=e(34),xn=function(t,n,e,r){return function(i){var o,a,u,c=n(i),f=ln(),s=n(f),l=!1,h={point:d,lineStart:v,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=m,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=v,h.lineEnd=g,a=Object(bn.merge)(a);var t=mn(o,r);a.length?(l||(i.polygonStart(),l=!0),pn(a,_n,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function v(){h.point=p,c.lineStart()}function g(){h.point=d,c.lineEnd()}function y(t,n){u.push([t,n]),s.point(t,n)}function m(){s.lineStart(),u=[]}function b(){y(u[0][0],u[0][1]),s.lineEnd();var t,n,e,r,c=s.clean(),h=f.result(),d=h.length;if(u.pop(),o.push(u),u=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(wn))}return h}};function wn(t){return t.length>1}function _n(t,n){return((t=t.x)[0]<0?t[1]-f-u:f-t[1])-((n=n.x)[0]<0?n[1]-f-u:f-n[1])}var An=xn((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var s=o>0?c:-c,l=p(o-e);p(l-c)<u?(t.point(e,r=(r+a)/2>0?f:-f),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),n=0):i!==s&&l>=c&&(p(e-i)<u&&(e-=i*u),p(o-s)<u&&(o-=s*u),r=function(t,n,e,r){var i,o,a=_(t-e);return p(a)>u?v((_(n)*(o=y(r))*_(e)-_(r)*(i=y(n))*_(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),n=0),t.point(e=o,r=a),i=s},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*f,r.point(-c,i),r.point(0,i),r.point(c,i),r.point(c,0),r.point(c,-i),r.point(0,-i),r.point(-c,-i),r.point(-c,0),r.point(-c,i);else if(p(t[0]-n[0])>u){var o=t[0]<n[0]?c:-c;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}),[-c,-f]);var En=function(t){var n=y(t),e=6*d,r=n>0,i=p(n)>u;function o(t,e){return y(t)*y(e)>n}function a(t,e,r){var i=[1,0,0],o=Q(J(t),J(e)),a=Z(o,o),f=o[0],s=a-f*f;if(!s)return!r&&t;var l=n*a/s,h=-n*f/s,d=Q(i,o),v=tt(i,l);K(v,tt(o,h));var g=d,y=Z(v,g),m=Z(g,g),b=y*y-m*(Z(v,v)-1);if(!(b<0)){var x=E(b),w=tt(g,(-y-x)/m);if(K(w,v),w=X(w),!r)return w;var _,A=t[0],M=e[0],k=t[1],B=e[1];M<A&&(_=A,A=M,M=_);var O=M-A,F=p(O-c)<u;if(!F&&B<k&&(_=k,k=B,B=_),F||O<u?F?k+B>0^w[1]<(p(w[0]-A)<u?k:B):k<=w[1]&&w[1]<=B:O>c^(A<=w[0]&&w[0]<=M)){var T=tt(g,(-y+x)/m);return K(T,v),[w,X(T)]}}}function f(n,e){var i=r?t:c-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return xn(o,(function(t){var n,e,s,l,h;return{lineStart:function(){l=s=!1,h=1},point:function(d,p){var v,g=[d,p],y=o(d,p),m=r?y?0:f(d,p):y?f(d+(d<0?c:-c),p):0;if(!n&&(l=s=y)&&t.lineStart(),y!==s&&(!(v=a(n,g))||hn(n,v)||hn(g,v))&&(g[0]+=u,g[1]+=u,y=o(g[0],g[1])),y!==s)h=0,y?(t.lineStart(),v=a(g,n),t.point(v[0],v[1])):(v=a(n,g),t.point(v[0],v[1]),t.lineEnd()),n=v;else if(i&&n&&r^y){var b;m&e||!(b=a(g,n,!0))||(h=0,r?(t.lineStart(),t.point(b[0][0],b[0][1]),t.point(b[1][0],b[1][1]),t.lineEnd()):(t.point(b[1][0],b[1][1]),t.lineEnd(),t.lineStart(),t.point(b[0][0],b[0][1])))}!y||n&&hn(n,g)||t.point(g[0],g[1]),n=g,s=y,e=m},lineEnd:function(){s&&t.lineEnd(),n=null},clean:function(){return h|(l&&s)<<1}}}),(function(n,r,i,o){cn(o,t,e,i,n,r)}),r?[0,-t]:[-c,t-c])};function Mn(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,c){var s=0,l=0;if(null==i||(s=a(i,u))!==(l=a(o,u))||f(i,o)<0^u>0)do{c.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+u+4)%4)!==l);else c.point(o[0],o[1])}function a(r,i){return p(r[0]-t)<u?i>0?0:3:p(r[0]-e)<u?i>0?2:1:p(r[1]-n)<u?i>0?1:0:i>0?3:2}function c(t,n){return f(t.x,n.x)}function f(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var u,f,s,l,h,d,p,v,g,y,m,b=a,x=ln(),w={point:_,lineStart:function(){w.point=A,f&&f.push(s=[]);y=!0,g=!1,p=v=NaN},lineEnd:function(){u&&(A(l,h),d&&g&&x.rejoin(),u.push(x.result()));w.point=_,g&&b.lineEnd()},polygonStart:function(){b=x,u=[],f=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=f.length;e<i;++e)for(var o,a,u=f[e],c=1,s=u.length,l=u[0],h=l[0],d=l[1];c<s;++c)o=h,a=d,l=u[c],h=l[0],d=l[1],a<=r?d>r&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=m&&n,i=(u=Object(bn.merge)(u)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&pn(u,c,n,o,a),a.polygonEnd());b=a,u=f=s=null}};function _(t,n){i(t,n)&&b.point(t,n)}function A(o,a){var u=i(o,a);if(f&&s.push([o,a]),y)l=o,h=a,d=u,y=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&g)b.point(o,a);else{var c=[p=Math.max(-1e9,Math.min(1e9,p)),v=Math.max(-1e9,Math.min(1e9,v))],x=[o=Math.max(-1e9,Math.min(1e9,o)),a=Math.max(-1e9,Math.min(1e9,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],f=0,s=1,l=n[0]-u,h=n[1]-c;if(a=e-u,l||!(a>0)){if(a/=l,l<0){if(a<f)return;a<s&&(s=a)}else if(l>0){if(a>s)return;a>f&&(f=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(a>s)return;a>f&&(f=a)}else if(l>0){if(a<f)return;a<s&&(s=a)}if(a=r-c,h||!(a>0)){if(a/=h,h<0){if(a<f)return;a<s&&(s=a)}else if(h>0){if(a>s)return;a>f&&(f=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>s)return;a>f&&(f=a)}else if(h>0){if(a<f)return;a<s&&(s=a)}return f>0&&(t[0]=u+f*l,t[1]=c+f*h),s<1&&(n[0]=u+s*l,n[1]=c+s*h),!0}}}}}(c,x,t,n,e,r)?u&&(b.lineStart(),b.point(o,a),m=!1):(g||(b.lineStart(),b.point(c[0],c[1])),b.point(x[0],x[1]),u||b.lineEnd(),m=!1)}p=o,v=a,g=u}return w}}var kn,Bn,On,Fn=function(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=Mn(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}},Tn=r(),Nn={sphere:F,point:F,lineStart:function(){Nn.point=Sn,Nn.lineEnd=Cn},lineEnd:F,polygonStart:F,polygonEnd:F};function Cn(){Nn.point=Nn.lineEnd=F}function Sn(t,n){kn=t*=d,Bn=_(n*=d),On=y(n),Nn.point=jn}function jn(t,n){t*=d;var e=_(n*=d),r=y(n),i=p(t-kn),o=y(i),a=r*_(i),u=On*e-Bn*r*o,c=Bn*e+On*r*o;Tn.add(g(E(a*a+u*u),c)),kn=t,Bn=e,On=r}var Pn=function(t){return Tn.reset(),U(t,Nn),+Tn},Rn=[null,null],Dn={type:"LineString",coordinates:Rn},Ln=function(t,n){return Rn[0]=t,Rn[1]=n,Pn(Dn)},In={Feature:function(t,n){return zn(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(zn(e[r].geometry,n))return!0;return!1}},Un={Sphere:function(){return!0},Point:function(t,n){return Yn(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Yn(e[r],n))return!0;return!1},LineString:function(t,n){return qn(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(qn(e[r],n))return!0;return!1},Polygon:function(t,n){return Hn(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Hn(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(zn(e[r],n))return!0;return!1}};function zn(t,n){return!(!t||!Un.hasOwnProperty(t.type))&&Un[t.type](t,n)}function Yn(t,n){return 0===Ln(t,n)}function qn(t,n){for(var e,r,i,o=0,a=t.length;o<a;o++){if(0===(r=Ln(t[o],n)))return!0;if(o>0&&(i=Ln(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<1e-12*i)return!0;e=r}return!1}function Hn(t,n){return!!mn(t.map($n),Vn(n))}function $n(t){return(t=t.map(Vn)).pop(),t}function Vn(t){return[t[0]*d,t[1]*d]}var Gn=function(t,n){return(t&&In.hasOwnProperty(t.type)?In[t.type]:zn)(t,n)};function Wn(t,n,e){var r=Object(bn.range)(t,n-u,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function Xn(t,n,e){var r=Object(bn.range)(t,n-u,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function Jn(){var t,n,e,r,i,o,a,c,f,s,l,h,d=10,v=d,g=90,y=360,b=2.5;function x(){return{type:"MultiLineString",coordinates:w()}}function w(){return Object(bn.range)(m(r/g)*g,e,g).map(l).concat(Object(bn.range)(m(c/y)*y,a,y).map(h)).concat(Object(bn.range)(m(n/d)*d,t,d).filter((function(t){return p(t%g)>u})).map(f)).concat(Object(bn.range)(m(o/v)*v,i,v).filter((function(t){return p(t%y)>u})).map(s))}return x.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},x.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(h(a).slice(1),l(e).reverse().slice(1),h(c).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.extentMajor(t).extentMinor(t):x.extentMinor()},x.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],c=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),c>a&&(t=c,c=a,a=t),x.precision(b)):[[r,c],[e,a]]},x.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),x.precision(b)):[[n,o],[t,i]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(g=+t[0],y=+t[1],x):[g,y]},x.stepMinor=function(t){return arguments.length?(d=+t[0],v=+t[1],x):[d,v]},x.precision=function(u){return arguments.length?(b=+u,f=Wn(o,i,90),s=Xn(n,t,b),l=Wn(c,a,90),h=Xn(r,e,b),x):b},x.extentMajor([[-180,-90+u],[180,90-u]]).extentMinor([[-180,-80-u],[180,80+u]])}function Zn(){return Jn()()}var Qn,Kn,te,ne,ee=function(t,n){var e=t[0]*d,r=t[1]*d,i=n[0]*d,o=n[1]*d,a=y(r),u=_(r),c=y(o),f=_(o),s=a*y(e),l=a*_(e),p=c*y(i),v=c*_(i),m=2*B(E(O(o-r)+a*c*O(i-e))),b=_(m),x=m?function(t){var n=_(t*=m)/b,e=_(m-t)/b,r=e*s+n*p,i=e*l+n*v,o=e*u+n*f;return[g(i,r)*h,g(o,E(r*r+i*i))*h]}:function(){return[e*h,r*h]};return x.distance=m,x},re=function(t){return t},ie=r(),oe=r(),ae={point:F,lineStart:F,lineEnd:F,polygonStart:function(){ae.lineStart=ue,ae.lineEnd=se},polygonEnd:function(){ae.lineStart=ae.lineEnd=ae.point=F,ie.add(p(oe)),oe.reset()},result:function(){var t=ie/2;return ie.reset(),t}};function ue(){ae.point=ce}function ce(t,n){ae.point=fe,Qn=te=t,Kn=ne=n}function fe(t,n){oe.add(ne*t-te*n),te=t,ne=n}function se(){fe(Qn,Kn)}var le=ae,he=1/0,de=he,pe=-he,ve=pe;var ge,ye,me,be,xe={point:function(t,n){t<he&&(he=t);t>pe&&(pe=t);n<de&&(de=n);n>ve&&(ve=n)},lineStart:F,lineEnd:F,polygonStart:F,polygonEnd:F,result:function(){var t=[[he,de],[pe,ve]];return pe=ve=-(de=he=1/0),t}},we=0,_e=0,Ae=0,Ee=0,Me=0,ke=0,Be=0,Oe=0,Fe=0,Te={point:Ne,lineStart:Ce,lineEnd:Pe,polygonStart:function(){Te.lineStart=Re,Te.lineEnd=De},polygonEnd:function(){Te.point=Ne,Te.lineStart=Ce,Te.lineEnd=Pe},result:function(){var t=Fe?[Be/Fe,Oe/Fe]:ke?[Ee/ke,Me/ke]:Ae?[we/Ae,_e/Ae]:[NaN,NaN];return we=_e=Ae=Ee=Me=ke=Be=Oe=Fe=0,t}};function Ne(t,n){we+=t,_e+=n,++Ae}function Ce(){Te.point=Se}function Se(t,n){Te.point=je,Ne(me=t,be=n)}function je(t,n){var e=t-me,r=n-be,i=E(e*e+r*r);Ee+=i*(me+t)/2,Me+=i*(be+n)/2,ke+=i,Ne(me=t,be=n)}function Pe(){Te.point=Ne}function Re(){Te.point=Le}function De(){Ie(ge,ye)}function Le(t,n){Te.point=Ie,Ne(ge=me=t,ye=be=n)}function Ie(t,n){var e=t-me,r=n-be,i=E(e*e+r*r);Ee+=i*(me+t)/2,Me+=i*(be+n)/2,ke+=i,Be+=(i=be*t-me*n)*(me+t),Oe+=i*(be+n),Fe+=3*i,Ne(me=t,be=n)}var Ue=Te;function ze(t){this._context=t}ze.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,l)}},result:F};var Ye,qe,He,$e,Ve,Ge=r(),We={point:F,lineStart:function(){We.point=Xe},lineEnd:function(){Ye&&Je(qe,He),We.point=F},polygonStart:function(){Ye=!0},polygonEnd:function(){Ye=null},result:function(){var t=+Ge;return Ge.reset(),t}};function Xe(t,n){We.point=Je,qe=$e=t,He=Ve=n}function Je(t,n){$e-=t,Ve-=n,Ge.add(E($e*$e+Ve*Ve)),$e=t,Ve=n}var Ze=We;function Qe(){this._string=[]}function Ke(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Qe.prototype={_radius:4.5,_circle:Ke(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Ke(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var tr=function(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),U(t,e(r))),r.result()}return o.area=function(t){return U(t,e(le)),le.result()},o.measure=function(t){return U(t,e(Ze)),Ze.result()},o.bounds=function(t){return U(t,e(xe)),xe.result()},o.centroid=function(t){return U(t,e(Ue)),Ue.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,re):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new Qe):new ze(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)},nr=function(t){return{stream:er(t)}};function er(t){return function(n){var e=new rr;for(var r in t)e[r]=t[r];return e.stream=n,e}}function rr(){}function ir(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),U(e,t.stream(xe)),n(xe.result()),null!=r&&t.clipExtent(r),t}function or(t,n,e){return ir(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),a=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,u=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([a,u])}),e)}function ar(t,n,e){return or(t,[[0,0],n],e)}function ur(t,n,e){return ir(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,a=-i*e[0][1];t.scale(150*i).translate([o,a])}),e)}function cr(t,n,e){return ir(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],a=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,a])}),e)}rr.prototype={constructor:rr,point:function(t,n){this.stream.point(t,n)},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()}};var fr=y(30*d),sr=function(t,n){return+n?function(t,n){function e(r,i,o,a,c,f,s,l,h,d,v,y,m,b){var x=s-r,w=l-i,_=x*x+w*w;if(_>4*n&&m--){var A=a+d,M=c+v,k=f+y,O=E(A*A+M*M+k*k),F=B(k/=O),T=p(p(k)-1)<u||p(o-h)<u?(o+h)/2:g(M,A),N=t(T,F),C=N[0],S=N[1],j=C-r,P=S-i,R=w*j-x*P;(R*R/_>n||p((x*j+w*P)/_-.5)>.3||a*d+c*v+f*y<fr)&&(e(r,i,o,a,c,f,C,S,T,A/=O,M/=O,k,m,b),b.point(C,S),e(C,S,T,A,M,k,s,l,h,d,v,y,m,b))}}return function(n){var r,i,o,a,u,c,f,s,l,h,d,p,v={point:g,lineStart:y,lineEnd:b,polygonStart:function(){n.polygonStart(),v.lineStart=x},polygonEnd:function(){n.polygonEnd(),v.lineStart=y}};function g(e,r){e=t(e,r),n.point(e[0],e[1])}function y(){s=NaN,v.point=m,n.lineStart()}function m(r,i){var o=J([r,i]),a=t(r,i);e(s,l,f,h,d,p,s=a[0],l=a[1],f=r,h=o[0],d=o[1],p=o[2],16,n),n.point(s,l)}function b(){v.point=g,n.lineEnd()}function x(){y(),v.point=w,v.lineEnd=_}function w(t,n){m(r=t,n),i=s,o=l,a=h,u=d,c=p,v.point=m}function _(){e(s,l,f,h,d,p,i,o,r,a,u,c,16,n),v.lineEnd=b,b()}return v}}(t,n):function(t){return er({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)};var lr=er({point:function(t,n){this.stream.point(t*d,n*d)}});function hr(t,n,e){function r(r,i){return[n+t*r,e-t*i]}return r.invert=function(r,i){return[(r-n)/t,(e-i)/t]},r}function dr(t,n,e,r){var i=y(r),o=_(r),a=i*t,u=o*t,c=i/t,f=o/t,s=(o*e-i*n)/t,l=(o*n+i*e)/t;function h(t,r){return[a*t-u*r+n,e-u*t-a*r]}return h.invert=function(t,n){return[c*t-f*n+s,l-f*t-c*n]},h}function pr(t){return vr((function(){return t}))()}function vr(t){var n,e,r,i,o,a,u,c,f,s,l=150,p=480,v=250,g=0,y=0,m=0,b=0,x=0,w=0,_=null,A=An,M=null,k=re,B=.5;function O(t){return c(t[0]*d,t[1]*d)}function F(t){return(t=c.invert(t[0],t[1]))&&[t[0]*h,t[1]*h]}function T(){var t=dr(l,0,0,w).apply(null,n(g,y)),r=(w?dr:hr)(l,p-t[0],v-t[1],w);return e=en(m,b,x),u=tn(n,r),c=tn(e,u),a=sr(u,B),N()}function N(){return f=s=null,O}return O.stream=function(t){return f&&s===t?f:f=lr(function(t){return er({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(e)(A(a(k(s=t)))))},O.preclip=function(t){return arguments.length?(A=t,_=void 0,N()):A},O.postclip=function(t){return arguments.length?(k=t,M=r=i=o=null,N()):k},O.clipAngle=function(t){return arguments.length?(A=+t?En(_=t*d):(_=null,An),N()):_*h},O.clipExtent=function(t){return arguments.length?(k=null==t?(M=r=i=o=null,re):Mn(M=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),N()):null==M?null:[[M,r],[i,o]]},O.scale=function(t){return arguments.length?(l=+t,T()):l},O.translate=function(t){return arguments.length?(p=+t[0],v=+t[1],T()):[p,v]},O.center=function(t){return arguments.length?(g=t[0]%360*d,y=t[1]%360*d,T()):[g*h,y*h]},O.rotate=function(t){return arguments.length?(m=t[0]%360*d,b=t[1]%360*d,x=t.length>2?t[2]%360*d:0,T()):[m*h,b*h,x*h]},O.angle=function(t){return arguments.length?(w=t%360*d,T()):w*h},O.precision=function(t){return arguments.length?(a=sr(u,B=t*t),N()):E(B)},O.fitExtent=function(t,n){return or(O,t,n)},O.fitSize=function(t,n){return ar(O,t,n)},O.fitWidth=function(t,n){return ur(O,t,n)},O.fitHeight=function(t,n){return cr(O,t,n)},function(){return n=t.apply(this,arguments),O.invert=n.invert&&F,T()}}function gr(t){var n=0,e=c/3,r=vr(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*d,e=t[1]*d):[n*h,e*h]},i}function yr(t,n){var e=_(t),r=(e+_(n))/2;if(p(r)<u)return function(t){var n=y(t);function e(t,e){return[t*n,_(e)/n]}return e.invert=function(t,e){return[t/n,B(e*n)]},e}(t);var i=1+e*(2*r-e),o=E(i)/r;function a(t,n){var e=E(i-2*r*_(n))/r;return[e*_(t*=r),o-e*y(t)]}return a.invert=function(t,n){var e=o-n;return[g(t,p(e))/r*A(e),B((i-(t*t+e*e)*r*r)/(2*r))]},a}var mr=function(){return gr(yr).scale(155.424).center([0,33.6442])},br=function(){return mr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var xr=function(){var t,n,e,r,i,o,a=br(),c=mr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=mr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){o=[t,n]}};function l(t){var n=t[0],a=t[1];return o=null,e.point(n,a),o||(r.point(n,a),o)||(i.point(n,a),o)}function h(){return t=n=null,l}return l.invert=function(t){var n=a.scale(),e=a.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?c:i>=.166&&i<.234&&r>=-.214&&r<-.115?f:a).invert(t)},l.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),c.stream(e),f.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e<i;)r[e].point(t,n)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(a.precision(t),c.precision(t),f.precision(t),h()):a.precision()},l.scale=function(t){return arguments.length?(a.scale(t),c.scale(.35*t),f.scale(t),l.translate(a.translate())):a.scale()},l.translate=function(t){if(!arguments.length)return a.translate();var n=a.scale(),o=+t[0],l=+t[1];return e=a.translate(t).clipExtent([[o-.455*n,l-.238*n],[o+.455*n,l+.238*n]]).stream(s),r=c.translate([o-.307*n,l+.201*n]).clipExtent([[o-.425*n+u,l+.12*n+u],[o-.214*n-u,l+.234*n-u]]).stream(s),i=f.translate([o-.205*n,l+.212*n]).clipExtent([[o-.214*n+u,l+.166*n+u],[o-.115*n-u,l+.234*n-u]]).stream(s),h()},l.fitExtent=function(t,n){return or(l,t,n)},l.fitSize=function(t,n){return ar(l,t,n)},l.fitWidth=function(t,n){return ur(l,t,n)},l.fitHeight=function(t,n){return cr(l,t,n)},l.scale(1070)};function wr(t){return function(n,e){var r=y(n),i=y(e),o=t(r*i);return[o*i*_(n),o*_(e)]}}function _r(t){return function(n,e){var r=E(n*n+e*e),i=t(r),o=_(i),a=y(i);return[g(n*o,r*a),B(r&&e*o/r)]}}var Ar=wr((function(t){return E(2/(1+t))}));Ar.invert=_r((function(t){return 2*B(t/2)}));var Er=function(){return pr(Ar).scale(124.75).clipAngle(179.999)},Mr=wr((function(t){return(t=k(t))&&t/_(t)}));Mr.invert=_r((function(t){return t}));var kr=function(){return pr(Mr).scale(79.4188).clipAngle(179.999)};function Br(t,n){return[t,x(M((f+n)/2))]}Br.invert=function(t,n){return[t,2*v(b(n))-f]};var Or=function(){return Fr(Br).scale(961/l)};function Fr(t){var n,e,r,i=pr(t),o=i.center,a=i.scale,u=i.translate,f=i.clipExtent,s=null;function l(){var o=c*a(),u=i(un(i.rotate()).invert([0,0]));return f(null==s?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===Br?[[Math.max(u[0]-o,s),n],[Math.min(u[0]+o,e),r]]:[[s,Math.max(u[1]-o,n)],[e,Math.min(u[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),l()):a()},i.translate=function(t){return arguments.length?(u(t),l()):u()},i.center=function(t){return arguments.length?(o(t),l()):o()},i.clipExtent=function(t){return arguments.length?(null==t?s=n=e=r=null:(s=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),l()):null==s?null:[[s,n],[e,r]]},l()}function Tr(t){return M((f+t)/2)}function Nr(t,n){var e=y(t),r=t===n?_(t):x(e/y(n))/x(Tr(n)/Tr(t)),i=e*w(Tr(t),r)/r;if(!r)return Br;function o(t,n){i>0?n<-f+u&&(n=-f+u):n>f-u&&(n=f-u);var e=i/w(Tr(n),r);return[e*_(r*t),i-e*y(r*t)]}return o.invert=function(t,n){var e=i-n,o=A(r)*E(t*t+e*e);return[g(t,p(e))/r*A(e),2*v(w(i/o,1/r))-f]},o}var Cr=function(){return gr(Nr).scale(109.5).parallels([30,30])};function Sr(t,n){return[t,n]}Sr.invert=Sr;var jr=function(){return pr(Sr).scale(152.63)};function Pr(t,n){var e=y(t),r=t===n?_(t):(e-y(n))/(n-t),i=e/r+t;if(p(r)<u)return Sr;function o(t,n){var e=i-n,o=r*t;return[e*_(o),i-e*y(o)]}return o.invert=function(t,n){var e=i-n;return[g(t,p(e))/r*A(e),i-A(r)*E(t*t+e*e)]},o}var Rr=function(){return gr(Pr).scale(131.154).center([0,13.9389])},Dr=1.340264,Lr=-.081106,Ir=893e-6,Ur=.003796,zr=E(3)/2;function Yr(t,n){var e=B(zr*_(n)),r=e*e,i=r*r*r;return[t*y(e)/(zr*(Dr+3*Lr*r+i*(7*Ir+9*Ur*r))),e*(Dr+Lr*r+i*(Ir+Ur*r))]}Yr.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=e=(r*(Dr+Lr*i+o*(Ir+Ur*i))-n)/(Dr+3*Lr*i+o*(7*Ir+9*Ur*i)))*r)*i*i,!(p(e)<1e-12));++a);return[zr*t*(Dr+3*Lr*i+o*(7*Ir+9*Ur*i))/y(r),B(_(r)/zr)]};var qr=function(){return pr(Yr).scale(177.158)};function Hr(t,n){var e=y(n),r=y(t)*e;return[e*_(t)/r,_(n)/r]}Hr.invert=_r(v);var $r=function(){return pr(Hr).scale(144.049).clipAngle(60)};function Vr(t,n,e,r){return 1===t&&1===n&&0===e&&0===r?re:er({point:function(i,o){this.stream.point(i*t+e,o*n+r)}})}var Gr=function(){var t,n,e,r,i,o,a=1,u=0,c=0,f=1,s=1,l=re,h=null,d=re;function p(){return r=i=null,o}return o={stream:function(t){return r&&i===t?r:r=l(d(i=t))},postclip:function(r){return arguments.length?(d=r,h=t=n=e=null,p()):d},clipExtent:function(r){return arguments.length?(d=null==r?(h=t=n=e=null,re):Mn(h=+r[0][0],t=+r[0][1],n=+r[1][0],e=+r[1][1]),p()):null==h?null:[[h,t],[n,e]]},scale:function(t){return arguments.length?(l=Vr((a=+t)*f,a*s,u,c),p()):a},translate:function(t){return arguments.length?(l=Vr(a*f,a*s,u=+t[0],c=+t[1]),p()):[u,c]},reflectX:function(t){return arguments.length?(l=Vr(a*(f=t?-1:1),a*s,u,c),p()):f<0},reflectY:function(t){return arguments.length?(l=Vr(a*f,a*(s=t?-1:1),u,c),p()):s<0},fitExtent:function(t,n){return or(o,t,n)},fitSize:function(t,n){return ar(o,t,n)},fitWidth:function(t,n){return ur(o,t,n)},fitHeight:function(t,n){return cr(o,t,n)}}};function Wr(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}Wr.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,a=o*o;r-=e=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-n)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(p(e)>u&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var Xr=function(){return pr(Wr).scale(175.295)};function Jr(t,n){return[y(n)*_(t),_(n)]}Jr.invert=_r(B);var Zr=function(){return pr(Jr).scale(249.5).clipAngle(90+u)};function Qr(t,n){var e=y(n),r=1+y(t)*e;return[e*_(t)/r,_(n)/r]}Qr.invert=_r((function(t){return 2*v(t)}));var Kr=function(){return pr(Qr).scale(250).clipAngle(142)};function ti(t,n){return[x(M((f+n)/2)),-t]}ti.invert=function(t,n){return[-n,2*v(b(t))-f]};var ni=function(){var t=Fr(ti),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}},1464:function(t,n,e){"use strict";e.r(n),e.d(n,"arc",(function(){return E})),e.d(n,"area",(function(){return T})),e.d(n,"line",(function(){return F})),e.d(n,"pie",(function(){return S})),e.d(n,"areaRadial",(function(){return I})),e.d(n,"radialArea",(function(){return I})),e.d(n,"lineRadial",(function(){return L})),e.d(n,"radialLine",(function(){return L})),e.d(n,"pointRadial",(function(){return U})),e.d(n,"linkHorizontal",(function(){return W})),e.d(n,"linkVertical",(function(){return X})),e.d(n,"linkRadial",(function(){return J})),e.d(n,"symbol",(function(){return pt})),e.d(n,"symbols",(function(){return dt})),e.d(n,"symbolCircle",(function(){return Z})),e.d(n,"symbolCross",(function(){return Q})),e.d(n,"symbolDiamond",(function(){return nt})),e.d(n,"symbolSquare",(function(){return at})),e.d(n,"symbolStar",(function(){return ot})),e.d(n,"symbolTriangle",(function(){return ct})),e.d(n,"symbolWye",(function(){return ht})),e.d(n,"curveBasisClosed",(function(){return xt})),e.d(n,"curveBasisOpen",(function(){return _t})),e.d(n,"curveBasis",(function(){return mt})),e.d(n,"curveBundle",(function(){return Et})),e.d(n,"curveCardinalClosed",(function(){return Ft})),e.d(n,"curveCardinalOpen",(function(){return Nt})),e.d(n,"curveCardinal",(function(){return Bt})),e.d(n,"curveCatmullRomClosed",(function(){return Rt})),e.d(n,"curveCatmullRomOpen",(function(){return Lt})),e.d(n,"curveCatmullRom",(function(){return jt})),e.d(n,"curveLinearClosed",(function(){return Ut})),e.d(n,"curveLinear",(function(){return k})),e.d(n,"curveMonotoneX",(function(){return Wt})),e.d(n,"curveMonotoneY",(function(){return Xt})),e.d(n,"curveNatural",(function(){return Qt})),e.d(n,"curveStep",(function(){return tn})),e.d(n,"curveStepAfter",(function(){return en})),e.d(n,"curveStepBefore",(function(){return nn})),e.d(n,"stack",(function(){return un})),e.d(n,"stackOffsetExpand",(function(){return cn})),e.d(n,"stackOffsetDiverging",(function(){return fn})),e.d(n,"stackOffsetNone",(function(){return rn})),e.d(n,"stackOffsetSilhouette",(function(){return sn})),e.d(n,"stackOffsetWiggle",(function(){return ln})),e.d(n,"stackOrderAppearance",(function(){return hn})),e.d(n,"stackOrderAscending",(function(){return pn})),e.d(n,"stackOrderDescending",(function(){return gn})),e.d(n,"stackOrderInsideOut",(function(){return yn})),e.d(n,"stackOrderNone",(function(){return on})),e.d(n,"stackOrderReverse",(function(){return mn}));var r=e(679),i=function(t){return function(){return t}},o=Math.abs,a=Math.atan2,u=Math.cos,c=Math.max,f=Math.min,s=Math.sin,l=Math.sqrt,h=Math.PI,d=h/2,p=2*h;function v(t){return t>1?0:t<-1?h:Math.acos(t)}function g(t){return t>=1?d:t<=-1?-d:Math.asin(t)}function y(t){return t.innerRadius}function m(t){return t.outerRadius}function b(t){return t.startAngle}function x(t){return t.endAngle}function w(t){return t&&t.padAngle}function _(t,n,e,r,i,o,a,u){var c=e-t,f=r-n,s=a-i,l=u-o,h=l*c-s*f;if(!(h*h<1e-12))return[t+(h=(s*(n-o)-l*(t-i))/h)*c,n+h*f]}function A(t,n,e,r,i,o,a){var u=t-e,f=n-r,s=(a?o:-o)/l(u*u+f*f),h=s*f,d=-s*u,p=t+h,v=n+d,g=e+h,y=r+d,m=(p+g)/2,b=(v+y)/2,x=g-p,w=y-v,_=x*x+w*w,A=i-o,E=p*y-g*v,M=(w<0?-1:1)*l(c(0,A*A*_-E*E)),k=(E*w-x*M)/_,B=(-E*x-w*M)/_,O=(E*w+x*M)/_,F=(-E*x+w*M)/_,T=k-m,N=B-b,C=O-m,S=F-b;return T*T+N*N>C*C+S*S&&(k=O,B=F),{cx:k,cy:B,x01:-h,y01:-d,x11:k*(i/A-1),y11:B*(i/A-1)}}var E=function(){var t=y,n=m,e=i(0),c=null,E=b,M=x,k=w,B=null;function O(){var i,y,m=+t.apply(this,arguments),b=+n.apply(this,arguments),x=E.apply(this,arguments)-d,w=M.apply(this,arguments)-d,O=o(w-x),F=w>x;if(B||(B=i=Object(r.a)()),b<m&&(y=b,b=m,m=y),b>1e-12)if(O>p-1e-12)B.moveTo(b*u(x),b*s(x)),B.arc(0,0,b,x,w,!F),m>1e-12&&(B.moveTo(m*u(w),m*s(w)),B.arc(0,0,m,w,x,F));else{var T,N,C=x,S=w,j=x,P=w,R=O,D=O,L=k.apply(this,arguments)/2,I=L>1e-12&&(c?+c.apply(this,arguments):l(m*m+b*b)),U=f(o(b-m)/2,+e.apply(this,arguments)),z=U,Y=U;if(I>1e-12){var q=g(I/m*s(L)),H=g(I/b*s(L));(R-=2*q)>1e-12?(j+=q*=F?1:-1,P-=q):(R=0,j=P=(x+w)/2),(D-=2*H)>1e-12?(C+=H*=F?1:-1,S-=H):(D=0,C=S=(x+w)/2)}var $=b*u(C),V=b*s(C),G=m*u(P),W=m*s(P);if(U>1e-12){var X,J=b*u(S),Z=b*s(S),Q=m*u(j),K=m*s(j);if(O<h&&(X=_($,V,Q,K,J,Z,G,W))){var tt=$-X[0],nt=V-X[1],et=J-X[0],rt=Z-X[1],it=1/s(v((tt*et+nt*rt)/(l(tt*tt+nt*nt)*l(et*et+rt*rt)))/2),ot=l(X[0]*X[0]+X[1]*X[1]);z=f(U,(m-ot)/(it-1)),Y=f(U,(b-ot)/(it+1))}}D>1e-12?Y>1e-12?(T=A(Q,K,$,V,b,Y,F),N=A(J,Z,G,W,b,Y,F),B.moveTo(T.cx+T.x01,T.cy+T.y01),Y<U?B.arc(T.cx,T.cy,Y,a(T.y01,T.x01),a(N.y01,N.x01),!F):(B.arc(T.cx,T.cy,Y,a(T.y01,T.x01),a(T.y11,T.x11),!F),B.arc(0,0,b,a(T.cy+T.y11,T.cx+T.x11),a(N.cy+N.y11,N.cx+N.x11),!F),B.arc(N.cx,N.cy,Y,a(N.y11,N.x11),a(N.y01,N.x01),!F))):(B.moveTo($,V),B.arc(0,0,b,C,S,!F)):B.moveTo($,V),m>1e-12&&R>1e-12?z>1e-12?(T=A(G,W,J,Z,m,-z,F),N=A($,V,Q,K,m,-z,F),B.lineTo(T.cx+T.x01,T.cy+T.y01),z<U?B.arc(T.cx,T.cy,z,a(T.y01,T.x01),a(N.y01,N.x01),!F):(B.arc(T.cx,T.cy,z,a(T.y01,T.x01),a(T.y11,T.x11),!F),B.arc(0,0,m,a(T.cy+T.y11,T.cx+T.x11),a(N.cy+N.y11,N.cx+N.x11),F),B.arc(N.cx,N.cy,z,a(N.y11,N.x11),a(N.y01,N.x01),!F))):B.arc(0,0,m,P,j,F):B.lineTo(G,W)}else B.moveTo(0,0);if(B.closePath(),i)return B=null,i+""||null}return O.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+E.apply(this,arguments)+ +M.apply(this,arguments))/2-h/2;return[u(r)*e,s(r)*e]},O.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),O):t},O.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:i(+t),O):n},O.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),O):e},O.padRadius=function(t){return arguments.length?(c=null==t?null:"function"==typeof t?t:i(+t),O):c},O.startAngle=function(t){return arguments.length?(E="function"==typeof t?t:i(+t),O):E},O.endAngle=function(t){return arguments.length?(M="function"==typeof t?t:i(+t),O):M},O.padAngle=function(t){return arguments.length?(k="function"==typeof t?t:i(+t),O):k},O.context=function(t){return arguments.length?(B=null==t?null:t,O):B},O};function M(t){this._context=t}M.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var k=function(t){return new M(t)};function B(t){return t[0]}function O(t){return t[1]}var F=function(){var t=B,n=O,e=i(!0),o=null,a=k,u=null;function c(i){var c,f,s,l=i.length,h=!1;for(null==o&&(u=a(s=Object(r.a)())),c=0;c<=l;++c)!(c<l&&e(f=i[c],c,i))===h&&((h=!h)?u.lineStart():u.lineEnd()),h&&u.point(+t(f,c,i),+n(f,c,i));if(s)return u=null,s+""||null}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),c):t},c.y=function(t){return arguments.length?(n="function"==typeof t?t:i(+t),c):n},c.defined=function(t){return arguments.length?(e="function"==typeof t?t:i(!!t),c):e},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c},T=function(){var t=B,n=null,e=i(0),o=O,a=i(!0),u=null,c=k,f=null;function s(i){var s,l,h,d,p,v=i.length,g=!1,y=new Array(v),m=new Array(v);for(null==u&&(f=c(p=Object(r.a)())),s=0;s<=v;++s){if(!(s<v&&a(d=i[s],s,i))===g)if(g=!g)l=s,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),h=s-1;h>=l;--h)f.point(y[h],m[h]);f.lineEnd(),f.areaEnd()}g&&(y[s]=+t(d,s,i),m[s]=+e(d,s,i),f.point(n?+n(d,s,i):y[s],o?+o(d,s,i):m[s]))}if(p)return f=null,p+""||null}function l(){return F().defined(a).curve(c).context(u)}return s.x=function(e){return arguments.length?(t="function"==typeof e?e:i(+e),n=null,s):t},s.x0=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),s):t},s.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:i(+t),s):n},s.y=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),o=null,s):e},s.y0=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),s):e},s.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:i(+t),s):o},s.lineX0=s.lineY0=function(){return l().x(t).y(e)},s.lineY1=function(){return l().x(t).y(o)},s.lineX1=function(){return l().x(n).y(e)},s.defined=function(t){return arguments.length?(a="function"==typeof t?t:i(!!t),s):a},s.curve=function(t){return arguments.length?(c=t,null!=u&&(f=c(u)),s):c},s.context=function(t){return arguments.length?(null==t?u=f=null:f=c(u=t),s):u},s},N=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},C=function(t){return t},S=function(){var t=C,n=N,e=null,r=i(0),o=i(p),a=i(0);function u(i){var u,c,f,s,l,h=i.length,d=0,v=new Array(h),g=new Array(h),y=+r.apply(this,arguments),m=Math.min(p,Math.max(-p,o.apply(this,arguments)-y)),b=Math.min(Math.abs(m)/h,a.apply(this,arguments)),x=b*(m<0?-1:1);for(u=0;u<h;++u)(l=g[v[u]=u]=+t(i[u],u,i))>0&&(d+=l);for(null!=n?v.sort((function(t,e){return n(g[t],g[e])})):null!=e&&v.sort((function(t,n){return e(i[t],i[n])})),u=0,f=d?(m-h*x)/d:0;u<h;++u,y=s)c=v[u],s=y+((l=g[c])>0?l*f:0)+x,g[c]={data:i[c],index:u,value:l,startAngle:y,endAngle:s,padAngle:b};return g}return u.value=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,e=null,u):n},u.sort=function(t){return arguments.length?(e=t,n=null,u):e},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:i(+t),u):r},u.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:i(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:i(+t),u):a},u},j=R(k);function P(t){this._curve=t}function R(t){function n(n){return new P(t(n))}return n._curve=t,n}function D(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(R(t)):n()._curve},t}P.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var L=function(){return D(F().curve(j))},I=function(){var t=T().curve(j),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return D(e())},delete t.lineX0,t.lineEndAngle=function(){return D(r())},delete t.lineX1,t.lineInnerRadius=function(){return D(i())},delete t.lineY0,t.lineOuterRadius=function(){return D(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(R(t)):n()._curve},t},U=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},z=Array.prototype.slice;function Y(t){return t.source}function q(t){return t.target}function H(t){var n=Y,e=q,o=B,a=O,u=null;function c(){var i,c=z.call(arguments),f=n.apply(this,c),s=e.apply(this,c);if(u||(u=i=Object(r.a)()),t(u,+o.apply(this,(c[0]=f,c)),+a.apply(this,c),+o.apply(this,(c[0]=s,c)),+a.apply(this,c)),i)return u=null,i+""||null}return c.source=function(t){return arguments.length?(n=t,c):n},c.target=function(t){return arguments.length?(e=t,c):e},c.x=function(t){return arguments.length?(o="function"==typeof t?t:i(+t),c):o},c.y=function(t){return arguments.length?(a="function"==typeof t?t:i(+t),c):a},c.context=function(t){return arguments.length?(u=null==t?null:t,c):u},c}function $(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function V(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function G(t,n,e,r,i){var o=U(n,e),a=U(n,e=(e+i)/2),u=U(r,e),c=U(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function W(){return H($)}function X(){return H(V)}function J(){var t=H(G);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var Z={draw:function(t,n){var e=Math.sqrt(n/h);t.moveTo(e,0),t.arc(0,0,e,0,p)}},Q={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},K=Math.sqrt(1/3),tt=2*K,nt={draw:function(t,n){var e=Math.sqrt(n/tt),r=e*K;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},et=Math.sin(h/10)/Math.sin(7*h/10),rt=Math.sin(p/10)*et,it=-Math.cos(p/10)*et,ot={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=rt*e,i=it*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=p*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*e,-u*e),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},at={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},ut=Math.sqrt(3),ct={draw:function(t,n){var e=-Math.sqrt(n/(3*ut));t.moveTo(0,2*e),t.lineTo(-ut*e,-e),t.lineTo(ut*e,-e),t.closePath()}},ft=Math.sqrt(3)/2,st=1/Math.sqrt(12),lt=3*(st/2+1),ht={draw:function(t,n){var e=Math.sqrt(n/lt),r=e/2,i=e*st,o=r,a=e*st+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(-.5*r-ft*i,ft*r+-.5*i),t.lineTo(-.5*o-ft*a,ft*o+-.5*a),t.lineTo(-.5*u-ft*c,ft*u+-.5*c),t.lineTo(-.5*r+ft*i,-.5*i-ft*r),t.lineTo(-.5*o+ft*a,-.5*a-ft*o),t.lineTo(-.5*u+ft*c,-.5*c-ft*u),t.closePath()}},dt=[Z,Q,nt,at,ot,ct,ht],pt=function(){var t=i(Z),n=i(64),e=null;function o(){var i;if(e||(e=i=Object(r.a)()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),i)return e=null,i+""||null}return o.type=function(n){return arguments.length?(t="function"==typeof n?n:i(n),o):t},o.size=function(t){return arguments.length?(n="function"==typeof t?t:i(+t),o):n},o.context=function(t){return arguments.length?(e=null==t?null:t,o):e},o},vt=function(){};function gt(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function yt(t){this._context=t}yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gt(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var mt=function(t){return new yt(t)};function bt(t){this._context=t}bt.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:gt(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var xt=function(t){return new bt(t)};function wt(t){this._context=t}wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:gt(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var _t=function(t){return new wt(t)};function At(t,n){this._basis=new yt(t),this._beta=n}At.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Et=function t(n){function e(t){return 1===n?new yt(t):new At(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Mt(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function kt(t,n){this._context=t,this._k=(1-n)/6}kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Mt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Mt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Bt=function t(n){function e(t){return new kt(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Ot(t,n){this._context=t,this._k=(1-n)/6}Ot.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Mt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ft=function t(n){function e(t){return new Ot(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Tt(t,n){this._context=t,this._k=(1-n)/6}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Nt=function t(n){function e(t){return new Tt(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Ct(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-n*t._l12_2a)/s,a=(a*f+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function St(t,n){this._context=t,this._alpha=n}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Ct(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var jt=function t(n){function e(t){return n?new St(t,n):new kt(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Pt(t,n){this._context=t,this._alpha=n}Pt.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Ct(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Rt=function t(n){function e(t){return n?new Pt(t,n):new Ot(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Dt(t,n){this._context=t,this._alpha=n}Dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ct(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Lt=function t(n){function e(t){return n?new Dt(t,n):new Tt(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function It(t){this._context=t}It.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var Ut=function(t){return new It(t)};function zt(t){return t<0?-1:1}function Yt(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(zt(o)+zt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function qt(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Ht(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function $t(t){this._context=t}function Vt(t){this._context=new Gt(t)}function Gt(t){this._context=t}function Wt(t){return new $t(t)}function Xt(t){return new Vt(t)}function Jt(t){this._context=t}function Zt(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}$t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ht(this,this._t0,qt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,Ht(this,qt(this,e=Yt(this,t,n)),e);break;default:Ht(this,this._t0,e=Yt(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(Vt.prototype=Object.create($t.prototype)).point=function(t,n){$t.prototype.point.call(this,n,t)},Gt.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},Jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Zt(t),i=Zt(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Qt=function(t){return new Jt(t)};function Kt(t,n){this._context=t,this._t=n}Kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var tn=function(t){return new Kt(t,.5)};function nn(t){return new Kt(t,0)}function en(t){return new Kt(t,1)}var rn=function(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<u;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]},on=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e};function an(t,n){return t[n]}var un=function(){var t=i([]),n=on,e=rn,r=an;function o(i){var o,a,u=t.apply(this,arguments),c=i.length,f=u.length,s=new Array(f);for(o=0;o<f;++o){for(var l,h=u[o],d=s[o]=new Array(c),p=0;p<c;++p)d[p]=l=[0,+r(i[p],h,p,i)],l.data=i[p];d.key=h}for(o=0,a=n(s);o<f;++o)s[a[o]].index=o;return e(s,a),s}return o.keys=function(n){return arguments.length?(t="function"==typeof n?n:i(z.call(n)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:i(+t),o):r},o.order=function(t){return arguments.length?(n=null==t?on:"function"==typeof t?t:i(z.call(t)),o):n},o.offset=function(t){return arguments.length?(e=null==t?rn:t,o):e},o},cn=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}rn(t,n)}},fn=function(t,n){if((u=t.length)>0)for(var e,r,i,o,a,u,c=0,f=t[n[0]].length;c<f;++c)for(o=a=0,e=0;e<u;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},sn=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<e;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}rn(t,n)}},ln=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var u=0,c=0,f=0;u<i;++u){for(var s=t[n[u]],l=s[a][1]||0,h=(l-(s[a-1][1]||0))/2,d=0;d<u;++d){var p=t[n[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}c+=l,f+=h*l}e[a-1][1]+=e[a-1][0]=o,c&&(o-=f/c)}e[a-1][1]+=e[a-1][0]=o,rn(t,n)}},hn=function(t){var n=t.map(dn);return on(t).sort((function(t,e){return n[t]-n[e]}))};function dn(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}var pn=function(t){var n=t.map(vn);return on(t).sort((function(t,e){return n[t]-n[e]}))};function vn(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}var gn=function(t){return pn(t).reverse()},yn=function(t){var n,e,r=t.length,i=t.map(vn),o=hn(t),a=0,u=0,c=[],f=[];for(n=0;n<r;++n)e=o[n],a<u?(a+=i[e],c.push(e)):(u+=i[e],f.push(e));return f.reverse().concat(c)},mn=function(t){return on(t).reverse()}},1465:function(t,n,e){"use strict";e.r(n),e.d(n,"schemeCategory10",(function(){return i})),e.d(n,"schemeAccent",(function(){return o})),e.d(n,"schemeDark2",(function(){return a})),e.d(n,"schemePaired",(function(){return u})),e.d(n,"schemePastel1",(function(){return c})),e.d(n,"schemePastel2",(function(){return f})),e.d(n,"schemeSet1",(function(){return s})),e.d(n,"schemeSet2",(function(){return l})),e.d(n,"schemeSet3",(function(){return h})),e.d(n,"schemeTableau10",(function(){return d})),e.d(n,"interpolateBrBG",(function(){return y})),e.d(n,"schemeBrBG",(function(){return g})),e.d(n,"interpolatePRGn",(function(){return b})),e.d(n,"schemePRGn",(function(){return m})),e.d(n,"interpolatePiYG",(function(){return w})),e.d(n,"schemePiYG",(function(){return x})),e.d(n,"interpolatePuOr",(function(){return A})),e.d(n,"schemePuOr",(function(){return _})),e.d(n,"interpolateRdBu",(function(){return M})),e.d(n,"schemeRdBu",(function(){return E})),e.d(n,"interpolateRdGy",(function(){return B})),e.d(n,"schemeRdGy",(function(){return k})),e.d(n,"interpolateRdYlBu",(function(){return F})),e.d(n,"schemeRdYlBu",(function(){return O})),e.d(n,"interpolateRdYlGn",(function(){return N})),e.d(n,"schemeRdYlGn",(function(){return T})),e.d(n,"interpolateSpectral",(function(){return S})),e.d(n,"schemeSpectral",(function(){return C})),e.d(n,"interpolateBuGn",(function(){return P})),e.d(n,"schemeBuGn",(function(){return j})),e.d(n,"interpolateBuPu",(function(){return D})),e.d(n,"schemeBuPu",(function(){return R})),e.d(n,"interpolateGnBu",(function(){return I})),e.d(n,"schemeGnBu",(function(){return L})),e.d(n,"interpolateOrRd",(function(){return z})),e.d(n,"schemeOrRd",(function(){return U})),e.d(n,"interpolatePuBuGn",(function(){return q})),e.d(n,"schemePuBuGn",(function(){return Y})),e.d(n,"interpolatePuBu",(function(){return $})),e.d(n,"schemePuBu",(function(){return H})),e.d(n,"interpolatePuRd",(function(){return G})),e.d(n,"schemePuRd",(function(){return V})),e.d(n,"interpolateRdPu",(function(){return X})),e.d(n,"schemeRdPu",(function(){return W})),e.d(n,"interpolateYlGnBu",(function(){return Z})),e.d(n,"schemeYlGnBu",(function(){return J})),e.d(n,"interpolateYlGn",(function(){return K})),e.d(n,"schemeYlGn",(function(){return Q})),e.d(n,"interpolateYlOrBr",(function(){return nt})),e.d(n,"schemeYlOrBr",(function(){return tt})),e.d(n,"interpolateYlOrRd",(function(){return rt})),e.d(n,"schemeYlOrRd",(function(){return et})),e.d(n,"interpolateBlues",(function(){return ot})),e.d(n,"schemeBlues",(function(){return it})),e.d(n,"interpolateGreens",(function(){return ut})),e.d(n,"schemeGreens",(function(){return at})),e.d(n,"interpolateGreys",(function(){return ft})),e.d(n,"schemeGreys",(function(){return ct})),e.d(n,"interpolatePurples",(function(){return lt})),e.d(n,"schemePurples",(function(){return st})),e.d(n,"interpolateReds",(function(){return dt})),e.d(n,"schemeReds",(function(){return ht})),e.d(n,"interpolateOranges",(function(){return vt})),e.d(n,"schemeOranges",(function(){return pt})),e.d(n,"interpolateCividis",(function(){return gt})),e.d(n,"interpolateCubehelixDefault",(function(){return bt})),e.d(n,"interpolateRainbow",(function(){return At})),e.d(n,"interpolateWarm",(function(){return xt})),e.d(n,"interpolateCool",(function(){return wt})),e.d(n,"interpolateSinebow",(function(){return Ot})),e.d(n,"interpolateTurbo",(function(){return Ft})),e.d(n,"interpolateViridis",(function(){return Nt})),e.d(n,"interpolateMagma",(function(){return Ct})),e.d(n,"interpolateInferno",(function(){return St})),e.d(n,"interpolatePlasma",(function(){return jt}));var r=function(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e},i=r("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),o=r("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),a=r("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),u=r("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),c=r("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),f=r("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),s=r("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),l=r("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),h=r("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),d=r("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),p=e(298),v=function(t){return Object(p.b)(t[t.length-1])},g=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(r),y=v(g),m=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(r),b=v(m),x=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(r),w=v(x),_=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(r),A=v(_),E=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(r),M=v(E),k=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(r),B=v(k),O=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(r),F=v(O),T=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(r),N=v(T),C=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(r),S=v(C),j=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(r),P=v(j),R=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(r),D=v(R),L=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(r),I=v(L),U=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(r),z=v(U),Y=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(r),q=v(Y),H=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(r),$=v(H),V=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(r),G=v(V),W=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(r),X=v(W),J=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(r),Z=v(J),Q=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(r),K=v(Q),tt=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(r),nt=v(tt),et=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(r),rt=v(et),it=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(r),ot=v(it),at=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(r),ut=v(at),ct=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(r),ft=v(ct),st=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(r),lt=v(st),ht=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(r),dt=v(ht),pt=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(r),vt=v(pt),gt=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"},yt=e(425),mt=e(448),bt=Object(mt.a)(Object(yt.a)(300,.5,0),Object(yt.a)(-240,.5,1)),xt=Object(mt.a)(Object(yt.a)(-100,.75,.35),Object(yt.a)(80,1.5,.8)),wt=Object(mt.a)(Object(yt.a)(260,.75,.35),Object(yt.a)(80,1.5,.8)),_t=Object(yt.a)(),At=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return _t.h=360*t-100,_t.s=1.5-1.5*n,_t.l=.8-.9*n,_t+""},Et=e(73),Mt=Object(Et.g)(),kt=Math.PI/3,Bt=2*Math.PI/3,Ot=function(t){var n;return t=(.5-t)*Math.PI,Mt.r=255*(n=Math.sin(t))*n,Mt.g=255*(n=Math.sin(t+kt))*n,Mt.b=255*(n=Math.sin(t+Bt))*n,Mt+""},Ft=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function Tt(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var Nt=Tt(r("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Ct=Tt(r("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),St=Tt(r("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),jt=Tt(r("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},1467:function(t,n,e){"use strict";function r(t,n){return t.parent===n.parent?1:2}function i(t,n){return t+n.x}function o(t,n){return Math.max(t,n.y)}e.r(n),e.d(n,"cluster",(function(){return a})),e.d(n,"hierarchy",(function(){return c})),e.d(n,"pack",(function(){return S})),e.d(n,"packSiblings",(function(){return B})),e.d(n,"packEnclose",(function(){return p})),e.d(n,"partition",(function(){return I})),e.d(n,"stratify",(function(){return H})),e.d(n,"tree",(function(){return Z})),e.d(n,"treemap",(function(){return et})),e.d(n,"treemapBinary",(function(){return rt})),e.d(n,"treemapDice",(function(){return L})),e.d(n,"treemapSlice",(function(){return Q})),e.d(n,"treemapSliceDice",(function(){return it})),e.d(n,"treemapSquarify",(function(){return nt})),e.d(n,"treemapResquarify",(function(){return ot}));var a=function(){var t=r,n=1,e=1,a=!1;function u(r){var u,c=0;r.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(i,0)/t.length}(e),n.y=function(t){return 1+t.reduce(o,0)}(e)):(n.x=u?c+=t(n,u):0,n.y=0,u=n)}));var f=function(t){for(var n;n=t.children;)t=n[0];return t}(r),s=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(r),l=f.x-t(f,s)/2,h=s.x+t(s,f)/2;return r.eachAfter(a?function(t){t.x=(t.x-r.x)*n,t.y=(r.y-t.y)*e}:function(t){t.x=(t.x-l)/(h-l)*n,t.y=(1-(r.y?t.y/r.y:1))*e})}return u.separation=function(n){return arguments.length?(t=n,u):t},u.size=function(t){return arguments.length?(a=!1,n=+t[0],e=+t[1],u):a?null:[n,e]},u.nodeSize=function(t){return arguments.length?(a=!0,n=+t[0],e=+t[1],u):a?[n,e]:null},u};function u(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function c(t,n){var e,r,i,o,a,u=new h(t),c=+t.value&&(u.value=t.value),s=[u];for(null==n&&(n=f);e=s.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(a=i.length))for(e.children=new Array(a),o=a-1;o>=0;--o)s.push(r=e.children[o]=new h(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(l)}function f(t){return t.children}function s(t){t.data=t.data.data}function l(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function h(t){this.data=t,this.depth=this.height=0,this.parent=null}h.prototype=c.prototype={constructor:h,count:function(){return this.eachAfter(u)},each:function(t){var n,e,r,i,o=this,a=[o];do{for(n=a.reverse(),a=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)a.push(e[r])}while(a.length);return this},eachAfter:function(t){for(var n,e,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=a.pop();)t(i);return this},eachBefore:function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return c(this).eachBefore(s)}};var d=Array.prototype.slice;var p=function(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(d.call(t))).length,o=[];r<i;)n=t[r],e&&y(e,n)?++r:(e=b(o=v(o,n)),r=0);return e};function v(t,n){var e,r;if(m(n,t))return[n];for(e=0;e<t.length;++e)if(g(n,t[e])&&m(x(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(g(x(t[e],t[r]),n)&&g(x(t[e],n),t[r])&&g(x(t[r],n),t[e])&&m(w(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function g(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function y(t,n){var e=t.r-n.r+1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function m(t,n){for(var e=0;e<n.length;++e)if(!y(t,n[e]))return!1;return!0}function b(t){switch(t.length){case 1:return{x:(n=t[0]).x,y:n.y,r:n.r};case 2:return x(t[0],t[1]);case 3:return w(t[0],t[1],t[2])}var n}function x(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,a=n.y,u=n.r,c=o-e,f=a-r,s=u-i,l=Math.sqrt(c*c+f*f);return{x:(e+o+c/l*s)/2,y:(r+a+f/l*s)/2,r:(l+i+u)/2}}function w(t,n,e){var r=t.x,i=t.y,o=t.r,a=n.x,u=n.y,c=n.r,f=e.x,s=e.y,l=e.r,h=r-a,d=r-f,p=i-u,v=i-s,g=c-o,y=l-o,m=r*r+i*i-o*o,b=m-a*a-u*u+c*c,x=m-f*f-s*s+l*l,w=d*p-h*v,_=(p*x-v*b)/(2*w)-r,A=(v*g-p*y)/w,E=(d*b-h*x)/(2*w)-i,M=(h*y-d*g)/w,k=A*A+M*M-1,B=2*(o+_*A+E*M),O=_*_+E*E-o*o,F=-(k?(B+Math.sqrt(B*B-4*k*O))/(2*k):O/B);return{x:r+_+A*F,y:i+E+M*F,r:F}}function _(t,n,e){var r,i,o,a,u=t.x-n.x,c=t.y-n.y,f=u*u+c*c;f?(i=n.r+e.r,i*=i,a=t.r+e.r,i>(a*=a)?(r=(f+a-i)/(2*f),o=Math.sqrt(Math.max(0,a/f-r*r)),e.x=t.x-r*u-o*c,e.y=t.y-r*c+o*u):(r=(f+i-a)/(2*f),o=Math.sqrt(Math.max(0,i/f-r*r)),e.x=n.x+r*u-o*c,e.y=n.y+r*c+o*u)):(e.x=n.x+e.r,e.y=n.y)}function A(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function E(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function M(t){this._=t,this.next=null,this.previous=null}function k(t){if(!(i=t.length))return 0;var n,e,r,i,o,a,u,c,f,s,l;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;_(e,n,r=t[2]),n=new M(n),e=new M(e),r=new M(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(u=3;u<i;++u){_(n._,e._,r=t[u]),r=new M(r),c=e.next,f=n.previous,s=e._.r,l=n._.r;do{if(s<=l){if(A(c._,r._)){e=c,n.next=e,e.previous=n,--u;continue t}s+=c._.r,c=c.next}else{if(A(f._,r._)){(n=f).next=e,e.previous=n,--u;continue t}l+=f._.r,f=f.previous}}while(c!==f.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,o=E(n);(r=r.next)!==e;)(a=E(r))<o&&(n=r,o=a);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=p(n),u=0;u<i;++u)(n=t[u]).x-=r.x,n.y-=r.y;return r.r}var B=function(t){return k(t),t};function O(t){return null==t?null:F(t)}function F(t){if("function"!=typeof t)throw new Error;return t}function T(){return 0}var N=function(t){return function(){return t}};function C(t){return Math.sqrt(t.value)}var S=function(){var t=null,n=1,e=1,r=T;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(j(t)).eachAfter(P(r,.5)).eachBefore(R(1)):i.eachBefore(j(C)).eachAfter(P(T,1)).eachAfter(P(r,i.r/Math.min(n,e))).eachBefore(R(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=O(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:N(+t),i):r},i};function j(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function P(t,n){return function(e){if(r=e.children){var r,i,o,a=r.length,u=t(e)*n||0;if(u)for(i=0;i<a;++i)r[i].r+=u;if(o=k(r),u)for(i=0;i<a;++i)r[i].r-=u;e.r=o+u}}}function R(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}var D=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},L=function(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,f=t.value&&(r-n)/t.value;++u<c;)(o=a[u]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*f},I=function(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&L(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,a=r.x1-e,u=r.y1-e;a<i&&(i=a=(i+a)/2),u<o&&(o=u=(o+u)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=u}}(n,o)),r&&i.eachBefore(D),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i},U={depth:-1},z={};function Y(t){return t.id}function q(t){return t.parentId}var H=function(){var t=Y,n=q;function e(e){var r,i,o,a,u,c,f,s=e.length,d=new Array(s),p={};for(i=0;i<s;++i)r=e[i],u=d[i]=new h(r),null!=(c=t(r,i,e))&&(c+="")&&(p[f="$"+(u.id=c)]=f in p?z:u);for(i=0;i<s;++i)if(u=d[i],null!=(c=n(e[i],i,e))&&(c+="")){if(!(a=p["$"+c]))throw new Error("missing: "+c);if(a===z)throw new Error("ambiguous: "+c);a.children?a.children.push(u):a.children=[u],u.parent=a}else{if(o)throw new Error("multiple roots");o=u}if(!o)throw new Error("no root");if(o.parent=U,o.eachBefore((function(t){t.depth=t.parent.depth+1,--s})).eachBefore(l),o.parent=null,s>0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=F(n),e):t},e.parentId=function(t){return arguments.length?(n=F(t),e):n},e};function $(t,n){return t.parent===n.parent?1:2}function V(t){var n=t.children;return n?n[0]:t.t}function G(t){var n=t.children;return n?n[n.length-1]:t.t}function W(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function X(t,n,e){return t.a.parent===n.parent?t.a:e}function J(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}J.prototype=Object.create(h.prototype);var Z=function(){var t=$,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new J(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new J(r[i],i)),e.parent=n;return(a.parent=new J(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var f=i,s=i,l=i;i.eachBefore((function(t){t.x<f.x&&(f=t),t.x>s.x&&(s=t),t.depth>l.depth&&(l=t)}));var h=f===s?1:t(f,s)/2,d=h-f.x,p=n/(s.x+h+d),v=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*v}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],f=o.m,s=a.m,l=u.m,h=c.m;u=G(u),o=V(o),u&&o;)c=V(c),(a=G(a)).a=n,(i=u.z+l-o.z-f+t(u._,o._))>0&&(W(X(u,n,r),n,i),f+=i,s+=i),l+=u.m,f+=o.m,h+=c.m,s+=a.m;u&&!G(a)&&(a.t=u,a.m+=l-s),o&&!V(c)&&(c.t=o,c.m+=f-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},Q=function(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,f=t.value&&(i-e)/t.value;++u<c;)(o=a[u]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*f},K=(1+Math.sqrt(5))/2;function tt(t,n,e,r,i,o){for(var a,u,c,f,s,l,h,d,p,v,g,y=[],m=n.children,b=0,x=0,w=m.length,_=n.value;b<w;){c=i-e,f=o-r;do{s=m[x++].value}while(!s&&x<w);for(l=h=s,g=s*s*(v=Math.max(f/c,c/f)/(_*t)),p=Math.max(h/g,g/l);x<w;++x){if(s+=u=m[x].value,u<l&&(l=u),u>h&&(h=u),g=s*s*v,(d=Math.max(h/g,g/l))>p){s-=u;break}p=d}y.push(a={value:s,dice:c<f,children:m.slice(b,x)}),a.dice?L(a,e,r,i,_?r+=f*s/_:o):Q(a,e,r,_?e+=c*s/_:i,o),_-=s,b=x}return y}var nt=function t(n){function e(t,e,r,i,o){tt(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(K),et=function(){var t=nt,n=!1,e=1,r=1,i=[0],o=T,a=T,u=T,c=T,f=T;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(D),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l<r&&(r=l=(r+l)/2),h<s&&(s=h=(s+h)/2),n.x0=r,n.y0=s,n.x1=l,n.y1=h,n.children&&(e=i[n.depth+1]=o(n)/2,r+=f(n)-e,s+=a(n)-e,(l-=u(n)-e)<r&&(r=l=(r+l)/2),(h-=c(n)-e)<s&&(s=h=(s+h)/2),t(n,r,s,l,h))}return s.round=function(t){return arguments.length?(n=!!t,s):n},s.size=function(t){return arguments.length?(e=+t[0],r=+t[1],s):[e,r]},s.tile=function(n){return arguments.length?(t=F(n),s):t},s.padding=function(t){return arguments.length?s.paddingInner(t).paddingOuter(t):s.paddingInner()},s.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:N(+t),s):o},s.paddingOuter=function(t){return arguments.length?s.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):s.paddingTop()},s.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:N(+t),s):a},s.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:N(+t),s):u},s.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:N(+t),s):c},s.paddingLeft=function(t){return arguments.length?(f="function"==typeof t?t:N(+t),s):f},s},rt=function(t,n,e,r,i){var o,a,u=t.children,c=u.length,f=new Array(c+1);for(f[0]=a=o=0;o<c;++o)f[o+1]=a+=u[o].value;!function t(n,e,r,i,o,a,c){if(n>=e-1){var s=u[n];return s.x0=i,s.y0=o,s.x1=a,void(s.y1=c)}var l=f[n],h=r/2+l,d=n+1,p=e-1;for(;d<p;){var v=d+p>>>1;f[v]<h?d=v+1:p=v}h-f[d-1]<f[d]-h&&n+1<d&&--d;var g=f[d]-l,y=r-g;if(a-i>c-o){var m=(i*y+a*g)/r;t(n,d,g,i,o,m,c),t(d,e,y,m,o,a,c)}else{var b=(o*y+c*g)/r;t(n,d,g,i,o,a,b),t(d,e,y,i,b,a,c)}}(0,c,t.value,n,e,r,i)},it=function(t,n,e,r,i){(1&t.depth?Q:L)(t,n,e,r,i)},ot=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,f,s,l=-1,h=a.length,d=t.value;++l<h;){for(c=(u=a[l]).children,f=u.value=0,s=c.length;f<s;++f)u.value+=c[f].value;u.dice?L(u,e,r,i,r+=(o-r)*u.value/d):Q(u,e,r,e+=(i-e)*u.value/d,o),d-=u.value}else t._squarify=a=tt(n,t,e,r,i,o),a.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(K)},1470:function(t,n,e){"use strict";e.r(n),e.d(n,"scaleBand",(function(){return h})),e.d(n,"scalePoint",(function(){return p})),e.d(n,"scaleIdentity",(function(){return R})),e.d(n,"scaleLinear",(function(){return P})),e.d(n,"scaleLog",(function(){return $})),e.d(n,"scaleSymlog",(function(){return X})),e.d(n,"scaleOrdinal",(function(){return l})),e.d(n,"scaleImplicit",(function(){return s})),e.d(n,"scalePow",(function(){return tt})),e.d(n,"scaleSqrt",(function(){return nt})),e.d(n,"scaleQuantile",(function(){return et})),e.d(n,"scaleQuantize",(function(){return rt})),e.d(n,"scaleThreshold",(function(){return it})),e.d(n,"scaleTime",(function(){return yt})),e.d(n,"scaleUtc",(function(){return Et})),e.d(n,"scaleSequential",(function(){return Bt})),e.d(n,"scaleSequentialLog",(function(){return Ot})),e.d(n,"scaleSequentialPow",(function(){return Tt})),e.d(n,"scaleSequentialSqrt",(function(){return Nt})),e.d(n,"scaleSequentialSymlog",(function(){return Ft})),e.d(n,"scaleSequentialQuantile",(function(){return Ct})),e.d(n,"scaleDiverging",(function(){return jt})),e.d(n,"scaleDivergingLog",(function(){return Pt})),e.d(n,"scaleDivergingPow",(function(){return Dt})),e.d(n,"scaleDivergingSqrt",(function(){return Lt})),e.d(n,"scaleDivergingSymlog",(function(){return Rt})),e.d(n,"tickFormat",(function(){return S}));var r=e(34);function i(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function o(t,n){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(n).domain(t)}return this}var a=e(218),u=Array.prototype,c=u.map,f=u.slice,s={name:"implicit"};function l(){var t=Object(a.map)(),n=[],e=[],r=s;function o(i){var o=i+"",a=t.get(o);if(!a){if(r!==s)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Object(a.map)();for(var r,i,u=-1,c=e.length;++u<c;)t.has(i=(r=e[u])+"")||t.set(i,n.push(r));return o},o.range=function(t){return arguments.length?(e=f.call(t),o):e.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return l(n,e).unknown(r)},i.apply(o,arguments),o}function h(){var t,n,e=l().unknown(void 0),o=e.domain,a=e.range,u=[0,1],c=!1,f=0,s=0,d=.5;function p(){var e=o().length,i=u[1]<u[0],l=u[i-0],h=u[1-i];t=(h-l)/Math.max(1,e-f+2*s),c&&(t=Math.floor(t)),l+=(h-l-t*(e-f))*d,n=t*(1-f),c&&(l=Math.round(l),n=Math.round(n));var p=Object(r.range)(e).map((function(n){return l+t*n}));return a(i?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(o(t),p()):o()},e.range=function(t){return arguments.length?(u=[+t[0],+t[1]],p()):u.slice()},e.rangeRound=function(t){return u=[+t[0],+t[1]],c=!0,p()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(c=!!t,p()):c},e.padding=function(t){return arguments.length?(f=Math.min(1,s=+t),p()):f},e.paddingInner=function(t){return arguments.length?(f=Math.min(1,t),p()):f},e.paddingOuter=function(t){return arguments.length?(s=+t,p()):s},e.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),p()):d},e.copy=function(){return h(o(),u).round(c).paddingInner(f).paddingOuter(s).align(d)},i.apply(p(),arguments)}function d(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return d(n())},t}function p(){return d(h.apply(null,arguments).paddingInner(1))}var v=e(325),g=e(124),y=e(683),m=function(t){return+t},b=[0,1];function x(t){return t}function w(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function _(t){var n,e=t[0],r=t[t.length-1];return e>r&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function A(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=w(i,r),o=e(a,o)):(r=w(r,i),o=e(o,a)),function(t){return o(r(t))}}function E(t,n,e){var i=Math.min(t.length,n.length)-1,o=new Array(i),a=new Array(i),u=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<i;)o[u]=w(t[u],t[u+1]),a[u]=e(n[u],n[u+1]);return function(n){var e=Object(r.bisect)(t,n,1,i)-1;return a[e](o[e](n))}}function M(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function k(){var t,n,e,r,i,o,a=b,u=b,s=v.a,l=x;function h(){return r=Math.min(a.length,u.length)>2?E:A,i=o=null,d}function d(n){return isNaN(n=+n)?e:(i||(i=r(a.map(t),u,s)))(t(l(n)))}return d.invert=function(e){return l(n((o||(o=r(u,a.map(t),g.a)))(e)))},d.domain=function(t){return arguments.length?(a=c.call(t,m),l===x||(l=_(a)),h()):a.slice()},d.range=function(t){return arguments.length?(u=f.call(t),h()):u.slice()},d.rangeRound=function(t){return u=f.call(t),s=y.a,h()},d.clamp=function(t){return arguments.length?(l=t?_(a):x,d):l!==x},d.interpolate=function(t){return arguments.length?(s=t,h()):s},d.unknown=function(t){return arguments.length?(e=t,d):e},function(e,r){return t=e,n=r,h()}}function B(t,n){return k()(t,n)}var O=e(328),F=e(681),T=e(389),N=e(682),C=e(680),S=function(t,n,e,i){var o,a=Object(r.tickStep)(t,n,e);switch((i=Object(O.b)(null==i?",f":i)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=i.precision||isNaN(o=Object(F.a)(a,u))||(i.precision=o),Object(T.c)(i,u);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Object(N.a)(a,Math.max(Math.abs(t),Math.abs(n))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Object(C.a)(a))||(i.precision=o-2*("%"===i.type))}return Object(T.b)(i)};function j(t){var n=t.domain;return t.ticks=function(t){var e=n();return Object(r.ticks)(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return S(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var i,o=n(),a=0,u=o.length-1,c=o[a],f=o[u];return f<c&&(i=c,c=f,f=i,i=a,a=u,u=i),(i=Object(r.tickIncrement)(c,f,e))>0?(c=Math.floor(c/i)*i,f=Math.ceil(f/i)*i,i=Object(r.tickIncrement)(c,f,e)):i<0&&(c=Math.ceil(c*i)/i,f=Math.floor(f*i)/i,i=Object(r.tickIncrement)(c,f,e)),i>0?(o[a]=Math.floor(c/i)*i,o[u]=Math.ceil(f/i)*i,n(o)):i<0&&(o[a]=Math.ceil(c*i)/i,o[u]=Math.floor(f*i)/i,n(o)),t},t}function P(){var t=B(x,x);return t.copy=function(){return M(t,P())},i.apply(t,arguments),j(t)}function R(t){var n;function e(t){return isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=c.call(n,m),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return R(t).unknown(n)},t=arguments.length?c.call(t,m):[0,1],j(e)}var D=function(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t};function L(t){return Math.log(t)}function I(t){return Math.exp(t)}function U(t){return-Math.log(-t)}function z(t){return-Math.exp(-t)}function Y(t){return isFinite(t)?+("1e"+t):t<0?0:t}function q(t){return function(n){return-t(-n)}}function H(t){var n,e,i=t(L,I),o=i.domain,a=10;function u(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}(a),e=function(t){return 10===t?Y:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}(a),o()[0]<0?(n=q(n),e=q(e),t(U,z)):t(L,I),i}return i.base=function(t){return arguments.length?(a=+t,u()):a},i.domain=function(t){return arguments.length?(o(t),u()):o()},i.ticks=function(t){var i,u=o(),c=u[0],f=u[u.length-1];(i=f<c)&&(d=c,c=f,f=d);var s,l,h,d=n(c),p=n(f),v=null==t?10:+t,g=[];if(!(a%1)&&p-d<v){if(d=Math.round(d)-1,p=Math.round(p)+1,c>0){for(;d<p;++d)for(l=1,s=e(d);l<a;++l)if(!((h=s*l)<c)){if(h>f)break;g.push(h)}}else for(;d<p;++d)for(l=a-1,s=e(d);l>=1;--l)if(!((h=s*l)<c)){if(h>f)break;g.push(h)}}else g=Object(r.ticks)(d,p,Math.min(p-d,v)).map(e);return i?g.reverse():g},i.tickFormat=function(t,r){if(null==r&&(r=10===a?".0e":","),"function"!=typeof r&&(r=Object(T.b)(r)),t===1/0)return r;null==t&&(t=10);var o=Math.max(1,a*t/i.ticks().length);return function(t){var i=t/e(Math.round(n(t)));return i*a<a-.5&&(i*=a),i<=o?r(t):""}},i.nice=function(){return o(D(o(),{floor:function(t){return e(Math.floor(n(t)))},ceil:function(t){return e(Math.ceil(n(t)))}}))},i}function $(){var t=H(k()).domain([1,10]);return t.copy=function(){return M(t,$()).base(t.base())},i.apply(t,arguments),t}function V(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function G(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function W(t){var n=1,e=t(V(n),G(n));return e.constant=function(e){return arguments.length?t(V(n=+e),G(n)):n},j(e)}function X(){var t=W(k());return t.copy=function(){return M(t,X()).constant(t.constant())},i.apply(t,arguments)}function J(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Z(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Q(t){return t<0?-t*t:t*t}function K(t){var n=t(x,x),e=1;function r(){return 1===e?t(x,x):.5===e?t(Z,Q):t(J(e),J(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},j(n)}function tt(){var t=K(k());return t.copy=function(){return M(t,tt()).exponent(t.exponent())},i.apply(t,arguments),t}function nt(){return tt.apply(null,arguments).exponent(.5)}function et(){var t,n=[],e=[],o=[];function a(){var t=0,i=Math.max(1,e.length);for(o=new Array(i-1);++t<i;)o[t-1]=Object(r.quantile)(n,t/i);return u}function u(n){return isNaN(n=+n)?t:e[Object(r.bisect)(o,n)]}return u.invertExtent=function(t){var r=e.indexOf(t);return r<0?[NaN,NaN]:[r>0?o[r-1]:n[0],r<o.length?o[r]:n[n.length-1]]},u.domain=function(t){if(!arguments.length)return n.slice();n=[];for(var e,i=0,o=t.length;i<o;++i)null==(e=t[i])||isNaN(e=+e)||n.push(e);return n.sort(r.ascending),a()},u.range=function(t){return arguments.length?(e=f.call(t),a()):e.slice()},u.unknown=function(n){return arguments.length?(t=n,u):t},u.quantiles=function(){return o.slice()},u.copy=function(){return et().domain(n).range(e).unknown(t)},i.apply(u,arguments)}function rt(){var t,n=0,e=1,o=1,a=[.5],u=[0,1];function c(n){return n<=n?u[Object(r.bisect)(a,n,0,o)]:t}function s(){var t=-1;for(a=new Array(o);++t<o;)a[t]=((t+1)*e-(t-o)*n)/(o+1);return c}return c.domain=function(t){return arguments.length?(n=+t[0],e=+t[1],s()):[n,e]},c.range=function(t){return arguments.length?(o=(u=f.call(t)).length-1,s()):u.slice()},c.invertExtent=function(t){var r=u.indexOf(t);return r<0?[NaN,NaN]:r<1?[n,a[0]]:r>=o?[a[o-1],e]:[a[r-1],a[r]]},c.unknown=function(n){return arguments.length?(t=n,c):c},c.thresholds=function(){return a.slice()},c.copy=function(){return rt().domain([n,e]).range(u).unknown(t)},i.apply(j(c),arguments)}function it(){var t,n=[.5],e=[0,1],o=1;function a(i){return i<=i?e[Object(r.bisect)(n,i,0,o)]:t}return a.domain=function(t){return arguments.length?(n=f.call(t),o=Math.min(n.length,e.length-1),a):n.slice()},a.range=function(t){return arguments.length?(e=f.call(t),o=Math.min(n.length,e.length-1),a):e.slice()},a.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},a.unknown=function(n){return arguments.length?(t=n,a):t},a.copy=function(){return it().domain(n).range(e).unknown(t)},i.apply(a,arguments)}var ot=e(219),at=e(450),ut=e(71),ct=e(377),ft=e(451),st=e(452),lt=e(347),ht=e(348),dt=e(186);function pt(t){return new Date(t)}function vt(t){return t instanceof Date?+t:+new Date(+t)}function gt(t,n,e,i,o,a,u,f,s){var l=B(x,x),h=l.invert,d=l.domain,p=s(".%L"),v=s(":%S"),g=s("%I:%M"),y=s("%I %p"),m=s("%a %d"),b=s("%b %d"),w=s("%B"),_=s("%Y"),A=[[u,1,1e3],[u,5,5e3],[u,15,15e3],[u,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,864e5],[i,2,1728e5],[e,1,6048e5],[n,1,2592e6],[n,3,7776e6],[t,1,31536e6]];function E(r){return(u(r)<r?p:a(r)<r?v:o(r)<r?g:i(r)<r?y:n(r)<r?e(r)<r?m:b:t(r)<r?w:_)(r)}function k(n,e,i,o){if(null==n&&(n=10),"number"==typeof n){var a=Math.abs(i-e)/n,u=Object(r.bisector)((function(t){return t[2]})).right(A,a);u===A.length?(o=Object(r.tickStep)(e/31536e6,i/31536e6,n),n=t):u?(o=(u=A[a/A[u-1][2]<A[u][2]/a?u-1:u])[1],n=u[0]):(o=Math.max(Object(r.tickStep)(e,i,n),1),n=f)}return null==o?n:n.every(o)}return l.invert=function(t){return new Date(h(t))},l.domain=function(t){return arguments.length?d(c.call(t,vt)):d().map(pt)},l.ticks=function(t,n){var e,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(e=i,i=o,o=e),e=(e=k(t,i,o,n))?e.range(i,o+1):[],a?e.reverse():e},l.tickFormat=function(t,n){return null==n?E:s(n)},l.nice=function(t,n){var e=d();return(t=k(t,e[0],e[e.length-1],n))?d(D(e,t)):l},l.copy=function(){return M(l,gt(t,n,e,i,o,a,u,f,s))},l}var yt=function(){return i.apply(gt(ot.a,at.a,ut.g,ct.b,ft.a,st.a,lt.a,ht.a,dt.b).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},mt=e(220),bt=e(453),xt=e(72),wt=e(378),_t=e(454),At=e(455),Et=function(){return i.apply(gt(mt.a,bt.a,xt.g,wt.a,_t.a,At.a,lt.a,ht.a,dt.d).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function Mt(){var t,n,e,r,i,o=0,a=1,u=x,c=!1;function f(n){return isNaN(n=+n)?i:u(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}return f.domain=function(i){return arguments.length?(t=r(o=+i[0]),n=r(a=+i[1]),e=t===n?0:1/(n-t),f):[o,a]},f.clamp=function(t){return arguments.length?(c=!!t,f):c},f.interpolator=function(t){return arguments.length?(u=t,f):u},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),f}}function kt(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Bt(){var t=j(Mt()(x));return t.copy=function(){return kt(t,Bt())},o.apply(t,arguments)}function Ot(){var t=H(Mt()).domain([1,10]);return t.copy=function(){return kt(t,Ot()).base(t.base())},o.apply(t,arguments)}function Ft(){var t=W(Mt());return t.copy=function(){return kt(t,Ft()).constant(t.constant())},o.apply(t,arguments)}function Tt(){var t=K(Mt());return t.copy=function(){return kt(t,Tt()).exponent(t.exponent())},o.apply(t,arguments)}function Nt(){return Tt.apply(null,arguments).exponent(.5)}function Ct(){var t=[],n=x;function e(e){if(!isNaN(e=+e))return n((Object(r.bisect)(t,e)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var i,o=0,a=n.length;o<a;++o)null==(i=n[o])||isNaN(i=+i)||t.push(i);return t.sort(r.ascending),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return Ct(n).domain(t)},o.apply(e,arguments)}function St(){var t,n,e,r,i,o,a,u=0,c=.5,f=1,s=x,l=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(t<n?r:i),s(l?Math.max(0,Math.min(1,t)):t))}return h.domain=function(a){return arguments.length?(t=o(u=+a[0]),n=o(c=+a[1]),e=o(f=+a[2]),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),h):[u,c,f]},h.clamp=function(t){return arguments.length?(l=!!t,h):l},h.interpolator=function(t){return arguments.length?(s=t,h):s},h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return o=a,t=a(u),n=a(c),e=a(f),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),h}}function jt(){var t=j(St()(x));return t.copy=function(){return kt(t,jt())},o.apply(t,arguments)}function Pt(){var t=H(St()).domain([.1,1,10]);return t.copy=function(){return kt(t,Pt()).base(t.base())},o.apply(t,arguments)}function Rt(){var t=W(St());return t.copy=function(){return kt(t,Rt()).constant(t.constant())},o.apply(t,arguments)}function Dt(){var t=K(St());return t.copy=function(){return kt(t,Dt()).exponent(t.exponent())},o.apply(t,arguments)}function Lt(){return Dt.apply(null,arguments).exponent(.5)}},1477:function(t,n,e){"use strict";e.r(n),e.d(n,"forceCenter",(function(){return r})),e.d(n,"forceCollide",(function(){return f})),e.d(n,"forceLink",(function(){return d})),e.d(n,"forceManyBody",(function(){return x})),e.d(n,"forceRadial",(function(){return w})),e.d(n,"forceSimulation",(function(){return b})),e.d(n,"forceX",(function(){return _})),e.d(n,"forceY",(function(){return A}));var r=function(t,n){var e;function r(){var r,i,o=e.length,a=0,u=0;for(r=0;r<o;++r)a+=(i=e[r]).x,u+=i.y;for(a=a/o-t,u=u/o-n,r=0;r<o;++r)(i=e[r]).x-=a,i.y-=u}return null==t&&(t=0),null==n&&(n=0),r.initialize=function(t){e=t},r.x=function(n){return arguments.length?(t=+n,r):t},r.y=function(t){return arguments.length?(n=+t,r):n},r},i=function(t){return function(){return t}},o=function(){return 1e-6*(Math.random()-.5)},a=e(776);function u(t){return t.x+t.vx}function c(t){return t.y+t.vy}var f=function(t){var n,e,r=1,f=1;function s(){for(var t,i,s,h,d,p,v,g=n.length,y=0;y<f;++y)for(i=Object(a.a)(n,u,c).visitAfter(l),t=0;t<g;++t)s=n[t],p=e[s.index],v=p*p,h=s.x+s.vx,d=s.y+s.vy,i.visit(m);function m(t,n,e,i,a){var u=t.data,c=t.r,f=p+c;if(!u)return n>h+f||i<h-f||e>d+f||a<d-f;if(u.index>s.index){var l=h-u.x-u.vx,g=d-u.y-u.vy,y=l*l+g*g;y<f*f&&(0===l&&(y+=(l=o())*l),0===g&&(y+=(g=o())*g),y=(f-(y=Math.sqrt(y)))/y*r,s.vx+=(l*=y)*(f=(c*=c)/(v+c)),s.vy+=(g*=y)*f,u.vx-=l*(f=1-f),u.vy-=g*f)}}}function l(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function h(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r<o;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!=typeof t&&(t=i(null==t?1:+t)),s.initialize=function(t){n=t,h()},s.iterations=function(t){return arguments.length?(f=+t,s):f},s.strength=function(t){return arguments.length?(r=+t,s):r},s.radius=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),h(),s):t},s},s=e(218);function l(t){return t.index}function h(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}var d=function(t){var n,e,r,a,u,c=l,f=function(t){return 1/Math.min(a[t.source.index],a[t.target.index])},d=i(30),p=1;function v(r){for(var i=0,a=t.length;i<p;++i)for(var c,f,s,l,h,d,v,g=0;g<a;++g)f=(c=t[g]).source,l=(s=c.target).x+s.vx-f.x-f.vx||o(),h=s.y+s.vy-f.y-f.vy||o(),l*=d=((d=Math.sqrt(l*l+h*h))-e[g])/d*r*n[g],h*=d,s.vx-=l*(v=u[g]),s.vy-=h*v,f.vx+=l*(v=1-v),f.vy+=h*v}function g(){if(r){var i,o,f=r.length,l=t.length,d=Object(s.map)(r,c);for(i=0,a=new Array(f);i<l;++i)(o=t[i]).index=i,"object"!=typeof o.source&&(o.source=h(d,o.source)),"object"!=typeof o.target&&(o.target=h(d,o.target)),a[o.source.index]=(a[o.source.index]||0)+1,a[o.target.index]=(a[o.target.index]||0)+1;for(i=0,u=new Array(l);i<l;++i)o=t[i],u[i]=a[o.source.index]/(a[o.source.index]+a[o.target.index]);n=new Array(l),y(),e=new Array(l),m()}}function y(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+f(t[e],e,t)}function m(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+d(t[n],n,t)}return null==t&&(t=[]),v.initialize=function(t){r=t,g()},v.links=function(n){return arguments.length?(t=n,g(),v):t},v.id=function(t){return arguments.length?(c=t,v):c},v.iterations=function(t){return arguments.length?(p=+t,v):p},v.strength=function(t){return arguments.length?(f="function"==typeof t?t:i(+t),y(),v):f},v.distance=function(t){return arguments.length?(d="function"==typeof t?t:i(+t),m(),v):d},v},p=e(675),v=e(199);function g(t){return t.x}function y(t){return t.y}var m=Math.PI*(3-Math.sqrt(5)),b=function(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=Object(s.map)(),c=Object(v.c)(l),f=Object(p.a)("tick","end");function l(){h(),f.call("tick",n),e<r&&(c.stop(),f.call("end",n))}function h(r){var c,f,s=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(e+=(o-e)*i,u.each((function(t){t(e)})),c=0;c<s;++c)null==(f=t[c]).fx?f.x+=f.vx*=a:(f.x=f.fx,f.vx=0),null==f.fy?f.y+=f.vy*=a:(f.y=f.fy,f.vy=0);return n}function d(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=10*Math.sqrt(e),o=e*m;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function g(n){return n.initialize&&n.initialize(t),n}return null==t&&(t=[]),d(),n={tick:h,restart:function(){return c.restart(l),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,d(),u.each(g),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(a=1-t,n):1-a},force:function(t,e){return arguments.length>1?(null==e?u.remove(t):u.set(t,g(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f<s;++f)(a=(i=n-(u=t[f]).x)*i+(o=e-u.y)*o)<r&&(c=u,r=a);return c},on:function(t,e){return arguments.length>1?(f.on(t,e),n):f.on(t)}}},x=function(){var t,n,e,r,u=i(-30),c=1,f=1/0,s=.81;function l(r){var i,o=t.length,u=Object(a.a)(t,g,y).visitAfter(d);for(e=r,i=0;i<o;++i)n=t[i],u.visit(p)}function h(){if(t){var n,e,i=t.length;for(r=new Array(i),n=0;n<i;++n)e=t[n],r[e.index]=+u(e,n,t)}}function d(t){var n,e,i,o,a,u=0,c=0;if(t.length){for(i=o=a=0;a<4;++a)(n=t[a])&&(e=Math.abs(n.value))&&(u+=n.value,c+=e,i+=e*n.x,o+=e*n.y);t.x=i/c,t.y=o/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{u+=r[n.data.index]}while(n=n.next)}t.value=u}function p(t,i,a,u){if(!t.value)return!0;var l=t.x-n.x,h=t.y-n.y,d=u-i,p=l*l+h*h;if(d*d/s<p)return p<f&&(0===l&&(p+=(l=o())*l),0===h&&(p+=(h=o())*h),p<c&&(p=Math.sqrt(c*p)),n.vx+=l*t.value*e/p,n.vy+=h*t.value*e/p),!0;if(!(t.length||p>=f)){(t.data!==n||t.next)&&(0===l&&(p+=(l=o())*l),0===h&&(p+=(h=o())*h),p<c&&(p=Math.sqrt(c*p)));do{t.data!==n&&(d=r[t.data.index]*e/p,n.vx+=l*d,n.vy+=h*d)}while(t=t.next)}}return l.initialize=function(n){t=n,h()},l.strength=function(t){return arguments.length?(u="function"==typeof t?t:i(+t),h(),l):u},l.distanceMin=function(t){return arguments.length?(c=t*t,l):Math.sqrt(c)},l.distanceMax=function(t){return arguments.length?(f=t*t,l):Math.sqrt(f)},l.theta=function(t){return arguments.length?(s=t*t,l):Math.sqrt(s)},l},w=function(t,n,e){var r,o,a,u=i(.1);function c(t){for(var i=0,u=r.length;i<u;++i){var c=r[i],f=c.x-n||1e-6,s=c.y-e||1e-6,l=Math.sqrt(f*f+s*s),h=(a[i]-l)*o[i]*t/l;c.vx+=f*h,c.vy+=s*h}}function f(){if(r){var n,e=r.length;for(o=new Array(e),a=new Array(e),n=0;n<e;++n)a[n]=+t(r[n],n,r),o[n]=isNaN(a[n])?0:+u(r[n],n,r)}}return"function"!=typeof t&&(t=i(+t)),null==n&&(n=0),null==e&&(e=0),c.initialize=function(t){r=t,f()},c.strength=function(t){return arguments.length?(u="function"==typeof t?t:i(+t),f(),c):u},c.radius=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),f(),c):t},c.x=function(t){return arguments.length?(n=+t,c):n},c.y=function(t){return arguments.length?(e=+t,c):e},c},_=function(t){var n,e,r,o=i(.1);function a(t){for(var i,o=0,a=n.length;o<a;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function u(){if(n){var i,a=n.length;for(e=new Array(a),r=new Array(a),i=0;i<a;++i)e[i]=isNaN(r[i]=+t(n[i],i,n))?0:+o(n[i],i,n)}}return"function"!=typeof t&&(t=i(null==t?0:+t)),a.initialize=function(t){n=t,u()},a.strength=function(t){return arguments.length?(o="function"==typeof t?t:i(+t),u(),a):o},a.x=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),u(),a):t},a},A=function(t){var n,e,r,o=i(.1);function a(t){for(var i,o=0,a=n.length;o<a;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function u(){if(n){var i,a=n.length;for(e=new Array(a),r=new Array(a),i=0;i<a;++i)e[i]=isNaN(r[i]=+t(n[i],i,n))?0:+o(n[i],i,n)}}return"function"!=typeof t&&(t=i(null==t?0:+t)),a.initialize=function(t){n=t,u()},a.strength=function(t){return arguments.length?(o="function"==typeof t?t:i(+t),u(),a):o},a.y=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),u(),a):t},a}},1478:function(t,n,e){"use strict";e.r(n),e.d(n,"contours",(function(){return h})),e.d(n,"contourDensity",(function(){return m}));var r=e(34),i=Array.prototype.slice,o=function(t,n){return t-n},a=function(t){return function(){return t}},u=function(t,n){for(var e,r=-1,i=n.length;++r<i;)if(e=c(t,n[r]))return e;return 0};function c(t,n){for(var e=n[0],r=n[1],i=-1,o=0,a=t.length,u=a-1;o<a;u=o++){var c=t[o],s=c[0],l=c[1],h=t[u],d=h[0],p=h[1];if(f(c,h,n))return 0;l>r!=p>r&&e<(d-s)*(r-l)/(p-l)+s&&(i=-i)}return i}function f(t,n,e){var r,i,o,a;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],a=n[r],i<=o&&o<=a||a<=o&&o<=i)}var s=function(){},l=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],h=function(){var t=1,n=1,e=r.thresholdSturges,c=p;function f(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(o);else{var i=Object(r.extent)(t),a=i[0],u=i[1];n=Object(r.tickStep)(a,u,n),n=Object(r.range)(Math.floor(a/n)*n,Math.floor(u/n)*n,n)}return n.map((function(n){return h(t,n)}))}function h(e,r){var i=[],o=[];return function(e,r,i){var o,a,u,c,f,s,h=new Array,p=new Array;o=a=-1,c=e[0]>=r,l[c<<1].forEach(v);for(;++o<t-1;)u=c,c=e[o+1]>=r,l[u|c<<1].forEach(v);l[c<<0].forEach(v);for(;++a<n-1;){for(o=-1,c=e[a*t+t]>=r,f=e[a*t]>=r,l[c<<1|f<<2].forEach(v);++o<t-1;)u=c,c=e[a*t+t+o+1]>=r,s=f,f=e[a*t+o+1]>=r,l[u|c<<1|f<<2|s<<3].forEach(v);l[c|f<<3].forEach(v)}o=-1,f=e[a*t]>=r,l[f<<2].forEach(v);for(;++o<t-1;)s=f,f=e[a*t+o+1]>=r,l[f<<2|s<<3].forEach(v);function v(t){var n,e,r=[t[0][0]+o,t[0][1]+a],u=[t[1][0]+o,t[1][1]+a],c=d(r),f=d(u);(n=p[c])?(e=h[f])?(delete p[n.end],delete h[e.start],n===e?(n.ring.push(u),i(n.ring)):h[n.start]=p[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete p[n.end],n.ring.push(u),p[n.end=f]=n):(n=h[f])?(e=p[c])?(delete h[n.start],delete p[e.end],n===e?(n.ring.push(u),i(n.ring)):h[e.start]=p[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=c]=n):h[c]=p[f]={start:c,end:f,ring:[r,u]}}l[f<<3].forEach(v)}(e,r,(function(t){c(t,e,r),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r}(t)>0?i.push([t]):o.push(t)})),o.forEach((function(t){for(var n,e=0,r=i.length;e<r;++e)if(-1!==u((n=i[e])[0],t))return void n.push(t)})),{type:"MultiPolygon",value:r,coordinates:i}}function d(n){return 2*n[0]+n[1]*(t+1)*4}function p(e,r,i){e.forEach((function(e){var o,a=e[0],u=e[1],c=0|a,f=0|u,s=r[f*t+c];a>0&&a<t&&c===a&&(o=r[f*t+c-1],e[0]=a+(i-o)/(s-o)-.5),u>0&&u<n&&f===u&&(o=r[(f-1)*t+c],e[1]=u+(i-o)/(s-o)-.5)}))}return f.contour=h,f.size=function(e){if(!arguments.length)return[t,n];var r=Math.ceil(e[0]),i=Math.ceil(e[1]);if(!(r>0&&i>0))throw new Error("invalid size");return t=r,n=i,f},f.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?a(i.call(t)):a(t),f):e},f.smooth=function(t){return arguments.length?(c=t?p:s,f):c===p},f};function d(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a<i;++a)for(var u=0,c=0;u<r+e;++u)u<r&&(c+=t.data[u+a*r]),u>=e&&(u>=o&&(c-=t.data[u-o+a*r]),n.data[u-e+a*r]=c/Math.min(u+1,r-1+o-u,o))}function p(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a<r;++a)for(var u=0,c=0;u<i+e;++u)u<i&&(c+=t.data[a+u*r]),u>=e&&(u>=o&&(c-=t.data[a+(u-o)*r]),n.data[a+(u-e)*r]=c/Math.min(u+1,i-1+o-u,o))}function v(t){return t[0]}function g(t){return t[1]}function y(){return 1}var m=function(){var t=v,n=g,e=y,o=960,u=500,c=20,f=2,s=3*c,l=o+2*s>>f,m=u+2*s>>f,b=a(20);function x(i){var o=new Float32Array(l*m),a=new Float32Array(l*m);i.forEach((function(r,i,a){var u=+t(r,i,a)+s>>f,c=+n(r,i,a)+s>>f,h=+e(r,i,a);u>=0&&u<l&&c>=0&&c<m&&(o[u+c*l]+=h)})),d({width:l,height:m,data:o},{width:l,height:m,data:a},c>>f),p({width:l,height:m,data:a},{width:l,height:m,data:o},c>>f),d({width:l,height:m,data:o},{width:l,height:m,data:a},c>>f),p({width:l,height:m,data:a},{width:l,height:m,data:o},c>>f),d({width:l,height:m,data:o},{width:l,height:m,data:a},c>>f),p({width:l,height:m,data:a},{width:l,height:m,data:o},c>>f);var u=b(o);if(!Array.isArray(u)){var v=Object(r.max)(o);u=Object(r.tickStep)(0,v,u),(u=Object(r.range)(0,Math.floor(v/u)*u,u)).shift()}return h().thresholds(u).size([l,m])(o).map(w)}function w(t){return t.value*=Math.pow(2,-2*f),t.coordinates.forEach(_),t}function _(t){t.forEach(A)}function A(t){t.forEach(E)}function E(t){t[0]=t[0]*Math.pow(2,f)-s,t[1]=t[1]*Math.pow(2,f)-s}function M(){return l=o+2*(s=3*c)>>f,m=u+2*s>>f,x}return x.x=function(n){return arguments.length?(t="function"==typeof n?n:a(+n),x):t},x.y=function(t){return arguments.length?(n="function"==typeof t?t:a(+t),x):n},x.weight=function(t){return arguments.length?(e="function"==typeof t?t:a(+t),x):e},x.size=function(t){if(!arguments.length)return[o,u];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0||n>=0))throw new Error("invalid size");return o=n,u=e,M()},x.cellSize=function(t){if(!arguments.length)return 1<<f;if(!((t=+t)>=1))throw new Error("invalid cell size");return f=Math.floor(Math.log(t)/Math.LN2),M()},x.thresholds=function(t){return arguments.length?(b="function"==typeof t?t:Array.isArray(t)?a(i.call(t)):a(t),x):b},x.bandwidth=function(t){if(!arguments.length)return Math.sqrt(c*(c+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return c=Math.round((Math.sqrt(4*t*t+1)-1)/2),M()},x}},1479:function(t,n,e){"use strict";e.r(n),e.d(n,"voronoi",(function(){return z}));var r=function(t){return function(){return t}};function i(t){return t[0]}function o(t){return t[1]}function a(){this._=null}function u(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function c(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function f(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function s(t){for(;t.L;)t=t.L;return t}a.prototype={constructor:a,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=s(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(c(this,e),e=(t=e).U),e.C=!1,r.C=!0,f(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(f(this,e),e=(t=e).U),e.C=!1,r.C=!0,c(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?s(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,c(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,f(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,c(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,f(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,c(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,f(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var l=a;function h(t,n,e,r){var i=[null,null],o=R.push(i)-1;return i.left=t,i.right=n,e&&p(i,t,n,e),r&&p(i,n,t,r),j[t.index].halfedges.push(o),j[n.index].halfedges.push(o),i}function d(t,n,e){var r=[n,e];return r.left=t,r}function p(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function v(t,n,e,r,i){var o,a=t[0],u=t[1],c=a[0],f=a[1],s=0,l=1,h=u[0]-c,d=u[1]-f;if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o<s)return;o<l&&(l=o)}else if(h>0){if(o>l)return;o>s&&(s=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>s&&(s=o)}else if(h>0){if(o<s)return;o<l&&(l=o)}if(o=e-f,d||!(o>0)){if(o/=d,d<0){if(o<s)return;o<l&&(l=o)}else if(d>0){if(o>l)return;o>s&&(s=o)}if(o=i-f,d||!(o<0)){if(o/=d,d<0){if(o>l)return;o>s&&(s=o)}else if(d>0){if(o<s)return;o<l&&(l=o)}return!(s>0||l<1)||(s>0&&(t[0]=[c+s*h,f+s*d]),l<1&&(t[1]=[c+l*h,f+l*d]),!0)}}}}}function g(t,n,e,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],f=t.left,s=t.right,l=f[0],h=f[1],d=s[0],p=s[1],v=(l+d)/2,g=(h+p)/2;if(p===h){if(v<n||v>=r)return;if(l>d){if(c){if(c[1]>=i)return}else c=[v,e];o=[v,i]}else{if(c){if(c[1]<e)return}else c=[v,i];o=[v,e]}}else if(u=g-(a=(l-d)/(p-h))*v,a<-1||a>1)if(l>d){if(c){if(c[1]>=i)return}else c=[(e-u)/a,e];o=[(i-u)/a,i]}else{if(c){if(c[1]<e)return}else c=[(i-u)/a,i];o=[(e-u)/a,e]}else if(h<p){if(c){if(c[0]>=r)return}else c=[n,a*n+u];o=[r,a*r+u]}else{if(c){if(c[0]<n)return}else c=[r,a*r+u];o=[n,a*n+u]}return t[0]=c,t[1]=o,!0}function y(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function m(t,n){return n[+(n.left!==t.site)]}function b(t,n){return n[+(n.left===t.site)]}var x,w=[];function _(){u(this),this.x=this.y=this.arc=this.site=this.cy=null}function A(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var a=i[0],u=i[1],c=r[0]-a,f=r[1]-u,s=o[0]-a,l=o[1]-u,h=2*(c*l-f*s);if(!(h>=-L)){var d=c*c+f*f,p=s*s+l*l,v=(l*d-f*p)/h,g=(c*p-s*d)/h,y=w.pop()||new _;y.arc=t,y.site=i,y.x=v+a,y.y=(y.cy=g+u)+Math.sqrt(v*v+g*g),t.circle=y;for(var m=null,b=P._;b;)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){m=b.P;break}b=b.L}else{if(!b.R){m=b;break}b=b.R}P.insert(m,y),m||(x=y)}}}}function E(t){var n=t.circle;n&&(n.P||(x=n.N),P.remove(n),w.push(n),u(n),t.circle=null)}var M=[];function k(){u(this),this.edge=this.site=this.circle=null}function B(t){var n=M.pop()||new k;return n.site=t,n}function O(t){E(t),S.remove(t),M.push(t),u(t)}function F(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,u=[t];O(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)<D&&Math.abs(r-c.circle.cy)<D;)o=c.P,u.unshift(c),O(c),c=o;u.unshift(c),E(c);for(var f=a;f.circle&&Math.abs(e-f.circle.x)<D&&Math.abs(r-f.circle.cy)<D;)a=f.N,u.push(f),O(f),f=a;u.push(f),E(f);var s,l=u.length;for(s=1;s<l;++s)f=u[s],c=u[s-1],p(f.edge,c.site,f.site,i);c=u[0],(f=u[l-1]).edge=h(c.site,f.site,null,i),A(c),A(f)}function T(t){for(var n,e,r,i,o=t[0],a=t[1],u=S._;u;)if((r=N(u,a)-o)>D)u=u.L;else{if(!((i=o-C(u,a))>D)){r>-D?(n=u.P,e=u):i>-D?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}!function(t){j[t.index]={site:t,halfedges:[]}}(t);var c=B(t);if(S.insert(n,c),n||e){if(n===e)return E(n),e=B(n.site),S.insert(c,e),c.edge=e.edge=h(n.site,c.site),A(n),void A(e);if(e){E(n),E(e);var f=n.site,s=f[0],l=f[1],d=t[0]-s,v=t[1]-l,g=e.site,y=g[0]-s,m=g[1]-l,b=2*(d*m-v*y),x=d*d+v*v,w=y*y+m*m,_=[(m*x-v*w)/b+s,(d*w-y*x)/b+l];p(e.edge,f,g,_),c.edge=h(f,t,null,_),e.edge=h(t,g,null,_),A(n),A(e)}else c.edge=h(n.site,c.site)}}function N(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(e=a.site)[0],c=e[1],f=c-n;if(!f)return u;var s=u-r,l=1/o-1/f,h=s/f;return l?(-h+Math.sqrt(h*h-2*l*(s*s/(-2*f)-c+f/2+i-o/2)))/l+r:(r+u)/2}function C(t,n){var e=t.N;if(e)return N(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var S,j,P,R,D=1e-6,L=1e-12;function I(t,n){return n[1]-t[1]||n[0]-t[0]}function U(t,n){var e,r,i,o=t.sort(I).pop();for(R=[],j=new Array(t.length),S=new l,P=new l;;)if(i=x,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(T(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;F(i.arc)}if(function(){for(var t,n,e,r,i=0,o=j.length;i<o;++i)if((t=j[i])&&(r=(n=t.halfedges).length)){var a=new Array(r),u=new Array(r);for(e=0;e<r;++e)a[e]=e,u[e]=y(t,R[n[e]]);for(a.sort((function(t,n){return u[n]-u[t]})),e=0;e<r;++e)u[e]=n[a[e]];for(e=0;e<r;++e)n[e]=u[e]}}(),n){var a=+n[0][0],u=+n[0][1],c=+n[1][0],f=+n[1][1];!function(t,n,e,r){for(var i,o=R.length;o--;)g(i=R[o],t,n,e,r)&&v(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>D||Math.abs(i[0][1]-i[1][1])>D)||delete R[o]}(a,u,c,f),function(t,n,e,r){var i,o,a,u,c,f,s,l,h,p,v,g,y=j.length,x=!0;for(i=0;i<y;++i)if(o=j[i]){for(a=o.site,u=(c=o.halfedges).length;u--;)R[c[u]]||c.splice(u,1);for(u=0,f=c.length;u<f;)v=(p=b(o,R[c[u]]))[0],g=p[1],l=(s=m(o,R[c[++u%f]]))[0],h=s[1],(Math.abs(v-l)>D||Math.abs(g-h)>D)&&(c.splice(u,0,R.push(d(a,p,Math.abs(v-t)<D&&r-g>D?[t,Math.abs(l-t)<D?h:r]:Math.abs(g-r)<D&&e-v>D?[Math.abs(h-r)<D?l:e,r]:Math.abs(v-e)<D&&g-n>D?[e,Math.abs(l-e)<D?h:n]:Math.abs(g-n)<D&&v-t>D?[Math.abs(h-n)<D?l:t,n]:null))-1),++f);f&&(x=!1)}if(x){var w,_,A,E=1/0;for(i=0,x=null;i<y;++i)(o=j[i])&&(A=(w=(a=o.site)[0]-t)*w+(_=a[1]-n)*_)<E&&(E=A,x=o);if(x){var M=[t,n],k=[t,r],B=[e,r],O=[e,n];x.halfedges.push(R.push(d(a=x.site,M,k))-1,R.push(d(a,k,B))-1,R.push(d(a,B,O))-1,R.push(d(a,O,M))-1)}}for(i=0;i<y;++i)(o=j[i])&&(o.halfedges.length||delete j[i])}(a,u,c,f)}this.edges=R,this.cells=j,S=P=R=j=null}U.prototype={constructor:U,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return m(n,t[e])}));return e.data=n.site.data,e}))},triangles:function(){var t=[],n=this.edges;return this.cells.forEach((function(e,r){if(o=(i=e.halfedges).length)for(var i,o,a,u,c,f,s=e.site,l=-1,h=n[i[o-1]],d=h.left===s?h.right:h.left;++l<o;)a=d,d=(h=n[i[l]]).left===s?h.right:h.left,a&&d&&r<a.index&&r<d.index&&(c=a,f=d,((u=s)[0]-f[0])*(c[1]-u[1])-(u[0]-c[0])*(f[1]-u[1])<0)&&t.push([s.data,a.data,d.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,n,e){for(var r,i,o=this,a=o._found||0,u=o.cells.length;!(i=o.cells[a]);)if(++a>=u)return null;var c=t-i.site[0],f=n-i.site[1],s=c*c+f*f;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(e){var r=o.edges[e],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],f=n-u[1],l=c*c+f*f;l<s&&(s=l,a=u.index)}}))}while(null!==a);return o._found=r,null==e||s<=e*e?i.site:null}};var z=function(){var t=i,n=o,e=null;function a(r){return new U(r.map((function(e,i){var o=[Math.round(t(e,i,r)/D)*D,Math.round(n(e,i,r)/D)*D];return o.index=i,o.data=e,o})),e)}return a.polygons=function(t){return a(t).polygons()},a.links=function(t){return a(t).links()},a.triangles=function(t){return a(t).triangles()},a.x=function(n){return arguments.length?(t="function"==typeof n?n:r(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:r(+t),a):n},a.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],a):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},a.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],a):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},a}},1480:function(t,n,e){"use strict";function r(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}e.r(n),e.d(n,"blob",(function(){return i})),e.d(n,"buffer",(function(){return a})),e.d(n,"dsv",(function(){return d})),e.d(n,"csv",(function(){return p})),e.d(n,"tsv",(function(){return v})),e.d(n,"image",(function(){return g})),e.d(n,"json",(function(){return m})),e.d(n,"text",(function(){return l})),e.d(n,"xml",(function(){return x})),e.d(n,"html",(function(){return w})),e.d(n,"svg",(function(){return _}));var i=function(t,n){return fetch(t,n).then(r)};function o(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}var a=function(t,n){return fetch(t,n).then(o)},u=e(327),c=e(205),f=e(206);function s(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}var l=function(t,n){return fetch(t,n).then(s)};function h(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),l(n,e).then((function(n){return t(n,r)}))}}function d(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=Object(u.a)(t);return l(n,e).then((function(t){return i.parse(t,r)}))}var p=h(c.f),v=h(f.f),g=function(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))};function y(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.json()}var m=function(t,n){return fetch(t,n).then(y)};function b(t){return function(n,e){return l(n,e).then((function(n){return(new DOMParser).parseFromString(n,t)}))}}var x=b("application/xml"),w=b("text/html"),_=b("image/svg+xml")},1482:function(t,n,e){"use strict";e.r(n),e.d(n,"randomUniform",(function(){return i})),e.d(n,"randomNormal",(function(){return o})),e.d(n,"randomLogNormal",(function(){return a})),e.d(n,"randomBates",(function(){return c})),e.d(n,"randomIrwinHall",(function(){return u})),e.d(n,"randomExponential",(function(){return f}));var r=function(){return Math.random()},i=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(r),o=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(r),a=function t(n){function e(){var t=o.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(r),u=function t(n){function e(t){return function(){for(var e=0,r=0;r<t;++r)e+=n();return e}}return e.source=t,e}(r),c=function t(n){function e(t){var e=u.source(n)(t);return function(){return e()/t}}return e.source=t,e}(r),f=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(r)},1484:function(t,n,e){"use strict";e.r(n);var r=e(1),i=e.n(r),o=e(2),a=e.n(o),u=e(4),c=e.n(u),f=e(3),s=e.n(f),l=e(5),h=e.n(l),d=e(87),p=e.n(d),v=e(88),g=e.n(v),y=e(9),m=p.a?p.a:d,b=g.a?g.a:v,x=function(t){function n(){var t;return i()(this,n),(t=c()(this,s()(n).call(this))).name="Entropy",t.module="Charts",t.description="Shannon Entropy, in the context of information theory, is a measure of the rate at which information is produced by a source of data. It can be used, in a broad sense, to detect whether data is likely to be structured or unstructured. 8 is the maximum, representing highly unstructured, 'random' data. English language text usually falls somewhere between 3.5 and 5. Properly encrypted or compressed data should have an entropy of over 7.5.",t.infoURL="https://wikipedia.org/wiki/Entropy_(information_theory)",t.inputType="ArrayBuffer",t.outputType="json",t.presentType="html",t.args=[{name:"Visualisation",type:"option",value:["Shannon scale","Histogram (Bar)","Histogram (Line)","Curve","Image"]}],t}return h()(n,t),a()(n,[{key:"calculateShannonEntropy",value:function(t){var n,e=[],r=new Array(256).fill(0);for(n=0;n<t.length;n++)r[t[n]]++;for(n=0;n<r.length;n++)r[n]>0&&e.push(r[n]/t.length);var i,o=0;for(n=0;n<e.length;n++)o+=(i=e[n])*Math.log(i)/Math.log(2);return-o}},{key:"calculateScanningEntropy",value:function(t){for(var n=[],e=t.length<256?8:256,r=0;r<t.length;r+=e){var i=t.slice(r,r+e);n.push(this.calculateShannonEntropy(i))}return{entropyData:n,binWidth:e}}},{key:"createAxes",value:function(t,n,e,r,i,o,a,u,c){var f=m.axisLeft().scale(e),s=m.axisBottom().scale(n);t.append("g").attr("transform",`translate(0, ${r-o.bottom})`).call(s),t.append("g").attr("transform",`translate(${o.left},0)`).call(f),t.append("text").attr("transform","rotate(-90)").attr("y",0-o.left).attr("x",0-r/2).attr("dy","1em").style("text-anchor","middle").text(c),t.append("text").attr("transform",`translate(${i/2}, ${r-o.bottom+40})`).style("text-anchor","middle").text(u),t.append("text").attr("transform",`translate(${i/2}, ${o.top-10})`).style("text-anchor","middle").text(a)}},{key:"calculateByteFrequency",value:function(t){var n,e=new Array(256).fill(0);if(0===t.length)return e;for(n=0;n<t.length;n++)e[t[n]]++;for(n=0;n<e.length;n++)e[n]=e[n]/t.length;return e}},{key:"createByteFrequencyLineHistogram",value:function(t){var n={top:30,right:20,bottom:50,left:30},e=(new b.Document).createElement("svg");e=m.select(e).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500");var r=m.scaleLinear().domain([0,m.max(t,(function(t){return t}))]).range([500-n.bottom,n.top]),i=m.scaleLinear().domain([0,t.length-1]).range([n.left,500-n.right]),o=m.line().x((function(t,n){return i(n)})).y((function(t){return r(t)})).curve(m.curveMonotoneX);return e.append("path").datum(t).attr("fill","none").attr("stroke","steelblue").attr("d",o),this.createAxes(e,i,r,500,500,n,"","Byte","Byte Frequency"),e._groups[0][0].outerHTML}},{key:"createByteFrequencyBarHistogram",value:function(t){var n={top:30,right:20,bottom:50,left:30},e=(new b.Document).createElement("svg");e=m.select(e).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500");var r=m.extent(t,(function(t){return t})),i=m.scaleLinear().domain(r).range([500-n.bottom,n.top]),o=m.scaleLinear().domain([0,t.length-1]).range([n.left-1,500-n.right]);return e.selectAll("rect").data(t).enter().append("rect").attr("x",(function(t,n){return o(n)+1})).attr("y",(function(t){return i(t)})).attr("width",1).attr("height",(function(t){return i(r[0])-i(t)})).attr("fill","blue"),this.createAxes(e,o,i,500,500,n,"","Byte","Byte Frequency"),e._groups[0][0].outerHTML}},{key:"createEntropyCurve",value:function(t){var n={top:30,right:20,bottom:50,left:30},e=(new b.Document).createElement("svg");e=m.select(e).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500");var r=m.scaleLinear().domain([0,m.max(t,(function(t){return t}))]).range([500-n.bottom,n.top]),i=m.scaleLinear().domain([0,t.length]).range([n.left,500-n.right]),o=m.line().x((function(t,n){return i(n)})).y((function(t){return r(t)})).curve(m.curveMonotoneX);return t.length>0&&(e.append("path").datum(t).attr("d",o),e.selectAll("path").attr("fill","none").attr("stroke","steelblue")),this.createAxes(e,i,r,500,500,n,"Scanning Entropy","Block","Entropy"),e._groups[0][0].outerHTML}},{key:"createEntropyImage",value:function(t){for(var n=[],e=0;e<t.length;e++)n.push({x:e%100,y:Math.floor(e/100),entropy:t[e]});var r=(new b.Document).createElement("svg");r=m.select(r).attr("width","100%").attr("height","100%").attr("viewBox","0 0 100 100");var i=m.scaleLinear().domain([0,m.max(t,(function(t){return t}))]).range(["#000000","#FFFFFF"]).interpolate(m.interpolateRgb);return r.selectAll("rect").data(n).enter().append("rect").attr("x",(function(t){return 1*t.x})).attr("y",(function(t){return 1*t.y})).attr("width",1).attr("height",1).style("fill",(function(t){return i(t.entropy)})),r._groups[0][0].outerHTML}},{key:"createShannonEntropyVisualization",value:function(t){return`Shannon entropy: ${t}\n        <br><canvas id='chart-area'></canvas><br>\n        - 0 represents no randomness (i.e. all the bytes in the data have the same value) whereas 8, the maximum, represents a completely random string.\n        - Standard English text usually falls somewhere between 3.5 and 5.\n        - Properly encrypted or compressed data of a reasonable length should have an entropy of over 7.5.\n\n        The following results show the entropy of chunks of the input data. Chunks with particularly high entropy could suggest encrypted or compressed sections.\n\n        <br><script>\n            var canvas = document.getElementById("chart-area"),\n                parentRect = canvas.parentNode.getBoundingClientRect(),\n                entropy = ${t},\n                height = parentRect.height * 0.25;\n\n            canvas.width = parentRect.width * 0.95;\n            canvas.height = height > 150 ? 150 : height;\n\n            CanvasComponents.drawScaleBar(canvas, entropy, 8, [\n                {\n                    label: "English text",\n                    min: 3.5,\n                    max: 5\n                },{\n                    label: "Encrypted/compressed",\n                    min: 7.5,\n                    max: 8\n                }\n            ]);\n        <\/script>`}},{key:"run",value:function(t,n){var e=n[0];switch(t=new Uint8Array(t),e){case"Histogram (Bar)":case"Histogram (Line)":return this.calculateByteFrequency(t);case"Curve":case"Image":return this.calculateScanningEntropy(t).entropyData;case"Shannon scale":default:return this.calculateShannonEntropy(t)}}},{key:"present",value:function(t,n){switch(n[0]){case"Histogram (Bar)":return this.createByteFrequencyBarHistogram(t);case"Histogram (Line)":return this.createByteFrequencyLineHistogram(t);case"Curve":return this.createEntropyCurve(t);case"Image":return this.createEntropyImage(t);case"Shannon scale":default:return this.createShannonEntropyVisualization(t)}}}]),n}(y.a),w=e(7),_=["Line feed","CRLF"],A=["Space","Comma","Semi-colon","Colon","Tab"],E="white",M="black";function k(t,n,e,r,i){var o,a=[];return t.split(n).forEach((function(t,n){var u=t.split(e);if(u.length!==i)throw new w.a(`Each row must have length ${i}.`);r&&0===n?o=u:a.push(u)})),{headings:o,values:a}}function B(t,n,e,r){var i=k(t,n,e,r,2),o=i.headings,a=i.values;return o&&(o={x:o[0],y:o[1]}),{headings:o,values:a=a.map((function(t){var n=parseFloat(t[0],10),e=parseFloat(t[1],10);if(Number.isNaN(n))throw new w.a("Values must be numbers in base 10.");if(Number.isNaN(e))throw new w.a("Values must be numbers in base 10.");return[n,e]}))}}function O(t,n,e,r){var i=k(t,n,e,r,3),o=i.headings,a=i.values;return o&&(o={x:o[0],y:o[1]}),{headings:o,values:a=a.map((function(t){var n=parseFloat(t[0],10),e=parseFloat(t[1],10),r=t[2];if(Number.isNaN(n))throw new w.a("Values must be numbers in base 10.");if(Number.isNaN(e))throw new w.a("Values must be numbers in base 10.");return[n,e,r]}))}}var F=e(0),T=p.a?p.a:d,N=g.a?g.a:v,C=function(t){function n(){var t;return i()(this,n),(t=c()(this,s()(n).call(this))).name="Heatmap chart",t.module="Charts",t.description="A heatmap is a graphical representation of data where the individual values contained in a matrix are represented as colors.",t.infoURL="https://wikipedia.org/wiki/Heat_map",t.inputType="string",t.outputType="html",t.args=[{name:"Record delimiter",type:"option",value:_},{name:"Field delimiter",type:"option",value:A},{name:"Number of vertical bins",type:"number",value:25},{name:"Number of horizontal bins",type:"number",value:25},{name:"Use column headers as labels",type:"boolean",value:!0},{name:"X label",type:"string",value:""},{name:"Y label",type:"string",value:""},{name:"Draw bin edges",type:"boolean",value:!1},{name:"Min colour value",type:"string",value:E},{name:"Max colour value",type:"string",value:M}],t}return h()(n,t),a()(n,[{key:"run",value:function(t,n){var e=F.b.charRep(n[0]),r=F.b.charRep(n[1]),i=n[2],o=n[3],a=n[4],u=n[7],c=n[8],f=n[9];if(i<=0)throw new w.a("Number of vertical bins must be greater than 0");if(o<=0)throw new w.a("Number of horizontal bins must be greater than 0");var s=n[5],l=n[6],h=B(t,e,r,a),d=h.headings,p=h.values;d&&(s=d.x,l=d.y);var v=(new N.Document).createElement("svg");v=T.select(v).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500");var g=10,y=30,m=500-y-0,b=500-g-40,x=m/o,_=b/i,A=v.append("g").attr("transform","translate("+y+","+g+")"),E=this.getHeatmapPacking(p,i,o),M=Math.max(...E.map((function(t){var n=t.map((function(t){return t.length}));return Math.max(...n)}))),k=T.extent(p,(function(t){return t[0]})),O=T.extent(p,(function(t){return t[1]})),C=T.scaleLinear().domain(k).range([0,m]),S=T.scaleLinear().domain(O).range([b,0]),j=T.scaleSequential(T.interpolateLab(c,f)).domain([0,M]);return A.append("clipPath").attr("id","clip").append("rect").attr("width",m).attr("height",b),A.append("g").attr("class","bins").attr("clip-path","url(#clip)").selectAll("g").data(E).enter().append("g").selectAll("rect").data((function(t){return t})).enter().append("rect").attr("x",(function(t){return x*t.x})).attr("y",(function(t){return b-_*(t.y+1)})).attr("width",x).attr("height",_).attr("fill",(function(t){return j(t.length)})).attr("stroke",u?"rgba(0, 0, 0, 0.5)":"none").attr("stroke-width",u?"0.5":"none").append("title").text((function(t){return`Count: ${t.length}\n\n                               Percentage: ${(100*t.length/p.length).toFixed(2)}%\n\n                    `.replace(/\s{2,}/g,"\n")})),A.append("g").attr("class","axis axis--y").call(T.axisLeft(S).tickSizeOuter(-m)),v.append("text").attr("transform","rotate(-90)").attr("y",-y).attr("x",-b/2).attr("dy","1em").style("text-anchor","middle").text(l),A.append("g").attr("class","axis axis--x").attr("transform","translate(0,"+b+")").call(T.axisBottom(C).tickSizeOuter(-b)),v.append("text").attr("x",m/2).attr("y",500).style("text-anchor","middle").text(s),v._groups[0][0].outerHTML}},{key:"getHeatmapPacking",value:function(t,n,e){var r=T.extent(t,(function(t){return t[0]})),i=T.extent(t,(function(t){return t[1]})),o=[];if(r[0]===r[1])throw"Cannot pack points. There is no difference between the minimum and maximum X coordinate.";if(i[0]===i[1])throw"Cannot pack points. There is no difference between the minimum and maximum Y coordinate.";for(var a=0;a<n;a++){o.push([]);for(var u=0;u<e;u++){var c=[];c.y=a,c.x=u,o[a].push(c)}}return t.forEach((function(t){var a=(t[1]-i[0])/(i[1]+1e-9-i[0]),u=(t[0]-r[0])/(r[1]+1e-9-r[0]),c=Math.floor(n*a),f=Math.floor(e*u);o[c][f].push({x:t[0],y:t[1]})})),o}}]),n}(y.a),S=e(431),j=e.n(S),P=p.a?p.a:d,R=j.a?j.a:S,D=g.a?g.a:v,L=function(t){function n(){var t;return i()(this,n),(t=c()(this,s()(n).call(this))).name="Hex Density chart",t.module="Charts",t.description="Hex density charts are used in a similar way to scatter charts, however rather than rendering tens of thousands of points, it groups the points into a few hundred hexagons to show the distribution.",t.inputType="string",t.outputType="html",t.args=[{name:"Record delimiter",type:"option",value:_},{name:"Field delimiter",type:"option",value:A},{name:"Pack radius",type:"number",value:25},{name:"Draw radius",type:"number",value:15},{name:"Use column headers as labels",type:"boolean",value:!0},{name:"X label",type:"string",value:""},{name:"Y label",type:"string",value:""},{name:"Draw hexagon edges",type:"boolean",value:!1},{name:"Min colour value",type:"string",value:E},{name:"Max colour value",type:"string",value:M},{name:"Draw empty hexagons within data boundaries",type:"boolean",value:!1}],t}return h()(n,t),a()(n,[{key:"run",value:function(t,n){var e=F.b.charRep(n[0]),r=F.b.charRep(n[1]),i=n[2],o=n[3],a=n[4],u=n[7],c=n[8],f=n[9],s=n[10],l=n[5],h=n[6],d=B(t,e,r,a),p=d.headings,v=d.values;p&&(l=p.x,h=p.y);var g=(new D.Document).createElement("svg"),y=10,m=30,b=500-m-0,x=500-y-40,w=(g=P.select(g).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500")).append("g").attr("transform","translate("+m+","+y+")"),_=R.hexbin().radius(i).extent([0,0],[b,x]),A=_(v),E=Math.max(...A.map((function(t){return t.length}))),M=P.extent(A,(function(t){return t.x})),k=P.extent(A,(function(t){return t.y}));M[0]-=2*i,M[1]+=3*i,k[0]-=2*i,k[1]+=2*i;var O=P.scaleLinear().domain(M).range([0,b]),T=P.scaleLinear().domain(k).range([x,0]),N=P.scaleSequential(P.interpolateLab(c,f)).domain([0,E]);return w.append("clipPath").attr("id","clip").append("rect").attr("width",b).attr("height",x),s&&w.append("g").attr("class","empty-hexagon").selectAll("path").data(this.getEmptyHexagons(A,i)).enter().append("path").attr("d",(function(t){return`M${O(t.x)},${T(t.y)} ${_.hexagon(o)}`})).attr("fill",(function(t){return N(0)})).attr("stroke",u?"black":"none").attr("stroke-width",u?"0.5":"none").append("title").text((function(t){return`Count: 0\n\n                                Percentage: ${(0).toFixed(2)}%\n\n                                Center: ${t.x.toFixed(2)}, ${t.y.toFixed(2)}\n\n                        `.replace(/\s{2,}/g,"\n")})),w.append("g").attr("class","hexagon").attr("clip-path","url(#clip)").selectAll("path").data(A).enter().append("path").attr("d",(function(t){return`M${O(t.x)},${T(t.y)} ${_.hexagon(o)}`})).attr("fill",(function(t){return N(t.length)})).attr("stroke",u?"black":"none").attr("stroke-width",u?"0.5":"none").append("title").text((function(t){var n=t.length,e=100*t.length/v.length,r=t.x,i=t.y,o=Math.min(...t.map((function(t){return t[0]}))),a=Math.max(...t.map((function(t){return t[0]}))),u=Math.min(...t.map((function(t){return t[1]}))),c=Math.max(...t.map((function(t){return t[1]})));return`Count: ${n}\n\n                               Percentage: ${e.toFixed(2)}%\n\n                               Center: ${r.toFixed(2)}, ${i.toFixed(2)}\n\n                               Min X: ${o.toFixed(2)}\n\n                               Max X: ${a.toFixed(2)}\n\n                               Min Y: ${u.toFixed(2)}\n\n                               Max Y: ${c.toFixed(2)}\n                    `.replace(/\s{2,}/g,"\n")})),w.append("g").attr("class","axis axis--y").call(P.axisLeft(T).tickSizeOuter(-b)),g.append("text").attr("transform","rotate(-90)").attr("y",-m).attr("x",-x/2).attr("dy","1em").style("text-anchor","middle").text(h),w.append("g").attr("class","axis axis--x").attr("transform","translate(0,"+x+")").call(P.axisBottom(O).tickSizeOuter(-x)),g.append("text").attr("x",b/2).attr("y",500).style("text-anchor","middle").text(l),g._groups[0][0].outerHTML}},{key:"getEmptyHexagons",value:function(t,n){for(var e=[],r=[P.extent(t,(function(t){return t.x})),P.extent(t,(function(t){return t.y}))],i=Math.cos(2*Math.PI/12)*n,o=Math.sin(2*Math.PI/12)*n,a=!1,u=r[1][0];u<=r[1][1]+n;u+=o+n){for(var c=r[0][0];c<=r[0][1]+n;c+=2*i){var f=c,s=u;if(a&&c>=r[0][1])break;a&&(f+=i),e.push({x:f,y:s})}a=!a}return e}}]),n}(y.a),I=p.a?p.a:d,U=g.a?g.a:v,z=function(t){function n(){var t;return i()(this,n),(t=c()(this,s()(n).call(this))).name="Scatter chart",t.module="Charts",t.description="Plots two-variable data as single points on a graph.",t.infoURL="https://wikipedia.org/wiki/Scatter_plot",t.inputType="string",t.outputType="html",t.args=[{name:"Record delimiter",type:"option",value:_},{name:"Field delimiter",type:"option",value:A},{name:"Use column headers as labels",type:"boolean",value:!0},{name:"X label",type:"string",value:""},{name:"Y label",type:"string",value:""},{name:"Colour",type:"string",value:M},{name:"Point radius",type:"number",value:10},{name:"Use colour from third column",type:"boolean",value:!1}],t}return h()(n,t),a()(n,[{key:"run",value:function(t,n){var e=F.b.charRep(n[0]),r=F.b.charRep(n[1]),i=n[2],o=n[5],a=n[6],u=n[7],c=n[3],f=n[4],s=(u?O:B)(t,e,r,i),l=s.headings,h=s.values;l&&(c=l.x,f=l.y);var d=(new U.Document).createElement("svg"),p=10,v=30,g=500-v-0,y=500-p-40,m=(d=I.select(d).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500")).append("g").attr("transform","translate("+v+","+p+")"),b=I.extent(h,(function(t){return t[0]})),x=b[1]-b[0],w=I.extent(h,(function(t){return t[1]})),_=w[1]-w[0],A=I.scaleLinear().domain([b[0]-.1*x,b[1]+.1*x]).range([0,g]),E=I.scaleLinear().domain([w[0]-.1*_,w[1]+.1*_]).range([y,0]);return m.append("clipPath").attr("id","clip").append("rect").attr("width",g).attr("height",y),m.append("g").attr("class","points").attr("clip-path","url(#clip)").selectAll("circle").data(h).enter().append("circle").attr("cx",(function(t){return A(t[0])})).attr("cy",(function(t){return E(t[1])})).attr("r",(function(t){return a})).attr("fill",(function(t){return u?t[2]:o})).attr("stroke","rgba(0, 0, 0, 0.5)").attr("stroke-width","0.5").append("title").text((function(t){return`X: ${t[0]}\n\n                               Y: ${t[1]}\n\n                    `.replace(/\s{2,}/g,"\n")})),m.append("g").attr("class","axis axis--y").call(I.axisLeft(E).tickSizeOuter(-g)),d.append("text").attr("transform","rotate(-90)").attr("y",-v).attr("x",-y/2).attr("dy","1em").style("text-anchor","middle").text(f),m.append("g").attr("class","axis axis--x").attr("transform","translate(0,"+y+")").call(I.axisBottom(A).tickSizeOuter(-y)),d.append("text").attr("x",g/2).attr("y",500).style("text-anchor","middle").text(c),d._groups[0][0].outerHTML}}]),n}(y.a),Y=p.a?p.a:d,q=g.a?g.a:v,H=function(t){function n(){var t;return i()(this,n),(t=c()(this,s()(n).call(this))).name="Series chart",t.module="Charts",t.description="A time series graph is a line graph of repeated measurements taken over regular time intervals.",t.inputType="string",t.outputType="html",t.args=[{name:"Record delimiter",type:"option",value:_},{name:"Field delimiter",type:"option",value:A},{name:"X label",type:"string",value:""},{name:"Point radius",type:"number",value:1},{name:"Series colours",type:"string",value:"mediumseagreen, dodgerblue, tomato"}],t}return h()(n,t),a()(n,[{key:"run",value:function(t,n){var e=F.b.charRep(n[0]),r=F.b.charRep(n[1]),i=n[2],o=n[3],a=n[4].split(","),u=function(t,n,e,r){var i=k(t,n,e,!1,3).values,o=new Set,a={};i.forEach((function(t){var n=t[0],e=t[1],r=parseFloat(t[2],10);if(Number.isNaN(r))throw new w.a("Values must be numbers in base 10.");o.add(e),void 0===a[n]&&(a[n]={}),a[n][e]=r})),o=new Array(...o);var u=[];for(var c in a){var f=a[c];u.push({name:c,data:f})}return{xValues:o,series:u}}(t,e,r),c=u.xValues,f=u.series,s=120*Object.keys(f).length,l=s+50+20,h=(new q.Document).createElement("svg");h=Y.select(h).attr("width","100%").attr("height","100%").attr("viewBox",`0 0 500 ${l}`);var d=Y.scalePoint().domain(c).range([0,430]);h.append("g").attr("class","axis axis--x").attr("transform","translate(50, 50)").call(Y.axisTop(d).tickValues(c.filter((function(t,n){return[0,Math.round(c.length/2),c.length-1].indexOf(n)>=0})))),h.append("text").attr("x",250).attr("y",25).style("text-anchor","middle").text(i);var p={},v=430/c.length;c.forEach((function(t){var n=[];f.forEach((function(e){var r=e.data[t];void 0!==r&&n.push(`${e.name}: ${r}`)})),p[t]=n.join("\n")}));var g=h.append("g").attr("transform","translate(50, 50)");g.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",(function(t){return d(t)-v/2})).attr("y",0).attr("width",v).attr("height",s).attr("stroke","none").attr("fill","transparent").append("title").text((function(t){return`${t}\n\n                    --\n\n                    ${p[t]}\n\n                `.replace(/\s{2,}/g,"\n")}));var y=h.append("g").attr("transform","translate(0, 50)");return f.forEach((function(t,n){var e=Y.extent(Object.values(t.data)),r=Y.scaleLinear().domain(e).range([100,0]),i=g.append("g").attr("transform",`translate(0, ${100*n+20*(n+1)})`),u="";c.forEach((function(n,e){var i=c[e+1],o=t.data[n],a=t.data[i];void 0!==o&&void 0!==a&&(n=d(n),i=d(i),o=r(o),a=r(a),u+=`M ${n} ${o} L ${i} ${a} z `)})),i.append("path").attr("d",u).attr("fill","none").attr("stroke",a[n%a.length]).attr("stroke-width","1"),c.forEach((function(e){var u=t.data[e];void 0!==u&&i.append("circle").attr("cx",d(e)).attr("cy",r(u)).attr("r",o).attr("fill",a[n%a.length]).append("title").text((function(t){return`${e}\n\n                            --\n\n                            ${p[e]}\n\n                        `.replace(/\s{2,}/g,"\n")}))})),y.append("g").attr("transform",`translate(30, ${100*n+20*(n+1)})`).attr("class","axis axis--y").call(Y.axisLeft(r).ticks(5)),y.append("g").attr("transform",`translate(0, ${50+100*n+20*(n+1)})`).append("text").style("text-anchor","middle").attr("transform","rotate(-90)").text(t.name)})),h._groups[0][0].outerHTML}}]),n}(y.a),$="undefined"==typeof self?{}:self.OpModules||{};
/**
 * @author tlwr [toby@toby.codes]
 * @author Matt C [me@mitt.dev]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */$.Charts={Entropy:x,"Heatmap chart":C,"Hex Density chart":L,"Scatter chart":z,"Series chart":H};n.default=$},1485:function(t,n,e){"use strict";e.r(n),e.d(n,"polygonArea",(function(){return r})),e.d(n,"polygonCentroid",(function(){return i})),e.d(n,"polygonHull",(function(){return u})),e.d(n,"polygonContains",(function(){return c})),e.d(n,"polygonLength",(function(){return f}));var r=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2},i=function(t){for(var n,e,r=-1,i=t.length,o=0,a=0,u=t[i-1],c=0;++r<i;)n=u,u=t[r],c+=e=n[0]*u[1]-u[0]*n[1],o+=(n[0]+u[0])*e,a+=(n[1]+u[1])*e;return[o/(c*=3),a/c]};function o(t,n){return t[0]-n[0]||t[1]-n[1]}function a(t){for(var n,e,r,i=t.length,o=[0,1],a=2,u=2;u<i;++u){for(;a>1&&(n=t[o[a-2]],e=t[o[a-1]],r=t[u],(e[0]-n[0])*(r[1]-n[1])-(e[1]-n[1])*(r[0]-n[0])<=0);)--a;o[a++]=u}return o.slice(0,a)}var u=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(o),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var u=a(r),c=a(i),f=c[0]===u[0],s=c[c.length-1]===u[u.length-1],l=[];for(n=u.length-1;n>=0;--n)l.push(t[r[u[n]][2]]);for(n=+f;n<c.length-s;++n)l.push(t[r[c[n]][2]]);return l},c=function(t,n){for(var e,r,i=t.length,o=t[i-1],a=n[0],u=n[1],c=o[0],f=o[1],s=!1,l=0;l<i;++l)e=(o=t[l])[0],(r=o[1])>u!=f>u&&a<(c-e)*(u-r)/(f-r)+e&&(s=!s),c=e,f=r;return s},f=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r<i;)n=a,e=u,n-=a=(o=t[r])[0],e-=u=o[1],c+=Math.sqrt(n*n+e*e);return c}},1486:function(t,n,e){"use strict";e.r(n),e.d(n,"zoom",(function(){return E})),e.d(n,"zoomTransform",(function(){return v})),e.d(n,"zoomIdentity",(function(){return p}));var r=e(675),i=e(326),o=e(684),a=e(188),u=e(678),c=e(332),f=e(677),s=e(221),l=function(t){return function(){return t}};function h(t,n,e){this.target=t,this.type=n,this.transform=e}function d(t,n,e){this.k=t,this.x=n,this.y=e}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new d(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function v(t){for(;!t.__zoom;)if(!(t=t.parentNode))return p;return t.__zoom}function g(){a.c.stopImmediatePropagation()}v.prototype=d.prototype;var y=function(){a.c.preventDefault(),a.c.stopImmediatePropagation()};function m(){return!a.c.ctrlKey&&!a.c.button}function b(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function x(){return this.__zoom||p}function w(){return-a.c.deltaY*(1===a.c.deltaMode?.05:a.c.deltaMode?1:.002)}function _(){return navigator.maxTouchPoints||"ontouchstart"in this}function A(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var E=function(){var t,n,e=m,v=b,E=A,M=w,k=_,B=[0,1/0],O=[[-1/0,-1/0],[1/0,1/0]],F=250,T=o.a,N=Object(r.a)("start","zoom","end"),C=0;function S(t){t.property("__zoom",x).on("wheel.zoom",U).on("mousedown.zoom",z).on("dblclick.zoom",Y).filter(k).on("touchstart.zoom",q).on("touchmove.zoom",H).on("touchend.zoom touchcancel.zoom",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function j(t,n){return(n=Math.max(B[0],Math.min(B[1],n)))===t.k?t:new d(n,t.x,t.y)}function P(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function R(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function D(t,n,e){t.on("start.zoom",(function(){L(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){L(this,arguments).end()})).tween("zoom",(function(){var t=this,r=arguments,i=L(t,r),o=v.apply(t,r),a=null==e?R(o):"function"==typeof e?e.apply(t,r):e,u=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=t.__zoom,f="function"==typeof n?n.apply(t,r):n,s=T(c.invert(a).concat(u/c.k),f.invert(a).concat(u/f.k));return function(t){if(1===t)t=f;else{var n=s(t),e=u/n[2];t=new d(e,a[0]-n[0]*e,a[1]-n[1]*e)}i.zoom(null,t)}}))}function L(t,n,e){return!e&&t.__zooming||new I(t,n)}function I(t,n){this.that=t,this.args=n,this.active=0,this.extent=v.apply(t,n),this.taps=0}function U(){if(e.apply(this,arguments)){var t=L(this,arguments),n=this.__zoom,r=Math.max(B[0],Math.min(B[1],n.k*Math.pow(2,M.apply(this,arguments)))),i=Object(u.a)(this);if(t.wheel)t.mouse[0][0]===i[0]&&t.mouse[0][1]===i[1]||(t.mouse[1]=n.invert(t.mouse[0]=i)),clearTimeout(t.wheel);else{if(n.k===r)return;t.mouse=[i,n.invert(i)],Object(s.interrupt)(this),t.start()}y(),t.wheel=setTimeout(o,150),t.zoom("mouse",E(P(j(n,r),t.mouse[0],t.mouse[1]),t.extent,O))}function o(){t.wheel=null,t.end()}}function z(){if(!n&&e.apply(this,arguments)){var t=L(this,arguments,!0),r=Object(c.a)(a.c.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",d,!0),o=Object(u.a)(this),f=a.c.clientX,l=a.c.clientY;Object(i.a)(a.c.view),g(),t.mouse=[o,this.__zoom.invert(o)],Object(s.interrupt)(this),t.start()}function h(){if(y(),!t.moved){var n=a.c.clientX-f,e=a.c.clientY-l;t.moved=n*n+e*e>C}t.zoom("mouse",E(P(t.that.__zoom,t.mouse[0]=Object(u.a)(t.that),t.mouse[1]),t.extent,O))}function d(){r.on("mousemove.zoom mouseup.zoom",null),Object(i.b)(a.c.view,t.moved),y(),t.end()}}function Y(){if(e.apply(this,arguments)){var t=this.__zoom,n=Object(u.a)(this),r=t.invert(n),i=t.k*(a.c.shiftKey?.5:2),o=E(P(j(t,i),n,r),v.apply(this,arguments),O);y(),F>0?Object(c.a)(this).transition().duration(F).call(D,o,n):Object(c.a)(this).call(S.transform,o)}}function q(){if(e.apply(this,arguments)){var n,r,i,o,u=a.c.touches,c=u.length,l=L(this,arguments,a.c.changedTouches.length===c);for(g(),r=0;r<c;++r)i=u[r],o=[o=Object(f.a)(this,u,i.identifier),this.__zoom.invert(o),i.identifier],l.touch0?l.touch1||l.touch0[2]===o[2]||(l.touch1=o,l.taps=0):(l.touch0=o,n=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),n&&(l.taps<2&&(t=setTimeout((function(){t=null}),500)),Object(s.interrupt)(this),l.start())}}function H(){if(this.__zooming){var n,e,r,i,o=L(this,arguments),u=a.c.changedTouches,c=u.length;for(y(),t&&(t=clearTimeout(t)),o.taps=0,n=0;n<c;++n)e=u[n],r=Object(f.a)(this,u,e.identifier),o.touch0&&o.touch0[2]===e.identifier?o.touch0[0]=r:o.touch1&&o.touch1[2]===e.identifier&&(o.touch1[0]=r);if(e=o.that.__zoom,o.touch1){var s=o.touch0[0],l=o.touch0[1],h=o.touch1[0],d=o.touch1[1],p=(p=h[0]-s[0])*p+(p=h[1]-s[1])*p,v=(v=d[0]-l[0])*v+(v=d[1]-l[1])*v;e=j(e,Math.sqrt(p/v)),r=[(s[0]+h[0])/2,(s[1]+h[1])/2],i=[(l[0]+d[0])/2,(l[1]+d[1])/2]}else{if(!o.touch0)return;r=o.touch0[0],i=o.touch0[1]}o.zoom("touch",E(P(e,r,i),o.extent,O))}}function $(){if(this.__zooming){var t,e,r=L(this,arguments),i=a.c.changedTouches,o=i.length;for(g(),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),t=0;t<o;++t)e=i[t],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var u=Object(c.a)(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return S.transform=function(t,n,e){var r=t.selection?t.selection():t;r.property("__zoom",x),t!==r?D(t,n,e):r.interrupt().each((function(){L(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},S.scaleBy=function(t,n,e){S.scaleTo(t,(function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e}),e)},S.scaleTo=function(t,n,e){S.transform(t,(function(){var t=v.apply(this,arguments),r=this.__zoom,i=null==e?R(t):"function"==typeof e?e.apply(this,arguments):e,o=r.invert(i),a="function"==typeof n?n.apply(this,arguments):n;return E(P(j(r,a),i,o),t,O)}),e)},S.translateBy=function(t,n,e){S.transform(t,(function(){return E(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),v.apply(this,arguments),O)}))},S.translateTo=function(t,n,e,r){S.transform(t,(function(){var t=v.apply(this,arguments),i=this.__zoom,o=null==r?R(t):"function"==typeof r?r.apply(this,arguments):r;return E(p.translate(o[0],o[1]).scale(i.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,O)}),r)},I.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){Object(a.a)(new h(S,t,this.that.__zoom),N.apply,N,[t,this.that,this.args])}},S.wheelDelta=function(t){return arguments.length?(M="function"==typeof t?t:l(+t),S):M},S.filter=function(t){return arguments.length?(e="function"==typeof t?t:l(!!t),S):e},S.touchable=function(t){return arguments.length?(k="function"==typeof t?t:l(!!t),S):k},S.extent=function(t){return arguments.length?(v="function"==typeof t?t:l([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),S):v},S.scaleExtent=function(t){return arguments.length?(B[0]=+t[0],B[1]=+t[1],S):[B[0],B[1]]},S.translateExtent=function(t){return arguments.length?(O[0][0]=+t[0][0],O[1][0]=+t[1][0],O[0][1]=+t[0][1],O[1][1]=+t[1][1],S):[[O[0][0],O[0][1]],[O[1][0],O[1][1]]]},S.constrain=function(t){return arguments.length?(E=t,S):E},S.duration=function(t){return arguments.length?(F=+t,S):F},S.interpolate=function(t){return arguments.length?(T=t,S):T},S.on=function(){var t=N.on.apply(N,arguments);return t===N?S:t},S.clickDistance=function(t){return arguments.length?(C=(t=+t)*t,S):Math.sqrt(C)},S}},1487:function(t,n,e){"use strict";e.r(n),e.d(n,"chord",(function(){return l})),e.d(n,"ribbon",(function(){return x}));var r=e(34),i=Math.cos,o=Math.sin,a=Math.PI,u=a/2,c=2*a,f=Math.max;function s(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}var l=function(){var t=0,n=null,e=null,i=null;function o(o){var a,u,s,l,h,d,p=o.length,v=[],g=Object(r.range)(p),y=[],m=[],b=m.groups=new Array(p),x=new Array(p*p);for(a=0,h=-1;++h<p;){for(u=0,d=-1;++d<p;)u+=o[h][d];v.push(u),y.push(Object(r.range)(p)),a+=u}for(n&&g.sort((function(t,e){return n(v[t],v[e])})),e&&y.forEach((function(t,n){t.sort((function(t,r){return e(o[n][t],o[n][r])}))})),l=(a=f(0,c-t*p)/a)?t:c/p,u=0,h=-1;++h<p;){for(s=u,d=-1;++d<p;){var w=g[h],_=y[w][d],A=o[w][_],E=u,M=u+=A*a;x[_*p+w]={index:w,subindex:_,startAngle:E,endAngle:M,value:A}}b[w]={index:w,startAngle:s,endAngle:u,value:v[w]},u+=l}for(h=-1;++h<p;)for(d=h-1;++d<p;){var k=x[d*p+h],B=x[h*p+d];(k.value||B.value)&&m.push(k.value<B.value?{source:B,target:k}:{source:k,target:B})}return i?m.sort(i):m}return o.padAngle=function(n){return arguments.length?(t=f(0,n),o):t},o.sortGroups=function(t){return arguments.length?(n=t,o):n},o.sortSubgroups=function(t){return arguments.length?(e=t,o):e},o.sortChords=function(t){return arguments.length?(null==t?i=null:(i=s(t))._=t,o):i&&i._},o},h=Array.prototype.slice,d=function(t){return function(){return t}},p=e(679);function v(t){return t.source}function g(t){return t.target}function y(t){return t.radius}function m(t){return t.startAngle}function b(t){return t.endAngle}var x=function(){var t=v,n=g,e=y,r=m,a=b,c=null;function f(){var f,s=h.call(arguments),l=t.apply(this,s),d=n.apply(this,s),v=+e.apply(this,(s[0]=l,s)),g=r.apply(this,s)-u,y=a.apply(this,s)-u,m=v*i(g),b=v*o(g),x=+e.apply(this,(s[0]=d,s)),w=r.apply(this,s)-u,_=a.apply(this,s)-u;if(c||(c=f=Object(p.a)()),c.moveTo(m,b),c.arc(0,0,v,g,y),g===w&&y===_||(c.quadraticCurveTo(0,0,x*i(w),x*o(w)),c.arc(0,0,x,w,_)),c.quadraticCurveTo(0,0,m,b),c.closePath(),f)return c=null,f+""||null}return f.radius=function(t){return arguments.length?(e="function"==typeof t?t:d(+t),f):e},f.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:d(+t),f):r},f.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:d(+t),f):a},f.source=function(n){return arguments.length?(t=n,f):t},f.target=function(t){return arguments.length?(n=t,f):n},f.context=function(t){return arguments.length?(c=null==t?null:t,f):c},f}},1488:function(t,n,e){"use strict";e.r(n),e.d(n,"brush",(function(){return I})),e.d(n,"brushX",(function(){return D})),e.d(n,"brushY",(function(){return L})),e.d(n,"brushSelection",(function(){return R}));var r=e(675),i=e(326),o=e(325),a=e(677),u=e(188),c=e(332),f=e(678),s=e(221),l=function(t){return function(){return t}},h=function(t,n,e){this.target=t,this.type=n,this.selection=e};function d(){u.c.stopImmediatePropagation()}var p=function(){u.c.preventDefault(),u.c.stopImmediatePropagation()},v={name:"drag"},g={name:"space"},y={name:"handle"},m={name:"center"};function b(t){return[+t[0],+t[1]]}function x(t){return[b(t[0]),b(t[1])]}function w(t){return function(n){return Object(a.a)(n,u.c.touches,t)}}var _={name:"x",handles:["w","e"].map(T),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},A={name:"y",handles:["n","s"].map(T),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},E={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(T),input:function(t){return null==t?null:x(t)},output:function(t){return t}},M={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},k={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},B={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},O={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},F={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function T(t){return{type:t}}function N(){return!u.c.ctrlKey&&!u.c.button}function C(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function S(){return navigator.maxTouchPoints||"ontouchstart"in this}function j(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function P(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function R(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function D(){return U(_)}function L(){return U(A)}var I=function(){return U(E)};function U(t){var n,e=C,a=N,b=S,E=!0,R=Object(r.a)("start","brush","end"),D=6;function L(n){var e=n.property("__brush",$).selectAll(".overlay").data([T("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",M.overlay).merge(e).each((function(){var t=j(this).extent;Object(c.a)(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([T("selection")]).enter().append("rect").attr("class","selection").attr("cursor",M.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return M[t.type]})),n.each(I).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",Y).filter(b).on("touchstart.brush",Y).on("touchmove.brush",q).on("touchend.brush touchcancel.brush",H).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function I(){var t=Object(c.a)(this),n=j(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-D/2:n[0][0]-D/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-D/2:n[0][1]-D/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+D:D})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+D:D}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function U(t,n,e){return!e&&t.__brush.emitter||new z(t,n)}function z(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function Y(){if((!n||u.c.touches)&&a.apply(this,arguments)){var e,r,o,l,h,b,x,T,N,C,S,R=this,D=u.c.target.__data__.type,L="selection"===(E&&u.c.metaKey?D="overlay":D)?v:E&&u.c.altKey?m:y,z=t===A?null:O[D],Y=t===_?null:F[D],q=j(R),H=q.extent,$=q.selection,V=H[0][0],G=H[0][1],W=H[1][0],X=H[1][1],J=0,Z=0,Q=z&&Y&&E&&u.c.shiftKey,K=u.c.touches?w(u.c.changedTouches[0].identifier):f.a,tt=K(R),nt=tt,et=U(R,arguments,!0).beforestart();"overlay"===D?($&&(N=!0),q.selection=$=[[e=t===A?V:tt[0],o=t===_?G:tt[1]],[h=t===A?W:e,x=t===_?X:o]]):(e=$[0][0],o=$[0][1],h=$[1][0],x=$[1][1]),r=e,l=o,b=h,T=x;var rt=Object(c.a)(R).attr("pointer-events","none"),it=rt.selectAll(".overlay").attr("cursor",M[D]);if(u.c.touches)et.moved=at,et.ended=ct;else{var ot=Object(c.a)(u.c.view).on("mousemove.brush",at,!0).on("mouseup.brush",ct,!0);E&&ot.on("keydown.brush",ft,!0).on("keyup.brush",st,!0),Object(i.a)(u.c.view)}d(),Object(s.interrupt)(R),I.call(R),et.start()}function at(){var t=K(R);!Q||C||S||(Math.abs(t[0]-nt[0])>Math.abs(t[1]-nt[1])?S=!0:C=!0),nt=t,N=!0,p(),ut()}function ut(){var t;switch(J=nt[0]-tt[0],Z=nt[1]-tt[1],L){case g:case v:z&&(J=Math.max(V-e,Math.min(W-h,J)),r=e+J,b=h+J),Y&&(Z=Math.max(G-o,Math.min(X-x,Z)),l=o+Z,T=x+Z);break;case y:z<0?(J=Math.max(V-e,Math.min(W-e,J)),r=e+J,b=h):z>0&&(J=Math.max(V-h,Math.min(W-h,J)),r=e,b=h+J),Y<0?(Z=Math.max(G-o,Math.min(X-o,Z)),l=o+Z,T=x):Y>0&&(Z=Math.max(G-x,Math.min(X-x,Z)),l=o,T=x+Z);break;case m:z&&(r=Math.max(V,Math.min(W,e-J*z)),b=Math.max(V,Math.min(W,h+J*z))),Y&&(l=Math.max(G,Math.min(X,o-Z*Y)),T=Math.max(G,Math.min(X,x+Z*Y)))}b<r&&(z*=-1,t=e,e=h,h=t,t=r,r=b,b=t,D in k&&it.attr("cursor",M[D=k[D]])),T<l&&(Y*=-1,t=o,o=x,x=t,t=l,l=T,T=t,D in B&&it.attr("cursor",M[D=B[D]])),q.selection&&($=q.selection),C&&(r=$[0][0],b=$[1][0]),S&&(l=$[0][1],T=$[1][1]),$[0][0]===r&&$[0][1]===l&&$[1][0]===b&&$[1][1]===T||(q.selection=[[r,l],[b,T]],I.call(R),et.brush())}function ct(){if(d(),u.c.touches){if(u.c.touches.length)return;n&&clearTimeout(n),n=setTimeout((function(){n=null}),500)}else Object(i.b)(u.c.view,N),ot.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);rt.attr("pointer-events","all"),it.attr("cursor",M.overlay),q.selection&&($=q.selection),P($)&&(q.selection=null,I.call(R)),et.end()}function ft(){switch(u.c.keyCode){case 16:Q=z&&Y;break;case 18:L===y&&(z&&(h=b-J*z,e=r+J*z),Y&&(x=T-Z*Y,o=l+Z*Y),L=m,ut());break;case 32:L!==y&&L!==m||(z<0?h=b-J:z>0&&(e=r-J),Y<0?x=T-Z:Y>0&&(o=l-Z),L=g,it.attr("cursor",M.selection),ut());break;default:return}p()}function st(){switch(u.c.keyCode){case 16:Q&&(C=S=Q=!1,ut());break;case 18:L===m&&(z<0?h=b:z>0&&(e=r),Y<0?x=T:Y>0&&(o=l),L=y,ut());break;case 32:L===g&&(u.c.altKey?(z&&(h=b-J*z,e=r+J*z),Y&&(x=T-Z*Y,o=l+Z*Y),L=m):(z<0?h=b:z>0&&(e=r),Y<0?x=T:Y>0&&(o=l),L=y),it.attr("cursor",M[D]),ut());break;default:return}p()}}function q(){U(this,arguments).moved()}function H(){U(this,arguments).ended()}function $(){var n=this.__brush||{selection:null};return n.extent=x(e.apply(this,arguments)),n.dim=t,n}return L.move=function(n,e){n.selection?n.on("start.brush",(function(){U(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){U(this,arguments).end()})).tween("brush",(function(){var n=this,r=n.__brush,i=U(n,arguments),a=r.selection,u=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),c=Object(o.a)(a,u);function f(t){r.selection=1===t&&null===u?null:c(t),I.call(n),i.brush()}return null!==a&&null!==u?f:f(1)})):n.each((function(){var n=this,r=arguments,i=n.__brush,o=t.input("function"==typeof e?e.apply(n,r):e,i.extent),a=U(n,r).beforestart();Object(s.interrupt)(n),i.selection=null===o?null:o,I.call(n),a.start().brush().end()}))},L.clear=function(t){L.move(t,null)},z.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){Object(u.a)(new h(L,n,t.output(this.state.selection)),R.apply,R,[n,this.that,this.args])}},L.extent=function(t){return arguments.length?(e="function"==typeof t?t:l(x(t)),L):e},L.filter=function(t){return arguments.length?(a="function"==typeof t?t:l(!!t),L):a},L.touchable=function(t){return arguments.length?(b="function"==typeof t?t:l(!!t),L):b},L.handleSize=function(t){return arguments.length?(D=+t,L):D},L.keyModifiers=function(t){return arguments.length?(E=!!t,L):E},L.on=function(){var t=R.on.apply(R,arguments);return t===R?L:t},L}},1490:function(t,n,e){"use strict";e.r(n),e.d(n,"axisTop",(function(){return l})),e.d(n,"axisRight",(function(){return h})),e.d(n,"axisBottom",(function(){return d})),e.d(n,"axisLeft",(function(){return p}));var r=Array.prototype.slice,i=function(t){return t};function o(t){return"translate("+(t+.5)+",0)"}function a(t){return"translate(0,"+(t+.5)+")"}function u(t){return function(n){return+t(n)}}function c(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function f(){return!this.__axis}function s(t,n){var e=[],s=null,l=null,h=6,d=6,p=3,v=1===t||4===t?-1:1,g=4===t||2===t?"x":"y",y=1===t||3===t?o:a;function m(r){var o=null==s?n.ticks?n.ticks.apply(n,e):n.domain():s,a=null==l?n.tickFormat?n.tickFormat.apply(n,e):i:l,m=Math.max(h,0)+p,b=n.range(),x=+b[0]+.5,w=+b[b.length-1]+.5,_=(n.bandwidth?c:u)(n.copy()),A=r.selection?r.selection():r,E=A.selectAll(".domain").data([null]),M=A.selectAll(".tick").data(o,n).order(),k=M.exit(),B=M.enter().append("g").attr("class","tick"),O=M.select("line"),F=M.select("text");E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(B),O=O.merge(B.append("line").attr("stroke","currentColor").attr(g+"2",v*h)),F=F.merge(B.append("text").attr("fill","currentColor").attr(g,v*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),r!==A&&(E=E.transition(r),M=M.transition(r),O=O.transition(r),F=F.transition(r),k=k.transition(r).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=_(t))?y(t):this.getAttribute("transform")})),B.attr("opacity",1e-6).attr("transform",(function(t){var n=this.parentNode.__axis;return y(n&&isFinite(n=n(t))?n:_(t))}))),k.remove(),E.attr("d",4===t||2==t?d?"M"+v*d+","+x+"H0.5V"+w+"H"+v*d:"M0.5,"+x+"V"+w:d?"M"+x+","+v*d+"V0.5H"+w+"V"+v*d:"M"+x+",0.5H"+w),M.attr("opacity",1).attr("transform",(function(t){return y(_(t))})),O.attr(g+"2",v*h),F.attr(g,v*m).text(a),A.filter(f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),A.each((function(){this.__axis=_}))}return m.scale=function(t){return arguments.length?(n=t,m):n},m.ticks=function(){return e=r.call(arguments),m},m.tickArguments=function(t){return arguments.length?(e=null==t?[]:r.call(t),m):e.slice()},m.tickValues=function(t){return arguments.length?(s=null==t?null:r.call(t),m):s&&s.slice()},m.tickFormat=function(t){return arguments.length?(l=t,m):l},m.tickSize=function(t){return arguments.length?(h=d=+t,m):h},m.tickSizeInner=function(t){return arguments.length?(h=+t,m):h},m.tickSizeOuter=function(t){return arguments.length?(d=+t,m):d},m.tickPadding=function(t){return arguments.length?(p=+t,m):p},m}function l(t){return s(1,t)}function h(t){return s(2,t)}function d(t){return s(3,t)}function p(t){return s(4,t)}},15:function(t,n,e){"use strict";var r=e(8),i=e.n(r),o=e(11),a=e.n(o),u=e(1),c=e.n(u),f=e(2),s=e.n(f),l=e(0),h=e(4),d=e.n(h),p=e(3),v=e.n(p),g=e(23),y=e.n(g),m=e(5),b=e.n(m);
/**
 * Custom error type for handling Dish type errors.
 * i.e. where the Dish cannot be successfully translated between types
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */
var x=function(t){function n(){var t;c()(this,n);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return(t=d()(this,v()(n).call(this,...r))).type="DishError",Error.captureStackTrace&&Error.captureStackTrace(y()(t),n),t}return b()(n,t),n}(function(t){function n(){var n=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(n,Object.getPrototypeOf(this)),n}return n.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t,n}(Error)),w=e(17),_=e.n(w),A=e(19),E=e(26),M=e.n(E),k=function(){function t(){c()(this,t)}return s()(t,null,[{key:"checkForValue",value:function(t){if(void 0===t)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];throw new Error("fromArrayBuffer has not been implemented")}}]),t}(),B=function(t){function n(){return c()(this,n),d()(this,v()(n).apply(this,arguments))}return b()(n,t),s()(n,null,[{key:"toArrayBuffer",value:function(){n.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){n.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}]),n}(k),O=function(t){function n(){return c()(this,n),d()(this,v()(n).apply(this,arguments))}return b()(n,t),s()(n,null,[{key:"toArrayBuffer",value:function(){n.checkForValue(this.value),this.value=_.a.isBigNumber(this.value)?l.b.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(t){n.checkForValue(this.value);try{this.value=new _.a(l.b.arrayBufferToStr(this.value,!t))}catch(t){this.value=new _.a(NaN)}}}]),n}(k),F=function(t){function n(){return c()(this,n),d()(this,v()(n).apply(this,arguments))}return b()(n,t),s()(n,null,[{key:"toArrayBuffer",value:function(){var t=this;if(n.checkForValue(this.value),!Object(l.c)())return new Promise((function(n,e){l.b.readFile(t.value).then((function(n){return t.value=n.buffer})).then(n).catch(e)}));this.value=l.b.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){n.checkForValue(this.value),this.value=new File(this.value,"unknown")}}]),n}(k),T=function(t){function n(){return c()(this,n),d()(this,v()(n).apply(this,arguments))}return b()(n,t),s()(n,null,[{key:"toArrayBuffer",value:function(){n.checkForValue(this.value),this.value=this.value?l.b.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(t){n.checkForValue(this.value),this.value=this.value?l.b.arrayBufferToStr(this.value,!t):""}}]),n}(k),N=function(t){function n(){return c()(this,n),d()(this,v()(n).apply(this,arguments))}return b()(n,t),s()(n,null,[{key:"toArrayBuffer",value:function(){n.checkForValue(this.value),this.value=this.value?l.b.strToArrayBuffer(l.b.unescapeHtml(l.b.stripHtmlTags(this.value,!0))):new ArrayBuffer}}]),n}(T),C=function(t){function n(){return c()(this,n),d()(this,v()(n).apply(this,arguments))}return b()(n,t),s()(n,null,[{key:"toArrayBuffer",value:function(){n.checkForValue(this.value),this.value=void 0!==this.value?l.b.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(t){n.checkForValue(this.value),this.value=JSON.parse(l.b.arrayBufferToStr(this.value,!t))}}]),n}(k),S=function(t){function n(){return c()(this,n),d()(this,v()(n).apply(this,arguments))}var e,r;return b()(n,t),s()(n,null,[{key:"toArrayBuffer",value:(r=a()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.checkForValue(this.value),!Object(l.c)()){t.next=5;break}this.value=this.value.map((function(t){return Uint8Array.from(t.data)})),t.next=8;break;case 5:return t.next=7,n.concatenateTypedArraysWithTypedElements(...this.value);case 7:this.value=t.sent;case 8:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){n.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(e=a()(i.a.mark((function t(){var n,e,r,o,a,u,c,f,s,h,d,p,v,g=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(n=0,e=g.length,r=new Array(e),o=0;o<e;o++)r[o]=g[o];for(a=0,u=r;a<u.length;a++)c=u[a],n+=c.size;f=new Uint8Array(n),s=0,h=0,d=r;case 6:if(!(h<d.length)){t.next=16;break}return p=d[h],t.next=10,l.b.readFile(p);case 10:v=t.sent,f.set(v,s),s+=v.length;case 13:h++,t.next=6;break;case 16:return t.abrupt("return",f);case 17:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"concatenateTypedArrays",value:function(){for(var t=0,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];for(var i=0,o=e;i<o.length;i++){var a=o[i];t+=a.length}for(var u=new Uint8Array(t),c=0,f=0,s=e;f<s.length;f++){var l=s[f];u.set(l,c),c+=l.length}return u}}]),n}(k),j=function(t){function n(){return c()(this,n),d()(this,v()(n).apply(this,arguments))}return b()(n,t),s()(n,null,[{key:"toArrayBuffer",value:function(){n.checkForValue(this.value),this.value="number"==typeof this.value?l.b.strToArrayBuffer(this.value.toString()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(t){n.checkForValue(this.value),this.value=this.value?parseFloat(l.b.arrayBufferToStr(this.value,!t)):0}}]),n}(k),P=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(c()(this,t),this.value=new ArrayBuffer(0),this.type=t.ARRAY_BUFFER,n&&Object.prototype.hasOwnProperty.call(n,"value")&&Object.prototype.hasOwnProperty.call(n,"type"))this.set(n.value,n.type);else if(n&&null!==e)this.set(n,e);else if(n){var r=t.typeEnum(n.constructor.name);this.set(n,r)}}var n;return s()(t,[{key:"get",value:function(n){var e=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"==typeof n&&(n=t.typeEnum(n)),this.type!==n?Object(l.c)()?(this._translate(n,r),this.value):new Promise((function(t,i){e._translate(n,r).then((function(){t(e.value)})).catch(i)})):this.value}},{key:"set",value:function(n,e){if("string"==typeof e&&(e=t.typeEnum(e)),M.a.debug("Dish type: "+t.enumLookup(e)),this.value=n,this.type=e,!this.valid()){var r=l.b.truncate(JSON.stringify(this.value),25);throw new x(`Data is not a valid ${t.enumLookup(e)}: ${r}`)}}},{key:"presentAs",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this.clone();return e.get(t,n)}},{key:"detectDishType",value:function(){var t=new Uint8Array(this.value.slice(0,2048)),n=Object(A.a)(t);return n.length&&n[0].mime&&"text/plain"!==!n[0].mime?n[0].mime:null}},{key:"getTitle",value:(n=a()(i.a.mark((function n(e){var r,o;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r="",n.t0=this.type,n.next=n.t0===t.FILE?4:n.t0===t.LIST_FILE?6:n.t0===t.JSON?8:n.t0===t.NUMBER||n.t0===t.BIG_NUMBER?10:n.t0===t.ARRAY_BUFFER||n.t0===t.BYTE_ARRAY?12:15;break;case 4:return r=this.value.name,n.abrupt("break",26);case 6:return r=`${this.value.length} file(s)`,n.abrupt("break",26);case 8:return r="application/json",n.abrupt("break",26);case 10:return r=this.value.toString(),n.abrupt("break",26);case 12:if(null===(r=this.detectDishType())){n.next=15;break}return n.abrupt("break",26);case 15:return n.prev=15,(o=this.clone()).value=o.value.slice(0,256),n.next=20,o.get(t.STRING);case 20:r=n.sent,n.next=26;break;case 23:n.prev=23,n.t1=n.catch(15),M.a.error(`${t.enumLookup(this.type)} cannot be sliced. ${n.t1}`);case 26:return n.abrupt("return",r.slice(0,e));case 27:case"end":return n.stop()}}),n,this,[[15,23]])}))),function(t){return n.apply(this,arguments)})},{key:"valid",value:function(){switch(this.type){case t.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var n=0;n<this.value.length;n++)if("number"!=typeof this.value[n]||this.value[n]<0||this.value[n]>255)return!1;return!0;case t.STRING:case t.HTML:return"string"==typeof this.value;case t.NUMBER:return"number"==typeof this.value;case t.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case t.BIG_NUMBER:if(_.a.isBigNumber(this.value))return!0;if(Object.keys(this.value).sort().equals(["c","e","s"])){var e=new _.a;return e.c=this.value.c,e.e=this.value.e,e.s=this.value.s,this.value=e,!0}return!1;case t.JSON:return!0;case t.FILE:return this.value instanceof File;case t.LIST_FILE:return this.value instanceof Array&&this.value.reduce((function(t,n){return t&&n instanceof File}),!0);default:return!1}}},{key:"clone",value:function(){var n=new t;switch(this.type){case t.STRING:case t.HTML:case t.NUMBER:case t.BIG_NUMBER:n.set(this.value,this.type);break;case t.BYTE_ARRAY:case t.JSON:n.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case t.ARRAY_BUFFER:n.set(this.value.slice(0),this.type);break;case t.FILE:n.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case t.LIST_FILE:n.set(this.value.map((function(t){return new File([t],t.name,{type:t.type,lastModified:t.lastModified})})),this.type);break;default:throw new x("Cannot clone Dish, unknown type")}return n}},{key:"_translate",value:function(n){var e=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(M.a.debug(`Translating Dish from ${t.enumLookup(this.type)} to ${t.enumLookup(n)}`),!Object(l.c)())return new Promise((function(r,i){e._toArrayBuffer().then((function(){return e.type=t.ARRAY_BUFFER})).then((function(){e._fromArrayBuffer(n),r()})).catch(i)}));this._toArrayBuffer(),this.type=t.ARRAY_BUFFER,this._fromArrayBuffer(n,r)}},{key:"_toArrayBuffer",value:function(){var n=this,e={browser:{[t.STRING]:function(){return Promise.resolve(T.toArrayBuffer.bind(n)())},[t.NUMBER]:function(){return Promise.resolve(j.toArrayBuffer.bind(n)())},[t.HTML]:function(){return Promise.resolve(N.toArrayBuffer.bind(n)())},[t.ARRAY_BUFFER]:function(){return Promise.resolve()},[t.BIG_NUMBER]:function(){return Promise.resolve(O.toArrayBuffer.bind(n)())},[t.JSON]:function(){return Promise.resolve(C.toArrayBuffer.bind(n)())},[t.FILE]:function(){return F.toArrayBuffer.bind(n)()},[t.LIST_FILE]:function(){return Promise.resolve(S.toArrayBuffer.bind(n)())},[t.BYTE_ARRAY]:function(){return Promise.resolve(B.toArrayBuffer.bind(n)())}},node:{[t.STRING]:function(){return T.toArrayBuffer.bind(n)()},[t.NUMBER]:function(){return j.toArrayBuffer.bind(n)()},[t.HTML]:function(){return N.toArrayBuffer.bind(n)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return O.toArrayBuffer.bind(n)()},[t.JSON]:function(){return C.toArrayBuffer.bind(n)()},[t.FILE]:function(){return F.toArrayBuffer.bind(n)()},[t.LIST_FILE]:function(){return S.toArrayBuffer.bind(n)()},[t.BYTE_ARRAY]:function(){return B.toArrayBuffer.bind(n)()}}};try{return e[Object(l.c)()?"node":"browser"][this.type]()}catch(n){throw new x(`Error translating from ${t.enumLookup(this.type)} to ArrayBuffer: ${n}`)}}},{key:"_fromArrayBuffer",value:function(n,e){var r=this,i={[t.STRING]:function(){return T.fromArrayBuffer.bind(r)(e)},[t.NUMBER]:function(){return j.fromArrayBuffer.bind(r)(e)},[t.HTML]:function(){return N.fromArrayBuffer.bind(r)(e)},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return O.fromArrayBuffer.bind(r)(e)},[t.JSON]:function(){return C.fromArrayBuffer.bind(r)(e)},[t.FILE]:function(){return F.fromArrayBuffer.bind(r)()},[t.LIST_FILE]:function(){return S.fromArrayBuffer.bind(r)()},[t.BYTE_ARRAY]:function(){return B.fromArrayBuffer.bind(r)()}};try{i[n](),this.type=n}catch(e){throw new x(`Error translating from ArrayBuffer to ${t.enumLookup(n)}: ${e}`)}}},{key:"size",get:function(){switch(this.type){case t.BYTE_ARRAY:case t.STRING:case t.HTML:return this.value.length;case t.NUMBER:case t.BIG_NUMBER:return this.value.toString().length;case t.ARRAY_BUFFER:return this.value.byteLength;case t.JSON:return JSON.stringify(this.value).length;case t.FILE:return this.value.size;case t.LIST_FILE:return this.value.reduce((function(t,n){return t+n.size}),0);default:return-1}}}],[{key:"typeEnum",value:function(n){switch(n.toLowerCase()){case"bytearray":case"byte array":return t.BYTE_ARRAY;case"string":return t.STRING;case"number":return t.NUMBER;case"html":return t.HTML;case"arraybuffer":case"array buffer":return t.ARRAY_BUFFER;case"bignumber":case"big number":return t.BIG_NUMBER;case"json":case"object":return t.JSON;case"file":return t.FILE;case"list<file>":return t.LIST_FILE;default:throw new x("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(n){switch(n){case t.BYTE_ARRAY:return"byteArray";case t.STRING:return"string";case t.NUMBER:return"number";case t.HTML:return"html";case t.ARRAY_BUFFER:return"ArrayBuffer";case t.BIG_NUMBER:return"BigNumber";case t.JSON:return"JSON";case t.FILE:return"File";case t.LIST_FILE:return"List<File>";default:throw new x("Invalid data type enum. No matching type.")}}}]),t}();P.BYTE_ARRAY=0,P.STRING=1,P.NUMBER=2,P.HTML=3,P.ARRAY_BUFFER=4,P.BIG_NUMBER=5,P.JSON=6,P.FILE=7,P.LIST_FILE=8;n.a=P},16:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"a",(function(){return a}));var r=e(0),i=e(7);
/**
 * Base64 functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */
function o(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!t)return"";if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),"string"==typeof t&&(t=r.b.strToByteArray(t)),64!==(n=r.b.expandAlphRange(n).join("")).length&&65!==n.length)throw new i.a(`Invalid Base64 alphabet length (${n.length}): ${n}`);for(var e,o,a,u,c,f,s,l="",h=0;h<t.length;)u=(e=t[h++])>>2,c=(3&e)<<4|(o=t[h++])>>4,f=(15&o)<<2|(a=t[h++])>>6,s=63&a,isNaN(o)?f=s=64:isNaN(a)&&(s=64),l+=n.charAt(u)+n.charAt(c)+n.charAt(f)+n.charAt(s);return l}function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t)return"string"===e?"":[];if(n=n||"A-Za-z0-9+/=",64!==(n=r.b.expandAlphRange(n).join("")).length&&65!==n.length)throw new i.a(`Invalid Base64 alphabet length (${n.length}): ${n}`);var a,u,c,f,s,l,h=[],d=0;if(o){var p=new RegExp("[^"+n.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");t=t.replace(p,"")}for(;d<t.length;)a=n.indexOf(t.charAt(d++))<<2|(f=-1===(f=n.indexOf(t.charAt(d++)||"="))?64:f)>>4,u=(15&f)<<4|(s=-1===(s=n.indexOf(t.charAt(d++)||"="))?64:s)>>2,c=(3&s)<<6|(l=-1===(l=n.indexOf(t.charAt(d++)||"="))?64:l),h.push(a),64!==s&&h.push(u),64!==l&&h.push(c);return"string"===e?r.b.byteArrayToUtf8(h):h}},17:function(t,n,e){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,u=Math.ceil,c=Math.floor,f="[BigNumber Error] ",s=f+"Number primitive has more than 15 significant digits: ",l=1e14,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e9;function p(t){var n=0|t;return t>0||t===n?n:n-1}function v(t){for(var n,e,r=1,i=t.length,o=t[0]+"";r<i;){for(e=14-(n=t[r++]+"").length;e--;n="0"+n);o+=n}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(t,n){var e,r,i=t.c,o=n.c,a=t.s,u=n.s,c=t.e,f=n.e;if(!a||!u)return null;if(e=i&&!i[0],r=o&&!o[0],e||r)return e?r?0:-u:a;if(a!=u)return a;if(e=a<0,r=c==f,!i||!o)return r?0:!i^e?1:-1;if(!r)return c>f^e?1:-1;for(u=(c=i.length)<(f=o.length)?c:f,a=0;a<u;a++)if(i[a]!=o[a])return i[a]>o[a]^e?1:-1;return c==f?0:c>f^e?1:-1}function y(t,n,e,r){if(t<n||t>e||t!==c(t))throw Error(f+(r||"Argument")+("number"==typeof t?t<n||t>e?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function m(t){var n=t.c.length-1;return p(t.e/14)==n&&t.c[n]%2!=0}function b(t,n){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(n<0?"e":"e+")+n}function x(t,n,e){var r,i;if(n<0){for(i=e+".";++n;i+=e);t=i+t}else if(++n>(r=t.length)){for(i=e,n-=r;--n;i+=e);t+=i}else n<r&&(t=t.slice(0,n)+"."+t.slice(n));return t}(o=function t(n){var e,r,i,o,w,_,A,E,M,k=I.prototype={constructor:I,toString:null,valueOf:null},B=new I(1),O=20,F=4,T=-7,N=21,C=-1e7,S=1e7,j=!1,P=1,R=0,D={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},L="0123456789abcdefghijklmnopqrstuvwxyz";function I(t,n){var e,o,u,f,l,h,d,p,v=this;if(!(v instanceof I))return new I(t,n);if(null==n){if(t&&!0===t._isBigNumber)return v.s=t.s,void(!t.c||t.e>S?v.c=v.e=null:t.e<C?v.c=[v.e=0]:(v.e=t.e,v.c=t.c.slice()));if((h="number"==typeof t)&&0*t==0){if(v.s=1/t<0?(t=-t,-1):1,t===~~t){for(f=0,l=t;l>=10;l/=10,f++);return void(f>S?v.c=v.e=null:(v.e=f,v.c=[t]))}p=String(t)}else{if(!a.test(p=String(t)))return i(v,p,h);v.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(f=p.indexOf("."))>-1&&(p=p.replace(".","")),(l=p.search(/e/i))>0?(f<0&&(f=l),f+=+p.slice(l+1),p=p.substring(0,l)):f<0&&(f=p.length)}else{if(y(n,2,L.length,"Base"),10==n)return q(v=new I(t),O+v.e+1,F);if(p=String(t),h="number"==typeof t){if(0*t!=0)return i(v,p,h,n);if(v.s=1/t<0?(p=p.slice(1),-1):1,I.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(s+t)}else v.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(e=L.slice(0,n),f=l=0,d=p.length;l<d;l++)if(e.indexOf(o=p.charAt(l))<0){if("."==o){if(l>f){f=d;continue}}else if(!u&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){u=!0,l=-1,f=0;continue}return i(v,String(t),h,n)}h=!1,(f=(p=r(p,n,10,v.s)).indexOf("."))>-1?p=p.replace(".",""):f=p.length}for(l=0;48===p.charCodeAt(l);l++);for(d=p.length;48===p.charCodeAt(--d););if(p=p.slice(l,++d)){if(d-=l,h&&I.DEBUG&&d>15&&(t>9007199254740991||t!==c(t)))throw Error(s+v.s*t);if((f=f-l-1)>S)v.c=v.e=null;else if(f<C)v.c=[v.e=0];else{if(v.e=f,v.c=[],l=(f+1)%14,f<0&&(l+=14),l<d){for(l&&v.c.push(+p.slice(0,l)),d-=14;l<d;)v.c.push(+p.slice(l,l+=14));l=14-(p=p.slice(l)).length}else l-=d;for(;l--;p+="0");v.c.push(+p)}}else v.c=[v.e=0]}function U(t,n,e,r){var i,o,a,u,c;if(null==e?e=F:y(e,0,8),!t.c)return t.toString();if(i=t.c[0],a=t.e,null==n)c=v(t.c),c=1==r||2==r&&(a<=T||a>=N)?b(c,a):x(c,a,"0");else if(o=(t=q(new I(t),n,e)).e,u=(c=v(t.c)).length,1==r||2==r&&(n<=o||o<=T)){for(;u<n;c+="0",u++);c=b(c,o)}else if(n-=a,c=x(c,o,"0"),o+1>u){if(--n>0)for(c+=".";n--;c+="0");}else if((n+=o-u)>0)for(o+1==u&&(c+=".");n--;c+="0");return t.s<0&&i?"-"+c:c}function z(t,n){for(var e,r=1,i=new I(t[0]);r<t.length;r++){if(!(e=new I(t[r])).s){i=e;break}n.call(i,e)&&(i=e)}return i}function Y(t,n,e){for(var r=1,i=n.length;!n[--i];n.pop());for(i=n[0];i>=10;i/=10,r++);return(e=r+14*e-1)>S?t.c=t.e=null:e<C?t.c=[t.e=0]:(t.e=e,t.c=n),t}function q(t,n,e,r){var i,o,a,f,s,d,p,v=t.c,g=h;if(v){t:{for(i=1,f=v[0];f>=10;f/=10,i++);if((o=n-i)<0)o+=14,a=n,p=(s=v[d=0])/g[i-a-1]%10|0;else if((d=u((o+1)/14))>=v.length){if(!r)break t;for(;v.length<=d;v.push(0));s=p=0,i=1,a=(o%=14)-14+1}else{for(s=f=v[d],i=1;f>=10;f/=10,i++);p=(a=(o%=14)-14+i)<0?0:s/g[i-a-1]%10|0}if(r=r||n<0||null!=v[d+1]||(a<0?s:s%g[i-a-1]),r=e<4?(p||r)&&(0==e||e==(t.s<0?3:2)):p>5||5==p&&(4==e||r||6==e&&(o>0?a>0?s/g[i-a]:0:v[d-1])%10&1||e==(t.s<0?8:7)),n<1||!v[0])return v.length=0,r?(n-=t.e+1,v[0]=g[(14-n%14)%14],t.e=-n||0):v[0]=t.e=0,t;if(0==o?(v.length=d,f=1,d--):(v.length=d+1,f=g[14-o],v[d]=a>0?c(s/g[i-a]%g[a])*f:0),r)for(;;){if(0==d){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=f,f=1;a>=10;a/=10,f++);o!=f&&(t.e++,v[0]==l&&(v[0]=1));break}if(v[d]+=f,v[d]!=l)break;v[d--]=0,f=1}for(o=v.length;0===v[--o];v.pop());}t.e>S?t.c=t.e=null:t.e<C&&(t.c=[t.e=0])}return t}function H(t){var n,e=t.e;return null===e?t.toString():(n=v(t.c),n=e<=T||e>=N?b(n,e):x(n,e,"0"),t.s<0?"-"+n:n)}return I.clone=t,I.ROUND_UP=0,I.ROUND_DOWN=1,I.ROUND_CEIL=2,I.ROUND_FLOOR=3,I.ROUND_HALF_UP=4,I.ROUND_HALF_DOWN=5,I.ROUND_HALF_EVEN=6,I.ROUND_HALF_CEIL=7,I.ROUND_HALF_FLOOR=8,I.EUCLID=9,I.config=I.set=function(t){var n,e;if(null!=t){if("object"!=typeof t)throw Error(f+"Object expected: "+t);if(t.hasOwnProperty(n="DECIMAL_PLACES")&&(y(e=t[n],0,d,n),O=e),t.hasOwnProperty(n="ROUNDING_MODE")&&(y(e=t[n],0,8,n),F=e),t.hasOwnProperty(n="EXPONENTIAL_AT")&&((e=t[n])&&e.pop?(y(e[0],-d,0,n),y(e[1],0,d,n),T=e[0],N=e[1]):(y(e,-d,d,n),T=-(N=e<0?-e:e))),t.hasOwnProperty(n="RANGE"))if((e=t[n])&&e.pop)y(e[0],-d,-1,n),y(e[1],1,d,n),C=e[0],S=e[1];else{if(y(e,-d,d,n),!e)throw Error(f+n+" cannot be zero: "+e);C=-(S=e<0?-e:e)}if(t.hasOwnProperty(n="CRYPTO")){if((e=t[n])!==!!e)throw Error(f+n+" not true or false: "+e);if(e){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw j=!e,Error(f+"crypto unavailable");j=e}else j=e}if(t.hasOwnProperty(n="MODULO_MODE")&&(y(e=t[n],0,9,n),P=e),t.hasOwnProperty(n="POW_PRECISION")&&(y(e=t[n],0,d,n),R=e),t.hasOwnProperty(n="FORMAT")){if("object"!=typeof(e=t[n]))throw Error(f+n+" not an object: "+e);D=e}if(t.hasOwnProperty(n="ALPHABET")){if("string"!=typeof(e=t[n])||/^.$|[+-.\s]|(.).*\1/.test(e))throw Error(f+n+" invalid: "+e);L=e}}return{DECIMAL_PLACES:O,ROUNDING_MODE:F,EXPONENTIAL_AT:[T,N],RANGE:[C,S],CRYPTO:j,MODULO_MODE:P,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},I.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!I.DEBUG)return!0;var n,e,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-d&&i<=d&&i===c(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((n=(i+1)%14)<1&&(n+=14),String(r[0]).length==n){for(n=0;n<r.length;n++)if((e=r[n])<0||e>=l||e!==c(e))break t;if(0!==e)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(f+"Invalid BigNumber: "+t)},I.maximum=I.max=function(){return z(arguments,k.lt)},I.minimum=I.min=function(){return z(arguments,k.gt)},I.random=(o=9007199254740992*Math.random()&2097151?function(){return c(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var n,e,r,i,a,s=0,l=[],p=new I(B);if(null==t?t=O:y(t,0,d),i=u(t/14),j)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(a=131072*n[s]+(n[s+1]>>>11))>=9e15?(e=crypto.getRandomValues(new Uint32Array(2)),n[s]=e[0],n[s+1]=e[1]):(l.push(a%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw j=!1,Error(f+"crypto unavailable");for(n=crypto.randomBytes(i*=7);s<i;)(a=281474976710656*(31&n[s])+1099511627776*n[s+1]+4294967296*n[s+2]+16777216*n[s+3]+(n[s+4]<<16)+(n[s+5]<<8)+n[s+6])>=9e15?crypto.randomBytes(7).copy(n,s):(l.push(a%1e14),s+=7);s=i/7}if(!j)for(;s<i;)(a=o())<9e15&&(l[s++]=a%1e14);for(t%=14,(i=l[--s])&&t&&(a=h[14-t],l[s]=c(i/a)*a);0===l[s];l.pop(),s--);if(s<0)l=[r=0];else{for(r=-1;0===l[0];l.splice(0,1),r-=14);for(s=1,a=l[0];a>=10;a/=10,s++);s<14&&(r-=14-s)}return p.e=r,p.c=l,p}),I.sum=function(){for(var t=1,n=arguments,e=new I(n[0]);t<n.length;)e=e.plus(n[t++]);return e},r=function(){function t(t,n,e,r){for(var i,o,a=[0],u=0,c=t.length;u<c;){for(o=a.length;o--;a[o]*=n);for(a[0]+=r.indexOf(t.charAt(u++)),i=0;i<a.length;i++)a[i]>e-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/e|0,a[i]%=e)}return a.reverse()}return function(n,r,i,o,a){var u,c,f,s,l,h,d,p,g=n.indexOf("."),y=O,m=F;for(g>=0&&(s=R,R=0,n=n.replace(".",""),h=(p=new I(r)).pow(n.length-g),R=s,p.c=t(x(v(h.c),h.e,"0"),10,i,"0123456789"),p.e=p.c.length),f=s=(d=t(n,r,i,a?(u=L,"0123456789"):(u="0123456789",L))).length;0==d[--s];d.pop());if(!d[0])return u.charAt(0);if(g<0?--f:(h.c=d,h.e=f,h.s=o,d=(h=e(h,p,y,m,i)).c,l=h.r,f=h.e),g=d[c=f+y+1],s=i/2,l=l||c<0||null!=d[c+1],l=m<4?(null!=g||l)&&(0==m||m==(h.s<0?3:2)):g>s||g==s&&(4==m||l||6==m&&1&d[c-1]||m==(h.s<0?8:7)),c<1||!d[0])n=l?x(u.charAt(1),-y,u.charAt(0)):u.charAt(0);else{if(d.length=c,l)for(--i;++d[--c]>i;)d[c]=0,c||(++f,d=[1].concat(d));for(s=d.length;!d[--s];);for(g=0,n="";g<=s;n+=u.charAt(d[g++]));n=x(n,f,u.charAt(0))}return n}}(),e=function(){function t(t,n,e){var r,i,o,a,u=0,c=t.length,f=n%1e7,s=n/1e7|0;for(t=t.slice();c--;)u=((i=f*(o=t[c]%1e7)+(r=s*o+(a=t[c]/1e7|0)*f)%1e7*1e7+u)/e|0)+(r/1e7|0)+s*a,t[c]=i%e;return u&&(t=[u].concat(t)),t}function n(t,n,e,r){var i,o;if(e!=r)o=e>r?1:-1;else for(i=o=0;i<e;i++)if(t[i]!=n[i]){o=t[i]>n[i]?1:-1;break}return o}function e(t,n,e,r){for(var i=0;e--;)t[e]-=i,i=t[e]<n[e]?1:0,t[e]=i*r+t[e]-n[e];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(r,i,o,a,u){var f,s,h,d,v,g,y,m,b,x,w,_,A,E,M,k,B,O=r.s==i.s?1:-1,F=r.c,T=i.c;if(!(F&&F[0]&&T&&T[0]))return new I(r.s&&i.s&&(F?!T||F[0]!=T[0]:T)?F&&0==F[0]||!T?0*O:O/0:NaN);for(b=(m=new I(O)).c=[],O=o+(s=r.e-i.e)+1,u||(u=l,s=p(r.e/14)-p(i.e/14),O=O/14|0),h=0;T[h]==(F[h]||0);h++);if(T[h]>(F[h]||0)&&s--,O<0)b.push(1),d=!0;else{for(E=F.length,k=T.length,h=0,O+=2,(v=c(u/(T[0]+1)))>1&&(T=t(T,v,u),F=t(F,v,u),k=T.length,E=F.length),A=k,w=(x=F.slice(0,k)).length;w<k;x[w++]=0);B=T.slice(),B=[0].concat(B),M=T[0],T[1]>=u/2&&M++;do{if(v=0,(f=n(T,x,k,w))<0){if(_=x[0],k!=w&&(_=_*u+(x[1]||0)),(v=c(_/M))>1)for(v>=u&&(v=u-1),y=(g=t(T,v,u)).length,w=x.length;1==n(g,x,y,w);)v--,e(g,k<y?B:T,y,u),y=g.length,f=1;else 0==v&&(f=v=1),y=(g=T.slice()).length;if(y<w&&(g=[0].concat(g)),e(x,g,w,u),w=x.length,-1==f)for(;n(T,x,k,w)<1;)v++,e(x,k<w?B:T,w,u),w=x.length}else 0===f&&(v++,x=[0]);b[h++]=v,x[0]?x[w++]=F[A]||0:(x=[F[A]],w=1)}while((A++<E||null!=x[0])&&O--);d=null!=x[0],b[0]||b.splice(0,1)}if(u==l){for(h=1,O=b[0];O>=10;O/=10,h++);q(m,o+(m.e=h+14*s-1)+1,a,d)}else m.e=s,m.r=+d;return m}}(),w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,_=/^([^.]+)\.$/,A=/^\.([^.]+)$/,E=/^-?(Infinity|NaN)$/,M=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,n,e,r){var i,o=e?n:n.replace(M,"");if(E.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!e&&(o=o.replace(w,(function(t,n,e){return i="x"==(e=e.toLowerCase())?16:"b"==e?2:8,r&&r!=i?t:n})),r&&(i=r,o=o.replace(_,"$1").replace(A,"0.$1")),n!=o))return new I(o,i);if(I.DEBUG)throw Error(f+"Not a"+(r?" base "+r:"")+" number: "+n);t.s=null}t.c=t.e=null},k.absoluteValue=k.abs=function(){var t=new I(this);return t.s<0&&(t.s=1),t},k.comparedTo=function(t,n){return g(this,new I(t,n))},k.decimalPlaces=k.dp=function(t,n){var e,r,i,o=this;if(null!=t)return y(t,0,d),null==n?n=F:y(n,0,8),q(new I(o),t+o.e+1,n);if(!(e=o.c))return null;if(r=14*((i=e.length-1)-p(this.e/14)),i=e[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},k.dividedBy=k.div=function(t,n){return e(this,new I(t,n),O,F)},k.dividedToIntegerBy=k.idiv=function(t,n){return e(this,new I(t,n),0,1)},k.exponentiatedBy=k.pow=function(t,n){var e,r,i,o,a,s,l,h,d=this;if((t=new I(t)).c&&!t.isInteger())throw Error(f+"Exponent not an integer: "+H(t));if(null!=n&&(n=new I(n)),a=t.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!t.c||!t.c[0])return h=new I(Math.pow(+H(d),a?2-m(t):+H(t))),n?h.mod(n):h;if(s=t.s<0,n){if(n.c?!n.c[0]:!n.s)return new I(NaN);(r=!s&&d.isInteger()&&n.isInteger())&&(d=d.mod(n))}else{if(t.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||a&&d.c[1]>=24e7:d.c[0]<8e13||a&&d.c[0]<=9999975e7)))return o=d.s<0&&m(t)?-0:0,d.e>-1&&(o=1/o),new I(s?1/o:o);R&&(o=u(R/14+2))}for(a?(e=new I(.5),s&&(t.s=1),l=m(t)):l=(i=Math.abs(+H(t)))%2,h=new I(B);;){if(l){if(!(h=h.times(d)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(n))}if(i){if(0===(i=c(i/2)))break;l=i%2}else if(q(t=t.times(e),t.e+1,1),t.e>14)l=m(t);else{if(0===(i=+H(t)))break;l=i%2}d=d.times(d),o?d.c&&d.c.length>o&&(d.c.length=o):r&&(d=d.mod(n))}return r?h:(s&&(h=B.div(h)),n?h.mod(n):o?q(h,R,F,void 0):h)},k.integerValue=function(t){var n=new I(this);return null==t?t=F:y(t,0,8),q(n,n.e+1,t)},k.isEqualTo=k.eq=function(t,n){return 0===g(this,new I(t,n))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(t,n){return g(this,new I(t,n))>0},k.isGreaterThanOrEqualTo=k.gte=function(t,n){return 1===(n=g(this,new I(t,n)))||0===n},k.isInteger=function(){return!!this.c&&p(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(t,n){return g(this,new I(t,n))<0},k.isLessThanOrEqualTo=k.lte=function(t,n){return-1===(n=g(this,new I(t,n)))||0===n},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(t,n){var e,r,i,o,a=this,u=a.s;if(n=(t=new I(t,n)).s,!u||!n)return new I(NaN);if(u!=n)return t.s=-n,a.plus(t);var c=a.e/14,f=t.e/14,s=a.c,h=t.c;if(!c||!f){if(!s||!h)return s?(t.s=-n,t):new I(h?a:NaN);if(!s[0]||!h[0])return h[0]?(t.s=-n,t):new I(s[0]?a:3==F?-0:0)}if(c=p(c),f=p(f),s=s.slice(),u=c-f){for((o=u<0)?(u=-u,i=s):(f=c,i=h),i.reverse(),n=u;n--;i.push(0));i.reverse()}else for(r=(o=(u=s.length)<(n=h.length))?u:n,u=n=0;n<r;n++)if(s[n]!=h[n]){o=s[n]<h[n];break}if(o&&(i=s,s=h,h=i,t.s=-t.s),(n=(r=h.length)-(e=s.length))>0)for(;n--;s[e++]=0);for(n=l-1;r>u;){if(s[--r]<h[r]){for(e=r;e&&!s[--e];s[e]=n);--s[e],s[r]+=l}s[r]-=h[r]}for(;0==s[0];s.splice(0,1),--f);return s[0]?Y(t,s,f):(t.s=3==F?-1:1,t.c=[t.e=0],t)},k.modulo=k.mod=function(t,n){var r,i,o=this;return t=new I(t,n),!o.c||!t.s||t.c&&!t.c[0]?new I(NaN):!t.c||o.c&&!o.c[0]?new I(o):(9==P?(i=t.s,t.s=1,r=e(o,t,0,3),t.s=i,r.s*=i):r=e(o,t,0,P),(t=o.minus(r.times(t))).c[0]||1!=P||(t.s=o.s),t)},k.multipliedBy=k.times=function(t,n){var e,r,i,o,a,u,c,f,s,h,d,v,g,y,m=this,b=m.c,x=(t=new I(t,n)).c;if(!(b&&x&&b[0]&&x[0]))return!m.s||!t.s||b&&!b[0]&&!x||x&&!x[0]&&!b?t.c=t.e=t.s=null:(t.s*=m.s,b&&x?(t.c=[0],t.e=0):t.c=t.e=null),t;for(r=p(m.e/14)+p(t.e/14),t.s*=m.s,(c=b.length)<(h=x.length)&&(g=b,b=x,x=g,i=c,c=h,h=i),i=c+h,g=[];i--;g.push(0));for(y=l,1e7,i=h;--i>=0;){for(e=0,d=x[i]%1e7,v=x[i]/1e7|0,o=i+(a=c);o>i;)e=((f=d*(f=b[--a]%1e7)+(u=v*f+(s=b[a]/1e7|0)*d)%1e7*1e7+g[o]+e)/y|0)+(u/1e7|0)+v*s,g[o--]=f%y;g[o]=e}return e?++r:g.splice(0,1),Y(t,g,r)},k.negated=function(){var t=new I(this);return t.s=-t.s||null,t},k.plus=function(t,n){var e,r=this,i=r.s;if(n=(t=new I(t,n)).s,!i||!n)return new I(NaN);if(i!=n)return t.s=-n,r.minus(t);var o=r.e/14,a=t.e/14,u=r.c,c=t.c;if(!o||!a){if(!u||!c)return new I(i/0);if(!u[0]||!c[0])return c[0]?t:new I(u[0]?r:0*i)}if(o=p(o),a=p(a),u=u.slice(),i=o-a){for(i>0?(a=o,e=c):(i=-i,e=u),e.reverse();i--;e.push(0));e.reverse()}for((i=u.length)-(n=c.length)<0&&(e=c,c=u,u=e,n=i),i=0;n;)i=(u[--n]=u[n]+c[n]+i)/l|0,u[n]=l===u[n]?0:u[n]%l;return i&&(u=[i].concat(u),++a),Y(t,u,a)},k.precision=k.sd=function(t,n){var e,r,i,o=this;if(null!=t&&t!==!!t)return y(t,1,d),null==n?n=F:y(n,0,8),q(new I(o),t,n);if(!(e=o.c))return null;if(r=14*(i=e.length-1)+1,i=e[i]){for(;i%10==0;i/=10,r--);for(i=e[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},k.shiftedBy=function(t){return y(t,-9007199254740991,9007199254740991),this.times("1e"+t)},k.squareRoot=k.sqrt=function(){var t,n,r,i,o,a=this,u=a.c,c=a.s,f=a.e,s=O+4,l=new I("0.5");if(1!==c||!u||!u[0])return new I(!c||c<0&&(!u||u[0])?NaN:u?a:1/0);if(0==(c=Math.sqrt(+H(a)))||c==1/0?(((n=v(u)).length+f)%2==0&&(n+="0"),c=Math.sqrt(+n),f=p((f+1)/2)-(f<0||f%2),r=new I(n=c==1/0?"1e"+f:(n=c.toExponential()).slice(0,n.indexOf("e")+1)+f)):r=new I(c+""),r.c[0])for((c=(f=r.e)+s)<3&&(c=0);;)if(o=r,r=l.times(o.plus(e(a,o,s,1))),v(o.c).slice(0,c)===(n=v(r.c)).slice(0,c)){if(r.e<f&&--c,"9999"!=(n=n.slice(c-3,c+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(q(r,r.e+O+2,1),t=!r.times(r).eq(a));break}if(!i&&(q(o,o.e+O+2,0),o.times(o).eq(a))){r=o;break}s+=4,c+=4,i=1}return q(r,r.e+O+1,F,t)},k.toExponential=function(t,n){return null!=t&&(y(t,0,d),t++),U(this,t,n,1)},k.toFixed=function(t,n){return null!=t&&(y(t,0,d),t=t+this.e+1),U(this,t,n)},k.toFormat=function(t,n,e){var r,i=this;if(null==e)null!=t&&n&&"object"==typeof n?(e=n,n=null):t&&"object"==typeof t?(e=t,t=n=null):e=D;else if("object"!=typeof e)throw Error(f+"Argument not an object: "+e);if(r=i.toFixed(t,n),i.c){var o,a=r.split("."),u=+e.groupSize,c=+e.secondaryGroupSize,s=e.groupSeparator||"",l=a[0],h=a[1],d=i.s<0,p=d?l.slice(1):l,v=p.length;if(c&&(o=u,u=c,c=o,v-=o),u>0&&v>0){for(o=v%u||u,l=p.substr(0,o);o<v;o+=u)l+=s+p.substr(o,u);c>0&&(l+=s+p.slice(o)),d&&(l="-"+l)}r=h?l+(e.decimalSeparator||"")+((c=+e.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(e.fractionGroupSeparator||"")):h):l}return(e.prefix||"")+r+(e.suffix||"")},k.toFraction=function(t){var n,r,i,o,a,u,c,s,l,d,p,g,y=this,m=y.c;if(null!=t&&(!(c=new I(t)).isInteger()&&(c.c||1!==c.s)||c.lt(B)))throw Error(f+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+H(c));if(!m)return new I(y);for(n=new I(B),l=r=new I(B),i=s=new I(B),g=v(m),a=n.e=g.length-y.e-1,n.c[0]=h[(u=a%14)<0?14+u:u],t=!t||c.comparedTo(n)>0?a>0?n:l:c,u=S,S=1/0,c=new I(g),s.c[0]=0;d=e(c,n,0,1),1!=(o=r.plus(d.times(i))).comparedTo(t);)r=i,i=o,l=s.plus(d.times(o=l)),s=o,n=c.minus(d.times(o=n)),c=o;return o=e(t.minus(r),i,0,1),s=s.plus(o.times(l)),r=r.plus(o.times(i)),s.s=l.s=y.s,p=e(l,i,a*=2,F).minus(y).abs().comparedTo(e(s,r,a,F).minus(y).abs())<1?[l,i]:[s,r],S=u,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(t,n){return null!=t&&y(t,1,d),U(this,t,n,2)},k.toString=function(t){var n,e=this,i=e.s,o=e.e;return null===o?i?(n="Infinity",i<0&&(n="-"+n)):n="NaN":(null==t?n=o<=T||o>=N?b(v(e.c),o):x(v(e.c),o,"0"):10===t?n=x(v((e=q(new I(e),O+o+1,F)).c),e.e,"0"):(y(t,2,L.length,"Base"),n=r(x(v(e.c),o,"0"),10,t,i,!0)),i<0&&e.c[0]&&(n="-"+n)),n},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=n&&I.set(n),I}()).default=o.BigNumber=o,void 0===(r=function(){return o}.call(n,e,n,t))||(t.exports=r)}()},181:function(t,n,e){"use strict";e.d(n,"b",(function(){return i}));var r=e(188);function i(){r.c.stopImmediatePropagation()}n.a=function(){r.c.preventDefault(),r.c.stopImmediatePropagation()}},185:function(t,n,e){"use strict";e.r(n),e.d(n,"interpolate",(function(){return r.a})),e.d(n,"interpolateArray",(function(){return i.a})),e.d(n,"interpolateBasis",(function(){return o.b})),e.d(n,"interpolateBasisClosed",(function(){return a.a})),e.d(n,"interpolateDate",(function(){return u.a})),e.d(n,"interpolateDiscrete",(function(){return c})),e.d(n,"interpolateHue",(function(){return s})),e.d(n,"interpolateNumber",(function(){return l.a})),e.d(n,"interpolateNumberArray",(function(){return h.a})),e.d(n,"interpolateObject",(function(){return d.a})),e.d(n,"interpolateRound",(function(){return p.a})),e.d(n,"interpolateString",(function(){return v.a})),e.d(n,"interpolateTransformCss",(function(){return g.a})),e.d(n,"interpolateTransformSvg",(function(){return g.b})),e.d(n,"interpolateZoom",(function(){return y.a})),e.d(n,"interpolateRgb",(function(){return m.a})),e.d(n,"interpolateRgbBasis",(function(){return m.b})),e.d(n,"interpolateRgbBasisClosed",(function(){return m.c})),e.d(n,"interpolateHsl",(function(){return w})),e.d(n,"interpolateHslLong",(function(){return _})),e.d(n,"interpolateLab",(function(){return E})),e.d(n,"interpolateHcl",(function(){return k})),e.d(n,"interpolateHclLong",(function(){return B})),e.d(n,"interpolateCubehelix",(function(){return O.b})),e.d(n,"interpolateCubehelixLong",(function(){return O.a})),e.d(n,"piecewise",(function(){return F})),e.d(n,"quantize",(function(){return T}));var r=e(325),i=e(418),o=e(321),a=e(412),u=e(417),c=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},f=e(62),s=function(t,n){var e=Object(f.c)(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},l=e(124),h=e(217),d=e(419),p=e(683),v=e(413),g=e(509),y=e(684),m=e(298),b=e(73);function x(t){return function(n,e){var r=t((n=Object(b.f)(n)).h,(e=Object(b.f)(e)).h),i=Object(f.a)(n.s,e.s),o=Object(f.a)(n.l,e.l),a=Object(f.a)(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=a(t),n+""}}}var w=x(f.c),_=x(f.a),A=e(346);function E(t,n){var e=Object(f.a)((t=Object(A.a)(t)).l,(n=Object(A.a)(n)).l),r=Object(f.a)(t.a,n.a),i=Object(f.a)(t.b,n.b),o=Object(f.a)(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function M(t){return function(n,e){var r=t((n=Object(A.c)(n)).h,(e=Object(A.c)(e)).h),i=Object(f.a)(n.c,e.c),o=Object(f.a)(n.l,e.l),a=Object(f.a)(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=a(t),n+""}}}var k=M(f.c),B=M(f.a),O=e(448);function F(t,n){for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}var T=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e}},186:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"d",(function(){return a})),e.d(n,"e",(function(){return u})),e.d(n,"a",(function(){return f}));var r,i,o,a,u,c=e(420);function f(t){return r=Object(c.a)(t),i=r.format,o=r.parse,a=r.utcFormat,u=r.utcParse,r}f({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",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"]})},188:function(t,n,e){"use strict";e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return s}));var r={},i=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"}));function o(t,n,e){return t=a(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function a(t,n,e){return function(r){var o=i;i=r;try{t.call(this,this.__data__,n,e)}finally{i=o}}}function u(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function c(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function f(t,n,e){var i=r.hasOwnProperty(t.type)?o:a;return function(r,o,a){var u,c=this.__on,f=i(n,o,a);if(c)for(var s=0,l=c.length;s<l;++s)if((u=c[s]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=f,u.capture=e),void(u.value=n);this.addEventListener(t.type,f,e),u={type:t.type,name:t.name,value:n,listener:f,capture:e},c?c.push(u):this.__on=[u]}}function s(t,n,e,r){var o=i;t.sourceEvent=i,i=t;try{return n.apply(e,r)}finally{i=o}}n.b=function(t,n,e){var r,i,o=u(t+""),a=o.length;if(!(arguments.length<2)){for(s=n?f:c,null==e&&(e=!1),r=0;r<a;++r)this.each(s(o[r],n,e));return this}var s=this.node().__on;if(s)for(var l,h=0,d=s.length;h<d;++h)for(r=0,l=s[h];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}},189:function(t,n,e){"use strict";var r=e(299);n.a=function(t){return(t=Object(r.a)(Math.abs(t)))?t[1]:NaN}},19:function(t,n,e){"use strict";e.d(n,"a",(function(){return _})),e.d(n,"b",(function(){return A}));var r=e(13),i=e.n(r),o=e(6),a={Images:[{name:"Joint Photographic Experts Group image",extension:"jpg,jpeg,jpe,thm,mpo",mime:"image/jpeg",description:"",signature:{0:255,1:216,2:255,3:[192,196,219,221,224,225,226,227,228,229,231,232,234,235,236,237,238,254]},extractor:function(t,n){var e=new o.a(t.slice(n));for(;e.hasMore();){var r=e.getBytes(2);if(255!==r[0])throw new Error(`Invalid marker while parsing JPEG at pos ${e.position}: ${r}`);var i=0;switch(r[1]){case 216:case 1:break;case 217:return e.carve();case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 219:case 222:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:i=e.readInt(2,"be"),e.position+=i-2;break;case 223:e.position++;break;case 220:case 221:e.position+=2;break;case 218:i=e.readInt(2,"be"),e.position+=i-2,e.continueUntil(255);break;case 0:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:default:e.continueUntil(255)}}throw new Error("Unable to parse JPEG successfully")}},{name:"Graphics Interchange Format image",extension:"gif",mime:"image/gif",description:"",signature:{0:71,1:73,2:70,3:56,4:[55,57],5:97},extractor:function(t,n){var e=new o.a(t.slice(n));e.continueUntil([33,255]),e.continueUntil([33,249]),e.moveForwardsBy(2);for(;e.hasMore();){for(e.moveForwardsBy(e.readInt(1)+1),e.moveForwardsBy(11);e.getBytes(2)!==[33,249]&&(e.moveBackwardsBy(2),e.moveForwardsBy(e.readInt(1)),e.readInt(1));)e.moveBackwardsBy(1);if(59===e.readInt(1))break;e.moveForwardsBy(1)}return e.carve()}},{name:"Portable Network Graphics image",extension:"png",mime:"image/png",description:"",signature:{0:137,1:80,2:78,3:71,4:13,5:10,6:26,7:10},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveForwardsBy(8);var r=0,i="";for(;"IEND"!==i;)r=e.readInt(4,"be"),i=e.readString(4),e.moveForwardsBy(r+4);return e.carve()}},{name:"WEBP Image",extension:"webp",mime:"image/webp",description:"",signature:{8:87,9:69,10:66,11:80},extractor:null},{name:"Camera Image File Format",extension:"crw",mime:"image/x-canon-crw",description:"",signature:{6:72,7:69,8:65,9:80,10:67,11:67,12:68,13:82},extractor:null},{name:"Canon CR2 raw image",extension:"cr2",mime:"image/x-canon-cr2",description:"",signature:[{0:73,1:73,2:42,3:0,8:67,9:82},{0:77,1:77,2:0,3:42,8:67,9:82}],extractor:null},{name:"Tagged Image File Format image",extension:"tif",mime:"image/tiff",description:"",signature:[{0:73,1:73,2:42,3:0},{0:77,1:77,2:0,3:42}],extractor:null},{name:"Bitmap image",extension:"bmp",mime:"image/bmp",description:"",signature:{0:66,1:77,7:0,9:0,14:[12,40,56,64,108,124],15:0,16:0,17:0},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveForwardsBy(2);var r=e.readInt(4,"le");return e.moveForwardsBy(r-6),e.carve()}},{name:"JPEG Extended Range image",extension:"jxr",mime:"image/vnd.ms-photo",description:"",signature:{0:73,1:73,2:188},extractor:null},{name:"Photoshop image",extension:"psd",mime:"image/vnd.adobe.photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:1,6:0,7:0,8:0,9:0,10:0,11:0},extractor:null},{name:"Photoshop Large Document",extension:"psb",mime:"application/x-photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:2,6:0,7:0,8:0,9:0,10:0,11:0,12:0},extractor:null},{name:"Paint Shop Pro image",extension:"psp",mime:"image/psp",description:"",signature:[{0:80,1:97,2:105,3:110,4:116,5:32,6:83,7:104,8:111,9:112,10:32,11:80,12:114,13:111,14:32,15:73,16:109},{0:126,1:66,2:75,3:0}],extractor:null},{name:"The GIMP image",extension:"xcf",mime:"image/x-xcf",description:"",signature:{0:103,1:105,2:109,3:112,4:32,5:120,6:99,7:102,8:32,9:[102,118],10:[105,48],11:[108,48],12:[101,49,50,51]},extractor:null},{name:"Icon image",extension:"ico",mime:"image/x-icon",description:"",signature:{0:0,1:0,2:1,3:0,4:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],5:0,6:[16,32,48,64,128],7:[16,32,48,64,128],9:0,10:[0,1]},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveTo(4);var r=e.readInt(2,"le");e.moveForwardsBy(8+16*(r-1));var i=e.readInt(4,"le"),a=e.readInt(4,"le");return e.moveTo(a+i),e.carve()}},{name:"Radiance High Dynamic Range image",extension:"hdr",mime:"image/vnd.radiance",description:"",signature:{0:35,1:63,2:82,3:65,4:68,5:73,6:65,7:78,8:67,9:69,10:10},extractor:null},{name:"Sony ARW image",extension:"arw",mime:"image/x-raw",description:"",signature:{0:5,1:0,2:0,3:0,4:65,5:87,6:49,7:46},extractor:null},{name:"Fujifilm Raw Image",extension:"raf",mime:"image/x-raw",description:"",signature:{0:70,1:85,2:74,3:73,4:70,5:73,6:76,7:77,8:67,9:67,10:68,11:45,12:82,13:65,14:87},extractor:null},{name:"Minolta RAW image",extension:"mrw",mime:"image/x-raw",description:"",signature:{0:0,1:77,2:82,3:77},extractor:null},{name:"Adobe Bridge Thumbnail Cache",extension:"bct",mime:"application/octet-stream",description:"",signature:{0:108,1:110,2:98,3:116,4:2,5:0,6:0,7:0},extractor:null},{name:"Microsoft Document Imaging",extension:"mdi",mime:"image/vnd.ms-modi",description:"",signature:{0:69,1:80,2:42,3:0},extractor:null},{name:"Joint Photographic Experts Group image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:47,1:57,2:106,3:47,4:52},extractor:null},{name:"Portable Network Graphics image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:105,1:86,2:66,3:79,4:82,5:119,6:48},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,123d",mime:"application/acad",description:"",signature:{0:65,1:67,2:49,3:48,4:[48,49],5:[48,49,50,51,52,53],6:0},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,dwt",mime:"application/acad",description:"",signature:[{0:65,1:67,2:49,3:48,4:49,5:56,6:0},{0:65,1:67,2:49,3:48,4:50,5:52,6:0},{0:65,1:67,2:49,3:48,4:50,5:55,6:0}],extractor:null},{name:"Targa Image",extension:"tga",mime:"image/x-targa",description:"",signature:[{0:84,1:82,2:85,3:69,4:86,5:73,6:83,7:73,8:79,9:78,10:45,11:88,12:70,13:73,14:76,15:69,16:46}],extractor:function(t,n){var e=new o.a(t);e.moveTo(n-8);var r=e.readInt(4,"le"),i=e.readInt(4,"le");function a(t,n){for(var r=0;r<t;r++){e.moveBackwardsBy(1);var i=e.readInt(n,"le")-1;if(e.moveBackwardsBy(n),i===r)break}}e.moveBackwardsBy(8),r||i?r?(a(65535,2),e.moveBackwardsBy(r)):i&&(a(4294967295,4),e.moveBackwardsBy(6),e.moveBackwardsBy(i)):(!function(){e.moveBackwardsBy(5);for(var t=0;t<1048576;t++){if(e.readInt(2,"le")*e.readInt(2,"le")*e.readInt(1)/8===t-1)break;e.moveBackwardsBy(6)}}(),e.moveBackwardsBy(17));return e.carve(e.position,n+18)}}],Video:[{name:"Matroska Multimedia Container",extension:"mkv",mime:"video/x-matroska",description:"",signature:{31:109,32:97,33:116,34:114,35:111,36:115,37:107,38:97},extractor:null},{name:"WEBM video",extension:"webm",mime:"video/webm",description:"",signature:{0:26,1:69,2:223,3:163},extractor:null},{name:"Flash MP4 video",extension:"f4v",mime:"video/mp4",description:"",signature:{4:102,5:116,6:121,7:112,8:[102,70],9:52,10:[118,86],11:32},extractor:null},{name:"MPEG-4 video",extension:"mp4",mime:"video/mp4",description:"",signature:[{0:0,1:0,2:0,3:[24,32],4:102,5:116,6:121,7:112},{0:51,1:103,2:112,3:53},{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:109,9:112,10:52,11:50,16:109,17:112,18:52,19:49,20:109,21:112,22:52,23:50,24:105,25:115,26:111,27:109}],extractor:null},{name:"M4V video",extension:"m4v",mime:"video/x-m4v",description:"",signature:{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:77,9:52,10:86},extractor:null},{name:"Quicktime video",extension:"mov",mime:"video/quicktime",description:"",signature:{0:0,1:0,2:0,3:20,4:102,5:116,6:121,7:112},extractor:null},{name:"Audio Video Interleave",extension:"avi",mime:"video/x-msvideo",description:"",signature:{0:82,1:73,2:70,3:70,8:65,9:86,10:73},extractor:null},{name:"Windows Media Video",extension:"wmv",mime:"video/x-ms-wmv",description:"",signature:{0:48,1:38,2:178,3:117,4:142,5:102,6:207,7:17,8:166,9:217},extractor:null},{name:"MPEG video",extension:"mpg",mime:"video/mpeg",description:"",signature:{0:0,1:0,2:1,3:186},extractor:null},{name:"Flash Video",extension:"flv",mime:"video/x-flv",description:"",signature:{0:70,1:76,2:86,3:1},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveForwardsBy(5);var r=e.readInt(4,"be");e.moveForwardsBy(r-9);var i=-11;for(;e.hasMore();){var a=e.readInt(4,"be"),u=e.readInt(1);if([8,9,18].indexOf(u)<0){e.moveBackwardsBy(1);break}if(a!==i+11){e.moveBackwardsBy(i+11+5);break}i=e.readInt(3,"be"),e.moveForwardsBy(7+i)}return e.carve()}},{name:"OGG Video",extension:"ogv,ogm,opus,ogx",mime:"video/ogg",description:"",signature:[{0:79,1:103,2:103,3:83,4:0,5:2,28:1,29:118,30:105,31:100,32:101,33:111},{0:79,1:103,2:103,3:83,4:0,5:2,28:128,29:116,30:104,31:101,32:111,33:114,34:97},{0:79,1:103,2:103,3:83,4:0,5:2,28:102,29:105,30:115,31:104,32:101,33:97,34:100}],extractor:null}],Audio:[{name:"Waveform Audio",extension:"wav",mime:"audio/x-wav",description:"",signature:{0:82,1:73,2:70,3:70,8:87,9:65,10:86,11:69},extractor:function(t,n){var e=new o.a(t.slice(n));return e.moveTo(4),e.moveTo(e.readInt(4,"le")+8),e.carve()}},{name:"OGG audio",extension:"ogg",mime:"audio/ogg",description:"",signature:{0:79,1:103,2:103,3:83},extractor:null},{name:"Musical Instrument Digital Interface audio",extension:"midi",mime:"audio/midi",description:"",signature:{0:77,1:84,2:104,3:100},extractor:null},{name:"MPEG-3 audio",extension:"mp3",mime:"audio/mpeg",description:"",signature:[{0:73,1:68,2:51},{0:255,1:251}],extractor:function(t,n){var e=new o.a(t.slice(n)),r=["free",32e3,4e4,48e3,56e3,64e3,8e4,96e3,112e3,128e3,16e4,192e3,224e3,256e3,32e4,"bad"],i=[44100,48e3,32e3,"reserved"];if(e.getBytes(3).toString()===[73,68,51].toString()){e.moveTo(6);var a=e.readInt(1)<<21|e.readInt(1)<<14|e.readInt(1)<<7|e.readInt(1);e.moveForwardsBy(a)}else e.moveTo(0);for(;e.hasMore();){if(e.getBytes(3)===[84,65,71].toString()){e.moveForwardsBy(125);break}if(e.getBytes(2).toString()!==[255,251].toString()){e.moveBackwardsBy(2);break}var u=e.readInt(1),c=r[u>>4],f=i[(15&u)>>2],s=(2&u)>>1;if("free"===c||"bad"===c||"reserved"===f){e.moveBackwardsBy(1);break}var l=Math.floor(144*c/f+s);if(e.position+l>e.length){e.moveTo(e.length);break}e.moveForwardsBy(l-3)}return e.carve()}},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(t,n){var e=new o.a(t.slice(n));return e.continueUntil([37,37,69,79,70]),e.moveForwardsBy(5),e.consumeIf(13),e.consumeIf(10),e.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(t,n){var e=new o.a(t.slice(n)),r=0;if(123!==e.readInt(1))throw new Error("Not a valid RTF file");r++;for(;r>0&&e.hasMore();)switch(e.readInt(1)){case 123:r++;break;case 125:r--;break;case 92:e.consumeIf(92),e.position++}return e.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:u},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:u}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveTo(60);var r=e.readInt(4,"le");e.moveTo(r),e.moveForwardsBy(6);var i=e.readInt(2,"le");e.moveForwardsBy(16);var a=523===e.readInt(2,"le")?112:96;e.moveForwardsBy(a-2),e.moveForwardsBy(32);var u=e.readInt(4,"le"),c=e.readInt(4,"le");if(u>0)return e.moveTo(u+c),e.carve();e.moveForwardsBy(88),e.moveForwardsBy(40*(i-1)),e.moveForwardsBy(16);var f=e.readInt(4,"le"),s=e.readInt(4,"le");return e.moveTo(s+f),e.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveForwardsBy(4);var r=1===e.readInt(1),i=1===e.readInt(1)?"le":"be";e.moveForwardsBy(r?26:34);var a=r?e.readInt(4,i):e.readInt(8,i);e.moveForwardsBy(10);var u=e.readInt(2,i),c=e.readInt(2,i);return e.moveTo(a),e.moveForwardsBy(u*c),e.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:c},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:c},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:u},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(t,n){var e=new o.a(t.slice(n));for(;e.hasMore();){if(e.moveForwardsBy(257),e.getBytes(5).join("")!==[117,115,116,97,114].join("")){e.moveBackwardsBy(262);break}e.moveBackwardsBy(138);var r=0;e.getBytes(11).forEach((function(t,n){r+=(t-48).toString()})),r=512*Math.ceil(parseInt(r,8)/512),e.moveForwardsBy(r+377)}return e.consumeWhile(0),e.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveForwardsBy(3);var r=e.readInt(1);if(e.moveForwardsBy(4),e.readInt(1),e.moveForwardsBy(1),4&r){var i=e.readInt(2,"le");e.moveForwardsby(i)}8&r&&(e.continueUntil(0),e.moveForwardsBy(1));16&r&&(e.continueUntil(0),e.moveForwardsBy(1));2&r&&e.moveForwardsBy(2);return p(e),e.moveForwardsBy(8),e.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(t,n){for(var e=new o.a(t.slice(n)),r=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],i=0;i<r.length&&(e.continueUntil(r[i]),e.getBytes(5).join("")!==r[i].join(""));i++)e.moveTo(0);return e.moveForwardsBy(4),e.carve()}},{name:"7zip",extension:"7z",mime:"application/x-7z-compressed",description:"",signature:{0:55,1:122,2:188,3:175,4:39,5:28},extractor:null},{name:"Zlib Deflate",extension:"zlib",mime:"application/x-deflate",description:"",signature:{0:120,1:[1,156,218,94]},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveForwardsBy(1),32&e.readInt(1)&&e.moveForwardsBy(4);return p(e),e.moveForwardsBy(4),e.carve()}},{name:"xz compression",extension:"xz",mime:"application/x-xz",description:"",signature:{0:253,1:55,2:122,3:88,4:90,5:0},extractor:function(t,n){var e=new o.a(t.slice(n));return e.continueUntil([0,0,0,0,4,89,90]),e.moveForwardsBy(7),e.carve()}},{name:"Tarball",extension:"tar.z",mime:"application/x-gtar",description:"",signature:{0:31,1:[157,160]},extractor:null},{name:"ISO disk image",extension:"iso",mime:"application/octet-stream",description:"ISO 9660 CD/DVD image file",signature:[{32769:67,32770:68,32771:48,32772:48,32773:49},{34817:67,34818:68,34819:48,34820:48,34821:49},{36865:67,36866:68,36867:48,36868:48,36869:49}],extractor:null},{name:"Virtual Machine Disk",extension:"vmdk",mime:"application/vmdk,application/x-virtualbox-vmdk",description:"",signature:{0:75,1:68,2:77,3:86,5:0,6:0,7:0},extractor:null},{name:"Virtual Hard Drive",extension:"vhd",mime:"application/x-vhd",description:"",signature:{0:99,1:111,2:110,3:101,4:99,5:116,6:105,7:120},extractor:null},{name:"Macintosh disk image",extension:"dmf,dmg",mime:"application/octet-stream",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96,7:96},extractor:null},{name:"ARJ Archive",extension:"arj",mime:"application/x-arj-compressed",description:"",signature:{0:96,1:234,8:[0,16,20],9:0,10:2},extractor:null},{name:"WinAce Archive",extension:"ace",mime:"application/x-ace-compressed",description:"",signature:{7:42,8:42,9:65,10:67,11:69,12:42,13:42},extractor:null},{name:"Macintosh BinHex Encoded File",extension:"hqx",mime:"application/mac-binhex",description:"",signature:{11:109,12:117,13:115,14:116,15:32,16:98,17:101,18:32,19:99,20:111,21:110,22:118,23:101,24:114,25:116,26:101,27:100,28:32,29:119,30:105,31:116,32:104,33:32,34:66,35:105,36:110,37:72,38:101,39:120},extractor:null},{name:"ALZip Archive",extension:"alz",mime:"application/octet-stream",description:"",signature:{0:65,1:76,2:90,3:1,4:10,5:0,6:0,7:0},extractor:null},{name:"KGB Compressed Archive",extension:"kgb",mime:"application/x-kgb-compressed",description:"",signature:{0:75,1:71,2:66,3:95,4:97,5:114,6:99,7:104,8:32,9:45},extractor:null},{name:"Microsoft Cabinet",extension:"cab",mime:"vnd.ms-cab-compressed",description:"",signature:{0:77,1:83,2:67,3:70,4:0,5:0,6:0,7:0},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:95,1:39,2:168,3:137},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:80,1:75,2:3,3:4,4:20,5:0,6:8,7:0,8:8,9:0},extractor:u},{name:"lzop compressed",extension:"lzop,lzo",mime:"application/x-lzop",description:"",signature:{0:137,1:76,2:90,3:79,4:0,5:13,6:10,7:26},extractor:function(t,n){var e=new o.a(t.slice(n)),r=0,i=0;e.moveForwardsBy(9);var a=e.readInt(2,"be");e.moveForwardsBy(6);var u=e.readInt(4,"be");2048&a&&e.moveForwardsBy(4);2&u&&r++;512&u&&r++;1&u&&i++;256&u&&i++;e.moveForwardsBy(8),a>=2368&&e.moveForwardsBy(4);var c=e.readInt(1,"be");if(e.moveForwardsBy(c),64&u){var f=e.readInt(4,"be");e.moveForwardsBy(f)}e.moveForwardsBy(4);for(;e.hasMore();){var s=e.readInt(4,"be");if(0===s)break;var l=e.readInt(4,"be"),h=s===l?i:i+r;e.moveForwardsBy(l+4*h)}return e.carve()}},{name:"Linux deb package",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveForwardsBy(8);for(;e.hasMore();){e.moveForwardsBy(48);var r="",i=!0,a=!1,u=void 0;try{for(var c,f=e.getBytes(10)[Symbol.iterator]();!(i=(c=f.next()).done);i=!0){var s=c.value;r+=String.fromCharCode(s)}}catch(t){a=!0,u=t}finally{try{i||null==f.return||f.return()}finally{if(a)throw u}}r=parseInt(r.trim(),10),e.moveForwardsBy(2),e.moveForwardsBy(r)}return e.carve()}},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveTo(16);var r=e.readInt(2);e.moveTo(28);var i=e.readInt(4);return e.moveTo(r*i),e.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveTo(20);var r=e.readInt(4,"le");e.moveTo(r);var i=e.readInt(4,"le");return e.moveForwardsBy(i-4),e.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(t,n){var e=new o.a(t.slice(n));e.moveTo(40);var r=e.readInt(4,"le")-44;e.moveForwardsBy(r);for(;e.hasMore()&&e.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)e.moveForwardsBy(65529);return e.consumeWhile(0),e.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:function(t,n){var e=new o.a(t.slice(n));return e.moveTo(112),e.moveTo(4096*(e.readInt(4,"le")+1)),e.carve()}},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:function(t,n){var e=new o.a(t.slice(n));return e.moveTo(12),e.moveTo(e.readInt(4,"be")),e.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(t,n){var e=new o.a(t.slice(n));return e.moveTo(e.readInt(4,"be")),e.carve()}},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(t,n){var e=new o.a(t.slice(n)),r=0;e.continueUntil([60,112,108,105,115,116]),e.moveForwardsBy(6),r++;for(;r>0&&e.hasMore();)60===e.readInt(1)&&(e.getBytes(5).join("")===[112,108,105,115,116].join("")?r++:e.moveBackwardsBy(5),e.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?r--:e.moveBackwardsBy(7));return e.consumeIf(10),e.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:null},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(t){return t>=1&&t<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(t){return t>=1&&t<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(t){return 0!==t},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:function(t,n){var e=new o.a(t.slice(n));return e.moveTo(52),e.moveTo(e.readInt(4,"le")),e.carve()}},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function u(t,n){var e=new o.a(t.slice(n));e.continueUntil([80,75,5,6]),e.moveForwardsBy(20);var r=e.readInt(2,"le");return e.moveForwardsBy(r),e.carve()}function c(t,n){var e=new o.a(t.slice(n)),r=e.getBytes(4).join("");return e.moveTo(function(t,n,e){var r=28;n&&(r+=4),t.moveTo(16);var i=t.readInt(4,e);return function(t,n,e,r){for(var i=0,o=0;o<r;o++){t.moveTo(n);var a=t.readInt(4,e);25===a?(t.moveTo(n+48),i+=t.readInt(8,e),t.moveTo(n+4),n+=t.readInt(4,e)):1===a&&(t.moveTo(n+36),i+=t.readInt(4,e),t.moveTo(n+4),n+=t.readInt(4,e))}return i}(t,r,e,i)}(e,function(t){return"207250237254"===t||"254237250207"===t}(r),function(t){return"206250237254"===t||"207250237254"===t}(r)?"le":"be")),e.carve()}for(var f=new Array(288),s=0;s<f.length;s++)f[s]=s<=143?8:s<=255?9:s<=279?7:8;var l=m(f),h=m(new Array(30).fill(5)),d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function p(t){for(var n=0;!n;){n=t.readBits(1);var e=t.readBits(2);if(0===e){t.moveForwardsBy(1);var r=t.readInt(2,"le");t.moveForwardsBy(2+r)}else if(1===e)y(t,l,h);else{if(2!==e)throw new Error(`Invalid block type while parsing DEFLATE stream at pos ${t.position}`);for(var i=t.readBits(5)+257,o=t.readBits(5)+1,a=t.readBits(4)+4,u=new Uint8Array(d.length),c=0;c<a;c++)u[d[c]]=t.readBits(3);for(var f=m(u),s=new Uint8Array(i+o),p=void 0,v=void 0,g=void 0,x=0;x<i+o;)switch(p=b(t,f)){case 16:for(v=3+t.readBits(2);v--;)s[x++]=g;break;case 17:for(v=3+t.readBits(3);v--;)s[x++]=0;g=0;break;case 18:for(v=11+t.readBits(7);v--;)s[x++]=0;g=0;break;default:s[x++]=p,g=p}y(t,m(s.subarray(0,i)),m(s.subarray(i)))}}t.bitPos>0&&t.moveForwardsBy(1)}var v=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],g=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function y(t,n,e){for(var r,i=0;(r=b(t,n))&&256!==r;){if(++i>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");r<256||(t.readBits(v[r-257]),r=b(t,e),t.readBits(g[r]))}}function m(t){for(var n=Math.max.apply(Math,t),e=Math.min.apply(Math,t),r=1<<n,i=new Uint32Array(r),o=1,a=0,u=2;o<=n;){for(var c=0;c<t.length;c++)if(t[c]===o){var f=void 0,s=void 0,l=void 0;for(f=0,s=a,l=0;l<o;l++)f=f<<1|1&s,s>>=1;for(var h=o<<16|c,d=f;d<r;d+=u)i[d]=h;a++}o++,a<<=1,u<<=1}return[i,n,e]}function b(t,n){var e=i()(n,2),r=e[0],o=e[1],a=r[t.readBits(o)&(1<<o)-1],u=a>>>16;if(u>o)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${t.position}: ${u}`);return t.moveBackwardsByBits(o-u),65535&a}e(0);
/**
 * File type functions
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 *
 */function x(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.length){for(var r=0;r<t.length;r++)if(w(t[r],n,e))return!0;return!1}return w(t,n,e)}function w(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var r in t){var i=parseInt(r,10)+e;switch(typeof t[r]){case"number":if(n[i]!==t[r])return!1;break;case"object":if(t[r].indexOf(n[i])<0)return!1;break;case"function":if(!t[r](n[i]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${r}`)}}return!0}function _(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(a);if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),!(t&&t.length>1))return[];var e=[],r={};for(var i in a)n.includes(i)&&(r[i]=a[i]);for(var o in r){var u=r[o];u.forEach((function(n){x(n.signature,t)&&e.push(n)}))}return e}function A(t){return function(t,n){var e=_(n);if(!e||!e.length)return!1;if("string"==typeof t)return e.reduce((function(n,e){var r=!!e.mime.startsWith(t)&&e.mime;return n||r}),!1);if(t instanceof RegExp)return e.reduce((function(n,e){var r=!!t.test(e.mime)&&e.mime;return n||r}),!1);throw new Error("Invalid type input.")}("image",t)}},190:function(t,n,e){"use strict";e.d(n,"c",(function(){return W})),e.d(n,"a",(function(){return X}));var r=e(323),i=e(415),o=e(414),a=function(t){return new Array(t.length)};function u(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}u.prototype={constructor:u,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function c(t,n,e,r,i,o){for(var a,c=0,f=n.length,s=o.length;c<s;++c)(a=n[c])?(a.__data__=o[c],r[c]=a):e[c]=new u(t,o[c]);for(;c<f;++c)(a=n[c])&&(i[c]=a)}function f(t,n,e,r,i,o,a){var c,f,s,l={},h=n.length,d=o.length,p=new Array(h);for(c=0;c<h;++c)(f=n[c])&&(p[c]=s="$"+a.call(f,f.__data__,c,n),s in l?i[c]=f:l[s]=f);for(c=0;c<d;++c)(f=l[s="$"+a.call(t,o[c],c,o)])?(r[c]=f,f.__data__=o[c],l[s]=null):e[c]=new u(t,o[c]);for(c=0;c<h;++c)(f=n[c])&&l[p[c]]===f&&(i[c]=f)}function s(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var l=e(322);function h(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,n){return function(){this.setAttribute(t,n)}}function v(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function g(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function y(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var m=e(416);function b(t){return function(){delete this[t]}}function x(t,n){return function(){this[t]=n}}function w(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function _(t){return t.trim().split(/^|\s+/)}function A(t){return t.classList||new E(t)}function E(t){this._node=t,this._names=_(t.getAttribute("class")||"")}function M(t,n){for(var e=A(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function k(t,n){for(var e=A(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function B(t){return function(){M(this,t)}}function O(t){return function(){k(this,t)}}function F(t,n){return function(){(n.apply(this,arguments)?M:k)(this,t)}}E.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function T(){this.textContent=""}function N(t){return function(){this.textContent=t}}function C(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function S(){this.innerHTML=""}function j(t){return function(){this.innerHTML=t}}function P(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function R(){this.nextSibling&&this.parentNode.appendChild(this)}function D(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var L=e(213);function I(){return null}function U(){var t=this.parentNode;t&&t.removeChild(this)}function z(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Y(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var q=e(188),H=e(324);function $(t,n,e){var r=Object(H.a)(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function V(t,n){return function(){return $(this,t,n)}}function G(t,n){return function(){return $(this,t,n.apply(this,arguments))}}var W=[null];function X(t,n){this._groups=t,this._parents=n}function J(){return new X([[document.documentElement]],W)}X.prototype=J.prototype={constructor:X,select:function(t){"function"!=typeof t&&(t=Object(r.a)(t));for(var n=this._groups,e=n.length,i=new Array(e),o=0;o<e;++o)for(var a,u,c=n[o],f=c.length,s=i[o]=new Array(f),l=0;l<f;++l)(a=c[l])&&(u=t.call(a,a.__data__,l,c))&&("__data__"in a&&(u.__data__=a.__data__),s[l]=u);return new X(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var n=this._groups,e=n.length,r=[],o=[],a=0;a<e;++a)for(var u,c=n[a],f=c.length,s=0;s<f;++s)(u=c[s])&&(r.push(t.call(u,u.__data__,s,c)),o.push(u));return new X(r,o)},filter:function(t){"function"!=typeof t&&(t=Object(o.a)(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var a,u=n[i],c=u.length,f=r[i]=[],s=0;s<c;++s)(a=u[s])&&t.call(a,a.__data__,s,u)&&f.push(a);return new X(r,this._parents)},data:function(t,n){if(!t)return g=new Array(this.size()),h=-1,this.each((function(t){g[++h]=t})),g;var e,r=n?f:c,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var a=o.length,u=new Array(a),s=new Array(a),l=new Array(a),h=0;h<a;++h){var d=i[h],p=o[h],v=p.length,g=t.call(d,d&&d.__data__,h,i),y=g.length,m=s[h]=new Array(y),b=u[h]=new Array(y);r(d,p,m,b,l[h]=new Array(v),g,n);for(var x,w,_=0,A=0;_<y;++_)if(x=m[_]){for(_>=A&&(A=_+1);!(w=b[A])&&++A<y;);x._next=w||null}}return(u=new X(u,i))._enter=s,u._exit=l,u},enter:function(){return new X(this._enter||this._groups.map(a),this._parents)},exit:function(){return new X(this._exit||this._groups.map(a),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,f=n[u],s=e[u],l=f.length,h=a[u]=new Array(l),d=0;d<l;++d)(c=f[d]||s[d])&&(h[d]=c);for(;u<r;++u)a[u]=n[u];return new X(a,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=s);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],c=u.length,f=i[o]=new Array(c),l=0;l<c;++l)(a=u[l])&&(f[l]=a);f.sort(n)}return new X(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,n){var e=Object(l.a)(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?d:h:"function"==typeof n?e.local?y:g:e.local?v:p)(e,n))},style:m.a,property:function(t,n){return arguments.length>1?this.each((null==n?b:"function"==typeof n?w:x)(t,n)):this.node()[t]},classed:function(t,n){var e=_(t+"");if(arguments.length<2){for(var r=A(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?F:n?B:O)(e,n))},text:function(t){return arguments.length?this.each(null==t?T:("function"==typeof t?C:N)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?S:("function"==typeof t?P:j)(t)):this.node().innerHTML},raise:function(){return this.each(R)},lower:function(){return this.each(D)},append:function(t){var n="function"==typeof t?t:Object(L.a)(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:Object(L.a)(t),i=null==n?I:"function"==typeof n?n:Object(r.a)(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(U)},clone:function(t){return this.select(t?Y:z)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:q.b,dispatch:function(t,n){return this.each(("function"==typeof n?G:V)(t,n))}};n.b=J},199:function(t,n,e){"use strict";e.d(n,"b",(function(){return d})),e.d(n,"a",(function(){return v})),e.d(n,"c",(function(){return g})),e.d(n,"d",(function(){return y}));var r,i,o=0,a=0,u=0,c=0,f=0,s=0,l="object"==typeof performance&&performance.now?performance:Date,h="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return f||(h(p),f=l.now()+s)}function p(){f=0}function v(){this._call=this._time=this._next=null}function g(t,n,e){var r=new v;return r.restart(t,n,e),r}function y(){d(),++o;for(var t,n=r;n;)(t=f-n._time)>=0&&n._call.call(null,t),n=n._next;--o}function m(){f=(c=l.now())+s,o=a=0;try{y()}finally{o=0,function(){var t,n,e=r,o=1/0;for(;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:r=n);i=t,x(o)}(),f=0}}function b(){var t=l.now(),n=t-c;n>1e3&&(s-=n,c=t)}function x(t){o||(a&&(a=clearTimeout(a)),t-f>24?(t<1/0&&(a=setTimeout(m,t-l.now()-s)),u&&(u=clearInterval(u))):(u||(c=l.now(),u=setInterval(b,1e3)),o=1,h(m)))}v.prototype=g.prototype={constructor:v,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?d():+e)+(null==n?0:+n),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=e,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}}},2:function(t,n){function e(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}},20:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var r=e(0);
/**
 * Hexadecimal functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */function i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!t)return"";t instanceof ArrayBuffer&&(t=new Uint8Array(t));for(var o="",a="0x"===n||"\\x"===n,u=0;u<t.length;u++){var c=t[u].toString(16).padStart(e,"0");o+=a?n+c:c+n,r&&(o+=r),u!==t.length-1&&(u+1)%i==0&&(o+="\n")}var f=r.length+(a?0:n.length);return f?o.slice(0,-f):o}function o(t){if(!t)return"";t instanceof ArrayBuffer&&(t=new Uint8Array(t));for(var n=[],e=0;e<t.length;e++)n.push((t[e]>>>4).toString(16)),n.push((15&t[e]).toString(16));return n.join("")}function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if("None"!==n){var i="Auto"===n?/[^a-f\d]|(0x)/gi:r.b.regexRep(n);t=t.replace(i,"")}for(var o=[],a=0;a<t.length;a+=e)o.push(parseInt(t.substr(a,e),16));return o}["Auto"].concat(["Space","Percent","Comma","Semi-colon","Colon","Line feed","CRLF","0x","0x with comma","\\x","None"])},205:function(t,n,e){"use strict";e.d(n,"f",(function(){return o})),e.d(n,"g",(function(){return a})),e.d(n,"a",(function(){return u})),e.d(n,"b",(function(){return c})),e.d(n,"d",(function(){return f})),e.d(n,"c",(function(){return s})),e.d(n,"e",(function(){return l}));var r=e(327),i=Object(r.a)(","),o=i.parse,a=i.parseRows,u=i.format,c=i.formatBody,f=i.formatRows,s=i.formatRow,l=i.formatValue},206:function(t,n,e){"use strict";e.d(n,"f",(function(){return o})),e.d(n,"g",(function(){return a})),e.d(n,"a",(function(){return u})),e.d(n,"b",(function(){return c})),e.d(n,"d",(function(){return f})),e.d(n,"c",(function(){return s})),e.d(n,"e",(function(){return l}));var r=e(327),i=Object(r.a)("\t"),o=i.parse,a=i.parseRows,u=i.format,c=i.formatBody,f=i.formatRows,s=i.formatRow,l=i.formatValue},213:function(t,n,e){"use strict";var r=e(322),i=e(216);function o(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===i.b&&n.documentElement.namespaceURI===i.b?n.createElement(t):n.createElementNS(e,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}n.a=function(t){var n=Object(r.a)(t);return(n.local?a:o)(n)}},214:function(t,n,e){"use strict";n.a=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]}},216:function(t,n,e){"use strict";e.d(n,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";n.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},217:function(t,n,e){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}e.d(n,"b",(function(){return r})),n.a=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}},218:function(t,n,e){"use strict";e.r(n),e.d(n,"nest",(function(){return a})),e.d(n,"set",(function(){return p})),e.d(n,"map",(function(){return o})),e.d(n,"keys",(function(){return v})),e.d(n,"values",(function(){return g})),e.d(n,"entries",(function(){return y}));function r(){}function i(t,n){var e=new r;if(t instanceof r)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==n)for(;++o<a;)e.set(o,t[o]);else for(;++o<a;)e.set(n(i=t[o],o,t),i)}else if(t)for(var u in t)e.set(u,t[u]);return e}r.prototype=i.prototype={constructor:r,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var o=i,a=function(){var t,n,e,r=[],i=[];function a(e,i,u,c){if(i>=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var f,s,l,h=-1,d=e.length,p=r[i++],v=o(),g=u();++h<d;)(l=v.get(f=p(s=e[h])+""))?l.push(s):v.set(f,[s]);return v.each((function(t,n){c(g,n,a(t,i,u,c))})),g}return e={object:function(t){return a(t,0,u,c)},map:function(t){return a(t,0,f,s)},entries:function(t){return function t(e,o){if(++o>r.length)return e;var a,u=i[o-1];return null!=n&&o>=r.length?a=e.entries():(a=[],e.each((function(n,e){a.push({key:e,values:t(n,o)})}))),null!=u?a.sort((function(t,n){return u(t.key,n.key)})):a}(a(t,0,f,s),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function u(){return{}}function c(t,n,e){t[n]=e}function f(){return o()}function s(t,n,e){t.set(n,e)}function l(){}var h=o.prototype;function d(t,n){var e=new l;if(t instanceof l)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}l.prototype=d.prototype={constructor:l,has:h.has,add:function(t){return this["$"+(t+="")]=t,this},remove:h.remove,clear:h.clear,values:h.keys,size:h.size,empty:h.empty,each:h.each};var p=d,v=function(t){var n=[];for(var e in t)n.push(e);return n},g=function(t){var n=[];for(var e in t)n.push(t[e]);return n},y=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n}},219:function(t,n,e){"use strict";e.d(n,"b",(function(){return o}));var r=e(57),i=Object(r.a)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null},n.a=i;var o=i.range},220:function(t,n,e){"use strict";e.d(n,"b",(function(){return o}));var r=e(57),i=Object(r.a)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null},n.a=i;var o=i.range},221:function(t,n,e){"use strict";e.r(n),e.d(n,"transition",(function(){return Q})),e.d(n,"active",(function(){return it})),e.d(n,"interrupt",(function(){return d}));var r=e(190),i=e(675),o=e(199),a=e(676),u=Object(i.a)("start","end","cancel","interrupt"),c=[],f=function(t,n,e,r,i,f){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function u(o){var s,l,h,d;if(1!==e.state)return f();for(s in i)if((d=i[s]).name===e.name){if(3===d.state)return Object(a.a)(u);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[s]):+s<n&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[s])}if(Object(a.a)((function(){3===e.state&&(e.state=4,e.timer.restart(c,e.delay,e.time),c(o))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(h=e.tween.length),s=0,l=-1;s<h;++s)(d=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(r[++l]=d);r.length=l+1}}function c(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(f),e.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),f())}function f(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Object(o.c)((function(t){e.state=1,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:u,tween:c,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:0})};function s(t,n){var e=h(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function l(t,n){var e=h(t,n);if(e.state>3)throw new Error("too late; already running");return e}function h(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var d=function(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}},p=e(509),v=e(322);function g(t,n){var e,r;return function(){var i=l(this,t),o=i.tween;if(o!==e)for(var a=0,u=(r=e=o).length;a<u;++a)if(r[a].name===n){(r=r.slice()).splice(a,1);break}i.tween=r}}function y(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=l(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},c=0,f=i.length;c<f;++c)if(i[c].name===n){i[c]=u;break}c===f&&i.push(u)}o.tween=i}}function m(t,n,e){var r=t._id;return t.each((function(){var t=l(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return h(t,r).value[n]}}var b=e(73),x=e(124),w=e(298),_=e(413),A=function(t,n){var e;return("number"==typeof n?x.a:n instanceof b.e?w.a:(e=Object(b.e)(n))?(n=e,w.a):_.a)(t,n)};function E(t){return function(){this.removeAttribute(t)}}function M(t){return function(){this.removeAttributeNS(t.space,t.local)}}function k(t,n,e){var r,i,o=e+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=n(r=a,e)}}function B(t,n,e){var r,i,o=e+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=n(r=a,e)}}function O(t,n,e){var r,i,o;return function(){var a,u,c=e(this);if(null!=c)return(a=this.getAttribute(t))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=n(r=a,c));this.removeAttribute(t)}}function F(t,n,e){var r,i,o;return function(){var a,u,c=e(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=n(r=a,c));this.removeAttributeNS(t.space,t.local)}}function T(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function N(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function C(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&N(t,i)),e}return i._value=n,i}function S(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&T(t,i)),e}return i._value=n,i}function j(t,n){return function(){s(this,t).delay=+n.apply(this,arguments)}}function P(t,n){return n=+n,function(){s(this,t).delay=n}}function R(t,n){return function(){l(this,t).duration=+n.apply(this,arguments)}}function D(t,n){return n=+n,function(){l(this,t).duration=n}}function L(t,n){if("function"!=typeof n)throw new Error;return function(){l(this,t).ease=n}}var I=e(414);function U(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?s:l;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}var z=e(323),Y=e(415),q=r.b.prototype.constructor,H=e(416);function $(t){return function(){this.style.removeProperty(t)}}function V(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function G(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&V(t,o,e)),r}return o._value=n,o}function W(t){return function(n){this.textContent=t.call(this,n)}}function X(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&W(r)),n}return r._value=t,r}var J=0;function Z(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Q(t){return Object(r.b)().transition(t)}function K(){return++J}var tt=r.b.prototype;Z.prototype=Q.prototype={constructor:Z,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Object(z.a)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],l=s.length,d=o[a]=new Array(l),p=0;p<l;++p)(u=s[p])&&(c=t.call(u,u.__data__,p,s))&&("__data__"in u&&(c.__data__=u.__data__),d[p]=c,f(d[p],n,e,p,d,h(u,e)));return new Z(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Object(Y.a)(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],l=s.length,d=0;d<l;++d)if(c=s[d]){for(var p,v=t.call(c,c.__data__,d,s),g=h(c,e),y=0,m=v.length;y<m;++y)(p=v[y])&&f(p,n,e,y,v,g);o.push(v),a.push(c)}return new Z(o,a,n,e)},filter:function(t){"function"!=typeof t&&(t=Object(I.a)(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,c=r[i]=[],f=0;f<u;++f)(o=a[f])&&t.call(o,o.__data__,f,a)&&c.push(o);return new Z(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,f=n[u],s=e[u],l=f.length,h=a[u]=new Array(l),d=0;d<l;++d)(c=f[d]||s[d])&&(h[d]=c);for(;u<r;++u)a[u]=n[u];return new Z(a,this._parents,this._name,this._id)},selection:function(){return new q(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=K(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var l=h(a,n);f(a,t,e,s,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Z(r,this._parents,t,e)},call:tt.call,nodes:tt.nodes,node:tt.node,size:tt.size,empty:tt.empty,each:tt.each,on:function(t,n){var e=this._id;return arguments.length<2?h(this.node(),e).on.on(t):this.each(U(e,t,n))},attr:function(t,n){var e=Object(v.a)(t),r="transform"===e?p.b:A;return this.attrTween(t,"function"==typeof n?(e.local?F:O)(e,r,m(this,"attr."+t,n)):null==n?(e.local?M:E)(e):(e.local?B:k)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=Object(v.a)(t);return this.tween(e,(r.local?C:S)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?p.a:A;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Object(H.b)(this,t),a=(this.style.removeProperty(t),Object(H.b)(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,$(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var a=Object(H.b)(this,t),u=e(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=Object(H.b)(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u))}}(t,r,m(this,"style."+t,n))).each(function(t,n){var e,r,i,o,a="style."+n,u="end."+a;return function(){var c=l(this,t),f=c.on,s=null==c.value[a]?o||(o=$(n)):void 0;f===e&&i===s||(r=(e=f).copy()).on(u,i=s),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var a=Object(H.b)(this,t);return a===o?null:a===r?i:i=n(r=a,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,G(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(m(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,X(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=h(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?g:y)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?j:P)(n,t)):h(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?R:D)(n,t)):h(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(L(n,t)):h(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,a){var u={value:a},c={value:function(){0==--i&&o()}};e.each((function(){var e=l(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(u),n._.interrupt.push(u),n._.end.push(c)),e.on=n}))}))}};var nt={time:null,delay:0,duration:250,ease:e(345).b};function et(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return nt.time=Object(o.b)(),nt;return e}r.b.prototype.interrupt=function(t){return this.each((function(){d(this,t)}))},r.b.prototype.transition=function(t){var n,e;t instanceof Z?(n=t._id,t=t._name):(n=K(),(e=nt).time=Object(o.b)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var u,c=r[a],s=c.length,l=0;l<s;++l)(u=c[l])&&f(u,t,n,l,c,e||et(u,n));return new Z(r,this._parents,t,n)};var rt=[null],it=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new Z([[t]],rt,n,+r);return null}},226:function(t,n,e){"use strict";e.r(n);var r=e(679);e.d(n,"path",(function(){return r.a}))},23:function(t,n){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},24:function(t,n,e){!function(t){var n,e,r,i=String.fromCharCode;function o(t){for(var n,e,r=[],i=0,o=t.length;i<o;)(n=t.charCodeAt(i++))>=55296&&n<=56319&&i<o?56320==(64512&(e=t.charCodeAt(i++)))?r.push(((1023&n)<<10)+(1023&e)+65536):(r.push(n),i--):r.push(n);return r}function a(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function u(t,n){return i(t>>n&63|128)}function c(t){if(0==(4294967168&t))return i(t);var n="";return 0==(4294965248&t)?n=i(t>>6&31|192):0==(4294901760&t)?(a(t),n=i(t>>12&15|224),n+=u(t,6)):0==(4292870144&t)&&(n=i(t>>18&7|240),n+=u(t,12),n+=u(t,6)),n+=i(63&t|128)}function f(){if(r>=e)throw Error("Invalid byte index");var t=255&n[r];if(r++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function s(){var t,i;if(r>e)throw Error("Invalid byte index");if(r==e)return!1;if(t=255&n[r],r++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|f())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|f()<<6|f())>=2048)return a(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|f()<<12|f()<<6|f())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var n=o(t),e=n.length,r=-1,i="";++r<e;)i+=c(n[r]);return i},t.decode=function(t){n=o(t),e=n.length,r=0;for(var a,u=[];!1!==(a=s());)u.push(a);return function(t){for(var n,e=t.length,r=-1,o="";++r<e;)(n=t[r])>65535&&(o+=i((n-=65536)>>>10&1023|55296),n=56320|1023&n),o+=i(n);return o}(u)}}(n)},25:function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},26:function(t,n,e){var r,i;!function(o,a){"use strict";void 0===(i="function"==typeof(r=function(){var t=function(){},n="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),e=["trace","debug","info","warn","error"];function r(t,n){var e=t[n];if("function"==typeof e.bind)return e.bind(t);try{return Function.prototype.bind.call(e,t)}catch(n){return function(){return Function.prototype.apply.apply(e,[t,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(e){return"debug"===e&&(e="log"),"undefined"!=typeof console&&("trace"===e&&n?i:void 0!==console[e]?r(console,e):void 0!==console.log?r(console,"log"):t)}function a(n,r){for(var i=0;i<e.length;i++){var o=e[i];this[o]=i<n?t:this.methodFactory(o,n,r)}this.log=this.debug}function u(t,n,e){return function(){"undefined"!=typeof console&&(a.call(this,n,e),this[t].apply(this,arguments))}}function c(t,n,e){return o(t)||u.apply(this,arguments)}function f(t,n,r){var i,o=this,u="loglevel";function f(){var t;if("undefined"!=typeof window){try{t=window.localStorage[u]}catch(t){}if(void 0===t)try{var n=window.document.cookie,e=n.indexOf(encodeURIComponent(u)+"=");-1!==e&&(t=/^([^;]+)/.exec(n.slice(e))[1])}catch(t){}return void 0===o.levels[t]&&(t=void 0),t}}t&&(u+=":"+t),o.name=t,o.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},o.methodFactory=r||c,o.getLevel=function(){return i},o.setLevel=function(n,r){if("string"==typeof n&&void 0!==o.levels[n.toUpperCase()]&&(n=o.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(i=n,!1!==r&&function(t){var n=(e[t]||"silent").toUpperCase();if("undefined"!=typeof window){try{return void(window.localStorage[u]=n)}catch(t){}try{window.document.cookie=encodeURIComponent(u)+"="+n+";"}catch(t){}}}(n),a.call(o,n,t),"undefined"==typeof console&&n<o.levels.SILENT)return"No console available for logging"},o.setDefaultLevel=function(t){f()||o.setLevel(t,!1)},o.enableAll=function(t){o.setLevel(o.levels.TRACE,t)},o.disableAll=function(t){o.setLevel(o.levels.SILENT,t)};var s=f();null==s&&(s=null==n?"WARN":n),o.setLevel(s,!1)}var s=new f,l={};s.getLogger=function(t){if("string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var n=l[t];return n||(n=l[t]=new f(t,s.getLevel(),s.methodFactory)),n};var h="undefined"!=typeof window?window.log:void 0;return s.noConflict=function(){return"undefined"!=typeof window&&window.log===s&&(window.log=h),s},s.getLoggers=function(){return l},s})?r.call(n,e,n,t):r)||(t.exports=i)}()},27:function(t,n){var e,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,f=[],s=!1,l=-1;function h(){s&&c&&(s=!1,c.length?f=c.concat(f):l=-1,f.length&&d())}function d(){if(!s){var t=u(h);s=!0;for(var n=f.length;n;){for(c=f,f=[];++l<n;)c&&c[l].run();l=-1,n=f.length}c=null,s=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(n){try{return r.call(null,t)}catch(n){return r.call(this,t)}}}(t)}}function p(t,n){this.fun=t,this.array=n}function v(){}i.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];f.push(new p(t,n)),1!==f.length||s||u(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},29:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=e(0);
/**
 * Binary functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Space",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,i=r.b.regexRep(n);t=t.replace(i,"");for(var o=[],a=0;a<t.length;a+=e)o.push(parseInt(t.substr(a,e),2));return o}},298:function(t,n,e){"use strict";e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return f}));var r=e(73),i=e(321),o=e(412),a=e(62);function u(t){return function(n){var e,i,o=n.length,a=new Array(o),u=new Array(o),c=new Array(o);for(e=0;e<o;++e)i=Object(r.g)(n[e]),a[e]=i.r||0,u[e]=i.g||0,c[e]=i.b||0;return a=t(a),u=t(u),c=t(c),i.opacity=1,function(t){return i.r=a(t),i.g=u(t),i.b=c(t),i+""}}}n.a=function t(n){var e=Object(a.b)(n);function i(t,n){var i=e((t=Object(r.g)(t)).r,(n=Object(r.g)(n)).r),o=e(t.g,n.g),u=e(t.b,n.b),c=Object(a.a)(t.opacity,n.opacity);return function(n){return t.r=i(n),t.g=o(n),t.b=u(n),t.opacity=c(n),t+""}}return i.gamma=t,i}(1);var c=u(i.b),f=u(o.a)},299:function(t,n,e){"use strict";n.a=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}},3:function(t,n){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e},30:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=e(0);
/**
 * Decimal functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto";n=r.b.charRep(n);var e=[],i=t.split(n);""===i[i.length-1]&&(i=i.slice(0,i.length-1));for(var o=0;o<i.length;o++)e[o]=parseInt(i[o],10);return e}},308:function(t,n,e){"use strict";e.r(n);var r=e(675);e.d(n,"dispatch",(function(){return r.a}))},321:function(t,n,e){"use strict";function r(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}e.d(n,"a",(function(){return r})),n.b=function(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),o=t[i],a=t[i+1],u=i>0?t[i-1]:2*o-a,c=i<n-1?t[i+2]:2*a-o;return r((e-i/n)*n,u,o,a,c)}}},322:function(t,n,e){"use strict";var r=e(216);n.a=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),r.a.hasOwnProperty(n)?{space:r.a[n],local:t}:t}},323:function(t,n,e){"use strict";function r(){}n.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},324:function(t,n,e){"use strict";n.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},325:function(t,n,e){"use strict";var r=e(73),i=e(298),o=e(418),a=e(417),u=e(124),c=e(419),f=e(413),s=e(338),l=e(217);n.a=function(t,n){var e,h=typeof n;return null==n||"boolean"===h?Object(s.a)(n):("number"===h?u.a:"string"===h?(e=Object(r.e)(n))?(n=e,i.a):f.a:n instanceof r.e?i.a:n instanceof Date?a.a:Object(l.b)(n)?l.a:Array.isArray(n)?o.b:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?c.a:u.a)(t,n)}},326:function(t,n,e){"use strict";e.d(n,"b",(function(){return o}));var r=e(332),i=e(181);function o(t,n){var e=t.document.documentElement,o=Object(r.a)(t).on("dragstart.drag",null);n&&(o.on("click.drag",i.a,!0),setTimeout((function(){o.on("click.drag",null)}),0)),"onselectstart"in e?o.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}n.a=function(t){var n=t.document.documentElement,e=Object(r.a)(t).on("dragstart.drag",i.a,!0);"onselectstart"in n?e.on("selectstart.drag",i.a,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}},327:function(t,n,e){"use strict";var r={},i={};function o(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function a(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function u(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function c(t){var n,e=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((n=t.getUTCFullYear())<0?"-"+u(-n,6):n>9999?"+"+u(n,6):u(n,4))+"-"+u(t.getUTCMonth()+1,2)+"-"+u(t.getUTCDate(),2)+(o?"T"+u(e,2)+":"+u(r,2)+":"+u(i,2)+"."+u(o,3)+"Z":i?"T"+u(e,2)+":"+u(r,2)+":"+u(i,2)+"Z":r||e?"T"+u(e,2)+":"+u(r,2)+"Z":"")}n.a=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function u(t,n){var o,a=[],u=t.length,c=0,f=0,s=u<=0,l=!1;function h(){if(s)return i;if(l)return l=!1,r;var n,o,a=c;if(34===t.charCodeAt(a)){for(;c++<u&&34!==t.charCodeAt(c)||34===t.charCodeAt(++c););return(n=c)>=u?s=!0:10===(o=t.charCodeAt(c++))?l=!0:13===o&&(l=!0,10===t.charCodeAt(c)&&++c),t.slice(a+1,n-1).replace(/""/g,'"')}for(;c<u;){if(10===(o=t.charCodeAt(n=c++)))l=!0;else if(13===o)l=!0,10===t.charCodeAt(c)&&++c;else if(o!==e)continue;return t.slice(a,n)}return s=!0,t.slice(a,u)}for(10===t.charCodeAt(u-1)&&--u,13===t.charCodeAt(u-1)&&--u;(o=h())!==i;){for(var d=[];o!==r&&o!==i;)d.push(o),o=h();n&&null==(d=n(d,f++))||a.push(d)}return a}function f(n,e){return n.map((function(n){return e.map((function(t){return l(n[t])})).join(t)}))}function s(n){return n.map(l).join(t)}function l(t){return null==t?"":t instanceof Date?c(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,r,i=u(t,(function(t,i){if(e)return e(t,i-1);r=t,e=n?function(t,n){var e=o(t);return function(r,i){return n(e(r),i,t)}}(t,n):o(t)}));return i.columns=r||[],i},parseRows:u,format:function(n,e){return null==e&&(e=a(n)),[e.map(l).join(t)].concat(f(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=a(t)),f(t,n).join("\n")},formatRows:function(t){return t.map(s).join("\n")},formatRow:s,formatValue:l}}},328:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"a",(function(){return o}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(n=r.exec(t)))throw new Error("invalid format: "+t);var n;return new o({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},331:function(t,n,e){"use strict";var r=e(188);n.a=function(){for(var t,n=r.c;t=n.sourceEvent;)n=t;return n}},332:function(t,n,e){"use strict";var r=e(190);n.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},338:function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},339:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return i}));var r=Math.PI/180,i=180/Math.PI},34:function(t,n,e){"use strict";e.r(n),e.d(n,"bisect",(function(){return c})),e.d(n,"bisectRight",(function(){return a})),e.d(n,"bisectLeft",(function(){return u})),e.d(n,"ascending",(function(){return r})),e.d(n,"bisector",(function(){return i})),e.d(n,"cross",(function(){return l})),e.d(n,"descending",(function(){return h})),e.d(n,"deviation",(function(){return v})),e.d(n,"extent",(function(){return g})),e.d(n,"histogram",(function(){return T})),e.d(n,"thresholdFreedmanDiaconis",(function(){return C})),e.d(n,"thresholdScott",(function(){return S})),e.d(n,"thresholdSturges",(function(){return F})),e.d(n,"max",(function(){return j})),e.d(n,"mean",(function(){return P})),e.d(n,"median",(function(){return R})),e.d(n,"merge",(function(){return D})),e.d(n,"min",(function(){return L})),e.d(n,"pairs",(function(){return f})),e.d(n,"permute",(function(){return I})),e.d(n,"quantile",(function(){return N})),e.d(n,"range",(function(){return _})),e.d(n,"scan",(function(){return U})),e.d(n,"shuffle",(function(){return z})),e.d(n,"sum",(function(){return Y})),e.d(n,"ticks",(function(){return k})),e.d(n,"tickIncrement",(function(){return B})),e.d(n,"tickStep",(function(){return O})),e.d(n,"transpose",(function(){return q})),e.d(n,"variance",(function(){return p})),e.d(n,"zip",(function(){return $}));var r=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},i=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return r(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}};var o=i(r),a=o.right,u=o.left,c=a,f=function(t,n){null==n&&(n=s);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);e<r;)o[e]=n(i,i=t[++e]);return o};function s(t,n){return[t,n]}var l=function(t,n,e){var r,i,o,a,u=t.length,c=n.length,f=new Array(u*c);for(null==e&&(e=s),r=o=0;r<u;++r)for(a=t[r],i=0;i<c;++i,++o)f[o]=e(a,n[i]);return f},h=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,n){var e,r,i=t.length,o=0,a=-1,u=0,c=0;if(null==n)for(;++a<i;)isNaN(e=d(t[a]))||(c+=(r=e-u)*(e-(u+=r/++o)));else for(;++a<i;)isNaN(e=d(n(t[a],a,t)))||(c+=(r=e-u)*(e-(u+=r/++o)));if(o>1)return c/(o-1)},v=function(t,n){var e=p(t,n);return e?Math.sqrt(e):e},g=function(t,n){var e,r,i,o=t.length,a=-1;if(null==n){for(;++a<o;)if(null!=(e=t[a])&&e>=e)for(r=i=e;++a<o;)null!=(e=t[a])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++a<o;)if(null!=(e=n(t[a],a,t))&&e>=e)for(r=i=e;++a<o;)null!=(e=n(t[a],a,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]},y=Array.prototype,m=y.slice,b=y.map,x=function(t){return function(){return t}},w=function(t){return t},_=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o},A=Math.sqrt(50),E=Math.sqrt(10),M=Math.sqrt(2),k=function(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=B(t,n,e))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),n=Math.floor(n/a),o=new Array(i=Math.ceil(n-t+1));++u<i;)o[u]=(t+u)*a;else for(t=Math.floor(t*a),n=Math.ceil(n*a),o=new Array(i=Math.ceil(t-n+1));++u<i;)o[u]=(t-u)/a;return r&&o.reverse(),o};function B(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=A?10:o>=E?5:o>=M?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=A?10:o>=E?5:o>=M?2:1)}function O(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=A?i*=10:o>=E?i*=5:o>=M&&(i*=2),n<t?-i:i}var F=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},T=function(){var t=w,n=g,e=F;function r(r){var i,o,a=r.length,u=new Array(a);for(i=0;i<a;++i)u[i]=t(r[i],i,r);var f=n(u),s=f[0],l=f[1],h=e(u,s,l);Array.isArray(h)||(h=O(s,l,h),h=_(Math.ceil(s/h)*h,l,h));for(var d=h.length;h[0]<=s;)h.shift(),--d;for(;h[d-1]>l;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:s,p.x1=i<d?h[i]:l;for(i=0;i<a;++i)s<=(o=u[i])&&o<=l&&v[c(h,o,0,d)].push(r[i]);return v}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:x(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:x([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?x(m.call(t)):x(t),r):e},r},N=function(t,n,e){if(null==e&&(e=d),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}},C=function(t,n,e){return t=b.call(t,d).sort(r),Math.ceil((e-n)/(2*(N(t,.75)-N(t,.25))*Math.pow(t.length,-1/3)))},S=function(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))},j=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&e>r&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&e>r&&(r=e);return r},P=function(t,n){var e,r=t.length,i=r,o=-1,a=0;if(null==n)for(;++o<r;)isNaN(e=d(t[o]))?--i:a+=e;else for(;++o<r;)isNaN(e=d(n(t[o],o,t)))?--i:a+=e;if(i)return a/i},R=function(t,n){var e,i=t.length,o=-1,a=[];if(null==n)for(;++o<i;)isNaN(e=d(t[o]))||a.push(e);else for(;++o<i;)isNaN(e=d(n(t[o],o,t)))||a.push(e);return N(a.sort(r),.5)},D=function(t){for(var n,e,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(e=new Array(a);--i>=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e},L=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&r>e&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&r>e&&(r=e);return r},I=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},U=function(t,n){if(e=t.length){var e,i,o=0,a=0,u=t[a];for(null==n&&(n=r);++o<e;)(n(i=t[o],u)<0||0!==n(u,u))&&(u=i,a=o);return 0===n(u,u)?a:void 0}},z=function(t,n,e){for(var r,i,o=(null==e?t.length:e)-(n=null==n?0:+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},Y=function(t,n){var e,r=t.length,i=-1,o=0;if(null==n)for(;++i<r;)(e=+t[i])&&(o+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(o+=e);return o},q=function(t){if(!(i=t.length))return[];for(var n=-1,e=L(t,H),r=new Array(e);++n<e;)for(var i,o=-1,a=r[n]=new Array(i);++o<i;)a[o]=t[o][n];return r};function H(t){return t.length}var $=function(){return q(arguments)}},345:function(t,n,e){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}e.d(n,"a",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"b",(function(){return o}))},346:function(t,n,e){"use strict";e.d(n,"b",(function(){return f})),e.d(n,"a",(function(){return s})),e.d(n,"d",(function(){return y})),e.d(n,"c",(function(){return m}));var r=e(125),i=e(73),o=e(339),a=6/29,u=3*a*a;function c(t){if(t instanceof l)return new l(t.l,t.a,t.b,t.opacity);if(t instanceof b)return x(t);t instanceof i.b||(t=Object(i.h)(t));var n,e,r=v(t.r),o=v(t.g),a=v(t.b),u=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?n=e=u:(n=h((.4360747*r+.3850649*o+.1430804*a)/.96422),e=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new l(116*u-16,500*(n-u),200*(u-e),t.opacity)}function f(t,n){return new l(t,0,0,null==n?1:n)}function s(t,n,e,r){return 1===arguments.length?c(t):new l(t,n,e,null==r?1:r)}function l(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function h(t){return t>.008856451679035631?Math.pow(t,1/3):t/u+4/29}function d(t){return t>a?t*t*t:u*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function v(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t){if(t instanceof b)return new b(t.h,t.c,t.l,t.opacity);if(t instanceof l||(t=c(t)),0===t.a&&0===t.b)return new b(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*o.b;return new b(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function y(t,n,e,r){return 1===arguments.length?g(t):new b(e,n,t,null==r?1:r)}function m(t,n,e,r){return 1===arguments.length?g(t):new b(t,n,e,null==r?1:r)}function b(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function x(t){if(isNaN(t.h))return new l(t.l,0,0,t.opacity);var n=t.h*o.a;return new l(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}Object(r.a)(l,s,Object(r.b)(i.a,{brighter:function(t){return new l(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new l(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return n=.96422*d(n),t=1*d(t),e=.82521*d(e),new i.b(p(3.1338561*n-1.6168667*t-.4906146*e),p(-.9787684*n+1.9161415*t+.033454*e),p(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Object(r.a)(b,m,Object(r.b)(i.a,{brighter:function(t){return new b(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new b(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return x(this).rgb()}}))},347:function(t,n,e){"use strict";e.d(n,"b",(function(){return a}));var r=e(57),i=e(60),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*i.d)}),(function(t,n){return(n-t)/i.d}),(function(t){return t.getUTCSeconds()}));n.a=o;var a=o.range},348:function(t,n,e){"use strict";e.d(n,"b",(function(){return o}));var r=e(57),i=Object(r.a)((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.a)((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):i:null},n.a=i;var o=i.range},377:function(t,n,e){"use strict";e.d(n,"a",(function(){return a}));var r=e(57),i=e(60),o=Object(r.a)((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.a}),(function(t){return t.getDate()-1}));n.b=o;var a=o.range},378:function(t,n,e){"use strict";e.d(n,"b",(function(){return a}));var r=e(57),i=e(60),o=Object(r.a)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/i.a}),(function(t){return t.getUTCDate()-1}));n.a=o;var a=o.range},389:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return u}));var r,i,o,a=e(421);function u(t){return r=Object(a.a)(t),i=r.format,o=r.formatPrefix,r}u({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},390:function(t,n,e){"use strict";e.r(n);var r=e(57);e.d(n,"timeInterval",(function(){return r.a}));var i=e(348);e.d(n,"timeMillisecond",(function(){return i.a})),e.d(n,"timeMilliseconds",(function(){return i.b})),e.d(n,"utcMillisecond",(function(){return i.a})),e.d(n,"utcMilliseconds",(function(){return i.b}));var o=e(347);e.d(n,"timeSecond",(function(){return o.a})),e.d(n,"timeSeconds",(function(){return o.b})),e.d(n,"utcSecond",(function(){return o.a})),e.d(n,"utcSeconds",(function(){return o.b}));var a=e(452);e.d(n,"timeMinute",(function(){return a.a})),e.d(n,"timeMinutes",(function(){return a.b}));var u=e(451);e.d(n,"timeHour",(function(){return u.a})),e.d(n,"timeHours",(function(){return u.b}));var c=e(377);e.d(n,"timeDay",(function(){return c.b})),e.d(n,"timeDays",(function(){return c.a}));var f=e(71);e.d(n,"timeWeek",(function(){return f.g})),e.d(n,"timeWeeks",(function(){return f.h})),e.d(n,"timeSunday",(function(){return f.g})),e.d(n,"timeSundays",(function(){return f.h})),e.d(n,"timeMonday",(function(){return f.c})),e.d(n,"timeMondays",(function(){return f.d})),e.d(n,"timeTuesday",(function(){return f.k})),e.d(n,"timeTuesdays",(function(){return f.l})),e.d(n,"timeWednesday",(function(){return f.m})),e.d(n,"timeWednesdays",(function(){return f.n})),e.d(n,"timeThursday",(function(){return f.i})),e.d(n,"timeThursdays",(function(){return f.j})),e.d(n,"timeFriday",(function(){return f.a})),e.d(n,"timeFridays",(function(){return f.b})),e.d(n,"timeSaturday",(function(){return f.e})),e.d(n,"timeSaturdays",(function(){return f.f}));var s=e(450);e.d(n,"timeMonth",(function(){return s.a})),e.d(n,"timeMonths",(function(){return s.b}));var l=e(219);e.d(n,"timeYear",(function(){return l.a})),e.d(n,"timeYears",(function(){return l.b}));var h=e(455);e.d(n,"utcMinute",(function(){return h.a})),e.d(n,"utcMinutes",(function(){return h.b}));var d=e(454);e.d(n,"utcHour",(function(){return d.a})),e.d(n,"utcHours",(function(){return d.b}));var p=e(378);e.d(n,"utcDay",(function(){return p.a})),e.d(n,"utcDays",(function(){return p.b}));var v=e(72);e.d(n,"utcWeek",(function(){return v.g})),e.d(n,"utcWeeks",(function(){return v.h})),e.d(n,"utcSunday",(function(){return v.g})),e.d(n,"utcSundays",(function(){return v.h})),e.d(n,"utcMonday",(function(){return v.c})),e.d(n,"utcMondays",(function(){return v.d})),e.d(n,"utcTuesday",(function(){return v.k})),e.d(n,"utcTuesdays",(function(){return v.l})),e.d(n,"utcWednesday",(function(){return v.m})),e.d(n,"utcWednesdays",(function(){return v.n})),e.d(n,"utcThursday",(function(){return v.i})),e.d(n,"utcThursdays",(function(){return v.j})),e.d(n,"utcFriday",(function(){return v.a})),e.d(n,"utcFridays",(function(){return v.b})),e.d(n,"utcSaturday",(function(){return v.e})),e.d(n,"utcSaturdays",(function(){return v.f}));var g=e(453);e.d(n,"utcMonth",(function(){return g.a})),e.d(n,"utcMonths",(function(){return g.b}));var y=e(220);e.d(n,"utcYear",(function(){return y.a})),e.d(n,"utcYears",(function(){return y.b}))},4:function(t,n,e){var r=e(44),i=e(23);t.exports=function(t,n){return!n||"object"!==r(n)&&"function"!=typeof n?i(t):n}},40:function(t,n){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},411:function(t,n,e){"use strict";e.r(n),e.d(n,"now",(function(){return r.b})),e.d(n,"timer",(function(){return r.c})),e.d(n,"timerFlush",(function(){return r.d})),e.d(n,"timeout",(function(){return i.a})),e.d(n,"interval",(function(){return o}));var r=e(199),i=e(676),o=function(t,n,e){var i=new r.a,o=n;return null==n?(i.restart(t,n,e),i):(n=+n,e=null==e?Object(r.b)():+e,i.restart((function r(a){a+=o,i.restart(r,o+=n,e),t(a)}),n,e),i)}},412:function(t,n,e){"use strict";var r=e(321);n.a=function(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n),o=t[(i+n-1)%n],a=t[i%n],u=t[(i+1)%n],c=t[(i+2)%n];return Object(r.a)((e-i/n)*n,o,a,u,c)}}},413:function(t,n,e){"use strict";var r=e(124),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");n.a=function(t,n){var e,a,u,c=i.lastIndex=o.lastIndex=0,f=-1,s=[],l=[];for(t+="",n+="";(e=i.exec(t))&&(a=o.exec(n));)(u=a.index)>c&&(u=n.slice(c,u),s[f]?s[f]+=u:s[++f]=u),(e=e[0])===(a=a[0])?s[f]?s[f]+=a:s[++f]=a:(s[++f]=null,l.push({i:f,x:Object(r.a)(e,a)})),c=o.lastIndex;return c<n.length&&(u=n.slice(c),s[f]?s[f]+=u:s[++f]=u),s.length<2?l[0]?function(t){return function(n){return t(n)+""}}(l[0].x):function(t){return function(){return t}}(n):(n=l.length,function(t){for(var e,r=0;r<n;++r)s[(e=l[r]).i]=e.x(t);return s.join("")})}},414:function(t,n,e){"use strict";n.a=function(t){return function(){return this.matches(t)}}},415:function(t,n,e){"use strict";function r(){return[]}n.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},416:function(t,n,e){"use strict";e.d(n,"b",(function(){return u}));var r=e(324);function i(t){return function(){this.style.removeProperty(t)}}function o(t,n,e){return function(){this.style.setProperty(t,n,e)}}function a(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function u(t,n){return t.style.getPropertyValue(n)||Object(r.a)(t).getComputedStyle(t,null).getPropertyValue(n)}n.a=function(t,n,e){return arguments.length>1?this.each((null==n?i:"function"==typeof n?a:o)(t,n,null==e?"":e)):u(this.node(),t)}},417:function(t,n,e){"use strict";n.a=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}},418:function(t,n,e){"use strict";e.d(n,"b",(function(){return o}));var r=e(325),i=e(217);function o(t,n){var e,i=n?n.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),u=new Array(i);for(e=0;e<o;++e)a[e]=Object(r.a)(t[e],n[e]);for(;e<i;++e)u[e]=n[e];return function(t){for(e=0;e<o;++e)u[e]=a[e](t);return u}}n.a=function(t,n){return(Object(i.b)(n)?i.a:o)(t,n)}},419:function(t,n,e){"use strict";var r=e(325);n.a=function(t,n){var e,i={},o={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?i[e]=Object(r.a)(t[e],n[e]):o[e]=n[e];return function(t){for(e in i)o[e]=i[e](t);return o}}},420:function(t,n,e){"use strict";e.d(n,"a",(function(){return h}));var r=e(72),i=e(378),o=e(71),a=e(377),u=e(219),c=e(220);function f(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function s(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function l(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function h(t){var n=t.dateTime,e=t.date,u=t.time,c=t.periods,h=t.days,p=t.shortDays,v=t.months,g=t.shortMonths,y=b(c),m=x(c),Et=b(h),Mt=x(h),kt=b(p),Bt=x(p),Ot=b(v),Ft=x(v),Tt=b(g),Nt=x(g),Ct={a:function(t){return p[t.getDay()]},A:function(t){return h[t.getDay()]},b:function(t){return g[t.getMonth()]},B:function(t){return v[t.getMonth()]},c:null,d:z,e:z,f:V,H:Y,I:q,j:H,L:$,m:G,M:W,p:function(t){return c[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:_t,s:At,S:X,u:J,U:Z,V:Q,w:K,W:tt,x:null,X:null,y:nt,Y:et,Z:rt,"%":wt},St={a:function(t){return p[t.getUTCDay()]},A:function(t){return h[t.getUTCDay()]},b:function(t){return g[t.getUTCMonth()]},B:function(t){return v[t.getUTCMonth()]},c:null,d:it,e:it,f:ft,H:ot,I:at,j:ut,L:ct,m:st,M:lt,p:function(t){return c[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:_t,s:At,S:ht,u:dt,U:pt,V:vt,w:gt,W:yt,x:null,X:null,y:mt,Y:bt,Z:xt,"%":wt},jt={a:function(t,n,e){var r=kt.exec(n.slice(e));return r?(t.w=Bt[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=Et.exec(n.slice(e));return r?(t.w=Mt[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=Tt.exec(n.slice(e));return r?(t.m=Nt[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=Ot.exec(n.slice(e));return r?(t.m=Ft[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return Dt(t,n,e,r)},d:N,e:N,f:D,H:S,I:S,j:C,L:R,m:T,M:j,p:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.p=m[r[0].toLowerCase()],e+r[0].length):-1},q:F,Q:I,s:U,S:P,u:_,U:A,V:E,w:w,W:M,x:function(t,n,r){return Dt(t,e,n,r)},X:function(t,n,e){return Dt(t,u,n,e)},y:B,Y:k,Z:O,"%":L};function Pt(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++u<f;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(i=d[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function Rt(t,n){return function(e){var u,c,h=l(1900,void 0,1);if(Dt(h,t,e+="",0)!=e.length)return null;if("Q"in h)return new Date(h.Q);if("s"in h)return new Date(1e3*h.s+("L"in h?h.L:0));if(n&&!("Z"in h)&&(h.Z=0),"p"in h&&(h.H=h.H%12+12*h.p),void 0===h.m&&(h.m="q"in h?h.q:0),"V"in h){if(h.V<1||h.V>53)return null;"w"in h||(h.w=1),"Z"in h?(c=(u=s(l(h.y,0,1))).getUTCDay(),u=c>4||0===c?r.c.ceil(u):Object(r.c)(u),u=i.a.offset(u,7*(h.V-1)),h.y=u.getUTCFullYear(),h.m=u.getUTCMonth(),h.d=u.getUTCDate()+(h.w+6)%7):(c=(u=f(l(h.y,0,1))).getDay(),u=c>4||0===c?o.c.ceil(u):Object(o.c)(u),u=a.b.offset(u,7*(h.V-1)),h.y=u.getFullYear(),h.m=u.getMonth(),h.d=u.getDate()+(h.w+6)%7)}else("W"in h||"U"in h)&&("w"in h||(h.w="u"in h?h.u%7:"W"in h?1:0),c="Z"in h?s(l(h.y,0,1)).getUTCDay():f(l(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+7*h.W-(c+5)%7:h.w+7*h.U-(c+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,s(h)):f(h)}}function Dt(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a<u;){if(r>=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=jt[i in d?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return Ct.x=Pt(e,Ct),Ct.X=Pt(u,Ct),Ct.c=Pt(n,Ct),St.x=Pt(e,St),St.X=Pt(u,St),St.c=Pt(n,St),{format:function(t){var n=Pt(t+="",Ct);return n.toString=function(){return t},n},parse:function(t){var n=Rt(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=Pt(t+="",St);return n.toString=function(){return t},n},utcParse:function(t){var n=Rt(t+="",!0);return n.toString=function(){return t},n}}}var d={"-":"",_:" ",0:"0"},p=/^\s*\d+/,v=/^%/,g=/[\\^$*+?|[\]().{}]/g;function y(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function m(t){return t.replace(g,"\\$&")}function b(t){return new RegExp("^(?:"+t.map(m).join("|")+")","i")}function x(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function w(t,n,e){var r=p.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function _(t,n,e){var r=p.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function A(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function E(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function M(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function k(t,n,e){var r=p.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function B(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function O(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function F(t,n,e){var r=p.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function T(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function N(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function C(t,n,e){var r=p.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function S(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function j(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function P(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function R(t,n,e){var r=p.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function D(t,n,e){var r=p.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function L(t,n,e){var r=v.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function I(t,n,e){var r=p.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function U(t,n,e){var r=p.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function z(t,n){return y(t.getDate(),n,2)}function Y(t,n){return y(t.getHours(),n,2)}function q(t,n){return y(t.getHours()%12||12,n,2)}function H(t,n){return y(1+a.b.count(Object(u.a)(t),t),n,3)}function $(t,n){return y(t.getMilliseconds(),n,3)}function V(t,n){return $(t,n)+"000"}function G(t,n){return y(t.getMonth()+1,n,2)}function W(t,n){return y(t.getMinutes(),n,2)}function X(t,n){return y(t.getSeconds(),n,2)}function J(t){var n=t.getDay();return 0===n?7:n}function Z(t,n){return y(o.g.count(Object(u.a)(t)-1,t),n,2)}function Q(t,n){var e=t.getDay();return t=e>=4||0===e?Object(o.i)(t):o.i.ceil(t),y(o.i.count(Object(u.a)(t),t)+(4===Object(u.a)(t).getDay()),n,2)}function K(t){return t.getDay()}function tt(t,n){return y(o.c.count(Object(u.a)(t)-1,t),n,2)}function nt(t,n){return y(t.getFullYear()%100,n,2)}function et(t,n){return y(t.getFullYear()%1e4,n,4)}function rt(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+y(n/60|0,"0",2)+y(n%60,"0",2)}function it(t,n){return y(t.getUTCDate(),n,2)}function ot(t,n){return y(t.getUTCHours(),n,2)}function at(t,n){return y(t.getUTCHours()%12||12,n,2)}function ut(t,n){return y(1+i.a.count(Object(c.a)(t),t),n,3)}function ct(t,n){return y(t.getUTCMilliseconds(),n,3)}function ft(t,n){return ct(t,n)+"000"}function st(t,n){return y(t.getUTCMonth()+1,n,2)}function lt(t,n){return y(t.getUTCMinutes(),n,2)}function ht(t,n){return y(t.getUTCSeconds(),n,2)}function dt(t){var n=t.getUTCDay();return 0===n?7:n}function pt(t,n){return y(r.g.count(Object(c.a)(t)-1,t),n,2)}function vt(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Object(r.i)(t):r.i.ceil(t),y(r.i.count(Object(c.a)(t),t)+(4===Object(c.a)(t).getUTCDay()),n,2)}function gt(t){return t.getUTCDay()}function yt(t,n){return y(r.c.count(Object(c.a)(t)-1,t),n,2)}function mt(t,n){return y(t.getUTCFullYear()%100,n,2)}function bt(t,n){return y(t.getUTCFullYear()%1e4,n,4)}function xt(){return"+0000"}function wt(){return"%"}function _t(t){return+t}function At(t){return Math.floor(+t/1e3)}},421:function(t,n,e){"use strict";var r,i=e(189),o=e(328),a=e(299),u=function(t,n){var e=Object(a.a)(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},c={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return u(100*t,n)},r:u,s:function(t,n){var e=Object(a.a)(t,n);if(!e)return t+"";var i=e[0],o=e[1],u=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,c=i.length;return u===c?i:u>c?i+new Array(u-c+1).join("0"):u>0?i.slice(0,u)+"."+i.slice(u):"0."+new Array(1-u).join("0")+Object(a.a)(t,Math.max(0,n+u-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},f=function(t){return t},s=Array.prototype.map,l=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];n.a=function(t){var n,e,a=void 0===t.grouping||void 0===t.thousands?f:(n=s.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}),u=void 0===t.currency?"":t.currency[0]+"",h=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?f:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(s.call(t.numerals,String)),v=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",y=void 0===t.nan?"NaN":t.nan+"";function m(t){var n=(t=Object(o.b)(t)).fill,e=t.align,i=t.sign,f=t.symbol,s=t.zero,m=t.width,b=t.comma,x=t.precision,w=t.trim,_=t.type;"n"===_?(b=!0,_="g"):c[_]||(void 0===x&&(x=12),w=!0,_="g"),(s||"0"===n&&"="===e)&&(s=!0,n="0",e="=");var A="$"===f?u:"#"===f&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",E="$"===f?h:/[%p]/.test(_)?v:"",M=c[_],k=/[defgprs%]/.test(_);function B(t){var o,u,c,f=A,h=E;if("c"===_)h=M(t)+h,t="";else{var v=(t=+t)<0;if(t=isNaN(t)?y:M(Math.abs(t),x),w&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),v&&0==+t&&(v=!1),f=(v?"("===i?i:g:"-"===i||"("===i?"":i)+f,h=("s"===_?l[8+r/3]:"")+h+(v&&"("===i?")":""),k)for(o=-1,u=t.length;++o<u;)if(48>(c=t.charCodeAt(o))||c>57){h=(46===c?d+t.slice(o+1):t.slice(o))+h,t=t.slice(0,o);break}}b&&!s&&(t=a(t,1/0));var B=f.length+t.length+h.length,O=B<m?new Array(m-B+1).join(n):"";switch(b&&s&&(t=a(O+t,O.length?m-h.length:1/0),O=""),e){case"<":t=f+t+h+O;break;case"=":t=f+O+t+h;break;case"^":t=O.slice(0,B=O.length>>1)+f+t+h+O.slice(B);break;default:t=O+f+t+h}return p(t)}return x=void 0===x?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),B.toString=function(){return t+""},B}return{format:m,formatPrefix:function(t,n){var e=m(((t=Object(o.b)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(n)/3))),a=Math.pow(10,-r),u=l[8+r/3];return function(t){return e(a*t)+u}}}}},425:function(t,n,e){"use strict";e.d(n,"a",(function(){return v}));var r=e(125),i=e(73),o=e(339),a=-.14861,u=1.78277,c=-.29227,f=-.90649,s=1.97294,l=s*f,h=s*u,d=u*c-f*a;function p(t){if(t instanceof g)return new g(t.h,t.s,t.l,t.opacity);t instanceof i.b||(t=Object(i.h)(t));var n=t.r/255,e=t.g/255,r=t.b/255,a=(d*r+l*n-h*e)/(d+l-h),u=r-a,p=(s*(e-a)-c*u)/f,v=Math.sqrt(p*p+u*u)/(s*a*(1-a)),y=v?Math.atan2(p,u)*o.b-120:NaN;return new g(y<0?y+360:y,v,a,t.opacity)}function v(t,n,e,r){return 1===arguments.length?p(t):new g(t,n,e,null==r?1:r)}function g(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}Object(r.a)(g,v,Object(r.b)(i.a,{brighter:function(t){return t=null==t?i.c:Math.pow(i.c,t),new g(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.d:Math.pow(i.d,t),new g(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*o.a,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),l=Math.sin(t);return new i.b(255*(n+e*(a*r+u*l)),255*(n+e*(c*r+f*l)),255*(n+e*(s*r)),this.opacity)}}))},431:function(t,n,e){!function(t){"use strict";var n=Math.PI/3,e=[0,n,2*n,3*n,4*n,5*n];function r(t){return t[0]}function i(t){return t[1]}t.hexbin=function(){var t,o,a,u=0,c=0,f=1,s=1,l=r,h=i;function d(t){var n,e={},r=[],i=t.length;for(n=0;n<i;++n)if(!isNaN(c=+l.call(null,u=t[n],n,t))&&!isNaN(f=+h.call(null,u,n,t))){var u,c,f,s=Math.round(f/=a),d=Math.round(c=c/o-(1&s)/2),p=f-s;if(3*Math.abs(p)>1){var v=c-d,g=d+(c<d?-1:1)/2,y=s+(f<s?-1:1),m=c-g,b=f-y;v*v+p*p>m*m+b*b&&(d=g+(1&s?1:-1)/2,s=y)}var x=d+"-"+s,w=e[x];w?w.push(u):(r.push(w=e[x]=[u]),w.x=(d+(1&s)/2)*o,w.y=s*a)}return r}function p(t){var n=0,r=0;return e.map((function(e){var i=Math.sin(e)*t,o=-Math.cos(e)*t,a=i-n,u=o-r;return n=i,r=o,[a,u]}))}return d.hexagon=function(n){return"m"+p(null==n?t:+n).join("l")+"z"},d.centers=function(){for(var n=[],e=Math.round(c/a),r=Math.round(u/o),i=e*a;i<s+t;i+=a,++e)for(var l=r*o+(1&e)*o/2;l<f+o/2;l+=o)n.push([l,i]);return n},d.mesh=function(){var n=p(t).slice(0,4).join("l");return d.centers().map((function(t){return"M"+t+"m"+n})).join("")},d.x=function(t){return arguments.length?(l=t,d):l},d.y=function(t){return arguments.length?(h=t,d):h},d.radius=function(e){return arguments.length?(o=2*(t=+e)*Math.sin(n),a=1.5*t,d):t},d.size=function(t){return arguments.length?(u=c=0,f=+t[0],s=+t[1],d):[f-u,s-c]},d.extent=function(t){return arguments.length?(u=+t[0][0],c=+t[0][1],f=+t[1][0],s=+t[1][1],d):[[u,c],[f,s]]},d.radius(1)},Object.defineProperty(t,"__esModule",{value:!0})}(n)},44:function(t,n){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e},447:function(t,n,e){"use strict";e.r(n);var r=e(389);e.d(n,"formatDefaultLocale",(function(){return r.a})),e.d(n,"format",(function(){return r.b})),e.d(n,"formatPrefix",(function(){return r.c}));var i=e(421);e.d(n,"formatLocale",(function(){return i.a}));var o=e(328);e.d(n,"formatSpecifier",(function(){return o.b})),e.d(n,"FormatSpecifier",(function(){return o.a}));var a=e(680);e.d(n,"precisionFixed",(function(){return a.a}));var u=e(681);e.d(n,"precisionPrefix",(function(){return u.a}));var c=e(682);e.d(n,"precisionRound",(function(){return c.a}))},448:function(t,n,e){"use strict";e.d(n,"a",(function(){return a}));var r=e(425),i=e(62);function o(t){return function n(e){function o(n,o){var a=t((n=Object(r.a)(n)).h,(o=Object(r.a)(o)).h),u=Object(i.a)(n.s,o.s),c=Object(i.a)(n.l,o.l),f=Object(i.a)(n.opacity,o.opacity);return function(t){return n.h=a(t),n.s=u(t),n.l=c(Math.pow(t,e)),n.opacity=f(t),n+""}}return e=+e,o.gamma=n,o}(1)}n.b=o(i.c);var a=o(i.a)},449:function(t,n,e){"use strict";e.r(n);var r=e(776);e.d(n,"quadtree",(function(){return r.a}))},45:function(t,n,e){var r=function(t){"use strict";var n=Object.prototype,e=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(t,n,e,r){var i=n&&n.prototype instanceof s?n:s,o=Object.create(i.prototype),a=new _(r||[]);return o._invoke=function(t,n,e){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(e.method=i,e.arg=o;;){var a=e.delegate;if(a){var u=b(a,e);if(u){if(u===f)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var s=c(t,n,e);if("normal"===s.type){if(r=e.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:e.done}}"throw"===s.type&&(r="completed",e.method="throw",e.arg=s.arg)}}}(t,e,a),o}function c(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function s(){}function l(){}function h(){}var d={};d[i]=function(){return this};var p=Object.getPrototypeOf,v=p&&p(p(A([])));v&&v!==n&&e.call(v,i)&&(d=v);var g=h.prototype=s.prototype=Object.create(d);function y(t){["next","throw","return"].forEach((function(n){t[n]=function(t){return this._invoke(n,t)}}))}function m(t,n){var r;this._invoke=function(i,o){function a(){return new n((function(r,a){!function r(i,o,a,u){var f=c(t[i],t,o);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==typeof l&&e.call(l,"__await")?n.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):n.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(f.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function b(t,n){var e=t.iterator[n.method];if(void 0===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,b(t,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=c(e,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;var i=r.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function x(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function w(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(e.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return l.prototype=g.constructor=h,h.constructor=l,h[a]=l.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===l||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(m.prototype),m.prototype[o]=function(){return this},t.AsyncIterator=m,t.async=function(n,e,r,i,o){void 0===o&&(o=Promise);var a=new m(u(n,e,r,i),o);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),g[a]="Generator",g[i]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&e.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e,r){return a.type="throw",a.arg=t,n.next=e,r&&(n.method="next",n.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=e.call(o,"catchLoc"),c=e.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&e.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=n,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),f},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),w(e),f}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var i=r.arg;w(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:A(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},450:function(t,n,e){"use strict";e.d(n,"b",(function(){return o}));var r=e(57),i=Object(r.a)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));n.a=i;var o=i.range},451:function(t,n,e){"use strict";e.d(n,"b",(function(){return a}));var r=e(57),i=e(60),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.d-t.getMinutes()*i.c)}),(function(t,n){t.setTime(+t+n*i.b)}),(function(t,n){return(n-t)/i.b}),(function(t){return t.getHours()}));n.a=o;var a=o.range},452:function(t,n,e){"use strict";e.d(n,"b",(function(){return a}));var r=e(57),i=e(60),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.d)}),(function(t,n){t.setTime(+t+n*i.c)}),(function(t,n){return(n-t)/i.c}),(function(t){return t.getMinutes()}));n.a=o;var a=o.range},453:function(t,n,e){"use strict";e.d(n,"b",(function(){return o}));var r=e(57),i=Object(r.a)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));n.a=i;var o=i.range},454:function(t,n,e){"use strict";e.d(n,"b",(function(){return a}));var r=e(57),i=e(60),o=Object(r.a)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*i.b)}),(function(t,n){return(n-t)/i.b}),(function(t){return t.getUTCHours()}));n.a=o;var a=o.range},455:function(t,n,e){"use strict";e.d(n,"b",(function(){return a}));var r=e(57),i=e(60),o=Object(r.a)((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*i.c)}),(function(t,n){return(n-t)/i.c}),(function(t){return t.getUTCMinutes()}));n.a=o;var a=o.range},46:function(t,n){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},e(n,r)}t.exports=e},47:function(t,n,e){"use strict";n.byteLength=function(t){var n=f(t),e=n[0],r=n[1];return 3*(e+r)/4-r},n.toByteArray=function(t){var n,e,r=f(t),a=r[0],u=r[1],c=new o(function(t,n,e){return 3*(n+e)/4-e}(0,a,u)),s=0,l=u>0?a-4:a;for(e=0;e<l;e+=4)n=i[t.charCodeAt(e)]<<18|i[t.charCodeAt(e+1)]<<12|i[t.charCodeAt(e+2)]<<6|i[t.charCodeAt(e+3)],c[s++]=n>>16&255,c[s++]=n>>8&255,c[s++]=255&n;2===u&&(n=i[t.charCodeAt(e)]<<2|i[t.charCodeAt(e+1)]>>4,c[s++]=255&n);1===u&&(n=i[t.charCodeAt(e)]<<10|i[t.charCodeAt(e+1)]<<4|i[t.charCodeAt(e+2)]>>2,c[s++]=n>>8&255,c[s++]=255&n);return c},n.fromByteArray=function(t){for(var n,e=t.length,i=e%3,o=[],a=0,u=e-i;a<u;a+=16383)o.push(s(t,a,a+16383>u?u:a+16383));1===i?(n=t[e-1],o.push(r[n>>2]+r[n<<4&63]+"==")):2===i&&(n=(t[e-2]<<8)+t[e-1],o.push(r[n>>10]+r[n>>4&63]+r[n<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)r[u]=a[u],i[a.charCodeAt(u)]=u;function f(t){var n=t.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");return-1===e&&(e=n),[e,e===n?0:4-e%4]}function s(t,n,e){for(var i,o,a=[],u=n;u<e;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},48:function(t,n){n.read=function(t,n,e,r,i){var o,a,u=8*i-r-1,c=(1<<u)-1,f=c>>1,s=-7,l=e?i-1:0,h=e?-1:1,d=t[n+l];for(l+=h,o=d&(1<<-s)-1,d>>=-s,s+=u;s>0;o=256*o+t[n+l],l+=h,s-=8);for(a=o&(1<<-s)-1,o>>=-s,s+=r;s>0;a=256*a+t[n+l],l+=h,s-=8);if(0===o)o=1-f;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=f}return(d?-1:1)*a*Math.pow(2,o-r)},n.write=function(t,n,e,r,i,o){var a,u,c,f=8*o-i-1,s=(1<<f)-1,l=s>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,a=s):(a=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-a))<1&&(a--,c*=2),(n+=a+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=s?(u=0,a=s):a+l>=1?(u=(n*c-1)*Math.pow(2,i),a+=l):(u=n*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[e+d]=255&u,d+=p,u/=256,i-=8);for(a=a<<i|u,f+=i;f>0;t[e+d]=255&a,d+=p,a/=256,f-=8);t[e+d-p]|=128*v}},49:function(t,n){t.exports=function(t){if(Array.isArray(t))return t}},5:function(t,n,e){var r=e(46);t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&r(t,n)}},50:function(t,n){t.exports=function(t,n){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var e=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(e.push(a.value),!n||e.length!==n);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return e}}},507:function(t,n,e){"use strict";e.r(n),e.d(n,"drag",(function(){return g})),e.d(n,"dragDisable",(function(){return c.a})),e.d(n,"dragEnable",(function(){return c.b}));var r=e(675),i=e(188),o=e(678),a=e(332),u=e(677),c=e(326),f=e(181),s=function(t){return function(){return t}};function l(t,n,e,r,i,o,a,u,c,f){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=u,this.dy=c,this._=f}function h(){return!i.c.ctrlKey&&!i.c.button}function d(){return this.parentNode}function p(t){return null==t?{x:i.c.x,y:i.c.y}:t}function v(){return navigator.maxTouchPoints||"ontouchstart"in this}l.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var g=function(){var t,n,e,g,y=h,m=d,b=p,x=v,w={},_=Object(r.a)("start","drag","end"),A=0,E=0;function M(t){t.on("mousedown.drag",k).filter(x).on("touchstart.drag",F).on("touchmove.drag",T).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function k(){if(!g&&y.apply(this,arguments)){var r=C("mouse",m.apply(this,arguments),o.a,this,arguments);r&&(Object(a.a)(i.c.view).on("mousemove.drag",B,!0).on("mouseup.drag",O,!0),Object(c.a)(i.c.view),Object(f.b)(),e=!1,t=i.c.clientX,n=i.c.clientY,r("start"))}}function B(){if(Object(f.a)(),!e){var r=i.c.clientX-t,o=i.c.clientY-n;e=r*r+o*o>E}w.mouse("drag")}function O(){Object(a.a)(i.c.view).on("mousemove.drag mouseup.drag",null),Object(c.b)(i.c.view,e),Object(f.a)(),w.mouse("end")}function F(){if(y.apply(this,arguments)){var t,n,e=i.c.changedTouches,r=m.apply(this,arguments),o=e.length;for(t=0;t<o;++t)(n=C(e[t].identifier,r,u.a,this,arguments))&&(Object(f.b)(),n("start"))}}function T(){var t,n,e=i.c.changedTouches,r=e.length;for(t=0;t<r;++t)(n=w[e[t].identifier])&&(Object(f.a)(),n("drag"))}function N(){var t,n,e=i.c.changedTouches,r=e.length;for(g&&clearTimeout(g),g=setTimeout((function(){g=null}),500),t=0;t<r;++t)(n=w[e[t].identifier])&&(Object(f.b)(),n("end"))}function C(t,n,e,r,o){var a,u,c,f=e(n,t),s=_.copy();if(Object(i.a)(new l(M,"beforestart",a,t,A,f[0],f[1],0,0,s),(function(){return null!=(i.c.subject=a=b.apply(r,o))&&(u=a.x-f[0]||0,c=a.y-f[1]||0,!0)})))return function h(d){var p,v=f;switch(d){case"start":w[t]=h,p=A++;break;case"end":delete w[t],--A;case"drag":f=e(n,t),p=A}Object(i.a)(new l(M,d,a,t,p,f[0]+u,f[1]+c,f[0]-v[0],f[1]-v[1],s),s.apply,s,[d,r,o])}}return M.filter=function(t){return arguments.length?(y="function"==typeof t?t:s(!!t),M):y},M.container=function(t){return arguments.length?(m="function"==typeof t?t:s(t),M):m},M.subject=function(t){return arguments.length?(b="function"==typeof t?t:s(t),M):b},M.touchable=function(t){return arguments.length?(x="function"==typeof t?t:s(!!t),M):x},M.on=function(){var t=_.on.apply(_,arguments);return t===_?M:t},M.clickDistance=function(t){return arguments.length?(E=(t=+t)*t,M):Math.sqrt(E)},M}},508:function(t,n,e){"use strict";e.r(n),e.d(n,"timeFormatDefaultLocale",(function(){return r.a})),e.d(n,"timeFormat",(function(){return r.b})),e.d(n,"timeParse",(function(){return r.c})),e.d(n,"utcFormat",(function(){return r.d})),e.d(n,"utcParse",(function(){return r.e})),e.d(n,"timeFormatLocale",(function(){return i.a})),e.d(n,"isoFormat",(function(){return o})),e.d(n,"isoParse",(function(){return a}));var r=e(186),i=e(420);var o=Date.prototype.toISOString?function(t){return t.toISOString()}:Object(r.d)("%Y-%m-%dT%H:%M:%S.%LZ");var a=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Object(r.e)("%Y-%m-%dT%H:%M:%S.%LZ")},509:function(t,n,e){"use strict";e.d(n,"a",(function(){return h})),e.d(n,"b",(function(){return d}));var r,i,o,a,u=e(124),c=180/Math.PI,f={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},s=function(t,n,e,r,i,o){var a,u,f;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(f=t*e+n*r)&&(e-=t*f,r-=n*f),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,f/=u),t*r<n*e&&(t=-t,n=-n,f=-f,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*c,skewX:Math.atan(f)*c,scaleX:a,scaleY:u}};function l(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var c=[],f=[];return o=t(o),a=t(a),function(t,r,i,o,a,c){if(t!==i||r!==o){var f=a.push("translate(",null,n,null,e);c.push({i:f-4,x:Object(u.a)(t,i)},{i:f-2,x:Object(u.a)(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}(o.translateX,o.translateY,a.translateX,a.translateY,c,f),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Object(u.a)(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,c,f),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Object(u.a)(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,c,f),function(t,n,e,r,o,a){if(t!==e||n!==r){var c=o.push(i(o)+"scale(",null,",",null,")");a.push({i:c-4,x:Object(u.a)(t,e)},{i:c-2,x:Object(u.a)(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,c,f),o=a=null,function(t){for(var n,e=-1,r=f.length;++e<r;)c[(n=f[e]).i]=n.x(t);return c.join("")}}}var h=l((function(t){return"none"===t?f:(r||(r=document.createElement("DIV"),i=document.documentElement,o=document.defaultView),r.style.transform=t,t=o.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),s(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),d=l((function(t){return null==t?f:(a||(a=document.createElementNS("http://www.w3.org/2000/svg","g")),a.setAttribute("transform",t),(t=a.transform.baseVal.consolidate())?(t=t.matrix,s(t.a,t.b,t.c,t.d,t.e,t.f)):f)}),", ",")",")")},51:function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},57:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=new Date,i=new Date;function o(t,n,e,a){function u(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return u.floor=function(n){return t(n=new Date(+n)),n},u.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},u.round=function(t){var n=u(t),e=u.ceil(t);return t-n<e-t?n:e},u.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},u.range=function(e,r,i){var o,a=[];if(e=u.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return a;do{a.push(o=new Date(+e)),n(e,i),t(e)}while(o<e&&e<r);return a},u.filter=function(e){return o((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(u.count=function(n,o){return r.setTime(+n),i.setTime(+o),t(r),t(i),Math.floor(e(r,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(a?function(n){return a(n)%t==0}:function(n){return u.count(0,n)%t==0}):u:null}),u}},6:function(t,n,e){"use strict";e.d(n,"a",(function(){return u}));var r=e(1),i=e.n(r),o=e(2),a=e.n(o),u=function(){function t(n){i()(this,t),this.bytes=n,this.length=this.bytes.length,this.position=0,this.bitPos=0}return a()(t,[{key:"getBytes",value:function(t){if(!(this.position>this.length)){var n=this.position+t,e=this.bytes.slice(this.position,n);return this.position=n,this.bitPos=0,e}}},{key:"readString",value:function(t){if(!(this.position>this.length)){for(var n="",e=this.position;e<this.position+t;e++){var r=this.bytes[e];if(0===r)break;n+=String.fromCharCode(r)}return this.position+=t,this.bitPos=0,n}}},{key:"readInt",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var e=0;if("be"===n)for(var r=this.position;r<this.position+t;r++)e<<=8,e|=this.bytes[r];else for(var i=this.position+t-1;i>=this.position;i--)e<<=8,e|=this.bytes[i];return this.position+=t,this.bitPos=0,e}}},{key:"readBits",value:function(t){if(!(this.position>this.length)){var n=0,e=0;for(n=(this.bytes[this.position++]&256-(1<<this.bitPos))>>>this.bitPos,e=8-this.bitPos,this.bitPos=0;e<t;)n|=this.bytes[this.position++]<<e,e+=8;if(e>t){var r=e-t;n&=(1<<t)-1,e-=r,this.position--,this.bitPos=8-r}return n}}},{key:"continueUntil",value:function(t){if(!(this.position>this.length))if(this.bitPos=0,"number"!=typeof t){var n=t.length,e=t[n-1];this.position=n;for(var r=function(t,n){var e=new Array;return t.forEach((function(t,r){e[t]=n-r})),e}(t,n),i=!0;this.position<this.length;){for(;this.position<this.length&&this.bytes[this.position++]!==e;);i=!0;for(var o=n-1;o>=0;o--)if(this.bytes[this.position-n+o]!==t[o]){i=!1,this.position+=r[t[o]];break}if(i){this.position-=n;break}}}else for(;++this.position<this.length&&this.bytes[this.position]!==t;);}},{key:"consumeWhile",value:function(t){for(;this.position<this.length&&this.bytes[this.position]===t;)this.position++;this.bitPos=0}},{key:"consumeIf",value:function(t){this.bytes[this.position]===t&&(this.position++,this.bitPos=0)}},{key:"moveForwardsBy",value:function(t){var n=this.position+t;if(n<0||n>this.length)throw new Error("Cannot move to position "+n+" in stream. Out of bounds.");this.position=n,this.bitPos=0}},{key:"moveBackwardsBy",value:function(t){var n=this.position-t;if(n<0||n>this.length)throw new Error("Cannot move to position "+n+" in stream. Out of bounds.");this.position=n,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(t){if(t<=this.bitPos)this.bitPos-=t;else for(this.bitPos>0&&(t-=this.bitPos,this.bitPos=0);t>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(t),t-=8}},{key:"moveTo",value:function(t){if(t<0||t>this.length)throw new Error("Cannot move to position "+t+" in stream. Out of bounds.");this.position=t,this.bitPos=0}},{key:"hasMore",value:function(){return this.position<this.length}},{key:"carve",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&n++,this.bytes.slice(t,n)}}]),t}()},60:function(t,n,e){"use strict";e.d(n,"d",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"b",(function(){return o})),e.d(n,"a",(function(){return a})),e.d(n,"e",(function(){return u}));var r=1e3,i=6e4,o=36e5,a=864e5,u=6048e5},62:function(t,n,e){"use strict";e.d(n,"c",(function(){return o})),e.d(n,"b",(function(){return a})),e.d(n,"a",(function(){return u}));var r=e(338);function i(t,n){return function(e){return t+e*n}}function o(t,n){var e=n-t;return e?i(t,e>180||e<-180?e-360*Math.round(e/360):e):Object(r.a)(isNaN(t)?n:t)}function a(t){return 1==(t=+t)?u:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Object(r.a)(isNaN(n)?e:n)}}function u(t,n){var e=n-t;return e?i(t,e):Object(r.a)(isNaN(t)?n:t)}},675:function(t,n,e){"use strict";var r={value:function(){}};function i(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function u(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function c(t,n,e){for(var i=0,o=t.length;i<o;++i)if(t[i].name===n){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:n,value:e}),t}o.prototype=i.prototype={constructor:o,on:function(t,n){var e,r=this._,i=a(t+"",r),o=-1,f=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<f;)if(e=(t=i[o]).type)r[e]=c(r[e],t.name,n);else if(null==n)for(e in r)r[e]=c(r[e],t.name,null);return this}for(;++o<f;)if((e=(t=i[o]).type)&&(e=u(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new o(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}},n.a=i},676:function(t,n,e){"use strict";var r=e(199);n.a=function(t,n,e){var i=new r.a;return n=null==n?0:+n,i.restart((function(e){i.stop(),t(e+n)}),n,e),i}},677:function(t,n,e){"use strict";var r=e(331),i=e(214);n.a=function(t,n,e){arguments.length<3&&(e=n,n=Object(r.a)().changedTouches);for(var o,a=0,u=n?n.length:0;a<u;++a)if((o=n[a]).identifier===e)return Object(i.a)(t,o);return null}},678:function(t,n,e){"use strict";var r=e(331),i=e(214);n.a=function(t){var n=Object(r.a)();return n.changedTouches&&(n=n.changedTouches[0]),Object(i.a)(t,n)}},679:function(t,n,e){"use strict";var r=Math.PI,i=2*r,o=i-1e-6;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u(){return new a}a.prototype=u.prototype={constructor:a,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,i,o){t=+t,n=+n,e=+e,i=+i,o=+o;var a=this._x1,u=this._y1,c=e-t,f=i-n,s=a-t,l=u-n,h=s*s+l*l;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>1e-6)if(Math.abs(l*c-f*s)>1e-6&&o){var d=e-a,p=i-u,v=c*c+f*f,g=d*d+p*p,y=Math.sqrt(v),m=Math.sqrt(h),b=o*Math.tan((r-Math.acos((v+h-g)/(2*y*m)))/2),x=b/m,w=b/y;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*s)+","+(n+x*l)),this._+="A"+o+","+o+",0,0,"+ +(l*d>s*p)+","+(this._x1=t+w*c)+","+(this._y1=n+w*f)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,a,u,c){t=+t,n=+n,c=!!c;var f=(e=+e)*Math.cos(a),s=e*Math.sin(a),l=t+f,h=n+s,d=1^c,p=c?a-u:u-a;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+h:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+l+","+h),e&&(p<0&&(p=p%i+i),p>o?this._+="A"+e+","+e+",0,1,"+d+","+(t-f)+","+(n-s)+"A"+e+","+e+",0,1,"+d+","+(this._x1=l)+","+(this._y1=h):p>1e-6&&(this._+="A"+e+","+e+",0,"+ +(p>=r)+","+d+","+(this._x1=t+e*Math.cos(u))+","+(this._y1=n+e*Math.sin(u))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}},n.a=u},680:function(t,n,e){"use strict";var r=e(189);n.a=function(t){return Math.max(0,-Object(r.a)(Math.abs(t)))}},681:function(t,n,e){"use strict";var r=e(189);n.a=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3)))-Object(r.a)(Math.abs(t)))}},682:function(t,n,e){"use strict";var r=e(189);n.a=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Object(r.a)(n)-Object(r.a)(t))+1}},683:function(t,n,e){"use strict";n.a=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}},684:function(t,n,e){"use strict";var r=Math.SQRT2;function i(t){return((t=Math.exp(t))+1/t)/2}n.a=function(t,n){var e,o,a=t[0],u=t[1],c=t[2],f=n[0],s=n[1],l=n[2],h=f-a,d=s-u,p=h*h+d*d;if(p<1e-12)o=Math.log(l/c)/r,e=function(t){return[a+t*h,u+t*d,c*Math.exp(r*t*o)]};else{var v=Math.sqrt(p),g=(l*l-c*c+4*p)/(2*c*2*v),y=(l*l-c*c-4*p)/(2*l*2*v),m=Math.log(Math.sqrt(g*g+1)-g),b=Math.log(Math.sqrt(y*y+1)-y);o=(b-m)/r,e=function(t){var n,e=t*o,f=i(m),s=c/(2*v)*(f*(n=r*e+m,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[a+s*h,u+s*d,c*f/i(r*e+m)]}}return e.duration=1e3*o,e}},7:function(t,n,e){"use strict";var r=e(1),i=e.n(r),o=e(4),a=e.n(o),u=e(3),c=e.n(u),f=e(23),s=e.n(f),l=e(5),h=e.n(l);
/**
 * Custom error type for handling operation input errors.
 * i.e. where the operation can handle the error and print a message to the screen.
 *
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */
var d=function(t){function n(){var t;i()(this,n);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=a()(this,c()(n).call(this,...r))).type="OperationError",Error.captureStackTrace&&Error.captureStackTrace(s()(t),n),t}return h()(n,t),n}(function(t){function n(){var n=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(n,Object.getPrototypeOf(this)),n}return n.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t,n}(Error));n.a=d},71:function(t,n,e){"use strict";e.d(n,"g",(function(){return a})),e.d(n,"c",(function(){return u})),e.d(n,"k",(function(){return c})),e.d(n,"m",(function(){return f})),e.d(n,"i",(function(){return s})),e.d(n,"a",(function(){return l})),e.d(n,"e",(function(){return h})),e.d(n,"h",(function(){return d})),e.d(n,"d",(function(){return p})),e.d(n,"l",(function(){return v})),e.d(n,"n",(function(){return g})),e.d(n,"j",(function(){return y})),e.d(n,"b",(function(){return m})),e.d(n,"f",(function(){return b}));var r=e(57),i=e(60);function o(t){return Object(r.a)((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.e}))}var a=o(0),u=o(1),c=o(2),f=o(3),s=o(4),l=o(5),h=o(6),d=a.range,p=u.range,v=c.range,g=f.range,y=s.range,m=l.range,b=h.range},72:function(t,n,e){"use strict";e.d(n,"g",(function(){return a})),e.d(n,"c",(function(){return u})),e.d(n,"k",(function(){return c})),e.d(n,"m",(function(){return f})),e.d(n,"i",(function(){return s})),e.d(n,"a",(function(){return l})),e.d(n,"e",(function(){return h})),e.d(n,"h",(function(){return d})),e.d(n,"d",(function(){return p})),e.d(n,"l",(function(){return v})),e.d(n,"n",(function(){return g})),e.d(n,"j",(function(){return y})),e.d(n,"b",(function(){return m})),e.d(n,"f",(function(){return b}));var r=e(57),i=e(60);function o(t){return Object(r.a)((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/i.e}))}var a=o(0),u=o(1),c=o(2),f=o(3),s=o(4),l=o(5),h=o(6),d=a.range,p=u.range,v=c.range,g=f.range,y=s.range,m=l.range,b=h.range},73:function(t,n,e){"use strict";e.d(n,"a",(function(){return i})),e.d(n,"d",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"e",(function(){return x})),e.d(n,"h",(function(){return A})),e.d(n,"g",(function(){return E})),e.d(n,"b",(function(){return M})),e.d(n,"f",(function(){return N}));var r=e(125);function i(){}var o=.7,a=1/o,u="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgb\\("+[f,f,f]+"\\)$"),d=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),p=new RegExp("^rgba\\("+[f,f,f,c]+"\\)$"),v=new RegExp("^hsl\\("+[c,f,f]+"\\)$"),g=new RegExp("^hsla\\("+[c,f,f,c]+"\\)$"),y={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};function m(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=s.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?w(n):3===e?new M(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?new M(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?new M(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=l.exec(t))?new M(n[1],n[2],n[3],1):(n=h.exec(t))?new M(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=d.exec(t))?_(n[1],n[2],n[3],n[4]):(n=p.exec(t))?_(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=v.exec(t))?F(n[1],n[2]/100,n[3]/100,1):(n=g.exec(t))?F(n[1],n[2]/100,n[3]/100,n[4]):y.hasOwnProperty(t)?w(y[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function w(t){return new M(t>>16&255,t>>8&255,255&t,1)}function _(t,n,e,r){return r<=0&&(t=n=e=NaN),new M(t,n,e,r)}function A(t){return t instanceof i||(t=x(t)),t?new M((t=t.rgb()).r,t.g,t.b,t.opacity):new M}function E(t,n,e,r){return 1===arguments.length?A(t):new M(t,n,e,null==r?1:r)}function M(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function k(){return"#"+O(this.r)+O(this.g)+O(this.b)}function B(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function O(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function F(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new C(t,n,e,r)}function T(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=x(t)),!t)return new C;if(t instanceof C)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,o=Math.min(n,e,r),a=Math.max(n,e,r),u=NaN,c=a-o,f=(a+o)/2;return c?(u=n===a?(e-r)/c+6*(e<r):e===a?(r-n)/c+2:(n-e)/c+4,c/=f<.5?a+o:2-a-o,u*=60):c=f>0&&f<1?0:u,new C(u,c,f,t.opacity)}function N(t,n,e,r){return 1===arguments.length?T(t):new C(t,n,e,null==r?1:r)}function C(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function S(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Object(r.a)(i,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:m,formatHex:m,formatHsl:function(){return T(this).formatHsl()},formatRgb:b,toString:b}),Object(r.a)(M,E,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatRgb:B,toString:B})),Object(r.a)(C,N,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new M(S(t>=240?t-240:t+120,i,r),S(t,i,r),S(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},776:function(t,n,e){"use strict";e.d(n,"a",(function(){return u}));function r(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,a,u,c,f,s,l,h,d=t._root,p={data:r},v=t._x0,g=t._y0,y=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((f=n>=(o=(v+y)/2))?v=o:y=o,(s=e>=(a=(g+m)/2))?g=a:m=a,i=d,!(d=d[l=s<<1|f]))return i[l]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(o=(v+y)/2))?v=o:y=o,(s=e>=(a=(g+m)/2))?g=a:m=a}while((l=s<<1|f)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[l]=p,t}var i=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function o(t){return t[0]}function a(t){return t[1]}function u(t,n,e){var r=new c(null==n?o:n,null==e?a:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function c(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function f(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var s=u.prototype=c.prototype;s.copy=function(){var t,n,e=new c(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=f(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=f(n));return e},s.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return r(this.cover(n,e),n,e,t)},s.addAll=function(t){var n,e,i,o,a=t.length,u=new Array(a),c=new Array(a),f=1/0,s=1/0,l=-1/0,h=-1/0;for(e=0;e<a;++e)isNaN(i=+this._x.call(null,n=t[e]))||isNaN(o=+this._y.call(null,n))||(u[e]=i,c[e]=o,i<f&&(f=i),i>l&&(l=i),o<s&&(s=o),o>h&&(h=o));if(f>l||s>h)return this;for(this.cover(f,s).cover(l,h),e=0;e<a;++e)r(this,u[e],c[e],t[e]);return this},s.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var a,u,c=i-e,f=this._root;e>t||t>=i||r>n||n>=o;)switch(u=(n<r)<<1|t<e,(a=new Array(4))[u]=f,f=a,c*=2,u){case 0:i=e+c,o=r+c;break;case 1:e=i-c,o=r+c;break;case 2:i=e+c,r=o-c;break;case 3:e=i-c,r=o-c}this._root&&this._root.length&&(this._root=f)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},s.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},s.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},s.find=function(t,n,e){var r,o,a,u,c,f,s,l=this._x0,h=this._y0,d=this._x1,p=this._y1,v=[],g=this._root;for(g&&v.push(new i(g,l,h,d,p)),null==e?e=1/0:(l=t-e,h=n-e,d=t+e,p=n+e,e*=e);f=v.pop();)if(!(!(g=f.node)||(o=f.x0)>d||(a=f.y0)>p||(u=f.x1)<l||(c=f.y1)<h))if(g.length){var y=(o+u)/2,m=(a+c)/2;v.push(new i(g[3],y,m,u,c),new i(g[2],o,m,y,c),new i(g[1],y,a,u,m),new i(g[0],o,a,y,m)),(s=(n>=m)<<1|t>=y)&&(f=v[v.length-1],v[v.length-1]=v[v.length-1-s],v[v.length-1-s]=f)}else{var b=t-+this._x.call(null,g.data),x=n-+this._y.call(null,g.data),w=b*b+x*x;if(w<e){var _=Math.sqrt(e=w);l=t-_,h=n-_,d=t+_,p=n+_,r=g.data}}return r},s.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var n,e,r,i,o,a,u,c,f,s,l,h,d=this._root,p=this._x0,v=this._y0,g=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((f=o>=(u=(p+g)/2))?p=u:g=u,(s=a>=(c=(v+y)/2))?v=c:y=c,n=d,!(d=d[l=s<<1|f]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},s.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},s.root=function(){return this._root},s.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},s.visit=function(t){var n,e,r,o,a,u,c=[],f=this._root;for(f&&c.push(new i(f,this._x0,this._y0,this._x1,this._y1));n=c.pop();)if(!t(f=n.node,r=n.x0,o=n.y0,a=n.x1,u=n.y1)&&f.length){var s=(r+a)/2,l=(o+u)/2;(e=f[3])&&c.push(new i(e,s,l,a,u)),(e=f[2])&&c.push(new i(e,r,l,s,u)),(e=f[1])&&c.push(new i(e,s,o,a,l)),(e=f[0])&&c.push(new i(e,r,o,s,l))}return this},s.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var o=n.node;if(o.length){var a,u=n.x0,c=n.y0,f=n.x1,s=n.y1,l=(u+f)/2,h=(c+s)/2;(a=o[0])&&e.push(new i(a,u,c,l,h)),(a=o[1])&&e.push(new i(a,l,c,f,h)),(a=o[2])&&e.push(new i(a,u,h,l,s)),(a=o[3])&&e.push(new i(a,l,h,f,s))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},s.x=function(t){return arguments.length?(this._x=t,this):this._x},s.y=function(t){return arguments.length?(this._y=t,this):this._y}},777:function(t,n,e){"use strict";function r(t){return+t}function i(t){return t*t}function o(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}e.r(n),e.d(n,"easeLinear",(function(){return r})),e.d(n,"easeQuad",(function(){return a})),e.d(n,"easeQuadIn",(function(){return i})),e.d(n,"easeQuadOut",(function(){return o})),e.d(n,"easeQuadInOut",(function(){return a})),e.d(n,"easeCubic",(function(){return u.b})),e.d(n,"easeCubicIn",(function(){return u.a})),e.d(n,"easeCubicOut",(function(){return u.c})),e.d(n,"easeCubicInOut",(function(){return u.b})),e.d(n,"easePoly",(function(){return s})),e.d(n,"easePolyIn",(function(){return c})),e.d(n,"easePolyOut",(function(){return f})),e.d(n,"easePolyInOut",(function(){return s})),e.d(n,"easeSin",(function(){return v})),e.d(n,"easeSinIn",(function(){return d})),e.d(n,"easeSinOut",(function(){return p})),e.d(n,"easeSinInOut",(function(){return v})),e.d(n,"easeExp",(function(){return m})),e.d(n,"easeExpIn",(function(){return g})),e.d(n,"easeExpOut",(function(){return y})),e.d(n,"easeExpInOut",(function(){return m})),e.d(n,"easeCircle",(function(){return w})),e.d(n,"easeCircleIn",(function(){return b})),e.d(n,"easeCircleOut",(function(){return x})),e.d(n,"easeCircleInOut",(function(){return w})),e.d(n,"easeBounce",(function(){return E})),e.d(n,"easeBounceIn",(function(){return A})),e.d(n,"easeBounceOut",(function(){return E})),e.d(n,"easeBounceInOut",(function(){return M})),e.d(n,"easeBack",(function(){return O})),e.d(n,"easeBackIn",(function(){return k})),e.d(n,"easeBackOut",(function(){return B})),e.d(n,"easeBackInOut",(function(){return O})),e.d(n,"easeElastic",(function(){return N})),e.d(n,"easeElasticIn",(function(){return T})),e.d(n,"easeElasticOut",(function(){return N})),e.d(n,"easeElasticInOut",(function(){return C}));var u=e(345),c=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),f=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),s=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),l=Math.PI,h=l/2;function d(t){return 1-Math.cos(t*h)}function p(t){return Math.sin(t*h)}function v(t){return(1-Math.cos(l*t))/2}function g(t){return Math.pow(2,10*t-10)}function y(t){return 1-Math.pow(2,-10*t)}function m(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function b(t){return 1-Math.sqrt(1-t*t)}function x(t){return Math.sqrt(1- --t*t)}function w(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var _=7.5625;function A(t){return 1-E(1-t)}function E(t){return(t=+t)<4/11?_*t*t:t<8/11?_*(t-=6/11)*t+3/4:t<10/11?_*(t-=9/11)*t+15/16:_*(t-=21/22)*t+63/64}function M(t){return((t*=2)<=1?1-E(1-t):E(t-1)+1)/2}var k=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(1.70158),B=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(1.70158),O=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(1.70158),F=2*Math.PI,T=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=F);function i(t){return n*Math.pow(2,10*--t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*F)},i.period=function(e){return t(n,e)},i}(1,.3),N=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=F);function i(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*F)},i.period=function(e){return t(n,e)},i}(1,.3),C=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=F);function i(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((r-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*F)},i.period=function(e){return t(n,e)},i}(1,.3)},778:function(t,n,e){"use strict";e.r(n),e.d(n,"dsvFormat",(function(){return r.a})),e.d(n,"csvParse",(function(){return i.f})),e.d(n,"csvParseRows",(function(){return i.g})),e.d(n,"csvFormat",(function(){return i.a})),e.d(n,"csvFormatBody",(function(){return i.b})),e.d(n,"csvFormatRows",(function(){return i.d})),e.d(n,"csvFormatRow",(function(){return i.c})),e.d(n,"csvFormatValue",(function(){return i.e})),e.d(n,"tsvParse",(function(){return o.f})),e.d(n,"tsvParseRows",(function(){return o.g})),e.d(n,"tsvFormat",(function(){return o.a})),e.d(n,"tsvFormatBody",(function(){return o.b})),e.d(n,"tsvFormatRows",(function(){return o.d})),e.d(n,"tsvFormatRow",(function(){return o.c})),e.d(n,"tsvFormatValue",(function(){return o.e})),e.d(n,"autoType",(function(){return a}));var r=e(327),i=e(205),o=e(206);function a(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;u&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}var u=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours()},8:function(t,n,e){t.exports=e(45)},87:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(34),i=e(1490),o=e(1488),a=e(1487),u=e(218),c=e(132),f=e(1478),s=e(308),l=e(507),h=e(778),d=e(777),p=e(1480),v=e(1477),g=e(447),y=e(1463),m=e(1467),b=e(185),x=e(226),w=e(1485),_=e(449),A=e(1482),E=e(1470),M=e(1465),k=e(101),B=e(1464),O=e(390),F=e(508),T=e(411),N=e(221),C=e(1479),S=e(1486);Object.keys(r).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return r[t]}})})),Object.keys(i).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return i[t]}})})),Object.keys(o).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return o[t]}})})),Object.keys(a).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return a[t]}})})),Object.keys(u).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return u[t]}})})),Object.keys(c).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return c[t]}})})),Object.keys(f).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return f[t]}})})),Object.keys(s).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return s[t]}})})),Object.keys(l).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return l[t]}})})),Object.keys(h).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return h[t]}})})),Object.keys(d).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return d[t]}})})),Object.keys(p).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return p[t]}})})),Object.keys(v).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return v[t]}})})),Object.keys(g).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return g[t]}})})),Object.keys(y).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return y[t]}})})),Object.keys(m).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return m[t]}})})),Object.keys(b).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return b[t]}})})),Object.keys(x).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return x[t]}})})),Object.keys(w).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return w[t]}})})),Object.keys(_).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return _[t]}})})),Object.keys(A).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return A[t]}})})),Object.keys(E).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return E[t]}})})),Object.keys(M).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return M[t]}})})),Object.keys(k).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return k[t]}})})),Object.keys(B).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return B[t]}})})),Object.keys(O).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return O[t]}})})),Object.keys(F).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return F[t]}})})),Object.keys(T).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return T[t]}})})),Object.keys(N).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return N[t]}})})),Object.keys(C).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return C[t]}})})),Object.keys(S).forEach((function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return S[t]}})})),n.version="5.15.0"},88:function(t,n,e){!function(t){"use strict";function n(t){this.reset(t.className)}function e(){this.childNodes=[]}n.prototype=[],n.prototype.reset=function(t){var n=(t||"").split(" ");this.length=n.length;for(var e=0;e<n.length;e++)this[e]=n[e]},n.prototype.add=function(t){this.contains(t)||this.push(t)},n.prototype.contains=function(t){for(var n=0;n<this.length;n++)if(this[n]===t)return!0;return!1},n.prototype.item=function(t){return this[t]||null},n.prototype.remove=function(t){for(var n=this.classNames,e=0;e<this.length;e++)n[e]===t&&this.splice(e,1)},n.prototype.toggle=function(t){var n=this.indexOf(t);return n>=0?(this.splice(n,1),!1):(this.push(t),!0)},n.prototype.toString=function(){return this.join(" ").trim()},e.prototype.cloneNode=function(t){if(!t||"childNodes"in this&&Array.isArray(this.childNodes)&&0===this.childNodes.length)return new(Object.getPrototypeOf(this).constructor)(this);var n=new(Object.getPrototypeOf(this).constructor)(this),e=[];return this.childNodes.map((function(t){return e.push(t.cloneNode(!0))})),n.childNodes=e,n},Object.defineProperty(e.prototype,"nodeValue",{get:function(){return null}}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes}}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes[0]||null}}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes[this.childNodes.length-1]||null}}),Object.defineProperty(e.prototype,"nodeName",{get:function(){return this.tagName}});var r={"&":"&amp;","<":"&lt;",">":"&gt;"};function i(t){e.apply(this),this.nodeType=3,this.textContent=String(t)}i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.prototype.render=function(){return(this.textContent||"").replace(/[&<>]/g,(function(t){return r[t]}))},Object.defineProperty(i.prototype,"nodeValue",{get:function(){return this.textContent}});var o,a=new RegExp("\\s*([ >+~])\\s*","g"),u=new RegExp("(^|[ >+~])([^ >+~]+)","ig"),c=new RegExp("#[^. >+~]+","g"),f=new RegExp("^(?:[ >+~])?([^#. >+~\\[\\]]+)"),s=new RegExp("\\.[^. >+~]+","g"),l=function(t){return null!=t?t[0]:null},h=function(t){return t.substr(1)},d=function(t){return null!=t?h(t):null},p=(o=h,function(t){return Array.isArray(t)?t.map(o):null});function v(t){return null==t||0===t.length?null:t.replace(a,"$1").match(u).map((function(t,n){return{tagName:(e=t.match(f),(Array.isArray(e)&&e.length>1?e[1]:null)||"").toLowerCase(),id:d(l(t.match(c))),classNames:p(t.match(s)),relation:n>0?t[0]:null};var e})).reverse()}function g(t,n){return!(null==t||n.tagName&&t.tagName!==n.tagName||n.id&&t.id!==n.id||n.classNames&&!n.classNames.every((function(n){return t.classList.contains(n)})))}function y(t,n){for(var e=t,r=function(t){switch(n[t-1].relation){case" ":do{e=e.parentNode}while(null!=e&&!g(e,n[t]));break;case">":if(!g(e.parentNode,n[t]))return{v:!1};break;case"+":if(!g(e.parentNode.childNodes.find((function(t){return t.nextSibling===e})),n[t]))return{v:!1};break;case"~":if(!e.parentNode.childNodes.slice(0,e.parentNode.childNodes.indexOf(e)).some((function(e){return g(e,n[t])})))return{v:!1}}},i=1;i<n.length;i++){var o=r(i);if(o)return o.v}return null!=e}function m(t,n,e){var r=v(t);if(null==r)return[];for(var i=n.getElementsByTagName(r[0].tagName||"*"),o=[],a=0;a<i.length&&!(g(i[a],r[0])&&y(i[a],r)&&(o.push(i[a]),null!=e&&o.length>=e));a++);return o}function b(t,n){return m(t,n,1)[0]||null}function x(){}function w(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function _(t){var n=[],e=t.split("");e.map((function(t,e){"-"===t&&n.push(e)}));var r=t.split("");return n.map((function(t,n){var i=e[t+1].toUpperCase();r.splice(t-n,2,i)})),r.join("")}function A(t){var n=[],e=t.split("");e.map((function(t,e){/^[A-Z]/.test(t)&&n.push(e)}));var r=t.split("");return n.map((function(t){r.splice(t,1,"-"+e[t].toLowerCase())})),r.join("")}function E(){}function M(){}x.prototype={},E.prototype=Object.create({}),E.prototype.getPropertyPriority=function(t){return""},E.prototype.getPropertyValue=function(t){return w(this,t=_(t))?this[t]:""},E.prototype.setProperty=function(t,n){this[_(t)]=n},E.prototype.removeProperty=function(t){var n=this.getPropertyValue(t);return n&&delete this[_(t)],n},E.prototype.valueOf=function(){return this},E.prototype.toString=function(){var t="";for(var n in this)w(this,n)&&(t+=A(n)+": "+this[n]+"; ");return t},E.prototype.setValue=function(t){var n=t.split(";");for(var e in n){var r=e.split(":");this[r[0].trim()]=r[1].trim()}},Object.defineProperty(E.prototype,"cssText",{get:function(){return this.toString()},set:function(t){this.setValue(t)},enumerable:!0}),M.prototype={};var k="area base br col command embed hr img input keygen link meta param source track wbr".split(" ").reduce((function(t,n){return t[n]=!0,t}),{});function B(t){for(var n in e.apply(this),this.attributes=new x,this.style=new E,this.dataset=new M,this.nodeType=1,t)this[n]=t[n];this.tagName||(this.tagName="div"),this.tagName=this.tagName.toLowerCase(),Object.defineProperty(this,"isVoidEl",{value:k[this.tagName]})}var O=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n}(B);B.prototype=Object.create(e.prototype),B.prototype.constructor=B;var F=function(){};"blur click focus".split(" ").forEach((function(t){return B.prototype[t]=F}));var T="tagName view nodeType isVoidEl parent parentNode childNodes isMounted".split(" ").reduce((function(t,n){return t[n]=!0,t}),{});function N(t){return t.render()}function C(){this.documentElement=this.createElement("html"),this.head=this.documentElement.appendChild(this.createElement("head")),this.body=this.documentElement.appendChild(this.createElement("body")),this.nodeType=9}B.prototype.render=function(t){var n=this,e=this.isVoidEl,r=[],i=!1,o="";for(var a in this)if("isMounted"!==a&&"style"!==a&&"attributes"!==a&&"dataset"!==a&&"_classList"!==a&&w(this,a))if(T[a])this.childNodes.length&&(i=!0);else if("_innerHTML"===a)o=this._innerHTML;else if(!T[a]){if(a in this.attributes)continue;if("function"==typeof this[a])continue;var u=void 0;switch(typeof this[a]){case"string":case"number":u='"'+this[a]+'"';break;default:u="'"+JSON.stringify(this[a])+"'"}r.push(a+"="+u)}this.className&&r.push('class="'+this.className+'"');var c=this.style.cssText;c.length>0&&r.push('style="'+c+'"');var f=Object.keys(this.attributes);if(f.length>0&&f.filter((function(t){return"style"!==t&&"_classList"!==t})).map((function(t){return r.push(t+'="'+n.attributes[t]+'"')})),t)return!e&&i?this.childNodes.map(N).join(""):!e&&o?o:"";if(!e&&i){var s=this.tagName;return"<"+[s].concat(r).join(" ")+">"+this.childNodes.map(N).join("")+"</"+s+">"}if(!e&&o){var l=this.tagName;return"<"+[this.tagName].concat(r).join(" ")+">"+o+"</"+l+">"}var h=[this.tagName].concat(r).join(" ");return e?"<"+h+">":"<"+h+"></"+this.tagName+">"},B.prototype.addEventListener=function(){},B.prototype.removeEventListener=function(){},B.prototype.setAttribute=function(t,n){var e=this;if("class"===t)return this.classList.splice(0,this.classList.length),void n.split(" ").forEach((function(t){return e.classList.add(t)}));var r,i,o=t;/^data-/.test(t)?(o=_(t),this.dataset[o]=n,Object.defineProperty(this,o,{get:(r=this,i=o,function(){return r.dataset[i]}),enumerable:!1,configurable:!0})):w(this,o)||Object.defineProperty(this,o,{get:function(t,n){return function(){return t.attributes[n]}}(this,o),enumerable:!0,configurable:!0}),this.attributes[t]=n},B.prototype.getAttribute=function(t){return this.attributes[t]||this[t]||null},B.prototype.removeAttribute=function(t){"class"!==t?(/^data-/.test(t)&&delete this.dataset[_(t)],w(this.attributes,t)&&(delete this.attributes[t],delete this[t])):this.classList.reset()},B.prototype.appendChild=function(t){if(this.isVoidEl)return t;t.parentNode=this;for(var n=0;n<this.childNodes.length;n++)this.childNodes[n]===t&&this.childNodes.splice(n,1);return this.childNodes.push(t),t},B.prototype.insertBefore=function(t,n){if(this.isVoidEl)return t;if(t.parentNode=this,null==n)this.childNodes.push(t);else for(var e=0;e<this.childNodes.length;e++)this.childNodes[e]===n?this.childNodes.splice(e++,0,t):this.childNodes[e]===t&&this.childNodes.splice(e,1);return t},B.prototype.replaceChild=function(t,n){if(this.isVoidEl)return n;t.parentNode=this;for(var e=0;e<this.childNodes.length;e++)this.childNodes[e]===n&&(this.childNodes[e]=t);return n},B.prototype.removeChild=function(t){if(this.isVoidEl)return t;t.parentNode=null;for(var n=0;n<this.childNodes.length;n++)this.childNodes[n]===t&&this.childNodes.splice(n,1);return t},B.prototype.getElementsByTagName=function(t){var n=t.toLowerCase();return this.isVoidEl||0===this.childNodes.length?[]:this.childNodes.reduce((function(t,e){return e.getElementsByTagName?"*"===n||e.tagName===n?t.concat(e,e.getElementsByTagName(n)):t.concat(e.getElementsByTagName(n)):t}),[])},B.prototype.getElementsByClassName=function(t){return Array.isArray(t)?0===t.length?[]:this.childNodes.reduce((function(n,e){return t.every((function(t){return e.classList.contains(t)}))?n.concat(e,e.getElementsByClassName(t)):n.concat(e.getElementsByClassName(t))}),[]):this.getElementsByClassName(String(t).split(" ").map((function(t){return t.trim()})).filter((function(t){return t.length>0})))},B.prototype.querySelector=function(t){return b(t,this)},B.prototype.querySelectorAll=function(t){return m(t,this)},B.prototype.matches=function(t){var n=v(t);return!(null==n||n.length>1)&&g(this,n[0])},Object.defineProperties(B.prototype,{_classList:{value:null,enumerable:!1,configurable:!1,writable:!0},classList:{get:function(){return this._classList||(this._classList=new n(this)),this._classList}},className:{set:function(t){this.classList.reset(t)},get:function(){return null==this._classList?"":this._classList.toString()}},innerHTML:{get:function(){return this._innerHTML||this.render(!0)},set:function(t){this._innerHTML=t}},outerHTML:{get:function(){return this.render()}},firstChild:{get:function(){return this.childNodes[0]||null}},textContent:{get:function(){return this.childNodes.filter((function(t){return t instanceof i})).map((function(t){return t.textContent})).join("")},set:function(t){this.childNodes=[new i(t)]}},nextSibling:{get:function(){for(var t=this.parentNode.childNodes,n=0;n<t.length;n++)if(t[n]===this)return t[n+1];return null}}}),C.prototype.createElement=function(t){var n,e=new B({tagName:t});return"ownerDocument"in e||Object.defineProperty(e,"ownerDocument",{enumerable:!1,get:(n=this,function(){return n})}),e},C.prototype.createElementNS=function(t,n){var e,r;return"ownerDocument"in(e="http://www.w3.org/2000/svg"===n?new O({tagName:n}):new B({tagName:n}))||Object.defineProperty(e,"ownerDocument",{enumerable:!1,get:(r=this,function(){return r})}),e},C.prototype.createDocumentFragment=function(){return(new C).body},C.prototype.createTextNode=function(t){var n,e=new i(t);return"ownerDocument"in e||Object.defineProperty(e,"ownerDocument",{enumerable:!1,get:(n=this,function(){return n})}),e},C.prototype.getElementsByTagName=function(t){var n=t.toLowerCase();return"html"===n?[this.documentElement]:"*"===n?[this.documentElement].concat(this.documentElement.getElementsByTagName(n)):this.documentElement.getElementsByTagName(n)},C.prototype.getElementsByClassName=function(t){var n=this;if(!Array.isArray(t))return this.getElementsByClassName(String(t).split(" ").map((function(t){return t.trim()})).filter((function(t){return t.length>0})));if(0===t.length)return[];var e=t.every((function(t){return n.documentElement.classList.contains(t)}));return this.documentElement.childNodes.reduce((function(n,e){return t.every((function(t){return e.classList.contains(t)}))?n.concat(e,e.getElementsByClassName(t)):n.concat(e.getElementsByClassName(t))}),e?[this.documentElement]:[])},C.prototype.getElementById=function(t){return this.documentElement.id===t?this.documentElement:function t(n,e){for(var r=[],i=0;i<e.length;i++){if(e[i].id===n)return e[i];r=r.concat(e[i].childNodes)}return r.length>0?t(n,r):null}(t,this.documentElement.childNodes)},C.prototype.querySelector=function(t){return b(t,this)},C.prototype.querySelectorAll=function(t){return m(t,this)},C.prototype.implementation=Object.create(null),C.prototype.implementation.hasFeature=function(t){return!1},C.prototype.implementation.createHTMLDocument=function(t){var n=new C;return n.outerHTML=t,n},t.Document=C,t.HTMLElement=B,t.Node=e,t.SVGElement=O,t.TextNode=i,t.render=function(t,n){return(t.el||t).render(n)},Object.defineProperty(t,"__esModule",{value:!0})}(n)},9:function(t,n,e){"use strict";var r=e(1),i=e.n(r),o=e(2),a=e.n(o),u=e(15),c=e(0),f=e(20),s=function(){function t(n){i()(this,t),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.min=null,this.max=null,this.step=1,n&&this._parseConfig(n)}return a()(t,[{key:"_parseConfig",value:function(t){this.name=t.name,this.type=t.type,this.defaultValue=t.value,this.disabled=!!t.disabled,this.hint=t.hint||!1,this.rows=t.rows||!1,this.toggleValues=t.toggleValues,this.target=void 0!==t.target?t.target:null,this.defaultIndex=void 0!==t.defaultIndex?t.defaultIndex:0,this.min=t.min,this.max=t.max,this.step=t.step}},{key:"config",get:function(){return this._value}},{key:"value",set:function(n){this._value=t.prepare(n,this.type)},get:function(){return this._value}}],[{key:"prepare",value:function(t,n){var e;switch(n){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return c.b.parseEscapedChars(t);case"byteArray":return"string"==typeof t?(t=t.replace(/\s+/g,""),Object(f.a)(t)):t;case"number":if(null===t)return t;if(e=parseFloat(t),isNaN(e))throw"Invalid ingredient value. Not a number: "+c.b.truncate(t.toString(),10);return e;default:return t}}}]),t}(),l=function(){function t(){i()(this,t),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null}return a()(t,[{key:"run",value:function(t,n){return t}},{key:"highlight",value:function(t,n){return!1}},{key:"highlightReverse",value:function(t,n){return!1}},{key:"present",value:function(t,n){return t}},{key:"addIngredient",value:function(t){this._ingList.push(t)}},{key:"inputType",set:function(t){this._inputType=u.a.typeEnum(t)},get:function(){return u.a.enumLookup(this._inputType)}},{key:"outputType",set:function(t){this._outputType=u.a.typeEnum(t),this._presentType<0&&(this._presentType=this._outputType)},get:function(){return u.a.enumLookup(this._outputType)}},{key:"presentType",set:function(t){this._presentType=u.a.typeEnum(t)},get:function(){return u.a.enumLookup(this._presentType)}},{key:"args",set:function(t){var n=this;t.forEach((function(t){var e=new s(t);n.addIngredient(e)}))},get:function(){return this._ingList.map((function(t){var n={name:t.name,type:t.type,value:t.defaultValue};return t.toggleValues&&(n.toggleValues=t.toggleValues),t.hint&&(n.hint=t.hint),t.rows&&(n.rows=t.rows),t.disabled&&(n.disabled=t.disabled),t.target&&(n.target=t.target),t.defaultIndex&&(n.defaultIndex=t.defaultIndex),"number"==typeof t.min&&(n.min=t.min),"number"==typeof t.max&&(n.max=t.max),t.step&&(n.step=t.step),n}))}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map((function(t){return t.config}))}}},{key:"ingValues",set:function(t){var n=this;t.forEach((function(t,e){n._ingList[e].value=t}))},get:function(){return this._ingList.map((function(t){return t.value}))}},{key:"breakpoint",set:function(t){this._breakpoint=!!t},get:function(){return this._breakpoint}},{key:"disabled",set:function(t){this._disabled=!!t},get:function(){return this._disabled}},{key:"flowControl",get:function(){return this._flowControl},set:function(t){this._flowControl=!!t}},{key:"manualBake",get:function(){return this._manualBake},set:function(t){this._manualBake=!!t}}]),t}();n.a=l}});