From 1db0040353ce36edd7b44fbf51a50f8daed84ca7 Mon Sep 17 00:00:00 2001 From: Taras Novak Date: Tue, 20 Aug 2019 08:33:47 -0500 Subject: [PATCH] #130 updated viewer lib, scripts, styles and code to v0.3.7 see https://github.com/finos/perspective/blob/master/CHANGELOG.md for updated features and fixes in that lib release --- package-lock.json | 314 ++++++++++---------- package.json | 10 +- scripts/d3fc.plugin.js | 2 - scripts/highcharts.plugin.js | 2 - scripts/hypergrid.plugin.js | 2 - scripts/perspective-viewer-d3fc.js | 2 + scripts/perspective-viewer-highcharts.js | 2 + scripts/perspective-viewer-hypergrid.js | 2 + scripts/perspective-viewer.js | 2 + scripts/perspective.js | 2 +- scripts/perspective.view.js | 2 - scripts/perspective.wasm.worker.js | 8 +- scripts/psp.async.wasm | Bin 940804 -> 952702 bytes src/data.preview.ts | 14 +- styles/perspective-viewer/material.css | 3 + styles/perspective-viewer/material.dark.css | 19 +- templates/data.view.html | 8 +- 17 files changed, 202 insertions(+), 192 deletions(-) delete mode 100644 scripts/d3fc.plugin.js delete mode 100644 scripts/highcharts.plugin.js delete mode 100644 scripts/hypergrid.plugin.js create mode 100644 scripts/perspective-viewer-d3fc.js create mode 100644 scripts/perspective-viewer-highcharts.js create mode 100644 scripts/perspective-viewer-hypergrid.js create mode 100644 scripts/perspective-viewer.js delete mode 100644 scripts/perspective.view.js diff --git a/package-lock.json b/package-lock.json index d27bb4a..41ec49c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,22 +25,22 @@ } }, "@babel/runtime": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.5.tgz", - "integrity": "sha512-TuI4qpWZP6lGOGIuGWtp9sPluqYICmbk8T/1vpSysqJxRPkudh/ofFWyqdcMsDf2s7KvDL4/YHgKyvcS3g9CJQ==", + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.5.5.tgz", + "integrity": "sha512-28QvEGyQyNkB0/m2B4FU7IEZGK2NUrcMtT6BZEFALTguLk+AUT6ofsHtPk5QyjAdUkpMJ+/Em+quwz4HOt30AQ==", "requires": { "regenerator-runtime": "^0.13.2" } }, "@d3fc/d3fc-annotation": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-annotation/-/d3fc-annotation-2.4.1.tgz", - "integrity": "sha512-fbl7oHDo/54nuTUtOPysNIl569Z9euWgBr6OWwdoQDLUUeMgpoG3EUsy2BP++lzUDP/PfxEtQ3EoLrRxDPPHxQ==", - "requires": { - "@d3fc/d3fc-data-join": "^5.0.8", - "@d3fc/d3fc-rebind": "^5.0.7", - "@d3fc/d3fc-series": "^4.0.18", - "@d3fc/d3fc-shape": "^5.0.8", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-annotation/-/d3fc-annotation-2.4.10.tgz", + "integrity": "sha512-87M82QJQa9qu0w+oerbBUp/FQ/qd/2Yta0Z/cXjpleyKV4MB994+N3OoUB+iDjQwG17K39I1ORbc9jkXHICwcQ==", + "requires": { + "@d3fc/d3fc-data-join": "^5.0.9", + "@d3fc/d3fc-rebind": "^5.0.8", + "@d3fc/d3fc-series": "^4.0.27", + "@d3fc/d3fc-shape": "^5.0.17", "d3-scale": "^1.0.1", "d3-selection": "^1.0.2" }, @@ -62,12 +62,12 @@ } }, "@d3fc/d3fc-axis": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-axis/-/d3fc-axis-2.2.1.tgz", - "integrity": "sha512-65Bf2f0gBK3QydjK72fpkGsORKQoeTfbS2ND69WYi+oSvHR3VhOLjNYtSt+cs67KF/h7dqk1vf1hVKjGaDmhOQ==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-axis/-/d3fc-axis-2.2.2.tgz", + "integrity": "sha512-KJjeKmEwZBY8eVLXyUp4GOjHYa40RXy27ssaEYOizTTxDRvFxqDtb2TzgE5oZnxukT+nKkHIsV4Ua+FrBkkLyA==", "requires": { - "@d3fc/d3fc-data-join": "^5.0.8", - "@d3fc/d3fc-rebind": "^5.0.7", + "@d3fc/d3fc-data-join": "^5.0.9", + "@d3fc/d3fc-rebind": "^5.0.8", "d3-scale": "^1.0.3", "d3-selection": "^1.0.2", "d3-shape": "^1.0.3" @@ -90,12 +90,12 @@ } }, "@d3fc/d3fc-brush": { - "version": "2.0.41", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-brush/-/d3fc-brush-2.0.41.tgz", - "integrity": "sha512-PeIPhc0trekhFsrjIGKH1ZJbKR+JzMWwSmawSuQwVEjpzNVXENV5NvZ4fEL4Ctj/NpwiH0q/GufTt3IvU29Nuw==", + "version": "2.0.50", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-brush/-/d3fc-brush-2.0.50.tgz", + "integrity": "sha512-38nzWQwzQYhF+L+H6K4+e/RXTyINkywrgdV88LTnITAON215jZspQoVTLswIuhpI3P9EhqHY4ZXrdGq/6XJA6Q==", "requires": { - "@d3fc/d3fc-data-join": "^5.0.8", - "@d3fc/d3fc-rebind": "^5.0.7", + "@d3fc/d3fc-data-join": "^5.0.9", + "@d3fc/d3fc-rebind": "^5.0.8", "d3-brush": "^1.0.3", "d3-dispatch": "^1.0.2", "d3-scale": "^1.0.3", @@ -119,15 +119,15 @@ } }, "@d3fc/d3fc-chart": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-chart/-/d3fc-chart-2.6.3.tgz", - "integrity": "sha512-R04//tmuzdtKWN3dq432HTpH972jWSli0WS1hpJlzAmZsqvxkpzc25RO34vAyy9p+52Ju6+3LLJOkg0jMPNSeA==", - "requires": { - "@d3fc/d3fc-axis": "^2.2.1", - "@d3fc/d3fc-data-join": "^5.0.8", - "@d3fc/d3fc-element": "^5.2.3", - "@d3fc/d3fc-rebind": "^5.0.7", - "@d3fc/d3fc-series": "^4.0.18", + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-chart/-/d3fc-chart-2.6.12.tgz", + "integrity": "sha512-U3EPRBLc/rxlg9lYeqj0etXnlvEUhL6iDMyLyp+VAxdlr72TccpNRmW+pH8+/TsteuuTehE3aOjGqK1omOLA0g==", + "requires": { + "@d3fc/d3fc-axis": "^2.2.2", + "@d3fc/d3fc-data-join": "^5.0.9", + "@d3fc/d3fc-element": "^5.2.12", + "@d3fc/d3fc-rebind": "^5.0.8", + "@d3fc/d3fc-series": "^4.0.27", "d3-scale": "^1.0.3", "d3-selection": "^1.0.2" }, @@ -149,19 +149,19 @@ } }, "@d3fc/d3fc-data-join": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-data-join/-/d3fc-data-join-5.0.8.tgz", - "integrity": "sha512-Z/D5WhXfyWSwzmCVh1bwh+xgUV7K8hAFqB3WQr4BclQjqGGK4ueWs2FriI5Xdbkwv+K2fVeQTmFSfY0CTLD8pQ==", + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-data-join/-/d3fc-data-join-5.0.9.tgz", + "integrity": "sha512-6KLxe2ZU64iWKhUs2jKtLjSG3uFfup4ycpG5msBE6P6Cnvo9MjAJBls1GohrZ8DLVdV4zr2C6te4gjqF85c9hQ==", "requires": { "d3-selection": "^1.0.0" } }, "@d3fc/d3fc-discontinuous-scale": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-discontinuous-scale/-/d3fc-discontinuous-scale-3.0.8.tgz", - "integrity": "sha512-bXnQ8b3X25kNy+fZIQcP1hvwgLQ+moo61FEv7Vkw+8eKZ4pqQ0WYIRIJl6VRk0LzJEVTL1OdHfCP+TDB+4oBiQ==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-discontinuous-scale/-/d3fc-discontinuous-scale-3.0.9.tgz", + "integrity": "sha512-0X0sDmIi70LRnFt926U68MXrxXjybjf91BvTbofggS8MbOF6TF/HflX9FCl8Er/yJEkA+RYUNskp7IdC359FBA==", "requires": { - "@d3fc/d3fc-rebind": "^5.0.7", + "@d3fc/d3fc-rebind": "^5.0.8", "d3-scale": "^1.0.0", "d3-time": "^1.0.0" }, @@ -183,38 +183,38 @@ } }, "@d3fc/d3fc-element": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-element/-/d3fc-element-5.2.3.tgz", - "integrity": "sha512-FmWRFHNIfNARJIdijokRID28Tt+pANbwU4vasuiTl/8+mTrO5Ru4LzNzuV5C1K3UWKm4qQ9b3eU5lXU/Naz3ww==" + "version": "5.2.12", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-element/-/d3fc-element-5.2.12.tgz", + "integrity": "sha512-1IK+TT6ZmpFbk3C/m7YntrYEvABz70x5eumFBCBMF2aEdvqLJaMTa/bxEKwdBwkOzw98CswGO36BIrtXZUxxHg==" }, "@d3fc/d3fc-extent": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-extent/-/d3fc-extent-3.1.4.tgz", - "integrity": "sha512-n1za4pcFu4ffQYgOtRgl3vrWNiXD0Mvqq/PugYID3ibLUbfbOPNXpBhnPN8B7AVBSFDkN0hAl3M0rePDJw11kg==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-extent/-/d3fc-extent-3.1.5.tgz", + "integrity": "sha512-D9dVUsRZJPvv0PxW+dyGkSLXkyW9yoro0Z7+KuySPZwiXlLfKawxmbNjWTUQWMP0UUfxtzXae6anLiXZRFKtuA==", "requires": { "d3-array": "^1.0.0" } }, "@d3fc/d3fc-financial-feed": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-financial-feed/-/d3fc-financial-feed-6.0.1.tgz", - "integrity": "sha512-8Xk+WVQj6bUDfDThl0SiRMRIKa8NFf2Ju6kavvtFNZCmcKYPQp2iuajZKWsu4ZiOKlk7boczsxN2RW0IeXJByg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-financial-feed/-/d3fc-financial-feed-6.0.2.tgz", + "integrity": "sha512-4M4aJu2xPoKs23rM9zUVUP8cYUOrAUWT/+4gU4wJEQQy5l3pCDYrsxd4k9cQdfs0M/kRpOe0l4BjaB6oqdgJwg==", "requires": { "d3-fetch": "^1.1.0" } }, "@d3fc/d3fc-group": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-group/-/d3fc-group-2.0.7.tgz", - "integrity": "sha512-BPcI726lxDplk0AUJlebHwTi9/5wFqxFD3UTi1zuAlW7Qws+xvPS4R8QUk0NmgzACdMEJ65QnrHAggjzV8KMMg==" + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-group/-/d3fc-group-2.0.8.tgz", + "integrity": "sha512-vVuaCkKodMRuM0MFeiN+kpKt7nuUkAHQCavMIJ4iHPlsLfd1xuMps2GPPhiHW8l2UJIFpwY6lV+biC4OqzWUgw==" }, "@d3fc/d3fc-label-layout": { - "version": "6.0.8", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-label-layout/-/d3fc-label-layout-6.0.8.tgz", - "integrity": "sha512-GqDwh4joA5QeBw9Zn4O1qHLazekamy+r6H4okY56DNR+8dAH2OqqEznpEqWoO+xLVVkpC4XzCe/+4yCxVicr2g==", + "version": "6.0.9", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-label-layout/-/d3fc-label-layout-6.0.9.tgz", + "integrity": "sha512-J9d66wpo87xyto6u/u/hEVonDPNWkUzI6+lARcTRjyqfKVTRpepUEp487IErZj/EnsloM+FeSxdI12RlKYNoYQ==", "requires": { - "@d3fc/d3fc-data-join": "^5.0.8", - "@d3fc/d3fc-rebind": "^5.0.7", + "@d3fc/d3fc-data-join": "^5.0.9", + "@d3fc/d3fc-rebind": "^5.0.8", "d3-array": "^1.0.0", "d3-scale": "^1.0.6", "d3-selection": "^1.0.0" @@ -237,47 +237,47 @@ } }, "@d3fc/d3fc-pointer": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-pointer/-/d3fc-pointer-2.0.8.tgz", - "integrity": "sha512-8MVQg+soqAPOatpzjb7YoUq3RheWqqb4JaYyhPlmNn9O4L+7VSaYIQRDUlYhsPhSi2SnApOtc7S/oq81GzWL8g==", + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-pointer/-/d3fc-pointer-2.0.9.tgz", + "integrity": "sha512-w9Eociu5DNWt4xjRrOJfeheL0eepQH0Cm+xQaVrsotFasEbmjy0XvpTECmu83THJtfoi+k6gaNmoDeMnOkhKFw==", "requires": { - "@d3fc/d3fc-rebind": "^5.0.7", + "@d3fc/d3fc-rebind": "^5.0.8", "d3-dispatch": "^1.0.1", "d3-selection": "^1.0.2" } }, "@d3fc/d3fc-random-data": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-random-data/-/d3fc-random-data-3.0.8.tgz", - "integrity": "sha512-OtFhQzWDORX+fwcmXN1qNaXAm5MevwiI3lehjjFj4JwfPJ2EqGpyCqnSgD4cGzb3e99qSdiirK7b6yQPjmpBBg==", + "version": "3.0.17", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-random-data/-/d3fc-random-data-3.0.17.tgz", + "integrity": "sha512-+gjkIBBpoZZaj74y21BuJSMbcD+QED7lMdd/uX7tC3st5b3kX6l6rpuMWnEe23u5mdC7mjlufTLc8E3njvTP0Q==", "requires": { - "@d3fc/d3fc-rebind": "^5.0.7", + "@d3fc/d3fc-rebind": "^5.0.8", "d3-random": "^1.0.0", "d3-time": "^1.0.0" } }, "@d3fc/d3fc-rebind": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-rebind/-/d3fc-rebind-5.0.7.tgz", - "integrity": "sha512-h/vvyF8tFGMd9jzicSDpC3aHC+pC0L6ae63OLaSt++0Gwc4Zi6ve5xaBXrkIrdFembezRUkGNr6zUPOMA6HN5g==" + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-rebind/-/d3fc-rebind-5.0.8.tgz", + "integrity": "sha512-75nY+1El+5mNoBaWQGW/5igSEVvTrn6CIHUT8lfP7FlaCNnGa1u2ME26TuN6C721NmhHPlyu9VFalWInwY2bVA==" }, "@d3fc/d3fc-sample": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-sample/-/d3fc-sample-4.0.8.tgz", - "integrity": "sha512-TVa7oSgoaOy/C3bZLUzIkQV/GLsA00CkrTNa9DdluOhD08OYrG/gTStYE5HSiFk6/7y3Z1wntYq3P/83JjzwYQ==", + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-sample/-/d3fc-sample-4.0.9.tgz", + "integrity": "sha512-KbZiCthT6pbD6610+wmxO7M4Ff+i4ELwzlx2HX/EUpvMR2DToi03BVF36QVFCGRvF4ofMiCFo6k0A8EaGA5F4Q==", "requires": { - "@d3fc/d3fc-rebind": "^5.0.7", + "@d3fc/d3fc-rebind": "^5.0.8", "d3-array": "^1.0.0" } }, "@d3fc/d3fc-series": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-series/-/d3fc-series-4.0.18.tgz", - "integrity": "sha512-RJSzpBV9iZZ2FFYNZHxowEw5utujLHuHd+pm5kZmEe4MPv6Fw+U5smYnYaobb8noag2yll0PWjX6l0k73wnKaA==", + "version": "4.0.27", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-series/-/d3fc-series-4.0.27.tgz", + "integrity": "sha512-nOxRlqbeK9//DLX+UjD13irlaKA5OIrTolRLmNd5CH9KDdQ9MIz6PWGyxtHdCNUSFnQCQsOnA8gqPhxcpnkkqg==", "requires": { - "@d3fc/d3fc-data-join": "^5.0.8", - "@d3fc/d3fc-rebind": "^5.0.7", - "@d3fc/d3fc-shape": "^5.0.8", + "@d3fc/d3fc-data-join": "^5.0.9", + "@d3fc/d3fc-rebind": "^5.0.8", + "@d3fc/d3fc-shape": "^5.0.17", "d3-array": "^1.0.0", "d3-scale": "^1.0.1", "d3-selection": "^1.0.0", @@ -301,26 +301,26 @@ } }, "@d3fc/d3fc-shape": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-shape/-/d3fc-shape-5.0.8.tgz", - "integrity": "sha512-+m9kzde7UmKT+QZDyeQ+stZCTBOBGvI0UZnPsyqHa9b+YjU0QMAJTP0lFrIRHwhS08iKQtfznR3PuvG+M4k1/w==", + "version": "5.0.17", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-shape/-/d3fc-shape-5.0.17.tgz", + "integrity": "sha512-zu05NcTnHGZAEvg1E3QWcvIs7rfY1Bfpg5NB/YhE+zmVlGQ5KpnWjzyzLt2Jugq+2aiwfpOpMxvGgIAWNcL+sA==", "requires": { "d3-path": "^1.0.0" } }, "@d3fc/d3fc-technical-indicator": { - "version": "7.0.24", - "resolved": "https://registry.npmjs.org/@d3fc/d3fc-technical-indicator/-/d3fc-technical-indicator-7.0.24.tgz", - "integrity": "sha512-P6G+/Krc5nvkb1s+TXwGRAM8CiXmoSyaEz7FTAULZwYq85hz87TM8VDDypKBxM3jKpNX9RPcS8i0SQOIWOY9Vg==", + "version": "7.0.33", + "resolved": "https://registry.npmjs.org/@d3fc/d3fc-technical-indicator/-/d3fc-technical-indicator-7.0.33.tgz", + "integrity": "sha512-Y2JMzNlopY4ItjxAZwzkYU1dbvY9IqZOIfP2OFnyMnWyzxpobLegvdn6xr7uKKCiVuZs515aAXIY29rB+G25yQ==", "requires": { - "@d3fc/d3fc-rebind": "^5.0.7", + "@d3fc/d3fc-rebind": "^5.0.8", "d3-array": "^1.0.0" } }, "@finos/perspective": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@finos/perspective/-/perspective-0.3.1.tgz", - "integrity": "sha512-cIlqk0ZTp7Dl1UrUmXNT92fXzAZuZ1xakmlxkgQl62iKHGKXATqqyhqmc2Ss0WgiYMzB5BqRKO75dxVbbWLBtw==", + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/@finos/perspective/-/perspective-0.3.7.tgz", + "integrity": "sha512-oLmKJ/0E+DXGHpKFekoFq3+ld+36XCS81gSQ0Rogya2CxU0VoK2z1ReLsqViqHcNV1olmVootJzRAmqohsbCTg==", "requires": { "@babel/runtime": "^7.3.4", "bufferutil": "~3.0.0", @@ -336,12 +336,12 @@ } }, "@finos/perspective-viewer": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@finos/perspective-viewer/-/perspective-viewer-0.3.1.tgz", - "integrity": "sha512-dII44ibpscx9tY6aAn8NJIjHbiPcucmGIO4iIaGZALjx5c9OxyTo9TIdHxdfR/XJjgFnlOHm27bqvS4xRE54Cg==", + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/@finos/perspective-viewer/-/perspective-viewer-0.3.7.tgz", + "integrity": "sha512-4Q0S9p8yytDyRPeLd7JSTHvt/a0GN0g7FERW28j06+kFpOu71olLfvUifK1ol/jZ0DXNizvMb4nZkQGx+5CKIA==", "requires": { "@babel/runtime": "^7.3.4", - "@finos/perspective": "^0.3.1", + "@finos/perspective": "^0.3.7", "@webcomponents/shadycss": "^1.5.2", "@webcomponents/webcomponentsjs": "~2.0.4", "awesomplete": "^1.1.2", @@ -352,28 +352,28 @@ } }, "@finos/perspective-viewer-d3fc": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@finos/perspective-viewer-d3fc/-/perspective-viewer-d3fc-0.3.1.tgz", - "integrity": "sha512-dwtJMSA5T9ETAoz4Tvcib1w2h+hpLtjiRjD03aZTXtt0xxLuYcgkCfQg8zbei73EWyyZyTgcOYJpakcVS6Bvug==", + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/@finos/perspective-viewer-d3fc/-/perspective-viewer-d3fc-0.3.7.tgz", + "integrity": "sha512-Q+2wkXFrXr/9GNboqwe67vfR4zO62o3tGBzCOP2StTgig5bPNOihPOHZ4+KDACsHr+GozikS87rwHLaHmMNNAg==", "requires": { - "@finos/perspective": "^0.3.1", - "@finos/perspective-viewer": "^0.3.1", + "@finos/perspective": "^0.3.7", + "@finos/perspective-viewer": "^0.3.7", "babel-runtime": "^6.26.0", "chroma-js": "^1.3.4", "d3": "^5.7.0", "d3-svg-legend": "^2.25.6", - "d3fc": "^14.0.34", + "d3fc": "14.0.40", "gradient-parser": "0.1.5" } }, "@finos/perspective-viewer-highcharts": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@finos/perspective-viewer-highcharts/-/perspective-viewer-highcharts-0.3.1.tgz", - "integrity": "sha512-Oi6SwKGVVCkeItixqKj8snYlBoEPfSC/sKkI+MOBAGHny9qSYGOjJx7IqFI49IYXe9Z+8HSN3yTzckJsv9G13A==", + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/@finos/perspective-viewer-highcharts/-/perspective-viewer-highcharts-0.3.7.tgz", + "integrity": "sha512-Ccer1yKJdxj49geu80uaHGkmu7mT4+PY9aQnNv59fJtNnDIx4VbOlaFdWncnehAKpVykugDvlZP6ctL3vWMe4A==", "requires": { "@babel/runtime": "^7.3.4", - "@finos/perspective": "^0.3.1", - "@finos/perspective-viewer": "^0.3.1", + "@finos/perspective": "^0.3.7", + "@finos/perspective-viewer": "^0.3.7", "chroma-js": "^1.3.4", "detectie": "1.0.0", "gradient-parser": "0.1.5", @@ -383,13 +383,13 @@ } }, "@finos/perspective-viewer-hypergrid": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@finos/perspective-viewer-hypergrid/-/perspective-viewer-hypergrid-0.3.1.tgz", - "integrity": "sha512-WqWWoEBuW7S4QGXAza6N91D9zD84+5LigDvfgAic9HqI7iB7gIlXDhFhbGodxsfuuPxchjATx7T3cw5PakapyA==", + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/@finos/perspective-viewer-hypergrid/-/perspective-viewer-hypergrid-0.3.7.tgz", + "integrity": "sha512-RUYvo2POhe1pclKmplFWeB60MWlLqn7Dc/57xyYp8+Wxyzm4y2JXP3y0ztAsPdUQDr//lob6VF8mq0B054Idew==", "requires": { "@babel/runtime": "^7.3.4", - "@finos/perspective": "^0.3.1", - "@finos/perspective-viewer": "^0.3.1", + "@finos/perspective": "^0.3.7", + "@finos/perspective-viewer": "^0.3.7", "datasaur-local": "3.0.0", "fin-hypergrid": "3.2.0", "fin-hypergrid-grouped-header-plugin": "^1.2.4", @@ -549,9 +549,9 @@ "dev": true }, "async-limiter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", - "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", + "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" }, "asynckit": { "version": "0.4.0", @@ -841,9 +841,9 @@ "integrity": "sha1-SG/U3E+EcN7wBxRwQ0RS8gM+xPo=" }, "d3": { - "version": "5.9.7", - "resolved": "https://registry.npmjs.org/d3/-/d3-5.9.7.tgz", - "integrity": "sha512-jENytrmdXtGPw7HuSK2S4gxRM1eUGjKvWQkQ6ct4yK+DB8SG3VcnVrwesfnsv8rIcxMUg18TafT4Q8mOZUMP4Q==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/d3/-/d3-5.10.0.tgz", + "integrity": "sha512-BFYD1rZk0dYR5/aYLv5P9sB0Ta1COZXAqwj+mb/8Xp9WDJTIY2h9OMGHtKW36QsDEQmx+adA2+C++K7YmlyQWA==", "requires": { "d3-array": "1", "d3-axis": "1", @@ -889,9 +889,9 @@ "integrity": "sha512-ejINPfPSNdGFKEOAtnBtdkpr24c4d4jsei6Lg98mxf424ivoDP2956/5HDpIAtmHo85lqT4pruy+zEgvRUBqaQ==" }, "d3-brush": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-1.0.6.tgz", - "integrity": "sha512-lGSiF5SoSqO5/mYGD5FAeGKKS62JdA1EV7HPrU2b5rTX4qEJJtpjaGLJngjnkewQy7UnGstnFd3168wpf5z76w==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-1.1.2.tgz", + "integrity": "sha512-0cQBYrlKqLevZZaRE5Hh3W5FGp3c9gvUyJZm3B0Z3iAM3aSkEXt7F+4+vYyJoaL6vEipVM511rMqO3lD6ShyRA==", "requires": { "d3-dispatch": "1", "d3-drag": "1", @@ -915,9 +915,9 @@ "integrity": "sha512-ii0/r5f4sjKNTfh84Di+DpztYwqKhEyUlKoPrzUFfeSkWxjW49xU2QzO9qrPrNkpdI0XJkfzvmTu8V2Zylln6A==" }, "d3-color": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-1.2.8.tgz", - "integrity": "sha512-yeANXzP37PHk0DbSTMNPhnJD+Nn4G//O5E825bR6fAfHH43hobSBpgB9G9oWVl9+XgUaQ4yCnsX1H+l8DoaL9A==" + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-1.3.0.tgz", + "integrity": "sha512-NHODMBlj59xPAwl2BDiO2Mog6V+PrGRtBfWKqKRrs9MCqlSkIEb0Z/SfY7jW29ReHTDC/j+vwXhnZcXI3+3fbg==" }, "d3-contour": { "version": "1.3.2", @@ -933,9 +933,9 @@ "integrity": "sha512-vwKx+lAqB1UuCeklr6Jh1bvC4SZgbSqbkGBLClItFBIYH4vqDJCA7qfoy14lXmJdnBOdxndAMxjCbImJYW7e6g==" }, "d3-drag": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-1.2.3.tgz", - "integrity": "sha512-8S3HWCAg+ilzjJsNtWW1Mutl74Nmzhb9yU6igspilaJzeZVFktmY6oO9xOh5TDk+BM2KrNFjttZNoJJmDnkjkg==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-1.2.4.tgz", + "integrity": "sha512-ICPurDETFAelF1CTHdIyiUM4PsyZLaM+7oIBhmyP+cuVjze5vDZ8V//LdOFjg0jGnFIZD/Sfmk0r95PSiu78rw==", "requires": { "d3-dispatch": "1", "d3-selection": "1" @@ -1002,9 +1002,9 @@ } }, "d3-path": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.7.tgz", - "integrity": "sha512-q0cW1RpvA5c5ma2rch62mX8AYaiLX0+bdaSM2wxSU9tXjU4DNvkx9qiUvjkuWCj3p22UO/hlPivujqMiR9PDzA==" + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.8.tgz", + "integrity": "sha512-J6EfUNwcMQ+aM5YPOB8ZbgAZu6wc82f/0WFxrxwV6Ll8wBwLaHLKCqQ5Imub02JriCVVdPjgI+6P3a4EWJCxAg==" }, "d3-polygon": { "version": "1.0.5", @@ -1035,9 +1035,9 @@ } }, "d3-scale-chromatic": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-1.3.3.tgz", - "integrity": "sha512-BWTipif1CimXcYfT02LKjAyItX5gKiwxuPRgr4xM58JwlLocWbjPLI7aMEjkcoOQXMkYsmNsvv3d2yl/OKuHHw==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-1.4.0.tgz", + "integrity": "sha512-0vyEt8ZqhdgzC+IvdkJZL7fc3k7UZyJvMxR3zvU312z/HilJ0N+WSY3099jAxdfhe99ak9VhcK1ChDVVGc8Q0Q==", "requires": { "d3-color": "1", "d3-interpolate": "1" @@ -1156,9 +1156,9 @@ "integrity": "sha512-dArJ32hchFsrQ8uMiTBLq256MpnZjeuBtdHpaDlYuQyjU0CVzCJl/BVW+SkszaAeH95D/8gxqAhgx0ouAWAfRg==" }, "d3-zoom": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-1.7.3.tgz", - "integrity": "sha512-xEBSwFx5Z9T3/VrwDkMt+mr0HCzv7XjpGURJ8lWmIC8wxe32L39eWHIasEe/e7Ox8MPU4p1hvH8PKN2olLzIBg==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-1.8.3.tgz", + "integrity": "sha512-VoLXTK4wvy1a0JpH2Il+F2CiOhVu7VRXWF5M/LroMIh3/zBAC3WAt7QoIvPibOavVo20hN6/37vwAsdBejLyKQ==", "requires": { "d3-dispatch": "1", "d3-drag": "1", @@ -1168,28 +1168,28 @@ } }, "d3fc": { - "version": "14.0.44", - "resolved": "https://registry.npmjs.org/d3fc/-/d3fc-14.0.44.tgz", - "integrity": "sha512-ILL+u/tEQOlV+P8KNhaq14hnQGL2F1Oukk8MMV7C0Jk0crOSlaEsoe94oXZmJ7mwvio4S536G0d4hDPzSiM3xw==", - "requires": { - "@d3fc/d3fc-annotation": "^2.4.1", - "@d3fc/d3fc-axis": "^2.2.1", - "@d3fc/d3fc-brush": "^2.0.41", - "@d3fc/d3fc-chart": "^2.6.3", - "@d3fc/d3fc-data-join": "^5.0.8", - "@d3fc/d3fc-discontinuous-scale": "^3.0.8", - "@d3fc/d3fc-element": "^5.2.3", - "@d3fc/d3fc-extent": "^3.1.4", - "@d3fc/d3fc-financial-feed": "^6.0.1", - "@d3fc/d3fc-group": "^2.0.7", - "@d3fc/d3fc-label-layout": "^6.0.8", - "@d3fc/d3fc-pointer": "^2.0.8", - "@d3fc/d3fc-random-data": "^3.0.8", - "@d3fc/d3fc-rebind": "^5.0.7", - "@d3fc/d3fc-sample": "^4.0.8", - "@d3fc/d3fc-series": "^4.0.18", - "@d3fc/d3fc-shape": "^5.0.8", - "@d3fc/d3fc-technical-indicator": "^7.0.24" + "version": "14.0.40", + "resolved": "https://registry.npmjs.org/d3fc/-/d3fc-14.0.40.tgz", + "integrity": "sha512-rThy0zNIEeWzmAkUshZJLU3ACNWvnP0o2qQyCuW/IXzAhRVuuLtGm4HnIA44+a4pFYbgGS6OSiZf5bCK/uVnUA==", + "requires": { + "@d3fc/d3fc-annotation": "^2.4.0", + "@d3fc/d3fc-axis": "^2.2.0", + "@d3fc/d3fc-brush": "^2.0.37", + "@d3fc/d3fc-chart": "^2.5.9", + "@d3fc/d3fc-data-join": "^5.0.7", + "@d3fc/d3fc-discontinuous-scale": "^3.0.7", + "@d3fc/d3fc-element": "^5.2.2", + "@d3fc/d3fc-extent": "^3.1.3", + "@d3fc/d3fc-financial-feed": "^6.0.0", + "@d3fc/d3fc-group": "^2.0.6", + "@d3fc/d3fc-label-layout": "^6.0.7", + "@d3fc/d3fc-pointer": "^2.0.7", + "@d3fc/d3fc-random-data": "^3.0.7", + "@d3fc/d3fc-rebind": "^5.0.6", + "@d3fc/d3fc-sample": "^4.0.7", + "@d3fc/d3fc-series": "^4.0.17", + "@d3fc/d3fc-shape": "^5.0.7", + "@d3fc/d3fc-technical-indicator": "^7.0.23" } }, "dashdash": { @@ -1705,9 +1705,9 @@ } }, "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" }, "lodash.camelcase": { "version": "4.3.0", @@ -2059,9 +2059,9 @@ "integrity": "sha1-JYx479FT3fk8tWEjf2EYTzaW4yc=" }, "regenerator-runtime": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz", - "integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA==" + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" }, "repeat-string": { "version": "1.6.1", diff --git a/package.json b/package.json index da3a36b..7bd2511 100644 --- a/package.json +++ b/package.json @@ -362,11 +362,11 @@ "vscode": "^1.1.36" }, "dependencies": { - "@finos/perspective": "^0.3.1", - "@finos/perspective-viewer": "^0.3.1", - "@finos/perspective-viewer-d3fc": "^0.3.1", - "@finos/perspective-viewer-highcharts": "^0.3.1", - "@finos/perspective-viewer-hypergrid": "^0.3.1", + "@finos/perspective": "^0.3.7", + "@finos/perspective-viewer": "^0.3.7", + "@finos/perspective-viewer-d3fc": "^0.3.7", + "@finos/perspective-viewer-highcharts": "^0.3.7", + "@finos/perspective-viewer-hypergrid": "^0.3.7", "apache-arrow": "^0.14.1", "avsc": "^5.4.13", "hjson": "^3.1.2", diff --git a/scripts/d3fc.plugin.js b/scripts/d3fc.plugin.js deleted file mode 100644 index bce9f46..0000000 --- a/scripts/d3fc.plugin.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["perspective-view-d3fc"]=e():t["perspective-view-d3fc"]=e()}(window,function(){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=93)}([function(t,e,n){"use strict";var r=n(3);Array.prototype.slice;n(63),Math.cos,Math.sin,Math.PI,Math.max;Array.prototype.slice,n(12);var i=n(13),a=n(5);Array.prototype.slice;var o=n(16),c=n(28),u=(n(31),n(48));n(62);function l(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a,o,c,u,l,f,s,h,d=t._root,p={data:r},g=t._x0,v=t._y0,b=t._x1,y=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((l=e>=(a=(g+b)/2))?g=a:b=a,(f=n>=(o=(v+y)/2))?v=o:y=o,i=d,!(d=d[s=f<<1|l]))return i[s]=p,t;if(c=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===c&&n===u)return p.next=d,i?i[s]=p:t._root=p,t;do{i=i?i[s]=new Array(4):t._root=new Array(4),(l=e>=(a=(g+b)/2))?g=a:b=a,(f=n>=(o=(v+y)/2))?v=o:y=o}while((s=f<<1|l)==(h=(u>=o)<<1|c>=a));return i[h]=d,i[s]=p,t}var f=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function s(t){return t[0]}function h(t){return t[1]}function d(t,e,n){var r=new p(null==e?s:e,null==n?h:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function p(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function g(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var v=d.prototype=p.prototype;v.copy=function(){var t,e,n=new p(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=g(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=g(e));return n},v.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return l(this.cover(e,n),e,n,t)},v.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),c=new Array(a),u=1/0,f=1/0,s=-1/0,h=-1/0;for(n=0;ns&&(s=r),ih&&(h=i));if(u>s||f>h)return this;for(this.cover(u,f).cover(s,h),n=0;nt||t>=i||r>e||e>=a;)switch(c=(ed||(a=u.y0)>p||(o=u.x1)=y)<<1|t>=b)&&(u=g[g.length-1],g[g.length-1]=g[g.length-1-l],g[g.length-1-l]=u)}else{var m=t-+this._x.call(null,v.data),_=e-+this._y.call(null,v.data),x=m*m+_*_;if(x=(c=(p+v)/2))?p=c:v=c,(f=o>=(u=(g+b)/2))?g=u:b=u,e=d,!(d=d[s=f<<1|l]))return this;if(!d.length)break;(e[s+1&3]||e[s+2&3]||e[s+3&3])&&(n=e,h=s)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[s]=i:delete e[s],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},v.removeAll=function(t){for(var e=0,n=t.length;e1?0:t<-1?M:Math.acos(t)}function R(t){return t>1?S:t<-1?-S:Math.asin(t)}function I(){}y(),y();function F(t){var e=t[0],n=t[1],r=N(n);return[r*N(e),r*z(e),z(n)]}function U(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function q(t){var e=P(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}y();function B(t,e){return[T(t)>M?t+Math.round(-t/O)*O:t,e]}B.invert=B;var Y=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:I,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},H=function(t,e){return T(t[0]-e[0])=0;--a)i.point((f=l[a])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function G(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,C=j*T,V=C>M,P=g*x;if($.add(E(P*j*z(C),v*A+P*N(C))),o+=V?T+j*O:T,V^d>=n^m>=n){var L=U(F(h),F(y));q(L);var D=U(a,L);q(D);var I=(V^T>=0?-1:1)*R(D[2]);(r>I||r===I&&(L[0]||L[1]))&&(c+=V^T>=0?1:-1)}}return(o<-w||o0){for(h||(a.polygonStart(),h=!0),a.lineStart(),t=0;t1&&2&i&&l.push(l.pop().concat(l.shift())),c.push(l.filter(Z))}return d}};function Z(t){return t.length>1}function J(t,e){return((t=t.x)[0]<0?t[1]-S-w:S-t[1])-((e=e.x)[0]<0?e[1]-S-w:S-e[1])}Q(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var c=a>0?M:-M,u=T(a-n);T(u-M)0?S:-S),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(a,r),e=0):i!==c&&u>=M&&(T(n-i)w?j((z(e)*(a=N(r))*z(n)-z(r)*(i=N(e))*z(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=a,r=o),i=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*S,r.point(-M,i),r.point(0,i),r.point(M,i),r.point(M,0),r.point(M,-i),r.point(0,-i),r.point(-M,-i),r.point(-M,0),r.point(-M,i);else if(T(t[0]-e[0])>w){var a=t[0]w&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]};function mt(t,e){return[N(e)*z(t),z(e)]}mt.invert=ot(R);function _t(t,e){var n=N(e),r=1+N(t)*n;return[n*z(t)/r,z(e)/r]}_t.invert=ot(function(t){return 2*j(t)});function xt(t,e){return[V(L((S+e)/2)),-t]}xt.invert=function(t,e){return[-e,2*j(C(t))-S]};function wt(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Mt(t,e){var n,r,i,a,o,c=new At(t),u=+t.value&&(c.value=t.value),l=[c];for(null==e&&(e=St);n=l.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)l.push(r=n.children[a]=new At(i[a])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(Ot)}function St(t){return t.children}function kt(t){t.data=t.data.data}function Ot(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function At(t){this.data=t,this.depth=this.height=0,this.parent=null}At.prototype=Mt.prototype={constructor:At,count:function(){return this.eachAfter(wt)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return Mt(this).eachBefore(kt)}};Array.prototype.slice;function Tt(t){if("function"!=typeof t)throw new Error;return t}function jt(){return 0}var Et=function(t){return function(){return t}};var Nt=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Ct=function(t,e,n,r,i){for(var a,o=t.children,c=-1,u=o.length,l=t.value&&(r-e)/t.value;++ch&&(h=c),v=f*f*g,(d=Math.max(h/v,v/s))>p){f-=c;break}p=d}b.push(o={value:f,dice:u1?e:1)},n}(Lt),It=function(){var t=Rt,e=!1,n=1,r=1,i=[0],a=jt,o=jt,c=jt,u=jt,l=jt;function f(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(s),i=[0],e&&t.eachBefore(Nt),t}function s(e){var n=i[e.depth],r=e.x0+n,f=e.y0+n,s=e.x1-n,h=e.y1-n;s=n-1){var f=c[e];return f.x0=i,f.y0=a,f.x1=o,void(f.y1=u)}var s=l[e],h=r/2+s,d=e+1,p=n-1;for(;d>>1;l[g]u-a){var y=(i*b+o*v)/r;t(e,d,v,i,a,y,u),t(d,n,b,y,a,o,u)}else{var m=(a*b+u*v)/r;t(e,d,v,i,a,o,m),t(d,n,b,i,m,o,u)}}(0,u,t.value,e,n,r,i)},Ut=(function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,c,u,l,f,s=-1,h=o.length,d=t.value;++s1?e:1)},n}(Lt),n(6));n(61);function qt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Bt(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var Yt=Array.prototype,Ht=Yt.map,Wt=Yt.slice,Xt={name:"implicit"};function Gt(){var t=Object(i.a)(),e=[],n=[],r=Xt;function a(i){var a=i+"",o=t.get(a);if(!o){if(r!==Xt)return r;t.set(a,o=e.push(i))}return n[(o-1)%n.length]}return a.domain=function(n){if(!arguments.length)return e.slice();e=[],t=Object(i.a)();for(var r,o,c=-1,u=n.length;++cr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function ne(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i2?re:ne,i=a=null,s}function s(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),c,u)))(t(l(e)))}return s.invert=function(n){return l(e((a||(a=r(c,o.map(t),Ut.c)))(n)))},s.domain=function(t){return arguments.length?(o=Ht.call(t,Qt),l===Jt||(l=ee(o)),f()):o.slice()},s.range=function(t){return arguments.length?(c=Wt.call(t),f()):c.slice()},s.rangeRound=function(t){return c=Wt.call(t),u=Ut.f,f()},s.clamp=function(t){return arguments.length?(l=t?ee(o):Jt,s):l!==Jt},s.interpolate=function(t){return arguments.length?(u=t,f()):u},s.unknown=function(t){return arguments.length?(n=t,s):n},function(n,r){return t=n,e=r,f()}}function oe(t,e){return ae()(t,e)}var ce=function(t,e,n,i){var a,o=Object(r.tickStep)(t,e,n);switch((i=Object(b.c)(null==i?",f":i)).type){case"s":var c=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(a=Object(b.e)(o,c))||(i.precision=a),Object(b.b)(i,c);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(a=Object(b.f)(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=a-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(a=Object(b.d)(o))||(i.precision=a-2*("%"===i.type))}return Object(b.a)(i)};function ue(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(r.ticks)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ce(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,a=e(),o=0,c=a.length-1,u=a[o],l=a[c];return l0?(u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i,i=Object(r.tickIncrement)(u,l,n)):i<0&&(u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i,i=Object(r.tickIncrement)(u,l,n)),i>0?(a[o]=Math.floor(u/i)*i,a[c]=Math.ceil(l/i)*i,e(a)):i<0&&(a[o]=Math.ceil(u*i)/i,a[c]=Math.floor(l*i)/i,e(a)),t},t}function le(){var t=oe(Jt,Jt);return t.copy=function(){return ie(t,le())},qt.apply(t,arguments),ue(t)}var fe=function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0)){if(a/=h,h<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=r-u,h||!(a<0)){if(a/=h,h<0){if(a>s)return;a>f&&(f=a)}else if(h>0){if(a0)){if(a/=d,d<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=i-l,d||!(a<0)){if(a/=d,d<0){if(a>s)return;a>f&&(f=a)}else if(d>0){if(a0||s<1)||(f>0&&(t[0]=[u+f*h,l+f*d]),s<1&&(t[1]=[u+s*h,l+s*d]),!0)}}}}}function Be(t,e,n,r,i){var a=t[1];if(a)return!0;var o,c,u=t[0],l=t.left,f=t.right,s=l[0],h=l[1],d=f[0],p=f[1],g=(s+d)/2,v=(h+p)/2;if(p===h){if(g=r)return;if(s>d){if(u){if(u[1]>=i)return}else u=[g,n];a=[g,i]}else{if(u){if(u[1]1)if(s>d){if(u){if(u[1]>=i)return}else u=[(n-c)/o,n];a=[(i-c)/o,i]}else{if(u){if(u[1]=r)return}else u=[e,o*e+c];a=[r,o*r+c]}else{if(u){if(u[0]=-hn)){var d=u*u+l*l,p=f*f+s*s,g=(s*d-l*p)/h,v=(u*p-f*d)/h,b=Ge.pop()||new $e;b.arc=t,b.site=i,b.x=g+o,b.y=(b.cy=v+c)+Math.sqrt(g*g+v*v),t.circle=b;for(var y=null,m=ln._;m;)if(b.ysn)c=c.L;else{if(!((i=a-on(c,o))>sn)){r>-sn?(e=c.P,n=c):i>-sn?(e=c,n=c.N):e=n=c;break}if(!c.R){e=c;break}c=c.R}!function(t){un[t.index]={site:t,halfedges:[]}}(t);var u=tn(t);if(cn.insert(e,u),e||n){if(e===n)return Qe(e),n=tn(e.site),cn.insert(u,n),u.edge=n.edge=Ie(e.site,u.site),Ke(e),void Ke(n);if(n){Qe(e),Qe(n);var l=e.site,f=l[0],s=l[1],h=t[0]-f,d=t[1]-s,p=n.site,g=p[0]-f,v=p[1]-s,b=2*(h*v-d*g),y=h*h+d*d,m=g*g+v*v,_=[(v*y-d*m)/b+f,(h*m-g*y)/b+s];Ue(n.edge,l,p,_),u.edge=Ie(l,t,null,_),n.edge=Ie(t,p,null,_),Ke(e),Ke(n)}else u.edge=Ie(e.site,u.site)}}function an(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var c=(n=o.site)[0],u=n[1],l=u-e;if(!l)return c;var f=c-r,s=1/a-1/l,h=f/l;return s?(-h+Math.sqrt(h*h-2*s*(f*f/(-2*l)-u+l/2+i-a/2)))/s+r:(r+c)/2}function on(t,e){var n=t.N;if(n)return an(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var cn,un,ln,fn,sn=1e-6,hn=1e-12;function dn(t,e){return e[1]-t[1]||e[0]-t[0]}function pn(t,e){var n,r,i,a=t.sort(dn).pop();for(fn=[],un=new Array(t.length),cn=new Re,ln=new Re;;)if(i=Xe,a&&(!i||a[1]sn||Math.abs(i[0][1]-i[1][1])>sn)||delete fn[a]}(o,c,u,l),function(t,e,n,r){var i,a,o,c,u,l,f,s,h,d,p,g,v=un.length,b=!0;for(i=0;isn||Math.abs(g-h)>sn)&&(u.splice(c,0,fn.push(Fe(o,d,Math.abs(p-t)sn?[t,Math.abs(s-t)sn?[Math.abs(h-r)sn?[n,Math.abs(s-n)sn?[Math.abs(h-e)=c)return null;var u=t-i.site[0],l=e-i.site[1],f=u*u+l*l;do{i=a.cells[r=o],o=null,i.halfedges.forEach(function(n){var r=a.edges[n],c=r.left;if(c!==i.site&&c||(c=r.right)){var u=t-c[0],l=e-c[1],s=u*u+l*l;sr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}var An=function(){var t,e,n=xn,r=wn,i=On,a=Sn,u=kn,l=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],s=250,h=Ut.j,d=[],p=Object(o.dispatch)("start","zoom","end"),g=500,v=150,b=0;function y(t){t.property("__zoom",Mn).on("wheel.zoom",k).on("mousedown.zoom",O).on("dblclick.zoom",A).filter(u).on("touchstart.zoom",T).on("touchmove.zoom",j).on("touchend.zoom touchcancel.zoom",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new bn(e,t.x,t.y)}function _(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new bn(t.k,r,i)}function x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function w(t,e,n){t.on("start.zoom",function(){M(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){M(this,arguments).end()}).tween("zoom",function(){var t=arguments,i=M(this,t),a=r.apply(this,t),o=n||x(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),u=this.__zoom,l="function"==typeof e?e.apply(this,t):e,f=h(u.invert(o).concat(c/u.k),l.invert(o).concat(c/l.k));return function(t){if(1===t)t=l;else{var e=f(t),n=c/e[2];t=new bn(n,o[0]-e[0]*n,o[1]-e[1]*n)}i.zoom(null,t)}})}function M(t,e){for(var n,r=0,i=d.length;rb}t.zoom("mouse",i(_(t.that.__zoom,t.mouse[0]=Object(Ee.mouse)(t.that),t.mouse[1]),t.extent,f))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),Object(c.c)(Ee.event.view,t.moved),_n(),t.end()},!0),a=Object(Ee.mouse)(this),o=Ee.event.clientX,u=Ee.event.clientY;Object(c.b)(Ee.event.view),mn(),t.mouse=[a,this.__zoom.invert(a)],Object(Ce.a)(this),t.start()}}function A(){if(n.apply(this,arguments)){var t=this.__zoom,e=Object(Ee.mouse)(this),a=t.invert(e),o=t.k*(Ee.event.shiftKey?.5:2),c=i(_(m(t,o),e,a),r.apply(this,arguments),f);_n(),s>0?Object(Ee.select)(this).transition().duration(s).call(w,c,e):Object(Ee.select)(this).call(y.transform,c)}}function T(){if(n.apply(this,arguments)){var e,r,i,a,o=M(this,arguments),c=Ee.event.changedTouches,u=c.length;for(mn(),r=0;r=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.hasOwnProperty(e)?{space:i[e],local:t}:t};var o=function(t){var e=a(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===r&&e.documentElement.namespaceURI===r?e.createElement(t):e.createElementNS(n,t)}})(e)};function c(){}var u=function(t){return null==t?c:function(){return this.querySelector(t)}};function l(){return[]}var f=function(t){return null==t?l:function(){return this.querySelectorAll(t)}},s=function(t){return function(){return this.matches(t)}},h=function(t){return new Array(t.length)};function d(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}d.prototype={constructor:d,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var p="$";function g(t,e,n,r,i,a){for(var o,c=0,u=e.length,l=a.length;ce?1:t>=e?0:NaN}var y=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function m(t,e){return t.style.getPropertyValue(e)||y(t).getComputedStyle(t,null).getPropertyValue(e)}function _(t){return t.trim().split(/^|\s+/)}function x(t){return t.classList||new w(t)}function w(t){this._node=t,this._names=_(t.getAttribute("class")||"")}function M(t,e){for(var n=x(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function k(){this.textContent=""}function O(){this.innerHTML=""}function A(){this.nextSibling&&this.parentNode.appendChild(this)}function T(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function j(){return null}function E(){var t=this.parentNode;t&&t.removeChild(this)}function N(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function C(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var V={},z=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(V={mouseenter:"mouseover",mouseleave:"mouseout"}));function P(t,e,n){return t=L(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function L(t,e,n){return function(r){var i=z;z=r;try{t.call(this,this.__data__,e,n)}finally{z=i}}}function D(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=M&&(M=w+1);!(x=m[M])&&++M=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=b);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):m(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=_(t+"");if(arguments.length<2){for(var r=x(this.node()),i=-1,a=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),o=a.length;if(!(arguments.length<2)){for(c=e?R:D,null==n&&(n=!1),r=0;r2?n-2:0),i=2;i2?n-2:0),i=2;i=a&&(o.shift(),o.push(n(t,i))),i=t&&(i=n.mean(e)),i}}(i),c=void 0;return r.map(function(e,n){var r=t(e,n);return M(c=void 0===c?o(r):r*a+(1-a)*c)})};return r.period=function(){return arguments.length?(e=w(arguments.length<=0?void 0:arguments[0]),r):e},r.value=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],r):t},r},O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},T=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,o=t/e,c=[],u=0;u=e.x+e.width||t.x+t.width<=e.x||t.y>=e.y+e.height||t.y+t.height<=e.y)}(t,e)){var n=Math.max(t.x,e.x),r=Math.min(t.x+t.width,e.x+e.width),i=Math.max(t.y,e.y);return(r-n)*(Math.min(t.y+t.height,e.y+e.height)-i)}return 0},G=function(t,e){return n.sum(t.map(function(n,r){return e===r?0:X(t[e],n)}))},$=function(t,e,n,r,i){return{x:t,y:e,width:n,height:r,location:i}},K=function(t){var e=t.x,n=t.y,r=t.width,i=t.height;return[$(e,n,r,i,"bottom-right"),$(e-r,n,r,i,"bottom-left"),$(e-r,n-i,r,i,"top-left"),$(e,n-i,r,i,"top-right"),$(e,n-i/2,r,i,"middle-right"),$(e-r/2,n,r,i,"bottom-center"),$(e-r,n-i/2,r,i,"middle-left"),$(e-r/2,n-i,r,i,"top-center")]},Q=function(t,e,n){return[].concat(C(t.slice(0,e)),[n],C(t.slice(e+1)))},Z=function(t,e){return ts?p="up":f2&&void 0!==arguments[2]?arguments[2]:{},r=[10],i=null,a=function(){},o=null,c=6,f=6,s=3,h=l.line(),d=W("g","tick").key(Et),p=W("path","domain"),g=n.labelOffset||function(){return{offset:[0,f+s]}},v=n.tickPath||function(){return{path:[[0,0],[0,f]]}},b=function(t,e){var n=0;return t.bandwidth&&(n=t.bandwidth()/2,t.round()&&(n=Math.round(n))),function(r){return e(t(r)+n,0)}},y=function(t,e){return _()?"translate("+e+", "+t+")":"translate("+t+", "+e+")"},m=function(t){return _()?t.map(function(t){return[t[1],t[0]]}):t},_=function(){return"left"===t||"right"===t},x=function(t,n,r){return e[t]?e[t].apply(e,n):r},w=function(n){n.selection&&(d.transition(n),p.transition(n)),n.each(function(n,l,f){var s=f[l],w=u.select(s);s.__scale__||w.attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor","right"===t?"start":"left"===t?"end":"middle");var M=s.__scale__||e;s.__scale__=e.copy();var S=null==i?x("ticks",r,e.domain()):i,k=null==o?x("tickFormat",r,Et):o,O="bottom"===t||"right"===t?1:-1,A=function(t){var e=N(t,2),n=e[0],r=e[1];return[n,O*r]},T=e.range(),j=m([[T[0],O*c],[T[0],0],[T[1],0],[T[1],O*c]]);p(w,[n]).attr("d",h(j)).attr("stroke","#000");var E=d(w,S),V=S.map(function(t,e){return g(t,e,S)}),z=S.map(function(t,e){return v(t,e,S)});E.enter().attr("transform",b(M,y)).append("path").attr("stroke","#000"),E.enter().append("text").attr("transform",function(t,e){return y.apply(void 0,C(A(V[e].offset)))}).attr("fill","#000"),E.exit().attr("transform",b(e,y)),E.select("path").attr("visibility",function(t,e){return z[e].hidden&&"hidden"}).attr("d",function(t,e){return h(m(z[e].path.map(A)))}),E.select("text").attr("visibility",function(t,e){return V[e].hidden&&"hidden"}).attr("transform",function(t,e){return y.apply(void 0,C(A(V[e].offset)))}).attr("dy",function(){var e="0em";return _()?e="0.32em":"bottom"===t&&(e="0.71em"),e}).text(k),E.attr("transform",b(e,y)),a(E,n,l)})};return w.tickFormat=function(){return arguments.length?(o=arguments.length<=0?void 0:arguments[0],w):o},w.tickSize=function(){return arguments.length?(f=c=Number(arguments.length<=0?void 0:arguments[0]),w):f},w.tickSizeInner=function(){return arguments.length?(f=Number(arguments.length<=0?void 0:arguments[0]),w):f},w.tickSizeOuter=function(){return arguments.length?(c=Number(arguments.length<=0?void 0:arguments[0]),w):c},w.tickPadding=function(){return arguments.length?(s=arguments.length<=0?void 0:arguments[0],w):s},w.decorate=function(){return arguments.length?(a=arguments.length<=0?void 0:arguments[0],w):a},w.scale=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],w):e},w.ticks=function(){for(var t=arguments.length,e=Array(t),n=0;n-1)&&!e.some(function(e){return $t(t,e)})){var n=e.filter(function(e){return!$t(e,t)});n.push(t),Xt(t,n)}};function Qt(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}if(Object.setPrototypeOf(Qt.prototype,HTMLElement.prototype),Object.setPrototypeOf(Qt,HTMLElement),"function"!=typeof HTMLElement)throw new Error("d3fc-element depends on Custom Elements (v1). Make sure that you load a polyfill in older browsers. See README.");var Zt=function(t,e){return function(n){function r(){return A(this,r),E(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return j(r,Qt),T(r,[{key:"attributeChangedCallback",value:function(t){switch(t){case"use-device-pixel-ratio":this.requestRedraw()}}},{key:"connectedCallback",value:function(){0===this.childNodes.length&&this.appendChild(t()),function(t){null==t.__measureListener__&&(t.__measureListener__=function(e){return t.setMeasurements(e.detail)},t.addEventListener("measure",t.__measureListener__))}(this)}},{key:"disconnectedCallback",value:function(){!function(t){null!=t.__measureListener__&&(t.removeEventListener("measure",t.__measureListener__),t.__measureListener__=null)}(this)}},{key:"setMeasurements",value:function(t){var n,r=t.width,i=t.height,a=(n=this.childNodes,Array.isArray(n)?n:Array.from(n)),o=a[0];if(a.slice(1).length>0)throw new Error("A d3fc-svg/canvas element must only contain a single svg/canvas element.");e(o,{width:r,height:i})}},{key:"requestRedraw",value:function(){Kt(this)}},{key:"useDevicePixelRatio",get:function(){return this.hasAttribute("use-device-pixel-ratio")&&"false"!==this.getAttribute("use-device-pixel-ratio")},set:function(t){t&&!this.useDevicePixelRatio?this.setAttribute("use-device-pixel-ratio",""):!t&&this.useDevicePixelRatio&&this.removeAttribute("use-device-pixel-ratio"),this.requestRedraw()}}],[{key:"observedAttributes",get:function(){return["use-device-pixel-ratio"]}}]),r}()},Jt=Zt(function(){return document.createElement("canvas")},function(t,e){var n=e.width,r=e.height;t.setAttribute("width",n),t.setAttribute("height",r)});function te(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(te.prototype,HTMLElement.prototype),Object.setPrototypeOf(te,HTMLElement);var ee=function(t){t.autoResize?ne(t):re(t)},ne=function(t){null==t.__autoResizeListener__&&(t.__autoResizeListener__=function(){return Kt(t)},addEventListener("resize",t.__autoResizeListener__))},re=function(t){null!=t.__autoResizeListener__&&(removeEventListener("resize",t.__autoResizeListener__),t.__autoResizeListener__=null)},ie=function(t){function e(){return A(this,e),E(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return j(e,te),T(e,[{key:"connectedCallback",value:function(){ee(this)}},{key:"disconnectedCallback",value:function(){re(this)}},{key:"requestRedraw",value:function(){Kt(this)}},{key:"attributeChangedCallback",value:function(t){switch(t){case"auto-resize":ee(this)}}},{key:"autoResize",get:function(){return this.hasAttribute("auto-resize")&&"false"!==this.getAttribute("auto-resize")},set:function(t){t&&!this.autoResize?this.setAttribute("auto-resize",""):!t&&this.autoResize&&this.removeAttribute("auto-resize"),ee(this)}}],[{key:"observedAttributes",get:function(){return["auto-resize"]}}]),e}(),ae=Zt(function(){return document.createElementNS("http://www.w3.org/2000/svg","svg")},function(t,e){var n=e.width,r=e.height;t.setAttribute("viewBox","0 0 "+n+" "+r)}),oe="d3fc-canvas,d3fc-svg{position:relative;display:block}d3fc-canvas>canvas,d3fc-svg>svg{position:absolute;height:100%;width:100%}d3fc-svg>svg{overflow:visible}",ce=document.createElement("style");if(ce.setAttribute("type","text/css"),document.querySelector("head").appendChild(ce),ce.styleSheet?ce.styleSheet.cssText+=oe:ce.textContent+=oe,"object"!==("undefined"==typeof customElements?"undefined":O(customElements))||"function"!=typeof customElements.define)throw new Error("d3fc-element depends on Custom Elements (v1). Make sure that you load a polyfill in older browsers. See README.");customElements.define("d3fc-canvas",Jt),customElements.define("d3fc-group",ie),customElements.define("d3fc-svg",ae);var ue=function(){for(var t=arguments.length,e=Array(t),n=0;n'),T(p,[g(t)]).attr("class",function(t){return"x-label "+t+"-label"}).text(l(t)),j(p,[d(t)]).attr("class",function(t){return"y-label "+t+"-label"}).text(f(t)),O(p,[g(t)]).attr("class",function(t){return"x-axis "+t+"-axis"}).style("height",s(t)).on("measure",function(t,e,n){var r=u.event.detail,a=r.width,o=r.height;"top"===t&&u.select(n[e]).select("svg").attr("viewBox","0 "+-o+" "+a+" "+o),i.range([0,a])}).on("draw",function(t,e,r){var a="top"===t?o.top(i):o.bottom(i);a.decorate(x),n(u.select(r[e])).select("svg").call(_(a))}),A(p,[d(t)]).attr("class",function(t){return"y-axis "+t+"-axis"}).style("width",h(t)).on("measure",function(t,e,n){var r=u.event.detail,i=r.width,o=r.height;"left"===t&&u.select(n[e]).select("svg").attr("viewBox",-i+" 0 "+i+" "+o),a.range([o,0])}).on("draw",function(t,e,r){var i="left"===t?c.left(a):c.right(a);i.decorate(M),n(u.select(r[e])).select("svg").call(w(i))}),p.select("d3fc-canvas.plot-area").on("draw",function(t,e,n){var r=u.select(n[e]).select("canvas").node();b.context(r.getContext("2d")).xScale(i).yScale(a),b(t)}),p.select("d3fc-svg.plot-area").on("draw",function(t,e,r){y.xScale(i).yScale(a),n(u.select(r[e])).select("svg").call(y)}),p.each(function(t,e,n){return n[e].requestRedraw()}),S(p,t,e)})},N=v(/range\w*/,/tickFormat/);return p(E,i,N,m("x")),p(E,a,N,m("y")),p(E,_,m("x")),p(E,w,m("y")),E.xOrient=function(){return arguments.length?(g=se(arguments.length<=0?void 0:arguments[0]),E):g},E.yOrient=function(){return arguments.length?(d=se(arguments.length<=0?void 0:arguments[0]),E):d},E.xDecorate=function(){return arguments.length?(x=arguments.length<=0?void 0:arguments[0],E):x},E.yDecorate=function(){return arguments.length?(M=arguments.length<=0?void 0:arguments[0],E):M},E.xLabel=function(){return arguments.length?(l=se(arguments.length<=0?void 0:arguments[0]),E):l},E.yLabel=function(){return arguments.length?(f=se(arguments.length<=0?void 0:arguments[0]),E):f},E.xAxisHeight=function(){return arguments.length?(s=se(arguments.length<=0?void 0:arguments[0]),E):s},E.yAxisWidth=function(){return arguments.length?(h=se(arguments.length<=0?void 0:arguments[0]),E):h},E.canvasPlotArea=function(){return arguments.length?(b=arguments.length<=0?void 0:arguments[0],E):b},E.svgPlotArea=function(){return arguments.length?(y=arguments.length<=0?void 0:arguments[0],E):y},E.decorate=function(){return arguments.length?(S=arguments.length<=0?void 0:arguments[0],E):S},E},de=function(){for(var t=arguments.length,e=Array(t),n=0;n.y-label").text(o),t.select(".top-label").style("margin-top","2em"),t.enter().append("div").attr("class","chart-label").style("grid-column",3).style("-ms-grid-column",3).style("grid-row",1).style("-ms-grid-row",1).style("height","2em").style("line-height","2em").style("text-align","center"),t.select(".chart-label").text(a(e)),u(t,e,n)}),e.call(l)};return p(f,l,b(/^x/,/^y/)),f.chartLabel=function(){return arguments.length?(a=pe(arguments.length<=0?void 0:arguments[0]),f):a},f.yLabel=function(){return arguments.length?(o=pe(arguments.length<=0?void 0:arguments[0]),f):o},f.plotArea=function(){return arguments.length?(c=arguments.length<=0?void 0:arguments[0],f):c},f.decorate=function(){return arguments.length?(u=arguments.length<=0?void 0:arguments[0],f):u},f}},ve=ge(function(t,e){return t.svgPlotArea(e)},st),be=ge(function(t,e){return t.canvasPlotArea(e)},ht),ye=function(t){return[t[1],t[0]]},me=function(t){var e=function(t){switch(t){case"x":return s.brushX();case"y":return s.brushY();case"xy":return s.brush()}}(t),n=f.dispatch("brush","start","end"),i=r.scaleIdentity(),a=r.scaleIdentity(),o=W("g","brush"),c=function(e,n,r){switch(t){case"x":return e.map(n);case"y":return e.map(r);case"xy":return[[n(e[0][0]),r(e[0][1])],[n(e[1][0]),r(e[1][1])]]}},l=function(e){var n=r.scaleLinear().domain(i.domain());return"x"===t?e.map(n.invert):"xy"===t?[n.invert(e[0][0]),n.invert(e[1][0])]:void 0},h=function(e){var n=r.scaleLinear().domain(ye(a.domain()));return"y"===t?[e[1],e[0]].map(n.invert):"xy"===t?[n.invert(e[1][1]),n.invert(e[0][1])]:void 0},p=function(t){var e;if(!t.sourceEvent||"draw"!==t.sourceEvent.type)if(t.selection){var o=(e=t.selection,c(e,r.scaleLinear().domain(i.range()),r.scaleLinear().domain(ye(a.range()))));n.call(t.type,{},{selection:o,xDomain:l(o),yDomain:h(o)})}else n.call(t.type,{},{})},g=function(t){t.each(function(t,n,l){e.extent([[i.range()[0],a.range()[1]],[i.range()[1],a.range()[0]]]),e.on("end",function(){return p(u.event)}).on("brush",function(){return p(u.event)}).on("start",function(){return p(u.event)}),o(u.select(l[n]),[t]).call(e).call(e.move,t?c(t,r.scaleLinear().domain(i.range()).invert,r.scaleLinear().domain(ye(a.range())).invert):null)})};return g.xScale=function(){return arguments.length?(i=arguments.length<=0?void 0:arguments[0],g):i},g.yScale=function(){return arguments.length?(a=arguments.length<=0?void 0:arguments[0],g):a},d(g,n,"on"),d(g,e,"filter","handleSize"),g};e.indicatorBollingerBands=function(){var t=2,e=S().accumulator(function(e){var r=e&&n.deviation(e),i=e&&n.mean(e);return{average:i,upper:M(i+t*r),lower:M(i-t*r)}}),r=function(t){return e(t)};return r.multiplier=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],r):t},d(r,e,"period","value"),r},e.indicatorExponentialMovingAverage=k,e.indicatorMacd=function(){var t=_,e=k().period(12),r=k().period(26),i=k().period(9),a=function(a){e.value(t),r.value(t);var o=n.zip(e(a),r(a)).map(function(t){return void 0!==t[0]&&void 0!==t[1]?t[0]-t[1]:void 0}),c=i(o);return n.zip(o,c).map(function(t){return{macd:t[0],signal:t[1],divergence:void 0!==t[0]&&void 0!==t[1]?t[0]-t[1]:void 0}})};return a.value=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],a):t},p(a,e,y({period:"fastPeriod"})),p(a,r,y({period:"slowPeriod"})),p(a,i,y({period:"signalPeriod"})),a},e.indicatorRelativeStrengthIndex=function(){var t=S().period(14),e=function(t){var e=N(t,2),n=e[0],r=e[1];return nr?0:r-n},i=function(t,e){return void 0!==e?(i=e)+((r=t)[r.length-1]-i)/r.length:n.mean(t);var r,i},a=function(a){var o,c,u,l=(o=void 0,c=void 0,u=void 0,function(t){if(t){if(void 0!==o){var a=n.pairs([o].concat(C(t)));return c=i(a.map(e),c),u=i(a.map(r),u),M(100-100/(1+(isNaN(o)?NaN:u/c)))}o=t[0]}else void 0!==o&&(o=NaN)});return t.accumulator(l),t(a)};return d(a,t,"period","value"),a},e.indicatorStochasticOscillator=function(){var t=function(t,e){return t.close},e=function(t,e){return t.high},r=function(t,e){return t.low},i=S().period(5).defined(function(n){return null!=t(n)&&null!=e(n)&&null!=r(n)}).accumulator(function(i){var a=i&&n.max(i,e),o=i&&n.min(i,r);return M(i&&100*(t(i[i.length-1])-o)/(a-o))}),a=V().period(3),o=function(t){var e=i(t),n=a(e);return e.map(function(t,e){return{k:t,d:n[e]}})};return o.closeValue=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],o):t},o.highValue=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],o):e},o.lowValue=function(){return arguments.length?(r=arguments.length<=0?void 0:arguments[0],o):r},p(o,i,y({period:"kPeriod"})),p(o,a,y({period:"dPeriod"})),o},e.indicatorForceIndex=function(){var t=function(t,e){return t.volume},e=function(t,e){return t.close},n=k().period(13),r=S().period(2).defined(function(n){return null!=e(n)&&null!=t(n)}).accumulator(function(n){return n&&M((e(n[1])-e(n[0]))*t(n[1]))}),i=function(t){var e=r(t);return n(e)};return i.volumeValue=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],i):t},i.closeValue=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],i):e},d(i,n,"period"),i},e.indicatorEnvelope=function(){var t=.1,e=_,n=function(n){return n.map(function(n){return{lower:M(e(n)*(1-t)),upper:M(e(n)*(1+t))}})};return n.factor=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],n):t},n.value=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],n):e},n},e.indicatorElderRay=function(){var t=function(t,e){return t.close},e=function(t,e){return t.high},r=function(t,e){return t.low},i=k().period(13),a=function(a){return i.value(t),n.zip(a,i(a)).map(function(t){return{bullPower:M(e(t[0])-t[1]),bearPower:M(r(t[0])-t[1])}})};return a.closeValue=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],a):t},a.highValue=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],a):e},a.lowValue=function(){return arguments.length?(r=arguments.length<=0?void 0:arguments[0],a):r},d(a,i,"period"),a},e.indicatorMovingAverage=V,e.scaleDiscontinuous=function t(e){var n=this;arguments.length||(e=r.scaleIdentity());var i=z(),a=function(t){var n=e.domain(),r=e.range(),a=i.distance(n[0],n[1]);return i.distance(n[0],t)/a*(r[1]-r[0])+r[0]};return a.invert=function(t){var n=e.domain(),r=e.range(),a=(t-r[0])/(r[1]-r[0])*i.distance(n[0],n[1]);return i.offset(n[0],a)},a.domain=function(){if(!arguments.length)return e.domain();var t=arguments.length<=0?void 0:arguments[0],n=i.clampUp(t[0]),r=i.clampDown(t[1]);return e.domain([n,r]),a},a.nice=function(){e.nice();var t=e.domain(),n=i.clampUp(t[0]),r=i.clampDown(t[1]);return e.domain([n,r]),a},a.ticks=function(){for(var t=arguments.length,r=Array(t),a=0;a0,u=e,l=o?i.timeMonday.floor(n):i.timeSaturday.ceil(n);if(u-=l.getTime()-n.getTime(),o&&u>0||c&&u<0)return new Date(n.getTime()+e);n=o?l:i.timeDay.offset(l,2);var f=Math.floor(u/432e6);return n=i.timeDay.offset(n,7*f),u-=432e6*f,n=new Date(n.getTime()+u)},r.copy=function(){return r},r},e.discontinuityIdentity=z,e.discontinuityRange=function(){for(var t=arguments.length,e=Array(t),n=0;ne[0]&&t=i[0]&&r[1]<=i[1];var r,i}).map(function(t){return t[1]-t[0]});return n-t-r.reduce(function(t,e){return t+e},0)}},a=function(t,e){return t instanceof Date?new Date(t.getTime()+e):t+e};return i.offset=function(t,n){if(n>0){var r=function(){for(var r=i.clampUp(t),o=n;o>0;){var c=e.filter(function(t){return t[0]>r}).sort(function(t,e){return t[0]-e[0]});if(c.length){var u=c[0],l=u[0]-r;l>o?(r=a(r,o),o=0):(r=u[1],o-=l)}else r=a(r,o),o=0}return{v:r}}();if("object"===(void 0===r?"undefined":O(r)))return r.v}else{var o=function(){for(var r=i.clampDown(t),o=n;o<0;){var c=e.filter(function(t){return t[1]=i.length)return i;var a=function(t){var i=t.map(function(t){return[e(t),r(t)]});return n.range(1,i.length-1).map(function(t){var e=i[t-1],n=i[t],r=i[t+1];return.5*Math.abs((e[0]-r[0])*(n[1]-e[1])-(e[0]-n[0])*(r[1]-e[1]))})}(i),o=t(a),c=t(i.slice(1,i.length-1)).map(function(t,e){var r=o[e],i=n.max(r);return t[r.indexOf(i)]});return[].concat([i[0]],c,[i[i.length-1]])};return d(i,t,"bucketSize"),i.x=function(t){return arguments.length?(e=t,i):e},i.y=function(t){return arguments.length?(r=t,i):r},i},e.largestTriangleThreeBucket=function(){var t=function(t){return t},e=function(t){return t},r=R(),i=function(i){if(r.bucketSize()>=i.length)return i;var a=r(i.slice(1,i.length-1)),o=i[0],c=i[i.length-1],u=[].concat([o],a,[c]),l=t(o),f=e(o),s=a.map(function(r,i){var a=n.mean(u[i+1],t),o=n.mean(u[i+1],e),c=r.map(function(n){return[t(n),e(n)]}),s=c.map(function(t){return.5*Math.abs((l-a)*(t[1]-f)-(l-t[0])*(o-f))}),h=s.indexOf(n.max(s)),d=c[h];return l=d[0],f=d[1],r[h]});return[].concat([i[0]],s,[i[i.length-1]])};return d(i,r,"bucketSize"),i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(e=t,i):e},i},e.modeMedian=function(){var t=R(),e=function(t){return t},r=function(r){if(t.bucketSize()>r.length)return r;var i=n.extent(r,e),a=t(r.slice(1,r.length-1)).map(function(t,n){var r,a,o={},c=!0,u=t.map(e),l=u.filter(function(t){return t===i[0]||t===i[1]}).map(function(t){return u.indexOf(t)})[0];return void 0!==l?t[l]:(u.forEach(function(t,e){void 0===o[t]&&(o[t]=0),o[t]++,o[t]>o[r]||void 0===r?(r=t,a=e,c=!0):o[t]===o[r]&&(c=!1)}),c?t[a]:t[Math.floor(t.length/2)])});return[].concat([r[0]],a,[r[r.length-1]])};return d(r,t,"bucketSize"),r.value=function(t){return arguments.length?(e=t,r):e},r},e.rebind=d,e.rebindAll=p,e.exclude=v,e.include=b,e.includeMap=y,e.prefix=m,e.shapeOhlc=F,e.shapeBar=U,e.shapeCandlestick=q,e.shapeBoxPlot=B,e.shapeErrorBar=Y,e.layoutLabel=function(t){var e=function(){},n=function(){return[0,0]},i=function(t,e){return[t.x,t.y]},a=t||function(t){return t},o=function(){},c=r.scaleIdentity(),l=r.scaleIdentity(),f=W("g","label"),s=function(t){t.each(function(t,r,s){var h=f(u.select(s[r]),t).call(o),d=h.nodes(),p=d.map(function(t,e){var r=u.select(t).datum(),a=i(r,e,d),o=[c(a[0]),l(a[1])],f=n(r,e,d);return{hidden:!1,x:o[0],y:o[1],width:f[0],height:f[1]}}),g=a(p);h.attr("style",function(t,e){return"display:"+(g[e].hidden?"none":"inherit")}).attr("transform",function(t,e){return"translate("+g[e].x+", "+g[e].y+")"}).attr("layout-width",function(t,e){return g[e].width}).attr("layout-height",function(t,e){return g[e].height}).attr("anchor-x",function(t,e,n){return p[e].x-g[e].x}).attr("anchor-y",function(t,e,n){return p[e].y-g[e].y}),h.call(o),e(h,t,r)})};return p(s,f,b("key")),p(s,a),s.size=function(){return arguments.length?(n=H(arguments.length<=0?void 0:arguments[0]),s):n},s.position=function(){return arguments.length?(i=H(arguments.length<=0?void 0:arguments[0]),s):i},s.component=function(){return arguments.length?(o=arguments.length<=0?void 0:arguments[0],s):o},s.decorate=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],s):e},s.xScale=function(){return arguments.length?(c=arguments.length<=0?void 0:arguments[0],s):c},s.yScale=function(){return arguments.length?(l=arguments.length<=0?void 0:arguments[0],s):l},s},e.layoutTextLabel=function(t){var e=2,n=function(t){return t},r=W("text"),i=W("rect"),a=W("circle"),o=function(t){t.each(function(t,o,c){var l=c[o],f=u.select(l),s=Number(l.getAttribute("layout-width")),h=Number(l.getAttribute("layout-height"));i(f,[t]).attr("width",s).attr("height",h);var d=Number(l.getAttribute("anchor-x")),p=Number(l.getAttribute("anchor-y"));a(f,[t]).attr("r",2).attr("cx",d).attr("cy",p);var g=r(f,[t]);g.enter().attr("dy","0.9em").attr("transform","translate("+e+", "+e+")"),g.text(n)})};return o.padding=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],o):e},o.value=function(){return arguments.length?(n=H(arguments.length<=0?void 0:arguments[0]),o):n},o},e.layoutGreedy=function(){var t=void 0,e=function(e,n,r){return G(r,n)+function(e){return t?e.width*e.height-X(e,t):0}(e)},n=function(t){var n=J().locationScore(e).rectangles(t);return t.forEach(function(t,e){K(t).forEach(function(t,r){n=n(t,e)})}),n.rectangles()};return n.bounds=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],n):t},n},e.layoutAnnealing=function(){var t=1e3,e=1,n=void 0,r=function(t,e,r){return G(r,e)+function(t){return n?t.width*t.height-X(t,n):0}(t)+function(t){switch(t.location){case"bottom-right":return 0;case"middle-right":case"bottom-center":return t.width*t.height/8}return t.width*t.height/4}(t)},i=function(n){for(var i,a=t,o=J().locationScore(r).winningScore(function(t,e){return Math.exp((e-t)/a)>Math.random()}).rectangles(n);a>0;){var c=tt(n);o=o((i=K(n[c]))[tt(i)],c),a-=e}return o.rectangles()};return i.temperature=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],i):t},i.cooling=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],i):e},i.bounds=function(){return arguments.length?(n=arguments.length<=0?void 0:arguments[0],i):n},i},e.layoutRemoveOverlaps=function(t){var e=function(e){e=t(e);for(var r=function(){var t,r,i=e.filter(function(t){return!t.hidden}),a=i.map(function(t,e){return[t,G(i,e)]}),o=(r=function(t,e){return e[1]-t[1]},(t=a)[n.scan(t,r)]);if(!(o[1]>0))return"break";o[0].hidden=!0};"break"!==r(););return e};return p(e,t=t||function(t){return t}),e},e.layoutBoundingBox=function(){var t=[0,0],e=function(e){return e.map(function(e,n){var r=e.x,i=e.y;return r+e.width>t[0]&&(r-=e.width),i+e.height>t[1]&&(i-=e.height),{height:e.height,width:e.width,x:r,y:i}})};return e.bounds=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],e):t},e},e.dataJoin=W,e.effectivelyZero=1e-6,e.seriesSvgLine=st,e.seriesCanvasLine=ht,e.seriesSvgPoint=dt,e.seriesCanvasPoint=pt,e.seriesSvgBar=function(){var t=U().x(0).y(0),e=at(),n=W("g","bar"),r=function(t){return"vertical"===e.orient()?t.width:t.height},i=function(t){return"translate("+t[0]+", "+t[1]+")"},a=function(a){a.selection&&n.transition(a),a.each(function(a,o,c){var l=e.orient();if("vertical"!==l&&"horizontal"!==l)throw new Error("The bar series does not support an orientation of "+l);var f=a.filter(e.defined()),s=f.map(e.values);t.width(0).height(0),"vertical"===e.orient()?(t.verticalAlign("top"),t.horizontalAlign("center")):(t.horizontalAlign("right"),t.verticalAlign("center"));var h=n(u.select(c[o]),f);h.enter().attr("transform",function(t,e){return i(s[e].baseOrigin)}).attr("class","bar "+e.orient()).attr("fill",ft).append("path").attr("d",function(e,n){return r(t)(s[n].width),t([e])}),h.attr("transform",function(t,e){return i(s[e].origin)}).select("path").attr("d",function(n,i){var a;return r(t)(s[i].width),(a=t,"vertical"===e.orient()?a.height:a.width)(-s[i].height),t([n])}),e.decorate()(h,f,o)})};return p(a,e),d(a,n,"key"),a},e.seriesCanvasBar=function(){var t=at(),e=U().x(0).y(0),n=function(n){var r=e.context(),i=n.filter(t.defined()).map(t.values);"vertical"===t.orient()?(e.verticalAlign("top"),e.horizontalAlign("center")):(e.horizontalAlign("right"),e.verticalAlign("center")),i.forEach(function(n,i){var a;r.save(),r.beginPath(),r.translate(n.origin[0],n.origin[1]),(a=e,"vertical"===t.orient()?a.height:a.width)(-n.height),function(e){return"vertical"===t.orient()?e.width:e.height}(e)(n.width),e([n]),r.fillStyle=ft,r.strokeStyle="transparent",t.decorate()(r,n.d,i),r.fill(),r.stroke(),r.closePath(),r.restore()})};return p(n,t),d(n,e,"context"),n},e.seriesSvgErrorBar=function(){var t=gt(),e=W("g","error-bar"),n=Y().value(0),r=function(t){return"translate("+t.origin[0]+", "+t.origin[1]+")"},i=function(i){i.selection&&e.transition(i);var a,o=(a=i,function(t){return a.selection?t.transition(a):t});i.each(function(i,a,c){var l=i.filter(t.defined()),f=l.map(t.values),s=e(u.select(c[a]),l);s.enter().attr("stroke",ut).attr("fill",lt).attr("transform",function(e,n){return r(t.values(e,n))+" scale(1e-6, 1)"}).append("path"),n.orient(t.orient()),s.each(function(t,e,i){var a=f[e];n.high(a.high).low(a.low).width(a.width),o(u.select(i[e])).attr("transform",r(a)+" scale(1)").select("path").attr("d",n([t]))}),t.decorate()(s,i,a)})};return p(i,t),d(i,e,"key"),i},e.seriesCanvasErrorBar=function(){var t=gt(),e=Y().value(0),n=function(n){var r=n.filter(t.defined()),i=e.context();e.orient(t.orient()),r.forEach(function(n,r){i.save();var a=t.values(n,r);i.translate(a.origin[0],a.origin[1]),i.beginPath(),e.high(a.high).width(a.width).low(a.low)([n]),i.strokeStyle=ut,i.fillStyle=lt,t.decorate()(i,n,r),i.fill(),i.stroke(),i.closePath(),i.restore()})};return p(n,t),d(n,e,"context"),n},e.seriesSvgArea=function(){var t=at(),e=l.area(),n=W("path","area"),r=function(r){r.selection&&n.transition(r),e.defined(t.defined()),r.each(function(r,i,a){var o=r.map(t.values);e.x(function(t,e){return o[e].transposedX}).y(function(t,e){return o[e].transposedY});var c="vertical"===t.orient()?"y":"x";e[c+"0"](function(t,e){return o[e].y0}),e[c+"1"](function(t,e){return o[e].y});var l=n(u.select(a[i]),[r]);l.enter().attr("fill",lt),l.attr("d",e),t.decorate()(l,r,i)})};return p(r,t,v("bandwidth","align")),d(r,n,"key"),d(r,e,"curve"),r},e.seriesCanvasArea=function(){var t=at(),e=l.area(),n=function(n){var r=e.context();e.defined(t.defined());var i=n.map(t.values);e.x(function(t,e){return i[e].transposedX}).y(function(t,e){return i[e].transposedY});var a="vertical"===t.orient()?"y":"x";e[a+"0"](function(t,e){return i[e].y0}),e[a+"1"](function(t,e){return i[e].y}),r.beginPath(),e(n),r.fillStyle=lt,r.strokeStyle="transparent",t.decorate()(r,n),r.fill(),r.stroke(),r.closePath()};return p(n,t,v("bandwidth","align")),d(n,e,"curve","context"),n},e.seriesSvgCandlestick=function(){return bt(q(),"candlestick")},e.seriesCanvasCandlestick=function(){return yt(q())},e.seriesSvgBoxPlot=function(){var t=mt(),e=W("g","box-plot"),n=B().value(0),r=function(t){return"translate("+t.origin[0]+", "+t.origin[1]+")"},i=function(i){i.selection&&e.transition(i);var a,o=(a=i,function(t){return a.selection?t.transition(a):t});i.each(function(i,a,c){var l=i.filter(t.defined()),f=e(u.select(c[a]),l);f.enter().attr("stroke",ut).attr("fill",lt).attr("transform",function(e,n){return r(t.values(e,n))+" scale(1e-6, 1)"}).append("path"),n.orient(t.orient()),f.each(function(e,i,a){var c=t.values(e,i);n.median(c.median).upperQuartile(c.upperQuartile).lowerQuartile(c.lowerQuartile).width(c.width).high(c.high).low(c.low),o(u.select(a[i])).attr("transform",r(c)).select("path").attr("d",n([e]))}),t.decorate()(f,i,a)})};return p(i,t),d(i,e,"key"),d(i,n,"cap"),i},e.seriesCanvasBoxPlot=function(){var t=mt(),e=B().value(0),n=function(n){var r=n.filter(t.defined()),i=e.context();e.orient(t.orient()),r.forEach(function(n,r){i.save();var a=t.values(n,r);i.translate(a.origin[0],a.origin[1]),i.beginPath(),e.median(a.median).upperQuartile(a.upperQuartile).lowerQuartile(a.lowerQuartile).high(a.high).width(a.width).low(a.low)([n]),i.fillStyle=lt,i.strokeStyle=ut,t.decorate()(i,n,r),i.fill(),i.stroke(),i.closePath(),i.restore()})};return p(n,t),d(n,e,"cap","context"),n},e.seriesSvgOhlc=function(){return bt(F(),"ohlc")},e.seriesCanvasOhlc=function(){return yt(F())},e.seriesSvgMulti=xt,e.seriesCanvasMulti=wt,e.seriesSvgGrouped=function(t){var e=Mt(),n=W("g","grouped"),r=function(r){r.selection&&n.transition(r),r.each(function(r,i,a){var o=n(u.select(a[i]),r);o.enter().append("g"),o.select("g").each(function(n,i,a){var o=u.select(a[i]),c="horizontal"!==t.orient(),l=function(t,n){var a=e.offsetScaleForDatum(r,t,n);return(c?e.xScale():e.yScale())(t)+a(i)+a.bandwidth()/2};c?(t.xScale(l),t.yScale(e.yScale())):(t.yScale(l),t.xScale(e.xScale())),t.bandwidth&&t.bandwidth(function(t,n){return e.offsetScaleForDatum(r,t,n).bandwidth()}),t.decorate(function(t,n){return e.decorate()(t,n,i)}),o.call(t)})})};return p(r,t,v("decorate","xScale","yScale")),p(r,e,v("offsetScaleForDatum")),r},e.seriesCanvasGrouped=function(t){var e=Mt(),n=function(n){n.forEach(function(r,i){var a="horizontal"!==t.orient(),o=function(t,r){var o=e.offsetScaleForDatum(n,t,r);return(a?e.xScale():e.yScale())(t)+o(i)+o.bandwidth()/2};a?(t.xScale(o),t.yScale(e.yScale())):(t.yScale(o),t.xScale(e.xScale())),t.bandwidth&&t.bandwidth(function(t,r){return e.offsetScaleForDatum(n,t,r).bandwidth()}),t.decorate(function(t,n){return e.decorate()(t,n,i)}),t(r)})};return p(n,t,v("decorate","xScale","yScale")),p(n,e,v("offsetScaleForDatum")),n},e.seriesSvgRepeat=function(){var t="vertical",e=st(),n=xt(),r=function(r){return r.each(function(r,i,a){"vertical"===t?n.series(r[0].map(function(t){return e})).mapping(function(t,e){return t.map(function(t){return t[e]})}):n.series(r.map(function(t){return e})).mapping(function(t,e){return t[e]}),u.select(a[i]).call(n)})};return r.series=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],r):e},r.orient=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],r):t},p(r,n,v("series","mapping")),r},e.seriesCanvasRepeat=function(){var t="vertical",e=ht(),n=wt(),r=function(r){"vertical"===t?n.series(r[0].map(function(t){return e})).mapping(function(t,e){return t.map(function(t){return t[e]})}):n.series(r.map(function(t){return e})).mapping(function(t,e){return t[e]}),n(r)};return r.series=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],r):e},r.orient=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],r):t},p(r,n,v("series","mapping")),r},e.autoBandwidth=function(t){var e=.75,r=function(t){if(t.length<=1)return 10;t=t.sort(n.ascending).filter(function(t,e,n){return-1===n.indexOf(t,e+1)});var r=n.pairs(t).map(function(t){return Math.abs(t[0]-t[1])}),i=n.min(r);return e*i},i=function(e,n,i){if(e.bandwidth)return e.bandwidth();var a,o=(Array.isArray(n)?(a=[]).concat.apply(a,C(n)):n).filter(t.defined()).map(i()).map(e);return r(o)},a=function(e){var n=function(e){if(t.xBandwidth&&t.yBandwidth)t.xBandwidth(i(t.xScale(),e,t.xValue)),t.yBandwidth(i(t.yScale(),e,t.yValue));else{var n=t.orient&&"horizontal"===t.orient()?t.yScale():t.xScale();t.bandwidth(i(n,e,t.crossValue))}};e instanceof u.selection?e.each(function(e,r,i){n(e),t(u.select(i[r]))}):(n(e),t(e))};return p(a,t),a.widthFraction=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],a):e},a},e.seriesSvgHeatmap=function(){var t=St(),e=W("g","box"),n=function(n){n.each(function(n,r,i){var a=n.filter(t.defined()),o=t.colorValue(),c=t.colorInterpolate(),l=t.colorScale(a),f=e(u.select(i[r]),a);f.enter().append("path").attr("stroke","transparent"),f.attr("transform",function(e,n){return"translate("+(r=t.values(e,n)).x+", "+r.y+")";var r}).select("path").attr("d",function(e,n){return t.pathGenerator.width(t.values(e,n).width).height(t.values(e,n).height)([e])}).attr("fill",function(t,e){return c(l(o(t,e)))}),t.decorate()(f,n,r)})};return p(n,t),n},e.seriesCanvasHeatmap=function(){var t=St(),e=function(e){var n=e.filter(t.defined()),r=(t.colorValue(),t.colorInterpolate()),i=t.colorScale(n),a=t.pathGenerator.context();n.forEach(function(e,n){a.save(),a.beginPath();var o=t.values(e,n);a.translate(o.x,o.y),a.fillStyle=r(i(o.colorValue)),a.strokeStyle="transparent",t.pathGenerator.height(o.height).width(o.width)([e]),t.decorate()(a,e,n),a.fill(),a.stroke(),a.closePath(),a.restore()})};return d(e,t.pathGenerator,"context"),p(e,t),e},e.annotationSvgBand=function(){var t=r.scaleIdentity(),e=r.scaleIdentity(),n="horizontal",i=function(t){return t.from},a=function(t){return t.to},o=function(){},c=W("g","annotation-band"),l=U().horizontalAlign("center").verticalAlign("center").x(0).y(0),f=function(r){if(r.selection&&c.transition(r),"horizontal"!==n&&"vertical"!==n)throw new Error("Invalid orientation");var f="horizontal"===n,s=f?function(t,e){return"translate("+t+", "+e+")"}:function(t,e){return"translate("+e+", "+t+")"},h=f?e:t,d=(f?t:e).range(),p=d[1]-d[0],g=f?"height":"width",v=function(){return s((d[1]+d[0])/2,(h(a.apply(void 0,arguments))+h(i.apply(void 0,arguments)))/2)};l[f?"width":"height"](p),l[g](function(){return h(a.apply(void 0,arguments))-h(i.apply(void 0,arguments))}),r.each(function(t,e,r){var i=c(u.select(r[e]),t);i.enter().attr("transform",v).append("path").classed("band",!0),i.attr("class","annotation-band "+n).attr("transform",v).select("path").attr("d",function(t,e){return l([t],e)}),o(i,t,e)})};return f.xScale=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],f):t},f.yScale=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],f):e},f.orient=function(){return arguments.length?(n=arguments.length<=0?void 0:arguments[0],f):n},f.decorate=function(){return arguments.length?(o=arguments.length<=0?void 0:arguments[0],f):o},f.fromValue=function(){return arguments.length?(i=kt(arguments.length<=0?void 0:arguments[0]),f):i},f.toValue=function(){return arguments.length?(a=kt(arguments.length<=0?void 0:arguments[0]),f):a},f},e.annotationCanvasBand=function(){var t=r.scaleIdentity(),e=r.scaleIdentity(),n="horizontal",i=function(t){return t.from},a=function(t){return t.to},o=function(){},c=U().horizontalAlign("right").verticalAlign("top"),u=function(r){if("horizontal"!==n&&"vertical"!==n)throw new Error("Invalid orientation");var u=c.context(),l="horizontal"===n,f=l?e:t,s=(l?t:e).range(),h=s[1]-s[0],d=l?"x":"y",p=l?"y":"x",g=l?"height":"width",v=l?"width":"height";r.forEach(function(t,e){u.save(),u.beginPath(),u.strokeStyle="transparent",c[p](f(i(t))),c[d](s[0]),c[v](h),c[g](f(a(t))-f(i(t))),o(u,t,e),c.context(u)([t],e),u.fill(),u.stroke(),u.closePath(),u.restore()})};return u.xScale=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],u):t},u.yScale=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],u):e},u.orient=function(){return arguments.length?(n=arguments.length<=0?void 0:arguments[0],u):n},u.decorate=function(){return arguments.length?(o=arguments.length<=0?void 0:arguments[0],u):o},u.fromValue=function(){return arguments.length?(i=kt(arguments.length<=0?void 0:arguments[0]),u):i},u.toValue=function(){return arguments.length?(a=kt(arguments.length<=0?void 0:arguments[0]),u):a},d(u,c,"context"),u},e.annotationSvgCrosshair=function(){var t=function(t){return t.x},e=function(t){return t.y},n=r.scaleIdentity(),i=r.scaleIdentity(),a=function(){},o=W("g","annotation-crosshair"),c=dt(),l=Ot(),f=Ot().orient("vertical"),s=r.scaleIdentity(),h=r.scaleIdentity(),d=xt().series([l,f,c]).xScale(s).yScale(h).mapping(function(t){return[t]}),g=function(r){r.selection&&o.transition(r),r.each(function(r,p,g){var v=o(u.select(g[p]),r);v.enter().style("pointer-events","none"),s.range(n.range()),h.range(i.range()),c.crossValue(t).mainValue(e),l.value(e),f.value(t),v.call(d),a(v,r,p)})};g.x=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],g):t},g.y=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],g):e},g.xScale=function(){return arguments.length?(n=arguments.length<=0?void 0:arguments[0],g):n},g.yScale=function(){return arguments.length?(i=arguments.length<=0?void 0:arguments[0],g):i},g.decorate=function(){return arguments.length?(a=arguments.length<=0?void 0:arguments[0],g):a};var v=b("label");return p(g,l,v,m("y")),p(g,f,v,m("x")),g},e.annotationCanvasCrosshair=function(){var t=function(t){return t.x},e=function(t){return t.y},n=r.scaleIdentity(),i=r.scaleIdentity(),a=pt(),o=At(),c=At().orient("vertical"),u=r.scaleIdentity(),l=r.scaleIdentity(),f=wt().series([o,c,a]).xScale(u).yScale(l).mapping(function(t){return[t]}),s=function(r){r.forEach(function(r){u.range(n.range()),l.range(i.range()),a.crossValue(t).mainValue(e),o.value(e),c.value(t),f(r)})};s.x=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],s):t},s.y=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],s):e},s.xScale=function(){return arguments.length?(n=arguments.length<=0?void 0:arguments[0],s):n},s.yScale=function(){return arguments.length?(i=arguments.length<=0?void 0:arguments[0],s):i};var h=b("label","decorate");return p(s,o,h,m("y")),p(s,c,h,m("x")),d(s,a,"decorate"),d(s,f,"context"),s},e.annotationSvgLine=Ot,e.annotationCanvasLine=At,e.annotationSvgGridline=function(){var t=function(){},e=function(){},n=Tt(),r=Tt(),i=W("line","gridline-y").key(jt),a=W("line","gridline-x").key(jt),o=function(o){o.selection&&(i.transition(o),a.transition(o)),o.each(function(o,c,l){var f=l[c],s=u.select(l[c]),h=n.scale(),d=r.scale(),p=f.__x_scale__||h;f.__x_scale__=h.copy();var g=n(),v=i(s,g);v.enter().attr("x1",p).attr("x2",p).attr("y1",d.range()[0]).attr("y2",d.range()[1]),v.attr("x1",h).attr("x2",h).attr("y1",d.range()[0]).attr("y2",d.range()[1]).attr("stroke","#bbb"),v.exit().attr("x1",h).attr("x2",h),t(v,g,c);var b=f.__y_scale__||d;f.__y_scale__=d.copy();var y=r(),m=a(s,y);m.enter().attr("y1",b).attr("y2",b).attr("x1",h.range()[0]).attr("x2",h.range()[1]),m.attr("y1",d).attr("y2",d).attr("x1",h.range()[0]).attr("x2",h.range()[1]).attr("stroke","#bbb"),m.exit().attr("y1",d).attr("y2",d),e(m,y,c)})};return o.yDecorate=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],o):e},o.xDecorate=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],o):t},p(o,i,y({key:"xKey"})),p(o,a,y({key:"yKey"})),p(o,n,m("x")),p(o,r,m("y")),o},e.annotationCanvasGridline=function(){var t=function(){},e=function(){},n=Tt(),r=Tt(),i=l.line(),a=function(){var a=i.context(),o=n.scale(),c=r.scale();n().forEach(function(e,n){a.save(),a.beginPath(),a.strokeStyle="#bbb",a.fillStyle="transparent",t(a,e,n),i.context(a)(c.domain().map(function(t){return[o(e),c(t)]})),a.fill(),a.stroke(),a.closePath(),a.restore()}),r().forEach(function(t,n){a.save(),a.beginPath(),a.strokeStyle="#bbb",a.fillStyle="transparent",e(a,t,n),i.context(a)(o.domain().map(function(e){return[o(e),c(t)]})),a.fill(),a.stroke(),a.closePath(),a.restore()})};return a.yDecorate=function(){return arguments.length?(e=arguments.length<=0?void 0:arguments[0],a):e},a.xDecorate=function(){return arguments.length?(t=arguments.length<=0?void 0:arguments[0],a):t},p(a,n,m("x")),p(a,r,m("y")),d(a,i,"context"),a},e.axisLabelRotate=function(t){var e="auto",n=function(){},r=function(){return"left"===t.orient()||"right"===t.orient()},i=function(){return"top"===t.orient()||"left"===t.orient()?-1:1},a=function(){switch(t.orient()){case"top":case"right":return"start";default:return"end"}},o=function(n){var o=function(n){var o=Rt(t.scale())(n),c=o.maxHeight,u=o.maxWidth,l=o.labelCount*u,f=void 0;if("auto"===e){var s=t.scale().range()[1];f=se?1:t>=e?0:NaN},i=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}};var a=i(r),o=a.right,c=a.left,u=o,l=function(t,e){null==e&&(e=f);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);nt?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,a=0,o=-1,c=0,u=0;if(null==e)for(;++o1)return u/(a-1)},g=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},v=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++c=0?(a>=M?10:a>=S?5:a>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=M?10:a>=S?5:a>=k?2:1)}function T(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=M?i*=10:a>=S?i*=5:a>=k&&(i*=2),es;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:f,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}},C=function(t,e,n){return t=m.call(t,d).sort(r),Math.ceil((n-e)/(2*(N(t,.75)-N(t,.25))*Math.pow(t.length,-1/3)))},V=function(t,e,n){return Math.ceil((n-e)/(3.5*g(t)*Math.pow(t.length,-1/3)))},z=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r},P=function(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n},R=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r},I=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},F=function(t,e){if(n=t.length){var n,i,a=0,o=0,c=t[o];for(null==e&&(e=r);++a0))return o;do{o.push(a=new Date(+n)),e(n,i),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(c.count=function(e,a){return r.setTime(+e),i.setTime(+a),t(r),t(i),Math.floor(n(r,i))},c.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?c.filter(o?function(e){return o(e)%t==0}:function(e){return c.count(0,e)%t==0}):c:null}),c}var o=a(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):o:null};var c=o,u=o.range,l=6e4,f=6048e5,s=a(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),h=s,d=s.range,p=a(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+e*l)},function(t,e){return(e-t)/l},function(t){return t.getMinutes()}),g=p,v=p.range,b=a(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*l)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),y=b,m=b.range,_=a(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*l)/864e5},function(t){return t.getDate()-1}),x=_,w=_.range;function M(t){return a(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*l)/f})}var S=M(0),k=M(1),O=M(2),A=M(3),T=M(4),j=M(5),E=M(6),N=S.range,C=k.range,V=O.range,z=A.range,P=T.range,L=j.range,D=E.range,R=a(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),I=R,F=R.range,U=a(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});U.every=function(t){return isFinite(t=Math.floor(t))&&t>0?a(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var q=U,B=U.range,Y=a(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*l)},function(t,e){return(e-t)/l},function(t){return t.getUTCMinutes()}),H=Y,W=Y.range,X=a(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),G=X,$=X.range,K=a(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}),Q=K,Z=K.range;function J(t){return a(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/f})}var tt=J(0),et=J(1),nt=J(2),rt=J(3),it=J(4),at=J(5),ot=J(6),ct=tt.range,ut=et.range,lt=nt.range,ft=rt.range,st=it.range,ht=at.range,dt=ot.range,pt=a(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),gt=pt,vt=pt.range,bt=a(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});bt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?a(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var yt=bt,mt=bt.range;n.d(e,"timeInterval",function(){return a}),n.d(e,"timeMillisecond",function(){return c}),n.d(e,"timeMilliseconds",function(){return u}),n.d(e,"utcMillisecond",function(){return c}),n.d(e,"utcMilliseconds",function(){return u}),n.d(e,"timeSecond",function(){return h}),n.d(e,"timeSeconds",function(){return d}),n.d(e,"utcSecond",function(){return h}),n.d(e,"utcSeconds",function(){return d}),n.d(e,"timeMinute",function(){return g}),n.d(e,"timeMinutes",function(){return v}),n.d(e,"timeHour",function(){return y}),n.d(e,"timeHours",function(){return m}),n.d(e,"timeDay",function(){return x}),n.d(e,"timeDays",function(){return w}),n.d(e,"timeWeek",function(){return S}),n.d(e,"timeWeeks",function(){return N}),n.d(e,"timeSunday",function(){return S}),n.d(e,"timeSundays",function(){return N}),n.d(e,"timeMonday",function(){return k}),n.d(e,"timeMondays",function(){return C}),n.d(e,"timeTuesday",function(){return O}),n.d(e,"timeTuesdays",function(){return V}),n.d(e,"timeWednesday",function(){return A}),n.d(e,"timeWednesdays",function(){return z}),n.d(e,"timeThursday",function(){return T}),n.d(e,"timeThursdays",function(){return P}),n.d(e,"timeFriday",function(){return j}),n.d(e,"timeFridays",function(){return L}),n.d(e,"timeSaturday",function(){return E}),n.d(e,"timeSaturdays",function(){return D}),n.d(e,"timeMonth",function(){return I}),n.d(e,"timeMonths",function(){return F}),n.d(e,"timeYear",function(){return q}),n.d(e,"timeYears",function(){return B}),n.d(e,"utcMinute",function(){return H}),n.d(e,"utcMinutes",function(){return W}),n.d(e,"utcHour",function(){return G}),n.d(e,"utcHours",function(){return $}),n.d(e,"utcDay",function(){return Q}),n.d(e,"utcDays",function(){return Z}),n.d(e,"utcWeek",function(){return tt}),n.d(e,"utcWeeks",function(){return ct}),n.d(e,"utcSunday",function(){return tt}),n.d(e,"utcSundays",function(){return ct}),n.d(e,"utcMonday",function(){return et}),n.d(e,"utcMondays",function(){return ut}),n.d(e,"utcTuesday",function(){return nt}),n.d(e,"utcTuesdays",function(){return lt}),n.d(e,"utcWednesday",function(){return rt}),n.d(e,"utcWednesdays",function(){return ft}),n.d(e,"utcThursday",function(){return it}),n.d(e,"utcThursdays",function(){return st}),n.d(e,"utcFriday",function(){return at}),n.d(e,"utcFridays",function(){return ht}),n.d(e,"utcSaturday",function(){return ot}),n.d(e,"utcSaturdays",function(){return dt}),n.d(e,"utcMonth",function(){return gt}),n.d(e,"utcMonths",function(){return vt}),n.d(e,"utcYear",function(){return yt}),n.d(e,"utcYears",function(){return mt})},function(t,e,n){"use strict";var r=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function a(){}var o="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3})$/,f=/^#([0-9a-f]{6})$/,s=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),h=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgba\\("+[o,o,o,c]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),g=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),v=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),b={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 y(t){var e;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?new M((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=f.exec(t))?m(parseInt(e[1],16)):(e=s.exec(t))?new M(e[1],e[2],e[3],1):(e=h.exec(t))?new M(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?_(e[1],e[2],e[3],e[4]):(e=p.exec(t))?_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?k(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?k(e[1],e[2]/100,e[3]/100,e[4]):b.hasOwnProperty(t)?m(b[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function m(t){return new M(t>>16&255,t>>8&255,255&t,1)}function _(t,e,n,r){return r<=0&&(t=e=n=NaN),new M(t,e,n,r)}function x(t){return t instanceof a||(t=y(t)),t?new M((t=t.rgb()).r,t.g,t.b,t.opacity):new M}function w(t,e,n,r){return 1===arguments.length?x(t):new M(t,e,n,null==r?1:r)}function M(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function k(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new A(t,e,n,r)}function O(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof A)return new A(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=y(t)),!t)return new A;if(t instanceof A)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),c=NaN,u=o-i,l=(o+i)/2;return u?(c=e===o?(n-r)/u+6*(n0&&l<1?0:c,new A(c,u,l,t.opacity)}(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function T(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}r(a,y,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),r(M,w,i(a,{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 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+S(this.r)+S(this.g)+S(this.b)},toString:function(){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+")")}})),r(A,O,i(a,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new A(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new A(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,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new M(T(t>=240?t-240:t+120,i,r),T(t,i,r),T(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var j=Math.PI/180,E=180/Math.PI,N=.96422,C=1,V=.82521,z=4/29,P=6/29,L=3*P*P,D=P*P*P;function R(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof X){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*j;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof M||(t=x(t));var n,r,i=Y(t.r),a=Y(t.g),o=Y(t.b),c=U((.2225045*i+.7168786*a+.0606169*o)/C);return i===a&&a===o?n=r=c:(n=U((.4360747*i+.3850649*a+.1430804*o)/N),r=U((.0139322*i+.0971045*a+.7141733*o)/V)),new F(116*c-16,500*(n-c),200*(c-r),t.opacity)}function I(t,e,n,r){return 1===arguments.length?R(t):new F(t,e,n,null==r?1:r)}function F(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function U(t){return t>D?Math.pow(t,1/3):t/L+z}function q(t){return t>P?t*t*t:L*(t-z)}function B(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Y(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function H(t){if(t instanceof X)return new X(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=R(t)),0===t.a&&0===t.b)return new X(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*E;return new X(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function W(t,e,n,r){return 1===arguments.length?H(t):new X(t,e,n,null==r?1:r)}function X(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}r(F,I,i(a,{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(B(3.1338561*(e=N*q(e))-1.6168667*(t=C*q(t))-.4906146*(n=V*q(n))),B(-.9787684*e+1.9161415*t+.033454*n),B(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(X,W,i(a,{brighter:function(t){return new X(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new X(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return R(this).rgb()}}));var G=-.14861,$=1.78277,K=-.29227,Q=-.90649,Z=1.97294,J=Z*Q,tt=Z*$,et=$*K-Q*G;function nt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof M||(t=x(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(et*r+J*e-tt*n)/(et+J-tt),a=r-i,o=(Z*(n-i)-K*a)/Q,c=Math.sqrt(o*o+a*a)/(Z*i*(1-i)),u=c?Math.atan2(o,a)*E-120:NaN;return new rt(u<0?u+360:u,c,i,t.opacity)}(t):new rt(t,e,n,null==r?1:r)}function rt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}r(rt,nt,i(a,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*j,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new M(255*(e+n*(G*r+$*i)),255*(e+n*(K*r+Q*i)),255*(e+n*(Z*r)),this.opacity)}})),n.d(e,"a",function(){return y}),n.d(e,"f",function(){return w}),n.d(e,"d",function(){return O}),n.d(e,"e",function(){return I}),n.d(e,"c",function(){return W}),n.d(e,"b",function(){return nt})},function(t,e,n){"use strict";var r=n(5);function i(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}var a=function(t){return function(){return t}};function o(t,e){return function(n){return t+n*e}}function c(t,e){var n=e-t;return n?o(t,n>180||n<-180?n-360*Math.round(n/360):n):a(isNaN(t)?e:t)}function u(t){return 1==(t=+t)?l:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):a(isNaN(e)?n:e)}}function l(t,e){var n=e-t;return n?o(t,n):a(isNaN(t)?e:t)}var f=function t(e){var n=u(e);function i(t,e){var i=n((t=Object(r.f)(t)).r,(e=Object(r.f)(e)).r),a=n(t.g,e.g),o=n(t.b,e.b),c=l(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=c(e),t+""}}return i.gamma=t,i}(1);function s(t){return function(e){var n,i,a=e.length,o=new Array(a),c=new Array(a),u=new Array(a);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),a=t[r],o=t[r+1],c=r>0?t[r-1]:2*a-o,u=ra&&(i=e.slice(a,i),c[o]?c[o]+=i:c[++o]=i),(n=n[0])===(r=r[0])?c[o]?c[o]+=r:c[++o]=r:(c[++o]=null,u.push({i:o,x:d(n,r)})),a=g.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:d(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,c,u),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:d(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,c,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var c=a.push(i(a)+"scale(",null,",",null,")");o.push({i:c-4,x:d(t,n)},{i:c-2,x:d(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,c,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++n0?r:n()}function a(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"right";if("right"===n||"bottom"===n)return t[n]e[n];throw"Direction being checked for overflow is invalid: ".concat(n)}function o(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i="x"===t?"width":"height",a=e[t],o=e[t]+e[i],c=n[t],u=n[t]+n[i];return c+r>a&&c-ra&&u-ro}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return o})},function(t,e,n){for(var r=n(94),i=n(43),a=n(27),o=n(18),c=n(26),u=n(34),l=n(11),f=l("iterator"),s=l("toStringTag"),h=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),g=0;g1?r[0]+r.slice(2):r,+t.slice(n+1)]},i=function(t){return(t=r(Math.abs(t)))?t[1]:NaN},a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(t){return new c(t)}function c(t){if(!(e=a.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}o.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var u,l,f,s,h=function(t){t:for(var e,n=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t},d=function(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")},p={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return d(100*t,e)},r:d,s:function(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],a=n[1],o=a-(u=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,c=i.length;return o===c?i:o>c?i+new Array(o-c+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+r(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},g=function(t){return t},v=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];l=function(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,a=[],o=0,c=e[0],u=0;i>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),a.push(t.substring(i-=c,i+c)),!((u+=c+1)>r));)c=e[o=(o+1)%e.length];return a.reverse().join(n)}):g,a=t.currency,c=t.decimal,l=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):g,f=t.percent||"%";function s(t){var e=(t=o(t)).fill,n=t.align,i=t.sign,s=t.symbol,d=t.zero,g=t.width,b=t.comma,y=t.precision,m=t.trim,_=t.type;"n"===_?(b=!0,_="g"):p[_]||(null==y&&(y=12),m=!0,_="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var x="$"===s?a[0]:"#"===s&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",w="$"===s?a[1]:/[%p]/.test(_)?f:"",M=p[_],S=/[defgprs%]/.test(_);function k(t){var a,o,f,s=x,p=w;if("c"===_)p=M(t)+p,t="";else{var k=(t=+t)<0;if(t=M(Math.abs(t),y),m&&(t=h(t)),k&&0==+t&&(k=!1),s=(k?"("===i?i:"-":"-"===i||"("===i?"":i)+s,p=("s"===_?v[8+u/3]:"")+p+(k&&"("===i?")":""),S)for(a=-1,o=t.length;++a(f=t.charCodeAt(a))||f>57){p=(46===f?c+t.slice(a+1):t.slice(a))+p,t=t.slice(0,a);break}}b&&!d&&(t=r(t,1/0));var O=s.length+t.length+p.length,A=O>1)+s+t+p+A.slice(O);break;default:t=A+s+t+p}return l(t)}return y=null==y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),k.toString=function(){return t+""},k}return{format:s,formatPrefix:function(t,e){var n=s(((t=o(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(i(e)/3))),a=Math.pow(10,-r),c=v[8+r/3];return function(t){return n(a*t)+c}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),f=l.format,s=l.formatPrefix;var b=function(t){return Math.max(0,-i(Math.abs(t)))},y=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i(e)/3)))-i(Math.abs(t)))},m=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,i(e)-i(t))+1};n.d(e,"a",function(){return f}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return y}),n.d(e,"f",function(){return m})},function(t,e,n){"use strict";var r=n(117),i=n(17),a=n(118),o=n(81),c=n(44),u=n(82),l=n(58),f=n(22),s=Math.min,h=[].push,d=!f(function(){RegExp(4294967295,"y")});n(83)("split",2,function(t,e,n,f){var p;return p="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,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);for(var a,o,c,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,d=void 0===e?4294967295:e>>>0,p=new RegExp(t.source,f+"g");(a=l.call(p,i))&&!((o=p.lastIndex)>s&&(u.push(i.slice(s,a.index)),a.length>1&&a.index=d));)p.lastIndex===a.index&&p.lastIndex++;return s===i.length?!c&&p.test("")||u.push(""):u.push(i.slice(s)),u.length>d?u.slice(0,d):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,i,r):p.call(String(i),n,r)},function(t,e){var r=f(p,t,this,e,p!==n);if(r.done)return r.value;var l=i(t),h=String(this),g=a(l,RegExp),v=l.unicode,b=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(d?"y":"g"),y=new g(d?l:"^(?:"+l.source+")",b),m=void 0===e?4294967295:e>>>0;if(0===m)return[];if(0===h.length)return null===u(y,h)?[h]:[];for(var _=0,x=0,w=[];x1e-6)if(Math.abs(s*u-l*f)>1e-6&&a){var d=n-o,p=i-c,g=u*u+l*l,v=d*d+p*p,b=Math.sqrt(g),y=Math.sqrt(h),m=a*Math.tan((r-Math.acos((g+h-v)/(2*b*y)))/2),_=m/y,x=m/b;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*f)+","+(e+_*s)),this._+="A"+a+","+a+",0,0,"+ +(s*d>f*p)+","+(this._x1=t+x*u)+","+(this._y1=e+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,o,c,u){t=+t,e=+e;var l=(n=+n)*Math.cos(o),f=n*Math.sin(o),s=t+l,h=e+f,d=1^u,p=u?o-c:c-o;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+h:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+s+","+h),n&&(p<0&&(p=p%i+i),p>a?this._+="A"+n+","+n+",0,1,"+d+","+(t-l)+","+(e-f)+"A"+n+","+n+",0,1,"+d+","+(this._x1=s)+","+(this._y1=h):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+d+","+(this._x1=t+n*Math.cos(c))+","+(this._y1=e+n*Math.sin(c))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var u=c;n.d(e,"path",function(){return u})},function(t,e,n){"use strict";function r(){}function i(t,e){var n=new r;if(t instanceof r)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==e)for(;++ai;)$(t,n=r[i++],e[n]);return t},Q=function(t){var e=R.call(this,t=w(t,!0));return!(this===q&&i(F,t)&&!i(U,t))&&(!(e||!i(this,t)||!i(F,t)||i(this,L)&&this[L][t])||e)},Z=function(t,e){if(t=x(t),e=w(e,!0),t!==q||!i(F,e)||i(U,e)){var n=E(t,e);return!n||!i(F,e)||i(t,L)&&t[L][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=C(x(t)),r=[],a=0;n.length>a;)i(F,e=n[a++])||e==L||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===q,r=C(n?U:x(t)),a=[],o=0;r.length>o;)!i(F,e=r[o++])||n&&!i(q,e)||a.push(F[e]);return a};B||(c((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===q&&e.call(U,n),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),W(this,t,M(1,n))};return a&&H&&W(q,t,{configurable:!0,set:e}),X(t)}).prototype,"toString",function(){return this._k}),O.f=Z,T.f=$,n(80).f=k.f=J,n(57).f=Q,A.f=tt,a&&!n(38)&&c(q,"propertyIsEnumerable",Q,!0),p.f=function(t){return X(d(t))}),o(o.G+o.W+o.F*!B,{Symbol:V});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=j(d.store),it=0;rt.length>it;)g(rt[it++]);o(o.S+o.F*!B,"Symbol",{for:function(t){return i(I,t+="")?I[t]:I[t]=V(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),o(o.S+o.F*!B,"Object",{create:function(t,e){return void 0===e?S(t):K(S(t),e)},defineProperty:$,defineProperties:K,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:tt});var at=l(function(){A.f(1)});o(o.S+o.F*at,"Object",{getOwnPropertySymbols:function(t){return A.f(_(t))}}),z&&o(o.S+o.F*(!B||l(function(){var t=V();return"[null]"!=P([t])||"{}"!=P({a:t})||"{}"!=P(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(m(e)||void 0!==t)&&!G(t))return b(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,P.apply(z,r)}}),V.prototype[D]||n(26)(V.prototype,D,V.prototype.valueOf),s(V,"Symbol"),s(Math,"Math",!0),s(r.JSON,"JSON",!0)},function(t,e,n){"use strict";var r=n(4);function i(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function a(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function o(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var c,u,l,f,s={"-":"",_:" ",0:"0"},h=/^\s*\d+/,d=/^%/,p=/[\\^$*+?|[\]().{}]/g;function g(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function O(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function T(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function j(t,e,n){var r=h.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function E(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function N(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function C(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function V(t,e,n){var r=h.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function z(t,e,n){var r=h.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function P(t,e,n){var r=d.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function L(t,e,n){var r=h.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function D(t,e,n){var r=h.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function R(t,e){return g(t.getDate(),e,2)}function I(t,e){return g(t.getHours(),e,2)}function F(t,e){return g(t.getHours()%12||12,e,2)}function U(t,e){return g(1+r.timeDay.count(Object(r.timeYear)(t),t),e,3)}function q(t,e){return g(t.getMilliseconds(),e,3)}function B(t,e){return q(t,e)+"000"}function Y(t,e){return g(t.getMonth()+1,e,2)}function H(t,e){return g(t.getMinutes(),e,2)}function W(t,e){return g(t.getSeconds(),e,2)}function X(t){var e=t.getDay();return 0===e?7:e}function G(t,e){return g(r.timeSunday.count(Object(r.timeYear)(t),t),e,2)}function $(t,e){var n=t.getDay();return t=n>=4||0===n?Object(r.timeThursday)(t):r.timeThursday.ceil(t),g(r.timeThursday.count(Object(r.timeYear)(t),t)+(4===Object(r.timeYear)(t).getDay()),e,2)}function K(t){return t.getDay()}function Q(t,e){return g(r.timeMonday.count(Object(r.timeYear)(t),t),e,2)}function Z(t,e){return g(t.getFullYear()%100,e,2)}function J(t,e){return g(t.getFullYear()%1e4,e,4)}function tt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+g(e/60|0,"0",2)+g(e%60,"0",2)}function et(t,e){return g(t.getUTCDate(),e,2)}function nt(t,e){return g(t.getUTCHours(),e,2)}function rt(t,e){return g(t.getUTCHours()%12||12,e,2)}function it(t,e){return g(1+r.utcDay.count(Object(r.utcYear)(t),t),e,3)}function at(t,e){return g(t.getUTCMilliseconds(),e,3)}function ot(t,e){return at(t,e)+"000"}function ct(t,e){return g(t.getUTCMonth()+1,e,2)}function ut(t,e){return g(t.getUTCMinutes(),e,2)}function lt(t,e){return g(t.getUTCSeconds(),e,2)}function ft(t){var e=t.getUTCDay();return 0===e?7:e}function st(t,e){return g(r.utcSunday.count(Object(r.utcYear)(t),t),e,2)}function ht(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(r.utcThursday)(t):r.utcThursday.ceil(t),g(r.utcThursday.count(Object(r.utcYear)(t),t)+(4===Object(r.utcYear)(t).getUTCDay()),e,2)}function dt(t){return t.getUTCDay()}function pt(t,e){return g(r.utcMonday.count(Object(r.utcYear)(t),t),e,2)}function gt(t,e){return g(t.getUTCFullYear()%100,e,2)}function vt(t,e){return g(t.getUTCFullYear()%1e4,e,4)}function bt(){return"+0000"}function yt(){return"%"}function mt(t){return+t}function _t(t){return Math.floor(+t/1e3)}c=function(t){var e=t.dateTime,n=t.date,c=t.time,u=t.periods,l=t.days,f=t.shortDays,h=t.months,d=t.shortMonths,p=b(u),g=y(u),v=b(l),xt=y(l),wt=b(f),Mt=y(f),St=b(h),kt=y(h),Ot=b(d),At=y(d),Tt={a:function(t){return f[t.getDay()]},A:function(t){return l[t.getDay()]},b:function(t){return d[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:R,e:R,f:B,H:I,I:F,j:U,L:q,m:Y,M:H,p:function(t){return u[+(t.getHours()>=12)]},Q:mt,s:_t,S:W,u:X,U:G,V:$,w:K,W:Q,x:null,X:null,y:Z,Y:J,Z:tt,"%":yt},jt={a:function(t){return f[t.getUTCDay()]},A:function(t){return l[t.getUTCDay()]},b:function(t){return d[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:et,e:et,f:ot,H:nt,I:rt,j:it,L:at,m:ct,M:ut,p:function(t){return u[+(t.getUTCHours()>=12)]},Q:mt,s:_t,S:lt,u:ft,U:st,V:ht,w:dt,W:pt,x:null,X:null,y:gt,Y:vt,Z:bt,"%":yt},Et={a:function(t,e,n){var r=wt.exec(e.slice(n));return r?(t.w=Mt[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.w=xt[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=Ot.exec(e.slice(n));return r?(t.m=At[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=St.exec(e.slice(n));return r?(t.m=kt[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return Vt(t,e,n,r)},d:T,e:T,f:z,H:E,I:E,j:j,L:V,m:A,M:N,p:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.p=g[r[0].toLowerCase()],n+r[0].length):-1},Q:L,s:D,S:C,u:_,U:x,V:w,w:m,W:M,x:function(t,e,r){return Vt(t,n,e,r)},X:function(t,e,n){return Vt(t,c,e,n)},y:k,Y:S,Z:O,"%":P};function Nt(t,e){return function(n){var r,i,a,o=[],c=-1,u=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++c53)return null;"w"in u||(u.w=1),"Z"in u?(c=(i=a(o(u.y))).getUTCDay(),i=c>4||0===c?r.utcMonday.ceil(i):Object(r.utcMonday)(i),i=r.utcDay.offset(i,7*(u.V-1)),u.y=i.getUTCFullYear(),u.m=i.getUTCMonth(),u.d=i.getUTCDate()+(u.w+6)%7):(c=(i=e(o(u.y))).getDay(),i=c>4||0===c?r.timeMonday.ceil(i):Object(r.timeMonday)(i),i=r.timeDay.offset(i,7*(u.V-1)),u.y=i.getFullYear(),u.m=i.getMonth(),u.d=i.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),c="Z"in u?a(o(u.y)).getUTCDay():e(o(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(c+5)%7:u.w+7*u.U-(c+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,a(u)):e(u)}}function Vt(t,e,n,r){for(var i,a,o=0,c=e.length,u=n.length;o=u)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=Et[i in s?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Tt.x=Nt(n,Tt),Tt.X=Nt(c,Tt),Tt.c=Nt(e,Tt),jt.x=Nt(n,jt),jt.X=Nt(c,jt),jt.c=Nt(e,jt),{format:function(t){var e=Nt(t+="",Tt);return e.toString=function(){return t},e},parse:function(t){var e=Ct(t+="",i);return e.toString=function(){return t},e},utcFormat:function(t){var e=Nt(t+="",jt);return e.toString=function(){return t},e},utcParse:function(t){var e=Ct(t,a);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),u=c.format,c.parse,l=c.utcFormat,f=c.utcParse;Date.prototype.toISOString||l("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||f("%Y-%m-%dT%H:%M:%S.%LZ");n.d(e,"a",function(){return u}),n.d(e,"b",function(){return l})},function(t,e,n){"use strict";n.r(e);var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),u=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++u0)for(var n,r,i=new Array(n),a=0;a=0&&e._call.call(null,t),e=e._next;--a}()}finally{a=0,function(){var t,e,n=r,a=1/0;for(;n;)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(a)}(),f=0}}function m(){var t=h.now(),e=t-l;e>u&&(s-=e,l=t)}function _(t){a||(o&&(o=clearTimeout(o)),t-f>24?(t<1/0&&(o=setTimeout(y,t-h.now()-s)),c&&(c=clearInterval(c))):(c||(l=h.now(),c=setInterval(m,u)),a=1,d(y)))}v.prototype=b.prototype={constructor:v,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}};var x=function(t,e,n){var r=new v;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r};n.d(e,"a",function(){return p}),n.d(e,"c",function(){return b}),n.d(e,"b",function(){return x})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(22)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(17),i=n(66),a=n(50),o=Object.defineProperty;e.f=n(21)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),i)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){n(77)("asyncIterator")},function(t,e,n){"use strict";var r=n(1),i=n(16),a=n(19),o=Object(i.dispatch)("start","end","cancel","interrupt"),c=[],u=0,l=1,f=2,s=3,h=4,d=5,p=6,g=function(t,e,n,r,i,g){var v=t.__transition;if(v){if(n in v)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(d){var g,v,b,y;if(n.state!==l)return u();for(g in i)if((y=i[g]).name===n.name){if(y.state===s)return Object(a.b)(o);y.state===h?(y.state=p,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete i[g]):+gu)throw new Error("too late; already scheduled");return n}function b(t,e){var n=y(t,e);if(n.state>s)throw new Error("too late; already running");return n}function y(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var m=function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>f&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?v:b;return function(){var o=a(this,t),c=o.on;c!==r&&(i=(r=c).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=Object(r.namespace)(t),i="transform"===n?_.i:M;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,a;return function(){var o,c,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===(c=u+"")?null:o===r&&c===i?a:(i=c,a=e(r=o,u));this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,i,a;return function(){var o,c,u=n(this);if(null!=u)return(o=this.getAttribute(t))===(c=u+"")?null:o===r&&c===i?a:(i=c,a=e(r=o,u));this.removeAttribute(t)}})(n,i,x(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}:function(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}})(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=Object(r.namespace)(t);return this.tween(n,(i.local?function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e(n))}}(t,i)),n}return i._value=e,i}:function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e(n))}}(t,i)),n}return i._value=e,i})(i,e))},style:function(t,e,n){var i="transform"==(t+="")?_.h:M;return null==e?this.styleTween(t,function(t,e){var n,i,a;return function(){var o=Object(r.style)(this,t),c=(this.style.removeProperty(t),Object(r.style)(this,t));return o===c?null:o===n&&c===i?a:a=e(n=o,i=c)}}(t,i)).on("end.style."+t,k(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,a,o;return function(){var c=Object(r.style)(this,t),u=n(this),l=u+"";return null==u&&(this.style.removeProperty(t),l=u=Object(r.style)(this,t)),c===l?null:c===i&&l===a?o:(a=l,o=e(i=c,u))}}(t,i,x(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,c="end."+o;return function(){var u=b(this,t),l=u.on,f=null==u.value[o]?a||(a=k(e)):void 0;l===n&&i===f||(r=(n=l).copy()).on(c,i=f),u.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,a,o=n+"";return function(){var c=Object(r.style)(this,t);return c===o?null:c===i?a:a=e(i=c,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(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;return this.tween(r,function(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t,e,n){return function(r){this.style.setProperty(t,e(r),n)}}(t,a,n)),r}return a._value=e,a}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(x(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=y(this.node(),n).tween,a=0,o=i.length;aM}_.mouse("drag")}function A(){Object(i.select)(i.event.view).on("mousemove.drag mouseup.drag",null),u(i.event.view,n),o(),_.mouse("end")}function T(){if(v.apply(this,arguments)){var t,e,n=i.event.changedTouches,r=b.apply(this,arguments),o=n.length;for(t=0;t9999?"+"+f(e,6):f(e,4))+"-"+f(t.getUTCMonth()+1,2)+"-"+f(t.getUTCDate(),2)+(a?"T"+f(n,2)+":"+f(r,2)+":"+f(i,2)+"."+f(a,3)+"Z":i?"T"+f(n,2)+":"+f(r,2)+":"+f(i,2)+"Z":r||n?"T"+f(n,2)+":"+f(r,2)+"Z":"")}var h=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function f(t,e){var u,l=[],f=t.length,s=0,h=0,d=f<=0,p=!1;function g(){if(d)return i;if(p)return p=!1,r;var e,u,l=s;if(t.charCodeAt(l)===a){for(;s++=f?d=!0:(u=t.charCodeAt(s++))===o?p=!0:u===c&&(p=!0,t.charCodeAt(s)===o&&++s),t.slice(l+1,e-1).replace(/""/g,'"')}for(;s0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(23).f,i=n(29),a=n(11)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(41);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";function r(t){return--t*t*t+1}function i(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}(function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n})(3),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Math.PI;(function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n})(1.70158),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158);var a=2*Math.PI;(function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=a);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*a)},i.period=function(n){return t(e,n)},i})(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=a);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*a)},i.period=function(n){return t(e,n)},i}(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=a);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*a)},i.period=function(n){return t(e,n)},i}(1,.3);n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i})},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),o=new A(r||[]);return a._invoke=function(t,e,n){var r=f;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw a;return j()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var c=S(o,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?d:s,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(t,n,o),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",s="suspendedYield",h="executing",d="completed",p={};function g(){}function v(){}function b(){}var y={};y[a]=function(){return this};var m=Object.getPrototypeOf,_=m&&m(m(T([])));_&&_!==n&&r.call(_,a)&&(y=_);var x=b.prototype=g.prototype=Object.create(y);function w(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function M(t){var e;this._invoke=function(n,i){function a(){return new Promise(function(e,a){!function e(n,i,a,o){var c=l(t[n],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,a,o)},function(t){e("throw",t,a,o)}):Promise.resolve(f).then(function(t){u.value=t,a(u)},function(t){return e("throw",t,a,o)})}o(c.arg)}(n,i,e,a)})}return e=e?e.then(a,a):a()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--a){var o=this.tryEntries[a],c=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){var r=n(20);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(17),i=n(99),a=n(54),o=n(53)("IE_PROTO"),c=function(){},u=function(){var t,e=n(67)("iframe"),r=a.length;for(e.style.display="none",n(102).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(" - - - - + + + +