You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
21 KiB
1 line
21 KiB
5 years ago
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("d3-selection"),require("d3-dispatch")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-dispatch"],e):e(t.d3Kit=t.d3Kit||{},t.d3,t.d3)}(this,function(t,e,n){"use strict";function i(t){var e="undefined"==typeof t?"undefined":x(t);return null!=t&&("object"==e||"function"==e)}function r(t){var e=i(t)?T.call(t):"";return e==N||e==C||e==R}function a(t){return null!=t&&"object"==("undefined"==typeof t?"undefined":x(t))}function s(t){return"symbol"==("undefined"==typeof t?"undefined":x(t))||a(t)&&$.call(t)==G}function o(t){if("number"==typeof t)return t;if(s(t))return z;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(q,"");var n=U.test(t);return n||K.test(t)?V(t.slice(2),n?2:8):B.test(t)?z:+t}function h(t,e,n){function r(e){var n=g,i=p;return g=p=void 0,_=e,m=t.apply(i,n)}function a(t){return _=t,y=setTimeout(u,e),b?r(t):m}function s(t){var n=t-w,i=t-_,r=e-n;return O?Q(r,v-i):r}function h(t){var n=t-w,i=t-_;return void 0===w||n>=e||0>n||O&&i>=v}function u(){var t=L();return h(t)?l(t):void(y=setTimeout(u,s(t)))}function l(t){return y=void 0,k&&g?r(t):(g=p=void 0,m)}function c(){void 0!==y&&clearTimeout(y),_=0,g=w=p=y=void 0}function f(){return void 0===y?m:l(L())}function d(){var t=L(),n=h(t);if(g=arguments,p=this,w=t,n){if(void 0===y)return a(w);if(O)return y=setTimeout(u,e),r(w)}return void 0===y&&(y=setTimeout(u,e)),m}var g,p,v,m,y,w,_=0,b=!1,O=!1,k=!0;if("function"!=typeof t)throw new TypeError(Z);return e=o(e)||0,i(n)&&(b=!!n.leading,O="maxWait"in n,v=O?J(o(n.maxWait)||0,e):v,k="trailing"in n?!!n.trailing:k),d.cancel=c,d.flush=f,d}function u(t,e,n){var r=!0,a=!0;if("function"!=typeof t)throw new TypeError(X);return i(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),h(t,e,{leading:r,maxWait:e,trailing:a})}function l(t){return null==t?"":String(t).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(t){return null==t?"\\s":t.source?t.source:"["+l(t)+"]"}function f(t,e){if(null==t)return"";if(!e&&Y)return Y.call(t);var n=c(e),i=new RegExp("^"+n+"+|"+n+"+$","g");return String(t).replace(i,"")}function d(t){return f(t).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()}function g(t){t=t||{};for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var a in n)if(n.hasOwnProperty(a)){var s=n[a];t[a]=!i(s)||Array.isArray(s)||r(s)?s:g(t[a],s)}}return t}function p(t){t=t||{};for(var e=1;e<arguments.length;e++)if(arguments[e])for(var n in arguments[e])arguments[e].hasOwnProperty(n)&&(t[n]=arguments[e][n]);return t}function v(t,e,n){return function(){var i=n.apply(e,arguments);return i===e?t:i}}function m(t,e){for(var n=1,i=arguments.length,r=void 0;++n<i;)t[r=arguments[n]]=v(t,e,e[r]);return t}function y(t){return r(t)?t:function(){return t}}function w(t){throw new Error("Missing parameter "+t)}function _(t){return null!==t&&void 0!==t}function b(t){return null===t||void 0===t}function O(t){return!(!t||1!==t.nodeType)}function k(t){if(b(t))return function(t,e){return Math.min(t,e)};var e=(""+t).trim().toLowerCase();if(e.indexOf("%")>-1){var n=function(){var t=+e.replace("%","")/100;return{v:function(e,n){return n*t}}}();if("object"===("undefined"==typeof n?"undefined":x(n)))return n.v}return function(){return+e.replace("px","")}}function D(t){function e(t,e){var n=arguments.length<=2||void 0===arguments[2]?"":arguments[2],i=e.split("."),r=void 0,a=void 0;i.length>1?(a=i[0].length>0?i[0]:h,r=i[1]):(a=h,r=i[0]);var s=""+n+r;if(u.hasOwnProperty(s))throw new Error("invalid or duplicate layer id: "+s);var o=d(r)+"-layer",l=t.append(a).classed(o,!0);return u[s]=l,l}function n(t,r){var a=arguments.length<=2||void 0===arguments[2]?"":arguments[2];if(Array.isArray(r))return r.map(function(e){return n(t,e,a)});if(i(r)){var s=Object.keys(r),o=W(s,1),h=o[0],u=e(t,h,a);return n(u,r[h],""+a+h+"/"),u}return e(t,r,a)}function r(e){return n(t,e)}function a(t){return Array.isArray(t)?t.map(r):r(t)}function s(t){return u[t]}fu
|