-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
958 lines (864 loc) · 231 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Billionaires in 2023 by Forbes - the country perspective</title>
<script>(function() {
// If window.HTMLWidgets is already defined, then use it; otherwise create a
// new object. This allows preceding code to set options that affect the
// initialization process (though none currently exist).
window.HTMLWidgets = window.HTMLWidgets || {};
// See if we're running in a viewer pane. If not, we're in a web browser.
var viewerMode = window.HTMLWidgets.viewerMode =
/\bviewer_pane=1\b/.test(window.location);
// See if we're running in Shiny mode. If not, it's a static document.
// Note that static widgets can appear in both Shiny and static modes, but
// obviously, Shiny widgets can only appear in Shiny apps/documents.
var shinyMode = window.HTMLWidgets.shinyMode =
typeof(window.Shiny) !== "undefined" && !!window.Shiny.outputBindings;
// We can't count on jQuery being available, so we implement our own
// version if necessary.
function querySelectorAll(scope, selector) {
if (typeof(jQuery) !== "undefined" && scope instanceof jQuery) {
return scope.find(selector);
}
if (scope.querySelectorAll) {
return scope.querySelectorAll(selector);
}
}
function asArray(value) {
if (value === null)
return [];
if ($.isArray(value))
return value;
return [value];
}
// Implement jQuery's extend
function extend(target /*, ... */) {
if (arguments.length == 1) {
return target;
}
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var prop in source) {
if (source.hasOwnProperty(prop)) {
target[prop] = source[prop];
}
}
}
return target;
}
// IE8 doesn't support Array.forEach.
function forEach(values, callback, thisArg) {
if (values.forEach) {
values.forEach(callback, thisArg);
} else {
for (var i = 0; i < values.length; i++) {
callback.call(thisArg, values[i], i, values);
}
}
}
// Replaces the specified method with the return value of funcSource.
//
// Note that funcSource should not BE the new method, it should be a function
// that RETURNS the new method. funcSource receives a single argument that is
// the overridden method, it can be called from the new method. The overridden
// method can be called like a regular function, it has the target permanently
// bound to it so "this" will work correctly.
function overrideMethod(target, methodName, funcSource) {
var superFunc = target[methodName] || function() {};
var superFuncBound = function() {
return superFunc.apply(target, arguments);
};
target[methodName] = funcSource(superFuncBound);
}
// Add a method to delegator that, when invoked, calls
// delegatee.methodName. If there is no such method on
// the delegatee, but there was one on delegator before
// delegateMethod was called, then the original version
// is invoked instead.
// For example:
//
// var a = {
// method1: function() { console.log('a1'); }
// method2: function() { console.log('a2'); }
// };
// var b = {
// method1: function() { console.log('b1'); }
// };
// delegateMethod(a, b, "method1");
// delegateMethod(a, b, "method2");
// a.method1();
// a.method2();
//
// The output would be "b1", "a2".
function delegateMethod(delegator, delegatee, methodName) {
var inherited = delegator[methodName];
delegator[methodName] = function() {
var target = delegatee;
var method = delegatee[methodName];
// The method doesn't exist on the delegatee. Instead,
// call the method on the delegator, if it exists.
if (!method) {
target = delegator;
method = inherited;
}
if (method) {
return method.apply(target, arguments);
}
};
}
// Implement a vague facsimilie of jQuery's data method
function elementData(el, name, value) {
if (arguments.length == 2) {
return el["htmlwidget_data_" + name];
} else if (arguments.length == 3) {
el["htmlwidget_data_" + name] = value;
return el;
} else {
throw new Error("Wrong number of arguments for elementData: " +
arguments.length);
}
}
// http://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
function escapeRegExp(str) {
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
}
function hasClass(el, className) {
var re = new RegExp("\\b" + escapeRegExp(className) + "\\b");
return re.test(el.className);
}
// elements - array (or array-like object) of HTML elements
// className - class name to test for
// include - if true, only return elements with given className;
// if false, only return elements *without* given className
function filterByClass(elements, className, include) {
var results = [];
for (var i = 0; i < elements.length; i++) {
if (hasClass(elements[i], className) == include)
results.push(elements[i]);
}
return results;
}
function on(obj, eventName, func) {
if (obj.addEventListener) {
obj.addEventListener(eventName, func, false);
} else if (obj.attachEvent) {
obj.attachEvent(eventName, func);
}
}
function off(obj, eventName, func) {
if (obj.removeEventListener)
obj.removeEventListener(eventName, func, false);
else if (obj.detachEvent) {
obj.detachEvent(eventName, func);
}
}
// Translate array of values to top/right/bottom/left, as usual with
// the "padding" CSS property
// https://developer.mozilla.org/en-US/docs/Web/CSS/padding
function unpackPadding(value) {
if (typeof(value) === "number")
value = [value];
if (value.length === 1) {
return {top: value[0], right: value[0], bottom: value[0], left: value[0]};
}
if (value.length === 2) {
return {top: value[0], right: value[1], bottom: value[0], left: value[1]};
}
if (value.length === 3) {
return {top: value[0], right: value[1], bottom: value[2], left: value[1]};
}
if (value.length === 4) {
return {top: value[0], right: value[1], bottom: value[2], left: value[3]};
}
}
// Convert an unpacked padding object to a CSS value
function paddingToCss(paddingObj) {
return paddingObj.top + "px " + paddingObj.right + "px " + paddingObj.bottom + "px " + paddingObj.left + "px";
}
// Makes a number suitable for CSS
function px(x) {
if (typeof(x) === "number")
return x + "px";
else
return x;
}
// Retrieves runtime widget sizing information for an element.
// The return value is either null, or an object with fill, padding,
// defaultWidth, defaultHeight fields.
function sizingPolicy(el) {
var sizingEl = document.querySelector("script[data-for='" + el.id + "'][type='application/htmlwidget-sizing']");
if (!sizingEl)
return null;
var sp = JSON.parse(sizingEl.textContent || sizingEl.text || "{}");
if (viewerMode) {
return sp.viewer;
} else {
return sp.browser;
}
}
// @param tasks Array of strings (or falsy value, in which case no-op).
// Each element must be a valid JavaScript expression that yields a
// function. Or, can be an array of objects with "code" and "data"
// properties; in this case, the "code" property should be a string
// of JS that's an expr that yields a function, and "data" should be
// an object that will be added as an additional argument when that
// function is called.
// @param target The object that will be "this" for each function
// execution.
// @param args Array of arguments to be passed to the functions. (The
// same arguments will be passed to all functions.)
function evalAndRun(tasks, target, args) {
if (tasks) {
forEach(tasks, function(task) {
var theseArgs = args;
if (typeof(task) === "object") {
theseArgs = theseArgs.concat([task.data]);
task = task.code;
}
var taskFunc = tryEval(task);
if (typeof(taskFunc) !== "function") {
throw new Error("Task must be a function! Source:\n" + task);
}
taskFunc.apply(target, theseArgs);
});
}
}
// Attempt eval() both with and without enclosing in parentheses.
// Note that enclosing coerces a function declaration into
// an expression that eval() can parse
// (otherwise, a SyntaxError is thrown)
function tryEval(code) {
var result = null;
try {
result = eval("(" + code + ")");
} catch(error) {
if (!(error instanceof SyntaxError)) {
throw error;
}
try {
result = eval(code);
} catch(e) {
if (e instanceof SyntaxError) {
throw error;
} else {
throw e;
}
}
}
return result;
}
function initSizing(el) {
var sizing = sizingPolicy(el);
if (!sizing)
return;
var cel = document.getElementById("htmlwidget_container");
if (!cel)
return;
if (typeof(sizing.padding) !== "undefined") {
document.body.style.margin = "0";
document.body.style.padding = paddingToCss(unpackPadding(sizing.padding));
}
if (sizing.fill) {
document.body.style.overflow = "hidden";
document.body.style.width = "100%";
document.body.style.height = "100%";
document.documentElement.style.width = "100%";
document.documentElement.style.height = "100%";
if (cel) {
cel.style.position = "absolute";
var pad = unpackPadding(sizing.padding);
cel.style.top = pad.top + "px";
cel.style.right = pad.right + "px";
cel.style.bottom = pad.bottom + "px";
cel.style.left = pad.left + "px";
el.style.width = "100%";
el.style.height = "100%";
}
return {
getWidth: function() { return cel.offsetWidth; },
getHeight: function() { return cel.offsetHeight; }
};
} else {
el.style.width = px(sizing.width);
el.style.height = px(sizing.height);
return {
getWidth: function() { return el.offsetWidth; },
getHeight: function() { return el.offsetHeight; }
};
}
}
// Default implementations for methods
var defaults = {
find: function(scope) {
return querySelectorAll(scope, "." + this.name);
},
renderError: function(el, err) {
var $el = $(el);
this.clearError(el);
// Add all these error classes, as Shiny does
var errClass = "shiny-output-error";
if (err.type !== null) {
// use the classes of the error condition as CSS class names
errClass = errClass + " " + $.map(asArray(err.type), function(type) {
return errClass + "-" + type;
}).join(" ");
}
errClass = errClass + " htmlwidgets-error";
// Is el inline or block? If inline or inline-block, just display:none it
// and add an inline error.
var display = $el.css("display");
$el.data("restore-display-mode", display);
if (display === "inline" || display === "inline-block") {
$el.hide();
if (err.message !== "") {
var errorSpan = $("<span>").addClass(errClass);
errorSpan.text(err.message);
$el.after(errorSpan);
}
} else if (display === "block") {
// If block, add an error just after the el, set visibility:none on the
// el, and position the error to be on top of the el.
// Mark it with a unique ID and CSS class so we can remove it later.
$el.css("visibility", "hidden");
if (err.message !== "") {
var errorDiv = $("<div>").addClass(errClass).css("position", "absolute")
.css("top", el.offsetTop)
.css("left", el.offsetLeft)
// setting width can push out the page size, forcing otherwise
// unnecessary scrollbars to appear and making it impossible for
// the element to shrink; so use max-width instead
.css("maxWidth", el.offsetWidth)
.css("height", el.offsetHeight);
errorDiv.text(err.message);
$el.after(errorDiv);
// Really dumb way to keep the size/position of the error in sync with
// the parent element as the window is resized or whatever.
var intId = setInterval(function() {
if (!errorDiv[0].parentElement) {
clearInterval(intId);
return;
}
errorDiv
.css("top", el.offsetTop)
.css("left", el.offsetLeft)
.css("maxWidth", el.offsetWidth)
.css("height", el.offsetHeight);
}, 500);
}
}
},
clearError: function(el) {
var $el = $(el);
var display = $el.data("restore-display-mode");
$el.data("restore-display-mode", null);
if (display === "inline" || display === "inline-block") {
if (display)
$el.css("display", display);
$(el.nextSibling).filter(".htmlwidgets-error").remove();
} else if (display === "block"){
$el.css("visibility", "inherit");
$(el.nextSibling).filter(".htmlwidgets-error").remove();
}
},
sizing: {}
};
// Called by widget bindings to register a new type of widget. The definition
// object can contain the following properties:
// - name (required) - A string indicating the binding name, which will be
// used by default as the CSS classname to look for.
// - initialize (optional) - A function(el) that will be called once per
// widget element; if a value is returned, it will be passed as the third
// value to renderValue.
// - renderValue (required) - A function(el, data, initValue) that will be
// called with data. Static contexts will cause this to be called once per
// element; Shiny apps will cause this to be called multiple times per
// element, as the data changes.
window.HTMLWidgets.widget = function(definition) {
if (!definition.name) {
throw new Error("Widget must have a name");
}
if (!definition.type) {
throw new Error("Widget must have a type");
}
// Currently we only support output widgets
if (definition.type !== "output") {
throw new Error("Unrecognized widget type '" + definition.type + "'");
}
// TODO: Verify that .name is a valid CSS classname
// Support new-style instance-bound definitions. Old-style class-bound
// definitions have one widget "object" per widget per type/class of
// widget; the renderValue and resize methods on such widget objects
// take el and instance arguments, because the widget object can't
// store them. New-style instance-bound definitions have one widget
// object per widget instance; the definition that's passed in doesn't
// provide renderValue or resize methods at all, just the single method
// factory(el, width, height)
// which returns an object that has renderValue(x) and resize(w, h).
// This enables a far more natural programming style for the widget
// author, who can store per-instance state using either OO-style
// instance fields or functional-style closure variables (I guess this
// is in contrast to what can only be called C-style pseudo-OO which is
// what we required before).
if (definition.factory) {
definition = createLegacyDefinitionAdapter(definition);
}
if (!definition.renderValue) {
throw new Error("Widget must have a renderValue function");
}
// For static rendering (non-Shiny), use a simple widget registration
// scheme. We also use this scheme for Shiny apps/documents that also
// contain static widgets.
window.HTMLWidgets.widgets = window.HTMLWidgets.widgets || [];
// Merge defaults into the definition; don't mutate the original definition.
var staticBinding = extend({}, defaults, definition);
overrideMethod(staticBinding, "find", function(superfunc) {
return function(scope) {
var results = superfunc(scope);
// Filter out Shiny outputs, we only want the static kind
return filterByClass(results, "html-widget-output", false);
};
});
window.HTMLWidgets.widgets.push(staticBinding);
if (shinyMode) {
// Shiny is running. Register the definition with an output binding.
// The definition itself will not be the output binding, instead
// we will make an output binding object that delegates to the
// definition. This is because we foolishly used the same method
// name (renderValue) for htmlwidgets definition and Shiny bindings
// but they actually have quite different semantics (the Shiny
// bindings receive data that includes lots of metadata that it
// strips off before calling htmlwidgets renderValue). We can't
// just ignore the difference because in some widgets it's helpful
// to call this.renderValue() from inside of resize(), and if
// we're not delegating, then that call will go to the Shiny
// version instead of the htmlwidgets version.
// Merge defaults with definition, without mutating either.
var bindingDef = extend({}, defaults, definition);
// This object will be our actual Shiny binding.
var shinyBinding = new Shiny.OutputBinding();
// With a few exceptions, we'll want to simply use the bindingDef's
// version of methods if they are available, otherwise fall back to
// Shiny's defaults. NOTE: If Shiny's output bindings gain additional
// methods in the future, and we want them to be overrideable by
// HTMLWidget binding definitions, then we'll need to add them to this
// list.
delegateMethod(shinyBinding, bindingDef, "getId");
delegateMethod(shinyBinding, bindingDef, "onValueChange");
delegateMethod(shinyBinding, bindingDef, "onValueError");
delegateMethod(shinyBinding, bindingDef, "renderError");
delegateMethod(shinyBinding, bindingDef, "clearError");
delegateMethod(shinyBinding, bindingDef, "showProgress");
// The find, renderValue, and resize are handled differently, because we
// want to actually decorate the behavior of the bindingDef methods.
shinyBinding.find = function(scope) {
var results = bindingDef.find(scope);
// Only return elements that are Shiny outputs, not static ones
var dynamicResults = results.filter(".html-widget-output");
// It's possible that whatever caused Shiny to think there might be
// new dynamic outputs, also caused there to be new static outputs.
// Since there might be lots of different htmlwidgets bindings, we
// schedule execution for later--no need to staticRender multiple
// times.
if (results.length !== dynamicResults.length)
scheduleStaticRender();
return dynamicResults;
};
// Wrap renderValue to handle initialization, which unfortunately isn't
// supported natively by Shiny at the time of this writing.
shinyBinding.renderValue = function(el, data) {
Shiny.renderDependencies(data.deps);
// Resolve strings marked as javascript literals to objects
if (!(data.evals instanceof Array)) data.evals = [data.evals];
for (var i = 0; data.evals && i < data.evals.length; i++) {
window.HTMLWidgets.evaluateStringMember(data.x, data.evals[i]);
}
if (!bindingDef.renderOnNullValue) {
if (data.x === null) {
el.style.visibility = "hidden";
return;
} else {
el.style.visibility = "inherit";
}
}
if (!elementData(el, "initialized")) {
initSizing(el);
elementData(el, "initialized", true);
if (bindingDef.initialize) {
var result = bindingDef.initialize(el, el.offsetWidth,
el.offsetHeight);
elementData(el, "init_result", result);
}
}
bindingDef.renderValue(el, data.x, elementData(el, "init_result"));
evalAndRun(data.jsHooks.render, elementData(el, "init_result"), [el, data.x]);
};
// Only override resize if bindingDef implements it
if (bindingDef.resize) {
shinyBinding.resize = function(el, width, height) {
// Shiny can call resize before initialize/renderValue have been
// called, which doesn't make sense for widgets.
if (elementData(el, "initialized")) {
bindingDef.resize(el, width, height, elementData(el, "init_result"));
}
};
}
Shiny.outputBindings.register(shinyBinding, bindingDef.name);
}
};
var scheduleStaticRenderTimerId = null;
function scheduleStaticRender() {
if (!scheduleStaticRenderTimerId) {
scheduleStaticRenderTimerId = setTimeout(function() {
scheduleStaticRenderTimerId = null;
window.HTMLWidgets.staticRender();
}, 1);
}
}
// Render static widgets after the document finishes loading
// Statically render all elements that are of this widget's class
window.HTMLWidgets.staticRender = function() {
var bindings = window.HTMLWidgets.widgets || [];
forEach(bindings, function(binding) {
var matches = binding.find(document.documentElement);
forEach(matches, function(el) {
var sizeObj = initSizing(el, binding);
if (hasClass(el, "html-widget-static-bound"))
return;
el.className = el.className + " html-widget-static-bound";
var initResult;
if (binding.initialize) {
initResult = binding.initialize(el,
sizeObj ? sizeObj.getWidth() : el.offsetWidth,
sizeObj ? sizeObj.getHeight() : el.offsetHeight
);
elementData(el, "init_result", initResult);
}
if (binding.resize) {
var lastSize = {
w: sizeObj ? sizeObj.getWidth() : el.offsetWidth,
h: sizeObj ? sizeObj.getHeight() : el.offsetHeight
};
var resizeHandler = function(e) {
var size = {
w: sizeObj ? sizeObj.getWidth() : el.offsetWidth,
h: sizeObj ? sizeObj.getHeight() : el.offsetHeight
};
if (size.w === 0 && size.h === 0)
return;
if (size.w === lastSize.w && size.h === lastSize.h)
return;
lastSize = size;
binding.resize(el, size.w, size.h, initResult);
};
on(window, "resize", resizeHandler);
// This is needed for cases where we're running in a Shiny
// app, but the widget itself is not a Shiny output, but
// rather a simple static widget. One example of this is
// an rmarkdown document that has runtime:shiny and widget
// that isn't in a render function. Shiny only knows to
// call resize handlers for Shiny outputs, not for static
// widgets, so we do it ourselves.
if (window.jQuery) {
window.jQuery(document).on(
"shown.htmlwidgets shown.bs.tab.htmlwidgets shown.bs.collapse.htmlwidgets",
resizeHandler
);
window.jQuery(document).on(
"hidden.htmlwidgets hidden.bs.tab.htmlwidgets hidden.bs.collapse.htmlwidgets",
resizeHandler
);
}
// This is needed for the specific case of ioslides, which
// flips slides between display:none and display:block.
// Ideally we would not have to have ioslide-specific code
// here, but rather have ioslides raise a generic event,
// but the rmarkdown package just went to CRAN so the
// window to getting that fixed may be long.
if (window.addEventListener) {
// It's OK to limit this to window.addEventListener
// browsers because ioslides itself only supports
// such browsers.
on(document, "slideenter", resizeHandler);
on(document, "slideleave", resizeHandler);
}
}
var scriptData = document.querySelector("script[data-for='" + el.id + "'][type='application/json']");
if (scriptData) {
var data = JSON.parse(scriptData.textContent || scriptData.text);
// Resolve strings marked as javascript literals to objects
if (!(data.evals instanceof Array)) data.evals = [data.evals];
for (var k = 0; data.evals && k < data.evals.length; k++) {
window.HTMLWidgets.evaluateStringMember(data.x, data.evals[k]);
}
binding.renderValue(el, data.x, initResult);
evalAndRun(data.jsHooks.render, initResult, [el, data.x]);
}
});
});
invokePostRenderHandlers();
}
function has_jQuery3() {
if (!window.jQuery) {
return false;
}
var $version = window.jQuery.fn.jquery;
var $major_version = parseInt($version.split(".")[0]);
return $major_version >= 3;
}
/*
/ Shiny 1.4 bumped jQuery from 1.x to 3.x which means jQuery's
/ on-ready handler (i.e., $(fn)) is now asyncronous (i.e., it now
/ really means $(setTimeout(fn)).
/ https://jquery.com/upgrade-guide/3.0/#breaking-change-document-ready-handlers-are-now-asynchronous
/
/ Since Shiny uses $() to schedule initShiny, shiny>=1.4 calls initShiny
/ one tick later than it did before, which means staticRender() is
/ called renderValue() earlier than (advanced) widget authors might be expecting.
/ https://github.com/rstudio/shiny/issues/2630
/
/ For a concrete example, leaflet has some methods (e.g., updateBounds)
/ which reference Shiny methods registered in initShiny (e.g., setInputValue).
/ Since leaflet is privy to this life-cycle, it knows to use setTimeout() to
/ delay execution of those methods (until Shiny methods are ready)
/ https://github.com/rstudio/leaflet/blob/18ec981/javascript/src/index.js#L266-L268
/
/ Ideally widget authors wouldn't need to use this setTimeout() hack that
/ leaflet uses to call Shiny methods on a staticRender(). In the long run,
/ the logic initShiny should be broken up so that method registration happens
/ right away, but binding happens later.
*/
function maybeStaticRenderLater() {
if (shinyMode && has_jQuery3()) {
window.jQuery(window.HTMLWidgets.staticRender);
} else {
window.HTMLWidgets.staticRender();
}
}
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", function() {
document.removeEventListener("DOMContentLoaded", arguments.callee, false);
maybeStaticRenderLater();
}, false);
} else if (document.attachEvent) {
document.attachEvent("onreadystatechange", function() {
if (document.readyState === "complete") {
document.detachEvent("onreadystatechange", arguments.callee);
maybeStaticRenderLater();
}
});
}
window.HTMLWidgets.getAttachmentUrl = function(depname, key) {
// If no key, default to the first item
if (typeof(key) === "undefined")
key = 1;
var link = document.getElementById(depname + "-" + key + "-attachment");
if (!link) {
throw new Error("Attachment " + depname + "/" + key + " not found in document");
}
return link.getAttribute("href");
};
window.HTMLWidgets.dataframeToD3 = function(df) {
var names = [];
var length;
for (var name in df) {
if (df.hasOwnProperty(name))
names.push(name);
if (typeof(df[name]) !== "object" || typeof(df[name].length) === "undefined") {
throw new Error("All fields must be arrays");
} else if (typeof(length) !== "undefined" && length !== df[name].length) {
throw new Error("All fields must be arrays of the same length");
}
length = df[name].length;
}
var results = [];
var item;
for (var row = 0; row < length; row++) {
item = {};
for (var col = 0; col < names.length; col++) {
item[names[col]] = df[names[col]][row];
}
results.push(item);
}
return results;
};
window.HTMLWidgets.transposeArray2D = function(array) {
if (array.length === 0) return array;
var newArray = array[0].map(function(col, i) {
return array.map(function(row) {
return row[i]
})
});
return newArray;
};
// Split value at splitChar, but allow splitChar to be escaped
// using escapeChar. Any other characters escaped by escapeChar
// will be included as usual (including escapeChar itself).
function splitWithEscape(value, splitChar, escapeChar) {
var results = [];
var escapeMode = false;
var currentResult = "";
for (var pos = 0; pos < value.length; pos++) {
if (!escapeMode) {
if (value[pos] === splitChar) {
results.push(currentResult);
currentResult = "";
} else if (value[pos] === escapeChar) {
escapeMode = true;
} else {
currentResult += value[pos];
}
} else {
currentResult += value[pos];
escapeMode = false;
}
}
if (currentResult !== "") {
results.push(currentResult);
}
return results;
}
// Function authored by Yihui/JJ Allaire
window.HTMLWidgets.evaluateStringMember = function(o, member) {
var parts = splitWithEscape(member, '.', '\\');
for (var i = 0, l = parts.length; i < l; i++) {
var part = parts[i];
// part may be a character or 'numeric' member name
if (o !== null && typeof o === "object" && part in o) {
if (i == (l - 1)) { // if we are at the end of the line then evalulate
if (typeof o[part] === "string")
o[part] = tryEval(o[part]);
} else { // otherwise continue to next embedded object
o = o[part];
}
}
}
};
// Retrieve the HTMLWidget instance (i.e. the return value of an
// HTMLWidget binding's initialize() or factory() function)
// associated with an element, or null if none.
window.HTMLWidgets.getInstance = function(el) {
return elementData(el, "init_result");
};
// Finds the first element in the scope that matches the selector,
// and returns the HTMLWidget instance (i.e. the return value of
// an HTMLWidget binding's initialize() or factory() function)
// associated with that element, if any. If no element matches the
// selector, or the first matching element has no HTMLWidget
// instance associated with it, then null is returned.
//
// The scope argument is optional, and defaults to window.document.
window.HTMLWidgets.find = function(scope, selector) {
if (arguments.length == 1) {
selector = scope;
scope = document;
}
var el = scope.querySelector(selector);
if (el === null) {
return null;
} else {
return window.HTMLWidgets.getInstance(el);
}
};
// Finds all elements in the scope that match the selector, and
// returns the HTMLWidget instances (i.e. the return values of
// an HTMLWidget binding's initialize() or factory() function)
// associated with the elements, in an array. If elements that
// match the selector don't have an associated HTMLWidget
// instance, the returned array will contain nulls.
//
// The scope argument is optional, and defaults to window.document.
window.HTMLWidgets.findAll = function(scope, selector) {
if (arguments.length == 1) {
selector = scope;
scope = document;
}
var nodes = scope.querySelectorAll(selector);
var results = [];
for (var i = 0; i < nodes.length; i++) {
results.push(window.HTMLWidgets.getInstance(nodes[i]));
}
return results;
};
var postRenderHandlers = [];
function invokePostRenderHandlers() {
while (postRenderHandlers.length) {
var handler = postRenderHandlers.shift();
if (handler) {
handler();
}
}
}
// Register the given callback function to be invoked after the
// next time static widgets are rendered.
window.HTMLWidgets.addPostRenderHandler = function(callback) {
postRenderHandlers.push(callback);
};
// Takes a new-style instance-bound definition, and returns an
// old-style class-bound definition. This saves us from having
// to rewrite all the logic in this file to accomodate both
// types of definitions.
function createLegacyDefinitionAdapter(defn) {
var result = {
name: defn.name,
type: defn.type,
initialize: function(el, width, height) {
return defn.factory(el, width, height);
},
renderValue: function(el, x, instance) {
return instance.renderValue(x);
},
resize: function(el, width, height, instance) {
return instance.resize(width, height);
}
};
if (defn.find)
result.find = defn.find;
if (defn.renderError)
result.renderError = defn.renderError;
if (defn.clearError)
result.clearError = defn.clearError;
return result;
}
})();
</script>
<script>// https://d3js.org/d3-selection/ v1.4.2 Copyright 2020 Mike Bostock
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).d3=t.d3||{})}(this,function(t){"use strict";var n="http://www.w3.org/1999/xhtml",e={svg:"http://www.w3.org/2000/svg",xhtml:n,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function r(t){var n=t+="",r=n.indexOf(":");return r>=0&&"xmlns"!==(n=t.slice(0,r))&&(t=t.slice(r+1)),e.hasOwnProperty(n)?{space:e[n],local:t}:t}function i(t){var e=r(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===n&&e.documentElement.namespaceURI===n?e.createElement(t):e.createElementNS(r,t)}})(e)}function o(){}function u(t){return null==t?o:function(){return this.querySelector(t)}}function c(){return[]}function s(t){return null==t?c:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function l(t){return new Array(t.length)}function f(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}f.prototype={constructor:f,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)}};var h="$";function p(t,n,e,r,i,o){for(var u,c=0,s=n.length,a=o.length;c<a;++c)(u=n[c])?(u.__data__=o[c],r[c]=u):e[c]=new f(t,o[c]);for(;c<s;++c)(u=n[c])&&(i[c]=u)}function _(t,n,e,r,i,o,u){var c,s,a,l={},p=n.length,_=o.length,v=new Array(p);for(c=0;c<p;++c)(s=n[c])&&(v[c]=a=h+u.call(s,s.__data__,c,n),a in l?i[c]=s:l[a]=s);for(c=0;c<_;++c)(s=l[a=h+u.call(t,o[c],c,o)])?(r[c]=s,s.__data__=o[c],l[a]=null):e[c]=new f(t,o[c]);for(c=0;c<p;++c)(s=n[c])&&l[v[c]]===s&&(i[c]=s)}function v(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function d(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function y(t,n){return t.style.getPropertyValue(n)||d(t).getComputedStyle(t,null).getPropertyValue(n)}function m(t){return t.trim().split(/^|\s+/)}function g(t){return t.classList||new w(t)}function w(t){this._node=t,this._names=m(t.getAttribute("class")||"")}function A(t,n){for(var e=g(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function x(t,n){for(var e=g(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function S(){this.textContent=""}function b(){this.innerHTML=""}function E(){this.nextSibling&&this.parentNode.appendChild(this)}function N(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function P(){return null}function C(){var t=this.parentNode;t&&t.removeChild(this)}function L(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function T(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}w.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}};var B={};(t.event=null,"undefined"!=typeof document)&&("onmouseenter"in document.documentElement||(B={mouseenter:"mouseover",mouseleave:"mouseout"}));function q(t,n,e){return t=D(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function D(n,e,r){return function(i){var o=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=o}}}function M(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 O(t,n,e){var r=B.hasOwnProperty(t.type)?q:D;return function(i,o,u){var c,s=this.__on,a=r(n,o,u);if(s)for(var l=0,f=s.length;l<f;++l)if((c=s[l]).type===t.type&&c.name===t.name)return this.removeEventListener(c.type,c.listener,c.capture),this.addEventListener(c.type,c.listener=a,c.capture=e),void(c.value=n);this.addEventListener(t.type,a,e),c={type:t.type,name:t.name,value:n,listener:a,capture:e},s?s.push(c):this.__on=[c]}}function V(t,n,e){var r=d(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)}var j=[null];function R(t,n){this._groups=t,this._parents=n}function H(){return new R([[document.documentElement]],j)}function I(t){return"string"==typeof t?new R([[document.querySelector(t)]],[document.documentElement]):new R([[t]],j)}R.prototype=H.prototype={constructor:R,select:function(t){"function"!=typeof t&&(t=u(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,c,s=n[i],a=s.length,l=r[i]=new Array(a),f=0;f<a;++f)(o=s[f])&&(c=t.call(o,o.__data__,f,s))&&("__data__"in o&&(c.__data__=o.__data__),l[f]=c);return new R(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=s(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,c=n[o],a=c.length,l=0;l<a;++l)(u=c[l])&&(r.push(t.call(u,u.__data__,l,c)),i.push(u));return new R(r,i)},filter:function(t){"function"!=typeof t&&(t=a(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],c=u.length,s=r[i]=[],l=0;l<c;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new R(r,this._parents)},data:function(t,n){if(!t)return d=new Array(this.size()),l=-1,this.each(function(t){d[++l]=t}),d;var e,r=n?_:p,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var u=o.length,c=new Array(u),s=new Array(u),a=new Array(u),l=0;l<u;++l){var f=i[l],h=o[l],v=h.length,d=t.call(f,f&&f.__data__,l,i),y=d.length,m=s[l]=new Array(y),g=c[l]=new Array(y);r(f,h,m,g,a[l]=new Array(v),d,n);for(var w,A,x=0,S=0;x<y;++x)if(w=m[x]){for(x>=S&&(S=x+1);!(A=g[S])&&++S<y;);w._next=A||null}}return(c=new R(c,i))._enter=s,c._exit=a,c},enter:function(){return new R(this._enter||this._groups.map(l),this._parents)},exit:function(){return new R(this._exit||this._groups.map(l),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),u=new Array(r),c=0;c<o;++c)for(var s,a=n[c],l=e[c],f=a.length,h=u[c]=new Array(f),p=0;p<f;++p)(s=a[p]||l[p])&&(h[p]=s);for(;c<r;++c)u[c]=n[c];return new R(u,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,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=v);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,c=e[o],s=c.length,a=i[o]=new Array(s),l=0;l<s;++l)(u=c[l])&&(a[l]=u);a.sort(n)}return new R(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 u=r[i];if(u)return u}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],u=0,c=o.length;u<c;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=r(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==n?e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?e.local?function(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)}}:function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:e.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):y(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=m(t+"");if(arguments.length<2){for(var r=g(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?A:x)(this,t)}}:n?function(t){return function(){A(this,t)}}:function(t){return function(){x(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?S:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?b:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(E)},lower:function(){return this.each(N)},append:function(t){var n="function"==typeof t?t:i(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:i(t),r=null==n?P:"function"==typeof n?n:u(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(C)},clone:function(t){return this.select(t?T:L)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(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}})}(t+""),u=o.length;if(!(arguments.length<2)){for(c=n?O:M,null==e&&(e=!1),r=0;r<u;++r)this.each(c(o[r],n,e));return this}var c=this.node().__on;if(c)for(var s,a=0,l=c.length;a<l;++a)for(r=0,s=c[a];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return V(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return V(this,t,n)}})(t,n))}};var U=0;function z(){return new G}function G(){this._="@"+(++U).toString(36)}function X(){for(var n,e=t.event;n=e.sourceEvent;)e=n;return e}function k(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]}G.prototype=z.prototype={constructor:G,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._}},t.clientPoint=k,t.create=function(t){return I(i(t).call(document.documentElement))},t.creator=i,t.customEvent=function(n,e,r,i){var o=t.event;n.sourceEvent=t.event,t.event=n;try{return e.apply(r,i)}finally{t.event=o}},t.local=z,t.matcher=a,t.mouse=function(t){var n=X();return n.changedTouches&&(n=n.changedTouches[0]),k(t,n)},t.namespace=r,t.namespaces=e,t.select=I,t.selectAll=function(t){return"string"==typeof t?new R([document.querySelectorAll(t)],[document.documentElement]):new R([null==t?[]:t],j)},t.selection=H,t.selector=u,t.selectorAll=s,t.style=y,t.touch=function(t,n,e){arguments.length<3&&(e=n,n=X().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return k(t,r);return null},t.touches=function(t,n){null==n&&(n=X().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=k(t,n[e]);return i},t.window=d,Object.defineProperty(t,"__esModule",{value:!0})});
// https://d3js.org/d3-color/ v1.4.1 Copyright 2020 Mike Bostock
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).d3=t.d3||{})}(this,function(t){"use strict";function e(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function n(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function i(){}var r="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",o=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[r,r,r]+"\\)$"),l=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),u=new RegExp("^rgba\\("+[r,r,r,a]+"\\)$"),c=new RegExp("^rgba\\("+[s,s,s,a]+"\\)$"),g=new RegExp("^hsl\\("+[a,s,s]+"\\)$"),f=new RegExp("^hsla\\("+[a,s,s,a]+"\\)$"),d={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 p(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function y(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=o.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new M(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?m(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?m(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new M(e[1],e[2],e[3],1):(e=l.exec(t))?new M(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?m(e[1],e[2],e[3],e[4]):(e=c.exec(t))?m(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?R(e[1],e[2]/100,e[3]/100,1):(e=f.exec(t))?R(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?w(d[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 m(t,e,n,i){return i<=0&&(t=e=n=NaN),new M(t,e,n,i)}function N(t){return t instanceof i||(t=y(t)),t?new M((t=t.rgb()).r,t.g,t.b,t.opacity):new M}function k(t,e,n,i){return 1===arguments.length?N(t):new M(t,e,n,null==i?1:i)}function M(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function v(){return"#"+q(this.r)+q(this.g)+q(this.b)}function x(){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 q(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function R(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new H(t,e,n,i)}function E(t){if(t instanceof H)return new H(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=y(t)),!t)return new H;if(t instanceof H)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,h=s-a,l=(s+a)/2;return h?(o=e===s?(n-r)/h+6*(n<r):n===s?(r-e)/h+2:(e-n)/h+4,h/=l<.5?s+a:2-s-a,o*=60):h=l>0&&l<1?0:o,new H(o,h,l,t.opacity)}function $(t,e,n,i){return 1===arguments.length?E(t):new H(t,e,n,null==i?1:i)}function H(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function j(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e(i,y,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:p,formatHex:p,formatHsl:function(){return E(this).formatHsl()},formatRgb:b,toString:b}),e(M,k,n(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,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:v,formatHex:v,formatRgb:x,toString:x})),e(H,$,n(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new H(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new H(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new M(j(t>=240?t-240:t+120,r,i),j(t,r,i),j(t<120?t+240:t-120,r,i),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+")")}}));var O=Math.PI/180,P=180/Math.PI,I=.96422,S=1,_=.82521,z=4/29,C=6/29,L=3*C*C,A=C*C*C;function B(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof V)return W(t);t instanceof M||(t=N(t));var e,n,i=Q(t.r),r=Q(t.g),a=Q(t.b),s=G((.2225045*i+.7168786*r+.0606169*a)/S);return i===r&&r===a?e=n=s:(e=G((.4360747*i+.3850649*r+.1430804*a)/I),n=G((.0139322*i+.0971045*r+.7141733*a)/_)),new F(116*s-16,500*(e-s),200*(s-n),t.opacity)}function D(t,e,n,i){return 1===arguments.length?B(t):new F(t,e,n,null==i?1:i)}function F(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function G(t){return t>A?Math.pow(t,1/3):t/L+z}function J(t){return t>C?t*t*t:L*(t-z)}function K(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Q(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function T(t){if(t instanceof V)return new V(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=B(t)),0===t.a&&0===t.b)return new V(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*P;return new V(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function U(t,e,n,i){return 1===arguments.length?T(t):new V(t,e,n,null==i?1:i)}function V(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function W(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*O;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,D,n(i,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new M(K(3.1338561*(e=I*J(e))-1.6168667*(t=S*J(t))-.4906146*(n=_*J(n))),K(-.9787684*e+1.9161415*t+.033454*n),K(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),e(V,U,n(i,{brighter:function(t){return new V(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new V(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return W(this).rgb()}}));var X=-.14861,Y=1.78277,Z=-.29227,tt=-.90649,et=1.97294,nt=et*tt,it=et*Y,rt=Y*Z-tt*X;function at(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);t instanceof M||(t=N(t));var e=t.r/255,n=t.g/255,i=t.b/255,r=(rt*i+nt*e-it*n)/(rt+nt-it),a=i-r,s=(et*(n-r)-Z*a)/tt,o=Math.sqrt(s*s+a*a)/(et*r*(1-r)),h=o?Math.atan2(s,a)*P-120:NaN;return new st(h<0?h+360:h,o,r,t.opacity)}(t):new st(t,e,n,null==i?1:i)}function st(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}e(st,at,n(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new st(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new st(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*O,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),i=Math.cos(t),r=Math.sin(t);return new M(255*(e+n*(X*i+Y*r)),255*(e+n*(Z*i+tt*r)),255*(e+n*(et*i)),this.opacity)}})),t.color=y,t.cubehelix=at,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=U,t.hsl=$,t.lab=D,t.lch=function(t,e,n,i){return 1===arguments.length?T(t):new V(n,e,t,null==i?1:i)},t.rgb=k,Object.defineProperty(t,"__esModule",{value:!0})});
// https://d3js.org/d3-dispatch/ v1.0.6 Copyright 2019 Mike Bostock
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).d3=n.d3||{})}(this,function(n){"use strict";var e={value:function(){}};function t(){for(var n,e=0,t=arguments.length,o={};e<t;++e){if(!(n=arguments[e]+"")||n in o||/[\s.]/.test(n))throw new Error("illegal type: "+n);o[n]=[]}return new r(o)}function r(n){this._=n}function o(n,e){return n.trim().split(/^|\s+/).map(function(n){var t="",r=n.indexOf(".");if(r>=0&&(t=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:t}})}function i(n,e){for(var t,r=0,o=n.length;r<o;++r)if((t=n[r]).name===e)return t.value}function f(n,t,r){for(var o=0,i=n.length;o<i;++o)if(n[o].name===t){n[o]=e,n=n.slice(0,o).concat(n.slice(o+1));break}return null!=r&&n.push({name:t,value:r}),n}r.prototype=t.prototype={constructor:r,on:function(n,e){var t,r=this._,l=o(n+"",r),u=-1,a=l.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++u<a;)if(t=(n=l[u]).type)r[t]=f(r[t],n.name,e);else if(null==e)for(t in r)r[t]=f(r[t],n.name,null);return this}for(;++u<a;)if((t=(n=l[u]).type)&&(t=i(r[t],n.name)))return t},copy:function(){var n={},e=this._;for(var t in e)n[t]=e[t].slice();return new r(n)},call:function(n,e){if((t=arguments.length-2)>0)for(var t,r,o=new Array(t),i=0;i<t;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(i=0,t=(r=this._[n]).length;i<t;++i)r[i].value.apply(e,o)},apply:function(n,e,t){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var r=this._[n],o=0,i=r.length;o<i;++o)r[o].value.apply(e,t)}},n.dispatch=t,Object.defineProperty(n,"__esModule",{value:!0})});
// https://d3js.org/d3-ease/ v1.0.7 Copyright 2020 Mike Bostock
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).d3=n.d3||{})}(this,function(n){"use strict";function e(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function t(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var u=function n(e){function t(n){return Math.pow(n,e)}return e=+e,t.exponent=n,t}(3),r=function n(e){function t(n){return 1-Math.pow(1-n,e)}return e=+e,t.exponent=n,t}(3),a=function n(e){function t(n){return((n*=2)<=1?Math.pow(n,e):2-Math.pow(2-n,e))/2}return e=+e,t.exponent=n,t}(3),o=Math.PI,i=o/2;function c(n){return(1-Math.cos(o*n))/2}function s(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function f(n){return((n*=2)<=1?s(1-n):2-s(n-1))/2}function h(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var p=4/11,M=6/11,d=8/11,I=.75,l=9/11,O=10/11,x=.9375,v=21/22,m=63/64,y=1/p/p;function B(n){return(n=+n)<p?y*n*n:n<d?y*(n-=M)*n+I:n<O?y*(n-=l)*n+x:y*(n-=v)*n+m}var C=function n(e){function t(n){return(n=+n)*n*(e*(n-1)+n)}return e=+e,t.overshoot=n,t}(1.70158),E=function n(e){function t(n){return--n*n*((n+1)*e+n)+1}return e=+e,t.overshoot=n,t}(1.70158),P=function n(e){function t(n){return((n*=2)<1?n*n*((e+1)*n-e):(n-=2)*n*((e+1)*n+e)+2)/2}return e=+e,t.overshoot=n,t}(1.70158),b=2*Math.PI,w=function n(e,t){var u=Math.asin(1/(e=Math.max(1,e)))*(t/=b);function r(n){return e*s(- --n)*Math.sin((u-n)/t)}return r.amplitude=function(e){return n(e,t*b)},r.period=function(t){return n(e,t)},r}(1,.3),k=function n(e,t){var u=Math.asin(1/(e=Math.max(1,e)))*(t/=b);function r(n){return 1-e*s(n=+n)*Math.sin((n+u)/t)}return r.amplitude=function(e){return n(e,t*b)},r.period=function(t){return n(e,t)},r}(1,.3),q=function n(e,t){var u=Math.asin(1/(e=Math.max(1,e)))*(t/=b);function r(n){return((n=2*n-1)<0?e*s(-n)*Math.sin((u-n)/t):2-e*s(n)*Math.sin((u+n)/t))/2}return r.amplitude=function(e){return n(e,t*b)},r.period=function(t){return n(e,t)},r}(1,.3);n.easeBack=P,n.easeBackIn=C,n.easeBackInOut=P,n.easeBackOut=E,n.easeBounce=B,n.easeBounceIn=function(n){return 1-B(1-n)},n.easeBounceInOut=function(n){return((n*=2)<=1?1-B(1-n):B(n-1)+1)/2},n.easeBounceOut=B,n.easeCircle=h,n.easeCircleIn=function(n){return 1-Math.sqrt(1-n*n)},n.easeCircleInOut=h,n.easeCircleOut=function(n){return Math.sqrt(1- --n*n)},n.easeCubic=t,n.easeCubicIn=function(n){return n*n*n},n.easeCubicInOut=t,n.easeCubicOut=function(n){return--n*n*n+1},n.easeElastic=k,n.easeElasticIn=w,n.easeElasticInOut=q,n.easeElasticOut=k,n.easeExp=f,n.easeExpIn=function(n){return s(1-+n)},n.easeExpInOut=f,n.easeExpOut=function(n){return 1-s(n)},n.easeLinear=function(n){return+n},n.easePoly=a,n.easePolyIn=u,n.easePolyInOut=a,n.easePolyOut=r,n.easeQuad=e,n.easeQuadIn=function(n){return n*n},n.easeQuadInOut=e,n.easeQuadOut=function(n){return n*(2-n)},n.easeSin=c,n.easeSinIn=function(n){return 1==+n?1:1-Math.cos(n*i)},n.easeSinInOut=c,n.easeSinOut=function(n){return Math.sin(n*i)},Object.defineProperty(n,"__esModule",{value:!0})});
// https://d3js.org/d3-interpolate/ v1.4.0 Copyright 2019 Mike Bostock
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-color")):"function"==typeof define&&define.amd?define(["exports","d3-color"],n):n((t=t||self).d3=t.d3||{},t.d3)}(this,function(t,n){"use strict";function r(t,n,r,e,a){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*r+(1+3*t+3*o-3*u)*e+u*a)/6}function e(t){var n=t.length-1;return function(e){var a=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),o=t[a],u=t[a+1],i=a>0?t[a-1]:2*o-u,l=a<n-1?t[a+2]:2*u-o;return r((e-a/n)*n,i,o,u,l)}}function a(t){var n=t.length;return function(e){var a=Math.floor(((e%=1)<0?++e:e)*n),o=t[(a+n-1)%n],u=t[a%n],i=t[(a+1)%n],l=t[(a+2)%n];return r((e-a/n)*n,o,u,i,l)}}function o(t){return function(){return t}}function u(t,n){return function(r){return t+r*n}}function i(t,n){var r=n-t;return r?u(t,r>180||r<-180?r-360*Math.round(r/360):r):o(isNaN(t)?n:t)}function l(t){return 1==(t=+t)?c:function(n,r){return r-n?function(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(e){return Math.pow(t+e*n,r)}}(n,r,t):o(isNaN(n)?r:n)}}function c(t,n){var r=n-t;return r?u(t,r):o(isNaN(t)?n:t)}var f=function t(r){var e=l(r);function a(t,r){var a=e((t=n.rgb(t)).r,(r=n.rgb(r)).r),o=e(t.g,r.g),u=e(t.b,r.b),i=c(t.opacity,r.opacity);return function(n){return t.r=a(n),t.g=o(n),t.b=u(n),t.opacity=i(n),t+""}}return a.gamma=t,a}(1);function s(t){return function(r){var e,a,o=r.length,u=new Array(o),i=new Array(o),l=new Array(o);for(e=0;e<o;++e)a=n.rgb(r[e]),u[e]=a.r||0,i[e]=a.g||0,l[e]=a.b||0;return u=t(u),i=t(i),l=t(l),a.opacity=1,function(t){return a.r=u(t),a.g=i(t),a.b=l(t),a+""}}}var p=s(e),h=s(a);function v(t,n){n||(n=[]);var r,e=t?Math.min(n.length,t.length):0,a=n.slice();return function(o){for(r=0;r<e;++r)a[r]=t[r]*(1-o)+n[r]*o;return a}}function g(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function d(t,n){var r,e=n?n.length:0,a=t?Math.min(e,t.length):0,o=new Array(a),u=new Array(e);for(r=0;r<a;++r)o[r]=X(t[r],n[r]);for(;r<e;++r)u[r]=n[r];return function(t){for(r=0;r<a;++r)u[r]=o[r](t);return u}}function y(t,n){var r=new Date;return t=+t,n=+n,function(e){return r.setTime(t*(1-e)+n*e),r}}function m(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}function M(t,n){var r,e={},a={};for(r in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)r in t?e[r]=X(t[r],n[r]):a[r]=n[r];return function(t){for(r in e)a[r]=e[r](t);return a}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,x=new RegExp(b.source,"g");function w(t,n){var r,e,a,o=b.lastIndex=x.lastIndex=0,u=-1,i=[],l=[];for(t+="",n+="";(r=b.exec(t))&&(e=x.exec(n));)(a=e.index)>o&&(a=n.slice(o,a),i[u]?i[u]+=a:i[++u]=a),(r=r[0])===(e=e[0])?i[u]?i[u]+=e:i[++u]=e:(i[++u]=null,l.push({i:u,x:m(r,e)})),o=x.lastIndex;return o<n.length&&(a=n.slice(o),i[u]?i[u]+=a:i[++u]=a),i.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 r,e=0;e<n;++e)i[(r=l[e]).i]=r.x(t);return i.join("")})}function X(t,r){var e,a=typeof r;return null==r||"boolean"===a?o(r):("number"===a?m:"string"===a?(e=n.color(r))?(r=e,f):w:r instanceof n.color?f:r instanceof Date?y:g(r)?v:Array.isArray(r)?d:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?M:m)(t,r)}var A,N,C,Y,j=180/Math.PI,q={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function k(t,n,r,e,a,o){var u,i,l;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(l=t*r+n*e)&&(r-=t*l,e-=n*l),(i=Math.sqrt(r*r+e*e))&&(r/=i,e/=i,l/=i),t*e<n*r&&(t=-t,n=-n,l=-l,u=-u),{translateX:a,translateY:o,rotate:Math.atan2(n,t)*j,skewX:Math.atan(l)*j,scaleX:u,scaleY:i}}function D(t,n,r,e){function a(t){return t.length?t.pop()+" ":""}return function(o,u){var i=[],l=[];return o=t(o),u=t(u),function(t,e,a,o,u,i){if(t!==a||e!==o){var l=u.push("translate(",null,n,null,r);i.push({i:l-4,x:m(t,a)},{i:l-2,x:m(e,o)})}else(a||o)&&u.push("translate("+a+n+o+r)}(o.translateX,o.translateY,u.translateX,u.translateY,i,l),function(t,n,r,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:r.push(a(r)+"rotate(",null,e)-2,x:m(t,n)})):n&&r.push(a(r)+"rotate("+n+e)}(o.rotate,u.rotate,i,l),function(t,n,r,o){t!==n?o.push({i:r.push(a(r)+"skewX(",null,e)-2,x:m(t,n)}):n&&r.push(a(r)+"skewX("+n+e)}(o.skewX,u.skewX,i,l),function(t,n,r,e,o,u){if(t!==r||n!==e){var i=o.push(a(o)+"scale(",null,",",null,")");u.push({i:i-4,x:m(t,r)},{i:i-2,x:m(n,e)})}else 1===r&&1===e||o.push(a(o)+"scale("+r+","+e+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,i,l),o=u=null,function(t){for(var n,r=-1,e=l.length;++r<e;)i[(n=l[r]).i]=n.x(t);return i.join("")}}}var R=D(function(t){return"none"===t?q:(A||(A=document.createElement("DIV"),N=document.documentElement,C=document.defaultView),A.style.transform=t,t=C.getComputedStyle(N.appendChild(A),null).getPropertyValue("transform"),N.removeChild(A),k(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),S=D(function(t){return null==t?q:(Y||(Y=document.createElementNS("http://www.w3.org/2000/svg","g")),Y.setAttribute("transform",t),(t=Y.transform.baseVal.consolidate())?k((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):q)},", ",")",")"),V=Math.SQRT2,B=2,E=4,H=1e-12;function I(t){return((t=Math.exp(t))+1/t)/2}function L(t){return function(r,e){var a=t((r=n.hsl(r)).h,(e=n.hsl(e)).h),o=c(r.s,e.s),u=c(r.l,e.l),i=c(r.opacity,e.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=u(t),r.opacity=i(t),r+""}}}var T=L(i),O=L(c);function P(t){return function(r,e){var a=t((r=n.hcl(r)).h,(e=n.hcl(e)).h),o=c(r.c,e.c),u=c(r.l,e.l),i=c(r.opacity,e.opacity);return function(t){return r.h=a(t),r.c=o(t),r.l=u(t),r.opacity=i(t),r+""}}}var _=P(i),z=P(c);function Q(t){return function r(e){function a(r,a){var o=t((r=n.cubehelix(r)).h,(a=n.cubehelix(a)).h),u=c(r.s,a.s),i=c(r.l,a.l),l=c(r.opacity,a.opacity);return function(t){return r.h=o(t),r.s=u(t),r.l=i(Math.pow(t,e)),r.opacity=l(t),r+""}}return e=+e,a.gamma=r,a}(1)}var Z=Q(i),F=Q(c);t.interpolate=X,t.interpolateArray=function(t,n){return(g(n)?v:d)(t,n)},t.interpolateBasis=e,t.interpolateBasisClosed=a,t.interpolateCubehelix=Z,t.interpolateCubehelixLong=F,t.interpolateDate=y,t.interpolateDiscrete=function(t){var n=t.length;return function(r){return t[Math.max(0,Math.min(n-1,Math.floor(r*n)))]}},t.interpolateHcl=_,t.interpolateHclLong=z,t.interpolateHsl=T,t.interpolateHslLong=O,t.interpolateHue=function(t,n){var r=i(+t,+n);return function(t){var n=r(t);return n-360*Math.floor(n/360)}},t.interpolateLab=function(t,r){var e=c((t=n.lab(t)).l,(r=n.lab(r)).l),a=c(t.a,r.a),o=c(t.b,r.b),u=c(t.opacity,r.opacity);return function(n){return t.l=e(n),t.a=a(n),t.b=o(n),t.opacity=u(n),t+""}},t.interpolateNumber=m,t.interpolateNumberArray=v,t.interpolateObject=M,t.interpolateRgb=f,t.interpolateRgbBasis=p,t.interpolateRgbBasisClosed=h,t.interpolateRound=function(t,n){return t=+t,n=+n,function(r){return Math.round(t*(1-r)+n*r)}},t.interpolateString=w,t.interpolateTransformCss=R,t.interpolateTransformSvg=S,t.interpolateZoom=function(t,n){var r,e,a=t[0],o=t[1],u=t[2],i=n[0],l=n[1],c=n[2],f=i-a,s=l-o,p=f*f+s*s;if(p<H)e=Math.log(c/u)/V,r=function(t){return[a+t*f,o+t*s,u*Math.exp(V*t*e)]};else{var h=Math.sqrt(p),v=(c*c-u*u+E*p)/(2*u*B*h),g=(c*c-u*u-E*p)/(2*c*B*h),d=Math.log(Math.sqrt(v*v+1)-v),y=Math.log(Math.sqrt(g*g+1)-g);e=(y-d)/V,r=function(t){var n,r=t*e,i=I(d),l=u/(B*h)*(i*(n=V*r+d,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(d));return[a+l*f,o+l*s,u*i/I(V*r+d)]}}return r.duration=1e3*e,r},t.piecewise=function(t,n){for(var r=0,e=n.length-1,a=n[0],o=new Array(e<0?0:e);r<e;)o[r]=t(a,a=n[++r]);return function(t){var n=Math.max(0,Math.min(e-1,Math.floor(t*=e)));return o[n](t-n)}},t.quantize=function(t,n){for(var r=new Array(n),e=0;e<n;++e)r[e]=t(e/(n-1));return r},Object.defineProperty(t,"__esModule",{value:!0})});
// https://d3js.org/d3-timer/ v1.0.10 Copyright 2019 Mike Bostock
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).d3=t.d3||{})}(this,function(t){"use strict";var n,e,o=0,i=0,r=0,u=1e3,l=0,c=0,f=0,a="object"==typeof performance&&performance.now?performance:Date,s="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function _(){return c||(s(m),c=a.now()+f)}function m(){c=0}function p(){this._call=this._time=this._next=null}function w(t,n,e){var o=new p;return o.restart(t,n,e),o}function d(){_(),++o;for(var t,e=n;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function h(){c=(l=a.now())+f,o=i=0;try{d()}finally{o=0,function(){var t,o,i=n,r=1/0;for(;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(o=i._next,i._next=null,i=t?t._next=o:n=o);e=t,v(r)}(),c=0}}function y(){var t=a.now(),n=t-l;n>u&&(f-=n,l=t)}function v(t){o||(i&&(i=clearTimeout(i)),t-c>24?(t<1/0&&(i=setTimeout(h,t-a.now()-f)),r&&(r=clearInterval(r))):(r||(l=a.now(),r=setInterval(y,u)),o=1,s(h)))}p.prototype=w.prototype={constructor:p,restart:function(t,o,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?_():+i)+(null==o?0:+o),this._next||e===this||(e?e._next=this:n=this,e=this),this._call=t,this._time=i,v()},stop:function(){this._call&&(this._call=null,this._time=1/0,v())}},t.interval=function(t,n,e){var o=new p,i=n;return null==n?(o.restart(t,n,e),o):(n=+n,e=null==e?_():+e,o.restart(function r(u){u+=i,o.restart(r,i+=n,e),t(u)},n,e),o)},t.now=_,t.timeout=function(t,n,e){var o=new p;return n=null==n?0:+n,o.restart(function(e){o.stop(),t(e+n)},n,e),o},t.timer=w,t.timerFlush=d,Object.defineProperty(t,"__esModule",{value:!0})});
// https://d3js.org/d3-transition/ v1.3.2 Copyright 2019 Mike Bostock
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-selection"),require("d3-dispatch"),require("d3-timer"),require("d3-interpolate"),require("d3-color"),require("d3-ease")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-dispatch","d3-timer","d3-interpolate","d3-color","d3-ease"],n):n((t=t||self).d3=t.d3||{},t.d3,t.d3,t.d3,t.d3,t.d3,t.d3)}(this,function(t,n,e,r,i,o,u){"use strict";var a=e.dispatch("start","end","cancel","interrupt"),s=[],l=0,f=1,c=2,h=3,d=4,_=5,v=6;function p(t,n,e,i,o,u){var p=t.__transition;if(p){if(e in p)return}else t.__transition={};!function(t,n,e){var i,o=t.__transition;function u(l){var _,p,y,m;if(e.state!==f)return s();for(_ in o)if((m=o[_]).name===e.name){if(m.state===h)return r.timeout(u);m.state===d?(m.state=v,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete o[_]):+_<n&&(m.state=v,m.timer.stop(),m.on.call("cancel",t,t.__data__,m.index,m.group),delete o[_])}if(r.timeout(function(){e.state===h&&(e.state=d,e.timer.restart(a,e.delay,e.time),a(l))}),e.state=c,e.on.call("start",t,t.__data__,e.index,e.group),e.state===c){for(e.state=h,i=new Array(y=e.tween.length),_=0,p=-1;_<y;++_)(m=e.tween[_].value.call(t,t.__data__,e.index,e.group))&&(i[++p]=m);i.length=p+1}}function a(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(s),e.state=_,1),o=-1,u=i.length;++o<u;)i[o].call(t,r);e.state===_&&(e.on.call("end",t,t.__data__,e.index,e.group),s())}function s(){for(var r in e.state=v,e.timer.stop(),delete o[n],o)return;delete t.__transition}o[n]=e,e.timer=r.timer(function(t){e.state=f,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)},0,e.time)}(t,e,{name:n,index:i,group:o,on:a,tween:s,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:l})}function y(t,n){var e=w(t,n);if(e.state>l)throw new Error("too late; already scheduled");return e}function m(t,n){var e=w(t,n);if(e.state>h)throw new Error("too late; already running");return e}function w(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function g(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>c&&e.state<_,e.state=v,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}}function b(t,n,e){var r=t._id;return t.each(function(){var t=m(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return w(t,r).value[n]}}function x(t,n){var e;return("number"==typeof n?i.interpolateNumber:n instanceof o.color?i.interpolateRgb:(e=o.color(n))?(n=e,i.interpolateRgb):i.interpolateString)(t,n)}var A=n.selection.prototype.constructor;function E(t){return function(){this.style.removeProperty(t)}}var T=0;function N(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function S(t){return n.selection().transition(t)}function q(){return++T}var C=n.selection.prototype;N.prototype=S.prototype={constructor:N,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=n.selector(t));for(var i=this._groups,o=i.length,u=new Array(o),a=0;a<o;++a)for(var s,l,f=i[a],c=f.length,h=u[a]=new Array(c),d=0;d<c;++d)(s=f[d])&&(l=t.call(s,s.__data__,d,f))&&("__data__"in s&&(l.__data__=s.__data__),h[d]=l,p(h[d],e,r,d,h,w(s,r)));return new N(u,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=n.selectorAll(t));for(var i=this._groups,o=i.length,u=[],a=[],s=0;s<o;++s)for(var l,f=i[s],c=f.length,h=0;h<c;++h)if(l=f[h]){for(var d,_=t.call(l,l.__data__,h,f),v=w(l,r),y=0,m=_.length;y<m;++y)(d=_[y])&&p(d,e,r,y,_,v);u.push(_),a.push(l)}return new N(u,a,e,r)},filter:function(t){"function"!=typeof t&&(t=n.matcher(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var u,a=e[o],s=a.length,l=i[o]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new N(i,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),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],f=e[a],c=l.length,h=u[a]=new Array(c),d=0;d<c;++d)(s=l[d]||f[d])&&(h[d]=s);for(;a<r;++a)u[a]=n[a];return new N(u,this._parents,this._name,this._id)},selection:function(){return new A(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=q(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)if(u=a[l]){var f=w(u,n);p(u,t,e,l,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new N(r,this._parents,t,e)},call:C.call,nodes:C.nodes,node:C.node,size:C.size,empty:C.empty,each:C.each,on:function(t,n){var e=this._id;return arguments.length<2?w(this.node(),e).on.on(t):this.each(function(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)?y:m;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,e){var r=n.namespace(t),o="transform"===r?i.interpolateTransformSvg:x;return this.attrTween(t,"function"==typeof e?(r.local?function(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttributeNS(t.space,t.local)}}:function(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttribute(t)}})(r,o,b(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}:function(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}})(r,o,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var i=n.namespace(t);return this.tween(r,(i.local?function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}:function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i})(i,e))},style:function(t,e,r){var o="transform"==(t+="")?i.interpolateTransformCss:x;return null==e?this.styleTween(t,function(t,e){var r,i,o;return function(){var u=n.style(this,t),a=(this.style.removeProperty(t),n.style(this,t));return u===a?null:u===r&&a===i?o:o=e(r=u,i=a)}}(t,o)).on("end.style."+t,E(t)):"function"==typeof e?this.styleTween(t,function(t,e,r){var i,o,u;return function(){var a=n.style(this,t),s=r(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=n.style(this,t)),a===l?null:a===i&&l===o?u:(o=l,u=e(i=a,s))}}(t,o,b(this,"style."+t,e))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=m(this,t),l=s.on,f=null==s.value[u]?o||(o=E(n)):void 0;l===e&&i===f||(r=(e=l).copy()).on(a,i=f),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,r){var i,o,u=r+"";return function(){var a=n.style(this,t);return a===u?null:a===i?o:o=e(i=a,r)}}(t,o,e),r).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,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(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}}(b(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,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=w(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?function(t,n){var e,r;return function(){var i=m(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}:function(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=m(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=a;break}s===l&&i.push(a)}o.tween=i}})(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){y(this,t).delay=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){y(this,t).delay=n}})(n,t)):w(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){m(this,t).duration=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){m(this,t).duration=n}})(n,t)):w(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw new Error;return function(){m(this,t).ease=n}}(n,t)):w(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each(function(){var e=m(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n})})}};var P={time:null,delay:0,duration:250,ease:u.easeCubicInOut};function z(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return P.time=r.now(),P;return e}n.selection.prototype.interrupt=function(t){return this.each(function(){g(this,t)})},n.selection.prototype.transition=function(t){var n,e;t instanceof N?(n=t._id,t=t._name):(n=q(),(e=P).time=r.now(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,u=0;u<o;++u)for(var a,s=i[u],l=s.length,f=0;f<l;++f)(a=s[f])&&p(a,t,n,f,s,e||z(a,n));return new N(i,this._parents,t,n)};var O=[null];t.active=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>f&&e.name===n)return new N([[t]],O,n,+r);return null},t.interrupt=g,t.transition=S,Object.defineProperty(t,"__esModule",{value:!0})});
// https://d3js.org/d3-drag/ v1.2.5 Copyright 2019 Mike Bostock
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("d3-dispatch"),require("d3-selection")):"function"==typeof define&&define.amd?define(["exports","d3-dispatch","d3-selection"],e):e((t=t||self).d3=t.d3||{},t.d3,t.d3)}(this,function(t,e,n){"use strict";function o(){n.event.stopImmediatePropagation()}function i(){n.event.preventDefault(),n.event.stopImmediatePropagation()}function r(t){var e=t.document.documentElement,o=n.select(t).on("dragstart.drag",i,!0);"onselectstart"in e?o.on("selectstart.drag",i,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function c(t,e){var o=t.document.documentElement,r=n.select(t).on("dragstart.drag",null);e&&(r.on("click.drag",i,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in o?r.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}function u(t){return function(){return t}}function s(t,e,n,o,i,r,c,u,s,a){this.target=t,this.type=e,this.subject=n,this.identifier=o,this.active=i,this.x=r,this.y=c,this.dx=u,this.dy=s,this._=a}function a(){return!n.event.ctrlKey&&!n.event.button}function l(){return this.parentNode}function d(t){return null==t?{x:n.event.x,y:n.event.y}:t}function f(){return navigator.maxTouchPoints||"ontouchstart"in this}s.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t},t.drag=function(){var t,h,v,p,g=a,m=l,y=d,b=f,_={},w=e.dispatch("start","drag","end"),x=0,T=0;function j(t){t.on("mousedown.drag",k).filter(b).on("touchstart.drag",P).on("touchmove.drag",q).on("touchend.drag touchcancel.drag",z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function k(){if(!p&&g.apply(this,arguments)){var e=D("mouse",m.apply(this,arguments),n.mouse,this,arguments);e&&(n.select(n.event.view).on("mousemove.drag",E,!0).on("mouseup.drag",M,!0),r(n.event.view),o(),v=!1,t=n.event.clientX,h=n.event.clientY,e("start"))}}function E(){if(i(),!v){var e=n.event.clientX-t,o=n.event.clientY-h;v=e*e+o*o>T}_.mouse("drag")}function M(){n.select(n.event.view).on("mousemove.drag mouseup.drag",null),c(n.event.view,v),i(),_.mouse("end")}function P(){if(g.apply(this,arguments)){var t,e,i=n.event.changedTouches,r=m.apply(this,arguments),c=i.length;for(t=0;t<c;++t)(e=D(i[t].identifier,r,n.touch,this,arguments))&&(o(),e("start"))}}function q(){var t,e,o=n.event.changedTouches,r=o.length;for(t=0;t<r;++t)(e=_[o[t].identifier])&&(i(),e("drag"))}function z(){var t,e,i=n.event.changedTouches,r=i.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),t=0;t<r;++t)(e=_[i[t].identifier])&&(o(),e("end"))}function D(t,e,o,i,r){var c,u,a,l=o(e,t),d=w.copy();if(n.customEvent(new s(j,"beforestart",c,t,x,l[0],l[1],0,0,d),function(){return null!=(n.event.subject=c=y.apply(i,r))&&(u=c.x-l[0]||0,a=c.y-l[1]||0,!0)}))return function f(h){var v,p=l;switch(h){case"start":_[t]=f,v=x++;break;case"end":delete _[t],--x;case"drag":l=o(e,t),v=x}n.customEvent(new s(j,h,c,t,v,l[0]+u,l[1]+a,l[0]-p[0],l[1]-p[1],d),d.apply,d,[h,i,r])}}return j.filter=function(t){return arguments.length?(g="function"==typeof t?t:u(!!t),j):g},j.container=function(t){return arguments.length?(m="function"==typeof t?t:u(t),j):m},j.subject=function(t){return arguments.length?(y="function"==typeof t?t:u(t),j):y},j.touchable=function(t){return arguments.length?(b="function"==typeof t?t:u(!!t),j):b},j.on=function(){var t=w.on.apply(w,arguments);return t===w?j:t},j.clickDistance=function(t){return arguments.length?(T=(t=+t)*t,j):Math.sqrt(T)},j},t.dragDisable=r,t.dragEnable=c,Object.defineProperty(t,"__esModule",{value:!0})});
// https://d3js.org/d3-zoom/ v1.8.3 Copyright 2019 Mike Bostock
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-dispatch"),require("d3-drag"),require("d3-interpolate"),require("d3-selection"),require("d3-transition")):"function"==typeof define&&define.amd?define(["exports","d3-dispatch","d3-drag","d3-interpolate","d3-selection","d3-transition"],n):n((t=t||self).d3=t.d3||{},t.d3,t.d3,t.d3,t.d3,t.d3)}(this,function(t,n,e,o,i,u){"use strict";function r(t){return function(){return t}}function s(t,n,e){this.target=t,this.type=n,this.transform=e}function h(t,n,e){this.k=t,this.x=n,this.y=e}h.prototype={constructor:h,scale:function(t){return 1===t?this:new h(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new h(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 c=new h(1,0,0);function a(t){for(;!t.__zoom;)if(!(t=t.parentNode))return c;return t.__zoom}function f(){i.event.stopImmediatePropagation()}function l(){i.event.preventDefault(),i.event.stopImmediatePropagation()}function m(){return!i.event.ctrlKey&&!i.event.button}function p(){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 v(){return this.__zoom||c}function d(){return-i.event.deltaY*(1===i.event.deltaMode?.05:i.event.deltaMode?1:.002)}function y(){return navigator.maxTouchPoints||"ontouchstart"in this}function z(t,n,e){var o=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],u=t.invertY(n[0][1])-e[0][1],r=t.invertY(n[1][1])-e[1][1];return t.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),r>u?(u+r)/2:Math.min(0,u)||Math.max(0,r))}a.prototype=h.prototype,t.zoom=function(){var t,a,_=m,g=p,x=z,k=d,w=y,M=[0,1/0],T=[[-1/0,-1/0],[1/0,1/0]],b=250,Y=o.interpolateZoom,X=n.dispatch("start","zoom","end"),q=500,E=150,V=0;function B(t){t.property("__zoom",v).on("wheel.zoom",K).on("mousedown.zoom",A).on("dblclick.zoom",H).filter(w).on("touchstart.zoom",N).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",W).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function D(t,n){return(n=Math.max(M[0],Math.min(M[1],n)))===t.k?t:new h(n,t.x,t.y)}function P(t,n,e){var o=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return o===t.x&&i===t.y?t:new h(t.k,o,i)}function I(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function S(t,n,e){t.on("start.zoom",function(){j(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).end()}).tween("zoom",function(){var t=this,o=arguments,i=j(t,o),u=g.apply(t,o),r=null==e?I(u):"function"==typeof e?e.apply(t,o):e,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),c=t.__zoom,a="function"==typeof n?n.apply(t,o):n,f=Y(c.invert(r).concat(s/c.k),a.invert(r).concat(s/a.k));return function(t){if(1===t)t=a;else{var n=f(t),e=s/n[2];t=new h(e,r[0]-n[0]*e,r[1]-n[1]*e)}i.zoom(null,t)}})}function j(t,n,e){return!e&&t.__zooming||new G(t,n)}function G(t,n){this.that=t,this.args=n,this.active=0,this.extent=g.apply(t,n),this.taps=0}function K(){if(_.apply(this,arguments)){var t=j(this,arguments),n=this.__zoom,e=Math.max(M[0],Math.min(M[1],n.k*Math.pow(2,k.apply(this,arguments)))),o=i.mouse(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=n.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(n.k===e)return;t.mouse=[o,n.invert(o)],u.interrupt(this),t.start()}l(),t.wheel=setTimeout(function(){t.wheel=null,t.end()},E),t.zoom("mouse",x(P(D(n,e),t.mouse[0],t.mouse[1]),t.extent,T))}}function A(){if(!a&&_.apply(this,arguments)){var t=j(this,arguments,!0),n=i.select(i.event.view).on("mousemove.zoom",function(){if(l(),!t.moved){var n=i.event.clientX-r,e=i.event.clientY-s;t.moved=n*n+e*e>V}t.zoom("mouse",x(P(t.that.__zoom,t.mouse[0]=i.mouse(t.that),t.mouse[1]),t.extent,T))},!0).on("mouseup.zoom",function(){n.on("mousemove.zoom mouseup.zoom",null),e.dragEnable(i.event.view,t.moved),l(),t.end()},!0),o=i.mouse(this),r=i.event.clientX,s=i.event.clientY;e.dragDisable(i.event.view),f(),t.mouse=[o,this.__zoom.invert(o)],u.interrupt(this),t.start()}}function H(){if(_.apply(this,arguments)){var t=this.__zoom,n=i.mouse(this),e=t.invert(n),o=t.k*(i.event.shiftKey?.5:2),u=x(P(D(t,o),n,e),g.apply(this,arguments),T);l(),b>0?i.select(this).transition().duration(b).call(S,u,n):i.select(this).call(B.transform,u)}}function N(){if(_.apply(this,arguments)){var n,e,o,r,s=i.event.touches,h=s.length,c=j(this,arguments,i.event.changedTouches.length===h);for(f(),e=0;e<h;++e)o=s[e],r=[r=i.touch(this,s,o.identifier),this.__zoom.invert(r),o.identifier],c.touch0?c.touch1||c.touch0[2]===r[2]||(c.touch1=r,c.taps=0):(c.touch0=r,n=!0,c.taps=1+!!t);t&&(t=clearTimeout(t)),n&&(c.taps<2&&(t=setTimeout(function(){t=null},q)),u.interrupt(this),c.start())}}function O(){if(this.__zooming){var n,e,o,u,r=j(this,arguments),s=i.event.changedTouches,h=s.length;for(l(),t&&(t=clearTimeout(t)),r.taps=0,n=0;n<h;++n)e=s[n],o=i.touch(this,s,e.identifier),r.touch0&&r.touch0[2]===e.identifier?r.touch0[0]=o:r.touch1&&r.touch1[2]===e.identifier&&(r.touch1[0]=o);if(e=r.that.__zoom,r.touch1){var c=r.touch0[0],a=r.touch0[1],f=r.touch1[0],m=r.touch1[1],p=(p=f[0]-c[0])*p+(p=f[1]-c[1])*p,v=(v=m[0]-a[0])*v+(v=m[1]-a[1])*v;e=D(e,Math.sqrt(p/v)),o=[(c[0]+f[0])/2,(c[1]+f[1])/2],u=[(a[0]+m[0])/2,(a[1]+m[1])/2]}else{if(!r.touch0)return;o=r.touch0[0],u=r.touch0[1]}r.zoom("touch",x(P(e,o,u),r.extent,T))}}function W(){if(this.__zooming){var t,n,e=j(this,arguments),o=i.event.changedTouches,u=o.length;for(f(),a&&clearTimeout(a),a=setTimeout(function(){a=null},q),t=0;t<u;++t)n=o[t],e.touch0&&e.touch0[2]===n.identifier?delete e.touch0:e.touch1&&e.touch1[2]===n.identifier&&delete e.touch1;if(e.touch1&&!e.touch0&&(e.touch0=e.touch1,delete e.touch1),e.touch0)e.touch0[1]=this.__zoom.invert(e.touch0[0]);else if(e.end(),2===e.taps){var r=i.select(this).on("dblclick.zoom");r&&r.apply(this,arguments)}}}return B.transform=function(t,n,e){var o=t.selection?t.selection():t;o.property("__zoom",v),t!==o?S(t,n,e):o.interrupt().each(function(){j(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},B.scaleBy=function(t,n,e){B.scaleTo(t,function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e},e)},B.scaleTo=function(t,n,e){B.transform(t,function(){var t=g.apply(this,arguments),o=this.__zoom,i=null==e?I(t):"function"==typeof e?e.apply(this,arguments):e,u=o.invert(i),r="function"==typeof n?n.apply(this,arguments):n;return x(P(D(o,r),i,u),t,T)},e)},B.translateBy=function(t,n,e){B.transform(t,function(){return x(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),g.apply(this,arguments),T)})},B.translateTo=function(t,n,e,o){B.transform(t,function(){var t=g.apply(this,arguments),i=this.__zoom,u=null==o?I(t):"function"==typeof o?o.apply(this,arguments):o;return x(c.translate(u[0],u[1]).scale(i.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,T)},o)},G.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){i.customEvent(new s(B,t,this.that.__zoom),X.apply,X,[t,this.that,this.args])}},B.wheelDelta=function(t){return arguments.length?(k="function"==typeof t?t:r(+t),B):k},B.filter=function(t){return arguments.length?(_="function"==typeof t?t:r(!!t),B):_},B.touchable=function(t){return arguments.length?(w="function"==typeof t?t:r(!!t),B):w},B.extent=function(t){return arguments.length?(g="function"==typeof t?t:r([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),B):g},B.scaleExtent=function(t){return arguments.length?(M[0]=+t[0],M[1]=+t[1],B):[M[0],M[1]]},B.translateExtent=function(t){return arguments.length?(T[0][0]=+t[0][0],T[1][0]=+t[1][0],T[0][1]=+t[0][1],T[1][1]=+t[1][1],B):[[T[0][0],T[0][1]],[T[1][0],T[1][1]]]},B.constrain=function(t){return arguments.length?(x=t,B):x},B.duration=function(t){return arguments.length?(b=+t,B):b},B.interpolate=function(t){return arguments.length?(Y=t,B):Y},B.on=function(){var t=X.on.apply(X,arguments);return t===X?B:t},B.clickDistance=function(t){return arguments.length?(V=(t=+t)*t,B):Math.sqrt(V)},B},t.zoomIdentity=c,t.zoomTransform=a,Object.defineProperty(t,"__esModule",{value:!0})});
</script>
<script>!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-selection"),require("d3-drag")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-drag"],n):n(t.d3=t.d3||{},t.d3,t.d3)}(this,function(t,n,r){"use strict";function e(t,n){return n={exports:{}},t(n,n.exports),n.exports}function o(){function t(t){function u(){p=[],h="",_.attr("d",null),m.attr("d",null),r.nodes().forEach(function(t){t.__lasso.possible=!1,t.__lasso.selected=!1,t.__lasso.hoverSelect=!1,t.__lasso.loopSelect=!1;var n=t.getBoundingClientRect();t.__lasso.lassoPoint=[Math.round(n.left+n.width/2),Math.round(n.top+n.height/2)]}),s&&r.on("mouseover.lasso",function(){this.__lasso.hoverSelect=!0}),i.start()}function l(){var t,n;"touchmove"===d3.event.sourceEvent.type?(t=d3.event.sourceEvent.touches[0].clientX,n=d3.event.sourceEvent.touches[0].clientY):(t=d3.event.sourceEvent.clientX,n=d3.event.sourceEvent.clientY);var s=d3.mouse(this)[0],u=d3.mouse(this)[1];""===h?(h=h+"M "+s+" "+u,v=[t,n],d=[s,u],b.attr("cx",s).attr("cy",u).attr("r",7).attr("display",null)):h=h+" L "+s+" "+u,p.push([t,n]);var l=Math.sqrt(Math.pow(t-v[0],2)+Math.pow(n-v[1],2)),f="M "+s+" "+u+" L "+d[0]+" "+d[1];_.attr("d",h),m.attr("d",f),a=l<=e,a&&o?m.attr("display",null):m.attr("display","none"),r.nodes().forEach(function(t){t.__lasso.loopSelect=!(!a||!o)&&c(p,t.__lasso.lassoPoint)<1,t.__lasso.possible=t.__lasso.hoverSelect||t.__lasso.loopSelect}),i.draw()}function f(){r.on("mouseover.lasso",null),r.nodes().forEach(function(t){t.__lasso.selected=t.__lasso.possible,t.__lasso.possible=!1}),_.attr("d",null),m.attr("d",null),b.attr("display","none"),i.end()}var h,v,d,p,g=t.append("g").attr("class","lasso"),_=g.append("path").attr("class","drawn"),m=g.append("path").attr("class","loop_close"),b=g.append("circle").attr("class","origin"),M=d3.drag().on("start",u).on("drag",l).on("end",f);n.call(M)}var n,r=[],e=75,o=!0,a=!1,s=!0,i={start:function(){},draw:function(){},end:function(){}};return t.items=function(n){if(!arguments.length)return r;r=n;var e=r.nodes();return e.forEach(function(t){t.__lasso={possible:!1,selected:!1}}),t},t.possibleItems=function(){return r.filter(function(){return this.__lasso.possible})},t.selectedItems=function(){return r.filter(function(){return this.__lasso.selected})},t.notPossibleItems=function(){return r.filter(function(){return!this.__lasso.possible})},t.notSelectedItems=function(){return r.filter(function(){return!this.__lasso.selected})},t.closePathDistance=function(n){return arguments.length?(e=n,t):e},t.closePathSelect=function(n){return arguments.length?(o=n===!0,t):o},t.isPathClosed=function(n){return arguments.length?(a=n===!0,t):a},t.hoverSelect=function(n){return arguments.length?(s=n===!0,t):s},t.on=function(n,r){if(!arguments.length)return i;if(1===arguments.length)return i[n];var e=["start","draw","end"];return e.indexOf(n)>-1&&(i[n]=r),t},t.targetArea=function(r){return arguments.length?(n=r,t):n},t}var a=e(function(t){function n(t,n,e){var o=t*n,a=r*t,s=a-t,i=a-s,u=t-i,l=r*n,f=l-n,c=l-f,h=n-c,v=o-i*c,d=v-u*c,p=d-i*h,g=u*h-p;return e?(e[0]=g,e[1]=o,e):[g,o]}t.exports=n;var r=+(Math.pow(2,27)+1)}),s=e(function(t){function n(t,n){var r=t+n,e=r-t,o=r-e,a=n-e,s=t-o,i=s+a;return i?[i,r]:[r]}function r(t,r){var e=0|t.length,o=0|r.length;if(1===e&&1===o)return n(t[0],r[0]);var a,s,i=e+o,u=new Array(i),l=0,f=0,c=0,h=Math.abs,v=t[f],d=h(v),p=r[c],g=h(p);d<g?(s=v,f+=1,f<e&&(v=t[f],d=h(v))):(s=p,c+=1,c<o&&(p=r[c],g=h(p))),f<e&&d<g||c>=o?(a=v,f+=1,f<e&&(v=t[f],d=h(v))):(a=p,c+=1,c<o&&(p=r[c],g=h(p)));for(var _,m,b,M,y,w=a+s,x=w-a,j=s-x,E=j,A=w;f<e&&c<o;)d<g?(a=v,f+=1,f<e&&(v=t[f],d=h(v))):(a=p,c+=1,c<o&&(p=r[c],g=h(p))),s=E,w=a+s,x=w-a,j=s-x,j&&(u[l++]=j),_=A+w,m=_-A,b=_-m,M=w-m,y=A-b,E=y+M,A=_;for(;f<e;)a=v,s=E,w=a+s,x=w-a,j=s-x,j&&(u[l++]=j),_=A+w,m=_-A,b=_-m,M=w-m,y=A-b,E=y+M,A=_,f+=1,f<e&&(v=t[f]);for(;c<o;)a=p,s=E,w=a+s,x=w-a,j=s-x,j&&(u[l++]=j),_=A+w,m=_-A,b=_-m,M=w-m,y=A-b,E=y+M,A=_,c+=1,c<o&&(p=r[c]);return E&&(u[l++]=E),A&&(u[l++]=A),l||(u[l++]=0),u.length=l,u}t.exports=r}),i=e(function(t){function n(t,n,r){var e=t+n,o=e-t,a=e-o,s=n-o,i=t-a;return r?(r[0]=i+s,r[1]=e,r):[i+s,e]}t.exports=n}),u=e(function(t){function n(t,n){var o=t.length;if(1===o){var a=r(t[0],n);return a[0]?a:[a[1]]}var s=new Array(2*o),i=[.1,.1],u=[.1,.1],l=0;r(t[0],n,i),i[0]&&(s[l++]=i[0]);for(var f=1;f<o;++f){r(t[f],n,u);var c=i[1];e(c,u[0],i),i[0]&&(s[l++]=i[0]);var h=u[1],v=i[1],d=h+v,p=d-h,g=v-p;i[1]=d,g&&(s[l++]=g)}return i[1]&&(s[l++]=i[1]),0===l&&(s[l++]=0),s.length=l,s}var r=a,e=i;t.exports=n}),l=e(function(t){function n(t,n){var r=t+n,e=r-t,o=r-e,a=n-e,s=t-o,i=s+a;return i?[i,r]:[r]}function r(t,r){var e=0|t.length,o=0|r.length;if(1===e&&1===o)return n(t[0],-r[0]);var a,s,i=e+o,u=new Array(i),l=0,f=0,c=0,h=Math.abs,v=t[f],d=h(v),p=-r[c],g=h(p);d<g?(s=v,f+=1,f<e&&(v=t[f],d=h(v))):(s=p,c+=1,c<o&&(p=-r[c],g=h(p))),f<e&&d<g||c>=o?(a=v,f+=1,f<e&&(v=t[f],d=h(v))):(a=p,c+=1,c<o&&(p=-r[c],g=h(p)));for(var _,m,b,M,y,w=a+s,x=w-a,j=s-x,E=j,A=w;f<e&&c<o;)d<g?(a=v,f+=1,f<e&&(v=t[f],d=h(v))):(a=p,c+=1,c<o&&(p=-r[c],g=h(p))),s=E,w=a+s,x=w-a,j=s-x,j&&(u[l++]=j),_=A+w,m=_-A,b=_-m,M=w-m,y=A-b,E=y+M,A=_;for(;f<e;)a=v,s=E,w=a+s,x=w-a,j=s-x,j&&(u[l++]=j),_=A+w,m=_-A,b=_-m,M=w-m,y=A-b,E=y+M,A=_,f+=1,f<e&&(v=t[f]);for(;c<o;)a=p,s=E,w=a+s,x=w-a,j=s-x,j&&(u[l++]=j),_=A+w,m=_-A,b=_-m,M=w-m,y=A-b,E=y+M,A=_,c+=1,c<o&&(p=-r[c]);return E&&(u[l++]=E),A&&(u[l++]=A),l||(u[l++]=0),u.length=l,u}t.exports=r}),f=e(function(t){function n(t,n){for(var r=new Array(t.length-1),e=1;e<t.length;++e)for(var o=r[e-1]=new Array(t.length-1),a=0,s=0;a<t.length;++a)a!==n&&(o[s++]=t[e][a]);return r}function r(t){for(var n=new Array(t),r=0;r<t;++r){n[r]=new Array(t);for(var e=0;e<t;++e)n[r][e]=["m",e,"[",t-r-1,"]"].join("")}return n}function e(t){return 1&t?"-":""}function o(t){if(1===t.length)return t[0];if(2===t.length)return["sum(",t[0],",",t[1],")"].join("");var n=t.length>>1;return["sum(",o(t.slice(0,n)),",",o(t.slice(n)),")"].join("")}function i(t){if(2===t.length)return[["sum(prod(",t[0][0],",",t[1][1],"),prod(-",t[0][1],",",t[1][0],"))"].join("")];for(var r=[],a=0;a<t.length;++a)r.push(["scale(",o(i(n(t,a))),",",e(a),t[0][a],")"].join(""));return r}function f(t){for(var e=[],a=[],s=r(t),u=[],l=0;l<t;++l)0===(1&l)?e.push.apply(e,i(n(s,l))):a.push.apply(a,i(n(s,l))),u.push("m"+l);var f=o(e),c=o(a),h="orientation"+t+"Exact",_=["function ",h,"(",u.join(),"){var p=",f,",n=",c,",d=sub(p,n);return d[d.length-1];};return ",h].join(""),m=new Function("sum","prod","scale","sub",_);return m(d,v,p,g)}function c(t){var n=x[t.length];return n||(n=x[t.length]=f(t.length)),n.apply(void 0,t)}function h(){for(;x.length<=_;)x.push(f(x.length));for(var n=[],r=["slow"],e=0;e<=_;++e)n.push("a"+e),r.push("o"+e);for(var o=["function getOrientation(",n.join(),"){switch(arguments.length){case 0:case 1:return 0;"],e=2;e<=_;++e)o.push("case ",e,":return o",e,"(",n.slice(0,e).join(),");");o.push("}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation"),r.push(o.join(""));var a=Function.apply(void 0,r);t.exports=a.apply(void 0,[c].concat(x));for(var e=0;e<=_;++e)t.exports[e]=x[e]}var v=a,d=s,p=u,g=l,_=5,m=1.1102230246251565e-16,b=(3+16*m)*m,M=(7+56*m)*m,y=f(3),w=f(4),x=[function(){return 0},function(){return 0},function(t,n){return n[0]-t[0]},function(t,n,r){var e,o=(t[1]-r[1])*(n[0]-r[0]),a=(t[0]-r[0])*(n[1]-r[1]),s=o-a;if(o>0){if(a<=0)return s;e=o+a}else{if(!(o<0))return s;if(a>=0)return s;e=-(o+a)}var i=b*e;return s>=i||s<=-i?s:y(t,n,r)},function(t,n,r,e){var o=t[0]-e[0],a=n[0]-e[0],s=r[0]-e[0],i=t[1]-e[1],u=n[1]-e[1],l=r[1]-e[1],f=t[2]-e[2],c=n[2]-e[2],h=r[2]-e[2],v=a*l,d=s*u,p=s*i,g=o*l,_=o*u,m=a*i,b=f*(v-d)+c*(p-g)+h*(_-m),y=(Math.abs(v)+Math.abs(d))*Math.abs(f)+(Math.abs(p)+Math.abs(g))*Math.abs(c)+(Math.abs(_)+Math.abs(m))*Math.abs(h),x=M*y;return b>x||-b>x?b:w(t,n,r,e)}];h()}),c=e(function(t){function n(t,n){for(var e=n[0],o=n[1],a=t.length,s=1,i=a,u=0,l=a-1;u<i;l=u++){var f=t[u],c=t[l],h=f[1],v=c[1];if(v<h){if(v<o&&o<h){var d=r(f,c,n);if(0===d)return 0;s^=0<d|0}else if(o===h){var p=t[(u+1)%a],g=p[1];if(h<g){var d=r(f,c,n);if(0===d)return 0;s^=0<d|0}}}else if(h<v){if(h<o&&o<v){var d=r(f,c,n);if(0===d)return 0;s^=d<0|0}else if(o===h){var p=t[(u+1)%a],g=p[1];if(g<h){var d=r(f,c,n);if(0===d)return 0;s^=d<0|0}}}else if(o===h){var _=Math.min(f[0],c[0]),m=Math.max(f[0],c[0]);if(0===u){for(;l>0;){var b=(l+a-1)%a,M=t[b];if(M[1]!==o)break;var y=M[0];_=Math.min(_,y),m=Math.max(m,y),l=b}if(0===l)return _<=e&&e<=m?0:1;i=l+1}for(var w=t[(l+a-1)%a][1];u+1<i;){var M=t[u+1];if(M[1]!==o)break;var y=M[0];_=Math.min(_,y),m=Math.max(m,y),u+=1}if(_<=e&&e<=m)return 0;var x=t[(u+1)%a][1];e<_&&w<o!=x<o&&(s^=1)}}return 2*s-1}t.exports=n;var r=f});t.lasso=o,Object.defineProperty(t,"__esModule",{value:!0})});</script>
<script>"use strict";!function(){var i="undefined"!=typeof exports&&exports||"undefined"!=typeof define&&{}||this||window;"undefined"!=typeof define&&define("save-svg-as-png",[],function(){return i}),i.default=i;function c(e){if(!r(e))throw new Error("an HTMLElement or SVGElement is required; got "+e)}function o(n){return new Promise(function(e,t){r(n)?e(n):t(new Error("an HTMLElement or SVGElement is required; got "+n))})}function a(e){for(var t=window.atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],e=new ArrayBuffer(t.length),r=new Uint8Array(e),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return new Blob([e],{type:n})}function u(){if(!(navigator.msSaveOrOpenBlob||"download"in document.createElement("a")))return{popup:window.open()}}var E="http://www.w3.org/2000/xmlns/",C="http://www.w3.org/2000/svg",s=/url\(["']?(.+?)["']?\)/,n={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},r=function(e){return e instanceof HTMLElement||e instanceof SVGElement},l=function(e){return e&&0===e.lastIndexOf("http",0)&&-1===e.lastIndexOf(window.location.host)},f=function(t){var e=Object.keys(n).filter(function(e){return 0<t.indexOf("."+e)}).map(function(e){return n[e]});return e?e[0]:(console.error("Unknown font format for "+t+". Fonts may not be working correctly."),"application/octet-stream")},d=function(e){for(var t="",n=new Uint8Array(e),r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return window.btoa(t)},T=function(e,t,n){n=e.viewBox&&e.viewBox.baseVal&&e.viewBox.baseVal[n]||null!==t.getAttribute(n)&&!t.getAttribute(n).match(/%$/)&&parseInt(t.getAttribute(n))||e.getBoundingClientRect()[n]||parseInt(t.style[n])||parseInt(window.getComputedStyle(e).getPropertyValue(n));return null==n||isNaN(parseFloat(n))?0:n},U=function(e,t){if(t)try{return e.querySelector(t)||e.parentNode&&e.parentNode.querySelector(t)}catch(e){console.warn('Invalid CSS selector "'+t+'"',e)}},k=function(e,t){var n=e.cssText.match(s),n=n&&n[1]||"";if(n&&!n.match(/^data:/)&&"about:blank"!==n){n=n.startsWith("../")?t+"/../"+n:n.startsWith("./")?t+"/."+n:n;return{text:e.cssText,format:f(n),url:n}}},h={},L=function(e){return Promise.all(e.map(function(r){return new Promise(function(t,e){if(h[r.url])return t(h[r.url]);var n=new XMLHttpRequest;n.addEventListener("load",function(){var e=d(n.response),e=r.text.replace(s,'url("data:'+r.format+";base64,"+e+'")')+"\n";h[r.url]=e,t(e)}),n.addEventListener("error",function(e){console.warn("Failed to load font from: "+r.url,e),h[r.url]=null,t(null)}),n.addEventListener("abort",function(e){console.warn("Aborted loading font from: "+r.url,e),t(null)}),n.open("GET",r.url),n.responseType="arraybuffer",n.send()})})).then(function(e){return e.filter(function(e){return e}).join("")})},e=null,O=function(){return e=e||Array.from(document.styleSheets).map(function(t){try{return{rules:t.cssRules,href:t.href}}catch(e){return console.warn("Stylesheet could not be loaded: "+t.href,e),{}}})};i.prepareSvg=function(w,g,p){c(w);var e=g||{},t=e.left,m=void 0===t?0:t,t=e.top,v=void 0===t?0:t,b=e.width,y=e.height,t=e.scale,x=void 0===t?1:t,t=e.responsive,A=void 0!==t&&t,e=e.excludeCss,S=void 0!==e&&e;return Promise.all(Array.from(w.querySelectorAll("image")).map(function(o){var i=o.getAttributeNS("http://www.w3.org/1999/xlink","href")||o.getAttribute("href");return i?(l(i)&&(i+=(-1===i.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(e,t){var n=document.createElement("canvas"),r=new Image;r.crossOrigin="anonymous",r.src=i,r.onerror=function(){return t(new Error("Could not load "+i))},r.onload=function(){n.width=r.width,n.height=r.height,n.getContext("2d").drawImage(r,0,0),o.setAttributeNS("http://www.w3.org/1999/xlink","href",n.toDataURL("image/png")),e(!0)}})):Promise.resolve(null)})).then(function(){var n=w.cloneNode(!0);n.style.backgroundColor=(g||{}).backgroundColor||w.style.backgroundColor;var e=function(e,t,n,r){if("svg"===e.tagName)return{width:n||T(e,t,"width"),height:r||T(e,t,"height")};if(e.getBBox){r=e.getBBox(),t=r.x,e=r.y;return{width:t+r.width,height:e+r.height}}}(w,n,b,y),r=e.width,o=e.height;if("svg"!==w.tagName){if(!w.getBBox)return void console.error("Attempted to render non-SVG element",w);null!=n.getAttribute("transform")&&n.setAttribute("transform",n.getAttribute("transform").replace(/translate\(.*?\)/,""));var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.appendChild(n),n=t}if(n.setAttribute("version","1.1"),n.setAttribute("viewBox",[m,v,r,o].join(" ")),n.getAttribute("xmlns")||n.setAttributeNS(E,"xmlns",C),n.getAttribute("xmlns:xlink")||n.setAttributeNS(E,"xmlns:xlink","http://www.w3.org/1999/xlink"),A?(n.removeAttribute("width"),n.removeAttribute("height"),n.setAttribute("preserveAspectRatio","xMinYMin meet")):(n.setAttribute("width",r*x),n.setAttribute("height",o*x)),Array.from(n.querySelectorAll("foreignObject > *")).forEach(function(e){e.setAttributeNS(E,"xmlns","svg"===e.tagName?C:"http://www.w3.org/1999/xhtml")}),!S)return i=w,u=(e=(a=g)||{}).selectorRemap,s=e.modifyStyle,t=e.modifyCss,a=e.fonts,l=e.excludeUnusedCss,c=t||function(e,t){return(u?u(e):e)+"{"+(s?s(t):t)+"}\n"},f=[],d=void 0===a,h=a||[],O().forEach(function(e){var t=e.rules,n=e.href;t&&Array.from(t).forEach(function(e){var t;void 0!==e.style&&(U(i,e.selectorText)?f.push(c(e.selectorText,e.style.cssText)):d&&e.cssText.match(/^@font-face/)?(t=k(e,n))&&h.push(t):l||f.push(e.cssText))})}),L(h).then(function(e){return f.join("\n")+e}).then(function(e){var t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML="<![CDATA[\n"+e+"\n]]>";e=document.createElement("defs");e.appendChild(t),n.insertBefore(e,n.firstChild);e=document.createElement("div");e.appendChild(n);e=e.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof p)return{src:e,width:r,height:o};p(e,r,o)});a=document.createElement("div");a.appendChild(n);var i,a,u,s,l,c,f,d,h,a=a.innerHTML;if("function"!=typeof p)return{src:a,width:r,height:o};p(a,r,o)})},i.svgAsDataUri=function(e,t,r){return c(e),i.prepareSvg(e,t).then(function(e){var t=e.src,n=e.width,e=e.height,t="data:image/svg+xml;base64,"+window.btoa(decodeURIComponent(encodeURIComponent('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp " ">]>'+t).replace(/%([0-9A-F]{2})/g,function(e,t){t=String.fromCharCode("0x"+t);return"%"===t?"%25":t})));return"function"==typeof r&&r(t,n,e),t})},i.svgAsPngUri=function(e,t,a){c(e);function o(e){var t=e.src,n=e.width,r=e.height,o=document.createElement("canvas"),i=o.getContext("2d"),e=window.devicePixelRatio||1;o.width=n*e,o.height=r*e,o.style.width=o.width+"px",o.style.height=o.height+"px",i.setTransform(e,0,0,e,0,0),l?l(o,t):i.drawImage(t,0,0),t=void 0;try{t=o.toDataURL(u,s)}catch(e){if("undefined"!=typeof SecurityError&&e instanceof SecurityError||"SecurityError"===e.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw e}return"function"==typeof a&&a(t,o.width,o.height),Promise.resolve(t)}var n=t||{},r=n.encoderType,u=void 0===r?"image/png":r,r=n.encoderOptions,s=void 0===r?.8:r,l=n.canvg;return l?i.prepareSvg(e,t).then(o):i.svgAsDataUri(e,t).then(function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){return e(o({src:n,width:n.width,height:n.height}))},n.onerror=function(){t("There was an error loading the data URI as an image on the following SVG\n"+window.atob(r.slice(26))+"Open the following link to see browser's diagnosis\n"+r)},n.src=r})})},i.download=function(e,t,n){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(a(t),e);else{var r=document.createElement("a");if("download"in r){r.download=e,r.style.display="none",document.body.appendChild(r);try{var o=a(t),i=URL.createObjectURL(o);r.href=i,r.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(i)})}}catch(e){console.error(e),console.warn("Error while getting object URL. Falling back to string URL."),r.href=t}r.click(),document.body.removeChild(r)}else n&&n.popup&&(n.popup.document.title=e,n.popup.location.replace(t))}},i.saveSvg=function(e,t,n){var r=u();return o(e).then(function(e){return i.svgAsDataUri(e,n||{})}).then(function(e){return i.download(t,e,r)})},i.saveSvgAsPng=function(e,t,n){var r=u();return o(e).then(function(e){return i.svgAsPngUri(e,n||{})}).then(function(e){return i.download(t,e,r)})}}();</script>
<style type="text/css">.girafe,.girafe_container_std{margin-left:auto;margin-right:auto}.girafe_container_std{position:relative;text-align:center}.girafe_container_ie{height:0}.girafe_svg_ie{position:absolute;top:0;left:0}.ggiraph-toolbar{position:absolute;background-color:#fff;background-color:hsla(0,0%,100%,.3);border-radius:5px;padding-top:2px;opacity:0;transition:opacity .3s ease 0s}.ggiraph-toolbar-top{text-align:center;top:3px;right:0;left:0}.ggiraph-toolbar-topleft{text-align:left;top:3px;left:3px}.ggiraph-toolbar-topright{text-align:right;top:3px;right:3px}.ggiraph-toolbar-bottom{text-align:center;bottom:3px;right:0;left:0}.ggiraph-toolbar-bottomleft{text-align:left;left:3px;bottom:3px}.ggiraph-toolbar-bottomright{text-align:right;right:3px;bottom:3px}.ggiraph-toolbar-block{display:inline-block;padding-right:10px}.ggiraph-toolbar-icon{position:relative;cursor:pointer;box-sizing:border-box;padding-right:3px}.drop{stroke:#e30c37;fill:#e30c37}.drop:hover{stroke:#333;fill:#333}.neutral{stroke:#069;fill:#069}.neutral:hover{stroke:#333;fill:#333}.lasso path{stroke:#505050;stroke-width:2px}.lasso .drawn{fill-opacity:.05}.lasso .loop_close{fill:none;stroke-dasharray:4,4}.lasso .origin{fill:#333;fill-opacity:.5}</style>
<script>!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3")):"function"==typeof define&&define.amd?define(["d3"],e):"object"==typeof exports?exports.ggiraphjs=e(require("d3")):t.ggiraphjs=e(t.d3)}(window,(function(t){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(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=187)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(107))},function(e,n){e.exports=t},function(t,e){var n=Function.prototype,r=n.bind,i=n.call,o=r&&r.bind(i);t.exports=r?function(t){return t&&o(i,t)}:function(t){return t&&function(){return i.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var r,i,o,s=n(99),a=n(8),u=n(0),c=n(6),f=n(13),l=n(11),h=n(33),p=n(47),v=n(22),d=n(16),y=n(12).f,g=n(26),m=n(57),x=n(42),w=n(5),b=n(50),A=u.Int8Array,S=A&&A.prototype,O=u.Uint8ClampedArray,E=O&&O.prototype,T=A&&m(A),k=S&&m(S),_=Object.prototype,I=u.TypeError,N=w("toStringTag"),M=b("TYPED_ARRAY_TAG"),P=b("TYPED_ARRAY_CONSTRUCTOR"),R=s&&!!x&&"Opera"!==h(u.opera),j=!1,C={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},z=function(t){if(!f(t))return!1;var e=h(t);return l(C,e)||l(D,e)};for(r in C)(o=(i=u[r])&&i.prototype)?v(o,P,i):R=!1;for(r in D)(o=(i=u[r])&&i.prototype)&&v(o,P,i);if((!R||!c(T)||T===Function.prototype)&&(T=function(){throw I("Incorrect invocation")},R))for(r in C)u[r]&&x(u[r],T);if((!R||!k||k===_)&&(k=T.prototype,R))for(r in C)u[r]&&x(u[r].prototype,k);if(R&&m(E)!==k&&x(E,k),a&&!l(k,N))for(r in j=!0,y(k,N,{get:function(){return f(this)?this[M]:void 0}}),C)u[r]&&v(u[r],M,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_CONSTRUCTOR:P,TYPED_ARRAY_TAG:j&&M,aTypedArray:function(t){if(z(t))return t;throw I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!x||g(T,t)))return t;throw I(p(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(a){if(n)for(var r in C){var i=u[r];if(i&&l(i.prototype,t))try{delete i.prototype[t]}catch(t){}}k[t]&&!n||d(k,t,n?e:R&&S[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(a){if(x){if(n)for(r in C)if((i=u[r])&&l(i,t))try{delete i[t]}catch(t){}if(T[t]&&!n)return;try{return d(T,t,n?e:R&&T[t]||e)}catch(t){}}for(r in C)!(i=u[r])||i[t]&&!n||d(i,t,e)}},isView:function(t){if(!f(t))return!1;var e=h(t);return"DataView"===e||l(C,e)||l(D,e)},isTypedArray:z,TypedArray:T,TypedArrayPrototype:k}},function(t,e,n){var r=n(0),i=n(48),o=n(11),s=n(50),a=n(59),u=n(76),c=i("wks"),f=r.Symbol,l=f&&f.for,h=u?f:f&&f.withoutSetter||s;t.exports=function(t){if(!o(c,t)||!a&&"string"!=typeof c[t]){var e="Symbol."+t;a&&o(f,t)?c[t]=f[t]:c[t]=u&&l?l(e):h(e)}return c[t]}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(0),i=n(35).f,o=n(22),s=n(16),a=n(62),u=n(79),c=n(112);t.exports=function(t,e){var n,f,l,h,p,v=t.target,d=t.global,y=t.stat;if(n=d?r:y?r[v]||a(v,{}):(r[v]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=i(n,f))&&p.value:n[f],!c(d?f:v+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;u(h,l)}(t.sham||l&&l.sham)&&o(h,"sham",!0),s(n,f,h,t)}}},function(t,e,n){var r=n(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(0),i=n(13),o=r.String,s=r.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not an object")}},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){var r=n(2),i=n(15),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},function(t,e,n){var r=n(0),i=n(8),o=n(77),s=n(9),a=n(36),u=r.TypeError,c=Object.defineProperty;e.f=i?c:function(t,e,n){if(s(t),e=a(e),s(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(6);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(44),i=n(24);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(0),i=n(24),o=r.Object;t.exports=function(t){return o(i(t))}},function(t,e,n){var r=n(0),i=n(6),o=n(11),s=n(22),a=n(62),u=n(63),c=n(32),f=n(39).CONFIGURABLE,l=c.get,h=c.enforce,p=String(String).split("String");(t.exports=function(t,e,n,u){var c,l=!!u&&!!u.unsafe,v=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,y=u&&void 0!==u.name?u.name:e;i(n)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||f&&n.name!==y)&&s(n,"name",y),(c=h(n)).source||(c.source=p.join("string"==typeof y?y:""))),t!==r?(l?!d&&t[e]&&(v=!0):delete t[e],v?t[e]=n:s(t,e,n)):v?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return i(this)&&l(this).source||u(this)}))},function(t,e,n){var r=n(21);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(0),i=n(33),o=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},function(t,e,n){var r=n(94),i=n(2),o=n(44),s=n(15),a=n(17),u=n(91),c=i([].push),f=function(t){var e=1==t,n=2==t,i=3==t,f=4==t,l=6==t,h=7==t,p=5==t||l;return function(v,d,y,g){for(var m,x,w=s(v),b=o(w),A=r(d,y),S=a(b),O=0,E=g||u,T=e?E(v,S):n||h?E(v,0):void 0;S>O;O++)if((p||O in b)&&(x=A(m=b[O],O,w),t))if(e)T[O]=x;else if(x)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:c(T,m)}else switch(t){case 4:return!1;case 7:c(T,m)}return l?-1:i||f?f:T}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(20),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(8),i=n(12),o=n(30);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(2);t.exports=r([].slice)},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),i=n(6),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(2);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(20),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e,n){var r,i=n(9),o=n(113),s=n(64),a=n(52),u=n(114),c=n(78),f=n(51),l=f("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"<\/script>"},v=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;d="undefined"!=typeof document?document.domain&&r?v(r):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):v(r);for(var n=s.length;n--;)delete d.prototype[s[n]];return d()};a[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[l]=t):n=d(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(7),i=n(8);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(12).f})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(2),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},function(t,e,n){var r,i,o,s=n(110),a=n(0),u=n(2),c=n(13),f=n(22),l=n(11),h=n(61),p=n(51),v=n(52),d=a.TypeError,y=a.WeakMap;if(s||h.state){var g=h.state||(h.state=new y),m=u(g.get),x=u(g.has),w=u(g.set);r=function(t,e){if(x(g,t))throw new d("Object already initialized");return e.facade=t,w(g,t,e),e},i=function(t){return m(g,t)||{}},o=function(t){return x(g,t)}}else{var b=p("state");v[b]=!0,r=function(t,e){if(l(t,b))throw new d("Object already initialized");return e.facade=t,f(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw d("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(0),i=n(65),o=n(6),s=n(31),a=n(5)("toStringTag"),u=r.Object,c="Arguments"==s(function(){return arguments}());t.exports=i?s:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),a))?n:c?s(e):"Object"==(r=s(e))&&o(e.callee)?"Arguments":r}},function(t,e){var n=Function.prototype,r=n.apply,i=n.bind,o=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},function(t,e,n){var r=n(8),i=n(10),o=n(75),s=n(30),a=n(14),u=n(36),c=n(11),f=n(77),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=u(e),f)try{return l(t,e)}catch(t){}if(c(t,e))return s(!i(o.f,t,e),t[e])}},function(t,e,n){var r=n(108),i=n(45);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r=n(38);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(0),i=n(6),o=n(47),s=r.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not a function")}},function(t,e,n){var r=n(8),i=n(11),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},function(t,e,n){var r=n(80),i=n(64).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e){t.exports={}},function(t,e,n){var r=n(2),i=n(9),o=n(142);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){"use strict";var r=n(7),i=n(54);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){var r=n(0),i=n(2),o=n(3),s=n(31),a=r.Object,u=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?u(t,""):a(t)}:a},function(t,e,n){var r=n(0),i=n(25),o=n(6),s=n(26),a=n(76),u=r.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&s(e.prototype,u(t))}},function(t,e,n){var r=n(25);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(49),i=n(61);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e,n){var r=n(2),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},function(t,e,n){var r=n(48),i=n(50),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(14),i=n(27),o=n(17),s=function(t){return function(e,n,s){var a,u=r(e),c=o(u),f=i(s,c);if(t&&n!=n){for(;c>f;)if((a=u[f++])!=a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,e,n){"use strict";var r,i,o=n(10),s=n(2),a=n(18),u=n(82),c=n(83),f=n(48),l=n(28),h=n(32).get,p=n(115),v=n(116),d=f("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,m=s("".charAt),x=s("".indexOf),w=s("".replace),b=s("".slice),A=(i=/b*/g,o(y,r=/a/,"a"),o(y,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=c.UNSUPPORTED_Y||c.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(A||O||S||p||v)&&(g=function(t){var e,n,r,i,s,c,f,p=this,v=h(p),E=a(t),T=v.raw;if(T)return T.lastIndex=p.lastIndex,e=o(g,T,E),p.lastIndex=T.lastIndex,e;var k=v.groups,_=S&&p.sticky,I=o(u,p),N=p.source,M=0,P=E;if(_&&(I=w(I,"y",""),-1===x(I,"g")&&(I+="g"),P=b(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==m(E,p.lastIndex-1))&&(N="(?: "+N+")",P=" "+P,M++),n=new RegExp("^(?:"+N+")",I)),O&&(n=new RegExp("^"+N+"$(?!\\s)",I)),A&&(r=p.lastIndex),i=o(y,_?n:p,P),_?i?(i.input=b(i.input,M),i[0]=b(i[0],M),i.index=p.lastIndex,p.lastIndex+=i[0].length):p.lastIndex=0:A&&i&&(p.lastIndex=p.global?i.index+i[0].length:r),O&&i&&i.length>1&&o(d,i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&k)for(i.groups=c=l(null),s=0;s<k.length;s++)c[(f=k[s])[0]]=i[f[1]];return i}),t.exports=g},function(t,e,n){var r=n(31);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(12).f,i=n(11),o=n(5)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),i=n(11),o=n(6),s=n(15),a=n(51),u=n(141),c=a("IE_PROTO"),f=r.Object,l=f.prototype;t.exports=u?f.getPrototypeOf:function(t){var e=s(t);if(i(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof f?l:null}},function(t,e,n){var r=n(4),i=n(72),o=r.TYPED_ARRAY_CONSTRUCTOR,s=r.aTypedArrayConstructor;t.exports=function(t){return s(i(t,t[o]))}},function(t,e,n){var r=n(60),i=n(3);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,i,o=n(0),s=n(46),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,f=c&&c.v8;f&&(i=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,e,n){var r=n(0),i=n(62),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){var r=n(0),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(2),i=n(6),o=n(61),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r={};r[n(5)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){"use strict";var r=n(34),i=n(10),o=n(2),s=n(67),a=n(3),u=n(9),c=n(6),f=n(20),l=n(21),h=n(18),p=n(24),v=n(68),d=n(37),y=n(118),g=n(69),m=n(5)("replace"),x=Math.max,w=Math.min,b=o([].concat),A=o([].push),S=o("".indexOf),O=o("".slice),E="$0"==="a".replace(/./,"$0"),T=!!/./[m]&&""===/./[m]("a","$0");s("replace",(function(t,e,n){var o=T?"$":"$0";return[function(t,n){var r=p(this),o=null==t?void 0:d(t,m);return o?i(o,t,r,n):i(e,h(r),t,n)},function(t,i){var s=u(this),a=h(t);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var p=n(e,s,a,i);if(p.done)return p.value}var d=c(i);d||(i=h(i));var m=s.global;if(m){var E=s.unicode;s.lastIndex=0}for(var T=[];;){var k=g(s,a);if(null===k)break;if(A(T,k),!m)break;""===h(k[0])&&(s.lastIndex=v(a,l(s.lastIndex),E))}for(var _,I="",N=0,M=0;M<T.length;M++){for(var P=h((k=T[M])[0]),R=x(w(f(k.index),a.length),0),j=[],C=1;C<k.length;C++)A(j,void 0===(_=k[C])?_:String(_));var D=k.groups;if(d){var z=b([P],j,R,a);void 0!==D&&A(z,D);var L=h(r(i,void 0,z))}else L=y(P,a,R,j,D,i);R>=N&&(I+=O(a,N,R)+L,N=R+P.length)}return I+O(a,N)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||T)},function(t,e,n){"use strict";n(43);var r=n(2),i=n(16),o=n(54),s=n(3),a=n(5),u=n(22),c=a("species"),f=RegExp.prototype;t.exports=function(t,e,n,l){var h=a(t),p=!s((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),v=p&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!p||!v||n){var d=r(/./[h]),y=e(h,""[t],(function(t,e,n,i,s){var a=r(t),u=e.exec;return u===o||u===f.exec?p&&!s?{done:!0,value:d(e,n,i)}:{done:!0,value:a(n,e,i)}:{done:!1}}));i(String.prototype,t,y[0]),i(f,h,y[1])}l&&u(f[h],"sham",!0)}},function(t,e,n){"use strict";var r=n(117).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(0),i=n(10),o=n(9),s=n(6),a=n(31),u=n(54),c=r.TypeError;t.exports=function(t,e){var n=t.exec;if(s(n)){var r=i(n,t,e);return null!==r&&o(r),r}if("RegExp"===a(t))return i(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){"use strict";var r=n(7),i=n(2),o=n(53).indexOf,s=n(70),a=i([].indexOf),u=!!a&&1/a([1],1,-0)<0,c=s("indexOf");r({target:"Array",proto:!0,forced:u||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?a(this,t,e)||0:o(this,t,e)}})},function(t,e,n){var r=n(9),i=n(88),o=n(5)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[o])?e:i(n)}},function(t,e,n){var r=n(2),i=n(3),o=n(6),s=n(33),a=n(25),u=n(63),c=function(){},f=[],l=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=r(h.exec),v=!h.exec(c),d=function(t){if(!o(t))return!1;try{return l(c,f,t),!0}catch(t){return!1}};t.exports=!l||i((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return v||!!p(h,u(t))}:d},function(t,e,n){var r=n(3),i=n(5),o=n(60),s=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(59);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(8),i=n(3),o=n(78);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(0),i=n(13),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,e,n){var r=n(11),i=n(111),o=n(35),s=n(12);t.exports=function(t,e){for(var n=i(e),a=s.f,u=o.f,c=0;c<n.length;c++){var f=n[c];r(t,f)||a(t,f,u(e,f))}}},function(t,e,n){var r=n(2),i=n(11),o=n(14),s=n(53).indexOf,a=n(52),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,f=[];for(n in r)!i(a,n)&&i(r,n)&&u(f,n);for(;e.length>c;)i(r,n=e[c++])&&(~s(f,n)||u(f,n));return f}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(9);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(3),i=n(0).RegExp;e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,n){var r=n(80),i=n(64);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){"use strict";var r=n(7),i=n(2),o=n(44),s=n(14),a=n(70),u=i([].join),c=o!=Object,f=a("join",",");r({target:"Array",proto:!0,forced:c||!f},{join:function(t){return u(s(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(34),i=n(14),o=n(20),s=n(17),a=n(70),u=Math.min,c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),h=f||!l;t.exports=h?function(t){if(f)return r(c,this,arguments)||0;var e=i(this),n=s(e),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:c},function(t,e,n){"use strict";var r=n(34),i=n(10),o=n(2),s=n(67),a=n(120),u=n(9),c=n(24),f=n(72),l=n(68),h=n(21),p=n(18),v=n(37),d=n(23),y=n(69),g=n(54),m=n(83),x=n(3),w=m.UNSUPPORTED_Y,b=Math.min,A=[].push,S=o(/./.exec),O=o(A),E=o("".slice);s("split",(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=p(c(this)),s=void 0===n?4294967295:n>>>0;if(0===s)return[];if(void 0===t)return[o];if(!a(t))return i(e,o,t,s);for(var u,f,l,h=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,m=new RegExp(t.source,v+"g");(u=i(g,m,o))&&!((f=m.lastIndex)>y&&(O(h,E(o,y,u.index)),u.length>1&&u.index<o.length&&r(A,h,d(u,1)),l=u[0].length,y=f,h.length>=s));)m.lastIndex===u.index&&m.lastIndex++;return y===o.length?!l&&S(m,"")||O(h,""):O(h,E(o,y)),h.length>s?d(h,0,s):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=c(this),s=null==e?void 0:v(e,t);return s?i(s,e,r,n):i(o,p(r),e,n)},function(t,r){var i=u(this),s=p(t),a=n(o,i,s,r,o!==e);if(a.done)return a.value;var c=f(i,RegExp),v=i.unicode,d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(w?"g":"y"),g=new c(w?"^(?:"+i.source+")":i,d),m=void 0===r?4294967295:r>>>0;if(0===m)return[];if(0===s.length)return null===y(g,s)?[s]:[];for(var x=0,A=0,S=[];A<s.length;){g.lastIndex=w?0:A;var T,k=y(g,w?E(s,A):s);if(null===k||(T=b(h(g.lastIndex+(w?A:0)),s.length))===x)A=l(s,A,v);else{if(O(S,E(s,x,A)),S.length===m)return S;for(var _=1;_<=k.length-1;_++)if(O(S,k[_]),S.length===m)return S;A=x=T}}return O(S,E(s,x)),S}]}),!!x((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),w)},function(t,e,n){var r=n(0),i=n(73),o=n(47),s=r.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not a constructor")}},function(t,e,n){"use strict";var r=n(36),i=n(12),o=n(30);t.exports=function(t,e,n){var s=r(e);s in t?i.f(t,s,o(0,n)):t[s]=n}},function(t,e,n){"use strict";var r=n(7),i=n(0),o=n(27),s=n(20),a=n(17),u=n(15),c=n(91),f=n(89),l=n(74)("splice"),h=i.TypeError,p=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!l},{splice:function(t,e){var n,r,i,l,d,y,g=u(this),m=a(g),x=o(t,m),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=m-x):(n=w-2,r=v(p(s(e),0),m-x)),m+n-r>9007199254740991)throw h("Maximum allowed length exceeded");for(i=c(g,r),l=0;l<r;l++)(d=x+l)in g&&f(i,l,g[d]);if(i.length=r,n<r){for(l=x;l<m-r;l++)y=l+n,(d=l+r)in g?g[y]=g[d]:delete g[y];for(l=m;l>m-r+n;l--)delete g[l-1]}else if(n>r)for(l=m-r;l>x;l--)y=l+n-1,(d=l+r-1)in g?g[y]=g[d]:delete g[y];for(l=0;l<n;l++)g[l+x]=arguments[l+2];return g.length=m-r+n,i}})},function(t,e,n){var r=n(123);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(65),i=n(16),o=n(124);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){var r=n(5);e.f=r},function(t,e,n){var r=n(2),i=n(38),o=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?o(t,e):function(){return t.apply(e,arguments)}}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){"use strict";var r=n(14),i=n(138),o=n(41),s=n(32),a=n(139),u=s.set,c=s.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){"use strict";var r,i,o,s=n(3),a=n(6),u=n(28),c=n(57),f=n(16),l=n(5),h=n(49),p=l("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(r=i):v=!0),null==r||s((function(){var t={};return r[p].call(t)!==t}))?r={}:h&&(r=u(r)),a(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(8),s=n(99),a=n(39),u=n(22),c=n(144),f=n(3),l=n(100),h=n(20),p=n(21),v=n(101),d=n(145),y=n(57),g=n(42),m=n(40).f,x=n(12).f,w=n(102),b=n(23),A=n(56),S=n(32),O=a.PROPER,E=a.CONFIGURABLE,T=S.get,k=S.set,_=r.ArrayBuffer,I=_,N=I&&I.prototype,M=r.DataView,P=M&&M.prototype,R=Object.prototype,j=r.Array,C=r.RangeError,D=i(w),z=i([].reverse),L=d.pack,F=d.unpack,B=function(t){return[255&t]},U=function(t){return[255&t,t>>8&255]},H=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Y=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},W=function(t){return L(t,23,4)},V=function(t){return L(t,52,8)},$=function(t,e){x(t.prototype,e,{get:function(){return T(this)[e]}})},G=function(t,e,n,r){var i=v(n),o=T(t);if(i+e>o.byteLength)throw C("Wrong index");var s=T(o.buffer).bytes,a=i+o.byteOffset,u=b(s,a,a+e);return r?u:z(u)},K=function(t,e,n,r,i,o){var s=v(n),a=T(t);if(s+e>a.byteLength)throw C("Wrong index");for(var u=T(a.buffer).bytes,c=s+a.byteOffset,f=r(+i),l=0;l<e;l++)u[c+l]=f[o?l:e-l-1]};if(s){var X=O&&"ArrayBuffer"!==_.name;if(f((function(){_(1)}))&&f((function(){new _(-1)}))&&!f((function(){return new _,new _(1.5),new _(NaN),X&&!E})))X&&E&&u(_,"name","ArrayBuffer");else{(I=function(t){return l(this,N),new _(v(t))}).prototype=N;for(var q,J=m(_),Z=0;J.length>Z;)(q=J[Z++])in I||u(I,q,_[q]);N.constructor=I}g&&y(P)!==R&&g(P,R);var Q=new M(new I(2)),tt=i(P.setInt8);Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||c(P,{setInt8:function(t,e){tt(this,t,e<<24>>24)},setUint8:function(t,e){tt(this,t,e<<24>>24)}},{unsafe:!0})}else N=(I=function(t){l(this,N);var e=v(t);k(this,{bytes:D(j(e),0),byteLength:e}),o||(this.byteLength=e)}).prototype,P=(M=function(t,e,n){l(this,P),l(t,N);var r=T(t).byteLength,i=h(e);if(i<0||i>r)throw C("Wrong offset");if(i+(n=void 0===n?r-i:p(n))>r)throw C("Wrong length");k(this,{buffer:t,byteLength:n,byteOffset:i}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=i)}).prototype,o&&($(I,"byteLength"),$(M,"buffer"),$(M,"byteLength"),$(M,"byteOffset")),c(P,{getInt8:function(t){return G(this,1,t)[0]<<24>>24},getUint8:function(t){return G(this,1,t)[0]},getInt16:function(t){var e=G(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=G(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Y(G(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Y(G(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return F(G(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return F(G(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){K(this,1,t,B,e)},setUint8:function(t,e){K(this,1,t,B,e)},setInt16:function(t,e){K(this,2,t,U,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){K(this,2,t,U,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){K(this,4,t,H,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){K(this,4,t,H,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){K(this,4,t,W,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){K(this,8,t,V,e,arguments.length>2?arguments[2]:void 0)}});A(I,"ArrayBuffer"),A(M,"DataView"),t.exports={ArrayBuffer:I,DataView:M}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(0),i=n(26),o=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},function(t,e,n){var r=n(0),i=n(20),o=n(21),s=r.RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=o(e);if(e!==n)throw s("Wrong length or index");return n}},function(t,e,n){"use strict";var r=n(15),i=n(27),o=n(17);t.exports=function(t){for(var e=r(this),n=o(e),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>a;)e[a++]=t;return e}},function(t,e,n){var r=n(0),i=n(151),o=r.RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw o("Wrong offset");return n}},function(t,e,n){var r=n(33),i=n(37),o=n(41),s=n(5)("iterator");t.exports=function(t){if(null!=t)return i(t,s)||i(t,"@@iterator")||o[r(t)]}},function(t,e,n){var r=n(0),i=n(38),o=n(15),s=n(44),a=n(17),u=r.TypeError,c=function(t){return function(e,n,r,c){i(n);var f=o(e),l=s(f),h=a(f),p=t?h-1:0,v=t?-1:1;if(r<2)for(;;){if(p in l){c=l[p],p+=v;break}if(p+=v,t?p<0:h<=p)throw u("Reduce of empty array with no initial value")}for(;t?p>=0:h>p;p+=v)p in l&&(c=n(c,l[p],p,f));return c}};t.exports={left:c(!1),right:c(!0)}},function(t,e,n){n(7)({target:"Array",stat:!0},{isArray:n(55)})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),i=n(10),o=n(13),s=n(45),a=n(37),u=n(109),c=n(5),f=r.TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||s(t))return t;var n,r=a(t,l);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||s(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},function(t,e,n){var r=n(0),i=n(10),o=n(6),s=n(13),a=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!s(r=i(n,t)))return r;if(o(n=t.valueOf)&&!s(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!s(r=i(n,t)))return r;throw a("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),i=n(6),o=n(63),s=r.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},function(t,e,n){var r=n(25),i=n(2),o=n(40),s=n(81),a=n(9),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?u(e,n(t)):e}},function(t,e,n){var r=n(3),i=n(6),o=/#|\.prototype\./,s=function(t,e){var n=u[a(t)];return n==f||n!=c&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},function(t,e,n){var r=n(8),i=n(12),o=n(9),s=n(14),a=n(84);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=s(e),u=a(e),c=u.length,f=0;c>f;)i.f(t,n=u[f++],r[n]);return t}},function(t,e,n){var r=n(25);t.exports=r("document","documentElement")},function(t,e,n){var r=n(3),i=n(0).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(3),i=n(0).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(2),i=n(20),o=n(18),s=n(24),a=r("".charAt),u=r("".charCodeAt),c=r("".slice),f=function(t){return function(e,n){var r,f,l=o(s(e)),h=i(n),p=l.length;return h<0||h>=p?t?"":void 0:(r=u(l,h))<55296||r>56319||h+1===p||(f=u(l,h+1))<56320||f>57343?t?a(l,h):r:t?c(l,h,h+2):f-56320+(r-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,e,n){var r=n(2),i=n(15),o=Math.floor,s=r("".charAt),a=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,l,h){var p=n+t.length,v=r.length,d=f;return void 0!==l&&(l=i(l),d=c),a(h,d,(function(i,a){var c;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,p);case"<":c=l[u(a,1,-1)];break;default:var f=+a;if(0===f)return i;if(f>v){var h=o(f/10);return 0===h?i:h<=v?void 0===r[h-1]?s(a,1):r[h-1]+s(a,1):i}c=r[f-1]}return void 0===c?"":c}))}},function(t,e,n){var r=n(7),i=n(86);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(t,e,n){var r=n(13),i=n(31),o=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){"use strict";var r=n(10),i=n(67),o=n(9),s=n(21),a=n(18),u=n(24),c=n(37),f=n(68),l=n(69);i("match",(function(t,e,n){return[function(e){var n=u(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](a(n))},function(t){var r=o(this),i=a(t),u=n(e,r,i);if(u.done)return u.value;if(!r.global)return l(r,i);var c=r.unicode;r.lastIndex=0;for(var h,p=[],v=0;null!==(h=l(r,i));){var d=a(h[0]);p[v]=d,""===d&&(r.lastIndex=f(i,s(r.lastIndex),c)),v++}return 0===v?null:p}]}))},function(t,e,n){"use strict";var r=n(7),i=n(0),o=n(55),s=n(73),a=n(13),u=n(27),c=n(17),f=n(14),l=n(89),h=n(5),p=n(74),v=n(23),d=p("slice"),y=h("species"),g=i.Array,m=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var n,r,i,h=f(this),p=c(h),d=u(t,p),x=u(void 0===e?p:e,p);if(o(h)&&(n=h.constructor,(s(n)&&(n===g||o(n.prototype))||a(n)&&null===(n=n[y]))&&(n=void 0),n===g||void 0===n))return v(h,d,x);for(r=new(void 0===n?g:n)(m(x-d,0)),i=0;d<x;d++,i++)d in h&&l(r,i,h[d]);return r.length=i,r}})},function(t,e,n){var r=n(0),i=n(55),o=n(73),s=n(13),a=n(5)("species"),u=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===u||i(e.prototype))||s(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?u:e}},function(t,e,n){"use strict";var r=n(65),i=n(33);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(2),i=n(16),o=Date.prototype,s=r(o.toString),a=r(o.getTime);"Invalid Date"!=String(new Date(NaN))&&i(o,"toString",(function(){var t=a(this);return t==t?s(this):"Invalid Date"}))},function(t,e,n){"use strict";var r=n(2),i=n(39).PROPER,o=n(16),s=n(9),a=n(26),u=n(18),c=n(3),f=n(82),l=RegExp.prototype,h=l.toString,p=r(f),v=c((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),d=i&&"toString"!=h.name;(v||d)&&o(RegExp.prototype,"toString",(function(){var t=s(this),e=u(t.source),n=t.flags;return"/"+e+"/"+u(void 0===n&&a(l,t)&&!("flags"in l)?p(t):n)}),{unsafe:!0})},function(t,e,n){var r=n(7),i=n(3),o=n(14),s=n(35).f,a=n(8),u=i((function(){s(1)}));r({target:"Object",stat:!0,forced:!a||u,sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(o(t),e)}})},function(t,e,n){"use strict";var r=n(7),i=n(0),o=n(25),s=n(34),a=n(10),u=n(2),c=n(49),f=n(8),l=n(59),h=n(3),p=n(11),v=n(55),d=n(6),y=n(13),g=n(26),m=n(45),x=n(9),w=n(15),b=n(14),A=n(36),S=n(18),O=n(30),E=n(28),T=n(84),k=n(40),_=n(129),I=n(81),N=n(35),M=n(12),P=n(75),R=n(23),j=n(16),C=n(48),D=n(51),z=n(52),L=n(50),F=n(5),B=n(93),U=n(130),H=n(56),Y=n(32),W=n(19).forEach,V=D("hidden"),$=F("toPrimitive"),G=Y.set,K=Y.getterFor("Symbol"),X=Object.prototype,q=i.Symbol,J=q&&q.prototype,Z=i.TypeError,Q=i.QObject,tt=o("JSON","stringify"),et=N.f,nt=M.f,rt=_.f,it=P.f,ot=u([].push),st=C("symbols"),at=C("op-symbols"),ut=C("string-to-symbol-registry"),ct=C("symbol-to-string-registry"),ft=C("wks"),lt=!Q||!Q.prototype||!Q.prototype.findChild,ht=f&&h((function(){return 7!=E(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=et(X,e);r&&delete X[e],nt(t,e,n),r&&t!==X&&nt(X,e,r)}:nt,pt=function(t,e){var n=st[t]=E(J);return G(n,{type:"Symbol",tag:t,description:e}),f||(n.description=e),n},vt=function(t,e,n){t===X&&vt(at,e,n),x(t);var r=A(e);return x(n),p(st,r)?(n.enumerable?(p(t,V)&&t[V][r]&&(t[V][r]=!1),n=E(n,{enumerable:O(0,!1)})):(p(t,V)||nt(t,V,O(1,{})),t[V][r]=!0),ht(t,r,n)):nt(t,r,n)},dt=function(t,e){x(t);var n=b(e),r=T(n).concat(xt(n));return W(r,(function(e){f&&!a(yt,n,e)||vt(t,e,n[e])})),t},yt=function(t){var e=A(t),n=a(it,this,e);return!(this===X&&p(st,e)&&!p(at,e))&&(!(n||!p(this,e)||!p(st,e)||p(this,V)&&this[V][e])||n)},gt=function(t,e){var n=b(t),r=A(e);if(n!==X||!p(st,r)||p(at,r)){var i=et(n,r);return!i||!p(st,r)||p(n,V)&&n[V][r]||(i.enumerable=!0),i}},mt=function(t){var e=rt(b(t)),n=[];return W(e,(function(t){p(st,t)||p(z,t)||ot(n,t)})),n},xt=function(t){var e=t===X,n=rt(e?at:b(t)),r=[];return W(n,(function(t){!p(st,t)||e&&!p(X,t)||ot(r,st[t])})),r};(l||(j(J=(q=function(){if(g(J,this))throw Z("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?S(arguments[0]):void 0,e=L(t),n=function(t){this===X&&a(n,at,t),p(this,V)&&p(this[V],e)&&(this[V][e]=!1),ht(this,e,O(1,t))};return f&<&&ht(X,e,{configurable:!0,set:n}),pt(e,t)}).prototype,"toString",(function(){return K(this).tag})),j(q,"withoutSetter",(function(t){return pt(L(t),t)})),P.f=yt,M.f=vt,N.f=gt,k.f=_.f=mt,I.f=xt,B.f=function(t){return pt(F(t),t)},f&&(nt(J,"description",{configurable:!0,get:function(){return K(this).description}}),c||j(X,"propertyIsEnumerable",yt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),W(T(ft),(function(t){U(t)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=S(t);if(p(ut,e))return ut[e];var n=q(e);return ut[e]=n,ct[n]=e,n},keyFor:function(t){if(!m(t))throw Z(t+" is not a symbol");if(p(ct,t))return ct[t]},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!f},{create:function(t,e){return void 0===e?E(t):dt(E(t),e)},defineProperty:vt,defineProperties:dt,getOwnPropertyDescriptor:gt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:mt,getOwnPropertySymbols:xt}),r({target:"Object",stat:!0,forced:h((function(){I.f(1)}))},{getOwnPropertySymbols:function(t){return I.f(w(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!l||h((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,n){var r=R(arguments),i=e;if((y(e)||void 0!==t)&&!m(t))return v(e)||(e=function(t,e){if(d(i)&&(e=a(i,this,t,e)),!m(e))return e}),r[1]=e,s(tt,null,r)}});if(!J[$]){var wt=J.valueOf;j(J,$,(function(t){return a(wt,this)}))}H(q,"Symbol"),z[V]=!0},function(t,e,n){var r=n(31),i=n(14),o=n(40).f,s=n(23),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==r(t)?function(t){try{return o(t)}catch(t){return s(a)}}(t):o(i(t))}},function(t,e,n){var r=n(131),i=n(11),o=n(93),s=n(12).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||s(e,t,{value:o.f(t)})}},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){"use strict";var r=n(7),i=n(8),o=n(0),s=n(2),a=n(11),u=n(6),c=n(26),f=n(18),l=n(12).f,h=n(79),p=o.Symbol,v=p&&p.prototype;if(i&&u(p)&&(!("description"in v)||void 0!==p().description)){var d={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=c(v,this)?new p(t):void 0===t?p():p(t);return""===t&&(d[e]=!0),e};h(y,p),y.prototype=v,v.constructor=y;var g="Symbol(test)"==String(p("test")),m=s(v.toString),x=s(v.valueOf),w=/^Symbol\((.*)\)[^)]+$/,b=s("".replace),A=s("".slice);l(v,"description",{configurable:!0,get:function(){var t=x(this),e=m(t);if(a(d,t))return"";var n=g?A(e,7,-1):b(e,w,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:y})}},function(t,e,n){"use strict";var r=n(7),i=n(19).map;r({target:"Array",proto:!0,forced:!n(74)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(7),i=n(135);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(0),i=n(3),o=n(2),s=n(18),a=n(136).trim,u=n(95),c=o("".charAt),f=r.parseFloat,l=r.Symbol,h=l&&l.iterator,p=1/f(u+"-0")!=-1/0||h&&!i((function(){f(Object(h))}));t.exports=p?function(t){var e=a(s(t)),n=f(e);return 0===n&&"-"==c(e,0)?-0:n}:f},function(t,e,n){var r=n(2),i=n(24),o=n(18),s=n(95),a=r("".replace),u="["+s+"]",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t){return function(e){var n=o(i(e));return 1&t&&(n=a(n,c,"")),2&t&&(n=a(n,f,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},function(t,e,n){n(7)({target:"Object",stat:!0,sham:!n(8)},{create:n(28)})},function(t,e,n){var r=n(5),i=n(28),o=n(12),s=r("unscopables"),a=Array.prototype;null==a[s]&&o.f(a,s,{configurable:!0,value:i(null)}),t.exports=function(t){a[s][t]=!0}},function(t,e,n){"use strict";var r=n(7),i=n(10),o=n(49),s=n(39),a=n(6),u=n(140),c=n(57),f=n(42),l=n(56),h=n(22),p=n(16),v=n(5),d=n(41),y=n(97),g=s.PROPER,m=s.CONFIGURABLE,x=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,b=v("iterator"),A=function(){return this};t.exports=function(t,e,n,s,v,y,S){u(n,e,s);var O,E,T,k=function(t){if(t===v&&P)return P;if(!w&&t in N)return N[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",I=!1,N=t.prototype,M=N[b]||N["@@iterator"]||v&&N[v],P=!w&&M||k(v),R="Array"==e&&N.entries||M;if(R&&(O=c(R.call(new t)))!==Object.prototype&&O.next&&(o||c(O)===x||(f?f(O,x):a(O[b])||p(O,b,A)),l(O,_,!0,!0),o&&(d[_]=A)),g&&"values"==v&&M&&"values"!==M.name&&(!o&&m?h(N,"name","values"):(I=!0,P=function(){return i(M,this)})),v)if(E={values:k("values"),keys:y?P:k("keys"),entries:k("entries")},S)for(T in E)(w||I||!(T in N))&&p(N,T,E[T]);else r({target:e,proto:!0,forced:w||I},E);return o&&!S||N[b]===P||p(N,b,P,{name:v}),d[e]=P,E}},function(t,e,n){"use strict";var r=n(97).IteratorPrototype,i=n(28),o=n(30),s=n(56),a=n(41),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),s(t,c,!1,!0),a[c]=u,t}},function(t,e,n){var r=n(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(0),i=n(6),o=r.String,s=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw s("Can't set "+o(t)+" as a prototype")}},function(t,e,n){"use strict";var r=n(7),i=n(2),o=n(3),s=n(98),a=n(9),u=n(27),c=n(21),f=n(72),l=s.ArrayBuffer,h=s.DataView,p=h.prototype,v=i(l.prototype.slice),d=i(p.getUint8),y=i(p.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new l(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(v&&void 0===e)return v(a(this),t);for(var n=a(this).byteLength,r=u(t,n),i=u(void 0===e?n:e,n),o=new(f(this,l))(c(i-r)),s=new h(this),p=new h(o),g=0;r<i;)y(p,g++,d(s,r++));return o}})},function(t,e,n){var r=n(16);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(0).Array,i=Math.abs,o=Math.pow,s=Math.floor,a=Math.log,u=Math.LN2;t.exports={pack:function(t,e,n){var c,f,l,h=r(n),p=8*n-e-1,v=(1<<p)-1,d=v>>1,y=23===e?o(2,-24)-o(2,-77):0,g=t<0||0===t&&1/t<0?1:0,m=0;for((t=i(t))!=t||t===1/0?(f=t!=t?1:0,c=v):(c=s(a(t)/u),t*(l=o(2,-c))<1&&(c--,l*=2),(t+=c+d>=1?y/l:y*o(2,1-d))*l>=2&&(c++,l/=2),c+d>=v?(f=0,c=v):c+d>=1?(f=(t*l-1)*o(2,e),c+=d):(f=t*o(2,d-1)*o(2,e),c=0));e>=8;h[m++]=255&f,f/=256,e-=8);for(c=c<<e|f,p+=e;p>0;h[m++]=255&c,c/=256,p-=8);return h[--m]|=128*g,h},unpack:function(t,e){var n,r=t.length,i=8*r-e-1,s=(1<<i)-1,a=s>>1,u=i-7,c=r-1,f=t[c--],l=127&f;for(f>>=7;u>0;l=256*l+t[c],c--,u-=8);for(n=l&(1<<-u)-1,l>>=-u,u+=e;u>0;n=256*n+t[c],c--,u-=8);if(0===l)l=1-a;else{if(l===s)return n?NaN:f?-1/0:1/0;n+=o(2,e),l-=a}return(f?-1:1)*n*o(2,l-e)}}},function(t,e,n){n(147)("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(7),i=n(0),o=n(10),s=n(8),a=n(148),u=n(4),c=n(98),f=n(100),l=n(30),h=n(22),p=n(150),v=n(21),d=n(101),y=n(103),g=n(36),m=n(11),x=n(33),w=n(13),b=n(45),A=n(28),S=n(26),O=n(42),E=n(40).f,T=n(152),k=n(19).forEach,_=n(155),I=n(12),N=n(35),M=n(32),P=n(156),R=M.get,j=M.set,C=I.f,D=N.f,z=Math.round,L=i.RangeError,F=c.ArrayBuffer,B=F.prototype,U=c.DataView,H=u.NATIVE_ARRAY_BUFFER_VIEWS,Y=u.TYPED_ARRAY_CONSTRUCTOR,W=u.TYPED_ARRAY_TAG,V=u.TypedArray,$=u.TypedArrayPrototype,G=u.aTypedArrayConstructor,K=u.isTypedArray,X=function(t,e){G(t);for(var n=0,r=e.length,i=new t(r);r>n;)i[n]=e[n++];return i},q=function(t,e){C(t,e,{get:function(){return R(this)[e]}})},J=function(t){var e;return S(B,t)||"ArrayBuffer"==(e=x(t))||"SharedArrayBuffer"==e},Z=function(t,e){return K(t)&&!b(e)&&e in t&&p(+e)&&e>=0},Q=function(t,e){return e=g(e),Z(t,e)?l(2,t[e]):D(t,e)},tt=function(t,e,n){return e=g(e),!(Z(t,e)&&w(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?C(t,e,n):(t[e]=n.value,t)};s?(H||(N.f=Q,I.f=tt,q($,"buffer"),q($,"byteOffset"),q($,"byteLength"),q($,"length")),r({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:Q,defineProperty:tt}),t.exports=function(t,e,n){var s=t.match(/\d+$/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,l="set"+t,p=i[u],g=p,m=g&&g.prototype,x={},b=function(t,e){C(t,e,{get:function(){return function(t,e){var n=R(t);return n.view[c](e*s+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=R(t);n&&(r=(r=z(r))<0?0:r>255?255:255&r),i.view[l](e*s+i.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};H?a&&(g=e((function(t,e,n,r){return f(t,m),P(w(e)?J(e)?void 0!==r?new p(e,y(n,s),r):void 0!==n?new p(e,y(n,s)):new p(e):K(e)?X(g,e):o(T,g,e):new p(d(e)),t,g)})),O&&O(g,V),k(E(p),(function(t){t in g||h(g,t,p[t])})),g.prototype=m):(g=e((function(t,e,n,r){f(t,m);var i,a,u,c=0,l=0;if(w(e)){if(!J(e))return K(e)?X(g,e):o(T,g,e);i=e,l=y(n,s);var h=e.byteLength;if(void 0===r){if(h%s)throw L("Wrong length");if((a=h-l)<0)throw L("Wrong length")}else if((a=v(r)*s)+l>h)throw L("Wrong length");u=a/s}else u=d(e),i=new F(a=u*s);for(j(t,{buffer:i,byteOffset:l,byteLength:a,length:u,view:new U(i)});c<u;)b(t,c++)})),O&&O(g,V),m=g.prototype=A($)),m.constructor!==g&&h(m,"constructor",g),h(m,Y,g),W&&h(m,W,u),x[u]=g,r({global:!0,forced:g!=p,sham:!H},x),"BYTES_PER_ELEMENT"in g||h(g,"BYTES_PER_ELEMENT",s),"BYTES_PER_ELEMENT"in m||h(m,"BYTES_PER_ELEMENT",s),_(u)}):t.exports=function(){}},function(t,e,n){var r=n(0),i=n(3),o=n(149),s=n(4).NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,u=r.Int8Array;t.exports=!s||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new a(2),1,void 0).length}))},function(t,e,n){var r=n(5)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},function(t,e,n){var r=n(13),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){var r=n(0),i=n(20),o=r.RangeError;t.exports=function(t){var e=i(t);if(e<0)throw o("The argument can't be less than 0");return e}},function(t,e,n){var r=n(94),i=n(10),o=n(88),s=n(15),a=n(17),u=n(153),c=n(104),f=n(154),l=n(4).aTypedArrayConstructor;t.exports=function(t){var e,n,h,p,v,d,y=o(this),g=s(t),m=arguments.length,x=m>1?arguments[1]:void 0,w=void 0!==x,b=c(g);if(b&&!f(b))for(d=(v=u(g,b)).next,g=[];!(p=i(d,v)).done;)g.push(p.value);for(w&&m>2&&(x=r(x,arguments[2])),n=a(g),h=new(l(y))(n),e=0;n>e;e++)h[e]=w?x(g[e],e):g[e];return h}},function(t,e,n){var r=n(0),i=n(10),o=n(38),s=n(9),a=n(47),u=n(104),c=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(o(n))return s(i(n,t));throw c(a(t)+" is not iterable")}},function(t,e,n){var r=n(5),i=n(41),o=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[o]===t)}},function(t,e,n){"use strict";var r=n(25),i=n(12),o=n(5),s=n(8),a=o("species");t.exports=function(t){var e=r(t),n=i.f;s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(6),i=n(13),o=n(42);t.exports=function(t,e,n){var s,a;return o&&r(s=e.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},function(t,e,n){"use strict";var r=n(2),i=n(4),o=r(n(158)),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return o(s(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(15),i=n(27),o=n(17),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),a=o(n),u=i(t,a),c=i(e,a),f=arguments.length>2?arguments[2]:void 0,l=s((void 0===f?a:i(f,a))-c,a-u),h=1;for(c<u&&u<c+l&&(h=-1,c+=l-1,u+=l-1);l-- >0;)c in n?n[u]=n[c]:delete n[u],u+=h,c+=h;return n}},function(t,e,n){"use strict";var r=n(4),i=n(19).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(10),o=n(102),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(t){var e=arguments.length;return i(o,s(this),t,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(19).filter,o=n(162),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(s(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},function(t,e,n){var r=n(163),i=n(58);t.exports=function(t,e){return r(i(t),e)}},function(t,e){t.exports=function(t,e){for(var n=0,r=e.length,i=new t(r);r>n;)i[n]=e[n++];return i}},function(t,e,n){"use strict";var r=n(4),i=n(19).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(19).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(19).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(53).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(53).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(39).PROPER,s=n(4),a=n(96),u=n(5)("iterator"),c=r.Uint8Array,f=i(a.values),l=i(a.keys),h=i(a.entries),p=s.aTypedArray,v=s.exportTypedArrayMethod,d=c&&c.prototype[u],y=!!d&&"values"===d.name,g=function(){return f(p(this))};v("entries",(function(){return h(p(this))})),v("keys",(function(){return l(p(this))})),v("values",g,o&&!y),v(u,g,o&&!y)},function(t,e,n){"use strict";var r=n(4),i=n(2),o=r.aTypedArray,s=r.exportTypedArrayMethod,a=i([].join);s("join",(function(t){return a(o(this),t)}))},function(t,e,n){"use strict";var r=n(4),i=n(34),o=n(86),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(o,s(this),e>1?[t,arguments[1]]:[t])}))},function(t,e,n){"use strict";var r=n(4),i=n(19).map,o=n(58),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return i(s(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},function(t,e,n){"use strict";var r=n(4),i=n(105).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(105).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=r.aTypedArray,o=r.exportTypedArrayMethod,s=Math.floor;o("reverse",(function(){for(var t,e=i(this).length,n=s(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this}))},function(t,e,n){"use strict";var r=n(0),i=n(4),o=n(17),s=n(103),a=n(15),u=n(3),c=r.RangeError,f=i.aTypedArray;(0,i.exportTypedArrayMethod)("set",(function(t){f(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=a(t),i=o(r),u=0;if(i+e>n)throw c("Wrong length");for(;u<i;)this[e+u]=r[u++]}),u((function(){new Int8Array(1).set({})})))},function(t,e,n){"use strict";var r=n(4),i=n(58),o=n(3),s=n(23),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(t,e){for(var n=s(a(this),t,e),r=i(this),o=0,u=n.length,c=new r(u);u>o;)c[o]=n[o++];return c}),o((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var r=n(4),i=n(19).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(3),s=n(38),a=n(180),u=n(4),c=n(181),f=n(182),l=n(60),h=n(183),p=r.Array,v=u.aTypedArray,d=u.exportTypedArrayMethod,y=r.Uint16Array,g=y&&i(y.prototype.sort),m=!(!g||o((function(){g(new y(2),null)}))&&o((function(){g(new y(2),{})}))),x=!!g&&!o((function(){if(l)return l<74;if(c)return c<67;if(f)return!0;if(h)return h<602;var t,e,n=new y(516),r=p(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(g(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));d("sort",(function(t){return void 0!==t&&s(t),x?g(this,t):a(v(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!x||m)},function(t,e,n){var r=n(23),i=Math.floor,o=function(t,e){var n=t.length,u=i(n/2);return n<8?s(t,e):a(t,o(r(t,0,u),e),o(r(t,u),e),e)},s=function(t,e){for(var n,r,i=t.length,o=1;o<i;){for(r=o,n=t[o];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},a=function(t,e,n,r){for(var i=e.length,o=n.length,s=0,a=0;s<i||a<o;)t[s+a]=s<i&&a<o?r(e[s],n[a])<=0?e[s++]:n[a++]:s<i?e[s++]:n[a++];return t};t.exports=o},function(t,e,n){var r=n(46).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,e,n){var r=n(46);t.exports=/MSIE|Trident/.test(r)},function(t,e,n){var r=n(46).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,e,n){"use strict";var r=n(4),i=n(21),o=n(27),s=n(58),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(t,e){var n=a(this),r=n.length,u=o(t,r);return new(s(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===e?r:o(e,r))-u))}))},function(t,e,n){"use strict";var r=n(0),i=n(34),o=n(4),s=n(3),a=n(23),u=r.Int8Array,c=o.aTypedArray,f=o.exportTypedArrayMethod,l=[].toLocaleString,h=!!u&&s((function(){l.call(new u(1))}));f("toLocaleString",(function(){return i(l,h?a(c(this)):c(this),a(arguments))}),s((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!s((function(){u.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";var r=n(4).exportTypedArrayMethod,i=n(3),o=n(0),s=n(2),a=o.Uint8Array,u=a&&a.prototype||{},c=[].toString,f=s([].join);i((function(){c.call({})}))&&(c=function(){return f(this)});var l=u.toString!=c;r("toString",c,l)},function(t,e,n){"use strict";n.r(e),n.d(e,"factory",(function(){return B}));n(43),n(66),n(85),n(29);var r=n(1);n(71),n(119),n(87),n(121),n(122),n(90);function i(){var t,e,n,r=(e=navigator.userAgent,n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(n[1])?"IE "+((t=/\brv[ :]+(\d+)/g.exec(e)||[])[1]||""):"Chrome"===n[1]&&null!==(t=e.match(/\b(OPR|Edge)\/(\d+)/))?t.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(t=e.match(/version\/(\d+)/i))&&n.splice(1,1,t[1]),n.join(" ")));return"IE 11"==r||"MSIE"===r.substring(0,4)}n(92),n(125),n(126);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=function(){function t(e,n,r,i,o,s,a,u){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.containerid=e,this.svgid=n,this.clsName=r,this.position=i,this.zoomHandler=o,this.selectionHandler=s,this.saveaspng=a&&"function"==typeof saveSvgAsPng,this.pngname=u}var e,n,i;return e=t,(n=[{key:"init",value:function(){if(!(this.zoomHandler||this.selectionHandler||this.saveaspng))return!1;var t=r.select("#"+this.containerid+" .girafe_container_std").append("div").classed(this.clsName,!0).classed(this.clsName+"-"+this.position,!0),e=this;if(this.selectionHandler){var n=t.append("xhtml:div").classed(this.clsName+"-block",!0).classed("shinyonly",!0);n.append("xhtml:a").classed(this.clsName+"-icon",!0).classed("neutral",!0).attr("title","lasso selection").on("click",(function(){e.selectionHandler.lasso(!0)})).html(a.lasso_on),n.append("xhtml:a").classed(this.clsName+"-icon",!0).classed("drop",!0).attr("title","lasso deselection").on("click",(function(){e.selectionHandler.lasso(!1)})).html(a.lasso_off)}if(this.zoomHandler){var i=t.append("xhtml:div").classed(this.clsName+"-block",!0);i.append("xhtml:a").classed(this.clsName+"-icon",!0).classed("neutral",!0).attr("title","pan-zoom reset").on("click",(function(){e.zoomHandler.zoomIdentity()})).html(a.pan_zoom_reset),i.append("xhtml:a").classed(this.clsName+"-icon",!0).classed("neutral",!0).attr("title","activate pan-zoom").on("click",(function(){e.zoomHandler.zoomOn()})).html(a.zoom_on),i.append("xhtml:a").classed(this.clsName+"-icon",!0).classed("drop",!0).attr("title","deactivate pan-zoom").on("click",(function(){e.zoomHandler.zoomOff()})).html(a.zoom_off)}this.saveaspng&&t.append("xhtml:div").classed(this.clsName+"-block",!0).append("xhtml:a").classed(this.clsName+"-icon",!0).classed("neutral",!0).attr("title","download png").on("click",(function(){"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?saveSvgAsPng(document.getElementById(e.svgid),e.pngname+".png",{encoderOptions:1}):console.error("This navigator does not support Promises")})).html(a.save_as_png);var o=r.select("#"+this.containerid).node();return o.addEventListener("mouseover",this),o.addEventListener("mouseout",this),!0}},{key:"destroy",value:function(){var t=r.select("#"+this.containerid),e=t.select("."+this.clsName);try{t.node().removeEventListener("mouseover",this),t.node().removeEventListener("mouseout",this)}catch(t){console.error(t)}try{e.selectAll("."+this.clsName+"-icon").on("click",null)}catch(t){console.error(t)}e.remove()}},{key:"handleEvent",value:function(t){try{var e=r.select("#"+this.containerid).select("."+this.clsName);"mouseover"==t.type?e.transition().duration(200).style("opacity",.8):"mouseout"==t.type&&e.transition().duration(500).style("opacity",0)}catch(t){console.error(t)}}}])&&o(e.prototype,n),i&&o(e,i),t}(),a={lasso_on:"<svg xmlns='http://www.w3.org/2000/svg' width='15pt' height='15pt' viewBox='0 0 230 230'><g><ellipse ry='65.5' rx='86.5' cy='94' cx='115.5' stroke-width='20' fill='transparent'/><ellipse ry='11.500001' rx='10.5' cy='153' cx='91.5' stroke-width='20' fill='transparent'/><line y2='210.5' x2='105' y1='164.5' x1='96' stroke-width='20'/></g></svg>",lasso_off:"<svg xmlns='http://www.w3.org/2000/svg' width='15pt' height='15pt' viewBox='0 0 230 230'><g><ellipse ry='65.5' rx='86.5' cy='94' cx='115.5' stroke-width='20' fill='transparent'/><ellipse ry='11.500001' rx='10.5' cy='153' cx='91.5' stroke-width='20' fill='transparent'/><line y2='210.5' x2='105' y1='164.5' x1='96' stroke-width='20'/></g></svg>",pan_zoom_reset:"<svg xmlns='http://www.w3.org/2000/svg' width='15pt' height='15pt' viewBox='0 0 512 512'><g><polygon points='274,209.7 337.9,145.9 288,96 416,96 416,224 366.1,174.1 302.3,238 '/><polygon points='274,302.3 337.9,366.1 288,416 416,416 416,288 366.1,337.9 302.3,274'/><polygon points='238,302.3 174.1,366.1 224,416 96,416 96,288 145.9,337.9 209.7,274'/><polygon points='238,209.7 174.1,145.9 224,96 96,96 96,224 145.9,174.1 209.7,238'/></g></svg>",zoom_on:"<svg xmlns='http://www.w3.org/2000/svg' width='15pt' height='15pt' viewBox='0 0 512 512'><g><ellipse ry='150' rx='150' cy='213' cx='203.5' stroke-width='50' fill='transparent'/><line y2='455.5' x2='416' y1='331.5' x1='301' stroke-width='50'/></g></svg>",zoom_off:"<svg xmlns='http://www.w3.org/2000/svg' width='15pt' height='15pt' viewBox='0 0 512 512'><g><ellipse ry='150' rx='150' cy='213' cx='203.5' stroke-width='50' fill='transparent'/><line y2='455.5' x2='416' y1='331.5' x1='301' stroke-width='50'/><line y2='455' x2='0' y1='0' x1='416' stroke-width='30'/></g></svg>",save_as_png:"<svg xmlns='http://www.w3.org/2000/svg' width='15pt' height='15pt' viewBox='0 0 512 512'><g><polygon points='95 275 95 415 415 415 415 275 375 275 375 380 135 380 135 275'/><polygon points='220 30 220 250 150 175 150 245 250 345 350 245 350 175 280 250 280 30'/></g></svg>"};function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=function(){function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.containerid=e,this.svgid=n,this.min=r,this.max=i,this.zoomer=null}var e,n,i;return e=t,(n=[{key:"init",value:function(){return!(1===this.min&&this.max<=1||(this.zoomer=r.zoom().scaleExtent([this.min,this.max]),0))}},{key:"destroy",value:function(){this.zoomOff(),this.zoomer=null}},{key:"zoomOn",value:function(){var t=this.svgid;r.select("#"+this.containerid).call(this.zoomer.on("zoom",(function(){r.select("#"+t+" > g").attr("transform",r.event.transform)})))}},{key:"zoomIdentity",value:function(){r.select("#"+this.containerid).call(this.zoomer.transform,r.zoomIdentity)}},{key:"zoomOff",value:function(){r.select("#"+this.containerid).call(this.zoomer.on("zoom",null))}}])&&u(e.prototype,n),i&&u(e,i),t}();n(127),n(128),n(132),n(133),n(134),n(137),n(96),n(143),n(146),n(157),n(159),n(160),n(161),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(184),n(185),n(186);function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t){var e=t.ownerDocument,n=e.documentElement,r=e.defaultView;return new window.DOMRect(r.pageXOffset||n.scrollLeft||0,r.pageYOffset||n.scrollTop||0,Math.max(n.clientWidth||0,r.innerWidth||0),Math.max(n.clientHeight||0,r.innerHeight||0))}function v(t){for(var e=new window.DOMMatrix,n=e,r=t,i=t.ownerDocument.defaultView||window,o=p(t);null!=r&&r!==r.ownerDocument.documentElement;){var s=i.getComputedStyle(r,void 0).transform||"none";n=("none"===s?e:new window.DOMMatrix(s)).multiply(n),r=r.parentNode}var a=t.offsetWidth,u=t.offsetHeight,c=new window.DOMPoint(0,0).matrixTransform(n),f=new window.DOMPoint(a,0).matrixTransform(n),l=new window.DOMPoint(a,u).matrixTransform(n),h=new window.DOMPoint(0,u).matrixTransform(n),v=Math.min(c.x,f.x,l.x,h.x),d=Math.min(c.y,f.y,l.y,h.y),y=t.getBoundingClientRect();return n=e.translate(o.x+y.left-v,o.y+y.top-d,0).multiply(n)}window.DOMPoint=window.DOMPoint||function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;h(this,t),this.x=e,this.y=n,this.z=r,this.w=i},window.DOMPoint.prototype.matrixTransform=window.DOMPoint.prototype.matrixTransform||function(t){return(t.is2D||t instanceof SVGMatrix)&&0===this.z&&1===this.w?new DOMPoint(this.x*t.a+this.y*t.c+t.e,this.x*t.b+this.y*t.d+t.f,0,1):new DOMPoint(this.x*t.m11+this.y*t.m21+this.z*t.m31+this.w*t.m41,this.x*t.m12+this.y*t.m22+this.z*t.m32+this.w*t.m42,this.x*t.m13+this.y*t.m23+this.z*t.m33+this.w*t.m43,this.x*t.m14+this.y*t.m24+this.z*t.m34+this.w*t.m44)};for(var d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;h(this,t),this.x=e,this.y=n,this.width=r,this.height=i}return l(t,[{key:"top",get:function(){return this.y}},{key:"left",get:function(){return this.x}},{key:"right",get:function(){return this.x+this.width}},{key:"bottom",get:function(){return this.y+this.height}}]),t}(),y=0,g=["top","right","bottom","left"];y<g.length;y++){var m=g[y],x=Object.getOwnPropertyDescriptor(d.prototype,m);x.enumerable=!0,Object.defineProperty(d.prototype,m,x)}window.DOMRect=window.DOMRect||d;for(var w=Symbol(),b=Symbol(),A=function(t){var e=t.split(/\(/,1)[0];if("matrix"===e)return function(t){var e=t.replace(/matrix\(/,"");if(6!==(e=e.split(/,/,7)).length)throw new Error("Failed to parse ".concat(t));return[(e=e.map(parseFloat))[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}(t);if("matrix3d"===e)return function(t){var e=t.replace(/matrix3d\(/,"");if(16!==(e=e.split(/,/,17)).length)throw new Error("Failed to parse ".concat(t));return e.map(parseFloat)}(t);throw new Error("".concat(e," parsing not implemented"))},S=function(t,e,n){if("number"!=typeof n)throw new TypeError("Expected number");t[w][e]=n},O=function(t,e,n){if("number"!=typeof n)throw new TypeError("Expected number");10===e||15===e?1!==n&&(t[b]=!1):0!==n&&(t[b]=!1),t[w][e]=n},E=function(t){var e=Object.create(k.prototype);return e.constructor=k,e[b]=!0,e[w]=t,e},T=function(t,e){for(var n=new Float64Array(16),r=0;r<4;r++)for(var i=0;i<4;i++){for(var o=0,s=0;s<4;s++)o+=t[4*r+s]*e[4*s+i];n[4*r+i]=o}return n},k=function(){function t(e){if(h(this,t),this[b]=!0,this[w]=new Float64Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),"string"==typeof e){if(""===e)return;var n=e.split(/\)\s+/,20).map(A);if(0===n.length)return;e=n[0];for(var r=1;r<n.length;r++)e=T(n[r],e)}var i=0;if(e&&6===e.length)S(this,0,e[i++]),S(this,1,e[i++]),S(this,4,e[i++]),S(this,5,e[i++]),S(this,12,e[i++]),S(this,13,e[i++]);else if(e&&16===e.length)S(this,0,e[i++]),S(this,1,e[i++]),O(this,2,e[i++]),O(this,3,e[i++]),S(this,4,e[i++]),S(this,5,e[i++]),O(this,6,e[i++]),O(this,7,e[i++]),O(this,8,e[i++]),O(this,9,e[i++]),O(this,10,e[i++]),O(this,11,e[i++]),S(this,12,e[i++]),S(this,13,e[i++]),O(this,14,e[i++]),O(this,15,e[i]);else if(void 0!==e)throw new TypeError("Expected string or array.")}return l(t,[{key:"m11",get:function(){return this[w][0]},set:function(t){S(this,0,t)}},{key:"m12",get:function(){return this[w][1]},set:function(t){S(this,1,t)}},{key:"m13",get:function(){return this[w][2]},set:function(t){O(this,2,t)}},{key:"m14",get:function(){return this[w][3]},set:function(t){O(this,3,t)}},{key:"m21",get:function(){return this[w][4]},set:function(t){S(this,4,t)}},{key:"m22",get:function(){return this[w][5]},set:function(t){S(this,5,t)}},{key:"m23",get:function(){return this[w][6]},set:function(t){O(this,6,t)}},{key:"m24",get:function(){return this[w][7]},set:function(t){O(this,7,t)}},{key:"m31",get:function(){return this[w][8]},set:function(t){O(this,8,t)}},{key:"m32",get:function(){return this[w][9]},set:function(t){O(this,9,t)}},{key:"m33",get:function(){return this[w][10]},set:function(t){O(this,10,t)}},{key:"m34",get:function(){return this[w][11]},set:function(t){O(this,11,t)}},{key:"m41",get:function(){return this[w][12]},set:function(t){S(this,12,t)}},{key:"m42",get:function(){return this[w][13]},set:function(t){S(this,13,t)}},{key:"m43",get:function(){return this[w][14]},set:function(t){O(this,14,t)}},{key:"m44",get:function(){return this[w][15]},set:function(t){O(this,15,t)}},{key:"a",get:function(){return this[w][0]},set:function(t){S(this,0,t)}},{key:"b",get:function(){return this[w][1]},set:function(t){S(this,1,t)}},{key:"c",get:function(){return this[w][4]},set:function(t){S(this,4,t)}},{key:"d",get:function(){return this[w][5]},set:function(t){S(this,5,t)}},{key:"e",get:function(){return this[w][12]},set:function(t){S(this,12,t)}},{key:"f",get:function(){return this[w][13]},set:function(t){S(this,13,t)}},{key:"is2D",get:function(){return this[b]}},{key:"isIdentity",get:function(){var t=this[w];return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&1===t[15]}},{key:"multiply",value:function(t){return E(this[w]).multiplySelf(t)}},{key:"multiplySelf",value:function(t){return this[w]=T(t[w],this[w]),t.is2D||(this[b]=!1),this}},{key:"translate",value:function(t,e,n){return E(this[w]).translateSelf(t,e,n)}},{key:"translateSelf",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this[w]=T([1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1],this[w]),0!==n&&(this[b]=!1),this}},{key:"scale",value:function(t,e,n,r,i,o){return E(this[w]).scaleSelf(t,e,n,r,i,o)}},{key:"scale3d",value:function(t,e,n,r){return E(this[w]).scale3dSelf(t,e,n,r)}},{key:"scale3dSelf",value:function(t,e,n,r){return this.scaleSelf(t,t,t,e,n,r)}},{key:"scaleSelf",value:function(t,e,n,r,i,o){return"number"!=typeof r&&(r=0),"number"!=typeof i&&(i=0),"number"!=typeof o&&(o=0),this.translateSelf(r,i,o),"number"!=typeof t&&(t=1),"number"!=typeof e&&(e=t),"number"!=typeof n&&(n=1),this[w]=T([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1],this[w]),this.translateSelf(-r,-i,-o),1===n&&0===o||(this[b]=!1),this}},{key:"inverse",value:function(){return E(this[w]).invertSelf()}},{key:"invertSelf",value:function(){if(!this[b])throw new Error("3D matrix inversion is not implemented.");var e=this[w][0]*this[w][5]-this[w][1]*this[w][4];if(0!==e){var n=new t;return n.a=this[w][5]/e,n.b=-this[w][1]/e,n.c=-this[w][4]/e,n.d=this[w][0]/e,n.e=(this[w][4]*this[w][13]-this[w][5]*this[w][12])/e,n.f=(this[w][1]*this[w][12]-this[w][0]*this[w][13])/e,n}this[b]=!1,this[w]=[NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN]}}]),t}(),_=0,I=["a","b","c","d","e","f","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","is2D","isIdentity"];_<I.length;_++){var N=I[_],M=Object.getOwnPropertyDescriptor(k.prototype,N);M.enumerable=!0,Object.defineProperty(k.prototype,N,M)}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}window.DOMMatrix=window.DOMMatrix||k;var R=function(){function t(e,n,r,i,o,s,a,u,c,f,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svgid=e,this.clsName=n+"_"+this.svgid,this.placement=r,this.opacity=i,this.offx=o,this.offy=s,this.usecursor=a,this.usefill=u,this.usestroke=c,this.delayover=f,this.delayout=l}var e,n,i;return e=t,(n=[{key:"init",value:function(){var t=r.select("#"+this.svgid),e=r.select("#"+this.svgid+" > g").selectAll("*[title]");if(e.empty())return!1;r.select("."+this.clsName).remove(),("doc"==this.placement?r.select("body"):r.select(t.node().parentNode)).append("xhtml:div").classed(this.clsName,!0).style("position","absolute").style("opacity",0),this.decodingTextarea=document.createElementNS("http://www.w3.org/1999/xhtml","textarea");var n=this;return e.each((function(){this.addEventListener("mouseover",n),this.addEventListener("mousemove",n),this.addEventListener("mouseout",n)})),!0}},{key:"destroy",value:function(){var t=this,e=r.select("#"+this.svgid);try{e.select("svg>g").selectAll("*[title]").each((function(){this.removeEventListener("mouseover",t),this.removeEventListener("mousemove",t),this.removeEventListener("mouseout",t)}))}catch(t){console.error(t)}r.select("."+this.clsName).remove()}},{key:"handleEvent",value:function(t){try{var e,n,i=r.select("#"+this.svgid);if(n="svg"==this.placement?i.select("div."+this.clsName):r.select("div."+this.clsName),"mouseover"==t.type){if(this.usefill){var o=t.target.getAttribute("tooltip_fill");o||(o=t.target.getAttribute("fill")),o&&n.style("background-color",o)}this.usestroke&&n.style("border-color",t.target.getAttribute("stroke")),n.html(this.decodeContent(t.target.getAttribute("title"))),e=this.calculatePosition(n,t),n.style("left",e.x+"px").style("top",e.y+"px").transition().duration(this.delayover).style("opacity",this.opacity)}else"mousemove"==t.type?(e=this.calculatePosition(n,t),n.style("left",e.x+"px").style("top",e.y+"px")):"mouseout"==t.type&&n.transition().duration(this.delayout).style("opacity",0)}catch(t){console.error(t)}}},{key:"decodeContent",value:function(t){return this.decodingTextarea.innerHTML=t,this.decodingTextarea.value}},{key:"calculatePosition",value:function(t,e){var n,i,o=r.select("#"+this.svgid).node(),s=t.node(),a=o.parentNode;if(this.usecursor){var u=Math.ceil(s.offsetWidth),c=Math.ceil(s.offsetHeight),f=p(o),l=new window.DOMPoint(f.left,f.top),h=new window.DOMPoint(f.right,f.bottom);n=new window.DOMPoint(e.pageX,e.pageY),"doc"!=this.placement&&(i=v(a).inverse(),n=n.matrixTransform(i),l=l.matrixTransform(i),h=h.matrixTransform(i));var d=h.x-(n.x+this.offx),y=n.x-this.offx-l.x;n.x=d>=u?Math.max(l.x,n.x+this.offx):y>=u?Math.min(h.x-u,n.x-this.offx-u):Math.max(l.x,Math.min(h.x,n.x+u/2)-u);var g=h.y-(n.y+this.offy),m=n.y-this.offy-l.y;n.y=g>=c?Math.max(l.y,n.y+this.offy):m>=c?Math.min(h.y-c,n.y-this.offy-c):Math.max(l.y,Math.min(h.y,n.y+c/2)-c)}else n=new window.DOMPoint(this.offx,this.offy),"doc"==this.placement&&(i=v(a),n=n.matrixTransform(i));return n}}])&&P(e.prototype,n),i&&P(e,i),t}();n(106);function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var C=function(){function t(e,n,r,i,o,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svgid=e,this.clsName=n+"_"+e,this.invClsName=r?r+"_"+e:null,this.attrName=i,this.shinyInputId=o,this.shinyMessageId=s,this.dataHovered=[]}var e,n,i;return e=t,(n=[{key:"init",value:function(){var t=r.select("#"+this.svgid+" > g").selectAll("*["+this.attrName+"]");if(t.empty())return!1;var e=this;return t.each((function(){this.addEventListener("mouseover",e),this.addEventListener("mouseout",e)})),this.shinyMessageId&&Shiny.addCustomMessageHandler(this.shinyMessageId,(function(t){"string"==typeof t?e.setHovered([t]):Array.isArray(t)&&e.setHovered(t)})),!0}},{key:"destroy",value:function(){var t=this;try{r.select("#"+this.svgid+" > g").selectAll("*["+this.attrName+"]").each((function(){this.removeEventListener("mouseover",t),this.removeEventListener("mouseout",t)}))}catch(t){console.error(t)}if(this.shinyMessageId)try{Shiny.addCustomMessageHandler(this.shinyMessageId,(function(t){}))}catch(t){console.error(t)}this.dataHovered=[]}},{key:"handleEvent",value:function(t){try{"mouseover"==t.type?this.setHovered([t.target.getAttribute(this.attrName)]):"mouseout"==t.type&&this.setHovered([])}catch(t){console.error(t)}}},{key:"setHovered",value:function(t){this.dataHovered=t,this.refreshHovered(),this.shinyInputId&&Shiny.onInputChange(this.shinyInputId,this.dataHovered)}},{key:"refreshHovered",value:function(){var t=r.select("#"+this.svgid+" > g");t.selectAll("*["+this.attrName+"]."+this.clsName).classed(this.clsName,!1),this.invClsName&&t.selectAll("*["+this.attrName+"]."+this.invClsName).classed(this.invClsName,!1);for(var e=0;e<this.dataHovered.length;e++)t.selectAll("*["+this.attrName+'="'+this.dataHovered[e]+'"]').classed(this.clsName,!0);this.invClsName&&this.dataHovered.length>0&&t.selectAll("*["+this.attrName+"]:not(."+this.clsName+")").classed(this.invClsName,!0)}}])&&j(e.prototype,n),i&&j(e,i),t}();function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var z=function(){function t(e,n,r,i,o,s,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svgid=e,this.clsName=n+"_"+e,this.attrName=r,this.shinyInputId=i,this.shinyMessageId=o,this.type=s,this.initialSelection=a,this.dataSelected=[]}var e,n,i;return e=t,(n=[{key:"init",value:function(){var t=r.select("#"+this.svgid+" > g").selectAll("*["+this.attrName+"]");if(t.empty()||"single"!=this.type&&"multiple"!=this.type)return!1;var e=this;return t.each((function(){this.addEventListener("click",e)})),this.shinyMessageId&&Shiny.addCustomMessageHandler(this.shinyMessageId,(function(t){"string"==typeof t?e.setSelected([t]):Array.isArray(t)&&e.setSelected(t)})),"string"==typeof this.initialSelection?this.setSelected([this.initialSelection]):Array.isArray(this.initialSelection)&&"multiple"==this.type&&this.setSelected(this.initialSelection),this.initialSelection=null,!0}},{key:"destroy",value:function(){var t=this;try{r.select("#"+this.svgid+" > g").selectAll("*["+this.attrName+"]").each((function(){this.removeEventListener("click",t)}))}catch(t){console.error(t)}if(this.shinyMessageId)try{Shiny.addCustomMessageHandler(this.shinyMessageId,(function(t){}))}catch(t){console.error(t)}this.dataSelected=[]}},{key:"handleEvent",value:function(t){try{var e=this.dataSelected,n=t.target.getAttribute(this.attrName),r=e.indexOf(n);"multiple"==this.type?r<0?e.push(n):e.splice(r,1):e=r<0?[n]:[],this.setSelected(e)}catch(t){console.error(t)}}},{key:"setSelected",value:function(t){this.dataSelected=t,this.refreshSelected(),this.shinyInputId&&Shiny.onInputChange(this.shinyInputId,this.dataSelected)}},{key:"refreshSelected",value:function(){var t=r.select("#"+this.svgid+" > g");t.selectAll("*["+this.attrName+"]."+this.clsName).classed(this.clsName,!1);for(var e=0;e<this.dataSelected.length;e++)t.selectAll("*["+this.attrName+'="'+this.dataSelected[e]+'"]').classed(this.clsName,!0)}},{key:"lasso",value:function(t){var e=r.select("#"+this.svgid+" > g"),n=this,i=r.lasso();try{i=i.closePathSelect(!0).closePathDistance(100).items(e.selectAll("*["+this.attrName+"]")).targetArea(e).on("start",(function(){})).on("draw",(function(){})).on("end",(function(){try{var r=n.dataSelected;i.selectedItems().each((function(e,i){var o=this.getAttribute(n.attrName),s=r.indexOf(o);s<0&&t?r.push(o):s>=0&&!t&&r.splice(s,1)})),e.on(".dragstart",null).on(".drag",null).on(".dragend",null),n.setSelected(r)}catch(t){console.error(t)}})),e.call(i)}catch(t){console.error(t)}}}])&&D(e.prototype,n),i&&D(e,i),t}();function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var F=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.containerid=e,this.svgid=null,this.handlers=[],this.shinyMode=n}var e,n,o;return e=t,(n=[{key:"clear",value:function(){for(var t=0;t<this.handlers.length;t++)this.handlers[t].destroy();this.handlers=[],r.select("#"+this.containerid+" style").remove(),r.select("#"+this.containerid+" div.girafe_container_std").remove()}},{key:"setSvgId",value:function(t){this.svgid=t}},{key:"addStyle",value:function(t){var e=t.join("\n").replace(/SVGID_/g,this.svgid);r.select("#"+this.containerid).append("style").attr("type","text/css").text(e)}},{key:"addSvg",value:function(t,e){r.select("#"+this.containerid).append("div").attr("class","girafe_container_std").html(t),e&&function(t){var e=t.indexOf("{"),n=t.substring(e+1,t.lastIndexOf("}")),r=t.substring(0,e),i=r.substring(r.indexOf("(")+1,r.lastIndexOf(")")).split(",");function o(){return Function.apply(this,i)}return i.push(n),o.prototype=Function.prototype,new o}(e)()}},{key:"IEFixResize",value:function(t,e){i()&&(r.select("#"+this.svgid).classed("girafe_svg_ie",!0),r.select("#"+this.containerid+" div").classed("girafe_container_ie",!0).style("width",Math.round(100*t)+"%").style("padding-bottom",Math.round(t*e*100)+"%"))}},{key:"autoScale",value:function(t){r.select("#"+this.svgid).style("width",t).style("height","100%").style("margin-left","auto").style("margin-right","auto")}},{key:"fixSize",value:function(t,e){r.select("#"+this.svgid).attr("preserveAspectRatio","xMidYMin meet"),r.select("#"+this.containerid+" .girafe_container_std").style("width","100%"),r.select("#"+this.svgid).attr("width",t).attr("height",e),r.select("#"+this.svgid).style("width",t+"px").style("height",e+"px")}},{key:"setSizeLimits",value:function(t,e,n,i){r.select("#"+this.svgid).style("max-width",t).style("max-height",n).style("min-width",e).style("min-height",i)}},{key:"removeContainerLimits",value:function(){i()||r.select("#"+this.containerid).style("width",null).style("height",null)}},{key:"setupTooltip",value:function(t,e,n,r,i,o,s,a,u,c){try{var f=new R(this.svgid,t,e,n,r,i,o,s,a,u,c);f.init()&&this.handlers.push(f)}catch(t){console.error(t)}}},{key:"setupHover",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];try{var r=this.shinyMode&&n.reactive?this.containerid+n.inputSuffix:null,i=this.shinyMode&&n.reactive?this.containerid+n.messageSuffix:null,o=new C(this.svgid,n.classPrefix,n.invClassPrefix,n.attrName,r,i);o.init()&&this.handlers.push(o)}catch(t){console.error(t)}}}},{key:"setupSelection",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];try{if((this.shinyMode||!n.only_shiny)&&("single"==n.type||"multiple"==n.type)){var r=this.shinyMode?this.containerid+n.inputSuffix:null,i=this.shinyMode?this.containerid+n.messageSuffix:null,o=new z(this.svgid,n.classPrefix,n.attrName,r,i,n.type,n.selected);o.init()&&this.handlers.push(o)}}catch(t){console.error(t)}}}},{key:"setupZoom",value:function(t,e){try{var n=new c(this.containerid,this.svgid,t,e);n.init()&&this.handlers.push(n)}catch(t){console.error(t)}}},{key:"setupToolbar",value:function(t,e,n,r){try{for(var i=null,o=null,a=0;a<this.handlers.length;a++){var u=this.handlers[a];u instanceof c?i=u:u instanceof z&&"data-id"==u.attrName&&"multiple"==u.type&&(o=u)}var f=new s(this.containerid,this.svgid,t,e,i,o,n,r);f.init()&&this.handlers.push(f)}catch(t){console.error(t)}}}])&&L(e.prototype,n),o&&L(e,o),t}();function B(t){return function(e,n,r){var i=new F(e.id,t);return{renderValue:function(n){i.clear(),i.setSvgId(n.uid),i.addStyle([n.settings.tooltip.css,n.settings.hoverinv.css,n.settings.hover.css,n.settings.hoverkey.css,n.settings.hovertheme.css,n.settings.capture.css,n.settings.capturekey.css,n.settings.capturetheme.css]),i.addSvg(n.html,n.js);var r=d3.select("#"+i.svgid).property("viewBox").baseVal;n.settings.sizing.rescale?t?(i.autoScale("100%"),i.IEFixResize(1,1/n.ratio),i.setSizeLimits(d3.select(e).style("width"),0,d3.select(e).style("height"),0)):(i.autoScale(Math.round(100*n.settings.sizing.width)+"%"),i.IEFixResize(n.settings.sizing.width,1/n.ratio),i.setSizeLimits("unset","unset","unset","unset"),i.removeContainerLimits()):(i.fixSize(r.width,r.height),d3.select(e).style("width",null).style("height",null)),i.setupHover([{classPrefix:"hover",attrName:"data-id",inputSuffix:"_hovered",messageSuffix:"_hovered_set",reactive:n.settings.hover.reactive,invClassPrefix:n.settings.hoverinv.css.length>0?"hover_inv":null},{classPrefix:"hover_key",attrName:"key-id",inputSuffix:"_key_hovered",messageSuffix:"_key_hovered_set",reactive:n.settings.hoverkey.reactive,invClassPrefix:null},{classPrefix:"hover_theme",attrName:"theme-id",inputSuffix:"_theme_hovered",messageSuffix:"_theme_hovered_set",reactive:n.settings.hovertheme.reactive,invClassPrefix:null}]),i.setupSelection([{classPrefix:"selected",attrName:"data-id",inputSuffix:"_selected",messageSuffix:"_set",type:n.settings.capture.type,only_shiny:n.settings.capture.only_shiny,selected:n.settings.capture.selected},{classPrefix:"selected_key",attrName:"key-id",inputSuffix:"_key_selected",messageSuffix:"_key_set",type:n.settings.capturekey.type,only_shiny:n.settings.capturekey.only_shiny,selected:n.settings.capturekey.selected},{classPrefix:"selected_theme",attrName:"theme-id",inputSuffix:"_theme_selected",messageSuffix:"_theme_set",type:n.settings.capturetheme.type,only_shiny:n.settings.capturetheme.only_shiny,selected:n.settings.capturetheme.selected}]),i.setupZoom(n.settings.zoom.min,n.settings.zoom.max),i.setupToolbar("ggiraph-toolbar",n.settings.toolbar.position,n.settings.toolbar.saveaspng,n.settings.toolbar.pngname),i.setupTooltip("tooltip",n.settings.tooltip.placement,n.settings.tooltip.opacity,n.settings.tooltip.offx,n.settings.tooltip.offy,n.settings.tooltip.use_cursor_pos,n.settings.tooltip.usefill,n.settings.tooltip.usestroke,n.settings.tooltip.delay.over,n.settings.tooltip.delay.out)},resize:function(t,e){}}}}}])}));</script>
<script>HTMLWidgets.widget({
name: 'girafe',
type: 'output',
factory: ggiraphjs.factory(HTMLWidgets.shinyMode)
});
</script>
</head>
<body style="background-color: white;">
<div id="htmlwidget_container">
<div id="htmlwidget-39d6f92d5216628d8a64" class="girafe html-widget" style="width:960px;height:500px;">
</div>
</div>
<script type="application/json" data-for="htmlwidget-39d6f92d5216628d8a64">{"x":{"html":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' id='svg_cdd98e0b-31ea-485b-b287-a10fbe3b720b' viewBox='0 0 576 288'>\n <defs>\n <clipPath id='svg_cdd98e0b-31ea-485b-b287-a10fbe3b720b_c1'>\n <rect x='0' y='0' width='576' height='288'/>\n <\/clipPath>\n <clipPath id='svg_cdd98e0b-31ea-485b-b287-a10fbe3b720b_c2'>\n <rect x='23.67' y='22.2' width='546.86' height='229.53'/>\n <\/clipPath>\n <\/defs>\n <g>\n <g clip-path='url(#svg_cdd98e0b-31ea-485b-b287-a10fbe3b720b_c1)'>\n <rect x='0' y='0' width='576' height='288' fill='#FFFFFF' stroke='#FFFFFF' stroke-width='0.75' stroke-linejoin='round' stroke-linecap='round'/>\n <\/g>\n <g clip-path='url(#svg_cdd98e0b-31ea-485b-b287-a10fbe3b720b_c2)'>\n <polyline points='23.67,234.62 570.52,234.62' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,214.52 570.52,214.52' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,174.30 570.52,174.30' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,134.09 570.52,134.09' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,93.88 570.52,93.88' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,53.66 570.52,53.66' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='80.60,251.73 80.60,22.20' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='148.36,251.73 148.36,22.20' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='216.12,251.73 216.12,22.20' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='283.89,251.73 283.89,22.20' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='351.65,251.73 351.65,22.20' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='419.41,251.73 419.41,22.20' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='487.17,251.73 487.17,22.20' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='554.93,251.73 554.93,22.20' fill='none' stroke='#EBEBEB' stroke-width='0.53' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,194.41 570.52,194.41' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,154.20 570.52,154.20' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,113.98 570.52,113.98' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,73.77 570.52,73.77' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='23.67,33.56 570.52,33.56' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='46.72,251.73 46.72,22.20' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='114.48,251.73 114.48,22.20' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='182.24,251.73 182.24,22.20' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='250.01,251.73 250.01,22.20' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='317.77,251.73 317.77,22.20' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='385.53,251.73 385.53,22.20' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='453.29,251.73 453.29,22.20' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='521.05,251.73 521.05,22.20' fill='none' stroke='#EBEBEB' stroke-width='1.07' stroke-linejoin='round' stroke-linecap='butt'/>\n <circle cx='216.85' cy='229.74' r='1.47pt' fill='#150E37' fill-opacity='0.5' stroke='#150E37' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: United States of America&lt;br/&gt;Gross national income (GNI) per capita: 64766&lt;br/&gt;Number of billionaires: 645&lt;br/&gt;Within 100K: 0.195'/>\n <circle cx='88.74' cy='229.69' r='1.47pt' fill='#691A7E' fill-opacity='0.5' stroke='#691A7E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: People&#39;s Republic of China&lt;br/&gt;Gross national income (GNI) per capita: 17505&lt;br/&gt;Number of billionaires: 466&lt;br/&gt;Within 100K: 0.032'/>\n <circle cx='59.16' cy='231.25' r='1.47pt' fill='#EC6362' fill-opacity='0.5' stroke='#EC6362' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: India&lt;br/&gt;Gross national income (GNI) per capita: 6590&lt;br/&gt;Number of billionaires: 162&lt;br/&gt;Within 100K: 0.012'/>\n <circle cx='189.12' cy='236.36' r='1.47pt' fill='#F8775F' fill-opacity='0.5' stroke='#F8775F' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Germany&lt;br/&gt;Gross national income (GNI) per capita: 54535&lt;br/&gt;Number of billionaires: 117&lt;br/&gt;Within 100K: 0.141'/>\n <circle cx='114.94' cy='239.68' r='1.47pt' fill='#FA8566' fill-opacity='0.5' stroke='#FA8566' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Russia&lt;br/&gt;Gross national income (GNI) per capita: 27167&lt;br/&gt;Number of billionaires: 92&lt;br/&gt;Within 100K: 0.063'/>\n <circle cx='157.42' cy='222.21' r='1.47pt' fill='#FB8E6A' fill-opacity='0.5' stroke='#FB8E6A' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Italy&lt;br/&gt;Gross national income (GNI) per capita: 42840&lt;br/&gt;Number of billionaires: 77&lt;br/&gt;Within 100K: 0.128'/>\n <circle cx='168.17' cy='225.02' r='1.47pt' fill='#FC966D' fill-opacity='0.5' stroke='#FC966D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Canada&lt;br/&gt;Gross national income (GNI) per capita: 46808&lt;br/&gt;Number of billionaires: 63&lt;br/&gt;Within 100K: 0.170'/>\n <circle cx='210.99' cy='194.57' r='1.47pt' fill='#FC966D' fill-opacity='0.5' stroke='#FC966D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Hong Kong&lt;br/&gt;Gross national income (GNI) per capita: 62607&lt;br/&gt;Number of billionaires: 63&lt;br/&gt;Within 100K: 0.840'/>\n <circle cx='80.25' cy='240.32' r='1.47pt' fill='#FC9D71' fill-opacity='0.5' stroke='#FC9D71' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Brazil&lt;br/&gt;Gross national income (GNI) per capita: 14370&lt;br/&gt;Number of billionaires: 50&lt;br/&gt;Within 100K: 0.023'/>\n <circle cx='135.5' cy='230.31' r='1.47pt' fill='#FC9D71' fill-opacity='0.5' stroke='#FC9D71' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Taiwan&lt;br/&gt;Gross national income (GNI) per capita: 34756&lt;br/&gt;Number of billionaires: 49&lt;br/&gt;Within 100K: 0.208'/>\n <circle cx='163.88' cy='226.12' r='1.47pt' fill='#FC9D71' fill-opacity='0.5' stroke='#FC9D71' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: United Kingdom&lt;br/&gt;Gross national income (GNI) per capita: 45225&lt;br/&gt;Number of billionaires: 49&lt;br/&gt;Within 100K: 0.073'/>\n <circle cx='174.76' cy='223.09' r='1.47pt' fill='#FD9E72' fill-opacity='0.5' stroke='#FD9E72' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Australia&lt;br/&gt;Gross national income (GNI) per capita: 49239&lt;br/&gt;Number of billionaires: 47&lt;br/&gt;Within 100K: 0.192'/>\n <circle cx='155.89' cy='234.63' r='1.47pt' fill='#FDA273' fill-opacity='0.5' stroke='#FDA273' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Japan&lt;br/&gt;Gross national income (GNI) per capita: 42275&lt;br/&gt;Number of billionaires: 41&lt;br/&gt;Within 100K: 0.033'/>\n <circle cx='222.72' cy='218.13' r='1.47pt' fill='#FDA273' fill-opacity='0.5' stroke='#FDA273' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Switzerland&lt;br/&gt;Gross national income (GNI) per capita: 66934&lt;br/&gt;Number of billionaires: 40&lt;br/&gt;Within 100K: 0.458'/>\n <circle cx='287.73' cy='215.27' r='1.47pt' fill='#FDA776' fill-opacity='0.5' stroke='#FDA776' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Singapore&lt;br/&gt;Gross national income (GNI) per capita: 90919&lt;br/&gt;Number of billionaires: 32&lt;br/&gt;Within 100K: 0.546'/>\n <circle cx='161.92' cy='226.56' r='1.47pt' fill='#FDA776' fill-opacity='0.5' stroke='#FDA776' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: South Korea&lt;br/&gt;Gross national income (GNI) per capita: 44501&lt;br/&gt;Number of billionaires: 32&lt;br/&gt;Within 100K: 0.062'/>\n <circle cx='188.99' cy='221.39' r='1.47pt' fill='#FDA776' fill-opacity='0.5' stroke='#FDA776' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Sweden&lt;br/&gt;Gross national income (GNI) per capita: 54490&lt;br/&gt;Number of billionaires: 32&lt;br/&gt;Within 100K: 0.307'/>\n <circle cx='165.81' cy='227.84' r='1.47pt' fill='#FDA977' fill-opacity='0.5' stroke='#FDA977' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: France&lt;br/&gt;Gross national income (GNI) per capita: 45938&lt;br/&gt;Number of billionaires: 28&lt;br/&gt;Within 100K: 0.041'/>\n <circle cx='153.85' cy='228.21' r='1.47pt' fill='#FDA977' fill-opacity='0.5' stroke='#FDA977' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Israel&lt;br/&gt;Gross national income (GNI) per capita: 41524&lt;br/&gt;Number of billionaires: 27&lt;br/&gt;Within 100K: 0.294'/>\n <circle cx='145.26' cy='235.52' r='1.47pt' fill='#FDA977' fill-opacity='0.5' stroke='#FDA977' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Spain&lt;br/&gt;Gross national income (GNI) per capita: 38354&lt;br/&gt;Number of billionaires: 27&lt;br/&gt;Within 100K: 0.057'/>\n <circle cx='87.46' cy='232.84' r='1.47pt' fill='#FDA977' fill-opacity='0.5' stroke='#FDA977' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Thailand&lt;br/&gt;Gross national income (GNI) per capita: 17031&lt;br/&gt;Number of billionaires: 27&lt;br/&gt;Within 100K: 0.041'/>\n <circle cx='125.41' cy='230.92' r='1.47pt' fill='#FDA977' fill-opacity='0.5' stroke='#FDA977' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Turkey&lt;br/&gt;Gross national income (GNI) per capita: 31033&lt;br/&gt;Number of billionaires: 27&lt;br/&gt;Within 100K: 0.032'/>\n <circle cx='72.38' cy='231.24' r='1.47pt' fill='#FDAA77' fill-opacity='0.5' stroke='#FDAA77' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Indonesia&lt;br/&gt;Gross national income (GNI) per capita: 11467&lt;br/&gt;Number of billionaires: 26&lt;br/&gt;Within 100K: 0.009'/>\n <circle cx='113.55' cy='225.66' r='1.47pt' fill='#FEAF7A' fill-opacity='0.5' stroke='#FEAF7A' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Malaysia&lt;br/&gt;Gross national income (GNI) per capita: 26658&lt;br/&gt;Number of billionaires: 16&lt;br/&gt;Within 100K: 0.049'/>\n <circle cx='65.48' cy='231.77' r='1.47pt' fill='#FEB17B' fill-opacity='0.5' stroke='#FEB17B' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Philippines&lt;br/&gt;Gross national income (GNI) per capita: 8921&lt;br/&gt;Number of billionaires: 13&lt;br/&gt;Within 100K: 0.012'/>\n <circle cx='89.81' cy='237.86' r='1.47pt' fill='#FEB17B' fill-opacity='0.5' stroke='#FEB17B' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Mexico&lt;br/&gt;Gross national income (GNI) per capita: 17897&lt;br/&gt;Number of billionaires: 12&lt;br/&gt;Within 100K: 0.010'/>\n <circle cx='193.03' cy='229.95' r='1.47pt' fill='#FEB17B' fill-opacity='0.5' stroke='#FEB17B' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Netherlands&lt;br/&gt;Gross national income (GNI) per capita: 55980&lt;br/&gt;Number of billionaires: 12&lt;br/&gt;Within 100K: 0.068'/>\n <circle cx='216.56' cy='227.3' r='1.47pt' fill='#FEB27B' fill-opacity='0.5' stroke='#FEB27B' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Norway&lt;br/&gt;Gross national income (GNI) per capita: 64661&lt;br/&gt;Number of billionaires: 11&lt;br/&gt;Within 100K: 0.200'/>\n <circle cx='186.63' cy='227.68' r='1.47pt' fill='#FEB37C' fill-opacity='0.5' stroke='#FEB37C' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Austria&lt;br/&gt;Gross national income (GNI) per capita: 53619&lt;br/&gt;Number of billionaires: 8&lt;br/&gt;Within 100K: 0.089'/>\n <circle cx='247.75' cy='227.76' r='1.47pt' fill='#FEB37C' fill-opacity='0.5' stroke='#FEB37C' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Republic of Ireland&lt;br/&gt;Gross national income (GNI) per capita: 76169&lt;br/&gt;Number of billionaires: 8&lt;br/&gt;Within 100K: 0.156'/>\n <circle cx='107.88' cy='225.48' r='1.47pt' fill='#FEB47C' fill-opacity='0.5' stroke='#FEB47C' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Chile&lt;br/&gt;Gross national income (GNI) per capita: 24564&lt;br/&gt;Number of billionaires: 7&lt;br/&gt;Within 100K: 0.036'/>\n <circle cx='73.1' cy='231.25' r='1.47pt' fill='#FEB47C' fill-opacity='0.5' stroke='#FEB47C' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Egypt&lt;br/&gt;Gross national income (GNI) per capita: 11732&lt;br/&gt;Number of billionaires: 7&lt;br/&gt;Within 100K: 0.007'/>\n <circle cx='175.34' cy='227.42' r='1.47pt' fill='#FEB47C' fill-opacity='0.5' stroke='#FEB47C' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Finland&lt;br/&gt;Gross national income (GNI) per capita: 49453&lt;br/&gt;Number of billionaires: 7&lt;br/&gt;Within 100K: 0.127'/>\n <circle cx='119.91' cy='232.92' r='1.47pt' fill='#FEB47C' fill-opacity='0.5' stroke='#FEB47C' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Greece&lt;br/&gt;Gross national income (GNI) per capita: 29003&lt;br/&gt;Number of billionaires: 7&lt;br/&gt;Within 100K: 0.067'/>\n <circle cx='106.2' cy='229.88' r='1.47pt' fill='#FEB47C' fill-opacity='0.5' stroke='#FEB47C' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Kazakhstan&lt;br/&gt;Gross national income (GNI) per capita: 23943&lt;br/&gt;Number of billionaires: 7&lt;br/&gt;Within 100K: 0.037'/>\n <circle cx='130.84' cy='239.1' r='1.47pt' fill='#FEB47C' fill-opacity='0.5' stroke='#FEB47C' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Poland&lt;br/&gt;Gross national income (GNI) per capita: 33034&lt;br/&gt;Number of billionaires: 7&lt;br/&gt;Within 100K: 0.018'/>\n <circle cx='144.81' cy='212.04' r='1.47pt' fill='#FEB47D' fill-opacity='0.5' stroke='#FEB47D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Cyprus&lt;br/&gt;Gross national income (GNI) per capita: 38189&lt;br/&gt;Number of billionaires: 6&lt;br/&gt;Within 100K: 0.526'/>\n <circle cx='146.32' cy='238.05' r='1.47pt' fill='#FEB47D' fill-opacity='0.5' stroke='#FEB47D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Czech Republic&lt;br/&gt;Gross national income (GNI) per capita: 38746&lt;br/&gt;Number of billionaires: 6&lt;br/&gt;Within 100K: 0.057'/>\n <circle cx='67.12' cy='236.7' r='1.47pt' fill='#FEB47D' fill-opacity='0.5' stroke='#FEB47D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Lebanon&lt;br/&gt;Gross national income (GNI) per capita: 9526&lt;br/&gt;Number of billionaires: 6&lt;br/&gt;Within 100K: 0.098'/>\n <circle cx='122.69' cy='236.48' r='1.47pt' fill='#FEB47D' fill-opacity='0.5' stroke='#FEB47D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Romania&lt;br/&gt;Gross national income (GNI) per capita: 30028&lt;br/&gt;Number of billionaires: 6&lt;br/&gt;Within 100K: 0.031'/>\n <circle cx='62.63' cy='235.54' r='1.47pt' fill='#FEB47D' fill-opacity='0.5' stroke='#FEB47D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Vietnam&lt;br/&gt;Gross national income (GNI) per capita: 7868&lt;br/&gt;Number of billionaires: 6&lt;br/&gt;Within 100K: 0.006'/>\n <circle cx='98.02' cy='236.9' r='1.47pt' fill='#FEB57D' fill-opacity='0.5' stroke='#FEB57D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Argentina&lt;br/&gt;Gross national income (GNI) per capita: 20926&lt;br/&gt;Number of billionaires: 5&lt;br/&gt;Within 100K: 0.011'/>\n <circle cx='77.23' cy='233.01' r='1.47pt' fill='#FEB57D' fill-opacity='0.5' stroke='#FEB57D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Ukraine&lt;br/&gt;Gross national income (GNI) per capita: 13256&lt;br/&gt;Number of billionaires: 5&lt;br/&gt;Within 100K: 0.012'/>\n <circle cx='183.04' cy='231.62' r='1.47pt' fill='#FEB57D' fill-opacity='0.5' stroke='#FEB57D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Belgium&lt;br/&gt;Gross national income (GNI) per capita: 52294&lt;br/&gt;Number of billionaires: 4&lt;br/&gt;Within 100K: 0.035'/>\n <circle cx='80.29' cy='236.63' r='1.47pt' fill='#FEB57D' fill-opacity='0.5' stroke='#FEB57D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Colombia&lt;br/&gt;Gross national income (GNI) per capita: 14385&lt;br/&gt;Number of billionaires: 4&lt;br/&gt;Within 100K: 0.008'/>\n <circle cx='74.49' cy='239.63' r='1.47pt' fill='#FEB57D' fill-opacity='0.5' stroke='#FEB57D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Peru&lt;br/&gt;Gross national income (GNI) per capita: 12246&lt;br/&gt;Number of billionaires: 4&lt;br/&gt;Within 100K: 0.014'/>\n <circle cx='210.9' cy='231.6' r='1.47pt' fill='#FEB57D' fill-opacity='0.5' stroke='#FEB57D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: United Arab Emirates&lt;br/&gt;Gross national income (GNI) per capita: 62574&lt;br/&gt;Number of billionaires: 4&lt;br/&gt;Within 100K: 0.040'/>\n <circle cx='204.92' cy='228.11' r='1.47pt' fill='#FEB67D' fill-opacity='0.5' stroke='#FEB67D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Denmark&lt;br/&gt;Gross national income (GNI) per capita: 60365&lt;br/&gt;Number of billionaires: 3&lt;br/&gt;Within 100K: 0.051'/>\n <circle cx='130.18' cy='234.53' r='1.47pt' fill='#FEB67D' fill-opacity='0.5' stroke='#FEB67D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Hungary&lt;br/&gt;Gross national income (GNI) per capita: 32790&lt;br/&gt;Number of billionaires: 3&lt;br/&gt;Within 100K: 0.031'/>\n <circle cx='76.4' cy='237.9' r='1.47pt' fill='#FEB67D' fill-opacity='0.5' stroke='#FEB67D' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: South Africa&lt;br/&gt;Gross national income (GNI) per capita: 12949&lt;br/&gt;Number of billionaires: 3&lt;br/&gt;Within 100K: 0.005'/>\n <circle cx='103.85' cy='235.67' r='1.47pt' fill='#FEB67E' fill-opacity='0.5' stroke='#FEB67E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Bulgaria&lt;br/&gt;Gross national income (GNI) per capita: 23079&lt;br/&gt;Number of billionaires: 2&lt;br/&gt;Within 100K: 0.029'/>\n <circle cx='81.05' cy='235.87' r='1.47pt' fill='#FEB67E' fill-opacity='0.5' stroke='#FEB67E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Georgia&lt;br/&gt;Gross national income (GNI) per capita: 14665&lt;br/&gt;Number of billionaires: 2&lt;br/&gt;Within 100K: 0.054'/>\n <circle cx='545.66' cy='32.63' r='1.47pt' fill='#FEB67E' fill-opacity='0.5' stroke='#FEB67E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Monaco&lt;br/&gt;Gross national income (GNI) per capita: 186080&lt;br/&gt;Number of billionaires: 2&lt;br/&gt;Within 100K: 5.215'/>\n <circle cx='61.09' cy='229.26' r='1.47pt' fill='#FEB67E' fill-opacity='0.5' stroke='#FEB67E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Morocco&lt;br/&gt;Gross national income (GNI) per capita: 7303&lt;br/&gt;Number of billionaires: 2&lt;br/&gt;Within 100K: 0.005'/>\n <circle cx='160.72' cy='234.73' r='1.47pt' fill='#FEB67E' fill-opacity='0.5' stroke='#FEB67E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: New Zealand&lt;br/&gt;Gross national income (GNI) per capita: 44058&lt;br/&gt;Number of billionaires: 2&lt;br/&gt;Within 100K: 0.039'/>\n <circle cx='114.63' cy='229.79' r='1.47pt' fill='#FEB67E' fill-opacity='0.5' stroke='#FEB67E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Oman&lt;br/&gt;Gross national income (GNI) per capita: 27055&lt;br/&gt;Number of billionaires: 2&lt;br/&gt;Within 100K: 0.041'/>\n <circle cx='277.48' cy='225.14' r='1.47pt' fill='#FEB67E' fill-opacity='0.5' stroke='#FEB67E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Qatar&lt;br/&gt;Gross national income (GNI) per capita: 87135&lt;br/&gt;Number of billionaires: 2&lt;br/&gt;Within 100K: 0.076'/>\n <circle cx='124.49' cy='237.41' r='1.47pt' fill='#FEB67E' fill-opacity='0.5' stroke='#FEB67E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Slovakia&lt;br/&gt;Gross national income (GNI) per capita: 30691&lt;br/&gt;Number of billionaires: 2&lt;br/&gt;Within 100K: 0.037'/>\n <circle cx='70.57' cy='227.78' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Algeria&lt;br/&gt;Gross national income (GNI) per capita: 10801&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.002'/>\n <circle cx='76.96' cy='239.95' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Armenia&lt;br/&gt;Gross national income (GNI) per capita: 13158&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.034'/>\n <circle cx='56.13' cy='238.63' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Bangladesh&lt;br/&gt;Gross national income (GNI) per capita: 5473&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.001'/>\n <circle cx='74.66' cy='219.93' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Barbados&lt;br/&gt;Gross national income (GNI) per capita: 12307&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.350'/>\n <circle cx='58.4' cy='231.21' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Belize&lt;br/&gt;Gross national income (GNI) per capita: 6310&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.267'/>\n <circle cx='144.43' cy='236.94' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Estonia&lt;br/&gt;Gross national income (GNI) per capita: 38049&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.074'/>\n <circle cx='220.79' cy='174.02' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Guernsey&lt;br/&gt;Gross national income (GNI) per capita: 66220&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 1.580'/>\n <circle cx='192.5' cy='229.03' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Iceland&lt;br/&gt;Gross national income (GNI) per capita: 55783&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.275'/>\n <circle cx='439.28' cy='135.64' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Liechtenstein&lt;br/&gt;Gross national income (GNI) per capita: 146830&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 2.637'/>\n <circle cx='167.96' cy='223.36' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Macau&lt;br/&gt;Gross national income (GNI) per capita: 46730&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.147'/>\n <circle cx='51.81' cy='238.87' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Nepal&lt;br/&gt;Gross national income (GNI) per capita: 3878&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.007'/>\n <circle cx='54.29' cy='239.53' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Nigeria&lt;br/&gt;Gross national income (GNI) per capita: 4791&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.000'/>\n <circle cx='114.37' cy='225.68' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Panama&lt;br/&gt;Gross national income (GNI) per capita: 26957&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.024'/>\n <circle cx='131.17' cy='230.92' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Portugal&lt;br/&gt;Gross national income (GNI) per capita: 33155&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.010'/>\n <circle cx='104.61' cy='157.41' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Saint Kitts and Nevis&lt;br/&gt;Gross national income (GNI) per capita: 23359&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 1.807'/>\n <circle cx='48.52' cy='228.28' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Tanzania&lt;br/&gt;Gross national income (GNI) per capita: 2665&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.002'/>\n <circle cx='54.34' cy='236.57' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Venezuela&lt;br/&gt;Gross national income (GNI) per capita: 4811&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.004'/>\n <circle cx='51.63' cy='241.29' r='1.47pt' fill='#FEB77E' fill-opacity='0.5' stroke='#FEB77E' stroke-opacity='0.5' stroke-width='0.71' stroke-linejoin='round' stroke-linecap='round' title='Country: Zimbabwe&lt;br/&gt;Gross national income (GNI) per capita: 3810&lt;br/&gt;Number of billionaires: 1&lt;br/&gt;Within 100K: 0.007'/>\n <text x='77.64' y='70.87' font-size='6pt' font-family='Arial' fill='#9C9FB0'>The darker the point,<\/text>\n <text x='77.65' y='82.39' font-size='6pt' font-family='Arial' fill='#9C9FB0'> the more billionaires<\/text>\n <text x='162.65' y='149.01' font-size='6pt' font-family='Arial' fill='#003580'>Finland<\/text>\n <polyline points='175.74,154.20 175.78,154.44 175.99,155.67 176.33,157.71 176.69,159.79 176.99,161.65 177.24,163.36 177.36,164.18 177.57,165.85 177.76,167.43 177.91,168.87 178.05,170.26 178.19,171.77 178.32,173.42 178.38,174.24 178.49,175.92 178.56,177.51 178.62,178.96 178.67,180.35 178.71,181.87 178.73,183.52 178.74,184.35 178.73,186.03 178.70,187.62 178.66,189.07 178.62,190.47 178.56,191.98 178.47,193.63 178.42,194.46 178.30,196.14 178.17,197.72 178.03,199.16 177.89,200.55 177.73,202.06 177.54,203.70 177.43,204.53 177.20,206.21 176.93,207.98 176.60,209.95 176.25,212.09 175.96,213.81 175.85,214.49 175.85,214.52' fill='none' stroke='#003580' stroke-width='0.43' stroke-linejoin='round' stroke-linecap='butt'/>\n <polyline points='173.82,209.13 175.85,214.52 179.50,210.07' fill='none' stroke='#003580' stroke-width='0.43' stroke-linejoin='round' stroke-linecap='butt'/>\n <\/g>\n <g clip-path='url(#svg_cdd98e0b-31ea-485b-b287-a10fbe3b720b_c1)'>\n <text x='13.84' y='197.56' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>1<\/text>\n <text x='13.84' y='157.35' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>2<\/text>\n <text x='13.84' y='117.13' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>3<\/text>\n <text x='13.84' y='76.92' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>4<\/text>\n <text x='13.84' y='36.71' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>5<\/text>\n <text x='36.93' y='262.96' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>2000<\/text>\n <text x='102.24' y='262.96' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>27000<\/text>\n <text x='170' y='262.96' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>52000<\/text>\n <text x='237.77' y='262.96' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>77000<\/text>\n <text x='303.08' y='262.96' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>102000<\/text>\n <text x='370.84' y='262.96' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>127000<\/text>\n <text x='438.6' y='262.96' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>152000<\/text>\n <text x='506.37' y='262.96' font-size='6.6pt' font-family='Arial' fill='#4D4D4D'>177000<\/text>\n <text x='226.34' y='271.98' font-size='4.5pt' font-family='Arial'>Gross national income (GNI) per capita (2017 PPP $)<\/text>\n <text transform='translate(9.78,180.45) rotate(-90.00)' font-size='4.5pt' font-family='Arial'>Billionaires in population of 100K<\/text>\n <text x='23.67' y='14.08' font-size='9pt' font-family='Arial'>Billionaires in 2023 by Forbes - the country perspective<\/text>\n <text x='444.1' y='281.64' font-size='3pt' font-family='Arial'>Data by Forbes, Wikidata, UN | Graph & code https://github.com/tts/rich<\/text>\n <\/g>\n <\/g>\n<\/svg>","js":null,"uid":"svg_cdd98e0b-31ea-485b-b287-a10fbe3b720b","ratio":2,"settings":{"tooltip":{"css":".tooltip_SVGID_ { padding:5px;background:black;color:white;border-radius:2px 2px 2px 2px;text-align:left; ; position:absolute;pointer-events:none;z-index:999;}","placement":"doc","offx":20,"offy":-10,"use_cursor_pos":true,"opacity":0.8,"usefill":true,"usestroke":true,"delay":{"over":200,"out":1000}},"hover":{"css":".hover_SVGID_ { fill:orange;stroke:gray; }","reactive":false},"hoverkey":{"css":".hover_key_SVGID_ { stroke:red; }","reactive":false},"hovertheme":{"css":".hover_theme_SVGID_ { fill:green; }","reactive":false},"hoverinv":{"css":""},"zoom":{"min":1,"max":1},"capture":{"css":".selected_SVGID_ { fill:red;stroke:gray; }","type":"multiple","only_shiny":true,"selected":[]},"capturekey":{"css":".selected_key_SVGID_ { stroke:gray; }","type":"single","only_shiny":true,"selected":[]},"capturetheme":{"css":".selected_theme_SVGID_ { stroke:gray; }","type":"single","only_shiny":true,"selected":[]},"toolbar":{"position":"topright","saveaspng":true,"pngname":"diagram"},"sizing":{"rescale":true,"width":1}}},"evals":[],"jsHooks":[]}</script>
<script type="application/htmlwidget-sizing" data-for="htmlwidget-39d6f92d5216628d8a64">{"viewer":{"width":450,"height":350,"padding":15,"fill":true},"browser":{"width":960,"height":500,"padding":40,"fill":false}}</script>
</body>
</html>