@alicloud/cloud-charts
Version:

16 lines (14 loc) • 1.58 MB
JavaScript
!function t(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],n):"object"==typeof exports?exports.CloudCharts=n(require("react"),require("react-dom")):e.CloudCharts=n(e.React,e.ReactDOM)}(window,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function e(){return t.default}:function e(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./build/",n(n.s=157)}([function(t,e,n){"use strict";n.r(e),n.d(e,"contains",(function(){return a})),n.d(e,"includes",(function(){return a})),n.d(e,"difference",(function(){return u})),n.d(e,"find",(function(){return k})),n.d(e,"findIndex",(function(){return T})),n.d(e,"firstValue",(function(){return L})),n.d(e,"flatten",(function(){return N})),n.d(e,"flattenDeep",(function(){return F})),n.d(e,"getRange",(function(){return G})),n.d(e,"pull",(function(){return q})),n.d(e,"pullAt",(function(){return Z})),n.d(e,"reduce",(function(){return Q})),n.d(e,"remove",(function(){return tt})),n.d(e,"sortBy",(function(){return rt})),n.d(e,"union",(function(){return at})),n.d(e,"uniq",(function(){return it})),n.d(e,"valuesOfKey",(function(){return lt})),n.d(e,"head",(function(){return ct})),n.d(e,"last",(function(){return st})),n.d(e,"startsWith",(function(){return ft})),n.d(e,"endsWith",(function(){return pt})),n.d(e,"filter",(function(){return c})),n.d(e,"every",(function(){return gt})),n.d(e,"some",(function(){return yt})),n.d(e,"group",(function(){return Ot})),n.d(e,"groupBy",(function(){return xt})),n.d(e,"groupToMap",(function(){return wt})),n.d(e,"getWrapBehavior",(function(){return _t})),n.d(e,"wrapBehavior",(function(){return Ct})),n.d(e,"number2color",(function(){return Et})),n.d(e,"parseRadius",(function(){return Pt})),n.d(e,"clamp",(function(){return Bt})),n.d(e,"fixedBase",(function(){return It})),n.d(e,"isDecimal",(function(){return Dt})),n.d(e,"isEven",(function(){return Vt})),n.d(e,"isInteger",(function(){return Yt})),n.d(e,"isNegative",(function(){return Wt})),n.d(e,"isNumberEqual",(function(){return qt})),n.d(e,"isOdd",(function(){return $t})),n.d(e,"isPositive",(function(){return Kt})),n.d(e,"max",(function(){return D})),n.d(e,"maxBy",(function(){return Qt})),n.d(e,"min",(function(){return z})),n.d(e,"minBy",(function(){return Jt})),n.d(e,"mod",(function(){return ee})),n.d(e,"toDegree",(function(){return ie})),n.d(e,"toInteger",(function(){return oe})),n.d(e,"toRadian",(function(){return ce})),n.d(e,"forIn",(function(){return se})),n.d(e,"has",(function(){return ue})),n.d(e,"hasKey",(function(){return fe})),n.d(e,"hasValue",(function(){return de})),n.d(e,"keys",(function(){return O})),n.d(e,"isMatch",(function(){return _})),n.d(e,"values",(function(){return pe})),n.d(e,"lowerCase",(function(){return ye})),n.d(e,"lowerFirst",(function(){return be})),n.d(e,"substitute",(function(){return we})),n.d(e,"upperCase",(function(){return je})),n.d(e,"upperFirst",(function(){return Se})),n.d(e,"getType",(function(){return Ae})),n.d(e,"isArguments",(function(){return ke})),n.d(e,"isArray",(function(){return y})),n.d(e,"isArrayLike",(function(){return i})),n.d(e,"isBoolean",(function(){return Te})),n.d(e,"isDate",(function(){return Le})),n.d(e,"isError",(function(){return Ne})),n.d(e,"isFunction",(function(){return d})),n.d(e,"isFinite",(function(){return Re})),n.d(e,"isNil",(function(){return v})),n.d(e,"isNull",(function(){return De})),n.d(e,"isNumber",(function(){return Rt})),n.d(e,"isObject",(function(){return m})),n.d(e,"isObjectLike",(function(){return C})),n.d(e,"isPlainObject",(function(){return A})),n.d(e,"isPrototype",(function(){return Ge})),n.d(e,"isRegExp",(function(){return He})),n.d(e,"isString",(function(){return et})),n.d(e,"isType",(function(){return p})),n.d(e,"isUndefined",(function(){return Xe})),n.d(e,"isElement",(function(){return Ue})),n.d(e,"requestAnimationFrame",(function(){return $e})),n.d(e,"clearAnimationFrame",(function(){return Ze})),n.d(e,"augment",(function(){return tn})),n.d(e,"clone",(function(){return nn})),n.d(e,"debounce",(function(){return on})),n.d(e,"memoize",(function(){return an})),n.d(e,"deepMix",(function(){return un})),n.d(e,"each",(function(){return x})),n.d(e,"extend",(function(){return hn})),n.d(e,"indexOf",(function(){return dn})),n.d(e,"isEmpty",(function(){return yn})),n.d(e,"isEqual",(function(){return bn})),n.d(e,"isEqualWith",(function(){return xn})),n.d(e,"map",(function(){return On})),n.d(e,"mapValues",(function(){return _n})),n.d(e,"mix",(function(){return Qe})),n.d(e,"assign",(function(){return Qe})),n.d(e,"get",(function(){return Sn})),n.d(e,"set",(function(){return Cn})),n.d(e,"pick",(function(){return An})),n.d(e,"omit",(function(){return En})),n.d(e,"throttle",(function(){return kn})),n.d(e,"toArray",(function(){return Pn})),n.d(e,"toString",(function(){return ge})),n.d(e,"uniqueId",(function(){return Bn})),n.d(e,"noop",(function(){return Ln})),n.d(e,"identity",(function(){return In})),n.d(e,"size",(function(){return Nn})),n.d(e,"measureTextWidth",(function(){return Dn})),n.d(e,"getEllipsisText",(function(){return zn})),n.d(e,"Cache",(function(){return Gn}));var r,i=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},o,a=function(t,e){return!!i(t)&&t.indexOf(e)>-1},l,c=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];e(o,r)&&n.push(o)}return n},s,u=function(t,e){return void 0===e&&(e=[]),c(t,(function(t){return!a(e,t)}))},f={}.toString,h,p=function(t,e){return f.call(t)==="[object "+e+"]"},d=function(t){return p(t,"Function")},g,v=function(t){return null==t},y=function(t){return Array.isArray?Array.isArray(t):p(t,"Array")},m=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function b(t,e){var n;if(t)if(y(t))for(var r=0,i=t.length;r<i&&!1!==(n=e(t[r],r));r++);else if(m(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===(n=e(t[o],o)))break}var x=b,w,O=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(r)})),e};function j(t,e){var n=O(e),r=n.length;if(v(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0}var _=j,S,C=function(t){return"object"==typeof t&&null!==t},M,A=function(t){if(!C(t)||!p(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};function E(t,e){if(!y(t))return null;var n;if(d(e)&&(n=e),A(e)&&(n=function(t){return _(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}var k=E;function P(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}var T=P,B,L=function(t,e){for(var n=null,r=0;r<t.length;r++){var i,o=t[r][e];if(!v(o)){n=y(o)?o[0]:o;break}}return n},I,N=function(t){if(!y(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},R=function(t,e){if(void 0===e&&(e=[]),y(t))for(var n=0;n<t.length;n+=1)R(t[n],e);else e.push(t);return e},F=R,D=function(t){if(y(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},z=function(t){if(y(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},V,G=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(y(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=D(e),o;return{min:z(e),max:i}},Y=Array.prototype,H=Y.splice,W=Y.indexOf,X,q=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var i=e[r],o=-1;(o=W.call(t,i))>-1;)H.call(t,o,1);return t},U=Array.prototype.splice,$,Z=function t(e,n){if(!i(e))return[];for(var r=e?n.length:0,o=r-1;r--;){var a=void 0,l=n[r];r!==o&&l===a||(a=l,U.call(e,l,1))}return e},K,Q=function(t,e,n){if(!y(t)&&!A(t))return t;var r=n;return x(t,(function(t,n){r=e(r,t,n)})),r},J,tt=function(t,e){var n=[];if(!i(t))return n;for(var r=-1,o=[],a=t.length;++r<a;){var l=t[r];e(l,r,t)&&(n.push(l),o.push(r))}return Z(t,o),n},et=function(t){return p(t,"String")};function nt(t,e){var n;if(d(e))n=function(t,n){return e(t)-e(n)};else{var r=[];et(e)?r.push(e):y(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}var rt=nt;function it(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var ot,at=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return it([].concat.apply([],t))},lt=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o,a=t[i][e];if(!v(a)){y(a)||(a=[a]);for(var l=0;l<a.length;l++){var c=a[l];r[c]||(n.push(c),r[c]=!0)}}}return n};function ct(t){if(i(t))return t[0]}function st(t){if(i(t)){var e=t;return t[t.length-1]}}function ut(t,e){return!(!y(t)&&!et(t))&&t[0]===e}var ft=ut;function ht(t,e){return!(!y(t)&&!et(t))&&t[t.length-1]===e}var pt=ht,dt,gt=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},vt,yt=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},mt=Object.prototype.hasOwnProperty;function bt(t,e){if(!e||!y(t))return{};for(var n={},r=d(e)?e:function(t){return t[e]},i,o=0;o<t.length;o++){var a=t[o];i=r(a),mt.call(n,i)?n[i].push(a):n[i]=[a]}return n}var xt=bt;function wt(t,e){if(!e)return{0:t};if(!d(e)){var n=y(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return xt(t,e)}var Ot=function(t,e){if(!e)return[t];var n=wt(t,e),r=[];for(var i in n)r.push(n[i]);return r};function jt(t,e){return t["_wrap_"+e]}var _t=jt;function St(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}var Ct=St,Mt={};function At(t){var e=Mt[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,Mt[t]=e}return e}var Et=At;function kt(t){var e=0,n=0,r=0,i=0;return y(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}var Pt=kt,Tt,Bt=function(t,e,n){return t<e?e:t>n?n:t},Lt,It=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},Nt,Rt=function(t){return p(t,"Number")},Ft,Dt=function(t){return Rt(t)&&t%1!=0},zt,Vt=function(t){return Rt(t)&&t%2==0},Gt,Yt=Number.isInteger?Number.isInteger:function(t){return Rt(t)&&t%1==0},Ht,Wt=function(t){return Rt(t)&&t<0},Xt=1e-5;function qt(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var Ut,$t=function(t){return Rt(t)&&t%2!=0},Zt,Kt=function(t){return Rt(t)&&t>0},Qt=function(t,e){if(y(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},Jt=function(t,e){if(y(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},te,ee=function(t,e){return(t%e+e)%e},ne=180/Math.PI,re,ie=function(t){return ne*t},oe=parseInt,ae=Math.PI/180,le,ce=function(t){return ae*t},se=x,ue=function(t,e){return t.hasOwnProperty(e)},fe=ue,he,pe=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(n)})),e},de=function(t,e){return a(pe(t),e)},ge=function(t){return v(t)?"":t.toString()},ve,ye=function(t){return ge(t).toLowerCase()},me,be=function(t){var e=ge(t);return e.charAt(0).toLowerCase()+e.substring(1)};function xe(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}var we=xe,Oe,je=function(t){return ge(t).toUpperCase()},_e,Se=function(t){var e=ge(t);return e.charAt(0).toUpperCase()+e.substring(1)},Ce={}.toString,Me,Ae=function(t){return Ce.call(t).replace(/^\[object /,"").replace(/]$/,"")},Ee,ke=function(t){return p(t,"Arguments")},Pe,Te=function(t){return p(t,"Boolean")},Be,Le=function(t){return p(t,"Date")},Ie,Ne=function(t){return p(t,"Error")},Re=function(t){return Rt(t)&&isFinite(t)},Fe,De=function(t){return null===t},ze=Object.prototype,Ve,Ge=function(t){var e=t&&t.constructor,n;return t===("function"==typeof e&&e.prototype||ze)},Ye,He=function(t){return p(t,"RegExp")},We,Xe=function(t){return void 0===t},qe,Ue=function(t){return t instanceof Element||t instanceof HTMLDocument};function $e(t){var e;return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Ze(t){var e;(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Ke(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Qe(t,e,n,r){return e&&Ke(t,e),n&&Ke(t,n),r&&Ke(t,r),t}var Je,tn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var i=t[r];d(i)&&(i=i.prototype),Qe(n.prototype,i)}},en=function(t){if("object"!=typeof t||null===t)return t;var e;if(y(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=en(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=en(t[i]):e[i]=t[i];return e},nn=en;function rn(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},l=n&&!r;clearTimeout(r),r=setTimeout(a,e),l&&t.apply(i,o)}}var on=rn,an=function(t,e){if(!d(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var l=t.apply(this,r);return a.set(o,l),l};return n.cache=new Map,n},ln=5;function cn(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&A(o)?(A(t[i])||(t[i]={}),n<r?cn(t[i],o,n+1,r):t[i]=e[i]):y(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var sn,un=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)cn(t,e[r]);return t},fn,hn=function(t,e,n,r){d(e)||(n=e,e=t,t=function(){});var i=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},o=i(e.prototype,t);return t.prototype=Qe(o,t.prototype),t.superclass=i(e.prototype,e),Qe(o,n),Qe(t,r),t},pn,dn=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,o=0;o<t.length;o++)if(t[o]===e){r=o;break}return r},gn=Object.prototype.hasOwnProperty;function vn(t){if(v(t))return!0;if(i(t))return!t.length;var e=Ae(t);if("Map"===e||"Set"===e)return!t.size;if(Ge(t))return!Object.keys(t).length;for(var n in t)if(gn.call(t,n))return!1;return!0}var yn=vn,mn=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(et(t)||et(e))return!1;if(i(t)||i(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=mn(t[r],e[r]));r++);return n}if(C(t)||C(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var n=!0,r=0;r<o.length&&(n=mn(t[o[r]],e[o[r]]));r++);return n}return!1},bn=mn,xn=function(t,e,n){return d(n)?!!n(t,e):bn(t,e)},wn,On=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(e(o,r))}return n},jn=function(t){return t},_n=function(t,e){void 0===e&&(e=jn);var n={};return m(t)&&!v(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},Sn=function(t,e,n){for(var r=0,i=et(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},Cn=function(t,e,n){var r=t,i=et(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(m(r[t])||(r[t]=Rt(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},Mn=Object.prototype.hasOwnProperty,An=function(t,e){if(null===t||!A(t))return{};var n={};return x(e,(function(e){Mn.call(t,e)&&(n[e]=t[e])})),n},En=function(t,e){return Q(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},kn=function(t,e,n){var r,i,o,a,l=0;n||(n={});var c=function(){l=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},s=function(){var s=Date.now();l||!1!==n.leading||(l=s);var u=e-(s-l);return i=this,o=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),l=s,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return s.cancel=function(){clearTimeout(r),l=0,r=i=o=null},s},Pn=function(t){return i(t)?Array.prototype.slice.call(t):[]},Tn={},Bn=function(t){return Tn[t=t||"g"]?Tn[t]+=1:Tn[t]=1,t+Tn[t]},Ln=function(){},In=function(t){return t};function Nn(t){return v(t)?0:i(t)?t.length:Object.keys(t).length}var Rn=n(1),Fn,Dn=an((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Fn||(Fn=document.createElement("canvas").getContext("2d")),Fn.font=[o,a,i,n+"px",r].join(" "),Fn.measureText(et(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(Rn.__spreadArrays)([t],pe(e)).join("")})),zn=function(t,e,n,r){void 0===r&&(r="...");var i=16,o=Dn(r,n),a=et(t)?t:ge(t),l=e,c=[],s,u;if(Dn(t,n)<=e)return t;for(;s=a.substr(0,16),!((u=Dn(s,n))+o>l&&u>l);)if(c.push(s),l-=u,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((u=Dn(s,n))+o>l);)if(c.push(s),l-=u,!(a=a.substr(1)))return c.join("");return""+c.join("")+r},Vn,Gn=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return l})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return s})),n.d(e,"__awaiter",(function(){return u})),n.d(e,"__generator",(function(){return f})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__spreadArray",(function(){return m})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return x})),n.d(e,"__asyncDelegator",(function(){return w})),n.d(e,"__asyncValues",(function(){return O})),n.d(e,"__makeTemplateObject",(function(){return j})),n.d(e,"__importStar",(function(){return S})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return M})),n.d(e,"__classPrivateFieldSet",(function(){return A}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function l(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function c(t,e){return function(n,r){e(n,r,t)}}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function l(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,l)}c((r=r.apply(t,e||[])).next())}))}function f(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(6===a[0]&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t],i=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var h=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function p(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||h(e,t,n)}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,l=o.length;a<l;a++,i++)r[i]=o[a];return r}function m(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function x(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||l(t,e)}))})}function l(t,e){try{c(r[t](e))}catch(t){f(o[0][3],t)}}function c(t){t.value instanceof b?Promise.resolve(t.value.v).then(s,u):f(o[0][2],t)}function s(t){l("next",t)}function u(t){l("throw",t)}function f(t,e){t(e),o.shift(),o.length&&l(o[0][0],o[0][1])}}function w(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=d(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){i(r,o,(n=t[e](n)).done,n.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}}function j(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var _=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&h(e,t,n);return _(e,t),e}function C(t){return t&&t.__esModule?t:{default:t}}function M(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function A(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"geoArea",(function(){return Z})),n.d(e,"geoBounds",(function(){return Ct})),n.d(e,"geoCentroid",(function(){return te})),n.d(e,"geoCircle",(function(){return fe})),n.d(e,"geoClipExtent",(function(){return hn})),n.d(e,"geoContains",(function(){return Nn})),n.d(e,"geoDistance",(function(){return Mn})),n.d(e,"geoGraticule",(function(){return Dn})),n.d(e,"geoGraticule10",(function(){return zn})),n.d(e,"geoInterpolate",(function(){return Vn})),n.d(e,"geoLength",(function(){return _n})),n.d(e,"geoPath",(function(){return Wr})),n.d(e,"geoAlbers",(function(){return yi})),n.d(e,"geoAlbersUsa",(function(){return bi})),n.d(e,"geoAzimuthalEqualArea",(function(){return ji})),n.d(e,"geoAzimuthalEqualAreaRaw",(function(){return Oi})),n.d(e,"geoAzimuthalEquidistant",(function(){return Si})),n.d(e,"geoAzimuthalEquidistantRaw",(function(){return _i})),n.d(e,"geoConicConformal",(function(){return Pi})),n.d(e,"geoConicConformalRaw",(function(){return ki})),n.d(e,"geoConicEqualArea",(function(){return vi})),n.d(e,"geoConicEqualAreaRaw",(function(){return gi})),n.d(e,"geoConicEquidistant",(function(){return Ii})),n.d(e,"geoConicEquidistantRaw",(function(){return Li})),n.d(e,"geoEquirectangular",(function(){return Bi})),n.d(e,"geoEquirectangularRaw",(function(){return Ti})),n.d(e,"geoGnomonic",(function(){return Ri})),n.d(e,"geoGnomonicRaw",(function(){return Ni})),n.d(e,"geoIdentity",(function(){return Di})),n.d(e,"geoProjection",(function(){return fi})),n.d(e,"geoProjectionMutator",(function(){return hi})),n.d(e,"geoMercator",(function(){return Mi})),n.d(e,"geoMercatorRaw",(function(){return Ci})),n.d(e,"geoOrthographic",(function(){return Vi})),n.d(e,"geoOrthographicRaw",(function(){return zi})),n.d(e,"geoStereographic",(function(){return Yi})),n.d(e,"geoStereographicRaw",(function(){return Gi})),n.d(e,"geoTransverseMercator",(function(){return Wi})),n.d(e,"geoTransverseMercatorRaw",(function(){return Hi})),n.d(e,"geoRotation",(function(){return ce})),n.d(e,"geoStream",(function(){return R})),n.d(e,"geoTransform",(function(){return ti}));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,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var l=1e-6,c=1e-12,s=Math.PI,u=s/2,f=s/4,h=2*s,p=180/s,d=s/180,g=Math.abs,v=Math.atan,y=Math.atan2,m=Math.cos,b=Math.ceil,x=Math.exp,w=Math.floor,O=Math.log,j=Math.pow,_=Math.sin,S=Math.sign||function(t){return t>0?1:t<0?-1:0},C=Math.sqrt,M=Math.tan;function A(t){return t>1?0:t<-1?s:Math.acos(t)}function E(t){return t>1?u:t<-1?-u:Math.asin(t)}function k(t){return(t=_(t/2))*t}function P(){}function T(t,e){t&&L.hasOwnProperty(t.type)&&L[t.type](t,e)}var B={Feature:function(t,e){T(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)T(n[r].geometry,e)}},L={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){I(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)I(n[r],e,0)},Polygon:function(t,e){N(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)N(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)T(n[r],e)}};function I(t,e,n){var r=-1,i=t.length-n,o;for(e.lineStart();++r<i;)o=t[r],e.point(o[0],o[1],o[2]);e.lineEnd()}function N(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)I(t[n],e,1);e.polygonEnd()}var R=function(t,e){t&&B.hasOwnProperty(t.type)?B[t.type](t,e):T(t,e)},F=r(),D=r(),z,V,G,Y,H,W={point:P,lineStart:P,lineEnd:P,polygonStart:function(){F.reset(),W.lineStart=X,W.lineEnd=q},polygonEnd:function(){var t=+F;D.add(t<0?h+t:t),this.lineStart=this.lineEnd=this.point=P},sphere:function(){D.add(h)}};function X(){W.point=U}function q(){$(z,V)}function U(t,e){W.point=$,z=t,V=e,G=t*=d,Y=m(e=(e*=d)/2+f),H=_(e)}function $(t,e){var n=(t*=d)-G,r=n>=0?1:-1,i=r*n,o=m(e=(e*=d)/2+f),a=_(e),l=H*a,c=Y*o+l*m(i),s=l*r*_(i);F.add(y(s,c)),G=t,Y=o,H=a}var Z=function(t){return D.reset(),R(t,W),2*D};function K(t){return[y(t[1],t[0]),E(t[2])]}function Q(t){var e=t[0],n=t[1],r=m(n);return[r*m(e),r*_(e),_(n)]}function J(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function tt(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function et(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function nt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function rt(t){var e=C(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var it,ot,at,lt,ct,st,ut,ft,ht=r(),pt,dt,gt={point:vt,lineStart:mt,lineEnd:bt,polygonStart:function(){gt.point=xt,gt.lineStart=wt,gt.lineEnd=Ot,ht.reset(),W.polygonStart()},polygonEnd:function(){W.polygonEnd(),gt.point=vt,gt.lineStart=mt,gt.lineEnd=bt,F<0?(it=-(at=180),ot=-(lt=90)):ht>l?lt=90:ht<-l&&(ot=-90),dt[0]=it,dt[1]=at}};function vt(t,e){pt.push(dt=[it=t,at=t]),e<ot&&(ot=e),e>lt&&(lt=e)}function yt(t,e){var n=Q([t*d,e*d]);if(ft){var r=tt(ft,n),i,o=tt([r[1],-r[0],0],r);rt(o),o=K(o);var a=t-ct,l=a>0?1:-1,c=o[0]*p*l,s,u=g(a)>180;u^(l*ct<c&&c<l*t)?(s=o[1]*p)>lt&&(lt=s):u^(l*ct<(c=(c+360)%360-180)&&c<l*t)?(s=-o[1]*p)<ot&&(ot=s):(e<ot&&(ot=e),e>lt&&(lt=e)),u?t<ct?jt(it,t)>jt(it,at)&&(at=t):jt(t,at)>jt(it,at)&&(it=t):at>=it?(t<it&&(it=t),t>at&&(at=t)):t>ct?jt(it,t)>jt(it,at)&&(at=t):jt(t,at)>jt(it,at)&&(it=t)}else pt.push(dt=[it=t,at=t]);e<ot&&(ot=e),e>lt&&(lt=e),ft=n,ct=t}function mt(){gt.point=yt}function bt(){dt[0]=it,dt[1]=at,gt.point=vt,ft=null}function xt(t,e){if(ft){var n=t-ct;ht.add(g(n)>180?n+(n>0?360:-360):n)}else st=t,ut=e;W.point(t,e),yt(t,e)}function wt(){W.lineStart()}function Ot(){xt(st,ut),W.lineEnd(),g(ht)>l&&(it=-(at=180)),dt[0]=it,dt[1]=at,ft=null}function jt(t,e){return(e-=t)<0?e+360:e}function _t(t,e){return t[0]-e[0]}function St(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var Ct=function(t){var e,n,r,i,o,a,l;if(lt=at=-(it=ot=1/0),pt=[],R(t,gt),n=pt.length){for(pt.sort(_t),e=1,o=[r=pt[0]];e<n;++e)St(r,(i=pt[e])[0])||St(r,i[1])?(jt(r[0],i[1])>jt(r[0],r[1])&&(r[1]=i[1]),jt(i[0],r[1])>jt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(l=jt(r[1],i[0]))>a&&(a=l,it=i[0],at=r[1])}return pt=dt=null,it===1/0||ot===1/0?[[NaN,NaN],[NaN,NaN]]:[[it,ot],[at,lt]]},Mt,At,Et,kt,Pt,Tt,Bt,Lt,It,Nt,Rt,Ft,Dt,zt,Vt,Gt,Yt={sphere:P,point:Ht,lineStart:Xt,lineEnd:$t,polygonStart:function(){Yt.lineStart=Zt,Yt.lineEnd=Kt},polygonEnd:function(){Yt.lineStart=Xt,Yt.lineEnd=$t}};function Ht(t,e){t*=d;var n=m(e*=d);Wt(n*m(t),n*_(t),_(e))}function Wt(t,e,n){++Mt,Et+=(t-Et)/Mt,kt+=(e-kt)/Mt,Pt+=(n-Pt)/Mt}function Xt(){Yt.point=qt}function qt(t,e){t*=d;var n=m(e*=d);zt=n*m(t),Vt=n*_(t),Gt=_(e),Yt.point=Ut,Wt(zt,Vt,Gt)}function Ut(t,e){t*=d;var n=m(e*=d),r=n*m(t),i=n*_(t),o=_(e),a=y(C((a=Vt*o-Gt*i)*a+(a=Gt*r-zt*o)*a+(a=zt*i-Vt*r)*a),zt*r+Vt*i+Gt*o);At+=a,Tt+=a*(zt+(zt=r)),Bt+=a*(Vt+(Vt=i)),Lt+=a*(Gt+(Gt=o)),Wt(zt,Vt,Gt)}function $t(){Yt.point=Ht}function Zt(){Yt.point=Qt}function Kt(){Jt(Ft,Dt),Yt.point=Ht}function Qt(t,e){Ft=t,Dt=e,t*=d,e*=d,Yt.point=Jt;var n=m(e);zt=n*m(t),Vt=n*_(t),Gt=_(e),Wt(zt,Vt,Gt)}function Jt(t,e){t*=d;var n=m(e*=d),r=n*m(t),i=n*_(t),o=_(e),a=Vt*o-Gt*i,l=Gt*r-zt*o,c=zt*i-Vt*r,s=C(a*a+l*l+c*c),u=E(s),f=s&&-u/s;It+=f*a,Nt+=f*l,Rt+=f*c,At+=u,Tt+=u*(zt+(zt=r)),Bt+=u*(Vt+(Vt=i)),Lt+=u*(Gt+(Gt=o)),Wt(zt,Vt,Gt)}var te=function(t){Mt=At=Et=kt=Pt=Tt=Bt=Lt=It=Nt=Rt=0,R(t,Yt);var e=It,n=Nt,r=Rt,i=e*e+n*n+r*r;return i<1e-12&&(e=Tt,n=Bt,r=Lt,At<l&&(e=Et,n=kt,r=Pt),(i=e*e+n*n+r*r)<1e-12)?[NaN,NaN]:[y(n,e)*p,E(r/C(i))*p]},ee=function(t){return function(){return t}},ne=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n};function re(t,e){return[t>s?t-h:t<-s?t+h:t,e]}function ie(t,e,n){return(t%=h)?e||n?ne(ae(t),le(e,n)):ae(t):e||n?le(e,n):re}function oe(t){return function(e,n){return[(e+=t)>s?e-h:e<-s?e+h:e,n]}}function ae(t){var e=oe(t);return e.invert=oe(-t),e}function le(t,e){var n=m(t),r=_(t),i=m(e),o=_(e);function a(t,e){var a=m(e),l=m(t)*a,c=_(t)*a,s=_(e),u=s*n+l*r;return[y(c*i-u*o,l*n-s*r),E(u*i+c*o)]}return a.invert=function(t,e){var a=m(e),l=m(t)*a,c=_(t)*a,s=_(e),u=s*i-c*o;return[y(c*i+s*o,l*n+u*r),E(u*n-l*r)]},a}re.invert=re;var ce=function(t){function e(e){return(e=t(e[0]*d,e[1]*d))[0]*=p,e[1]*=p,e}return t=ie(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return(e=t.invert(e[0]*d,e[1]*d))[0]*=p,e[1]*=p,e},e};function se(t,e,n,r,i,o){if(n){var a=m(e),l=_(e),c=r*n;null==i?(i=e+r*h,o=e-c/2):(i=ue(a,i),o=ue(a,o),(r>0?i<o:i>o)&&(i+=r*h));for(var s,u=i;r>0?u>o:u<o;u-=c)s=K([a,-l*m(u),-l*_(u)]),t.point(s[0],s[1])}}function ue(t,e){(e=Q(e))[0]-=t,rt(e);var n=A(-e[1]);return((-e[2]<0?-n:n)+h-l)%h}var fe=function(){var t=ee([0,0]),e=ee(90),n=ee(6),r,i,o={point:a};function a(t,e){r.push(t=i(t,e)),t[0]*=p,t[1]*=p}function l(){var a=t.apply(this,arguments),l=e.apply(this,arguments)*d,c=n.apply(this,arguments)*d;return r=[],i=ie(-a[0]*d,-a[1]*d,0).invert,se(o,l,c,1),a={type:"Polygon",coordinates:[r]},r=i=null,a}return l.center=function(e){return arguments.length?(t="function"==typeof e?e:ee([+e[0],+e[1]]),l):t},l.radius=function(t){return arguments.length?(e="function"==typeof t?t:ee(+t),l):e},l.precision=function(t){return arguments.length?(n="function"==typeof t?t:ee(+t),l):n},l},he=function(){var t=[],e;return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:P,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},pe=function(t,e,n,r,i,o){var a=t[0],l=t[1],c,s,u=0,f=1,h=e[0]-a,p=e[1]-l,d;if(d=n-a,h||!(d>0)){if(d/=h,h<0){if(d<u)return;d<f&&(f=d)}else if(h>0){if(d>f)return;d>u&&(u=d)}if(d=i-a,h||!(d<0)){if(d/=h,h<0){if(d>f)return;d>u&&(u=d)}else if(h>0){if(d<u)return;d<f&&(f=d)}if(d=r-l,p||!(d>0)){if(d/=p,p<0){if(d<u)return;d<f&&(f=d)}else if(p>0){if(d>f)return;d>u&&(u=d)}if(d=o-l,p||!(d<0)){if(d/=p,p<0){if(d>f)return;d>u&&(u=d)}else if(p>0){if(d<u)return;d<f&&(f=d)}return u>0&&(t[0]=a+u*h,t[1]=l+u*p),f<1&&(e[0]=a+f*h,e[1]=l+f*p),!0}}}}},de=function(t,e){return g(t[0]-e[0])<l&&g(t[1]-e[1])<l};function ge(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var ve=function(t,e,n,r,i){var o=[],a=[],l,c;if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e],c;if(de(n,r)){for(i.lineStart(),l=0;l<e;++l)i.point((n=t[l])[0],n[1]);i.lineEnd()}else o.push(c=new ge(n,t,null,!0)),a.push(c.o=new ge(n,null,c,!1)),o.push(c=new ge(r,t,null,!1)),a.push(c.o=new ge(r,null,c,!0))}})),o.length){for(a.sort(e),ye(o),ye(a),l=0,c=a.length;l<c;++l)a[l].e=n=!n;for(var s=o[0],u,f;;){for(var h=s,p=!0;h.v;)if((h=h.n)===s)return;u=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(l=0,c=u.length;l<c;++l)i.point((f=u[l])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(u=h.p.z,l=u.length-1;l>=0;--l)i.point((f=u[l])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}u=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}};function ye(t){if(e=t.length){for(var e,n=0,r=t[0],i;++n<e;)r.n=i=t[n],i.p=r,r=i;r.n=i=t[0],i.p=r}}var me=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},be;function xe(t){return function(e,n){return me(t(e),n)}}var we=function(t){return 1===t.length&&(t=xe(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}(me),Oe=we.right,je=we.left,_e=Oe,Se=function(t,e){null==e&&(e=Ce);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return o};function Ce(t,e){return[t,e]}var Me=function(t,e,n){var r=t.length,i=e.length,o=new Array(r*i),a,l,c,s;for(null==n&&(n=Ce),a=c=0;a<r;++a)for(s=t[a],l=0;l<i;++l,++c)o[c]=n(s,e[l]);return o},Ae=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},Ee=function(t){return null===t?NaN:+t},ke=function(t,e){var n=t.length,r=0,i=-1,o=0,a,l,c=0;if(null==e)for(;++i<n;)isNaN(a=Ee(t[i]))||(c+=(l=a-o)*(a-(o+=l/++r)));else for(;++i<n;)isNaN(a=Ee(e(t[i],i,t)))||(c+=(l=a-o)*(a-(o+=l/++r)));if(r>1)return c/(r-1)},Pe=function(t,e){var n=ke(t,e);return n?Math.sqrt(n):n},Te=function(t,e){var n=t.length,r=-1,i,o,a;if(null==e){for(;++r<n;)if(null!=(i=t[r])&&i>=i)for(o=a=i;++r<n;)null!=(i=t[r])&&(o>i&&(o=i),a<i&&(a=i))}else for(;++r<n;)if(null!=(i=e(t[r],r,t))&&i>=i)for(o=a=i;++r<n;)null!=(i=e(t[r],r,t))&&(o>i&&(o=i),a<i&&(a=i));return[o,a]},Be=Array.prototype,Le=Be.slice,Ie=Be.map,Ne=function(t){return function(){return t}},Re=function(t){return t},Fe=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o},De=Math.sqrt(50),ze=Math.sqrt(10),Ve=Math.sqrt(2),Ge=function(t,e,n){var r,i=-1,o,a,l;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(l=Ye(t,e,n))||!isFinite(l))return[];if(l>0)for(t=Math.ceil(t/l),e=Math.floor(e/l),a=new Array(o=Math.ceil(e-t+1));++i<o;)a[i]=(t+i)*l;else for(t=Math.floor(t*l),e=Math.ceil(e*l),a=new Array(o=Math.ceil(t-e+1));++i<o;)a[i]=(t-i)/l;return r&&a.reverse(),a};function Ye(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=De?10:o>=ze?5:o>=Ve?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=De?10:o>=ze?5:o>=Ve?2:1)}function He(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=De?i*=10:o>=ze?i*=5:o>=Ve&&(i*=2),e<t?-i:i}var We=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},Xe=function(){var t=Re,e=Te,n=We;function r(r){var i,o=r.length,a,l=new Array(o);for(i=0;i<o;++i)l[i]=t(r[i],i,r);var c=e(l),s=c[0],u=c[1],f=n(l,s,u);Array.isArray(f)||(f=He(s,u,f),f=Fe(Math.ceil(s/f)*f,u,f));for(var h=f.length;f[0]<=s;)f.shift(),--h;for(;f[h-1]>u;)f.pop(),--h;var p=new Array(h+1),d;for(i=0;i<=h;++i)(d=p[i]=[]).x0=i>0?f[i-1]:s,d.x1=i<h?f[i]:u;for(i=0;i<o;++i)s<=(a=l[i])&&a<=u&&p[_e(f,a,0,h)].push(r[i]);return p}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:Ne(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:Ne([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Ne(Le.call(t)):Ne(t),r):n},r},qe=function(t,e,n){if(null==n&&(n=Ee),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),l;return a+(+n(t[o+1],o+1,t)-a)*(i-o)}},Ue=function(t,e,n){return t=Ie.call(t,Ee).sort(me),Math.ceil((n-e)/(2*(qe(t,.75)-qe(t,.25))*Math.pow(t.length,-1/3)))},$e=function(t,e,n){return Math.ceil((n-e)/(3.5*Pe(t)*Math.pow(t.length,-1/3)))},Ze=function(t,e){var n=t.length,r=-1,i,o;if(null==e){for(;++r<n;)if(null!=(i=t[r])&&i>=i)for(o=i;++r<n;)null!=(i=t[r])&&i>o&&(o=i)}else for(;++r<n;)if(null!=(i=e(t[r],r,t))&&i>=i)for(o=i;++r<n;)null!=(i=e(t[r],r,t))&&i>o&&(o=i);return o},Ke=function(t,e){var n=t.length,r=n,i=-1,o,a=0;if(null==e)for(;++i<n;)isNaN(o=Ee(t[i]))?--r:a+=o;else for(;++i<n;)isNaN(o=Ee(e(t[i],i,t)))?--r:a+=o;if(r)return a/r},Qe=function(t,e){var n=t.length,r=-1,i,o=[];if(null==e)for(;++r<n;)isNaN(i=Ee(t[r]))||o.push(i);else for(;++r<n;)isNaN(i=Ee(e(t[r],r,t)))||o.push(i);return qe(o.sort(me),.5)},Je=function(t){for(var e=t.length,n,r=-1,i=0,o,a;++r<e;)i+=t[r].length;for(o=new Array(i);--e>=0;)for(n=(a=t[e]).length;--n>=0;)o[--i]=a[n];return o},tn=function(t,e){var n=t.length,r=-1,i,o;if(null==e){for(;++r<n;)if(null!=(i=t[r])&&i>=i)for(o=i;++r<n;)null!=(i=t[r])&&o>i&&(o=i)}else for(;++r<n;)if(null!=(i=e(t[r],r,t))&&i>=i)for(o=i;++r<n;)null!=(i=e(t[r],r,t))&&o>i&&(o=i);return o},en=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},nn=function(t,e){if(n=t.length){var n,r=0,i=0,o,a=t[i];for(null==e&&(e=me);++r<n;)(e(o=t[r],a)<0||0!==e(a,a))&&(a=o,i=r);return 0===e(a,a)?i:void 0}},rn=function(t,e,n){for(var r=(null==n?t.length:n)-(e=null==e?0:+e),i,o;r;)o=Math.random()*r--|0,i=t[r+e],t[r+e]=t[o+e],t[o+e]=i;return t},on=function(t,e){var n=t.length,r=-1,i,o=0;if(null==e)for(;++r<n;)(i=+t[r])&&(o+=i);else for(;++r<n;)(i=+e(t[r],r,t))&&(o+=i);return o},an=function(t){if(!(o=t.length))return[];for(var e=-1,n=tn(t,ln),r=new Array(n);++e<n;)for(var i=-1,o,a=r[e]=new Array(o);++i<o;)a[i]=t[i][e];return r};function ln(t){return t.length}var cn=function(){return an(arguments)},sn=1e9,un=-sn;function fn(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,l,c){var u=0,f=0;if(null==i||(u=a(i,l))!==(f=a(o,l))||s(i,o)<0^l>0)do{c.point(0===u||3===u?t:n,u>1?r:e)}while((u=(u+l+4)%4)!==f);else c.point(o[0],o[1])}function a(r,i){return g(r[0]-t)<l?i>0?0:3:g(r[0]-n)<l?i>0?2:1:g(r[1]-e)<l?i>0?1:0:i>0?3:2}function c(t,e){return s(t.x,e.x)}function s(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var l=a,s=he(),u,f,h,p,d,g,v,y,m,b,x,w={point:O,lineStart:C,lineEnd:M,polygonStart:_,polygonEnd:S};function O(t,e){i(t,e)&&l.point(t,e)}function j(){for(var e=0,n=0,i=f.length;n<i;++n)for(var o=f[n],a=1,l=o.length,c=o[0],s,u,h=c[0],p=c[1];a<l;++a)s=h,u=p,h=(c=o[a])[0],p=c[1],u<=r?p>r&&(h-s)*(r-u)>(p-u)*(t-s)&&++e:p<=r&&(h-s)*(r-u)<(p-u)*(t-s)&&--e;return e}function _(){l=s,u=[],f=[],x=!0}function S(){var t=j(),e=x&&t,n=(u=Je(u)).length;(e||n)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),n&&ve(u,c,t,o,a),a.polygonEnd()),l=a,u=f=h=null}function C(){w.point=A,f&&f.push(h=[]),b=!0,m=!1,v=y=NaN}function M(){u&&(A(p,d),g&&m&&s.rejoin(),u.push(s.result())),w.point=O,m&&l.lineEnd()}function A(o,a){var c=i(o,a);if(f&&h.push([o,a]),b)p=o,d=a,g=c,b=!1,c&&(l.lineStart(),l.point(o,a));else if(c&&m)l.point(o,a);else{var s=[v=Math.max(un,Math.min(sn,v)),y=Math.max(un,Math.min(sn,y))],u=[o=Math.max(un,Math.min(sn,o)),a=Math.max(un,Math.min(sn,a))];pe(s,u,t,e,n,r)?(m||(l.lineStart(),l.point(s[0],s[1])),l.point(u[0],u[1]),c||l.lineEnd(),x=!1):c&&(l.lineStart(),l.point(o,a),x=!1)}v=o,y=a,m=c}return w}}var hn=function(){var t=0,e=0,n=960,r=500,i,o,a;return a={stream:function(a){return i&&o===a?i:i=fn(t,e,n,r)(o=a)},extent:function(l){return arguments.length?(t=+l[0][0],e=+l[0][1],n=+l[1][0],r=+l[1][1],i=o=null,a):[[t,e],[n,r]]}}},pn=r(),dn=function(t,e){var n=e[0],r=e[1],i=[_(n),-m(n),0],o=0,a=0;pn.reset();for(var c=0,u=t.length;c<u;++c)if(d=(p=t[c]).length)for(var p,d,g=p[d-1],v=g[0],b=g[1]/2+f,x=_(b),w=m(b),O=0;O<d;++O,v=S,x=M,w=A,g=j){var j=p[O],S=j[0],C=j[1]/2+f,M=_(C),A=m(C),k=S-v,P=k>=0?1:-1,T=P*k,B=T>s,L=x*M;if(pn.add(y(L*P*_(T),w*A+L*m(T))),o+=B?k+P*h:k,B^v>=n^S>=n){var I=tt(Q(g),Q(j));rt(I);var N=tt(i,I);rt(N);var R=(B^k>=0?-1:1)*E(N[2]);(r>R||r===R&&(I[0]||I[1]))&&(a+=B^k>=0?1:-1)}}return(o<-l||o<l&&pn<-l)^1&a},gn=r(),vn,yn,mn,bn={sphere:P,point:P,lineStart:xn,lineEnd:P,polygonStart:P,polygonEnd:P};function xn(){bn.point=On,bn.lineEnd=wn}function wn(){bn.point=bn.lineEnd=P}function On(t,e){vn=t*=d,yn=_(e*=d),mn=m(e),bn.point=jn}function jn(t,e){t*=d;var n=_(e*=d),r=m(e),i=g(t-vn),o=m(i),a,l=r*_(i),c=mn*n-yn*r*o,s=yn*n+mn*r*o;gn.add(y(C(l*l+c*c),s)),vn=t,yn=n,mn=r}var _n=function(t){return gn.reset(),R(t,bn),+gn},Sn=[null,null],Cn={type:"LineString",coordinates:Sn},Mn=function(t,e){return Sn[0]=t,Sn[1]=e,_n(Cn)},An={Feature:function(t,e){return kn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(kn(n[r].geometry,e))return!0;return!1}},En={Sphere:function(){return!0},Point:function(t,e){return Pn(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Pn(n[r],e))return!0;return!1},LineString:function(t,e){return Tn(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Tn(n[r],e))return!0;return!1},Polygon:function(t,e){return Bn(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Bn(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(kn(n[r],e))return!0;return!1}};function kn(t,e){return!(!t||!En.hasOwnProperty(t.type))&&En[t.type](t,e)}function Pn(t,e){return 0===Mn(t,e)}function Tn(t,e){var n=Mn(t[0],t[1]),r,i;return Mn(t[0],e)+Mn(e,t[1])<=n+l}function Bn(t,e){return!!dn(t.map(Ln),In(e))}function Ln(t){return(t=t.map(In)).pop(),t}function In(t){return[t[0]*d,t[1]*d]}var Nn=function(t,e){return(t&&An.hasOwnProperty(t.type)?An[t.type]:kn)(t,e)};function Rn(t,e,n){var r=Fe(t,e-l,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function Fn(t,e,n){var r=Fe(t,e-l,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function Dn(){var t,e,n,r,i,o,a,c,s=10,u=s,f=90,h=360,p,d,v,y,m=2.5;function x(){return{type:"MultiLineString",coordinates:w()}}function w(){return Fe(b(r/f)*f,n,f).map(v).concat(Fe(b(c/h)*h,a,h).map(y)).concat(Fe(b(e/s)*s,t,s).filter((function(t){return g(t%f)>l})).map(p)).concat(Fe(b(o/u)*u,i,u).filter((function(t){return g(t%h)>l})).map(d))}return x.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},x.outline=function(){return{type:"Polygon",coordinates:[v(r).concat(y(a).slice(1),v(n).reverse().slice(1),y(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],n=+t[1][0],c=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),c>a&&(t=c,c=a,a=t),x.precision(m)):[[r,c],[n,a]]},x.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),x.precision(m)):[[e,o],[t,i]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(f=+t[0],h=+t[1],x):[f,h]},x.stepMinor=function(t){return arguments.length?(s=+t[0],u=+t[1],x):[s,u]},x.precision=function(l){return arguments.length?(m=+l,p=Rn(o,i,90),d=Fn(e,t,m),v=Rn(c,a,90),y=Fn(r,n,m),x):m},x.extentMajor([[-180,-90+l],[180,90-l]]).extentMinor([[-180,-80-l],[180,80+l]])}function zn(){return Dn()()}var Vn=function(t,e){var n=t[0]*d,r=t[1]*d,i=e[0]*d,o=e[1]*d,a=m(r),l=_(r),c=m(o),s=_(o),u=a*m(n),f=a*_(n),h=c*m(i),g=c*_(i),v=2*E(C(k(o-r)+a*c*k(i-n))),b=_(v),x=v?function(t){var e=_(t*=v)/b,n=_(v-t)/b,r=n*u+e*h,i=n*f+e*g,o=n*l+e*s;return[y(i,r)*p,y(o,C(r*r+i*i))*p]}:function(){return[n*p,r*p]};return x.distance=v,x},Gn=function(t){return t},Yn=r(),Hn=r(),Wn,Xn,qn,Un,$n={point:P,lineStart:P,lineEnd:P,polygonStart:function(){$n.lineStart=Zn,$n.lineEnd=Jn},polygonEnd:function(){$n.lineStart=$n.lineEnd=$n.point=P,Yn.add(g(Hn)),Hn.reset()},result:function(){var t=Yn/2;return Yn.reset(),t}};function Zn(){$n.point=Kn}function Kn(t,e){$n.point=Qn,Wn=qn=t,Xn=Un=e}function Qn(t,e){Hn.add(Un*t-qn*e),qn=t,Un=e}function Jn(){Qn(Wn,Xn)}var tr=$n,er=1/0,nr=er,rr=-er,ir=rr,or;function ar(t,e){t<er&&(er=t),t>rr&&(rr=t),e<nr&&(nr=e),e>ir&&(ir=e)}var lr={point:ar,lineStart:P,lineEnd:P,polygonStart:P,polygonEnd:P,result:function(){var t=[[er,nr],[rr,ir]];return rr=ir=-(nr=er=1/0),t}},cr=0,sr=0,ur=0,fr=0,hr=0,pr=0,dr=0,gr=0,vr=0,yr,mr,br,xr,wr={point:Or,lineStart:jr,lineEnd:Cr,polygonStart:function(){wr.lineStart=Mr,wr.lineEnd=A